@quesmed/types 2.6.139 → 2.6.141

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.
@@ -294,7 +294,12 @@ export interface IUserStats {
294
294
  userId: number;
295
295
  score: number;
296
296
  percentile: number;
297
- median: number;
297
+ meanScore: number;
298
+ meanPercentile: number;
299
+ medianScore: number;
300
+ medianPercentile: number;
301
+ stddevScore: number;
302
+ stddevPercentile: number;
298
303
  series: [x: number, y: number][];
299
304
  }
300
305
  export interface IUserActivity {
@@ -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
  `;
@@ -124,7 +124,12 @@ exports.USER_STATS = (0, client_1.gql) `
124
124
  userId
125
125
  score
126
126
  percentile
127
- median
127
+ medianScore
128
+ medianPercentile
129
+ meanScore
130
+ meanPercentile
131
+ stddevScore
132
+ stddevPercentile
128
133
  series
129
134
  }
130
135
  }
@@ -294,7 +294,12 @@ export interface IUserStats {
294
294
  userId: number;
295
295
  score: number;
296
296
  percentile: number;
297
- median: number;
297
+ meanScore: number;
298
+ meanPercentile: number;
299
+ medianScore: number;
300
+ medianPercentile: number;
301
+ stddevScore: number;
302
+ stddevPercentile: number;
298
303
  series: [x: number, y: number][];
299
304
  }
300
305
  export interface IUserActivity {
@@ -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
  `;
@@ -121,7 +121,12 @@ export const USER_STATS = gql `
121
121
  userId
122
122
  score
123
123
  percentile
124
- median
124
+ medianScore
125
+ medianPercentile
126
+ meanScore
127
+ meanPercentile
128
+ stddevScore
129
+ stddevPercentile
125
130
  series
126
131
  }
127
132
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.139",
3
+ "version": "2.6.141",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",