@quesmed/types-rn 2.6.163 → 2.6.165
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/models/Job.d.ts +4 -0
- package/package.json +1 -1
- package/resolvers/fragments/job.js +10 -0
package/models/Job.d.ts
CHANGED
|
@@ -102,6 +102,7 @@ export interface IJobRecordQuestion {
|
|
|
102
102
|
conditionIds?: number[];
|
|
103
103
|
presentationIds?: number[];
|
|
104
104
|
typeId: EQuestionType;
|
|
105
|
+
subTypeId?: string | null;
|
|
105
106
|
choices: Array<Pick<IQuestionChoice, 'label' | 'name' | 'answer'> & {
|
|
106
107
|
explanation?: IQuestionChoice['explanation'];
|
|
107
108
|
}>;
|
|
@@ -162,6 +163,7 @@ export interface IJob {
|
|
|
162
163
|
type: EJobType;
|
|
163
164
|
priority: EJobPriority;
|
|
164
165
|
totalRecords: number;
|
|
166
|
+
createdBy: IUser['id'];
|
|
165
167
|
metadata: IJobMetaData;
|
|
166
168
|
dueDate: Date | number;
|
|
167
169
|
createdAt: Date | number;
|
|
@@ -171,10 +173,12 @@ export interface IJob {
|
|
|
171
173
|
resolvedCount: number;
|
|
172
174
|
memberCount: number;
|
|
173
175
|
chatCount: number;
|
|
176
|
+
publishedCount: number;
|
|
174
177
|
remarks: IJobRemark[];
|
|
175
178
|
members: IJobMember[];
|
|
176
179
|
assets: IJobAsset[];
|
|
177
180
|
records: IJobRecord[];
|
|
181
|
+
createdByUser: Pick<IUser, 'id' | 'firstName' | 'lastName' | 'username'>;
|
|
178
182
|
}
|
|
179
183
|
export declare const IsJobRecordQuestion: (record: IJobRecord['data']) => record is IJobRecordQuestion;
|
|
180
184
|
export declare const IsJobRecordMockTest: (record: IJobRecord['data']) => record is IJobRecordMockTest;
|
package/package.json
CHANGED
|
@@ -72,6 +72,7 @@ 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
|
|
77
78
|
choices {
|
|
@@ -190,15 +191,20 @@ exports.JOB_ASSETS_FRAGMENT = (0, client_1.gql) `
|
|
|
190
191
|
exports.LIST_JOB_FRAGMENT = (0, client_1.gql) `
|
|
191
192
|
${exports.JOB_FIELDS_FRAGMENT}
|
|
192
193
|
${exports.JOB_STATUS_FRAGMENT}
|
|
194
|
+
${exports.JOB_USER_FRAGMENT}
|
|
193
195
|
fragment Job on Job {
|
|
194
196
|
id
|
|
195
197
|
updatedAt
|
|
196
198
|
createdAt
|
|
197
199
|
recordCount
|
|
200
|
+
publishedCount
|
|
198
201
|
resolvedCount
|
|
199
202
|
remarkCount
|
|
200
203
|
memberCount
|
|
201
204
|
chatCount
|
|
205
|
+
createdByUser {
|
|
206
|
+
...JobUser
|
|
207
|
+
}
|
|
202
208
|
...JobFields
|
|
203
209
|
...JobStatus
|
|
204
210
|
}
|
|
@@ -229,10 +235,14 @@ exports.FULL_JOB_FRAGMENT = (0, client_1.gql) `
|
|
|
229
235
|
updatedAt
|
|
230
236
|
createdAt
|
|
231
237
|
recordCount
|
|
238
|
+
publishedCount
|
|
232
239
|
resolvedCount
|
|
233
240
|
remarkCount
|
|
234
241
|
memberCount
|
|
235
242
|
chatCount
|
|
243
|
+
createdByUser {
|
|
244
|
+
...JobUser
|
|
245
|
+
}
|
|
236
246
|
assets {
|
|
237
247
|
...JobAssets
|
|
238
248
|
}
|