@gambulls-org/gambulls-apis 3.0.644 → 3.0.646
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/AdminUserManagementApi.js +37 -0
- package/apis/AdminUserManagementApi.ts +51 -0
- package/models/ApiAdminUsersRegisterPostRequest.js +70 -0
- package/models/ApiAdminUsersRegisterPostRequest.ts +104 -0
- package/models/index.js +1 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -370,6 +370,7 @@ models/ApiAdminUsersGetFilterParameter.ts
|
|
|
370
370
|
models/ApiAdminUsersGetFilterParameterDeposits.ts
|
|
371
371
|
models/ApiAdminUsersGetFilterParameterDepositsAnyOf.ts
|
|
372
372
|
models/ApiAdminUsersGroupPutRequest.ts
|
|
373
|
+
models/ApiAdminUsersRegisterPostRequest.ts
|
|
373
374
|
models/ApiAdminUsersUnflagAltAccountPost200Response.ts
|
|
374
375
|
models/ApiAdminUsersUnflagAltAccountPostRequest.ts
|
|
375
376
|
models/ApiAdminUsersUserIdAuditGet200Response.ts
|
|
@@ -518,6 +518,43 @@ class AdminUserManagementApi extends runtime.BaseAPI {
|
|
|
518
518
|
return yield response.value();
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
|
+
/**
|
|
522
|
+
* Create users account
|
|
523
|
+
*/
|
|
524
|
+
apiAdminUsersRegisterPostRaw(requestParameters, initOverrides) {
|
|
525
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
526
|
+
const queryParameters = {};
|
|
527
|
+
const headerParameters = {};
|
|
528
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
529
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
530
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
531
|
+
}
|
|
532
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
533
|
+
const token = this.configuration.accessToken;
|
|
534
|
+
const tokenString = yield token("BearerAuth", []);
|
|
535
|
+
if (tokenString) {
|
|
536
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
const response = yield this.request({
|
|
540
|
+
path: `/api/admin/users/register`,
|
|
541
|
+
method: 'POST',
|
|
542
|
+
headers: headerParameters,
|
|
543
|
+
query: queryParameters,
|
|
544
|
+
body: (0, index_1.ApiAdminUsersRegisterPostRequestToJSON)(requestParameters['apiAdminUsersRegisterPostRequest']),
|
|
545
|
+
}, initOverrides);
|
|
546
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiUserAvatarPut200ResponseFromJSON)(jsonValue));
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Create users account
|
|
551
|
+
*/
|
|
552
|
+
apiAdminUsersRegisterPost() {
|
|
553
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
554
|
+
const response = yield this.apiAdminUsersRegisterPostRaw(requestParameters, initOverrides);
|
|
555
|
+
return yield response.value();
|
|
556
|
+
});
|
|
557
|
+
}
|
|
521
558
|
/**
|
|
522
559
|
* Toggle Alt Account Flag
|
|
523
560
|
*/
|
|
@@ -30,6 +30,7 @@ import type {
|
|
|
30
30
|
ApiAdminUsersGet200Response,
|
|
31
31
|
ApiAdminUsersGetFilterParameter,
|
|
32
32
|
ApiAdminUsersGroupPutRequest,
|
|
33
|
+
ApiAdminUsersRegisterPostRequest,
|
|
33
34
|
ApiAdminUsersUnflagAltAccountPost200Response,
|
|
34
35
|
ApiAdminUsersUnflagAltAccountPostRequest,
|
|
35
36
|
ApiAdminUsersUserIdAuditGet200Response,
|
|
@@ -49,6 +50,7 @@ import type {
|
|
|
49
50
|
ApiAdminUsersUserIdWithdrawalGet200Response,
|
|
50
51
|
ApiAdminUsersUserIdWithdrawalGetFilterParameter,
|
|
51
52
|
ApiHealthCheckGet200Response,
|
|
53
|
+
ApiUserAvatarPut200Response,
|
|
52
54
|
ApiUserGamesToggleFavoritePost200Response,
|
|
53
55
|
} from '../models/index';
|
|
54
56
|
import {
|
|
@@ -82,6 +84,8 @@ import {
|
|
|
82
84
|
ApiAdminUsersGetFilterParameterToJSON,
|
|
83
85
|
ApiAdminUsersGroupPutRequestFromJSON,
|
|
84
86
|
ApiAdminUsersGroupPutRequestToJSON,
|
|
87
|
+
ApiAdminUsersRegisterPostRequestFromJSON,
|
|
88
|
+
ApiAdminUsersRegisterPostRequestToJSON,
|
|
85
89
|
ApiAdminUsersUnflagAltAccountPost200ResponseFromJSON,
|
|
86
90
|
ApiAdminUsersUnflagAltAccountPost200ResponseToJSON,
|
|
87
91
|
ApiAdminUsersUnflagAltAccountPostRequestFromJSON,
|
|
@@ -120,6 +124,8 @@ import {
|
|
|
120
124
|
ApiAdminUsersUserIdWithdrawalGetFilterParameterToJSON,
|
|
121
125
|
ApiHealthCheckGet200ResponseFromJSON,
|
|
122
126
|
ApiHealthCheckGet200ResponseToJSON,
|
|
127
|
+
ApiUserAvatarPut200ResponseFromJSON,
|
|
128
|
+
ApiUserAvatarPut200ResponseToJSON,
|
|
123
129
|
ApiUserGamesToggleFavoritePost200ResponseFromJSON,
|
|
124
130
|
ApiUserGamesToggleFavoritePost200ResponseToJSON,
|
|
125
131
|
} from '../models/index';
|
|
@@ -190,6 +196,10 @@ export interface ApiAdminUsersGroupPutOperationRequest {
|
|
|
190
196
|
apiAdminUsersGroupPutRequest?: ApiAdminUsersGroupPutRequest;
|
|
191
197
|
}
|
|
192
198
|
|
|
199
|
+
export interface ApiAdminUsersRegisterPostOperationRequest {
|
|
200
|
+
apiAdminUsersRegisterPostRequest?: ApiAdminUsersRegisterPostRequest;
|
|
201
|
+
}
|
|
202
|
+
|
|
193
203
|
export interface ApiAdminUsersUnflagAltAccountPostOperationRequest {
|
|
194
204
|
apiAdminUsersUnflagAltAccountPostRequest?: ApiAdminUsersUnflagAltAccountPostRequest;
|
|
195
205
|
}
|
|
@@ -815,6 +825,47 @@ export class AdminUserManagementApi extends runtime.BaseAPI {
|
|
|
815
825
|
return await response.value();
|
|
816
826
|
}
|
|
817
827
|
|
|
828
|
+
/**
|
|
829
|
+
* Create users account
|
|
830
|
+
*/
|
|
831
|
+
async apiAdminUsersRegisterPostRaw(requestParameters: ApiAdminUsersRegisterPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserAvatarPut200Response>> {
|
|
832
|
+
const queryParameters: any = {};
|
|
833
|
+
|
|
834
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
835
|
+
|
|
836
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
837
|
+
|
|
838
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
839
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
843
|
+
const token = this.configuration.accessToken;
|
|
844
|
+
const tokenString = await token("BearerAuth", []);
|
|
845
|
+
|
|
846
|
+
if (tokenString) {
|
|
847
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
const response = await this.request({
|
|
851
|
+
path: `/api/admin/users/register`,
|
|
852
|
+
method: 'POST',
|
|
853
|
+
headers: headerParameters,
|
|
854
|
+
query: queryParameters,
|
|
855
|
+
body: ApiAdminUsersRegisterPostRequestToJSON(requestParameters['apiAdminUsersRegisterPostRequest']),
|
|
856
|
+
}, initOverrides);
|
|
857
|
+
|
|
858
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserAvatarPut200ResponseFromJSON(jsonValue));
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Create users account
|
|
863
|
+
*/
|
|
864
|
+
async apiAdminUsersRegisterPost(requestParameters: ApiAdminUsersRegisterPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserAvatarPut200Response> {
|
|
865
|
+
const response = await this.apiAdminUsersRegisterPostRaw(requestParameters, initOverrides);
|
|
866
|
+
return await response.value();
|
|
867
|
+
}
|
|
868
|
+
|
|
818
869
|
/**
|
|
819
870
|
* Toggle Alt Account Flag
|
|
820
871
|
*/
|
|
@@ -0,0 +1,70 @@
|
|
|
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.ApiAdminUsersRegisterPostRequestGroupEnum = void 0;
|
|
17
|
+
exports.instanceOfApiAdminUsersRegisterPostRequest = instanceOfApiAdminUsersRegisterPostRequest;
|
|
18
|
+
exports.ApiAdminUsersRegisterPostRequestFromJSON = ApiAdminUsersRegisterPostRequestFromJSON;
|
|
19
|
+
exports.ApiAdminUsersRegisterPostRequestFromJSONTyped = ApiAdminUsersRegisterPostRequestFromJSONTyped;
|
|
20
|
+
exports.ApiAdminUsersRegisterPostRequestToJSON = ApiAdminUsersRegisterPostRequestToJSON;
|
|
21
|
+
exports.ApiAdminUsersRegisterPostRequestToJSONTyped = ApiAdminUsersRegisterPostRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ApiAdminUsersRegisterPostRequestGroupEnum = {
|
|
26
|
+
Streamer: 'Streamer',
|
|
27
|
+
Team: 'Team'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ApiAdminUsersRegisterPostRequest interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfApiAdminUsersRegisterPostRequest(value) {
|
|
33
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('group' in value) || value['group'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function ApiAdminUsersRegisterPostRequestFromJSON(json) {
|
|
44
|
+
return ApiAdminUsersRegisterPostRequestFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ApiAdminUsersRegisterPostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'email': json['email'],
|
|
52
|
+
'password': json['password'],
|
|
53
|
+
'name': json['name'],
|
|
54
|
+
'group': json['group'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function ApiAdminUsersRegisterPostRequestToJSON(json) {
|
|
58
|
+
return ApiAdminUsersRegisterPostRequestToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function ApiAdminUsersRegisterPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'email': value['email'],
|
|
66
|
+
'password': value['password'],
|
|
67
|
+
'name': value['name'],
|
|
68
|
+
'group': value['group'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
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 ApiAdminUsersRegisterPostRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiAdminUsersRegisterPostRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiAdminUsersRegisterPostRequest
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiAdminUsersRegisterPostRequest
|
|
32
|
+
*/
|
|
33
|
+
password: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiAdminUsersRegisterPostRequest
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ApiAdminUsersRegisterPostRequest
|
|
44
|
+
*/
|
|
45
|
+
group: ApiAdminUsersRegisterPostRequestGroupEnum;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const ApiAdminUsersRegisterPostRequestGroupEnum = {
|
|
53
|
+
Streamer: 'Streamer',
|
|
54
|
+
Team: 'Team'
|
|
55
|
+
} as const;
|
|
56
|
+
export type ApiAdminUsersRegisterPostRequestGroupEnum = typeof ApiAdminUsersRegisterPostRequestGroupEnum[keyof typeof ApiAdminUsersRegisterPostRequestGroupEnum];
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the ApiAdminUsersRegisterPostRequest interface.
|
|
61
|
+
*/
|
|
62
|
+
export function instanceOfApiAdminUsersRegisterPostRequest(value: object): value is ApiAdminUsersRegisterPostRequest {
|
|
63
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
64
|
+
if (!('password' in value) || value['password'] === undefined) return false;
|
|
65
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
66
|
+
if (!('group' in value) || value['group'] === undefined) return false;
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiAdminUsersRegisterPostRequestFromJSON(json: any): ApiAdminUsersRegisterPostRequest {
|
|
71
|
+
return ApiAdminUsersRegisterPostRequestFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ApiAdminUsersRegisterPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAdminUsersRegisterPostRequest {
|
|
75
|
+
if (json == null) {
|
|
76
|
+
return json;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'email': json['email'],
|
|
81
|
+
'password': json['password'],
|
|
82
|
+
'name': json['name'],
|
|
83
|
+
'group': json['group'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiAdminUsersRegisterPostRequestToJSON(json: any): ApiAdminUsersRegisterPostRequest {
|
|
88
|
+
return ApiAdminUsersRegisterPostRequestToJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function ApiAdminUsersRegisterPostRequestToJSONTyped(value?: ApiAdminUsersRegisterPostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'email': value['email'],
|
|
99
|
+
'password': value['password'],
|
|
100
|
+
'name': value['name'],
|
|
101
|
+
'group': value['group'],
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
package/models/index.js
CHANGED
|
@@ -315,6 +315,7 @@ __exportStar(require("./ApiAdminUsersGetFilterParameter"), exports);
|
|
|
315
315
|
__exportStar(require("./ApiAdminUsersGetFilterParameterDeposits"), exports);
|
|
316
316
|
__exportStar(require("./ApiAdminUsersGetFilterParameterDepositsAnyOf"), exports);
|
|
317
317
|
__exportStar(require("./ApiAdminUsersGroupPutRequest"), exports);
|
|
318
|
+
__exportStar(require("./ApiAdminUsersRegisterPostRequest"), exports);
|
|
318
319
|
__exportStar(require("./ApiAdminUsersUnflagAltAccountPost200Response"), exports);
|
|
319
320
|
__exportStar(require("./ApiAdminUsersUnflagAltAccountPostRequest"), exports);
|
|
320
321
|
__exportStar(require("./ApiAdminUsersUserIdAuditGet200Response"), exports);
|
package/models/index.ts
CHANGED
|
@@ -299,6 +299,7 @@ export * from './ApiAdminUsersGetFilterParameter';
|
|
|
299
299
|
export * from './ApiAdminUsersGetFilterParameterDeposits';
|
|
300
300
|
export * from './ApiAdminUsersGetFilterParameterDepositsAnyOf';
|
|
301
301
|
export * from './ApiAdminUsersGroupPutRequest';
|
|
302
|
+
export * from './ApiAdminUsersRegisterPostRequest';
|
|
302
303
|
export * from './ApiAdminUsersUnflagAltAccountPost200Response';
|
|
303
304
|
export * from './ApiAdminUsersUnflagAltAccountPostRequest';
|
|
304
305
|
export * from './ApiAdminUsersUserIdAuditGet200Response';
|