@gambulls-org/gambulls-apis 3.0.670 → 3.0.672
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/apis/UserTransactionHistoryApi.js +37 -0
- package/apis/UserTransactionHistoryApi.ts +51 -0
- package/models/ApiUserHistoryBetwinSharePostRequest.js +50 -0
- package/models/ApiUserHistoryBetwinSharePostRequest.ts +66 -0
- package/models/index.js +1 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -695,6 +695,7 @@ models/ApiUserGamesToggleFavoritePostRequest.ts
|
|
|
695
695
|
models/ApiUserHistoryBetwinGet200Response.ts
|
|
696
696
|
models/ApiUserHistoryBetwinGet200ResponseResponseObject.ts
|
|
697
697
|
models/ApiUserHistoryBetwinGet200ResponseResponseObjectItemsInner.ts
|
|
698
|
+
models/ApiUserHistoryBetwinSharePostRequest.ts
|
|
698
699
|
models/ApiUserHistoryDepositGet200Response.ts
|
|
699
700
|
models/ApiUserHistoryDepositGet200ResponseResponseObject.ts
|
|
700
701
|
models/ApiUserHistoryDepositGet200ResponseResponseObjectItemsInner.ts
|
|
@@ -99,6 +99,43 @@ class UserTransactionHistoryApi extends runtime.BaseAPI {
|
|
|
99
99
|
return yield response.value();
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* User BetWin History Chat Sharing
|
|
104
|
+
*/
|
|
105
|
+
apiUserHistoryBetwinSharePostRaw(requestParameters, initOverrides) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
const queryParameters = {};
|
|
108
|
+
const headerParameters = {};
|
|
109
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
110
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
111
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
112
|
+
}
|
|
113
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
114
|
+
const token = this.configuration.accessToken;
|
|
115
|
+
const tokenString = yield token("BearerAuth", []);
|
|
116
|
+
if (tokenString) {
|
|
117
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
const response = yield this.request({
|
|
121
|
+
path: `/api/user/history/betwin/share`,
|
|
122
|
+
method: 'POST',
|
|
123
|
+
headers: headerParameters,
|
|
124
|
+
query: queryParameters,
|
|
125
|
+
body: (0, index_1.ApiUserHistoryBetwinSharePostRequestToJSON)(requestParameters['apiUserHistoryBetwinSharePostRequest']),
|
|
126
|
+
}, initOverrides);
|
|
127
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiHealthCheckGet200ResponseFromJSON)(jsonValue));
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* User BetWin History Chat Sharing
|
|
132
|
+
*/
|
|
133
|
+
apiUserHistoryBetwinSharePost() {
|
|
134
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
135
|
+
const response = yield this.apiUserHistoryBetwinSharePostRaw(requestParameters, initOverrides);
|
|
136
|
+
return yield response.value();
|
|
137
|
+
});
|
|
138
|
+
}
|
|
102
139
|
/**
|
|
103
140
|
* User Deposit History
|
|
104
141
|
*/
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ApiHealthCheckGet200Response,
|
|
18
19
|
ApiUserHistoryBetwinGet200Response,
|
|
20
|
+
ApiUserHistoryBetwinSharePostRequest,
|
|
19
21
|
ApiUserHistoryDepositGet200Response,
|
|
20
22
|
ApiUserHistoryDepositGetFilterParameter,
|
|
21
23
|
ApiUserHistoryRainGet200Response,
|
|
@@ -28,8 +30,12 @@ import type {
|
|
|
28
30
|
ApiUserLastBetGet200Response,
|
|
29
31
|
} from '../models/index';
|
|
30
32
|
import {
|
|
33
|
+
ApiHealthCheckGet200ResponseFromJSON,
|
|
34
|
+
ApiHealthCheckGet200ResponseToJSON,
|
|
31
35
|
ApiUserHistoryBetwinGet200ResponseFromJSON,
|
|
32
36
|
ApiUserHistoryBetwinGet200ResponseToJSON,
|
|
37
|
+
ApiUserHistoryBetwinSharePostRequestFromJSON,
|
|
38
|
+
ApiUserHistoryBetwinSharePostRequestToJSON,
|
|
33
39
|
ApiUserHistoryDepositGet200ResponseFromJSON,
|
|
34
40
|
ApiUserHistoryDepositGet200ResponseToJSON,
|
|
35
41
|
ApiUserHistoryDepositGetFilterParameterFromJSON,
|
|
@@ -59,6 +65,10 @@ export interface ApiUserHistoryBetwinGetRequest {
|
|
|
59
65
|
filter?: ApiUserHistoryDepositGetFilterParameter;
|
|
60
66
|
}
|
|
61
67
|
|
|
68
|
+
export interface ApiUserHistoryBetwinSharePostOperationRequest {
|
|
69
|
+
apiUserHistoryBetwinSharePostRequest?: ApiUserHistoryBetwinSharePostRequest;
|
|
70
|
+
}
|
|
71
|
+
|
|
62
72
|
export interface ApiUserHistoryDepositGetRequest {
|
|
63
73
|
page?: number;
|
|
64
74
|
pageSize?: number;
|
|
@@ -153,6 +163,47 @@ export class UserTransactionHistoryApi extends runtime.BaseAPI {
|
|
|
153
163
|
return await response.value();
|
|
154
164
|
}
|
|
155
165
|
|
|
166
|
+
/**
|
|
167
|
+
* User BetWin History Chat Sharing
|
|
168
|
+
*/
|
|
169
|
+
async apiUserHistoryBetwinSharePostRaw(requestParameters: ApiUserHistoryBetwinSharePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiHealthCheckGet200Response>> {
|
|
170
|
+
const queryParameters: any = {};
|
|
171
|
+
|
|
172
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
173
|
+
|
|
174
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
175
|
+
|
|
176
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
177
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
181
|
+
const token = this.configuration.accessToken;
|
|
182
|
+
const tokenString = await token("BearerAuth", []);
|
|
183
|
+
|
|
184
|
+
if (tokenString) {
|
|
185
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
const response = await this.request({
|
|
189
|
+
path: `/api/user/history/betwin/share`,
|
|
190
|
+
method: 'POST',
|
|
191
|
+
headers: headerParameters,
|
|
192
|
+
query: queryParameters,
|
|
193
|
+
body: ApiUserHistoryBetwinSharePostRequestToJSON(requestParameters['apiUserHistoryBetwinSharePostRequest']),
|
|
194
|
+
}, initOverrides);
|
|
195
|
+
|
|
196
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiHealthCheckGet200ResponseFromJSON(jsonValue));
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* User BetWin History Chat Sharing
|
|
201
|
+
*/
|
|
202
|
+
async apiUserHistoryBetwinSharePost(requestParameters: ApiUserHistoryBetwinSharePostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiHealthCheckGet200Response> {
|
|
203
|
+
const response = await this.apiUserHistoryBetwinSharePostRaw(requestParameters, initOverrides);
|
|
204
|
+
return await response.value();
|
|
205
|
+
}
|
|
206
|
+
|
|
156
207
|
/**
|
|
157
208
|
* User Deposit History
|
|
158
209
|
*/
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfApiUserHistoryBetwinSharePostRequest = instanceOfApiUserHistoryBetwinSharePostRequest;
|
|
17
|
+
exports.ApiUserHistoryBetwinSharePostRequestFromJSON = ApiUserHistoryBetwinSharePostRequestFromJSON;
|
|
18
|
+
exports.ApiUserHistoryBetwinSharePostRequestFromJSONTyped = ApiUserHistoryBetwinSharePostRequestFromJSONTyped;
|
|
19
|
+
exports.ApiUserHistoryBetwinSharePostRequestToJSON = ApiUserHistoryBetwinSharePostRequestToJSON;
|
|
20
|
+
exports.ApiUserHistoryBetwinSharePostRequestToJSONTyped = ApiUserHistoryBetwinSharePostRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiUserHistoryBetwinSharePostRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiUserHistoryBetwinSharePostRequest(value) {
|
|
25
|
+
if (!('roundId' in value) || value['roundId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ApiUserHistoryBetwinSharePostRequestFromJSON(json) {
|
|
30
|
+
return ApiUserHistoryBetwinSharePostRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ApiUserHistoryBetwinSharePostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'roundId': json['roundId'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ApiUserHistoryBetwinSharePostRequestToJSON(json) {
|
|
41
|
+
return ApiUserHistoryBetwinSharePostRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiUserHistoryBetwinSharePostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'roundId': value['roundId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 ApiUserHistoryBetwinSharePostRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiUserHistoryBetwinSharePostRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiUserHistoryBetwinSharePostRequest
|
|
26
|
+
*/
|
|
27
|
+
roundId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ApiUserHistoryBetwinSharePostRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfApiUserHistoryBetwinSharePostRequest(value: object): value is ApiUserHistoryBetwinSharePostRequest {
|
|
34
|
+
if (!('roundId' in value) || value['roundId'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ApiUserHistoryBetwinSharePostRequestFromJSON(json: any): ApiUserHistoryBetwinSharePostRequest {
|
|
39
|
+
return ApiUserHistoryBetwinSharePostRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ApiUserHistoryBetwinSharePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserHistoryBetwinSharePostRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'roundId': json['roundId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiUserHistoryBetwinSharePostRequestToJSON(json: any): ApiUserHistoryBetwinSharePostRequest {
|
|
53
|
+
return ApiUserHistoryBetwinSharePostRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiUserHistoryBetwinSharePostRequestToJSONTyped(value?: ApiUserHistoryBetwinSharePostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'roundId': value['roundId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/models/index.js
CHANGED
|
@@ -639,6 +639,7 @@ __exportStar(require("./ApiUserGamesToggleFavoritePostRequest"), exports);
|
|
|
639
639
|
__exportStar(require("./ApiUserHistoryBetwinGet200Response"), exports);
|
|
640
640
|
__exportStar(require("./ApiUserHistoryBetwinGet200ResponseResponseObject"), exports);
|
|
641
641
|
__exportStar(require("./ApiUserHistoryBetwinGet200ResponseResponseObjectItemsInner"), exports);
|
|
642
|
+
__exportStar(require("./ApiUserHistoryBetwinSharePostRequest"), exports);
|
|
642
643
|
__exportStar(require("./ApiUserHistoryDepositGet200Response"), exports);
|
|
643
644
|
__exportStar(require("./ApiUserHistoryDepositGet200ResponseResponseObject"), exports);
|
|
644
645
|
__exportStar(require("./ApiUserHistoryDepositGet200ResponseResponseObjectItemsInner"), exports);
|
package/models/index.ts
CHANGED
|
@@ -623,6 +623,7 @@ export * from './ApiUserGamesToggleFavoritePostRequest';
|
|
|
623
623
|
export * from './ApiUserHistoryBetwinGet200Response';
|
|
624
624
|
export * from './ApiUserHistoryBetwinGet200ResponseResponseObject';
|
|
625
625
|
export * from './ApiUserHistoryBetwinGet200ResponseResponseObjectItemsInner';
|
|
626
|
+
export * from './ApiUserHistoryBetwinSharePostRequest';
|
|
626
627
|
export * from './ApiUserHistoryDepositGet200Response';
|
|
627
628
|
export * from './ApiUserHistoryDepositGet200ResponseResponseObject';
|
|
628
629
|
export * from './ApiUserHistoryDepositGet200ResponseResponseObjectItemsInner';
|