@quesmed/types 2.6.164 → 2.6.166
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.
- package/dist/cjs/models/Job.d.ts +4 -0
- package/dist/cjs/resolvers/fragments/job.js +11 -0
- package/dist/cjs/resolvers/query/admin/dashboard.d.ts +1 -0
- package/dist/cjs/resolvers/query/admin/dashboard.js +2 -0
- package/dist/cjs/resolvers/query/admin/job.d.ts +10 -1
- package/dist/cjs/resolvers/query/admin/job.js +11 -1
- package/dist/mjs/models/Job.d.ts +4 -0
- package/dist/mjs/resolvers/fragments/job.js +11 -0
- package/dist/mjs/resolvers/query/admin/dashboard.d.ts +1 -0
- package/dist/mjs/resolvers/query/admin/dashboard.js +2 -0
- package/dist/mjs/resolvers/query/admin/job.d.ts +10 -1
- package/dist/mjs/resolvers/query/admin/job.js +10 -0
- package/package.json +1 -1
package/dist/cjs/models/Job.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ export interface IJobRecordQuestion {
|
|
|
99
99
|
answer: Exclude<IQuestionAnswer, 'string'>;
|
|
100
100
|
themeIds?: number[];
|
|
101
101
|
entitlementIds?: EEntitlementType[];
|
|
102
|
+
ukmlaTopicId?: number | null;
|
|
102
103
|
conditionIds?: number[];
|
|
103
104
|
presentationIds?: number[];
|
|
104
105
|
typeId: EQuestionType;
|
|
@@ -163,6 +164,7 @@ export interface IJob {
|
|
|
163
164
|
type: EJobType;
|
|
164
165
|
priority: EJobPriority;
|
|
165
166
|
totalRecords: number;
|
|
167
|
+
createdBy: IUser['id'];
|
|
166
168
|
metadata: IJobMetaData;
|
|
167
169
|
dueDate: Date | number;
|
|
168
170
|
createdAt: Date | number;
|
|
@@ -172,10 +174,12 @@ export interface IJob {
|
|
|
172
174
|
resolvedCount: number;
|
|
173
175
|
memberCount: number;
|
|
174
176
|
chatCount: number;
|
|
177
|
+
publishedCount: number;
|
|
175
178
|
remarks: IJobRemark[];
|
|
176
179
|
members: IJobMember[];
|
|
177
180
|
assets: IJobAsset[];
|
|
178
181
|
records: IJobRecord[];
|
|
182
|
+
createdByUser: Pick<IUser, 'id' | 'firstName' | 'lastName' | 'username'>;
|
|
179
183
|
}
|
|
180
184
|
export declare const IsJobRecordQuestion: (record: IJobRecord['data']) => record is IJobRecordQuestion;
|
|
181
185
|
export declare const IsJobRecordMockTest: (record: IJobRecord['data']) => record is IJobRecordMockTest;
|
|
@@ -72,8 +72,10 @@ exports.JOB_RECORD_QUESTION_FRAGMENT = (0, client_1.gql) `
|
|
|
72
72
|
answer
|
|
73
73
|
entitlementIds
|
|
74
74
|
themeIds
|
|
75
|
+
subTypeId
|
|
75
76
|
presentationIds
|
|
76
77
|
conditionIds
|
|
78
|
+
ukmlaTopicId
|
|
77
79
|
choices {
|
|
78
80
|
label
|
|
79
81
|
name
|
|
@@ -190,15 +192,20 @@ exports.JOB_ASSETS_FRAGMENT = (0, client_1.gql) `
|
|
|
190
192
|
exports.LIST_JOB_FRAGMENT = (0, client_1.gql) `
|
|
191
193
|
${exports.JOB_FIELDS_FRAGMENT}
|
|
192
194
|
${exports.JOB_STATUS_FRAGMENT}
|
|
195
|
+
${exports.JOB_USER_FRAGMENT}
|
|
193
196
|
fragment Job on Job {
|
|
194
197
|
id
|
|
195
198
|
updatedAt
|
|
196
199
|
createdAt
|
|
197
200
|
recordCount
|
|
201
|
+
publishedCount
|
|
198
202
|
resolvedCount
|
|
199
203
|
remarkCount
|
|
200
204
|
memberCount
|
|
201
205
|
chatCount
|
|
206
|
+
createdByUser {
|
|
207
|
+
...JobUser
|
|
208
|
+
}
|
|
202
209
|
...JobFields
|
|
203
210
|
...JobStatus
|
|
204
211
|
}
|
|
@@ -229,10 +236,14 @@ exports.FULL_JOB_FRAGMENT = (0, client_1.gql) `
|
|
|
229
236
|
updatedAt
|
|
230
237
|
createdAt
|
|
231
238
|
recordCount
|
|
239
|
+
publishedCount
|
|
232
240
|
resolvedCount
|
|
233
241
|
remarkCount
|
|
234
242
|
memberCount
|
|
235
243
|
chatCount
|
|
244
|
+
createdByUser {
|
|
245
|
+
...JobUser
|
|
246
|
+
}
|
|
236
247
|
assets {
|
|
237
248
|
...JobAssets
|
|
238
249
|
}
|
|
@@ -363,6 +363,7 @@ exports.DROPDOWN_OPTIONS = (0, client_1.gql) `
|
|
|
363
363
|
$search: String
|
|
364
364
|
$force: Boolean!
|
|
365
365
|
$entitlementIds: [Int!]
|
|
366
|
+
$topicIds: [Int!]
|
|
366
367
|
) {
|
|
367
368
|
admin {
|
|
368
369
|
dropdownOptions(
|
|
@@ -370,6 +371,7 @@ exports.DROPDOWN_OPTIONS = (0, client_1.gql) `
|
|
|
370
371
|
search: $search
|
|
371
372
|
table: $table
|
|
372
373
|
entitlementIds: $entitlementIds
|
|
374
|
+
topicIds: $topicIds
|
|
373
375
|
) {
|
|
374
376
|
key
|
|
375
377
|
value
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EJobStatus, IJob, IJobRecord, IJobRemark } from '../../../models';
|
|
1
|
+
import { EJobStatus, IJob, IJobRecord, IJobRemark, Id } from '../../../models';
|
|
2
2
|
import { AdminData } from '../../types';
|
|
3
3
|
export declare const GET_JOB: import("@apollo/client").DocumentNode;
|
|
4
4
|
export type IGetJobVar = {
|
|
@@ -39,3 +39,12 @@ export type IGetJobRecordVar = {
|
|
|
39
39
|
id: IJobRecord['id'];
|
|
40
40
|
};
|
|
41
41
|
export type IGetJobRecordData = AdminData<IJobRecord, 'getJobRecord'>;
|
|
42
|
+
export type IGetIdDetailsVar = {
|
|
43
|
+
ids: Array<Id>;
|
|
44
|
+
table: string;
|
|
45
|
+
};
|
|
46
|
+
export type IGetIdDetailsData = AdminData<Array<{
|
|
47
|
+
id: Id;
|
|
48
|
+
name: string;
|
|
49
|
+
}>, 'getIdDetails'>;
|
|
50
|
+
export declare const GET_ID_DETAILS: import("@apollo/client").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GET_JOB_RECORD = exports.GET_JOB_RECORDS = exports.GET_JOB_REMARKS = exports.GET_JOBS = exports.GET_JOB = void 0;
|
|
3
|
+
exports.GET_ID_DETAILS = exports.GET_JOB_RECORD = exports.GET_JOB_RECORDS = exports.GET_JOB_REMARKS = exports.GET_JOBS = exports.GET_JOB = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const fragments_1 = require("../../fragments");
|
|
6
6
|
exports.GET_JOB = (0, client_1.gql) `
|
|
@@ -60,3 +60,13 @@ exports.GET_JOB_RECORD = (0, client_1.gql) `
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
`;
|
|
63
|
+
exports.GET_ID_DETAILS = (0, client_1.gql) `
|
|
64
|
+
query GetIdDetails($ids: [ID!]!, $table: String!) {
|
|
65
|
+
admin {
|
|
66
|
+
getIdDetails(ids: $ids, table: $table) {
|
|
67
|
+
id
|
|
68
|
+
name
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
`;
|
package/dist/mjs/models/Job.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ export interface IJobRecordQuestion {
|
|
|
99
99
|
answer: Exclude<IQuestionAnswer, 'string'>;
|
|
100
100
|
themeIds?: number[];
|
|
101
101
|
entitlementIds?: EEntitlementType[];
|
|
102
|
+
ukmlaTopicId?: number | null;
|
|
102
103
|
conditionIds?: number[];
|
|
103
104
|
presentationIds?: number[];
|
|
104
105
|
typeId: EQuestionType;
|
|
@@ -163,6 +164,7 @@ export interface IJob {
|
|
|
163
164
|
type: EJobType;
|
|
164
165
|
priority: EJobPriority;
|
|
165
166
|
totalRecords: number;
|
|
167
|
+
createdBy: IUser['id'];
|
|
166
168
|
metadata: IJobMetaData;
|
|
167
169
|
dueDate: Date | number;
|
|
168
170
|
createdAt: Date | number;
|
|
@@ -172,10 +174,12 @@ export interface IJob {
|
|
|
172
174
|
resolvedCount: number;
|
|
173
175
|
memberCount: number;
|
|
174
176
|
chatCount: number;
|
|
177
|
+
publishedCount: number;
|
|
175
178
|
remarks: IJobRemark[];
|
|
176
179
|
members: IJobMember[];
|
|
177
180
|
assets: IJobAsset[];
|
|
178
181
|
records: IJobRecord[];
|
|
182
|
+
createdByUser: Pick<IUser, 'id' | 'firstName' | 'lastName' | 'username'>;
|
|
179
183
|
}
|
|
180
184
|
export declare const IsJobRecordQuestion: (record: IJobRecord['data']) => record is IJobRecordQuestion;
|
|
181
185
|
export declare const IsJobRecordMockTest: (record: IJobRecord['data']) => record is IJobRecordMockTest;
|
|
@@ -69,8 +69,10 @@ export const JOB_RECORD_QUESTION_FRAGMENT = gql `
|
|
|
69
69
|
answer
|
|
70
70
|
entitlementIds
|
|
71
71
|
themeIds
|
|
72
|
+
subTypeId
|
|
72
73
|
presentationIds
|
|
73
74
|
conditionIds
|
|
75
|
+
ukmlaTopicId
|
|
74
76
|
choices {
|
|
75
77
|
label
|
|
76
78
|
name
|
|
@@ -187,15 +189,20 @@ export const JOB_ASSETS_FRAGMENT = gql `
|
|
|
187
189
|
export const LIST_JOB_FRAGMENT = gql `
|
|
188
190
|
${JOB_FIELDS_FRAGMENT}
|
|
189
191
|
${JOB_STATUS_FRAGMENT}
|
|
192
|
+
${JOB_USER_FRAGMENT}
|
|
190
193
|
fragment Job on Job {
|
|
191
194
|
id
|
|
192
195
|
updatedAt
|
|
193
196
|
createdAt
|
|
194
197
|
recordCount
|
|
198
|
+
publishedCount
|
|
195
199
|
resolvedCount
|
|
196
200
|
remarkCount
|
|
197
201
|
memberCount
|
|
198
202
|
chatCount
|
|
203
|
+
createdByUser {
|
|
204
|
+
...JobUser
|
|
205
|
+
}
|
|
199
206
|
...JobFields
|
|
200
207
|
...JobStatus
|
|
201
208
|
}
|
|
@@ -226,10 +233,14 @@ export const FULL_JOB_FRAGMENT = gql `
|
|
|
226
233
|
updatedAt
|
|
227
234
|
createdAt
|
|
228
235
|
recordCount
|
|
236
|
+
publishedCount
|
|
229
237
|
resolvedCount
|
|
230
238
|
remarkCount
|
|
231
239
|
memberCount
|
|
232
240
|
chatCount
|
|
241
|
+
createdByUser {
|
|
242
|
+
...JobUser
|
|
243
|
+
}
|
|
233
244
|
assets {
|
|
234
245
|
...JobAssets
|
|
235
246
|
}
|
|
@@ -360,6 +360,7 @@ export const DROPDOWN_OPTIONS = gql `
|
|
|
360
360
|
$search: String
|
|
361
361
|
$force: Boolean!
|
|
362
362
|
$entitlementIds: [Int!]
|
|
363
|
+
$topicIds: [Int!]
|
|
363
364
|
) {
|
|
364
365
|
admin {
|
|
365
366
|
dropdownOptions(
|
|
@@ -367,6 +368,7 @@ export const DROPDOWN_OPTIONS = gql `
|
|
|
367
368
|
search: $search
|
|
368
369
|
table: $table
|
|
369
370
|
entitlementIds: $entitlementIds
|
|
371
|
+
topicIds: $topicIds
|
|
370
372
|
) {
|
|
371
373
|
key
|
|
372
374
|
value
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EJobStatus, IJob, IJobRecord, IJobRemark } from '../../../models';
|
|
1
|
+
import { EJobStatus, IJob, IJobRecord, IJobRemark, Id } from '../../../models';
|
|
2
2
|
import { AdminData } from '../../types';
|
|
3
3
|
export declare const GET_JOB: import("@apollo/client").DocumentNode;
|
|
4
4
|
export type IGetJobVar = {
|
|
@@ -39,3 +39,12 @@ export type IGetJobRecordVar = {
|
|
|
39
39
|
id: IJobRecord['id'];
|
|
40
40
|
};
|
|
41
41
|
export type IGetJobRecordData = AdminData<IJobRecord, 'getJobRecord'>;
|
|
42
|
+
export type IGetIdDetailsVar = {
|
|
43
|
+
ids: Array<Id>;
|
|
44
|
+
table: string;
|
|
45
|
+
};
|
|
46
|
+
export type IGetIdDetailsData = AdminData<Array<{
|
|
47
|
+
id: Id;
|
|
48
|
+
name: string;
|
|
49
|
+
}>, 'getIdDetails'>;
|
|
50
|
+
export declare const GET_ID_DETAILS: import("@apollo/client").DocumentNode;
|