@gambulls-org/gambulls-apis 3.0.573 → 3.0.574
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/.openapi-generator/FILES +1 -6
- package/apis/{StreamerLeaderboardApi.js → PublicStreamerApi.js} +3 -73
- package/apis/PublicStreamerApi.ts +96 -0
- package/apis/index.js +1 -1
- package/apis/index.ts +1 -1
- package/models/index.js +0 -5
- package/models/index.ts +0 -5
- package/package.json +1 -1
- package/apis/StreamerLeaderboardApi.ts +0 -178
- package/models/ApiPublicStreamerCodesGet200Response.js +0 -61
- package/models/ApiPublicStreamerCodesGet200Response.ts +0 -100
- package/models/ApiPublicStreamerCodesGet200ResponseResponseObjectInner.js +0 -58
- package/models/ApiPublicStreamerCodesGet200ResponseResponseObjectInner.ts +0 -84
- package/models/ApiPublicStreamerSummaryGet200Response.js +0 -61
- package/models/ApiPublicStreamerSummaryGet200Response.ts +0 -100
- package/models/ApiPublicStreamerSummaryGet200ResponseResponseObject.js +0 -68
- package/models/ApiPublicStreamerSummaryGet200ResponseResponseObject.ts +0 -117
- package/models/ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner.js +0 -58
- package/models/ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner.ts +0 -84
package/.openapi-generator/FILES
CHANGED
|
@@ -37,11 +37,11 @@ apis/PublicApi.ts
|
|
|
37
37
|
apis/PublicBannerApi.ts
|
|
38
38
|
apis/PublicGamesApi.ts
|
|
39
39
|
apis/PublicPolicyApi.ts
|
|
40
|
+
apis/PublicStreamerApi.ts
|
|
40
41
|
apis/RGSApi.ts
|
|
41
42
|
apis/RGSV2Api.ts
|
|
42
43
|
apis/ScriptApi.ts
|
|
43
44
|
apis/SportsbookV2Api.ts
|
|
44
|
-
apis/StreamerLeaderboardApi.ts
|
|
45
45
|
apis/TatumApi.ts
|
|
46
46
|
apis/TestForNonProductionOnlyApi.ts
|
|
47
47
|
apis/UserAffiliateApi.ts
|
|
@@ -458,16 +458,11 @@ models/ApiPublicLeaderboardHistoryGet200ResponseResponseObject.ts
|
|
|
458
458
|
models/ApiPublicPolicyGet200Response.ts
|
|
459
459
|
models/ApiPublicPolicyGet200ResponseResponseObject.ts
|
|
460
460
|
models/ApiPublicProvidersGet200Response.ts
|
|
461
|
-
models/ApiPublicStreamerCodesGet200Response.ts
|
|
462
|
-
models/ApiPublicStreamerCodesGet200ResponseResponseObjectInner.ts
|
|
463
461
|
models/ApiPublicStreamerLeaderboardGet200Response.ts
|
|
464
462
|
models/ApiPublicStreamerLeaderboardGet200ResponseResponseObject.ts
|
|
465
463
|
models/ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner.ts
|
|
466
464
|
models/ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser.ts
|
|
467
465
|
models/ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer.ts
|
|
468
|
-
models/ApiPublicStreamerSummaryGet200Response.ts
|
|
469
|
-
models/ApiPublicStreamerSummaryGet200ResponseResponseObject.ts
|
|
470
|
-
models/ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner.ts
|
|
471
466
|
models/ApiPublicUiDeploymentNotificationPost200Response.ts
|
|
472
467
|
models/ApiPublicUiDeploymentNotificationPost200ResponseResponseObject.ts
|
|
473
468
|
models/ApiPublicUiDeploymentNotificationPostRequest.ts
|
|
@@ -45,48 +45,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.ApiPublicStreamerLeaderboardGetTypeEnum = exports.
|
|
48
|
+
exports.ApiPublicStreamerLeaderboardGetTypeEnum = exports.PublicStreamerApi = void 0;
|
|
49
49
|
const runtime = __importStar(require("../runtime"));
|
|
50
50
|
const index_1 = require("../models/index");
|
|
51
51
|
/**
|
|
52
52
|
*
|
|
53
53
|
*/
|
|
54
|
-
class
|
|
55
|
-
/**
|
|
56
|
-
* Get streamer affiliate codes and stats
|
|
57
|
-
*/
|
|
58
|
-
apiPublicStreamerCodesGetRaw(initOverrides) {
|
|
59
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
-
const queryParameters = {};
|
|
61
|
-
const headerParameters = {};
|
|
62
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
63
|
-
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
64
|
-
}
|
|
65
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
66
|
-
const token = this.configuration.accessToken;
|
|
67
|
-
const tokenString = yield token("BearerAuth", []);
|
|
68
|
-
if (tokenString) {
|
|
69
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
const response = yield this.request({
|
|
73
|
-
path: `/api/public/streamer/codes`,
|
|
74
|
-
method: 'GET',
|
|
75
|
-
headers: headerParameters,
|
|
76
|
-
query: queryParameters,
|
|
77
|
-
}, initOverrides);
|
|
78
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiPublicStreamerCodesGet200ResponseFromJSON)(jsonValue));
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Get streamer affiliate codes and stats
|
|
83
|
-
*/
|
|
84
|
-
apiPublicStreamerCodesGet(initOverrides) {
|
|
85
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
-
const response = yield this.apiPublicStreamerCodesGetRaw(initOverrides);
|
|
87
|
-
return yield response.value();
|
|
88
|
-
});
|
|
89
|
-
}
|
|
54
|
+
class PublicStreamerApi extends runtime.BaseAPI {
|
|
90
55
|
/**
|
|
91
56
|
* Get streamer leaderboard (users who used streamer affiliate code)
|
|
92
57
|
*/
|
|
@@ -131,43 +96,8 @@ class StreamerLeaderboardApi extends runtime.BaseAPI {
|
|
|
131
96
|
return yield response.value();
|
|
132
97
|
});
|
|
133
98
|
}
|
|
134
|
-
/**
|
|
135
|
-
* Get streamer summary with all codes and referred user counts
|
|
136
|
-
*/
|
|
137
|
-
apiPublicStreamerSummaryGetRaw(initOverrides) {
|
|
138
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
-
const queryParameters = {};
|
|
140
|
-
const headerParameters = {};
|
|
141
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
142
|
-
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
143
|
-
}
|
|
144
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
145
|
-
const token = this.configuration.accessToken;
|
|
146
|
-
const tokenString = yield token("BearerAuth", []);
|
|
147
|
-
if (tokenString) {
|
|
148
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
const response = yield this.request({
|
|
152
|
-
path: `/api/public/streamer/summary`,
|
|
153
|
-
method: 'GET',
|
|
154
|
-
headers: headerParameters,
|
|
155
|
-
query: queryParameters,
|
|
156
|
-
}, initOverrides);
|
|
157
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiPublicStreamerSummaryGet200ResponseFromJSON)(jsonValue));
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Get streamer summary with all codes and referred user counts
|
|
162
|
-
*/
|
|
163
|
-
apiPublicStreamerSummaryGet(initOverrides) {
|
|
164
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
-
const response = yield this.apiPublicStreamerSummaryGetRaw(initOverrides);
|
|
166
|
-
return yield response.value();
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
99
|
}
|
|
170
|
-
exports.
|
|
100
|
+
exports.PublicStreamerApi = PublicStreamerApi;
|
|
171
101
|
/**
|
|
172
102
|
* @export
|
|
173
103
|
*/
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Swagger API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ApiPublicStreamerLeaderboardGet200Response,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
ApiPublicStreamerLeaderboardGet200ResponseFromJSON,
|
|
22
|
+
ApiPublicStreamerLeaderboardGet200ResponseToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
export interface ApiPublicStreamerLeaderboardGetRequest {
|
|
26
|
+
type?: ApiPublicStreamerLeaderboardGetTypeEnum;
|
|
27
|
+
code?: string;
|
|
28
|
+
limit?: number | null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export class PublicStreamerApi extends runtime.BaseAPI {
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Get streamer leaderboard (users who used streamer affiliate code)
|
|
38
|
+
*/
|
|
39
|
+
async apiPublicStreamerLeaderboardGetRaw(requestParameters: ApiPublicStreamerLeaderboardGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPublicStreamerLeaderboardGet200Response>> {
|
|
40
|
+
const queryParameters: any = {};
|
|
41
|
+
|
|
42
|
+
if (requestParameters['type'] != null) {
|
|
43
|
+
queryParameters['type'] = requestParameters['type'];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (requestParameters['code'] != null) {
|
|
47
|
+
queryParameters['code'] = requestParameters['code'];
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (requestParameters['limit'] != null) {
|
|
51
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
55
|
+
|
|
56
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
57
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
61
|
+
const token = this.configuration.accessToken;
|
|
62
|
+
const tokenString = await token("BearerAuth", []);
|
|
63
|
+
|
|
64
|
+
if (tokenString) {
|
|
65
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
const response = await this.request({
|
|
69
|
+
path: `/api/public/streamer/leaderboard`,
|
|
70
|
+
method: 'GET',
|
|
71
|
+
headers: headerParameters,
|
|
72
|
+
query: queryParameters,
|
|
73
|
+
}, initOverrides);
|
|
74
|
+
|
|
75
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPublicStreamerLeaderboardGet200ResponseFromJSON(jsonValue));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Get streamer leaderboard (users who used streamer affiliate code)
|
|
80
|
+
*/
|
|
81
|
+
async apiPublicStreamerLeaderboardGet(requestParameters: ApiPublicStreamerLeaderboardGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPublicStreamerLeaderboardGet200Response> {
|
|
82
|
+
const response = await this.apiPublicStreamerLeaderboardGetRaw(requestParameters, initOverrides);
|
|
83
|
+
return await response.value();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export const ApiPublicStreamerLeaderboardGetTypeEnum = {
|
|
92
|
+
Daily: 'daily',
|
|
93
|
+
Weekly: 'weekly',
|
|
94
|
+
Monthly: 'monthly'
|
|
95
|
+
} as const;
|
|
96
|
+
export type ApiPublicStreamerLeaderboardGetTypeEnum = typeof ApiPublicStreamerLeaderboardGetTypeEnum[keyof typeof ApiPublicStreamerLeaderboardGetTypeEnum];
|
package/apis/index.js
CHANGED
|
@@ -55,11 +55,11 @@ __exportStar(require("./PublicApi"), exports);
|
|
|
55
55
|
__exportStar(require("./PublicBannerApi"), exports);
|
|
56
56
|
__exportStar(require("./PublicGamesApi"), exports);
|
|
57
57
|
__exportStar(require("./PublicPolicyApi"), exports);
|
|
58
|
+
__exportStar(require("./PublicStreamerApi"), exports);
|
|
58
59
|
__exportStar(require("./RGSApi"), exports);
|
|
59
60
|
__exportStar(require("./RGSV2Api"), exports);
|
|
60
61
|
__exportStar(require("./ScriptApi"), exports);
|
|
61
62
|
__exportStar(require("./SportsbookV2Api"), exports);
|
|
62
|
-
__exportStar(require("./StreamerLeaderboardApi"), exports);
|
|
63
63
|
__exportStar(require("./TatumApi"), exports);
|
|
64
64
|
__exportStar(require("./TestForNonProductionOnlyApi"), exports);
|
|
65
65
|
__exportStar(require("./UserAffiliateApi"), exports);
|
package/apis/index.ts
CHANGED
|
@@ -39,11 +39,11 @@ export * from './PublicApi';
|
|
|
39
39
|
export * from './PublicBannerApi';
|
|
40
40
|
export * from './PublicGamesApi';
|
|
41
41
|
export * from './PublicPolicyApi';
|
|
42
|
+
export * from './PublicStreamerApi';
|
|
42
43
|
export * from './RGSApi';
|
|
43
44
|
export * from './RGSV2Api';
|
|
44
45
|
export * from './ScriptApi';
|
|
45
46
|
export * from './SportsbookV2Api';
|
|
46
|
-
export * from './StreamerLeaderboardApi';
|
|
47
47
|
export * from './TatumApi';
|
|
48
48
|
export * from './TestForNonProductionOnlyApi';
|
|
49
49
|
export * from './UserAffiliateApi';
|
package/models/index.js
CHANGED
|
@@ -408,16 +408,11 @@ __exportStar(require("./ApiPublicLeaderboardHistoryGet200ResponseResponseObject"
|
|
|
408
408
|
__exportStar(require("./ApiPublicPolicyGet200Response"), exports);
|
|
409
409
|
__exportStar(require("./ApiPublicPolicyGet200ResponseResponseObject"), exports);
|
|
410
410
|
__exportStar(require("./ApiPublicProvidersGet200Response"), exports);
|
|
411
|
-
__exportStar(require("./ApiPublicStreamerCodesGet200Response"), exports);
|
|
412
|
-
__exportStar(require("./ApiPublicStreamerCodesGet200ResponseResponseObjectInner"), exports);
|
|
413
411
|
__exportStar(require("./ApiPublicStreamerLeaderboardGet200Response"), exports);
|
|
414
412
|
__exportStar(require("./ApiPublicStreamerLeaderboardGet200ResponseResponseObject"), exports);
|
|
415
413
|
__exportStar(require("./ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner"), exports);
|
|
416
414
|
__exportStar(require("./ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser"), exports);
|
|
417
415
|
__exportStar(require("./ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer"), exports);
|
|
418
|
-
__exportStar(require("./ApiPublicStreamerSummaryGet200Response"), exports);
|
|
419
|
-
__exportStar(require("./ApiPublicStreamerSummaryGet200ResponseResponseObject"), exports);
|
|
420
|
-
__exportStar(require("./ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner"), exports);
|
|
421
416
|
__exportStar(require("./ApiPublicUiDeploymentNotificationPost200Response"), exports);
|
|
422
417
|
__exportStar(require("./ApiPublicUiDeploymentNotificationPost200ResponseResponseObject"), exports);
|
|
423
418
|
__exportStar(require("./ApiPublicUiDeploymentNotificationPostRequest"), exports);
|
package/models/index.ts
CHANGED
|
@@ -392,16 +392,11 @@ export * from './ApiPublicLeaderboardHistoryGet200ResponseResponseObject';
|
|
|
392
392
|
export * from './ApiPublicPolicyGet200Response';
|
|
393
393
|
export * from './ApiPublicPolicyGet200ResponseResponseObject';
|
|
394
394
|
export * from './ApiPublicProvidersGet200Response';
|
|
395
|
-
export * from './ApiPublicStreamerCodesGet200Response';
|
|
396
|
-
export * from './ApiPublicStreamerCodesGet200ResponseResponseObjectInner';
|
|
397
395
|
export * from './ApiPublicStreamerLeaderboardGet200Response';
|
|
398
396
|
export * from './ApiPublicStreamerLeaderboardGet200ResponseResponseObject';
|
|
399
397
|
export * from './ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner';
|
|
400
398
|
export * from './ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser';
|
|
401
399
|
export * from './ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer';
|
|
402
|
-
export * from './ApiPublicStreamerSummaryGet200Response';
|
|
403
|
-
export * from './ApiPublicStreamerSummaryGet200ResponseResponseObject';
|
|
404
|
-
export * from './ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner';
|
|
405
400
|
export * from './ApiPublicUiDeploymentNotificationPost200Response';
|
|
406
401
|
export * from './ApiPublicUiDeploymentNotificationPost200ResponseResponseObject';
|
|
407
402
|
export * from './ApiPublicUiDeploymentNotificationPostRequest';
|
package/package.json
CHANGED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Swagger API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
ApiPublicStreamerCodesGet200Response,
|
|
19
|
-
ApiPublicStreamerLeaderboardGet200Response,
|
|
20
|
-
ApiPublicStreamerSummaryGet200Response,
|
|
21
|
-
} from '../models/index';
|
|
22
|
-
import {
|
|
23
|
-
ApiPublicStreamerCodesGet200ResponseFromJSON,
|
|
24
|
-
ApiPublicStreamerCodesGet200ResponseToJSON,
|
|
25
|
-
ApiPublicStreamerLeaderboardGet200ResponseFromJSON,
|
|
26
|
-
ApiPublicStreamerLeaderboardGet200ResponseToJSON,
|
|
27
|
-
ApiPublicStreamerSummaryGet200ResponseFromJSON,
|
|
28
|
-
ApiPublicStreamerSummaryGet200ResponseToJSON,
|
|
29
|
-
} from '../models/index';
|
|
30
|
-
|
|
31
|
-
export interface ApiPublicStreamerLeaderboardGetRequest {
|
|
32
|
-
type?: ApiPublicStreamerLeaderboardGetTypeEnum;
|
|
33
|
-
code?: string;
|
|
34
|
-
limit?: number | null;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export class StreamerLeaderboardApi extends runtime.BaseAPI {
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Get streamer affiliate codes and stats
|
|
44
|
-
*/
|
|
45
|
-
async apiPublicStreamerCodesGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPublicStreamerCodesGet200Response>> {
|
|
46
|
-
const queryParameters: any = {};
|
|
47
|
-
|
|
48
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
49
|
-
|
|
50
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
51
|
-
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
55
|
-
const token = this.configuration.accessToken;
|
|
56
|
-
const tokenString = await token("BearerAuth", []);
|
|
57
|
-
|
|
58
|
-
if (tokenString) {
|
|
59
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
const response = await this.request({
|
|
63
|
-
path: `/api/public/streamer/codes`,
|
|
64
|
-
method: 'GET',
|
|
65
|
-
headers: headerParameters,
|
|
66
|
-
query: queryParameters,
|
|
67
|
-
}, initOverrides);
|
|
68
|
-
|
|
69
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPublicStreamerCodesGet200ResponseFromJSON(jsonValue));
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Get streamer affiliate codes and stats
|
|
74
|
-
*/
|
|
75
|
-
async apiPublicStreamerCodesGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPublicStreamerCodesGet200Response> {
|
|
76
|
-
const response = await this.apiPublicStreamerCodesGetRaw(initOverrides);
|
|
77
|
-
return await response.value();
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Get streamer leaderboard (users who used streamer affiliate code)
|
|
82
|
-
*/
|
|
83
|
-
async apiPublicStreamerLeaderboardGetRaw(requestParameters: ApiPublicStreamerLeaderboardGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPublicStreamerLeaderboardGet200Response>> {
|
|
84
|
-
const queryParameters: any = {};
|
|
85
|
-
|
|
86
|
-
if (requestParameters['type'] != null) {
|
|
87
|
-
queryParameters['type'] = requestParameters['type'];
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
if (requestParameters['code'] != null) {
|
|
91
|
-
queryParameters['code'] = requestParameters['code'];
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
if (requestParameters['limit'] != null) {
|
|
95
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
99
|
-
|
|
100
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
101
|
-
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
105
|
-
const token = this.configuration.accessToken;
|
|
106
|
-
const tokenString = await token("BearerAuth", []);
|
|
107
|
-
|
|
108
|
-
if (tokenString) {
|
|
109
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
const response = await this.request({
|
|
113
|
-
path: `/api/public/streamer/leaderboard`,
|
|
114
|
-
method: 'GET',
|
|
115
|
-
headers: headerParameters,
|
|
116
|
-
query: queryParameters,
|
|
117
|
-
}, initOverrides);
|
|
118
|
-
|
|
119
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPublicStreamerLeaderboardGet200ResponseFromJSON(jsonValue));
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Get streamer leaderboard (users who used streamer affiliate code)
|
|
124
|
-
*/
|
|
125
|
-
async apiPublicStreamerLeaderboardGet(requestParameters: ApiPublicStreamerLeaderboardGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPublicStreamerLeaderboardGet200Response> {
|
|
126
|
-
const response = await this.apiPublicStreamerLeaderboardGetRaw(requestParameters, initOverrides);
|
|
127
|
-
return await response.value();
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Get streamer summary with all codes and referred user counts
|
|
132
|
-
*/
|
|
133
|
-
async apiPublicStreamerSummaryGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPublicStreamerSummaryGet200Response>> {
|
|
134
|
-
const queryParameters: any = {};
|
|
135
|
-
|
|
136
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
137
|
-
|
|
138
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
139
|
-
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
143
|
-
const token = this.configuration.accessToken;
|
|
144
|
-
const tokenString = await token("BearerAuth", []);
|
|
145
|
-
|
|
146
|
-
if (tokenString) {
|
|
147
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
const response = await this.request({
|
|
151
|
-
path: `/api/public/streamer/summary`,
|
|
152
|
-
method: 'GET',
|
|
153
|
-
headers: headerParameters,
|
|
154
|
-
query: queryParameters,
|
|
155
|
-
}, initOverrides);
|
|
156
|
-
|
|
157
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPublicStreamerSummaryGet200ResponseFromJSON(jsonValue));
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Get streamer summary with all codes and referred user counts
|
|
162
|
-
*/
|
|
163
|
-
async apiPublicStreamerSummaryGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPublicStreamerSummaryGet200Response> {
|
|
164
|
-
const response = await this.apiPublicStreamerSummaryGetRaw(initOverrides);
|
|
165
|
-
return await response.value();
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* @export
|
|
172
|
-
*/
|
|
173
|
-
export const ApiPublicStreamerLeaderboardGetTypeEnum = {
|
|
174
|
-
Daily: 'daily',
|
|
175
|
-
Weekly: 'weekly',
|
|
176
|
-
Monthly: 'monthly'
|
|
177
|
-
} as const;
|
|
178
|
-
export type ApiPublicStreamerLeaderboardGetTypeEnum = typeof ApiPublicStreamerLeaderboardGetTypeEnum[keyof typeof ApiPublicStreamerLeaderboardGetTypeEnum];
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Swagger API
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfApiPublicStreamerCodesGet200Response = instanceOfApiPublicStreamerCodesGet200Response;
|
|
17
|
-
exports.ApiPublicStreamerCodesGet200ResponseFromJSON = ApiPublicStreamerCodesGet200ResponseFromJSON;
|
|
18
|
-
exports.ApiPublicStreamerCodesGet200ResponseFromJSONTyped = ApiPublicStreamerCodesGet200ResponseFromJSONTyped;
|
|
19
|
-
exports.ApiPublicStreamerCodesGet200ResponseToJSON = ApiPublicStreamerCodesGet200ResponseToJSON;
|
|
20
|
-
exports.ApiPublicStreamerCodesGet200ResponseToJSONTyped = ApiPublicStreamerCodesGet200ResponseToJSONTyped;
|
|
21
|
-
const ApiPublicStreamerCodesGet200ResponseResponseObjectInner_1 = require("./ApiPublicStreamerCodesGet200ResponseResponseObjectInner");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the ApiPublicStreamerCodesGet200Response interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfApiPublicStreamerCodesGet200Response(value) {
|
|
26
|
-
if (!('success' in value) || value['success'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('message' in value) || value['message'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
function ApiPublicStreamerCodesGet200ResponseFromJSON(json) {
|
|
35
|
-
return ApiPublicStreamerCodesGet200ResponseFromJSONTyped(json, false);
|
|
36
|
-
}
|
|
37
|
-
function ApiPublicStreamerCodesGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
-
if (json == null) {
|
|
39
|
-
return json;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'success': json['success'],
|
|
43
|
-
'message': json['message'],
|
|
44
|
-
'responseObject': json['responseObject'] == null ? undefined : (json['responseObject'].map(ApiPublicStreamerCodesGet200ResponseResponseObjectInner_1.ApiPublicStreamerCodesGet200ResponseResponseObjectInnerFromJSON)),
|
|
45
|
-
'statusCode': json['statusCode'],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function ApiPublicStreamerCodesGet200ResponseToJSON(json) {
|
|
49
|
-
return ApiPublicStreamerCodesGet200ResponseToJSONTyped(json, false);
|
|
50
|
-
}
|
|
51
|
-
function ApiPublicStreamerCodesGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
-
if (value == null) {
|
|
53
|
-
return value;
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
'success': value['success'],
|
|
57
|
-
'message': value['message'],
|
|
58
|
-
'responseObject': value['responseObject'] == null ? undefined : (value['responseObject'].map(ApiPublicStreamerCodesGet200ResponseResponseObjectInner_1.ApiPublicStreamerCodesGet200ResponseResponseObjectInnerToJSON)),
|
|
59
|
-
'statusCode': value['statusCode'],
|
|
60
|
-
};
|
|
61
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Swagger API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { ApiPublicStreamerCodesGet200ResponseResponseObjectInner } from './ApiPublicStreamerCodesGet200ResponseResponseObjectInner';
|
|
17
|
-
import {
|
|
18
|
-
ApiPublicStreamerCodesGet200ResponseResponseObjectInnerFromJSON,
|
|
19
|
-
ApiPublicStreamerCodesGet200ResponseResponseObjectInnerFromJSONTyped,
|
|
20
|
-
ApiPublicStreamerCodesGet200ResponseResponseObjectInnerToJSON,
|
|
21
|
-
ApiPublicStreamerCodesGet200ResponseResponseObjectInnerToJSONTyped,
|
|
22
|
-
} from './ApiPublicStreamerCodesGet200ResponseResponseObjectInner';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface ApiPublicStreamerCodesGet200Response
|
|
28
|
-
*/
|
|
29
|
-
export interface ApiPublicStreamerCodesGet200Response {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof ApiPublicStreamerCodesGet200Response
|
|
34
|
-
*/
|
|
35
|
-
success: boolean;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof ApiPublicStreamerCodesGet200Response
|
|
40
|
-
*/
|
|
41
|
-
message: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {Array<ApiPublicStreamerCodesGet200ResponseResponseObjectInner>}
|
|
45
|
-
* @memberof ApiPublicStreamerCodesGet200Response
|
|
46
|
-
*/
|
|
47
|
-
responseObject?: Array<ApiPublicStreamerCodesGet200ResponseResponseObjectInner>;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof ApiPublicStreamerCodesGet200Response
|
|
52
|
-
*/
|
|
53
|
-
statusCode: number;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Check if a given object implements the ApiPublicStreamerCodesGet200Response interface.
|
|
58
|
-
*/
|
|
59
|
-
export function instanceOfApiPublicStreamerCodesGet200Response(value: object): value is ApiPublicStreamerCodesGet200Response {
|
|
60
|
-
if (!('success' in value) || value['success'] === undefined) return false;
|
|
61
|
-
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
|
-
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
63
|
-
return true;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function ApiPublicStreamerCodesGet200ResponseFromJSON(json: any): ApiPublicStreamerCodesGet200Response {
|
|
67
|
-
return ApiPublicStreamerCodesGet200ResponseFromJSONTyped(json, false);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function ApiPublicStreamerCodesGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicStreamerCodesGet200Response {
|
|
71
|
-
if (json == null) {
|
|
72
|
-
return json;
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
|
|
76
|
-
'success': json['success'],
|
|
77
|
-
'message': json['message'],
|
|
78
|
-
'responseObject': json['responseObject'] == null ? undefined : ((json['responseObject'] as Array<any>).map(ApiPublicStreamerCodesGet200ResponseResponseObjectInnerFromJSON)),
|
|
79
|
-
'statusCode': json['statusCode'],
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export function ApiPublicStreamerCodesGet200ResponseToJSON(json: any): ApiPublicStreamerCodesGet200Response {
|
|
84
|
-
return ApiPublicStreamerCodesGet200ResponseToJSONTyped(json, false);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export function ApiPublicStreamerCodesGet200ResponseToJSONTyped(value?: ApiPublicStreamerCodesGet200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
-
if (value == null) {
|
|
89
|
-
return value;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return {
|
|
93
|
-
|
|
94
|
-
'success': value['success'],
|
|
95
|
-
'message': value['message'],
|
|
96
|
-
'responseObject': value['responseObject'] == null ? undefined : ((value['responseObject'] as Array<any>).map(ApiPublicStreamerCodesGet200ResponseResponseObjectInnerToJSON)),
|
|
97
|
-
'statusCode': value['statusCode'],
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Swagger API
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfApiPublicStreamerCodesGet200ResponseResponseObjectInner = instanceOfApiPublicStreamerCodesGet200ResponseResponseObjectInner;
|
|
17
|
-
exports.ApiPublicStreamerCodesGet200ResponseResponseObjectInnerFromJSON = ApiPublicStreamerCodesGet200ResponseResponseObjectInnerFromJSON;
|
|
18
|
-
exports.ApiPublicStreamerCodesGet200ResponseResponseObjectInnerFromJSONTyped = ApiPublicStreamerCodesGet200ResponseResponseObjectInnerFromJSONTyped;
|
|
19
|
-
exports.ApiPublicStreamerCodesGet200ResponseResponseObjectInnerToJSON = ApiPublicStreamerCodesGet200ResponseResponseObjectInnerToJSON;
|
|
20
|
-
exports.ApiPublicStreamerCodesGet200ResponseResponseObjectInnerToJSONTyped = ApiPublicStreamerCodesGet200ResponseResponseObjectInnerToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the ApiPublicStreamerCodesGet200ResponseResponseObjectInner interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfApiPublicStreamerCodesGet200ResponseResponseObjectInner(value) {
|
|
25
|
-
if (!('code' in value) || value['code'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('totalReferred' in value) || value['totalReferred'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('status' in value) || value['status'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function ApiPublicStreamerCodesGet200ResponseResponseObjectInnerFromJSON(json) {
|
|
34
|
-
return ApiPublicStreamerCodesGet200ResponseResponseObjectInnerFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function ApiPublicStreamerCodesGet200ResponseResponseObjectInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'code': json['code'],
|
|
42
|
-
'totalReferred': json['totalReferred'],
|
|
43
|
-
'status': json['status'],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function ApiPublicStreamerCodesGet200ResponseResponseObjectInnerToJSON(json) {
|
|
47
|
-
return ApiPublicStreamerCodesGet200ResponseResponseObjectInnerToJSONTyped(json, false);
|
|
48
|
-
}
|
|
49
|
-
function ApiPublicStreamerCodesGet200ResponseResponseObjectInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
-
if (value == null) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
'code': value['code'],
|
|
55
|
-
'totalReferred': value['totalReferred'],
|
|
56
|
-
'status': value['status'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Swagger API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ApiPublicStreamerCodesGet200ResponseResponseObjectInner
|
|
20
|
-
*/
|
|
21
|
-
export interface ApiPublicStreamerCodesGet200ResponseResponseObjectInner {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ApiPublicStreamerCodesGet200ResponseResponseObjectInner
|
|
26
|
-
*/
|
|
27
|
-
code: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof ApiPublicStreamerCodesGet200ResponseResponseObjectInner
|
|
32
|
-
*/
|
|
33
|
-
totalReferred: number;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof ApiPublicStreamerCodesGet200ResponseResponseObjectInner
|
|
38
|
-
*/
|
|
39
|
-
status: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the ApiPublicStreamerCodesGet200ResponseResponseObjectInner interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfApiPublicStreamerCodesGet200ResponseResponseObjectInner(value: object): value is ApiPublicStreamerCodesGet200ResponseResponseObjectInner {
|
|
46
|
-
if (!('code' in value) || value['code'] === undefined) return false;
|
|
47
|
-
if (!('totalReferred' in value) || value['totalReferred'] === undefined) return false;
|
|
48
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
49
|
-
return true;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function ApiPublicStreamerCodesGet200ResponseResponseObjectInnerFromJSON(json: any): ApiPublicStreamerCodesGet200ResponseResponseObjectInner {
|
|
53
|
-
return ApiPublicStreamerCodesGet200ResponseResponseObjectInnerFromJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function ApiPublicStreamerCodesGet200ResponseResponseObjectInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicStreamerCodesGet200ResponseResponseObjectInner {
|
|
57
|
-
if (json == null) {
|
|
58
|
-
return json;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'code': json['code'],
|
|
63
|
-
'totalReferred': json['totalReferred'],
|
|
64
|
-
'status': json['status'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function ApiPublicStreamerCodesGet200ResponseResponseObjectInnerToJSON(json: any): ApiPublicStreamerCodesGet200ResponseResponseObjectInner {
|
|
69
|
-
return ApiPublicStreamerCodesGet200ResponseResponseObjectInnerToJSONTyped(json, false);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function ApiPublicStreamerCodesGet200ResponseResponseObjectInnerToJSONTyped(value?: ApiPublicStreamerCodesGet200ResponseResponseObjectInner | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
-
if (value == null) {
|
|
74
|
-
return value;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
'code': value['code'],
|
|
80
|
-
'totalReferred': value['totalReferred'],
|
|
81
|
-
'status': value['status'],
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Swagger API
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfApiPublicStreamerSummaryGet200Response = instanceOfApiPublicStreamerSummaryGet200Response;
|
|
17
|
-
exports.ApiPublicStreamerSummaryGet200ResponseFromJSON = ApiPublicStreamerSummaryGet200ResponseFromJSON;
|
|
18
|
-
exports.ApiPublicStreamerSummaryGet200ResponseFromJSONTyped = ApiPublicStreamerSummaryGet200ResponseFromJSONTyped;
|
|
19
|
-
exports.ApiPublicStreamerSummaryGet200ResponseToJSON = ApiPublicStreamerSummaryGet200ResponseToJSON;
|
|
20
|
-
exports.ApiPublicStreamerSummaryGet200ResponseToJSONTyped = ApiPublicStreamerSummaryGet200ResponseToJSONTyped;
|
|
21
|
-
const ApiPublicStreamerSummaryGet200ResponseResponseObject_1 = require("./ApiPublicStreamerSummaryGet200ResponseResponseObject");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the ApiPublicStreamerSummaryGet200Response interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfApiPublicStreamerSummaryGet200Response(value) {
|
|
26
|
-
if (!('success' in value) || value['success'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('message' in value) || value['message'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
function ApiPublicStreamerSummaryGet200ResponseFromJSON(json) {
|
|
35
|
-
return ApiPublicStreamerSummaryGet200ResponseFromJSONTyped(json, false);
|
|
36
|
-
}
|
|
37
|
-
function ApiPublicStreamerSummaryGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
-
if (json == null) {
|
|
39
|
-
return json;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'success': json['success'],
|
|
43
|
-
'message': json['message'],
|
|
44
|
-
'responseObject': json['responseObject'] == null ? undefined : (0, ApiPublicStreamerSummaryGet200ResponseResponseObject_1.ApiPublicStreamerSummaryGet200ResponseResponseObjectFromJSON)(json['responseObject']),
|
|
45
|
-
'statusCode': json['statusCode'],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function ApiPublicStreamerSummaryGet200ResponseToJSON(json) {
|
|
49
|
-
return ApiPublicStreamerSummaryGet200ResponseToJSONTyped(json, false);
|
|
50
|
-
}
|
|
51
|
-
function ApiPublicStreamerSummaryGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
-
if (value == null) {
|
|
53
|
-
return value;
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
'success': value['success'],
|
|
57
|
-
'message': value['message'],
|
|
58
|
-
'responseObject': (0, ApiPublicStreamerSummaryGet200ResponseResponseObject_1.ApiPublicStreamerSummaryGet200ResponseResponseObjectToJSON)(value['responseObject']),
|
|
59
|
-
'statusCode': value['statusCode'],
|
|
60
|
-
};
|
|
61
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Swagger API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { ApiPublicStreamerSummaryGet200ResponseResponseObject } from './ApiPublicStreamerSummaryGet200ResponseResponseObject';
|
|
17
|
-
import {
|
|
18
|
-
ApiPublicStreamerSummaryGet200ResponseResponseObjectFromJSON,
|
|
19
|
-
ApiPublicStreamerSummaryGet200ResponseResponseObjectFromJSONTyped,
|
|
20
|
-
ApiPublicStreamerSummaryGet200ResponseResponseObjectToJSON,
|
|
21
|
-
ApiPublicStreamerSummaryGet200ResponseResponseObjectToJSONTyped,
|
|
22
|
-
} from './ApiPublicStreamerSummaryGet200ResponseResponseObject';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface ApiPublicStreamerSummaryGet200Response
|
|
28
|
-
*/
|
|
29
|
-
export interface ApiPublicStreamerSummaryGet200Response {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof ApiPublicStreamerSummaryGet200Response
|
|
34
|
-
*/
|
|
35
|
-
success: boolean;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof ApiPublicStreamerSummaryGet200Response
|
|
40
|
-
*/
|
|
41
|
-
message: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {ApiPublicStreamerSummaryGet200ResponseResponseObject}
|
|
45
|
-
* @memberof ApiPublicStreamerSummaryGet200Response
|
|
46
|
-
*/
|
|
47
|
-
responseObject?: ApiPublicStreamerSummaryGet200ResponseResponseObject;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof ApiPublicStreamerSummaryGet200Response
|
|
52
|
-
*/
|
|
53
|
-
statusCode: number;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Check if a given object implements the ApiPublicStreamerSummaryGet200Response interface.
|
|
58
|
-
*/
|
|
59
|
-
export function instanceOfApiPublicStreamerSummaryGet200Response(value: object): value is ApiPublicStreamerSummaryGet200Response {
|
|
60
|
-
if (!('success' in value) || value['success'] === undefined) return false;
|
|
61
|
-
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
|
-
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
63
|
-
return true;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function ApiPublicStreamerSummaryGet200ResponseFromJSON(json: any): ApiPublicStreamerSummaryGet200Response {
|
|
67
|
-
return ApiPublicStreamerSummaryGet200ResponseFromJSONTyped(json, false);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function ApiPublicStreamerSummaryGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicStreamerSummaryGet200Response {
|
|
71
|
-
if (json == null) {
|
|
72
|
-
return json;
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
|
|
76
|
-
'success': json['success'],
|
|
77
|
-
'message': json['message'],
|
|
78
|
-
'responseObject': json['responseObject'] == null ? undefined : ApiPublicStreamerSummaryGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
-
'statusCode': json['statusCode'],
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export function ApiPublicStreamerSummaryGet200ResponseToJSON(json: any): ApiPublicStreamerSummaryGet200Response {
|
|
84
|
-
return ApiPublicStreamerSummaryGet200ResponseToJSONTyped(json, false);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export function ApiPublicStreamerSummaryGet200ResponseToJSONTyped(value?: ApiPublicStreamerSummaryGet200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
-
if (value == null) {
|
|
89
|
-
return value;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return {
|
|
93
|
-
|
|
94
|
-
'success': value['success'],
|
|
95
|
-
'message': value['message'],
|
|
96
|
-
'responseObject': ApiPublicStreamerSummaryGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
-
'statusCode': value['statusCode'],
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Swagger API
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfApiPublicStreamerSummaryGet200ResponseResponseObject = instanceOfApiPublicStreamerSummaryGet200ResponseResponseObject;
|
|
17
|
-
exports.ApiPublicStreamerSummaryGet200ResponseResponseObjectFromJSON = ApiPublicStreamerSummaryGet200ResponseResponseObjectFromJSON;
|
|
18
|
-
exports.ApiPublicStreamerSummaryGet200ResponseResponseObjectFromJSONTyped = ApiPublicStreamerSummaryGet200ResponseResponseObjectFromJSONTyped;
|
|
19
|
-
exports.ApiPublicStreamerSummaryGet200ResponseResponseObjectToJSON = ApiPublicStreamerSummaryGet200ResponseResponseObjectToJSON;
|
|
20
|
-
exports.ApiPublicStreamerSummaryGet200ResponseResponseObjectToJSONTyped = ApiPublicStreamerSummaryGet200ResponseResponseObjectToJSONTyped;
|
|
21
|
-
const ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner_1 = require("./ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner");
|
|
22
|
-
const ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer_1 = require("./ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer");
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the ApiPublicStreamerSummaryGet200ResponseResponseObject interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfApiPublicStreamerSummaryGet200ResponseResponseObject(value) {
|
|
27
|
-
if (!('streamer' in value) || value['streamer'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('totalCodes' in value) || value['totalCodes'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('totalReferredUsers' in value) || value['totalReferredUsers'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('totalAllTimeWager' in value) || value['totalAllTimeWager'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('codes' in value) || value['codes'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
function ApiPublicStreamerSummaryGet200ResponseResponseObjectFromJSON(json) {
|
|
40
|
-
return ApiPublicStreamerSummaryGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function ApiPublicStreamerSummaryGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'streamer': (0, ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer_1.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSON)(json['streamer']),
|
|
48
|
-
'totalCodes': json['totalCodes'],
|
|
49
|
-
'totalReferredUsers': json['totalReferredUsers'],
|
|
50
|
-
'totalAllTimeWager': json['totalAllTimeWager'],
|
|
51
|
-
'codes': (json['codes'].map(ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner_1.ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerFromJSON)),
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
function ApiPublicStreamerSummaryGet200ResponseResponseObjectToJSON(json) {
|
|
55
|
-
return ApiPublicStreamerSummaryGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
56
|
-
}
|
|
57
|
-
function ApiPublicStreamerSummaryGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
-
if (value == null) {
|
|
59
|
-
return value;
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
'streamer': (0, ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer_1.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSON)(value['streamer']),
|
|
63
|
-
'totalCodes': value['totalCodes'],
|
|
64
|
-
'totalReferredUsers': value['totalReferredUsers'],
|
|
65
|
-
'totalAllTimeWager': value['totalAllTimeWager'],
|
|
66
|
-
'codes': (value['codes'].map(ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner_1.ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerToJSON)),
|
|
67
|
-
};
|
|
68
|
-
}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Swagger API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner } from './ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner';
|
|
17
|
-
import {
|
|
18
|
-
ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerFromJSON,
|
|
19
|
-
ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerFromJSONTyped,
|
|
20
|
-
ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerToJSON,
|
|
21
|
-
ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerToJSONTyped,
|
|
22
|
-
} from './ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner';
|
|
23
|
-
import type { ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer } from './ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer';
|
|
24
|
-
import {
|
|
25
|
-
ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSON,
|
|
26
|
-
ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSONTyped,
|
|
27
|
-
ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSON,
|
|
28
|
-
ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSONTyped,
|
|
29
|
-
} from './ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface ApiPublicStreamerSummaryGet200ResponseResponseObject
|
|
35
|
-
*/
|
|
36
|
-
export interface ApiPublicStreamerSummaryGet200ResponseResponseObject {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer}
|
|
40
|
-
* @memberof ApiPublicStreamerSummaryGet200ResponseResponseObject
|
|
41
|
-
*/
|
|
42
|
-
streamer: ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @memberof ApiPublicStreamerSummaryGet200ResponseResponseObject
|
|
47
|
-
*/
|
|
48
|
-
totalCodes: number;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {number}
|
|
52
|
-
* @memberof ApiPublicStreamerSummaryGet200ResponseResponseObject
|
|
53
|
-
*/
|
|
54
|
-
totalReferredUsers: number;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {number}
|
|
58
|
-
* @memberof ApiPublicStreamerSummaryGet200ResponseResponseObject
|
|
59
|
-
*/
|
|
60
|
-
totalAllTimeWager: number;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {Array<ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner>}
|
|
64
|
-
* @memberof ApiPublicStreamerSummaryGet200ResponseResponseObject
|
|
65
|
-
*/
|
|
66
|
-
codes: Array<ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner>;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Check if a given object implements the ApiPublicStreamerSummaryGet200ResponseResponseObject interface.
|
|
71
|
-
*/
|
|
72
|
-
export function instanceOfApiPublicStreamerSummaryGet200ResponseResponseObject(value: object): value is ApiPublicStreamerSummaryGet200ResponseResponseObject {
|
|
73
|
-
if (!('streamer' in value) || value['streamer'] === undefined) return false;
|
|
74
|
-
if (!('totalCodes' in value) || value['totalCodes'] === undefined) return false;
|
|
75
|
-
if (!('totalReferredUsers' in value) || value['totalReferredUsers'] === undefined) return false;
|
|
76
|
-
if (!('totalAllTimeWager' in value) || value['totalAllTimeWager'] === undefined) return false;
|
|
77
|
-
if (!('codes' in value) || value['codes'] === undefined) return false;
|
|
78
|
-
return true;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export function ApiPublicStreamerSummaryGet200ResponseResponseObjectFromJSON(json: any): ApiPublicStreamerSummaryGet200ResponseResponseObject {
|
|
82
|
-
return ApiPublicStreamerSummaryGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export function ApiPublicStreamerSummaryGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicStreamerSummaryGet200ResponseResponseObject {
|
|
86
|
-
if (json == null) {
|
|
87
|
-
return json;
|
|
88
|
-
}
|
|
89
|
-
return {
|
|
90
|
-
|
|
91
|
-
'streamer': ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSON(json['streamer']),
|
|
92
|
-
'totalCodes': json['totalCodes'],
|
|
93
|
-
'totalReferredUsers': json['totalReferredUsers'],
|
|
94
|
-
'totalAllTimeWager': json['totalAllTimeWager'],
|
|
95
|
-
'codes': ((json['codes'] as Array<any>).map(ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerFromJSON)),
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export function ApiPublicStreamerSummaryGet200ResponseResponseObjectToJSON(json: any): ApiPublicStreamerSummaryGet200ResponseResponseObject {
|
|
100
|
-
return ApiPublicStreamerSummaryGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function ApiPublicStreamerSummaryGet200ResponseResponseObjectToJSONTyped(value?: ApiPublicStreamerSummaryGet200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
104
|
-
if (value == null) {
|
|
105
|
-
return value;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
return {
|
|
109
|
-
|
|
110
|
-
'streamer': ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSON(value['streamer']),
|
|
111
|
-
'totalCodes': value['totalCodes'],
|
|
112
|
-
'totalReferredUsers': value['totalReferredUsers'],
|
|
113
|
-
'totalAllTimeWager': value['totalAllTimeWager'],
|
|
114
|
-
'codes': ((value['codes'] as Array<any>).map(ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerToJSON)),
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Swagger API
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner = instanceOfApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner;
|
|
17
|
-
exports.ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerFromJSON = ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerFromJSON;
|
|
18
|
-
exports.ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerFromJSONTyped = ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerFromJSONTyped;
|
|
19
|
-
exports.ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerToJSON = ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerToJSON;
|
|
20
|
-
exports.ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerToJSONTyped = ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner(value) {
|
|
25
|
-
if (!('code' in value) || value['code'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('referredCount' in value) || value['referredCount'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('status' in value) || value['status'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerFromJSON(json) {
|
|
34
|
-
return ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'code': json['code'],
|
|
42
|
-
'referredCount': json['referredCount'],
|
|
43
|
-
'status': json['status'],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerToJSON(json) {
|
|
47
|
-
return ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerToJSONTyped(json, false);
|
|
48
|
-
}
|
|
49
|
-
function ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
-
if (value == null) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
'code': value['code'],
|
|
55
|
-
'referredCount': value['referredCount'],
|
|
56
|
-
'status': value['status'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Swagger API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner
|
|
20
|
-
*/
|
|
21
|
-
export interface ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner
|
|
26
|
-
*/
|
|
27
|
-
code: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner
|
|
32
|
-
*/
|
|
33
|
-
referredCount: number;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner
|
|
38
|
-
*/
|
|
39
|
-
status: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner(value: object): value is ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner {
|
|
46
|
-
if (!('code' in value) || value['code'] === undefined) return false;
|
|
47
|
-
if (!('referredCount' in value) || value['referredCount'] === undefined) return false;
|
|
48
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
49
|
-
return true;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerFromJSON(json: any): ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner {
|
|
53
|
-
return ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerFromJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner {
|
|
57
|
-
if (json == null) {
|
|
58
|
-
return json;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'code': json['code'],
|
|
63
|
-
'referredCount': json['referredCount'],
|
|
64
|
-
'status': json['status'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerToJSON(json: any): ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner {
|
|
69
|
-
return ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerToJSONTyped(json, false);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInnerToJSONTyped(value?: ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
-
if (value == null) {
|
|
74
|
-
return value;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
'code': value['code'],
|
|
80
|
-
'referredCount': value['referredCount'],
|
|
81
|
-
'status': value['status'],
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|