@gbl-uzh/platform 0.4.12 → 0.4.14-beta.0

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/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import winston from 'winston';
2
2
  import * as _prisma_client from '.prisma/client';
3
- import * as _prisma_client_runtime from '@prisma/client/runtime';
4
3
  import * as DB from '@prisma/client';
5
4
  import { PrismaClient } from '@prisma/client';
6
5
  import { NextPageContext } from 'next';
@@ -91,26 +90,26 @@ interface LoginAsTeamArgs {
91
90
  token: string;
92
91
  }
93
92
  declare function loginAsTeam({ token }: LoginAsTeamArgs, ctx: CtxWithPrisma<PrismaClient>): Promise<({
94
- level: _prisma_client_runtime.GetResult<{
93
+ level: {
95
94
  id: number;
96
95
  index: number;
97
96
  description: string;
98
97
  image: string;
99
98
  requiredXP: number;
100
- }, unknown> & {};
99
+ };
101
100
  achievements: ({
102
- achievement: _prisma_client_runtime.GetResult<{
101
+ achievement: {
103
102
  id: string;
104
103
  name: string;
105
104
  description: string;
106
105
  image: string | null;
107
106
  onEventId: string;
108
- when: _prisma_client.AchievementFrequency;
107
+ when: _prisma_client.$Enums.AchievementFrequency;
109
108
  reward: _prisma_client.Prisma.JsonValue;
110
109
  createdAt: Date;
111
110
  updatedAt: Date;
112
- }, unknown> & {};
113
- } & _prisma_client_runtime.GetResult<{
111
+ };
112
+ } & {
114
113
  id: number;
115
114
  count: number;
116
115
  achievementId: string;
@@ -119,8 +118,8 @@ declare function loginAsTeam({ token }: LoginAsTeamArgs, ctx: CtxWithPrisma<Pris
119
118
  gameId: number;
120
119
  createdAt: Date;
121
120
  updatedAt: Date;
122
- }, unknown> & {})[];
123
- } & _prisma_client_runtime.GetResult<{
121
+ })[];
122
+ } & {
124
123
  id: string;
125
124
  number: number;
126
125
  name: string;
@@ -142,7 +141,7 @@ declare function loginAsTeam({ token }: LoginAsTeamArgs, ctx: CtxWithPrisma<Pris
142
141
  gameId: number;
143
142
  createdAt: Date;
144
143
  updatedAt: Date;
145
- }, unknown> & {}) | null>;
144
+ }) | null>;
146
145
  declare function logoutAsTeam(ctx: CtxWithPrisma<PrismaClient>): Promise<boolean>;
147
146
 
148
147
  declare const AccountService_createLoginToken: typeof createLoginToken;
@@ -190,7 +189,7 @@ interface CreateGameArgs {
190
189
  declare function createGame({ name, playerCount }: CreateGameArgs, ctx: Context$1, { roleAssigner }: {
191
190
  roleAssigner: (ix: number) => any;
192
191
  }): Promise<{
193
- players: (_prisma_client_runtime.GetResult<{
192
+ players: {
194
193
  id: string;
195
194
  number: number;
196
195
  name: string;
@@ -212,8 +211,8 @@ declare function createGame({ name, playerCount }: CreateGameArgs, ctx: Context$
212
211
  gameId: number;
213
212
  createdAt: Date;
214
213
  updatedAt: Date;
215
- }, unknown> & {})[];
216
- periods: (_prisma_client_runtime.GetResult<{
214
+ }[];
215
+ periods: {
217
216
  id: number;
218
217
  index: number;
219
218
  facts: DB.Prisma.JsonValue;
@@ -223,24 +222,24 @@ declare function createGame({ name, playerCount }: CreateGameArgs, ctx: Context$
223
222
  gameId: number;
224
223
  createdAt: Date;
225
224
  updatedAt: Date;
226
- }, unknown> & {})[];
227
- } & _prisma_client_runtime.GetResult<{
225
+ }[];
226
+ } & {
228
227
  id: number;
229
- status: DB.GameStatus;
228
+ status: DB.$Enums.GameStatus;
230
229
  name: string;
231
230
  activePeriodIx: number;
232
231
  activePeriodId: number | null;
233
232
  ownerId: string;
234
233
  createdAt: Date;
235
234
  updatedAt: Date;
236
- }, unknown> & {}>;
235
+ }>;
237
236
  interface AddGamePeriodArgs<T> {
238
237
  gameId: number;
239
238
  facts: T;
240
239
  }
241
240
  declare function addGamePeriod<TFacts>({ gameId, facts }: AddGamePeriodArgs<TFacts>, ctx: Context$1, { schema, reducers }: CtxWithFactsAndSchema<TFacts, PrismaClient>): Promise<({
242
241
  segments: ({
243
- learningElements: (_prisma_client_runtime.GetResult<{
242
+ learningElements: {
244
243
  id: string;
245
244
  title: string;
246
245
  question: string;
@@ -249,18 +248,18 @@ declare function addGamePeriod<TFacts>({ gameId, facts }: AddGamePeriodArgs<TFac
249
248
  reward: DB.Prisma.JsonValue;
250
249
  createdAt: Date;
251
250
  updatedAt: Date;
252
- }, unknown> & {})[];
253
- storyElements: (_prisma_client_runtime.GetResult<{
251
+ }[];
252
+ storyElements: {
254
253
  id: string;
255
254
  title: string;
256
- type: DB.StoryElementType;
255
+ type: DB.$Enums.StoryElementType;
257
256
  content: string | null;
258
257
  contentRole: DB.Prisma.JsonValue;
259
258
  reward: DB.Prisma.JsonValue;
260
259
  createdAt: Date;
261
260
  updatedAt: Date;
262
- }, unknown> & {})[];
263
- } & _prisma_client_runtime.GetResult<{
261
+ }[];
262
+ } & {
264
263
  id: number;
265
264
  index: number;
266
265
  facts: DB.Prisma.JsonValue;
@@ -271,8 +270,8 @@ declare function addGamePeriod<TFacts>({ gameId, facts }: AddGamePeriodArgs<TFac
271
270
  nextSegmentId: number | null;
272
271
  createdAt: Date;
273
272
  updatedAt: Date;
274
- }, unknown> & {})[];
275
- } & _prisma_client_runtime.GetResult<{
273
+ })[];
274
+ } & {
276
275
  id: number;
277
276
  index: number;
278
277
  facts: DB.Prisma.JsonValue;
@@ -282,7 +281,7 @@ declare function addGamePeriod<TFacts>({ gameId, facts }: AddGamePeriodArgs<TFac
282
281
  gameId: number;
283
282
  createdAt: Date;
284
283
  updatedAt: Date;
285
- }, unknown> & {}) | null>;
284
+ }) | null>;
286
285
  interface AddPeriodSegmentArgs<TFacts> {
287
286
  gameId: number;
288
287
  periodIx: number;
@@ -291,7 +290,7 @@ interface AddPeriodSegmentArgs<TFacts> {
291
290
  storyElements?: string[];
292
291
  }
293
292
  declare function addPeriodSegment<TFacts>({ gameId, periodIx, facts, learningElements, storyElements, }: AddPeriodSegmentArgs<TFacts>, ctx: Context$1, { schema, reducers }: CtxWithFactsAndSchema<TFacts, PrismaClient>): Promise<({
294
- learningElements: (_prisma_client_runtime.GetResult<{
293
+ learningElements: {
295
294
  id: string;
296
295
  title: string;
297
296
  question: string;
@@ -300,18 +299,18 @@ declare function addPeriodSegment<TFacts>({ gameId, periodIx, facts, learningEle
300
299
  reward: DB.Prisma.JsonValue;
301
300
  createdAt: Date;
302
301
  updatedAt: Date;
303
- }, unknown> & {})[];
304
- storyElements: (_prisma_client_runtime.GetResult<{
302
+ }[];
303
+ storyElements: {
305
304
  id: string;
306
305
  title: string;
307
- type: DB.StoryElementType;
306
+ type: DB.$Enums.StoryElementType;
308
307
  content: string | null;
309
308
  contentRole: DB.Prisma.JsonValue;
310
309
  reward: DB.Prisma.JsonValue;
311
310
  createdAt: Date;
312
311
  updatedAt: Date;
313
- }, unknown> & {})[];
314
- } & _prisma_client_runtime.GetResult<{
312
+ }[];
313
+ } & {
315
314
  id: number;
316
315
  index: number;
317
316
  facts: DB.Prisma.JsonValue;
@@ -322,13 +321,13 @@ declare function addPeriodSegment<TFacts>({ gameId, periodIx, facts, learningEle
322
321
  nextSegmentId: number | null;
323
322
  createdAt: Date;
324
323
  updatedAt: Date;
325
- }, unknown> & {}) | null>;
324
+ }) | null>;
326
325
  interface ActivateNextPeriodArgs {
327
326
  gameId: number;
328
327
  }
329
328
  declare function activateNextPeriod({ gameId }: ActivateNextPeriodArgs, ctx: Context$1, { reducers }: CtxWithFacts<any, PrismaClient>): Promise<[{
330
329
  periods: ({
331
- segments: (_prisma_client_runtime.GetResult<{
330
+ segments: {
332
331
  id: number;
333
332
  index: number;
334
333
  facts: DB.Prisma.JsonValue;
@@ -339,8 +338,8 @@ declare function activateNextPeriod({ gameId }: ActivateNextPeriodArgs, ctx: Con
339
338
  nextSegmentId: number | null;
340
339
  createdAt: Date;
341
340
  updatedAt: Date;
342
- }, unknown> & {})[];
343
- } & _prisma_client_runtime.GetResult<{
341
+ }[];
342
+ } & {
344
343
  id: number;
345
344
  index: number;
346
345
  facts: DB.Prisma.JsonValue;
@@ -350,17 +349,17 @@ declare function activateNextPeriod({ gameId }: ActivateNextPeriodArgs, ctx: Con
350
349
  gameId: number;
351
350
  createdAt: Date;
352
351
  updatedAt: Date;
353
- }, unknown> & {})[];
354
- } & _prisma_client_runtime.GetResult<{
352
+ })[];
353
+ } & {
355
354
  id: number;
356
- status: DB.GameStatus;
355
+ status: DB.$Enums.GameStatus;
357
356
  name: string;
358
357
  activePeriodIx: number;
359
358
  activePeriodId: number | null;
360
359
  ownerId: string;
361
360
  createdAt: Date;
362
361
  updatedAt: Date;
363
- }, unknown> & {}, _prisma_client_runtime.GetResult<{
362
+ }, {
364
363
  id: number;
365
364
  index: number;
366
365
  facts: DB.Prisma.JsonValue;
@@ -370,36 +369,12 @@ declare function activateNextPeriod({ gameId }: ActivateNextPeriodArgs, ctx: Con
370
369
  gameId: number;
371
370
  createdAt: Date;
372
371
  updatedAt: Date;
373
- }, unknown> & {}, ...any[]] | null>;
372
+ }, ...any[]] | null>;
374
373
  interface ActivateSegmentArgs {
375
374
  gameId: number;
376
375
  }
377
376
  declare function activateNextSegment({ gameId }: ActivateSegmentArgs, ctx: Context$1, { reducers }: CtxWithFacts<any, PrismaClient>): Promise<[{
378
- periods: ({
379
- segments: (_prisma_client_runtime.GetResult<{
380
- id: number;
381
- index: number;
382
- facts: DB.Prisma.JsonValue;
383
- countdownExpiresAt: Date | null;
384
- periodId: number;
385
- periodIx: number;
386
- gameId: number;
387
- nextSegmentId: number | null;
388
- createdAt: Date;
389
- updatedAt: Date;
390
- }, unknown> & {})[];
391
- } & _prisma_client_runtime.GetResult<{
392
- id: number;
393
- index: number;
394
- facts: DB.Prisma.JsonValue;
395
- activeSegmentIx: number;
396
- activeSegmentId: number | null;
397
- nextPeriodId: number | null;
398
- gameId: number;
399
- createdAt: Date;
400
- updatedAt: Date;
401
- }, unknown> & {})[];
402
- players: (_prisma_client_runtime.GetResult<{
377
+ players: {
403
378
  id: string;
404
379
  number: number;
405
380
  name: string;
@@ -421,17 +396,41 @@ declare function activateNextSegment({ gameId }: ActivateSegmentArgs, ctx: Conte
421
396
  gameId: number;
422
397
  createdAt: Date;
423
398
  updatedAt: Date;
424
- }, unknown> & {})[];
425
- } & _prisma_client_runtime.GetResult<{
399
+ }[];
400
+ periods: ({
401
+ segments: {
402
+ id: number;
403
+ index: number;
404
+ facts: DB.Prisma.JsonValue;
405
+ countdownExpiresAt: Date | null;
406
+ periodId: number;
407
+ periodIx: number;
408
+ gameId: number;
409
+ nextSegmentId: number | null;
410
+ createdAt: Date;
411
+ updatedAt: Date;
412
+ }[];
413
+ } & {
414
+ id: number;
415
+ index: number;
416
+ facts: DB.Prisma.JsonValue;
417
+ activeSegmentIx: number;
418
+ activeSegmentId: number | null;
419
+ nextPeriodId: number | null;
420
+ gameId: number;
421
+ createdAt: Date;
422
+ updatedAt: Date;
423
+ })[];
424
+ } & {
426
425
  id: number;
427
- status: DB.GameStatus;
426
+ status: DB.$Enums.GameStatus;
428
427
  name: string;
429
428
  activePeriodIx: number;
430
429
  activePeriodId: number | null;
431
430
  ownerId: string;
432
431
  createdAt: Date;
433
432
  updatedAt: Date;
434
- }, unknown> & {}, _prisma_client_runtime.GetResult<{
433
+ }, {
435
434
  id: number;
436
435
  index: number;
437
436
  facts: DB.Prisma.JsonValue;
@@ -441,7 +440,7 @@ declare function activateNextSegment({ gameId }: ActivateSegmentArgs, ctx: Conte
441
440
  gameId: number;
442
441
  createdAt: Date;
443
442
  updatedAt: Date;
444
- }, unknown> & {}, _prisma_client_runtime.GetResult<{
443
+ }, {
445
444
  id: number;
446
445
  index: number;
447
446
  facts: DB.Prisma.JsonValue;
@@ -452,32 +451,8 @@ declare function activateNextSegment({ gameId }: ActivateSegmentArgs, ctx: Conte
452
451
  nextSegmentId: number | null;
453
452
  createdAt: Date;
454
453
  updatedAt: Date;
455
- }, unknown> & {}, ...any[]] | [{
456
- periods: ({
457
- segments: (_prisma_client_runtime.GetResult<{
458
- id: number;
459
- index: number;
460
- facts: DB.Prisma.JsonValue;
461
- countdownExpiresAt: Date | null;
462
- periodId: number;
463
- periodIx: number;
464
- gameId: number;
465
- nextSegmentId: number | null;
466
- createdAt: Date;
467
- updatedAt: Date;
468
- }, unknown> & {})[];
469
- } & _prisma_client_runtime.GetResult<{
470
- id: number;
471
- index: number;
472
- facts: DB.Prisma.JsonValue;
473
- activeSegmentIx: number;
474
- activeSegmentId: number | null;
475
- nextPeriodId: number | null;
476
- gameId: number;
477
- createdAt: Date;
478
- updatedAt: Date;
479
- }, unknown> & {})[];
480
- players: (_prisma_client_runtime.GetResult<{
454
+ }, ...any[]] | [{
455
+ players: {
481
456
  id: string;
482
457
  number: number;
483
458
  name: string;
@@ -499,20 +474,44 @@ declare function activateNextSegment({ gameId }: ActivateSegmentArgs, ctx: Conte
499
474
  gameId: number;
500
475
  createdAt: Date;
501
476
  updatedAt: Date;
502
- }, unknown> & {})[];
503
- } & _prisma_client_runtime.GetResult<{
477
+ }[];
478
+ periods: ({
479
+ segments: {
480
+ id: number;
481
+ index: number;
482
+ facts: DB.Prisma.JsonValue;
483
+ countdownExpiresAt: Date | null;
484
+ periodId: number;
485
+ periodIx: number;
486
+ gameId: number;
487
+ nextSegmentId: number | null;
488
+ createdAt: Date;
489
+ updatedAt: Date;
490
+ }[];
491
+ } & {
492
+ id: number;
493
+ index: number;
494
+ facts: DB.Prisma.JsonValue;
495
+ activeSegmentIx: number;
496
+ activeSegmentId: number | null;
497
+ nextPeriodId: number | null;
498
+ gameId: number;
499
+ createdAt: Date;
500
+ updatedAt: Date;
501
+ })[];
502
+ } & {
504
503
  id: number;
505
- status: DB.GameStatus;
504
+ status: DB.$Enums.GameStatus;
506
505
  name: string;
507
506
  activePeriodIx: number;
508
507
  activePeriodId: number | null;
509
508
  ownerId: string;
510
509
  createdAt: Date;
511
510
  updatedAt: Date;
512
- }, unknown> & {}, {
513
- results: (_prisma_client_runtime.GetResult<{
511
+ }, {
512
+ results: {
514
513
  id: number;
515
- type: DB.PlayerResultType;
514
+ type: DB.$Enums.PlayerResultType;
516
515
  facts: DB.Prisma.JsonValue;
517
516
  playerId: string;
518
517
  gameId: number;
@@ -522,8 +521,8 @@ declare function activateNextSegment({ gameId }: ActivateSegmentArgs, ctx: Conte
522
521
  segmentIx: number | null;
523
522
  createdAt: Date;
524
523
  updatedAt: Date;
525
- }, unknown> & {})[];
526
- } & _prisma_client_runtime.GetResult<{
524
+ }[];
525
+ } & {
527
526
  id: number;
528
527
  index: number;
529
528
  facts: DB.Prisma.JsonValue;
@@ -534,7 +533,7 @@ declare function activateNextSegment({ gameId }: ActivateSegmentArgs, ctx: Conte
534
533
  nextSegmentId: number | null;
535
534
  createdAt: Date;
536
535
  updatedAt: Date;
537
- }, unknown> & {}, DB.Prisma.BatchPayload, ...any[]] | null>;
536
+ }, DB.Prisma.BatchPayload, ...any[]] | null>;
538
537
  declare const PlayerFactsSchema: yup.ObjectSchema<{
539
538
  location: string;
540
539
  }, yup.AnyObject, {
@@ -549,26 +548,26 @@ interface UpdatePlayerDataArgs {
549
548
  facts: PlayerFacts;
550
549
  }
551
550
  declare function updatePlayerData({ name, avatar, color, facts }: UpdatePlayerDataArgs, ctx: Context$1): Promise<({
552
- level: _prisma_client_runtime.GetResult<{
551
+ level: {
553
552
  id: number;
554
553
  index: number;
555
554
  description: string;
556
555
  image: string;
557
556
  requiredXP: number;
558
- }, unknown> & {};
557
+ };
559
558
  achievements: ({
560
- achievement: _prisma_client_runtime.GetResult<{
559
+ achievement: {
561
560
  id: string;
562
561
  name: string;
563
562
  description: string;
564
563
  image: string | null;
565
564
  onEventId: string;
566
- when: DB.AchievementFrequency;
565
+ when: DB.$Enums.AchievementFrequency;
567
566
  reward: DB.Prisma.JsonValue;
568
567
  createdAt: Date;
569
568
  updatedAt: Date;
570
- }, unknown> & {};
571
- } & _prisma_client_runtime.GetResult<{
569
+ };
570
+ } & {
572
571
  id: number;
573
572
  count: number;
574
573
  achievementId: string;
@@ -577,8 +576,8 @@ declare function updatePlayerData({ name, avatar, color, facts }: UpdatePlayerDa
577
576
  gameId: number;
578
577
  createdAt: Date;
579
578
  updatedAt: Date;
580
- }, unknown> & {})[];
581
- } & _prisma_client_runtime.GetResult<{
579
+ })[];
580
+ } & {
582
581
  id: string;
583
582
  number: number;
584
583
  name: string;
@@ -600,27 +599,27 @@ declare function updatePlayerData({ name, avatar, color, facts }: UpdatePlayerDa
600
599
  gameId: number;
601
600
  createdAt: Date;
602
601
  updatedAt: Date;
603
- }, unknown> & {}) | null>;
604
- declare function getGames(args: any, ctx: Context$1): Promise<(_prisma_client_runtime.GetResult<{
602
+ }) | null>;
603
+ declare function getGames(args: any, ctx: Context$1): Promise<{
605
604
  id: number;
606
- status: DB.GameStatus;
605
+ status: DB.$Enums.GameStatus;
607
606
  name: string;
608
607
  activePeriodIx: number;
609
608
  activePeriodId: number | null;
610
609
  ownerId: string;
611
610
  createdAt: Date;
612
611
  updatedAt: Date;
613
- }, unknown> & {})[]>;
612
+ }[]>;
614
613
  declare function getGame(args: any, ctx: Context$1): Promise<({
615
614
  players: ({
616
- level: _prisma_client_runtime.GetResult<{
615
+ level: {
617
616
  id: number;
618
617
  index: number;
619
618
  description: string;
620
619
  image: string;
621
620
  requiredXP: number;
622
- }, unknown> & {};
623
- achievements: (_prisma_client_runtime.GetResult<{
621
+ };
622
+ achievements: {
624
623
  id: number;
625
624
  count: number;
626
625
  achievementId: string;
@@ -629,8 +628,8 @@ declare function getGame(args: any, ctx: Context$1): Promise<({
629
628
  gameId: number;
630
629
  createdAt: Date;
631
630
  updatedAt: Date;
632
- }, unknown> & {})[];
633
- } & _prisma_client_runtime.GetResult<{
631
+ }[];
632
+ } & {
634
633
  id: string;
635
634
  number: number;
636
635
  name: string;
@@ -652,10 +651,10 @@ declare function getGame(args: any, ctx: Context$1): Promise<({
652
651
  gameId: number;
653
652
  createdAt: Date;
654
653
  updatedAt: Date;
655
- }, unknown> & {})[];
654
+ })[];
656
655
  periods: ({
657
656
  segments: ({
658
- learningElements: (_prisma_client_runtime.GetResult<{
657
+ learningElements: {
659
658
  id: string;
660
659
  title: string;
661
660
  question: string;
@@ -664,18 +663,18 @@ declare function getGame(args: any, ctx: Context$1): Promise<({
664
663
  reward: DB.Prisma.JsonValue;
665
664
  createdAt: Date;
666
665
  updatedAt: Date;
667
- }, unknown> & {})[];
668
- storyElements: (_prisma_client_runtime.GetResult<{
666
+ }[];
667
+ storyElements: {
669
668
  id: string;
670
669
  title: string;
671
- type: DB.StoryElementType;
670
+ type: DB.$Enums.StoryElementType;
672
671
  content: string | null;
673
672
  contentRole: DB.Prisma.JsonValue;
674
673
  reward: DB.Prisma.JsonValue;
675
674
  createdAt: Date;
676
675
  updatedAt: Date;
677
- }, unknown> & {})[];
678
- } & _prisma_client_runtime.GetResult<{
676
+ }[];
677
+ } & {
679
678
  id: number;
680
679
  index: number;
681
680
  facts: DB.Prisma.JsonValue;
@@ -686,8 +685,8 @@ declare function getGame(args: any, ctx: Context$1): Promise<({
686
685
  nextSegmentId: number | null;
687
686
  createdAt: Date;
688
687
  updatedAt: Date;
689
- }, unknown> & {})[];
690
- } & _prisma_client_runtime.GetResult<{
688
+ })[];
689
+ } & {
691
690
  id: number;
692
691
  index: number;
693
692
  facts: DB.Prisma.JsonValue;
@@ -697,9 +696,9 @@ declare function getGame(args: any, ctx: Context$1): Promise<({
697
696
  gameId: number;
698
697
  createdAt: Date;
699
698
  updatedAt: Date;
700
- }, unknown> & {})[];
699
+ })[];
701
700
  activePeriod: ({
702
- segments: (_prisma_client_runtime.GetResult<{
701
+ segments: {
703
702
  id: number;
704
703
  index: number;
705
704
  facts: DB.Prisma.JsonValue;
@@ -710,8 +709,8 @@ declare function getGame(args: any, ctx: Context$1): Promise<({
710
709
  nextSegmentId: number | null;
711
710
  createdAt: Date;
712
711
  updatedAt: Date;
713
- }, unknown> & {})[];
714
- activeSegment: (_prisma_client_runtime.GetResult<{
712
+ }[];
713
+ activeSegment: {
715
714
  id: number;
716
715
  index: number;
717
716
  facts: DB.Prisma.JsonValue;
@@ -722,8 +721,8 @@ declare function getGame(args: any, ctx: Context$1): Promise<({
722
721
  nextSegmentId: number | null;
723
722
  createdAt: Date;
724
723
  updatedAt: Date;
725
- }, unknown> & {}) | null;
726
- } & _prisma_client_runtime.GetResult<{
724
+ } | null;
725
+ } & {
727
726
  id: number;
728
727
  index: number;
729
728
  facts: DB.Prisma.JsonValue;
@@ -733,19 +732,19 @@ declare function getGame(args: any, ctx: Context$1): Promise<({
733
732
  gameId: number;
734
733
  createdAt: Date;
735
734
  updatedAt: Date;
736
- }, unknown> & {}) | null;
737
- } & _prisma_client_runtime.GetResult<{
735
+ }) | null;
736
+ } & {
738
737
  id: number;
739
- status: DB.GameStatus;
738
+ status: DB.$Enums.GameStatus;
740
739
  name: string;
741
740
  activePeriodIx: number;
742
741
  activePeriodId: number | null;
743
742
  ownerId: string;
744
743
  createdAt: Date;
745
744
  updatedAt: Date;
746
- }, unknown> & {}) | null>;
745
+ }) | null>;
747
746
  declare function getGameFromContext(ctx: Context$1): Promise<({
748
- activePeriod: (_prisma_client_runtime.GetResult<{
747
+ activePeriod: {
749
748
  id: number;
750
749
  index: number;
751
750
  facts: DB.Prisma.JsonValue;
@@ -755,26 +754,26 @@ declare function getGameFromContext(ctx: Context$1): Promise<({
755
754
  gameId: number;
756
755
  createdAt: Date;
757
756
  updatedAt: Date;
758
- }, unknown> & {}) | null;
759
- } & _prisma_client_runtime.GetResult<{
757
+ } | null;
758
+ } & {
760
759
  id: number;
761
- status: DB.GameStatus;
760
+ status: DB.$Enums.GameStatus;
762
761
  name: string;
763
762
  activePeriodIx: number;
764
763
  activePeriodId: number | null;
765
764
  ownerId: string;
766
765
  createdAt: Date;
767
766
  updatedAt: Date;
768
- }, unknown> & {}) | null>;
767
+ }) | null>;
769
768
  declare function getLearningElements(args: any, ctx: Context$1): Promise<({
770
- options: (_prisma_client_runtime.GetResult<{
769
+ options: {
771
770
  id: number;
772
771
  content: string;
773
772
  correct: boolean;
774
773
  feedback: string | null;
775
774
  learningElementSlug: string;
776
- }, unknown> & {})[];
777
- } & _prisma_client_runtime.GetResult<{
775
+ }[];
776
+ } & {
778
777
  id: string;
779
778
  title: string;
780
779
  question: string;
@@ -783,7 +782,13 @@ declare function getLearningElements(args: any, ctx: Context$1): Promise<({
783
782
  reward: DB.Prisma.JsonValue;
784
783
  createdAt: Date;
785
784
  updatedAt: Date;
786
- }, unknown> & {})[]>;
785
+ })[]>;
786
+ declare function mapAction({ ctx, gameId, activePeriodIx, playerId }: {
787
+ ctx: any;
788
+ gameId: any;
789
+ activePeriodIx: any;
790
+ playerId: any;
791
+ }): (action: any) => any;
787
792
  declare function computePeriodStartResults({ results, players, activePeriodIx, gameId, periodFacts }: {
788
793
  results: any;
789
794
  players: any;
@@ -838,6 +843,7 @@ declare const GameService_getGame: typeof getGame;
838
843
  declare const GameService_getGameFromContext: typeof getGameFromContext;
839
844
  declare const GameService_getGames: typeof getGames;
840
845
  declare const GameService_getLearningElements: typeof getLearningElements;
846
+ declare const GameService_mapAction: typeof mapAction;
841
847
  declare const GameService_updatePlayerData: typeof updatePlayerData;
842
848
  declare namespace GameService {
843
849
  export {
@@ -855,6 +861,7 @@ declare namespace GameService {
855
861
  GameService_getGameFromContext as getGameFromContext,
856
862
  GameService_getGames as getGames,
857
863
  GameService_getLearningElements as getLearningElements,
864
+ GameService_mapAction as mapAction,
858
865
  GameService_updatePlayerData as updatePlayerData,
859
866
  };
860
867
  }
@@ -868,38 +875,14 @@ interface PerformActionArgs<ActionTypes> {
868
875
  actionType: ActionTypes;
869
876
  facts: any;
870
877
  }
871
- declare function performAction<ActionTypes>(args: PerformActionArgs<ActionTypes>, ctx: Context, { reducers }: any): Promise<({
872
- period: _prisma_client_runtime.GetResult<{
873
- id: number;
874
- index: number;
875
- facts: DB.Prisma.JsonValue;
876
- activeSegmentIx: number;
877
- activeSegmentId: number | null;
878
- nextPeriodId: number | null;
879
- gameId: number;
880
- createdAt: Date;
881
- updatedAt: Date;
882
- }, unknown> & {};
883
- } & _prisma_client_runtime.GetResult<{
884
- id: number;
885
- type: DB.PlayerResultType;
886
- facts: DB.Prisma.JsonValue;
887
- playerId: string;
888
- gameId: number;
889
- periodId: number;
890
- periodIx: number;
891
- segmentId: number | null;
892
- segmentIx: number | null;
893
- createdAt: Date;
894
- updatedAt: Date;
895
- }, unknown> & {}) | null>;
878
+ declare function performAction<ActionTypes>(args: PerformActionArgs<ActionTypes>, ctx: Context, { reducers }: any): Promise<any>;
896
879
  interface SaveDecisionsArgs {
897
880
  decisionType: DB.PlayerDecisionType;
898
881
  facts: any;
899
882
  }
900
- declare function saveDecisions(args: SaveDecisionsArgs, ctx: Context): Promise<(_prisma_client_runtime.GetResult<{
883
+ declare function saveDecisions(args: SaveDecisionsArgs, ctx: Context): Promise<{
901
884
  id: number;
902
- type: DB.PlayerDecisionType;
885
+ type: DB.$Enums.PlayerDecisionType;
903
886
  facts: DB.Prisma.JsonValue;
904
887
  gameId: number;
905
888
  playerId: string;
@@ -907,16 +890,16 @@ declare function saveDecisions(args: SaveDecisionsArgs, ctx: Context): Promise<(
907
890
  periodIx: number;
908
891
  createdAt: Date;
909
892
  updatedAt: Date;
910
- }, unknown> & {}) | null>;
893
+ } | null>;
911
894
  interface GetPlayerResultArgs {
912
895
  gameId: number;
913
896
  playerId: string;
914
897
  }
915
898
  declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promise<{
916
899
  currentGame: {
917
- activePeriod: ({
918
- activeSegment: ({
919
- learningElements: (_prisma_client_runtime.GetResult<{
900
+ periods: ({
901
+ segments: ({
902
+ learningElements: {
920
903
  id: string;
921
904
  title: string;
922
905
  question: string;
@@ -925,18 +908,18 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
925
908
  reward: DB.Prisma.JsonValue;
926
909
  createdAt: Date;
927
910
  updatedAt: Date;
928
- }, unknown> & {})[];
929
- storyElements: (_prisma_client_runtime.GetResult<{
911
+ }[];
912
+ storyElements: {
930
913
  id: string;
931
914
  title: string;
932
- type: DB.StoryElementType;
915
+ type: DB.$Enums.StoryElementType;
933
916
  content: string | null;
934
917
  contentRole: DB.Prisma.JsonValue;
935
918
  reward: DB.Prisma.JsonValue;
936
919
  createdAt: Date;
937
920
  updatedAt: Date;
938
- }, unknown> & {})[];
939
- } & _prisma_client_runtime.GetResult<{
921
+ }[];
922
+ } & {
940
923
  id: number;
941
924
  index: number;
942
925
  facts: DB.Prisma.JsonValue;
@@ -947,9 +930,21 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
947
930
  nextSegmentId: number | null;
948
931
  createdAt: Date;
949
932
  updatedAt: Date;
950
- }, unknown> & {}) | null;
933
+ })[];
934
+ } & {
935
+ id: number;
936
+ index: number;
937
+ facts: DB.Prisma.JsonValue;
938
+ activeSegmentIx: number;
939
+ activeSegmentId: number | null;
940
+ nextPeriodId: number | null;
941
+ gameId: number;
942
+ createdAt: Date;
943
+ updatedAt: Date;
944
+ })[];
945
+ activePeriod: ({
951
946
  segments: ({
952
- learningElements: (_prisma_client_runtime.GetResult<{
947
+ learningElements: {
953
948
  id: string;
954
949
  title: string;
955
950
  question: string;
@@ -958,18 +953,18 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
958
953
  reward: DB.Prisma.JsonValue;
959
954
  createdAt: Date;
960
955
  updatedAt: Date;
961
- }, unknown> & {})[];
962
- storyElements: (_prisma_client_runtime.GetResult<{
956
+ }[];
957
+ storyElements: {
963
958
  id: string;
964
959
  title: string;
965
- type: DB.StoryElementType;
960
+ type: DB.$Enums.StoryElementType;
966
961
  content: string | null;
967
962
  contentRole: DB.Prisma.JsonValue;
968
963
  reward: DB.Prisma.JsonValue;
969
964
  createdAt: Date;
970
965
  updatedAt: Date;
971
- }, unknown> & {})[];
972
- } & _prisma_client_runtime.GetResult<{
966
+ }[];
967
+ } & {
973
968
  id: number;
974
969
  index: number;
975
970
  facts: DB.Prisma.JsonValue;
@@ -980,21 +975,9 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
980
975
  nextSegmentId: number | null;
981
976
  createdAt: Date;
982
977
  updatedAt: Date;
983
- }, unknown> & {})[];
984
- } & _prisma_client_runtime.GetResult<{
985
- id: number;
986
- index: number;
987
- facts: DB.Prisma.JsonValue;
988
- activeSegmentIx: number;
989
- activeSegmentId: number | null;
990
- nextPeriodId: number | null;
991
- gameId: number;
992
- createdAt: Date;
993
- updatedAt: Date;
994
- }, unknown> & {}) | null;
995
- periods: ({
996
- segments: ({
997
- learningElements: (_prisma_client_runtime.GetResult<{
978
+ })[];
979
+ activeSegment: ({
980
+ learningElements: {
998
981
  id: string;
999
982
  title: string;
1000
983
  question: string;
@@ -1003,18 +986,18 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
1003
986
  reward: DB.Prisma.JsonValue;
1004
987
  createdAt: Date;
1005
988
  updatedAt: Date;
1006
- }, unknown> & {})[];
1007
- storyElements: (_prisma_client_runtime.GetResult<{
989
+ }[];
990
+ storyElements: {
1008
991
  id: string;
1009
992
  title: string;
1010
- type: DB.StoryElementType;
993
+ type: DB.$Enums.StoryElementType;
1011
994
  content: string | null;
1012
995
  contentRole: DB.Prisma.JsonValue;
1013
996
  reward: DB.Prisma.JsonValue;
1014
997
  createdAt: Date;
1015
998
  updatedAt: Date;
1016
- }, unknown> & {})[];
1017
- } & _prisma_client_runtime.GetResult<{
999
+ }[];
1000
+ } & {
1018
1001
  id: number;
1019
1002
  index: number;
1020
1003
  facts: DB.Prisma.JsonValue;
@@ -1025,8 +1008,8 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
1025
1008
  nextSegmentId: number | null;
1026
1009
  createdAt: Date;
1027
1010
  updatedAt: Date;
1028
- }, unknown> & {})[];
1029
- } & _prisma_client_runtime.GetResult<{
1011
+ }) | null;
1012
+ } & {
1030
1013
  id: number;
1031
1014
  index: number;
1032
1015
  facts: DB.Prisma.JsonValue;
@@ -1036,31 +1019,20 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
1036
1019
  gameId: number;
1037
1020
  createdAt: Date;
1038
1021
  updatedAt: Date;
1039
- }, unknown> & {})[];
1040
- } & _prisma_client_runtime.GetResult<{
1022
+ }) | null;
1023
+ } & {
1041
1024
  id: number;
1042
- status: DB.GameStatus;
1025
+ status: DB.$Enums.GameStatus;
1043
1026
  name: string;
1044
1027
  activePeriodIx: number;
1045
1028
  activePeriodId: number | null;
1046
1029
  ownerId: string;
1047
1030
  createdAt: Date;
1048
1031
  updatedAt: Date;
1049
- }, unknown> & {};
1032
+ };
1050
1033
  playerResult: ({
1051
- period: _prisma_client_runtime.GetResult<{
1052
- id: number;
1053
- index: number;
1054
- facts: DB.Prisma.JsonValue;
1055
- activeSegmentIx: number;
1056
- activeSegmentId: number | null;
1057
- nextPeriodId: number | null;
1058
- gameId: number;
1059
- createdAt: Date;
1060
- updatedAt: Date;
1061
- }, unknown> & {};
1062
1034
  player: {
1063
- completedLearningElements: (_prisma_client_runtime.GetResult<{
1035
+ completedLearningElements: {
1064
1036
  id: string;
1065
1037
  title: string;
1066
1038
  question: string;
@@ -1069,18 +1041,18 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
1069
1041
  reward: DB.Prisma.JsonValue;
1070
1042
  createdAt: Date;
1071
1043
  updatedAt: Date;
1072
- }, unknown> & {})[];
1073
- visitedStoryElements: (_prisma_client_runtime.GetResult<{
1044
+ }[];
1045
+ visitedStoryElements: {
1074
1046
  id: string;
1075
1047
  title: string;
1076
- type: DB.StoryElementType;
1048
+ type: DB.$Enums.StoryElementType;
1077
1049
  content: string | null;
1078
1050
  contentRole: DB.Prisma.JsonValue;
1079
1051
  reward: DB.Prisma.JsonValue;
1080
1052
  createdAt: Date;
1081
1053
  updatedAt: Date;
1082
- }, unknown> & {})[];
1083
- } & _prisma_client_runtime.GetResult<{
1054
+ }[];
1055
+ } & {
1084
1056
  id: string;
1085
1057
  number: number;
1086
1058
  name: string;
@@ -1102,10 +1074,21 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
1102
1074
  gameId: number;
1103
1075
  createdAt: Date;
1104
1076
  updatedAt: Date;
1105
- }, unknown> & {};
1106
- } & _prisma_client_runtime.GetResult<{
1077
+ };
1078
+ period: {
1079
+ id: number;
1080
+ index: number;
1081
+ facts: DB.Prisma.JsonValue;
1082
+ activeSegmentIx: number;
1083
+ activeSegmentId: number | null;
1084
+ nextPeriodId: number | null;
1085
+ gameId: number;
1086
+ createdAt: Date;
1087
+ updatedAt: Date;
1088
+ };
1089
+ } & {
1107
1090
  id: number;
1108
- type: DB.PlayerResultType;
1091
+ type: DB.$Enums.PlayerResultType;
1109
1092
  facts: DB.Prisma.JsonValue;
1110
1093
  playerId: string;
1111
1094
  gameId: number;
@@ -1115,9 +1098,9 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
1115
1098
  segmentIx: number | null;
1116
1099
  createdAt: Date;
1117
1100
  updatedAt: Date;
1118
- }, unknown> & {}) | null;
1101
+ }) | null;
1119
1102
  previousResults: DB.Prisma.PrismaPromise<({
1120
- period: _prisma_client_runtime.GetResult<{
1103
+ period: {
1121
1104
  id: number;
1122
1105
  index: number;
1123
1106
  facts: DB.Prisma.JsonValue;
@@ -1127,8 +1110,8 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
1127
1110
  gameId: number;
1128
1111
  createdAt: Date;
1129
1112
  updatedAt: Date;
1130
- }, unknown> & {};
1131
- segment: (_prisma_client_runtime.GetResult<{
1113
+ };
1114
+ segment: {
1132
1115
  id: number;
1133
1116
  index: number;
1134
1117
  facts: DB.Prisma.JsonValue;
@@ -1139,10 +1122,10 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
1139
1122
  nextSegmentId: number | null;
1140
1123
  createdAt: Date;
1141
1124
  updatedAt: Date;
1142
- }, unknown> & {}) | null;
1143
- } & _prisma_client_runtime.GetResult<{
1125
+ } | null;
1126
+ } & {
1144
1127
  id: number;
1145
- type: DB.PlayerResultType;
1128
+ type: DB.$Enums.PlayerResultType;
1146
1129
  facts: DB.Prisma.JsonValue;
1147
1130
  playerId: string;
1148
1131
  gameId: number;
@@ -1152,8 +1135,8 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
1152
1135
  segmentIx: number | null;
1153
1136
  createdAt: Date;
1154
1137
  updatedAt: Date;
1155
- }, unknown> & {})[]>;
1156
- transactions: DB.Prisma.PrismaPromise<(_prisma_client_runtime.GetResult<{
1138
+ })[]>;
1139
+ transactions: DB.Prisma.PrismaPromise<{
1157
1140
  id: number;
1158
1141
  type: string;
1159
1142
  facts: DB.Prisma.JsonValue;
@@ -1164,32 +1147,32 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
1164
1147
  segmentId: number | null;
1165
1148
  segmentIx: number | null;
1166
1149
  createdAt: Date;
1167
- }, unknown> & {})[]>;
1150
+ }[]>;
1168
1151
  } | null>;
1169
1152
  interface GetPlayerDataArgs {
1170
1153
  playerId: string;
1171
1154
  }
1172
1155
  declare function getPlayerData(args: GetPlayerDataArgs, ctx: Context): Promise<({
1173
- level: _prisma_client_runtime.GetResult<{
1156
+ level: {
1174
1157
  id: number;
1175
1158
  index: number;
1176
1159
  description: string;
1177
1160
  image: string;
1178
1161
  requiredXP: number;
1179
- }, unknown> & {};
1162
+ };
1180
1163
  achievements: ({
1181
- achievement: _prisma_client_runtime.GetResult<{
1164
+ achievement: {
1182
1165
  id: string;
1183
1166
  name: string;
1184
1167
  description: string;
1185
1168
  image: string | null;
1186
1169
  onEventId: string;
1187
- when: DB.AchievementFrequency;
1170
+ when: DB.$Enums.AchievementFrequency;
1188
1171
  reward: DB.Prisma.JsonValue;
1189
1172
  createdAt: Date;
1190
1173
  updatedAt: Date;
1191
- }, unknown> & {};
1192
- } & _prisma_client_runtime.GetResult<{
1174
+ };
1175
+ } & {
1193
1176
  id: number;
1194
1177
  count: number;
1195
1178
  achievementId: string;
@@ -1198,8 +1181,8 @@ declare function getPlayerData(args: GetPlayerDataArgs, ctx: Context): Promise<(
1198
1181
  gameId: number;
1199
1182
  createdAt: Date;
1200
1183
  updatedAt: Date;
1201
- }, unknown> & {})[];
1202
- } & _prisma_client_runtime.GetResult<{
1184
+ })[];
1185
+ } & {
1203
1186
  id: string;
1204
1187
  number: number;
1205
1188
  name: string;
@@ -1221,7 +1204,7 @@ declare function getPlayerData(args: GetPlayerDataArgs, ctx: Context): Promise<(
1221
1204
  gameId: number;
1222
1205
  createdAt: Date;
1223
1206
  updatedAt: Date;
1224
- }, unknown> & {}) | null>;
1207
+ }) | null>;
1225
1208
  interface GetLearningElementArgs {
1226
1209
  id: string;
1227
1210
  }
@@ -1229,20 +1212,20 @@ declare function getLearningElement(args: GetLearningElementArgs, ctx: Context):
1229
1212
  id: string;
1230
1213
  element: {
1231
1214
  feedback: string | null;
1232
- options: (_prisma_client_runtime.GetResult<{
1215
+ options: {
1233
1216
  id: number;
1234
1217
  content: string;
1235
1218
  correct: boolean;
1236
1219
  feedback: string | null;
1237
1220
  learningElementSlug: string;
1238
- }, unknown> & {})[];
1221
+ }[];
1239
1222
  id: string;
1240
- createdAt: Date;
1241
- updatedAt: Date;
1242
1223
  title: string;
1243
1224
  question: string;
1244
1225
  motivation: string | null;
1245
1226
  reward: DB.Prisma.JsonValue;
1227
+ createdAt: Date;
1228
+ updatedAt: Date;
1246
1229
  };
1247
1230
  state: LearningElementState;
1248
1231
  solution: string | null;
@@ -1264,7 +1247,7 @@ declare function attemptLearningElement(args: AttemptLearningElementArgs, ctx: C
1264
1247
  interface MarkStoryElementArgs {
1265
1248
  elementId: string;
1266
1249
  }
1267
- declare function markStoryElement(args: MarkStoryElementArgs, ctx: Context): Promise<(_prisma_client_runtime.GetResult<{
1250
+ declare function markStoryElement(args: MarkStoryElementArgs, ctx: Context): Promise<{
1268
1251
  id: string;
1269
1252
  number: number;
1270
1253
  name: string;
@@ -1286,10 +1269,10 @@ declare function markStoryElement(args: MarkStoryElementArgs, ctx: Context): Pro
1286
1269
  gameId: number;
1287
1270
  createdAt: Date;
1288
1271
  updatedAt: Date;
1289
- }, unknown> & {}) | null>;
1272
+ } | null>;
1290
1273
  interface GetPlayerTransactionsArgs {
1291
1274
  }
1292
- declare function getPlayerTransactions(args: GetPlayerTransactionsArgs, ctx: Context): Promise<(_prisma_client_runtime.GetResult<{
1275
+ declare function getPlayerTransactions(args: GetPlayerTransactionsArgs, ctx: Context): Promise<{
1293
1276
  id: number;
1294
1277
  type: string;
1295
1278
  facts: DB.Prisma.JsonValue;
@@ -1300,20 +1283,9 @@ declare function getPlayerTransactions(args: GetPlayerTransactionsArgs, ctx: Con
1300
1283
  segmentId: number | null;
1301
1284
  segmentIx: number | null;
1302
1285
  createdAt: Date;
1303
- }, unknown> & {})[]>;
1286
+ }[]>;
1304
1287
  declare function getPlayerResults(args: any, ctx: Context): Promise<({
1305
- period: _prisma_client_runtime.GetResult<{
1306
- id: number;
1307
- index: number;
1308
- facts: DB.Prisma.JsonValue;
1309
- activeSegmentIx: number;
1310
- activeSegmentId: number | null;
1311
- nextPeriodId: number | null;
1312
- gameId: number;
1313
- createdAt: Date;
1314
- updatedAt: Date;
1315
- }, unknown> & {};
1316
- player: _prisma_client_runtime.GetResult<{
1288
+ player: {
1317
1289
  id: string;
1318
1290
  number: number;
1319
1291
  name: string;
@@ -1335,8 +1307,19 @@ declare function getPlayerResults(args: any, ctx: Context): Promise<({
1335
1307
  gameId: number;
1336
1308
  createdAt: Date;
1337
1309
  updatedAt: Date;
1338
- }, unknown> & {};
1339
- segment: (_prisma_client_runtime.GetResult<{
1310
+ };
1311
+ period: {
1312
+ id: number;
1313
+ index: number;
1314
+ facts: DB.Prisma.JsonValue;
1315
+ activeSegmentIx: number;
1316
+ activeSegmentId: number | null;
1317
+ nextPeriodId: number | null;
1318
+ gameId: number;
1319
+ createdAt: Date;
1320
+ updatedAt: Date;
1321
+ };
1322
+ segment: {
1340
1323
  id: number;
1341
1324
  index: number;
1342
1325
  facts: DB.Prisma.JsonValue;
@@ -1347,10 +1330,10 @@ declare function getPlayerResults(args: any, ctx: Context): Promise<({
1347
1330
  nextSegmentId: number | null;
1348
1331
  createdAt: Date;
1349
1332
  updatedAt: Date;
1350
- }, unknown> & {}) | null;
1351
- } & _prisma_client_runtime.GetResult<{
1333
+ } | null;
1334
+ } & {
1352
1335
  id: number;
1353
- type: DB.PlayerResultType;
1336
+ type: DB.$Enums.PlayerResultType;
1354
1337
  facts: DB.Prisma.JsonValue;
1355
1338
  playerId: string;
1356
1339
  gameId: number;
@@ -1360,28 +1343,17 @@ declare function getPlayerResults(args: any, ctx: Context): Promise<({
1360
1343
  segmentIx: number | null;
1361
1344
  createdAt: Date;
1362
1345
  updatedAt: Date;
1363
- }, unknown> & {})[]>;
1346
+ })[]>;
1364
1347
  declare function getPastResults(args: any, ctx: Context): Promise<({
1365
- period: _prisma_client_runtime.GetResult<{
1366
- id: number;
1367
- index: number;
1368
- facts: DB.Prisma.JsonValue;
1369
- activeSegmentIx: number;
1370
- activeSegmentId: number | null;
1371
- nextPeriodId: number | null;
1372
- gameId: number;
1373
- createdAt: Date;
1374
- updatedAt: Date;
1375
- }, unknown> & {};
1376
1348
  player: {
1377
- level: _prisma_client_runtime.GetResult<{
1349
+ level: {
1378
1350
  id: number;
1379
1351
  index: number;
1380
1352
  description: string;
1381
1353
  image: string;
1382
1354
  requiredXP: number;
1383
- }, unknown> & {};
1384
- } & _prisma_client_runtime.GetResult<{
1355
+ };
1356
+ } & {
1385
1357
  id: string;
1386
1358
  number: number;
1387
1359
  name: string;
@@ -1403,10 +1375,21 @@ declare function getPastResults(args: any, ctx: Context): Promise<({
1403
1375
  gameId: number;
1404
1376
  createdAt: Date;
1405
1377
  updatedAt: Date;
1406
- }, unknown> & {};
1407
- } & _prisma_client_runtime.GetResult<{
1378
+ };
1379
+ period: {
1380
+ id: number;
1381
+ index: number;
1382
+ facts: DB.Prisma.JsonValue;
1383
+ activeSegmentIx: number;
1384
+ activeSegmentId: number | null;
1385
+ nextPeriodId: number | null;
1386
+ gameId: number;
1387
+ createdAt: Date;
1388
+ updatedAt: Date;
1389
+ };
1390
+ } & {
1408
1391
  id: number;
1409
- type: DB.PlayerResultType;
1392
+ type: DB.$Enums.PlayerResultType;
1410
1393
  facts: DB.Prisma.JsonValue;
1411
1394
  playerId: string;
1412
1395
  gameId: number;
@@ -1416,8 +1399,8 @@ declare function getPastResults(args: any, ctx: Context): Promise<({
1416
1399
  segmentIx: number | null;
1417
1400
  createdAt: Date;
1418
1401
  updatedAt: Date;
1419
- }, unknown> & {})[] | null>;
1420
- declare function updateReadyState(args: any, ctx: Context): Promise<_prisma_client_runtime.GetResult<{
1402
+ })[] | null>;
1403
+ declare function updateReadyState(args: any, ctx: Context): Promise<{
1421
1404
  id: string;
1422
1405
  number: number;
1423
1406
  name: string;
@@ -1439,7 +1422,7 @@ declare function updateReadyState(args: any, ctx: Context): Promise<_prisma_clie
1439
1422
  gameId: number;
1440
1423
  createdAt: Date;
1441
1424
  updatedAt: Date;
1442
- }, unknown> & {}>;
1425
+ }>;
1443
1426
  declare function addCountdown(args: any, ctx: Context): Promise<true | null>;
1444
1427
 
1445
1428
  declare const PlayService_addCountdown: typeof addCountdown;