@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.
@@ -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.29",
3
+ "version": "2.5.31",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -1,4 +1,7 @@
1
- import { IProduct } from '../../models';
2
- import { graphqlNormalize, RootData } from '../types';
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