@gambulls-org/gambulls-apis 3.0.572 → 3.0.573
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 +11 -0
- package/apis/StreamerLeaderboardApi.js +178 -0
- package/apis/StreamerLeaderboardApi.ts +178 -0
- package/apis/index.js +1 -0
- package/apis/index.ts +1 -0
- package/models/ApiPublicStreamerCodesGet200Response.js +61 -0
- package/models/ApiPublicStreamerCodesGet200Response.ts +100 -0
- package/models/ApiPublicStreamerCodesGet200ResponseResponseObjectInner.js +58 -0
- package/models/ApiPublicStreamerCodesGet200ResponseResponseObjectInner.ts +84 -0
- package/models/ApiPublicStreamerLeaderboardGet200Response.js +61 -0
- package/models/ApiPublicStreamerLeaderboardGet200Response.ts +100 -0
- package/models/ApiPublicStreamerLeaderboardGet200ResponseResponseObject.js +84 -0
- package/models/ApiPublicStreamerLeaderboardGet200ResponseResponseObject.ts +153 -0
- package/models/ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner.js +63 -0
- package/models/ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner.ts +101 -0
- package/models/ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser.js +62 -0
- package/models/ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser.ts +93 -0
- package/models/ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer.js +54 -0
- package/models/ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer.ts +75 -0
- package/models/ApiPublicStreamerSummaryGet200Response.js +61 -0
- package/models/ApiPublicStreamerSummaryGet200Response.ts +100 -0
- package/models/ApiPublicStreamerSummaryGet200ResponseResponseObject.js +68 -0
- package/models/ApiPublicStreamerSummaryGet200ResponseResponseObject.ts +117 -0
- package/models/ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner.js +58 -0
- package/models/ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner.ts +84 -0
- package/models/index.js +10 -0
- package/models/index.ts +10 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -41,6 +41,7 @@ apis/RGSApi.ts
|
|
|
41
41
|
apis/RGSV2Api.ts
|
|
42
42
|
apis/ScriptApi.ts
|
|
43
43
|
apis/SportsbookV2Api.ts
|
|
44
|
+
apis/StreamerLeaderboardApi.ts
|
|
44
45
|
apis/TatumApi.ts
|
|
45
46
|
apis/TestForNonProductionOnlyApi.ts
|
|
46
47
|
apis/UserAffiliateApi.ts
|
|
@@ -457,6 +458,16 @@ models/ApiPublicLeaderboardHistoryGet200ResponseResponseObject.ts
|
|
|
457
458
|
models/ApiPublicPolicyGet200Response.ts
|
|
458
459
|
models/ApiPublicPolicyGet200ResponseResponseObject.ts
|
|
459
460
|
models/ApiPublicProvidersGet200Response.ts
|
|
461
|
+
models/ApiPublicStreamerCodesGet200Response.ts
|
|
462
|
+
models/ApiPublicStreamerCodesGet200ResponseResponseObjectInner.ts
|
|
463
|
+
models/ApiPublicStreamerLeaderboardGet200Response.ts
|
|
464
|
+
models/ApiPublicStreamerLeaderboardGet200ResponseResponseObject.ts
|
|
465
|
+
models/ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner.ts
|
|
466
|
+
models/ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser.ts
|
|
467
|
+
models/ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer.ts
|
|
468
|
+
models/ApiPublicStreamerSummaryGet200Response.ts
|
|
469
|
+
models/ApiPublicStreamerSummaryGet200ResponseResponseObject.ts
|
|
470
|
+
models/ApiPublicStreamerSummaryGet200ResponseResponseObjectCodesInner.ts
|
|
460
471
|
models/ApiPublicUiDeploymentNotificationPost200Response.ts
|
|
461
472
|
models/ApiPublicUiDeploymentNotificationPost200ResponseResponseObject.ts
|
|
462
473
|
models/ApiPublicUiDeploymentNotificationPostRequest.ts
|
|
@@ -0,0 +1,178 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.ApiPublicStreamerLeaderboardGetTypeEnum = exports.StreamerLeaderboardApi = void 0;
|
|
49
|
+
const runtime = __importStar(require("../runtime"));
|
|
50
|
+
const index_1 = require("../models/index");
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
class StreamerLeaderboardApi extends runtime.BaseAPI {
|
|
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
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Get streamer leaderboard (users who used streamer affiliate code)
|
|
92
|
+
*/
|
|
93
|
+
apiPublicStreamerLeaderboardGetRaw(requestParameters, initOverrides) {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
const queryParameters = {};
|
|
96
|
+
if (requestParameters['type'] != null) {
|
|
97
|
+
queryParameters['type'] = requestParameters['type'];
|
|
98
|
+
}
|
|
99
|
+
if (requestParameters['code'] != null) {
|
|
100
|
+
queryParameters['code'] = requestParameters['code'];
|
|
101
|
+
}
|
|
102
|
+
if (requestParameters['limit'] != null) {
|
|
103
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
104
|
+
}
|
|
105
|
+
const headerParameters = {};
|
|
106
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
107
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
108
|
+
}
|
|
109
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
110
|
+
const token = this.configuration.accessToken;
|
|
111
|
+
const tokenString = yield token("BearerAuth", []);
|
|
112
|
+
if (tokenString) {
|
|
113
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
const response = yield this.request({
|
|
117
|
+
path: `/api/public/streamer/leaderboard`,
|
|
118
|
+
method: 'GET',
|
|
119
|
+
headers: headerParameters,
|
|
120
|
+
query: queryParameters,
|
|
121
|
+
}, initOverrides);
|
|
122
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiPublicStreamerLeaderboardGet200ResponseFromJSON)(jsonValue));
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Get streamer leaderboard (users who used streamer affiliate code)
|
|
127
|
+
*/
|
|
128
|
+
apiPublicStreamerLeaderboardGet() {
|
|
129
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
130
|
+
const response = yield this.apiPublicStreamerLeaderboardGetRaw(requestParameters, initOverrides);
|
|
131
|
+
return yield response.value();
|
|
132
|
+
});
|
|
133
|
+
}
|
|
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
|
+
}
|
|
170
|
+
exports.StreamerLeaderboardApi = StreamerLeaderboardApi;
|
|
171
|
+
/**
|
|
172
|
+
* @export
|
|
173
|
+
*/
|
|
174
|
+
exports.ApiPublicStreamerLeaderboardGetTypeEnum = {
|
|
175
|
+
Daily: 'daily',
|
|
176
|
+
Weekly: 'weekly',
|
|
177
|
+
Monthly: 'monthly'
|
|
178
|
+
};
|
|
@@ -0,0 +1,178 @@
|
|
|
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];
|
package/apis/index.js
CHANGED
|
@@ -59,6 +59,7 @@ __exportStar(require("./RGSApi"), exports);
|
|
|
59
59
|
__exportStar(require("./RGSV2Api"), exports);
|
|
60
60
|
__exportStar(require("./ScriptApi"), exports);
|
|
61
61
|
__exportStar(require("./SportsbookV2Api"), exports);
|
|
62
|
+
__exportStar(require("./StreamerLeaderboardApi"), exports);
|
|
62
63
|
__exportStar(require("./TatumApi"), exports);
|
|
63
64
|
__exportStar(require("./TestForNonProductionOnlyApi"), exports);
|
|
64
65
|
__exportStar(require("./UserAffiliateApi"), exports);
|
package/apis/index.ts
CHANGED
|
@@ -43,6 +43,7 @@ export * from './RGSApi';
|
|
|
43
43
|
export * from './RGSV2Api';
|
|
44
44
|
export * from './ScriptApi';
|
|
45
45
|
export * from './SportsbookV2Api';
|
|
46
|
+
export * from './StreamerLeaderboardApi';
|
|
46
47
|
export * from './TatumApi';
|
|
47
48
|
export * from './TestForNonProductionOnlyApi';
|
|
48
49
|
export * from './UserAffiliateApi';
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
}
|