@gambulls-org/gambulls-apis 3.0.99 → 3.0.103
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/PublicGamesApi.js +35 -0
- package/apis/PublicGamesApi.ts +41 -0
- package/models/ApiPublicProvidersGet200Response.js +61 -0
- package/models/ApiPublicProvidersGet200Response.ts +100 -0
- package/models/index.js +1 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
- package/workflow.sh +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -308,6 +308,7 @@ models/ApiPublicGamesSlugGet200ResponseResponseObject.ts
|
|
|
308
308
|
models/ApiPublicGamesSlugGet200ResponseResponseObjectGames.ts
|
|
309
309
|
models/ApiPublicPolicyGet200Response.ts
|
|
310
310
|
models/ApiPublicPolicyGet200ResponseResponseObject.ts
|
|
311
|
+
models/ApiPublicProvidersGet200Response.ts
|
|
311
312
|
models/ApiRgsAuthenticatePost200Response.ts
|
|
312
313
|
models/ApiRgsAuthenticatePostRequest.ts
|
|
313
314
|
models/ApiRgsBetPost200Response.ts
|
package/apis/PublicGamesApi.js
CHANGED
|
@@ -379,6 +379,41 @@ class PublicGamesApi extends runtime.BaseAPI {
|
|
|
379
379
|
return yield response.value();
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
|
+
/**
|
|
383
|
+
* Get Providers Data
|
|
384
|
+
*/
|
|
385
|
+
apiPublicProvidersGetRaw(initOverrides) {
|
|
386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
387
|
+
const queryParameters = {};
|
|
388
|
+
const headerParameters = {};
|
|
389
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
390
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
391
|
+
}
|
|
392
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
393
|
+
const token = this.configuration.accessToken;
|
|
394
|
+
const tokenString = yield token("BearerAuth", []);
|
|
395
|
+
if (tokenString) {
|
|
396
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
const response = yield this.request({
|
|
400
|
+
path: `/api/public/providers`,
|
|
401
|
+
method: 'GET',
|
|
402
|
+
headers: headerParameters,
|
|
403
|
+
query: queryParameters,
|
|
404
|
+
}, initOverrides);
|
|
405
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiPublicProvidersGet200ResponseFromJSON)(jsonValue));
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Get Providers Data
|
|
410
|
+
*/
|
|
411
|
+
apiPublicProvidersGet(initOverrides) {
|
|
412
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
413
|
+
const response = yield this.apiPublicProvidersGetRaw(initOverrides);
|
|
414
|
+
return yield response.value();
|
|
415
|
+
});
|
|
416
|
+
}
|
|
382
417
|
}
|
|
383
418
|
exports.PublicGamesApi = PublicGamesApi;
|
|
384
419
|
/**
|
package/apis/PublicGamesApi.ts
CHANGED
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
ApiPublicGamesGet200Response,
|
|
21
21
|
ApiPublicGamesSeoGet200Response,
|
|
22
22
|
ApiPublicGamesSlugGet200Response,
|
|
23
|
+
ApiPublicProvidersGet200Response,
|
|
23
24
|
ApiUserAvatarPut200Response,
|
|
24
25
|
ApiUserLastBetGet200Response,
|
|
25
26
|
} from '../models/index';
|
|
@@ -34,6 +35,8 @@ import {
|
|
|
34
35
|
ApiPublicGamesSeoGet200ResponseToJSON,
|
|
35
36
|
ApiPublicGamesSlugGet200ResponseFromJSON,
|
|
36
37
|
ApiPublicGamesSlugGet200ResponseToJSON,
|
|
38
|
+
ApiPublicProvidersGet200ResponseFromJSON,
|
|
39
|
+
ApiPublicProvidersGet200ResponseToJSON,
|
|
37
40
|
ApiUserAvatarPut200ResponseFromJSON,
|
|
38
41
|
ApiUserAvatarPut200ResponseToJSON,
|
|
39
42
|
ApiUserLastBetGet200ResponseFromJSON,
|
|
@@ -453,6 +456,44 @@ export class PublicGamesApi extends runtime.BaseAPI {
|
|
|
453
456
|
return await response.value();
|
|
454
457
|
}
|
|
455
458
|
|
|
459
|
+
/**
|
|
460
|
+
* Get Providers Data
|
|
461
|
+
*/
|
|
462
|
+
async apiPublicProvidersGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPublicProvidersGet200Response>> {
|
|
463
|
+
const queryParameters: any = {};
|
|
464
|
+
|
|
465
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
466
|
+
|
|
467
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
468
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
472
|
+
const token = this.configuration.accessToken;
|
|
473
|
+
const tokenString = await token("BearerAuth", []);
|
|
474
|
+
|
|
475
|
+
if (tokenString) {
|
|
476
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
const response = await this.request({
|
|
480
|
+
path: `/api/public/providers`,
|
|
481
|
+
method: 'GET',
|
|
482
|
+
headers: headerParameters,
|
|
483
|
+
query: queryParameters,
|
|
484
|
+
}, initOverrides);
|
|
485
|
+
|
|
486
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPublicProvidersGet200ResponseFromJSON(jsonValue));
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Get Providers Data
|
|
491
|
+
*/
|
|
492
|
+
async apiPublicProvidersGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPublicProvidersGet200Response> {
|
|
493
|
+
const response = await this.apiPublicProvidersGetRaw(initOverrides);
|
|
494
|
+
return await response.value();
|
|
495
|
+
}
|
|
496
|
+
|
|
456
497
|
}
|
|
457
498
|
|
|
458
499
|
/**
|
|
@@ -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.instanceOfApiPublicProvidersGet200Response = instanceOfApiPublicProvidersGet200Response;
|
|
17
|
+
exports.ApiPublicProvidersGet200ResponseFromJSON = ApiPublicProvidersGet200ResponseFromJSON;
|
|
18
|
+
exports.ApiPublicProvidersGet200ResponseFromJSONTyped = ApiPublicProvidersGet200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiPublicProvidersGet200ResponseToJSON = ApiPublicProvidersGet200ResponseToJSON;
|
|
20
|
+
exports.ApiPublicProvidersGet200ResponseToJSONTyped = ApiPublicProvidersGet200ResponseToJSONTyped;
|
|
21
|
+
const ApiPublicGamesFilterDataGet200ResponseResponseObjectProvidersInner_1 = require("./ApiPublicGamesFilterDataGet200ResponseResponseObjectProvidersInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiPublicProvidersGet200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiPublicProvidersGet200Response(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 ApiPublicProvidersGet200ResponseFromJSON(json) {
|
|
35
|
+
return ApiPublicProvidersGet200ResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function ApiPublicProvidersGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'success': json['success'],
|
|
43
|
+
'message': json['message'],
|
|
44
|
+
'responseObject': json['responseObject'] == null ? undefined : (json['responseObject'].map(ApiPublicGamesFilterDataGet200ResponseResponseObjectProvidersInner_1.ApiPublicGamesFilterDataGet200ResponseResponseObjectProvidersInnerFromJSON)),
|
|
45
|
+
'statusCode': json['statusCode'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function ApiPublicProvidersGet200ResponseToJSON(json) {
|
|
49
|
+
return ApiPublicProvidersGet200ResponseToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function ApiPublicProvidersGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'success': value['success'],
|
|
57
|
+
'message': value['message'],
|
|
58
|
+
'responseObject': value['responseObject'] == null ? undefined : (value['responseObject'].map(ApiPublicGamesFilterDataGet200ResponseResponseObjectProvidersInner_1.ApiPublicGamesFilterDataGet200ResponseResponseObjectProvidersInnerToJSON)),
|
|
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 { ApiPublicGamesFilterDataGet200ResponseResponseObjectProvidersInner } from './ApiPublicGamesFilterDataGet200ResponseResponseObjectProvidersInner';
|
|
17
|
+
import {
|
|
18
|
+
ApiPublicGamesFilterDataGet200ResponseResponseObjectProvidersInnerFromJSON,
|
|
19
|
+
ApiPublicGamesFilterDataGet200ResponseResponseObjectProvidersInnerFromJSONTyped,
|
|
20
|
+
ApiPublicGamesFilterDataGet200ResponseResponseObjectProvidersInnerToJSON,
|
|
21
|
+
ApiPublicGamesFilterDataGet200ResponseResponseObjectProvidersInnerToJSONTyped,
|
|
22
|
+
} from './ApiPublicGamesFilterDataGet200ResponseResponseObjectProvidersInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiPublicProvidersGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiPublicProvidersGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiPublicProvidersGet200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiPublicProvidersGet200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<ApiPublicGamesFilterDataGet200ResponseResponseObjectProvidersInner>}
|
|
45
|
+
* @memberof ApiPublicProvidersGet200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: Array<ApiPublicGamesFilterDataGet200ResponseResponseObjectProvidersInner>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiPublicProvidersGet200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiPublicProvidersGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiPublicProvidersGet200Response(value: object): value is ApiPublicProvidersGet200Response {
|
|
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 ApiPublicProvidersGet200ResponseFromJSON(json: any): ApiPublicProvidersGet200Response {
|
|
67
|
+
return ApiPublicProvidersGet200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiPublicProvidersGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicProvidersGet200Response {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'success': json['success'],
|
|
77
|
+
'message': json['message'],
|
|
78
|
+
'responseObject': json['responseObject'] == null ? undefined : ((json['responseObject'] as Array<any>).map(ApiPublicGamesFilterDataGet200ResponseResponseObjectProvidersInnerFromJSON)),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiPublicProvidersGet200ResponseToJSON(json: any): ApiPublicProvidersGet200Response {
|
|
84
|
+
return ApiPublicProvidersGet200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiPublicProvidersGet200ResponseToJSONTyped(value?: ApiPublicProvidersGet200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'success': value['success'],
|
|
95
|
+
'message': value['message'],
|
|
96
|
+
'responseObject': value['responseObject'] == null ? undefined : ((value['responseObject'] as Array<any>).map(ApiPublicGamesFilterDataGet200ResponseResponseObjectProvidersInnerToJSON)),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
package/models/index.js
CHANGED
|
@@ -279,6 +279,7 @@ __exportStar(require("./ApiPublicGamesSlugGet200ResponseResponseObject"), export
|
|
|
279
279
|
__exportStar(require("./ApiPublicGamesSlugGet200ResponseResponseObjectGames"), exports);
|
|
280
280
|
__exportStar(require("./ApiPublicPolicyGet200Response"), exports);
|
|
281
281
|
__exportStar(require("./ApiPublicPolicyGet200ResponseResponseObject"), exports);
|
|
282
|
+
__exportStar(require("./ApiPublicProvidersGet200Response"), exports);
|
|
282
283
|
__exportStar(require("./ApiRgsAuthenticatePost200Response"), exports);
|
|
283
284
|
__exportStar(require("./ApiRgsAuthenticatePostRequest"), exports);
|
|
284
285
|
__exportStar(require("./ApiRgsBetPost200Response"), exports);
|
package/models/index.ts
CHANGED
|
@@ -263,6 +263,7 @@ export * from './ApiPublicGamesSlugGet200ResponseResponseObject';
|
|
|
263
263
|
export * from './ApiPublicGamesSlugGet200ResponseResponseObjectGames';
|
|
264
264
|
export * from './ApiPublicPolicyGet200Response';
|
|
265
265
|
export * from './ApiPublicPolicyGet200ResponseResponseObject';
|
|
266
|
+
export * from './ApiPublicProvidersGet200Response';
|
|
266
267
|
export * from './ApiRgsAuthenticatePost200Response';
|
|
267
268
|
export * from './ApiRgsAuthenticatePostRequest';
|
|
268
269
|
export * from './ApiRgsBetPost200Response';
|
package/package.json
CHANGED
package/workflow.sh
CHANGED
|
@@ -5,7 +5,7 @@ git pull
|
|
|
5
5
|
rm -r apis
|
|
6
6
|
rm -r models
|
|
7
7
|
|
|
8
|
-
openapi-generator-cli generate -i https://staging-api.
|
|
8
|
+
openapi-generator-cli generate -i https://staging-api.gambulls.com/swagger.json -g typescript-fetch -o ./ --auth "Authorization:Basic%20Z2FtYnVsbHM6OGQxbUZKcWJmZTVybVJ6"
|
|
9
9
|
if [ $? -ne 0 ]; then
|
|
10
10
|
echo "Failed to generate SDK"
|
|
11
11
|
exit 1
|