@quesmed/types-rn 2.5.30 → 2.5.32

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.
@@ -11,7 +11,9 @@ export declare enum EProductType {
11
11
  MRCP_PART2 = 8,
12
12
  PACES = 9,
13
13
  MSRA = 10,
14
- INTERVIEW = 11
14
+ INTERVIEW_ANAESTHETICS = 11,
15
+ INTERVIEW_CST = 12,
16
+ INTERVIEW_IMT = 13
15
17
  }
16
18
  export interface IProduct {
17
19
  id: Id;
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["INTERVIEW"] = 11] = "INTERVIEW";
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.5.30",
3
+ "version": "2.5.32",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -7,6 +7,15 @@ export type ICreateNewSubscriptionCheckoutSessionData = {
7
7
  createNewSubscriptionCheckoutSession: string | null;
8
8
  };
9
9
  };
10
+ export declare const CREATE_NEW_ONE_OFF_CHECKOUT_SESSION: import("@apollo/client").DocumentNode;
11
+ export interface ICreateNewOneOffCheckoutSessionVar {
12
+ priceId: string;
13
+ }
14
+ export type ICreateNewOneOffCheckoutSessionData = {
15
+ validUserToken: {
16
+ createNewOneOffCheckoutSession: string | null;
17
+ };
18
+ };
10
19
  export type IRenewTokenVar = null;
11
20
  export type IRenewTokenData = {
12
21
  validUserToken: {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VALID_USER_TOKEN = exports.CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION = void 0;
3
+ exports.VALID_USER_TOKEN = exports.CREATE_NEW_ONE_OFF_CHECKOUT_SESSION = exports.CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  exports.CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION = (0, client_1.gql) `
6
6
  mutation CreateNewSubscriptionCheckoutSession($priceId: String!) {
@@ -9,6 +9,13 @@ exports.CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION = (0, client_1.gql) `
9
9
  }
10
10
  }
11
11
  `;
12
+ exports.CREATE_NEW_ONE_OFF_CHECKOUT_SESSION = (0, client_1.gql) `
13
+ mutation CreateNewOneOffCheckoutSession($priceId: String!) {
14
+ validUserToken {
15
+ createNewOneOffCheckoutSession(priceId: $priceId)
16
+ }
17
+ }
18
+ `;
12
19
  exports.VALID_USER_TOKEN = (0, client_1.gql) `
13
20
  mutation ValidUserToken {
14
21
  validUserToken {