@quesmed/types-rn 2.6.235 → 2.6.236
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.
- package/package.json +1 -1
- package/resolvers/fragments/index.d.ts +0 -2
- package/resolvers/fragments/index.js +0 -2
- package/resolvers/mutation/admin/index.d.ts +0 -4
- package/resolvers/mutation/admin/index.js +0 -4
- package/resolvers/mutation/restricted/users.d.ts +1 -0
- package/resolvers/mutation/restricted/users.js +20 -1
- package/resolvers/query/admin/index.d.ts +0 -2
- package/resolvers/query/admin/index.js +0 -2
- package/resolvers/query/restricted/marksheet.d.ts +6 -0
- package/resolvers/query/restricted/marksheet.js +22 -1
- package/resolvers/fragments/job.d.ts +0 -10
- package/resolvers/fragments/job.js +0 -191
- package/resolvers/fragments/record.d.ts +0 -10
- package/resolvers/fragments/record.js +0 -187
- package/resolvers/mutation/admin/assets.d.ts +0 -44
- package/resolvers/mutation/admin/assets.js +0 -39
- package/resolvers/mutation/admin/job.d.ts +0 -75
- package/resolvers/mutation/admin/job.js +0 -102
- package/resolvers/mutation/admin/question.d.ts +0 -41
- package/resolvers/mutation/admin/question.js +0 -34
- package/resolvers/mutation/admin/record.d.ts +0 -52
- package/resolvers/mutation/admin/record.js +0 -62
- package/resolvers/query/admin/job.d.ts +0 -46
- package/resolvers/query/admin/job.js +0 -56
- package/resolvers/query/admin/record.d.ts +0 -25
- package/resolvers/query/admin/record.js +0 -35
package/package.json
CHANGED
|
@@ -2,13 +2,11 @@ export * from './blog';
|
|
|
2
2
|
export * from './chapter';
|
|
3
3
|
export * from './concept';
|
|
4
4
|
export * from './highlight';
|
|
5
|
-
export * from './job';
|
|
6
5
|
export * from './marksheet';
|
|
7
6
|
export * from './mockTest';
|
|
8
7
|
export * from './osce';
|
|
9
8
|
export * from './picture';
|
|
10
9
|
export * from './question';
|
|
11
|
-
export * from './record';
|
|
12
10
|
export * from './topic';
|
|
13
11
|
export * from './user';
|
|
14
12
|
export * from './video';
|
|
@@ -18,13 +18,11 @@ __exportStar(require("./blog"), exports);
|
|
|
18
18
|
__exportStar(require("./chapter"), exports);
|
|
19
19
|
__exportStar(require("./concept"), exports);
|
|
20
20
|
__exportStar(require("./highlight"), exports);
|
|
21
|
-
__exportStar(require("./job"), exports);
|
|
22
21
|
__exportStar(require("./marksheet"), exports);
|
|
23
22
|
__exportStar(require("./mockTest"), exports);
|
|
24
23
|
__exportStar(require("./osce"), exports);
|
|
25
24
|
__exportStar(require("./picture"), exports);
|
|
26
25
|
__exportStar(require("./question"), exports);
|
|
27
|
-
__exportStar(require("./record"), exports);
|
|
28
26
|
__exportStar(require("./topic"), exports);
|
|
29
27
|
__exportStar(require("./user"), exports);
|
|
30
28
|
__exportStar(require("./video"), exports);
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
export * from './ai';
|
|
2
2
|
export * from './algoliaSync';
|
|
3
|
-
export * from './assets';
|
|
4
3
|
export * from './chapter';
|
|
5
4
|
export * from './content';
|
|
6
5
|
export * from './database';
|
|
7
|
-
export * from './job';
|
|
8
6
|
export * from './notification';
|
|
9
|
-
export * from './question';
|
|
10
|
-
export * from './record';
|
|
11
7
|
export * from './token';
|
|
@@ -16,12 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ai"), exports);
|
|
18
18
|
__exportStar(require("./algoliaSync"), exports);
|
|
19
|
-
__exportStar(require("./assets"), exports);
|
|
20
19
|
__exportStar(require("./chapter"), exports);
|
|
21
20
|
__exportStar(require("./content"), exports);
|
|
22
21
|
__exportStar(require("./database"), exports);
|
|
23
|
-
__exportStar(require("./job"), exports);
|
|
24
22
|
__exportStar(require("./notification"), exports);
|
|
25
|
-
__exportStar(require("./question"), exports);
|
|
26
|
-
__exportStar(require("./record"), exports);
|
|
27
23
|
__exportStar(require("./token"), exports);
|
|
@@ -63,6 +63,7 @@ export type IRenewTokenData = RestrictedData<string, 'renewToken'>;
|
|
|
63
63
|
export declare const TOC_ACCEPT: import("@apollo/client").DocumentNode;
|
|
64
64
|
export type ITocAcceptVar = null;
|
|
65
65
|
export type ITocAcceptData = RestrictedData<string, 'tocAccept'>;
|
|
66
|
+
export declare const updateCacheOnTocAccept: (userId: Id) => (cache: ApolloCache<any>, _result: ApolloUpdateResultRestricted<ITocAcceptData>, _options?: ApolloUpdateOptions<ITocAcceptVar>) => void;
|
|
66
67
|
export type ICompletedCardsData = Pick<IUser, 'completedCards' | 'completedCardsCount'>;
|
|
67
68
|
export type IUpsertUserConceptStatusVar = {
|
|
68
69
|
conceptIds: Id[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.optimisticVideoLearningStatus = exports.updateCacheOnVideoLearningStatusUpdate = exports.UPSERT_USER_VIDEO_STATUS = exports.optimisticStationLearningStatus = exports.updateCacheOnStationLearningStatusUpdate = exports.UPSERT_USER_STATION_STATUS = exports.optimisticConceptLearningStatus = exports.updateCacheOnConceptLearningStatusUpdate = exports.UPSERT_USER_CONCEPT_STATUS = exports.TOC_ACCEPT = exports.RENEW_TOKEN = exports.updateCacheOnUpdateUserSettings = exports.optimisticUpdateUserSettings = exports.optimisticAddProductFeedback = exports.ADD_PRODUCT_FEEDBACK = exports.UPDATE_USER_SETTINGS = exports.UPDATE_USER = exports.DELETE_USER = exports.RESET_CATEGORY_PROGRESS = exports.RESET_PROGRESS = exports.LOGOUT_USER = void 0;
|
|
3
|
+
exports.optimisticVideoLearningStatus = exports.updateCacheOnVideoLearningStatusUpdate = exports.UPSERT_USER_VIDEO_STATUS = exports.optimisticStationLearningStatus = exports.updateCacheOnStationLearningStatusUpdate = exports.UPSERT_USER_STATION_STATUS = exports.optimisticConceptLearningStatus = exports.updateCacheOnConceptLearningStatusUpdate = exports.UPSERT_USER_CONCEPT_STATUS = exports.updateCacheOnTocAccept = exports.TOC_ACCEPT = exports.RENEW_TOKEN = exports.updateCacheOnUpdateUserSettings = exports.optimisticUpdateUserSettings = exports.optimisticAddProductFeedback = exports.ADD_PRODUCT_FEEDBACK = exports.UPDATE_USER_SETTINGS = exports.UPDATE_USER = exports.DELETE_USER = exports.RESET_CATEGORY_PROGRESS = exports.RESET_PROGRESS = exports.LOGOUT_USER = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const models_1 = require("../../../models");
|
|
6
6
|
const utils_1 = require("../../../utils");
|
|
@@ -159,6 +159,25 @@ exports.TOC_ACCEPT = (0, client_1.gql) `
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
`;
|
|
162
|
+
const TOC_ACCEPTED_FRAGMENT = (0, client_1.gql) `
|
|
163
|
+
fragment TocAcceptedFragment on User {
|
|
164
|
+
tocAccepted
|
|
165
|
+
}
|
|
166
|
+
`;
|
|
167
|
+
const updateCacheOnTocAccept = (userId) => (cache, _result, _options) => {
|
|
168
|
+
if (!userId) {
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
cache.writeFragment({
|
|
172
|
+
id: cache.identify({ id: userId, __typename: 'User' }),
|
|
173
|
+
data: {
|
|
174
|
+
tocAccepted: true,
|
|
175
|
+
},
|
|
176
|
+
fragment: TOC_ACCEPTED_FRAGMENT,
|
|
177
|
+
fragmentName: 'TocAcceptedFragment',
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
exports.updateCacheOnTocAccept = updateCacheOnTocAccept;
|
|
162
181
|
exports.UPSERT_USER_CONCEPT_STATUS = (0, client_1.gql) `
|
|
163
182
|
mutation UpsertUserConceptStatus($conceptIds: [Int!]!, $status: Int!) {
|
|
164
183
|
restricted {
|
|
@@ -18,5 +18,3 @@ __exportStar(require("./chapter"), exports);
|
|
|
18
18
|
__exportStar(require("./dashboard"), exports);
|
|
19
19
|
__exportStar(require("./database"), exports);
|
|
20
20
|
__exportStar(require("./getUserToken"), exports);
|
|
21
|
-
__exportStar(require("./job"), exports);
|
|
22
|
-
__exportStar(require("./record"), exports);
|
|
@@ -32,8 +32,14 @@ export interface IMarksheetsVar {
|
|
|
32
32
|
order?: ESortOrder;
|
|
33
33
|
lastId?: number;
|
|
34
34
|
solo?: boolean;
|
|
35
|
+
mockTestId?: number;
|
|
35
36
|
};
|
|
36
37
|
}
|
|
38
|
+
export type IMarksheetList = RestrictedData<graphqlNormalize & {
|
|
39
|
+
results: IMarksheet[];
|
|
40
|
+
total: number;
|
|
41
|
+
}, 'marksheetList'>;
|
|
42
|
+
export declare const MARKSHEET_LIST: import("@apollo/client").DocumentNode;
|
|
37
43
|
export type IMarksheetsData = RestrictedData<{
|
|
38
44
|
results: (graphqlNormalize & IMarksheet)[];
|
|
39
45
|
total: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PRE_BUILD_MARKSHEET = exports.HEARTBEAT_QBANK = exports.MARKSHEET_FEEDBACK = exports.FLAGGED_QUESTIONS_MARKSHEET = exports.FLAGGED_QUESTIONS = exports.LATEST_PAST_SESSION_ID = exports.LATEST_PAST_MARKSHEET_ID = exports.MARKSHEETS_TRACKER = exports.MARKSHEETS = exports.MARKSHEETS_WINDOW = exports.MARKSHEET = void 0;
|
|
3
|
+
exports.PRE_BUILD_MARKSHEET = exports.HEARTBEAT_QBANK = exports.MARKSHEET_FEEDBACK = exports.FLAGGED_QUESTIONS_MARKSHEET = exports.FLAGGED_QUESTIONS = exports.LATEST_PAST_SESSION_ID = exports.LATEST_PAST_MARKSHEET_ID = exports.MARKSHEETS_TRACKER = exports.MARKSHEETS = exports.MARKSHEET_LIST = exports.MARKSHEETS_WINDOW = exports.MARKSHEET = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const marksheet_1 = require("../../fragments/marksheet");
|
|
6
6
|
exports.MARKSHEET = (0, client_1.gql) `
|
|
@@ -48,6 +48,27 @@ exports.MARKSHEETS_WINDOW = (0, client_1.gql) `
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
`;
|
|
51
|
+
exports.MARKSHEET_LIST = (0, client_1.gql) `
|
|
52
|
+
${marksheet_1.MARKSHEET_STATS_FIELDS}
|
|
53
|
+
query MarksheetList($options: MarksheetOptions!) {
|
|
54
|
+
restricted {
|
|
55
|
+
marksheetList(options: $options) {
|
|
56
|
+
results {
|
|
57
|
+
id
|
|
58
|
+
endedAt
|
|
59
|
+
stats {
|
|
60
|
+
...MarksheetStatsFields
|
|
61
|
+
}
|
|
62
|
+
isTestMarksheet
|
|
63
|
+
solo
|
|
64
|
+
completed
|
|
65
|
+
updatedAt
|
|
66
|
+
}
|
|
67
|
+
total
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
51
72
|
exports.MARKSHEETS = (0, client_1.gql) `
|
|
52
73
|
${marksheet_1.MARKSHEET_STATS_FIELDS}
|
|
53
74
|
query Marksheets($filter: MarksheetFilterInput!) {
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const JOB_STATUS_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
2
|
-
export declare const JOB_META_DATA_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
3
|
-
export declare const JOB_FIELDS_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
4
|
-
export declare const JOB_CHAT_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
5
|
-
export declare const JOB_HISTORY_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
6
|
-
export declare const JOB_MEMBER_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
7
|
-
export declare const JOB_ASSETS_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
8
|
-
export declare const LIST_JOB_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
9
|
-
export declare const LIMITED_JOB_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
10
|
-
export declare const FULL_JOB_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FULL_JOB_FRAGMENT = exports.LIMITED_JOB_FRAGMENT = exports.LIST_JOB_FRAGMENT = exports.JOB_ASSETS_FRAGMENT = exports.JOB_MEMBER_FRAGMENT = exports.JOB_HISTORY_FRAGMENT = exports.JOB_CHAT_FRAGMENT = exports.JOB_FIELDS_FRAGMENT = exports.JOB_META_DATA_FRAGMENT = exports.JOB_STATUS_FRAGMENT = void 0;
|
|
4
|
-
const client_1 = require("@apollo/client");
|
|
5
|
-
const record_1 = require("./record");
|
|
6
|
-
exports.JOB_STATUS_FRAGMENT = (0, client_1.gql) `
|
|
7
|
-
fragment JobStatus on Job {
|
|
8
|
-
status
|
|
9
|
-
}
|
|
10
|
-
`;
|
|
11
|
-
exports.JOB_META_DATA_FRAGMENT = (0, client_1.gql) `
|
|
12
|
-
fragment JobMetaData on JobMetaData {
|
|
13
|
-
question {
|
|
14
|
-
typeId
|
|
15
|
-
conceptId
|
|
16
|
-
entitlementIds
|
|
17
|
-
}
|
|
18
|
-
mockTest {
|
|
19
|
-
mockTestId
|
|
20
|
-
typeId
|
|
21
|
-
isNew
|
|
22
|
-
title
|
|
23
|
-
passingMark
|
|
24
|
-
}
|
|
25
|
-
chapter {
|
|
26
|
-
topicId
|
|
27
|
-
entitlementIds
|
|
28
|
-
# topicTypeId
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
`;
|
|
32
|
-
exports.JOB_FIELDS_FRAGMENT = (0, client_1.gql) `
|
|
33
|
-
${exports.JOB_META_DATA_FRAGMENT}
|
|
34
|
-
fragment JobFields on Job {
|
|
35
|
-
name
|
|
36
|
-
description
|
|
37
|
-
type
|
|
38
|
-
productId
|
|
39
|
-
priority
|
|
40
|
-
totalRecords
|
|
41
|
-
dueDate
|
|
42
|
-
metadata {
|
|
43
|
-
...JobMetaData
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
`;
|
|
47
|
-
exports.JOB_CHAT_FRAGMENT = (0, client_1.gql) `
|
|
48
|
-
${record_1.JOB_USER_FRAGMENT}
|
|
49
|
-
fragment JobChat on JobChat {
|
|
50
|
-
id
|
|
51
|
-
jobId
|
|
52
|
-
message
|
|
53
|
-
createdAt
|
|
54
|
-
updatedAt
|
|
55
|
-
user {
|
|
56
|
-
...JobUser
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
`;
|
|
60
|
-
exports.JOB_HISTORY_FRAGMENT = (0, client_1.gql) `
|
|
61
|
-
${record_1.JOB_USER_FRAGMENT}
|
|
62
|
-
fragment JobHistory on JobHistory {
|
|
63
|
-
id
|
|
64
|
-
createdAt
|
|
65
|
-
updatedAt
|
|
66
|
-
type
|
|
67
|
-
action
|
|
68
|
-
data
|
|
69
|
-
description
|
|
70
|
-
jobId
|
|
71
|
-
recordId
|
|
72
|
-
user {
|
|
73
|
-
...JobUser
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
`;
|
|
77
|
-
exports.JOB_MEMBER_FRAGMENT = (0, client_1.gql) `
|
|
78
|
-
${record_1.JOB_USER_FRAGMENT}
|
|
79
|
-
fragment JobMember on JobMember {
|
|
80
|
-
id
|
|
81
|
-
createdAt
|
|
82
|
-
jobId
|
|
83
|
-
role
|
|
84
|
-
user {
|
|
85
|
-
...JobUser
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
`;
|
|
89
|
-
exports.JOB_ASSETS_FRAGMENT = (0, client_1.gql) `
|
|
90
|
-
${record_1.JOB_USER_FRAGMENT}
|
|
91
|
-
fragment JobAssets on JobAsset {
|
|
92
|
-
id
|
|
93
|
-
jobId
|
|
94
|
-
recordId
|
|
95
|
-
index
|
|
96
|
-
type
|
|
97
|
-
choiceLabel
|
|
98
|
-
createdAt
|
|
99
|
-
picture {
|
|
100
|
-
id
|
|
101
|
-
thumbhash
|
|
102
|
-
name
|
|
103
|
-
caption
|
|
104
|
-
path
|
|
105
|
-
path512
|
|
106
|
-
path256
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
`;
|
|
110
|
-
exports.LIST_JOB_FRAGMENT = (0, client_1.gql) `
|
|
111
|
-
${exports.JOB_FIELDS_FRAGMENT}
|
|
112
|
-
${exports.JOB_STATUS_FRAGMENT}
|
|
113
|
-
${record_1.JOB_USER_FRAGMENT}
|
|
114
|
-
${exports.JOB_MEMBER_FRAGMENT}
|
|
115
|
-
fragment Job on Job {
|
|
116
|
-
id
|
|
117
|
-
trial
|
|
118
|
-
updatedAt
|
|
119
|
-
createdAt
|
|
120
|
-
recordCount
|
|
121
|
-
publishedCount
|
|
122
|
-
resolvedCount
|
|
123
|
-
remarkCount
|
|
124
|
-
memberCount
|
|
125
|
-
assetCount
|
|
126
|
-
chatCount
|
|
127
|
-
createdByUser {
|
|
128
|
-
...JobUser
|
|
129
|
-
}
|
|
130
|
-
members {
|
|
131
|
-
...JobMember
|
|
132
|
-
}
|
|
133
|
-
...JobFields
|
|
134
|
-
...JobStatus
|
|
135
|
-
}
|
|
136
|
-
`;
|
|
137
|
-
exports.LIMITED_JOB_FRAGMENT = (0, client_1.gql) `
|
|
138
|
-
${exports.LIST_JOB_FRAGMENT}
|
|
139
|
-
${exports.JOB_MEMBER_FRAGMENT}
|
|
140
|
-
${exports.JOB_ASSETS_FRAGMENT}
|
|
141
|
-
${exports.JOB_HISTORY_FRAGMENT}
|
|
142
|
-
fragment LimitedJob on Job {
|
|
143
|
-
...Job
|
|
144
|
-
members {
|
|
145
|
-
...JobMember
|
|
146
|
-
}
|
|
147
|
-
assets {
|
|
148
|
-
...JobAssets
|
|
149
|
-
}
|
|
150
|
-
history {
|
|
151
|
-
...JobHistory
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
`;
|
|
155
|
-
exports.FULL_JOB_FRAGMENT = (0, client_1.gql) `
|
|
156
|
-
${exports.JOB_FIELDS_FRAGMENT}
|
|
157
|
-
${exports.JOB_STATUS_FRAGMENT}
|
|
158
|
-
${record_1.JOB_RECORD_FRAGMENT}
|
|
159
|
-
${record_1.JOB_REMARK_FRAGMENT}
|
|
160
|
-
${exports.JOB_MEMBER_FRAGMENT}
|
|
161
|
-
fragment DetailedJob on Job {
|
|
162
|
-
id
|
|
163
|
-
updatedAt
|
|
164
|
-
createdAt
|
|
165
|
-
trial
|
|
166
|
-
recordCount
|
|
167
|
-
setCount
|
|
168
|
-
publishedCount
|
|
169
|
-
resolvedCount
|
|
170
|
-
remarkCount
|
|
171
|
-
memberCount
|
|
172
|
-
chatCount
|
|
173
|
-
createdByUser {
|
|
174
|
-
...JobUser
|
|
175
|
-
}
|
|
176
|
-
assets {
|
|
177
|
-
...JobAssets
|
|
178
|
-
}
|
|
179
|
-
records {
|
|
180
|
-
...JobRecord
|
|
181
|
-
}
|
|
182
|
-
remarks {
|
|
183
|
-
...JobRemark
|
|
184
|
-
}
|
|
185
|
-
members {
|
|
186
|
-
...JobMember
|
|
187
|
-
}
|
|
188
|
-
...JobFields
|
|
189
|
-
...JobStatus
|
|
190
|
-
}
|
|
191
|
-
`;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const JOB_USER_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
2
|
-
export declare const JOB_REMARK_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
3
|
-
export declare const JOB_ASSET_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
4
|
-
export declare const JOB_RECORD_CHOICE_SUMMARY_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
5
|
-
export declare const JOB_RECORD_QUESTION_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
6
|
-
export declare const JOB_RECORD_CHAPTER_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
7
|
-
export declare const JOB_RECORD_STATION_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
8
|
-
export declare const JOB_RECORD_MOCK_TEST_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
9
|
-
export declare const JOB_RECORD_STATUS_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
10
|
-
export declare const JOB_RECORD_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JOB_RECORD_FRAGMENT = exports.JOB_RECORD_STATUS_FRAGMENT = exports.JOB_RECORD_MOCK_TEST_FRAGMENT = exports.JOB_RECORD_STATION_FRAGMENT = exports.JOB_RECORD_CHAPTER_FRAGMENT = exports.JOB_RECORD_QUESTION_FRAGMENT = exports.JOB_RECORD_CHOICE_SUMMARY_FRAGMENT = exports.JOB_ASSET_FRAGMENT = exports.JOB_REMARK_FRAGMENT = exports.JOB_USER_FRAGMENT = void 0;
|
|
4
|
-
const client_1 = require("@apollo/client");
|
|
5
|
-
exports.JOB_USER_FRAGMENT = (0, client_1.gql) `
|
|
6
|
-
fragment JobUser on User {
|
|
7
|
-
id
|
|
8
|
-
username
|
|
9
|
-
firstName
|
|
10
|
-
lastName
|
|
11
|
-
accessLevel
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
exports.JOB_REMARK_FRAGMENT = (0, client_1.gql) `
|
|
15
|
-
${exports.JOB_USER_FRAGMENT}
|
|
16
|
-
fragment JobRemark on JobRemark {
|
|
17
|
-
id
|
|
18
|
-
createdAt
|
|
19
|
-
jobId
|
|
20
|
-
status
|
|
21
|
-
remark
|
|
22
|
-
recordId
|
|
23
|
-
resolvedAt
|
|
24
|
-
createdByUser {
|
|
25
|
-
...JobUser
|
|
26
|
-
}
|
|
27
|
-
resolvedByUser {
|
|
28
|
-
...JobUser
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
`;
|
|
32
|
-
exports.JOB_ASSET_FRAGMENT = (0, client_1.gql) `
|
|
33
|
-
fragment JobAsset on JobAsset {
|
|
34
|
-
id
|
|
35
|
-
jobId
|
|
36
|
-
recordId
|
|
37
|
-
pictureId
|
|
38
|
-
index
|
|
39
|
-
type
|
|
40
|
-
choiceLabel
|
|
41
|
-
createdAt
|
|
42
|
-
picture {
|
|
43
|
-
id
|
|
44
|
-
updatedAt
|
|
45
|
-
name
|
|
46
|
-
sensitive
|
|
47
|
-
caption
|
|
48
|
-
path
|
|
49
|
-
path256
|
|
50
|
-
path512
|
|
51
|
-
overlayPath
|
|
52
|
-
overlayPath256
|
|
53
|
-
overlayPath512
|
|
54
|
-
thumbhash
|
|
55
|
-
index
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
`;
|
|
59
|
-
exports.JOB_RECORD_CHOICE_SUMMARY_FRAGMENT = (0, client_1.gql) `
|
|
60
|
-
fragment JobRecordChoiceSummary on JobRecordChoiceSummary {
|
|
61
|
-
id
|
|
62
|
-
label
|
|
63
|
-
votes
|
|
64
|
-
percentage
|
|
65
|
-
questionId
|
|
66
|
-
}
|
|
67
|
-
`;
|
|
68
|
-
exports.JOB_RECORD_QUESTION_FRAGMENT = (0, client_1.gql) `
|
|
69
|
-
fragment JobRecordQuestion on JobRecordQuestion {
|
|
70
|
-
question
|
|
71
|
-
stem
|
|
72
|
-
stemFromRecordId
|
|
73
|
-
conceptId
|
|
74
|
-
typeId
|
|
75
|
-
answer
|
|
76
|
-
entitlementIds
|
|
77
|
-
themeIds
|
|
78
|
-
subTypeId
|
|
79
|
-
presentationIds
|
|
80
|
-
conditionIds
|
|
81
|
-
ukmlaTopicId
|
|
82
|
-
choices {
|
|
83
|
-
label
|
|
84
|
-
name
|
|
85
|
-
explanation
|
|
86
|
-
answer
|
|
87
|
-
}
|
|
88
|
-
irtParameters {
|
|
89
|
-
discrimination
|
|
90
|
-
difficulty
|
|
91
|
-
guessing
|
|
92
|
-
}
|
|
93
|
-
learningPoint
|
|
94
|
-
explanation
|
|
95
|
-
}
|
|
96
|
-
`;
|
|
97
|
-
exports.JOB_RECORD_CHAPTER_FRAGMENT = (0, client_1.gql) `
|
|
98
|
-
fragment JobRecordChapter on JobRecordChapter {
|
|
99
|
-
topic
|
|
100
|
-
concept
|
|
101
|
-
explanation
|
|
102
|
-
summary
|
|
103
|
-
entitlementIds
|
|
104
|
-
}
|
|
105
|
-
`;
|
|
106
|
-
exports.JOB_RECORD_STATION_FRAGMENT = (0, client_1.gql) `
|
|
107
|
-
fragment JobRecordStation on JobRecordStation {
|
|
108
|
-
station
|
|
109
|
-
}
|
|
110
|
-
`;
|
|
111
|
-
exports.JOB_RECORD_MOCK_TEST_FRAGMENT = (0, client_1.gql) `
|
|
112
|
-
fragment JobRecordMockTest on JobRecordMockTest {
|
|
113
|
-
question
|
|
114
|
-
stem
|
|
115
|
-
stemFromRecordId
|
|
116
|
-
conceptId
|
|
117
|
-
typeId
|
|
118
|
-
answer
|
|
119
|
-
themeIds
|
|
120
|
-
subTypeId
|
|
121
|
-
choices {
|
|
122
|
-
label
|
|
123
|
-
name
|
|
124
|
-
explanation
|
|
125
|
-
answer
|
|
126
|
-
}
|
|
127
|
-
irtParameters {
|
|
128
|
-
discrimination
|
|
129
|
-
difficulty
|
|
130
|
-
guessing
|
|
131
|
-
}
|
|
132
|
-
learningPoint
|
|
133
|
-
explanation
|
|
134
|
-
}
|
|
135
|
-
`;
|
|
136
|
-
exports.JOB_RECORD_STATUS_FRAGMENT = (0, client_1.gql) `
|
|
137
|
-
fragment JobRecordStatus on JobRecord {
|
|
138
|
-
status
|
|
139
|
-
}
|
|
140
|
-
`;
|
|
141
|
-
exports.JOB_RECORD_FRAGMENT = (0, client_1.gql) `
|
|
142
|
-
${exports.JOB_REMARK_FRAGMENT}
|
|
143
|
-
${exports.JOB_RECORD_STATUS_FRAGMENT}
|
|
144
|
-
${exports.JOB_RECORD_QUESTION_FRAGMENT}
|
|
145
|
-
${exports.JOB_RECORD_CHAPTER_FRAGMENT}
|
|
146
|
-
${exports.JOB_RECORD_STATION_FRAGMENT}
|
|
147
|
-
${exports.JOB_RECORD_MOCK_TEST_FRAGMENT}
|
|
148
|
-
${exports.JOB_ASSET_FRAGMENT}
|
|
149
|
-
fragment JobRecord on JobRecord {
|
|
150
|
-
id
|
|
151
|
-
jobId
|
|
152
|
-
index
|
|
153
|
-
referenceId
|
|
154
|
-
referenceCount
|
|
155
|
-
data {
|
|
156
|
-
... on JobRecordQuestion {
|
|
157
|
-
...JobRecordQuestion
|
|
158
|
-
}
|
|
159
|
-
... on JobRecordChapter {
|
|
160
|
-
...JobRecordChapter
|
|
161
|
-
}
|
|
162
|
-
... on JobRecordStation {
|
|
163
|
-
...JobRecordStation
|
|
164
|
-
}
|
|
165
|
-
... on JobRecordMockTest {
|
|
166
|
-
...JobRecordMockTest
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
remarks {
|
|
170
|
-
...JobRemark
|
|
171
|
-
}
|
|
172
|
-
assets {
|
|
173
|
-
...JobAsset
|
|
174
|
-
}
|
|
175
|
-
createdByUser {
|
|
176
|
-
...JobUser
|
|
177
|
-
}
|
|
178
|
-
questionId
|
|
179
|
-
stationId
|
|
180
|
-
chapterId
|
|
181
|
-
createdAt
|
|
182
|
-
updatedAt
|
|
183
|
-
publishedAt
|
|
184
|
-
...JobRecordStatus
|
|
185
|
-
# ...JobRecordStatistics
|
|
186
|
-
}
|
|
187
|
-
`;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ELightGalleryType, FileData, IJob, IJobAsset, IJobRecord, IPicture, Id } from '../../../models';
|
|
2
|
-
import { AdminData, graphqlNormalize } from '../../types';
|
|
3
|
-
export declare const REMOVE_JOB_ASSETS: import("@apollo/client").DocumentNode;
|
|
4
|
-
export type IRemoveJobAssetsVar = {
|
|
5
|
-
unlink?: boolean | null;
|
|
6
|
-
ids: IJobAsset['id'][];
|
|
7
|
-
};
|
|
8
|
-
export type IRemoveJobAssetsData = AdminData<boolean, 'removeJobAssets'>;
|
|
9
|
-
export declare const CREATE_JOB_ASSETS: import("@apollo/client").DocumentNode;
|
|
10
|
-
export interface IJobAssetInput {
|
|
11
|
-
file: File | FileData;
|
|
12
|
-
jobId: IJob['id'];
|
|
13
|
-
recordId?: IJobRecord['id'] | null;
|
|
14
|
-
caption?: string | null;
|
|
15
|
-
name: string;
|
|
16
|
-
topicId?: Id;
|
|
17
|
-
sensitive: boolean;
|
|
18
|
-
overlay?: boolean;
|
|
19
|
-
type: ELightGalleryType;
|
|
20
|
-
choiceLabel?: string | null;
|
|
21
|
-
index: number;
|
|
22
|
-
}
|
|
23
|
-
export type ICreateJobAssetsVar = {
|
|
24
|
-
inputs: IJobAssetInput[];
|
|
25
|
-
};
|
|
26
|
-
export type ICreateJobAssetsData = AdminData<(IJobAsset & graphqlNormalize)[], 'createJobAssets'>;
|
|
27
|
-
export interface IAssetInput {
|
|
28
|
-
file: File | FileData;
|
|
29
|
-
caption?: string | null;
|
|
30
|
-
name: string;
|
|
31
|
-
topicId?: Id;
|
|
32
|
-
sensitive: boolean;
|
|
33
|
-
overlay?: boolean;
|
|
34
|
-
}
|
|
35
|
-
export declare const CREATE_ASSETS: import("@apollo/client").DocumentNode;
|
|
36
|
-
export type ICreateAssetsVar = {
|
|
37
|
-
inputs: IAssetInput[];
|
|
38
|
-
};
|
|
39
|
-
export type ICreateAssetsData = AdminData<(IPicture & graphqlNormalize)[], 'createAssets'>;
|
|
40
|
-
export declare const REMOVE_ASSETS: import("@apollo/client").DocumentNode;
|
|
41
|
-
export type IRemoveAssetsVar = {
|
|
42
|
-
ids: Id[];
|
|
43
|
-
};
|
|
44
|
-
export type IRemoveAssetsData = AdminData<boolean, 'removeAssets'>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.REMOVE_ASSETS = exports.CREATE_ASSETS = exports.CREATE_JOB_ASSETS = exports.REMOVE_JOB_ASSETS = void 0;
|
|
4
|
-
const client_1 = require("@apollo/client");
|
|
5
|
-
const fragments_1 = require("../../fragments");
|
|
6
|
-
exports.REMOVE_JOB_ASSETS = (0, client_1.gql) `
|
|
7
|
-
mutation RemoveJobAssets($unlink: Boolean, $ids: [ID!]!) {
|
|
8
|
-
admin {
|
|
9
|
-
removeJobAssets(unlink: $unlink, ids: $ids)
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
`;
|
|
13
|
-
exports.CREATE_JOB_ASSETS = (0, client_1.gql) `
|
|
14
|
-
${fragments_1.JOB_ASSET_FRAGMENT}
|
|
15
|
-
mutation CreateJobAssets($inputs: [JobAssetInput!]!) {
|
|
16
|
-
admin {
|
|
17
|
-
createJobAssets(inputs: $inputs) {
|
|
18
|
-
...JobAsset
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
`;
|
|
23
|
-
exports.CREATE_ASSETS = (0, client_1.gql) `
|
|
24
|
-
${fragments_1.PICTURE_FIELDS}
|
|
25
|
-
mutation CreateAssets($inputs: [CreateAssetsInput!]!) {
|
|
26
|
-
admin {
|
|
27
|
-
createAssets(inputs: $inputs) {
|
|
28
|
-
...PictureFields
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
`;
|
|
33
|
-
exports.REMOVE_ASSETS = (0, client_1.gql) `
|
|
34
|
-
mutation RemoveAssets($ids: [ID!]!) {
|
|
35
|
-
admin {
|
|
36
|
-
removeAssets(ids: $ids)
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { IJob, IJobChat, IJobMember, IJobRemark } from '../../../models';
|
|
2
|
-
import { AdminData, graphqlNormalize } from '../../types';
|
|
3
|
-
export declare const CREATE_JOB: import("@apollo/client").DocumentNode;
|
|
4
|
-
export type ICreateJobInput = {
|
|
5
|
-
name: IJob['name'];
|
|
6
|
-
description?: IJob['description'];
|
|
7
|
-
status: IJob['status'];
|
|
8
|
-
type: IJob['type'];
|
|
9
|
-
priority: IJob['priority'];
|
|
10
|
-
totalRecords: IJob['totalRecords'];
|
|
11
|
-
dueDate: IJob['dueDate'];
|
|
12
|
-
productId: IJob['productId'];
|
|
13
|
-
metadata: IJob['metadata'];
|
|
14
|
-
members: Pick<IJobMember, 'userId' | 'role'>[];
|
|
15
|
-
};
|
|
16
|
-
export type ICreateJobVar = {
|
|
17
|
-
input: ICreateJobInput;
|
|
18
|
-
};
|
|
19
|
-
export type ICreateJobData = AdminData<graphqlNormalize & IJob, 'createJob'>;
|
|
20
|
-
export declare const UPDATE_JOB: import("@apollo/client").DocumentNode;
|
|
21
|
-
export type IUpdateJobVar = {
|
|
22
|
-
id: IJob['id'];
|
|
23
|
-
input: Partial<ICreateJobInput>;
|
|
24
|
-
};
|
|
25
|
-
export type IUpdateJobData = AdminData<graphqlNormalize & IJob, 'updateJob'>;
|
|
26
|
-
export declare const DUPLICATE_JOB: import("@apollo/client").DocumentNode;
|
|
27
|
-
export type IDuplicateJobVar = {
|
|
28
|
-
id: IJob['id'];
|
|
29
|
-
};
|
|
30
|
-
export type IDuplicateJobData = AdminData<graphqlNormalize & IJob, 'duplicateJob'>;
|
|
31
|
-
export declare const UPDATE_JOB_STATUS: import("@apollo/client").DocumentNode;
|
|
32
|
-
export type IUpdateJobStatusVar = {
|
|
33
|
-
id: IJob['id'];
|
|
34
|
-
status: IJob['status'];
|
|
35
|
-
statusOnly?: boolean;
|
|
36
|
-
};
|
|
37
|
-
export type IUpdateJobStatusData = AdminData<graphqlNormalize & IJob, 'updateJobStatus'>;
|
|
38
|
-
export declare const DELETE_JOB: import("@apollo/client").DocumentNode;
|
|
39
|
-
export type IDeleteJobVar = {
|
|
40
|
-
id: IJob['id'];
|
|
41
|
-
};
|
|
42
|
-
export type IDeleteJobData = AdminData<boolean, 'deleteJob'>;
|
|
43
|
-
export declare const CREATE_JOB_REMARK: import("@apollo/client").DocumentNode;
|
|
44
|
-
export type ICreateJobRemarkVar = {
|
|
45
|
-
input: Pick<IJobRemark, 'jobId' | 'remark' | 'createdBy'> & {
|
|
46
|
-
recordId?: IJobRemark['recordId'];
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
export type ICreateJobRemarkData = AdminData<graphqlNormalize & IJobRemark, 'createJobRemark'>;
|
|
50
|
-
export declare const UPDATE_JOB_REMARK: import("@apollo/client").DocumentNode;
|
|
51
|
-
export type IUpdateJobRemarkVar = {
|
|
52
|
-
id: IJobRemark['id'];
|
|
53
|
-
input: Partial<Pick<IJobRemark, 'remark' | 'resolvedBy' | 'status' | 'resolvedAt'>>;
|
|
54
|
-
};
|
|
55
|
-
export type IUpdateJobRemarkData = AdminData<graphqlNormalize & IJobRemark, 'updateJobRemark'>;
|
|
56
|
-
export declare const DELETE_JOB_REMARK: import("@apollo/client").DocumentNode;
|
|
57
|
-
export type IDeleteJobRemarkVar = {
|
|
58
|
-
id: IJobRemark['id'];
|
|
59
|
-
};
|
|
60
|
-
export type IDeleteJobRemarkData = AdminData<boolean, 'deleteJobRemark'>;
|
|
61
|
-
export declare const CREATE_JOB_CHAT: import("@apollo/client").DocumentNode;
|
|
62
|
-
export type ICreateJobChatVar = {
|
|
63
|
-
input: Pick<IJobChat, 'jobId' | 'message' | 'userId'>;
|
|
64
|
-
};
|
|
65
|
-
export type ICreateJobChatData = AdminData<graphqlNormalize & IJobChat, 'createJobChat'>;
|
|
66
|
-
export declare const DELETE_JOB_CHAT: import("@apollo/client").DocumentNode;
|
|
67
|
-
export type IDeleteJobChatVar = {
|
|
68
|
-
id: IJobChat['id'];
|
|
69
|
-
};
|
|
70
|
-
export type IDeleteJobChatData = AdminData<boolean, 'deleteJobChat'>;
|
|
71
|
-
export declare const DELETE_JOB_CHATS: import("@apollo/client").DocumentNode;
|
|
72
|
-
export type IDeleteJobChatsVar = {
|
|
73
|
-
jobId: IJobChat['jobId'];
|
|
74
|
-
};
|
|
75
|
-
export type IDeleteJobChatsData = AdminData<boolean, 'deleteJobChats'>;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DELETE_JOB_CHATS = exports.DELETE_JOB_CHAT = exports.CREATE_JOB_CHAT = exports.DELETE_JOB_REMARK = exports.UPDATE_JOB_REMARK = exports.CREATE_JOB_REMARK = exports.DELETE_JOB = exports.UPDATE_JOB_STATUS = exports.DUPLICATE_JOB = exports.UPDATE_JOB = exports.CREATE_JOB = void 0;
|
|
4
|
-
const client_1 = require("@apollo/client");
|
|
5
|
-
const fragments_1 = require("../../fragments");
|
|
6
|
-
exports.CREATE_JOB = (0, client_1.gql) `
|
|
7
|
-
${fragments_1.LIST_JOB_FRAGMENT}
|
|
8
|
-
mutation CreateJob($input: CreateJobInput!) {
|
|
9
|
-
admin {
|
|
10
|
-
createJob(input: $input) {
|
|
11
|
-
...Job
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
`;
|
|
16
|
-
exports.UPDATE_JOB = (0, client_1.gql) `
|
|
17
|
-
${fragments_1.LIST_JOB_FRAGMENT}
|
|
18
|
-
mutation UpdateJob($id: ID!, $input: UpdateJobInput!) {
|
|
19
|
-
admin {
|
|
20
|
-
updateJob(id: $id, input: $input) {
|
|
21
|
-
...Job
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
26
|
-
exports.DUPLICATE_JOB = (0, client_1.gql) `
|
|
27
|
-
${fragments_1.LIST_JOB_FRAGMENT}
|
|
28
|
-
mutation DuplicateJob($id: ID!) {
|
|
29
|
-
admin {
|
|
30
|
-
duplicateJob(id: $id) {
|
|
31
|
-
...Job
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
`;
|
|
36
|
-
exports.UPDATE_JOB_STATUS = (0, client_1.gql) `
|
|
37
|
-
${fragments_1.JOB_STATUS_FRAGMENT}
|
|
38
|
-
mutation UpdateJobStatus($id: ID!, $status: Int!, $statusOnly: Boolean) {
|
|
39
|
-
admin {
|
|
40
|
-
updateJobStatus(id: $id, status: $status, statusOnly: $statusOnly) {
|
|
41
|
-
...JobStatus
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
`;
|
|
46
|
-
exports.DELETE_JOB = (0, client_1.gql) `
|
|
47
|
-
mutation DeleteJob($id: ID!) {
|
|
48
|
-
admin {
|
|
49
|
-
deleteJob(id: $id)
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
`;
|
|
53
|
-
exports.CREATE_JOB_REMARK = (0, client_1.gql) `
|
|
54
|
-
${fragments_1.JOB_REMARK_FRAGMENT}
|
|
55
|
-
mutation CreateJobRemark($input: CreateJobRemarkInput!) {
|
|
56
|
-
admin {
|
|
57
|
-
createJobRemark(input: $input) {
|
|
58
|
-
...JobRemark
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
`;
|
|
63
|
-
exports.UPDATE_JOB_REMARK = (0, client_1.gql) `
|
|
64
|
-
${fragments_1.JOB_REMARK_FRAGMENT}
|
|
65
|
-
mutation UpdateJobRemark($id: ID!, $input: UpdateJobRemarkInput!) {
|
|
66
|
-
admin {
|
|
67
|
-
updateJobRemark(id: $id, input: $input) {
|
|
68
|
-
...JobRemark
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
`;
|
|
73
|
-
exports.DELETE_JOB_REMARK = (0, client_1.gql) `
|
|
74
|
-
mutation DeleteJobRemark($id: ID!) {
|
|
75
|
-
admin {
|
|
76
|
-
deleteJobRemark(id: $id)
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
`;
|
|
80
|
-
exports.CREATE_JOB_CHAT = (0, client_1.gql) `
|
|
81
|
-
mutation CreateJobChat($input: CreateJobChatInput!) {
|
|
82
|
-
admin {
|
|
83
|
-
createJobChat(input: $input) {
|
|
84
|
-
id
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
`;
|
|
89
|
-
exports.DELETE_JOB_CHAT = (0, client_1.gql) `
|
|
90
|
-
mutation DeleteJobChat($id: ID!) {
|
|
91
|
-
admin {
|
|
92
|
-
deleteJobChat(id: $id)
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
`;
|
|
96
|
-
exports.DELETE_JOB_CHATS = (0, client_1.gql) `
|
|
97
|
-
mutation DeleteJobChats($jobId: ID!) {
|
|
98
|
-
admin {
|
|
99
|
-
deleteJobChats(jobId: $jobId)
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
`;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { EEntitlementType, IAssetBinding, IChapter, IQuestion, IQuestionCase, IQuestionChoice, Id } from '../../../models';
|
|
2
|
-
import { AdminData, graphqlNormalize } from '../../types';
|
|
3
|
-
export declare const UPDATE_QUESTION: import("@apollo/client").DocumentNode;
|
|
4
|
-
export interface IUpdateQuestionVar {
|
|
5
|
-
id: Id;
|
|
6
|
-
public?: boolean;
|
|
7
|
-
question?: string;
|
|
8
|
-
enabled?: boolean;
|
|
9
|
-
conceptId?: number;
|
|
10
|
-
difficulty?: number;
|
|
11
|
-
typeId?: number;
|
|
12
|
-
answer?: string;
|
|
13
|
-
choices?: Partial<IQuestionChoice>[];
|
|
14
|
-
conditionIds?: number[];
|
|
15
|
-
presentationIds?: number[];
|
|
16
|
-
cases?: Partial<IQuestionCase>[];
|
|
17
|
-
explanation?: string;
|
|
18
|
-
learningPoint?: string;
|
|
19
|
-
entitlements?: EEntitlementType[];
|
|
20
|
-
createRevision?: boolean;
|
|
21
|
-
assets?: IAssetBinding[];
|
|
22
|
-
stem?: Partial<IChapter>;
|
|
23
|
-
}
|
|
24
|
-
export type IUpdateQuestionData = AdminData<graphqlNormalize & IQuestion, 'updateQuestion'>;
|
|
25
|
-
export declare const RESET_QUESTION: import("@apollo/client").DocumentNode;
|
|
26
|
-
export interface IResetQuestionVar {
|
|
27
|
-
ids: Id[];
|
|
28
|
-
operation: 'likes' | 'dislikes' | 'votes';
|
|
29
|
-
}
|
|
30
|
-
export type IResetQuestionData = AdminData<graphqlNormalize & boolean, 'resetQuestion'>;
|
|
31
|
-
export declare const MANAGE_QUESTION_COMMENT: import("@apollo/client").DocumentNode;
|
|
32
|
-
export interface IManageQuestionCommentVar {
|
|
33
|
-
id: Id;
|
|
34
|
-
operation: 'hide' | 'delete';
|
|
35
|
-
}
|
|
36
|
-
export type IManageQuestionCommentData = AdminData<graphqlNormalize & boolean, 'manageQuestionComment'>;
|
|
37
|
-
export declare const DELETE_QUESTIONS: import("@apollo/client").DocumentNode;
|
|
38
|
-
export interface IDeleteQuestionsVar {
|
|
39
|
-
ids: Id[];
|
|
40
|
-
}
|
|
41
|
-
export type IDeleteQuestionsData = AdminData<graphqlNormalize & boolean, 'deleteQuestions'>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DELETE_QUESTIONS = exports.MANAGE_QUESTION_COMMENT = exports.RESET_QUESTION = exports.UPDATE_QUESTION = void 0;
|
|
4
|
-
const client_1 = require("@apollo/client");
|
|
5
|
-
exports.UPDATE_QUESTION = (0, client_1.gql) `
|
|
6
|
-
mutation updateQuestion($input: UpdateQuestionInput!) {
|
|
7
|
-
admin {
|
|
8
|
-
updateQuestion(input: $input) {
|
|
9
|
-
id
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
exports.RESET_QUESTION = (0, client_1.gql) `
|
|
15
|
-
mutation ResetQuestion($ids: [ID!]!, $operation: String!) {
|
|
16
|
-
admin {
|
|
17
|
-
resetQuestion(ids: $ids, operation: $operation)
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
`;
|
|
21
|
-
exports.MANAGE_QUESTION_COMMENT = (0, client_1.gql) `
|
|
22
|
-
mutation ManageQuestionComment($id: ID!, $operation: String!) {
|
|
23
|
-
admin {
|
|
24
|
-
manageQuestionComment(id: $id, operation: $operation)
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
`;
|
|
28
|
-
exports.DELETE_QUESTIONS = (0, client_1.gql) `
|
|
29
|
-
mutation DeleteQuestions($ids: [ID!]!) {
|
|
30
|
-
admin {
|
|
31
|
-
deleteQuestions(ids: $ids)
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
`;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { IJobAsset, IJobRecord, IJobRecordChapter, IJobRecordMockTest, IJobRecordQuestion, IJobRecordStation } from '../../../models';
|
|
2
|
-
import { AdminData, graphqlNormalize } from '../../types';
|
|
3
|
-
export declare const CREATE_JOB_RECORD: import("@apollo/client").DocumentNode;
|
|
4
|
-
export type ICreateJobRecordVar = {
|
|
5
|
-
input: {
|
|
6
|
-
jobId: IJobRecord['jobId'];
|
|
7
|
-
referenceId?: IJobRecord['referenceId'];
|
|
8
|
-
data: {
|
|
9
|
-
question: IJobRecordQuestion;
|
|
10
|
-
} | {
|
|
11
|
-
station: IJobRecordStation;
|
|
12
|
-
} | {
|
|
13
|
-
chapter: IJobRecordChapter;
|
|
14
|
-
} | {
|
|
15
|
-
mockTest: IJobRecordMockTest;
|
|
16
|
-
} | null;
|
|
17
|
-
assetIds?: IJobAsset['id'][] | null;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export type ICreateJobRecordData = AdminData<graphqlNormalize & IJobRecord, 'createJobRecord'>;
|
|
21
|
-
export declare const DELETE_JOB_RECORD: import("@apollo/client").DocumentNode;
|
|
22
|
-
export type IDeleteJobRecordVar = {
|
|
23
|
-
id: IJobRecord['id'];
|
|
24
|
-
};
|
|
25
|
-
export type IDeleteJobRecordData = AdminData<boolean, 'deleteJobRecord'>;
|
|
26
|
-
export declare const UPDATE_JOB_RECORD: import("@apollo/client").DocumentNode;
|
|
27
|
-
export type IUpdateJobRecordVar = {
|
|
28
|
-
id: IJobRecord['id'];
|
|
29
|
-
input: {
|
|
30
|
-
question: Partial<IJobRecordQuestion>;
|
|
31
|
-
} | {
|
|
32
|
-
station: Partial<IJobRecordStation>;
|
|
33
|
-
} | {
|
|
34
|
-
chapter: Partial<IJobRecordChapter>;
|
|
35
|
-
} | {
|
|
36
|
-
mockTest: Partial<IJobRecordMockTest>;
|
|
37
|
-
} | null;
|
|
38
|
-
createdAssetIds?: IJobAsset['id'][] | null;
|
|
39
|
-
deletedAssetIds?: IJobAsset['id'][] | null;
|
|
40
|
-
};
|
|
41
|
-
export type IUpdateJobRecordData = AdminData<graphqlNormalize & IJobRecord, 'updateJobRecord'>;
|
|
42
|
-
export declare const DUPLICATE_JOB_RECORD: import("@apollo/client").DocumentNode;
|
|
43
|
-
export type IDuplicateJobRecordVar = {
|
|
44
|
-
id: IJobRecord['id'];
|
|
45
|
-
};
|
|
46
|
-
export type IDuplicateJobRecordData = AdminData<graphqlNormalize & IJobRecord, 'duplicateJobRecord'>;
|
|
47
|
-
export declare const UPDATE_JOB_RECORD_STATUS: import("@apollo/client").DocumentNode;
|
|
48
|
-
export type IUpdateJobRecordStatusVar = {
|
|
49
|
-
ids: IJobRecord['id'][];
|
|
50
|
-
status: IJobRecord['status'];
|
|
51
|
-
};
|
|
52
|
-
export type IUpdateJobRecordStatusData = AdminData<(graphqlNormalize & IJobRecord)[], 'updateJobRecordStatus'>;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UPDATE_JOB_RECORD_STATUS = exports.DUPLICATE_JOB_RECORD = exports.UPDATE_JOB_RECORD = exports.DELETE_JOB_RECORD = exports.CREATE_JOB_RECORD = void 0;
|
|
4
|
-
const client_1 = require("@apollo/client");
|
|
5
|
-
const fragments_1 = require("../../fragments");
|
|
6
|
-
exports.CREATE_JOB_RECORD = (0, client_1.gql) `
|
|
7
|
-
${fragments_1.JOB_RECORD_FRAGMENT}
|
|
8
|
-
mutation CreateJobRecord($input: CreateJobRecordInput!) {
|
|
9
|
-
admin {
|
|
10
|
-
createJobRecord(input: $input) {
|
|
11
|
-
...JobRecord
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
`;
|
|
16
|
-
exports.DELETE_JOB_RECORD = (0, client_1.gql) `
|
|
17
|
-
mutation DeleteJobRecord($id: ID!) {
|
|
18
|
-
admin {
|
|
19
|
-
deleteJobRecord(id: $id)
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
`;
|
|
23
|
-
exports.UPDATE_JOB_RECORD = (0, client_1.gql) `
|
|
24
|
-
${fragments_1.JOB_RECORD_FRAGMENT}
|
|
25
|
-
mutation UpdateJobRecord(
|
|
26
|
-
$id: ID!
|
|
27
|
-
$input: JobRecordDataInput!
|
|
28
|
-
$createdAssetIds: [ID!]
|
|
29
|
-
$deletedAssetIds: [ID!]
|
|
30
|
-
) {
|
|
31
|
-
admin {
|
|
32
|
-
updateJobRecord(
|
|
33
|
-
id: $id
|
|
34
|
-
input: $input
|
|
35
|
-
createdAssetIds: $createdAssetIds
|
|
36
|
-
deletedAssetIds: $deletedAssetIds
|
|
37
|
-
) {
|
|
38
|
-
...JobRecord
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
43
|
-
exports.DUPLICATE_JOB_RECORD = (0, client_1.gql) `
|
|
44
|
-
${fragments_1.JOB_RECORD_FRAGMENT}
|
|
45
|
-
mutation DuplicateJobRecord($id: ID!) {
|
|
46
|
-
admin {
|
|
47
|
-
duplicateJobRecord(id: $id) {
|
|
48
|
-
...JobRecord
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
`;
|
|
53
|
-
exports.UPDATE_JOB_RECORD_STATUS = (0, client_1.gql) `
|
|
54
|
-
${fragments_1.JOB_RECORD_STATUS_FRAGMENT}
|
|
55
|
-
mutation UpdateJobRecordStatus($ids: [ID!]!, $status: Int!) {
|
|
56
|
-
admin {
|
|
57
|
-
updateJobRecordStatus(ids: $ids, status: $status) {
|
|
58
|
-
...JobRecordStatus
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
`;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { EJobStatus, IJob, IJobChat, IJobRemark } from '../../../models';
|
|
2
|
-
import { DB_TYPE } from '../../enums';
|
|
3
|
-
import { AdminData, graphqlNormalize } from '../../types';
|
|
4
|
-
export declare const GET_JOB: import("@apollo/client").DocumentNode;
|
|
5
|
-
export type IGetJobVar = {
|
|
6
|
-
id: IJob['id'];
|
|
7
|
-
};
|
|
8
|
-
export type IGetJobData = AdminData<graphqlNormalize & IJob, 'getJob'>;
|
|
9
|
-
export declare const GET_JOBS: import("@apollo/client").DocumentNode;
|
|
10
|
-
export type IGetJobsVar = {
|
|
11
|
-
filter: {
|
|
12
|
-
status?: IJob['status'];
|
|
13
|
-
type?: IJob['type'];
|
|
14
|
-
priority?: IJob['priority'];
|
|
15
|
-
searchText?: string;
|
|
16
|
-
memberIds?: number[];
|
|
17
|
-
dbType: DB_TYPE;
|
|
18
|
-
questionIds?: number[];
|
|
19
|
-
trial: boolean;
|
|
20
|
-
};
|
|
21
|
-
page: number;
|
|
22
|
-
take: number;
|
|
23
|
-
};
|
|
24
|
-
export type IGetJobsData = AdminData<graphqlNormalize & {
|
|
25
|
-
results: IJob[];
|
|
26
|
-
total: number;
|
|
27
|
-
counts: Array<{
|
|
28
|
-
status: EJobStatus;
|
|
29
|
-
count: number;
|
|
30
|
-
}>;
|
|
31
|
-
}, 'getJobs'>;
|
|
32
|
-
export declare const GET_JOB_REMARKS: import("@apollo/client").DocumentNode;
|
|
33
|
-
export type IGetJobRemarksVar = {
|
|
34
|
-
jobId: IJob['id'];
|
|
35
|
-
};
|
|
36
|
-
export type IGetJobRemarksData = AdminData<(graphqlNormalize & IJobRemark)[], 'getJobRemarks'>;
|
|
37
|
-
export declare const GET_JOB_CHATS: import("@apollo/client").DocumentNode;
|
|
38
|
-
export type IGetJobChatsVar = {
|
|
39
|
-
jobId: IJob['id'];
|
|
40
|
-
};
|
|
41
|
-
export type IJobChatList = {
|
|
42
|
-
chats: IJobChat[];
|
|
43
|
-
date: Date | number;
|
|
44
|
-
total: number;
|
|
45
|
-
};
|
|
46
|
-
export type IGetJobChatsData = AdminData<(graphqlNormalize & IJobChatList)[], 'getJobChats'>;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GET_JOB_CHATS = exports.GET_JOB_REMARKS = exports.GET_JOBS = exports.GET_JOB = void 0;
|
|
4
|
-
const client_1 = require("@apollo/client");
|
|
5
|
-
const fragments_1 = require("../../fragments");
|
|
6
|
-
exports.GET_JOB = (0, client_1.gql) `
|
|
7
|
-
${fragments_1.LIMITED_JOB_FRAGMENT}
|
|
8
|
-
query GetJob($id: ID!) {
|
|
9
|
-
admin {
|
|
10
|
-
getJob(id: $id) {
|
|
11
|
-
...LimitedJob
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
`;
|
|
16
|
-
exports.GET_JOBS = (0, client_1.gql) `
|
|
17
|
-
${fragments_1.LIST_JOB_FRAGMENT}
|
|
18
|
-
query GetJobs($filter: JobsFilterInput, $page: Int!, $take: Int!) {
|
|
19
|
-
admin {
|
|
20
|
-
getJobs(filter: $filter, page: $page, take: $take) {
|
|
21
|
-
results {
|
|
22
|
-
...Job
|
|
23
|
-
}
|
|
24
|
-
total
|
|
25
|
-
counts {
|
|
26
|
-
status
|
|
27
|
-
count
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
`;
|
|
33
|
-
exports.GET_JOB_REMARKS = (0, client_1.gql) `
|
|
34
|
-
${fragments_1.JOB_REMARK_FRAGMENT}
|
|
35
|
-
query GetJobRemarks($jobId: ID!) {
|
|
36
|
-
admin {
|
|
37
|
-
getJobRemarks(jobId: $jobId) {
|
|
38
|
-
...JobRemark
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
43
|
-
exports.GET_JOB_CHATS = (0, client_1.gql) `
|
|
44
|
-
${fragments_1.JOB_CHAT_FRAGMENT}
|
|
45
|
-
query GetJobChats($jobId: ID!) {
|
|
46
|
-
admin {
|
|
47
|
-
getJobChats(jobId: $jobId) {
|
|
48
|
-
chats {
|
|
49
|
-
...JobChat
|
|
50
|
-
}
|
|
51
|
-
date
|
|
52
|
-
total
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
`;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { EJobAttemptType, IJob, IJobRecord, Id } from '../../../models';
|
|
2
|
-
import { AdminData, graphqlNormalize } from '../../types';
|
|
3
|
-
export declare const GET_JOB_RECORDS: import("@apollo/client").DocumentNode;
|
|
4
|
-
export interface IJobRecordsFilter {
|
|
5
|
-
attemptType: EJobAttemptType;
|
|
6
|
-
}
|
|
7
|
-
export type IGetJobRecordsVar = {
|
|
8
|
-
jobId: IJob['id'];
|
|
9
|
-
filter: IJobRecordsFilter;
|
|
10
|
-
};
|
|
11
|
-
export type IGetJobRecordsData = AdminData<(graphqlNormalize & IJobRecord)[], 'getJobRecords'>;
|
|
12
|
-
export declare const GET_JOB_RECORD: import("@apollo/client").DocumentNode;
|
|
13
|
-
export type IGetJobRecordVar = {
|
|
14
|
-
id: IJobRecord['id'];
|
|
15
|
-
};
|
|
16
|
-
export type IGetJobRecordData = AdminData<graphqlNormalize & IJobRecord, 'getJobRecord'>;
|
|
17
|
-
export type IGetIdDetailsVar = {
|
|
18
|
-
ids: Array<Id>;
|
|
19
|
-
table: string;
|
|
20
|
-
};
|
|
21
|
-
export type IGetIdDetailsData = AdminData<Array<{
|
|
22
|
-
id: Id;
|
|
23
|
-
name: string;
|
|
24
|
-
}>, 'getIdDetails'>;
|
|
25
|
-
export declare const GET_ID_DETAILS: import("@apollo/client").DocumentNode;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GET_ID_DETAILS = exports.GET_JOB_RECORD = exports.GET_JOB_RECORDS = void 0;
|
|
4
|
-
const client_1 = require("@apollo/client");
|
|
5
|
-
const fragments_1 = require("../../fragments");
|
|
6
|
-
exports.GET_JOB_RECORDS = (0, client_1.gql) `
|
|
7
|
-
${fragments_1.JOB_RECORD_FRAGMENT}
|
|
8
|
-
query GetJobRecords($jobId: ID!) {
|
|
9
|
-
admin {
|
|
10
|
-
getJobRecords(jobId: $jobId) {
|
|
11
|
-
...JobRecord
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
`;
|
|
16
|
-
exports.GET_JOB_RECORD = (0, client_1.gql) `
|
|
17
|
-
${fragments_1.JOB_RECORD_FRAGMENT}
|
|
18
|
-
query GetJobRecord($id: ID!) {
|
|
19
|
-
admin {
|
|
20
|
-
getJobRecord(id: $id) {
|
|
21
|
-
...JobRecord
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
26
|
-
exports.GET_ID_DETAILS = (0, client_1.gql) `
|
|
27
|
-
query GetIdDetails($ids: [ID!]!, $table: String!) {
|
|
28
|
-
admin {
|
|
29
|
-
getIdDetails(ids: $ids, table: $table) {
|
|
30
|
-
id
|
|
31
|
-
name
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
`;
|