@quesmed/types-rn 2.6.161 → 2.6.163

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
@@ -1,7 +1,7 @@
1
1
  import { EMockTestType } from './MockTest';
2
2
  import { IPicture } from './Picture';
3
3
  import { EEntitlementType, EProductType } from './Product';
4
- import { EQuestionType, IQuestionChoice } from './Question';
4
+ import { EQuestionType, IQuestionAnswer, IQuestionChoice } from './Question';
5
5
  import { IUser } from './User';
6
6
  export declare enum EJobPriority {
7
7
  LOW = 1,
@@ -96,7 +96,8 @@ export interface IJobRecordQuestion {
96
96
  conceptId?: number | null;
97
97
  explanation?: string | null;
98
98
  learningPoint?: string | null;
99
- answer: string;
99
+ answer: Exclude<IQuestionAnswer, 'string'>;
100
+ themeIds?: number[];
100
101
  entitlementIds?: EEntitlementType[];
101
102
  conditionIds?: number[];
102
103
  presentationIds?: number[];
@@ -119,7 +120,7 @@ export interface IJobRecordMockTest {
119
120
  explanation?: string | null;
120
121
  learningPoint?: string | null;
121
122
  typeId: EQuestionType;
122
- answer: string;
123
+ answer: Exclude<IQuestionAnswer, 'string'>;
123
124
  choices: Array<Pick<IQuestionChoice, 'label' | 'name' | 'answer'> & {
124
125
  explanation?: IQuestionChoice['explanation'];
125
126
  }>;
package/models/Job.js CHANGED
@@ -88,11 +88,14 @@ var EJobRole;
88
88
  EJobRole[EJobRole["SENIOR_EDITOR"] = 3] = "SENIOR_EDITOR";
89
89
  })(EJobRole = exports.EJobRole || (exports.EJobRole = {}));
90
90
  const IsJobRecordQuestion = (record) => {
91
- return !!record && typeof record === 'object' && 'question' in record;
91
+ return (!!record &&
92
+ typeof record === 'object' &&
93
+ 'question' in record &&
94
+ 'entitlementIds' in record);
92
95
  };
93
96
  exports.IsJobRecordQuestion = IsJobRecordQuestion;
94
97
  const IsJobRecordMockTest = (record) => {
95
- return !!record && typeof record === 'object' && 'title' in record;
98
+ return !!record && typeof record === 'object' && 'question' in record;
96
99
  };
97
100
  exports.IsJobRecordMockTest = IsJobRecordMockTest;
98
101
  const IsJobRecordStation = (record) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.161",
3
+ "version": "2.6.163",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -71,6 +71,7 @@ exports.JOB_RECORD_QUESTION_FRAGMENT = (0, client_1.gql) `
71
71
  typeId
72
72
  answer
73
73
  entitlementIds
74
+ themeIds
74
75
  presentationIds
75
76
  conditionIds
76
77
  choices {
@@ -192,6 +192,7 @@ export type IDropdownOptionsVar = {
192
192
  table: string | null;
193
193
  search: string | null;
194
194
  force: boolean;
195
+ entitlementIds?: number[] | null;
195
196
  };
196
197
  export type IDropdownOptionsData = AdminData<Array<{
197
198
  key: string;
@@ -358,9 +358,19 @@ exports.USER_CANCELLATION_REASONS = (0, client_1.gql) `
358
358
  }
359
359
  `;
360
360
  exports.DROPDOWN_OPTIONS = (0, client_1.gql) `
361
- query DropdownOptions($table: String, $search: String, $force: Boolean!) {
361
+ query DropdownOptions(
362
+ $table: String
363
+ $search: String
364
+ $force: Boolean!
365
+ $entitlementIds: [Int!]
366
+ ) {
362
367
  admin {
363
- dropdownOptions(force: $force, search: $search, table: $table) {
368
+ dropdownOptions(
369
+ force: $force
370
+ search: $search
371
+ table: $table
372
+ entitlementIds: $entitlementIds
373
+ ) {
364
374
  key
365
375
  value
366
376
  description