@quesmed/types 2.5.75 → 2.5.77

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.
@@ -54,6 +54,7 @@ export interface IPayload {
54
54
  anaestheticsInterviewSubscriptionEndDate: number | null;
55
55
  cstInterviewSubscriptionEndDate: number | null;
56
56
  imtInterviewSubscriptionEndDate: number | null;
57
+ radiologyInterviewSubscriptionEndDate: number | null;
57
58
  ver: number;
58
59
  }
59
60
  export interface IDailyProgressVar {
@@ -129,6 +130,7 @@ export interface IUser {
129
130
  anaestheticsInterviewSubscriptionEndDate: number | Date | null;
130
131
  cstInterviewSubscriptionEndDate: number | Date | null;
131
132
  imtInterviewSubscriptionEndDate: number | Date | null;
133
+ radiologyInterviewSubscriptionEndDate: number | Date | null;
132
134
  questionHighlights?: IQuestionHighlights[];
133
135
  }
134
136
  export declare function currentClassYear(createdAtUnix: number, classYear: IClassYear, compareUnix?: number): IClassYear;
@@ -55,6 +55,7 @@ exports.USER_FIELDS = (0, client_1.gql) `
55
55
  anaestheticsInterviewSubscriptionEndDate
56
56
  cstInterviewSubscriptionEndDate
57
57
  imtInterviewSubscriptionEndDate
58
+ radiologyInterviewSubscriptionEndDate
58
59
 
59
60
  # user-specific keys
60
61
  # marksheets
@@ -5,6 +5,7 @@ export type IUserVar = {
5
5
  };
6
6
  export type IUserData = RestrictedData<graphqlNormalize & IUser, 'user'>;
7
7
  export declare const USER: import("@apollo/client").DocumentNode;
8
+ export declare const GET_USER_SUBSCRIPTIONS: import("@apollo/client").DocumentNode;
8
9
  export declare const REFERRALS: import("@apollo/client").DocumentNode;
9
10
  export declare const USER_COMPLETED_DATA: import("@apollo/client").DocumentNode;
10
11
  export type IDailyFeedVar = null;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DAILY_FEED = exports.USER_COMPLETED_DATA = exports.REFERRALS = exports.USER = void 0;
3
+ exports.DAILY_FEED = exports.USER_COMPLETED_DATA = exports.REFERRALS = exports.GET_USER_SUBSCRIPTIONS = exports.USER = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  const fragments_1 = require("../../fragments");
6
6
  const user_1 = require("../../fragments/user");
@@ -14,6 +14,27 @@ exports.USER = (0, client_1.gql) `
14
14
  }
15
15
  }
16
16
  `;
17
+ exports.GET_USER_SUBSCRIPTIONS = (0, client_1.gql) `
18
+ query User($active: Boolean) {
19
+ restricted {
20
+ user {
21
+ subscriptions(active: $active) {
22
+ id
23
+ productId
24
+ periodEndAt
25
+ product {
26
+ id
27
+ name
28
+ typeId
29
+ duration
30
+ price
31
+ stripePriceId
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
37
+ `;
17
38
  exports.REFERRALS = (0, client_1.gql) `
18
39
  query Referrals {
19
40
  restricted {
@@ -54,6 +54,7 @@ export interface IPayload {
54
54
  anaestheticsInterviewSubscriptionEndDate: number | null;
55
55
  cstInterviewSubscriptionEndDate: number | null;
56
56
  imtInterviewSubscriptionEndDate: number | null;
57
+ radiologyInterviewSubscriptionEndDate: number | null;
57
58
  ver: number;
58
59
  }
59
60
  export interface IDailyProgressVar {
@@ -129,6 +130,7 @@ export interface IUser {
129
130
  anaestheticsInterviewSubscriptionEndDate: number | Date | null;
130
131
  cstInterviewSubscriptionEndDate: number | Date | null;
131
132
  imtInterviewSubscriptionEndDate: number | Date | null;
133
+ radiologyInterviewSubscriptionEndDate: number | Date | null;
132
134
  questionHighlights?: IQuestionHighlights[];
133
135
  }
134
136
  export declare function currentClassYear(createdAtUnix: number, classYear: IClassYear, compareUnix?: number): IClassYear;
@@ -52,6 +52,7 @@ export const USER_FIELDS = gql `
52
52
  anaestheticsInterviewSubscriptionEndDate
53
53
  cstInterviewSubscriptionEndDate
54
54
  imtInterviewSubscriptionEndDate
55
+ radiologyInterviewSubscriptionEndDate
55
56
 
56
57
  # user-specific keys
57
58
  # marksheets
@@ -5,6 +5,7 @@ export type IUserVar = {
5
5
  };
6
6
  export type IUserData = RestrictedData<graphqlNormalize & IUser, 'user'>;
7
7
  export declare const USER: import("@apollo/client").DocumentNode;
8
+ export declare const GET_USER_SUBSCRIPTIONS: import("@apollo/client").DocumentNode;
8
9
  export declare const REFERRALS: import("@apollo/client").DocumentNode;
9
10
  export declare const USER_COMPLETED_DATA: import("@apollo/client").DocumentNode;
10
11
  export type IDailyFeedVar = null;
@@ -11,6 +11,27 @@ export const USER = gql `
11
11
  }
12
12
  }
13
13
  `;
14
+ export const GET_USER_SUBSCRIPTIONS = gql `
15
+ query User($active: Boolean) {
16
+ restricted {
17
+ user {
18
+ subscriptions(active: $active) {
19
+ id
20
+ productId
21
+ periodEndAt
22
+ product {
23
+ id
24
+ name
25
+ typeId
26
+ duration
27
+ price
28
+ stripePriceId
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
34
+ `;
14
35
  export const REFERRALS = gql `
15
36
  query Referrals {
16
37
  restricted {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.5.75",
3
+ "version": "2.5.77",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",