@quesmed/types-rn 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.158",
3
+ "version": "2.6.159",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -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
  }