@quesmed/types-rn 2.6.184 → 2.6.186

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
@@ -13,7 +13,8 @@ export declare enum EJobAttemptType {
13
13
  ALL = 0,
14
14
  FIRST_ATTEMPT = 1,
15
15
  LATEST_ATTEMPT = 2,
16
- SINCE_LAST_MODIFICATION = 3
16
+ VOTE_ATTEMPT = 3,
17
+ SINCE_LAST_MODIFICATION = 4
17
18
  }
18
19
  export declare enum EJobStatus {
19
20
  ALL = 0,
@@ -145,6 +146,7 @@ export interface IJobRecordMockTest {
145
146
  }>;
146
147
  }
147
148
  export interface IJobRecordMetricsSummary {
149
+ id: string;
148
150
  total: number;
149
151
  correct: number;
150
152
  incorrect: number;
package/models/Job.js CHANGED
@@ -12,7 +12,8 @@ var EJobAttemptType;
12
12
  EJobAttemptType[EJobAttemptType["ALL"] = 0] = "ALL";
13
13
  EJobAttemptType[EJobAttemptType["FIRST_ATTEMPT"] = 1] = "FIRST_ATTEMPT";
14
14
  EJobAttemptType[EJobAttemptType["LATEST_ATTEMPT"] = 2] = "LATEST_ATTEMPT";
15
- EJobAttemptType[EJobAttemptType["SINCE_LAST_MODIFICATION"] = 3] = "SINCE_LAST_MODIFICATION";
15
+ EJobAttemptType[EJobAttemptType["VOTE_ATTEMPT"] = 3] = "VOTE_ATTEMPT";
16
+ EJobAttemptType[EJobAttemptType["SINCE_LAST_MODIFICATION"] = 4] = "SINCE_LAST_MODIFICATION";
16
17
  })(EJobAttemptType = exports.EJobAttemptType || (exports.EJobAttemptType = {}));
17
18
  var EJobStatus;
18
19
  (function (EJobStatus) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.184",
3
+ "version": "2.6.186",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -58,6 +58,7 @@ exports.JOB_ASSET_FRAGMENT = (0, client_1.gql) `
58
58
  `;
59
59
  exports.JOB_RECORD_METRICS_SUMMARY_FRAGMENT = (0, client_1.gql) `
60
60
  fragment JobRecordMetricsSummary on JobRecordMetricsSummary {
61
+ id
61
62
  total
62
63
  correct
63
64
  incorrect
@@ -0,0 +1,26 @@
1
+ import { ELightGalleryType, FileData, IJob, IJobAsset, IJobRecord, Id } from '../../../models';
2
+ import { AdminData, graphqlNormalize } from '../../types';
3
+ export declare const REMOVE_JOB_ASSETS: import("@apollo/client").DocumentNode;
4
+ export type IRemoveJobAssetsVar = {
5
+ unlink?: boolean | null;
6
+ ids: IJobAsset['id'][];
7
+ };
8
+ export type IRemoveJobAssetsData = AdminData<boolean, 'removeJobAssets'>;
9
+ export declare const CREATE_JOB_ASSETS: import("@apollo/client").DocumentNode;
10
+ export interface IJobAssetInput {
11
+ file: File | FileData;
12
+ jobId: IJob['id'];
13
+ recordId?: IJobRecord['id'] | null;
14
+ caption?: string | null;
15
+ name: string;
16
+ topicId?: Id;
17
+ sensitive: boolean;
18
+ overlay?: boolean;
19
+ type: ELightGalleryType;
20
+ choiceLabel?: string | null;
21
+ index: number;
22
+ }
23
+ export type ICreateJobAssetsVar = {
24
+ inputs: IJobAssetInput[];
25
+ };
26
+ export type ICreateJobAssetsData = AdminData<(IJobAsset & graphqlNormalize)[], 'createJobAssets'>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CREATE_JOB_ASSETS = exports.REMOVE_JOB_ASSETS = void 0;
4
+ const client_1 = require("@apollo/client");
5
+ const fragments_1 = require("../../fragments");
6
+ exports.REMOVE_JOB_ASSETS = (0, client_1.gql) `
7
+ mutation RemoveJobAssets($unlink: Boolean, $ids: [ID!]!) {
8
+ admin {
9
+ removeJobAssets(unlink: $unlink, ids: $ids)
10
+ }
11
+ }
12
+ `;
13
+ exports.CREATE_JOB_ASSETS = (0, client_1.gql) `
14
+ ${fragments_1.JOB_ASSET_FRAGMENT}
15
+ mutation CreateJobAssets($inputs: [JobAssetInput!]!) {
16
+ admin {
17
+ createJobAssets(inputs: $inputs) {
18
+ ...JobAsset
19
+ }
20
+ }
21
+ }
22
+ `;
@@ -1,5 +1,6 @@
1
1
  export * from './ai';
2
2
  export * from './algoliaSync';
3
+ export * from './assets';
3
4
  export * from './content';
4
5
  export * from './database';
5
6
  export * from './job';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ai"), exports);
18
18
  __exportStar(require("./algoliaSync"), exports);
19
+ __exportStar(require("./assets"), exports);
19
20
  __exportStar(require("./content"), exports);
20
21
  __exportStar(require("./database"), exports);
21
22
  __exportStar(require("./job"), exports);
@@ -1,4 +1,4 @@
1
- import { ELightGalleryType, FileData, IJob, IJobAsset, IJobChat, IJobMember, IJobRecord, IJobRemark, Id } from '../../../models';
1
+ import { IJob, IJobChat, IJobMember, IJobRemark } from '../../../models';
2
2
  import { AdminData, graphqlNormalize } from '../../types';
3
3
  export declare const CREATE_JOB: import("@apollo/client").DocumentNode;
4
4
  export type ICreateJobInput = {
@@ -72,29 +72,3 @@ export type IDeleteJobChatsVar = {
72
72
  jobId: IJobChat['jobId'];
73
73
  };
74
74
  export type IDeleteJobChatsData = AdminData<boolean, 'deleteJobChats'>;
75
- export declare const REMOVE_JOB_ASSETS: import("@apollo/client").DocumentNode;
76
- export type IRemoveJobAssetsVar = {
77
- jobId: IJobAsset['jobId'];
78
- unlink?: boolean | null;
79
- ids: IJobAsset['id'][];
80
- recordId?: IJobRecord['id'] | null;
81
- referenceId?: IJobRecord['referenceId'] | null;
82
- };
83
- export type IRemoveJobAssetsData = AdminData<boolean, 'removeJobAssets'>;
84
- export declare const CREATE_JOB_ASSETS: import("@apollo/client").DocumentNode;
85
- export interface IJobAssetInput {
86
- file: File | FileData;
87
- jobId: IJob['id'];
88
- recordId?: IJobRecord['id'] | null;
89
- caption?: string | null;
90
- name: string;
91
- topicId?: Id;
92
- sensitive: boolean;
93
- type: ELightGalleryType;
94
- choiceLabel?: string | null;
95
- index: number;
96
- }
97
- export type ICreateJobAssetsVar = {
98
- inputs: IJobAssetInput[];
99
- };
100
- export type ICreateJobAssetsData = AdminData<(IJobAsset & graphqlNormalize)[], 'createJobAssets'>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CREATE_JOB_ASSETS = exports.REMOVE_JOB_ASSETS = exports.DELETE_JOB_CHATS = exports.DELETE_JOB_CHAT = exports.CREATE_JOB_CHAT = exports.DELETE_JOB_REMARK = exports.UPDATE_JOB_REMARK = exports.CREATE_JOB_REMARK = exports.DELETE_JOB = exports.UPDATE_JOB_STATUS = exports.DUPLICATE_JOB = exports.UPDATE_JOB = exports.CREATE_JOB = void 0;
3
+ exports.DELETE_JOB_CHATS = exports.DELETE_JOB_CHAT = exports.CREATE_JOB_CHAT = exports.DELETE_JOB_REMARK = exports.UPDATE_JOB_REMARK = exports.CREATE_JOB_REMARK = exports.DELETE_JOB = exports.UPDATE_JOB_STATUS = exports.DUPLICATE_JOB = exports.UPDATE_JOB = exports.CREATE_JOB = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  const fragments_1 = require("../../fragments");
6
6
  exports.CREATE_JOB = (0, client_1.gql) `
@@ -100,32 +100,3 @@ exports.DELETE_JOB_CHATS = (0, client_1.gql) `
100
100
  }
101
101
  }
102
102
  `;
103
- exports.REMOVE_JOB_ASSETS = (0, client_1.gql) `
104
- mutation RemoveJobAssets(
105
- $jobId: ID!
106
- $unlink: Boolean
107
- $ids: [ID!]!
108
- $recordId: ID
109
- $referenceId: ID
110
- ) {
111
- admin {
112
- removeJobAssets(
113
- jobId: $jobId
114
- unlink: $unlink
115
- ids: $ids
116
- recordId: $recordId
117
- referenceId: $referenceId
118
- )
119
- }
120
- }
121
- `;
122
- exports.CREATE_JOB_ASSETS = (0, client_1.gql) `
123
- ${fragments_1.JOB_ASSET_FRAGMENT}
124
- mutation CreateJobAssets($inputs: [JobAssetInput!]!) {
125
- admin {
126
- createJobAssets(inputs: $inputs) {
127
- ...JobAsset
128
- }
129
- }
130
- }
131
- `;
@@ -15,6 +15,7 @@ export type IGetJobsVar = {
15
15
  searchText?: string;
16
16
  memberIds?: number[];
17
17
  dbType: DB_TYPE;
18
+ questionIds?: number[];
18
19
  };
19
20
  page: number;
20
21
  take: number;