@gambulls-org/gambulls-apis 3.0.439 → 3.0.441
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 +5 -0
- package/apis/PublicApi.js +38 -0
- package/apis/PublicApi.ts +52 -0
- package/models/ApiPublicLeaderboardCurrentGet200ResponseResponseObject.js +3 -0
- package/models/ApiPublicLeaderboardCurrentGet200ResponseResponseObject.ts +15 -0
- package/models/ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats.js +54 -0
- package/models/ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats.ts +75 -0
- package/models/ApiPublicUserUserIdStatsGet200Response.js +61 -0
- package/models/ApiPublicUserUserIdStatsGet200Response.ts +100 -0
- package/models/ApiPublicUserUserIdStatsGet200ResponseResponseObject.js +76 -0
- package/models/ApiPublicUserUserIdStatsGet200ResponseResponseObject.ts +135 -0
- package/models/ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank.js +74 -0
- package/models/ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank.ts +120 -0
- package/models/ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain.js +54 -0
- package/models/ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain.ts +75 -0
- package/models/index.js +5 -0
- package/models/index.ts +5 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -421,9 +421,14 @@ models/ApiPublicGamesSlugGet200ResponseResponseObjectGamesProvider.ts
|
|
|
421
421
|
models/ApiPublicLeaderboardCurrentGet200Response.ts
|
|
422
422
|
models/ApiPublicLeaderboardCurrentGet200ResponseResponseObject.ts
|
|
423
423
|
models/ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner.ts
|
|
424
|
+
models/ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats.ts
|
|
424
425
|
models/ApiPublicPolicyGet200Response.ts
|
|
425
426
|
models/ApiPublicPolicyGet200ResponseResponseObject.ts
|
|
426
427
|
models/ApiPublicProvidersGet200Response.ts
|
|
428
|
+
models/ApiPublicUserUserIdStatsGet200Response.ts
|
|
429
|
+
models/ApiPublicUserUserIdStatsGet200ResponseResponseObject.ts
|
|
430
|
+
models/ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank.ts
|
|
431
|
+
models/ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain.ts
|
|
427
432
|
models/ApiRgsAuthenticatePost200Response.ts
|
|
428
433
|
models/ApiRgsAuthenticatePostRequest.ts
|
|
429
434
|
models/ApiRgsBetPost200Response.ts
|
package/apis/PublicApi.js
CHANGED
|
@@ -90,6 +90,44 @@ class PublicApi extends runtime.BaseAPI {
|
|
|
90
90
|
return yield response.value();
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Get user statistics by userId
|
|
95
|
+
*/
|
|
96
|
+
apiPublicUserUserIdStatsGetRaw(requestParameters, initOverrides) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
if (requestParameters['userId'] == null) {
|
|
99
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling apiPublicUserUserIdStatsGet().');
|
|
100
|
+
}
|
|
101
|
+
const queryParameters = {};
|
|
102
|
+
const headerParameters = {};
|
|
103
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
104
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
105
|
+
}
|
|
106
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
107
|
+
const token = this.configuration.accessToken;
|
|
108
|
+
const tokenString = yield token("BearerAuth", []);
|
|
109
|
+
if (tokenString) {
|
|
110
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
const response = yield this.request({
|
|
114
|
+
path: `/api/public/user/{userId}/stats`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
115
|
+
method: 'GET',
|
|
116
|
+
headers: headerParameters,
|
|
117
|
+
query: queryParameters,
|
|
118
|
+
}, initOverrides);
|
|
119
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiPublicUserUserIdStatsGet200ResponseFromJSON)(jsonValue));
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Get user statistics by userId
|
|
124
|
+
*/
|
|
125
|
+
apiPublicUserUserIdStatsGet(requestParameters, initOverrides) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const response = yield this.apiPublicUserUserIdStatsGetRaw(requestParameters, initOverrides);
|
|
128
|
+
return yield response.value();
|
|
129
|
+
});
|
|
130
|
+
}
|
|
93
131
|
}
|
|
94
132
|
exports.PublicApi = PublicApi;
|
|
95
133
|
/**
|
package/apis/PublicApi.ts
CHANGED
|
@@ -16,16 +16,23 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiPublicLeaderboardCurrentGet200Response,
|
|
19
|
+
ApiPublicUserUserIdStatsGet200Response,
|
|
19
20
|
} from '../models/index';
|
|
20
21
|
import {
|
|
21
22
|
ApiPublicLeaderboardCurrentGet200ResponseFromJSON,
|
|
22
23
|
ApiPublicLeaderboardCurrentGet200ResponseToJSON,
|
|
24
|
+
ApiPublicUserUserIdStatsGet200ResponseFromJSON,
|
|
25
|
+
ApiPublicUserUserIdStatsGet200ResponseToJSON,
|
|
23
26
|
} from '../models/index';
|
|
24
27
|
|
|
25
28
|
export interface ApiPublicLeaderboardCurrentGetRequest {
|
|
26
29
|
type?: ApiPublicLeaderboardCurrentGetTypeEnum;
|
|
27
30
|
}
|
|
28
31
|
|
|
32
|
+
export interface ApiPublicUserUserIdStatsGetRequest {
|
|
33
|
+
userId: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
29
36
|
/**
|
|
30
37
|
*
|
|
31
38
|
*/
|
|
@@ -73,6 +80,51 @@ export class PublicApi extends runtime.BaseAPI {
|
|
|
73
80
|
return await response.value();
|
|
74
81
|
}
|
|
75
82
|
|
|
83
|
+
/**
|
|
84
|
+
* Get user statistics by userId
|
|
85
|
+
*/
|
|
86
|
+
async apiPublicUserUserIdStatsGetRaw(requestParameters: ApiPublicUserUserIdStatsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPublicUserUserIdStatsGet200Response>> {
|
|
87
|
+
if (requestParameters['userId'] == null) {
|
|
88
|
+
throw new runtime.RequiredError(
|
|
89
|
+
'userId',
|
|
90
|
+
'Required parameter "userId" was null or undefined when calling apiPublicUserUserIdStatsGet().'
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const queryParameters: any = {};
|
|
95
|
+
|
|
96
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
97
|
+
|
|
98
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
99
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
103
|
+
const token = this.configuration.accessToken;
|
|
104
|
+
const tokenString = await token("BearerAuth", []);
|
|
105
|
+
|
|
106
|
+
if (tokenString) {
|
|
107
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
const response = await this.request({
|
|
111
|
+
path: `/api/public/user/{userId}/stats`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
112
|
+
method: 'GET',
|
|
113
|
+
headers: headerParameters,
|
|
114
|
+
query: queryParameters,
|
|
115
|
+
}, initOverrides);
|
|
116
|
+
|
|
117
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPublicUserUserIdStatsGet200ResponseFromJSON(jsonValue));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Get user statistics by userId
|
|
122
|
+
*/
|
|
123
|
+
async apiPublicUserUserIdStatsGet(requestParameters: ApiPublicUserUserIdStatsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPublicUserUserIdStatsGet200Response> {
|
|
124
|
+
const response = await this.apiPublicUserUserIdStatsGetRaw(requestParameters, initOverrides);
|
|
125
|
+
return await response.value();
|
|
126
|
+
}
|
|
127
|
+
|
|
76
128
|
}
|
|
77
129
|
|
|
78
130
|
/**
|
|
@@ -19,6 +19,7 @@ exports.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectFromJSONTyped = A
|
|
|
19
19
|
exports.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectToJSON = ApiPublicLeaderboardCurrentGet200ResponseResponseObjectToJSON;
|
|
20
20
|
exports.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectToJSONTyped = ApiPublicLeaderboardCurrentGet200ResponseResponseObjectToJSONTyped;
|
|
21
21
|
const ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner_1 = require("./ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner");
|
|
22
|
+
const ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats_1 = require("./ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the ApiPublicLeaderboardCurrentGet200ResponseResponseObject interface.
|
|
24
25
|
*/
|
|
@@ -48,6 +49,7 @@ function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectFromJSONTyped(js
|
|
|
48
49
|
'poolAmount': json['poolAmount'],
|
|
49
50
|
'currency': json['currency'],
|
|
50
51
|
'rankings': (json['rankings'].map(ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner_1.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInnerFromJSON)),
|
|
52
|
+
'userStats': json['userStats'] == null ? undefined : (0, ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats_1.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSON)(json['userStats']),
|
|
51
53
|
};
|
|
52
54
|
}
|
|
53
55
|
function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectToJSON(json) {
|
|
@@ -63,5 +65,6 @@ function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectToJSONTyped(valu
|
|
|
63
65
|
'poolAmount': value['poolAmount'],
|
|
64
66
|
'currency': value['currency'],
|
|
65
67
|
'rankings': (value['rankings'].map(ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner_1.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInnerToJSON)),
|
|
68
|
+
'userStats': (0, ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats_1.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSON)(value['userStats']),
|
|
66
69
|
};
|
|
67
70
|
}
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInnerToJSON,
|
|
21
21
|
ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInnerToJSONTyped,
|
|
22
22
|
} from './ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner';
|
|
23
|
+
import type { ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats } from './ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats';
|
|
24
|
+
import {
|
|
25
|
+
ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSON,
|
|
26
|
+
ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSONTyped,
|
|
27
|
+
ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSON,
|
|
28
|
+
ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSONTyped,
|
|
29
|
+
} from './ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -57,6 +64,12 @@ export interface ApiPublicLeaderboardCurrentGet200ResponseResponseObject {
|
|
|
57
64
|
* @memberof ApiPublicLeaderboardCurrentGet200ResponseResponseObject
|
|
58
65
|
*/
|
|
59
66
|
rankings: Array<ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats}
|
|
70
|
+
* @memberof ApiPublicLeaderboardCurrentGet200ResponseResponseObject
|
|
71
|
+
*/
|
|
72
|
+
userStats?: ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats | null;
|
|
60
73
|
}
|
|
61
74
|
|
|
62
75
|
/**
|
|
@@ -86,6 +99,7 @@ export function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectFromJSONT
|
|
|
86
99
|
'poolAmount': json['poolAmount'],
|
|
87
100
|
'currency': json['currency'],
|
|
88
101
|
'rankings': ((json['rankings'] as Array<any>).map(ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInnerFromJSON)),
|
|
102
|
+
'userStats': json['userStats'] == null ? undefined : ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSON(json['userStats']),
|
|
89
103
|
};
|
|
90
104
|
}
|
|
91
105
|
|
|
@@ -105,6 +119,7 @@ export function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectFromJSONT
|
|
|
105
119
|
'poolAmount': value['poolAmount'],
|
|
106
120
|
'currency': value['currency'],
|
|
107
121
|
'rankings': ((value['rankings'] as Array<any>).map(ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInnerToJSON)),
|
|
122
|
+
'userStats': ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSON(value['userStats']),
|
|
108
123
|
};
|
|
109
124
|
}
|
|
110
125
|
|
|
@@ -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.instanceOfApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats = instanceOfApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats;
|
|
17
|
+
exports.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSON = ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSON;
|
|
18
|
+
exports.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSONTyped = ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSONTyped;
|
|
19
|
+
exports.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSON = ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSON;
|
|
20
|
+
exports.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSONTyped = ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats(value) {
|
|
25
|
+
if (!('rank' in value) || value['rank'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('wagerAmount' in value) || value['wagerAmount'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSON(json) {
|
|
32
|
+
return ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'rank': json['rank'],
|
|
40
|
+
'wagerAmount': json['wagerAmount'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSON(json) {
|
|
44
|
+
return ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'rank': value['rank'],
|
|
52
|
+
'wagerAmount': value['wagerAmount'],
|
|
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 ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats
|
|
26
|
+
*/
|
|
27
|
+
rank: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats
|
|
32
|
+
*/
|
|
33
|
+
wagerAmount: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats(value: object): value is ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats {
|
|
40
|
+
if (!('rank' in value) || value['rank'] === undefined) return false;
|
|
41
|
+
if (!('wagerAmount' in value) || value['wagerAmount'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSON(json: any): ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats {
|
|
46
|
+
return ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'rank': json['rank'],
|
|
56
|
+
'wagerAmount': json['wagerAmount'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSON(json: any): ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats {
|
|
61
|
+
return ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSONTyped(value?: ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'rank': value['rank'],
|
|
72
|
+
'wagerAmount': value['wagerAmount'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -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.instanceOfApiPublicUserUserIdStatsGet200Response = instanceOfApiPublicUserUserIdStatsGet200Response;
|
|
17
|
+
exports.ApiPublicUserUserIdStatsGet200ResponseFromJSON = ApiPublicUserUserIdStatsGet200ResponseFromJSON;
|
|
18
|
+
exports.ApiPublicUserUserIdStatsGet200ResponseFromJSONTyped = ApiPublicUserUserIdStatsGet200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiPublicUserUserIdStatsGet200ResponseToJSON = ApiPublicUserUserIdStatsGet200ResponseToJSON;
|
|
20
|
+
exports.ApiPublicUserUserIdStatsGet200ResponseToJSONTyped = ApiPublicUserUserIdStatsGet200ResponseToJSONTyped;
|
|
21
|
+
const ApiPublicUserUserIdStatsGet200ResponseResponseObject_1 = require("./ApiPublicUserUserIdStatsGet200ResponseResponseObject");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiPublicUserUserIdStatsGet200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiPublicUserUserIdStatsGet200Response(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 ApiPublicUserUserIdStatsGet200ResponseFromJSON(json) {
|
|
35
|
+
return ApiPublicUserUserIdStatsGet200ResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function ApiPublicUserUserIdStatsGet200ResponseFromJSONTyped(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, ApiPublicUserUserIdStatsGet200ResponseResponseObject_1.ApiPublicUserUserIdStatsGet200ResponseResponseObjectFromJSON)(json['responseObject']),
|
|
45
|
+
'statusCode': json['statusCode'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function ApiPublicUserUserIdStatsGet200ResponseToJSON(json) {
|
|
49
|
+
return ApiPublicUserUserIdStatsGet200ResponseToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function ApiPublicUserUserIdStatsGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'success': value['success'],
|
|
57
|
+
'message': value['message'],
|
|
58
|
+
'responseObject': (0, ApiPublicUserUserIdStatsGet200ResponseResponseObject_1.ApiPublicUserUserIdStatsGet200ResponseResponseObjectToJSON)(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 { ApiPublicUserUserIdStatsGet200ResponseResponseObject } from './ApiPublicUserUserIdStatsGet200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiPublicUserUserIdStatsGet200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiPublicUserUserIdStatsGet200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiPublicUserUserIdStatsGet200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiPublicUserUserIdStatsGet200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiPublicUserUserIdStatsGet200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiPublicUserUserIdStatsGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiPublicUserUserIdStatsGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiPublicUserUserIdStatsGet200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiPublicUserUserIdStatsGet200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiPublicUserUserIdStatsGet200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiPublicUserUserIdStatsGet200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiPublicUserUserIdStatsGet200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiPublicUserUserIdStatsGet200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiPublicUserUserIdStatsGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiPublicUserUserIdStatsGet200Response(value: object): value is ApiPublicUserUserIdStatsGet200Response {
|
|
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 ApiPublicUserUserIdStatsGet200ResponseFromJSON(json: any): ApiPublicUserUserIdStatsGet200Response {
|
|
67
|
+
return ApiPublicUserUserIdStatsGet200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiPublicUserUserIdStatsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicUserUserIdStatsGet200Response {
|
|
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 : ApiPublicUserUserIdStatsGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiPublicUserUserIdStatsGet200ResponseToJSON(json: any): ApiPublicUserUserIdStatsGet200Response {
|
|
84
|
+
return ApiPublicUserUserIdStatsGet200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiPublicUserUserIdStatsGet200ResponseToJSONTyped(value?: ApiPublicUserUserIdStatsGet200Response | 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': ApiPublicUserUserIdStatsGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
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.instanceOfApiPublicUserUserIdStatsGet200ResponseResponseObject = instanceOfApiPublicUserUserIdStatsGet200ResponseResponseObject;
|
|
17
|
+
exports.ApiPublicUserUserIdStatsGet200ResponseResponseObjectFromJSON = ApiPublicUserUserIdStatsGet200ResponseResponseObjectFromJSON;
|
|
18
|
+
exports.ApiPublicUserUserIdStatsGet200ResponseResponseObjectFromJSONTyped = ApiPublicUserUserIdStatsGet200ResponseResponseObjectFromJSONTyped;
|
|
19
|
+
exports.ApiPublicUserUserIdStatsGet200ResponseResponseObjectToJSON = ApiPublicUserUserIdStatsGet200ResponseResponseObjectToJSON;
|
|
20
|
+
exports.ApiPublicUserUserIdStatsGet200ResponseResponseObjectToJSONTyped = ApiPublicUserUserIdStatsGet200ResponseResponseObjectToJSONTyped;
|
|
21
|
+
const ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain_1 = require("./ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain");
|
|
22
|
+
const ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank_1 = require("./ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ApiPublicUserUserIdStatsGet200ResponseResponseObject interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfApiPublicUserUserIdStatsGet200ResponseResponseObject(value) {
|
|
27
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('isAnonymous' in value) || value['isAnonymous'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('loyaltyRank' in value) || value['loyaltyRank'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('rain' in value) || value['rain'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('tips' in value) || value['tips'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function ApiPublicUserUserIdStatsGet200ResponseResponseObjectFromJSON(json) {
|
|
44
|
+
return ApiPublicUserUserIdStatsGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ApiPublicUserUserIdStatsGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'userId': json['userId'],
|
|
52
|
+
'name': json['name'],
|
|
53
|
+
'createdAt': json['createdAt'],
|
|
54
|
+
'isAnonymous': json['isAnonymous'],
|
|
55
|
+
'loyaltyRank': (0, ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank_1.ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankFromJSON)(json['loyaltyRank']),
|
|
56
|
+
'rain': (0, ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain_1.ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainFromJSON)(json['rain']),
|
|
57
|
+
'tips': (0, ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain_1.ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainFromJSON)(json['tips']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function ApiPublicUserUserIdStatsGet200ResponseResponseObjectToJSON(json) {
|
|
61
|
+
return ApiPublicUserUserIdStatsGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function ApiPublicUserUserIdStatsGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'userId': value['userId'],
|
|
69
|
+
'name': value['name'],
|
|
70
|
+
'createdAt': value['createdAt'],
|
|
71
|
+
'isAnonymous': value['isAnonymous'],
|
|
72
|
+
'loyaltyRank': (0, ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank_1.ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankToJSON)(value['loyaltyRank']),
|
|
73
|
+
'rain': (0, ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain_1.ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainToJSON)(value['rain']),
|
|
74
|
+
'tips': (0, ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain_1.ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainToJSON)(value['tips']),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
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 { ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain } from './ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain';
|
|
17
|
+
import {
|
|
18
|
+
ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainFromJSON,
|
|
19
|
+
ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainFromJSONTyped,
|
|
20
|
+
ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainToJSON,
|
|
21
|
+
ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainToJSONTyped,
|
|
22
|
+
} from './ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain';
|
|
23
|
+
import type { ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank } from './ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank';
|
|
24
|
+
import {
|
|
25
|
+
ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankFromJSON,
|
|
26
|
+
ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankFromJSONTyped,
|
|
27
|
+
ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankToJSON,
|
|
28
|
+
ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankToJSONTyped,
|
|
29
|
+
} from './ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ApiPublicUserUserIdStatsGet200ResponseResponseObject
|
|
35
|
+
*/
|
|
36
|
+
export interface ApiPublicUserUserIdStatsGet200ResponseResponseObject {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ApiPublicUserUserIdStatsGet200ResponseResponseObject
|
|
41
|
+
*/
|
|
42
|
+
userId: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ApiPublicUserUserIdStatsGet200ResponseResponseObject
|
|
47
|
+
*/
|
|
48
|
+
name: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ApiPublicUserUserIdStatsGet200ResponseResponseObject
|
|
53
|
+
*/
|
|
54
|
+
createdAt: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof ApiPublicUserUserIdStatsGet200ResponseResponseObject
|
|
59
|
+
*/
|
|
60
|
+
isAnonymous: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank}
|
|
64
|
+
* @memberof ApiPublicUserUserIdStatsGet200ResponseResponseObject
|
|
65
|
+
*/
|
|
66
|
+
loyaltyRank: ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain}
|
|
70
|
+
* @memberof ApiPublicUserUserIdStatsGet200ResponseResponseObject
|
|
71
|
+
*/
|
|
72
|
+
rain: ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain}
|
|
76
|
+
* @memberof ApiPublicUserUserIdStatsGet200ResponseResponseObject
|
|
77
|
+
*/
|
|
78
|
+
tips: ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the ApiPublicUserUserIdStatsGet200ResponseResponseObject interface.
|
|
83
|
+
*/
|
|
84
|
+
export function instanceOfApiPublicUserUserIdStatsGet200ResponseResponseObject(value: object): value is ApiPublicUserUserIdStatsGet200ResponseResponseObject {
|
|
85
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
86
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
87
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
88
|
+
if (!('isAnonymous' in value) || value['isAnonymous'] === undefined) return false;
|
|
89
|
+
if (!('loyaltyRank' in value) || value['loyaltyRank'] === undefined) return false;
|
|
90
|
+
if (!('rain' in value) || value['rain'] === undefined) return false;
|
|
91
|
+
if (!('tips' in value) || value['tips'] === undefined) return false;
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function ApiPublicUserUserIdStatsGet200ResponseResponseObjectFromJSON(json: any): ApiPublicUserUserIdStatsGet200ResponseResponseObject {
|
|
96
|
+
return ApiPublicUserUserIdStatsGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function ApiPublicUserUserIdStatsGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicUserUserIdStatsGet200ResponseResponseObject {
|
|
100
|
+
if (json == null) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'userId': json['userId'],
|
|
106
|
+
'name': json['name'],
|
|
107
|
+
'createdAt': json['createdAt'],
|
|
108
|
+
'isAnonymous': json['isAnonymous'],
|
|
109
|
+
'loyaltyRank': ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankFromJSON(json['loyaltyRank']),
|
|
110
|
+
'rain': ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainFromJSON(json['rain']),
|
|
111
|
+
'tips': ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainFromJSON(json['tips']),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function ApiPublicUserUserIdStatsGet200ResponseResponseObjectToJSON(json: any): ApiPublicUserUserIdStatsGet200ResponseResponseObject {
|
|
116
|
+
return ApiPublicUserUserIdStatsGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function ApiPublicUserUserIdStatsGet200ResponseResponseObjectToJSONTyped(value?: ApiPublicUserUserIdStatsGet200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
120
|
+
if (value == null) {
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'userId': value['userId'],
|
|
127
|
+
'name': value['name'],
|
|
128
|
+
'createdAt': value['createdAt'],
|
|
129
|
+
'isAnonymous': value['isAnonymous'],
|
|
130
|
+
'loyaltyRank': ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankToJSON(value['loyaltyRank']),
|
|
131
|
+
'rain': ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainToJSON(value['rain']),
|
|
132
|
+
'tips': ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainToJSON(value['tips']),
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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.instanceOfApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank = instanceOfApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank;
|
|
17
|
+
exports.ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankFromJSON = ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankFromJSON;
|
|
18
|
+
exports.ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankFromJSONTyped = ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankFromJSONTyped;
|
|
19
|
+
exports.ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankToJSON = ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankToJSON;
|
|
20
|
+
exports.ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankToJSONTyped = ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank(value) {
|
|
25
|
+
if (!('currentRankName' in value) || value['currentRankName'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('currentRankIcon' in value) || value['currentRankIcon'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('currentRankLevel' in value) || value['currentRankLevel'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('currentWagerAmount' in value) || value['currentWagerAmount'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('currentLevelWagerRequirement' in value) || value['currentLevelWagerRequirement'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('nextLevelWagerRequirement' in value) || value['nextLevelWagerRequirement'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('totalWagered' in value) || value['totalWagered'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankFromJSON(json) {
|
|
42
|
+
return ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'currentRankName': json['currentRankName'],
|
|
50
|
+
'currentRankIcon': json['currentRankIcon'],
|
|
51
|
+
'currentRankLevel': json['currentRankLevel'],
|
|
52
|
+
'currentWagerAmount': json['currentWagerAmount'],
|
|
53
|
+
'currentLevelWagerRequirement': json['currentLevelWagerRequirement'],
|
|
54
|
+
'nextLevelWagerRequirement': json['nextLevelWagerRequirement'],
|
|
55
|
+
'totalWagered': json['totalWagered'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankToJSON(json) {
|
|
59
|
+
return ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'currentRankName': value['currentRankName'],
|
|
67
|
+
'currentRankIcon': value['currentRankIcon'],
|
|
68
|
+
'currentRankLevel': value['currentRankLevel'],
|
|
69
|
+
'currentWagerAmount': value['currentWagerAmount'],
|
|
70
|
+
'currentLevelWagerRequirement': value['currentLevelWagerRequirement'],
|
|
71
|
+
'nextLevelWagerRequirement': value['nextLevelWagerRequirement'],
|
|
72
|
+
'totalWagered': value['totalWagered'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
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 ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank
|
|
26
|
+
*/
|
|
27
|
+
currentRankName: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank
|
|
32
|
+
*/
|
|
33
|
+
currentRankIcon: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank
|
|
38
|
+
*/
|
|
39
|
+
currentRankLevel: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank
|
|
44
|
+
*/
|
|
45
|
+
currentWagerAmount: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank
|
|
50
|
+
*/
|
|
51
|
+
currentLevelWagerRequirement: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank
|
|
56
|
+
*/
|
|
57
|
+
nextLevelWagerRequirement: number | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank
|
|
62
|
+
*/
|
|
63
|
+
totalWagered: number;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank(value: object): value is ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank {
|
|
70
|
+
if (!('currentRankName' in value) || value['currentRankName'] === undefined) return false;
|
|
71
|
+
if (!('currentRankIcon' in value) || value['currentRankIcon'] === undefined) return false;
|
|
72
|
+
if (!('currentRankLevel' in value) || value['currentRankLevel'] === undefined) return false;
|
|
73
|
+
if (!('currentWagerAmount' in value) || value['currentWagerAmount'] === undefined) return false;
|
|
74
|
+
if (!('currentLevelWagerRequirement' in value) || value['currentLevelWagerRequirement'] === undefined) return false;
|
|
75
|
+
if (!('nextLevelWagerRequirement' in value) || value['nextLevelWagerRequirement'] === undefined) return false;
|
|
76
|
+
if (!('totalWagered' in value) || value['totalWagered'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankFromJSON(json: any): ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank {
|
|
81
|
+
return ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'currentRankName': json['currentRankName'],
|
|
91
|
+
'currentRankIcon': json['currentRankIcon'],
|
|
92
|
+
'currentRankLevel': json['currentRankLevel'],
|
|
93
|
+
'currentWagerAmount': json['currentWagerAmount'],
|
|
94
|
+
'currentLevelWagerRequirement': json['currentLevelWagerRequirement'],
|
|
95
|
+
'nextLevelWagerRequirement': json['nextLevelWagerRequirement'],
|
|
96
|
+
'totalWagered': json['totalWagered'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankToJSON(json: any): ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank {
|
|
101
|
+
return ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankToJSONTyped(value?: ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'currentRankName': value['currentRankName'],
|
|
112
|
+
'currentRankIcon': value['currentRankIcon'],
|
|
113
|
+
'currentRankLevel': value['currentRankLevel'],
|
|
114
|
+
'currentWagerAmount': value['currentWagerAmount'],
|
|
115
|
+
'currentLevelWagerRequirement': value['currentLevelWagerRequirement'],
|
|
116
|
+
'nextLevelWagerRequirement': value['nextLevelWagerRequirement'],
|
|
117
|
+
'totalWagered': value['totalWagered'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -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.instanceOfApiPublicUserUserIdStatsGet200ResponseResponseObjectRain = instanceOfApiPublicUserUserIdStatsGet200ResponseResponseObjectRain;
|
|
17
|
+
exports.ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainFromJSON = ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainFromJSON;
|
|
18
|
+
exports.ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainFromJSONTyped = ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainFromJSONTyped;
|
|
19
|
+
exports.ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainToJSON = ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainToJSON;
|
|
20
|
+
exports.ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainToJSONTyped = ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiPublicUserUserIdStatsGet200ResponseResponseObjectRain(value) {
|
|
25
|
+
if (!('totalReceived' in value) || value['totalReceived'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('totalGiven' in value) || value['totalGiven'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainFromJSON(json) {
|
|
32
|
+
return ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'totalReceived': json['totalReceived'],
|
|
40
|
+
'totalGiven': json['totalGiven'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainToJSON(json) {
|
|
44
|
+
return ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'totalReceived': value['totalReceived'],
|
|
52
|
+
'totalGiven': value['totalGiven'],
|
|
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 ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain
|
|
26
|
+
*/
|
|
27
|
+
totalReceived: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain
|
|
32
|
+
*/
|
|
33
|
+
totalGiven: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfApiPublicUserUserIdStatsGet200ResponseResponseObjectRain(value: object): value is ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain {
|
|
40
|
+
if (!('totalReceived' in value) || value['totalReceived'] === undefined) return false;
|
|
41
|
+
if (!('totalGiven' in value) || value['totalGiven'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainFromJSON(json: any): ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain {
|
|
46
|
+
return ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'totalReceived': json['totalReceived'],
|
|
56
|
+
'totalGiven': json['totalGiven'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainToJSON(json: any): ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain {
|
|
61
|
+
return ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ApiPublicUserUserIdStatsGet200ResponseResponseObjectRainToJSONTyped(value?: ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'totalReceived': value['totalReceived'],
|
|
72
|
+
'totalGiven': value['totalGiven'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/models/index.js
CHANGED
|
@@ -375,9 +375,14 @@ __exportStar(require("./ApiPublicGamesSlugGet200ResponseResponseObjectGamesProvi
|
|
|
375
375
|
__exportStar(require("./ApiPublicLeaderboardCurrentGet200Response"), exports);
|
|
376
376
|
__exportStar(require("./ApiPublicLeaderboardCurrentGet200ResponseResponseObject"), exports);
|
|
377
377
|
__exportStar(require("./ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner"), exports);
|
|
378
|
+
__exportStar(require("./ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats"), exports);
|
|
378
379
|
__exportStar(require("./ApiPublicPolicyGet200Response"), exports);
|
|
379
380
|
__exportStar(require("./ApiPublicPolicyGet200ResponseResponseObject"), exports);
|
|
380
381
|
__exportStar(require("./ApiPublicProvidersGet200Response"), exports);
|
|
382
|
+
__exportStar(require("./ApiPublicUserUserIdStatsGet200Response"), exports);
|
|
383
|
+
__exportStar(require("./ApiPublicUserUserIdStatsGet200ResponseResponseObject"), exports);
|
|
384
|
+
__exportStar(require("./ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank"), exports);
|
|
385
|
+
__exportStar(require("./ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain"), exports);
|
|
381
386
|
__exportStar(require("./ApiRgsAuthenticatePost200Response"), exports);
|
|
382
387
|
__exportStar(require("./ApiRgsAuthenticatePostRequest"), exports);
|
|
383
388
|
__exportStar(require("./ApiRgsBetPost200Response"), exports);
|
package/models/index.ts
CHANGED
|
@@ -359,9 +359,14 @@ export * from './ApiPublicGamesSlugGet200ResponseResponseObjectGamesProvider';
|
|
|
359
359
|
export * from './ApiPublicLeaderboardCurrentGet200Response';
|
|
360
360
|
export * from './ApiPublicLeaderboardCurrentGet200ResponseResponseObject';
|
|
361
361
|
export * from './ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner';
|
|
362
|
+
export * from './ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats';
|
|
362
363
|
export * from './ApiPublicPolicyGet200Response';
|
|
363
364
|
export * from './ApiPublicPolicyGet200ResponseResponseObject';
|
|
364
365
|
export * from './ApiPublicProvidersGet200Response';
|
|
366
|
+
export * from './ApiPublicUserUserIdStatsGet200Response';
|
|
367
|
+
export * from './ApiPublicUserUserIdStatsGet200ResponseResponseObject';
|
|
368
|
+
export * from './ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank';
|
|
369
|
+
export * from './ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain';
|
|
365
370
|
export * from './ApiRgsAuthenticatePost200Response';
|
|
366
371
|
export * from './ApiRgsAuthenticatePostRequest';
|
|
367
372
|
export * from './ApiRgsBetPost200Response';
|