@quesmed/types 2.6.101 → 2.6.103

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.
@@ -11,6 +11,9 @@ export interface IPicture {
11
11
  path: string;
12
12
  path512: string;
13
13
  path256: string;
14
+ overlayPath: string;
15
+ overlayPath256: string;
16
+ overlayPath512: string;
14
17
  thumbhash: string;
15
18
  topicId: Id;
16
19
  topic: ITopic;
@@ -2,7 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BLOG_POST_FIELDS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
+ const picture_1 = require("./picture");
5
6
  exports.BLOG_POST_FIELDS = (0, client_1.gql) `
7
+ ${picture_1.PICTURE_FIELDS}
6
8
  fragment BlogPostFields on BlogPost {
7
9
  id
8
10
  createdAt
@@ -15,13 +17,7 @@ exports.BLOG_POST_FIELDS = (0, client_1.gql) `
15
17
  description
16
18
  }
17
19
  picture {
18
- id
19
- name
20
- path
21
- path512
22
- path256
23
- thumbhash
24
- caption
20
+ ...PictureFields
25
21
  }
26
22
  body
27
23
  tags {
@@ -11,7 +11,9 @@ exports.PICTURE_FIELDS = (0, client_1.gql) `
11
11
  caption
12
12
  path
13
13
  path512
14
- path256
14
+ overlayPath
15
+ overlayPath256
16
+ overlayPath512
15
17
  thumbhash
16
18
  index
17
19
  topicId
@@ -2,7 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UPDATE_USER_SETTINGS_FRAGMENT = exports.USER_FIELDS = exports.USER_SETTINGS_FIELDS = exports.COMPLETED_CARDS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
+ const picture_1 = require("./picture");
5
6
  exports.COMPLETED_CARDS = (0, client_1.gql) `
7
+ ${picture_1.PICTURE_FIELDS}
6
8
  fragment UserCompletedCards on User {
7
9
  completedCards {
8
10
  id
@@ -32,22 +34,7 @@ exports.COMPLETED_CARDS = (0, client_1.gql) `
32
34
  question
33
35
  explanation
34
36
  pictures {
35
- id
36
- createdAt
37
- updatedAt
38
- name
39
- caption
40
- index
41
- path
42
- path512
43
- path256
44
- thumbhash
45
- topicId
46
- topic {
47
- id
48
- name
49
- typeId
50
- }
37
+ ...PictureFields
51
38
  }
52
39
  }
53
40
  }
@@ -58,7 +58,7 @@ export declare const PUBLIC_BATCH: import("@apollo/client").DocumentNode;
58
58
  export interface IUploadImagesVar {
59
59
  file: FileData;
60
60
  }
61
- export type IUploadImagesdata = AdminData<IResultData, 'uploadImages'>;
61
+ export type IUploadImagesdata = AdminData<Omit<IResultData, 'batchId' | 'recordIds'>, 'uploadImages'>;
62
62
  export declare const UPLOAD_IMAGES: import("@apollo/client").DocumentNode;
63
63
  export interface IDownloadImagesVar {
64
64
  ids: number[];
@@ -31,7 +31,7 @@ exports.UPSERT_CONCEPT_BOOK = (0, client_1.gql) `
31
31
  const updateCacheOnUpsertConceptChapter = (cache, result, options) => {
32
32
  const { upsertConceptChapter } = result?.data?.restricted || {};
33
33
  const { variables } = options || {};
34
- if (!variables || !upsertConceptChapter) {
34
+ if (!variables) {
35
35
  return;
36
36
  }
37
37
  cache.writeFragment({
@@ -28,6 +28,7 @@ exports.PRE_BUILD_TODO = (0, client_1.gql) `
28
28
  `;
29
29
  exports.TODO = (0, client_1.gql) `
30
30
  ${fragments_1.CHAPTER_FIELDS}
31
+ ${fragments_1.PICTURE_FIELDS}
31
32
  query Todo($id: Int!) {
32
33
  restricted {
33
34
  todo(id: $id) {
@@ -68,16 +69,7 @@ exports.TODO = (0, client_1.gql) `
68
69
  }
69
70
  }
70
71
  pictures {
71
- id
72
- createdAt
73
- updatedAt
74
- name
75
- index
76
- caption
77
- path
78
- path512
79
- path256
80
- thumbhash
72
+ ...PictureFields
81
73
  }
82
74
  }
83
75
  }
@@ -43,6 +43,7 @@ exports.SAMPLE_MARKSHEET = (0, client_1.gql) `
43
43
  `;
44
44
  exports.SAMPLE_TODO = (0, client_1.gql) `
45
45
  ${fragments_1.CHAPTER_FIELDS}
46
+ ${fragments_1.PICTURE_FIELDS}
46
47
  query SampleTodo($todoId: Int!) {
47
48
  sampleTodo(todoId: $todoId) {
48
49
  id
@@ -82,16 +83,7 @@ exports.SAMPLE_TODO = (0, client_1.gql) `
82
83
  }
83
84
  }
84
85
  pictures {
85
- id
86
- createdAt
87
- updatedAt
88
- name
89
- index
90
- caption
91
- path
92
- path512
93
- path256
94
- thumbhash
86
+ ...PictureFields
95
87
  }
96
88
  }
97
89
  }
@@ -2,7 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ZOOM_SIGNATURE = exports.SAMPLE_VIDEO = exports.SAMPLE_VIDEOS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
+ const fragments_1 = require("../fragments");
5
6
  exports.SAMPLE_VIDEOS = (0, client_1.gql) `
7
+ ${fragments_1.PICTURE_FIELDS}
6
8
  query SampleVideos(
7
9
  $platform: Int!
8
10
  $filter: Int!
@@ -40,22 +42,7 @@ exports.SAMPLE_VIDEOS = (0, client_1.gql) `
40
42
  id
41
43
  explanation
42
44
  pictures {
43
- id
44
- createdAt
45
- updatedAt
46
- name
47
- caption
48
- path
49
- path512
50
- path256
51
- thumbhash
52
- index
53
- topicId
54
- topic {
55
- id
56
- name
57
- typeId
58
- }
45
+ ...PictureFields
59
46
  }
60
47
  }
61
48
  }
@@ -63,6 +50,7 @@ exports.SAMPLE_VIDEOS = (0, client_1.gql) `
63
50
  }
64
51
  `;
65
52
  exports.SAMPLE_VIDEO = (0, client_1.gql) `
53
+ ${fragments_1.PICTURE_FIELDS}
66
54
  query SampleVideo($id: Int!) {
67
55
  video(id: $id) {
68
56
  id
@@ -79,22 +67,7 @@ exports.SAMPLE_VIDEO = (0, client_1.gql) `
79
67
  id
80
68
  explanation
81
69
  pictures {
82
- id
83
- createdAt
84
- updatedAt
85
- name
86
- caption
87
- path
88
- path512
89
- path256
90
- thumbhash
91
- index
92
- topicId
93
- topic {
94
- id
95
- name
96
- typeId
97
- }
70
+ ...PictureFields
98
71
  }
99
72
  }
100
73
  }
@@ -117,72 +90,16 @@ exports.SAMPLE_VIDEO = (0, client_1.gql) `
117
90
  name
118
91
  }
119
92
  candidatePictures {
120
- id
121
- createdAt
122
- updatedAt
123
- name
124
- caption
125
- path
126
- path512
127
- path256
128
- thumbhash
129
- topicId
130
- topic {
131
- id
132
- name
133
- typeId
134
- }
93
+ ...PictureFields
135
94
  }
136
95
  actorPictures {
137
- id
138
- createdAt
139
- updatedAt
140
- name
141
- caption
142
- path
143
- path512
144
- path256
145
- thumbhash
146
- topicId
147
- topic {
148
- id
149
- name
150
- typeId
151
- }
96
+ ...PictureFields
152
97
  }
153
98
  examinerPictures {
154
- id
155
- createdAt
156
- updatedAt
157
- name
158
- caption
159
- path
160
- path512
161
- path256
162
- thumbhash
163
- topicId
164
- topic {
165
- id
166
- name
167
- typeId
168
- }
99
+ ...PictureFields
169
100
  }
170
101
  walkthroughPictures {
171
- id
172
- createdAt
173
- updatedAt
174
- name
175
- caption
176
- path
177
- path512
178
- path256
179
- thumbhash
180
- topicId
181
- topic {
182
- id
183
- name
184
- typeId
185
- }
102
+ ...PictureFields
186
103
  }
187
104
  lastOsceMarksheetId
188
105
  }
@@ -11,6 +11,9 @@ export interface IPicture {
11
11
  path: string;
12
12
  path512: string;
13
13
  path256: string;
14
+ overlayPath: string;
15
+ overlayPath256: string;
16
+ overlayPath512: string;
14
17
  thumbhash: string;
15
18
  topicId: Id;
16
19
  topic: ITopic;
@@ -1,5 +1,7 @@
1
1
  import { gql } from '@apollo/client';
2
+ import { PICTURE_FIELDS } from './picture';
2
3
  export const BLOG_POST_FIELDS = gql `
4
+ ${PICTURE_FIELDS}
3
5
  fragment BlogPostFields on BlogPost {
4
6
  id
5
7
  createdAt
@@ -12,13 +14,7 @@ export const BLOG_POST_FIELDS = gql `
12
14
  description
13
15
  }
14
16
  picture {
15
- id
16
- name
17
- path
18
- path512
19
- path256
20
- thumbhash
21
- caption
17
+ ...PictureFields
22
18
  }
23
19
  body
24
20
  tags {
@@ -8,7 +8,9 @@ export const PICTURE_FIELDS = gql `
8
8
  caption
9
9
  path
10
10
  path512
11
- path256
11
+ overlayPath
12
+ overlayPath256
13
+ overlayPath512
12
14
  thumbhash
13
15
  index
14
16
  topicId
@@ -1,5 +1,7 @@
1
1
  import { gql } from '@apollo/client';
2
+ import { PICTURE_FIELDS } from './picture';
2
3
  export const COMPLETED_CARDS = gql `
4
+ ${PICTURE_FIELDS}
3
5
  fragment UserCompletedCards on User {
4
6
  completedCards {
5
7
  id
@@ -29,22 +31,7 @@ export const COMPLETED_CARDS = gql `
29
31
  question
30
32
  explanation
31
33
  pictures {
32
- id
33
- createdAt
34
- updatedAt
35
- name
36
- caption
37
- index
38
- path
39
- path512
40
- path256
41
- thumbhash
42
- topicId
43
- topic {
44
- id
45
- name
46
- typeId
47
- }
34
+ ...PictureFields
48
35
  }
49
36
  }
50
37
  }
@@ -58,7 +58,7 @@ export declare const PUBLIC_BATCH: import("@apollo/client").DocumentNode;
58
58
  export interface IUploadImagesVar {
59
59
  file: FileData;
60
60
  }
61
- export type IUploadImagesdata = AdminData<IResultData, 'uploadImages'>;
61
+ export type IUploadImagesdata = AdminData<Omit<IResultData, 'batchId' | 'recordIds'>, 'uploadImages'>;
62
62
  export declare const UPLOAD_IMAGES: import("@apollo/client").DocumentNode;
63
63
  export interface IDownloadImagesVar {
64
64
  ids: number[];
@@ -28,7 +28,7 @@ export const UPSERT_CONCEPT_BOOK = gql `
28
28
  export const updateCacheOnUpsertConceptChapter = (cache, result, options) => {
29
29
  const { upsertConceptChapter } = result?.data?.restricted || {};
30
30
  const { variables } = options || {};
31
- if (!variables || !upsertConceptChapter) {
31
+ if (!variables) {
32
32
  return;
33
33
  }
34
34
  cache.writeFragment({
@@ -1,5 +1,5 @@
1
1
  import { gql } from '@apollo/client';
2
- import { CHAPTER_FIELDS } from '../../fragments';
2
+ import { CHAPTER_FIELDS, PICTURE_FIELDS } from '../../fragments';
3
3
  export const PRE_BUILD_TODO = gql `
4
4
  query PreBuildTodo(
5
5
  $topicIds: [Int!]
@@ -25,6 +25,7 @@ export const PRE_BUILD_TODO = gql `
25
25
  `;
26
26
  export const TODO = gql `
27
27
  ${CHAPTER_FIELDS}
28
+ ${PICTURE_FIELDS}
28
29
  query Todo($id: Int!) {
29
30
  restricted {
30
31
  todo(id: $id) {
@@ -65,16 +66,7 @@ export const TODO = gql `
65
66
  }
66
67
  }
67
68
  pictures {
68
- id
69
- createdAt
70
- updatedAt
71
- name
72
- index
73
- caption
74
- path
75
- path512
76
- path256
77
- thumbhash
69
+ ...PictureFields
78
70
  }
79
71
  }
80
72
  }
@@ -1,5 +1,5 @@
1
1
  import { gql } from '@apollo/client';
2
- import { CHAPTER_FIELDS, MARKSHEET_FIELDS, OSCE_MARKSHEET_FIELDS, OSCE_STATION_FIELDS, } from '../fragments';
2
+ import { CHAPTER_FIELDS, MARKSHEET_FIELDS, OSCE_MARKSHEET_FIELDS, OSCE_STATION_FIELDS, PICTURE_FIELDS, } from '../fragments';
3
3
  export const SAMPLE_CONTENT = gql `
4
4
  query SampleContent {
5
5
  sampleContent {
@@ -40,6 +40,7 @@ export const SAMPLE_MARKSHEET = gql `
40
40
  `;
41
41
  export const SAMPLE_TODO = gql `
42
42
  ${CHAPTER_FIELDS}
43
+ ${PICTURE_FIELDS}
43
44
  query SampleTodo($todoId: Int!) {
44
45
  sampleTodo(todoId: $todoId) {
45
46
  id
@@ -79,16 +80,7 @@ export const SAMPLE_TODO = gql `
79
80
  }
80
81
  }
81
82
  pictures {
82
- id
83
- createdAt
84
- updatedAt
85
- name
86
- index
87
- caption
88
- path
89
- path512
90
- path256
91
- thumbhash
83
+ ...PictureFields
92
84
  }
93
85
  }
94
86
  }
@@ -1,5 +1,7 @@
1
1
  import { gql } from '@apollo/client';
2
+ import { PICTURE_FIELDS } from '../fragments';
2
3
  export const SAMPLE_VIDEOS = gql `
4
+ ${PICTURE_FIELDS}
3
5
  query SampleVideos(
4
6
  $platform: Int!
5
7
  $filter: Int!
@@ -37,22 +39,7 @@ export const SAMPLE_VIDEOS = gql `
37
39
  id
38
40
  explanation
39
41
  pictures {
40
- id
41
- createdAt
42
- updatedAt
43
- name
44
- caption
45
- path
46
- path512
47
- path256
48
- thumbhash
49
- index
50
- topicId
51
- topic {
52
- id
53
- name
54
- typeId
55
- }
42
+ ...PictureFields
56
43
  }
57
44
  }
58
45
  }
@@ -60,6 +47,7 @@ export const SAMPLE_VIDEOS = gql `
60
47
  }
61
48
  `;
62
49
  export const SAMPLE_VIDEO = gql `
50
+ ${PICTURE_FIELDS}
63
51
  query SampleVideo($id: Int!) {
64
52
  video(id: $id) {
65
53
  id
@@ -76,22 +64,7 @@ export const SAMPLE_VIDEO = gql `
76
64
  id
77
65
  explanation
78
66
  pictures {
79
- id
80
- createdAt
81
- updatedAt
82
- name
83
- caption
84
- path
85
- path512
86
- path256
87
- thumbhash
88
- index
89
- topicId
90
- topic {
91
- id
92
- name
93
- typeId
94
- }
67
+ ...PictureFields
95
68
  }
96
69
  }
97
70
  }
@@ -114,72 +87,16 @@ export const SAMPLE_VIDEO = gql `
114
87
  name
115
88
  }
116
89
  candidatePictures {
117
- id
118
- createdAt
119
- updatedAt
120
- name
121
- caption
122
- path
123
- path512
124
- path256
125
- thumbhash
126
- topicId
127
- topic {
128
- id
129
- name
130
- typeId
131
- }
90
+ ...PictureFields
132
91
  }
133
92
  actorPictures {
134
- id
135
- createdAt
136
- updatedAt
137
- name
138
- caption
139
- path
140
- path512
141
- path256
142
- thumbhash
143
- topicId
144
- topic {
145
- id
146
- name
147
- typeId
148
- }
93
+ ...PictureFields
149
94
  }
150
95
  examinerPictures {
151
- id
152
- createdAt
153
- updatedAt
154
- name
155
- caption
156
- path
157
- path512
158
- path256
159
- thumbhash
160
- topicId
161
- topic {
162
- id
163
- name
164
- typeId
165
- }
96
+ ...PictureFields
166
97
  }
167
98
  walkthroughPictures {
168
- id
169
- createdAt
170
- updatedAt
171
- name
172
- caption
173
- path
174
- path512
175
- path256
176
- thumbhash
177
- topicId
178
- topic {
179
- id
180
- name
181
- typeId
182
- }
99
+ ...PictureFields
183
100
  }
184
101
  lastOsceMarksheetId
185
102
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.101",
3
+ "version": "2.6.103",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",