@quesmed/types 2.6.158 → 2.6.159

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.
@@ -115,7 +115,7 @@ exports.productMapping = {
115
115
  },
116
116
  [models_1.EProductType.UCAT]: {
117
117
  db: enums_1.DB_TYPE.UCAT,
118
- topicType: [],
118
+ topicType: [models_1.ETopicType.UCAT],
119
119
  mockType: [
120
120
  models_1.EMockTestType.FULL_MOCK,
121
121
  models_1.EMockTestType.VERBAL_REASONING,
@@ -1,6 +1,8 @@
1
1
  import { RootData } from './../types';
2
2
  export declare const CUSTOMER_PORTAL: import("@apollo/client").DocumentNode;
3
- export type ICustomerPortalVar = null;
3
+ export type ICustomerPortalVar = {
4
+ returnUrl?: string;
5
+ };
4
6
  export type ICustomerPortalData = RootData<string, 'customerPortal'>;
5
7
  export interface IStripeLineItem {
6
8
  price: string;
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.STRIPE_HOMEPAGE_CHECKOUT_SESSION = exports.CUSTOMER_PORTAL = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  exports.CUSTOMER_PORTAL = (0, client_1.gql) `
6
- mutation CustomerPortal {
7
- customerPortal
6
+ mutation CustomerPortal($returnUrl: String) {
7
+ customerPortal(returnUrl: $returnUrl)
8
8
  }
9
9
  `;
10
10
  exports.STRIPE_HOMEPAGE_CHECKOUT_SESSION = (0, client_1.gql) `
@@ -2,6 +2,8 @@ export declare const CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION: import("@apollo/c
2
2
  export interface ICreateNewSubscriptionCheckoutSessionVar {
3
3
  priceId: string;
4
4
  additionalPriceId?: string;
5
+ successUrl?: string;
6
+ cancelUrl?: string;
5
7
  }
6
8
  export type ICreateNewSubscriptionCheckoutSessionData = {
7
9
  validUserToken: {
@@ -12,6 +14,8 @@ export declare const CREATE_NEW_ONE_OFF_CHECKOUT_SESSION: import("@apollo/client
12
14
  export interface ICreateNewOneOffCheckoutSessionVar {
13
15
  priceId: string;
14
16
  additionalPriceId?: string;
17
+ successUrl?: string;
18
+ cancelUrl?: string;
15
19
  }
16
20
  export type ICreateNewOneOffCheckoutSessionData = {
17
21
  validUserToken: {
@@ -6,11 +6,15 @@ exports.CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION = (0, client_1.gql) `
6
6
  mutation CreateNewSubscriptionCheckoutSession(
7
7
  $priceId: String!
8
8
  $additionalPriceId: String
9
+ $successUrl: String
10
+ $cancelUrl: String
9
11
  ) {
10
12
  validUserToken {
11
13
  createNewSubscriptionCheckoutSession(
12
14
  priceId: $priceId
13
15
  additionalPriceId: $additionalPriceId
16
+ successUrl: $successUrl
17
+ cancelUrl: $cancelUrl
14
18
  )
15
19
  }
16
20
  }
@@ -19,11 +23,15 @@ exports.CREATE_NEW_ONE_OFF_CHECKOUT_SESSION = (0, client_1.gql) `
19
23
  mutation CreateNewOneOffCheckoutSession(
20
24
  $priceId: String!
21
25
  $additionalPriceId: String
26
+ $successUrl: String
27
+ $cancelUrl: String
22
28
  ) {
23
29
  validUserToken {
24
30
  createNewOneOffCheckoutSession(
25
31
  priceId: $priceId
26
32
  additionalPriceId: $additionalPriceId
33
+ successUrl: $successUrl
34
+ cancelUrl: $cancelUrl
27
35
  )
28
36
  }
29
37
  }
@@ -112,7 +112,7 @@ export const productMapping = {
112
112
  },
113
113
  [EProductType.UCAT]: {
114
114
  db: DB_TYPE.UCAT,
115
- topicType: [],
115
+ topicType: [ETopicType.UCAT],
116
116
  mockType: [
117
117
  EMockTestType.FULL_MOCK,
118
118
  EMockTestType.VERBAL_REASONING,
@@ -1,6 +1,8 @@
1
1
  import { RootData } from './../types';
2
2
  export declare const CUSTOMER_PORTAL: import("@apollo/client").DocumentNode;
3
- export type ICustomerPortalVar = null;
3
+ export type ICustomerPortalVar = {
4
+ returnUrl?: string;
5
+ };
4
6
  export type ICustomerPortalData = RootData<string, 'customerPortal'>;
5
7
  export interface IStripeLineItem {
6
8
  price: string;
@@ -1,7 +1,7 @@
1
1
  import { gql } from '@apollo/client';
2
2
  export const CUSTOMER_PORTAL = gql `
3
- mutation CustomerPortal {
4
- customerPortal
3
+ mutation CustomerPortal($returnUrl: String) {
4
+ customerPortal(returnUrl: $returnUrl)
5
5
  }
6
6
  `;
7
7
  export const STRIPE_HOMEPAGE_CHECKOUT_SESSION = gql `
@@ -2,6 +2,8 @@ export declare const CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION: import("@apollo/c
2
2
  export interface ICreateNewSubscriptionCheckoutSessionVar {
3
3
  priceId: string;
4
4
  additionalPriceId?: string;
5
+ successUrl?: string;
6
+ cancelUrl?: string;
5
7
  }
6
8
  export type ICreateNewSubscriptionCheckoutSessionData = {
7
9
  validUserToken: {
@@ -12,6 +14,8 @@ export declare const CREATE_NEW_ONE_OFF_CHECKOUT_SESSION: import("@apollo/client
12
14
  export interface ICreateNewOneOffCheckoutSessionVar {
13
15
  priceId: string;
14
16
  additionalPriceId?: string;
17
+ successUrl?: string;
18
+ cancelUrl?: string;
15
19
  }
16
20
  export type ICreateNewOneOffCheckoutSessionData = {
17
21
  validUserToken: {
@@ -3,11 +3,15 @@ export const CREATE_NEW_SUBSCRIPTION_CHECKOUT_SESSION = gql `
3
3
  mutation CreateNewSubscriptionCheckoutSession(
4
4
  $priceId: String!
5
5
  $additionalPriceId: String
6
+ $successUrl: String
7
+ $cancelUrl: String
6
8
  ) {
7
9
  validUserToken {
8
10
  createNewSubscriptionCheckoutSession(
9
11
  priceId: $priceId
10
12
  additionalPriceId: $additionalPriceId
13
+ successUrl: $successUrl
14
+ cancelUrl: $cancelUrl
11
15
  )
12
16
  }
13
17
  }
@@ -16,11 +20,15 @@ export const CREATE_NEW_ONE_OFF_CHECKOUT_SESSION = gql `
16
20
  mutation CreateNewOneOffCheckoutSession(
17
21
  $priceId: String!
18
22
  $additionalPriceId: String
23
+ $successUrl: String
24
+ $cancelUrl: String
19
25
  ) {
20
26
  validUserToken {
21
27
  createNewOneOffCheckoutSession(
22
28
  priceId: $priceId
23
29
  additionalPriceId: $additionalPriceId
30
+ successUrl: $successUrl
31
+ cancelUrl: $cancelUrl
24
32
  )
25
33
  }
26
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.158",
3
+ "version": "2.6.159",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",