@quesmed/types 2.6.182 → 2.6.184
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/dist/cjs/models/Job.d.ts +2 -1
- package/dist/cjs/resolvers/fragments/job.js +1 -1
- package/dist/cjs/resolvers/fragments/record.js +2 -1
- package/dist/cjs/resolvers/mutation/admin/job.d.ts +3 -6
- package/dist/cjs/resolvers/mutation/admin/job.js +3 -16
- package/dist/cjs/resolvers/mutation/admin/record.d.ts +0 -1
- package/dist/cjs/resolvers/mutation/admin/record.js +0 -2
- package/dist/mjs/models/Job.d.ts +2 -1
- package/dist/mjs/resolvers/fragments/job.js +1 -1
- package/dist/mjs/resolvers/fragments/record.js +2 -1
- package/dist/mjs/resolvers/mutation/admin/job.d.ts +3 -6
- package/dist/mjs/resolvers/mutation/admin/job.js +3 -16
- package/dist/mjs/resolvers/mutation/admin/record.d.ts +0 -1
- package/dist/mjs/resolvers/mutation/admin/record.js +0 -2
- package/package.json +1 -1
package/dist/cjs/models/Job.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export interface IJobAsset {
|
|
|
103
103
|
picture: IPicture;
|
|
104
104
|
index: number;
|
|
105
105
|
type: ELightGalleryType;
|
|
106
|
-
|
|
106
|
+
choiceLabel: string | null;
|
|
107
107
|
createdAt: Date | number;
|
|
108
108
|
}
|
|
109
109
|
export interface IJobRecordQuestion {
|
|
@@ -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;
|
|
@@ -37,7 +37,7 @@ exports.JOB_ASSET_FRAGMENT = (0, client_1.gql) `
|
|
|
37
37
|
pictureId
|
|
38
38
|
index
|
|
39
39
|
type
|
|
40
|
-
|
|
40
|
+
choiceLabel
|
|
41
41
|
createdAt
|
|
42
42
|
picture {
|
|
43
43
|
id
|
|
@@ -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
|
|
@@ -80,7 +80,7 @@ export type IRemoveJobAssetsVar = {
|
|
|
80
80
|
recordId?: IJobRecord['id'] | null;
|
|
81
81
|
referenceId?: IJobRecord['referenceId'] | null;
|
|
82
82
|
};
|
|
83
|
-
export type IRemoveJobAssetsData = AdminData<
|
|
83
|
+
export type IRemoveJobAssetsData = AdminData<boolean, 'removeJobAssets'>;
|
|
84
84
|
export declare const CREATE_JOB_ASSETS: import("@apollo/client").DocumentNode;
|
|
85
85
|
export interface IJobAssetInput {
|
|
86
86
|
file: File | FileData;
|
|
@@ -91,13 +91,10 @@ export interface IJobAssetInput {
|
|
|
91
91
|
topicId?: Id;
|
|
92
92
|
sensitive: boolean;
|
|
93
93
|
type: ELightGalleryType;
|
|
94
|
-
|
|
94
|
+
choiceLabel?: string | null;
|
|
95
95
|
index: number;
|
|
96
96
|
}
|
|
97
97
|
export type ICreateJobAssetsVar = {
|
|
98
|
-
|
|
99
|
-
recordId?: IJobRecord['id'] | null;
|
|
100
|
-
referenceId?: IJobRecord['referenceId'] | null;
|
|
101
|
-
jobId: IJob['id'];
|
|
98
|
+
inputs: IJobAssetInput[];
|
|
102
99
|
};
|
|
103
100
|
export type ICreateJobAssetsData = AdminData<(IJobAsset & graphqlNormalize)[], 'createJobAssets'>;
|
|
@@ -101,7 +101,6 @@ exports.DELETE_JOB_CHATS = (0, client_1.gql) `
|
|
|
101
101
|
}
|
|
102
102
|
`;
|
|
103
103
|
exports.REMOVE_JOB_ASSETS = (0, client_1.gql) `
|
|
104
|
-
${fragments_1.JOB_ASSET_FRAGMENT}
|
|
105
104
|
mutation RemoveJobAssets(
|
|
106
105
|
$jobId: ID!
|
|
107
106
|
$unlink: Boolean
|
|
@@ -116,27 +115,15 @@ exports.REMOVE_JOB_ASSETS = (0, client_1.gql) `
|
|
|
116
115
|
ids: $ids
|
|
117
116
|
recordId: $recordId
|
|
118
117
|
referenceId: $referenceId
|
|
119
|
-
)
|
|
120
|
-
...JobAsset
|
|
121
|
-
}
|
|
118
|
+
)
|
|
122
119
|
}
|
|
123
120
|
}
|
|
124
121
|
`;
|
|
125
122
|
exports.CREATE_JOB_ASSETS = (0, client_1.gql) `
|
|
126
123
|
${fragments_1.JOB_ASSET_FRAGMENT}
|
|
127
|
-
mutation CreateJobAssets(
|
|
128
|
-
$input: JobAssetInput!
|
|
129
|
-
$jobId: ID!
|
|
130
|
-
$recordId: ID
|
|
131
|
-
$referenceId: ID
|
|
132
|
-
) {
|
|
124
|
+
mutation CreateJobAssets($inputs: [JobAssetInput!]!) {
|
|
133
125
|
admin {
|
|
134
|
-
createJobAssets(
|
|
135
|
-
input: $input
|
|
136
|
-
jobId: $jobId
|
|
137
|
-
recordId: $recordId
|
|
138
|
-
referenceId: $referenceId
|
|
139
|
-
) {
|
|
126
|
+
createJobAssets(inputs: $inputs) {
|
|
140
127
|
...JobAsset
|
|
141
128
|
}
|
|
142
129
|
}
|
|
@@ -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
|
package/dist/mjs/models/Job.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export interface IJobAsset {
|
|
|
103
103
|
picture: IPicture;
|
|
104
104
|
index: number;
|
|
105
105
|
type: ELightGalleryType;
|
|
106
|
-
|
|
106
|
+
choiceLabel: string | null;
|
|
107
107
|
createdAt: Date | number;
|
|
108
108
|
}
|
|
109
109
|
export interface IJobRecordQuestion {
|
|
@@ -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;
|
|
@@ -34,7 +34,7 @@ export const JOB_ASSET_FRAGMENT = gql `
|
|
|
34
34
|
pictureId
|
|
35
35
|
index
|
|
36
36
|
type
|
|
37
|
-
|
|
37
|
+
choiceLabel
|
|
38
38
|
createdAt
|
|
39
39
|
picture {
|
|
40
40
|
id
|
|
@@ -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
|
|
@@ -80,7 +80,7 @@ export type IRemoveJobAssetsVar = {
|
|
|
80
80
|
recordId?: IJobRecord['id'] | null;
|
|
81
81
|
referenceId?: IJobRecord['referenceId'] | null;
|
|
82
82
|
};
|
|
83
|
-
export type IRemoveJobAssetsData = AdminData<
|
|
83
|
+
export type IRemoveJobAssetsData = AdminData<boolean, 'removeJobAssets'>;
|
|
84
84
|
export declare const CREATE_JOB_ASSETS: import("@apollo/client").DocumentNode;
|
|
85
85
|
export interface IJobAssetInput {
|
|
86
86
|
file: File | FileData;
|
|
@@ -91,13 +91,10 @@ export interface IJobAssetInput {
|
|
|
91
91
|
topicId?: Id;
|
|
92
92
|
sensitive: boolean;
|
|
93
93
|
type: ELightGalleryType;
|
|
94
|
-
|
|
94
|
+
choiceLabel?: string | null;
|
|
95
95
|
index: number;
|
|
96
96
|
}
|
|
97
97
|
export type ICreateJobAssetsVar = {
|
|
98
|
-
|
|
99
|
-
recordId?: IJobRecord['id'] | null;
|
|
100
|
-
referenceId?: IJobRecord['referenceId'] | null;
|
|
101
|
-
jobId: IJob['id'];
|
|
98
|
+
inputs: IJobAssetInput[];
|
|
102
99
|
};
|
|
103
100
|
export type ICreateJobAssetsData = AdminData<(IJobAsset & graphqlNormalize)[], 'createJobAssets'>;
|
|
@@ -98,7 +98,6 @@ export const DELETE_JOB_CHATS = gql `
|
|
|
98
98
|
}
|
|
99
99
|
`;
|
|
100
100
|
export const REMOVE_JOB_ASSETS = gql `
|
|
101
|
-
${JOB_ASSET_FRAGMENT}
|
|
102
101
|
mutation RemoveJobAssets(
|
|
103
102
|
$jobId: ID!
|
|
104
103
|
$unlink: Boolean
|
|
@@ -113,27 +112,15 @@ export const REMOVE_JOB_ASSETS = gql `
|
|
|
113
112
|
ids: $ids
|
|
114
113
|
recordId: $recordId
|
|
115
114
|
referenceId: $referenceId
|
|
116
|
-
)
|
|
117
|
-
...JobAsset
|
|
118
|
-
}
|
|
115
|
+
)
|
|
119
116
|
}
|
|
120
117
|
}
|
|
121
118
|
`;
|
|
122
119
|
export const CREATE_JOB_ASSETS = gql `
|
|
123
120
|
${JOB_ASSET_FRAGMENT}
|
|
124
|
-
mutation CreateJobAssets(
|
|
125
|
-
$input: JobAssetInput!
|
|
126
|
-
$jobId: ID!
|
|
127
|
-
$recordId: ID
|
|
128
|
-
$referenceId: ID
|
|
129
|
-
) {
|
|
121
|
+
mutation CreateJobAssets($inputs: [JobAssetInput!]!) {
|
|
130
122
|
admin {
|
|
131
|
-
createJobAssets(
|
|
132
|
-
input: $input
|
|
133
|
-
jobId: $jobId
|
|
134
|
-
recordId: $recordId
|
|
135
|
-
referenceId: $referenceId
|
|
136
|
-
) {
|
|
123
|
+
createJobAssets(inputs: $inputs) {
|
|
137
124
|
...JobAsset
|
|
138
125
|
}
|
|
139
126
|
}
|
|
@@ -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
|