@quesmed/types 1.3.21 → 1.4.0

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.
Files changed (37) hide show
  1. package/package.json +3 -2
  2. package/resolvers/fragments/chapter.d.ts +2 -0
  3. package/resolvers/fragments/chapter.js +31 -0
  4. package/resolvers/fragments/chapter.mjs +28 -0
  5. package/resolvers/fragments/concept.d.ts +3 -0
  6. package/resolvers/fragments/concept.js +79 -0
  7. package/resolvers/fragments/concept.mjs +76 -0
  8. package/resolvers/fragments/osce.d.ts +10 -0
  9. package/resolvers/fragments/osce.js +171 -0
  10. package/resolvers/fragments/osce.mjs +168 -0
  11. package/resolvers/fragments/picture.d.ts +3 -0
  12. package/resolvers/fragments/picture.js +44 -0
  13. package/resolvers/fragments/picture.mjs +41 -0
  14. package/resolvers/fragments/user.d.ts +1 -0
  15. package/resolvers/fragments/user.js +26 -0
  16. package/resolvers/fragments/user.mjs +23 -0
  17. package/resolvers/fragments/video.d.ts +2 -0
  18. package/resolvers/fragments/video.js +49 -0
  19. package/resolvers/fragments/video.mjs +46 -0
  20. package/resolvers/mutation/restricted/osce.d.ts +36 -8
  21. package/resolvers/mutation/restricted/osce.js +200 -0
  22. package/resolvers/mutation/restricted/osce.mjs +198 -1
  23. package/resolvers/query/restricted/index.d.ts +1 -0
  24. package/resolvers/query/restricted/index.js +1 -0
  25. package/resolvers/query/restricted/index.mjs +1 -0
  26. package/resolvers/query/restricted/osce.d.ts +20 -12
  27. package/resolvers/query/restricted/osce.js +91 -0
  28. package/resolvers/query/restricted/osce.mjs +90 -1
  29. package/resolvers/query/restricted/quesBook.d.ts +1 -0
  30. package/resolvers/query/restricted/quesBook.js +13 -0
  31. package/resolvers/query/restricted/quesBook.mjs +12 -1
  32. package/resolvers/query/restricted/replication.d.ts +33 -0
  33. package/resolvers/query/restricted/replication.js +184 -0
  34. package/resolvers/query/restricted/replication.mjs +178 -0
  35. package/resolvers/subscription/osce.d.ts +12 -6
  36. package/resolvers/subscription/osce.js +36 -5
  37. package/resolvers/subscription/osce.mjs +35 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "1.3.21",
3
+ "version": "1.4.0",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -33,6 +33,7 @@
33
33
  "react-native-expo-image-cache": "^4.1.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "graphql": "^16"
36
+ "graphql": "^16",
37
+ "react": "^17"
37
38
  }
38
39
  }
@@ -0,0 +1,2 @@
1
+ export declare const CHAPTER_FILE_FIELDS: import("@apollo/client").DocumentNode;
2
+ export declare const CHAPTER_FIELDS: import("@apollo/client").DocumentNode;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CHAPTER_FIELDS = exports.CHAPTER_FILE_FIELDS = void 0;
4
+ const client_1 = require("@apollo/client");
5
+ const picture_1 = require("./picture");
6
+ exports.CHAPTER_FILE_FIELDS = (0, client_1.gql) `
7
+ fragment ChapterFileFields on File {
8
+ id
9
+ title
10
+ url
11
+ videoId
12
+ conceptId
13
+ }
14
+ `;
15
+ exports.CHAPTER_FIELDS = (0, client_1.gql) `
16
+ ${exports.CHAPTER_FILE_FIELDS}
17
+ ${picture_1.CHAPTER_PICTURE_FIELDS}
18
+ fragment ChapterFields on Chapter {
19
+ id
20
+ createdAt
21
+ updatedAt
22
+ explanation
23
+ typeId
24
+ pictures {
25
+ ...ChapterPictureFields
26
+ }
27
+ files {
28
+ ...ChapterFileFields
29
+ }
30
+ }
31
+ `;
@@ -0,0 +1,28 @@
1
+ import { gql } from '@apollo/client';
2
+ import { CHAPTER_PICTURE_FIELDS } from './picture';
3
+ export const CHAPTER_FILE_FIELDS = gql `
4
+ fragment ChapterFileFields on File {
5
+ id
6
+ title
7
+ url
8
+ videoId
9
+ conceptId
10
+ }
11
+ `;
12
+ export const CHAPTER_FIELDS = gql `
13
+ ${CHAPTER_FILE_FIELDS}
14
+ ${CHAPTER_PICTURE_FIELDS}
15
+ fragment ChapterFields on Chapter {
16
+ id
17
+ createdAt
18
+ updatedAt
19
+ explanation
20
+ typeId
21
+ pictures {
22
+ ...ChapterPictureFields
23
+ }
24
+ files {
25
+ ...ChapterFileFields
26
+ }
27
+ }
28
+ `;
@@ -0,0 +1,3 @@
1
+ export declare const CONCEPT_TOPIC_FIELDS: import("@apollo/client").DocumentNode;
2
+ export declare const CONCEPT_FIELDS: import("@apollo/client").DocumentNode;
3
+ export declare const CONCEPT_VIDEO_FIELDS: import("@apollo/client").DocumentNode;
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CONCEPT_VIDEO_FIELDS = exports.CONCEPT_FIELDS = exports.CONCEPT_TOPIC_FIELDS = void 0;
4
+ const client_1 = require("@apollo/client");
5
+ const chapter_1 = require("./chapter");
6
+ const video_1 = require("./video");
7
+ exports.CONCEPT_TOPIC_FIELDS = (0, client_1.gql) `
8
+ fragment ConceptTopicFields on Topic {
9
+ id
10
+ name
11
+ typeId
12
+ }
13
+ `;
14
+ exports.CONCEPT_FIELDS = (0, client_1.gql) `
15
+ ${chapter_1.CHAPTER_FIELDS}
16
+ ${exports.CONCEPT_TOPIC_FIELDS}
17
+ fragment ConceptFields on Concept {
18
+ id
19
+ createdAt
20
+ updatedAt
21
+ name
22
+ chapterId
23
+ chapter {
24
+ ...ChapterFields
25
+ }
26
+ topicId
27
+ topic {
28
+ ...ConceptTopicFields
29
+ }
30
+ }
31
+ `;
32
+ exports.CONCEPT_VIDEO_FIELDS = (0, client_1.gql) `
33
+ ${chapter_1.CHAPTER_FIELDS}
34
+ ${exports.CONCEPT_TOPIC_FIELDS}
35
+ ${video_1.VIDEO_FILE_FIELDS}
36
+ fragment ConceptVideoFields on Concept {
37
+ id
38
+ createdAt
39
+ updatedAt
40
+ name
41
+ chapterId
42
+ chapter {
43
+ ...ChapterFields
44
+ }
45
+ topicId
46
+ topic {
47
+ ...ConceptTopicFields
48
+ }
49
+ videos {
50
+ id
51
+ title
52
+ museId
53
+ thumbnail
54
+ views
55
+ concepts {
56
+ id
57
+ createdAt
58
+ updatedAt
59
+ name
60
+ chapterId
61
+ chapter {
62
+ ...ChapterFields
63
+ }
64
+ topicId
65
+ topic {
66
+ ...ConceptTopicFields
67
+ }
68
+ }
69
+ live
70
+ description
71
+ duration
72
+ startTime
73
+ endTime
74
+ files {
75
+ ...VideoFileFields
76
+ }
77
+ }
78
+ }
79
+ `;
@@ -0,0 +1,76 @@
1
+ import { gql } from '@apollo/client';
2
+ import { CHAPTER_FIELDS } from './chapter';
3
+ import { VIDEO_FILE_FIELDS } from './video';
4
+ export const CONCEPT_TOPIC_FIELDS = gql `
5
+ fragment ConceptTopicFields on Topic {
6
+ id
7
+ name
8
+ typeId
9
+ }
10
+ `;
11
+ export const CONCEPT_FIELDS = gql `
12
+ ${CHAPTER_FIELDS}
13
+ ${CONCEPT_TOPIC_FIELDS}
14
+ fragment ConceptFields on Concept {
15
+ id
16
+ createdAt
17
+ updatedAt
18
+ name
19
+ chapterId
20
+ chapter {
21
+ ...ChapterFields
22
+ }
23
+ topicId
24
+ topic {
25
+ ...ConceptTopicFields
26
+ }
27
+ }
28
+ `;
29
+ export const CONCEPT_VIDEO_FIELDS = gql `
30
+ ${CHAPTER_FIELDS}
31
+ ${CONCEPT_TOPIC_FIELDS}
32
+ ${VIDEO_FILE_FIELDS}
33
+ fragment ConceptVideoFields on Concept {
34
+ id
35
+ createdAt
36
+ updatedAt
37
+ name
38
+ chapterId
39
+ chapter {
40
+ ...ChapterFields
41
+ }
42
+ topicId
43
+ topic {
44
+ ...ConceptTopicFields
45
+ }
46
+ videos {
47
+ id
48
+ title
49
+ museId
50
+ thumbnail
51
+ views
52
+ concepts {
53
+ id
54
+ createdAt
55
+ updatedAt
56
+ name
57
+ chapterId
58
+ chapter {
59
+ ...ChapterFields
60
+ }
61
+ topicId
62
+ topic {
63
+ ...ConceptTopicFields
64
+ }
65
+ }
66
+ live
67
+ description
68
+ duration
69
+ startTime
70
+ endTime
71
+ files {
72
+ ...VideoFileFields
73
+ }
74
+ }
75
+ }
76
+ `;
@@ -0,0 +1,10 @@
1
+ export declare const OSCE_STATION_TOPIC_FIELDS: import("@apollo/client").DocumentNode;
2
+ export declare const OSCE_TYPE_FIELDS: import("@apollo/client").DocumentNode;
3
+ export declare const OSCE_STATION_MARK_FIELDS: import("@apollo/client").DocumentNode;
4
+ export declare const OSCE_STATION_FIELDS: import("@apollo/client").DocumentNode;
5
+ export declare const OSCE_MARKSHEET_USER_FIELDS: import("@apollo/client").DocumentNode;
6
+ export declare const OSCE_MARKSHEET_MARK_FIELDS: import("@apollo/client").DocumentNode;
7
+ export declare const OSCE_MARKSHEET_FIELDS: import("@apollo/client").DocumentNode;
8
+ export declare const OSCE_GROUP_FIELDS: import("@apollo/client").DocumentNode;
9
+ export declare const OSCE_MARKSHEET_ACTION_FIELDS: import("@apollo/client").DocumentNode;
10
+ export declare const OSCE_MATCHMAKING_ACTION_FIELDS: import("@apollo/client").DocumentNode;
@@ -0,0 +1,171 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OSCE_MATCHMAKING_ACTION_FIELDS = exports.OSCE_MARKSHEET_ACTION_FIELDS = exports.OSCE_GROUP_FIELDS = exports.OSCE_MARKSHEET_FIELDS = exports.OSCE_MARKSHEET_MARK_FIELDS = exports.OSCE_MARKSHEET_USER_FIELDS = exports.OSCE_STATION_FIELDS = exports.OSCE_STATION_MARK_FIELDS = exports.OSCE_TYPE_FIELDS = exports.OSCE_STATION_TOPIC_FIELDS = void 0;
4
+ const client_1 = require("@apollo/client");
5
+ const picture_1 = require("./picture");
6
+ const user_1 = require("./user");
7
+ exports.OSCE_STATION_TOPIC_FIELDS = (0, client_1.gql) `
8
+ fragment OsceStationTopicFields on Topic {
9
+ id
10
+ name
11
+ typeId
12
+ }
13
+ `;
14
+ exports.OSCE_TYPE_FIELDS = (0, client_1.gql) `
15
+ fragment OsceTypeFields on OsceType {
16
+ id
17
+ name
18
+ # user-specific keys
19
+ # completed
20
+ # total
21
+ # avgScore
22
+ }
23
+ `;
24
+ exports.OSCE_STATION_MARK_FIELDS = (0, client_1.gql) `
25
+ fragment OsceStationMarkFields on OsceStationMark {
26
+ id
27
+ index
28
+ osceStationId
29
+ header
30
+ name
31
+ }
32
+ `;
33
+ exports.OSCE_STATION_FIELDS = (0, client_1.gql) `
34
+ ${exports.OSCE_TYPE_FIELDS}
35
+ ${exports.OSCE_STATION_TOPIC_FIELDS}
36
+ ${picture_1.OSCE_PICTURE_FIELDS}
37
+ ${exports.OSCE_STATION_MARK_FIELDS}
38
+ fragment OsceStationFields on OsceStation {
39
+ id
40
+ updatedAt
41
+ deleted
42
+ name
43
+ osceType {
44
+ ...OsceTypeFields
45
+ }
46
+ difficulty
47
+ candidateBrief
48
+ examinerBrief
49
+ actorBrief
50
+ explanation
51
+ marks {
52
+ ...OsceStationMarkFields
53
+ }
54
+ topics {
55
+ ...OsceStationTopicFields
56
+ }
57
+ candidatePictures {
58
+ ...OscePictureFields
59
+ }
60
+ actorPictures {
61
+ ...OscePictureFields
62
+ }
63
+ examinerPictures {
64
+ ...OscePictureFields
65
+ }
66
+ walkthroughPictures {
67
+ ...OscePictureFields
68
+ }
69
+
70
+ # user-specific keys
71
+ # attempted
72
+ # score
73
+ }
74
+ `;
75
+ exports.OSCE_MARKSHEET_USER_FIELDS = (0, client_1.gql) `
76
+ ${user_1.USER_FIELDS}
77
+ fragment OsceMarksheetUserFields on OsceMarksheetUser {
78
+ id
79
+ osceMarksheetId
80
+ userId
81
+ user {
82
+ ...UserFields
83
+ }
84
+ role
85
+ }
86
+ `;
87
+ exports.OSCE_MARKSHEET_MARK_FIELDS = (0, client_1.gql) `
88
+ ${exports.OSCE_STATION_MARK_FIELDS}
89
+ fragment OsceMarksheetMarkFields on OsceMarksheetMark {
90
+ id
91
+ index
92
+ mark
93
+ osceMarksheetId
94
+ osceStationMarkId
95
+ osceStationMark {
96
+ ...OsceStationMarkFields
97
+ }
98
+ }
99
+ `;
100
+ exports.OSCE_MARKSHEET_FIELDS = (0, client_1.gql) `
101
+ ${exports.OSCE_STATION_FIELDS}
102
+ ${exports.OSCE_MARKSHEET_MARK_FIELDS}
103
+ ${exports.OSCE_MARKSHEET_USER_FIELDS}
104
+ fragment OsceMarksheetFields on OsceMarksheet {
105
+ id
106
+ createdAt
107
+ updatedAt
108
+ timeTaken
109
+ osceStationId
110
+ osceStation {
111
+ ...OsceStationFields
112
+ }
113
+ userId
114
+ solo
115
+ role
116
+ globalScore
117
+ score
118
+ feedback
119
+ agoraId
120
+ readingTime
121
+ stationTime
122
+ feedbackTime
123
+ startedAt
124
+ endedAt
125
+ timeRemaining
126
+ marks {
127
+ ...OsceMarksheetMarkFields
128
+ }
129
+ users {
130
+ ...OsceMarksheetUserFields
131
+ }
132
+ completed
133
+ }
134
+ `;
135
+ exports.OSCE_GROUP_FIELDS = (0, client_1.gql) `
136
+ ${exports.OSCE_MARKSHEET_USER_FIELDS}
137
+ fragment OsceGroupFields on OsceGroup {
138
+ osceMarksheetId
139
+ agoraId
140
+ members {
141
+ ...OsceMarksheetUserFields
142
+ }
143
+ }
144
+ `;
145
+ exports.OSCE_MARKSHEET_ACTION_FIELDS = (0, client_1.gql) `
146
+ ${user_1.USER_FIELDS}
147
+ fragment OsceMarksheetActionFields on OsceMarksheetAction {
148
+ osceMarksheetId
149
+ agoraId
150
+ userId
151
+ user {
152
+ ...UserFields
153
+ }
154
+ startedAt
155
+ endedAt
156
+ action
157
+ }
158
+ `;
159
+ exports.OSCE_MATCHMAKING_ACTION_FIELDS = (0, client_1.gql) `
160
+ fragment OsceMatchmakingActionFields on OsceMatchmakingAction {
161
+ osceMarksheetId
162
+ agoraId
163
+ matchedUsers
164
+ userId
165
+ classYear
166
+ lastSyncAt
167
+ startedAt
168
+ grouped
169
+ completed
170
+ }
171
+ `;
@@ -0,0 +1,168 @@
1
+ import { gql } from '@apollo/client';
2
+ import { OSCE_PICTURE_FIELDS } from './picture';
3
+ import { USER_FIELDS } from './user';
4
+ export const OSCE_STATION_TOPIC_FIELDS = gql `
5
+ fragment OsceStationTopicFields on Topic {
6
+ id
7
+ name
8
+ typeId
9
+ }
10
+ `;
11
+ export const OSCE_TYPE_FIELDS = gql `
12
+ fragment OsceTypeFields on OsceType {
13
+ id
14
+ name
15
+ # user-specific keys
16
+ # completed
17
+ # total
18
+ # avgScore
19
+ }
20
+ `;
21
+ export const OSCE_STATION_MARK_FIELDS = gql `
22
+ fragment OsceStationMarkFields on OsceStationMark {
23
+ id
24
+ index
25
+ osceStationId
26
+ header
27
+ name
28
+ }
29
+ `;
30
+ export const OSCE_STATION_FIELDS = gql `
31
+ ${OSCE_TYPE_FIELDS}
32
+ ${OSCE_STATION_TOPIC_FIELDS}
33
+ ${OSCE_PICTURE_FIELDS}
34
+ ${OSCE_STATION_MARK_FIELDS}
35
+ fragment OsceStationFields on OsceStation {
36
+ id
37
+ updatedAt
38
+ deleted
39
+ name
40
+ osceType {
41
+ ...OsceTypeFields
42
+ }
43
+ difficulty
44
+ candidateBrief
45
+ examinerBrief
46
+ actorBrief
47
+ explanation
48
+ marks {
49
+ ...OsceStationMarkFields
50
+ }
51
+ topics {
52
+ ...OsceStationTopicFields
53
+ }
54
+ candidatePictures {
55
+ ...OscePictureFields
56
+ }
57
+ actorPictures {
58
+ ...OscePictureFields
59
+ }
60
+ examinerPictures {
61
+ ...OscePictureFields
62
+ }
63
+ walkthroughPictures {
64
+ ...OscePictureFields
65
+ }
66
+
67
+ # user-specific keys
68
+ # attempted
69
+ # score
70
+ }
71
+ `;
72
+ export const OSCE_MARKSHEET_USER_FIELDS = gql `
73
+ ${USER_FIELDS}
74
+ fragment OsceMarksheetUserFields on OsceMarksheetUser {
75
+ id
76
+ osceMarksheetId
77
+ userId
78
+ user {
79
+ ...UserFields
80
+ }
81
+ role
82
+ }
83
+ `;
84
+ export const OSCE_MARKSHEET_MARK_FIELDS = gql `
85
+ ${OSCE_STATION_MARK_FIELDS}
86
+ fragment OsceMarksheetMarkFields on OsceMarksheetMark {
87
+ id
88
+ index
89
+ mark
90
+ osceMarksheetId
91
+ osceStationMarkId
92
+ osceStationMark {
93
+ ...OsceStationMarkFields
94
+ }
95
+ }
96
+ `;
97
+ export const OSCE_MARKSHEET_FIELDS = gql `
98
+ ${OSCE_STATION_FIELDS}
99
+ ${OSCE_MARKSHEET_MARK_FIELDS}
100
+ ${OSCE_MARKSHEET_USER_FIELDS}
101
+ fragment OsceMarksheetFields on OsceMarksheet {
102
+ id
103
+ createdAt
104
+ updatedAt
105
+ timeTaken
106
+ osceStationId
107
+ osceStation {
108
+ ...OsceStationFields
109
+ }
110
+ userId
111
+ solo
112
+ role
113
+ globalScore
114
+ score
115
+ feedback
116
+ agoraId
117
+ readingTime
118
+ stationTime
119
+ feedbackTime
120
+ startedAt
121
+ endedAt
122
+ timeRemaining
123
+ marks {
124
+ ...OsceMarksheetMarkFields
125
+ }
126
+ users {
127
+ ...OsceMarksheetUserFields
128
+ }
129
+ completed
130
+ }
131
+ `;
132
+ export const OSCE_GROUP_FIELDS = gql `
133
+ ${OSCE_MARKSHEET_USER_FIELDS}
134
+ fragment OsceGroupFields on OsceGroup {
135
+ osceMarksheetId
136
+ agoraId
137
+ members {
138
+ ...OsceMarksheetUserFields
139
+ }
140
+ }
141
+ `;
142
+ export const OSCE_MARKSHEET_ACTION_FIELDS = gql `
143
+ ${USER_FIELDS}
144
+ fragment OsceMarksheetActionFields on OsceMarksheetAction {
145
+ osceMarksheetId
146
+ agoraId
147
+ userId
148
+ user {
149
+ ...UserFields
150
+ }
151
+ startedAt
152
+ endedAt
153
+ action
154
+ }
155
+ `;
156
+ export const OSCE_MATCHMAKING_ACTION_FIELDS = gql `
157
+ fragment OsceMatchmakingActionFields on OsceMatchmakingAction {
158
+ osceMarksheetId
159
+ agoraId
160
+ matchedUsers
161
+ userId
162
+ classYear
163
+ lastSyncAt
164
+ startedAt
165
+ grouped
166
+ completed
167
+ }
168
+ `;
@@ -0,0 +1,3 @@
1
+ export declare const PICTURE_FIELDS: import("@apollo/client").DocumentNode;
2
+ export declare const OSCE_PICTURE_FIELDS: import("@apollo/client").DocumentNode;
3
+ export declare const CHAPTER_PICTURE_FIELDS: import("@apollo/client").DocumentNode;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CHAPTER_PICTURE_FIELDS = exports.OSCE_PICTURE_FIELDS = exports.PICTURE_FIELDS = void 0;
4
+ const client_1 = require("@apollo/client");
5
+ exports.PICTURE_FIELDS = (0, client_1.gql) `
6
+ fragment PictureFields on Picture {
7
+ id
8
+ createdAt
9
+ updatedAt
10
+ name
11
+ caption
12
+ path
13
+ path512
14
+ path256
15
+ topicId
16
+ topic {
17
+ id
18
+ name
19
+ typeId
20
+ }
21
+ }
22
+ `;
23
+ exports.OSCE_PICTURE_FIELDS = (0, client_1.gql) `
24
+ ${exports.PICTURE_FIELDS}
25
+ fragment OscePictureFields on OscePicture {
26
+ id
27
+ osceStationId
28
+ pictureId
29
+ picture {
30
+ ...PictureFields
31
+ }
32
+ }
33
+ `;
34
+ exports.CHAPTER_PICTURE_FIELDS = (0, client_1.gql) `
35
+ ${exports.PICTURE_FIELDS}
36
+ fragment ChapterPictureFields on ChapterPicture {
37
+ id
38
+ pictureId
39
+ chapterId
40
+ picture {
41
+ ...PictureFields
42
+ }
43
+ }
44
+ `;
@@ -0,0 +1,41 @@
1
+ import { gql } from '@apollo/client';
2
+ export const PICTURE_FIELDS = gql `
3
+ fragment PictureFields on Picture {
4
+ id
5
+ createdAt
6
+ updatedAt
7
+ name
8
+ caption
9
+ path
10
+ path512
11
+ path256
12
+ topicId
13
+ topic {
14
+ id
15
+ name
16
+ typeId
17
+ }
18
+ }
19
+ `;
20
+ export const OSCE_PICTURE_FIELDS = gql `
21
+ ${PICTURE_FIELDS}
22
+ fragment OscePictureFields on OscePicture {
23
+ id
24
+ osceStationId
25
+ pictureId
26
+ picture {
27
+ ...PictureFields
28
+ }
29
+ }
30
+ `;
31
+ export const CHAPTER_PICTURE_FIELDS = gql `
32
+ ${PICTURE_FIELDS}
33
+ fragment ChapterPictureFields on ChapterPicture {
34
+ id
35
+ pictureId
36
+ chapterId
37
+ picture {
38
+ ...PictureFields
39
+ }
40
+ }
41
+ `;
@@ -0,0 +1 @@
1
+ export declare const USER_FIELDS: import("@apollo/client").DocumentNode;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.USER_FIELDS = void 0;
4
+ const client_1 = require("@apollo/client");
5
+ exports.USER_FIELDS = (0, client_1.gql) `
6
+ fragment UserFields on User {
7
+ id
8
+ username
9
+ firstName
10
+ lastName
11
+ classYear
12
+ graduationYear
13
+ universityId
14
+ examDate
15
+ stripeCustomerId
16
+ stripeQBankSubscriptionId
17
+ stripeQBankSubscriptionEndDate
18
+ stripeOsceSubscriptionId
19
+ stripeOsceSubscriptionEndDate
20
+ stripeBundleSubscriptionId
21
+ stripeBundleSubscriptionEndDate
22
+ # TODO: Remove this from backwards compatibility
23
+ stripePriceNickname
24
+ stripeSubscriptionEndDate
25
+ }
26
+ `;