@quesmed/types-rn 2.6.95 → 2.6.97
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/models/Product.d.ts +4 -1
- package/models/Product.js +3 -0
- package/models/Topic.d.ts +2 -1
- package/models/Topic.js +1 -0
- package/models/User.d.ts +2 -0
- package/models/User.js +2 -0
- package/package.json +1 -1
- package/resolvers/constants.js +6 -0
- package/resolvers/fragments/user.js +1 -0
- package/resolvers/mutation/admin/content.d.ts +3 -3
- package/resolvers/mutation/admin/content.js +4 -4
- package/resolvers/query/admin/dashboard.d.ts +10 -0
- package/resolvers/query/admin/dashboard.js +16 -0
- package/resolvers/query/admin/index.d.ts +2 -1
- package/resolvers/query/admin/index.js +2 -1
package/models/Product.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare enum EProductType {
|
|
|
18
18
|
INTERVIEW_CST = 12,
|
|
19
19
|
INTERVIEW_IMT = 13,
|
|
20
20
|
INTERVIEW_RADIOLOGY = 14,
|
|
21
|
+
INTERVIEW_PAEDIATRICS = 46,
|
|
21
22
|
CLINICAL = 15,
|
|
22
23
|
DATA_INTERPRETATION = 16,
|
|
23
24
|
CLINICAL_SUBSET = 17,
|
|
@@ -69,7 +70,9 @@ export declare enum EEntitlementType {
|
|
|
69
70
|
INTERVIEW_CST = 41,
|
|
70
71
|
INTERVIEW_IMT = 42,
|
|
71
72
|
INTERVIEW_RADIOLOGY = 43,
|
|
72
|
-
|
|
73
|
+
INTERVIEW_PAEDIATRICS = 47,
|
|
74
|
+
PLAB_1 = 44,
|
|
75
|
+
PLAB_2 = 45
|
|
73
76
|
}
|
|
74
77
|
export interface IProduct {
|
|
75
78
|
id: Id;
|
package/models/Product.js
CHANGED
|
@@ -21,6 +21,7 @@ var EProductType;
|
|
|
21
21
|
EProductType[EProductType["INTERVIEW_CST"] = 12] = "INTERVIEW_CST";
|
|
22
22
|
EProductType[EProductType["INTERVIEW_IMT"] = 13] = "INTERVIEW_IMT";
|
|
23
23
|
EProductType[EProductType["INTERVIEW_RADIOLOGY"] = 14] = "INTERVIEW_RADIOLOGY";
|
|
24
|
+
EProductType[EProductType["INTERVIEW_PAEDIATRICS"] = 46] = "INTERVIEW_PAEDIATRICS";
|
|
24
25
|
EProductType[EProductType["CLINICAL"] = 15] = "CLINICAL";
|
|
25
26
|
EProductType[EProductType["DATA_INTERPRETATION"] = 16] = "DATA_INTERPRETATION";
|
|
26
27
|
EProductType[EProductType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
|
|
@@ -73,7 +74,9 @@ var EEntitlementType;
|
|
|
73
74
|
EEntitlementType[EEntitlementType["INTERVIEW_CST"] = 41] = "INTERVIEW_CST";
|
|
74
75
|
EEntitlementType[EEntitlementType["INTERVIEW_IMT"] = 42] = "INTERVIEW_IMT";
|
|
75
76
|
EEntitlementType[EEntitlementType["INTERVIEW_RADIOLOGY"] = 43] = "INTERVIEW_RADIOLOGY";
|
|
77
|
+
EEntitlementType[EEntitlementType["INTERVIEW_PAEDIATRICS"] = 47] = "INTERVIEW_PAEDIATRICS";
|
|
76
78
|
EEntitlementType[EEntitlementType["PLAB_1"] = 44] = "PLAB_1";
|
|
79
|
+
EEntitlementType[EEntitlementType["PLAB_2"] = 45] = "PLAB_2";
|
|
77
80
|
})(EEntitlementType = exports.EEntitlementType || (exports.EEntitlementType = {}));
|
|
78
81
|
var EAppType;
|
|
79
82
|
(function (EAppType) {
|
package/models/Topic.d.ts
CHANGED
package/models/Topic.js
CHANGED
|
@@ -17,4 +17,5 @@ var ETopicType;
|
|
|
17
17
|
ETopicType[ETopicType["INTERVIEW_CST"] = 10] = "INTERVIEW_CST";
|
|
18
18
|
ETopicType[ETopicType["INTERVIEW_IMT"] = 11] = "INTERVIEW_IMT";
|
|
19
19
|
ETopicType[ETopicType["INTERVIEW_RADIOLOGY"] = 12] = "INTERVIEW_RADIOLOGY";
|
|
20
|
+
ETopicType[ETopicType["INTERVIEW_PAEDIATRICS"] = 13] = "INTERVIEW_PAEDIATRICS";
|
|
20
21
|
})(ETopicType = exports.ETopicType || (exports.ETopicType = {}));
|
package/models/User.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ export interface IPayload {
|
|
|
71
71
|
cstInterviewSubscriptionEndDate: number | null;
|
|
72
72
|
imtInterviewSubscriptionEndDate: number | null;
|
|
73
73
|
radiologyInterviewSubscriptionEndDate: number | null;
|
|
74
|
+
paediatricsInterviewSubscriptionEndDate: number | null;
|
|
74
75
|
plab1SubscriptionEndDate: number | null;
|
|
75
76
|
plab2SubscriptionEndDate: number | null;
|
|
76
77
|
ver: number;
|
|
@@ -173,6 +174,7 @@ export interface IUser {
|
|
|
173
174
|
cstInterviewSubscriptionEndDate: number | Date | null;
|
|
174
175
|
imtInterviewSubscriptionEndDate: number | Date | null;
|
|
175
176
|
radiologyInterviewSubscriptionEndDate: number | Date | null;
|
|
177
|
+
paediatricsInterviewSubscriptionEndDate: number | Date | null;
|
|
176
178
|
plab1SubscriptionEndDate: number | Date | null;
|
|
177
179
|
plab2SubscriptionEndDate: number | Date | null;
|
|
178
180
|
settings: IUserSettings;
|
package/models/User.js
CHANGED
|
@@ -42,6 +42,7 @@ exports.subscriptionDates = [
|
|
|
42
42
|
'cstInterviewSubscriptionEndDate',
|
|
43
43
|
'imtInterviewSubscriptionEndDate',
|
|
44
44
|
'radiologyInterviewSubscriptionEndDate',
|
|
45
|
+
'paediatricsInterviewSubscriptionEndDate',
|
|
45
46
|
'plab1SubscriptionEndDate',
|
|
46
47
|
'plab2SubscriptionEndDate',
|
|
47
48
|
];
|
|
@@ -60,6 +61,7 @@ exports.dateProductMapping = {
|
|
|
60
61
|
cstInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_IMT,
|
|
61
62
|
imtInterviewSubscriptionEndDate: Product_1.EProductType.QBANK,
|
|
62
63
|
radiologyInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_RADIOLOGY,
|
|
64
|
+
paediatricsInterviewSubscriptionEndDate: Product_1.EProductType.INTERVIEW_PAEDIATRICS,
|
|
63
65
|
plab1SubscriptionEndDate: Product_1.EProductType.PLAB1,
|
|
64
66
|
plab2SubscriptionEndDate: Product_1.EProductType.PLAB2,
|
|
65
67
|
};
|
package/package.json
CHANGED
package/resolvers/constants.js
CHANGED
|
@@ -92,6 +92,11 @@ exports.productMapping = {
|
|
|
92
92
|
topicType: [models_1.ETopicType.INTERVIEW_RADIOLOGY],
|
|
93
93
|
mockType: ALL_MOCKS,
|
|
94
94
|
},
|
|
95
|
+
[models_1.EProductType.INTERVIEW_PAEDIATRICS]: {
|
|
96
|
+
db: enums_1.DB_TYPE.FINALS,
|
|
97
|
+
topicType: [models_1.ETopicType.INTERVIEW_PAEDIATRICS],
|
|
98
|
+
mockType: ALL_MOCKS,
|
|
99
|
+
},
|
|
95
100
|
[models_1.EProductType.PLAB1]: {
|
|
96
101
|
db: enums_1.DB_TYPE.FINALS,
|
|
97
102
|
topicType: [models_1.ETopicType.CLINICAL],
|
|
@@ -113,6 +118,7 @@ const topicEntitlementMap = {
|
|
|
113
118
|
[models_1.ETopicType.INTERVIEW_CST]: models_1.EEntitlementType.INTERVIEW_CST,
|
|
114
119
|
[models_1.ETopicType.INTERVIEW_IMT]: models_1.EEntitlementType.INTERVIEW_IMT,
|
|
115
120
|
[models_1.ETopicType.INTERVIEW_RADIOLOGY]: models_1.EEntitlementType.INTERVIEW_RADIOLOGY,
|
|
121
|
+
[models_1.ETopicType.INTERVIEW_PAEDIATRICS]: models_1.EEntitlementType.INTERVIEW_PAEDIATRICS,
|
|
116
122
|
};
|
|
117
123
|
const osceEntitlementMap = {
|
|
118
124
|
[models_1.EOsceType.HISTORY_TAKING]: models_1.EEntitlementType.HISTORY_TAKING,
|
|
@@ -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);
|