@quesmed/types 2.6.139 → 2.6.140

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.
@@ -163,6 +163,7 @@ const clinicalEntitlementMap = {
163
163
  [models_1.EProductType.PLAB1]: models_1.EEntitlementType.PLAB_1,
164
164
  [models_1.EProductType.MRCP_PART1]: models_1.EEntitlementType.MRCP_PART_1,
165
165
  [models_1.EProductType.MRCP_PART2]: models_1.EEntitlementType.MRCP_PART_2,
166
+ [models_1.EProductType.MRCP_VIDEO]: models_1.EEntitlementType.MRCP_VIDEO,
166
167
  };
167
168
  const getEntitlementFromTopicType = (typeId, productType, entitlementInfo) => {
168
169
  let entitlement;
@@ -1,6 +1,7 @@
1
1
  export declare const CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION: import("@apollo/client").DocumentNode;
2
2
  export interface ICreateNewSubscriptionCheckoutSessionVar {
3
3
  priceId: string;
4
+ additionalPriceId?: string;
4
5
  }
5
6
  export type ICreateNewSubscriptionCheckoutSessionData = {
6
7
  validUserToken: {
@@ -10,6 +11,7 @@ export type ICreateNewSubscriptionCheckoutSessionData = {
10
11
  export declare const CREATE_NEW_ONE_OFF_CHECKOUT_SESSION: import("@apollo/client").DocumentNode;
11
12
  export interface ICreateNewOneOffCheckoutSessionVar {
12
13
  priceId: string;
14
+ additionalPriceId?: string;
13
15
  }
14
16
  export type ICreateNewOneOffCheckoutSessionData = {
15
17
  validUserToken: {
@@ -3,16 +3,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
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
- mutation CreateNewSubscriptionCheckoutSession($priceId: String!) {
6
+ mutation CreateNewSubscriptionCheckoutSession(
7
+ $priceId: String!
8
+ $additionalPriceId: String
9
+ ) {
7
10
  validUserToken {
8
- createNewSubscriptionCheckoutSession(priceId: $priceId)
11
+ createNewSubscriptionCheckoutSession(
12
+ priceId: $priceId
13
+ additionalPriceId: $additionalPriceId
14
+ )
9
15
  }
10
16
  }
11
17
  `;
12
18
  exports.CREATE_NEW_ONE_OFF_CHECKOUT_SESSION = (0, client_1.gql) `
13
- mutation CreateNewOneOffCheckoutSession($priceId: String!) {
19
+ mutation CreateNewOneOffCheckoutSession(
20
+ $priceId: String!
21
+ $additionalPriceId: String
22
+ ) {
14
23
  validUserToken {
15
- createNewOneOffCheckoutSession(priceId: $priceId)
24
+ createNewOneOffCheckoutSession(
25
+ priceId: $priceId
26
+ additionalPriceId: $additionalPriceId
27
+ )
16
28
  }
17
29
  }
18
30
  `;
@@ -160,6 +160,7 @@ const clinicalEntitlementMap = {
160
160
  [EProductType.PLAB1]: EEntitlementType.PLAB_1,
161
161
  [EProductType.MRCP_PART1]: EEntitlementType.MRCP_PART_1,
162
162
  [EProductType.MRCP_PART2]: EEntitlementType.MRCP_PART_2,
163
+ [EProductType.MRCP_VIDEO]: EEntitlementType.MRCP_VIDEO,
163
164
  };
164
165
  export const getEntitlementFromTopicType = (typeId, productType, entitlementInfo) => {
165
166
  let entitlement;
@@ -1,6 +1,7 @@
1
1
  export declare const CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION: import("@apollo/client").DocumentNode;
2
2
  export interface ICreateNewSubscriptionCheckoutSessionVar {
3
3
  priceId: string;
4
+ additionalPriceId?: string;
4
5
  }
5
6
  export type ICreateNewSubscriptionCheckoutSessionData = {
6
7
  validUserToken: {
@@ -10,6 +11,7 @@ export type ICreateNewSubscriptionCheckoutSessionData = {
10
11
  export declare const CREATE_NEW_ONE_OFF_CHECKOUT_SESSION: import("@apollo/client").DocumentNode;
11
12
  export interface ICreateNewOneOffCheckoutSessionVar {
12
13
  priceId: string;
14
+ additionalPriceId?: string;
13
15
  }
14
16
  export type ICreateNewOneOffCheckoutSessionData = {
15
17
  validUserToken: {
@@ -1,15 +1,27 @@
1
1
  import { gql } from '@apollo/client';
2
2
  export const CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION = gql `
3
- mutation CreateNewSubscriptionCheckoutSession($priceId: String!) {
3
+ mutation CreateNewSubscriptionCheckoutSession(
4
+ $priceId: String!
5
+ $additionalPriceId: String
6
+ ) {
4
7
  validUserToken {
5
- createNewSubscriptionCheckoutSession(priceId: $priceId)
8
+ createNewSubscriptionCheckoutSession(
9
+ priceId: $priceId
10
+ additionalPriceId: $additionalPriceId
11
+ )
6
12
  }
7
13
  }
8
14
  `;
9
15
  export const CREATE_NEW_ONE_OFF_CHECKOUT_SESSION = gql `
10
- mutation CreateNewOneOffCheckoutSession($priceId: String!) {
16
+ mutation CreateNewOneOffCheckoutSession(
17
+ $priceId: String!
18
+ $additionalPriceId: String
19
+ ) {
11
20
  validUserToken {
12
- createNewOneOffCheckoutSession(priceId: $priceId)
21
+ createNewOneOffCheckoutSession(
22
+ priceId: $priceId
23
+ additionalPriceId: $additionalPriceId
24
+ )
13
25
  }
14
26
  }
15
27
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.139",
3
+ "version": "2.6.140",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",