@quesmed/types 2.6.183 → 2.6.185

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.
@@ -187,6 +187,7 @@ export interface IJobRecord {
187
187
  assets: IJobAsset[];
188
188
  metricsSummary: IJobRecordMetricsSummary | null;
189
189
  choiceSummary: IJobRecordChoiceSummary[] | null;
190
+ referenceCount: number;
190
191
  }
191
192
  export interface IJobMetaData {
192
193
  productId: EProductType;
@@ -160,6 +160,7 @@ exports.JOB_RECORD_FRAGMENT = (0, client_1.gql) `
160
160
  jobId
161
161
  index
162
162
  referenceId
163
+ referenceCount
163
164
  data {
164
165
  ... on JobRecordQuestion {
165
166
  ...JobRecordQuestion
@@ -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,32 +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<(IJobAsset & graphqlNormalize)[], '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
- input: IJobAssetInput;
99
- recordId?: IJobRecord['id'] | null;
100
- referenceId?: IJobRecord['referenceId'] | null;
101
- jobId: IJob['id'];
102
- };
103
- 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,45 +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
- ${fragments_1.JOB_ASSET_FRAGMENT}
105
- mutation RemoveJobAssets(
106
- $jobId: ID!
107
- $unlink: Boolean
108
- $ids: [ID!]!
109
- $recordId: ID
110
- $referenceId: ID
111
- ) {
112
- admin {
113
- removeJobAssets(
114
- jobId: $jobId
115
- unlink: $unlink
116
- ids: $ids
117
- recordId: $recordId
118
- referenceId: $referenceId
119
- ) {
120
- ...JobAsset
121
- }
122
- }
123
- }
124
- `;
125
- exports.CREATE_JOB_ASSETS = (0, client_1.gql) `
126
- ${fragments_1.JOB_ASSET_FRAGMENT}
127
- mutation CreateJobAssets(
128
- $input: JobAssetInput!
129
- $jobId: ID!
130
- $recordId: ID
131
- $referenceId: ID
132
- ) {
133
- admin {
134
- createJobAssets(
135
- input: $input
136
- jobId: $jobId
137
- recordId: $recordId
138
- referenceId: $referenceId
139
- ) {
140
- ...JobAsset
141
- }
142
- }
143
- }
144
- `;
@@ -26,7 +26,6 @@ export type IDeleteJobRecordData = AdminData<boolean, 'deleteJobRecord'>;
26
26
  export declare const UPDATE_JOB_RECORD: import("@apollo/client").DocumentNode;
27
27
  export type IUpdateJobRecordVar = {
28
28
  id: IJobRecord['id'];
29
- referenceId?: IJobRecord['referenceId'];
30
29
  input: {
31
30
  question: Partial<IJobRecordQuestion>;
32
31
  } | {
@@ -24,7 +24,6 @@ exports.UPDATE_JOB_RECORD = (0, client_1.gql) `
24
24
  ${fragments_1.JOB_RECORD_FRAGMENT}
25
25
  mutation UpdateJobRecord(
26
26
  $id: ID!
27
- $referenceId: ID
28
27
  $input: JobRecordDataInput!
29
28
  $createdAssetIds: [ID!]
30
29
  $deletedAssetIds: [ID!]
@@ -32,7 +31,6 @@ exports.UPDATE_JOB_RECORD = (0, client_1.gql) `
32
31
  admin {
33
32
  updateJobRecord(
34
33
  id: $id
35
- referenceId: $referenceId
36
34
  input: $input
37
35
  createdAssetIds: $createdAssetIds
38
36
  deletedAssetIds: $deletedAssetIds
@@ -187,6 +187,7 @@ export interface IJobRecord {
187
187
  assets: IJobAsset[];
188
188
  metricsSummary: IJobRecordMetricsSummary | null;
189
189
  choiceSummary: IJobRecordChoiceSummary[] | null;
190
+ referenceCount: number;
190
191
  }
191
192
  export interface IJobMetaData {
192
193
  productId: EProductType;
@@ -157,6 +157,7 @@ export const JOB_RECORD_FRAGMENT = gql `
157
157
  jobId
158
158
  index
159
159
  referenceId
160
+ referenceCount
160
161
  data {
161
162
  ... on JobRecordQuestion {
162
163
  ...JobRecordQuestion
@@ -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,32 +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<(IJobAsset & graphqlNormalize)[], '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
- input: IJobAssetInput;
99
- recordId?: IJobRecord['id'] | null;
100
- referenceId?: IJobRecord['referenceId'] | null;
101
- jobId: IJob['id'];
102
- };
103
- 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,45 +97,3 @@ export const DELETE_JOB_CHATS = gql `
97
97
  }
98
98
  }
99
99
  `;
100
- export const REMOVE_JOB_ASSETS = gql `
101
- ${JOB_ASSET_FRAGMENT}
102
- mutation RemoveJobAssets(
103
- $jobId: ID!
104
- $unlink: Boolean
105
- $ids: [ID!]!
106
- $recordId: ID
107
- $referenceId: ID
108
- ) {
109
- admin {
110
- removeJobAssets(
111
- jobId: $jobId
112
- unlink: $unlink
113
- ids: $ids
114
- recordId: $recordId
115
- referenceId: $referenceId
116
- ) {
117
- ...JobAsset
118
- }
119
- }
120
- }
121
- `;
122
- export const CREATE_JOB_ASSETS = gql `
123
- ${JOB_ASSET_FRAGMENT}
124
- mutation CreateJobAssets(
125
- $input: JobAssetInput!
126
- $jobId: ID!
127
- $recordId: ID
128
- $referenceId: ID
129
- ) {
130
- admin {
131
- createJobAssets(
132
- input: $input
133
- jobId: $jobId
134
- recordId: $recordId
135
- referenceId: $referenceId
136
- ) {
137
- ...JobAsset
138
- }
139
- }
140
- }
141
- `;
@@ -26,7 +26,6 @@ export type IDeleteJobRecordData = AdminData<boolean, 'deleteJobRecord'>;
26
26
  export declare const UPDATE_JOB_RECORD: import("@apollo/client").DocumentNode;
27
27
  export type IUpdateJobRecordVar = {
28
28
  id: IJobRecord['id'];
29
- referenceId?: IJobRecord['referenceId'];
30
29
  input: {
31
30
  question: Partial<IJobRecordQuestion>;
32
31
  } | {
@@ -21,7 +21,6 @@ export const UPDATE_JOB_RECORD = gql `
21
21
  ${JOB_RECORD_FRAGMENT}
22
22
  mutation UpdateJobRecord(
23
23
  $id: ID!
24
- $referenceId: ID
25
24
  $input: JobRecordDataInput!
26
25
  $createdAssetIds: [ID!]
27
26
  $deletedAssetIds: [ID!]
@@ -29,7 +28,6 @@ export const UPDATE_JOB_RECORD = gql `
29
28
  admin {
30
29
  updateJobRecord(
31
30
  id: $id
32
- referenceId: $referenceId
33
31
  input: $input
34
32
  createdAssetIds: $createdAssetIds
35
33
  deletedAssetIds: $deletedAssetIds
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.183",
3
+ "version": "2.6.185",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",