@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.
- package/dist/cjs/models/User.d.ts +6 -1
- package/dist/cjs/resolvers/constants.js +1 -0
- package/dist/cjs/resolvers/mutation/validUserToken/user.d.ts +2 -0
- package/dist/cjs/resolvers/mutation/validUserToken/user.js +16 -4
- package/dist/cjs/resolvers/query/restricted/user.js +6 -1
- package/dist/mjs/models/User.d.ts +6 -1
- package/dist/mjs/resolvers/constants.js +1 -0
- package/dist/mjs/resolvers/mutation/validUserToken/user.d.ts +2 -0
- package/dist/mjs/resolvers/mutation/validUserToken/user.js +16 -4
- package/dist/mjs/resolvers/query/restricted/user.js +6 -1
- package/package.json +1 -1
|
@@ -294,7 +294,12 @@ export interface IUserStats {
|
|
|
294
294
|
userId: number;
|
|
295
295
|
score: number;
|
|
296
296
|
percentile: number;
|
|
297
|
-
|
|
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(
|
|
6
|
+
mutation CreateNewSubscriptionCheckoutSession(
|
|
7
|
+
$priceId: String!
|
|
8
|
+
$additionalPriceId: String
|
|
9
|
+
) {
|
|
7
10
|
validUserToken {
|
|
8
|
-
createNewSubscriptionCheckoutSession(
|
|
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(
|
|
19
|
+
mutation CreateNewOneOffCheckoutSession(
|
|
20
|
+
$priceId: String!
|
|
21
|
+
$additionalPriceId: String
|
|
22
|
+
) {
|
|
14
23
|
validUserToken {
|
|
15
|
-
createNewOneOffCheckoutSession(
|
|
24
|
+
createNewOneOffCheckoutSession(
|
|
25
|
+
priceId: $priceId
|
|
26
|
+
additionalPriceId: $additionalPriceId
|
|
27
|
+
)
|
|
16
28
|
}
|
|
17
29
|
}
|
|
18
30
|
`;
|
|
@@ -294,7 +294,12 @@ export interface IUserStats {
|
|
|
294
294
|
userId: number;
|
|
295
295
|
score: number;
|
|
296
296
|
percentile: number;
|
|
297
|
-
|
|
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(
|
|
3
|
+
mutation CreateNewSubscriptionCheckoutSession(
|
|
4
|
+
$priceId: String!
|
|
5
|
+
$additionalPriceId: String
|
|
6
|
+
) {
|
|
4
7
|
validUserToken {
|
|
5
|
-
createNewSubscriptionCheckoutSession(
|
|
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(
|
|
16
|
+
mutation CreateNewOneOffCheckoutSession(
|
|
17
|
+
$priceId: String!
|
|
18
|
+
$additionalPriceId: String
|
|
19
|
+
) {
|
|
11
20
|
validUserToken {
|
|
12
|
-
createNewOneOffCheckoutSession(
|
|
21
|
+
createNewOneOffCheckoutSession(
|
|
22
|
+
priceId: $priceId
|
|
23
|
+
additionalPriceId: $additionalPriceId
|
|
24
|
+
)
|
|
13
25
|
}
|
|
14
26
|
}
|
|
15
27
|
`;
|