@quesmed/types-rn 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.92",
3
+ "version": "2.6.93",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -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
+ `;