@quesmed/types 2.5.74 → 2.5.76

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.
@@ -14,20 +14,10 @@ exports.DUPLICATE_PRESET = (0, client_1.gql) `
14
14
  restricted {
15
15
  duplicatePreset(presetId: $presetId) {
16
16
  id
17
- createdAt
18
- updatedAt
17
+ userId
19
18
  name
20
- likes
21
19
  topicType
22
- total
23
- correct
24
- incorrect
25
- userId
26
- university {
27
- id
28
- name
29
- country
30
- }
20
+ likes
31
21
  topics {
32
22
  id
33
23
  name
@@ -45,20 +35,10 @@ exports.EDIT_PRESET = (0, client_1.gql) `
45
35
  restricted {
46
36
  editPreset(presetId: $presetId, data: $data) {
47
37
  id
48
- createdAt
49
- updatedAt
38
+ userId
50
39
  name
51
- likes
52
40
  topicType
53
- total
54
- correct
55
- incorrect
56
- userId
57
- university {
58
- id
59
- name
60
- country
61
- }
41
+ likes
62
42
  topics {
63
43
  id
64
44
  name
@@ -77,19 +57,10 @@ exports.CREATE_PRESET = (0, client_1.gql) `
77
57
  createPreset(data: $data) {
78
58
  id
79
59
  createdAt
80
- updatedAt
60
+ userId
81
61
  name
82
- likes
83
62
  topicType
84
- total
85
- correct
86
- incorrect
87
- userId
88
- university {
89
- id
90
- name
91
- country
92
- }
63
+ likes
93
64
  topics {
94
65
  id
95
66
  name
@@ -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 {
@@ -11,20 +11,10 @@ export const DUPLICATE_PRESET = gql `
11
11
  restricted {
12
12
  duplicatePreset(presetId: $presetId) {
13
13
  id
14
- createdAt
15
- updatedAt
14
+ userId
16
15
  name
17
- likes
18
16
  topicType
19
- total
20
- correct
21
- incorrect
22
- userId
23
- university {
24
- id
25
- name
26
- country
27
- }
17
+ likes
28
18
  topics {
29
19
  id
30
20
  name
@@ -42,20 +32,10 @@ export const EDIT_PRESET = gql `
42
32
  restricted {
43
33
  editPreset(presetId: $presetId, data: $data) {
44
34
  id
45
- createdAt
46
- updatedAt
35
+ userId
47
36
  name
48
- likes
49
37
  topicType
50
- total
51
- correct
52
- incorrect
53
- userId
54
- university {
55
- id
56
- name
57
- country
58
- }
38
+ likes
59
39
  topics {
60
40
  id
61
41
  name
@@ -74,19 +54,10 @@ export const CREATE_PRESET = gql `
74
54
  createPreset(data: $data) {
75
55
  id
76
56
  createdAt
77
- updatedAt
57
+ userId
78
58
  name
79
- likes
80
59
  topicType
81
- total
82
- correct
83
- incorrect
84
- userId
85
- university {
86
- id
87
- name
88
- country
89
- }
60
+ likes
90
61
  topics {
91
62
  id
92
63
  name
@@ -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.74",
3
+ "version": "2.5.76",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",