@quesmed/types 2.5.72 → 2.5.74

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.
@@ -21,7 +21,7 @@ exports.USER_FIELDS = (0, client_1.gql) `
21
21
  tocAccepted
22
22
 
23
23
  # subscriptions
24
- subscriptions {
24
+ subscriptions(active: $active) {
25
25
  id
26
26
  productId
27
27
  periodEndAt
@@ -14,10 +14,20 @@ exports.DUPLICATE_PRESET = (0, client_1.gql) `
14
14
  restricted {
15
15
  duplicatePreset(presetId: $presetId) {
16
16
  id
17
- userId
17
+ createdAt
18
+ updatedAt
18
19
  name
19
- topicType
20
20
  likes
21
+ topicType
22
+ total
23
+ correct
24
+ incorrect
25
+ userId
26
+ university {
27
+ id
28
+ name
29
+ country
30
+ }
21
31
  topics {
22
32
  id
23
33
  name
@@ -35,10 +45,20 @@ exports.EDIT_PRESET = (0, client_1.gql) `
35
45
  restricted {
36
46
  editPreset(presetId: $presetId, data: $data) {
37
47
  id
38
- userId
48
+ createdAt
49
+ updatedAt
39
50
  name
40
- topicType
41
51
  likes
52
+ topicType
53
+ total
54
+ correct
55
+ incorrect
56
+ userId
57
+ university {
58
+ id
59
+ name
60
+ country
61
+ }
42
62
  topics {
43
63
  id
44
64
  name
@@ -57,10 +77,19 @@ exports.CREATE_PRESET = (0, client_1.gql) `
57
77
  createPreset(data: $data) {
58
78
  id
59
79
  createdAt
60
- userId
80
+ updatedAt
61
81
  name
62
- topicType
63
82
  likes
83
+ topicType
84
+ total
85
+ correct
86
+ incorrect
87
+ userId
88
+ university {
89
+ id
90
+ name
91
+ country
92
+ }
64
93
  topics {
65
94
  id
66
95
  name
@@ -1,6 +1,8 @@
1
1
  import { IUser } from '../../../models';
2
2
  import { graphqlNormalize, RestrictedData } from '../../types';
3
- export type IUserVar = null;
3
+ export type IUserVar = {
4
+ active?: boolean;
5
+ };
4
6
  export type IUserData = RestrictedData<graphqlNormalize & IUser, 'user'>;
5
7
  export declare const USER: import("@apollo/client").DocumentNode;
6
8
  export declare const REFERRALS: import("@apollo/client").DocumentNode;
@@ -6,7 +6,7 @@ const fragments_1 = require("../../fragments");
6
6
  const user_1 = require("../../fragments/user");
7
7
  exports.USER = (0, client_1.gql) `
8
8
  ${user_1.USER_FIELDS}
9
- query User {
9
+ query User($active: Boolean) {
10
10
  restricted {
11
11
  user {
12
12
  ...UserFields
@@ -18,7 +18,7 @@ export const USER_FIELDS = gql `
18
18
  tocAccepted
19
19
 
20
20
  # subscriptions
21
- subscriptions {
21
+ subscriptions(active: $active) {
22
22
  id
23
23
  productId
24
24
  periodEndAt
@@ -11,10 +11,20 @@ export const DUPLICATE_PRESET = gql `
11
11
  restricted {
12
12
  duplicatePreset(presetId: $presetId) {
13
13
  id
14
- userId
14
+ createdAt
15
+ updatedAt
15
16
  name
16
- topicType
17
17
  likes
18
+ topicType
19
+ total
20
+ correct
21
+ incorrect
22
+ userId
23
+ university {
24
+ id
25
+ name
26
+ country
27
+ }
18
28
  topics {
19
29
  id
20
30
  name
@@ -32,10 +42,20 @@ export const EDIT_PRESET = gql `
32
42
  restricted {
33
43
  editPreset(presetId: $presetId, data: $data) {
34
44
  id
35
- userId
45
+ createdAt
46
+ updatedAt
36
47
  name
37
- topicType
38
48
  likes
49
+ topicType
50
+ total
51
+ correct
52
+ incorrect
53
+ userId
54
+ university {
55
+ id
56
+ name
57
+ country
58
+ }
39
59
  topics {
40
60
  id
41
61
  name
@@ -54,10 +74,19 @@ export const CREATE_PRESET = gql `
54
74
  createPreset(data: $data) {
55
75
  id
56
76
  createdAt
57
- userId
77
+ updatedAt
58
78
  name
59
- topicType
60
79
  likes
80
+ topicType
81
+ total
82
+ correct
83
+ incorrect
84
+ userId
85
+ university {
86
+ id
87
+ name
88
+ country
89
+ }
61
90
  topics {
62
91
  id
63
92
  name
@@ -1,6 +1,8 @@
1
1
  import { IUser } from '../../../models';
2
2
  import { graphqlNormalize, RestrictedData } from '../../types';
3
- export type IUserVar = null;
3
+ export type IUserVar = {
4
+ active?: boolean;
5
+ };
4
6
  export type IUserData = RestrictedData<graphqlNormalize & IUser, 'user'>;
5
7
  export declare const USER: import("@apollo/client").DocumentNode;
6
8
  export declare const REFERRALS: import("@apollo/client").DocumentNode;
@@ -3,7 +3,7 @@ import { PICTURE_FIELDS } from '../../fragments';
3
3
  import { USER_FIELDS } from '../../fragments/user';
4
4
  export const USER = gql `
5
5
  ${USER_FIELDS}
6
- query User {
6
+ query User($active: Boolean) {
7
7
  restricted {
8
8
  user {
9
9
  ...UserFields
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.5.72",
3
+ "version": "2.5.74",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",