@gambulls-org/gambulls-apis 3.0.454 → 3.0.456
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 +4 -4
- package/apis/PublicApi.js +9 -9
- package/apis/PublicApi.ts +15 -15
- package/models/ApiPublicUserUsernameStatsGet200Response.js +61 -0
- package/models/ApiPublicUserUsernameStatsGet200Response.ts +100 -0
- package/models/ApiPublicUserUsernameStatsGet200ResponseResponseObject.js +76 -0
- package/models/ApiPublicUserUsernameStatsGet200ResponseResponseObject.ts +135 -0
- package/models/{ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank.js → ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank.js} +13 -13
- package/models/{ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRank.ts → ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank.ts} +17 -17
- package/models/ApiPublicUserUsernameStatsGet200ResponseResponseObjectRain.js +54 -0
- package/models/ApiPublicUserUsernameStatsGet200ResponseResponseObjectRain.ts +75 -0
- package/models/index.js +4 -4
- package/models/index.ts +4 -4
- package/package.json +1 -1
- package/models/ApiPublicUserUserIdStatsGet200Response.js +0 -61
- package/models/ApiPublicUserUserIdStatsGet200Response.ts +0 -100
- package/models/ApiPublicUserUserIdStatsGet200ResponseResponseObject.js +0 -76
- package/models/ApiPublicUserUserIdStatsGet200ResponseResponseObject.ts +0 -135
- package/models/ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain.js +0 -54
- package/models/ApiPublicUserUserIdStatsGet200ResponseResponseObjectRain.ts +0 -75
package/.openapi-generator/FILES
CHANGED
|
@@ -417,10 +417,10 @@ models/ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats.ts
|
|
|
417
417
|
models/ApiPublicPolicyGet200Response.ts
|
|
418
418
|
models/ApiPublicPolicyGet200ResponseResponseObject.ts
|
|
419
419
|
models/ApiPublicProvidersGet200Response.ts
|
|
420
|
-
models/
|
|
421
|
-
models/
|
|
422
|
-
models/
|
|
423
|
-
models/
|
|
420
|
+
models/ApiPublicUserUsernameStatsGet200Response.ts
|
|
421
|
+
models/ApiPublicUserUsernameStatsGet200ResponseResponseObject.ts
|
|
422
|
+
models/ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank.ts
|
|
423
|
+
models/ApiPublicUserUsernameStatsGet200ResponseResponseObjectRain.ts
|
|
424
424
|
models/ApiRgsAuthenticatePost200Response.ts
|
|
425
425
|
models/ApiRgsAuthenticatePostRequest.ts
|
|
426
426
|
models/ApiRgsBetPost200Response.ts
|
package/apis/PublicApi.js
CHANGED
|
@@ -91,12 +91,12 @@ class PublicApi extends runtime.BaseAPI {
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
|
-
* Get user statistics by
|
|
94
|
+
* Get user statistics by username
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
apiPublicUserUsernameStatsGetRaw(requestParameters, initOverrides) {
|
|
97
97
|
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
-
if (requestParameters['
|
|
99
|
-
throw new runtime.RequiredError('
|
|
98
|
+
if (requestParameters['username'] == null) {
|
|
99
|
+
throw new runtime.RequiredError('username', 'Required parameter "username" was null or undefined when calling apiPublicUserUsernameStatsGet().');
|
|
100
100
|
}
|
|
101
101
|
const queryParameters = {};
|
|
102
102
|
const headerParameters = {};
|
|
@@ -111,20 +111,20 @@ class PublicApi extends runtime.BaseAPI {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
const response = yield this.request({
|
|
114
|
-
path: `/api/public/user/{
|
|
114
|
+
path: `/api/public/user/{username}/stats`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))),
|
|
115
115
|
method: 'GET',
|
|
116
116
|
headers: headerParameters,
|
|
117
117
|
query: queryParameters,
|
|
118
118
|
}, initOverrides);
|
|
119
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
119
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiPublicUserUsernameStatsGet200ResponseFromJSON)(jsonValue));
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
|
-
* Get user statistics by
|
|
123
|
+
* Get user statistics by username
|
|
124
124
|
*/
|
|
125
|
-
|
|
125
|
+
apiPublicUserUsernameStatsGet(requestParameters, initOverrides) {
|
|
126
126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
-
const response = yield this.
|
|
127
|
+
const response = yield this.apiPublicUserUsernameStatsGetRaw(requestParameters, initOverrides);
|
|
128
128
|
return yield response.value();
|
|
129
129
|
});
|
|
130
130
|
}
|
package/apis/PublicApi.ts
CHANGED
|
@@ -16,21 +16,21 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiPublicLeaderboardCurrentGet200Response,
|
|
19
|
-
|
|
19
|
+
ApiPublicUserUsernameStatsGet200Response,
|
|
20
20
|
} from '../models/index';
|
|
21
21
|
import {
|
|
22
22
|
ApiPublicLeaderboardCurrentGet200ResponseFromJSON,
|
|
23
23
|
ApiPublicLeaderboardCurrentGet200ResponseToJSON,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
ApiPublicUserUsernameStatsGet200ResponseFromJSON,
|
|
25
|
+
ApiPublicUserUsernameStatsGet200ResponseToJSON,
|
|
26
26
|
} from '../models/index';
|
|
27
27
|
|
|
28
28
|
export interface ApiPublicLeaderboardCurrentGetRequest {
|
|
29
29
|
type?: ApiPublicLeaderboardCurrentGetTypeEnum;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export interface
|
|
33
|
-
|
|
32
|
+
export interface ApiPublicUserUsernameStatsGetRequest {
|
|
33
|
+
username: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -81,13 +81,13 @@ export class PublicApi extends runtime.BaseAPI {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
* Get user statistics by
|
|
84
|
+
* Get user statistics by username
|
|
85
85
|
*/
|
|
86
|
-
async
|
|
87
|
-
if (requestParameters['
|
|
86
|
+
async apiPublicUserUsernameStatsGetRaw(requestParameters: ApiPublicUserUsernameStatsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPublicUserUsernameStatsGet200Response>> {
|
|
87
|
+
if (requestParameters['username'] == null) {
|
|
88
88
|
throw new runtime.RequiredError(
|
|
89
|
-
'
|
|
90
|
-
'Required parameter "
|
|
89
|
+
'username',
|
|
90
|
+
'Required parameter "username" was null or undefined when calling apiPublicUserUsernameStatsGet().'
|
|
91
91
|
);
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -108,20 +108,20 @@ export class PublicApi extends runtime.BaseAPI {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
const response = await this.request({
|
|
111
|
-
path: `/api/public/user/{
|
|
111
|
+
path: `/api/public/user/{username}/stats`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))),
|
|
112
112
|
method: 'GET',
|
|
113
113
|
headers: headerParameters,
|
|
114
114
|
query: queryParameters,
|
|
115
115
|
}, initOverrides);
|
|
116
116
|
|
|
117
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
117
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPublicUserUsernameStatsGet200ResponseFromJSON(jsonValue));
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
|
-
* Get user statistics by
|
|
121
|
+
* Get user statistics by username
|
|
122
122
|
*/
|
|
123
|
-
async
|
|
124
|
-
const response = await this.
|
|
123
|
+
async apiPublicUserUsernameStatsGet(requestParameters: ApiPublicUserUsernameStatsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPublicUserUsernameStatsGet200Response> {
|
|
124
|
+
const response = await this.apiPublicUserUsernameStatsGetRaw(requestParameters, initOverrides);
|
|
125
125
|
return await response.value();
|
|
126
126
|
}
|
|
127
127
|
|
|
@@ -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.instanceOfApiPublicUserUsernameStatsGet200Response = instanceOfApiPublicUserUsernameStatsGet200Response;
|
|
17
|
+
exports.ApiPublicUserUsernameStatsGet200ResponseFromJSON = ApiPublicUserUsernameStatsGet200ResponseFromJSON;
|
|
18
|
+
exports.ApiPublicUserUsernameStatsGet200ResponseFromJSONTyped = ApiPublicUserUsernameStatsGet200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiPublicUserUsernameStatsGet200ResponseToJSON = ApiPublicUserUsernameStatsGet200ResponseToJSON;
|
|
20
|
+
exports.ApiPublicUserUsernameStatsGet200ResponseToJSONTyped = ApiPublicUserUsernameStatsGet200ResponseToJSONTyped;
|
|
21
|
+
const ApiPublicUserUsernameStatsGet200ResponseResponseObject_1 = require("./ApiPublicUserUsernameStatsGet200ResponseResponseObject");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiPublicUserUsernameStatsGet200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiPublicUserUsernameStatsGet200Response(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 ApiPublicUserUsernameStatsGet200ResponseFromJSON(json) {
|
|
35
|
+
return ApiPublicUserUsernameStatsGet200ResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function ApiPublicUserUsernameStatsGet200ResponseFromJSONTyped(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, ApiPublicUserUsernameStatsGet200ResponseResponseObject_1.ApiPublicUserUsernameStatsGet200ResponseResponseObjectFromJSON)(json['responseObject']),
|
|
45
|
+
'statusCode': json['statusCode'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function ApiPublicUserUsernameStatsGet200ResponseToJSON(json) {
|
|
49
|
+
return ApiPublicUserUsernameStatsGet200ResponseToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function ApiPublicUserUsernameStatsGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'success': value['success'],
|
|
57
|
+
'message': value['message'],
|
|
58
|
+
'responseObject': (0, ApiPublicUserUsernameStatsGet200ResponseResponseObject_1.ApiPublicUserUsernameStatsGet200ResponseResponseObjectToJSON)(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 { ApiPublicUserUsernameStatsGet200ResponseResponseObject } from './ApiPublicUserUsernameStatsGet200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiPublicUserUsernameStatsGet200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiPublicUserUsernameStatsGet200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiPublicUserUsernameStatsGet200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiPublicUserUsernameStatsGet200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiPublicUserUsernameStatsGet200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiPublicUserUsernameStatsGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiPublicUserUsernameStatsGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiPublicUserUsernameStatsGet200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiPublicUserUsernameStatsGet200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiPublicUserUsernameStatsGet200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiPublicUserUsernameStatsGet200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiPublicUserUsernameStatsGet200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiPublicUserUsernameStatsGet200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiPublicUserUsernameStatsGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiPublicUserUsernameStatsGet200Response(value: object): value is ApiPublicUserUsernameStatsGet200Response {
|
|
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 ApiPublicUserUsernameStatsGet200ResponseFromJSON(json: any): ApiPublicUserUsernameStatsGet200Response {
|
|
67
|
+
return ApiPublicUserUsernameStatsGet200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiPublicUserUsernameStatsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicUserUsernameStatsGet200Response {
|
|
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 : ApiPublicUserUsernameStatsGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiPublicUserUsernameStatsGet200ResponseToJSON(json: any): ApiPublicUserUsernameStatsGet200Response {
|
|
84
|
+
return ApiPublicUserUsernameStatsGet200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiPublicUserUsernameStatsGet200ResponseToJSONTyped(value?: ApiPublicUserUsernameStatsGet200Response | 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': ApiPublicUserUsernameStatsGet200ResponseResponseObjectToJSON(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.instanceOfApiPublicUserUsernameStatsGet200ResponseResponseObject = instanceOfApiPublicUserUsernameStatsGet200ResponseResponseObject;
|
|
17
|
+
exports.ApiPublicUserUsernameStatsGet200ResponseResponseObjectFromJSON = ApiPublicUserUsernameStatsGet200ResponseResponseObjectFromJSON;
|
|
18
|
+
exports.ApiPublicUserUsernameStatsGet200ResponseResponseObjectFromJSONTyped = ApiPublicUserUsernameStatsGet200ResponseResponseObjectFromJSONTyped;
|
|
19
|
+
exports.ApiPublicUserUsernameStatsGet200ResponseResponseObjectToJSON = ApiPublicUserUsernameStatsGet200ResponseResponseObjectToJSON;
|
|
20
|
+
exports.ApiPublicUserUsernameStatsGet200ResponseResponseObjectToJSONTyped = ApiPublicUserUsernameStatsGet200ResponseResponseObjectToJSONTyped;
|
|
21
|
+
const ApiPublicUserUsernameStatsGet200ResponseResponseObjectRain_1 = require("./ApiPublicUserUsernameStatsGet200ResponseResponseObjectRain");
|
|
22
|
+
const ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank_1 = require("./ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ApiPublicUserUsernameStatsGet200ResponseResponseObject interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfApiPublicUserUsernameStatsGet200ResponseResponseObject(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 ApiPublicUserUsernameStatsGet200ResponseResponseObjectFromJSON(json) {
|
|
44
|
+
return ApiPublicUserUsernameStatsGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ApiPublicUserUsernameStatsGet200ResponseResponseObjectFromJSONTyped(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, ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank_1.ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankFromJSON)(json['loyaltyRank']),
|
|
56
|
+
'rain': (0, ApiPublicUserUsernameStatsGet200ResponseResponseObjectRain_1.ApiPublicUserUsernameStatsGet200ResponseResponseObjectRainFromJSON)(json['rain']),
|
|
57
|
+
'tips': (0, ApiPublicUserUsernameStatsGet200ResponseResponseObjectRain_1.ApiPublicUserUsernameStatsGet200ResponseResponseObjectRainFromJSON)(json['tips']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function ApiPublicUserUsernameStatsGet200ResponseResponseObjectToJSON(json) {
|
|
61
|
+
return ApiPublicUserUsernameStatsGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function ApiPublicUserUsernameStatsGet200ResponseResponseObjectToJSONTyped(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, ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank_1.ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankToJSON)(value['loyaltyRank']),
|
|
73
|
+
'rain': (0, ApiPublicUserUsernameStatsGet200ResponseResponseObjectRain_1.ApiPublicUserUsernameStatsGet200ResponseResponseObjectRainToJSON)(value['rain']),
|
|
74
|
+
'tips': (0, ApiPublicUserUsernameStatsGet200ResponseResponseObjectRain_1.ApiPublicUserUsernameStatsGet200ResponseResponseObjectRainToJSON)(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 { ApiPublicUserUsernameStatsGet200ResponseResponseObjectRain } from './ApiPublicUserUsernameStatsGet200ResponseResponseObjectRain';
|
|
17
|
+
import {
|
|
18
|
+
ApiPublicUserUsernameStatsGet200ResponseResponseObjectRainFromJSON,
|
|
19
|
+
ApiPublicUserUsernameStatsGet200ResponseResponseObjectRainFromJSONTyped,
|
|
20
|
+
ApiPublicUserUsernameStatsGet200ResponseResponseObjectRainToJSON,
|
|
21
|
+
ApiPublicUserUsernameStatsGet200ResponseResponseObjectRainToJSONTyped,
|
|
22
|
+
} from './ApiPublicUserUsernameStatsGet200ResponseResponseObjectRain';
|
|
23
|
+
import type { ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank } from './ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank';
|
|
24
|
+
import {
|
|
25
|
+
ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankFromJSON,
|
|
26
|
+
ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankFromJSONTyped,
|
|
27
|
+
ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankToJSON,
|
|
28
|
+
ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankToJSONTyped,
|
|
29
|
+
} from './ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ApiPublicUserUsernameStatsGet200ResponseResponseObject
|
|
35
|
+
*/
|
|
36
|
+
export interface ApiPublicUserUsernameStatsGet200ResponseResponseObject {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ApiPublicUserUsernameStatsGet200ResponseResponseObject
|
|
41
|
+
*/
|
|
42
|
+
userId: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ApiPublicUserUsernameStatsGet200ResponseResponseObject
|
|
47
|
+
*/
|
|
48
|
+
name: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ApiPublicUserUsernameStatsGet200ResponseResponseObject
|
|
53
|
+
*/
|
|
54
|
+
createdAt: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof ApiPublicUserUsernameStatsGet200ResponseResponseObject
|
|
59
|
+
*/
|
|
60
|
+
isAnonymous: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank}
|
|
64
|
+
* @memberof ApiPublicUserUsernameStatsGet200ResponseResponseObject
|
|
65
|
+
*/
|
|
66
|
+
loyaltyRank: ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {ApiPublicUserUsernameStatsGet200ResponseResponseObjectRain}
|
|
70
|
+
* @memberof ApiPublicUserUsernameStatsGet200ResponseResponseObject
|
|
71
|
+
*/
|
|
72
|
+
rain: ApiPublicUserUsernameStatsGet200ResponseResponseObjectRain;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {ApiPublicUserUsernameStatsGet200ResponseResponseObjectRain}
|
|
76
|
+
* @memberof ApiPublicUserUsernameStatsGet200ResponseResponseObject
|
|
77
|
+
*/
|
|
78
|
+
tips: ApiPublicUserUsernameStatsGet200ResponseResponseObjectRain;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the ApiPublicUserUsernameStatsGet200ResponseResponseObject interface.
|
|
83
|
+
*/
|
|
84
|
+
export function instanceOfApiPublicUserUsernameStatsGet200ResponseResponseObject(value: object): value is ApiPublicUserUsernameStatsGet200ResponseResponseObject {
|
|
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 ApiPublicUserUsernameStatsGet200ResponseResponseObjectFromJSON(json: any): ApiPublicUserUsernameStatsGet200ResponseResponseObject {
|
|
96
|
+
return ApiPublicUserUsernameStatsGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function ApiPublicUserUsernameStatsGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicUserUsernameStatsGet200ResponseResponseObject {
|
|
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': ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankFromJSON(json['loyaltyRank']),
|
|
110
|
+
'rain': ApiPublicUserUsernameStatsGet200ResponseResponseObjectRainFromJSON(json['rain']),
|
|
111
|
+
'tips': ApiPublicUserUsernameStatsGet200ResponseResponseObjectRainFromJSON(json['tips']),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function ApiPublicUserUsernameStatsGet200ResponseResponseObjectToJSON(json: any): ApiPublicUserUsernameStatsGet200ResponseResponseObject {
|
|
116
|
+
return ApiPublicUserUsernameStatsGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function ApiPublicUserUsernameStatsGet200ResponseResponseObjectToJSONTyped(value?: ApiPublicUserUsernameStatsGet200ResponseResponseObject | 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': ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankToJSON(value['loyaltyRank']),
|
|
131
|
+
'rain': ApiPublicUserUsernameStatsGet200ResponseResponseObjectRainToJSON(value['rain']),
|
|
132
|
+
'tips': ApiPublicUserUsernameStatsGet200ResponseResponseObjectRainToJSON(value['tips']),
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank = instanceOfApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank;
|
|
17
|
+
exports.ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankFromJSON = ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankFromJSON;
|
|
18
|
+
exports.ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankFromJSONTyped = ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankFromJSONTyped;
|
|
19
|
+
exports.ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankToJSON = ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankToJSON;
|
|
20
|
+
exports.ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankToJSONTyped = ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankToJSONTyped;
|
|
21
21
|
/**
|
|
22
|
-
* Check if a given object implements the
|
|
22
|
+
* Check if a given object implements the ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank interface.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
24
|
+
function instanceOfApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank(value) {
|
|
25
25
|
if (!('currentRankName' in value) || value['currentRankName'] === undefined)
|
|
26
26
|
return false;
|
|
27
27
|
if (!('currentRankIcon' in value) || value['currentRankIcon'] === undefined)
|
|
@@ -38,10 +38,10 @@ function instanceOfApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRa
|
|
|
38
38
|
return false;
|
|
39
39
|
return true;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
41
|
+
function ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankFromJSON(json) {
|
|
42
|
+
return ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankFromJSONTyped(json, false);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
45
|
if (json == null) {
|
|
46
46
|
return json;
|
|
47
47
|
}
|
|
@@ -55,10 +55,10 @@ function ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankFromJSON
|
|
|
55
55
|
'totalWagered': json['totalWagered'],
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
return
|
|
58
|
+
function ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankToJSON(json) {
|
|
59
|
+
return ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankToJSONTyped(json, false);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
62
|
if (value == null) {
|
|
63
63
|
return value;
|
|
64
64
|
}
|
|
@@ -16,57 +16,57 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank
|
|
26
26
|
*/
|
|
27
27
|
currentRankName: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank
|
|
32
32
|
*/
|
|
33
33
|
currentRankIcon: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank
|
|
38
38
|
*/
|
|
39
39
|
currentRankLevel: number;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank
|
|
44
44
|
*/
|
|
45
45
|
currentWagerAmount: number;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {number}
|
|
49
|
-
* @memberof
|
|
49
|
+
* @memberof ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank
|
|
50
50
|
*/
|
|
51
51
|
currentLevelWagerRequirement: number;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
55
|
-
* @memberof
|
|
55
|
+
* @memberof ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank
|
|
56
56
|
*/
|
|
57
57
|
nextLevelWagerRequirement: number | null;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {number}
|
|
61
|
-
* @memberof
|
|
61
|
+
* @memberof ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank
|
|
62
62
|
*/
|
|
63
63
|
totalWagered: number;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
|
-
* Check if a given object implements the
|
|
67
|
+
* Check if a given object implements the ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank interface.
|
|
68
68
|
*/
|
|
69
|
-
export function
|
|
69
|
+
export function instanceOfApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank(value: object): value is ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank {
|
|
70
70
|
if (!('currentRankName' in value) || value['currentRankName'] === undefined) return false;
|
|
71
71
|
if (!('currentRankIcon' in value) || value['currentRankIcon'] === undefined) return false;
|
|
72
72
|
if (!('currentRankLevel' in value) || value['currentRankLevel'] === undefined) return false;
|
|
@@ -77,11 +77,11 @@ export function instanceOfApiPublicUserUserIdStatsGet200ResponseResponseObjectLo
|
|
|
77
77
|
return true;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
export function
|
|
81
|
-
return
|
|
80
|
+
export function ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankFromJSON(json: any): ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank {
|
|
81
|
+
return ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankFromJSONTyped(json, false);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export function
|
|
84
|
+
export function ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank {
|
|
85
85
|
if (json == null) {
|
|
86
86
|
return json;
|
|
87
87
|
}
|
|
@@ -97,11 +97,11 @@ export function ApiPublicUserUserIdStatsGet200ResponseResponseObjectLoyaltyRankF
|
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
export function
|
|
101
|
-
return
|
|
100
|
+
export function ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankToJSON(json: any): ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank {
|
|
101
|
+
return ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankToJSONTyped(json, false);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
export function
|
|
104
|
+
export function ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRankToJSONTyped(value?: ApiPublicUserUsernameStatsGet200ResponseResponseObjectLoyaltyRank | null, ignoreDiscriminator: boolean = false): any {
|
|
105
105
|
if (value == null) {
|
|
106
106
|
return value;
|
|
107
107
|
}
|