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