@quesmed/types-rn 2.6.95 → 2.6.96

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.95",
3
+ "version": "2.6.96",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -84,14 +84,14 @@ 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 {
87
+ export interface ICloneContentVar {
88
88
  file: FileData;
89
89
  source: DB_TYPE;
90
90
  destination: DB_TYPE;
91
91
  type: EBatchType;
92
92
  }
93
- export type ICopyContentData = AdminData<Omit<IResultData, 'logFile' | 'batchId'>, 'copyContent'>;
94
- export declare const COPY_CONTENT: import("@apollo/client").DocumentNode;
93
+ export type ICloneContentData = AdminData<Omit<IResultData, 'logFile' | 'batchId'>, 'cloneContent'>;
94
+ export declare const CLONE_CONTENT: import("@apollo/client").DocumentNode;
95
95
  export interface IContactSyncVar {
96
96
  emails: string[];
97
97
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CONTACT_SYNC_STATUS = exports.CONTACT_SYNC = 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;
3
+ exports.CONTACT_SYNC_STATUS = exports.CONTACT_SYNC = exports.CLONE_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,15 +168,15 @@ exports.DELETE_IMAGES = (0, client_1.gql) `
168
168
  }
169
169
  }
170
170
  `;
171
- exports.COPY_CONTENT = (0, client_1.gql) `
172
- mutation CopyContent(
171
+ exports.CLONE_CONTENT = (0, client_1.gql) `
172
+ mutation CloneContent(
173
173
  $file: FileDataInput!
174
174
  $destination: Int!
175
175
  $source: Int!
176
176
  $type: Int!
177
177
  ) {
178
178
  admin {
179
- copyContent(
179
+ cloneContent(
180
180
  file: $file
181
181
  destination: $destination
182
182
  source: $source
@@ -0,0 +1,10 @@
1
+ import { AdminData } from '../../types';
2
+ export declare const ADMIN_DASHBOARD: import("@apollo/client").DocumentNode;
3
+ export interface IAdminDashboard {
4
+ totalBatches: number;
5
+ questionCount: number;
6
+ stationCount: number;
7
+ chapterCount: number;
8
+ }
9
+ export type IAdminDashboardVar = null;
10
+ export type IAdminDashboardData = AdminData<IAdminDashboard, 'dashboard'>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ADMIN_DASHBOARD = void 0;
4
+ const client_1 = require("@apollo/client");
5
+ exports.ADMIN_DASHBOARD = (0, client_1.gql) `
6
+ query AdminDashboard {
7
+ admin {
8
+ dashboard {
9
+ totalBatches
10
+ questionCount
11
+ stationCount
12
+ chapterCount
13
+ }
14
+ }
15
+ }
16
+ `;
@@ -1,2 +1,3 @@
1
- export * from './getUserToken';
1
+ export * from './dashboard';
2
2
  export * from './database';
3
+ export * from './getUserToken';
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./getUserToken"), exports);
17
+ __exportStar(require("./dashboard"), exports);
18
18
  __exportStar(require("./database"), exports);
19
+ __exportStar(require("./getUserToken"), exports);