@quesmed/types 2.6.186 → 2.6.188

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.
@@ -46,7 +46,9 @@ export declare enum EProductType {
46
46
  QUANTITATIVE_REASONING = 51,
47
47
  SITUATIONAL_JUDGEMENT = 52,
48
48
  MRCP_VIDEO = 53,
49
- MRCP_BUNDLE = 54
49
+ MRCP_BUNDLE = 54,
50
+ COMPLETE_CLINICAL_BUNDLE = 55,
51
+ COMPLETE_UNDERGRADUATE_BUNDLE = 56
50
52
  }
51
53
  export declare enum EEntitlementType {
52
54
  ALL = 0,
@@ -50,6 +50,8 @@ var EProductType;
50
50
  EProductType[EProductType["SITUATIONAL_JUDGEMENT"] = 52] = "SITUATIONAL_JUDGEMENT";
51
51
  EProductType[EProductType["MRCP_VIDEO"] = 53] = "MRCP_VIDEO";
52
52
  EProductType[EProductType["MRCP_BUNDLE"] = 54] = "MRCP_BUNDLE";
53
+ EProductType[EProductType["COMPLETE_CLINICAL_BUNDLE"] = 55] = "COMPLETE_CLINICAL_BUNDLE";
54
+ EProductType[EProductType["COMPLETE_UNDERGRADUATE_BUNDLE"] = 56] = "COMPLETE_UNDERGRADUATE_BUNDLE";
53
55
  })(EProductType = exports.EProductType || (exports.EProductType = {}));
54
56
  var EEntitlementType;
55
57
  (function (EEntitlementType) {
@@ -63,6 +63,8 @@ export interface IPayload {
63
63
  qbankSubscriptionEndDate: number | null;
64
64
  osceSubscriptionEndDate: number | null;
65
65
  bundleSubscriptionEndDate: number | null;
66
+ undergradBundleSubscriptionEndDate: number | null;
67
+ completeClinicalBundleSubscriptionEndDate: number | null;
66
68
  anatomySubscriptionEndDate: number | null;
67
69
  medicalSciencesSubscriptionEndDate: number | null;
68
70
  anatomyBundleSubscriptionEndDate: number | null;
@@ -176,6 +178,8 @@ export interface IUser {
176
178
  qbankSubscriptionEndDate: number | Date | null;
177
179
  osceSubscriptionEndDate: number | Date | null;
178
180
  bundleSubscriptionEndDate: number | Date | null;
181
+ undergradBundleSubscriptionEndDate: number | Date | null;
182
+ completeClinicalBundleSubscriptionEndDate: number | Date | null;
179
183
  mrcpBundleSubscriptionEndDate: number | Date | null;
180
184
  mrcpPart1SubscriptionEndDate: number | Date | null;
181
185
  mrcpPart2SubscriptionEndDate: number | Date | null;
@@ -34,6 +34,8 @@ exports.subscriptionDates = [
34
34
  'qbankSubscriptionEndDate',
35
35
  'osceSubscriptionEndDate',
36
36
  'bundleSubscriptionEndDate',
37
+ 'undergradBundleSubscriptionEndDate',
38
+ 'completeClinicalBundleSubscriptionEndDate',
37
39
  'anatomySubscriptionEndDate',
38
40
  'medicalSciencesSubscriptionEndDate',
39
41
  'anatomyBundleSubscriptionEndDate',
@@ -56,6 +58,8 @@ exports.dateProductMapping = {
56
58
  qbankSubscriptionEndDate: Product_1.EProductType.QBANK,
57
59
  osceSubscriptionEndDate: Product_1.EProductType.OSCE,
58
60
  bundleSubscriptionEndDate: Product_1.EProductType.BUNDLE,
61
+ undergradBundleSubscriptionEndDate: Product_1.EProductType.COMPLETE_UNDERGRADUATE_BUNDLE,
62
+ completeClinicalBundleSubscriptionEndDate: Product_1.EProductType.COMPLETE_CLINICAL_BUNDLE,
59
63
  anatomySubscriptionEndDate: Product_1.EProductType.ANATOMY,
60
64
  medicalSciencesSubscriptionEndDate: Product_1.EProductType.MEDICAL_SCIENCES,
61
65
  anatomyBundleSubscriptionEndDate: Product_1.EProductType.ANATOMY_BUNDLE,
@@ -35,6 +35,16 @@ exports.productMapping = {
35
35
  topicType: ALL_TOPIC_TYPE_WITHOUT_ANATOMY,
36
36
  mockType: ALL_MOCKS_WITHOUT_ANATOMY,
37
37
  },
38
+ [models_1.EProductType.COMPLETE_CLINICAL_BUNDLE]: {
39
+ db: enums_1.DB_TYPE.FINALS,
40
+ topicType: ALL_TOPIC_TYPE,
41
+ mockType: ALL_MOCKS,
42
+ },
43
+ [models_1.EProductType.COMPLETE_UNDERGRADUATE_BUNDLE]: {
44
+ db: enums_1.DB_TYPE.FINALS,
45
+ topicType: ALL_TOPIC_TYPE,
46
+ mockType: ALL_MOCKS,
47
+ },
38
48
  [models_1.EProductType.MRCP_BUNDLE]: {
39
49
  db: enums_1.DB_TYPE.FINALS,
40
50
  topicType: [models_1.ETopicType.CLINICAL],
@@ -103,6 +103,8 @@ exports.USER_FIELDS = (0, client_1.gql) `
103
103
  qbankSubscriptionEndDate
104
104
  osceSubscriptionEndDate
105
105
  bundleSubscriptionEndDate
106
+ undergradBundleSubscriptionEndDate
107
+ completeClinicalBundleSubscriptionEndDate
106
108
 
107
109
  # pre-clinical
108
110
  anatomySubscriptionEndDate
@@ -13,9 +13,15 @@ export declare const RESET_QUES_DIFFICULTY: import("@apollo/client").DocumentNod
13
13
  export type IResetQueDifficultyVar = null;
14
14
  export type IResetQueDifficultyData = AdminData<boolean, 'resetQueDifficulty'>;
15
15
  export type IManageUserSubsVar = {
16
- username: string;
16
+ usernames: string[];
17
17
  password?: string;
18
18
  stripePriceIds: string[];
19
+ emailNotification?: {
20
+ subject?: string | null;
21
+ text?: string | null;
22
+ };
23
+ cancelAtPeriodEnd: boolean;
24
+ description?: string;
19
25
  };
20
26
  export declare const MANAGE_USER_SUBS: import("@apollo/client").DocumentNode;
21
27
  export type IManageUserSubsData = AdminData<boolean, 'manageUserSubs'>;
@@ -25,15 +25,21 @@ exports.RESET_QUES_DIFFICULTY = (0, client_1.gql) `
25
25
  `;
26
26
  exports.MANAGE_USER_SUBS = (0, client_1.gql) `
27
27
  mutation ManageUserSubs(
28
- $username: String!
28
+ $usernames: [String]!
29
29
  $password: String
30
30
  $stripePriceIds: [String!]!
31
+ $emailNotification: EmailInput
32
+ $cancelAtPeriodEnd: Boolean!
33
+ $description: String
31
34
  ) {
32
35
  admin {
33
36
  manageUserSubs(
34
- username: $username
37
+ usernames: $usernames
35
38
  password: $password
36
39
  stripePriceIds: $stripePriceIds
40
+ emailNotification: $emailNotification
41
+ cancelAtPeriodEnd: $cancelAtPeriodEnd
42
+ description: $description
37
43
  )
38
44
  }
39
45
  }
@@ -46,7 +46,9 @@ export declare enum EProductType {
46
46
  QUANTITATIVE_REASONING = 51,
47
47
  SITUATIONAL_JUDGEMENT = 52,
48
48
  MRCP_VIDEO = 53,
49
- MRCP_BUNDLE = 54
49
+ MRCP_BUNDLE = 54,
50
+ COMPLETE_CLINICAL_BUNDLE = 55,
51
+ COMPLETE_UNDERGRADUATE_BUNDLE = 56
50
52
  }
51
53
  export declare enum EEntitlementType {
52
54
  ALL = 0,
@@ -47,6 +47,8 @@ export var EProductType;
47
47
  EProductType[EProductType["SITUATIONAL_JUDGEMENT"] = 52] = "SITUATIONAL_JUDGEMENT";
48
48
  EProductType[EProductType["MRCP_VIDEO"] = 53] = "MRCP_VIDEO";
49
49
  EProductType[EProductType["MRCP_BUNDLE"] = 54] = "MRCP_BUNDLE";
50
+ EProductType[EProductType["COMPLETE_CLINICAL_BUNDLE"] = 55] = "COMPLETE_CLINICAL_BUNDLE";
51
+ EProductType[EProductType["COMPLETE_UNDERGRADUATE_BUNDLE"] = 56] = "COMPLETE_UNDERGRADUATE_BUNDLE";
50
52
  })(EProductType || (EProductType = {}));
51
53
  export var EEntitlementType;
52
54
  (function (EEntitlementType) {
@@ -63,6 +63,8 @@ export interface IPayload {
63
63
  qbankSubscriptionEndDate: number | null;
64
64
  osceSubscriptionEndDate: number | null;
65
65
  bundleSubscriptionEndDate: number | null;
66
+ undergradBundleSubscriptionEndDate: number | null;
67
+ completeClinicalBundleSubscriptionEndDate: number | null;
66
68
  anatomySubscriptionEndDate: number | null;
67
69
  medicalSciencesSubscriptionEndDate: number | null;
68
70
  anatomyBundleSubscriptionEndDate: number | null;
@@ -176,6 +178,8 @@ export interface IUser {
176
178
  qbankSubscriptionEndDate: number | Date | null;
177
179
  osceSubscriptionEndDate: number | Date | null;
178
180
  bundleSubscriptionEndDate: number | Date | null;
181
+ undergradBundleSubscriptionEndDate: number | Date | null;
182
+ completeClinicalBundleSubscriptionEndDate: number | Date | null;
179
183
  mrcpBundleSubscriptionEndDate: number | Date | null;
180
184
  mrcpPart1SubscriptionEndDate: number | Date | null;
181
185
  mrcpPart2SubscriptionEndDate: number | Date | null;
@@ -31,6 +31,8 @@ export const subscriptionDates = [
31
31
  'qbankSubscriptionEndDate',
32
32
  'osceSubscriptionEndDate',
33
33
  'bundleSubscriptionEndDate',
34
+ 'undergradBundleSubscriptionEndDate',
35
+ 'completeClinicalBundleSubscriptionEndDate',
34
36
  'anatomySubscriptionEndDate',
35
37
  'medicalSciencesSubscriptionEndDate',
36
38
  'anatomyBundleSubscriptionEndDate',
@@ -53,6 +55,8 @@ export const dateProductMapping = {
53
55
  qbankSubscriptionEndDate: EProductType.QBANK,
54
56
  osceSubscriptionEndDate: EProductType.OSCE,
55
57
  bundleSubscriptionEndDate: EProductType.BUNDLE,
58
+ undergradBundleSubscriptionEndDate: EProductType.COMPLETE_UNDERGRADUATE_BUNDLE,
59
+ completeClinicalBundleSubscriptionEndDate: EProductType.COMPLETE_CLINICAL_BUNDLE,
56
60
  anatomySubscriptionEndDate: EProductType.ANATOMY,
57
61
  medicalSciencesSubscriptionEndDate: EProductType.MEDICAL_SCIENCES,
58
62
  anatomyBundleSubscriptionEndDate: EProductType.ANATOMY_BUNDLE,
@@ -32,6 +32,16 @@ export const productMapping = {
32
32
  topicType: ALL_TOPIC_TYPE_WITHOUT_ANATOMY,
33
33
  mockType: ALL_MOCKS_WITHOUT_ANATOMY,
34
34
  },
35
+ [EProductType.COMPLETE_CLINICAL_BUNDLE]: {
36
+ db: DB_TYPE.FINALS,
37
+ topicType: ALL_TOPIC_TYPE,
38
+ mockType: ALL_MOCKS,
39
+ },
40
+ [EProductType.COMPLETE_UNDERGRADUATE_BUNDLE]: {
41
+ db: DB_TYPE.FINALS,
42
+ topicType: ALL_TOPIC_TYPE,
43
+ mockType: ALL_MOCKS,
44
+ },
35
45
  [EProductType.MRCP_BUNDLE]: {
36
46
  db: DB_TYPE.FINALS,
37
47
  topicType: [ETopicType.CLINICAL],
@@ -100,6 +100,8 @@ export const USER_FIELDS = gql `
100
100
  qbankSubscriptionEndDate
101
101
  osceSubscriptionEndDate
102
102
  bundleSubscriptionEndDate
103
+ undergradBundleSubscriptionEndDate
104
+ completeClinicalBundleSubscriptionEndDate
103
105
 
104
106
  # pre-clinical
105
107
  anatomySubscriptionEndDate
@@ -13,9 +13,15 @@ export declare const RESET_QUES_DIFFICULTY: import("@apollo/client").DocumentNod
13
13
  export type IResetQueDifficultyVar = null;
14
14
  export type IResetQueDifficultyData = AdminData<boolean, 'resetQueDifficulty'>;
15
15
  export type IManageUserSubsVar = {
16
- username: string;
16
+ usernames: string[];
17
17
  password?: string;
18
18
  stripePriceIds: string[];
19
+ emailNotification?: {
20
+ subject?: string | null;
21
+ text?: string | null;
22
+ };
23
+ cancelAtPeriodEnd: boolean;
24
+ description?: string;
19
25
  };
20
26
  export declare const MANAGE_USER_SUBS: import("@apollo/client").DocumentNode;
21
27
  export type IManageUserSubsData = AdminData<boolean, 'manageUserSubs'>;
@@ -22,15 +22,21 @@ export const RESET_QUES_DIFFICULTY = gql `
22
22
  `;
23
23
  export const MANAGE_USER_SUBS = gql `
24
24
  mutation ManageUserSubs(
25
- $username: String!
25
+ $usernames: [String]!
26
26
  $password: String
27
27
  $stripePriceIds: [String!]!
28
+ $emailNotification: EmailInput
29
+ $cancelAtPeriodEnd: Boolean!
30
+ $description: String
28
31
  ) {
29
32
  admin {
30
33
  manageUserSubs(
31
- username: $username
34
+ usernames: $usernames
32
35
  password: $password
33
36
  stripePriceIds: $stripePriceIds
37
+ emailNotification: $emailNotification
38
+ cancelAtPeriodEnd: $cancelAtPeriodEnd
39
+ description: $description
34
40
  )
35
41
  }
36
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.186",
3
+ "version": "2.6.188",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",