@gbl-uzh/platform 0.2.11 → 0.2.12
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/generated/ops.d.ts +129 -129
- package/dist/index.d.ts +6 -6
- package/dist/nexus.d.ts +4 -24
- package/dist/nexus.js +74 -104
- package/dist/schema.prisma +1 -1
- package/package.json +7 -7
package/dist/generated/ops.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { GraphQLResolveInfo, GraphQLScalarTypeConfig, GraphQLScalarType } from 'graphql';
|
|
2
2
|
import { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type Maybe<T> = T | null;
|
|
5
|
+
type InputMaybe<T> = Maybe<T>;
|
|
6
|
+
type Exact<T extends {
|
|
7
7
|
[key: string]: unknown;
|
|
8
8
|
}> = {
|
|
9
9
|
[K in keyof T]: T[K];
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
12
12
|
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
15
15
|
[SubKey in K]: Maybe<T[SubKey]>;
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
type RequireFields<T, K extends keyof T> = Omit<T, K> & {
|
|
18
18
|
[P in K]-?: NonNullable<T[P]>;
|
|
19
19
|
};
|
|
20
20
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
21
|
-
|
|
21
|
+
type Scalars = {
|
|
22
22
|
ID: string;
|
|
23
23
|
String: string;
|
|
24
24
|
Boolean: boolean;
|
|
@@ -29,7 +29,7 @@ declare type Scalars = {
|
|
|
29
29
|
/** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
|
|
30
30
|
JSONObject: any;
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
type Achievement = {
|
|
33
33
|
__typename?: 'Achievement';
|
|
34
34
|
description: Scalars['String'];
|
|
35
35
|
id: Scalars['ID'];
|
|
@@ -42,17 +42,17 @@ declare enum AchievementFrequency {
|
|
|
42
42
|
Each = "EACH",
|
|
43
43
|
First = "FIRST"
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
type AchievementInstance = {
|
|
46
46
|
__typename?: 'AchievementInstance';
|
|
47
47
|
achievement: Achievement;
|
|
48
48
|
count: Scalars['Int'];
|
|
49
49
|
id: Scalars['Int'];
|
|
50
50
|
};
|
|
51
|
-
|
|
51
|
+
type Event = {
|
|
52
52
|
__typename?: 'Event';
|
|
53
53
|
type?: Maybe<Scalars['String']>;
|
|
54
54
|
};
|
|
55
|
-
|
|
55
|
+
type Game = {
|
|
56
56
|
__typename?: 'Game';
|
|
57
57
|
activePeriod?: Maybe<Period>;
|
|
58
58
|
activePeriodIx?: Maybe<Scalars['Int']>;
|
|
@@ -72,13 +72,13 @@ declare enum GameStatus {
|
|
|
72
72
|
Running = "RUNNING",
|
|
73
73
|
Scheduled = "SCHEDULED"
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
type LearningAnswerOption = {
|
|
76
76
|
__typename?: 'LearningAnswerOption';
|
|
77
77
|
content: Scalars['String'];
|
|
78
78
|
correct: Scalars['Boolean'];
|
|
79
79
|
id: Scalars['ID'];
|
|
80
80
|
};
|
|
81
|
-
|
|
81
|
+
type LearningElement = {
|
|
82
82
|
__typename?: 'LearningElement';
|
|
83
83
|
feedback?: Maybe<Scalars['String']>;
|
|
84
84
|
id: Scalars['ID'];
|
|
@@ -88,7 +88,7 @@ declare type LearningElement = {
|
|
|
88
88
|
reward?: Maybe<Scalars['JSONObject']>;
|
|
89
89
|
title: Scalars['String'];
|
|
90
90
|
};
|
|
91
|
-
|
|
91
|
+
type LearningElementAttempt = {
|
|
92
92
|
__typename?: 'LearningElementAttempt';
|
|
93
93
|
element?: Maybe<LearningElement>;
|
|
94
94
|
id?: Maybe<Scalars['ID']>;
|
|
@@ -96,14 +96,14 @@ declare type LearningElementAttempt = {
|
|
|
96
96
|
pointsAchieved?: Maybe<Scalars['Int']>;
|
|
97
97
|
pointsMax?: Maybe<Scalars['Int']>;
|
|
98
98
|
};
|
|
99
|
-
|
|
99
|
+
type LearningElementState = {
|
|
100
100
|
__typename?: 'LearningElementState';
|
|
101
101
|
element?: Maybe<LearningElement>;
|
|
102
102
|
id?: Maybe<Scalars['ID']>;
|
|
103
103
|
solution?: Maybe<Scalars['String']>;
|
|
104
104
|
state?: Maybe<Scalars['String']>;
|
|
105
105
|
};
|
|
106
|
-
|
|
106
|
+
type Mutation = {
|
|
107
107
|
__typename?: 'Mutation';
|
|
108
108
|
activateNextPeriod?: Maybe<Game>;
|
|
109
109
|
activateNextSegment?: Maybe<Game>;
|
|
@@ -118,54 +118,54 @@ declare type Mutation = {
|
|
|
118
118
|
updatePlayerData?: Maybe<Player>;
|
|
119
119
|
updateReadyState?: Maybe<Player>;
|
|
120
120
|
};
|
|
121
|
-
|
|
121
|
+
type MutationActivateNextPeriodArgs = {
|
|
122
122
|
gameId: Scalars['Int'];
|
|
123
123
|
};
|
|
124
|
-
|
|
124
|
+
type MutationActivateNextSegmentArgs = {
|
|
125
125
|
gameId: Scalars['Int'];
|
|
126
126
|
};
|
|
127
|
-
|
|
127
|
+
type MutationAddGamePeriodArgs = {
|
|
128
128
|
facts: PeriodFactsInput;
|
|
129
129
|
gameId: Scalars['Int'];
|
|
130
130
|
};
|
|
131
|
-
|
|
131
|
+
type MutationAddPeriodSegmentArgs = {
|
|
132
132
|
facts: PeriodSegmentFactsInput;
|
|
133
133
|
gameId: Scalars['Int'];
|
|
134
134
|
learningElements?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
|
|
135
135
|
periodIx: Scalars['Int'];
|
|
136
136
|
storyElements?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
|
|
137
137
|
};
|
|
138
|
-
|
|
138
|
+
type MutationAttemptLearningElementArgs = {
|
|
139
139
|
elementId: Scalars['ID'];
|
|
140
140
|
selection: Scalars['String'];
|
|
141
141
|
};
|
|
142
|
-
|
|
142
|
+
type MutationCreateGameArgs = {
|
|
143
143
|
name: Scalars['String'];
|
|
144
144
|
playerCount: Scalars['Int'];
|
|
145
145
|
};
|
|
146
|
-
|
|
146
|
+
type MutationLoginAsTeamArgs = {
|
|
147
147
|
token: Scalars['String'];
|
|
148
148
|
};
|
|
149
|
-
|
|
149
|
+
type MutationMarkStoryElementArgs = {
|
|
150
150
|
elementId: Scalars['ID'];
|
|
151
151
|
};
|
|
152
|
-
|
|
152
|
+
type MutationPerformActionArgs = {
|
|
153
153
|
payload: Scalars['String'];
|
|
154
154
|
type: Scalars['String'];
|
|
155
155
|
};
|
|
156
|
-
|
|
156
|
+
type MutationSaveConsolidationDecisionArgs = {
|
|
157
157
|
payload: Scalars['String'];
|
|
158
158
|
};
|
|
159
|
-
|
|
159
|
+
type MutationUpdatePlayerDataArgs = {
|
|
160
160
|
avatar?: InputMaybe<Scalars['String']>;
|
|
161
161
|
color?: InputMaybe<Scalars['String']>;
|
|
162
162
|
facts?: InputMaybe<Scalars['String']>;
|
|
163
163
|
name?: InputMaybe<Scalars['String']>;
|
|
164
164
|
};
|
|
165
|
-
|
|
165
|
+
type MutationUpdateReadyStateArgs = {
|
|
166
166
|
isReady: Scalars['Boolean'];
|
|
167
167
|
};
|
|
168
|
-
|
|
168
|
+
type Period = {
|
|
169
169
|
__typename?: 'Period';
|
|
170
170
|
actions: Array<PlayerAction>;
|
|
171
171
|
activeSegment?: Maybe<PeriodSegment>;
|
|
@@ -176,7 +176,7 @@ declare type Period = {
|
|
|
176
176
|
results: Array<PlayerResult>;
|
|
177
177
|
segments: Array<PeriodSegment>;
|
|
178
178
|
};
|
|
179
|
-
|
|
179
|
+
type PeriodFactsInput = {
|
|
180
180
|
convenienceYield?: InputMaybe<Scalars['Float']>;
|
|
181
181
|
futuresTradingEnabled?: InputMaybe<Scalars['Boolean']>;
|
|
182
182
|
initialSpotPrice?: InputMaybe<Scalars['Int']>;
|
|
@@ -188,7 +188,7 @@ declare type PeriodFactsInput = {
|
|
|
188
188
|
trendE?: InputMaybe<Scalars['Float']>;
|
|
189
189
|
trendGap?: InputMaybe<Scalars['Float']>;
|
|
190
190
|
};
|
|
191
|
-
|
|
191
|
+
type PeriodSegment = {
|
|
192
192
|
__typename?: 'PeriodSegment';
|
|
193
193
|
actions: Array<PlayerAction>;
|
|
194
194
|
facts: Scalars['JSONObject'];
|
|
@@ -199,11 +199,11 @@ declare type PeriodSegment = {
|
|
|
199
199
|
results: Array<PlayerResult>;
|
|
200
200
|
storyElements: Array<StoryElement>;
|
|
201
201
|
};
|
|
202
|
-
|
|
202
|
+
type PeriodSegmentFactsInput = {
|
|
203
203
|
trendE?: InputMaybe<Scalars['Float']>;
|
|
204
204
|
trendGap?: InputMaybe<Scalars['Float']>;
|
|
205
205
|
};
|
|
206
|
-
|
|
206
|
+
type Player = {
|
|
207
207
|
__typename?: 'Player';
|
|
208
208
|
achievementIds: Array<Scalars['String']>;
|
|
209
209
|
achievementKeys: Array<Scalars['String']>;
|
|
@@ -227,7 +227,7 @@ declare type Player = {
|
|
|
227
227
|
visitedStoryElementIds: Array<Scalars['Int']>;
|
|
228
228
|
visitedStoryElements: Array<StoryElement>;
|
|
229
229
|
};
|
|
230
|
-
|
|
230
|
+
type PlayerAction = {
|
|
231
231
|
__typename?: 'PlayerAction';
|
|
232
232
|
facts?: Maybe<Scalars['JSONObject']>;
|
|
233
233
|
id: Scalars['ID'];
|
|
@@ -238,7 +238,7 @@ declare type PlayerAction = {
|
|
|
238
238
|
segmentIx?: Maybe<Scalars['Int']>;
|
|
239
239
|
type: Scalars['String'];
|
|
240
240
|
};
|
|
241
|
-
|
|
241
|
+
type PlayerDecision = {
|
|
242
242
|
__typename?: 'PlayerDecision';
|
|
243
243
|
facts: Scalars['JSONObject'];
|
|
244
244
|
id: Scalars['ID'];
|
|
@@ -251,14 +251,14 @@ declare enum PlayerDecisionType {
|
|
|
251
251
|
Consolidation = "CONSOLIDATION",
|
|
252
252
|
Preparation = "PREPARATION"
|
|
253
253
|
}
|
|
254
|
-
|
|
254
|
+
type PlayerLevel = {
|
|
255
255
|
__typename?: 'PlayerLevel';
|
|
256
256
|
description: Scalars['String'];
|
|
257
257
|
id: Scalars['ID'];
|
|
258
258
|
index: Scalars['Int'];
|
|
259
259
|
requiredXP: Scalars['Int'];
|
|
260
260
|
};
|
|
261
|
-
|
|
261
|
+
type PlayerResult = {
|
|
262
262
|
__typename?: 'PlayerResult';
|
|
263
263
|
facts?: Maybe<Scalars['JSONObject']>;
|
|
264
264
|
id: Scalars['ID'];
|
|
@@ -273,14 +273,14 @@ declare enum PlayerResultType {
|
|
|
273
273
|
SegmentEnd = "SEGMENT_END",
|
|
274
274
|
SegmentStart = "SEGMENT_START"
|
|
275
275
|
}
|
|
276
|
-
|
|
276
|
+
type PlayerState = {
|
|
277
277
|
__typename?: 'PlayerState';
|
|
278
278
|
currentGame?: Maybe<Game>;
|
|
279
279
|
playerResult?: Maybe<PlayerResult>;
|
|
280
280
|
previousResults?: Maybe<Array<Maybe<PlayerResult>>>;
|
|
281
281
|
transactions?: Maybe<Array<Maybe<PlayerAction>>>;
|
|
282
282
|
};
|
|
283
|
-
|
|
283
|
+
type Query = {
|
|
284
284
|
__typename?: 'Query';
|
|
285
285
|
game?: Maybe<Game>;
|
|
286
286
|
games: Array<Maybe<Game>>;
|
|
@@ -291,13 +291,13 @@ declare type Query = {
|
|
|
291
291
|
results?: Maybe<Array<Maybe<PlayerResult>>>;
|
|
292
292
|
self: Player;
|
|
293
293
|
};
|
|
294
|
-
|
|
294
|
+
type QueryGameArgs = {
|
|
295
295
|
id?: InputMaybe<Scalars['Int']>;
|
|
296
296
|
};
|
|
297
|
-
|
|
297
|
+
type QueryLearningElementArgs = {
|
|
298
298
|
id: Scalars['ID'];
|
|
299
299
|
};
|
|
300
|
-
|
|
300
|
+
type StoryElement = {
|
|
301
301
|
__typename?: 'StoryElement';
|
|
302
302
|
content?: Maybe<Scalars['String']>;
|
|
303
303
|
contentRole?: Maybe<Scalars['String']>;
|
|
@@ -310,7 +310,7 @@ declare enum StoryElementType {
|
|
|
310
310
|
Generic = "GENERIC",
|
|
311
311
|
RoleBased = "ROLE_BASED"
|
|
312
312
|
}
|
|
313
|
-
|
|
313
|
+
type Subscription = {
|
|
314
314
|
__typename?: 'Subscription';
|
|
315
315
|
eventsGlobal?: Maybe<Array<Maybe<Event>>>;
|
|
316
316
|
eventsUser?: Maybe<Array<Maybe<Event>>>;
|
|
@@ -319,14 +319,14 @@ declare enum UserRole {
|
|
|
319
319
|
Admin = "ADMIN",
|
|
320
320
|
Master = "MASTER"
|
|
321
321
|
}
|
|
322
|
-
|
|
322
|
+
type GameDataFragment = {
|
|
323
323
|
__typename?: 'Game';
|
|
324
324
|
id: string;
|
|
325
325
|
status: GameStatus;
|
|
326
326
|
name: string;
|
|
327
327
|
activePeriodIx?: number | null;
|
|
328
328
|
};
|
|
329
|
-
|
|
329
|
+
type LearningElementDataFragment = {
|
|
330
330
|
__typename?: 'LearningElement';
|
|
331
331
|
id: string;
|
|
332
332
|
title: string;
|
|
@@ -335,7 +335,7 @@ declare type LearningElementDataFragment = {
|
|
|
335
335
|
motivation?: string | null;
|
|
336
336
|
feedback?: string | null;
|
|
337
337
|
};
|
|
338
|
-
|
|
338
|
+
type PeriodDataFragment = {
|
|
339
339
|
__typename?: 'Period';
|
|
340
340
|
id: string;
|
|
341
341
|
index: number;
|
|
@@ -356,7 +356,7 @@ declare type PeriodDataFragment = {
|
|
|
356
356
|
}>;
|
|
357
357
|
}>;
|
|
358
358
|
};
|
|
359
|
-
|
|
359
|
+
type PlayerActionDataFragment = {
|
|
360
360
|
__typename?: 'PlayerAction';
|
|
361
361
|
id: string;
|
|
362
362
|
periodIx: number;
|
|
@@ -364,7 +364,7 @@ declare type PlayerActionDataFragment = {
|
|
|
364
364
|
type: string;
|
|
365
365
|
facts?: any | null;
|
|
366
366
|
};
|
|
367
|
-
|
|
367
|
+
type PlayerDataFragment = {
|
|
368
368
|
__typename?: 'Player';
|
|
369
369
|
id: string;
|
|
370
370
|
isReady: boolean;
|
|
@@ -396,7 +396,7 @@ declare type PlayerDataFragment = {
|
|
|
396
396
|
index: number;
|
|
397
397
|
};
|
|
398
398
|
};
|
|
399
|
-
|
|
399
|
+
type ResultDataFragment = {
|
|
400
400
|
__typename?: 'PlayerResult';
|
|
401
401
|
id: string;
|
|
402
402
|
type?: PlayerResultType | null;
|
|
@@ -412,7 +412,7 @@ declare type ResultDataFragment = {
|
|
|
412
412
|
index: number;
|
|
413
413
|
} | null;
|
|
414
414
|
};
|
|
415
|
-
|
|
415
|
+
type SegmentDataFragment = {
|
|
416
416
|
__typename?: 'PeriodSegment';
|
|
417
417
|
id: string;
|
|
418
418
|
index: number;
|
|
@@ -426,10 +426,10 @@ declare type SegmentDataFragment = {
|
|
|
426
426
|
id: string;
|
|
427
427
|
}>;
|
|
428
428
|
};
|
|
429
|
-
|
|
429
|
+
type ActivateNextPeriodMutationVariables = Exact<{
|
|
430
430
|
gameId: Scalars['Int'];
|
|
431
431
|
}>;
|
|
432
|
-
|
|
432
|
+
type ActivateNextPeriodMutation = {
|
|
433
433
|
__typename?: 'Mutation';
|
|
434
434
|
activateNextPeriod?: {
|
|
435
435
|
__typename?: 'Game';
|
|
@@ -460,10 +460,10 @@ declare type ActivateNextPeriodMutation = {
|
|
|
460
460
|
}>;
|
|
461
461
|
} | null;
|
|
462
462
|
};
|
|
463
|
-
|
|
463
|
+
type ActivateNextSegmentMutationVariables = Exact<{
|
|
464
464
|
gameId: Scalars['Int'];
|
|
465
465
|
}>;
|
|
466
|
-
|
|
466
|
+
type ActivateNextSegmentMutation = {
|
|
467
467
|
__typename?: 'Mutation';
|
|
468
468
|
activateNextSegment?: {
|
|
469
469
|
__typename?: 'Game';
|
|
@@ -526,11 +526,11 @@ declare type ActivateNextSegmentMutation = {
|
|
|
526
526
|
}>;
|
|
527
527
|
} | null;
|
|
528
528
|
};
|
|
529
|
-
|
|
529
|
+
type AddGamePeriodMutationVariables = Exact<{
|
|
530
530
|
gameId: Scalars['Int'];
|
|
531
531
|
facts: PeriodFactsInput;
|
|
532
532
|
}>;
|
|
533
|
-
|
|
533
|
+
type AddGamePeriodMutation = {
|
|
534
534
|
__typename?: 'Mutation';
|
|
535
535
|
addGamePeriod: {
|
|
536
536
|
__typename?: 'Period';
|
|
@@ -554,14 +554,14 @@ declare type AddGamePeriodMutation = {
|
|
|
554
554
|
}>;
|
|
555
555
|
};
|
|
556
556
|
};
|
|
557
|
-
|
|
557
|
+
type AddPeriodSegmentMutationVariables = Exact<{
|
|
558
558
|
gameId: Scalars['Int'];
|
|
559
559
|
periodIx: Scalars['Int'];
|
|
560
560
|
facts: PeriodSegmentFactsInput;
|
|
561
561
|
storyElements?: InputMaybe<Array<InputMaybe<Scalars['String']>> | InputMaybe<Scalars['String']>>;
|
|
562
562
|
learningElements?: InputMaybe<Array<InputMaybe<Scalars['String']>> | InputMaybe<Scalars['String']>>;
|
|
563
563
|
}>;
|
|
564
|
-
|
|
564
|
+
type AddPeriodSegmentMutation = {
|
|
565
565
|
__typename?: 'Mutation';
|
|
566
566
|
addPeriodSegment: {
|
|
567
567
|
__typename?: 'PeriodSegment';
|
|
@@ -578,11 +578,11 @@ declare type AddPeriodSegmentMutation = {
|
|
|
578
578
|
}>;
|
|
579
579
|
};
|
|
580
580
|
};
|
|
581
|
-
|
|
581
|
+
type AttemptLearningElementMutationVariables = Exact<{
|
|
582
582
|
elementId: Scalars['ID'];
|
|
583
583
|
selection: Scalars['String'];
|
|
584
584
|
}>;
|
|
585
|
-
|
|
585
|
+
type AttemptLearningElementMutation = {
|
|
586
586
|
__typename?: 'Mutation';
|
|
587
587
|
attemptLearningElement?: {
|
|
588
588
|
__typename?: 'LearningElementAttempt';
|
|
@@ -601,11 +601,11 @@ declare type AttemptLearningElementMutation = {
|
|
|
601
601
|
} | null;
|
|
602
602
|
} | null;
|
|
603
603
|
};
|
|
604
|
-
|
|
604
|
+
type CreateGameMutationVariables = Exact<{
|
|
605
605
|
name: Scalars['String'];
|
|
606
606
|
playerCount: Scalars['Int'];
|
|
607
607
|
}>;
|
|
608
|
-
|
|
608
|
+
type CreateGameMutation = {
|
|
609
609
|
__typename?: 'Mutation';
|
|
610
610
|
createGame: {
|
|
611
611
|
__typename?: 'Game';
|
|
@@ -615,10 +615,10 @@ declare type CreateGameMutation = {
|
|
|
615
615
|
activePeriodIx?: number | null;
|
|
616
616
|
};
|
|
617
617
|
};
|
|
618
|
-
|
|
618
|
+
type LoginAsTeamMutationVariables = Exact<{
|
|
619
619
|
token: Scalars['String'];
|
|
620
620
|
}>;
|
|
621
|
-
|
|
621
|
+
type LoginAsTeamMutation = {
|
|
622
622
|
__typename?: 'Mutation';
|
|
623
623
|
loginAsTeam: {
|
|
624
624
|
__typename?: 'Player';
|
|
@@ -653,10 +653,10 @@ declare type LoginAsTeamMutation = {
|
|
|
653
653
|
};
|
|
654
654
|
};
|
|
655
655
|
};
|
|
656
|
-
|
|
656
|
+
type MarkStoryElementMutationVariables = Exact<{
|
|
657
657
|
elementId: Scalars['ID'];
|
|
658
658
|
}>;
|
|
659
|
-
|
|
659
|
+
type MarkStoryElementMutation = {
|
|
660
660
|
__typename?: 'Mutation';
|
|
661
661
|
markStoryElement?: {
|
|
662
662
|
__typename?: 'Player';
|
|
@@ -664,11 +664,11 @@ declare type MarkStoryElementMutation = {
|
|
|
664
664
|
visitedStoryElementIds: Array<number>;
|
|
665
665
|
} | null;
|
|
666
666
|
};
|
|
667
|
-
|
|
667
|
+
type PerformActionMutationVariables = Exact<{
|
|
668
668
|
type: Scalars['String'];
|
|
669
669
|
payload: Scalars['String'];
|
|
670
670
|
}>;
|
|
671
|
-
|
|
671
|
+
type PerformActionMutation = {
|
|
672
672
|
__typename?: 'Mutation';
|
|
673
673
|
performAction: {
|
|
674
674
|
__typename?: 'PlayerResult';
|
|
@@ -687,10 +687,10 @@ declare type PerformActionMutation = {
|
|
|
687
687
|
} | null;
|
|
688
688
|
};
|
|
689
689
|
};
|
|
690
|
-
|
|
690
|
+
type SaveConsolidationDecisionMutationVariables = Exact<{
|
|
691
691
|
payload: Scalars['String'];
|
|
692
692
|
}>;
|
|
693
|
-
|
|
693
|
+
type SaveConsolidationDecisionMutation = {
|
|
694
694
|
__typename?: 'Mutation';
|
|
695
695
|
saveConsolidationDecision?: {
|
|
696
696
|
__typename?: 'PlayerDecision';
|
|
@@ -699,13 +699,13 @@ declare type SaveConsolidationDecisionMutation = {
|
|
|
699
699
|
facts: any;
|
|
700
700
|
} | null;
|
|
701
701
|
};
|
|
702
|
-
|
|
702
|
+
type UpdatePlayerDataMutationVariables = Exact<{
|
|
703
703
|
name?: InputMaybe<Scalars['String']>;
|
|
704
704
|
avatar?: InputMaybe<Scalars['String']>;
|
|
705
705
|
color?: InputMaybe<Scalars['String']>;
|
|
706
706
|
facts?: InputMaybe<Scalars['String']>;
|
|
707
707
|
}>;
|
|
708
|
-
|
|
708
|
+
type UpdatePlayerDataMutation = {
|
|
709
709
|
__typename?: 'Mutation';
|
|
710
710
|
updatePlayerData?: {
|
|
711
711
|
__typename?: 'Player';
|
|
@@ -740,10 +740,10 @@ declare type UpdatePlayerDataMutation = {
|
|
|
740
740
|
};
|
|
741
741
|
} | null;
|
|
742
742
|
};
|
|
743
|
-
|
|
743
|
+
type UpdateReadyStateMutationVariables = Exact<{
|
|
744
744
|
isReady: Scalars['Boolean'];
|
|
745
745
|
}>;
|
|
746
|
-
|
|
746
|
+
type UpdateReadyStateMutation = {
|
|
747
747
|
__typename?: 'Mutation';
|
|
748
748
|
updateReadyState?: {
|
|
749
749
|
__typename?: 'Player';
|
|
@@ -751,10 +751,10 @@ declare type UpdateReadyStateMutation = {
|
|
|
751
751
|
isReady: boolean;
|
|
752
752
|
} | null;
|
|
753
753
|
};
|
|
754
|
-
|
|
754
|
+
type GameQueryVariables = Exact<{
|
|
755
755
|
id?: InputMaybe<Scalars['Int']>;
|
|
756
756
|
}>;
|
|
757
|
-
|
|
757
|
+
type GameQuery = {
|
|
758
758
|
__typename?: 'Query';
|
|
759
759
|
game?: {
|
|
760
760
|
__typename?: 'Game';
|
|
@@ -808,10 +808,10 @@ declare type GameQuery = {
|
|
|
808
808
|
}>;
|
|
809
809
|
} | null;
|
|
810
810
|
};
|
|
811
|
-
|
|
811
|
+
type GamesQueryVariables = Exact<{
|
|
812
812
|
[key: string]: never;
|
|
813
813
|
}>;
|
|
814
|
-
|
|
814
|
+
type GamesQuery = {
|
|
815
815
|
__typename?: 'Query';
|
|
816
816
|
games: Array<{
|
|
817
817
|
__typename?: 'Game';
|
|
@@ -821,10 +821,10 @@ declare type GamesQuery = {
|
|
|
821
821
|
activePeriodIx?: number | null;
|
|
822
822
|
} | null>;
|
|
823
823
|
};
|
|
824
|
-
|
|
824
|
+
type LearningElementQueryVariables = Exact<{
|
|
825
825
|
id: Scalars['ID'];
|
|
826
826
|
}>;
|
|
827
|
-
|
|
827
|
+
type LearningElementQuery = {
|
|
828
828
|
__typename?: 'Query';
|
|
829
829
|
learningElement?: {
|
|
830
830
|
__typename?: 'LearningElementState';
|
|
@@ -846,10 +846,10 @@ declare type LearningElementQuery = {
|
|
|
846
846
|
} | null;
|
|
847
847
|
} | null;
|
|
848
848
|
};
|
|
849
|
-
|
|
849
|
+
type LearningElementsQueryVariables = Exact<{
|
|
850
850
|
[key: string]: never;
|
|
851
851
|
}>;
|
|
852
|
-
|
|
852
|
+
type LearningElementsQuery = {
|
|
853
853
|
__typename?: 'Query';
|
|
854
854
|
learningElements: Array<{
|
|
855
855
|
__typename?: 'LearningElement';
|
|
@@ -861,10 +861,10 @@ declare type LearningElementsQuery = {
|
|
|
861
861
|
feedback?: string | null;
|
|
862
862
|
} | null>;
|
|
863
863
|
};
|
|
864
|
-
|
|
864
|
+
type PastResultsQueryVariables = Exact<{
|
|
865
865
|
[key: string]: never;
|
|
866
866
|
}>;
|
|
867
|
-
|
|
867
|
+
type PastResultsQuery = {
|
|
868
868
|
__typename?: 'Query';
|
|
869
869
|
result?: {
|
|
870
870
|
__typename?: 'PlayerState';
|
|
@@ -910,10 +910,10 @@ declare type PastResultsQuery = {
|
|
|
910
910
|
} | null;
|
|
911
911
|
} | null> | null;
|
|
912
912
|
};
|
|
913
|
-
|
|
913
|
+
type ResultQueryVariables = Exact<{
|
|
914
914
|
[key: string]: never;
|
|
915
915
|
}>;
|
|
916
|
-
|
|
916
|
+
type ResultQuery = {
|
|
917
917
|
__typename?: 'Query';
|
|
918
918
|
result?: {
|
|
919
919
|
__typename?: 'PlayerState';
|
|
@@ -1063,10 +1063,10 @@ declare type ResultQuery = {
|
|
|
1063
1063
|
};
|
|
1064
1064
|
};
|
|
1065
1065
|
};
|
|
1066
|
-
|
|
1066
|
+
type ResultsQueryVariables = Exact<{
|
|
1067
1067
|
[key: string]: never;
|
|
1068
1068
|
}>;
|
|
1069
|
-
|
|
1069
|
+
type ResultsQuery = {
|
|
1070
1070
|
__typename?: 'Query';
|
|
1071
1071
|
results?: Array<{
|
|
1072
1072
|
__typename?: 'PlayerResult';
|
|
@@ -1090,10 +1090,10 @@ declare type ResultsQuery = {
|
|
|
1090
1090
|
} | null;
|
|
1091
1091
|
} | null> | null;
|
|
1092
1092
|
};
|
|
1093
|
-
|
|
1093
|
+
type SelfQueryVariables = Exact<{
|
|
1094
1094
|
[key: string]: never;
|
|
1095
1095
|
}>;
|
|
1096
|
-
|
|
1096
|
+
type SelfQuery = {
|
|
1097
1097
|
__typename?: 'Query';
|
|
1098
1098
|
self: {
|
|
1099
1099
|
__typename?: 'Player';
|
|
@@ -1128,34 +1128,34 @@ declare type SelfQuery = {
|
|
|
1128
1128
|
};
|
|
1129
1129
|
};
|
|
1130
1130
|
};
|
|
1131
|
-
|
|
1131
|
+
type GlobalEventsSubscriptionVariables = Exact<{
|
|
1132
1132
|
[key: string]: never;
|
|
1133
1133
|
}>;
|
|
1134
|
-
|
|
1134
|
+
type GlobalEventsSubscription = {
|
|
1135
1135
|
__typename?: 'Subscription';
|
|
1136
1136
|
eventsGlobal?: Array<{
|
|
1137
1137
|
__typename?: 'Event';
|
|
1138
1138
|
type?: string | null;
|
|
1139
1139
|
} | null> | null;
|
|
1140
1140
|
};
|
|
1141
|
-
|
|
1141
|
+
type UserEventsSubscriptionVariables = Exact<{
|
|
1142
1142
|
[key: string]: never;
|
|
1143
1143
|
}>;
|
|
1144
|
-
|
|
1144
|
+
type UserEventsSubscription = {
|
|
1145
1145
|
__typename?: 'Subscription';
|
|
1146
1146
|
eventsUser?: Array<{
|
|
1147
1147
|
__typename?: 'Event';
|
|
1148
1148
|
type?: string | null;
|
|
1149
1149
|
} | null> | null;
|
|
1150
1150
|
};
|
|
1151
|
-
|
|
1152
|
-
|
|
1151
|
+
type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
1152
|
+
type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
1153
1153
|
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
1154
1154
|
};
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1155
|
+
type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
|
1156
|
+
type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
|
|
1157
|
+
type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
1158
|
+
type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
1159
1159
|
interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
1160
1160
|
subscribe: SubscriptionSubscribeFn<{
|
|
1161
1161
|
[key in TKey]: TResult;
|
|
@@ -1168,14 +1168,14 @@ interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
|
1168
1168
|
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
1169
1169
|
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
1170
1170
|
}
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1171
|
+
type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
1172
|
+
type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> = ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>) | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
|
1173
|
+
type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
1174
|
+
type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
1175
|
+
type NextResolverFn<T> = () => Promise<T>;
|
|
1176
|
+
type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
1177
1177
|
/** Mapping between all available schema types and the resolvers types */
|
|
1178
|
-
|
|
1178
|
+
type ResolversTypes = {
|
|
1179
1179
|
Achievement: ResolverTypeWrapper<Achievement>;
|
|
1180
1180
|
AchievementFrequency: AchievementFrequency;
|
|
1181
1181
|
AchievementInstance: ResolverTypeWrapper<AchievementInstance>;
|
|
@@ -1213,7 +1213,7 @@ declare type ResolversTypes = {
|
|
|
1213
1213
|
UserRole: UserRole;
|
|
1214
1214
|
};
|
|
1215
1215
|
/** Mapping between all available schema types and the resolvers parents */
|
|
1216
|
-
|
|
1216
|
+
type ResolversParentTypes = {
|
|
1217
1217
|
Achievement: Achievement;
|
|
1218
1218
|
AchievementInstance: AchievementInstance;
|
|
1219
1219
|
Boolean: Scalars['Boolean'];
|
|
@@ -1244,7 +1244,7 @@ declare type ResolversParentTypes = {
|
|
|
1244
1244
|
String: Scalars['String'];
|
|
1245
1245
|
Subscription: {};
|
|
1246
1246
|
};
|
|
1247
|
-
|
|
1247
|
+
type AchievementResolvers<ContextType = any, ParentType extends ResolversParentTypes['Achievement'] = ResolversParentTypes['Achievement']> = {
|
|
1248
1248
|
description?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1249
1249
|
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
1250
1250
|
image?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -1253,7 +1253,7 @@ declare type AchievementResolvers<ContextType = any, ParentType extends Resolver
|
|
|
1253
1253
|
when?: Resolver<ResolversTypes['AchievementFrequency'], ParentType, ContextType>;
|
|
1254
1254
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1255
1255
|
};
|
|
1256
|
-
|
|
1256
|
+
type AchievementInstanceResolvers<ContextType = any, ParentType extends ResolversParentTypes['AchievementInstance'] = ResolversParentTypes['AchievementInstance']> = {
|
|
1257
1257
|
achievement?: Resolver<ResolversTypes['Achievement'], ParentType, ContextType>;
|
|
1258
1258
|
count?: Resolver<ResolversTypes['Int'], ParentType, ContextType>;
|
|
1259
1259
|
id?: Resolver<ResolversTypes['Int'], ParentType, ContextType>;
|
|
@@ -1262,11 +1262,11 @@ declare type AchievementInstanceResolvers<ContextType = any, ParentType extends
|
|
|
1262
1262
|
interface DateTimeScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['DateTime'], any> {
|
|
1263
1263
|
name: 'DateTime';
|
|
1264
1264
|
}
|
|
1265
|
-
|
|
1265
|
+
type EventResolvers<ContextType = any, ParentType extends ResolversParentTypes['Event'] = ResolversParentTypes['Event']> = {
|
|
1266
1266
|
type?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1267
1267
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1268
1268
|
};
|
|
1269
|
-
|
|
1269
|
+
type GameResolvers<ContextType = any, ParentType extends ResolversParentTypes['Game'] = ResolversParentTypes['Game']> = {
|
|
1270
1270
|
activePeriod?: Resolver<Maybe<ResolversTypes['Period']>, ParentType, ContextType>;
|
|
1271
1271
|
activePeriodIx?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
|
|
1272
1272
|
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
@@ -1280,13 +1280,13 @@ declare type GameResolvers<ContextType = any, ParentType extends ResolversParent
|
|
|
1280
1280
|
interface JsonObjectScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['JSONObject'], any> {
|
|
1281
1281
|
name: 'JSONObject';
|
|
1282
1282
|
}
|
|
1283
|
-
|
|
1283
|
+
type LearningAnswerOptionResolvers<ContextType = any, ParentType extends ResolversParentTypes['LearningAnswerOption'] = ResolversParentTypes['LearningAnswerOption']> = {
|
|
1284
1284
|
content?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1285
1285
|
correct?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
|
|
1286
1286
|
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
1287
1287
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1288
1288
|
};
|
|
1289
|
-
|
|
1289
|
+
type LearningElementResolvers<ContextType = any, ParentType extends ResolversParentTypes['LearningElement'] = ResolversParentTypes['LearningElement']> = {
|
|
1290
1290
|
feedback?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1291
1291
|
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
1292
1292
|
motivation?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -1296,7 +1296,7 @@ declare type LearningElementResolvers<ContextType = any, ParentType extends Reso
|
|
|
1296
1296
|
title?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1297
1297
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1298
1298
|
};
|
|
1299
|
-
|
|
1299
|
+
type LearningElementAttemptResolvers<ContextType = any, ParentType extends ResolversParentTypes['LearningElementAttempt'] = ResolversParentTypes['LearningElementAttempt']> = {
|
|
1300
1300
|
element?: Resolver<Maybe<ResolversTypes['LearningElement']>, ParentType, ContextType>;
|
|
1301
1301
|
id?: Resolver<Maybe<ResolversTypes['ID']>, ParentType, ContextType>;
|
|
1302
1302
|
player?: Resolver<Maybe<ResolversTypes['Player']>, ParentType, ContextType>;
|
|
@@ -1304,14 +1304,14 @@ declare type LearningElementAttemptResolvers<ContextType = any, ParentType exten
|
|
|
1304
1304
|
pointsMax?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
|
|
1305
1305
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1306
1306
|
};
|
|
1307
|
-
|
|
1307
|
+
type LearningElementStateResolvers<ContextType = any, ParentType extends ResolversParentTypes['LearningElementState'] = ResolversParentTypes['LearningElementState']> = {
|
|
1308
1308
|
element?: Resolver<Maybe<ResolversTypes['LearningElement']>, ParentType, ContextType>;
|
|
1309
1309
|
id?: Resolver<Maybe<ResolversTypes['ID']>, ParentType, ContextType>;
|
|
1310
1310
|
solution?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1311
1311
|
state?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1312
1312
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1313
1313
|
};
|
|
1314
|
-
|
|
1314
|
+
type MutationResolvers<ContextType = any, ParentType extends ResolversParentTypes['Mutation'] = ResolversParentTypes['Mutation']> = {
|
|
1315
1315
|
activateNextPeriod?: Resolver<Maybe<ResolversTypes['Game']>, ParentType, ContextType, RequireFields<MutationActivateNextPeriodArgs, 'gameId'>>;
|
|
1316
1316
|
activateNextSegment?: Resolver<Maybe<ResolversTypes['Game']>, ParentType, ContextType, RequireFields<MutationActivateNextSegmentArgs, 'gameId'>>;
|
|
1317
1317
|
addGamePeriod?: Resolver<ResolversTypes['Period'], ParentType, ContextType, RequireFields<MutationAddGamePeriodArgs, 'facts' | 'gameId'>>;
|
|
@@ -1325,7 +1325,7 @@ declare type MutationResolvers<ContextType = any, ParentType extends ResolversPa
|
|
|
1325
1325
|
updatePlayerData?: Resolver<Maybe<ResolversTypes['Player']>, ParentType, ContextType, Partial<MutationUpdatePlayerDataArgs>>;
|
|
1326
1326
|
updateReadyState?: Resolver<Maybe<ResolversTypes['Player']>, ParentType, ContextType, RequireFields<MutationUpdateReadyStateArgs, 'isReady'>>;
|
|
1327
1327
|
};
|
|
1328
|
-
|
|
1328
|
+
type PeriodResolvers<ContextType = any, ParentType extends ResolversParentTypes['Period'] = ResolversParentTypes['Period']> = {
|
|
1329
1329
|
actions?: Resolver<Array<ResolversTypes['PlayerAction']>, ParentType, ContextType>;
|
|
1330
1330
|
activeSegment?: Resolver<Maybe<ResolversTypes['PeriodSegment']>, ParentType, ContextType>;
|
|
1331
1331
|
activeSegmentIx?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
|
|
@@ -1336,7 +1336,7 @@ declare type PeriodResolvers<ContextType = any, ParentType extends ResolversPare
|
|
|
1336
1336
|
segments?: Resolver<Array<ResolversTypes['PeriodSegment']>, ParentType, ContextType>;
|
|
1337
1337
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1338
1338
|
};
|
|
1339
|
-
|
|
1339
|
+
type PeriodSegmentResolvers<ContextType = any, ParentType extends ResolversParentTypes['PeriodSegment'] = ResolversParentTypes['PeriodSegment']> = {
|
|
1340
1340
|
actions?: Resolver<Array<ResolversTypes['PlayerAction']>, ParentType, ContextType>;
|
|
1341
1341
|
facts?: Resolver<ResolversTypes['JSONObject'], ParentType, ContextType>;
|
|
1342
1342
|
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
@@ -1347,7 +1347,7 @@ declare type PeriodSegmentResolvers<ContextType = any, ParentType extends Resolv
|
|
|
1347
1347
|
storyElements?: Resolver<Array<ResolversTypes['StoryElement']>, ParentType, ContextType>;
|
|
1348
1348
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1349
1349
|
};
|
|
1350
|
-
|
|
1350
|
+
type PlayerResolvers<ContextType = any, ParentType extends ResolversParentTypes['Player'] = ResolversParentTypes['Player']> = {
|
|
1351
1351
|
achievementIds?: Resolver<Array<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1352
1352
|
achievementKeys?: Resolver<Array<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1353
1353
|
achievements?: Resolver<Array<ResolversTypes['AchievementInstance']>, ParentType, ContextType>;
|
|
@@ -1371,7 +1371,7 @@ declare type PlayerResolvers<ContextType = any, ParentType extends ResolversPare
|
|
|
1371
1371
|
visitedStoryElements?: Resolver<Array<ResolversTypes['StoryElement']>, ParentType, ContextType>;
|
|
1372
1372
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1373
1373
|
};
|
|
1374
|
-
|
|
1374
|
+
type PlayerActionResolvers<ContextType = any, ParentType extends ResolversParentTypes['PlayerAction'] = ResolversParentTypes['PlayerAction']> = {
|
|
1375
1375
|
facts?: Resolver<Maybe<ResolversTypes['JSONObject']>, ParentType, ContextType>;
|
|
1376
1376
|
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
1377
1377
|
period?: Resolver<ResolversTypes['Period'], ParentType, ContextType>;
|
|
@@ -1382,7 +1382,7 @@ declare type PlayerActionResolvers<ContextType = any, ParentType extends Resolve
|
|
|
1382
1382
|
type?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1383
1383
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1384
1384
|
};
|
|
1385
|
-
|
|
1385
|
+
type PlayerDecisionResolvers<ContextType = any, ParentType extends ResolversParentTypes['PlayerDecision'] = ResolversParentTypes['PlayerDecision']> = {
|
|
1386
1386
|
facts?: Resolver<ResolversTypes['JSONObject'], ParentType, ContextType>;
|
|
1387
1387
|
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
1388
1388
|
period?: Resolver<ResolversTypes['Period'], ParentType, ContextType>;
|
|
@@ -1391,14 +1391,14 @@ declare type PlayerDecisionResolvers<ContextType = any, ParentType extends Resol
|
|
|
1391
1391
|
type?: Resolver<ResolversTypes['PlayerDecisionType'], ParentType, ContextType>;
|
|
1392
1392
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1393
1393
|
};
|
|
1394
|
-
|
|
1394
|
+
type PlayerLevelResolvers<ContextType = any, ParentType extends ResolversParentTypes['PlayerLevel'] = ResolversParentTypes['PlayerLevel']> = {
|
|
1395
1395
|
description?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
|
|
1396
1396
|
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
1397
1397
|
index?: Resolver<ResolversTypes['Int'], ParentType, ContextType>;
|
|
1398
1398
|
requiredXP?: Resolver<ResolversTypes['Int'], ParentType, ContextType>;
|
|
1399
1399
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1400
1400
|
};
|
|
1401
|
-
|
|
1401
|
+
type PlayerResultResolvers<ContextType = any, ParentType extends ResolversParentTypes['PlayerResult'] = ResolversParentTypes['PlayerResult']> = {
|
|
1402
1402
|
facts?: Resolver<Maybe<ResolversTypes['JSONObject']>, ParentType, ContextType>;
|
|
1403
1403
|
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
1404
1404
|
period?: Resolver<ResolversTypes['Period'], ParentType, ContextType>;
|
|
@@ -1407,14 +1407,14 @@ declare type PlayerResultResolvers<ContextType = any, ParentType extends Resolve
|
|
|
1407
1407
|
type?: Resolver<Maybe<ResolversTypes['PlayerResultType']>, ParentType, ContextType>;
|
|
1408
1408
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1409
1409
|
};
|
|
1410
|
-
|
|
1410
|
+
type PlayerStateResolvers<ContextType = any, ParentType extends ResolversParentTypes['PlayerState'] = ResolversParentTypes['PlayerState']> = {
|
|
1411
1411
|
currentGame?: Resolver<Maybe<ResolversTypes['Game']>, ParentType, ContextType>;
|
|
1412
1412
|
playerResult?: Resolver<Maybe<ResolversTypes['PlayerResult']>, ParentType, ContextType>;
|
|
1413
1413
|
previousResults?: Resolver<Maybe<Array<Maybe<ResolversTypes['PlayerResult']>>>, ParentType, ContextType>;
|
|
1414
1414
|
transactions?: Resolver<Maybe<Array<Maybe<ResolversTypes['PlayerAction']>>>, ParentType, ContextType>;
|
|
1415
1415
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1416
1416
|
};
|
|
1417
|
-
|
|
1417
|
+
type QueryResolvers<ContextType = any, ParentType extends ResolversParentTypes['Query'] = ResolversParentTypes['Query']> = {
|
|
1418
1418
|
game?: Resolver<Maybe<ResolversTypes['Game']>, ParentType, ContextType, Partial<QueryGameArgs>>;
|
|
1419
1419
|
games?: Resolver<Array<Maybe<ResolversTypes['Game']>>, ParentType, ContextType>;
|
|
1420
1420
|
learningElement?: Resolver<Maybe<ResolversTypes['LearningElementState']>, ParentType, ContextType, RequireFields<QueryLearningElementArgs, 'id'>>;
|
|
@@ -1424,7 +1424,7 @@ declare type QueryResolvers<ContextType = any, ParentType extends ResolversParen
|
|
|
1424
1424
|
results?: Resolver<Maybe<Array<Maybe<ResolversTypes['PlayerResult']>>>, ParentType, ContextType>;
|
|
1425
1425
|
self?: Resolver<ResolversTypes['Player'], ParentType, ContextType>;
|
|
1426
1426
|
};
|
|
1427
|
-
|
|
1427
|
+
type StoryElementResolvers<ContextType = any, ParentType extends ResolversParentTypes['StoryElement'] = ResolversParentTypes['StoryElement']> = {
|
|
1428
1428
|
content?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1429
1429
|
contentRole?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
|
|
1430
1430
|
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
|
|
@@ -1433,11 +1433,11 @@ declare type StoryElementResolvers<ContextType = any, ParentType extends Resolve
|
|
|
1433
1433
|
type?: Resolver<ResolversTypes['StoryElementType'], ParentType, ContextType>;
|
|
1434
1434
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1435
1435
|
};
|
|
1436
|
-
|
|
1436
|
+
type SubscriptionResolvers<ContextType = any, ParentType extends ResolversParentTypes['Subscription'] = ResolversParentTypes['Subscription']> = {
|
|
1437
1437
|
eventsGlobal?: SubscriptionResolver<Maybe<Array<Maybe<ResolversTypes['Event']>>>, "eventsGlobal", ParentType, ContextType>;
|
|
1438
1438
|
eventsUser?: SubscriptionResolver<Maybe<Array<Maybe<ResolversTypes['Event']>>>, "eventsUser", ParentType, ContextType>;
|
|
1439
1439
|
};
|
|
1440
|
-
|
|
1440
|
+
type Resolvers<ContextType = any> = {
|
|
1441
1441
|
Achievement?: AchievementResolvers<ContextType>;
|
|
1442
1442
|
AchievementInstance?: AchievementInstanceResolvers<ContextType>;
|
|
1443
1443
|
DateTime?: GraphQLScalarType;
|