@quesmed/types 2.6.91 → 2.6.92

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 (63) hide show
  1. package/dist/cjs/index.d.ts +3 -1
  2. package/dist/cjs/index.js +2 -0
  3. package/dist/cjs/models/Concept.d.ts +2 -3
  4. package/dist/cjs/models/Condition.d.ts +1 -0
  5. package/dist/cjs/models/Content.d.ts +120 -0
  6. package/dist/cjs/models/Content.js +17 -0
  7. package/dist/cjs/models/OsceStation.d.ts +1 -0
  8. package/dist/cjs/models/Presentation.d.ts +1 -0
  9. package/dist/cjs/models/Product.d.ts +1 -0
  10. package/dist/cjs/models/Product.js +1 -0
  11. package/dist/cjs/models/UkmlaTopic.d.ts +1 -0
  12. package/dist/cjs/models/User.d.ts +3 -1
  13. package/dist/cjs/models/User.js +2 -0
  14. package/dist/cjs/models/index.d.ts +1 -0
  15. package/dist/cjs/models/index.js +1 -0
  16. package/dist/cjs/resolvers/mutation/admin/algoliaSync.d.ts +13 -12
  17. package/dist/cjs/resolvers/mutation/admin/algoliaSync.js +13 -25
  18. package/dist/cjs/resolvers/mutation/admin/content.d.ts +86 -0
  19. package/dist/cjs/resolvers/mutation/admin/content.js +170 -0
  20. package/dist/cjs/resolvers/mutation/admin/database.d.ts +12 -0
  21. package/dist/cjs/resolvers/mutation/admin/database.js +25 -0
  22. package/dist/cjs/resolvers/mutation/admin/index.d.ts +2 -0
  23. package/dist/cjs/resolvers/mutation/admin/index.js +2 -0
  24. package/dist/cjs/resolvers/mutation/admin/notification.d.ts +3 -0
  25. package/dist/cjs/resolvers/mutation/admin/notification.js +26 -0
  26. package/dist/cjs/resolvers/mutation/users.d.ts +7 -0
  27. package/dist/cjs/resolvers/mutation/users.js +6 -1
  28. package/dist/cjs/resolvers/query/admin/database.d.ts +9 -0
  29. package/dist/cjs/resolvers/query/admin/database.js +15 -0
  30. package/dist/cjs/resolvers/query/admin/index.d.ts +1 -0
  31. package/dist/cjs/resolvers/query/admin/index.js +1 -0
  32. package/dist/mjs/index.d.ts +3 -1
  33. package/dist/mjs/index.js +2 -0
  34. package/dist/mjs/models/Concept.d.ts +2 -3
  35. package/dist/mjs/models/Condition.d.ts +1 -0
  36. package/dist/mjs/models/Content.d.ts +120 -0
  37. package/dist/mjs/models/Content.js +14 -0
  38. package/dist/mjs/models/OsceStation.d.ts +1 -0
  39. package/dist/mjs/models/Presentation.d.ts +1 -0
  40. package/dist/mjs/models/Product.d.ts +1 -0
  41. package/dist/mjs/models/Product.js +1 -0
  42. package/dist/mjs/models/UkmlaTopic.d.ts +1 -0
  43. package/dist/mjs/models/User.d.ts +3 -1
  44. package/dist/mjs/models/User.js +2 -0
  45. package/dist/mjs/models/index.d.ts +1 -0
  46. package/dist/mjs/models/index.js +1 -0
  47. package/dist/mjs/resolvers/mutation/admin/algoliaSync.d.ts +13 -12
  48. package/dist/mjs/resolvers/mutation/admin/algoliaSync.js +12 -24
  49. package/dist/mjs/resolvers/mutation/admin/content.d.ts +86 -0
  50. package/dist/mjs/resolvers/mutation/admin/content.js +167 -0
  51. package/dist/mjs/resolvers/mutation/admin/database.d.ts +12 -0
  52. package/dist/mjs/resolvers/mutation/admin/database.js +22 -0
  53. package/dist/mjs/resolvers/mutation/admin/index.d.ts +2 -0
  54. package/dist/mjs/resolvers/mutation/admin/index.js +2 -0
  55. package/dist/mjs/resolvers/mutation/admin/notification.d.ts +3 -0
  56. package/dist/mjs/resolvers/mutation/admin/notification.js +25 -1
  57. package/dist/mjs/resolvers/mutation/users.d.ts +7 -0
  58. package/dist/mjs/resolvers/mutation/users.js +5 -0
  59. package/dist/mjs/resolvers/query/admin/database.d.ts +9 -0
  60. package/dist/mjs/resolvers/query/admin/database.js +12 -0
  61. package/dist/mjs/resolvers/query/admin/index.d.ts +1 -0
  62. package/dist/mjs/resolvers/query/admin/index.js +1 -0
  63. package/package.json +1 -1
@@ -0,0 +1,167 @@
1
+ import { gql } from '@apollo/client';
2
+ export const VALIDATE_BOOK = gql `
3
+ mutation ValidateBook($input: ValidateBookInput!) {
4
+ admin {
5
+ validateBook(input: $input) {
6
+ batchId
7
+ logFile
8
+ status
9
+ message
10
+ errors
11
+ }
12
+ }
13
+ }
14
+ `;
15
+ export const VALIDATE_STATIONS = gql `
16
+ mutation ValidateStations($input: ValidateStationInput!) {
17
+ admin {
18
+ validateStations(input: $input) {
19
+ batchId
20
+ logFile
21
+ status
22
+ message
23
+ errors
24
+ }
25
+ }
26
+ }
27
+ `;
28
+ export const VALIDATE_QUESTIONS = gql `
29
+ mutation ValidateQuestions($input: ValidateQuestionInput!) {
30
+ admin {
31
+ validateQuestions(input: $input) {
32
+ batchId
33
+ logFile
34
+ status
35
+ message
36
+ errors
37
+ }
38
+ }
39
+ }
40
+ `;
41
+ export const VALIDATE_MOCKTEST = gql `
42
+ mutation validateMockTest($input: ValidateMockTestInput!) {
43
+ admin {
44
+ validateMockTest(input: $input) {
45
+ batchId
46
+ logFile
47
+ status
48
+ message
49
+ errors
50
+ }
51
+ }
52
+ }
53
+ `;
54
+ export const IMPORT_BATCH = gql `
55
+ mutation ImportBatch($batchId: String!) {
56
+ admin {
57
+ importBatch(batchId: $batchId) {
58
+ batchId
59
+ logFile
60
+ status
61
+ message
62
+ errors
63
+ }
64
+ }
65
+ }
66
+ `;
67
+ export const UPDATE_BATCH = gql `
68
+ mutation UpdateBatch($batchId: String!) {
69
+ admin {
70
+ updateBatch(batchId: $batchId) {
71
+ batchId
72
+ logFile
73
+ status
74
+ message
75
+ errors
76
+ }
77
+ }
78
+ }
79
+ `;
80
+ export const PUBLIC_BATCH = gql `
81
+ mutation PublicBatch($batchId: String!, $visibility: Boolean!) {
82
+ admin {
83
+ publicBatch(batchId: $batchId, visibility: $visibility) {
84
+ batchId
85
+ logFile
86
+ status
87
+ message
88
+ errors
89
+ }
90
+ }
91
+ }
92
+ `;
93
+ export const UPLOAD_IMAGES = gql `
94
+ mutation UploadImages($file: FileDataInput!) {
95
+ admin {
96
+ uploadImages(file: $file) {
97
+ logFile
98
+ status
99
+ message
100
+ batchId
101
+ data
102
+ recordIds
103
+ errors
104
+ }
105
+ }
106
+ }
107
+ `;
108
+ export const DOWNLOAD_IMAGES = gql `
109
+ mutation DownloadImages($ids: [Int!]!) {
110
+ admin {
111
+ downloadImages(ids: $ids) {
112
+ logFile
113
+ status
114
+ message
115
+ batchId
116
+ data
117
+ recordIds
118
+ errors
119
+ }
120
+ }
121
+ }
122
+ `;
123
+ export const DELETE_RECORDS = gql `
124
+ mutation DeleteRecords($input: DeleteRecordsInput!) {
125
+ admin {
126
+ deleteRecords(input: $input) {
127
+ logFile
128
+ status
129
+ message
130
+ batchId
131
+ data
132
+ recordIds
133
+ errors
134
+ }
135
+ }
136
+ }
137
+ `;
138
+ export const QUEUE_STATUS = gql `
139
+ mutation QueueStatus($ids: [Int!]!) {
140
+ admin {
141
+ queueStatus(ids: $ids) {
142
+ logFile
143
+ status
144
+ message
145
+ data
146
+ batchId
147
+ recordIds
148
+ errors
149
+ }
150
+ }
151
+ }
152
+ `;
153
+ export const DELETE_IMAGES = gql `
154
+ mutation DeleteImages($ids: [Int!]!) {
155
+ admin {
156
+ deleteImages(ids: $ids) {
157
+ logFile
158
+ status
159
+ batchId
160
+ message
161
+ data
162
+ recordIds
163
+ errors
164
+ }
165
+ }
166
+ }
167
+ `;
@@ -0,0 +1,12 @@
1
+ import { AdminData } from '../../types';
2
+ export declare const REFRESH_MTV: import("@apollo/client").DocumentNode;
3
+ export type IRefreshMtvVar = {
4
+ name: string;
5
+ };
6
+ export type IRefreshMtvData = AdminData<boolean, 'refreshMtv'>;
7
+ export declare const REFRESH_WIKI: import("@apollo/client").DocumentNode;
8
+ export type IRefreshWikiVar = null;
9
+ export type IRefreshWikiData = AdminData<boolean, 'refreshWiki'>;
10
+ export declare const RESET_QUES_DIFFICULTY: import("@apollo/client").DocumentNode;
11
+ export type IResetQueDifficultyVar = null;
12
+ export type IResetQueDifficultyData = AdminData<boolean, 'resetQueDifficulty'>;
@@ -0,0 +1,22 @@
1
+ import { gql } from '@apollo/client';
2
+ export const REFRESH_MTV = gql `
3
+ mutation RefreshMtv($name: String!) {
4
+ admin {
5
+ refreshMtv(name: $name)
6
+ }
7
+ }
8
+ `;
9
+ export const REFRESH_WIKI = gql `
10
+ mutation RefreshWiki {
11
+ admin {
12
+ refreshWiki
13
+ }
14
+ }
15
+ `;
16
+ export const RESET_QUES_DIFFICULTY = gql `
17
+ mutation ResetQueDifficulty {
18
+ admin {
19
+ resetQueDifficulty
20
+ }
21
+ }
22
+ `;
@@ -1,3 +1,5 @@
1
1
  export * from './algoliaSync';
2
+ export * from './content';
3
+ export * from './database';
2
4
  export * from './notification';
3
5
  export * from './token';
@@ -1,3 +1,5 @@
1
1
  export * from './algoliaSync';
2
+ export * from './content';
3
+ export * from './database';
2
4
  export * from './notification';
3
5
  export * from './token';
@@ -4,12 +4,15 @@ export interface IAdminAddNotificationInput {
4
4
  description: string;
5
5
  actionType: ENotificationActionType;
6
6
  type: ENotificationType;
7
+ userName: string;
7
8
  }
8
9
  export type IAdminAddNotificationVar = {
9
10
  data: IAdminAddNotificationInput;
10
11
  };
11
12
  export type IAdminAddNotificationData = AdminData<INotification, 'addNotification'>;
13
+ export declare const ADD_NOTIFICATION: import("@apollo/client").DocumentNode;
12
14
  export type IAdminAddNotificationsVar = {
13
15
  data: IAdminAddNotificationInput[];
14
16
  };
15
17
  export type IAdminAddNotificationsData = AdminData<INotification[], 'addNotifications'>;
18
+ export declare const ADD_NOTIFICATIONS: import("@apollo/client").DocumentNode;
@@ -1 +1,25 @@
1
- export {};
1
+ import { gql } from '@apollo/client';
2
+ export const ADD_NOTIFICATION = gql `
3
+ mutation addNotification($data: AddAdminNotificationInput!) {
4
+ admin {
5
+ addNotification(data: $data) {
6
+ id
7
+ description
8
+ actionType
9
+ type
10
+ }
11
+ }
12
+ }
13
+ `;
14
+ export const ADD_NOTIFICATIONS = gql `
15
+ mutation addNotifications($data: [AddAdminNotificationInput!]!) {
16
+ admin {
17
+ addNotifications(data: $data) {
18
+ id
19
+ description
20
+ actionType
21
+ type
22
+ }
23
+ }
24
+ }
25
+ `;
@@ -1,4 +1,11 @@
1
1
  import { RootData } from '../types';
2
+ export declare const LOGIN_ADMIN: import("@apollo/client").DocumentNode;
3
+ export interface ILoginAdminVar {
4
+ username: string;
5
+ password: string;
6
+ days: number;
7
+ }
8
+ export type ILoginAdminData = RootData<string, 'loginAdmin'>;
2
9
  export declare const LOGIN_USER: import("@apollo/client").DocumentNode;
3
10
  export interface ILoginUserVar {
4
11
  username: string;
@@ -1,4 +1,9 @@
1
1
  import { gql } from '@apollo/client';
2
+ export const LOGIN_ADMIN = gql `
3
+ mutation LoginAdmin($username: String!, $password: String!, $days: Int!) {
4
+ loginAdmin(username: $username, password: $password, days: $days)
5
+ }
6
+ `;
2
7
  export const LOGIN_USER = gql `
3
8
  mutation LoginUser($username: String!, $password: String!, $days: Int!) {
4
9
  loginUser(username: $username, password: $password, days: $days)
@@ -0,0 +1,9 @@
1
+ import { AdminData } from '../../types';
2
+ export declare const GET_DATABASE_FMV: import("@apollo/client").DocumentNode;
3
+ export interface IDatabaseFMV {
4
+ functions: string[];
5
+ materializedViews: string[];
6
+ views: string[];
7
+ }
8
+ export type IGetDatabaseFMVVar = null;
9
+ export type IGetDatabaseFMVData = AdminData<IDatabaseFMV, 'database'>;
@@ -0,0 +1,12 @@
1
+ import { gql } from '@apollo/client';
2
+ export const GET_DATABASE_FMV = gql `
3
+ query Database {
4
+ admin {
5
+ database {
6
+ functions
7
+ materializedViews
8
+ views
9
+ }
10
+ }
11
+ }
12
+ `;
@@ -1 +1,2 @@
1
1
  export * from './getUserToken';
2
+ export * from './database';
@@ -1 +1,2 @@
1
1
  export * from './getUserToken';
2
+ export * from './database';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.91",
3
+ "version": "2.6.92",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",