@quesmed/types-rn 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/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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.164",
3
+ "version": "2.6.166",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -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
  }
@@ -193,6 +193,7 @@ export type IDropdownOptionsVar = {
193
193
  search: string | null;
194
194
  force: boolean;
195
195
  entitlementIds?: number[] | null;
196
+ topicIds?: number[] | null;
196
197
  };
197
198
  export type IDropdownOptionsData = AdminData<Array<{
198
199
  key: string;
@@ -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
+ `;