@quesmed/types 2.6.94 → 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/dist/cjs/resolvers/mutation/admin/content.d.ts +3 -3
- package/dist/cjs/resolvers/mutation/admin/content.js +4 -4
- package/dist/cjs/resolvers/query/admin/dashboard.d.ts +10 -0
- package/dist/cjs/resolvers/query/admin/dashboard.js +16 -0
- package/dist/cjs/resolvers/query/admin/index.d.ts +2 -1
- package/dist/cjs/resolvers/query/admin/index.js +2 -1
- package/dist/mjs/resolvers/mutation/admin/content.d.ts +3 -3
- package/dist/mjs/resolvers/mutation/admin/content.js +3 -3
- package/dist/mjs/resolvers/query/admin/dashboard.d.ts +10 -0
- package/dist/mjs/resolvers/query/admin/dashboard.js +13 -0
- package/dist/mjs/resolvers/query/admin/index.d.ts +2 -1
- package/dist/mjs/resolvers/query/admin/index.js +2 -1
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
94
|
-
export declare const
|
|
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.
|
|
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.
|
|
172
|
-
mutation
|
|
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
|
-
|
|
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
|
+
`;
|
|
@@ -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("./
|
|
17
|
+
__exportStar(require("./dashboard"), exports);
|
|
18
18
|
__exportStar(require("./database"), exports);
|
|
19
|
+
__exportStar(require("./getUserToken"), exports);
|
|
@@ -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
|
|
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
|
|
94
|
-
export declare const
|
|
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
|
}
|
|
@@ -165,15 +165,15 @@ export const DELETE_IMAGES = gql `
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
`;
|
|
168
|
-
export const
|
|
169
|
-
mutation
|
|
168
|
+
export const CLONE_CONTENT = gql `
|
|
169
|
+
mutation CloneContent(
|
|
170
170
|
$file: FileDataInput!
|
|
171
171
|
$destination: Int!
|
|
172
172
|
$source: Int!
|
|
173
173
|
$type: Int!
|
|
174
174
|
) {
|
|
175
175
|
admin {
|
|
176
|
-
|
|
176
|
+
cloneContent(
|
|
177
177
|
file: $file
|
|
178
178
|
destination: $destination
|
|
179
179
|
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'>;
|