@sparted/shared-library 1.1.5 → 1.1.7
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/business/types/content.d.ts +992 -0
- package/business/types/content.js +15 -1
- package/business/types/content.js.map +1 -1
- package/business/types/index.js +7 -0
- package/business/types/index.js.map +1 -1
- package/cdn/cdn.factory.js +1 -1
- package/cdn/cdn.factory.js.map +1 -1
- package/package.json +3 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DeepPartial } from 'ts-essentials';
|
|
1
2
|
import { LanguageCode, MultilingualLabel } from './multilingual';
|
|
2
3
|
import { Image, Media } from './media';
|
|
3
4
|
import { Thematic } from './thematic';
|
|
@@ -98,3 +99,994 @@ export declare const isGameNoInteraction: (game: Game) => game is NoInteraction;
|
|
|
98
99
|
export declare const isGamePictureSpot: (game: Game) => game is PictureSpot;
|
|
99
100
|
export declare const isGameOrderingCards: (game: Game) => game is OrderingCards;
|
|
100
101
|
export declare const isGameSwipingCards: (game: Game) => game is SwipingCards;
|
|
102
|
+
export declare const isPartialGameMultipleChoiceQuestion: (game: DeepPartial<Game>) => game is {
|
|
103
|
+
type?: "mcq" | undefined;
|
|
104
|
+
gameMedia?: {
|
|
105
|
+
image?: {
|
|
106
|
+
id?: number | undefined;
|
|
107
|
+
url?: string | undefined;
|
|
108
|
+
filename?: string | undefined;
|
|
109
|
+
width?: number | undefined;
|
|
110
|
+
height?: number | undefined;
|
|
111
|
+
} | undefined;
|
|
112
|
+
video?: {
|
|
113
|
+
id?: number | undefined;
|
|
114
|
+
url?: string | undefined;
|
|
115
|
+
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
} | undefined;
|
|
118
|
+
question?: {
|
|
119
|
+
sk?: string | undefined;
|
|
120
|
+
sl?: string | undefined;
|
|
121
|
+
ar?: string | undefined;
|
|
122
|
+
lt?: string | undefined;
|
|
123
|
+
"en-US"?: string | undefined;
|
|
124
|
+
"fr-FR"?: string | undefined;
|
|
125
|
+
"es-ES"?: string | undefined;
|
|
126
|
+
"it-IT"?: string | undefined;
|
|
127
|
+
"de-DE"?: string | undefined;
|
|
128
|
+
"ru-RU"?: string | undefined;
|
|
129
|
+
"nl-NL"?: string | undefined;
|
|
130
|
+
"pt-BR"?: string | undefined;
|
|
131
|
+
"zh-CN"?: string | undefined;
|
|
132
|
+
"he-IL"?: string | undefined;
|
|
133
|
+
"cs-CZ"?: string | undefined;
|
|
134
|
+
"ko-KR"?: string | undefined;
|
|
135
|
+
"ja-JP"?: string | undefined;
|
|
136
|
+
"zh-TW"?: string | undefined;
|
|
137
|
+
"bg-BG"?: string | undefined;
|
|
138
|
+
"hr-HR"?: string | undefined;
|
|
139
|
+
"da-DK"?: string | undefined;
|
|
140
|
+
"fi-FI"?: string | undefined;
|
|
141
|
+
"el-GR"?: string | undefined;
|
|
142
|
+
"hu-HU"?: string | undefined;
|
|
143
|
+
"nb-NO"?: string | undefined;
|
|
144
|
+
"pl-PL"?: string | undefined;
|
|
145
|
+
"pt-PT"?: string | undefined;
|
|
146
|
+
"ro-RO"?: string | undefined;
|
|
147
|
+
"sv-SE"?: string | undefined;
|
|
148
|
+
"tr-TR"?: string | undefined;
|
|
149
|
+
"et-EE"?: string | undefined;
|
|
150
|
+
"id-ID"?: string | undefined;
|
|
151
|
+
"lv-LV"?: string | undefined;
|
|
152
|
+
"th-TH"?: string | undefined;
|
|
153
|
+
} | undefined;
|
|
154
|
+
explanation?: {
|
|
155
|
+
sk?: string | undefined;
|
|
156
|
+
sl?: string | undefined;
|
|
157
|
+
ar?: string | undefined;
|
|
158
|
+
lt?: string | undefined;
|
|
159
|
+
"en-US"?: string | undefined;
|
|
160
|
+
"fr-FR"?: string | undefined;
|
|
161
|
+
"es-ES"?: string | undefined;
|
|
162
|
+
"it-IT"?: string | undefined;
|
|
163
|
+
"de-DE"?: string | undefined;
|
|
164
|
+
"ru-RU"?: string | undefined;
|
|
165
|
+
"nl-NL"?: string | undefined;
|
|
166
|
+
"pt-BR"?: string | undefined;
|
|
167
|
+
"zh-CN"?: string | undefined;
|
|
168
|
+
"he-IL"?: string | undefined;
|
|
169
|
+
"cs-CZ"?: string | undefined;
|
|
170
|
+
"ko-KR"?: string | undefined;
|
|
171
|
+
"ja-JP"?: string | undefined;
|
|
172
|
+
"zh-TW"?: string | undefined;
|
|
173
|
+
"bg-BG"?: string | undefined;
|
|
174
|
+
"hr-HR"?: string | undefined;
|
|
175
|
+
"da-DK"?: string | undefined;
|
|
176
|
+
"fi-FI"?: string | undefined;
|
|
177
|
+
"el-GR"?: string | undefined;
|
|
178
|
+
"hu-HU"?: string | undefined;
|
|
179
|
+
"nb-NO"?: string | undefined;
|
|
180
|
+
"pl-PL"?: string | undefined;
|
|
181
|
+
"pt-PT"?: string | undefined;
|
|
182
|
+
"ro-RO"?: string | undefined;
|
|
183
|
+
"sv-SE"?: string | undefined;
|
|
184
|
+
"tr-TR"?: string | undefined;
|
|
185
|
+
"et-EE"?: string | undefined;
|
|
186
|
+
"id-ID"?: string | undefined;
|
|
187
|
+
"lv-LV"?: string | undefined;
|
|
188
|
+
"th-TH"?: string | undefined;
|
|
189
|
+
} | undefined;
|
|
190
|
+
explanationMedia?: {
|
|
191
|
+
image?: {
|
|
192
|
+
id?: number | undefined;
|
|
193
|
+
url?: string | undefined;
|
|
194
|
+
filename?: string | undefined;
|
|
195
|
+
width?: number | undefined;
|
|
196
|
+
height?: number | undefined;
|
|
197
|
+
} | undefined;
|
|
198
|
+
video?: {
|
|
199
|
+
id?: number | undefined;
|
|
200
|
+
url?: string | undefined;
|
|
201
|
+
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
202
|
+
} | undefined;
|
|
203
|
+
} | undefined;
|
|
204
|
+
multiselect?: boolean | undefined;
|
|
205
|
+
choices?: ({
|
|
206
|
+
correct?: boolean | undefined;
|
|
207
|
+
text?: {
|
|
208
|
+
sk?: string | undefined;
|
|
209
|
+
sl?: string | undefined;
|
|
210
|
+
ar?: string | undefined;
|
|
211
|
+
lt?: string | undefined;
|
|
212
|
+
"en-US"?: string | undefined;
|
|
213
|
+
"fr-FR"?: string | undefined;
|
|
214
|
+
"es-ES"?: string | undefined;
|
|
215
|
+
"it-IT"?: string | undefined;
|
|
216
|
+
"de-DE"?: string | undefined;
|
|
217
|
+
"ru-RU"?: string | undefined;
|
|
218
|
+
"nl-NL"?: string | undefined;
|
|
219
|
+
"pt-BR"?: string | undefined;
|
|
220
|
+
"zh-CN"?: string | undefined;
|
|
221
|
+
"he-IL"?: string | undefined;
|
|
222
|
+
"cs-CZ"?: string | undefined;
|
|
223
|
+
"ko-KR"?: string | undefined;
|
|
224
|
+
"ja-JP"?: string | undefined;
|
|
225
|
+
"zh-TW"?: string | undefined;
|
|
226
|
+
"bg-BG"?: string | undefined;
|
|
227
|
+
"hr-HR"?: string | undefined;
|
|
228
|
+
"da-DK"?: string | undefined;
|
|
229
|
+
"fi-FI"?: string | undefined;
|
|
230
|
+
"el-GR"?: string | undefined;
|
|
231
|
+
"hu-HU"?: string | undefined;
|
|
232
|
+
"nb-NO"?: string | undefined;
|
|
233
|
+
"pl-PL"?: string | undefined;
|
|
234
|
+
"pt-PT"?: string | undefined;
|
|
235
|
+
"ro-RO"?: string | undefined;
|
|
236
|
+
"sv-SE"?: string | undefined;
|
|
237
|
+
"tr-TR"?: string | undefined;
|
|
238
|
+
"et-EE"?: string | undefined;
|
|
239
|
+
"id-ID"?: string | undefined;
|
|
240
|
+
"lv-LV"?: string | undefined;
|
|
241
|
+
"th-TH"?: string | undefined;
|
|
242
|
+
} | undefined;
|
|
243
|
+
} | undefined)[] | undefined;
|
|
244
|
+
};
|
|
245
|
+
export declare const isPartialGameErrorText: (game: DeepPartial<Game>) => game is {
|
|
246
|
+
type?: "error-text" | undefined;
|
|
247
|
+
gameMedia?: {
|
|
248
|
+
image?: {
|
|
249
|
+
id?: number | undefined;
|
|
250
|
+
url?: string | undefined;
|
|
251
|
+
filename?: string | undefined;
|
|
252
|
+
width?: number | undefined;
|
|
253
|
+
height?: number | undefined;
|
|
254
|
+
} | undefined;
|
|
255
|
+
video?: {
|
|
256
|
+
id?: number | undefined;
|
|
257
|
+
url?: string | undefined;
|
|
258
|
+
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
259
|
+
} | undefined;
|
|
260
|
+
} | undefined;
|
|
261
|
+
explanationMedia?: {
|
|
262
|
+
image?: {
|
|
263
|
+
id?: number | undefined;
|
|
264
|
+
url?: string | undefined;
|
|
265
|
+
filename?: string | undefined;
|
|
266
|
+
width?: number | undefined;
|
|
267
|
+
height?: number | undefined;
|
|
268
|
+
} | undefined;
|
|
269
|
+
video?: {
|
|
270
|
+
id?: number | undefined;
|
|
271
|
+
url?: string | undefined;
|
|
272
|
+
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
273
|
+
} | undefined;
|
|
274
|
+
} | undefined;
|
|
275
|
+
explanation?: {
|
|
276
|
+
sk?: string | undefined;
|
|
277
|
+
sl?: string | undefined;
|
|
278
|
+
ar?: string | undefined;
|
|
279
|
+
lt?: string | undefined;
|
|
280
|
+
"en-US"?: string | undefined;
|
|
281
|
+
"fr-FR"?: string | undefined;
|
|
282
|
+
"es-ES"?: string | undefined;
|
|
283
|
+
"it-IT"?: string | undefined;
|
|
284
|
+
"de-DE"?: string | undefined;
|
|
285
|
+
"ru-RU"?: string | undefined;
|
|
286
|
+
"nl-NL"?: string | undefined;
|
|
287
|
+
"pt-BR"?: string | undefined;
|
|
288
|
+
"zh-CN"?: string | undefined;
|
|
289
|
+
"he-IL"?: string | undefined;
|
|
290
|
+
"cs-CZ"?: string | undefined;
|
|
291
|
+
"ko-KR"?: string | undefined;
|
|
292
|
+
"ja-JP"?: string | undefined;
|
|
293
|
+
"zh-TW"?: string | undefined;
|
|
294
|
+
"bg-BG"?: string | undefined;
|
|
295
|
+
"hr-HR"?: string | undefined;
|
|
296
|
+
"da-DK"?: string | undefined;
|
|
297
|
+
"fi-FI"?: string | undefined;
|
|
298
|
+
"el-GR"?: string | undefined;
|
|
299
|
+
"hu-HU"?: string | undefined;
|
|
300
|
+
"nb-NO"?: string | undefined;
|
|
301
|
+
"pl-PL"?: string | undefined;
|
|
302
|
+
"pt-PT"?: string | undefined;
|
|
303
|
+
"ro-RO"?: string | undefined;
|
|
304
|
+
"sv-SE"?: string | undefined;
|
|
305
|
+
"tr-TR"?: string | undefined;
|
|
306
|
+
"et-EE"?: string | undefined;
|
|
307
|
+
"id-ID"?: string | undefined;
|
|
308
|
+
"lv-LV"?: string | undefined;
|
|
309
|
+
"th-TH"?: string | undefined;
|
|
310
|
+
} | undefined;
|
|
311
|
+
wrongText?: {
|
|
312
|
+
sk?: string | undefined;
|
|
313
|
+
sl?: string | undefined;
|
|
314
|
+
ar?: string | undefined;
|
|
315
|
+
lt?: string | undefined;
|
|
316
|
+
"en-US"?: string | undefined;
|
|
317
|
+
"fr-FR"?: string | undefined;
|
|
318
|
+
"es-ES"?: string | undefined;
|
|
319
|
+
"it-IT"?: string | undefined;
|
|
320
|
+
"de-DE"?: string | undefined;
|
|
321
|
+
"ru-RU"?: string | undefined;
|
|
322
|
+
"nl-NL"?: string | undefined;
|
|
323
|
+
"pt-BR"?: string | undefined;
|
|
324
|
+
"zh-CN"?: string | undefined;
|
|
325
|
+
"he-IL"?: string | undefined;
|
|
326
|
+
"cs-CZ"?: string | undefined;
|
|
327
|
+
"ko-KR"?: string | undefined;
|
|
328
|
+
"ja-JP"?: string | undefined;
|
|
329
|
+
"zh-TW"?: string | undefined;
|
|
330
|
+
"bg-BG"?: string | undefined;
|
|
331
|
+
"hr-HR"?: string | undefined;
|
|
332
|
+
"da-DK"?: string | undefined;
|
|
333
|
+
"fi-FI"?: string | undefined;
|
|
334
|
+
"el-GR"?: string | undefined;
|
|
335
|
+
"hu-HU"?: string | undefined;
|
|
336
|
+
"nb-NO"?: string | undefined;
|
|
337
|
+
"pl-PL"?: string | undefined;
|
|
338
|
+
"pt-PT"?: string | undefined;
|
|
339
|
+
"ro-RO"?: string | undefined;
|
|
340
|
+
"sv-SE"?: string | undefined;
|
|
341
|
+
"tr-TR"?: string | undefined;
|
|
342
|
+
"et-EE"?: string | undefined;
|
|
343
|
+
"id-ID"?: string | undefined;
|
|
344
|
+
"lv-LV"?: string | undefined;
|
|
345
|
+
"th-TH"?: string | undefined;
|
|
346
|
+
} | undefined;
|
|
347
|
+
correctText?: {
|
|
348
|
+
sk?: string | undefined;
|
|
349
|
+
sl?: string | undefined;
|
|
350
|
+
ar?: string | undefined;
|
|
351
|
+
lt?: string | undefined;
|
|
352
|
+
"en-US"?: string | undefined;
|
|
353
|
+
"fr-FR"?: string | undefined;
|
|
354
|
+
"es-ES"?: string | undefined;
|
|
355
|
+
"it-IT"?: string | undefined;
|
|
356
|
+
"de-DE"?: string | undefined;
|
|
357
|
+
"ru-RU"?: string | undefined;
|
|
358
|
+
"nl-NL"?: string | undefined;
|
|
359
|
+
"pt-BR"?: string | undefined;
|
|
360
|
+
"zh-CN"?: string | undefined;
|
|
361
|
+
"he-IL"?: string | undefined;
|
|
362
|
+
"cs-CZ"?: string | undefined;
|
|
363
|
+
"ko-KR"?: string | undefined;
|
|
364
|
+
"ja-JP"?: string | undefined;
|
|
365
|
+
"zh-TW"?: string | undefined;
|
|
366
|
+
"bg-BG"?: string | undefined;
|
|
367
|
+
"hr-HR"?: string | undefined;
|
|
368
|
+
"da-DK"?: string | undefined;
|
|
369
|
+
"fi-FI"?: string | undefined;
|
|
370
|
+
"el-GR"?: string | undefined;
|
|
371
|
+
"hu-HU"?: string | undefined;
|
|
372
|
+
"nb-NO"?: string | undefined;
|
|
373
|
+
"pl-PL"?: string | undefined;
|
|
374
|
+
"pt-PT"?: string | undefined;
|
|
375
|
+
"ro-RO"?: string | undefined;
|
|
376
|
+
"sv-SE"?: string | undefined;
|
|
377
|
+
"tr-TR"?: string | undefined;
|
|
378
|
+
"et-EE"?: string | undefined;
|
|
379
|
+
"id-ID"?: string | undefined;
|
|
380
|
+
"lv-LV"?: string | undefined;
|
|
381
|
+
"th-TH"?: string | undefined;
|
|
382
|
+
} | undefined;
|
|
383
|
+
};
|
|
384
|
+
export declare const isPartialGameOpenQuestion: (game: DeepPartial<Game>) => game is {
|
|
385
|
+
type?: "open-question" | undefined;
|
|
386
|
+
gameMedia?: {
|
|
387
|
+
image?: {
|
|
388
|
+
id?: number | undefined;
|
|
389
|
+
url?: string | undefined;
|
|
390
|
+
filename?: string | undefined;
|
|
391
|
+
width?: number | undefined;
|
|
392
|
+
height?: number | undefined;
|
|
393
|
+
} | undefined;
|
|
394
|
+
video?: {
|
|
395
|
+
id?: number | undefined;
|
|
396
|
+
url?: string | undefined;
|
|
397
|
+
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
398
|
+
} | undefined;
|
|
399
|
+
} | undefined;
|
|
400
|
+
question?: {
|
|
401
|
+
sk?: string | undefined;
|
|
402
|
+
sl?: string | undefined;
|
|
403
|
+
ar?: string | undefined;
|
|
404
|
+
lt?: string | undefined;
|
|
405
|
+
"en-US"?: string | undefined;
|
|
406
|
+
"fr-FR"?: string | undefined;
|
|
407
|
+
"es-ES"?: string | undefined;
|
|
408
|
+
"it-IT"?: string | undefined;
|
|
409
|
+
"de-DE"?: string | undefined;
|
|
410
|
+
"ru-RU"?: string | undefined;
|
|
411
|
+
"nl-NL"?: string | undefined;
|
|
412
|
+
"pt-BR"?: string | undefined;
|
|
413
|
+
"zh-CN"?: string | undefined;
|
|
414
|
+
"he-IL"?: string | undefined;
|
|
415
|
+
"cs-CZ"?: string | undefined;
|
|
416
|
+
"ko-KR"?: string | undefined;
|
|
417
|
+
"ja-JP"?: string | undefined;
|
|
418
|
+
"zh-TW"?: string | undefined;
|
|
419
|
+
"bg-BG"?: string | undefined;
|
|
420
|
+
"hr-HR"?: string | undefined;
|
|
421
|
+
"da-DK"?: string | undefined;
|
|
422
|
+
"fi-FI"?: string | undefined;
|
|
423
|
+
"el-GR"?: string | undefined;
|
|
424
|
+
"hu-HU"?: string | undefined;
|
|
425
|
+
"nb-NO"?: string | undefined;
|
|
426
|
+
"pl-PL"?: string | undefined;
|
|
427
|
+
"pt-PT"?: string | undefined;
|
|
428
|
+
"ro-RO"?: string | undefined;
|
|
429
|
+
"sv-SE"?: string | undefined;
|
|
430
|
+
"tr-TR"?: string | undefined;
|
|
431
|
+
"et-EE"?: string | undefined;
|
|
432
|
+
"id-ID"?: string | undefined;
|
|
433
|
+
"lv-LV"?: string | undefined;
|
|
434
|
+
"th-TH"?: string | undefined;
|
|
435
|
+
} | undefined;
|
|
436
|
+
answer?: {
|
|
437
|
+
sk?: string | undefined;
|
|
438
|
+
sl?: string | undefined;
|
|
439
|
+
ar?: string | undefined;
|
|
440
|
+
lt?: string | undefined;
|
|
441
|
+
"en-US"?: string | undefined;
|
|
442
|
+
"fr-FR"?: string | undefined;
|
|
443
|
+
"es-ES"?: string | undefined;
|
|
444
|
+
"it-IT"?: string | undefined;
|
|
445
|
+
"de-DE"?: string | undefined;
|
|
446
|
+
"ru-RU"?: string | undefined;
|
|
447
|
+
"nl-NL"?: string | undefined;
|
|
448
|
+
"pt-BR"?: string | undefined;
|
|
449
|
+
"zh-CN"?: string | undefined;
|
|
450
|
+
"he-IL"?: string | undefined;
|
|
451
|
+
"cs-CZ"?: string | undefined;
|
|
452
|
+
"ko-KR"?: string | undefined;
|
|
453
|
+
"ja-JP"?: string | undefined;
|
|
454
|
+
"zh-TW"?: string | undefined;
|
|
455
|
+
"bg-BG"?: string | undefined;
|
|
456
|
+
"hr-HR"?: string | undefined;
|
|
457
|
+
"da-DK"?: string | undefined;
|
|
458
|
+
"fi-FI"?: string | undefined;
|
|
459
|
+
"el-GR"?: string | undefined;
|
|
460
|
+
"hu-HU"?: string | undefined;
|
|
461
|
+
"nb-NO"?: string | undefined;
|
|
462
|
+
"pl-PL"?: string | undefined;
|
|
463
|
+
"pt-PT"?: string | undefined;
|
|
464
|
+
"ro-RO"?: string | undefined;
|
|
465
|
+
"sv-SE"?: string | undefined;
|
|
466
|
+
"tr-TR"?: string | undefined;
|
|
467
|
+
"et-EE"?: string | undefined;
|
|
468
|
+
"id-ID"?: string | undefined;
|
|
469
|
+
"lv-LV"?: string | undefined;
|
|
470
|
+
"th-TH"?: string | undefined;
|
|
471
|
+
} | undefined;
|
|
472
|
+
explanation?: {
|
|
473
|
+
sk?: string | undefined;
|
|
474
|
+
sl?: string | undefined;
|
|
475
|
+
ar?: string | undefined;
|
|
476
|
+
lt?: string | undefined;
|
|
477
|
+
"en-US"?: string | undefined;
|
|
478
|
+
"fr-FR"?: string | undefined;
|
|
479
|
+
"es-ES"?: string | undefined;
|
|
480
|
+
"it-IT"?: string | undefined;
|
|
481
|
+
"de-DE"?: string | undefined;
|
|
482
|
+
"ru-RU"?: string | undefined;
|
|
483
|
+
"nl-NL"?: string | undefined;
|
|
484
|
+
"pt-BR"?: string | undefined;
|
|
485
|
+
"zh-CN"?: string | undefined;
|
|
486
|
+
"he-IL"?: string | undefined;
|
|
487
|
+
"cs-CZ"?: string | undefined;
|
|
488
|
+
"ko-KR"?: string | undefined;
|
|
489
|
+
"ja-JP"?: string | undefined;
|
|
490
|
+
"zh-TW"?: string | undefined;
|
|
491
|
+
"bg-BG"?: string | undefined;
|
|
492
|
+
"hr-HR"?: string | undefined;
|
|
493
|
+
"da-DK"?: string | undefined;
|
|
494
|
+
"fi-FI"?: string | undefined;
|
|
495
|
+
"el-GR"?: string | undefined;
|
|
496
|
+
"hu-HU"?: string | undefined;
|
|
497
|
+
"nb-NO"?: string | undefined;
|
|
498
|
+
"pl-PL"?: string | undefined;
|
|
499
|
+
"pt-PT"?: string | undefined;
|
|
500
|
+
"ro-RO"?: string | undefined;
|
|
501
|
+
"sv-SE"?: string | undefined;
|
|
502
|
+
"tr-TR"?: string | undefined;
|
|
503
|
+
"et-EE"?: string | undefined;
|
|
504
|
+
"id-ID"?: string | undefined;
|
|
505
|
+
"lv-LV"?: string | undefined;
|
|
506
|
+
"th-TH"?: string | undefined;
|
|
507
|
+
} | undefined;
|
|
508
|
+
explanationMedia?: {
|
|
509
|
+
image?: {
|
|
510
|
+
id?: number | undefined;
|
|
511
|
+
url?: string | undefined;
|
|
512
|
+
filename?: string | undefined;
|
|
513
|
+
width?: number | undefined;
|
|
514
|
+
height?: number | undefined;
|
|
515
|
+
} | undefined;
|
|
516
|
+
video?: {
|
|
517
|
+
id?: number | undefined;
|
|
518
|
+
url?: string | undefined;
|
|
519
|
+
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
520
|
+
} | undefined;
|
|
521
|
+
} | undefined;
|
|
522
|
+
levenshteinDistance?: number | undefined;
|
|
523
|
+
};
|
|
524
|
+
export declare const isPartialGameNoInteraction: (game: DeepPartial<Game>) => game is {
|
|
525
|
+
type?: "no-interaction" | undefined;
|
|
526
|
+
firstMedia?: {
|
|
527
|
+
image?: {
|
|
528
|
+
id?: number | undefined;
|
|
529
|
+
url?: string | undefined;
|
|
530
|
+
filename?: string | undefined;
|
|
531
|
+
width?: number | undefined;
|
|
532
|
+
height?: number | undefined;
|
|
533
|
+
} | undefined;
|
|
534
|
+
video?: {
|
|
535
|
+
id?: number | undefined;
|
|
536
|
+
url?: string | undefined;
|
|
537
|
+
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
538
|
+
} | undefined;
|
|
539
|
+
} | undefined;
|
|
540
|
+
secondMedia?: {
|
|
541
|
+
image?: {
|
|
542
|
+
id?: number | undefined;
|
|
543
|
+
url?: string | undefined;
|
|
544
|
+
filename?: string | undefined;
|
|
545
|
+
width?: number | undefined;
|
|
546
|
+
height?: number | undefined;
|
|
547
|
+
} | undefined;
|
|
548
|
+
video?: {
|
|
549
|
+
id?: number | undefined;
|
|
550
|
+
url?: string | undefined;
|
|
551
|
+
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
552
|
+
} | undefined;
|
|
553
|
+
} | undefined;
|
|
554
|
+
title?: {
|
|
555
|
+
sk?: string | undefined;
|
|
556
|
+
sl?: string | undefined;
|
|
557
|
+
ar?: string | undefined;
|
|
558
|
+
lt?: string | undefined;
|
|
559
|
+
"en-US"?: string | undefined;
|
|
560
|
+
"fr-FR"?: string | undefined;
|
|
561
|
+
"es-ES"?: string | undefined;
|
|
562
|
+
"it-IT"?: string | undefined;
|
|
563
|
+
"de-DE"?: string | undefined;
|
|
564
|
+
"ru-RU"?: string | undefined;
|
|
565
|
+
"nl-NL"?: string | undefined;
|
|
566
|
+
"pt-BR"?: string | undefined;
|
|
567
|
+
"zh-CN"?: string | undefined;
|
|
568
|
+
"he-IL"?: string | undefined;
|
|
569
|
+
"cs-CZ"?: string | undefined;
|
|
570
|
+
"ko-KR"?: string | undefined;
|
|
571
|
+
"ja-JP"?: string | undefined;
|
|
572
|
+
"zh-TW"?: string | undefined;
|
|
573
|
+
"bg-BG"?: string | undefined;
|
|
574
|
+
"hr-HR"?: string | undefined;
|
|
575
|
+
"da-DK"?: string | undefined;
|
|
576
|
+
"fi-FI"?: string | undefined;
|
|
577
|
+
"el-GR"?: string | undefined;
|
|
578
|
+
"hu-HU"?: string | undefined;
|
|
579
|
+
"nb-NO"?: string | undefined;
|
|
580
|
+
"pl-PL"?: string | undefined;
|
|
581
|
+
"pt-PT"?: string | undefined;
|
|
582
|
+
"ro-RO"?: string | undefined;
|
|
583
|
+
"sv-SE"?: string | undefined;
|
|
584
|
+
"tr-TR"?: string | undefined;
|
|
585
|
+
"et-EE"?: string | undefined;
|
|
586
|
+
"id-ID"?: string | undefined;
|
|
587
|
+
"lv-LV"?: string | undefined;
|
|
588
|
+
"th-TH"?: string | undefined;
|
|
589
|
+
} | undefined;
|
|
590
|
+
text?: {
|
|
591
|
+
sk?: string | undefined;
|
|
592
|
+
sl?: string | undefined;
|
|
593
|
+
ar?: string | undefined;
|
|
594
|
+
lt?: string | undefined;
|
|
595
|
+
"en-US"?: string | undefined;
|
|
596
|
+
"fr-FR"?: string | undefined;
|
|
597
|
+
"es-ES"?: string | undefined;
|
|
598
|
+
"it-IT"?: string | undefined;
|
|
599
|
+
"de-DE"?: string | undefined;
|
|
600
|
+
"ru-RU"?: string | undefined;
|
|
601
|
+
"nl-NL"?: string | undefined;
|
|
602
|
+
"pt-BR"?: string | undefined;
|
|
603
|
+
"zh-CN"?: string | undefined;
|
|
604
|
+
"he-IL"?: string | undefined;
|
|
605
|
+
"cs-CZ"?: string | undefined;
|
|
606
|
+
"ko-KR"?: string | undefined;
|
|
607
|
+
"ja-JP"?: string | undefined;
|
|
608
|
+
"zh-TW"?: string | undefined;
|
|
609
|
+
"bg-BG"?: string | undefined;
|
|
610
|
+
"hr-HR"?: string | undefined;
|
|
611
|
+
"da-DK"?: string | undefined;
|
|
612
|
+
"fi-FI"?: string | undefined;
|
|
613
|
+
"el-GR"?: string | undefined;
|
|
614
|
+
"hu-HU"?: string | undefined;
|
|
615
|
+
"nb-NO"?: string | undefined;
|
|
616
|
+
"pl-PL"?: string | undefined;
|
|
617
|
+
"pt-PT"?: string | undefined;
|
|
618
|
+
"ro-RO"?: string | undefined;
|
|
619
|
+
"sv-SE"?: string | undefined;
|
|
620
|
+
"tr-TR"?: string | undefined;
|
|
621
|
+
"et-EE"?: string | undefined;
|
|
622
|
+
"id-ID"?: string | undefined;
|
|
623
|
+
"lv-LV"?: string | undefined;
|
|
624
|
+
"th-TH"?: string | undefined;
|
|
625
|
+
} | undefined;
|
|
626
|
+
};
|
|
627
|
+
export declare const isPartialGamePictureSpot: (game: DeepPartial<Game>) => game is {
|
|
628
|
+
type?: "picture-spot" | undefined;
|
|
629
|
+
image?: {
|
|
630
|
+
id?: number | undefined;
|
|
631
|
+
url?: string | undefined;
|
|
632
|
+
filename?: string | undefined;
|
|
633
|
+
width?: number | undefined;
|
|
634
|
+
height?: number | undefined;
|
|
635
|
+
} | undefined;
|
|
636
|
+
explanation?: {
|
|
637
|
+
sk?: string | undefined;
|
|
638
|
+
sl?: string | undefined;
|
|
639
|
+
ar?: string | undefined;
|
|
640
|
+
lt?: string | undefined;
|
|
641
|
+
"en-US"?: string | undefined;
|
|
642
|
+
"fr-FR"?: string | undefined;
|
|
643
|
+
"es-ES"?: string | undefined;
|
|
644
|
+
"it-IT"?: string | undefined;
|
|
645
|
+
"de-DE"?: string | undefined;
|
|
646
|
+
"ru-RU"?: string | undefined;
|
|
647
|
+
"nl-NL"?: string | undefined;
|
|
648
|
+
"pt-BR"?: string | undefined;
|
|
649
|
+
"zh-CN"?: string | undefined;
|
|
650
|
+
"he-IL"?: string | undefined;
|
|
651
|
+
"cs-CZ"?: string | undefined;
|
|
652
|
+
"ko-KR"?: string | undefined;
|
|
653
|
+
"ja-JP"?: string | undefined;
|
|
654
|
+
"zh-TW"?: string | undefined;
|
|
655
|
+
"bg-BG"?: string | undefined;
|
|
656
|
+
"hr-HR"?: string | undefined;
|
|
657
|
+
"da-DK"?: string | undefined;
|
|
658
|
+
"fi-FI"?: string | undefined;
|
|
659
|
+
"el-GR"?: string | undefined;
|
|
660
|
+
"hu-HU"?: string | undefined;
|
|
661
|
+
"nb-NO"?: string | undefined;
|
|
662
|
+
"pl-PL"?: string | undefined;
|
|
663
|
+
"pt-PT"?: string | undefined;
|
|
664
|
+
"ro-RO"?: string | undefined;
|
|
665
|
+
"sv-SE"?: string | undefined;
|
|
666
|
+
"tr-TR"?: string | undefined;
|
|
667
|
+
"et-EE"?: string | undefined;
|
|
668
|
+
"id-ID"?: string | undefined;
|
|
669
|
+
"lv-LV"?: string | undefined;
|
|
670
|
+
"th-TH"?: string | undefined;
|
|
671
|
+
} | undefined;
|
|
672
|
+
items?: ({
|
|
673
|
+
x?: number | undefined;
|
|
674
|
+
y?: number | undefined;
|
|
675
|
+
r?: number | undefined;
|
|
676
|
+
question?: {
|
|
677
|
+
sk?: string | undefined;
|
|
678
|
+
sl?: string | undefined;
|
|
679
|
+
ar?: string | undefined;
|
|
680
|
+
lt?: string | undefined;
|
|
681
|
+
"en-US"?: string | undefined;
|
|
682
|
+
"fr-FR"?: string | undefined;
|
|
683
|
+
"es-ES"?: string | undefined;
|
|
684
|
+
"it-IT"?: string | undefined;
|
|
685
|
+
"de-DE"?: string | undefined;
|
|
686
|
+
"ru-RU"?: string | undefined;
|
|
687
|
+
"nl-NL"?: string | undefined;
|
|
688
|
+
"pt-BR"?: string | undefined;
|
|
689
|
+
"zh-CN"?: string | undefined;
|
|
690
|
+
"he-IL"?: string | undefined;
|
|
691
|
+
"cs-CZ"?: string | undefined;
|
|
692
|
+
"ko-KR"?: string | undefined;
|
|
693
|
+
"ja-JP"?: string | undefined;
|
|
694
|
+
"zh-TW"?: string | undefined;
|
|
695
|
+
"bg-BG"?: string | undefined;
|
|
696
|
+
"hr-HR"?: string | undefined;
|
|
697
|
+
"da-DK"?: string | undefined;
|
|
698
|
+
"fi-FI"?: string | undefined;
|
|
699
|
+
"el-GR"?: string | undefined;
|
|
700
|
+
"hu-HU"?: string | undefined;
|
|
701
|
+
"nb-NO"?: string | undefined;
|
|
702
|
+
"pl-PL"?: string | undefined;
|
|
703
|
+
"pt-PT"?: string | undefined;
|
|
704
|
+
"ro-RO"?: string | undefined;
|
|
705
|
+
"sv-SE"?: string | undefined;
|
|
706
|
+
"tr-TR"?: string | undefined;
|
|
707
|
+
"et-EE"?: string | undefined;
|
|
708
|
+
"id-ID"?: string | undefined;
|
|
709
|
+
"lv-LV"?: string | undefined;
|
|
710
|
+
"th-TH"?: string | undefined;
|
|
711
|
+
} | undefined;
|
|
712
|
+
description?: {
|
|
713
|
+
sk?: string | undefined;
|
|
714
|
+
sl?: string | undefined;
|
|
715
|
+
ar?: string | undefined;
|
|
716
|
+
lt?: string | undefined;
|
|
717
|
+
"en-US"?: string | undefined;
|
|
718
|
+
"fr-FR"?: string | undefined;
|
|
719
|
+
"es-ES"?: string | undefined;
|
|
720
|
+
"it-IT"?: string | undefined;
|
|
721
|
+
"de-DE"?: string | undefined;
|
|
722
|
+
"ru-RU"?: string | undefined;
|
|
723
|
+
"nl-NL"?: string | undefined;
|
|
724
|
+
"pt-BR"?: string | undefined;
|
|
725
|
+
"zh-CN"?: string | undefined;
|
|
726
|
+
"he-IL"?: string | undefined;
|
|
727
|
+
"cs-CZ"?: string | undefined;
|
|
728
|
+
"ko-KR"?: string | undefined;
|
|
729
|
+
"ja-JP"?: string | undefined;
|
|
730
|
+
"zh-TW"?: string | undefined;
|
|
731
|
+
"bg-BG"?: string | undefined;
|
|
732
|
+
"hr-HR"?: string | undefined;
|
|
733
|
+
"da-DK"?: string | undefined;
|
|
734
|
+
"fi-FI"?: string | undefined;
|
|
735
|
+
"el-GR"?: string | undefined;
|
|
736
|
+
"hu-HU"?: string | undefined;
|
|
737
|
+
"nb-NO"?: string | undefined;
|
|
738
|
+
"pl-PL"?: string | undefined;
|
|
739
|
+
"pt-PT"?: string | undefined;
|
|
740
|
+
"ro-RO"?: string | undefined;
|
|
741
|
+
"sv-SE"?: string | undefined;
|
|
742
|
+
"tr-TR"?: string | undefined;
|
|
743
|
+
"et-EE"?: string | undefined;
|
|
744
|
+
"id-ID"?: string | undefined;
|
|
745
|
+
"lv-LV"?: string | undefined;
|
|
746
|
+
"th-TH"?: string | undefined;
|
|
747
|
+
} | undefined;
|
|
748
|
+
} | undefined)[] | undefined;
|
|
749
|
+
};
|
|
750
|
+
export declare const isPartialGameOrderingCards: (game: DeepPartial<Game>) => game is {
|
|
751
|
+
type?: "ordering-cards" | undefined;
|
|
752
|
+
explanation?: {
|
|
753
|
+
sk?: string | undefined;
|
|
754
|
+
sl?: string | undefined;
|
|
755
|
+
ar?: string | undefined;
|
|
756
|
+
lt?: string | undefined;
|
|
757
|
+
"en-US"?: string | undefined;
|
|
758
|
+
"fr-FR"?: string | undefined;
|
|
759
|
+
"es-ES"?: string | undefined;
|
|
760
|
+
"it-IT"?: string | undefined;
|
|
761
|
+
"de-DE"?: string | undefined;
|
|
762
|
+
"ru-RU"?: string | undefined;
|
|
763
|
+
"nl-NL"?: string | undefined;
|
|
764
|
+
"pt-BR"?: string | undefined;
|
|
765
|
+
"zh-CN"?: string | undefined;
|
|
766
|
+
"he-IL"?: string | undefined;
|
|
767
|
+
"cs-CZ"?: string | undefined;
|
|
768
|
+
"ko-KR"?: string | undefined;
|
|
769
|
+
"ja-JP"?: string | undefined;
|
|
770
|
+
"zh-TW"?: string | undefined;
|
|
771
|
+
"bg-BG"?: string | undefined;
|
|
772
|
+
"hr-HR"?: string | undefined;
|
|
773
|
+
"da-DK"?: string | undefined;
|
|
774
|
+
"fi-FI"?: string | undefined;
|
|
775
|
+
"el-GR"?: string | undefined;
|
|
776
|
+
"hu-HU"?: string | undefined;
|
|
777
|
+
"nb-NO"?: string | undefined;
|
|
778
|
+
"pl-PL"?: string | undefined;
|
|
779
|
+
"pt-PT"?: string | undefined;
|
|
780
|
+
"ro-RO"?: string | undefined;
|
|
781
|
+
"sv-SE"?: string | undefined;
|
|
782
|
+
"tr-TR"?: string | undefined;
|
|
783
|
+
"et-EE"?: string | undefined;
|
|
784
|
+
"id-ID"?: string | undefined;
|
|
785
|
+
"lv-LV"?: string | undefined;
|
|
786
|
+
"th-TH"?: string | undefined;
|
|
787
|
+
} | undefined;
|
|
788
|
+
question?: {
|
|
789
|
+
sk?: string | undefined;
|
|
790
|
+
sl?: string | undefined;
|
|
791
|
+
ar?: string | undefined;
|
|
792
|
+
lt?: string | undefined;
|
|
793
|
+
"en-US"?: string | undefined;
|
|
794
|
+
"fr-FR"?: string | undefined;
|
|
795
|
+
"es-ES"?: string | undefined;
|
|
796
|
+
"it-IT"?: string | undefined;
|
|
797
|
+
"de-DE"?: string | undefined;
|
|
798
|
+
"ru-RU"?: string | undefined;
|
|
799
|
+
"nl-NL"?: string | undefined;
|
|
800
|
+
"pt-BR"?: string | undefined;
|
|
801
|
+
"zh-CN"?: string | undefined;
|
|
802
|
+
"he-IL"?: string | undefined;
|
|
803
|
+
"cs-CZ"?: string | undefined;
|
|
804
|
+
"ko-KR"?: string | undefined;
|
|
805
|
+
"ja-JP"?: string | undefined;
|
|
806
|
+
"zh-TW"?: string | undefined;
|
|
807
|
+
"bg-BG"?: string | undefined;
|
|
808
|
+
"hr-HR"?: string | undefined;
|
|
809
|
+
"da-DK"?: string | undefined;
|
|
810
|
+
"fi-FI"?: string | undefined;
|
|
811
|
+
"el-GR"?: string | undefined;
|
|
812
|
+
"hu-HU"?: string | undefined;
|
|
813
|
+
"nb-NO"?: string | undefined;
|
|
814
|
+
"pl-PL"?: string | undefined;
|
|
815
|
+
"pt-PT"?: string | undefined;
|
|
816
|
+
"ro-RO"?: string | undefined;
|
|
817
|
+
"sv-SE"?: string | undefined;
|
|
818
|
+
"tr-TR"?: string | undefined;
|
|
819
|
+
"et-EE"?: string | undefined;
|
|
820
|
+
"id-ID"?: string | undefined;
|
|
821
|
+
"lv-LV"?: string | undefined;
|
|
822
|
+
"th-TH"?: string | undefined;
|
|
823
|
+
} | undefined;
|
|
824
|
+
topLabel?: {
|
|
825
|
+
sk?: string | undefined;
|
|
826
|
+
sl?: string | undefined;
|
|
827
|
+
ar?: string | undefined;
|
|
828
|
+
lt?: string | undefined;
|
|
829
|
+
"en-US"?: string | undefined;
|
|
830
|
+
"fr-FR"?: string | undefined;
|
|
831
|
+
"es-ES"?: string | undefined;
|
|
832
|
+
"it-IT"?: string | undefined;
|
|
833
|
+
"de-DE"?: string | undefined;
|
|
834
|
+
"ru-RU"?: string | undefined;
|
|
835
|
+
"nl-NL"?: string | undefined;
|
|
836
|
+
"pt-BR"?: string | undefined;
|
|
837
|
+
"zh-CN"?: string | undefined;
|
|
838
|
+
"he-IL"?: string | undefined;
|
|
839
|
+
"cs-CZ"?: string | undefined;
|
|
840
|
+
"ko-KR"?: string | undefined;
|
|
841
|
+
"ja-JP"?: string | undefined;
|
|
842
|
+
"zh-TW"?: string | undefined;
|
|
843
|
+
"bg-BG"?: string | undefined;
|
|
844
|
+
"hr-HR"?: string | undefined;
|
|
845
|
+
"da-DK"?: string | undefined;
|
|
846
|
+
"fi-FI"?: string | undefined;
|
|
847
|
+
"el-GR"?: string | undefined;
|
|
848
|
+
"hu-HU"?: string | undefined;
|
|
849
|
+
"nb-NO"?: string | undefined;
|
|
850
|
+
"pl-PL"?: string | undefined;
|
|
851
|
+
"pt-PT"?: string | undefined;
|
|
852
|
+
"ro-RO"?: string | undefined;
|
|
853
|
+
"sv-SE"?: string | undefined;
|
|
854
|
+
"tr-TR"?: string | undefined;
|
|
855
|
+
"et-EE"?: string | undefined;
|
|
856
|
+
"id-ID"?: string | undefined;
|
|
857
|
+
"lv-LV"?: string | undefined;
|
|
858
|
+
"th-TH"?: string | undefined;
|
|
859
|
+
} | undefined;
|
|
860
|
+
bottomLabel?: {
|
|
861
|
+
sk?: string | undefined;
|
|
862
|
+
sl?: string | undefined;
|
|
863
|
+
ar?: string | undefined;
|
|
864
|
+
lt?: string | undefined;
|
|
865
|
+
"en-US"?: string | undefined;
|
|
866
|
+
"fr-FR"?: string | undefined;
|
|
867
|
+
"es-ES"?: string | undefined;
|
|
868
|
+
"it-IT"?: string | undefined;
|
|
869
|
+
"de-DE"?: string | undefined;
|
|
870
|
+
"ru-RU"?: string | undefined;
|
|
871
|
+
"nl-NL"?: string | undefined;
|
|
872
|
+
"pt-BR"?: string | undefined;
|
|
873
|
+
"zh-CN"?: string | undefined;
|
|
874
|
+
"he-IL"?: string | undefined;
|
|
875
|
+
"cs-CZ"?: string | undefined;
|
|
876
|
+
"ko-KR"?: string | undefined;
|
|
877
|
+
"ja-JP"?: string | undefined;
|
|
878
|
+
"zh-TW"?: string | undefined;
|
|
879
|
+
"bg-BG"?: string | undefined;
|
|
880
|
+
"hr-HR"?: string | undefined;
|
|
881
|
+
"da-DK"?: string | undefined;
|
|
882
|
+
"fi-FI"?: string | undefined;
|
|
883
|
+
"el-GR"?: string | undefined;
|
|
884
|
+
"hu-HU"?: string | undefined;
|
|
885
|
+
"nb-NO"?: string | undefined;
|
|
886
|
+
"pl-PL"?: string | undefined;
|
|
887
|
+
"pt-PT"?: string | undefined;
|
|
888
|
+
"ro-RO"?: string | undefined;
|
|
889
|
+
"sv-SE"?: string | undefined;
|
|
890
|
+
"tr-TR"?: string | undefined;
|
|
891
|
+
"et-EE"?: string | undefined;
|
|
892
|
+
"id-ID"?: string | undefined;
|
|
893
|
+
"lv-LV"?: string | undefined;
|
|
894
|
+
"th-TH"?: string | undefined;
|
|
895
|
+
} | undefined;
|
|
896
|
+
cards?: ({
|
|
897
|
+
sk?: string | undefined;
|
|
898
|
+
sl?: string | undefined;
|
|
899
|
+
ar?: string | undefined;
|
|
900
|
+
lt?: string | undefined;
|
|
901
|
+
"en-US"?: string | undefined;
|
|
902
|
+
"fr-FR"?: string | undefined;
|
|
903
|
+
"es-ES"?: string | undefined;
|
|
904
|
+
"it-IT"?: string | undefined;
|
|
905
|
+
"de-DE"?: string | undefined;
|
|
906
|
+
"ru-RU"?: string | undefined;
|
|
907
|
+
"nl-NL"?: string | undefined;
|
|
908
|
+
"pt-BR"?: string | undefined;
|
|
909
|
+
"zh-CN"?: string | undefined;
|
|
910
|
+
"he-IL"?: string | undefined;
|
|
911
|
+
"cs-CZ"?: string | undefined;
|
|
912
|
+
"ko-KR"?: string | undefined;
|
|
913
|
+
"ja-JP"?: string | undefined;
|
|
914
|
+
"zh-TW"?: string | undefined;
|
|
915
|
+
"bg-BG"?: string | undefined;
|
|
916
|
+
"hr-HR"?: string | undefined;
|
|
917
|
+
"da-DK"?: string | undefined;
|
|
918
|
+
"fi-FI"?: string | undefined;
|
|
919
|
+
"el-GR"?: string | undefined;
|
|
920
|
+
"hu-HU"?: string | undefined;
|
|
921
|
+
"nb-NO"?: string | undefined;
|
|
922
|
+
"pl-PL"?: string | undefined;
|
|
923
|
+
"pt-PT"?: string | undefined;
|
|
924
|
+
"ro-RO"?: string | undefined;
|
|
925
|
+
"sv-SE"?: string | undefined;
|
|
926
|
+
"tr-TR"?: string | undefined;
|
|
927
|
+
"et-EE"?: string | undefined;
|
|
928
|
+
"id-ID"?: string | undefined;
|
|
929
|
+
"lv-LV"?: string | undefined;
|
|
930
|
+
"th-TH"?: string | undefined;
|
|
931
|
+
} | undefined)[] | undefined;
|
|
932
|
+
};
|
|
933
|
+
export declare const isPartialGameSwipingCards: (game: DeepPartial<Game>) => game is {
|
|
934
|
+
type?: "swiping-cards" | undefined;
|
|
935
|
+
explanation?: {
|
|
936
|
+
sk?: string | undefined;
|
|
937
|
+
sl?: string | undefined;
|
|
938
|
+
ar?: string | undefined;
|
|
939
|
+
lt?: string | undefined;
|
|
940
|
+
"en-US"?: string | undefined;
|
|
941
|
+
"fr-FR"?: string | undefined;
|
|
942
|
+
"es-ES"?: string | undefined;
|
|
943
|
+
"it-IT"?: string | undefined;
|
|
944
|
+
"de-DE"?: string | undefined;
|
|
945
|
+
"ru-RU"?: string | undefined;
|
|
946
|
+
"nl-NL"?: string | undefined;
|
|
947
|
+
"pt-BR"?: string | undefined;
|
|
948
|
+
"zh-CN"?: string | undefined;
|
|
949
|
+
"he-IL"?: string | undefined;
|
|
950
|
+
"cs-CZ"?: string | undefined;
|
|
951
|
+
"ko-KR"?: string | undefined;
|
|
952
|
+
"ja-JP"?: string | undefined;
|
|
953
|
+
"zh-TW"?: string | undefined;
|
|
954
|
+
"bg-BG"?: string | undefined;
|
|
955
|
+
"hr-HR"?: string | undefined;
|
|
956
|
+
"da-DK"?: string | undefined;
|
|
957
|
+
"fi-FI"?: string | undefined;
|
|
958
|
+
"el-GR"?: string | undefined;
|
|
959
|
+
"hu-HU"?: string | undefined;
|
|
960
|
+
"nb-NO"?: string | undefined;
|
|
961
|
+
"pl-PL"?: string | undefined;
|
|
962
|
+
"pt-PT"?: string | undefined;
|
|
963
|
+
"ro-RO"?: string | undefined;
|
|
964
|
+
"sv-SE"?: string | undefined;
|
|
965
|
+
"tr-TR"?: string | undefined;
|
|
966
|
+
"et-EE"?: string | undefined;
|
|
967
|
+
"id-ID"?: string | undefined;
|
|
968
|
+
"lv-LV"?: string | undefined;
|
|
969
|
+
"th-TH"?: string | undefined;
|
|
970
|
+
} | undefined;
|
|
971
|
+
question?: {
|
|
972
|
+
sk?: string | undefined;
|
|
973
|
+
sl?: string | undefined;
|
|
974
|
+
ar?: string | undefined;
|
|
975
|
+
lt?: string | undefined;
|
|
976
|
+
"en-US"?: string | undefined;
|
|
977
|
+
"fr-FR"?: string | undefined;
|
|
978
|
+
"es-ES"?: string | undefined;
|
|
979
|
+
"it-IT"?: string | undefined;
|
|
980
|
+
"de-DE"?: string | undefined;
|
|
981
|
+
"ru-RU"?: string | undefined;
|
|
982
|
+
"nl-NL"?: string | undefined;
|
|
983
|
+
"pt-BR"?: string | undefined;
|
|
984
|
+
"zh-CN"?: string | undefined;
|
|
985
|
+
"he-IL"?: string | undefined;
|
|
986
|
+
"cs-CZ"?: string | undefined;
|
|
987
|
+
"ko-KR"?: string | undefined;
|
|
988
|
+
"ja-JP"?: string | undefined;
|
|
989
|
+
"zh-TW"?: string | undefined;
|
|
990
|
+
"bg-BG"?: string | undefined;
|
|
991
|
+
"hr-HR"?: string | undefined;
|
|
992
|
+
"da-DK"?: string | undefined;
|
|
993
|
+
"fi-FI"?: string | undefined;
|
|
994
|
+
"el-GR"?: string | undefined;
|
|
995
|
+
"hu-HU"?: string | undefined;
|
|
996
|
+
"nb-NO"?: string | undefined;
|
|
997
|
+
"pl-PL"?: string | undefined;
|
|
998
|
+
"pt-PT"?: string | undefined;
|
|
999
|
+
"ro-RO"?: string | undefined;
|
|
1000
|
+
"sv-SE"?: string | undefined;
|
|
1001
|
+
"tr-TR"?: string | undefined;
|
|
1002
|
+
"et-EE"?: string | undefined;
|
|
1003
|
+
"id-ID"?: string | undefined;
|
|
1004
|
+
"lv-LV"?: string | undefined;
|
|
1005
|
+
"th-TH"?: string | undefined;
|
|
1006
|
+
} | undefined;
|
|
1007
|
+
zones?: ({
|
|
1008
|
+
position?: "left" | "right" | "top" | "bottom" | undefined;
|
|
1009
|
+
text?: {
|
|
1010
|
+
sk?: string | undefined;
|
|
1011
|
+
sl?: string | undefined;
|
|
1012
|
+
ar?: string | undefined;
|
|
1013
|
+
lt?: string | undefined;
|
|
1014
|
+
"en-US"?: string | undefined;
|
|
1015
|
+
"fr-FR"?: string | undefined;
|
|
1016
|
+
"es-ES"?: string | undefined;
|
|
1017
|
+
"it-IT"?: string | undefined;
|
|
1018
|
+
"de-DE"?: string | undefined;
|
|
1019
|
+
"ru-RU"?: string | undefined;
|
|
1020
|
+
"nl-NL"?: string | undefined;
|
|
1021
|
+
"pt-BR"?: string | undefined;
|
|
1022
|
+
"zh-CN"?: string | undefined;
|
|
1023
|
+
"he-IL"?: string | undefined;
|
|
1024
|
+
"cs-CZ"?: string | undefined;
|
|
1025
|
+
"ko-KR"?: string | undefined;
|
|
1026
|
+
"ja-JP"?: string | undefined;
|
|
1027
|
+
"zh-TW"?: string | undefined;
|
|
1028
|
+
"bg-BG"?: string | undefined;
|
|
1029
|
+
"hr-HR"?: string | undefined;
|
|
1030
|
+
"da-DK"?: string | undefined;
|
|
1031
|
+
"fi-FI"?: string | undefined;
|
|
1032
|
+
"el-GR"?: string | undefined;
|
|
1033
|
+
"hu-HU"?: string | undefined;
|
|
1034
|
+
"nb-NO"?: string | undefined;
|
|
1035
|
+
"pl-PL"?: string | undefined;
|
|
1036
|
+
"pt-PT"?: string | undefined;
|
|
1037
|
+
"ro-RO"?: string | undefined;
|
|
1038
|
+
"sv-SE"?: string | undefined;
|
|
1039
|
+
"tr-TR"?: string | undefined;
|
|
1040
|
+
"et-EE"?: string | undefined;
|
|
1041
|
+
"id-ID"?: string | undefined;
|
|
1042
|
+
"lv-LV"?: string | undefined;
|
|
1043
|
+
"th-TH"?: string | undefined;
|
|
1044
|
+
} | undefined;
|
|
1045
|
+
} | undefined)[] | undefined;
|
|
1046
|
+
cards?: ({
|
|
1047
|
+
image?: {
|
|
1048
|
+
id?: number | undefined;
|
|
1049
|
+
url?: string | undefined;
|
|
1050
|
+
filename?: string | undefined;
|
|
1051
|
+
width?: number | undefined;
|
|
1052
|
+
height?: number | undefined;
|
|
1053
|
+
} | undefined;
|
|
1054
|
+
text?: {
|
|
1055
|
+
sk?: string | undefined;
|
|
1056
|
+
sl?: string | undefined;
|
|
1057
|
+
ar?: string | undefined;
|
|
1058
|
+
lt?: string | undefined;
|
|
1059
|
+
"en-US"?: string | undefined;
|
|
1060
|
+
"fr-FR"?: string | undefined;
|
|
1061
|
+
"es-ES"?: string | undefined;
|
|
1062
|
+
"it-IT"?: string | undefined;
|
|
1063
|
+
"de-DE"?: string | undefined;
|
|
1064
|
+
"ru-RU"?: string | undefined;
|
|
1065
|
+
"nl-NL"?: string | undefined;
|
|
1066
|
+
"pt-BR"?: string | undefined;
|
|
1067
|
+
"zh-CN"?: string | undefined;
|
|
1068
|
+
"he-IL"?: string | undefined;
|
|
1069
|
+
"cs-CZ"?: string | undefined;
|
|
1070
|
+
"ko-KR"?: string | undefined;
|
|
1071
|
+
"ja-JP"?: string | undefined;
|
|
1072
|
+
"zh-TW"?: string | undefined;
|
|
1073
|
+
"bg-BG"?: string | undefined;
|
|
1074
|
+
"hr-HR"?: string | undefined;
|
|
1075
|
+
"da-DK"?: string | undefined;
|
|
1076
|
+
"fi-FI"?: string | undefined;
|
|
1077
|
+
"el-GR"?: string | undefined;
|
|
1078
|
+
"hu-HU"?: string | undefined;
|
|
1079
|
+
"nb-NO"?: string | undefined;
|
|
1080
|
+
"pl-PL"?: string | undefined;
|
|
1081
|
+
"pt-PT"?: string | undefined;
|
|
1082
|
+
"ro-RO"?: string | undefined;
|
|
1083
|
+
"sv-SE"?: string | undefined;
|
|
1084
|
+
"tr-TR"?: string | undefined;
|
|
1085
|
+
"et-EE"?: string | undefined;
|
|
1086
|
+
"id-ID"?: string | undefined;
|
|
1087
|
+
"lv-LV"?: string | undefined;
|
|
1088
|
+
"th-TH"?: string | undefined;
|
|
1089
|
+
} | undefined;
|
|
1090
|
+
answer?: "left" | "right" | "top" | "bottom" | undefined;
|
|
1091
|
+
} | undefined)[] | undefined;
|
|
1092
|
+
};
|
|
@@ -17,7 +17,14 @@ const isGameOpenQuestion = (game) => game.type === GAME_TYPE.OPEN_QUESTION;
|
|
|
17
17
|
const isGameNoInteraction = (game) => game.type === GAME_TYPE.NO_INTERACTION;
|
|
18
18
|
const isGamePictureSpot = (game) => game.type === GAME_TYPE.PICTURE_SPOT;
|
|
19
19
|
const isGameOrderingCards = (game) => game.type === GAME_TYPE.ORDERING_CARDS;
|
|
20
|
-
const isGameSwipingCards = (game) => game.type === GAME_TYPE.SWIPING_CARDS;
|
|
20
|
+
const isGameSwipingCards = (game) => game.type === GAME_TYPE.SWIPING_CARDS;
|
|
21
|
+
const isPartialGameMultipleChoiceQuestion = (game) => game.type === GAME_TYPE.MCQ;
|
|
22
|
+
const isPartialGameErrorText = (game) => game.type === GAME_TYPE.ERROR_TEXT;
|
|
23
|
+
const isPartialGameOpenQuestion = (game) => game.type === GAME_TYPE.OPEN_QUESTION;
|
|
24
|
+
const isPartialGameNoInteraction = (game) => game.type === GAME_TYPE.NO_INTERACTION;
|
|
25
|
+
const isPartialGamePictureSpot = (game) => game.type === GAME_TYPE.PICTURE_SPOT;
|
|
26
|
+
const isPartialGameOrderingCards = (game) => game.type === GAME_TYPE.ORDERING_CARDS;
|
|
27
|
+
const isPartialGameSwipingCards = (game) => game.type === GAME_TYPE.SWIPING_CARDS;
|
|
21
28
|
|
|
22
29
|
exports.GAME_TYPE = GAME_TYPE;
|
|
23
30
|
exports.isGameErrorText = isGameErrorText;
|
|
@@ -27,4 +34,11 @@ exports.isGameOpenQuestion = isGameOpenQuestion;
|
|
|
27
34
|
exports.isGameOrderingCards = isGameOrderingCards;
|
|
28
35
|
exports.isGamePictureSpot = isGamePictureSpot;
|
|
29
36
|
exports.isGameSwipingCards = isGameSwipingCards;
|
|
37
|
+
exports.isPartialGameErrorText = isPartialGameErrorText;
|
|
38
|
+
exports.isPartialGameMultipleChoiceQuestion = isPartialGameMultipleChoiceQuestion;
|
|
39
|
+
exports.isPartialGameNoInteraction = isPartialGameNoInteraction;
|
|
40
|
+
exports.isPartialGameOpenQuestion = isPartialGameOpenQuestion;
|
|
41
|
+
exports.isPartialGameOrderingCards = isPartialGameOrderingCards;
|
|
42
|
+
exports.isPartialGamePictureSpot = isPartialGamePictureSpot;
|
|
43
|
+
exports.isPartialGameSwipingCards = isPartialGameSwipingCards;
|
|
30
44
|
//# sourceMappingURL=content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","sources":["../../../src/business/types/content.ts"],"sourcesContent":["import { LanguageCode, MultilingualLabel } from './multilingual';\nimport { Image, Media } from './media';\nimport { Thematic } from './thematic';\n\nexport type ErrorText = {\n type: 'error-text';\n gameMedia?: Media;\n explanationMedia?: Media;\n explanation?: MultilingualLabel;\n wrongText?: MultilingualLabel;\n correctText?: MultilingualLabel;\n};\n\nexport type MultipleChoiceQuestion = {\n type: 'mcq';\n gameMedia?: Media;\n question?: MultilingualLabel;\n explanation?: MultilingualLabel;\n explanationMedia?: Media;\n multiselect?: boolean;\n choices?: {\n correct: boolean;\n text: MultilingualLabel;\n }[];\n};\n\nexport type NoInteraction = {\n type: 'no-interaction';\n firstMedia?: Media;\n secondMedia?: Media;\n title?: MultilingualLabel;\n text?: MultilingualLabel;\n};\n\nexport type OpenQuestion = {\n type: 'open-question';\n gameMedia?: Media;\n question?: MultilingualLabel;\n answer?: MultilingualLabel;\n explanation?: MultilingualLabel;\n explanationMedia?: Media;\n levenshteinDistance?: number;\n};\n\nexport type OrderingCards = {\n type: 'ordering-cards';\n explanation?: MultilingualLabel;\n question?: MultilingualLabel;\n topLabel?: MultilingualLabel;\n bottomLabel?: MultilingualLabel;\n cards: MultilingualLabel[];\n};\n\nexport type PictureSpot = {\n type: 'picture-spot';\n image?: Image;\n explanation?: MultilingualLabel;\n items?: {\n x: number;\n y: number;\n r: number;\n question: MultilingualLabel;\n description: MultilingualLabel;\n }[];\n};\n\nexport type SwipingCards = {\n type: 'swiping-cards';\n explanation?: MultilingualLabel;\n question?: MultilingualLabel;\n zones?: {\n position: 'left' | 'right' | 'top' | 'bottom';\n text: MultilingualLabel;\n }[];\n cards?: {\n image?: Image;\n text?: MultilingualLabel;\n answer: 'left' | 'right' | 'top' | 'bottom';\n }[];\n};\n\nexport type Game =\n | ErrorText\n | MultipleChoiceQuestion\n | NoInteraction\n | OpenQuestion\n | OrderingCards\n | PictureSpot\n | SwipingCards;\n\nexport type GameType =\n | 'error-text'\n | 'mcq'\n | 'open-question'\n | 'no-interaction'\n | 'picture-spot'\n | 'swiping-cards'\n | 'ordering-cards';\n\nexport const GAME_TYPE: Record<string, GameType> = {\n MCQ: 'mcq',\n ERROR_TEXT: 'error-text',\n OPEN_QUESTION: 'open-question',\n NO_INTERACTION: 'no-interaction',\n PICTURE_SPOT: 'picture-spot',\n ORDERING_CARDS: 'ordering-cards',\n SWIPING_CARDS: 'swiping-cards',\n};\n\nexport type ContentStatuses = Partial<{\n [languageCode in LanguageCode]: 'draft' | 'validated' | 'waiting-translation' | 'waiting-validation';\n}>;\n\nexport type Content = {\n archived: boolean;\n id: number;\n metadata: {\n coverImage: Image;\n identifier?: string;\n name: MultilingualLabel;\n thematic: Thematic;\n explanation?: string;\n knowMore?: string;\n };\n statuses: ContentStatuses;\n game?: Game;\n};\n\nexport const isGameMultipleChoiceQuestion = (game: Game): game is MultipleChoiceQuestion => game.type === GAME_TYPE.MCQ;\nexport const isGameErrorText = (game: Game): game is ErrorText => game.type === GAME_TYPE.ERROR_TEXT;\nexport const isGameOpenQuestion = (game: Game): game is OpenQuestion => game.type === GAME_TYPE.OPEN_QUESTION;\nexport const isGameNoInteraction = (game: Game): game is NoInteraction => game.type === GAME_TYPE.NO_INTERACTION;\nexport const isGamePictureSpot = (game: Game): game is PictureSpot => game.type === GAME_TYPE.PICTURE_SPOT;\nexport const isGameOrderingCards = (game: Game): game is OrderingCards => game.type === GAME_TYPE.ORDERING_CARDS;\nexport const isGameSwipingCards = (game: Game): game is SwipingCards => game.type === GAME_TYPE.SWIPING_CARDS;\n"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"content.js","sources":["../../../src/business/types/content.ts"],"sourcesContent":["import { DeepPartial } from 'ts-essentials';\n\nimport { LanguageCode, MultilingualLabel } from './multilingual';\nimport { Image, Media } from './media';\nimport { Thematic } from './thematic';\n\nexport type ErrorText = {\n type: 'error-text';\n gameMedia?: Media;\n explanationMedia?: Media;\n explanation?: MultilingualLabel;\n wrongText?: MultilingualLabel;\n correctText?: MultilingualLabel;\n};\n\nexport type MultipleChoiceQuestion = {\n type: 'mcq';\n gameMedia?: Media;\n question?: MultilingualLabel;\n explanation?: MultilingualLabel;\n explanationMedia?: Media;\n multiselect?: boolean;\n choices?: {\n correct: boolean;\n text: MultilingualLabel;\n }[];\n};\n\nexport type NoInteraction = {\n type: 'no-interaction';\n firstMedia?: Media;\n secondMedia?: Media;\n title?: MultilingualLabel;\n text?: MultilingualLabel;\n};\n\nexport type OpenQuestion = {\n type: 'open-question';\n gameMedia?: Media;\n question?: MultilingualLabel;\n answer?: MultilingualLabel;\n explanation?: MultilingualLabel;\n explanationMedia?: Media;\n levenshteinDistance?: number;\n};\n\nexport type OrderingCards = {\n type: 'ordering-cards';\n explanation?: MultilingualLabel;\n question?: MultilingualLabel;\n topLabel?: MultilingualLabel;\n bottomLabel?: MultilingualLabel;\n cards: MultilingualLabel[];\n};\n\nexport type PictureSpot = {\n type: 'picture-spot';\n image?: Image;\n explanation?: MultilingualLabel;\n items?: {\n x: number;\n y: number;\n r: number;\n question: MultilingualLabel;\n description: MultilingualLabel;\n }[];\n};\n\nexport type SwipingCards = {\n type: 'swiping-cards';\n explanation?: MultilingualLabel;\n question?: MultilingualLabel;\n zones?: {\n position: 'left' | 'right' | 'top' | 'bottom';\n text: MultilingualLabel;\n }[];\n cards?: {\n image?: Image;\n text?: MultilingualLabel;\n answer: 'left' | 'right' | 'top' | 'bottom';\n }[];\n};\n\nexport type Game =\n | ErrorText\n | MultipleChoiceQuestion\n | NoInteraction\n | OpenQuestion\n | OrderingCards\n | PictureSpot\n | SwipingCards;\n\nexport type GameType =\n | 'error-text'\n | 'mcq'\n | 'open-question'\n | 'no-interaction'\n | 'picture-spot'\n | 'swiping-cards'\n | 'ordering-cards';\n\nexport const GAME_TYPE: Record<string, GameType> = {\n MCQ: 'mcq',\n ERROR_TEXT: 'error-text',\n OPEN_QUESTION: 'open-question',\n NO_INTERACTION: 'no-interaction',\n PICTURE_SPOT: 'picture-spot',\n ORDERING_CARDS: 'ordering-cards',\n SWIPING_CARDS: 'swiping-cards',\n};\n\nexport type ContentStatuses = Partial<{\n [languageCode in LanguageCode]: 'draft' | 'validated' | 'waiting-translation' | 'waiting-validation';\n}>;\n\nexport type Content = {\n archived: boolean;\n id: number;\n metadata: {\n coverImage: Image;\n identifier?: string;\n name: MultilingualLabel;\n thematic: Thematic;\n explanation?: string;\n knowMore?: string;\n };\n statuses: ContentStatuses;\n game?: Game;\n};\n\nexport const isGameMultipleChoiceQuestion = (game: Game): game is MultipleChoiceQuestion => game.type === GAME_TYPE.MCQ;\nexport const isGameErrorText = (game: Game): game is ErrorText => game.type === GAME_TYPE.ERROR_TEXT;\nexport const isGameOpenQuestion = (game: Game): game is OpenQuestion => game.type === GAME_TYPE.OPEN_QUESTION;\nexport const isGameNoInteraction = (game: Game): game is NoInteraction => game.type === GAME_TYPE.NO_INTERACTION;\nexport const isGamePictureSpot = (game: Game): game is PictureSpot => game.type === GAME_TYPE.PICTURE_SPOT;\nexport const isGameOrderingCards = (game: Game): game is OrderingCards => game.type === GAME_TYPE.ORDERING_CARDS;\nexport const isGameSwipingCards = (game: Game): game is SwipingCards => game.type === GAME_TYPE.SWIPING_CARDS;\n\nexport const isPartialGameMultipleChoiceQuestion = (\n game: DeepPartial<Game>,\n): game is DeepPartial<MultipleChoiceQuestion> => game.type === GAME_TYPE.MCQ;\nexport const isPartialGameErrorText = (game: DeepPartial<Game>): game is DeepPartial<ErrorText> =>\n game.type === GAME_TYPE.ERROR_TEXT;\nexport const isPartialGameOpenQuestion = (game: DeepPartial<Game>): game is DeepPartial<OpenQuestion> =>\n game.type === GAME_TYPE.OPEN_QUESTION;\nexport const isPartialGameNoInteraction = (game: DeepPartial<Game>): game is DeepPartial<NoInteraction> =>\n game.type === GAME_TYPE.NO_INTERACTION;\nexport const isPartialGamePictureSpot = (game: DeepPartial<Game>): game is DeepPartial<PictureSpot> =>\n game.type === GAME_TYPE.PICTURE_SPOT;\nexport const isPartialGameOrderingCards = (game: DeepPartial<Game>): game is DeepPartial<OrderingCards> =>\n game.type === GAME_TYPE.ORDERING_CARDS;\nexport const isPartialGameSwipingCards = (game: DeepPartial<Game>): game is DeepPartial<SwipingCards> =>\n game.type === GAME_TYPE.SWIPING_CARDS;\n"],"names":[],"mappings":";;;;AAqGa,MAAA,SAAS,GAA6B;AACjD,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,UAAU,EAAE,YAAY;AACxB,IAAA,aAAa,EAAE,eAAe;AAC9B,IAAA,cAAc,EAAE,gBAAgB;AAChC,IAAA,YAAY,EAAE,cAAc;AAC5B,IAAA,cAAc,EAAE,gBAAgB;AAChC,IAAA,aAAa,EAAE,eAAe;EAC9B;AAqBW,MAAA,4BAA4B,GAAG,CAAC,IAAU,KAAqC,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI;AAC3G,MAAA,eAAe,GAAG,CAAC,IAAU,KAAwB,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,WAAW;AACxF,MAAA,kBAAkB,GAAG,CAAC,IAAU,KAA2B,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,cAAc;AACjG,MAAA,mBAAmB,GAAG,CAAC,IAAU,KAA4B,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,eAAe;AACpG,MAAA,iBAAiB,GAAG,CAAC,IAAU,KAA0B,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,aAAa;AAC9F,MAAA,mBAAmB,GAAG,CAAC,IAAU,KAA4B,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,eAAe;AACpG,MAAA,kBAAkB,GAAG,CAAC,IAAU,KAA2B,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,cAAc;AAEjG,MAAA,mCAAmC,GAAG,CACjD,IAAuB,KACyB,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI;AACjE,MAAA,sBAAsB,GAAG,CAAC,IAAuB,KAC5D,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,WAAW;AACxB,MAAA,yBAAyB,GAAG,CAAC,IAAuB,KAC/D,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,cAAc;AAC3B,MAAA,0BAA0B,GAAG,CAAC,IAAuB,KAChE,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,eAAe;AAC5B,MAAA,wBAAwB,GAAG,CAAC,IAAuB,KAC9D,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,aAAa;AAC1B,MAAA,0BAA0B,GAAG,CAAC,IAAuB,KAChE,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,eAAe;AAC5B,MAAA,yBAAyB,GAAG,CAAC,IAAuB,KAC/D,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC;;;;;;;;;;;;;;;;;;"}
|
package/business/types/index.js
CHANGED
|
@@ -15,6 +15,13 @@ exports.isGameOpenQuestion = content.isGameOpenQuestion;
|
|
|
15
15
|
exports.isGameOrderingCards = content.isGameOrderingCards;
|
|
16
16
|
exports.isGamePictureSpot = content.isGamePictureSpot;
|
|
17
17
|
exports.isGameSwipingCards = content.isGameSwipingCards;
|
|
18
|
+
exports.isPartialGameErrorText = content.isPartialGameErrorText;
|
|
19
|
+
exports.isPartialGameMultipleChoiceQuestion = content.isPartialGameMultipleChoiceQuestion;
|
|
20
|
+
exports.isPartialGameNoInteraction = content.isPartialGameNoInteraction;
|
|
21
|
+
exports.isPartialGameOpenQuestion = content.isPartialGameOpenQuestion;
|
|
22
|
+
exports.isPartialGameOrderingCards = content.isPartialGameOrderingCards;
|
|
23
|
+
exports.isPartialGamePictureSpot = content.isPartialGamePictureSpot;
|
|
24
|
+
exports.isPartialGameSwipingCards = content.isPartialGameSwipingCards;
|
|
18
25
|
exports.Languages = multilingual.Languages;
|
|
19
26
|
exports.isLanguageCode = multilingual.isLanguageCode;
|
|
20
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/cdn/cdn.factory.js
CHANGED
|
@@ -20,7 +20,7 @@ const imgixTransformationQueries = ({ fit, width, height, quality, compress = tr
|
|
|
20
20
|
return searchParams ? `${searchParams}` : '';
|
|
21
21
|
};
|
|
22
22
|
const twicpicsTransformationQueries = (params) => {
|
|
23
|
-
const quality = params.quality ||
|
|
23
|
+
const quality = params.quality || 70;
|
|
24
24
|
const transformations = [['quality', quality]];
|
|
25
25
|
const dpr = params.devicePixelRatio || 1;
|
|
26
26
|
const width = params.width ? Math.round(params.width * dpr) : '-';
|
package/cdn/cdn.factory.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdn.factory.js","sources":["../../src/cdn/cdn.factory.ts"],"sourcesContent":["import { buildSearchParams } from '../http/build-search-params';\nimport type { CdnConfig, CdnType, TransformationQueries, TwicpicsTransformationChain } from './types';\nimport { getCdnFromS3UrlFactory } from './utils/get-cdn-from-s3-url.util';\nimport { getCdnUrlFactory } from './utils/get-cdn-url.util';\nimport { twicpicsTransformationChainToString } from './utils/twicpics-transformations.util';\n\nexport const imgixTransformationQueries: TransformationQueries = ({\n fit,\n width,\n height,\n quality,\n compress = true,\n devicePixelRatio,\n}) => {\n const params = {\n auto: compress ? 'compress,format' : undefined,\n fit: fit === 'crop' ? 'crop' : undefined,\n dpr: Number.isFinite(devicePixelRatio) ? devicePixelRatio : undefined,\n h: Number.isFinite(height) ? height : undefined,\n w: Number.isFinite(width) ? width : undefined,\n q: quality !== undefined && quality >= 0 && quality <= 100 ? quality : undefined,\n };\n const searchParams = buildSearchParams(params).toString();\n\n return searchParams ? `${searchParams}` : '';\n};\n\nexport const twicpicsTransformationQueries: TransformationQueries = (params) => {\n const quality = params.quality ||
|
|
1
|
+
{"version":3,"file":"cdn.factory.js","sources":["../../src/cdn/cdn.factory.ts"],"sourcesContent":["import { buildSearchParams } from '../http/build-search-params';\nimport type { CdnConfig, CdnType, TransformationQueries, TwicpicsTransformationChain } from './types';\nimport { getCdnFromS3UrlFactory } from './utils/get-cdn-from-s3-url.util';\nimport { getCdnUrlFactory } from './utils/get-cdn-url.util';\nimport { twicpicsTransformationChainToString } from './utils/twicpics-transformations.util';\n\nexport const imgixTransformationQueries: TransformationQueries = ({\n fit,\n width,\n height,\n quality,\n compress = true,\n devicePixelRatio,\n}) => {\n const params = {\n auto: compress ? 'compress,format' : undefined,\n fit: fit === 'crop' ? 'crop' : undefined,\n dpr: Number.isFinite(devicePixelRatio) ? devicePixelRatio : undefined,\n h: Number.isFinite(height) ? height : undefined,\n w: Number.isFinite(width) ? width : undefined,\n q: quality !== undefined && quality >= 0 && quality <= 100 ? quality : undefined,\n };\n const searchParams = buildSearchParams(params).toString();\n\n return searchParams ? `${searchParams}` : '';\n};\n\nexport const twicpicsTransformationQueries: TransformationQueries = (params) => {\n const quality = params.quality || 70;\n const transformations: TwicpicsTransformationChain = [['quality', quality]];\n const dpr = params.devicePixelRatio || 1;\n\n const width = params.width ? Math.round(params.width * dpr) : '-';\n const height = params.height ? Math.round(params.height * dpr) : '-';\n const fit = params.fit || 'cover';\n\n if (params.width !== undefined || params.height !== undefined) {\n transformations.push([fit, `${width}x${height}`]);\n }\n\n if (params.output !== undefined) {\n transformations.push(['output', params.output]);\n }\n\n return twicpicsTransformationChainToString(transformations);\n};\n\n/**\n *\n * @param type cdn provider: 'twicpics' | 'imgix'\n * @param domain provider domain\n * @param instanceMapper domain + the result of the instanceMapper will form the base path\n * @param cacheVersion\n * @returns \\{ getCdnUrl, transformationQueries \\}\n */\nexport const createCdn = <T extends CdnType>({ type, domain, instanceMapper, cacheVersion }: CdnConfig<T>) => {\n const getCdnUrl = getCdnUrlFactory({\n domain,\n instanceMapper,\n transformationQueries: type === 'imgix' ? imgixTransformationQueries : twicpicsTransformationQueries,\n cacheVersion,\n });\n\n return {\n getCdnUrl,\n getCdnFromS3Url: getCdnFromS3UrlFactory({\n getCdnUrl,\n }),\n };\n};\n"],"names":["buildSearchParams","twicpicsTransformationChainToString","getCdnUrlFactory","getCdnFromS3UrlFactory"],"mappings":";;;;;;;;;MAMa,0BAA0B,GAA0B,CAAC,EAChE,GAAG,EACH,KAAK,EACL,MAAM,EACN,OAAO,EACP,QAAQ,GAAG,IAAI,EACf,gBAAgB,GACjB,KAAI;AACH,IAAA,MAAM,MAAM,GAAG;QACb,IAAI,EAAE,QAAQ,GAAG,iBAAiB,GAAG,SAAS;QAC9C,GAAG,EAAE,GAAG,KAAK,MAAM,GAAG,MAAM,GAAG,SAAS;AACxC,QAAA,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,GAAG,SAAS;AACrE,QAAA,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,GAAG,SAAS;AAC/C,QAAA,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,SAAS;AAC7C,QAAA,CAAC,EAAE,OAAO,KAAK,SAAS,IAAI,OAAO,IAAI,CAAC,IAAI,OAAO,IAAI,GAAG,GAAG,OAAO,GAAG,SAAS;KACjF,CAAC;IACF,MAAM,YAAY,GAAGA,mCAAiB,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC;IAE1D,OAAO,YAAY,GAAG,CAAA,EAAG,YAAY,CAAA,CAAE,GAAG,EAAE,CAAC;AAC/C,EAAE;AAEW,MAAA,6BAA6B,GAA0B,CAAC,MAAM,KAAI;AAC7E,IAAA,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;IACrC,MAAM,eAAe,GAAgC,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAC5E,IAAA,MAAM,GAAG,GAAG,MAAM,CAAC,gBAAgB,IAAI,CAAC,CAAC;IAEzC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;IAClE,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;AACrE,IAAA,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,IAAI,OAAO,CAAC;IAElC,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS,EAAE;AAC7D,QAAA,eAAe,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,CAAG,EAAA,KAAK,CAAI,CAAA,EAAA,MAAM,CAAE,CAAA,CAAC,CAAC,CAAC;AACnD,KAAA;AAED,IAAA,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS,EAAE;QAC/B,eAAe,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;AACjD,KAAA;AAED,IAAA,OAAOC,gEAAmC,CAAC,eAAe,CAAC,CAAC;AAC9D,EAAE;AAEF;;;;;;;AAOG;AACI,MAAM,SAAS,GAAG,CAAoB,EAAE,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,YAAY,EAAgB,KAAI;IAC3G,MAAM,SAAS,GAAGC,+BAAgB,CAAC;QACjC,MAAM;QACN,cAAc;QACd,qBAAqB,EAAE,IAAI,KAAK,OAAO,GAAG,0BAA0B,GAAG,6BAA6B;QACpG,YAAY;AACb,KAAA,CAAC,CAAC;IAEH,OAAO;QACL,SAAS;QACT,eAAe,EAAEC,2CAAsB,CAAC;YACtC,SAAS;SACV,CAAC;KACH,CAAC;AACJ;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sparted/shared-library",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"repository": "git@github.com:Sparted/shared-library.git",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Sparted",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@ungap/structured-clone": "^1.2.0"
|
|
63
|
+
"@ungap/structured-clone": "^1.2.0",
|
|
64
|
+
"ts-essentials": "^9.4.1"
|
|
64
65
|
}
|
|
65
66
|
}
|