@gambulls-org/gambulls-apis 3.0.572 → 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.
@@ -37,6 +37,7 @@ 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
@@ -457,6 +458,11 @@ models/ApiPublicLeaderboardHistoryGet200ResponseResponseObject.ts
457
458
  models/ApiPublicPolicyGet200Response.ts
458
459
  models/ApiPublicPolicyGet200ResponseResponseObject.ts
459
460
  models/ApiPublicProvidersGet200Response.ts
461
+ models/ApiPublicStreamerLeaderboardGet200Response.ts
462
+ models/ApiPublicStreamerLeaderboardGet200ResponseResponseObject.ts
463
+ models/ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner.ts
464
+ models/ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser.ts
465
+ models/ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer.ts
460
466
  models/ApiPublicUiDeploymentNotificationPost200Response.ts
461
467
  models/ApiPublicUiDeploymentNotificationPost200ResponseResponseObject.ts
462
468
  models/ApiPublicUiDeploymentNotificationPostRequest.ts
@@ -0,0 +1,108 @@
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.PublicStreamerApi = void 0;
49
+ const runtime = __importStar(require("../runtime"));
50
+ const index_1 = require("../models/index");
51
+ /**
52
+ *
53
+ */
54
+ class PublicStreamerApi extends runtime.BaseAPI {
55
+ /**
56
+ * Get streamer leaderboard (users who used streamer affiliate code)
57
+ */
58
+ apiPublicStreamerLeaderboardGetRaw(requestParameters, initOverrides) {
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ const queryParameters = {};
61
+ if (requestParameters['type'] != null) {
62
+ queryParameters['type'] = requestParameters['type'];
63
+ }
64
+ if (requestParameters['code'] != null) {
65
+ queryParameters['code'] = requestParameters['code'];
66
+ }
67
+ if (requestParameters['limit'] != null) {
68
+ queryParameters['limit'] = requestParameters['limit'];
69
+ }
70
+ const headerParameters = {};
71
+ if (this.configuration && this.configuration.apiKey) {
72
+ headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
73
+ }
74
+ if (this.configuration && this.configuration.accessToken) {
75
+ const token = this.configuration.accessToken;
76
+ const tokenString = yield token("BearerAuth", []);
77
+ if (tokenString) {
78
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
79
+ }
80
+ }
81
+ const response = yield this.request({
82
+ path: `/api/public/streamer/leaderboard`,
83
+ method: 'GET',
84
+ headers: headerParameters,
85
+ query: queryParameters,
86
+ }, initOverrides);
87
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiPublicStreamerLeaderboardGet200ResponseFromJSON)(jsonValue));
88
+ });
89
+ }
90
+ /**
91
+ * Get streamer leaderboard (users who used streamer affiliate code)
92
+ */
93
+ apiPublicStreamerLeaderboardGet() {
94
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
95
+ const response = yield this.apiPublicStreamerLeaderboardGetRaw(requestParameters, initOverrides);
96
+ return yield response.value();
97
+ });
98
+ }
99
+ }
100
+ exports.PublicStreamerApi = PublicStreamerApi;
101
+ /**
102
+ * @export
103
+ */
104
+ exports.ApiPublicStreamerLeaderboardGetTypeEnum = {
105
+ Daily: 'daily',
106
+ Weekly: 'weekly',
107
+ Monthly: 'monthly'
108
+ };
@@ -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,6 +55,7 @@ __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);
package/apis/index.ts CHANGED
@@ -39,6 +39,7 @@ 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';
@@ -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.instanceOfApiPublicStreamerLeaderboardGet200Response = instanceOfApiPublicStreamerLeaderboardGet200Response;
17
+ exports.ApiPublicStreamerLeaderboardGet200ResponseFromJSON = ApiPublicStreamerLeaderboardGet200ResponseFromJSON;
18
+ exports.ApiPublicStreamerLeaderboardGet200ResponseFromJSONTyped = ApiPublicStreamerLeaderboardGet200ResponseFromJSONTyped;
19
+ exports.ApiPublicStreamerLeaderboardGet200ResponseToJSON = ApiPublicStreamerLeaderboardGet200ResponseToJSON;
20
+ exports.ApiPublicStreamerLeaderboardGet200ResponseToJSONTyped = ApiPublicStreamerLeaderboardGet200ResponseToJSONTyped;
21
+ const ApiPublicStreamerLeaderboardGet200ResponseResponseObject_1 = require("./ApiPublicStreamerLeaderboardGet200ResponseResponseObject");
22
+ /**
23
+ * Check if a given object implements the ApiPublicStreamerLeaderboardGet200Response interface.
24
+ */
25
+ function instanceOfApiPublicStreamerLeaderboardGet200Response(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 ApiPublicStreamerLeaderboardGet200ResponseFromJSON(json) {
35
+ return ApiPublicStreamerLeaderboardGet200ResponseFromJSONTyped(json, false);
36
+ }
37
+ function ApiPublicStreamerLeaderboardGet200ResponseFromJSONTyped(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, ApiPublicStreamerLeaderboardGet200ResponseResponseObject_1.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectFromJSON)(json['responseObject']),
45
+ 'statusCode': json['statusCode'],
46
+ };
47
+ }
48
+ function ApiPublicStreamerLeaderboardGet200ResponseToJSON(json) {
49
+ return ApiPublicStreamerLeaderboardGet200ResponseToJSONTyped(json, false);
50
+ }
51
+ function ApiPublicStreamerLeaderboardGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'success': value['success'],
57
+ 'message': value['message'],
58
+ 'responseObject': (0, ApiPublicStreamerLeaderboardGet200ResponseResponseObject_1.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectToJSON)(value['responseObject']),
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 { ApiPublicStreamerLeaderboardGet200ResponseResponseObject } from './ApiPublicStreamerLeaderboardGet200ResponseResponseObject';
17
+ import {
18
+ ApiPublicStreamerLeaderboardGet200ResponseResponseObjectFromJSON,
19
+ ApiPublicStreamerLeaderboardGet200ResponseResponseObjectFromJSONTyped,
20
+ ApiPublicStreamerLeaderboardGet200ResponseResponseObjectToJSON,
21
+ ApiPublicStreamerLeaderboardGet200ResponseResponseObjectToJSONTyped,
22
+ } from './ApiPublicStreamerLeaderboardGet200ResponseResponseObject';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiPublicStreamerLeaderboardGet200Response
28
+ */
29
+ export interface ApiPublicStreamerLeaderboardGet200Response {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ApiPublicStreamerLeaderboardGet200Response
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiPublicStreamerLeaderboardGet200Response
40
+ */
41
+ message: string;
42
+ /**
43
+ *
44
+ * @type {ApiPublicStreamerLeaderboardGet200ResponseResponseObject}
45
+ * @memberof ApiPublicStreamerLeaderboardGet200Response
46
+ */
47
+ responseObject?: ApiPublicStreamerLeaderboardGet200ResponseResponseObject;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiPublicStreamerLeaderboardGet200Response
52
+ */
53
+ statusCode: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiPublicStreamerLeaderboardGet200Response interface.
58
+ */
59
+ export function instanceOfApiPublicStreamerLeaderboardGet200Response(value: object): value is ApiPublicStreamerLeaderboardGet200Response {
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 ApiPublicStreamerLeaderboardGet200ResponseFromJSON(json: any): ApiPublicStreamerLeaderboardGet200Response {
67
+ return ApiPublicStreamerLeaderboardGet200ResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiPublicStreamerLeaderboardGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicStreamerLeaderboardGet200Response {
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 : ApiPublicStreamerLeaderboardGet200ResponseResponseObjectFromJSON(json['responseObject']),
79
+ 'statusCode': json['statusCode'],
80
+ };
81
+ }
82
+
83
+ export function ApiPublicStreamerLeaderboardGet200ResponseToJSON(json: any): ApiPublicStreamerLeaderboardGet200Response {
84
+ return ApiPublicStreamerLeaderboardGet200ResponseToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ApiPublicStreamerLeaderboardGet200ResponseToJSONTyped(value?: ApiPublicStreamerLeaderboardGet200Response | 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': ApiPublicStreamerLeaderboardGet200ResponseResponseObjectToJSON(value['responseObject']),
97
+ 'statusCode': value['statusCode'],
98
+ };
99
+ }
100
+
@@ -0,0 +1,84 @@
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.instanceOfApiPublicStreamerLeaderboardGet200ResponseResponseObject = instanceOfApiPublicStreamerLeaderboardGet200ResponseResponseObject;
17
+ exports.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectFromJSON = ApiPublicStreamerLeaderboardGet200ResponseResponseObjectFromJSON;
18
+ exports.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectFromJSONTyped = ApiPublicStreamerLeaderboardGet200ResponseResponseObjectFromJSONTyped;
19
+ exports.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectToJSON = ApiPublicStreamerLeaderboardGet200ResponseResponseObjectToJSON;
20
+ exports.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectToJSONTyped = ApiPublicStreamerLeaderboardGet200ResponseResponseObjectToJSONTyped;
21
+ const ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer_1 = require("./ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer");
22
+ const ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner_1 = require("./ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner");
23
+ /**
24
+ * Check if a given object implements the ApiPublicStreamerLeaderboardGet200ResponseResponseObject interface.
25
+ */
26
+ function instanceOfApiPublicStreamerLeaderboardGet200ResponseResponseObject(value) {
27
+ if (!('streamer' in value) || value['streamer'] === undefined)
28
+ return false;
29
+ if (!('period' in value) || value['period'] === undefined)
30
+ return false;
31
+ if (!('type' in value) || value['type'] === undefined)
32
+ return false;
33
+ if (!('startDate' in value) || value['startDate'] === undefined)
34
+ return false;
35
+ if (!('endDate' in value) || value['endDate'] === undefined)
36
+ return false;
37
+ if (!('code' in value) || value['code'] === undefined)
38
+ return false;
39
+ if (!('totalWagered' in value) || value['totalWagered'] === undefined)
40
+ return false;
41
+ if (!('totalUsers' in value) || value['totalUsers'] === undefined)
42
+ return false;
43
+ if (!('rankings' in value) || value['rankings'] === undefined)
44
+ return false;
45
+ return true;
46
+ }
47
+ function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectFromJSON(json) {
48
+ return ApiPublicStreamerLeaderboardGet200ResponseResponseObjectFromJSONTyped(json, false);
49
+ }
50
+ function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'streamer': (0, ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer_1.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSON)(json['streamer']),
56
+ 'period': json['period'],
57
+ 'type': json['type'],
58
+ 'startDate': json['startDate'],
59
+ 'endDate': json['endDate'],
60
+ 'code': json['code'],
61
+ 'totalWagered': json['totalWagered'],
62
+ 'totalUsers': json['totalUsers'],
63
+ 'rankings': (json['rankings'].map(ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner_1.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerFromJSON)),
64
+ };
65
+ }
66
+ function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectToJSON(json) {
67
+ return ApiPublicStreamerLeaderboardGet200ResponseResponseObjectToJSONTyped(json, false);
68
+ }
69
+ function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ 'streamer': (0, ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer_1.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSON)(value['streamer']),
75
+ 'period': value['period'],
76
+ 'type': value['type'],
77
+ 'startDate': value['startDate'],
78
+ 'endDate': value['endDate'],
79
+ 'code': value['code'],
80
+ 'totalWagered': value['totalWagered'],
81
+ 'totalUsers': value['totalUsers'],
82
+ 'rankings': (value['rankings'].map(ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner_1.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerToJSON)),
83
+ };
84
+ }
@@ -0,0 +1,153 @@
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 { ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer } from './ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer';
17
+ import {
18
+ ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSON,
19
+ ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSONTyped,
20
+ ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSON,
21
+ ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSONTyped,
22
+ } from './ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer';
23
+ import type { ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner } from './ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner';
24
+ import {
25
+ ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerFromJSON,
26
+ ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerFromJSONTyped,
27
+ ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerToJSON,
28
+ ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerToJSONTyped,
29
+ } from './ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface ApiPublicStreamerLeaderboardGet200ResponseResponseObject
35
+ */
36
+ export interface ApiPublicStreamerLeaderboardGet200ResponseResponseObject {
37
+ /**
38
+ *
39
+ * @type {ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer}
40
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObject
41
+ */
42
+ streamer: ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObject
47
+ */
48
+ period: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObject
53
+ */
54
+ type: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObject
59
+ */
60
+ startDate: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObject
65
+ */
66
+ endDate: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObject
71
+ */
72
+ code: string | null;
73
+ /**
74
+ *
75
+ * @type {number}
76
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObject
77
+ */
78
+ totalWagered: number;
79
+ /**
80
+ *
81
+ * @type {number}
82
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObject
83
+ */
84
+ totalUsers: number;
85
+ /**
86
+ *
87
+ * @type {Array<ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner>}
88
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObject
89
+ */
90
+ rankings: Array<ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner>;
91
+ }
92
+
93
+ /**
94
+ * Check if a given object implements the ApiPublicStreamerLeaderboardGet200ResponseResponseObject interface.
95
+ */
96
+ export function instanceOfApiPublicStreamerLeaderboardGet200ResponseResponseObject(value: object): value is ApiPublicStreamerLeaderboardGet200ResponseResponseObject {
97
+ if (!('streamer' in value) || value['streamer'] === undefined) return false;
98
+ if (!('period' in value) || value['period'] === undefined) return false;
99
+ if (!('type' in value) || value['type'] === undefined) return false;
100
+ if (!('startDate' in value) || value['startDate'] === undefined) return false;
101
+ if (!('endDate' in value) || value['endDate'] === undefined) return false;
102
+ if (!('code' in value) || value['code'] === undefined) return false;
103
+ if (!('totalWagered' in value) || value['totalWagered'] === undefined) return false;
104
+ if (!('totalUsers' in value) || value['totalUsers'] === undefined) return false;
105
+ if (!('rankings' in value) || value['rankings'] === undefined) return false;
106
+ return true;
107
+ }
108
+
109
+ export function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectFromJSON(json: any): ApiPublicStreamerLeaderboardGet200ResponseResponseObject {
110
+ return ApiPublicStreamerLeaderboardGet200ResponseResponseObjectFromJSONTyped(json, false);
111
+ }
112
+
113
+ export function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicStreamerLeaderboardGet200ResponseResponseObject {
114
+ if (json == null) {
115
+ return json;
116
+ }
117
+ return {
118
+
119
+ 'streamer': ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSON(json['streamer']),
120
+ 'period': json['period'],
121
+ 'type': json['type'],
122
+ 'startDate': json['startDate'],
123
+ 'endDate': json['endDate'],
124
+ 'code': json['code'],
125
+ 'totalWagered': json['totalWagered'],
126
+ 'totalUsers': json['totalUsers'],
127
+ 'rankings': ((json['rankings'] as Array<any>).map(ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerFromJSON)),
128
+ };
129
+ }
130
+
131
+ export function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectToJSON(json: any): ApiPublicStreamerLeaderboardGet200ResponseResponseObject {
132
+ return ApiPublicStreamerLeaderboardGet200ResponseResponseObjectToJSONTyped(json, false);
133
+ }
134
+
135
+ export function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectToJSONTyped(value?: ApiPublicStreamerLeaderboardGet200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
136
+ if (value == null) {
137
+ return value;
138
+ }
139
+
140
+ return {
141
+
142
+ 'streamer': ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSON(value['streamer']),
143
+ 'period': value['period'],
144
+ 'type': value['type'],
145
+ 'startDate': value['startDate'],
146
+ 'endDate': value['endDate'],
147
+ 'code': value['code'],
148
+ 'totalWagered': value['totalWagered'],
149
+ 'totalUsers': value['totalUsers'],
150
+ 'rankings': ((value['rankings'] as Array<any>).map(ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerToJSON)),
151
+ };
152
+ }
153
+
@@ -0,0 +1,63 @@
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.instanceOfApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner = instanceOfApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner;
17
+ exports.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerFromJSON = ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerFromJSON;
18
+ exports.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerFromJSONTyped = ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerFromJSONTyped;
19
+ exports.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerToJSON = ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerToJSON;
20
+ exports.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerToJSONTyped = ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerToJSONTyped;
21
+ const ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser_1 = require("./ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser");
22
+ /**
23
+ * Check if a given object implements the ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner interface.
24
+ */
25
+ function instanceOfApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner(value) {
26
+ if (!('rank' in value) || value['rank'] === undefined)
27
+ return false;
28
+ if (!('user' in value) || value['user'] === undefined)
29
+ return false;
30
+ if (!('wagerAmount' in value) || value['wagerAmount'] === undefined)
31
+ return false;
32
+ if (!('currency' in value) || value['currency'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerFromJSON(json) {
37
+ return ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerFromJSONTyped(json, false);
38
+ }
39
+ function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'rank': json['rank'],
45
+ 'user': (0, ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser_1.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserFromJSON)(json['user']),
46
+ 'wagerAmount': json['wagerAmount'],
47
+ 'currency': json['currency'],
48
+ };
49
+ }
50
+ function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerToJSON(json) {
51
+ return ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerToJSONTyped(json, false);
52
+ }
53
+ function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'rank': value['rank'],
59
+ 'user': (0, ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser_1.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserToJSON)(value['user']),
60
+ 'wagerAmount': value['wagerAmount'],
61
+ 'currency': value['currency'],
62
+ };
63
+ }
@@ -0,0 +1,101 @@
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 { ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser } from './ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser';
17
+ import {
18
+ ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserFromJSON,
19
+ ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserFromJSONTyped,
20
+ ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserToJSON,
21
+ ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserToJSONTyped,
22
+ } from './ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner
28
+ */
29
+ export interface ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner
34
+ */
35
+ rank: number;
36
+ /**
37
+ *
38
+ * @type {ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser}
39
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner
40
+ */
41
+ user: ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner
46
+ */
47
+ wagerAmount: number;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner
52
+ */
53
+ currency: string;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner interface.
58
+ */
59
+ export function instanceOfApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner(value: object): value is ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner {
60
+ if (!('rank' in value) || value['rank'] === undefined) return false;
61
+ if (!('user' in value) || value['user'] === undefined) return false;
62
+ if (!('wagerAmount' in value) || value['wagerAmount'] === undefined) return false;
63
+ if (!('currency' in value) || value['currency'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerFromJSON(json: any): ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner {
68
+ return ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'rank': json['rank'],
78
+ 'user': ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserFromJSON(json['user']),
79
+ 'wagerAmount': json['wagerAmount'],
80
+ 'currency': json['currency'],
81
+ };
82
+ }
83
+
84
+ export function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerToJSON(json: any): ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner {
85
+ return ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerToJSONTyped(json, false);
86
+ }
87
+
88
+ export function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerToJSONTyped(value?: ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'rank': value['rank'],
96
+ 'user': ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserToJSON(value['user']),
97
+ 'wagerAmount': value['wagerAmount'],
98
+ 'currency': value['currency'],
99
+ };
100
+ }
101
+
@@ -0,0 +1,62 @@
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.instanceOfApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser = instanceOfApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser;
17
+ exports.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserFromJSON = ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserFromJSON;
18
+ exports.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserFromJSONTyped = ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserFromJSONTyped;
19
+ exports.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserToJSON = ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserToJSON;
20
+ exports.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserToJSONTyped = ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser interface.
23
+ */
24
+ function instanceOfApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('isAnonymous' in value) || value['isAnonymous'] === undefined)
30
+ return false;
31
+ if (!('imageUrl' in value) || value['imageUrl'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserFromJSON(json) {
36
+ return ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserFromJSONTyped(json, false);
37
+ }
38
+ function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'name': json['name'],
45
+ 'isAnonymous': json['isAnonymous'],
46
+ 'imageUrl': json['imageUrl'],
47
+ };
48
+ }
49
+ function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserToJSON(json) {
50
+ return ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserToJSONTyped(json, false);
51
+ }
52
+ function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'name': value['name'],
59
+ 'isAnonymous': value['isAnonymous'],
60
+ 'imageUrl': value['imageUrl'],
61
+ };
62
+ }
@@ -0,0 +1,93 @@
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 ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser
20
+ */
21
+ export interface ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser
32
+ */
33
+ name: string | null;
34
+ /**
35
+ *
36
+ * @type {boolean}
37
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser
38
+ */
39
+ isAnonymous: boolean;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser
44
+ */
45
+ imageUrl: string | null;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser interface.
50
+ */
51
+ export function instanceOfApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser(value: object): value is ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser {
52
+ if (!('id' in value) || value['id'] === undefined) return false;
53
+ if (!('name' in value) || value['name'] === undefined) return false;
54
+ if (!('isAnonymous' in value) || value['isAnonymous'] === undefined) return false;
55
+ if (!('imageUrl' in value) || value['imageUrl'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserFromJSON(json: any): ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser {
60
+ return ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'id': json['id'],
70
+ 'name': json['name'],
71
+ 'isAnonymous': json['isAnonymous'],
72
+ 'imageUrl': json['imageUrl'],
73
+ };
74
+ }
75
+
76
+ export function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserToJSON(json: any): ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser {
77
+ return ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserToJSONTyped(json, false);
78
+ }
79
+
80
+ export function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUserToJSONTyped(value?: ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'id': value['id'],
88
+ 'name': value['name'],
89
+ 'isAnonymous': value['isAnonymous'],
90
+ 'imageUrl': value['imageUrl'],
91
+ };
92
+ }
93
+
@@ -0,0 +1,54 @@
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.instanceOfApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer = instanceOfApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer;
17
+ exports.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSON = ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSON;
18
+ exports.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSONTyped = ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSONTyped;
19
+ exports.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSON = ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSON;
20
+ exports.ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSONTyped = ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer interface.
23
+ */
24
+ function instanceOfApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSON(json) {
32
+ return ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSONTyped(json, false);
33
+ }
34
+ function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'name': json['name'],
41
+ };
42
+ }
43
+ function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSON(json) {
44
+ return ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSONTyped(json, false);
45
+ }
46
+ function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'name': value['name'],
53
+ };
54
+ }
@@ -0,0 +1,75 @@
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 ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer
20
+ */
21
+ export interface ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer
32
+ */
33
+ name: string | null;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer interface.
38
+ */
39
+ export function instanceOfApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer(value: object): value is ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer {
40
+ if (!('id' in value) || value['id'] === undefined) return false;
41
+ if (!('name' in value) || value['name'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSON(json: any): ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer {
46
+ return ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': json['id'],
56
+ 'name': json['name'],
57
+ };
58
+ }
59
+
60
+ export function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSON(json: any): ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer {
61
+ return ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamerToJSONTyped(value?: ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'id': value['id'],
72
+ 'name': value['name'],
73
+ };
74
+ }
75
+
package/models/index.js CHANGED
@@ -408,6 +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("./ApiPublicStreamerLeaderboardGet200Response"), exports);
412
+ __exportStar(require("./ApiPublicStreamerLeaderboardGet200ResponseResponseObject"), exports);
413
+ __exportStar(require("./ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner"), exports);
414
+ __exportStar(require("./ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser"), exports);
415
+ __exportStar(require("./ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer"), exports);
411
416
  __exportStar(require("./ApiPublicUiDeploymentNotificationPost200Response"), exports);
412
417
  __exportStar(require("./ApiPublicUiDeploymentNotificationPost200ResponseResponseObject"), exports);
413
418
  __exportStar(require("./ApiPublicUiDeploymentNotificationPostRequest"), exports);
package/models/index.ts CHANGED
@@ -392,6 +392,11 @@ export * from './ApiPublicLeaderboardHistoryGet200ResponseResponseObject';
392
392
  export * from './ApiPublicPolicyGet200Response';
393
393
  export * from './ApiPublicPolicyGet200ResponseResponseObject';
394
394
  export * from './ApiPublicProvidersGet200Response';
395
+ export * from './ApiPublicStreamerLeaderboardGet200Response';
396
+ export * from './ApiPublicStreamerLeaderboardGet200ResponseResponseObject';
397
+ export * from './ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInner';
398
+ export * from './ApiPublicStreamerLeaderboardGet200ResponseResponseObjectRankingsInnerUser';
399
+ export * from './ApiPublicStreamerLeaderboardGet200ResponseResponseObjectStreamer';
395
400
  export * from './ApiPublicUiDeploymentNotificationPost200Response';
396
401
  export * from './ApiPublicUiDeploymentNotificationPost200ResponseResponseObject';
397
402
  export * from './ApiPublicUiDeploymentNotificationPostRequest';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gambulls-org/gambulls-apis",
3
- "version": "3.0.572",
3
+ "version": "3.0.574",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "build": "tsc",