@quesmed/types 2.6.23 → 2.6.25

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.
@@ -36,7 +36,7 @@ export interface ITopic {
36
36
  deletedAt: number | Date;
37
37
  name: string;
38
38
  demo?: boolean;
39
- entitlement?: IConcept[];
39
+ entitlement: EProductType;
40
40
  typeId: ETopicType | null;
41
41
  productId: EProductType | null;
42
42
  type?: ITopicType | null;
@@ -7,8 +7,8 @@ exports.LOGOUT_USER = (0, client_1.gql) `
7
7
  mutation LogoutUser($all: Boolean!) {
8
8
  restricted {
9
9
  logoutUser(all: $all)
10
- }
11
10
  }
11
+ }
12
12
  `;
13
13
  exports.RESET_PROGRESS = (0, client_1.gql) `
14
14
  mutation ResetProgress($questions: Boolean, $cards: Boolean) {
@@ -12,6 +12,7 @@ exports.PRODUCTS = (0, client_1.gql) `
12
12
  name
13
13
  price
14
14
  stripePriceId
15
+ subscription
15
16
  duration
16
17
  public
17
18
  typeId
@@ -102,6 +102,7 @@ exports.DASHBOARD_QBANK = (0, client_1.gql) `
102
102
  topics(filter: 0) {
103
103
  id
104
104
  name
105
+ entitlement
105
106
  totalQuestions
106
107
  correctQuestions
107
108
  incorrectQuestions
@@ -10,6 +10,7 @@ exports.QBANK_KNOWLEDGE_VIDEO_LIBRARY = (0, client_1.gql) `
10
10
  id
11
11
  name
12
12
  typeId
13
+ entitlement
13
14
  demo
14
15
  unreadConcepts
15
16
  completedConcepts
@@ -70,6 +71,7 @@ exports.PUBLIC_QBANK_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
70
71
  id
71
72
  name
72
73
  typeId
74
+ entitlement
73
75
  demo
74
76
  unreadConcepts
75
77
  completedConcepts
@@ -136,59 +138,59 @@ exports.OSCE_KNOWLEDGE_VIDEO_LIBRARY = (0, client_1.gql) `
136
138
  }
137
139
  `;
138
140
  exports.PACE_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
139
- query PaceKnowledgeLibrary {
140
- restricted {
141
- paceBook {
142
- id
143
- name
144
- demo
145
- status
146
- typeId
147
- chapter {
141
+ query PaceKnowledgeLibrary {
142
+ restricted {
143
+ paceBook {
148
144
  id
145
+ name
146
+ demo
147
+ status
149
148
  typeId
150
- explanation
151
- pictures {
149
+ chapter {
152
150
  id
153
- createdAt
154
- updatedAt
155
- name
156
- caption
157
- path
158
- path512
159
- path256
160
- index
151
+ typeId
152
+ explanation
153
+ pictures {
154
+ id
155
+ createdAt
156
+ updatedAt
157
+ name
158
+ caption
159
+ path
160
+ path512
161
+ path256
162
+ index
163
+ }
161
164
  }
162
- }
163
- topicId
164
- videos {
165
- id
166
- demo
167
- status
168
- title
169
- museId
170
- thumbnail
171
- concepts {
165
+ topicId
166
+ videos {
172
167
  id
173
- name
168
+ demo
169
+ status
170
+ title
171
+ museId
172
+ thumbnail
173
+ concepts {
174
+ id
175
+ name
176
+ }
177
+ live
178
+ description
179
+ duration
174
180
  }
175
- live
176
- description
177
- duration
178
181
  }
179
182
  }
180
183
  }
181
- }
182
184
  `;
183
185
  exports.PACE_VIDEO_LIBRARY = (0, client_1.gql) `
184
- ${osce_1.OSCE_STATION_FIELDS}
185
- query PaceVideoLibrary($videosOnly: Boolean) {
186
- restricted {
187
- osceBook(videosOnly: $videosOnly) {
188
- ...OsceStationFields
189
- lastOsceMarksheetId
190
- score
186
+ ${osce_1.OSCE_STATION_FIELDS}
187
+ query PaceVideoLibrary($videosOnly: Boolean) {
188
+ restricted {
189
+ osceBook(videosOnly: $videosOnly) {
190
+ ...OsceStationFields
191
+ lastOsceMarksheetId
192
+ score
193
+ }
191
194
  }
192
195
  }
193
- }
194
196
  `;
@@ -36,6 +36,7 @@ exports.TOPICS = (0, client_1.gql) `
36
36
  yellowCards
37
37
  redCards
38
38
  typeId
39
+ entitlement
39
40
  concepts {
40
41
  id
41
42
  name
@@ -57,6 +58,7 @@ exports.QUESTION_TOPICS = (0, client_1.gql) `
57
58
  correctQuestions
58
59
  incorrectQuestions
59
60
  typeId
61
+ entitlement
60
62
  concepts {
61
63
  id
62
64
  name
@@ -80,6 +82,7 @@ exports.FLASHCARDS_TOPICS = (0, client_1.gql) `
80
82
  yellowCards
81
83
  redCards
82
84
  typeId
85
+ entitlement
83
86
  concepts {
84
87
  id
85
88
  name
@@ -36,7 +36,7 @@ export interface ITopic {
36
36
  deletedAt: number | Date;
37
37
  name: string;
38
38
  demo?: boolean;
39
- entitlement?: IConcept[];
39
+ entitlement: EProductType;
40
40
  typeId: ETopicType | null;
41
41
  productId: EProductType | null;
42
42
  type?: ITopicType | null;
@@ -4,8 +4,8 @@ export const LOGOUT_USER = gql `
4
4
  mutation LogoutUser($all: Boolean!) {
5
5
  restricted {
6
6
  logoutUser(all: $all)
7
- }
8
7
  }
8
+ }
9
9
  `;
10
10
  export const RESET_PROGRESS = gql `
11
11
  mutation ResetProgress($questions: Boolean, $cards: Boolean) {
@@ -9,6 +9,7 @@ export const PRODUCTS = gql `
9
9
  name
10
10
  price
11
11
  stripePriceId
12
+ subscription
12
13
  duration
13
14
  public
14
15
  typeId
@@ -99,6 +99,7 @@ export const DASHBOARD_QBANK = gql `
99
99
  topics(filter: 0) {
100
100
  id
101
101
  name
102
+ entitlement
102
103
  totalQuestions
103
104
  correctQuestions
104
105
  incorrectQuestions
@@ -7,6 +7,7 @@ export const QBANK_KNOWLEDGE_VIDEO_LIBRARY = gql `
7
7
  id
8
8
  name
9
9
  typeId
10
+ entitlement
10
11
  demo
11
12
  unreadConcepts
12
13
  completedConcepts
@@ -67,6 +68,7 @@ export const PUBLIC_QBANK_KNOWLEDGE_LIBRARY = gql `
67
68
  id
68
69
  name
69
70
  typeId
71
+ entitlement
70
72
  demo
71
73
  unreadConcepts
72
74
  completedConcepts
@@ -133,59 +135,59 @@ export const OSCE_KNOWLEDGE_VIDEO_LIBRARY = gql `
133
135
  }
134
136
  `;
135
137
  export const PACE_KNOWLEDGE_LIBRARY = gql `
136
- query PaceKnowledgeLibrary {
137
- restricted {
138
- paceBook {
139
- id
140
- name
141
- demo
142
- status
143
- typeId
144
- chapter {
138
+ query PaceKnowledgeLibrary {
139
+ restricted {
140
+ paceBook {
145
141
  id
142
+ name
143
+ demo
144
+ status
146
145
  typeId
147
- explanation
148
- pictures {
146
+ chapter {
149
147
  id
150
- createdAt
151
- updatedAt
152
- name
153
- caption
154
- path
155
- path512
156
- path256
157
- index
148
+ typeId
149
+ explanation
150
+ pictures {
151
+ id
152
+ createdAt
153
+ updatedAt
154
+ name
155
+ caption
156
+ path
157
+ path512
158
+ path256
159
+ index
160
+ }
158
161
  }
159
- }
160
- topicId
161
- videos {
162
- id
163
- demo
164
- status
165
- title
166
- museId
167
- thumbnail
168
- concepts {
162
+ topicId
163
+ videos {
169
164
  id
170
- name
165
+ demo
166
+ status
167
+ title
168
+ museId
169
+ thumbnail
170
+ concepts {
171
+ id
172
+ name
173
+ }
174
+ live
175
+ description
176
+ duration
171
177
  }
172
- live
173
- description
174
- duration
175
178
  }
176
179
  }
177
180
  }
178
- }
179
181
  `;
180
182
  export const PACE_VIDEO_LIBRARY = gql `
181
- ${OSCE_STATION_FIELDS}
182
- query PaceVideoLibrary($videosOnly: Boolean) {
183
- restricted {
184
- osceBook(videosOnly: $videosOnly) {
185
- ...OsceStationFields
186
- lastOsceMarksheetId
187
- score
183
+ ${OSCE_STATION_FIELDS}
184
+ query PaceVideoLibrary($videosOnly: Boolean) {
185
+ restricted {
186
+ osceBook(videosOnly: $videosOnly) {
187
+ ...OsceStationFields
188
+ lastOsceMarksheetId
189
+ score
190
+ }
188
191
  }
189
192
  }
190
- }
191
193
  `;
@@ -33,6 +33,7 @@ export const TOPICS = gql `
33
33
  yellowCards
34
34
  redCards
35
35
  typeId
36
+ entitlement
36
37
  concepts {
37
38
  id
38
39
  name
@@ -54,6 +55,7 @@ export const QUESTION_TOPICS = gql `
54
55
  correctQuestions
55
56
  incorrectQuestions
56
57
  typeId
58
+ entitlement
57
59
  concepts {
58
60
  id
59
61
  name
@@ -77,6 +79,7 @@ export const FLASHCARDS_TOPICS = gql `
77
79
  yellowCards
78
80
  redCards
79
81
  typeId
82
+ entitlement
80
83
  concepts {
81
84
  id
82
85
  name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.23",
3
+ "version": "2.6.25",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",