@quesmed/types-rn 2.5.29 → 2.5.31
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 +3 -1
- package/models/Product.js +3 -1
- package/models/User.d.ts +20 -0
- package/package.json +1 -1
- package/resolvers/query/product.d.ts +5 -2
- package/resolvers/query/product.js +2 -2
package/models/Product.d.ts
CHANGED
package/models/Product.js
CHANGED
|
@@ -14,7 +14,9 @@ var EProductType;
|
|
|
14
14
|
EProductType[EProductType["MRCP_PART2"] = 8] = "MRCP_PART2";
|
|
15
15
|
EProductType[EProductType["PACES"] = 9] = "PACES";
|
|
16
16
|
EProductType[EProductType["MSRA"] = 10] = "MSRA";
|
|
17
|
-
EProductType[EProductType["
|
|
17
|
+
EProductType[EProductType["INTERVIEW_ANAESTHETICS"] = 11] = "INTERVIEW_ANAESTHETICS";
|
|
18
|
+
EProductType[EProductType["INTERVIEW_CST"] = 12] = "INTERVIEW_CST";
|
|
19
|
+
EProductType[EProductType["INTERVIEW_IMT"] = 13] = "INTERVIEW_IMT";
|
|
18
20
|
})(EProductType = exports.EProductType || (exports.EProductType = {}));
|
|
19
21
|
var EAppType;
|
|
20
22
|
(function (EAppType) {
|
package/models/User.d.ts
CHANGED
|
@@ -35,9 +35,19 @@ export interface IPayload {
|
|
|
35
35
|
accessLevel: IAccessLevel;
|
|
36
36
|
tocAccepted: boolean;
|
|
37
37
|
exp: number;
|
|
38
|
+
anatomySubscriptionEndDate: number | null;
|
|
39
|
+
medicalSciencesSubscriptionEndDate: number | null;
|
|
40
|
+
anatomyBundleSubscriptionEndDate: number | null;
|
|
38
41
|
qbankSubscriptionEndDate: number | null;
|
|
39
42
|
osceSubscriptionEndDate: number | null;
|
|
40
43
|
bundleSubscriptionEndDate: number | null;
|
|
44
|
+
mrcpPart1SubscriptionEndDate: number | null;
|
|
45
|
+
mrcpPart2SubscriptionEndDate: number | null;
|
|
46
|
+
pacesSubscriptionEndDate: number | null;
|
|
47
|
+
msraSubscriptionEndDate: number | null;
|
|
48
|
+
anaestheticsInterviewSubscriptionEndDate: number | null;
|
|
49
|
+
cstInterviewSubscriptionEndDate: number | null;
|
|
50
|
+
imtInterviewSubscriptionEndDate: number | null;
|
|
41
51
|
ver: number;
|
|
42
52
|
}
|
|
43
53
|
export interface IDailyProgressVar {
|
|
@@ -100,9 +110,19 @@ export interface IUser {
|
|
|
100
110
|
userProgress: IUserProgressData;
|
|
101
111
|
notifications: INotification[];
|
|
102
112
|
subscriptions: ISubscription[];
|
|
113
|
+
anatomySubscriptionEndDate: number | Date | null;
|
|
114
|
+
medicalSciencesSubscriptionEndDate: number | Date | null;
|
|
115
|
+
anatomyBundleSubscriptionEndDate: number | Date | null;
|
|
103
116
|
qbankSubscriptionEndDate: number | Date | null;
|
|
104
117
|
osceSubscriptionEndDate: number | Date | null;
|
|
105
118
|
bundleSubscriptionEndDate: number | Date | null;
|
|
119
|
+
mrcpPart1SubscriptionEndDate: number | Date | null;
|
|
120
|
+
mrcpPart2SubscriptionEndDate: number | Date | null;
|
|
121
|
+
pacesSubscriptionEndDate: number | Date | null;
|
|
122
|
+
msraSubscriptionEndDate: number | Date | null;
|
|
123
|
+
anaestheticsInterviewSubscriptionEndDate: number | Date | null;
|
|
124
|
+
cstInterviewSubscriptionEndDate: number | Date | null;
|
|
125
|
+
imtInterviewSubscriptionEndDate: number | Date | null;
|
|
106
126
|
questionHighlights?: IQuestionHighlights[];
|
|
107
127
|
}
|
|
108
128
|
export declare function currentClassYear(createdAtUnix: number, classYear: IClassYear, compareUnix?: number): IClassYear;
|
package/package.json
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { IProduct } from '../../models';
|
|
2
|
-
import {
|
|
1
|
+
import { EProductType, IProduct } from '../../models';
|
|
2
|
+
import { RootData, graphqlNormalize } from '../types';
|
|
3
3
|
export type IProductsData = RootData<(graphqlNormalize & IProduct)[], 'products'>;
|
|
4
|
+
export interface IProductsVar {
|
|
5
|
+
typeId: EProductType;
|
|
6
|
+
}
|
|
4
7
|
export declare const PRODUCTS: import("@apollo/client").DocumentNode;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PRODUCTS = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.PRODUCTS = (0, client_1.gql) `
|
|
6
|
-
query Products {
|
|
7
|
-
products {
|
|
6
|
+
query Products($typeId: Int!) {
|
|
7
|
+
products(typeId: $typeId) {
|
|
8
8
|
id
|
|
9
9
|
createdAt
|
|
10
10
|
description
|