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