@quesmed/types 2.6.87 → 2.6.88

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.
@@ -73,8 +73,8 @@ export interface IQuestion {
73
73
  conceptId: Id;
74
74
  public: boolean;
75
75
  concept?: IConcept;
76
- condition?: ICondition[];
77
- presentation?: IPresentation[];
76
+ conditions?: ICondition[];
77
+ presentations?: IPresentation[];
78
78
  question: string;
79
79
  explanation?: string;
80
80
  learningPoint?: string;
@@ -1,4 +1,5 @@
1
1
  export declare const QUESTION_COMMENT_FIELDS: import("@apollo/client").DocumentNode;
2
+ export declare const QUESTION_UKMLA_FIELDS: import("@apollo/client").DocumentNode;
2
3
  export declare const QUESTION_CATEGORY_FIELDS: import("@apollo/client").DocumentNode;
3
4
  export declare const QUESTION_FIELDS: import("@apollo/client").DocumentNode;
4
5
  export declare const QUESTION_WITH_HIGHLIGHT_FIELDS: import("@apollo/client").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QUESTION_WITH_LEARNING_FIELDS = exports.QUESTION_WITH_COMMENT_FIELDS = exports.QUESTION_WITH_HIGHLIGHT_FIELDS = exports.QUESTION_FIELDS = exports.QUESTION_CATEGORY_FIELDS = exports.QUESTION_COMMENT_FIELDS = void 0;
3
+ exports.QUESTION_WITH_LEARNING_FIELDS = exports.QUESTION_WITH_COMMENT_FIELDS = exports.QUESTION_WITH_HIGHLIGHT_FIELDS = exports.QUESTION_FIELDS = exports.QUESTION_CATEGORY_FIELDS = exports.QUESTION_UKMLA_FIELDS = exports.QUESTION_COMMENT_FIELDS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  const concept_1 = require("./concept");
6
6
  const highlight_1 = require("./highlight");
@@ -37,6 +37,28 @@ exports.QUESTION_COMMENT_FIELDS = (0, client_1.gql) `
37
37
  }
38
38
  }
39
39
  `;
40
+ exports.QUESTION_UKMLA_FIELDS = (0, client_1.gql) `
41
+ fragment QuestionUkmlaFields on Question {
42
+ presentations {
43
+ id
44
+ name
45
+ topicId
46
+ topic {
47
+ id
48
+ name
49
+ }
50
+ }
51
+ conditions {
52
+ id
53
+ name
54
+ topicId
55
+ topic {
56
+ id
57
+ name
58
+ }
59
+ }
60
+ }
61
+ `;
40
62
  exports.QUESTION_CATEGORY_FIELDS = (0, client_1.gql) `
41
63
  fragment QuestionCategoryFields on Question {
42
64
  ... on QuestionSBA {
@@ -99,6 +121,7 @@ exports.QUESTION_CATEGORY_FIELDS = (0, client_1.gql) `
99
121
  }
100
122
  `;
101
123
  exports.QUESTION_FIELDS = (0, client_1.gql) `
124
+ ${exports.QUESTION_UKMLA_FIELDS}
102
125
  ${highlight_1.HIGHLIGHT_FIELDS}
103
126
  ${exports.QUESTION_CATEGORY_FIELDS}
104
127
  ${exports.QUESTION_COMMENT_FIELDS}
@@ -143,6 +166,7 @@ exports.QUESTION_FIELDS = (0, client_1.gql) `
143
166
  pictures {
144
167
  ...PictureFields
145
168
  }
169
+ ...QuestionUkmlaFields
146
170
  ...QuestionCategoryFields
147
171
  }
148
172
  `;
@@ -73,8 +73,8 @@ export interface IQuestion {
73
73
  conceptId: Id;
74
74
  public: boolean;
75
75
  concept?: IConcept;
76
- condition?: ICondition[];
77
- presentation?: IPresentation[];
76
+ conditions?: ICondition[];
77
+ presentations?: IPresentation[];
78
78
  question: string;
79
79
  explanation?: string;
80
80
  learningPoint?: string;
@@ -1,4 +1,5 @@
1
1
  export declare const QUESTION_COMMENT_FIELDS: import("@apollo/client").DocumentNode;
2
+ export declare const QUESTION_UKMLA_FIELDS: import("@apollo/client").DocumentNode;
2
3
  export declare const QUESTION_CATEGORY_FIELDS: import("@apollo/client").DocumentNode;
3
4
  export declare const QUESTION_FIELDS: import("@apollo/client").DocumentNode;
4
5
  export declare const QUESTION_WITH_HIGHLIGHT_FIELDS: import("@apollo/client").DocumentNode;
@@ -34,6 +34,28 @@ export const QUESTION_COMMENT_FIELDS = gql `
34
34
  }
35
35
  }
36
36
  `;
37
+ export const QUESTION_UKMLA_FIELDS = gql `
38
+ fragment QuestionUkmlaFields on Question {
39
+ presentations {
40
+ id
41
+ name
42
+ topicId
43
+ topic {
44
+ id
45
+ name
46
+ }
47
+ }
48
+ conditions {
49
+ id
50
+ name
51
+ topicId
52
+ topic {
53
+ id
54
+ name
55
+ }
56
+ }
57
+ }
58
+ `;
37
59
  export const QUESTION_CATEGORY_FIELDS = gql `
38
60
  fragment QuestionCategoryFields on Question {
39
61
  ... on QuestionSBA {
@@ -96,6 +118,7 @@ export const QUESTION_CATEGORY_FIELDS = gql `
96
118
  }
97
119
  `;
98
120
  export const QUESTION_FIELDS = gql `
121
+ ${QUESTION_UKMLA_FIELDS}
99
122
  ${HIGHLIGHT_FIELDS}
100
123
  ${QUESTION_CATEGORY_FIELDS}
101
124
  ${QUESTION_COMMENT_FIELDS}
@@ -140,6 +163,7 @@ export const QUESTION_FIELDS = gql `
140
163
  pictures {
141
164
  ...PictureFields
142
165
  }
166
+ ...QuestionUkmlaFields
143
167
  ...QuestionCategoryFields
144
168
  }
145
169
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.87",
3
+ "version": "2.6.88",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",