@quesmed/types 2.6.176 → 2.6.178

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,34 +90,34 @@ export interface FileData {
90
90
  size: number;
91
91
  }
92
92
  export interface IForcedChecks {
93
- question: boolean;
94
- topic: boolean;
95
- theme: boolean;
96
- ukmlaTopic: boolean;
97
- concept: boolean;
98
- station: boolean;
99
- presentation: boolean;
100
- condition: boolean;
93
+ question: boolean | null;
94
+ topic: boolean | null;
95
+ theme: boolean | null;
96
+ ukmlaTopic: boolean | null;
97
+ concept: boolean | null;
98
+ station: boolean | null;
99
+ presentation: boolean | null;
100
+ condition: boolean | null;
101
101
  }
102
102
  export interface IForcedInserts {
103
- question: boolean;
104
- topic: boolean;
105
- theme: boolean;
106
- ukmlaTopic: boolean;
107
- concept: boolean;
108
- station: boolean;
109
- presentation: boolean;
110
- condition: boolean;
103
+ question: boolean | null;
104
+ topic: boolean | null;
105
+ theme: boolean | null;
106
+ ukmlaTopic: boolean | null;
107
+ concept: boolean | null;
108
+ station: boolean | null;
109
+ presentation: boolean | null;
110
+ condition: boolean | null;
111
111
  }
112
112
  export interface IOverwriteOpts {
113
- batchId: string | null;
114
- resetLikes: boolean;
115
- resetProgress: boolean;
116
- resetVotes: boolean;
117
- picture: boolean;
113
+ batchId: string;
114
+ resetLikes: boolean | null;
115
+ resetProgress: boolean | null;
116
+ resetVotes: boolean | null;
117
+ picture: boolean | null;
118
118
  }
119
- export interface IContentArgs {
120
- file: FileData;
119
+ export interface IContentArgs<T = FileData> {
120
+ file: File | T;
121
121
  grammarType: EGrammarType;
122
122
  difficulty: EDifficultyType;
123
123
  folders: string[];
@@ -67,7 +67,7 @@ export type IToggleVisibilityVar = {
67
67
  export type IToggleVisibilityData = AdminData<IContentResult, 'toggleVisibility'>;
68
68
  export declare const TOGGLE_VISIBILITY: import("@apollo/client").DocumentNode;
69
69
  export interface IUploadImagesVar {
70
- file: FileData;
70
+ file: File | FileData;
71
71
  }
72
72
  export type IUploadImagesdata = AdminData<Omit<IResultData, 'batchId' | 'recordIds'>, 'uploadImages'>;
73
73
  export declare const UPLOAD_IMAGES: import("@apollo/client").DocumentNode;
@@ -85,7 +85,7 @@ export interface IDeleteFilesVar {
85
85
  export type IDeleteFilesData = AdminData<Omit<IResultData, 'batchId' | 'recordIds'>, 'deleteFiles'>;
86
86
  export declare const DELETE_FILES: import("@apollo/client").DocumentNode;
87
87
  export interface IUploadFilesVar {
88
- file: FileData;
88
+ file: File | FileData;
89
89
  parentFolder: ES3Folder;
90
90
  }
91
91
  export type IUploadFilesdata = AdminData<Omit<IResultData, 'batchId' | 'recordIds'>, 'uploadFiles'>;
@@ -115,7 +115,7 @@ export interface IDeleteImagesVar {
115
115
  export type IDeleteImagesdata = AdminData<IResultData, 'deleteImages'>;
116
116
  export declare const DELETE_IMAGES: import("@apollo/client").DocumentNode;
117
117
  export interface ICloneContentVar {
118
- file: FileData;
118
+ file: File | FileData;
119
119
  source: DB_TYPE;
120
120
  destination: DB_TYPE;
121
121
  type: EBatchType;
@@ -1,5 +1,5 @@
1
1
  import { IJob, IJobChat, IJobMember, IJobRemark } from '../../../models';
2
- import { AdminData } from '../../types';
2
+ import { AdminData, graphqlNormalize } from '../../types';
3
3
  export declare const CREATE_JOB: import("@apollo/client").DocumentNode;
4
4
  export type ICreateJobInput = {
5
5
  name: IJob['name'];
@@ -15,25 +15,25 @@ export type ICreateJobInput = {
15
15
  export type ICreateJobVar = {
16
16
  input: ICreateJobInput;
17
17
  };
18
- export type ICreateJobData = AdminData<IJob, 'createJob'>;
18
+ export type ICreateJobData = AdminData<graphqlNormalize & IJob, 'createJob'>;
19
19
  export declare const UPDATE_JOB: import("@apollo/client").DocumentNode;
20
20
  export type IUpdateJobVar = {
21
21
  id: IJob['id'];
22
22
  input: Partial<ICreateJobInput>;
23
23
  };
24
- export type IUpdateJobData = AdminData<IJob, 'updateJob'>;
24
+ export type IUpdateJobData = AdminData<graphqlNormalize & IJob, 'updateJob'>;
25
25
  export declare const DUPLICATE_JOB: import("@apollo/client").DocumentNode;
26
26
  export type IDuplicateJobVar = {
27
27
  id: IJob['id'];
28
28
  };
29
- export type IDuplicateJobData = AdminData<IJob, 'duplicateJob'>;
29
+ export type IDuplicateJobData = AdminData<graphqlNormalize & IJob, 'duplicateJob'>;
30
30
  export declare const UPDATE_JOB_STATUS: import("@apollo/client").DocumentNode;
31
31
  export type IUpdateJobStatusVar = {
32
32
  id: IJob['id'];
33
33
  status: IJob['status'];
34
34
  statusOnly?: boolean;
35
35
  };
36
- export type IUpdateJobStatusData = AdminData<IJob, 'updateJobStatus'>;
36
+ export type IUpdateJobStatusData = AdminData<graphqlNormalize & IJob, 'updateJobStatus'>;
37
37
  export declare const DELETE_JOB: import("@apollo/client").DocumentNode;
38
38
  export type IDeleteJobVar = {
39
39
  id: IJob['id'];
@@ -45,13 +45,13 @@ export type ICreateJobRemarkVar = {
45
45
  recordId?: IJobRemark['recordId'];
46
46
  };
47
47
  };
48
- export type ICreateJobRemarkData = AdminData<IJobRemark, 'createJobRemark'>;
48
+ export type ICreateJobRemarkData = AdminData<graphqlNormalize & IJobRemark, 'createJobRemark'>;
49
49
  export declare const UPDATE_JOB_REMARK: import("@apollo/client").DocumentNode;
50
50
  export type IUpdateJobRemarkVar = {
51
51
  id: IJobRemark['id'];
52
52
  input: Partial<Pick<IJobRemark, 'remark' | 'resolvedBy' | 'status' | 'resolvedAt'>>;
53
53
  };
54
- export type IUpdateJobRemarkData = AdminData<IJobRemark, 'updateJobRemark'>;
54
+ export type IUpdateJobRemarkData = AdminData<graphqlNormalize & IJobRemark, 'updateJobRemark'>;
55
55
  export declare const DELETE_JOB_REMARK: import("@apollo/client").DocumentNode;
56
56
  export type IDeleteJobRemarkVar = {
57
57
  id: IJobRemark['id'];
@@ -61,7 +61,7 @@ export declare const CREATE_JOB_CHAT: import("@apollo/client").DocumentNode;
61
61
  export type ICreateJobChatVar = {
62
62
  input: Pick<IJobChat, 'jobId' | 'message' | 'userId'>;
63
63
  };
64
- export type ICreateJobChatData = AdminData<IJobChat, 'createJobChat'>;
64
+ export type ICreateJobChatData = AdminData<graphqlNormalize & IJobChat, 'createJobChat'>;
65
65
  export declare const DELETE_JOB_CHAT: import("@apollo/client").DocumentNode;
66
66
  export type IDeleteJobChatVar = {
67
67
  id: IJobChat['id'];
@@ -1,5 +1,5 @@
1
1
  import { IJobRecord, IJobRecordChapter, IJobRecordMockTest, IJobRecordQuestion, IJobRecordStation } from '../../../models';
2
- import { AdminData } from '../../types';
2
+ import { AdminData, graphqlNormalize } from '../../types';
3
3
  export declare const CREATE_JOB_RECORD: import("@apollo/client").DocumentNode;
4
4
  export type ICreateJobRecordVar = {
5
5
  input: {
@@ -16,7 +16,7 @@ export type ICreateJobRecordVar = {
16
16
  } | null;
17
17
  };
18
18
  };
19
- export type ICreateJobRecordData = AdminData<IJobRecord, 'createJobRecord'>;
19
+ export type ICreateJobRecordData = AdminData<graphqlNormalize & IJobRecord, 'createJobRecord'>;
20
20
  export declare const DELETE_JOB_RECORD: import("@apollo/client").DocumentNode;
21
21
  export type IDeleteJobRecordVar = {
22
22
  id: IJobRecord['id'];
@@ -36,15 +36,15 @@ export type IUpdateJobRecordVar = {
36
36
  mockTest: Partial<IJobRecordMockTest>;
37
37
  } | null;
38
38
  };
39
- export type IUpdateJobRecordData = AdminData<IJobRecord, 'updateJobRecord'>;
39
+ export type IUpdateJobRecordData = AdminData<graphqlNormalize & IJobRecord, 'updateJobRecord'>;
40
40
  export declare const DUPLICATE_JOB_RECORD: import("@apollo/client").DocumentNode;
41
41
  export type IDuplicateJobRecordVar = {
42
42
  id: IJobRecord['id'];
43
43
  };
44
- export type IDuplicateJobRecordData = AdminData<IJobRecord, 'duplicateJobRecord'>;
44
+ export type IDuplicateJobRecordData = AdminData<graphqlNormalize & IJobRecord, 'duplicateJobRecord'>;
45
45
  export declare const UPDATE_JOB_RECORD_STATUS: import("@apollo/client").DocumentNode;
46
46
  export type IUpdateJobRecordStatusVar = {
47
47
  ids: IJobRecord['id'][];
48
48
  status: IJobRecord['status'];
49
49
  };
50
- export type IUpdateJobRecordStatusData = AdminData<IJobRecord[], 'updateJobRecordStatus'>;
50
+ export type IUpdateJobRecordStatusData = AdminData<(graphqlNormalize & IJobRecord)[], 'updateJobRecordStatus'>;
@@ -1,10 +1,11 @@
1
1
  import { EJobStatus, IJob, IJobChat, IJobRemark } from '../../../models';
2
- import { AdminData } from '../../types';
2
+ import { DB_TYPE } from '../../enums';
3
+ import { AdminData, graphqlNormalize } from '../../types';
3
4
  export declare const GET_JOB: import("@apollo/client").DocumentNode;
4
5
  export type IGetJobVar = {
5
6
  id: IJob['id'];
6
7
  };
7
- export type IGetJobData = AdminData<IJob, 'getJob'>;
8
+ export type IGetJobData = AdminData<graphqlNormalize & IJob, 'getJob'>;
8
9
  export declare const GET_JOBS: import("@apollo/client").DocumentNode;
9
10
  export type IGetJobsVar = {
10
11
  filter: {
@@ -13,11 +14,12 @@ export type IGetJobsVar = {
13
14
  priority?: IJob['priority'];
14
15
  searchText?: string;
15
16
  memberIds?: number[];
17
+ dbType: DB_TYPE;
16
18
  };
17
19
  page: number;
18
20
  take: number;
19
21
  };
20
- export type IGetJobsData = AdminData<{
22
+ export type IGetJobsData = AdminData<graphqlNormalize & {
21
23
  results: IJob[];
22
24
  total: number;
23
25
  counts: Array<{
@@ -29,7 +31,7 @@ export declare const GET_JOB_REMARKS: import("@apollo/client").DocumentNode;
29
31
  export type IGetJobRemarksVar = {
30
32
  jobId: IJob['id'];
31
33
  };
32
- export type IGetJobRemarksData = AdminData<IJobRemark[], 'getJobRemarks'>;
34
+ export type IGetJobRemarksData = AdminData<(graphqlNormalize & IJobRemark)[], 'getJobRemarks'>;
33
35
  export declare const GET_JOB_CHATS: import("@apollo/client").DocumentNode;
34
36
  export type IGetJobChatsVar = {
35
37
  jobId: IJob['id'];
@@ -39,4 +41,4 @@ export type IJobChatList = {
39
41
  date: Date | number;
40
42
  total: number;
41
43
  };
42
- export type IGetJobChatsData = AdminData<IJobChatList[], 'getJobChats'>;
44
+ export type IGetJobChatsData = AdminData<(graphqlNormalize & IJobChatList)[], 'getJobChats'>;
@@ -1,5 +1,5 @@
1
1
  import { EJobAttemptType, IJob, IJobRecord, Id } from '../../../models';
2
- import { AdminData } from '../../types';
2
+ import { AdminData, graphqlNormalize } from '../../types';
3
3
  export declare const GET_JOB_RECORDS: import("@apollo/client").DocumentNode;
4
4
  export interface IJobRecordsFilter {
5
5
  attemptType: EJobAttemptType;
@@ -8,12 +8,12 @@ export type IGetJobRecordsVar = {
8
8
  jobId: IJob['id'];
9
9
  filter: IJobRecordsFilter;
10
10
  };
11
- export type IGetJobRecordsData = AdminData<IJobRecord[], 'getJobRecords'>;
11
+ export type IGetJobRecordsData = AdminData<(graphqlNormalize & IJobRecord)[], 'getJobRecords'>;
12
12
  export declare const GET_JOB_RECORD: import("@apollo/client").DocumentNode;
13
13
  export type IGetJobRecordVar = {
14
14
  id: IJobRecord['id'];
15
15
  };
16
- export type IGetJobRecordData = AdminData<IJobRecord, 'getJobRecord'>;
16
+ export type IGetJobRecordData = AdminData<graphqlNormalize & IJobRecord, 'getJobRecord'>;
17
17
  export type IGetIdDetailsVar = {
18
18
  ids: Array<Id>;
19
19
  table: string;
@@ -90,34 +90,34 @@ export interface FileData {
90
90
  size: number;
91
91
  }
92
92
  export interface IForcedChecks {
93
- question: boolean;
94
- topic: boolean;
95
- theme: boolean;
96
- ukmlaTopic: boolean;
97
- concept: boolean;
98
- station: boolean;
99
- presentation: boolean;
100
- condition: boolean;
93
+ question: boolean | null;
94
+ topic: boolean | null;
95
+ theme: boolean | null;
96
+ ukmlaTopic: boolean | null;
97
+ concept: boolean | null;
98
+ station: boolean | null;
99
+ presentation: boolean | null;
100
+ condition: boolean | null;
101
101
  }
102
102
  export interface IForcedInserts {
103
- question: boolean;
104
- topic: boolean;
105
- theme: boolean;
106
- ukmlaTopic: boolean;
107
- concept: boolean;
108
- station: boolean;
109
- presentation: boolean;
110
- condition: boolean;
103
+ question: boolean | null;
104
+ topic: boolean | null;
105
+ theme: boolean | null;
106
+ ukmlaTopic: boolean | null;
107
+ concept: boolean | null;
108
+ station: boolean | null;
109
+ presentation: boolean | null;
110
+ condition: boolean | null;
111
111
  }
112
112
  export interface IOverwriteOpts {
113
- batchId: string | null;
114
- resetLikes: boolean;
115
- resetProgress: boolean;
116
- resetVotes: boolean;
117
- picture: boolean;
113
+ batchId: string;
114
+ resetLikes: boolean | null;
115
+ resetProgress: boolean | null;
116
+ resetVotes: boolean | null;
117
+ picture: boolean | null;
118
118
  }
119
- export interface IContentArgs {
120
- file: FileData;
119
+ export interface IContentArgs<T = FileData> {
120
+ file: File | T;
121
121
  grammarType: EGrammarType;
122
122
  difficulty: EDifficultyType;
123
123
  folders: string[];
@@ -67,7 +67,7 @@ export type IToggleVisibilityVar = {
67
67
  export type IToggleVisibilityData = AdminData<IContentResult, 'toggleVisibility'>;
68
68
  export declare const TOGGLE_VISIBILITY: import("@apollo/client").DocumentNode;
69
69
  export interface IUploadImagesVar {
70
- file: FileData;
70
+ file: File | FileData;
71
71
  }
72
72
  export type IUploadImagesdata = AdminData<Omit<IResultData, 'batchId' | 'recordIds'>, 'uploadImages'>;
73
73
  export declare const UPLOAD_IMAGES: import("@apollo/client").DocumentNode;
@@ -85,7 +85,7 @@ export interface IDeleteFilesVar {
85
85
  export type IDeleteFilesData = AdminData<Omit<IResultData, 'batchId' | 'recordIds'>, 'deleteFiles'>;
86
86
  export declare const DELETE_FILES: import("@apollo/client").DocumentNode;
87
87
  export interface IUploadFilesVar {
88
- file: FileData;
88
+ file: File | FileData;
89
89
  parentFolder: ES3Folder;
90
90
  }
91
91
  export type IUploadFilesdata = AdminData<Omit<IResultData, 'batchId' | 'recordIds'>, 'uploadFiles'>;
@@ -115,7 +115,7 @@ export interface IDeleteImagesVar {
115
115
  export type IDeleteImagesdata = AdminData<IResultData, 'deleteImages'>;
116
116
  export declare const DELETE_IMAGES: import("@apollo/client").DocumentNode;
117
117
  export interface ICloneContentVar {
118
- file: FileData;
118
+ file: File | FileData;
119
119
  source: DB_TYPE;
120
120
  destination: DB_TYPE;
121
121
  type: EBatchType;
@@ -1,5 +1,5 @@
1
1
  import { IJob, IJobChat, IJobMember, IJobRemark } from '../../../models';
2
- import { AdminData } from '../../types';
2
+ import { AdminData, graphqlNormalize } from '../../types';
3
3
  export declare const CREATE_JOB: import("@apollo/client").DocumentNode;
4
4
  export type ICreateJobInput = {
5
5
  name: IJob['name'];
@@ -15,25 +15,25 @@ export type ICreateJobInput = {
15
15
  export type ICreateJobVar = {
16
16
  input: ICreateJobInput;
17
17
  };
18
- export type ICreateJobData = AdminData<IJob, 'createJob'>;
18
+ export type ICreateJobData = AdminData<graphqlNormalize & IJob, 'createJob'>;
19
19
  export declare const UPDATE_JOB: import("@apollo/client").DocumentNode;
20
20
  export type IUpdateJobVar = {
21
21
  id: IJob['id'];
22
22
  input: Partial<ICreateJobInput>;
23
23
  };
24
- export type IUpdateJobData = AdminData<IJob, 'updateJob'>;
24
+ export type IUpdateJobData = AdminData<graphqlNormalize & IJob, 'updateJob'>;
25
25
  export declare const DUPLICATE_JOB: import("@apollo/client").DocumentNode;
26
26
  export type IDuplicateJobVar = {
27
27
  id: IJob['id'];
28
28
  };
29
- export type IDuplicateJobData = AdminData<IJob, 'duplicateJob'>;
29
+ export type IDuplicateJobData = AdminData<graphqlNormalize & IJob, 'duplicateJob'>;
30
30
  export declare const UPDATE_JOB_STATUS: import("@apollo/client").DocumentNode;
31
31
  export type IUpdateJobStatusVar = {
32
32
  id: IJob['id'];
33
33
  status: IJob['status'];
34
34
  statusOnly?: boolean;
35
35
  };
36
- export type IUpdateJobStatusData = AdminData<IJob, 'updateJobStatus'>;
36
+ export type IUpdateJobStatusData = AdminData<graphqlNormalize & IJob, 'updateJobStatus'>;
37
37
  export declare const DELETE_JOB: import("@apollo/client").DocumentNode;
38
38
  export type IDeleteJobVar = {
39
39
  id: IJob['id'];
@@ -45,13 +45,13 @@ export type ICreateJobRemarkVar = {
45
45
  recordId?: IJobRemark['recordId'];
46
46
  };
47
47
  };
48
- export type ICreateJobRemarkData = AdminData<IJobRemark, 'createJobRemark'>;
48
+ export type ICreateJobRemarkData = AdminData<graphqlNormalize & IJobRemark, 'createJobRemark'>;
49
49
  export declare const UPDATE_JOB_REMARK: import("@apollo/client").DocumentNode;
50
50
  export type IUpdateJobRemarkVar = {
51
51
  id: IJobRemark['id'];
52
52
  input: Partial<Pick<IJobRemark, 'remark' | 'resolvedBy' | 'status' | 'resolvedAt'>>;
53
53
  };
54
- export type IUpdateJobRemarkData = AdminData<IJobRemark, 'updateJobRemark'>;
54
+ export type IUpdateJobRemarkData = AdminData<graphqlNormalize & IJobRemark, 'updateJobRemark'>;
55
55
  export declare const DELETE_JOB_REMARK: import("@apollo/client").DocumentNode;
56
56
  export type IDeleteJobRemarkVar = {
57
57
  id: IJobRemark['id'];
@@ -61,7 +61,7 @@ export declare const CREATE_JOB_CHAT: import("@apollo/client").DocumentNode;
61
61
  export type ICreateJobChatVar = {
62
62
  input: Pick<IJobChat, 'jobId' | 'message' | 'userId'>;
63
63
  };
64
- export type ICreateJobChatData = AdminData<IJobChat, 'createJobChat'>;
64
+ export type ICreateJobChatData = AdminData<graphqlNormalize & IJobChat, 'createJobChat'>;
65
65
  export declare const DELETE_JOB_CHAT: import("@apollo/client").DocumentNode;
66
66
  export type IDeleteJobChatVar = {
67
67
  id: IJobChat['id'];
@@ -1,5 +1,5 @@
1
1
  import { IJobRecord, IJobRecordChapter, IJobRecordMockTest, IJobRecordQuestion, IJobRecordStation } from '../../../models';
2
- import { AdminData } from '../../types';
2
+ import { AdminData, graphqlNormalize } from '../../types';
3
3
  export declare const CREATE_JOB_RECORD: import("@apollo/client").DocumentNode;
4
4
  export type ICreateJobRecordVar = {
5
5
  input: {
@@ -16,7 +16,7 @@ export type ICreateJobRecordVar = {
16
16
  } | null;
17
17
  };
18
18
  };
19
- export type ICreateJobRecordData = AdminData<IJobRecord, 'createJobRecord'>;
19
+ export type ICreateJobRecordData = AdminData<graphqlNormalize & IJobRecord, 'createJobRecord'>;
20
20
  export declare const DELETE_JOB_RECORD: import("@apollo/client").DocumentNode;
21
21
  export type IDeleteJobRecordVar = {
22
22
  id: IJobRecord['id'];
@@ -36,15 +36,15 @@ export type IUpdateJobRecordVar = {
36
36
  mockTest: Partial<IJobRecordMockTest>;
37
37
  } | null;
38
38
  };
39
- export type IUpdateJobRecordData = AdminData<IJobRecord, 'updateJobRecord'>;
39
+ export type IUpdateJobRecordData = AdminData<graphqlNormalize & IJobRecord, 'updateJobRecord'>;
40
40
  export declare const DUPLICATE_JOB_RECORD: import("@apollo/client").DocumentNode;
41
41
  export type IDuplicateJobRecordVar = {
42
42
  id: IJobRecord['id'];
43
43
  };
44
- export type IDuplicateJobRecordData = AdminData<IJobRecord, 'duplicateJobRecord'>;
44
+ export type IDuplicateJobRecordData = AdminData<graphqlNormalize & IJobRecord, 'duplicateJobRecord'>;
45
45
  export declare const UPDATE_JOB_RECORD_STATUS: import("@apollo/client").DocumentNode;
46
46
  export type IUpdateJobRecordStatusVar = {
47
47
  ids: IJobRecord['id'][];
48
48
  status: IJobRecord['status'];
49
49
  };
50
- export type IUpdateJobRecordStatusData = AdminData<IJobRecord[], 'updateJobRecordStatus'>;
50
+ export type IUpdateJobRecordStatusData = AdminData<(graphqlNormalize & IJobRecord)[], 'updateJobRecordStatus'>;
@@ -1,10 +1,11 @@
1
1
  import { EJobStatus, IJob, IJobChat, IJobRemark } from '../../../models';
2
- import { AdminData } from '../../types';
2
+ import { DB_TYPE } from '../../enums';
3
+ import { AdminData, graphqlNormalize } from '../../types';
3
4
  export declare const GET_JOB: import("@apollo/client").DocumentNode;
4
5
  export type IGetJobVar = {
5
6
  id: IJob['id'];
6
7
  };
7
- export type IGetJobData = AdminData<IJob, 'getJob'>;
8
+ export type IGetJobData = AdminData<graphqlNormalize & IJob, 'getJob'>;
8
9
  export declare const GET_JOBS: import("@apollo/client").DocumentNode;
9
10
  export type IGetJobsVar = {
10
11
  filter: {
@@ -13,11 +14,12 @@ export type IGetJobsVar = {
13
14
  priority?: IJob['priority'];
14
15
  searchText?: string;
15
16
  memberIds?: number[];
17
+ dbType: DB_TYPE;
16
18
  };
17
19
  page: number;
18
20
  take: number;
19
21
  };
20
- export type IGetJobsData = AdminData<{
22
+ export type IGetJobsData = AdminData<graphqlNormalize & {
21
23
  results: IJob[];
22
24
  total: number;
23
25
  counts: Array<{
@@ -29,7 +31,7 @@ export declare const GET_JOB_REMARKS: import("@apollo/client").DocumentNode;
29
31
  export type IGetJobRemarksVar = {
30
32
  jobId: IJob['id'];
31
33
  };
32
- export type IGetJobRemarksData = AdminData<IJobRemark[], 'getJobRemarks'>;
34
+ export type IGetJobRemarksData = AdminData<(graphqlNormalize & IJobRemark)[], 'getJobRemarks'>;
33
35
  export declare const GET_JOB_CHATS: import("@apollo/client").DocumentNode;
34
36
  export type IGetJobChatsVar = {
35
37
  jobId: IJob['id'];
@@ -39,4 +41,4 @@ export type IJobChatList = {
39
41
  date: Date | number;
40
42
  total: number;
41
43
  };
42
- export type IGetJobChatsData = AdminData<IJobChatList[], 'getJobChats'>;
44
+ export type IGetJobChatsData = AdminData<(graphqlNormalize & IJobChatList)[], 'getJobChats'>;
@@ -1,5 +1,5 @@
1
1
  import { EJobAttemptType, IJob, IJobRecord, Id } from '../../../models';
2
- import { AdminData } from '../../types';
2
+ import { AdminData, graphqlNormalize } from '../../types';
3
3
  export declare const GET_JOB_RECORDS: import("@apollo/client").DocumentNode;
4
4
  export interface IJobRecordsFilter {
5
5
  attemptType: EJobAttemptType;
@@ -8,12 +8,12 @@ export type IGetJobRecordsVar = {
8
8
  jobId: IJob['id'];
9
9
  filter: IJobRecordsFilter;
10
10
  };
11
- export type IGetJobRecordsData = AdminData<IJobRecord[], 'getJobRecords'>;
11
+ export type IGetJobRecordsData = AdminData<(graphqlNormalize & IJobRecord)[], 'getJobRecords'>;
12
12
  export declare const GET_JOB_RECORD: import("@apollo/client").DocumentNode;
13
13
  export type IGetJobRecordVar = {
14
14
  id: IJobRecord['id'];
15
15
  };
16
- export type IGetJobRecordData = AdminData<IJobRecord, 'getJobRecord'>;
16
+ export type IGetJobRecordData = AdminData<graphqlNormalize & IJobRecord, 'getJobRecord'>;
17
17
  export type IGetIdDetailsVar = {
18
18
  ids: Array<Id>;
19
19
  table: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.176",
3
+ "version": "2.6.178",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",