@quesmed/types 2.6.92 → 2.6.93
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdminData } from '../../..';
|
|
1
|
+
import { AdminData, DB_TYPE } from '../../..';
|
|
2
2
|
import { EBatchType, EEntitlementType, EMockTestType, EOsceType, EPaceType, EProductType, ETopicType, FileData, IContentArgs, IContentResult, IResultData } from '../../../models';
|
|
3
3
|
export interface IBookOptions extends Omit<IContentArgs, 'difficulty'> {
|
|
4
4
|
topicTypeId: ETopicType;
|
|
@@ -84,3 +84,11 @@ export interface IDeleteImagesVar {
|
|
|
84
84
|
}
|
|
85
85
|
export type IDeleteImagesdata = AdminData<IResultData, 'deleteImages'>;
|
|
86
86
|
export declare const DELETE_IMAGES: import("@apollo/client").DocumentNode;
|
|
87
|
+
export interface ICopyContentVar {
|
|
88
|
+
file: FileData;
|
|
89
|
+
source: DB_TYPE;
|
|
90
|
+
destination: DB_TYPE;
|
|
91
|
+
type: EBatchType;
|
|
92
|
+
}
|
|
93
|
+
export type ICopyContentData = AdminData<Omit<IResultData, 'logFile' | 'batchId'>, 'copyContent'>;
|
|
94
|
+
export declare const COPY_CONTENT: import("@apollo/client").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DELETE_IMAGES = exports.QUEUE_STATUS = exports.DELETE_RECORDS = exports.DOWNLOAD_IMAGES = exports.UPLOAD_IMAGES = exports.PUBLIC_BATCH = exports.UPDATE_BATCH = exports.IMPORT_BATCH = exports.VALIDATE_MOCKTEST = exports.VALIDATE_QUESTIONS = exports.VALIDATE_STATIONS = exports.VALIDATE_BOOK = void 0;
|
|
3
|
+
exports.COPY_CONTENT = exports.DELETE_IMAGES = exports.QUEUE_STATUS = exports.DELETE_RECORDS = exports.DOWNLOAD_IMAGES = exports.UPLOAD_IMAGES = exports.PUBLIC_BATCH = exports.UPDATE_BATCH = exports.IMPORT_BATCH = exports.VALIDATE_MOCKTEST = exports.VALIDATE_QUESTIONS = exports.VALIDATE_STATIONS = exports.VALIDATE_BOOK = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.VALIDATE_BOOK = (0, client_1.gql) `
|
|
6
6
|
mutation ValidateBook($input: ValidateBookInput!) {
|
|
@@ -168,3 +168,26 @@ exports.DELETE_IMAGES = (0, client_1.gql) `
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
`;
|
|
171
|
+
exports.COPY_CONTENT = (0, client_1.gql) `
|
|
172
|
+
mutation CopyContent(
|
|
173
|
+
$file: FileDataInput!
|
|
174
|
+
$destination: Int!
|
|
175
|
+
$source: Int!
|
|
176
|
+
$type: Int!
|
|
177
|
+
) {
|
|
178
|
+
admin {
|
|
179
|
+
copyContent(
|
|
180
|
+
file: $file
|
|
181
|
+
destination: $destination
|
|
182
|
+
source: $source
|
|
183
|
+
type: $type
|
|
184
|
+
) {
|
|
185
|
+
status
|
|
186
|
+
message
|
|
187
|
+
data
|
|
188
|
+
recordIds
|
|
189
|
+
errors
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdminData } from '../../..';
|
|
1
|
+
import { AdminData, DB_TYPE } from '../../..';
|
|
2
2
|
import { EBatchType, EEntitlementType, EMockTestType, EOsceType, EPaceType, EProductType, ETopicType, FileData, IContentArgs, IContentResult, IResultData } from '../../../models';
|
|
3
3
|
export interface IBookOptions extends Omit<IContentArgs, 'difficulty'> {
|
|
4
4
|
topicTypeId: ETopicType;
|
|
@@ -84,3 +84,11 @@ export interface IDeleteImagesVar {
|
|
|
84
84
|
}
|
|
85
85
|
export type IDeleteImagesdata = AdminData<IResultData, 'deleteImages'>;
|
|
86
86
|
export declare const DELETE_IMAGES: import("@apollo/client").DocumentNode;
|
|
87
|
+
export interface ICopyContentVar {
|
|
88
|
+
file: FileData;
|
|
89
|
+
source: DB_TYPE;
|
|
90
|
+
destination: DB_TYPE;
|
|
91
|
+
type: EBatchType;
|
|
92
|
+
}
|
|
93
|
+
export type ICopyContentData = AdminData<Omit<IResultData, 'logFile' | 'batchId'>, 'copyContent'>;
|
|
94
|
+
export declare const COPY_CONTENT: import("@apollo/client").DocumentNode;
|
|
@@ -165,3 +165,26 @@ export const DELETE_IMAGES = gql `
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
`;
|
|
168
|
+
export const COPY_CONTENT = gql `
|
|
169
|
+
mutation CopyContent(
|
|
170
|
+
$file: FileDataInput!
|
|
171
|
+
$destination: Int!
|
|
172
|
+
$source: Int!
|
|
173
|
+
$type: Int!
|
|
174
|
+
) {
|
|
175
|
+
admin {
|
|
176
|
+
copyContent(
|
|
177
|
+
file: $file
|
|
178
|
+
destination: $destination
|
|
179
|
+
source: $source
|
|
180
|
+
type: $type
|
|
181
|
+
) {
|
|
182
|
+
status
|
|
183
|
+
message
|
|
184
|
+
data
|
|
185
|
+
recordIds
|
|
186
|
+
errors
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
`;
|