@gbl-uzh/platform 0.4.11 → 0.4.13

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,29 +248,30 @@ 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;
266
+ countdownExpiresAt: Date | null;
267
267
  periodId: number;
268
268
  periodIx: number;
269
269
  gameId: number;
270
270
  nextSegmentId: number | null;
271
271
  createdAt: Date;
272
272
  updatedAt: Date;
273
- }, unknown> & {})[];
274
- } & _prisma_client_runtime.GetResult<{
273
+ })[];
274
+ } & {
275
275
  id: number;
276
276
  index: number;
277
277
  facts: DB.Prisma.JsonValue;
@@ -281,7 +281,7 @@ declare function addGamePeriod<TFacts>({ gameId, facts }: AddGamePeriodArgs<TFac
281
281
  gameId: number;
282
282
  createdAt: Date;
283
283
  updatedAt: Date;
284
- }, unknown> & {}) | null>;
284
+ }) | null>;
285
285
  interface AddPeriodSegmentArgs<TFacts> {
286
286
  gameId: number;
287
287
  periodIx: number;
@@ -290,7 +290,7 @@ interface AddPeriodSegmentArgs<TFacts> {
290
290
  storyElements?: string[];
291
291
  }
292
292
  declare function addPeriodSegment<TFacts>({ gameId, periodIx, facts, learningElements, storyElements, }: AddPeriodSegmentArgs<TFacts>, ctx: Context$1, { schema, reducers }: CtxWithFactsAndSchema<TFacts, PrismaClient>): Promise<({
293
- learningElements: (_prisma_client_runtime.GetResult<{
293
+ learningElements: {
294
294
  id: string;
295
295
  title: string;
296
296
  question: string;
@@ -299,45 +299,47 @@ declare function addPeriodSegment<TFacts>({ gameId, periodIx, facts, learningEle
299
299
  reward: DB.Prisma.JsonValue;
300
300
  createdAt: Date;
301
301
  updatedAt: Date;
302
- }, unknown> & {})[];
303
- storyElements: (_prisma_client_runtime.GetResult<{
302
+ }[];
303
+ storyElements: {
304
304
  id: string;
305
305
  title: string;
306
- type: DB.StoryElementType;
306
+ type: DB.$Enums.StoryElementType;
307
307
  content: string | null;
308
308
  contentRole: DB.Prisma.JsonValue;
309
309
  reward: DB.Prisma.JsonValue;
310
310
  createdAt: Date;
311
311
  updatedAt: Date;
312
- }, unknown> & {})[];
313
- } & _prisma_client_runtime.GetResult<{
312
+ }[];
313
+ } & {
314
314
  id: number;
315
315
  index: number;
316
316
  facts: DB.Prisma.JsonValue;
317
+ countdownExpiresAt: Date | null;
317
318
  periodId: number;
318
319
  periodIx: number;
319
320
  gameId: number;
320
321
  nextSegmentId: number | null;
321
322
  createdAt: Date;
322
323
  updatedAt: Date;
323
- }, unknown> & {}) | null>;
324
+ }) | null>;
324
325
  interface ActivateNextPeriodArgs {
325
326
  gameId: number;
326
327
  }
327
328
  declare function activateNextPeriod({ gameId }: ActivateNextPeriodArgs, ctx: Context$1, { reducers }: CtxWithFacts<any, PrismaClient>): Promise<[{
328
329
  periods: ({
329
- segments: (_prisma_client_runtime.GetResult<{
330
+ segments: {
330
331
  id: number;
331
332
  index: number;
332
333
  facts: DB.Prisma.JsonValue;
334
+ countdownExpiresAt: Date | null;
333
335
  periodId: number;
334
336
  periodIx: number;
335
337
  gameId: number;
336
338
  nextSegmentId: number | null;
337
339
  createdAt: Date;
338
340
  updatedAt: Date;
339
- }, unknown> & {})[];
340
- } & _prisma_client_runtime.GetResult<{
341
+ }[];
342
+ } & {
341
343
  id: number;
342
344
  index: number;
343
345
  facts: DB.Prisma.JsonValue;
@@ -347,17 +349,17 @@ declare function activateNextPeriod({ gameId }: ActivateNextPeriodArgs, ctx: Con
347
349
  gameId: number;
348
350
  createdAt: Date;
349
351
  updatedAt: Date;
350
- }, unknown> & {})[];
351
- } & _prisma_client_runtime.GetResult<{
352
+ })[];
353
+ } & {
352
354
  id: number;
353
- status: DB.GameStatus;
355
+ status: DB.$Enums.GameStatus;
354
356
  name: string;
355
357
  activePeriodIx: number;
356
358
  activePeriodId: number | null;
357
359
  ownerId: string;
358
360
  createdAt: Date;
359
361
  updatedAt: Date;
360
- }, unknown> & {}, _prisma_client_runtime.GetResult<{
362
+ }, {
361
363
  id: number;
362
364
  index: number;
363
365
  facts: DB.Prisma.JsonValue;
@@ -367,35 +369,12 @@ declare function activateNextPeriod({ gameId }: ActivateNextPeriodArgs, ctx: Con
367
369
  gameId: number;
368
370
  createdAt: Date;
369
371
  updatedAt: Date;
370
- }, unknown> & {}, ...any[]] | null>;
372
+ }, ...any[]] | null>;
371
373
  interface ActivateSegmentArgs {
372
374
  gameId: number;
373
375
  }
374
376
  declare function activateNextSegment({ gameId }: ActivateSegmentArgs, ctx: Context$1, { reducers }: CtxWithFacts<any, PrismaClient>): Promise<[{
375
- periods: ({
376
- segments: (_prisma_client_runtime.GetResult<{
377
- id: number;
378
- index: number;
379
- facts: DB.Prisma.JsonValue;
380
- periodId: number;
381
- periodIx: number;
382
- gameId: number;
383
- nextSegmentId: number | null;
384
- createdAt: Date;
385
- updatedAt: Date;
386
- }, unknown> & {})[];
387
- } & _prisma_client_runtime.GetResult<{
388
- id: number;
389
- index: number;
390
- facts: DB.Prisma.JsonValue;
391
- activeSegmentIx: number;
392
- activeSegmentId: number | null;
393
- nextPeriodId: number | null;
394
- gameId: number;
395
- createdAt: Date;
396
- updatedAt: Date;
397
- }, unknown> & {})[];
398
- players: (_prisma_client_runtime.GetResult<{
377
+ players: {
399
378
  id: string;
400
379
  number: number;
401
380
  name: string;
@@ -417,17 +396,41 @@ declare function activateNextSegment({ gameId }: ActivateSegmentArgs, ctx: Conte
417
396
  gameId: number;
418
397
  createdAt: Date;
419
398
  updatedAt: Date;
420
- }, unknown> & {})[];
421
- } & _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
+ } & {
422
425
  id: number;
423
- status: DB.GameStatus;
426
+ status: DB.$Enums.GameStatus;
424
427
  name: string;
425
428
  activePeriodIx: number;
426
429
  activePeriodId: number | null;
427
430
  ownerId: string;
428
431
  createdAt: Date;
429
432
  updatedAt: Date;
430
- }, unknown> & {}, _prisma_client_runtime.GetResult<{
433
+ }, {
431
434
  id: number;
432
435
  index: number;
433
436
  facts: DB.Prisma.JsonValue;
@@ -437,41 +440,19 @@ declare function activateNextSegment({ gameId }: ActivateSegmentArgs, ctx: Conte
437
440
  gameId: number;
438
441
  createdAt: Date;
439
442
  updatedAt: Date;
440
- }, unknown> & {}, _prisma_client_runtime.GetResult<{
443
+ }, {
441
444
  id: number;
442
445
  index: number;
443
446
  facts: DB.Prisma.JsonValue;
447
+ countdownExpiresAt: Date | null;
444
448
  periodId: number;
445
449
  periodIx: number;
446
450
  gameId: number;
447
451
  nextSegmentId: number | null;
448
452
  createdAt: Date;
449
453
  updatedAt: Date;
450
- }, unknown> & {}, ...any[]] | [{
451
- periods: ({
452
- segments: (_prisma_client_runtime.GetResult<{
453
- id: number;
454
- index: number;
455
- facts: DB.Prisma.JsonValue;
456
- periodId: number;
457
- periodIx: number;
458
- gameId: number;
459
- nextSegmentId: number | null;
460
- createdAt: Date;
461
- updatedAt: Date;
462
- }, unknown> & {})[];
463
- } & _prisma_client_runtime.GetResult<{
464
- id: number;
465
- index: number;
466
- facts: DB.Prisma.JsonValue;
467
- activeSegmentIx: number;
468
- activeSegmentId: number | null;
469
- nextPeriodId: number | null;
470
- gameId: number;
471
- createdAt: Date;
472
- updatedAt: Date;
473
- }, unknown> & {})[];
474
- players: (_prisma_client_runtime.GetResult<{
454
+ }, ...any[]] | [{
455
+ players: {
475
456
  id: string;
476
457
  number: number;
477
458
  name: string;
@@ -493,20 +474,44 @@ declare function activateNextSegment({ gameId }: ActivateSegmentArgs, ctx: Conte
493
474
  gameId: number;
494
475
  createdAt: Date;
495
476
  updatedAt: Date;
496
- }, unknown> & {})[];
497
- } & _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
+ } & {
498
503
  id: number;
499
- status: DB.GameStatus;
504
+ status: DB.$Enums.GameStatus;
500
505
  name: string;
501
506
  activePeriodIx: number;
502
507
  activePeriodId: number | null;
503
508
  ownerId: string;
504
509
  createdAt: Date;
505
510
  updatedAt: Date;
506
- }, unknown> & {}, {
507
- results: (_prisma_client_runtime.GetResult<{
511
+ }, {
512
+ results: {
508
513
  id: number;
509
- type: DB.PlayerResultType;
514
+ type: DB.$Enums.PlayerResultType;
510
515
  facts: DB.Prisma.JsonValue;
511
516
  playerId: string;
512
517
  gameId: number;
@@ -516,18 +521,19 @@ declare function activateNextSegment({ gameId }: ActivateSegmentArgs, ctx: Conte
516
521
  segmentIx: number | null;
517
522
  createdAt: Date;
518
523
  updatedAt: Date;
519
- }, unknown> & {})[];
520
- } & _prisma_client_runtime.GetResult<{
524
+ }[];
525
+ } & {
521
526
  id: number;
522
527
  index: number;
523
528
  facts: DB.Prisma.JsonValue;
529
+ countdownExpiresAt: Date | null;
524
530
  periodId: number;
525
531
  periodIx: number;
526
532
  gameId: number;
527
533
  nextSegmentId: number | null;
528
534
  createdAt: Date;
529
535
  updatedAt: Date;
530
- }, unknown> & {}, DB.Prisma.BatchPayload, ...any[]] | null>;
536
+ }, DB.Prisma.BatchPayload, ...any[]] | null>;
531
537
  declare const PlayerFactsSchema: yup.ObjectSchema<{
532
538
  location: string;
533
539
  }, yup.AnyObject, {
@@ -542,26 +548,26 @@ interface UpdatePlayerDataArgs {
542
548
  facts: PlayerFacts;
543
549
  }
544
550
  declare function updatePlayerData({ name, avatar, color, facts }: UpdatePlayerDataArgs, ctx: Context$1): Promise<({
545
- level: _prisma_client_runtime.GetResult<{
551
+ level: {
546
552
  id: number;
547
553
  index: number;
548
554
  description: string;
549
555
  image: string;
550
556
  requiredXP: number;
551
- }, unknown> & {};
557
+ };
552
558
  achievements: ({
553
- achievement: _prisma_client_runtime.GetResult<{
559
+ achievement: {
554
560
  id: string;
555
561
  name: string;
556
562
  description: string;
557
563
  image: string | null;
558
564
  onEventId: string;
559
- when: DB.AchievementFrequency;
565
+ when: DB.$Enums.AchievementFrequency;
560
566
  reward: DB.Prisma.JsonValue;
561
567
  createdAt: Date;
562
568
  updatedAt: Date;
563
- }, unknown> & {};
564
- } & _prisma_client_runtime.GetResult<{
569
+ };
570
+ } & {
565
571
  id: number;
566
572
  count: number;
567
573
  achievementId: string;
@@ -570,8 +576,8 @@ declare function updatePlayerData({ name, avatar, color, facts }: UpdatePlayerDa
570
576
  gameId: number;
571
577
  createdAt: Date;
572
578
  updatedAt: Date;
573
- }, unknown> & {})[];
574
- } & _prisma_client_runtime.GetResult<{
579
+ })[];
580
+ } & {
575
581
  id: string;
576
582
  number: number;
577
583
  name: string;
@@ -593,27 +599,27 @@ declare function updatePlayerData({ name, avatar, color, facts }: UpdatePlayerDa
593
599
  gameId: number;
594
600
  createdAt: Date;
595
601
  updatedAt: Date;
596
- }, unknown> & {}) | null>;
597
- 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<{
598
604
  id: number;
599
- status: DB.GameStatus;
605
+ status: DB.$Enums.GameStatus;
600
606
  name: string;
601
607
  activePeriodIx: number;
602
608
  activePeriodId: number | null;
603
609
  ownerId: string;
604
610
  createdAt: Date;
605
611
  updatedAt: Date;
606
- }, unknown> & {})[]>;
612
+ }[]>;
607
613
  declare function getGame(args: any, ctx: Context$1): Promise<({
608
614
  players: ({
609
- level: _prisma_client_runtime.GetResult<{
615
+ level: {
610
616
  id: number;
611
617
  index: number;
612
618
  description: string;
613
619
  image: string;
614
620
  requiredXP: number;
615
- }, unknown> & {};
616
- achievements: (_prisma_client_runtime.GetResult<{
621
+ };
622
+ achievements: {
617
623
  id: number;
618
624
  count: number;
619
625
  achievementId: string;
@@ -622,8 +628,8 @@ declare function getGame(args: any, ctx: Context$1): Promise<({
622
628
  gameId: number;
623
629
  createdAt: Date;
624
630
  updatedAt: Date;
625
- }, unknown> & {})[];
626
- } & _prisma_client_runtime.GetResult<{
631
+ }[];
632
+ } & {
627
633
  id: string;
628
634
  number: number;
629
635
  name: string;
@@ -645,10 +651,10 @@ declare function getGame(args: any, ctx: Context$1): Promise<({
645
651
  gameId: number;
646
652
  createdAt: Date;
647
653
  updatedAt: Date;
648
- }, unknown> & {})[];
654
+ })[];
649
655
  periods: ({
650
656
  segments: ({
651
- learningElements: (_prisma_client_runtime.GetResult<{
657
+ learningElements: {
652
658
  id: string;
653
659
  title: string;
654
660
  question: string;
@@ -657,29 +663,30 @@ declare function getGame(args: any, ctx: Context$1): Promise<({
657
663
  reward: DB.Prisma.JsonValue;
658
664
  createdAt: Date;
659
665
  updatedAt: Date;
660
- }, unknown> & {})[];
661
- storyElements: (_prisma_client_runtime.GetResult<{
666
+ }[];
667
+ storyElements: {
662
668
  id: string;
663
669
  title: string;
664
- type: DB.StoryElementType;
670
+ type: DB.$Enums.StoryElementType;
665
671
  content: string | null;
666
672
  contentRole: DB.Prisma.JsonValue;
667
673
  reward: DB.Prisma.JsonValue;
668
674
  createdAt: Date;
669
675
  updatedAt: Date;
670
- }, unknown> & {})[];
671
- } & _prisma_client_runtime.GetResult<{
676
+ }[];
677
+ } & {
672
678
  id: number;
673
679
  index: number;
674
680
  facts: DB.Prisma.JsonValue;
681
+ countdownExpiresAt: Date | null;
675
682
  periodId: number;
676
683
  periodIx: number;
677
684
  gameId: number;
678
685
  nextSegmentId: number | null;
679
686
  createdAt: Date;
680
687
  updatedAt: Date;
681
- }, unknown> & {})[];
682
- } & _prisma_client_runtime.GetResult<{
688
+ })[];
689
+ } & {
683
690
  id: number;
684
691
  index: number;
685
692
  facts: DB.Prisma.JsonValue;
@@ -689,31 +696,33 @@ declare function getGame(args: any, ctx: Context$1): Promise<({
689
696
  gameId: number;
690
697
  createdAt: Date;
691
698
  updatedAt: Date;
692
- }, unknown> & {})[];
699
+ })[];
693
700
  activePeriod: ({
694
- segments: (_prisma_client_runtime.GetResult<{
701
+ segments: {
695
702
  id: number;
696
703
  index: number;
697
704
  facts: DB.Prisma.JsonValue;
705
+ countdownExpiresAt: Date | null;
698
706
  periodId: number;
699
707
  periodIx: number;
700
708
  gameId: number;
701
709
  nextSegmentId: number | null;
702
710
  createdAt: Date;
703
711
  updatedAt: Date;
704
- }, unknown> & {})[];
705
- activeSegment: (_prisma_client_runtime.GetResult<{
712
+ }[];
713
+ activeSegment: {
706
714
  id: number;
707
715
  index: number;
708
716
  facts: DB.Prisma.JsonValue;
717
+ countdownExpiresAt: Date | null;
709
718
  periodId: number;
710
719
  periodIx: number;
711
720
  gameId: number;
712
721
  nextSegmentId: number | null;
713
722
  createdAt: Date;
714
723
  updatedAt: Date;
715
- }, unknown> & {}) | null;
716
- } & _prisma_client_runtime.GetResult<{
724
+ } | null;
725
+ } & {
717
726
  id: number;
718
727
  index: number;
719
728
  facts: DB.Prisma.JsonValue;
@@ -723,19 +732,19 @@ declare function getGame(args: any, ctx: Context$1): Promise<({
723
732
  gameId: number;
724
733
  createdAt: Date;
725
734
  updatedAt: Date;
726
- }, unknown> & {}) | null;
727
- } & _prisma_client_runtime.GetResult<{
735
+ }) | null;
736
+ } & {
728
737
  id: number;
729
- status: DB.GameStatus;
738
+ status: DB.$Enums.GameStatus;
730
739
  name: string;
731
740
  activePeriodIx: number;
732
741
  activePeriodId: number | null;
733
742
  ownerId: string;
734
743
  createdAt: Date;
735
744
  updatedAt: Date;
736
- }, unknown> & {}) | null>;
745
+ }) | null>;
737
746
  declare function getGameFromContext(ctx: Context$1): Promise<({
738
- activePeriod: (_prisma_client_runtime.GetResult<{
747
+ activePeriod: {
739
748
  id: number;
740
749
  index: number;
741
750
  facts: DB.Prisma.JsonValue;
@@ -745,26 +754,26 @@ declare function getGameFromContext(ctx: Context$1): Promise<({
745
754
  gameId: number;
746
755
  createdAt: Date;
747
756
  updatedAt: Date;
748
- }, unknown> & {}) | null;
749
- } & _prisma_client_runtime.GetResult<{
757
+ } | null;
758
+ } & {
750
759
  id: number;
751
- status: DB.GameStatus;
760
+ status: DB.$Enums.GameStatus;
752
761
  name: string;
753
762
  activePeriodIx: number;
754
763
  activePeriodId: number | null;
755
764
  ownerId: string;
756
765
  createdAt: Date;
757
766
  updatedAt: Date;
758
- }, unknown> & {}) | null>;
767
+ }) | null>;
759
768
  declare function getLearningElements(args: any, ctx: Context$1): Promise<({
760
- options: (_prisma_client_runtime.GetResult<{
769
+ options: {
761
770
  id: number;
762
771
  content: string;
763
772
  correct: boolean;
764
773
  feedback: string | null;
765
774
  learningElementSlug: string;
766
- }, unknown> & {})[];
767
- } & _prisma_client_runtime.GetResult<{
775
+ }[];
776
+ } & {
768
777
  id: string;
769
778
  title: string;
770
779
  question: string;
@@ -773,7 +782,7 @@ declare function getLearningElements(args: any, ctx: Context$1): Promise<({
773
782
  reward: DB.Prisma.JsonValue;
774
783
  createdAt: Date;
775
784
  updatedAt: Date;
776
- }, unknown> & {})[]>;
785
+ })[]>;
777
786
  declare function computePeriodStartResults({ results, players, activePeriodIx, gameId, periodFacts }: {
778
787
  results: any;
779
788
  players: any;
@@ -859,7 +868,7 @@ interface PerformActionArgs<ActionTypes> {
859
868
  facts: any;
860
869
  }
861
870
  declare function performAction<ActionTypes>(args: PerformActionArgs<ActionTypes>, ctx: Context, { reducers }: any): Promise<({
862
- period: _prisma_client_runtime.GetResult<{
871
+ period: {
863
872
  id: number;
864
873
  index: number;
865
874
  facts: DB.Prisma.JsonValue;
@@ -869,10 +878,10 @@ declare function performAction<ActionTypes>(args: PerformActionArgs<ActionTypes>
869
878
  gameId: number;
870
879
  createdAt: Date;
871
880
  updatedAt: Date;
872
- }, unknown> & {};
873
- } & _prisma_client_runtime.GetResult<{
881
+ };
882
+ } & {
874
883
  id: number;
875
- type: DB.PlayerResultType;
884
+ type: DB.$Enums.PlayerResultType;
876
885
  facts: DB.Prisma.JsonValue;
877
886
  playerId: string;
878
887
  gameId: number;
@@ -882,14 +891,14 @@ declare function performAction<ActionTypes>(args: PerformActionArgs<ActionTypes>
882
891
  segmentIx: number | null;
883
892
  createdAt: Date;
884
893
  updatedAt: Date;
885
- }, unknown> & {}) | null>;
894
+ }) | null>;
886
895
  interface SaveDecisionsArgs {
887
896
  decisionType: DB.PlayerDecisionType;
888
897
  facts: any;
889
898
  }
890
- declare function saveDecisions(args: SaveDecisionsArgs, ctx: Context): Promise<(_prisma_client_runtime.GetResult<{
899
+ declare function saveDecisions(args: SaveDecisionsArgs, ctx: Context): Promise<{
891
900
  id: number;
892
- type: DB.PlayerDecisionType;
901
+ type: DB.$Enums.PlayerDecisionType;
893
902
  facts: DB.Prisma.JsonValue;
894
903
  gameId: number;
895
904
  playerId: string;
@@ -897,16 +906,16 @@ declare function saveDecisions(args: SaveDecisionsArgs, ctx: Context): Promise<(
897
906
  periodIx: number;
898
907
  createdAt: Date;
899
908
  updatedAt: Date;
900
- }, unknown> & {}) | null>;
909
+ } | null>;
901
910
  interface GetPlayerResultArgs {
902
911
  gameId: number;
903
912
  playerId: string;
904
913
  }
905
914
  declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promise<{
906
915
  currentGame: {
907
- activePeriod: ({
908
- activeSegment: ({
909
- learningElements: (_prisma_client_runtime.GetResult<{
916
+ periods: ({
917
+ segments: ({
918
+ learningElements: {
910
919
  id: string;
911
920
  title: string;
912
921
  question: string;
@@ -915,30 +924,43 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
915
924
  reward: DB.Prisma.JsonValue;
916
925
  createdAt: Date;
917
926
  updatedAt: Date;
918
- }, unknown> & {})[];
919
- storyElements: (_prisma_client_runtime.GetResult<{
927
+ }[];
928
+ storyElements: {
920
929
  id: string;
921
930
  title: string;
922
- type: DB.StoryElementType;
931
+ type: DB.$Enums.StoryElementType;
923
932
  content: string | null;
924
933
  contentRole: DB.Prisma.JsonValue;
925
934
  reward: DB.Prisma.JsonValue;
926
935
  createdAt: Date;
927
936
  updatedAt: Date;
928
- }, unknown> & {})[];
929
- } & _prisma_client_runtime.GetResult<{
937
+ }[];
938
+ } & {
930
939
  id: number;
931
940
  index: number;
932
941
  facts: DB.Prisma.JsonValue;
942
+ countdownExpiresAt: Date | null;
933
943
  periodId: number;
934
944
  periodIx: number;
935
945
  gameId: number;
936
946
  nextSegmentId: number | null;
937
947
  createdAt: Date;
938
948
  updatedAt: Date;
939
- }, unknown> & {}) | null;
949
+ })[];
950
+ } & {
951
+ id: number;
952
+ index: number;
953
+ facts: DB.Prisma.JsonValue;
954
+ activeSegmentIx: number;
955
+ activeSegmentId: number | null;
956
+ nextPeriodId: number | null;
957
+ gameId: number;
958
+ createdAt: Date;
959
+ updatedAt: Date;
960
+ })[];
961
+ activePeriod: ({
940
962
  segments: ({
941
- learningElements: (_prisma_client_runtime.GetResult<{
963
+ learningElements: {
942
964
  id: string;
943
965
  title: string;
944
966
  question: string;
@@ -947,42 +969,31 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
947
969
  reward: DB.Prisma.JsonValue;
948
970
  createdAt: Date;
949
971
  updatedAt: Date;
950
- }, unknown> & {})[];
951
- storyElements: (_prisma_client_runtime.GetResult<{
972
+ }[];
973
+ storyElements: {
952
974
  id: string;
953
975
  title: string;
954
- type: DB.StoryElementType;
976
+ type: DB.$Enums.StoryElementType;
955
977
  content: string | null;
956
978
  contentRole: DB.Prisma.JsonValue;
957
979
  reward: DB.Prisma.JsonValue;
958
980
  createdAt: Date;
959
981
  updatedAt: Date;
960
- }, unknown> & {})[];
961
- } & _prisma_client_runtime.GetResult<{
982
+ }[];
983
+ } & {
962
984
  id: number;
963
985
  index: number;
964
986
  facts: DB.Prisma.JsonValue;
987
+ countdownExpiresAt: Date | null;
965
988
  periodId: number;
966
989
  periodIx: number;
967
990
  gameId: number;
968
991
  nextSegmentId: number | null;
969
992
  createdAt: Date;
970
993
  updatedAt: Date;
971
- }, unknown> & {})[];
972
- } & _prisma_client_runtime.GetResult<{
973
- id: number;
974
- index: number;
975
- facts: DB.Prisma.JsonValue;
976
- activeSegmentIx: number;
977
- activeSegmentId: number | null;
978
- nextPeriodId: number | null;
979
- gameId: number;
980
- createdAt: Date;
981
- updatedAt: Date;
982
- }, unknown> & {}) | null;
983
- periods: ({
984
- segments: ({
985
- learningElements: (_prisma_client_runtime.GetResult<{
994
+ })[];
995
+ activeSegment: ({
996
+ learningElements: {
986
997
  id: string;
987
998
  title: string;
988
999
  question: string;
@@ -991,29 +1002,30 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
991
1002
  reward: DB.Prisma.JsonValue;
992
1003
  createdAt: Date;
993
1004
  updatedAt: Date;
994
- }, unknown> & {})[];
995
- storyElements: (_prisma_client_runtime.GetResult<{
1005
+ }[];
1006
+ storyElements: {
996
1007
  id: string;
997
1008
  title: string;
998
- type: DB.StoryElementType;
1009
+ type: DB.$Enums.StoryElementType;
999
1010
  content: string | null;
1000
1011
  contentRole: DB.Prisma.JsonValue;
1001
1012
  reward: DB.Prisma.JsonValue;
1002
1013
  createdAt: Date;
1003
1014
  updatedAt: Date;
1004
- }, unknown> & {})[];
1005
- } & _prisma_client_runtime.GetResult<{
1015
+ }[];
1016
+ } & {
1006
1017
  id: number;
1007
1018
  index: number;
1008
1019
  facts: DB.Prisma.JsonValue;
1020
+ countdownExpiresAt: Date | null;
1009
1021
  periodId: number;
1010
1022
  periodIx: number;
1011
1023
  gameId: number;
1012
1024
  nextSegmentId: number | null;
1013
1025
  createdAt: Date;
1014
1026
  updatedAt: Date;
1015
- }, unknown> & {})[];
1016
- } & _prisma_client_runtime.GetResult<{
1027
+ }) | null;
1028
+ } & {
1017
1029
  id: number;
1018
1030
  index: number;
1019
1031
  facts: DB.Prisma.JsonValue;
@@ -1023,31 +1035,20 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
1023
1035
  gameId: number;
1024
1036
  createdAt: Date;
1025
1037
  updatedAt: Date;
1026
- }, unknown> & {})[];
1027
- } & _prisma_client_runtime.GetResult<{
1038
+ }) | null;
1039
+ } & {
1028
1040
  id: number;
1029
- status: DB.GameStatus;
1041
+ status: DB.$Enums.GameStatus;
1030
1042
  name: string;
1031
1043
  activePeriodIx: number;
1032
1044
  activePeriodId: number | null;
1033
1045
  ownerId: string;
1034
1046
  createdAt: Date;
1035
1047
  updatedAt: Date;
1036
- }, unknown> & {};
1048
+ };
1037
1049
  playerResult: ({
1038
- period: _prisma_client_runtime.GetResult<{
1039
- id: number;
1040
- index: number;
1041
- facts: DB.Prisma.JsonValue;
1042
- activeSegmentIx: number;
1043
- activeSegmentId: number | null;
1044
- nextPeriodId: number | null;
1045
- gameId: number;
1046
- createdAt: Date;
1047
- updatedAt: Date;
1048
- }, unknown> & {};
1049
1050
  player: {
1050
- completedLearningElements: (_prisma_client_runtime.GetResult<{
1051
+ completedLearningElements: {
1051
1052
  id: string;
1052
1053
  title: string;
1053
1054
  question: string;
@@ -1056,18 +1057,18 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
1056
1057
  reward: DB.Prisma.JsonValue;
1057
1058
  createdAt: Date;
1058
1059
  updatedAt: Date;
1059
- }, unknown> & {})[];
1060
- visitedStoryElements: (_prisma_client_runtime.GetResult<{
1060
+ }[];
1061
+ visitedStoryElements: {
1061
1062
  id: string;
1062
1063
  title: string;
1063
- type: DB.StoryElementType;
1064
+ type: DB.$Enums.StoryElementType;
1064
1065
  content: string | null;
1065
1066
  contentRole: DB.Prisma.JsonValue;
1066
1067
  reward: DB.Prisma.JsonValue;
1067
1068
  createdAt: Date;
1068
1069
  updatedAt: Date;
1069
- }, unknown> & {})[];
1070
- } & _prisma_client_runtime.GetResult<{
1070
+ }[];
1071
+ } & {
1071
1072
  id: string;
1072
1073
  number: number;
1073
1074
  name: string;
@@ -1089,10 +1090,21 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
1089
1090
  gameId: number;
1090
1091
  createdAt: Date;
1091
1092
  updatedAt: Date;
1092
- }, unknown> & {};
1093
- } & _prisma_client_runtime.GetResult<{
1093
+ };
1094
+ period: {
1095
+ id: number;
1096
+ index: number;
1097
+ facts: DB.Prisma.JsonValue;
1098
+ activeSegmentIx: number;
1099
+ activeSegmentId: number | null;
1100
+ nextPeriodId: number | null;
1101
+ gameId: number;
1102
+ createdAt: Date;
1103
+ updatedAt: Date;
1104
+ };
1105
+ } & {
1094
1106
  id: number;
1095
- type: DB.PlayerResultType;
1107
+ type: DB.$Enums.PlayerResultType;
1096
1108
  facts: DB.Prisma.JsonValue;
1097
1109
  playerId: string;
1098
1110
  gameId: number;
@@ -1102,9 +1114,9 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
1102
1114
  segmentIx: number | null;
1103
1115
  createdAt: Date;
1104
1116
  updatedAt: Date;
1105
- }, unknown> & {}) | null;
1117
+ }) | null;
1106
1118
  previousResults: DB.Prisma.PrismaPromise<({
1107
- period: _prisma_client_runtime.GetResult<{
1119
+ period: {
1108
1120
  id: number;
1109
1121
  index: number;
1110
1122
  facts: DB.Prisma.JsonValue;
@@ -1114,21 +1126,22 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
1114
1126
  gameId: number;
1115
1127
  createdAt: Date;
1116
1128
  updatedAt: Date;
1117
- }, unknown> & {};
1118
- segment: (_prisma_client_runtime.GetResult<{
1129
+ };
1130
+ segment: {
1119
1131
  id: number;
1120
1132
  index: number;
1121
1133
  facts: DB.Prisma.JsonValue;
1134
+ countdownExpiresAt: Date | null;
1122
1135
  periodId: number;
1123
1136
  periodIx: number;
1124
1137
  gameId: number;
1125
1138
  nextSegmentId: number | null;
1126
1139
  createdAt: Date;
1127
1140
  updatedAt: Date;
1128
- }, unknown> & {}) | null;
1129
- } & _prisma_client_runtime.GetResult<{
1141
+ } | null;
1142
+ } & {
1130
1143
  id: number;
1131
- type: DB.PlayerResultType;
1144
+ type: DB.$Enums.PlayerResultType;
1132
1145
  facts: DB.Prisma.JsonValue;
1133
1146
  playerId: string;
1134
1147
  gameId: number;
@@ -1138,8 +1151,8 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
1138
1151
  segmentIx: number | null;
1139
1152
  createdAt: Date;
1140
1153
  updatedAt: Date;
1141
- }, unknown> & {})[]>;
1142
- transactions: DB.Prisma.PrismaPromise<(_prisma_client_runtime.GetResult<{
1154
+ })[]>;
1155
+ transactions: DB.Prisma.PrismaPromise<{
1143
1156
  id: number;
1144
1157
  type: string;
1145
1158
  facts: DB.Prisma.JsonValue;
@@ -1150,32 +1163,32 @@ declare function getPlayerResult(args: GetPlayerResultArgs, ctx: Context): Promi
1150
1163
  segmentId: number | null;
1151
1164
  segmentIx: number | null;
1152
1165
  createdAt: Date;
1153
- }, unknown> & {})[]>;
1166
+ }[]>;
1154
1167
  } | null>;
1155
1168
  interface GetPlayerDataArgs {
1156
1169
  playerId: string;
1157
1170
  }
1158
1171
  declare function getPlayerData(args: GetPlayerDataArgs, ctx: Context): Promise<({
1159
- level: _prisma_client_runtime.GetResult<{
1172
+ level: {
1160
1173
  id: number;
1161
1174
  index: number;
1162
1175
  description: string;
1163
1176
  image: string;
1164
1177
  requiredXP: number;
1165
- }, unknown> & {};
1178
+ };
1166
1179
  achievements: ({
1167
- achievement: _prisma_client_runtime.GetResult<{
1180
+ achievement: {
1168
1181
  id: string;
1169
1182
  name: string;
1170
1183
  description: string;
1171
1184
  image: string | null;
1172
1185
  onEventId: string;
1173
- when: DB.AchievementFrequency;
1186
+ when: DB.$Enums.AchievementFrequency;
1174
1187
  reward: DB.Prisma.JsonValue;
1175
1188
  createdAt: Date;
1176
1189
  updatedAt: Date;
1177
- }, unknown> & {};
1178
- } & _prisma_client_runtime.GetResult<{
1190
+ };
1191
+ } & {
1179
1192
  id: number;
1180
1193
  count: number;
1181
1194
  achievementId: string;
@@ -1184,8 +1197,8 @@ declare function getPlayerData(args: GetPlayerDataArgs, ctx: Context): Promise<(
1184
1197
  gameId: number;
1185
1198
  createdAt: Date;
1186
1199
  updatedAt: Date;
1187
- }, unknown> & {})[];
1188
- } & _prisma_client_runtime.GetResult<{
1200
+ })[];
1201
+ } & {
1189
1202
  id: string;
1190
1203
  number: number;
1191
1204
  name: string;
@@ -1207,7 +1220,7 @@ declare function getPlayerData(args: GetPlayerDataArgs, ctx: Context): Promise<(
1207
1220
  gameId: number;
1208
1221
  createdAt: Date;
1209
1222
  updatedAt: Date;
1210
- }, unknown> & {}) | null>;
1223
+ }) | null>;
1211
1224
  interface GetLearningElementArgs {
1212
1225
  id: string;
1213
1226
  }
@@ -1215,20 +1228,20 @@ declare function getLearningElement(args: GetLearningElementArgs, ctx: Context):
1215
1228
  id: string;
1216
1229
  element: {
1217
1230
  feedback: string | null;
1218
- options: (_prisma_client_runtime.GetResult<{
1231
+ options: {
1219
1232
  id: number;
1220
1233
  content: string;
1221
1234
  correct: boolean;
1222
1235
  feedback: string | null;
1223
1236
  learningElementSlug: string;
1224
- }, unknown> & {})[];
1237
+ }[];
1225
1238
  id: string;
1226
- createdAt: Date;
1227
- updatedAt: Date;
1228
1239
  title: string;
1229
1240
  question: string;
1230
1241
  motivation: string | null;
1231
1242
  reward: DB.Prisma.JsonValue;
1243
+ createdAt: Date;
1244
+ updatedAt: Date;
1232
1245
  };
1233
1246
  state: LearningElementState;
1234
1247
  solution: string | null;
@@ -1250,7 +1263,7 @@ declare function attemptLearningElement(args: AttemptLearningElementArgs, ctx: C
1250
1263
  interface MarkStoryElementArgs {
1251
1264
  elementId: string;
1252
1265
  }
1253
- declare function markStoryElement(args: MarkStoryElementArgs, ctx: Context): Promise<(_prisma_client_runtime.GetResult<{
1266
+ declare function markStoryElement(args: MarkStoryElementArgs, ctx: Context): Promise<{
1254
1267
  id: string;
1255
1268
  number: number;
1256
1269
  name: string;
@@ -1272,10 +1285,10 @@ declare function markStoryElement(args: MarkStoryElementArgs, ctx: Context): Pro
1272
1285
  gameId: number;
1273
1286
  createdAt: Date;
1274
1287
  updatedAt: Date;
1275
- }, unknown> & {}) | null>;
1288
+ } | null>;
1276
1289
  interface GetPlayerTransactionsArgs {
1277
1290
  }
1278
- declare function getPlayerTransactions(args: GetPlayerTransactionsArgs, ctx: Context): Promise<(_prisma_client_runtime.GetResult<{
1291
+ declare function getPlayerTransactions(args: GetPlayerTransactionsArgs, ctx: Context): Promise<{
1279
1292
  id: number;
1280
1293
  type: string;
1281
1294
  facts: DB.Prisma.JsonValue;
@@ -1286,20 +1299,9 @@ declare function getPlayerTransactions(args: GetPlayerTransactionsArgs, ctx: Con
1286
1299
  segmentId: number | null;
1287
1300
  segmentIx: number | null;
1288
1301
  createdAt: Date;
1289
- }, unknown> & {})[]>;
1302
+ }[]>;
1290
1303
  declare function getPlayerResults(args: any, ctx: Context): Promise<({
1291
- period: _prisma_client_runtime.GetResult<{
1292
- id: number;
1293
- index: number;
1294
- facts: DB.Prisma.JsonValue;
1295
- activeSegmentIx: number;
1296
- activeSegmentId: number | null;
1297
- nextPeriodId: number | null;
1298
- gameId: number;
1299
- createdAt: Date;
1300
- updatedAt: Date;
1301
- }, unknown> & {};
1302
- player: _prisma_client_runtime.GetResult<{
1304
+ player: {
1303
1305
  id: string;
1304
1306
  number: number;
1305
1307
  name: string;
@@ -1321,21 +1323,33 @@ declare function getPlayerResults(args: any, ctx: Context): Promise<({
1321
1323
  gameId: number;
1322
1324
  createdAt: Date;
1323
1325
  updatedAt: Date;
1324
- }, unknown> & {};
1325
- segment: (_prisma_client_runtime.GetResult<{
1326
+ };
1327
+ period: {
1328
+ id: number;
1329
+ index: number;
1330
+ facts: DB.Prisma.JsonValue;
1331
+ activeSegmentIx: number;
1332
+ activeSegmentId: number | null;
1333
+ nextPeriodId: number | null;
1334
+ gameId: number;
1335
+ createdAt: Date;
1336
+ updatedAt: Date;
1337
+ };
1338
+ segment: {
1326
1339
  id: number;
1327
1340
  index: number;
1328
1341
  facts: DB.Prisma.JsonValue;
1342
+ countdownExpiresAt: Date | null;
1329
1343
  periodId: number;
1330
1344
  periodIx: number;
1331
1345
  gameId: number;
1332
1346
  nextSegmentId: number | null;
1333
1347
  createdAt: Date;
1334
1348
  updatedAt: Date;
1335
- }, unknown> & {}) | null;
1336
- } & _prisma_client_runtime.GetResult<{
1349
+ } | null;
1350
+ } & {
1337
1351
  id: number;
1338
- type: DB.PlayerResultType;
1352
+ type: DB.$Enums.PlayerResultType;
1339
1353
  facts: DB.Prisma.JsonValue;
1340
1354
  playerId: string;
1341
1355
  gameId: number;
@@ -1345,28 +1359,17 @@ declare function getPlayerResults(args: any, ctx: Context): Promise<({
1345
1359
  segmentIx: number | null;
1346
1360
  createdAt: Date;
1347
1361
  updatedAt: Date;
1348
- }, unknown> & {})[]>;
1362
+ })[]>;
1349
1363
  declare function getPastResults(args: any, ctx: Context): Promise<({
1350
- period: _prisma_client_runtime.GetResult<{
1351
- id: number;
1352
- index: number;
1353
- facts: DB.Prisma.JsonValue;
1354
- activeSegmentIx: number;
1355
- activeSegmentId: number | null;
1356
- nextPeriodId: number | null;
1357
- gameId: number;
1358
- createdAt: Date;
1359
- updatedAt: Date;
1360
- }, unknown> & {};
1361
1364
  player: {
1362
- level: _prisma_client_runtime.GetResult<{
1365
+ level: {
1363
1366
  id: number;
1364
1367
  index: number;
1365
1368
  description: string;
1366
1369
  image: string;
1367
1370
  requiredXP: number;
1368
- }, unknown> & {};
1369
- } & _prisma_client_runtime.GetResult<{
1371
+ };
1372
+ } & {
1370
1373
  id: string;
1371
1374
  number: number;
1372
1375
  name: string;
@@ -1388,10 +1391,21 @@ declare function getPastResults(args: any, ctx: Context): Promise<({
1388
1391
  gameId: number;
1389
1392
  createdAt: Date;
1390
1393
  updatedAt: Date;
1391
- }, unknown> & {};
1392
- } & _prisma_client_runtime.GetResult<{
1394
+ };
1395
+ period: {
1396
+ id: number;
1397
+ index: number;
1398
+ facts: DB.Prisma.JsonValue;
1399
+ activeSegmentIx: number;
1400
+ activeSegmentId: number | null;
1401
+ nextPeriodId: number | null;
1402
+ gameId: number;
1403
+ createdAt: Date;
1404
+ updatedAt: Date;
1405
+ };
1406
+ } & {
1393
1407
  id: number;
1394
- type: DB.PlayerResultType;
1408
+ type: DB.$Enums.PlayerResultType;
1395
1409
  facts: DB.Prisma.JsonValue;
1396
1410
  playerId: string;
1397
1411
  gameId: number;
@@ -1401,8 +1415,8 @@ declare function getPastResults(args: any, ctx: Context): Promise<({
1401
1415
  segmentIx: number | null;
1402
1416
  createdAt: Date;
1403
1417
  updatedAt: Date;
1404
- }, unknown> & {})[] | null>;
1405
- declare function updateReadyState(args: any, ctx: Context): Promise<_prisma_client_runtime.GetResult<{
1418
+ })[] | null>;
1419
+ declare function updateReadyState(args: any, ctx: Context): Promise<{
1406
1420
  id: string;
1407
1421
  number: number;
1408
1422
  name: string;
@@ -1424,8 +1438,10 @@ declare function updateReadyState(args: any, ctx: Context): Promise<_prisma_clie
1424
1438
  gameId: number;
1425
1439
  createdAt: Date;
1426
1440
  updatedAt: Date;
1427
- }, unknown> & {}>;
1441
+ }>;
1442
+ declare function addCountdown(args: any, ctx: Context): Promise<true | null>;
1428
1443
 
1444
+ declare const PlayService_addCountdown: typeof addCountdown;
1429
1445
  declare const PlayService_attemptLearningElement: typeof attemptLearningElement;
1430
1446
  declare const PlayService_getLearningElement: typeof getLearningElement;
1431
1447
  declare const PlayService_getPastResults: typeof getPastResults;
@@ -1439,6 +1455,7 @@ declare const PlayService_saveDecisions: typeof saveDecisions;
1439
1455
  declare const PlayService_updateReadyState: typeof updateReadyState;
1440
1456
  declare namespace PlayService {
1441
1457
  export {
1458
+ PlayService_addCountdown as addCountdown,
1442
1459
  PlayService_attemptLearningElement as attemptLearningElement,
1443
1460
  PlayService_getLearningElement as getLearningElement,
1444
1461
  PlayService_getPastResults as getPastResults,