@quesmed/types-rn 2.5.75 → 2.5.77
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/User.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export interface IPayload {
|
|
|
54
54
|
anaestheticsInterviewSubscriptionEndDate: number | null;
|
|
55
55
|
cstInterviewSubscriptionEndDate: number | null;
|
|
56
56
|
imtInterviewSubscriptionEndDate: number | null;
|
|
57
|
+
radiologyInterviewSubscriptionEndDate: number | null;
|
|
57
58
|
ver: number;
|
|
58
59
|
}
|
|
59
60
|
export interface IDailyProgressVar {
|
|
@@ -129,6 +130,7 @@ export interface IUser {
|
|
|
129
130
|
anaestheticsInterviewSubscriptionEndDate: number | Date | null;
|
|
130
131
|
cstInterviewSubscriptionEndDate: number | Date | null;
|
|
131
132
|
imtInterviewSubscriptionEndDate: number | Date | null;
|
|
133
|
+
radiologyInterviewSubscriptionEndDate: number | Date | null;
|
|
132
134
|
questionHighlights?: IQuestionHighlights[];
|
|
133
135
|
}
|
|
134
136
|
export declare function currentClassYear(createdAtUnix: number, classYear: IClassYear, compareUnix?: number): IClassYear;
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ export type IUserVar = {
|
|
|
5
5
|
};
|
|
6
6
|
export type IUserData = RestrictedData<graphqlNormalize & IUser, 'user'>;
|
|
7
7
|
export declare const USER: import("@apollo/client").DocumentNode;
|
|
8
|
+
export declare const GET_USER_SUBSCRIPTIONS: import("@apollo/client").DocumentNode;
|
|
8
9
|
export declare const REFERRALS: import("@apollo/client").DocumentNode;
|
|
9
10
|
export declare const USER_COMPLETED_DATA: import("@apollo/client").DocumentNode;
|
|
10
11
|
export type IDailyFeedVar = null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DAILY_FEED = exports.USER_COMPLETED_DATA = exports.REFERRALS = exports.USER = void 0;
|
|
3
|
+
exports.DAILY_FEED = exports.USER_COMPLETED_DATA = exports.REFERRALS = exports.GET_USER_SUBSCRIPTIONS = exports.USER = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const fragments_1 = require("../../fragments");
|
|
6
6
|
const user_1 = require("../../fragments/user");
|
|
@@ -14,6 +14,27 @@ exports.USER = (0, client_1.gql) `
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
`;
|
|
17
|
+
exports.GET_USER_SUBSCRIPTIONS = (0, client_1.gql) `
|
|
18
|
+
query User($active: Boolean) {
|
|
19
|
+
restricted {
|
|
20
|
+
user {
|
|
21
|
+
subscriptions(active: $active) {
|
|
22
|
+
id
|
|
23
|
+
productId
|
|
24
|
+
periodEndAt
|
|
25
|
+
product {
|
|
26
|
+
id
|
|
27
|
+
name
|
|
28
|
+
typeId
|
|
29
|
+
duration
|
|
30
|
+
price
|
|
31
|
+
stripePriceId
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
17
38
|
exports.REFERRALS = (0, client_1.gql) `
|
|
18
39
|
query Referrals {
|
|
19
40
|
restricted {
|