feat: support server port reuse
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
import {
|
||||
Credential3rdTypeEnum,
|
||||
type GetCredential3rdQuery,
|
||||
} from '@/infra/graphql/gql/graphql';
|
||||
import { gql } from '@apollo/client';
|
||||
import { type } from 'arktype';
|
||||
|
||||
export const GET_CREDENTIAL_3RD = gql`
|
||||
query GetCredential3rd($filters: Credential3rdFilterInput!, $orderBy: Credential3rdOrderInput, $pagination: PaginationInput) {
|
||||
@@ -13,6 +18,10 @@ export const GET_CREDENTIAL_3RD = gql`
|
||||
updatedAt
|
||||
credentialType
|
||||
}
|
||||
paginationInfo {
|
||||
total
|
||||
pages
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -52,3 +61,23 @@ export const DELETE_CREDENTIAL_3RD = gql`
|
||||
credential3rdDelete(filter: $filters)
|
||||
}
|
||||
`;
|
||||
|
||||
export const Credential3rdTypedMikanSchema = type({
|
||||
credentialType: `'${Credential3rdTypeEnum.Mikan}'`,
|
||||
username: 'string > 0',
|
||||
password: 'string > 0',
|
||||
});
|
||||
|
||||
export type Credential3rdTypedMikan =
|
||||
typeof Credential3rdTypedMikanSchema.infer;
|
||||
|
||||
const Credential3rdTypedSchema = Credential3rdTypedMikanSchema;
|
||||
|
||||
export const Credential3rdInsertSchema = type({
|
||||
userAgent: 'string?',
|
||||
}).and(Credential3rdTypedSchema);
|
||||
|
||||
export type Credential3rdInsertDto = typeof Credential3rdInsertSchema.infer;
|
||||
|
||||
export type Credential3rdQueryDto =
|
||||
GetCredential3rdQuery['credential3rd']['nodes'][number];
|
||||
Reference in New Issue
Block a user