@gambulls-org/gambulls-apis 3.0.612 → 3.0.613
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 +2 -0
- package/apis/UserChatApi.js +93 -0
- package/apis/UserChatApi.ts +78 -0
- package/apis/index.js +1 -0
- package/apis/index.ts +1 -0
- package/models/ApiUserChatMessagePostRequest.js +52 -0
- package/models/ApiUserChatMessagePostRequest.ts +74 -0
- package/models/index.js +1 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -50,6 +50,7 @@ apis/UserAffiliateApi.ts
|
|
|
50
50
|
apis/UserAvatarApi.ts
|
|
51
51
|
apis/UserBalanceApi.ts
|
|
52
52
|
apis/UserBonusApi.ts
|
|
53
|
+
apis/UserChatApi.ts
|
|
53
54
|
apis/UserDepositApi.ts
|
|
54
55
|
apis/UserDocumentApi.ts
|
|
55
56
|
apis/UserGamesApi.ts
|
|
@@ -651,6 +652,7 @@ models/ApiUserCancelWithdrawalPostRequest.ts
|
|
|
651
652
|
models/ApiUserChangePasswordPostRequest.ts
|
|
652
653
|
models/ApiUserChangePasswordPostRequestMetadata.ts
|
|
653
654
|
models/ApiUserChangePasswordPostRequestMetadataGeo.ts
|
|
655
|
+
models/ApiUserChatMessagePostRequest.ts
|
|
654
656
|
models/ApiUserDepositWalletGet200Response.ts
|
|
655
657
|
models/ApiUserDepositWalletGet200ResponseResponseObject.ts
|
|
656
658
|
models/ApiUserDocumentGet200Response.ts
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Swagger API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.UserChatApi = void 0;
|
|
49
|
+
const runtime = __importStar(require("../runtime"));
|
|
50
|
+
const index_1 = require("../models/index");
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
class UserChatApi extends runtime.BaseAPI {
|
|
55
|
+
/**
|
|
56
|
+
* User Send Chat Message
|
|
57
|
+
*/
|
|
58
|
+
apiUserChatMessagePostRaw(requestParameters, initOverrides) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
const queryParameters = {};
|
|
61
|
+
const headerParameters = {};
|
|
62
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
63
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
64
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
65
|
+
}
|
|
66
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
67
|
+
const token = this.configuration.accessToken;
|
|
68
|
+
const tokenString = yield token("BearerAuth", []);
|
|
69
|
+
if (tokenString) {
|
|
70
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const response = yield this.request({
|
|
74
|
+
path: `/api/user/chat/message`,
|
|
75
|
+
method: 'POST',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
body: (0, index_1.ApiUserChatMessagePostRequestToJSON)(requestParameters['apiUserChatMessagePostRequest']),
|
|
79
|
+
}, initOverrides);
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiHealthCheckGet200ResponseFromJSON)(jsonValue));
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* User Send Chat Message
|
|
85
|
+
*/
|
|
86
|
+
apiUserChatMessagePost() {
|
|
87
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
88
|
+
const response = yield this.apiUserChatMessagePostRaw(requestParameters, initOverrides);
|
|
89
|
+
return yield response.value();
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.UserChatApi = UserChatApi;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Swagger API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ApiHealthCheckGet200Response,
|
|
19
|
+
ApiUserChatMessagePostRequest,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
ApiHealthCheckGet200ResponseFromJSON,
|
|
23
|
+
ApiHealthCheckGet200ResponseToJSON,
|
|
24
|
+
ApiUserChatMessagePostRequestFromJSON,
|
|
25
|
+
ApiUserChatMessagePostRequestToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface ApiUserChatMessagePostOperationRequest {
|
|
29
|
+
apiUserChatMessagePostRequest?: ApiUserChatMessagePostRequest;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export class UserChatApi extends runtime.BaseAPI {
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* User Send Chat Message
|
|
39
|
+
*/
|
|
40
|
+
async apiUserChatMessagePostRaw(requestParameters: ApiUserChatMessagePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiHealthCheckGet200Response>> {
|
|
41
|
+
const queryParameters: any = {};
|
|
42
|
+
|
|
43
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
44
|
+
|
|
45
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
46
|
+
|
|
47
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
48
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
52
|
+
const token = this.configuration.accessToken;
|
|
53
|
+
const tokenString = await token("BearerAuth", []);
|
|
54
|
+
|
|
55
|
+
if (tokenString) {
|
|
56
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
const response = await this.request({
|
|
60
|
+
path: `/api/user/chat/message`,
|
|
61
|
+
method: 'POST',
|
|
62
|
+
headers: headerParameters,
|
|
63
|
+
query: queryParameters,
|
|
64
|
+
body: ApiUserChatMessagePostRequestToJSON(requestParameters['apiUserChatMessagePostRequest']),
|
|
65
|
+
}, initOverrides);
|
|
66
|
+
|
|
67
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiHealthCheckGet200ResponseFromJSON(jsonValue));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* User Send Chat Message
|
|
72
|
+
*/
|
|
73
|
+
async apiUserChatMessagePost(requestParameters: ApiUserChatMessagePostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiHealthCheckGet200Response> {
|
|
74
|
+
const response = await this.apiUserChatMessagePostRaw(requestParameters, initOverrides);
|
|
75
|
+
return await response.value();
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
}
|
package/apis/index.js
CHANGED
|
@@ -68,6 +68,7 @@ __exportStar(require("./UserAffiliateApi"), exports);
|
|
|
68
68
|
__exportStar(require("./UserAvatarApi"), exports);
|
|
69
69
|
__exportStar(require("./UserBalanceApi"), exports);
|
|
70
70
|
__exportStar(require("./UserBonusApi"), exports);
|
|
71
|
+
__exportStar(require("./UserChatApi"), exports);
|
|
71
72
|
__exportStar(require("./UserDepositApi"), exports);
|
|
72
73
|
__exportStar(require("./UserDocumentApi"), exports);
|
|
73
74
|
__exportStar(require("./UserGamesApi"), exports);
|
package/apis/index.ts
CHANGED
|
@@ -52,6 +52,7 @@ export * from './UserAffiliateApi';
|
|
|
52
52
|
export * from './UserAvatarApi';
|
|
53
53
|
export * from './UserBalanceApi';
|
|
54
54
|
export * from './UserBonusApi';
|
|
55
|
+
export * from './UserChatApi';
|
|
55
56
|
export * from './UserDepositApi';
|
|
56
57
|
export * from './UserDocumentApi';
|
|
57
58
|
export * from './UserGamesApi';
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfApiUserChatMessagePostRequest = instanceOfApiUserChatMessagePostRequest;
|
|
17
|
+
exports.ApiUserChatMessagePostRequestFromJSON = ApiUserChatMessagePostRequestFromJSON;
|
|
18
|
+
exports.ApiUserChatMessagePostRequestFromJSONTyped = ApiUserChatMessagePostRequestFromJSONTyped;
|
|
19
|
+
exports.ApiUserChatMessagePostRequestToJSON = ApiUserChatMessagePostRequestToJSON;
|
|
20
|
+
exports.ApiUserChatMessagePostRequestToJSONTyped = ApiUserChatMessagePostRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiUserChatMessagePostRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiUserChatMessagePostRequest(value) {
|
|
25
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ApiUserChatMessagePostRequestFromJSON(json) {
|
|
30
|
+
return ApiUserChatMessagePostRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ApiUserChatMessagePostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'message': json['message'],
|
|
38
|
+
'clientMessageId': json['clientMessageId'] == null ? undefined : json['clientMessageId'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ApiUserChatMessagePostRequestToJSON(json) {
|
|
42
|
+
return ApiUserChatMessagePostRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ApiUserChatMessagePostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'message': value['message'],
|
|
50
|
+
'clientMessageId': value['clientMessageId'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 ApiUserChatMessagePostRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiUserChatMessagePostRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiUserChatMessagePostRequest
|
|
26
|
+
*/
|
|
27
|
+
message: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiUserChatMessagePostRequest
|
|
32
|
+
*/
|
|
33
|
+
clientMessageId?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ApiUserChatMessagePostRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfApiUserChatMessagePostRequest(value: object): value is ApiUserChatMessagePostRequest {
|
|
40
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ApiUserChatMessagePostRequestFromJSON(json: any): ApiUserChatMessagePostRequest {
|
|
45
|
+
return ApiUserChatMessagePostRequestFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ApiUserChatMessagePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserChatMessagePostRequest {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'message': json['message'],
|
|
55
|
+
'clientMessageId': json['clientMessageId'] == null ? undefined : json['clientMessageId'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ApiUserChatMessagePostRequestToJSON(json: any): ApiUserChatMessagePostRequest {
|
|
60
|
+
return ApiUserChatMessagePostRequestToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ApiUserChatMessagePostRequestToJSONTyped(value?: ApiUserChatMessagePostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'message': value['message'],
|
|
71
|
+
'clientMessageId': value['clientMessageId'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
package/models/index.js
CHANGED
|
@@ -599,6 +599,7 @@ __exportStar(require("./ApiUserCancelWithdrawalPostRequest"), exports);
|
|
|
599
599
|
__exportStar(require("./ApiUserChangePasswordPostRequest"), exports);
|
|
600
600
|
__exportStar(require("./ApiUserChangePasswordPostRequestMetadata"), exports);
|
|
601
601
|
__exportStar(require("./ApiUserChangePasswordPostRequestMetadataGeo"), exports);
|
|
602
|
+
__exportStar(require("./ApiUserChatMessagePostRequest"), exports);
|
|
602
603
|
__exportStar(require("./ApiUserDepositWalletGet200Response"), exports);
|
|
603
604
|
__exportStar(require("./ApiUserDepositWalletGet200ResponseResponseObject"), exports);
|
|
604
605
|
__exportStar(require("./ApiUserDocumentGet200Response"), exports);
|
package/models/index.ts
CHANGED
|
@@ -583,6 +583,7 @@ export * from './ApiUserCancelWithdrawalPostRequest';
|
|
|
583
583
|
export * from './ApiUserChangePasswordPostRequest';
|
|
584
584
|
export * from './ApiUserChangePasswordPostRequestMetadata';
|
|
585
585
|
export * from './ApiUserChangePasswordPostRequestMetadataGeo';
|
|
586
|
+
export * from './ApiUserChatMessagePostRequest';
|
|
586
587
|
export * from './ApiUserDepositWalletGet200Response';
|
|
587
588
|
export * from './ApiUserDepositWalletGet200ResponseResponseObject';
|
|
588
589
|
export * from './ApiUserDocumentGet200Response';
|