@quesmed/types 2.2.78 → 2.2.80
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/dist/cjs/resolvers/mutation/restricted/marksheet.d.ts +46 -10
- package/dist/cjs/resolvers/mutation/restricted/marksheet.js +150 -20
- package/dist/cjs/resolvers/subscription/marksheet.d.ts +17 -17
- package/dist/cjs/resolvers/subscription/marksheet.js +13 -13
- package/dist/mjs/resolvers/mutation/restricted/marksheet.d.ts +46 -10
- package/dist/mjs/resolvers/mutation/restricted/marksheet.js +149 -19
- package/dist/mjs/resolvers/subscription/marksheet.d.ts +17 -17
- package/dist/mjs/resolvers/subscription/marksheet.js +12 -12
- package/package.json +1 -1
|
@@ -86,9 +86,9 @@ export interface IStartOrJoinMarksheetVar {
|
|
|
86
86
|
export declare type IStartOrJoinMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'startOrJoinMarksheet'>;
|
|
87
87
|
export declare const START_OR_JOIN_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* modifyMarksheet
|
|
90
90
|
*/
|
|
91
|
-
export interface
|
|
91
|
+
export interface IMarksheetDataInfo {
|
|
92
92
|
userId?: Id;
|
|
93
93
|
user?: IUser;
|
|
94
94
|
startedAt?: Date | null;
|
|
@@ -98,6 +98,11 @@ export interface IMarksheetAction {
|
|
|
98
98
|
users?: IUser[];
|
|
99
99
|
activeUsers?: IUser[];
|
|
100
100
|
}
|
|
101
|
+
export interface IPreStartMarksheetDataInfo {
|
|
102
|
+
topicConceptData?: string;
|
|
103
|
+
builderConfig?: IBuildConfigData;
|
|
104
|
+
preBuildData?: IPreBuildMarksheet;
|
|
105
|
+
}
|
|
101
106
|
export interface IMarkDataInfo {
|
|
102
107
|
markId?: Id;
|
|
103
108
|
markIndex?: number;
|
|
@@ -120,21 +125,21 @@ export interface IBuildConfigData {
|
|
|
120
125
|
isTest?: boolean;
|
|
121
126
|
}
|
|
122
127
|
export interface IQbankInfoInput {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
builderConfig?: IBuildConfigData;
|
|
128
|
+
marksheetData?: IMarksheetDataInfo;
|
|
129
|
+
preStartData?: IPreStartMarksheetDataInfo;
|
|
126
130
|
markData?: IMarkDataInfo;
|
|
127
131
|
action?: EMarksheetAction;
|
|
128
132
|
marksheetId: Id;
|
|
129
133
|
}
|
|
130
|
-
export
|
|
131
|
-
|
|
134
|
+
export declare type IModifyMarksheetVarInput = Omit<IQbankInfoInput, 'markData'>;
|
|
135
|
+
export interface IModifyMarksheetVar {
|
|
136
|
+
input: Omit<IQbankInfoInput, 'markData'>;
|
|
132
137
|
}
|
|
133
|
-
export declare type IModifyMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, '
|
|
138
|
+
export declare type IModifyMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'modifyMarksheet'>;
|
|
134
139
|
export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: number, builderConfig: IBuildConfigData, client?: ApolloClient<any> | undefined) => {
|
|
135
140
|
restricted: {
|
|
136
141
|
__typename: string;
|
|
137
|
-
|
|
142
|
+
modifyMarksheet: {
|
|
138
143
|
builderConfig: {
|
|
139
144
|
numberOfQuestions?: number | undefined;
|
|
140
145
|
difficulty?: number[] | undefined;
|
|
@@ -176,7 +181,38 @@ export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: numbe
|
|
|
176
181
|
};
|
|
177
182
|
};
|
|
178
183
|
};
|
|
179
|
-
export declare const
|
|
184
|
+
export declare const MODIFY_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
185
|
+
/**
|
|
186
|
+
* MODIFY_BUILDER_CONFIG
|
|
187
|
+
*/
|
|
188
|
+
export declare const MODIFY_BUILDER_CONFIG: import("@apollo/client").DocumentNode;
|
|
189
|
+
export declare const MODIFY_BUILDER_CONFIG_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
190
|
+
/**
|
|
191
|
+
* MODIFY_TOPIC_SELECTION
|
|
192
|
+
*/
|
|
193
|
+
export declare const MODIFY_TOPIC_SELECTION: import("@apollo/client").DocumentNode;
|
|
194
|
+
export declare const MODIFY_TOPIC_SELECTION_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
195
|
+
export declare const MODIFY_CURRENT_MARK_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
196
|
+
/**
|
|
197
|
+
* MODIFY_MARKSHEET_STATE
|
|
198
|
+
*/
|
|
199
|
+
export declare const MODIFY_MARKSHEET_STATE: import("@apollo/client").DocumentNode;
|
|
200
|
+
export declare const MODIFY_MARKSHEET_STATE_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
201
|
+
/**
|
|
202
|
+
* modifyMarksheetMark
|
|
203
|
+
*/
|
|
204
|
+
export declare type IModifyMarksheetMarkVarInput = Required<Pick<IQbankInfoInput, 'action' | 'markData' | 'marksheetId'>>;
|
|
205
|
+
export interface IModifyMarksheetMarkVar {
|
|
206
|
+
input: IModifyMarksheetMarkVarInput;
|
|
207
|
+
}
|
|
208
|
+
export declare type IModifyMarksheetMarkData = RestrictedData<graphqlNormalize & IMarksheetMark, 'modifyMarksheetMark'>;
|
|
209
|
+
export declare const MODIFY_MARKSHEET_MARK: import("@apollo/client").DocumentNode;
|
|
210
|
+
export declare const MODIFY_MARKSHEET_MARK_STRIKED: import("@apollo/client").DocumentNode;
|
|
211
|
+
export declare const MODIFY_MARKSHEET_MARK_STRIKED_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
212
|
+
export declare const MODIFY_MARKSHEET_MARK_QUESTIONCHOICEID: import("@apollo/client").DocumentNode;
|
|
213
|
+
export declare const MODIFY_MARKSHEET_MARK_QUESTIONCHOICEID_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
214
|
+
export declare const MODIFY_CURRENT_MARKSHEET_MARK: import("@apollo/client").DocumentNode;
|
|
215
|
+
export declare const MODIFY_CURRENT_MARKSHEET_MARK_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
180
216
|
/**
|
|
181
217
|
* leaveMarksheet
|
|
182
218
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TOGGLE_STRIKE_OPTIONS = exports.END_MARKSHEET = exports.LEAVE_MARKSHEET = exports.
|
|
3
|
+
exports.TOGGLE_STRIKE_OPTIONS = exports.END_MARKSHEET = exports.LEAVE_MARKSHEET = exports.MODIFY_CURRENT_MARKSHEET_MARK_FRAGMENT = exports.MODIFY_CURRENT_MARKSHEET_MARK = exports.MODIFY_MARKSHEET_MARK_QUESTIONCHOICEID_FRAGMENT = exports.MODIFY_MARKSHEET_MARK_QUESTIONCHOICEID = exports.MODIFY_MARKSHEET_MARK_STRIKED_FRAGMENT = exports.MODIFY_MARKSHEET_MARK_STRIKED = exports.MODIFY_MARKSHEET_MARK = exports.MODIFY_MARKSHEET_STATE_FRAGMENT = exports.MODIFY_MARKSHEET_STATE = exports.MODIFY_CURRENT_MARK_FRAGMENT = exports.MODIFY_TOPIC_SELECTION_FRAGMENT = exports.MODIFY_TOPIC_SELECTION = exports.MODIFY_BUILDER_CONFIG_FRAGMENT = exports.MODIFY_BUILDER_CONFIG = exports.MODIFY_MARKSHEET = exports.optimisticModifyMarksheetBuilderConfig = exports.START_OR_JOIN_MARKSHEET = exports.updateCacheRemoveFlaggedQuestion = exports.updateCacheAddFlaggedQuestion = exports.MARK_FLAGGED_FIELD = exports.REMOVE_FLAGGED_QUESTION = exports.ADD_FLAGGED_QUESTION = exports.optimisticSaveMarksheets = exports.updateMarksheets = exports.SAVE_MARKSHEET = exports.RE_BUILD_MARKSHEET = exports.BUILD_MARKSHEET = exports.BUILD_QUESTION_MARKSHEET = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const restricted_1 = require("../../query/restricted");
|
|
6
6
|
exports.BUILD_QUESTION_MARKSHEET = (0, client_1.gql) `
|
|
@@ -1705,12 +1705,8 @@ exports.SAVE_MARKSHEET = (0, client_1.gql) `
|
|
|
1705
1705
|
saveMarksheets(marksheetInput: $marksheetInput) {
|
|
1706
1706
|
id
|
|
1707
1707
|
createdAt
|
|
1708
|
-
startedAt
|
|
1709
|
-
completed
|
|
1710
|
-
agoraId
|
|
1711
1708
|
solo
|
|
1712
1709
|
state
|
|
1713
|
-
endedAt
|
|
1714
1710
|
marks {
|
|
1715
1711
|
isAnswered
|
|
1716
1712
|
id
|
|
@@ -2430,7 +2426,7 @@ const optimisticModifyMarksheetBuilderConfig = (marksheetId, builderConfig, clie
|
|
|
2430
2426
|
return {
|
|
2431
2427
|
restricted: {
|
|
2432
2428
|
__typename: 'RestrictedMutation',
|
|
2433
|
-
|
|
2429
|
+
modifyMarksheet: {
|
|
2434
2430
|
...marksheet,
|
|
2435
2431
|
builderConfig: newBuilderConfig,
|
|
2436
2432
|
},
|
|
@@ -2438,12 +2434,16 @@ const optimisticModifyMarksheetBuilderConfig = (marksheetId, builderConfig, clie
|
|
|
2438
2434
|
};
|
|
2439
2435
|
};
|
|
2440
2436
|
exports.optimisticModifyMarksheetBuilderConfig = optimisticModifyMarksheetBuilderConfig;
|
|
2441
|
-
exports.
|
|
2442
|
-
mutation
|
|
2437
|
+
exports.MODIFY_MARKSHEET = (0, client_1.gql) `
|
|
2438
|
+
mutation ModifyMarksheet($input: ModifyMarksheetInput) {
|
|
2443
2439
|
restricted {
|
|
2444
|
-
|
|
2440
|
+
modifyMarksheet(input: $input) {
|
|
2445
2441
|
id
|
|
2442
|
+
createdAt
|
|
2443
|
+
startedAt
|
|
2444
|
+
endedAt
|
|
2446
2445
|
state
|
|
2446
|
+
completed
|
|
2447
2447
|
currentMarkId
|
|
2448
2448
|
topicConceptData
|
|
2449
2449
|
builderConfig {
|
|
@@ -2455,22 +2455,152 @@ exports.MODIFY_MARKSHEET_INFO = (0, client_1.gql) `
|
|
|
2455
2455
|
seenCorrect
|
|
2456
2456
|
seenIncorrect
|
|
2457
2457
|
}
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2458
|
+
}
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
`;
|
|
2462
|
+
/**
|
|
2463
|
+
* MODIFY_BUILDER_CONFIG
|
|
2464
|
+
*/
|
|
2465
|
+
exports.MODIFY_BUILDER_CONFIG = (0, client_1.gql) `
|
|
2466
|
+
mutation ModifyMarksheetBuilderConfig($input: ModifyMarksheetInput) {
|
|
2467
|
+
restricted {
|
|
2468
|
+
modifyMarksheet(input: $input) {
|
|
2469
|
+
id
|
|
2470
|
+
builderConfig {
|
|
2471
|
+
difficulty
|
|
2472
|
+
isTest
|
|
2473
|
+
numberOfQuestions
|
|
2474
|
+
secondsPerQuestion
|
|
2475
|
+
unseen
|
|
2476
|
+
seenCorrect
|
|
2477
|
+
seenIncorrect
|
|
2467
2478
|
}
|
|
2468
|
-
correct
|
|
2469
|
-
incorrect
|
|
2470
2479
|
}
|
|
2471
2480
|
}
|
|
2472
2481
|
}
|
|
2473
2482
|
`;
|
|
2483
|
+
exports.MODIFY_BUILDER_CONFIG_FRAGMENT = (0, client_1.gql) `
|
|
2484
|
+
fragment MarksheetBuilderConfig on Marksheet {
|
|
2485
|
+
builderConfig {
|
|
2486
|
+
difficulty
|
|
2487
|
+
isTest
|
|
2488
|
+
numberOfQuestions
|
|
2489
|
+
secondsPerQuestion
|
|
2490
|
+
unseen
|
|
2491
|
+
seenCorrect
|
|
2492
|
+
seenIncorrect
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
`;
|
|
2496
|
+
/**
|
|
2497
|
+
* MODIFY_TOPIC_SELECTION
|
|
2498
|
+
*/
|
|
2499
|
+
exports.MODIFY_TOPIC_SELECTION = (0, client_1.gql) `
|
|
2500
|
+
mutation ModifyMarksheetTopicSelection($input: ModifyMarksheetInput) {
|
|
2501
|
+
restricted {
|
|
2502
|
+
modifyMarksheet(input: $input) {
|
|
2503
|
+
id
|
|
2504
|
+
topicConceptData
|
|
2505
|
+
}
|
|
2506
|
+
}
|
|
2507
|
+
}
|
|
2508
|
+
`;
|
|
2509
|
+
exports.MODIFY_TOPIC_SELECTION_FRAGMENT = (0, client_1.gql) `
|
|
2510
|
+
fragment MarksheetTopicSelection on Marksheet {
|
|
2511
|
+
topicConceptData
|
|
2512
|
+
}
|
|
2513
|
+
`;
|
|
2514
|
+
exports.MODIFY_CURRENT_MARK_FRAGMENT = (0, client_1.gql) `
|
|
2515
|
+
fragment MarksheetCurrentMark on Marksheet {
|
|
2516
|
+
currentMarkId
|
|
2517
|
+
}
|
|
2518
|
+
`;
|
|
2519
|
+
/**
|
|
2520
|
+
* MODIFY_MARKSHEET_STATE
|
|
2521
|
+
*/
|
|
2522
|
+
exports.MODIFY_MARKSHEET_STATE = (0, client_1.gql) `
|
|
2523
|
+
mutation ModifyMarksheetState($input: ModifyMarksheetInput) {
|
|
2524
|
+
restricted {
|
|
2525
|
+
modifyMarksheet(input: $input) {
|
|
2526
|
+
id
|
|
2527
|
+
state
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
}
|
|
2531
|
+
`;
|
|
2532
|
+
exports.MODIFY_MARKSHEET_STATE_FRAGMENT = (0, client_1.gql) `
|
|
2533
|
+
fragment MarksheetState on Marksheet {
|
|
2534
|
+
state
|
|
2535
|
+
}
|
|
2536
|
+
`;
|
|
2537
|
+
exports.MODIFY_MARKSHEET_MARK = (0, client_1.gql) `
|
|
2538
|
+
mutation ModifyMarksheetMark($input: ModifyMarksheetMarkInput) {
|
|
2539
|
+
restricted {
|
|
2540
|
+
modifyMarksheetMark(input: $input) {
|
|
2541
|
+
id
|
|
2542
|
+
createdAt
|
|
2543
|
+
updatedAt
|
|
2544
|
+
index
|
|
2545
|
+
marksheetId
|
|
2546
|
+
questionChoiceId
|
|
2547
|
+
timeTaken
|
|
2548
|
+
mark
|
|
2549
|
+
isAnswered
|
|
2550
|
+
striked
|
|
2551
|
+
}
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
`;
|
|
2555
|
+
exports.MODIFY_MARKSHEET_MARK_STRIKED = (0, client_1.gql) `
|
|
2556
|
+
mutation ModifyMarksheetMarkStriked($input: ModifyMarksheetMarkInput) {
|
|
2557
|
+
restricted {
|
|
2558
|
+
modifyMarksheetMark(input: $input) {
|
|
2559
|
+
id
|
|
2560
|
+
striked
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2563
|
+
}
|
|
2564
|
+
`;
|
|
2565
|
+
exports.MODIFY_MARKSHEET_MARK_STRIKED_FRAGMENT = (0, client_1.gql) `
|
|
2566
|
+
fragment MarksheetMarkSriked on MarksheetMark {
|
|
2567
|
+
striked
|
|
2568
|
+
}
|
|
2569
|
+
`;
|
|
2570
|
+
exports.MODIFY_MARKSHEET_MARK_QUESTIONCHOICEID = (0, client_1.gql) `
|
|
2571
|
+
mutation ModifyMarksheetMarkQuestionChoiceId(
|
|
2572
|
+
$input: ModifyMarksheetMarkInput
|
|
2573
|
+
) {
|
|
2574
|
+
restricted {
|
|
2575
|
+
modifyMarksheetMark(input: $input) {
|
|
2576
|
+
id
|
|
2577
|
+
questionChoiceId
|
|
2578
|
+
}
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
`;
|
|
2582
|
+
exports.MODIFY_MARKSHEET_MARK_QUESTIONCHOICEID_FRAGMENT = (0, client_1.gql) `
|
|
2583
|
+
fragment MarksheetMarkTimeTaken on MarksheetMark {
|
|
2584
|
+
questionChoiceId
|
|
2585
|
+
}
|
|
2586
|
+
`;
|
|
2587
|
+
exports.MODIFY_CURRENT_MARKSHEET_MARK = (0, client_1.gql) `
|
|
2588
|
+
mutation ModifyCurrentMarksheetMark($input: ModifyMarksheetMarkInput) {
|
|
2589
|
+
restricted {
|
|
2590
|
+
modifyMarksheetMark(input: $input) {
|
|
2591
|
+
id
|
|
2592
|
+
index
|
|
2593
|
+
timeTaken
|
|
2594
|
+
}
|
|
2595
|
+
}
|
|
2596
|
+
}
|
|
2597
|
+
`;
|
|
2598
|
+
exports.MODIFY_CURRENT_MARKSHEET_MARK_FRAGMENT = (0, client_1.gql) `
|
|
2599
|
+
fragment CurrentMarksheetMark on MarksheetMark {
|
|
2600
|
+
index
|
|
2601
|
+
timeTaken
|
|
2602
|
+
}
|
|
2603
|
+
`;
|
|
2474
2604
|
exports.LEAVE_MARKSHEET = (0, client_1.gql) `
|
|
2475
2605
|
mutation LeaveMarksheet($marksheetId: Int!) {
|
|
2476
2606
|
restricted {
|
|
@@ -11,12 +11,12 @@ export interface IMarksheetGroup {
|
|
|
11
11
|
users: IUser[];
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* onMarksheetChange
|
|
15
15
|
*/
|
|
16
|
-
export interface
|
|
16
|
+
export interface IOnMarksheetChangeVar {
|
|
17
17
|
marksheetId: Id;
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
19
|
+
export interface IMarksheetInfo {
|
|
20
20
|
state: EMarksheetState;
|
|
21
21
|
marksheetId: Id;
|
|
22
22
|
agoraId: string;
|
|
@@ -28,13 +28,13 @@ export interface IMarksheetActionInfo {
|
|
|
28
28
|
users: IUser[];
|
|
29
29
|
activeUsers: IUser[];
|
|
30
30
|
}
|
|
31
|
-
export declare type
|
|
32
|
-
export declare const
|
|
33
|
-
export declare const
|
|
31
|
+
export declare type IOnMarksheetChangeData = RootData<IMarksheetInfo, 'onMarksheetChange'>;
|
|
32
|
+
export declare const ON_MARKSHEET_CHANGE_KEY = "ON_MARKSHEET_CHANGE_KEY";
|
|
33
|
+
export declare const ON_MARKSHEET_CHANGE: import("@apollo/client").DocumentNode;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* onPreStartMarksheetChange
|
|
36
36
|
*/
|
|
37
|
-
export interface
|
|
37
|
+
export interface IOnPreStartMarksheetChangeVar {
|
|
38
38
|
marksheetId: Id;
|
|
39
39
|
}
|
|
40
40
|
export interface IPreStartMarksheetData {
|
|
@@ -45,16 +45,16 @@ export interface IPreStartMarksheetData {
|
|
|
45
45
|
marksheetId: Id;
|
|
46
46
|
user: IUser;
|
|
47
47
|
}
|
|
48
|
-
export declare type
|
|
49
|
-
export declare const
|
|
50
|
-
export declare const
|
|
48
|
+
export declare type IOnPreStartMarksheetChangeData = RootData<IPreStartMarksheetData, 'onPreStartMarksheetChange'>;
|
|
49
|
+
export declare const ON_PRESTART_MARKSHEET_CHANGE_KEY = "ON_PRESTART_MARKSHEET_CHANGE_KEY";
|
|
50
|
+
export declare const ON_PRESTART_MARKSHEET_CHANGE: import("@apollo/client").DocumentNode;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* onMarksheetMarkChange
|
|
53
53
|
*/
|
|
54
|
-
export interface
|
|
54
|
+
export interface IOnMarksheetMarkChangeVar {
|
|
55
55
|
marksheetId: Id;
|
|
56
56
|
}
|
|
57
|
-
export interface
|
|
57
|
+
export interface IMarksheetMarkData {
|
|
58
58
|
action?: EMarksheetAction;
|
|
59
59
|
isAnswered?: boolean;
|
|
60
60
|
mark?: IMarksheetMarkJSONB;
|
|
@@ -68,6 +68,6 @@ export interface IMarksheetDataModification {
|
|
|
68
68
|
user: IUser;
|
|
69
69
|
striked?: number[];
|
|
70
70
|
}
|
|
71
|
-
export declare type
|
|
72
|
-
export declare const
|
|
73
|
-
export declare const
|
|
71
|
+
export declare type IOnMarksheetMarkChangeData = RootData<IMarksheetMarkData, 'onMarksheetMarkChange'>;
|
|
72
|
+
export declare const ON_MARKSHEET_MARK_CHANGE_KEY = "ON_MARKSHEET_CHANGE_KEY";
|
|
73
|
+
export declare const ON_MARKSHEET_MARK_CHANGE: import("@apollo/client").DocumentNode;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ON_MARKSHEET_MARK_CHANGE = exports.ON_MARKSHEET_MARK_CHANGE_KEY = exports.ON_PRESTART_MARKSHEET_CHANGE = exports.ON_PRESTART_MARKSHEET_CHANGE_KEY = exports.ON_MARKSHEET_CHANGE = exports.ON_MARKSHEET_CHANGE_KEY = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
subscription
|
|
8
|
-
|
|
5
|
+
exports.ON_MARKSHEET_CHANGE_KEY = 'ON_MARKSHEET_CHANGE_KEY';
|
|
6
|
+
exports.ON_MARKSHEET_CHANGE = (0, client_1.gql) `
|
|
7
|
+
subscription OnMarksheetChange($marksheetId: Int!) {
|
|
8
|
+
onMarksheetChange(marksheetId: $marksheetId) {
|
|
9
9
|
marksheetId
|
|
10
10
|
agoraId
|
|
11
11
|
userId
|
|
@@ -28,10 +28,10 @@ exports.ON_MARKSHEET_ACTION_INFO_CHANGE = (0, client_1.gql) `
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
`;
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
subscription
|
|
34
|
-
|
|
31
|
+
exports.ON_PRESTART_MARKSHEET_CHANGE_KEY = 'ON_PRESTART_MARKSHEET_CHANGE_KEY';
|
|
32
|
+
exports.ON_PRESTART_MARKSHEET_CHANGE = (0, client_1.gql) `
|
|
33
|
+
subscription OnPreStartMarksheetChange($marksheetId: Int!) {
|
|
34
|
+
onPreStartMarksheetChange(marksheetId: $marksheetId) {
|
|
35
35
|
marksheetId
|
|
36
36
|
topicConceptData
|
|
37
37
|
action
|
|
@@ -57,10 +57,10 @@ exports.ON_PRESTART_MARKSHEET_MODIFICATION = (0, client_1.gql) `
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
`;
|
|
60
|
-
exports.
|
|
61
|
-
exports.
|
|
62
|
-
subscription
|
|
63
|
-
|
|
60
|
+
exports.ON_MARKSHEET_MARK_CHANGE_KEY = 'ON_MARKSHEET_CHANGE_KEY';
|
|
61
|
+
exports.ON_MARKSHEET_MARK_CHANGE = (0, client_1.gql) `
|
|
62
|
+
subscription OnMarksheetMarkChange($marksheetId: Int!) {
|
|
63
|
+
onMarksheetMarkChange(marksheetId: $marksheetId) {
|
|
64
64
|
markId
|
|
65
65
|
updatedAt
|
|
66
66
|
marksheetId
|
|
@@ -86,9 +86,9 @@ export interface IStartOrJoinMarksheetVar {
|
|
|
86
86
|
export declare type IStartOrJoinMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'startOrJoinMarksheet'>;
|
|
87
87
|
export declare const START_OR_JOIN_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* modifyMarksheet
|
|
90
90
|
*/
|
|
91
|
-
export interface
|
|
91
|
+
export interface IMarksheetDataInfo {
|
|
92
92
|
userId?: Id;
|
|
93
93
|
user?: IUser;
|
|
94
94
|
startedAt?: Date | null;
|
|
@@ -98,6 +98,11 @@ export interface IMarksheetAction {
|
|
|
98
98
|
users?: IUser[];
|
|
99
99
|
activeUsers?: IUser[];
|
|
100
100
|
}
|
|
101
|
+
export interface IPreStartMarksheetDataInfo {
|
|
102
|
+
topicConceptData?: string;
|
|
103
|
+
builderConfig?: IBuildConfigData;
|
|
104
|
+
preBuildData?: IPreBuildMarksheet;
|
|
105
|
+
}
|
|
101
106
|
export interface IMarkDataInfo {
|
|
102
107
|
markId?: Id;
|
|
103
108
|
markIndex?: number;
|
|
@@ -120,21 +125,21 @@ export interface IBuildConfigData {
|
|
|
120
125
|
isTest?: boolean;
|
|
121
126
|
}
|
|
122
127
|
export interface IQbankInfoInput {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
builderConfig?: IBuildConfigData;
|
|
128
|
+
marksheetData?: IMarksheetDataInfo;
|
|
129
|
+
preStartData?: IPreStartMarksheetDataInfo;
|
|
126
130
|
markData?: IMarkDataInfo;
|
|
127
131
|
action?: EMarksheetAction;
|
|
128
132
|
marksheetId: Id;
|
|
129
133
|
}
|
|
130
|
-
export
|
|
131
|
-
|
|
134
|
+
export declare type IModifyMarksheetVarInput = Omit<IQbankInfoInput, 'markData'>;
|
|
135
|
+
export interface IModifyMarksheetVar {
|
|
136
|
+
input: Omit<IQbankInfoInput, 'markData'>;
|
|
132
137
|
}
|
|
133
|
-
export declare type IModifyMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, '
|
|
138
|
+
export declare type IModifyMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'modifyMarksheet'>;
|
|
134
139
|
export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: number, builderConfig: IBuildConfigData, client?: ApolloClient<any> | undefined) => {
|
|
135
140
|
restricted: {
|
|
136
141
|
__typename: string;
|
|
137
|
-
|
|
142
|
+
modifyMarksheet: {
|
|
138
143
|
builderConfig: {
|
|
139
144
|
numberOfQuestions?: number | undefined;
|
|
140
145
|
difficulty?: number[] | undefined;
|
|
@@ -176,7 +181,38 @@ export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: numbe
|
|
|
176
181
|
};
|
|
177
182
|
};
|
|
178
183
|
};
|
|
179
|
-
export declare const
|
|
184
|
+
export declare const MODIFY_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
185
|
+
/**
|
|
186
|
+
* MODIFY_BUILDER_CONFIG
|
|
187
|
+
*/
|
|
188
|
+
export declare const MODIFY_BUILDER_CONFIG: import("@apollo/client").DocumentNode;
|
|
189
|
+
export declare const MODIFY_BUILDER_CONFIG_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
190
|
+
/**
|
|
191
|
+
* MODIFY_TOPIC_SELECTION
|
|
192
|
+
*/
|
|
193
|
+
export declare const MODIFY_TOPIC_SELECTION: import("@apollo/client").DocumentNode;
|
|
194
|
+
export declare const MODIFY_TOPIC_SELECTION_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
195
|
+
export declare const MODIFY_CURRENT_MARK_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
196
|
+
/**
|
|
197
|
+
* MODIFY_MARKSHEET_STATE
|
|
198
|
+
*/
|
|
199
|
+
export declare const MODIFY_MARKSHEET_STATE: import("@apollo/client").DocumentNode;
|
|
200
|
+
export declare const MODIFY_MARKSHEET_STATE_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
201
|
+
/**
|
|
202
|
+
* modifyMarksheetMark
|
|
203
|
+
*/
|
|
204
|
+
export declare type IModifyMarksheetMarkVarInput = Required<Pick<IQbankInfoInput, 'action' | 'markData' | 'marksheetId'>>;
|
|
205
|
+
export interface IModifyMarksheetMarkVar {
|
|
206
|
+
input: IModifyMarksheetMarkVarInput;
|
|
207
|
+
}
|
|
208
|
+
export declare type IModifyMarksheetMarkData = RestrictedData<graphqlNormalize & IMarksheetMark, 'modifyMarksheetMark'>;
|
|
209
|
+
export declare const MODIFY_MARKSHEET_MARK: import("@apollo/client").DocumentNode;
|
|
210
|
+
export declare const MODIFY_MARKSHEET_MARK_STRIKED: import("@apollo/client").DocumentNode;
|
|
211
|
+
export declare const MODIFY_MARKSHEET_MARK_STRIKED_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
212
|
+
export declare const MODIFY_MARKSHEET_MARK_QUESTIONCHOICEID: import("@apollo/client").DocumentNode;
|
|
213
|
+
export declare const MODIFY_MARKSHEET_MARK_QUESTIONCHOICEID_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
214
|
+
export declare const MODIFY_CURRENT_MARKSHEET_MARK: import("@apollo/client").DocumentNode;
|
|
215
|
+
export declare const MODIFY_CURRENT_MARKSHEET_MARK_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
180
216
|
/**
|
|
181
217
|
* leaveMarksheet
|
|
182
218
|
*/
|
|
@@ -1702,12 +1702,8 @@ export const SAVE_MARKSHEET = gql `
|
|
|
1702
1702
|
saveMarksheets(marksheetInput: $marksheetInput) {
|
|
1703
1703
|
id
|
|
1704
1704
|
createdAt
|
|
1705
|
-
startedAt
|
|
1706
|
-
completed
|
|
1707
|
-
agoraId
|
|
1708
1705
|
solo
|
|
1709
1706
|
state
|
|
1710
|
-
endedAt
|
|
1711
1707
|
marks {
|
|
1712
1708
|
isAnswered
|
|
1713
1709
|
id
|
|
@@ -2423,19 +2419,23 @@ export const optimisticModifyMarksheetBuilderConfig = (marksheetId, builderConfi
|
|
|
2423
2419
|
return {
|
|
2424
2420
|
restricted: {
|
|
2425
2421
|
__typename: 'RestrictedMutation',
|
|
2426
|
-
|
|
2422
|
+
modifyMarksheet: {
|
|
2427
2423
|
...marksheet,
|
|
2428
2424
|
builderConfig: newBuilderConfig,
|
|
2429
2425
|
},
|
|
2430
2426
|
},
|
|
2431
2427
|
};
|
|
2432
2428
|
};
|
|
2433
|
-
export const
|
|
2434
|
-
mutation
|
|
2429
|
+
export const MODIFY_MARKSHEET = gql `
|
|
2430
|
+
mutation ModifyMarksheet($input: ModifyMarksheetInput) {
|
|
2435
2431
|
restricted {
|
|
2436
|
-
|
|
2432
|
+
modifyMarksheet(input: $input) {
|
|
2437
2433
|
id
|
|
2434
|
+
createdAt
|
|
2435
|
+
startedAt
|
|
2436
|
+
endedAt
|
|
2438
2437
|
state
|
|
2438
|
+
completed
|
|
2439
2439
|
currentMarkId
|
|
2440
2440
|
topicConceptData
|
|
2441
2441
|
builderConfig {
|
|
@@ -2447,22 +2447,152 @@ export const MODIFY_MARKSHEET_INFO = gql `
|
|
|
2447
2447
|
seenCorrect
|
|
2448
2448
|
seenIncorrect
|
|
2449
2449
|
}
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2452
|
+
}
|
|
2453
|
+
`;
|
|
2454
|
+
/**
|
|
2455
|
+
* MODIFY_BUILDER_CONFIG
|
|
2456
|
+
*/
|
|
2457
|
+
export const MODIFY_BUILDER_CONFIG = gql `
|
|
2458
|
+
mutation ModifyMarksheetBuilderConfig($input: ModifyMarksheetInput) {
|
|
2459
|
+
restricted {
|
|
2460
|
+
modifyMarksheet(input: $input) {
|
|
2461
|
+
id
|
|
2462
|
+
builderConfig {
|
|
2463
|
+
difficulty
|
|
2464
|
+
isTest
|
|
2465
|
+
numberOfQuestions
|
|
2466
|
+
secondsPerQuestion
|
|
2467
|
+
unseen
|
|
2468
|
+
seenCorrect
|
|
2469
|
+
seenIncorrect
|
|
2459
2470
|
}
|
|
2460
|
-
correct
|
|
2461
|
-
incorrect
|
|
2462
2471
|
}
|
|
2463
2472
|
}
|
|
2464
2473
|
}
|
|
2465
2474
|
`;
|
|
2475
|
+
export const MODIFY_BUILDER_CONFIG_FRAGMENT = gql `
|
|
2476
|
+
fragment MarksheetBuilderConfig on Marksheet {
|
|
2477
|
+
builderConfig {
|
|
2478
|
+
difficulty
|
|
2479
|
+
isTest
|
|
2480
|
+
numberOfQuestions
|
|
2481
|
+
secondsPerQuestion
|
|
2482
|
+
unseen
|
|
2483
|
+
seenCorrect
|
|
2484
|
+
seenIncorrect
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
`;
|
|
2488
|
+
/**
|
|
2489
|
+
* MODIFY_TOPIC_SELECTION
|
|
2490
|
+
*/
|
|
2491
|
+
export const MODIFY_TOPIC_SELECTION = gql `
|
|
2492
|
+
mutation ModifyMarksheetTopicSelection($input: ModifyMarksheetInput) {
|
|
2493
|
+
restricted {
|
|
2494
|
+
modifyMarksheet(input: $input) {
|
|
2495
|
+
id
|
|
2496
|
+
topicConceptData
|
|
2497
|
+
}
|
|
2498
|
+
}
|
|
2499
|
+
}
|
|
2500
|
+
`;
|
|
2501
|
+
export const MODIFY_TOPIC_SELECTION_FRAGMENT = gql `
|
|
2502
|
+
fragment MarksheetTopicSelection on Marksheet {
|
|
2503
|
+
topicConceptData
|
|
2504
|
+
}
|
|
2505
|
+
`;
|
|
2506
|
+
export const MODIFY_CURRENT_MARK_FRAGMENT = gql `
|
|
2507
|
+
fragment MarksheetCurrentMark on Marksheet {
|
|
2508
|
+
currentMarkId
|
|
2509
|
+
}
|
|
2510
|
+
`;
|
|
2511
|
+
/**
|
|
2512
|
+
* MODIFY_MARKSHEET_STATE
|
|
2513
|
+
*/
|
|
2514
|
+
export const MODIFY_MARKSHEET_STATE = gql `
|
|
2515
|
+
mutation ModifyMarksheetState($input: ModifyMarksheetInput) {
|
|
2516
|
+
restricted {
|
|
2517
|
+
modifyMarksheet(input: $input) {
|
|
2518
|
+
id
|
|
2519
|
+
state
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
}
|
|
2523
|
+
`;
|
|
2524
|
+
export const MODIFY_MARKSHEET_STATE_FRAGMENT = gql `
|
|
2525
|
+
fragment MarksheetState on Marksheet {
|
|
2526
|
+
state
|
|
2527
|
+
}
|
|
2528
|
+
`;
|
|
2529
|
+
export const MODIFY_MARKSHEET_MARK = gql `
|
|
2530
|
+
mutation ModifyMarksheetMark($input: ModifyMarksheetMarkInput) {
|
|
2531
|
+
restricted {
|
|
2532
|
+
modifyMarksheetMark(input: $input) {
|
|
2533
|
+
id
|
|
2534
|
+
createdAt
|
|
2535
|
+
updatedAt
|
|
2536
|
+
index
|
|
2537
|
+
marksheetId
|
|
2538
|
+
questionChoiceId
|
|
2539
|
+
timeTaken
|
|
2540
|
+
mark
|
|
2541
|
+
isAnswered
|
|
2542
|
+
striked
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
`;
|
|
2547
|
+
export const MODIFY_MARKSHEET_MARK_STRIKED = gql `
|
|
2548
|
+
mutation ModifyMarksheetMarkStriked($input: ModifyMarksheetMarkInput) {
|
|
2549
|
+
restricted {
|
|
2550
|
+
modifyMarksheetMark(input: $input) {
|
|
2551
|
+
id
|
|
2552
|
+
striked
|
|
2553
|
+
}
|
|
2554
|
+
}
|
|
2555
|
+
}
|
|
2556
|
+
`;
|
|
2557
|
+
export const MODIFY_MARKSHEET_MARK_STRIKED_FRAGMENT = gql `
|
|
2558
|
+
fragment MarksheetMarkSriked on MarksheetMark {
|
|
2559
|
+
striked
|
|
2560
|
+
}
|
|
2561
|
+
`;
|
|
2562
|
+
export const MODIFY_MARKSHEET_MARK_QUESTIONCHOICEID = gql `
|
|
2563
|
+
mutation ModifyMarksheetMarkQuestionChoiceId(
|
|
2564
|
+
$input: ModifyMarksheetMarkInput
|
|
2565
|
+
) {
|
|
2566
|
+
restricted {
|
|
2567
|
+
modifyMarksheetMark(input: $input) {
|
|
2568
|
+
id
|
|
2569
|
+
questionChoiceId
|
|
2570
|
+
}
|
|
2571
|
+
}
|
|
2572
|
+
}
|
|
2573
|
+
`;
|
|
2574
|
+
export const MODIFY_MARKSHEET_MARK_QUESTIONCHOICEID_FRAGMENT = gql `
|
|
2575
|
+
fragment MarksheetMarkTimeTaken on MarksheetMark {
|
|
2576
|
+
questionChoiceId
|
|
2577
|
+
}
|
|
2578
|
+
`;
|
|
2579
|
+
export const MODIFY_CURRENT_MARKSHEET_MARK = gql `
|
|
2580
|
+
mutation ModifyCurrentMarksheetMark($input: ModifyMarksheetMarkInput) {
|
|
2581
|
+
restricted {
|
|
2582
|
+
modifyMarksheetMark(input: $input) {
|
|
2583
|
+
id
|
|
2584
|
+
index
|
|
2585
|
+
timeTaken
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
}
|
|
2589
|
+
`;
|
|
2590
|
+
export const MODIFY_CURRENT_MARKSHEET_MARK_FRAGMENT = gql `
|
|
2591
|
+
fragment CurrentMarksheetMark on MarksheetMark {
|
|
2592
|
+
index
|
|
2593
|
+
timeTaken
|
|
2594
|
+
}
|
|
2595
|
+
`;
|
|
2466
2596
|
export const LEAVE_MARKSHEET = gql `
|
|
2467
2597
|
mutation LeaveMarksheet($marksheetId: Int!) {
|
|
2468
2598
|
restricted {
|
|
@@ -11,12 +11,12 @@ export interface IMarksheetGroup {
|
|
|
11
11
|
users: IUser[];
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* onMarksheetChange
|
|
15
15
|
*/
|
|
16
|
-
export interface
|
|
16
|
+
export interface IOnMarksheetChangeVar {
|
|
17
17
|
marksheetId: Id;
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
19
|
+
export interface IMarksheetInfo {
|
|
20
20
|
state: EMarksheetState;
|
|
21
21
|
marksheetId: Id;
|
|
22
22
|
agoraId: string;
|
|
@@ -28,13 +28,13 @@ export interface IMarksheetActionInfo {
|
|
|
28
28
|
users: IUser[];
|
|
29
29
|
activeUsers: IUser[];
|
|
30
30
|
}
|
|
31
|
-
export declare type
|
|
32
|
-
export declare const
|
|
33
|
-
export declare const
|
|
31
|
+
export declare type IOnMarksheetChangeData = RootData<IMarksheetInfo, 'onMarksheetChange'>;
|
|
32
|
+
export declare const ON_MARKSHEET_CHANGE_KEY = "ON_MARKSHEET_CHANGE_KEY";
|
|
33
|
+
export declare const ON_MARKSHEET_CHANGE: import("@apollo/client").DocumentNode;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* onPreStartMarksheetChange
|
|
36
36
|
*/
|
|
37
|
-
export interface
|
|
37
|
+
export interface IOnPreStartMarksheetChangeVar {
|
|
38
38
|
marksheetId: Id;
|
|
39
39
|
}
|
|
40
40
|
export interface IPreStartMarksheetData {
|
|
@@ -45,16 +45,16 @@ export interface IPreStartMarksheetData {
|
|
|
45
45
|
marksheetId: Id;
|
|
46
46
|
user: IUser;
|
|
47
47
|
}
|
|
48
|
-
export declare type
|
|
49
|
-
export declare const
|
|
50
|
-
export declare const
|
|
48
|
+
export declare type IOnPreStartMarksheetChangeData = RootData<IPreStartMarksheetData, 'onPreStartMarksheetChange'>;
|
|
49
|
+
export declare const ON_PRESTART_MARKSHEET_CHANGE_KEY = "ON_PRESTART_MARKSHEET_CHANGE_KEY";
|
|
50
|
+
export declare const ON_PRESTART_MARKSHEET_CHANGE: import("@apollo/client").DocumentNode;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* onMarksheetMarkChange
|
|
53
53
|
*/
|
|
54
|
-
export interface
|
|
54
|
+
export interface IOnMarksheetMarkChangeVar {
|
|
55
55
|
marksheetId: Id;
|
|
56
56
|
}
|
|
57
|
-
export interface
|
|
57
|
+
export interface IMarksheetMarkData {
|
|
58
58
|
action?: EMarksheetAction;
|
|
59
59
|
isAnswered?: boolean;
|
|
60
60
|
mark?: IMarksheetMarkJSONB;
|
|
@@ -68,6 +68,6 @@ export interface IMarksheetDataModification {
|
|
|
68
68
|
user: IUser;
|
|
69
69
|
striked?: number[];
|
|
70
70
|
}
|
|
71
|
-
export declare type
|
|
72
|
-
export declare const
|
|
73
|
-
export declare const
|
|
71
|
+
export declare type IOnMarksheetMarkChangeData = RootData<IMarksheetMarkData, 'onMarksheetMarkChange'>;
|
|
72
|
+
export declare const ON_MARKSHEET_MARK_CHANGE_KEY = "ON_MARKSHEET_CHANGE_KEY";
|
|
73
|
+
export declare const ON_MARKSHEET_MARK_CHANGE: import("@apollo/client").DocumentNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
|
-
export const
|
|
3
|
-
export const
|
|
4
|
-
subscription
|
|
5
|
-
|
|
2
|
+
export const ON_MARKSHEET_CHANGE_KEY = 'ON_MARKSHEET_CHANGE_KEY';
|
|
3
|
+
export const ON_MARKSHEET_CHANGE = gql `
|
|
4
|
+
subscription OnMarksheetChange($marksheetId: Int!) {
|
|
5
|
+
onMarksheetChange(marksheetId: $marksheetId) {
|
|
6
6
|
marksheetId
|
|
7
7
|
agoraId
|
|
8
8
|
userId
|
|
@@ -25,10 +25,10 @@ export const ON_MARKSHEET_ACTION_INFO_CHANGE = gql `
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
`;
|
|
28
|
-
export const
|
|
29
|
-
export const
|
|
30
|
-
subscription
|
|
31
|
-
|
|
28
|
+
export const ON_PRESTART_MARKSHEET_CHANGE_KEY = 'ON_PRESTART_MARKSHEET_CHANGE_KEY';
|
|
29
|
+
export const ON_PRESTART_MARKSHEET_CHANGE = gql `
|
|
30
|
+
subscription OnPreStartMarksheetChange($marksheetId: Int!) {
|
|
31
|
+
onPreStartMarksheetChange(marksheetId: $marksheetId) {
|
|
32
32
|
marksheetId
|
|
33
33
|
topicConceptData
|
|
34
34
|
action
|
|
@@ -54,10 +54,10 @@ export const ON_PRESTART_MARKSHEET_MODIFICATION = gql `
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
`;
|
|
57
|
-
export const
|
|
58
|
-
export const
|
|
59
|
-
subscription
|
|
60
|
-
|
|
57
|
+
export const ON_MARKSHEET_MARK_CHANGE_KEY = 'ON_MARKSHEET_CHANGE_KEY';
|
|
58
|
+
export const ON_MARKSHEET_MARK_CHANGE = gql `
|
|
59
|
+
subscription OnMarksheetMarkChange($marksheetId: Int!) {
|
|
60
|
+
onMarksheetMarkChange(marksheetId: $marksheetId) {
|
|
61
61
|
markId
|
|
62
62
|
updatedAt
|
|
63
63
|
marksheetId
|