@everymatrix/lottery-program-wof 1.44.0 → 1.45.5

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.
Files changed (77) hide show
  1. package/components/LotteryProgramWof-BmbbvZLs.js +7919 -0
  2. package/components/LotteryProgramWof-C1oFwmfG.cjs +30 -0
  3. package/es2015/lottery-program-wof.cjs +1 -0
  4. package/es2015/lottery-program-wof.js +16 -0
  5. package/package.json +15 -37
  6. package/CHANGELOG.md +0 -12
  7. package/README.md +0 -30
  8. package/babel.config.js +0 -6
  9. package/dist/lottery-program-wof.js +0 -11886
  10. package/dist/lottery-program-wof.js.map +0 -1
  11. package/index.html +0 -42
  12. package/index.js +0 -1
  13. package/public/favicon.png +0 -0
  14. package/public/reset.css +0 -48
  15. package/rollup.config.js +0 -61
  16. package/src/LotteryProgramWof.svelte +0 -214
  17. package/src/api/api.ts +0 -2016
  18. package/src/api/configuration.ts +0 -65
  19. package/src/api/custom.d.ts +0 -2
  20. package/src/api/index.ts +0 -15
  21. package/src/business.partition.ts +0 -98
  22. package/src/business.ts +0 -186
  23. package/src/calc.point.ts +0 -67
  24. package/src/calc.temp.ts +0 -29
  25. package/src/calc.ts +0 -28
  26. package/src/class.process.ts +0 -130
  27. package/src/class.spinable.ts +0 -60
  28. package/src/class.spinable.util.ts +0 -10
  29. package/src/class.spinner.ts +0 -176
  30. package/src/class.spinner.util.ts +0 -92
  31. package/src/class.svgcalc.ts +0 -249
  32. package/src/i18n.ts +0 -38
  33. package/src/images/Thankyou_1.svg +0 -100
  34. package/src/images/Thankyou_2.svg +0 -112
  35. package/src/images/Thankyou_3.svg +0 -87
  36. package/src/images/Thankyou_4.svg +0 -114
  37. package/src/images/gift.svg +0 -964
  38. package/src/images/theme.bg.blackring.svg +0 -10
  39. package/src/images/theme.bg.halo.svg +0 -27
  40. package/src/images/theme1Bg3.svg +0 -15
  41. package/src/images/theme2Arrow.svg +0 -24
  42. package/src/images/theme2Bg3.svg +0 -11
  43. package/src/images/theme2Center.svg +0 -36
  44. package/src/images/theme3Arrow.svg +0 -25
  45. package/src/images/theme3Bg1.svg +0 -29
  46. package/src/images/theme3Bg2.svg +0 -19
  47. package/src/images/theme3Center.svg +0 -77
  48. package/src/images/theme7Arrow.svg +0 -67
  49. package/src/images/theme7Bg1.svg +0 -786
  50. package/src/images/theme7Bg2.svg +0 -40
  51. package/src/images/theme7Bg3.svg +0 -26
  52. package/src/images/theme7Center.svg +0 -72
  53. package/src/images/theme7Light.svg +0 -17
  54. package/src/images/themeCenter1.svg +0 -76
  55. package/src/images/themeCenter2.svg +0 -58
  56. package/src/images/themePartitionLight.svg +0 -19
  57. package/src/images/themePointerArea.svg +0 -44
  58. package/src/images/themeShadow.svg +0 -27
  59. package/src/index.ts +0 -4
  60. package/src/message.ts +0 -28
  61. package/src/private.item.svelte +0 -172
  62. package/src/private.item.svg.scss +0 -302
  63. package/src/private.item.svg.svelte +0 -356
  64. package/src/private.loader.svelte +0 -61
  65. package/src/private.message.svelte +0 -236
  66. package/src/private.outcomes.svelte +0 -203
  67. package/src/private.tabs.svelte +0 -106
  68. package/src/themes.image.center.ts +0 -68
  69. package/src/themes.ts +0 -52
  70. package/src/translations.js +0 -218
  71. package/src/types.business.ts +0 -20
  72. package/src/types.ts +0 -79
  73. package/src/util.ts +0 -90
  74. package/src/widget.ts +0 -27
  75. package/stories/LotteryProgramWof.stories.js +0 -13
  76. package/svelte.config.js +0 -7
  77. package/tsconfig.json +0 -11
package/src/api/api.ts DELETED
@@ -1,2016 +0,0 @@
1
- /// <reference path="./custom.d.ts" />
2
- // tslint:disable
3
- /**
4
- * BE.Server
5
- * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6
- *
7
- * OpenAPI spec version: 1.0
8
- *
9
- *
10
- * NOTE: This file is auto generated by the swagger code generator program.
11
- * https://github.com/swagger-api/swagger-codegen.git
12
- * Do not edit the file manually.
13
- */
14
-
15
- import * as url from "url";
16
- import * as isomorphicFetch from "isomorphic-fetch";
17
- import type { Configuration } from "./configuration";
18
-
19
- const BASE_PATH = "/".replace(/\/+$/, "");
20
-
21
- /**
22
- *
23
- * @export
24
- */
25
- export const COLLECTION_FORMATS = {
26
- csv: ",",
27
- ssv: " ",
28
- tsv: "\t",
29
- pipes: "|",
30
- };
31
-
32
- /**
33
- *
34
- * @export
35
- * @interface FetchAPI
36
- */
37
- export interface FetchAPI {
38
- (url: string, init?: any): Promise<Response>;
39
- }
40
-
41
- /**
42
- *
43
- * @export
44
- * @interface FetchArgs
45
- */
46
- export interface FetchArgs {
47
- url: string;
48
- options: any;
49
- }
50
-
51
- /**
52
- *
53
- * @export
54
- * @class BaseAPI
55
- */
56
- export class BaseAPI {
57
- protected configuration: Configuration;
58
-
59
- constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected fetch: FetchAPI = isomorphicFetch) {
60
- if (configuration) {
61
- this.configuration = configuration;
62
- this.basePath = configuration.basePath || this.basePath;
63
- }
64
- }
65
- };
66
-
67
- /**
68
- *
69
- * @export
70
- * @class RequiredError
71
- * @extends {Error}
72
- */
73
- export class RequiredError extends Error {
74
- name: "RequiredError"
75
- constructor(public field: string, msg?: string) {
76
- super(msg);
77
- }
78
- }
79
-
80
- /**
81
- *
82
- * @export
83
- * @interface ActionBase
84
- */
85
- export interface ActionBase {
86
- /**
87
- *
88
- * @type {string}
89
- * @memberof ActionBase
90
- */
91
- type?: string;
92
- }
93
- /**
94
- * Domain information
95
- * @export
96
- * @interface DomainRecord
97
- */
98
- export interface DomainRecord {
99
- /**
100
- * Domain ID
101
- * @type {number}
102
- * @memberof DomainRecord
103
- */
104
- id?: number;
105
- /**
106
- * Domain Name
107
- * @type {string}
108
- * @memberof DomainRecord
109
- */
110
- name?: string;
111
- /**
112
- * Domain Path
113
- * @type {string}
114
- * @memberof DomainRecord
115
- */
116
- path?: string;
117
- /**
118
- * If UBS is enabled for this domain
119
- * @type {boolean}
120
- * @memberof DomainRecord
121
- */
122
- ubsEnabled?: boolean;
123
- /**
124
- * If BRE enabled for this domain
125
- * @type {boolean}
126
- * @memberof DomainRecord
127
- */
128
- lotteryEnabled?: boolean;
129
- /**
130
- * Database name
131
- * @type {string}
132
- * @memberof DomainRecord
133
- */
134
- databaseName?: string;
135
- }
136
- /**
137
- *
138
- * @export
139
- * @interface ErrorDetail
140
- */
141
- export interface ErrorDetail {
142
- /**
143
- *
144
- * @type {Date}
145
- * @memberof ErrorDetail
146
- */
147
- time?: Date;
148
- /**
149
- *
150
- * @type {string}
151
- * @memberof ErrorDetail
152
- */
153
- server?: string;
154
- /**
155
- *
156
- * @type {string}
157
- * @memberof ErrorDetail
158
- */
159
- error?: string;
160
- /**
161
- *
162
- * @type {string}
163
- * @memberof ErrorDetail
164
- */
165
- verb?: string;
166
- /**
167
- *
168
- * @type {string}
169
- * @memberof ErrorDetail
170
- */
171
- path?: string;
172
- /**
173
- *
174
- * @type {string}
175
- * @memberof ErrorDetail
176
- */
177
- query?: string;
178
- /**
179
- *
180
- * @type {Array<string>}
181
- * @memberof ErrorDetail
182
- */
183
- stackTrace?: Array<string>;
184
- }
185
- /**
186
- *
187
- * @export
188
- * @interface ILotteryProgramRecurrence
189
- */
190
- export interface ILotteryProgramRecurrence {
191
- /**
192
- *
193
- * @type {Date}
194
- * @memberof ILotteryProgramRecurrence
195
- */
196
- startTime?: Date;
197
- /**
198
- *
199
- * @type {Date}
200
- * @memberof ILotteryProgramRecurrence
201
- */
202
- endTime?: Date;
203
- /**
204
- *
205
- * @type {number}
206
- * @memberof ILotteryProgramRecurrence
207
- */
208
- maxImplicitTickets?: number;
209
- /**
210
- *
211
- * @type {number}
212
- * @memberof ILotteryProgramRecurrence
213
- */
214
- usedImplicitTickets?: number;
215
- /**
216
- *
217
- * @type {number}
218
- * @memberof ILotteryProgramRecurrence
219
- */
220
- activeTickets?: number;
221
-
222
- remainingTimes?: number;
223
- }
224
- /**
225
- *
226
- * @export
227
- * @interface LotteryProgram
228
- */
229
- export interface LotteryProgram {
230
- /**
231
- *
232
- * @type {number}
233
- * @memberof LotteryProgram
234
- */
235
- id?: string;
236
- /**
237
- *
238
- * @type {string}
239
- * @memberof LotteryProgram
240
- */
241
- version?: string;
242
- /**
243
- *
244
- * @type {string}
245
- * @memberof LotteryProgram
246
- */
247
- baseCurrency?: string;
248
- /**
249
- *
250
- * @type {{ [key: string]: string; }}
251
- * @memberof LotteryProgram
252
- */
253
- name?: { [key: string]: string; };
254
- /**
255
- *
256
- * @type {LotteryProgramType}
257
- * @memberof LotteryProgram
258
- */
259
- type?: LotteryProgramType;
260
- /**
261
- *
262
- * @type {LotteryProgramStatus}
263
- * @memberof LotteryProgram
264
- */
265
- status?: LotteryProgramStatus;
266
- /**
267
- *
268
- * @type {Trigger}
269
- * @memberof LotteryProgram
270
- */
271
- trigger?: Trigger;
272
- /**
273
- *
274
- * @type {WheelOfFortune}
275
- * @memberof LotteryProgram
276
- */
277
- wheelOfFortune?: WheelOfFortune;
278
- /**
279
- *
280
- * @type {string}
281
- * @memberof LotteryProgram
282
- */
283
- editor?: string;
284
- /**
285
- *
286
- * @type {Date}
287
- * @memberof LotteryProgram
288
- */
289
- time?: Date;
290
- metadata?: {
291
- [key: string]: string
292
- }
293
- }
294
- /**
295
- *
296
- * @export
297
- * @interface LotteryProgramActionOutcome
298
- */
299
- export interface LotteryProgramActionOutcome {
300
- /**
301
- *
302
- * @type {ActionBase}
303
- * @memberof LotteryProgramActionOutcome
304
- */
305
- action?: ActionBase;
306
- /**
307
- *
308
- * @type {string}
309
- * @memberof LotteryProgramActionOutcome
310
- */
311
- nonce?: string;
312
- /**
313
- *
314
- * @type {boolean}
315
- * @memberof LotteryProgramActionOutcome
316
- */
317
- completed?: boolean;
318
- /**
319
- *
320
- * @type {number}
321
- * @memberof LotteryProgramActionOutcome
322
- */
323
- attempts?: number;
324
- /**
325
- *
326
- * @type {string}
327
- * @memberof LotteryProgramActionOutcome
328
- */
329
- lastError?: string;
330
- /**
331
- *
332
- * @type {number}
333
- * @memberof LotteryProgramActionOutcome
334
- */
335
- bonusWalletID?: number;
336
- }
337
- /**
338
- *
339
- * @export
340
- * @interface LotteryProgramDraw
341
- */
342
- export interface LotteryProgramDraw {
343
- /**
344
- *
345
- * @type {number}
346
- * @memberof LotteryProgramDraw
347
- */
348
- id?: number;
349
- /**
350
- *
351
- * @type {number}
352
- * @memberof LotteryProgramDraw
353
- */
354
- lotteryProgramID?: number;
355
- /**
356
- *
357
- * @type {string}
358
- * @memberof LotteryProgramDraw
359
- */
360
- lotteryProgramVersion?: string;
361
- /**
362
- *
363
- * @type {number}
364
- * @memberof LotteryProgramDraw
365
- */
366
- lotteryProgramTicketID?: number;
367
- /**
368
- *
369
- * @type {string}
370
- * @memberof LotteryProgramDraw
371
- */
372
- idempotencyKey?: string;
373
- /**
374
- *
375
- * @type {string}
376
- * @memberof LotteryProgramDraw
377
- */
378
- userID?: string;
379
- /**
380
- *
381
- * @type {LotteryProgramResultState}
382
- * @memberof LotteryProgramDraw
383
- */
384
- state?: LotteryProgramResultState;
385
- /**
386
- *
387
- * @type {LotteryProgramDrawResult}
388
- * @memberof LotteryProgramDraw
389
- */
390
- result?: LotteryProgramDrawResult;
391
- /**
392
- *
393
- * @type {Date}
394
- * @memberof LotteryProgramDraw
395
- */
396
- time?: Date;
397
- /**
398
- *
399
- * @type {string}
400
- * @memberof LotteryProgramDraw
401
- */
402
- version?: string;
403
- }
404
- /**
405
- *
406
- * @export
407
- * @interface LotteryProgramDrawFailure
408
- */
409
- export interface LotteryProgramDrawFailure {
410
- /**
411
- *
412
- * @type {string}
413
- * @memberof LotteryProgramDrawFailure
414
- */
415
- message?: string;
416
- /**
417
- *
418
- * @type {string}
419
- * @memberof LotteryProgramDrawFailure
420
- */
421
- errorCode?: string;
422
- /**
423
- *
424
- * @type {{ [key: string]: string; }}
425
- * @memberof LotteryProgramDrawFailure
426
- */
427
- properties?: { [key: string]: string; };
428
- }
429
- /**
430
- *
431
- * @export
432
- * @interface LotteryProgramDrawLotteryProgramTicketIQueryLotteryProgramOutcome
433
- */
434
- export interface LotteryProgramDrawLotteryProgramTicketIQueryLotteryProgramOutcome {
435
- /**
436
- *
437
- * @type {LotteryProgramDraw}
438
- * @memberof LotteryProgramDrawLotteryProgramTicketIQueryLotteryProgramOutcome
439
- */
440
- draw?: LotteryProgramDraw;
441
- /**
442
- *
443
- * @type {LotteryProgramTicket}
444
- * @memberof LotteryProgramDrawLotteryProgramTicketIQueryLotteryProgramOutcome
445
- */
446
- ticket?: LotteryProgramTicket;
447
- }
448
- /**
449
- *
450
- * @export
451
- * @interface LotteryProgramDrawLotteryProgramTicketIQueryLotteryProgramOutcomeResult
452
- */
453
- export interface LotteryProgramDrawLotteryProgramTicketIQueryLotteryProgramOutcomeResult {
454
- /**
455
- *
456
- * @type {Array<LotteryProgramDrawLotteryProgramTicketIQueryLotteryProgramOutcome>}
457
- * @memberof LotteryProgramDrawLotteryProgramTicketIQueryLotteryProgramOutcomeResult
458
- */
459
- outcomes?: Array<LotteryProgramDrawLotteryProgramTicketIQueryLotteryProgramOutcome>;
460
- /**
461
- *
462
- * @type {number}
463
- * @memberof LotteryProgramDrawLotteryProgramTicketIQueryLotteryProgramOutcomeResult
464
- */
465
- totalRecords?: number;
466
- }
467
- /**
468
- *
469
- * @export
470
- * @interface LotteryProgramDrawResult
471
- */
472
- export interface LotteryProgramDrawResult {
473
- /**
474
- *
475
- * @type {number}
476
- * @memberof LotteryProgramDrawResult
477
- */
478
- wheelOfFortunePartitionIndex?: number;
479
- /**
480
- *
481
- * @type {Array<LotteryProgramActionOutcome>}
482
- * @memberof LotteryProgramDrawResult
483
- */
484
- outcomes?: Array<LotteryProgramActionOutcome>;
485
- }
486
- /**
487
- *
488
- * @export
489
- * @interface LotteryProgramFailure
490
- */
491
- export interface LotteryProgramFailure {
492
- /**
493
- *
494
- * @type {string}
495
- * @memberof LotteryProgramFailure
496
- */
497
- propertyName?: string;
498
- /**
499
- *
500
- * @type {string}
501
- * @memberof LotteryProgramFailure
502
- */
503
- message?: string;
504
- }
505
- /**
506
- *
507
- * @export
508
- * @interface LotteryProgramILotteryProgramForPlayer
509
- */
510
- export interface LotteryProgramILotteryProgramForPlayer {
511
- /**
512
- *
513
- * @type {LotteryProgram}
514
- * @memberof LotteryProgramILotteryProgramForPlayer
515
- */
516
- program?: LotteryProgram;
517
- /**
518
- *
519
- * @type {ILotteryProgramRecurrence}
520
- * @memberof LotteryProgramILotteryProgramForPlayer
521
- */
522
- current?: ILotteryProgramRecurrence;
523
- /**
524
- *
525
- * @type {ILotteryProgramRecurrence}
526
- * @memberof LotteryProgramILotteryProgramForPlayer
527
- */
528
- next?: ILotteryProgramRecurrence;
529
- }
530
- /**
531
- *
532
- * @export
533
- * @interface LotteryProgramIPagedResult
534
- */
535
- export interface LotteryProgramIPagedResult {
536
- /**
537
- *
538
- * @type {Array<LotteryProgram>}
539
- * @memberof LotteryProgramIPagedResult
540
- */
541
- values?: Array<LotteryProgram>;
542
- /**
543
- *
544
- * @type {number}
545
- * @memberof LotteryProgramIPagedResult
546
- */
547
- totalRecords?: number;
548
- }
549
- /**
550
- *
551
- * @export
552
- * @interface LotteryProgramIQueryLotteryProgramForPlayerResult
553
- */
554
- export interface LotteryProgramIQueryLotteryProgramForPlayerResult {
555
- /**
556
- *
557
- * @type {Array<LotteryProgramILotteryProgramForPlayer>}
558
- * @memberof LotteryProgramIQueryLotteryProgramForPlayerResult
559
- */
560
- items?: Array<LotteryProgramILotteryProgramForPlayer>;
561
- /**
562
- *
563
- * @type {number}
564
- * @memberof LotteryProgramIQueryLotteryProgramForPlayerResult
565
- */
566
- totalRecords?: number;
567
- }
568
- /**
569
- *
570
- * @export
571
- * @enum {string}
572
- */
573
- export enum LotteryProgramResultState {
574
- Open = <any> 'open',
575
- Drawn = <any> 'drawn',
576
- Fulfilled = <any> 'fulfilled'
577
- }
578
- /**
579
- *
580
- * @export
581
- * @enum {string}
582
- */
583
- export enum LotteryProgramStatus {
584
- Incomplete = <any> 'incomplete',
585
- Active = <any> 'active',
586
- Inactive = <any> 'inactive',
587
- Deleted = <any> 'deleted'
588
- }
589
- /**
590
- *
591
- * @export
592
- * @interface LotteryProgramTicket
593
- */
594
- export interface LotteryProgramTicket {
595
- /**
596
- *
597
- * @type {number}
598
- * @memberof LotteryProgramTicket
599
- */
600
- id?: number;
601
- /**
602
- *
603
- * @type {string}
604
- * @memberof LotteryProgramTicket
605
- */
606
- idempotencyKey?: string;
607
- /**
608
- *
609
- * @type {LotteryProgramTicketType}
610
- * @memberof LotteryProgramTicket
611
- */
612
- type?: LotteryProgramTicketType;
613
- /**
614
- *
615
- * @type {LotteryProgramTicketStatus}
616
- * @memberof LotteryProgramTicket
617
- */
618
- status?: LotteryProgramTicketStatus;
619
- /**
620
- *
621
- * @type {number}
622
- * @memberof LotteryProgramTicket
623
- */
624
- lotteryProgramID?: number;
625
- /**
626
- *
627
- * @type {string}
628
- * @memberof LotteryProgramTicket
629
- */
630
- userID?: string;
631
- /**
632
- *
633
- * @type {number}
634
- * @memberof LotteryProgramTicket
635
- */
636
- totalTimes?: number;
637
- /**
638
- *
639
- * @type {number}
640
- * @memberof LotteryProgramTicket
641
- */
642
- remainingTimes?: number;
643
- /**
644
- *
645
- * @type {string}
646
- * @memberof LotteryProgramTicket
647
- */
648
- version?: string;
649
- /**
650
- *
651
- * @type {Date}
652
- * @memberof LotteryProgramTicket
653
- */
654
- time?: Date;
655
- }
656
- /**
657
- *
658
- * @export
659
- * @enum {string}
660
- */
661
- export enum LotteryProgramTicketStatus {
662
- Unspecific = <any> 'unspecific',
663
- Active = <any> 'active',
664
- Used = <any> 'used'
665
- }
666
- /**
667
- *
668
- * @export
669
- * @enum {string}
670
- */
671
- export enum LotteryProgramTicketType {
672
- Unspecific = <any> 'unspecific',
673
- Implicit = <any> 'implicit',
674
- Derivative = <any> 'derivative',
675
- Explicit = <any> 'explicit'
676
- }
677
- /**
678
- *
679
- * @export
680
- * @enum {string}
681
- */
682
- export enum LotteryProgramType {
683
- Unspecific = <any> 'unspecific',
684
- WheelOfFortune = <any> 'wheelOfFortune'
685
- }
686
- /**
687
- *
688
- * @export
689
- * @interface PostAction
690
- */
691
- export interface PostAction {
692
- /**
693
- *
694
- * @type {string}
695
- * @memberof PostAction
696
- */
697
- type?: string;
698
- }
699
- /**
700
- *
701
- * @export
702
- * @interface QueryLotteryProgramOutcomeResult
703
- */
704
- export interface QueryLotteryProgramOutcomeResult {
705
- /**
706
- *
707
- * @type {Array<LotteryProgramDrawLotteryProgramTicketIQueryLotteryProgramOutcome>}
708
- * @memberof QueryLotteryProgramOutcomeResult
709
- */
710
- outcomes?: Array<LotteryProgramDrawLotteryProgramTicketIQueryLotteryProgramOutcome>;
711
- /**
712
- *
713
- * @type {number}
714
- * @memberof QueryLotteryProgramOutcomeResult
715
- */
716
- totalRecords?: number;
717
- }
718
- /**
719
- *
720
- * @export
721
- * @enum {string}
722
- */
723
- export enum RecurrenceDurationScale {
724
- None = <any> 'none',
725
- Minute = <any> 'minute',
726
- Day = <any> 'day',
727
- Month = <any> 'month'
728
- }
729
- /**
730
- *
731
- * @export
732
- * @interface RecurrencePeriod
733
- */
734
- export interface RecurrencePeriod {
735
- /**
736
- *
737
- * @type {Date}
738
- * @memberof RecurrencePeriod
739
- */
740
- startTime?: Date;
741
- /**
742
- *
743
- * @type {Date}
744
- * @memberof RecurrencePeriod
745
- */
746
- endTime?: Date;
747
- /**
748
- *
749
- * @type {RecurrenceDurationScale}
750
- * @memberof RecurrencePeriod
751
- */
752
- scale?: RecurrenceDurationScale;
753
- /**
754
- *
755
- * @type {number}
756
- * @memberof RecurrencePeriod
757
- */
758
- duration?: number;
759
- /**
760
- *
761
- * @type {RecurrencePeriodGap}
762
- * @memberof RecurrencePeriod
763
- */
764
- headGap?: RecurrencePeriodGap;
765
- /**
766
- *
767
- * @type {RecurrencePeriodGap}
768
- * @memberof RecurrencePeriod
769
- */
770
- tailGap?: RecurrencePeriodGap;
771
- /**
772
- *
773
- * @type {number}
774
- * @memberof RecurrencePeriod
775
- */
776
- maxImplicitTickets?: number;
777
- }
778
- /**
779
- *
780
- * @export
781
- * @interface RecurrencePeriodGap
782
- */
783
- export interface RecurrencePeriodGap {
784
- /**
785
- *
786
- * @type {RecurrenceDurationScale}
787
- * @memberof RecurrencePeriodGap
788
- */
789
- scale?: RecurrenceDurationScale;
790
- /**
791
- *
792
- * @type {number}
793
- * @memberof RecurrencePeriodGap
794
- */
795
- duration?: number;
796
- }
797
- /**
798
- *
799
- * @export
800
- * @interface Trigger
801
- */
802
- export interface Trigger {
803
- /**
804
- *
805
- * @type {Date}
806
- * @memberof Trigger
807
- */
808
- startTime?: Date;
809
- /**
810
- *
811
- * @type {Date}
812
- * @memberof Trigger
813
- */
814
- endTime?: Date;
815
- /**
816
- *
817
- * @type {{ [key: string]: string; }}
818
- * @memberof Trigger
819
- */
820
- allowedRole?: { [key: string]: string; };
821
- /**
822
- *
823
- * @type {{ [key: string]: string; }}
824
- * @memberof Trigger
825
- */
826
- deniedRole?: { [key: string]: string; };
827
- /**
828
- *
829
- * @type {Array<RecurrencePeriod>}
830
- * @memberof Trigger
831
- */
832
- periods?: Array<RecurrencePeriod>;
833
- }
834
- /**
835
- *
836
- * @export
837
- * @interface WheelOfFortune
838
- */
839
- export interface WheelOfFortune {
840
- /**
841
- *
842
- * @type {Array<WheelOfFortunePartition>}
843
- * @memberof WheelOfFortune
844
- */
845
- partitions?: Array<WheelOfFortunePartition>;
846
- }
847
- /**
848
- *
849
- * @export
850
- * @interface WheelOfFortunePartition
851
- */
852
- export interface WheelOfFortunePartition {
853
- /**
854
- *
855
- * @type {{ [key: string]: string; }}
856
- * @memberof WheelOfFortunePartition
857
- */
858
- name?: { [key: string]: string; };
859
- /**
860
- *
861
- * @type {{ [key: string]: string; }}
862
- * @memberof WheelOfFortunePartition
863
- */
864
- image1?: { [key: string]: string; };
865
- /**
866
- *
867
- * @type {{ [key: string]: string; }}
868
- * @memberof WheelOfFortunePartition
869
- */
870
- image2?: { [key: string]: string; };
871
- /**
872
- *
873
- * @type {{ [key: string]: string; }}
874
- * @memberof WheelOfFortunePartition
875
- */
876
- image3?: { [key: string]: string; };
877
- /**
878
- *
879
- * @type {number}
880
- * @memberof WheelOfFortunePartition
881
- */
882
- probability?: number;
883
- /**
884
- *
885
- * @type {Array<WheelOfFortunePartitionRule>}
886
- * @memberof WheelOfFortunePartition
887
- */
888
- rules?: Array<WheelOfFortunePartitionRule>;
889
- }
890
- /**
891
- *
892
- * @export
893
- * @interface WheelOfFortunePartitionRule
894
- */
895
- export interface WheelOfFortunePartitionRule {
896
- /**
897
- *
898
- * @type {WhenConditionBase}
899
- * @memberof WheelOfFortunePartitionRule
900
- */
901
- when?: WhenConditionBase;
902
- /**
903
- *
904
- * @type {ActionBase}
905
- * @memberof WheelOfFortunePartitionRule
906
- */
907
- then?: ActionBase;
908
- /**
909
- *
910
- * @type {PostAction}
911
- * @memberof WheelOfFortunePartitionRule
912
- */
913
- andThen?: PostAction;
914
- }
915
- /**
916
- *
917
- * @export
918
- * @interface WhenConditionBase
919
- */
920
- export interface WhenConditionBase {
921
- /**
922
- *
923
- * @type {string}
924
- * @memberof WhenConditionBase
925
- */
926
- evaluator?: string;
927
- }
928
- /**
929
- * LotteryProgramApi - fetch parameter creator
930
- * @export
931
- */
932
- export const LotteryProgramApiFetchParamCreator = function (configuration?: Configuration) {
933
- return {
934
- /**
935
- *
936
- * @summary Delete lottery programs by id
937
- * @param {number} domainID
938
- * @param {Array<number>} [lotteryProgramID]
939
- * @param {*} [options] Override http request option.
940
- * @throws {RequiredError}
941
- */
942
- deleteLotteryProgram(domainID: number, lotteryProgramID?: Array<number>, options: any = {}): FetchArgs {
943
- // verify required parameter 'domainID' is not null or undefined
944
- if (domainID === null || domainID === undefined) {
945
- throw new RequiredError('domainID','Required parameter domainID was null or undefined when calling deleteLotteryProgram.');
946
- }
947
- const localVarPath = `/lottery/program/{domainID}`
948
- .replace(`{${"domainID"}}`, encodeURIComponent(String(domainID)));
949
- const localVarUrlObj = url.parse(localVarPath, true);
950
- const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
951
- const localVarHeaderParameter = {} as any;
952
- const localVarQueryParameter = {} as any;
953
-
954
- // authentication Bearer required
955
-
956
- if (lotteryProgramID) {
957
- localVarQueryParameter['lotteryProgramID'] = lotteryProgramID;
958
- }
959
-
960
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
961
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
962
- delete localVarUrlObj.search;
963
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
964
-
965
- return {
966
- url: url.format(localVarUrlObj),
967
- options: localVarRequestOptions,
968
- };
969
- },
970
- /**
971
- *
972
- * @summary Frontnd API - Draw a lottery program
973
- * @param {number} domainID
974
- * @param {string} userID
975
- * @param {string} idempotencyKey
976
- * @param {number} [lotteryProgramID]
977
- * @param {*} [options] Override http request option.
978
- * @throws {RequiredError}
979
- */
980
- drawLotteryProgram(domainID: number, userID: string, idempotencyKey: string, lotteryProgramID?: number, options: any = {}): FetchArgs {
981
- // verify required parameter 'domainID' is not null or undefined
982
- if (domainID === null || domainID === undefined) {
983
- throw new RequiredError('domainID','Required parameter domainID was null or undefined when calling drawLotteryProgram.');
984
- }
985
- // verify required parameter 'userID' is not null or undefined
986
- if (userID === null || userID === undefined) {
987
- throw new RequiredError('userID','Required parameter userID was null or undefined when calling drawLotteryProgram.');
988
- }
989
- // verify required parameter 'idempotencyKey' is not null or undefined
990
- if (idempotencyKey === null || idempotencyKey === undefined) {
991
- throw new RequiredError('idempotencyKey','Required parameter idempotencyKey was null or undefined when calling drawLotteryProgram.');
992
- }
993
- const localVarPath = `/lottery/program/{domainID}/draw/{userID}/{idempotencyKey}`
994
- .replace(`{${"domainID"}}`, encodeURIComponent(String(domainID)))
995
- .replace(`{${"userID"}}`, encodeURIComponent(String(userID)))
996
- .replace(`{${"idempotencyKey"}}`, encodeURIComponent(String(idempotencyKey)));
997
- const localVarUrlObj = url.parse(localVarPath, true);
998
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
999
- const localVarHeaderParameter = {} as any;
1000
- const localVarQueryParameter = {} as any;
1001
-
1002
- // authentication Bearer required
1003
-
1004
- if (lotteryProgramID !== undefined) {
1005
- localVarQueryParameter['lotteryProgramID'] = lotteryProgramID;
1006
- }
1007
-
1008
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
1009
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1010
- delete localVarUrlObj.search;
1011
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
1012
-
1013
- return {
1014
- url: url.format(localVarUrlObj),
1015
- options: localVarRequestOptions,
1016
- };
1017
- },
1018
- /**
1019
- *
1020
- * @summary Query outcome of lottery program draws
1021
- * @param {number} domainID
1022
- * @param {Array<string>} [userID]
1023
- * @param {Array<string>} [idempotencyKey]
1024
- * @param {Array<number>} [lotteryProgramID]
1025
- * @param {Array<string>} [lotteryProgramVersion]
1026
- * @param {Array<LotteryProgramResultState>} [state]
1027
- * @param {number} [skipRecords]
1028
- * @param {number} [maxRecords]
1029
- * @param {*} [options] Override http request option.
1030
- * @throws {RequiredError}
1031
- */
1032
- getLotteryProgramOutcome(domainID: number, userID?: Array<string>, idempotencyKey?: Array<string>, lotteryProgramID?: Array<number>, lotteryProgramVersion?: Array<string>, state?: Array<LotteryProgramResultState>, skipRecords?: number, maxRecords?: number, options: any = {}): FetchArgs {
1033
- // verify required parameter 'domainID' is not null or undefined
1034
- if (domainID === null || domainID === undefined) {
1035
- throw new RequiredError('domainID','Required parameter domainID was null or undefined when calling getLotteryProgramOutcome.');
1036
- }
1037
- const localVarPath = `/lottery/program/{domainID}/outcome`
1038
- .replace(`{${"domainID"}}`, encodeURIComponent(String(domainID)));
1039
- const localVarUrlObj = url.parse(localVarPath, true);
1040
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
1041
- const localVarHeaderParameter = {} as any;
1042
- const localVarQueryParameter = {} as any;
1043
-
1044
- // authentication Bearer required
1045
-
1046
- if (userID) {
1047
- localVarQueryParameter['userID'] = userID;
1048
- }
1049
-
1050
- if (idempotencyKey) {
1051
- localVarQueryParameter['idempotencyKey'] = idempotencyKey;
1052
- }
1053
-
1054
- if (lotteryProgramID) {
1055
- localVarQueryParameter['lotteryProgramID'] = lotteryProgramID;
1056
- }
1057
-
1058
- if (lotteryProgramVersion) {
1059
- localVarQueryParameter['lotteryProgramVersion'] = lotteryProgramVersion;
1060
- }
1061
-
1062
- if (state) {
1063
- localVarQueryParameter['state'] = state;
1064
- }
1065
-
1066
- if (skipRecords !== undefined) {
1067
- localVarQueryParameter['skipRecords'] = skipRecords;
1068
- }
1069
-
1070
- if (maxRecords !== undefined) {
1071
- localVarQueryParameter['maxRecords'] = maxRecords;
1072
- }
1073
-
1074
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
1075
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1076
- delete localVarUrlObj.search;
1077
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
1078
-
1079
- return {
1080
- url: url.format(localVarUrlObj),
1081
- options: localVarRequestOptions,
1082
- };
1083
- },
1084
- /**
1085
- *
1086
- * @summary Frontend API -- query certain player's outcome of specific lottery program
1087
- * @param {number} domainID
1088
- * @param {string} userID
1089
- * @param {number} lotteryProgramID
1090
- * @param {number} [skipRecords]
1091
- * @param {number} [maxRecords]
1092
- * @param {*} [options] Override http request option.
1093
- * @throws {RequiredError}
1094
- */
1095
- getPlayerLotteryProgramOutcome(domainID: number, userID: string, lotteryProgramID: number, skipRecords?: number, maxRecords?: number, options: any = {}): FetchArgs {
1096
- // verify required parameter 'domainID' is not null or undefined
1097
- if (domainID === null || domainID === undefined) {
1098
- throw new RequiredError('domainID','Required parameter domainID was null or undefined when calling getPlayerLotteryProgramOutcome.');
1099
- }
1100
- // verify required parameter 'userID' is not null or undefined
1101
- if (userID === null || userID === undefined) {
1102
- throw new RequiredError('userID','Required parameter userID was null or undefined when calling getPlayerLotteryProgramOutcome.');
1103
- }
1104
- // verify required parameter 'lotteryProgramID' is not null or undefined
1105
- if (lotteryProgramID === null || lotteryProgramID === undefined) {
1106
- throw new RequiredError('lotteryProgramID','Required parameter lotteryProgramID was null or undefined when calling getPlayerLotteryProgramOutcome.');
1107
- }
1108
- const localVarPath = `/lottery/program/{domainID}/outcome/{lotteryProgramID}/{userID}`
1109
- .replace(`{${"domainID"}}`, encodeURIComponent(String(domainID)))
1110
- .replace(`{${"userID"}}`, encodeURIComponent(String(userID)))
1111
- .replace(`{${"lotteryProgramID"}}`, encodeURIComponent(String(lotteryProgramID)));
1112
- const localVarUrlObj = url.parse(localVarPath, true);
1113
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
1114
- const localVarHeaderParameter = {} as any;
1115
- const localVarQueryParameter = {} as any;
1116
-
1117
- // authentication Bearer required
1118
-
1119
- if (skipRecords !== undefined) {
1120
- localVarQueryParameter['skipRecords'] = skipRecords;
1121
- }
1122
-
1123
- if (maxRecords !== undefined) {
1124
- localVarQueryParameter['maxRecords'] = maxRecords;
1125
- }
1126
-
1127
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
1128
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1129
- delete localVarUrlObj.search;
1130
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
1131
-
1132
- return {
1133
- url: url.format(localVarUrlObj),
1134
- options: localVarRequestOptions,
1135
- };
1136
- },
1137
- /**
1138
- *
1139
- * @summary Query lottery programs of a specific domain
1140
- * @param {number} domainID
1141
- * @param {Array<number>} [id]
1142
- * @param {Array<LotteryProgramStatus>} [status]
1143
- * @param {Array<LotteryProgramType>} [type]
1144
- * @param {number} [skipRecords]
1145
- * @param {number} [maxRecords]
1146
- * @param {*} [options] Override http request option.
1147
- * @throws {RequiredError}
1148
- */
1149
- queryLotteryProgram(domainID: number, id?: Array<number>, status?: Array<LotteryProgramStatus>, type?: Array<LotteryProgramType>, skipRecords?: number, maxRecords?: number, options: any = {}): FetchArgs {
1150
- // verify required parameter 'domainID' is not null or undefined
1151
- if (domainID === null || domainID === undefined) {
1152
- throw new RequiredError('domainID','Required parameter domainID was null or undefined when calling queryLotteryProgram.');
1153
- }
1154
- const localVarPath = `/lottery/program/{domainID}`
1155
- .replace(`{${"domainID"}}`, encodeURIComponent(String(domainID)));
1156
- const localVarUrlObj = url.parse(localVarPath, true);
1157
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
1158
- const localVarHeaderParameter = {} as any;
1159
- const localVarQueryParameter = {} as any;
1160
-
1161
- // authentication Bearer required
1162
-
1163
- if (id) {
1164
- localVarQueryParameter['id'] = id;
1165
- }
1166
-
1167
- if (status) {
1168
- localVarQueryParameter['status'] = status;
1169
- }
1170
-
1171
- if (type) {
1172
- localVarQueryParameter['type'] = type;
1173
- }
1174
-
1175
- if (skipRecords !== undefined) {
1176
- localVarQueryParameter['skipRecords'] = skipRecords;
1177
- }
1178
-
1179
- if (maxRecords !== undefined) {
1180
- localVarQueryParameter['maxRecords'] = maxRecords;
1181
- }
1182
-
1183
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
1184
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1185
- delete localVarUrlObj.search;
1186
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
1187
-
1188
- return {
1189
- url: url.format(localVarUrlObj),
1190
- options: localVarRequestOptions,
1191
- };
1192
- },
1193
- /**
1194
- *
1195
- * @summary Frontend API - Query lottery programs eligible for certain player
1196
- * @param {number} domainID
1197
- * @param {string} userID
1198
- * @param {Array<number>} [lotteryProgramID]
1199
- * @param {number} [skipRecords]
1200
- * @param {number} [maxRecords]
1201
- * @param {*} [options] Override http request option.
1202
- * @throws {RequiredError}
1203
- */
1204
- queryLotteryProgramForPlayer(domainID: number, userID: string, lotteryProgramID?: Array<number>, skipRecords?: number, maxRecords?: number, options: any = {}): FetchArgs {
1205
- // verify required parameter 'domainID' is not null or undefined
1206
- if (domainID === null || domainID === undefined) {
1207
- throw new RequiredError('domainID','Required parameter domainID was null or undefined when calling queryLotteryProgramForPlayer.');
1208
- }
1209
- // verify required parameter 'userID' is not null or undefined
1210
- if (userID === null || userID === undefined) {
1211
- throw new RequiredError('userID','Required parameter userID was null or undefined when calling queryLotteryProgramForPlayer.');
1212
- }
1213
- const localVarPath = `/lottery/program/{domainID}/list/{userID}`
1214
- .replace(`{${"domainID"}}`, encodeURIComponent(String(domainID)))
1215
- .replace(`{${"userID"}}`, encodeURIComponent(String(userID)));
1216
- const localVarUrlObj = url.parse(localVarPath, true);
1217
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
1218
- const localVarHeaderParameter = {} as any;
1219
- const localVarQueryParameter = {} as any;
1220
-
1221
- // authentication Bearer required
1222
-
1223
- if (lotteryProgramID) {
1224
- localVarQueryParameter['lotteryProgramID'] = lotteryProgramID;
1225
- }
1226
-
1227
- if (skipRecords !== undefined) {
1228
- localVarQueryParameter['skipRecords'] = skipRecords;
1229
- }
1230
-
1231
- if (maxRecords !== undefined) {
1232
- localVarQueryParameter['maxRecords'] = maxRecords;
1233
- }
1234
-
1235
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
1236
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1237
- delete localVarUrlObj.search;
1238
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
1239
-
1240
- return {
1241
- url: url.format(localVarUrlObj),
1242
- options: localVarRequestOptions,
1243
- };
1244
- },
1245
- /**
1246
- *
1247
- * @summary Query lottery program revisions
1248
- * @param {number} domainID
1249
- * @param {Array<number>} [lotteryProgramID]
1250
- * @param {Array<string>} [version]
1251
- * @param {Array<string>} [editor]
1252
- * @param {number} [skipRecords]
1253
- * @param {number} [maxRecords]
1254
- * @param {*} [options] Override http request option.
1255
- * @throws {RequiredError}
1256
- */
1257
- queryLotteryProgramRevisions(domainID: number, lotteryProgramID?: Array<number>, version?: Array<string>, editor?: Array<string>, skipRecords?: number, maxRecords?: number, options: any = {}): FetchArgs {
1258
- // verify required parameter 'domainID' is not null or undefined
1259
- if (domainID === null || domainID === undefined) {
1260
- throw new RequiredError('domainID','Required parameter domainID was null or undefined when calling queryLotteryProgramRevisions.');
1261
- }
1262
- const localVarPath = `/lottery/program/{domainID}/revision`
1263
- .replace(`{${"domainID"}}`, encodeURIComponent(String(domainID)));
1264
- const localVarUrlObj = url.parse(localVarPath, true);
1265
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
1266
- const localVarHeaderParameter = {} as any;
1267
- const localVarQueryParameter = {} as any;
1268
-
1269
- // authentication Bearer required
1270
-
1271
- if (lotteryProgramID) {
1272
- localVarQueryParameter['lotteryProgramID'] = lotteryProgramID;
1273
- }
1274
-
1275
- if (version) {
1276
- localVarQueryParameter['version'] = version;
1277
- }
1278
-
1279
- if (editor) {
1280
- localVarQueryParameter['editor'] = editor;
1281
- }
1282
-
1283
- if (skipRecords !== undefined) {
1284
- localVarQueryParameter['skipRecords'] = skipRecords;
1285
- }
1286
-
1287
- if (maxRecords !== undefined) {
1288
- localVarQueryParameter['maxRecords'] = maxRecords;
1289
- }
1290
-
1291
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
1292
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1293
- delete localVarUrlObj.search;
1294
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
1295
-
1296
- return {
1297
- url: url.format(localVarUrlObj),
1298
- options: localVarRequestOptions,
1299
- };
1300
- },
1301
- /**
1302
- *
1303
- * @summary Add a new lottery program or update an existing one if the supplied `ID` identifies an existing program. To add a new lottery program, leave `ID` to zero; To update an exsiting lottery, version must match the latest version.
1304
- * @param {number} domainID
1305
- * @param {LotteryProgram} [body]
1306
- * @param {*} [options] Override http request option.
1307
- * @throws {RequiredError}
1308
- */
1309
- storeLotteryProgram(domainID: number, body?: LotteryProgram, options: any = {}): FetchArgs {
1310
- // verify required parameter 'domainID' is not null or undefined
1311
- if (domainID === null || domainID === undefined) {
1312
- throw new RequiredError('domainID','Required parameter domainID was null or undefined when calling storeLotteryProgram.');
1313
- }
1314
- const localVarPath = `/lottery/program/{domainID}`
1315
- .replace(`{${"domainID"}}`, encodeURIComponent(String(domainID)));
1316
- const localVarUrlObj = url.parse(localVarPath, true);
1317
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
1318
- const localVarHeaderParameter = {} as any;
1319
- const localVarQueryParameter = {} as any;
1320
-
1321
- // authentication Bearer required
1322
-
1323
- localVarHeaderParameter['Content-Type'] = 'application/json';
1324
-
1325
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
1326
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1327
- delete localVarUrlObj.search;
1328
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
1329
- const needsSerialization = (<any>"LotteryProgram" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
1330
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
1331
-
1332
- return {
1333
- url: url.format(localVarUrlObj),
1334
- options: localVarRequestOptions,
1335
- };
1336
- },
1337
- }
1338
- };
1339
-
1340
- /**
1341
- * LotteryProgramApi - functional programming interface
1342
- * @export
1343
- */
1344
- export const LotteryProgramApiFp = function(configuration?: Configuration) {
1345
- return {
1346
- /**
1347
- *
1348
- * @summary Delete lottery programs by id
1349
- * @param {number} domainID
1350
- * @param {Array<number>} [lotteryProgramID]
1351
- * @param {*} [options] Override http request option.
1352
- * @throws {RequiredError}
1353
- */
1354
- deleteLotteryProgram(domainID: number, lotteryProgramID?: Array<number>, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response> {
1355
- const localVarFetchArgs = LotteryProgramApiFetchParamCreator(configuration).deleteLotteryProgram(domainID, lotteryProgramID, options);
1356
- return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {
1357
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1358
- if (response.status >= 200 && response.status < 300) {
1359
- return response;
1360
- } else {
1361
- throw response;
1362
- }
1363
- });
1364
- };
1365
- },
1366
- /**
1367
- *
1368
- * @summary Frontnd API - Draw a lottery program
1369
- * @param {number} domainID
1370
- * @param {string} userID
1371
- * @param {string} idempotencyKey
1372
- * @param {number} [lotteryProgramID]
1373
- * @param {*} [options] Override http request option.
1374
- * @throws {RequiredError}
1375
- */
1376
- drawLotteryProgram(domainID: number, userID: string, idempotencyKey: string, lotteryProgramID?: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<LotteryProgramDraw> {
1377
- const localVarFetchArgs = LotteryProgramApiFetchParamCreator(configuration).drawLotteryProgram(domainID, userID, idempotencyKey, lotteryProgramID, options);
1378
- return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {
1379
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1380
- if (response.status >= 200 && response.status < 300) {
1381
- return response.json();
1382
- } else {
1383
- throw response;
1384
- }
1385
- });
1386
- };
1387
- },
1388
- /**
1389
- *
1390
- * @summary Query outcome of lottery program draws
1391
- * @param {number} domainID
1392
- * @param {Array<string>} [userID]
1393
- * @param {Array<string>} [idempotencyKey]
1394
- * @param {Array<number>} [lotteryProgramID]
1395
- * @param {Array<string>} [lotteryProgramVersion]
1396
- * @param {Array<LotteryProgramResultState>} [state]
1397
- * @param {number} [skipRecords]
1398
- * @param {number} [maxRecords]
1399
- * @param {*} [options] Override http request option.
1400
- * @throws {RequiredError}
1401
- */
1402
- getLotteryProgramOutcome(domainID: number, userID?: Array<string>, idempotencyKey?: Array<string>, lotteryProgramID?: Array<number>, lotteryProgramVersion?: Array<string>, state?: Array<LotteryProgramResultState>, skipRecords?: number, maxRecords?: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<QueryLotteryProgramOutcomeResult> {
1403
- const localVarFetchArgs = LotteryProgramApiFetchParamCreator(configuration).getLotteryProgramOutcome(domainID, userID, idempotencyKey, lotteryProgramID, lotteryProgramVersion, state, skipRecords, maxRecords, options);
1404
- return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {
1405
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1406
- if (response.status >= 200 && response.status < 300) {
1407
- return response.json();
1408
- } else {
1409
- throw response;
1410
- }
1411
- });
1412
- };
1413
- },
1414
- /**
1415
- *
1416
- * @summary Frontend API -- query certain player's outcome of specific lottery program
1417
- * @param {number} domainID
1418
- * @param {string} userID
1419
- * @param {number} lotteryProgramID
1420
- * @param {number} [skipRecords]
1421
- * @param {number} [maxRecords]
1422
- * @param {*} [options] Override http request option.
1423
- * @throws {RequiredError}
1424
- */
1425
- getPlayerLotteryProgramOutcome(domainID: number, userID: string, lotteryProgramID: number, skipRecords?: number, maxRecords?: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<LotteryProgramDrawLotteryProgramTicketIQueryLotteryProgramOutcomeResult> {
1426
- const localVarFetchArgs = LotteryProgramApiFetchParamCreator(configuration).getPlayerLotteryProgramOutcome(domainID, userID, lotteryProgramID, skipRecords, maxRecords, options);
1427
- return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {
1428
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1429
- if (response.status >= 200 && response.status < 300) {
1430
- return response.json();
1431
- } else {
1432
- throw response;
1433
- }
1434
- });
1435
- };
1436
- },
1437
- /**
1438
- *
1439
- * @summary Query lottery programs of a specific domain
1440
- * @param {number} domainID
1441
- * @param {Array<number>} [id]
1442
- * @param {Array<LotteryProgramStatus>} [status]
1443
- * @param {Array<LotteryProgramType>} [type]
1444
- * @param {number} [skipRecords]
1445
- * @param {number} [maxRecords]
1446
- * @param {*} [options] Override http request option.
1447
- * @throws {RequiredError}
1448
- */
1449
- queryLotteryProgram(domainID: number, id?: Array<number>, status?: Array<LotteryProgramStatus>, type?: Array<LotteryProgramType>, skipRecords?: number, maxRecords?: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<LotteryProgramIPagedResult> {
1450
- const localVarFetchArgs = LotteryProgramApiFetchParamCreator(configuration).queryLotteryProgram(domainID, id, status, type, skipRecords, maxRecords, options);
1451
- return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {
1452
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1453
- if (response.status >= 200 && response.status < 300) {
1454
- return response.json();
1455
- } else {
1456
- throw response;
1457
- }
1458
- });
1459
- };
1460
- },
1461
- /**
1462
- *
1463
- * @summary Frontend API - Query lottery programs eligible for certain player
1464
- * @param {number} domainID
1465
- * @param {string} userID
1466
- * @param {Array<number>} [lotteryProgramID]
1467
- * @param {number} [skipRecords]
1468
- * @param {number} [maxRecords]
1469
- * @param {*} [options] Override http request option.
1470
- * @throws {RequiredError}
1471
- */
1472
- queryLotteryProgramForPlayer(domainID: number, userID: string, lotteryProgramID?: Array<number>, skipRecords?: number, maxRecords?: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<LotteryProgramIQueryLotteryProgramForPlayerResult> {
1473
- const localVarFetchArgs = LotteryProgramApiFetchParamCreator(configuration).queryLotteryProgramForPlayer(domainID, userID, lotteryProgramID, skipRecords, maxRecords, options);
1474
- return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {
1475
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1476
- if (response.status >= 200 && response.status < 300) {
1477
- return response.json();
1478
- } else {
1479
- throw response;
1480
- }
1481
- });
1482
- };
1483
- },
1484
- /**
1485
- *
1486
- * @summary Query lottery program revisions
1487
- * @param {number} domainID
1488
- * @param {Array<number>} [lotteryProgramID]
1489
- * @param {Array<string>} [version]
1490
- * @param {Array<string>} [editor]
1491
- * @param {number} [skipRecords]
1492
- * @param {number} [maxRecords]
1493
- * @param {*} [options] Override http request option.
1494
- * @throws {RequiredError}
1495
- */
1496
- queryLotteryProgramRevisions(domainID: number, lotteryProgramID?: Array<number>, version?: Array<string>, editor?: Array<string>, skipRecords?: number, maxRecords?: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<LotteryProgramIPagedResult> {
1497
- const localVarFetchArgs = LotteryProgramApiFetchParamCreator(configuration).queryLotteryProgramRevisions(domainID, lotteryProgramID, version, editor, skipRecords, maxRecords, options);
1498
- return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {
1499
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1500
- if (response.status >= 200 && response.status < 300) {
1501
- return response.json();
1502
- } else {
1503
- throw response;
1504
- }
1505
- });
1506
- };
1507
- },
1508
- /**
1509
- *
1510
- * @summary Add a new lottery program or update an existing one if the supplied `ID` identifies an existing program. To add a new lottery program, leave `ID` to zero; To update an exsiting lottery, version must match the latest version.
1511
- * @param {number} domainID
1512
- * @param {LotteryProgram} [body]
1513
- * @param {*} [options] Override http request option.
1514
- * @throws {RequiredError}
1515
- */
1516
- storeLotteryProgram(domainID: number, body?: LotteryProgram, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<LotteryProgram> {
1517
- const localVarFetchArgs = LotteryProgramApiFetchParamCreator(configuration).storeLotteryProgram(domainID, body, options);
1518
- return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {
1519
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1520
- if (response.status >= 200 && response.status < 300) {
1521
- return response.json();
1522
- } else {
1523
- throw response;
1524
- }
1525
- });
1526
- };
1527
- },
1528
- }
1529
- };
1530
-
1531
- /**
1532
- * LotteryProgramApi - factory interface
1533
- * @export
1534
- */
1535
- export const LotteryProgramApiFactory = function (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) {
1536
- return {
1537
- /**
1538
- *
1539
- * @summary Delete lottery programs by id
1540
- * @param {number} domainID
1541
- * @param {Array<number>} [lotteryProgramID]
1542
- * @param {*} [options] Override http request option.
1543
- * @throws {RequiredError}
1544
- */
1545
- deleteLotteryProgram(domainID: number, lotteryProgramID?: Array<number>, options?: any) {
1546
- return LotteryProgramApiFp(configuration).deleteLotteryProgram(domainID, lotteryProgramID, options)(fetch, basePath);
1547
- },
1548
- /**
1549
- *
1550
- * @summary Frontnd API - Draw a lottery program
1551
- * @param {number} domainID
1552
- * @param {string} userID
1553
- * @param {string} idempotencyKey
1554
- * @param {number} [lotteryProgramID]
1555
- * @param {*} [options] Override http request option.
1556
- * @throws {RequiredError}
1557
- */
1558
- drawLotteryProgram(domainID: number, userID: string, idempotencyKey: string, lotteryProgramID?: number, options?: any) {
1559
- return LotteryProgramApiFp(configuration).drawLotteryProgram(domainID, userID, idempotencyKey, lotteryProgramID, options)(fetch, basePath);
1560
- },
1561
- /**
1562
- *
1563
- * @summary Query outcome of lottery program draws
1564
- * @param {number} domainID
1565
- * @param {Array<string>} [userID]
1566
- * @param {Array<string>} [idempotencyKey]
1567
- * @param {Array<number>} [lotteryProgramID]
1568
- * @param {Array<string>} [lotteryProgramVersion]
1569
- * @param {Array<LotteryProgramResultState>} [state]
1570
- * @param {number} [skipRecords]
1571
- * @param {number} [maxRecords]
1572
- * @param {*} [options] Override http request option.
1573
- * @throws {RequiredError}
1574
- */
1575
- getLotteryProgramOutcome(domainID: number, userID?: Array<string>, idempotencyKey?: Array<string>, lotteryProgramID?: Array<number>, lotteryProgramVersion?: Array<string>, state?: Array<LotteryProgramResultState>, skipRecords?: number, maxRecords?: number, options?: any) {
1576
- return LotteryProgramApiFp(configuration).getLotteryProgramOutcome(domainID, userID, idempotencyKey, lotteryProgramID, lotteryProgramVersion, state, skipRecords, maxRecords, options)(fetch, basePath);
1577
- },
1578
- /**
1579
- *
1580
- * @summary Frontend API -- query certain player's outcome of specific lottery program
1581
- * @param {number} domainID
1582
- * @param {string} userID
1583
- * @param {number} lotteryProgramID
1584
- * @param {number} [skipRecords]
1585
- * @param {number} [maxRecords]
1586
- * @param {*} [options] Override http request option.
1587
- * @throws {RequiredError}
1588
- */
1589
- getPlayerLotteryProgramOutcome(domainID: number, userID: string, lotteryProgramID: number, skipRecords?: number, maxRecords?: number, options?: any) {
1590
- return LotteryProgramApiFp(configuration).getPlayerLotteryProgramOutcome(domainID, userID, lotteryProgramID, skipRecords, maxRecords, options)(fetch, basePath);
1591
- },
1592
- /**
1593
- *
1594
- * @summary Query lottery programs of a specific domain
1595
- * @param {number} domainID
1596
- * @param {Array<number>} [id]
1597
- * @param {Array<LotteryProgramStatus>} [status]
1598
- * @param {Array<LotteryProgramType>} [type]
1599
- * @param {number} [skipRecords]
1600
- * @param {number} [maxRecords]
1601
- * @param {*} [options] Override http request option.
1602
- * @throws {RequiredError}
1603
- */
1604
- queryLotteryProgram(domainID: number, id?: Array<number>, status?: Array<LotteryProgramStatus>, type?: Array<LotteryProgramType>, skipRecords?: number, maxRecords?: number, options?: any) {
1605
- return LotteryProgramApiFp(configuration).queryLotteryProgram(domainID, id, status, type, skipRecords, maxRecords, options)(fetch, basePath);
1606
- },
1607
- /**
1608
- *
1609
- * @summary Frontend API - Query lottery programs eligible for certain player
1610
- * @param {number} domainID
1611
- * @param {string} userID
1612
- * @param {Array<number>} [lotteryProgramID]
1613
- * @param {number} [skipRecords]
1614
- * @param {number} [maxRecords]
1615
- * @param {*} [options] Override http request option.
1616
- * @throws {RequiredError}
1617
- */
1618
- queryLotteryProgramForPlayer(domainID: number, userID: string, lotteryProgramID?: Array<number>, skipRecords?: number, maxRecords?: number, options?: any) {
1619
- return LotteryProgramApiFp(configuration).queryLotteryProgramForPlayer(domainID, userID, lotteryProgramID, skipRecords, maxRecords, options)(fetch, basePath);
1620
- },
1621
- /**
1622
- *
1623
- * @summary Query lottery program revisions
1624
- * @param {number} domainID
1625
- * @param {Array<number>} [lotteryProgramID]
1626
- * @param {Array<string>} [version]
1627
- * @param {Array<string>} [editor]
1628
- * @param {number} [skipRecords]
1629
- * @param {number} [maxRecords]
1630
- * @param {*} [options] Override http request option.
1631
- * @throws {RequiredError}
1632
- */
1633
- queryLotteryProgramRevisions(domainID: number, lotteryProgramID?: Array<number>, version?: Array<string>, editor?: Array<string>, skipRecords?: number, maxRecords?: number, options?: any) {
1634
- return LotteryProgramApiFp(configuration).queryLotteryProgramRevisions(domainID, lotteryProgramID, version, editor, skipRecords, maxRecords, options)(fetch, basePath);
1635
- },
1636
- /**
1637
- *
1638
- * @summary Add a new lottery program or update an existing one if the supplied `ID` identifies an existing program. To add a new lottery program, leave `ID` to zero; To update an exsiting lottery, version must match the latest version.
1639
- * @param {number} domainID
1640
- * @param {LotteryProgram} [body]
1641
- * @param {*} [options] Override http request option.
1642
- * @throws {RequiredError}
1643
- */
1644
- storeLotteryProgram(domainID: number, body?: LotteryProgram, options?: any) {
1645
- return LotteryProgramApiFp(configuration).storeLotteryProgram(domainID, body, options)(fetch, basePath);
1646
- },
1647
- };
1648
- };
1649
-
1650
- /**
1651
- * LotteryProgramApi - object-oriented interface
1652
- * @export
1653
- * @class LotteryProgramApi
1654
- * @extends {BaseAPI}
1655
- */
1656
- export class LotteryProgramApi extends BaseAPI {
1657
- /**
1658
- *
1659
- * @summary Delete lottery programs by id
1660
- * @param {number} domainID
1661
- * @param {Array<number>} [lotteryProgramID]
1662
- * @param {*} [options] Override http request option.
1663
- * @throws {RequiredError}
1664
- * @memberof LotteryProgramApi
1665
- */
1666
- public deleteLotteryProgram(domainID: number, lotteryProgramID?: Array<number>, options?: any) {
1667
- return LotteryProgramApiFp(this.configuration).deleteLotteryProgram(domainID, lotteryProgramID, options)(this.fetch, this.basePath);
1668
- }
1669
-
1670
- /**
1671
- *
1672
- * @summary Frontnd API - Draw a lottery program
1673
- * @param {number} domainID
1674
- * @param {string} userID
1675
- * @param {string} idempotencyKey
1676
- * @param {number} [lotteryProgramID]
1677
- * @param {*} [options] Override http request option.
1678
- * @throws {RequiredError}
1679
- * @memberof LotteryProgramApi
1680
- */
1681
- public drawLotteryProgram(domainID: number, userID: string, idempotencyKey: string, lotteryProgramID?: number, options?: any) {
1682
- return LotteryProgramApiFp(this.configuration).drawLotteryProgram(domainID, userID, idempotencyKey, lotteryProgramID, options)(this.fetch, this.basePath);
1683
- }
1684
-
1685
- /**
1686
- *
1687
- * @summary Query outcome of lottery program draws
1688
- * @param {number} domainID
1689
- * @param {Array<string>} [userID]
1690
- * @param {Array<string>} [idempotencyKey]
1691
- * @param {Array<number>} [lotteryProgramID]
1692
- * @param {Array<string>} [lotteryProgramVersion]
1693
- * @param {Array<LotteryProgramResultState>} [state]
1694
- * @param {number} [skipRecords]
1695
- * @param {number} [maxRecords]
1696
- * @param {*} [options] Override http request option.
1697
- * @throws {RequiredError}
1698
- * @memberof LotteryProgramApi
1699
- */
1700
- public getLotteryProgramOutcome(domainID: number, userID?: Array<string>, idempotencyKey?: Array<string>, lotteryProgramID?: Array<number>, lotteryProgramVersion?: Array<string>, state?: Array<LotteryProgramResultState>, skipRecords?: number, maxRecords?: number, options?: any) {
1701
- return LotteryProgramApiFp(this.configuration).getLotteryProgramOutcome(domainID, userID, idempotencyKey, lotteryProgramID, lotteryProgramVersion, state, skipRecords, maxRecords, options)(this.fetch, this.basePath);
1702
- }
1703
-
1704
- /**
1705
- *
1706
- * @summary Frontend API -- query certain player's outcome of specific lottery program
1707
- * @param {number} domainID
1708
- * @param {string} userID
1709
- * @param {number} lotteryProgramID
1710
- * @param {number} [skipRecords]
1711
- * @param {number} [maxRecords]
1712
- * @param {*} [options] Override http request option.
1713
- * @throws {RequiredError}
1714
- * @memberof LotteryProgramApi
1715
- */
1716
- public getPlayerLotteryProgramOutcome(domainID: number, userID: string, lotteryProgramID: number, skipRecords?: number, maxRecords?: number, options?: any) {
1717
- return LotteryProgramApiFp(this.configuration).getPlayerLotteryProgramOutcome(domainID, userID, lotteryProgramID, skipRecords, maxRecords, options)(this.fetch, this.basePath);
1718
- }
1719
-
1720
- /**
1721
- *
1722
- * @summary Query lottery programs of a specific domain
1723
- * @param {number} domainID
1724
- * @param {Array<number>} [id]
1725
- * @param {Array<LotteryProgramStatus>} [status]
1726
- * @param {Array<LotteryProgramType>} [type]
1727
- * @param {number} [skipRecords]
1728
- * @param {number} [maxRecords]
1729
- * @param {*} [options] Override http request option.
1730
- * @throws {RequiredError}
1731
- * @memberof LotteryProgramApi
1732
- */
1733
- public queryLotteryProgram(domainID: number, id?: Array<number>, status?: Array<LotteryProgramStatus>, type?: Array<LotteryProgramType>, skipRecords?: number, maxRecords?: number, options?: any) {
1734
- return LotteryProgramApiFp(this.configuration).queryLotteryProgram(domainID, id, status, type, skipRecords, maxRecords, options)(this.fetch, this.basePath);
1735
- }
1736
-
1737
- /**
1738
- *
1739
- * @summary Frontend API - Query lottery programs eligible for certain player
1740
- * @param {number} domainID
1741
- * @param {string} userID
1742
- * @param {Array<number>} [lotteryProgramID]
1743
- * @param {number} [skipRecords]
1744
- * @param {number} [maxRecords]
1745
- * @param {*} [options] Override http request option.
1746
- * @throws {RequiredError}
1747
- * @memberof LotteryProgramApi
1748
- */
1749
- public queryLotteryProgramForPlayer(domainID: number, userID: string, lotteryProgramID?: Array<number>, skipRecords?: number, maxRecords?: number, options?: any) {
1750
- return LotteryProgramApiFp(this.configuration).queryLotteryProgramForPlayer(domainID, userID, lotteryProgramID, skipRecords, maxRecords, options)(this.fetch, this.basePath);
1751
- }
1752
-
1753
- /**
1754
- *
1755
- * @summary Query lottery program revisions
1756
- * @param {number} domainID
1757
- * @param {Array<number>} [lotteryProgramID]
1758
- * @param {Array<string>} [version]
1759
- * @param {Array<string>} [editor]
1760
- * @param {number} [skipRecords]
1761
- * @param {number} [maxRecords]
1762
- * @param {*} [options] Override http request option.
1763
- * @throws {RequiredError}
1764
- * @memberof LotteryProgramApi
1765
- */
1766
- public queryLotteryProgramRevisions(domainID: number, lotteryProgramID?: Array<number>, version?: Array<string>, editor?: Array<string>, skipRecords?: number, maxRecords?: number, options?: any) {
1767
- return LotteryProgramApiFp(this.configuration).queryLotteryProgramRevisions(domainID, lotteryProgramID, version, editor, skipRecords, maxRecords, options)(this.fetch, this.basePath);
1768
- }
1769
-
1770
- /**
1771
- *
1772
- * @summary Add a new lottery program or update an existing one if the supplied `ID` identifies an existing program. To add a new lottery program, leave `ID` to zero; To update an exsiting lottery, version must match the latest version.
1773
- * @param {number} domainID
1774
- * @param {LotteryProgram} [body]
1775
- * @param {*} [options] Override http request option.
1776
- * @throws {RequiredError}
1777
- * @memberof LotteryProgramApi
1778
- */
1779
- public storeLotteryProgram(domainID: number, body?: LotteryProgram, options?: any) {
1780
- return LotteryProgramApiFp(this.configuration).storeLotteryProgram(domainID, body, options)(this.fetch, this.basePath);
1781
- }
1782
-
1783
- }
1784
- /**
1785
- * SystemApi - fetch parameter creator
1786
- * @export
1787
- */
1788
- export const SystemApiFetchParamCreator = function (configuration?: Configuration) {
1789
- return {
1790
- /**
1791
- *
1792
- * @summary Get SQL script of all domains per database server
1793
- * @param {*} [options] Override http request option.
1794
- * @throws {RequiredError}
1795
- */
1796
- getAllDomainScript(options: any = {}): FetchArgs {
1797
- const localVarPath = `/system/domain/all/script`;
1798
- const localVarUrlObj = url.parse(localVarPath, true);
1799
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
1800
- const localVarHeaderParameter = {} as any;
1801
- const localVarQueryParameter = {} as any;
1802
-
1803
- // authentication Bearer required
1804
-
1805
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
1806
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1807
- delete localVarUrlObj.search;
1808
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
1809
-
1810
- return {
1811
- url: url.format(localVarUrlObj),
1812
- options: localVarRequestOptions,
1813
- };
1814
- },
1815
- /**
1816
- *
1817
- * @summary Get SQL script of a specific domain
1818
- * @param {number} id
1819
- * @param {*} [options] Override http request option.
1820
- * @throws {RequiredError}
1821
- */
1822
- getDomainScript(id: number, options: any = {}): FetchArgs {
1823
- // verify required parameter 'id' is not null or undefined
1824
- if (id === null || id === undefined) {
1825
- throw new RequiredError('id','Required parameter id was null or undefined when calling getDomainScript.');
1826
- }
1827
- const localVarPath = `/system/domain/{id}/script`
1828
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1829
- const localVarUrlObj = url.parse(localVarPath, true);
1830
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
1831
- const localVarHeaderParameter = {} as any;
1832
- const localVarQueryParameter = {} as any;
1833
-
1834
- // authentication Bearer required
1835
-
1836
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
1837
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1838
- delete localVarUrlObj.search;
1839
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
1840
-
1841
- return {
1842
- url: url.format(localVarUrlObj),
1843
- options: localVarRequestOptions,
1844
- };
1845
- },
1846
- /**
1847
- *
1848
- * @summary Query domains, either enabled or provisioned
1849
- * @param {*} [options] Override http request option.
1850
- * @throws {RequiredError}
1851
- */
1852
- getDomains(options: any = {}): FetchArgs {
1853
- const localVarPath = `/system/domain/list`;
1854
- const localVarUrlObj = url.parse(localVarPath, true);
1855
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
1856
- const localVarHeaderParameter = {} as any;
1857
- const localVarQueryParameter = {} as any;
1858
-
1859
- // authentication Bearer required
1860
-
1861
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
1862
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
1863
- delete localVarUrlObj.search;
1864
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
1865
-
1866
- return {
1867
- url: url.format(localVarUrlObj),
1868
- options: localVarRequestOptions,
1869
- };
1870
- },
1871
- }
1872
- };
1873
-
1874
- /**
1875
- * SystemApi - functional programming interface
1876
- * @export
1877
- */
1878
- export const SystemApiFp = function(configuration?: Configuration) {
1879
- return {
1880
- /**
1881
- *
1882
- * @summary Get SQL script of all domains per database server
1883
- * @param {*} [options] Override http request option.
1884
- * @throws {RequiredError}
1885
- */
1886
- getAllDomainScript(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<{ [key: string]: string; }> {
1887
- const localVarFetchArgs = SystemApiFetchParamCreator(configuration).getAllDomainScript(options);
1888
- return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {
1889
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1890
- if (response.status >= 200 && response.status < 300) {
1891
- return response.json();
1892
- } else {
1893
- throw response;
1894
- }
1895
- });
1896
- };
1897
- },
1898
- /**
1899
- *
1900
- * @summary Get SQL script of a specific domain
1901
- * @param {number} id
1902
- * @param {*} [options] Override http request option.
1903
- * @throws {RequiredError}
1904
- */
1905
- getDomainScript(id: number, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<DomainRecord>> {
1906
- const localVarFetchArgs = SystemApiFetchParamCreator(configuration).getDomainScript(id, options);
1907
- return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {
1908
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1909
- if (response.status >= 200 && response.status < 300) {
1910
- return response.json();
1911
- } else {
1912
- throw response;
1913
- }
1914
- });
1915
- };
1916
- },
1917
- /**
1918
- *
1919
- * @summary Query domains, either enabled or provisioned
1920
- * @param {*} [options] Override http request option.
1921
- * @throws {RequiredError}
1922
- */
1923
- getDomains(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<DomainRecord>> {
1924
- const localVarFetchArgs = SystemApiFetchParamCreator(configuration).getDomains(options);
1925
- return (fetch: FetchAPI = isomorphicFetch, basePath: string = BASE_PATH) => {
1926
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1927
- if (response.status >= 200 && response.status < 300) {
1928
- return response.json();
1929
- } else {
1930
- throw response;
1931
- }
1932
- });
1933
- };
1934
- },
1935
- }
1936
- };
1937
-
1938
- /**
1939
- * SystemApi - factory interface
1940
- * @export
1941
- */
1942
- export const SystemApiFactory = function (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) {
1943
- return {
1944
- /**
1945
- *
1946
- * @summary Get SQL script of all domains per database server
1947
- * @param {*} [options] Override http request option.
1948
- * @throws {RequiredError}
1949
- */
1950
- getAllDomainScript(options?: any) {
1951
- return SystemApiFp(configuration).getAllDomainScript(options)(fetch, basePath);
1952
- },
1953
- /**
1954
- *
1955
- * @summary Get SQL script of a specific domain
1956
- * @param {number} id
1957
- * @param {*} [options] Override http request option.
1958
- * @throws {RequiredError}
1959
- */
1960
- getDomainScript(id: number, options?: any) {
1961
- return SystemApiFp(configuration).getDomainScript(id, options)(fetch, basePath);
1962
- },
1963
- /**
1964
- *
1965
- * @summary Query domains, either enabled or provisioned
1966
- * @param {*} [options] Override http request option.
1967
- * @throws {RequiredError}
1968
- */
1969
- getDomains(options?: any) {
1970
- return SystemApiFp(configuration).getDomains(options)(fetch, basePath);
1971
- },
1972
- };
1973
- };
1974
-
1975
- /**
1976
- * SystemApi - object-oriented interface
1977
- * @export
1978
- * @class SystemApi
1979
- * @extends {BaseAPI}
1980
- */
1981
- export class SystemApi extends BaseAPI {
1982
- /**
1983
- *
1984
- * @summary Get SQL script of all domains per database server
1985
- * @param {*} [options] Override http request option.
1986
- * @throws {RequiredError}
1987
- * @memberof SystemApi
1988
- */
1989
- public getAllDomainScript(options?: any) {
1990
- return SystemApiFp(this.configuration).getAllDomainScript(options)(this.fetch, this.basePath);
1991
- }
1992
-
1993
- /**
1994
- *
1995
- * @summary Get SQL script of a specific domain
1996
- * @param {number} id
1997
- * @param {*} [options] Override http request option.
1998
- * @throws {RequiredError}
1999
- * @memberof SystemApi
2000
- */
2001
- public getDomainScript(id: number, options?: any) {
2002
- return SystemApiFp(this.configuration).getDomainScript(id, options)(this.fetch, this.basePath);
2003
- }
2004
-
2005
- /**
2006
- *
2007
- * @summary Query domains, either enabled or provisioned
2008
- * @param {*} [options] Override http request option.
2009
- * @throws {RequiredError}
2010
- * @memberof SystemApi
2011
- */
2012
- public getDomains(options?: any) {
2013
- return SystemApiFp(this.configuration).getDomains(options)(this.fetch, this.basePath);
2014
- }
2015
-
2016
- }