@quesmed/types-rn 2.6.164 → 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 +3 -0
- package/package.json +1 -1
- package/resolvers/fragments/job.js +10 -0
package/models/Job.d.ts
CHANGED
|
@@ -163,6 +163,7 @@ export interface IJob {
|
|
|
163
163
|
type: EJobType;
|
|
164
164
|
priority: EJobPriority;
|
|
165
165
|
totalRecords: number;
|
|
166
|
+
createdBy: IUser['id'];
|
|
166
167
|
metadata: IJobMetaData;
|
|
167
168
|
dueDate: Date | number;
|
|
168
169
|
createdAt: Date | number;
|
|
@@ -172,10 +173,12 @@ export interface IJob {
|
|
|
172
173
|
resolvedCount: number;
|
|
173
174
|
memberCount: number;
|
|
174
175
|
chatCount: number;
|
|
176
|
+
publishedCount: number;
|
|
175
177
|
remarks: IJobRemark[];
|
|
176
178
|
members: IJobMember[];
|
|
177
179
|
assets: IJobAsset[];
|
|
178
180
|
records: IJobRecord[];
|
|
181
|
+
createdByUser: Pick<IUser, 'id' | 'firstName' | 'lastName' | 'username'>;
|
|
179
182
|
}
|
|
180
183
|
export declare const IsJobRecordQuestion: (record: IJobRecord['data']) => record is IJobRecordQuestion;
|
|
181
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
|
}
|