@quesmed/types 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.
@@ -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;
@@ -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) {
@@ -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;
@@ -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;
@@ -9,7 +9,8 @@ export var EJobAttemptType;
9
9
  EJobAttemptType[EJobAttemptType["ALL"] = 0] = "ALL";
10
10
  EJobAttemptType[EJobAttemptType["FIRST_ATTEMPT"] = 1] = "FIRST_ATTEMPT";
11
11
  EJobAttemptType[EJobAttemptType["LATEST_ATTEMPT"] = 2] = "LATEST_ATTEMPT";
12
- EJobAttemptType[EJobAttemptType["SINCE_LAST_MODIFICATION"] = 3] = "SINCE_LAST_MODIFICATION";
12
+ EJobAttemptType[EJobAttemptType["VOTE_ATTEMPT"] = 3] = "VOTE_ATTEMPT";
13
+ EJobAttemptType[EJobAttemptType["SINCE_LAST_MODIFICATION"] = 4] = "SINCE_LAST_MODIFICATION";
13
14
  })(EJobAttemptType || (EJobAttemptType = {}));
14
15
  export var EJobStatus;
15
16
  (function (EJobStatus) {
@@ -55,6 +55,7 @@ export const JOB_ASSET_FRAGMENT = gql `
55
55
  `;
56
56
  export const JOB_RECORD_METRICS_SUMMARY_FRAGMENT = gql `
57
57
  fragment JobRecordMetricsSummary on JobRecordMetricsSummary {
58
+ id
58
59
  total
59
60
  correct
60
61
  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,19 @@
1
+ import { gql } from '@apollo/client';
2
+ import { JOB_ASSET_FRAGMENT } from '../../fragments';
3
+ export const REMOVE_JOB_ASSETS = gql `
4
+ mutation RemoveJobAssets($unlink: Boolean, $ids: [ID!]!) {
5
+ admin {
6
+ removeJobAssets(unlink: $unlink, ids: $ids)
7
+ }
8
+ }
9
+ `;
10
+ export const CREATE_JOB_ASSETS = gql `
11
+ ${JOB_ASSET_FRAGMENT}
12
+ mutation CreateJobAssets($inputs: [JobAssetInput!]!) {
13
+ admin {
14
+ createJobAssets(inputs: $inputs) {
15
+ ...JobAsset
16
+ }
17
+ }
18
+ }
19
+ `;
@@ -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';
@@ -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';
@@ -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,5 +1,5 @@
1
1
  import { gql } from '@apollo/client';
2
- import { JOB_ASSET_FRAGMENT, JOB_REMARK_FRAGMENT, JOB_STATUS_FRAGMENT, LIST_JOB_FRAGMENT, } from '../../fragments';
2
+ import { JOB_REMARK_FRAGMENT, JOB_STATUS_FRAGMENT, LIST_JOB_FRAGMENT, } from '../../fragments';
3
3
  export const CREATE_JOB = gql `
4
4
  ${LIST_JOB_FRAGMENT}
5
5
  mutation CreateJob($input: CreateJobInput!) {
@@ -97,32 +97,3 @@ export const DELETE_JOB_CHATS = gql `
97
97
  }
98
98
  }
99
99
  `;
100
- export const REMOVE_JOB_ASSETS = gql `
101
- mutation RemoveJobAssets(
102
- $jobId: ID!
103
- $unlink: Boolean
104
- $ids: [ID!]!
105
- $recordId: ID
106
- $referenceId: ID
107
- ) {
108
- admin {
109
- removeJobAssets(
110
- jobId: $jobId
111
- unlink: $unlink
112
- ids: $ids
113
- recordId: $recordId
114
- referenceId: $referenceId
115
- )
116
- }
117
- }
118
- `;
119
- export const CREATE_JOB_ASSETS = gql `
120
- ${JOB_ASSET_FRAGMENT}
121
- mutation CreateJobAssets($inputs: [JobAssetInput!]!) {
122
- admin {
123
- createJobAssets(inputs: $inputs) {
124
- ...JobAsset
125
- }
126
- }
127
- }
128
- `;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.184",
3
+ "version": "2.6.186",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",