@loopstack/hub-client 0.0.6
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 +12 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/api.ts +2201 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +116 -0
- package/dist/api.d.ts +1360 -0
- package/dist/api.js +1436 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +1360 -0
- package/dist/esm/api.js +1417 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +33 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
package/dist/api.js
ADDED
|
@@ -0,0 +1,1436 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Loopstack Hub
|
|
6
|
+
* Loopstack Hub Documentation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.SsoApi = exports.SsoApiFactory = exports.SsoApiFp = exports.SsoApiAxiosParamCreator = exports.ApiV1WorkersApi = exports.ApiV1WorkersApiFactory = exports.ApiV1WorkersApiFp = exports.ApiV1WorkersApiAxiosParamCreator = exports.ApiV1UserApi = exports.ApiV1UserApiFactory = exports.ApiV1UserApiFp = exports.ApiV1UserApiAxiosParamCreator = exports.ApiV1AuthApi = exports.ApiV1AuthApiFactory = exports.ApiV1AuthApiFp = exports.ApiV1AuthApiAxiosParamCreator = exports.WorkerSortByDtoOrderEnum = exports.WorkerSortByDtoFieldEnum = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("./common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("./base");
|
|
32
|
+
exports.WorkerSortByDtoFieldEnum = {
|
|
33
|
+
Id: 'id',
|
|
34
|
+
Url: 'url',
|
|
35
|
+
Name: 'name',
|
|
36
|
+
ServiceToken: 'serviceToken',
|
|
37
|
+
IsSetupComplete: 'isSetupComplete',
|
|
38
|
+
CreatedAt: 'createdAt',
|
|
39
|
+
UpdatedAt: 'updatedAt',
|
|
40
|
+
UserId: 'userId'
|
|
41
|
+
};
|
|
42
|
+
exports.WorkerSortByDtoOrderEnum = {
|
|
43
|
+
Asc: 'ASC',
|
|
44
|
+
Desc: 'DESC'
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* ApiV1AuthApi - axios parameter creator
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
51
|
+
return {
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
*/
|
|
57
|
+
authControllerDevLogin: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
58
|
+
const localVarPath = `/api/v1/auth/login-dev`;
|
|
59
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
60
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
61
|
+
let baseOptions;
|
|
62
|
+
if (configuration) {
|
|
63
|
+
baseOptions = configuration.baseOptions;
|
|
64
|
+
}
|
|
65
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
66
|
+
const localVarHeaderParameter = {};
|
|
67
|
+
const localVarQueryParameter = {};
|
|
68
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
69
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
70
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
71
|
+
return {
|
|
72
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
73
|
+
options: localVarRequestOptions,
|
|
74
|
+
};
|
|
75
|
+
}),
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
81
|
+
authControllerGetAuthStrategies: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
82
|
+
const localVarPath = `/api/v1/auth/auth-strategies`;
|
|
83
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
84
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
85
|
+
let baseOptions;
|
|
86
|
+
if (configuration) {
|
|
87
|
+
baseOptions = configuration.baseOptions;
|
|
88
|
+
}
|
|
89
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
90
|
+
const localVarHeaderParameter = {};
|
|
91
|
+
const localVarQueryParameter = {};
|
|
92
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
93
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
95
|
+
return {
|
|
96
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
97
|
+
options: localVarRequestOptions,
|
|
98
|
+
};
|
|
99
|
+
}),
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @param {*} [options] Override http request option.
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
*/
|
|
105
|
+
authControllerGetProviders: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
106
|
+
const localVarPath = `/api/v1/auth/providers`;
|
|
107
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
108
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
109
|
+
let baseOptions;
|
|
110
|
+
if (configuration) {
|
|
111
|
+
baseOptions = configuration.baseOptions;
|
|
112
|
+
}
|
|
113
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
114
|
+
const localVarHeaderParameter = {};
|
|
115
|
+
const localVarQueryParameter = {};
|
|
116
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
117
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
118
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
119
|
+
return {
|
|
120
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
121
|
+
options: localVarRequestOptions,
|
|
122
|
+
};
|
|
123
|
+
}),
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
authControllerGoogleAuth: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
130
|
+
const localVarPath = `/api/v1/auth/oauth/google`;
|
|
131
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
132
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
133
|
+
let baseOptions;
|
|
134
|
+
if (configuration) {
|
|
135
|
+
baseOptions = configuration.baseOptions;
|
|
136
|
+
}
|
|
137
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
138
|
+
const localVarHeaderParameter = {};
|
|
139
|
+
const localVarQueryParameter = {};
|
|
140
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
141
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
142
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
143
|
+
return {
|
|
144
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
145
|
+
options: localVarRequestOptions,
|
|
146
|
+
};
|
|
147
|
+
}),
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @param {*} [options] Override http request option.
|
|
151
|
+
* @throws {RequiredError}
|
|
152
|
+
*/
|
|
153
|
+
authControllerGoogleCallback: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
154
|
+
const localVarPath = `/api/v1/auth/oauth/google/callback`;
|
|
155
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
156
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
157
|
+
let baseOptions;
|
|
158
|
+
if (configuration) {
|
|
159
|
+
baseOptions = configuration.baseOptions;
|
|
160
|
+
}
|
|
161
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
162
|
+
const localVarHeaderParameter = {};
|
|
163
|
+
const localVarQueryParameter = {};
|
|
164
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
165
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
166
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
167
|
+
return {
|
|
168
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
169
|
+
options: localVarRequestOptions,
|
|
170
|
+
};
|
|
171
|
+
}),
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @param {object} body
|
|
175
|
+
* @param {*} [options] Override http request option.
|
|
176
|
+
* @throws {RequiredError}
|
|
177
|
+
*/
|
|
178
|
+
authControllerLinkProvider: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
179
|
+
// verify required parameter 'body' is not null or undefined
|
|
180
|
+
(0, common_1.assertParamExists)('authControllerLinkProvider', 'body', body);
|
|
181
|
+
const localVarPath = `/api/v1/auth/link-provider`;
|
|
182
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
183
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
184
|
+
let baseOptions;
|
|
185
|
+
if (configuration) {
|
|
186
|
+
baseOptions = configuration.baseOptions;
|
|
187
|
+
}
|
|
188
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
189
|
+
const localVarHeaderParameter = {};
|
|
190
|
+
const localVarQueryParameter = {};
|
|
191
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
192
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
193
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
194
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
195
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
196
|
+
return {
|
|
197
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
198
|
+
options: localVarRequestOptions,
|
|
199
|
+
};
|
|
200
|
+
}),
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* @param {object} body
|
|
204
|
+
* @param {*} [options] Override http request option.
|
|
205
|
+
* @throws {RequiredError}
|
|
206
|
+
*/
|
|
207
|
+
authControllerLogin: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
208
|
+
// verify required parameter 'body' is not null or undefined
|
|
209
|
+
(0, common_1.assertParamExists)('authControllerLogin', 'body', body);
|
|
210
|
+
const localVarPath = `/api/v1/auth/login`;
|
|
211
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
212
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
213
|
+
let baseOptions;
|
|
214
|
+
if (configuration) {
|
|
215
|
+
baseOptions = configuration.baseOptions;
|
|
216
|
+
}
|
|
217
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
218
|
+
const localVarHeaderParameter = {};
|
|
219
|
+
const localVarQueryParameter = {};
|
|
220
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
221
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
222
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
223
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
224
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
225
|
+
return {
|
|
226
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
227
|
+
options: localVarRequestOptions,
|
|
228
|
+
};
|
|
229
|
+
}),
|
|
230
|
+
/**
|
|
231
|
+
*
|
|
232
|
+
* @param {*} [options] Override http request option.
|
|
233
|
+
* @throws {RequiredError}
|
|
234
|
+
*/
|
|
235
|
+
authControllerLogout: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
236
|
+
const localVarPath = `/api/v1/auth/logout`;
|
|
237
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
238
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
239
|
+
let baseOptions;
|
|
240
|
+
if (configuration) {
|
|
241
|
+
baseOptions = configuration.baseOptions;
|
|
242
|
+
}
|
|
243
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
244
|
+
const localVarHeaderParameter = {};
|
|
245
|
+
const localVarQueryParameter = {};
|
|
246
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
247
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
248
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
249
|
+
return {
|
|
250
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
251
|
+
options: localVarRequestOptions,
|
|
252
|
+
};
|
|
253
|
+
}),
|
|
254
|
+
/**
|
|
255
|
+
*
|
|
256
|
+
* @param {*} [options] Override http request option.
|
|
257
|
+
* @throws {RequiredError}
|
|
258
|
+
*/
|
|
259
|
+
authControllerMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
260
|
+
const localVarPath = `/api/v1/auth/me`;
|
|
261
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
262
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
263
|
+
let baseOptions;
|
|
264
|
+
if (configuration) {
|
|
265
|
+
baseOptions = configuration.baseOptions;
|
|
266
|
+
}
|
|
267
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
268
|
+
const localVarHeaderParameter = {};
|
|
269
|
+
const localVarQueryParameter = {};
|
|
270
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
271
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
272
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
273
|
+
return {
|
|
274
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
275
|
+
options: localVarRequestOptions,
|
|
276
|
+
};
|
|
277
|
+
}),
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* @param {*} [options] Override http request option.
|
|
281
|
+
* @throws {RequiredError}
|
|
282
|
+
*/
|
|
283
|
+
authControllerRefresh: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
284
|
+
const localVarPath = `/api/v1/auth/refresh`;
|
|
285
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
286
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
287
|
+
let baseOptions;
|
|
288
|
+
if (configuration) {
|
|
289
|
+
baseOptions = configuration.baseOptions;
|
|
290
|
+
}
|
|
291
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
292
|
+
const localVarHeaderParameter = {};
|
|
293
|
+
const localVarQueryParameter = {};
|
|
294
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
295
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
296
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
297
|
+
return {
|
|
298
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
299
|
+
options: localVarRequestOptions,
|
|
300
|
+
};
|
|
301
|
+
}),
|
|
302
|
+
/**
|
|
303
|
+
*
|
|
304
|
+
* @param {object} body
|
|
305
|
+
* @param {*} [options] Override http request option.
|
|
306
|
+
* @throws {RequiredError}
|
|
307
|
+
*/
|
|
308
|
+
authControllerRegister: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
309
|
+
// verify required parameter 'body' is not null or undefined
|
|
310
|
+
(0, common_1.assertParamExists)('authControllerRegister', 'body', body);
|
|
311
|
+
const localVarPath = `/api/v1/auth/register`;
|
|
312
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
313
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
314
|
+
let baseOptions;
|
|
315
|
+
if (configuration) {
|
|
316
|
+
baseOptions = configuration.baseOptions;
|
|
317
|
+
}
|
|
318
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
319
|
+
const localVarHeaderParameter = {};
|
|
320
|
+
const localVarQueryParameter = {};
|
|
321
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
322
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
323
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
324
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
325
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
326
|
+
return {
|
|
327
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
328
|
+
options: localVarRequestOptions,
|
|
329
|
+
};
|
|
330
|
+
}),
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
exports.ApiV1AuthApiAxiosParamCreator = ApiV1AuthApiAxiosParamCreator;
|
|
334
|
+
/**
|
|
335
|
+
* ApiV1AuthApi - functional programming interface
|
|
336
|
+
* @export
|
|
337
|
+
*/
|
|
338
|
+
const ApiV1AuthApiFp = function (configuration) {
|
|
339
|
+
const localVarAxiosParamCreator = (0, exports.ApiV1AuthApiAxiosParamCreator)(configuration);
|
|
340
|
+
return {
|
|
341
|
+
/**
|
|
342
|
+
*
|
|
343
|
+
* @param {*} [options] Override http request option.
|
|
344
|
+
* @throws {RequiredError}
|
|
345
|
+
*/
|
|
346
|
+
authControllerDevLogin(options) {
|
|
347
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
348
|
+
var _a, _b, _c;
|
|
349
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerDevLogin(options);
|
|
350
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
351
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerDevLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
352
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
353
|
+
});
|
|
354
|
+
},
|
|
355
|
+
/**
|
|
356
|
+
*
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
*/
|
|
360
|
+
authControllerGetAuthStrategies(options) {
|
|
361
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
362
|
+
var _a, _b, _c;
|
|
363
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerGetAuthStrategies(options);
|
|
364
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
365
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerGetAuthStrategies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
366
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
367
|
+
});
|
|
368
|
+
},
|
|
369
|
+
/**
|
|
370
|
+
*
|
|
371
|
+
* @param {*} [options] Override http request option.
|
|
372
|
+
* @throws {RequiredError}
|
|
373
|
+
*/
|
|
374
|
+
authControllerGetProviders(options) {
|
|
375
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
376
|
+
var _a, _b, _c;
|
|
377
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerGetProviders(options);
|
|
378
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
379
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerGetProviders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
380
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
381
|
+
});
|
|
382
|
+
},
|
|
383
|
+
/**
|
|
384
|
+
*
|
|
385
|
+
* @param {*} [options] Override http request option.
|
|
386
|
+
* @throws {RequiredError}
|
|
387
|
+
*/
|
|
388
|
+
authControllerGoogleAuth(options) {
|
|
389
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
390
|
+
var _a, _b, _c;
|
|
391
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerGoogleAuth(options);
|
|
392
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
393
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerGoogleAuth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
394
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
395
|
+
});
|
|
396
|
+
},
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @param {*} [options] Override http request option.
|
|
400
|
+
* @throws {RequiredError}
|
|
401
|
+
*/
|
|
402
|
+
authControllerGoogleCallback(options) {
|
|
403
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
404
|
+
var _a, _b, _c;
|
|
405
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerGoogleCallback(options);
|
|
406
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
407
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerGoogleCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
408
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
409
|
+
});
|
|
410
|
+
},
|
|
411
|
+
/**
|
|
412
|
+
*
|
|
413
|
+
* @param {object} body
|
|
414
|
+
* @param {*} [options] Override http request option.
|
|
415
|
+
* @throws {RequiredError}
|
|
416
|
+
*/
|
|
417
|
+
authControllerLinkProvider(body, options) {
|
|
418
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
419
|
+
var _a, _b, _c;
|
|
420
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerLinkProvider(body, options);
|
|
421
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
422
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerLinkProvider']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
423
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
424
|
+
});
|
|
425
|
+
},
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* @param {object} body
|
|
429
|
+
* @param {*} [options] Override http request option.
|
|
430
|
+
* @throws {RequiredError}
|
|
431
|
+
*/
|
|
432
|
+
authControllerLogin(body, options) {
|
|
433
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
434
|
+
var _a, _b, _c;
|
|
435
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerLogin(body, options);
|
|
436
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
437
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
438
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
439
|
+
});
|
|
440
|
+
},
|
|
441
|
+
/**
|
|
442
|
+
*
|
|
443
|
+
* @param {*} [options] Override http request option.
|
|
444
|
+
* @throws {RequiredError}
|
|
445
|
+
*/
|
|
446
|
+
authControllerLogout(options) {
|
|
447
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
448
|
+
var _a, _b, _c;
|
|
449
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerLogout(options);
|
|
450
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
451
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerLogout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
452
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
453
|
+
});
|
|
454
|
+
},
|
|
455
|
+
/**
|
|
456
|
+
*
|
|
457
|
+
* @param {*} [options] Override http request option.
|
|
458
|
+
* @throws {RequiredError}
|
|
459
|
+
*/
|
|
460
|
+
authControllerMe(options) {
|
|
461
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
462
|
+
var _a, _b, _c;
|
|
463
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerMe(options);
|
|
464
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
465
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerMe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
466
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
467
|
+
});
|
|
468
|
+
},
|
|
469
|
+
/**
|
|
470
|
+
*
|
|
471
|
+
* @param {*} [options] Override http request option.
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
*/
|
|
474
|
+
authControllerRefresh(options) {
|
|
475
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
476
|
+
var _a, _b, _c;
|
|
477
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerRefresh(options);
|
|
478
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
479
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerRefresh']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
480
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
481
|
+
});
|
|
482
|
+
},
|
|
483
|
+
/**
|
|
484
|
+
*
|
|
485
|
+
* @param {object} body
|
|
486
|
+
* @param {*} [options] Override http request option.
|
|
487
|
+
* @throws {RequiredError}
|
|
488
|
+
*/
|
|
489
|
+
authControllerRegister(body, options) {
|
|
490
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
491
|
+
var _a, _b, _c;
|
|
492
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerRegister(body, options);
|
|
493
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
494
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerRegister']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
495
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
496
|
+
});
|
|
497
|
+
},
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
exports.ApiV1AuthApiFp = ApiV1AuthApiFp;
|
|
501
|
+
/**
|
|
502
|
+
* ApiV1AuthApi - factory interface
|
|
503
|
+
* @export
|
|
504
|
+
*/
|
|
505
|
+
const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
506
|
+
const localVarFp = (0, exports.ApiV1AuthApiFp)(configuration);
|
|
507
|
+
return {
|
|
508
|
+
/**
|
|
509
|
+
*
|
|
510
|
+
* @param {*} [options] Override http request option.
|
|
511
|
+
* @throws {RequiredError}
|
|
512
|
+
*/
|
|
513
|
+
authControllerDevLogin(options) {
|
|
514
|
+
return localVarFp.authControllerDevLogin(options).then((request) => request(axios, basePath));
|
|
515
|
+
},
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @param {*} [options] Override http request option.
|
|
519
|
+
* @throws {RequiredError}
|
|
520
|
+
*/
|
|
521
|
+
authControllerGetAuthStrategies(options) {
|
|
522
|
+
return localVarFp.authControllerGetAuthStrategies(options).then((request) => request(axios, basePath));
|
|
523
|
+
},
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @param {*} [options] Override http request option.
|
|
527
|
+
* @throws {RequiredError}
|
|
528
|
+
*/
|
|
529
|
+
authControllerGetProviders(options) {
|
|
530
|
+
return localVarFp.authControllerGetProviders(options).then((request) => request(axios, basePath));
|
|
531
|
+
},
|
|
532
|
+
/**
|
|
533
|
+
*
|
|
534
|
+
* @param {*} [options] Override http request option.
|
|
535
|
+
* @throws {RequiredError}
|
|
536
|
+
*/
|
|
537
|
+
authControllerGoogleAuth(options) {
|
|
538
|
+
return localVarFp.authControllerGoogleAuth(options).then((request) => request(axios, basePath));
|
|
539
|
+
},
|
|
540
|
+
/**
|
|
541
|
+
*
|
|
542
|
+
* @param {*} [options] Override http request option.
|
|
543
|
+
* @throws {RequiredError}
|
|
544
|
+
*/
|
|
545
|
+
authControllerGoogleCallback(options) {
|
|
546
|
+
return localVarFp.authControllerGoogleCallback(options).then((request) => request(axios, basePath));
|
|
547
|
+
},
|
|
548
|
+
/**
|
|
549
|
+
*
|
|
550
|
+
* @param {ApiV1AuthApiAuthControllerLinkProviderRequest} requestParameters Request parameters.
|
|
551
|
+
* @param {*} [options] Override http request option.
|
|
552
|
+
* @throws {RequiredError}
|
|
553
|
+
*/
|
|
554
|
+
authControllerLinkProvider(requestParameters, options) {
|
|
555
|
+
return localVarFp.authControllerLinkProvider(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
556
|
+
},
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @param {ApiV1AuthApiAuthControllerLoginRequest} requestParameters Request parameters.
|
|
560
|
+
* @param {*} [options] Override http request option.
|
|
561
|
+
* @throws {RequiredError}
|
|
562
|
+
*/
|
|
563
|
+
authControllerLogin(requestParameters, options) {
|
|
564
|
+
return localVarFp.authControllerLogin(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
565
|
+
},
|
|
566
|
+
/**
|
|
567
|
+
*
|
|
568
|
+
* @param {*} [options] Override http request option.
|
|
569
|
+
* @throws {RequiredError}
|
|
570
|
+
*/
|
|
571
|
+
authControllerLogout(options) {
|
|
572
|
+
return localVarFp.authControllerLogout(options).then((request) => request(axios, basePath));
|
|
573
|
+
},
|
|
574
|
+
/**
|
|
575
|
+
*
|
|
576
|
+
* @param {*} [options] Override http request option.
|
|
577
|
+
* @throws {RequiredError}
|
|
578
|
+
*/
|
|
579
|
+
authControllerMe(options) {
|
|
580
|
+
return localVarFp.authControllerMe(options).then((request) => request(axios, basePath));
|
|
581
|
+
},
|
|
582
|
+
/**
|
|
583
|
+
*
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
*/
|
|
587
|
+
authControllerRefresh(options) {
|
|
588
|
+
return localVarFp.authControllerRefresh(options).then((request) => request(axios, basePath));
|
|
589
|
+
},
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
* @param {ApiV1AuthApiAuthControllerRegisterRequest} requestParameters Request parameters.
|
|
593
|
+
* @param {*} [options] Override http request option.
|
|
594
|
+
* @throws {RequiredError}
|
|
595
|
+
*/
|
|
596
|
+
authControllerRegister(requestParameters, options) {
|
|
597
|
+
return localVarFp.authControllerRegister(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
598
|
+
},
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
exports.ApiV1AuthApiFactory = ApiV1AuthApiFactory;
|
|
602
|
+
/**
|
|
603
|
+
* ApiV1AuthApi - object-oriented interface
|
|
604
|
+
* @export
|
|
605
|
+
* @class ApiV1AuthApi
|
|
606
|
+
* @extends {BaseAPI}
|
|
607
|
+
*/
|
|
608
|
+
class ApiV1AuthApi extends base_1.BaseAPI {
|
|
609
|
+
/**
|
|
610
|
+
*
|
|
611
|
+
* @param {*} [options] Override http request option.
|
|
612
|
+
* @throws {RequiredError}
|
|
613
|
+
* @memberof ApiV1AuthApi
|
|
614
|
+
*/
|
|
615
|
+
authControllerDevLogin(options) {
|
|
616
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerDevLogin(options).then((request) => request(this.axios, this.basePath));
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
*
|
|
620
|
+
* @param {*} [options] Override http request option.
|
|
621
|
+
* @throws {RequiredError}
|
|
622
|
+
* @memberof ApiV1AuthApi
|
|
623
|
+
*/
|
|
624
|
+
authControllerGetAuthStrategies(options) {
|
|
625
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerGetAuthStrategies(options).then((request) => request(this.axios, this.basePath));
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
*
|
|
629
|
+
* @param {*} [options] Override http request option.
|
|
630
|
+
* @throws {RequiredError}
|
|
631
|
+
* @memberof ApiV1AuthApi
|
|
632
|
+
*/
|
|
633
|
+
authControllerGetProviders(options) {
|
|
634
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerGetProviders(options).then((request) => request(this.axios, this.basePath));
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
*
|
|
638
|
+
* @param {*} [options] Override http request option.
|
|
639
|
+
* @throws {RequiredError}
|
|
640
|
+
* @memberof ApiV1AuthApi
|
|
641
|
+
*/
|
|
642
|
+
authControllerGoogleAuth(options) {
|
|
643
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerGoogleAuth(options).then((request) => request(this.axios, this.basePath));
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
*
|
|
647
|
+
* @param {*} [options] Override http request option.
|
|
648
|
+
* @throws {RequiredError}
|
|
649
|
+
* @memberof ApiV1AuthApi
|
|
650
|
+
*/
|
|
651
|
+
authControllerGoogleCallback(options) {
|
|
652
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerGoogleCallback(options).then((request) => request(this.axios, this.basePath));
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
*
|
|
656
|
+
* @param {ApiV1AuthApiAuthControllerLinkProviderRequest} requestParameters Request parameters.
|
|
657
|
+
* @param {*} [options] Override http request option.
|
|
658
|
+
* @throws {RequiredError}
|
|
659
|
+
* @memberof ApiV1AuthApi
|
|
660
|
+
*/
|
|
661
|
+
authControllerLinkProvider(requestParameters, options) {
|
|
662
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerLinkProvider(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
*
|
|
666
|
+
* @param {ApiV1AuthApiAuthControllerLoginRequest} requestParameters Request parameters.
|
|
667
|
+
* @param {*} [options] Override http request option.
|
|
668
|
+
* @throws {RequiredError}
|
|
669
|
+
* @memberof ApiV1AuthApi
|
|
670
|
+
*/
|
|
671
|
+
authControllerLogin(requestParameters, options) {
|
|
672
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerLogin(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
*
|
|
676
|
+
* @param {*} [options] Override http request option.
|
|
677
|
+
* @throws {RequiredError}
|
|
678
|
+
* @memberof ApiV1AuthApi
|
|
679
|
+
*/
|
|
680
|
+
authControllerLogout(options) {
|
|
681
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerLogout(options).then((request) => request(this.axios, this.basePath));
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
*
|
|
685
|
+
* @param {*} [options] Override http request option.
|
|
686
|
+
* @throws {RequiredError}
|
|
687
|
+
* @memberof ApiV1AuthApi
|
|
688
|
+
*/
|
|
689
|
+
authControllerMe(options) {
|
|
690
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerMe(options).then((request) => request(this.axios, this.basePath));
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
*
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
* @memberof ApiV1AuthApi
|
|
697
|
+
*/
|
|
698
|
+
authControllerRefresh(options) {
|
|
699
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerRefresh(options).then((request) => request(this.axios, this.basePath));
|
|
700
|
+
}
|
|
701
|
+
/**
|
|
702
|
+
*
|
|
703
|
+
* @param {ApiV1AuthApiAuthControllerRegisterRequest} requestParameters Request parameters.
|
|
704
|
+
* @param {*} [options] Override http request option.
|
|
705
|
+
* @throws {RequiredError}
|
|
706
|
+
* @memberof ApiV1AuthApi
|
|
707
|
+
*/
|
|
708
|
+
authControllerRegister(requestParameters, options) {
|
|
709
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerRegister(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
exports.ApiV1AuthApi = ApiV1AuthApi;
|
|
713
|
+
/**
|
|
714
|
+
* ApiV1UserApi - axios parameter creator
|
|
715
|
+
* @export
|
|
716
|
+
*/
|
|
717
|
+
const ApiV1UserApiAxiosParamCreator = function (configuration) {
|
|
718
|
+
return {
|
|
719
|
+
/**
|
|
720
|
+
*
|
|
721
|
+
* @param {*} [options] Override http request option.
|
|
722
|
+
* @throws {RequiredError}
|
|
723
|
+
*/
|
|
724
|
+
userControllerInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
725
|
+
const localVarPath = `/api/v1/user/info`;
|
|
726
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
727
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
728
|
+
let baseOptions;
|
|
729
|
+
if (configuration) {
|
|
730
|
+
baseOptions = configuration.baseOptions;
|
|
731
|
+
}
|
|
732
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
733
|
+
const localVarHeaderParameter = {};
|
|
734
|
+
const localVarQueryParameter = {};
|
|
735
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
736
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
737
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
738
|
+
return {
|
|
739
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
740
|
+
options: localVarRequestOptions,
|
|
741
|
+
};
|
|
742
|
+
}),
|
|
743
|
+
};
|
|
744
|
+
};
|
|
745
|
+
exports.ApiV1UserApiAxiosParamCreator = ApiV1UserApiAxiosParamCreator;
|
|
746
|
+
/**
|
|
747
|
+
* ApiV1UserApi - functional programming interface
|
|
748
|
+
* @export
|
|
749
|
+
*/
|
|
750
|
+
const ApiV1UserApiFp = function (configuration) {
|
|
751
|
+
const localVarAxiosParamCreator = (0, exports.ApiV1UserApiAxiosParamCreator)(configuration);
|
|
752
|
+
return {
|
|
753
|
+
/**
|
|
754
|
+
*
|
|
755
|
+
* @param {*} [options] Override http request option.
|
|
756
|
+
* @throws {RequiredError}
|
|
757
|
+
*/
|
|
758
|
+
userControllerInfo(options) {
|
|
759
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
760
|
+
var _a, _b, _c;
|
|
761
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userControllerInfo(options);
|
|
762
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
763
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1UserApi.userControllerInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
764
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
765
|
+
});
|
|
766
|
+
},
|
|
767
|
+
};
|
|
768
|
+
};
|
|
769
|
+
exports.ApiV1UserApiFp = ApiV1UserApiFp;
|
|
770
|
+
/**
|
|
771
|
+
* ApiV1UserApi - factory interface
|
|
772
|
+
* @export
|
|
773
|
+
*/
|
|
774
|
+
const ApiV1UserApiFactory = function (configuration, basePath, axios) {
|
|
775
|
+
const localVarFp = (0, exports.ApiV1UserApiFp)(configuration);
|
|
776
|
+
return {
|
|
777
|
+
/**
|
|
778
|
+
*
|
|
779
|
+
* @param {*} [options] Override http request option.
|
|
780
|
+
* @throws {RequiredError}
|
|
781
|
+
*/
|
|
782
|
+
userControllerInfo(options) {
|
|
783
|
+
return localVarFp.userControllerInfo(options).then((request) => request(axios, basePath));
|
|
784
|
+
},
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
exports.ApiV1UserApiFactory = ApiV1UserApiFactory;
|
|
788
|
+
/**
|
|
789
|
+
* ApiV1UserApi - object-oriented interface
|
|
790
|
+
* @export
|
|
791
|
+
* @class ApiV1UserApi
|
|
792
|
+
* @extends {BaseAPI}
|
|
793
|
+
*/
|
|
794
|
+
class ApiV1UserApi extends base_1.BaseAPI {
|
|
795
|
+
/**
|
|
796
|
+
*
|
|
797
|
+
* @param {*} [options] Override http request option.
|
|
798
|
+
* @throws {RequiredError}
|
|
799
|
+
* @memberof ApiV1UserApi
|
|
800
|
+
*/
|
|
801
|
+
userControllerInfo(options) {
|
|
802
|
+
return (0, exports.ApiV1UserApiFp)(this.configuration).userControllerInfo(options).then((request) => request(this.axios, this.basePath));
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
exports.ApiV1UserApi = ApiV1UserApi;
|
|
806
|
+
/**
|
|
807
|
+
* ApiV1WorkersApi - axios parameter creator
|
|
808
|
+
* @export
|
|
809
|
+
*/
|
|
810
|
+
const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
|
|
811
|
+
return {
|
|
812
|
+
/**
|
|
813
|
+
*
|
|
814
|
+
* @summary Delete multiple workers by IDs
|
|
815
|
+
* @param {WorkerControllerBatchDeleteWorkersRequest} workerControllerBatchDeleteWorkersRequest Array of worker IDs to delete
|
|
816
|
+
* @param {*} [options] Override http request option.
|
|
817
|
+
* @throws {RequiredError}
|
|
818
|
+
*/
|
|
819
|
+
workerControllerBatchDeleteWorkers: (workerControllerBatchDeleteWorkersRequest_1, ...args_1) => __awaiter(this, [workerControllerBatchDeleteWorkersRequest_1, ...args_1], void 0, function* (workerControllerBatchDeleteWorkersRequest, options = {}) {
|
|
820
|
+
// verify required parameter 'workerControllerBatchDeleteWorkersRequest' is not null or undefined
|
|
821
|
+
(0, common_1.assertParamExists)('workerControllerBatchDeleteWorkers', 'workerControllerBatchDeleteWorkersRequest', workerControllerBatchDeleteWorkersRequest);
|
|
822
|
+
const localVarPath = `/api/v1/workers/batch`;
|
|
823
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
824
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
825
|
+
let baseOptions;
|
|
826
|
+
if (configuration) {
|
|
827
|
+
baseOptions = configuration.baseOptions;
|
|
828
|
+
}
|
|
829
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
830
|
+
const localVarHeaderParameter = {};
|
|
831
|
+
const localVarQueryParameter = {};
|
|
832
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
833
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
834
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
835
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
836
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(workerControllerBatchDeleteWorkersRequest, localVarRequestOptions, configuration);
|
|
837
|
+
return {
|
|
838
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
839
|
+
options: localVarRequestOptions,
|
|
840
|
+
};
|
|
841
|
+
}),
|
|
842
|
+
/**
|
|
843
|
+
*
|
|
844
|
+
* @summary Create a new worker
|
|
845
|
+
* @param {WorkerCreateDto} workerCreateDto Worker data
|
|
846
|
+
* @param {*} [options] Override http request option.
|
|
847
|
+
* @throws {RequiredError}
|
|
848
|
+
*/
|
|
849
|
+
workerControllerCreateWorker: (workerCreateDto_1, ...args_1) => __awaiter(this, [workerCreateDto_1, ...args_1], void 0, function* (workerCreateDto, options = {}) {
|
|
850
|
+
// verify required parameter 'workerCreateDto' is not null or undefined
|
|
851
|
+
(0, common_1.assertParamExists)('workerControllerCreateWorker', 'workerCreateDto', workerCreateDto);
|
|
852
|
+
const localVarPath = `/api/v1/workers`;
|
|
853
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
854
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
855
|
+
let baseOptions;
|
|
856
|
+
if (configuration) {
|
|
857
|
+
baseOptions = configuration.baseOptions;
|
|
858
|
+
}
|
|
859
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
860
|
+
const localVarHeaderParameter = {};
|
|
861
|
+
const localVarQueryParameter = {};
|
|
862
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
863
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
864
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
865
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
866
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(workerCreateDto, localVarRequestOptions, configuration);
|
|
867
|
+
return {
|
|
868
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
869
|
+
options: localVarRequestOptions,
|
|
870
|
+
};
|
|
871
|
+
}),
|
|
872
|
+
/**
|
|
873
|
+
*
|
|
874
|
+
* @summary Delete a worker by ID
|
|
875
|
+
* @param {string} id The ID of the worker
|
|
876
|
+
* @param {*} [options] Override http request option.
|
|
877
|
+
* @throws {RequiredError}
|
|
878
|
+
*/
|
|
879
|
+
workerControllerDeleteWorker: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
880
|
+
// verify required parameter 'id' is not null or undefined
|
|
881
|
+
(0, common_1.assertParamExists)('workerControllerDeleteWorker', 'id', id);
|
|
882
|
+
const localVarPath = `/api/v1/workers/id/{id}`
|
|
883
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
884
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
885
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
886
|
+
let baseOptions;
|
|
887
|
+
if (configuration) {
|
|
888
|
+
baseOptions = configuration.baseOptions;
|
|
889
|
+
}
|
|
890
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
891
|
+
const localVarHeaderParameter = {};
|
|
892
|
+
const localVarQueryParameter = {};
|
|
893
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
894
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
895
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
896
|
+
return {
|
|
897
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
898
|
+
options: localVarRequestOptions,
|
|
899
|
+
};
|
|
900
|
+
}),
|
|
901
|
+
/**
|
|
902
|
+
*
|
|
903
|
+
* @summary Get a worker by ID
|
|
904
|
+
* @param {string} id The ID of the worker
|
|
905
|
+
* @param {*} [options] Override http request option.
|
|
906
|
+
* @throws {RequiredError}
|
|
907
|
+
*/
|
|
908
|
+
workerControllerGetWorkerById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
909
|
+
// verify required parameter 'id' is not null or undefined
|
|
910
|
+
(0, common_1.assertParamExists)('workerControllerGetWorkerById', 'id', id);
|
|
911
|
+
const localVarPath = `/api/v1/workers/{id}`
|
|
912
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
913
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
914
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
915
|
+
let baseOptions;
|
|
916
|
+
if (configuration) {
|
|
917
|
+
baseOptions = configuration.baseOptions;
|
|
918
|
+
}
|
|
919
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
920
|
+
const localVarHeaderParameter = {};
|
|
921
|
+
const localVarQueryParameter = {};
|
|
922
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
923
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
924
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
925
|
+
return {
|
|
926
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
927
|
+
options: localVarRequestOptions,
|
|
928
|
+
};
|
|
929
|
+
}),
|
|
930
|
+
/**
|
|
931
|
+
*
|
|
932
|
+
* @summary Retrieve workers with filters, sorting, pagination, and search
|
|
933
|
+
* @param {number} [page] Page number for pagination (starts at 1)
|
|
934
|
+
* @param {number} [limit] Number of items per page
|
|
935
|
+
* @param {string} [filter] JSON string of WorkerFilterDto object
|
|
936
|
+
* @param {string} [sortBy] JSON string array of WorkerSortByDto objects
|
|
937
|
+
* @param {string} [search] Search term to filter workers by name, url or other searchable fields
|
|
938
|
+
* @param {string} [searchColumns] JSON string array of columns to search in (defaults to name and url if not specified)
|
|
939
|
+
* @param {*} [options] Override http request option.
|
|
940
|
+
* @throws {RequiredError}
|
|
941
|
+
*/
|
|
942
|
+
workerControllerGetWorkers: (page_1, limit_1, filter_1, sortBy_1, search_1, searchColumns_1, ...args_1) => __awaiter(this, [page_1, limit_1, filter_1, sortBy_1, search_1, searchColumns_1, ...args_1], void 0, function* (page, limit, filter, sortBy, search, searchColumns, options = {}) {
|
|
943
|
+
const localVarPath = `/api/v1/workers`;
|
|
944
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
945
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
946
|
+
let baseOptions;
|
|
947
|
+
if (configuration) {
|
|
948
|
+
baseOptions = configuration.baseOptions;
|
|
949
|
+
}
|
|
950
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
951
|
+
const localVarHeaderParameter = {};
|
|
952
|
+
const localVarQueryParameter = {};
|
|
953
|
+
if (page !== undefined) {
|
|
954
|
+
localVarQueryParameter['page'] = page;
|
|
955
|
+
}
|
|
956
|
+
if (limit !== undefined) {
|
|
957
|
+
localVarQueryParameter['limit'] = limit;
|
|
958
|
+
}
|
|
959
|
+
if (filter !== undefined) {
|
|
960
|
+
localVarQueryParameter['filter'] = filter;
|
|
961
|
+
}
|
|
962
|
+
if (sortBy !== undefined) {
|
|
963
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
964
|
+
}
|
|
965
|
+
if (search !== undefined) {
|
|
966
|
+
localVarQueryParameter['search'] = search;
|
|
967
|
+
}
|
|
968
|
+
if (searchColumns !== undefined) {
|
|
969
|
+
localVarQueryParameter['searchColumns'] = searchColumns;
|
|
970
|
+
}
|
|
971
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
972
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
973
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
974
|
+
return {
|
|
975
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
976
|
+
options: localVarRequestOptions,
|
|
977
|
+
};
|
|
978
|
+
}),
|
|
979
|
+
/**
|
|
980
|
+
*
|
|
981
|
+
* @summary Update a worker by ID
|
|
982
|
+
* @param {string} id The ID of the worker
|
|
983
|
+
* @param {WorkerUpdateDto} workerUpdateDto Updated worker data
|
|
984
|
+
* @param {*} [options] Override http request option.
|
|
985
|
+
* @throws {RequiredError}
|
|
986
|
+
*/
|
|
987
|
+
workerControllerUpdateWorker: (id_1, workerUpdateDto_1, ...args_1) => __awaiter(this, [id_1, workerUpdateDto_1, ...args_1], void 0, function* (id, workerUpdateDto, options = {}) {
|
|
988
|
+
// verify required parameter 'id' is not null or undefined
|
|
989
|
+
(0, common_1.assertParamExists)('workerControllerUpdateWorker', 'id', id);
|
|
990
|
+
// verify required parameter 'workerUpdateDto' is not null or undefined
|
|
991
|
+
(0, common_1.assertParamExists)('workerControllerUpdateWorker', 'workerUpdateDto', workerUpdateDto);
|
|
992
|
+
const localVarPath = `/api/v1/workers/{id}`
|
|
993
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
994
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
995
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
996
|
+
let baseOptions;
|
|
997
|
+
if (configuration) {
|
|
998
|
+
baseOptions = configuration.baseOptions;
|
|
999
|
+
}
|
|
1000
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1001
|
+
const localVarHeaderParameter = {};
|
|
1002
|
+
const localVarQueryParameter = {};
|
|
1003
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1004
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1005
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1006
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1007
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(workerUpdateDto, localVarRequestOptions, configuration);
|
|
1008
|
+
return {
|
|
1009
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1010
|
+
options: localVarRequestOptions,
|
|
1011
|
+
};
|
|
1012
|
+
}),
|
|
1013
|
+
};
|
|
1014
|
+
};
|
|
1015
|
+
exports.ApiV1WorkersApiAxiosParamCreator = ApiV1WorkersApiAxiosParamCreator;
|
|
1016
|
+
/**
|
|
1017
|
+
* ApiV1WorkersApi - functional programming interface
|
|
1018
|
+
* @export
|
|
1019
|
+
*/
|
|
1020
|
+
const ApiV1WorkersApiFp = function (configuration) {
|
|
1021
|
+
const localVarAxiosParamCreator = (0, exports.ApiV1WorkersApiAxiosParamCreator)(configuration);
|
|
1022
|
+
return {
|
|
1023
|
+
/**
|
|
1024
|
+
*
|
|
1025
|
+
* @summary Delete multiple workers by IDs
|
|
1026
|
+
* @param {WorkerControllerBatchDeleteWorkersRequest} workerControllerBatchDeleteWorkersRequest Array of worker IDs to delete
|
|
1027
|
+
* @param {*} [options] Override http request option.
|
|
1028
|
+
* @throws {RequiredError}
|
|
1029
|
+
*/
|
|
1030
|
+
workerControllerBatchDeleteWorkers(workerControllerBatchDeleteWorkersRequest, options) {
|
|
1031
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1032
|
+
var _a, _b, _c;
|
|
1033
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.workerControllerBatchDeleteWorkers(workerControllerBatchDeleteWorkersRequest, options);
|
|
1034
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1035
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1WorkersApi.workerControllerBatchDeleteWorkers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1036
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1037
|
+
});
|
|
1038
|
+
},
|
|
1039
|
+
/**
|
|
1040
|
+
*
|
|
1041
|
+
* @summary Create a new worker
|
|
1042
|
+
* @param {WorkerCreateDto} workerCreateDto Worker data
|
|
1043
|
+
* @param {*} [options] Override http request option.
|
|
1044
|
+
* @throws {RequiredError}
|
|
1045
|
+
*/
|
|
1046
|
+
workerControllerCreateWorker(workerCreateDto, options) {
|
|
1047
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1048
|
+
var _a, _b, _c;
|
|
1049
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.workerControllerCreateWorker(workerCreateDto, options);
|
|
1050
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1051
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1WorkersApi.workerControllerCreateWorker']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1052
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1053
|
+
});
|
|
1054
|
+
},
|
|
1055
|
+
/**
|
|
1056
|
+
*
|
|
1057
|
+
* @summary Delete a worker by ID
|
|
1058
|
+
* @param {string} id The ID of the worker
|
|
1059
|
+
* @param {*} [options] Override http request option.
|
|
1060
|
+
* @throws {RequiredError}
|
|
1061
|
+
*/
|
|
1062
|
+
workerControllerDeleteWorker(id, options) {
|
|
1063
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1064
|
+
var _a, _b, _c;
|
|
1065
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.workerControllerDeleteWorker(id, options);
|
|
1066
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1067
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1WorkersApi.workerControllerDeleteWorker']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1068
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1069
|
+
});
|
|
1070
|
+
},
|
|
1071
|
+
/**
|
|
1072
|
+
*
|
|
1073
|
+
* @summary Get a worker by ID
|
|
1074
|
+
* @param {string} id The ID of the worker
|
|
1075
|
+
* @param {*} [options] Override http request option.
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
*/
|
|
1078
|
+
workerControllerGetWorkerById(id, options) {
|
|
1079
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1080
|
+
var _a, _b, _c;
|
|
1081
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.workerControllerGetWorkerById(id, options);
|
|
1082
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1083
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1WorkersApi.workerControllerGetWorkerById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1084
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1085
|
+
});
|
|
1086
|
+
},
|
|
1087
|
+
/**
|
|
1088
|
+
*
|
|
1089
|
+
* @summary Retrieve workers with filters, sorting, pagination, and search
|
|
1090
|
+
* @param {number} [page] Page number for pagination (starts at 1)
|
|
1091
|
+
* @param {number} [limit] Number of items per page
|
|
1092
|
+
* @param {string} [filter] JSON string of WorkerFilterDto object
|
|
1093
|
+
* @param {string} [sortBy] JSON string array of WorkerSortByDto objects
|
|
1094
|
+
* @param {string} [search] Search term to filter workers by name, url or other searchable fields
|
|
1095
|
+
* @param {string} [searchColumns] JSON string array of columns to search in (defaults to name and url if not specified)
|
|
1096
|
+
* @param {*} [options] Override http request option.
|
|
1097
|
+
* @throws {RequiredError}
|
|
1098
|
+
*/
|
|
1099
|
+
workerControllerGetWorkers(page, limit, filter, sortBy, search, searchColumns, options) {
|
|
1100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1101
|
+
var _a, _b, _c;
|
|
1102
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.workerControllerGetWorkers(page, limit, filter, sortBy, search, searchColumns, options);
|
|
1103
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1104
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1WorkersApi.workerControllerGetWorkers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1105
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1106
|
+
});
|
|
1107
|
+
},
|
|
1108
|
+
/**
|
|
1109
|
+
*
|
|
1110
|
+
* @summary Update a worker by ID
|
|
1111
|
+
* @param {string} id The ID of the worker
|
|
1112
|
+
* @param {WorkerUpdateDto} workerUpdateDto Updated worker data
|
|
1113
|
+
* @param {*} [options] Override http request option.
|
|
1114
|
+
* @throws {RequiredError}
|
|
1115
|
+
*/
|
|
1116
|
+
workerControllerUpdateWorker(id, workerUpdateDto, options) {
|
|
1117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1118
|
+
var _a, _b, _c;
|
|
1119
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.workerControllerUpdateWorker(id, workerUpdateDto, options);
|
|
1120
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1121
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1WorkersApi.workerControllerUpdateWorker']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1122
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1123
|
+
});
|
|
1124
|
+
},
|
|
1125
|
+
};
|
|
1126
|
+
};
|
|
1127
|
+
exports.ApiV1WorkersApiFp = ApiV1WorkersApiFp;
|
|
1128
|
+
/**
|
|
1129
|
+
* ApiV1WorkersApi - factory interface
|
|
1130
|
+
* @export
|
|
1131
|
+
*/
|
|
1132
|
+
const ApiV1WorkersApiFactory = function (configuration, basePath, axios) {
|
|
1133
|
+
const localVarFp = (0, exports.ApiV1WorkersApiFp)(configuration);
|
|
1134
|
+
return {
|
|
1135
|
+
/**
|
|
1136
|
+
*
|
|
1137
|
+
* @summary Delete multiple workers by IDs
|
|
1138
|
+
* @param {ApiV1WorkersApiWorkerControllerBatchDeleteWorkersRequest} requestParameters Request parameters.
|
|
1139
|
+
* @param {*} [options] Override http request option.
|
|
1140
|
+
* @throws {RequiredError}
|
|
1141
|
+
*/
|
|
1142
|
+
workerControllerBatchDeleteWorkers(requestParameters, options) {
|
|
1143
|
+
return localVarFp.workerControllerBatchDeleteWorkers(requestParameters.workerControllerBatchDeleteWorkersRequest, options).then((request) => request(axios, basePath));
|
|
1144
|
+
},
|
|
1145
|
+
/**
|
|
1146
|
+
*
|
|
1147
|
+
* @summary Create a new worker
|
|
1148
|
+
* @param {ApiV1WorkersApiWorkerControllerCreateWorkerRequest} requestParameters Request parameters.
|
|
1149
|
+
* @param {*} [options] Override http request option.
|
|
1150
|
+
* @throws {RequiredError}
|
|
1151
|
+
*/
|
|
1152
|
+
workerControllerCreateWorker(requestParameters, options) {
|
|
1153
|
+
return localVarFp.workerControllerCreateWorker(requestParameters.workerCreateDto, options).then((request) => request(axios, basePath));
|
|
1154
|
+
},
|
|
1155
|
+
/**
|
|
1156
|
+
*
|
|
1157
|
+
* @summary Delete a worker by ID
|
|
1158
|
+
* @param {ApiV1WorkersApiWorkerControllerDeleteWorkerRequest} requestParameters Request parameters.
|
|
1159
|
+
* @param {*} [options] Override http request option.
|
|
1160
|
+
* @throws {RequiredError}
|
|
1161
|
+
*/
|
|
1162
|
+
workerControllerDeleteWorker(requestParameters, options) {
|
|
1163
|
+
return localVarFp.workerControllerDeleteWorker(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1164
|
+
},
|
|
1165
|
+
/**
|
|
1166
|
+
*
|
|
1167
|
+
* @summary Get a worker by ID
|
|
1168
|
+
* @param {ApiV1WorkersApiWorkerControllerGetWorkerByIdRequest} requestParameters Request parameters.
|
|
1169
|
+
* @param {*} [options] Override http request option.
|
|
1170
|
+
* @throws {RequiredError}
|
|
1171
|
+
*/
|
|
1172
|
+
workerControllerGetWorkerById(requestParameters, options) {
|
|
1173
|
+
return localVarFp.workerControllerGetWorkerById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1174
|
+
},
|
|
1175
|
+
/**
|
|
1176
|
+
*
|
|
1177
|
+
* @summary Retrieve workers with filters, sorting, pagination, and search
|
|
1178
|
+
* @param {ApiV1WorkersApiWorkerControllerGetWorkersRequest} requestParameters Request parameters.
|
|
1179
|
+
* @param {*} [options] Override http request option.
|
|
1180
|
+
* @throws {RequiredError}
|
|
1181
|
+
*/
|
|
1182
|
+
workerControllerGetWorkers(requestParameters = {}, options) {
|
|
1183
|
+
return localVarFp.workerControllerGetWorkers(requestParameters.page, requestParameters.limit, requestParameters.filter, requestParameters.sortBy, requestParameters.search, requestParameters.searchColumns, options).then((request) => request(axios, basePath));
|
|
1184
|
+
},
|
|
1185
|
+
/**
|
|
1186
|
+
*
|
|
1187
|
+
* @summary Update a worker by ID
|
|
1188
|
+
* @param {ApiV1WorkersApiWorkerControllerUpdateWorkerRequest} requestParameters Request parameters.
|
|
1189
|
+
* @param {*} [options] Override http request option.
|
|
1190
|
+
* @throws {RequiredError}
|
|
1191
|
+
*/
|
|
1192
|
+
workerControllerUpdateWorker(requestParameters, options) {
|
|
1193
|
+
return localVarFp.workerControllerUpdateWorker(requestParameters.id, requestParameters.workerUpdateDto, options).then((request) => request(axios, basePath));
|
|
1194
|
+
},
|
|
1195
|
+
};
|
|
1196
|
+
};
|
|
1197
|
+
exports.ApiV1WorkersApiFactory = ApiV1WorkersApiFactory;
|
|
1198
|
+
/**
|
|
1199
|
+
* ApiV1WorkersApi - object-oriented interface
|
|
1200
|
+
* @export
|
|
1201
|
+
* @class ApiV1WorkersApi
|
|
1202
|
+
* @extends {BaseAPI}
|
|
1203
|
+
*/
|
|
1204
|
+
class ApiV1WorkersApi extends base_1.BaseAPI {
|
|
1205
|
+
/**
|
|
1206
|
+
*
|
|
1207
|
+
* @summary Delete multiple workers by IDs
|
|
1208
|
+
* @param {ApiV1WorkersApiWorkerControllerBatchDeleteWorkersRequest} requestParameters Request parameters.
|
|
1209
|
+
* @param {*} [options] Override http request option.
|
|
1210
|
+
* @throws {RequiredError}
|
|
1211
|
+
* @memberof ApiV1WorkersApi
|
|
1212
|
+
*/
|
|
1213
|
+
workerControllerBatchDeleteWorkers(requestParameters, options) {
|
|
1214
|
+
return (0, exports.ApiV1WorkersApiFp)(this.configuration).workerControllerBatchDeleteWorkers(requestParameters.workerControllerBatchDeleteWorkersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1215
|
+
}
|
|
1216
|
+
/**
|
|
1217
|
+
*
|
|
1218
|
+
* @summary Create a new worker
|
|
1219
|
+
* @param {ApiV1WorkersApiWorkerControllerCreateWorkerRequest} requestParameters Request parameters.
|
|
1220
|
+
* @param {*} [options] Override http request option.
|
|
1221
|
+
* @throws {RequiredError}
|
|
1222
|
+
* @memberof ApiV1WorkersApi
|
|
1223
|
+
*/
|
|
1224
|
+
workerControllerCreateWorker(requestParameters, options) {
|
|
1225
|
+
return (0, exports.ApiV1WorkersApiFp)(this.configuration).workerControllerCreateWorker(requestParameters.workerCreateDto, options).then((request) => request(this.axios, this.basePath));
|
|
1226
|
+
}
|
|
1227
|
+
/**
|
|
1228
|
+
*
|
|
1229
|
+
* @summary Delete a worker by ID
|
|
1230
|
+
* @param {ApiV1WorkersApiWorkerControllerDeleteWorkerRequest} requestParameters Request parameters.
|
|
1231
|
+
* @param {*} [options] Override http request option.
|
|
1232
|
+
* @throws {RequiredError}
|
|
1233
|
+
* @memberof ApiV1WorkersApi
|
|
1234
|
+
*/
|
|
1235
|
+
workerControllerDeleteWorker(requestParameters, options) {
|
|
1236
|
+
return (0, exports.ApiV1WorkersApiFp)(this.configuration).workerControllerDeleteWorker(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
*
|
|
1240
|
+
* @summary Get a worker by ID
|
|
1241
|
+
* @param {ApiV1WorkersApiWorkerControllerGetWorkerByIdRequest} requestParameters Request parameters.
|
|
1242
|
+
* @param {*} [options] Override http request option.
|
|
1243
|
+
* @throws {RequiredError}
|
|
1244
|
+
* @memberof ApiV1WorkersApi
|
|
1245
|
+
*/
|
|
1246
|
+
workerControllerGetWorkerById(requestParameters, options) {
|
|
1247
|
+
return (0, exports.ApiV1WorkersApiFp)(this.configuration).workerControllerGetWorkerById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1248
|
+
}
|
|
1249
|
+
/**
|
|
1250
|
+
*
|
|
1251
|
+
* @summary Retrieve workers with filters, sorting, pagination, and search
|
|
1252
|
+
* @param {ApiV1WorkersApiWorkerControllerGetWorkersRequest} requestParameters Request parameters.
|
|
1253
|
+
* @param {*} [options] Override http request option.
|
|
1254
|
+
* @throws {RequiredError}
|
|
1255
|
+
* @memberof ApiV1WorkersApi
|
|
1256
|
+
*/
|
|
1257
|
+
workerControllerGetWorkers(requestParameters = {}, options) {
|
|
1258
|
+
return (0, exports.ApiV1WorkersApiFp)(this.configuration).workerControllerGetWorkers(requestParameters.page, requestParameters.limit, requestParameters.filter, requestParameters.sortBy, requestParameters.search, requestParameters.searchColumns, options).then((request) => request(this.axios, this.basePath));
|
|
1259
|
+
}
|
|
1260
|
+
/**
|
|
1261
|
+
*
|
|
1262
|
+
* @summary Update a worker by ID
|
|
1263
|
+
* @param {ApiV1WorkersApiWorkerControllerUpdateWorkerRequest} requestParameters Request parameters.
|
|
1264
|
+
* @param {*} [options] Override http request option.
|
|
1265
|
+
* @throws {RequiredError}
|
|
1266
|
+
* @memberof ApiV1WorkersApi
|
|
1267
|
+
*/
|
|
1268
|
+
workerControllerUpdateWorker(requestParameters, options) {
|
|
1269
|
+
return (0, exports.ApiV1WorkersApiFp)(this.configuration).workerControllerUpdateWorker(requestParameters.id, requestParameters.workerUpdateDto, options).then((request) => request(this.axios, this.basePath));
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
exports.ApiV1WorkersApi = ApiV1WorkersApi;
|
|
1273
|
+
/**
|
|
1274
|
+
* SsoApi - axios parameter creator
|
|
1275
|
+
* @export
|
|
1276
|
+
*/
|
|
1277
|
+
const SsoApiAxiosParamCreator = function (configuration) {
|
|
1278
|
+
return {
|
|
1279
|
+
/**
|
|
1280
|
+
*
|
|
1281
|
+
* @param {object} body
|
|
1282
|
+
* @param {*} [options] Override http request option.
|
|
1283
|
+
* @throws {RequiredError}
|
|
1284
|
+
*/
|
|
1285
|
+
ssoControllerGenerateLocalCode: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1286
|
+
// verify required parameter 'body' is not null or undefined
|
|
1287
|
+
(0, common_1.assertParamExists)('ssoControllerGenerateLocalCode', 'body', body);
|
|
1288
|
+
const localVarPath = `/sso/generate-code`;
|
|
1289
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1290
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1291
|
+
let baseOptions;
|
|
1292
|
+
if (configuration) {
|
|
1293
|
+
baseOptions = configuration.baseOptions;
|
|
1294
|
+
}
|
|
1295
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1296
|
+
const localVarHeaderParameter = {};
|
|
1297
|
+
const localVarQueryParameter = {};
|
|
1298
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1299
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1300
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1301
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1302
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1303
|
+
return {
|
|
1304
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1305
|
+
options: localVarRequestOptions,
|
|
1306
|
+
};
|
|
1307
|
+
}),
|
|
1308
|
+
/**
|
|
1309
|
+
*
|
|
1310
|
+
* @param {object} body
|
|
1311
|
+
* @param {*} [options] Override http request option.
|
|
1312
|
+
* @throws {RequiredError}
|
|
1313
|
+
*/
|
|
1314
|
+
ssoControllerValidateCode: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1315
|
+
// verify required parameter 'body' is not null or undefined
|
|
1316
|
+
(0, common_1.assertParamExists)('ssoControllerValidateCode', 'body', body);
|
|
1317
|
+
const localVarPath = `/sso/validate-code`;
|
|
1318
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1319
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1320
|
+
let baseOptions;
|
|
1321
|
+
if (configuration) {
|
|
1322
|
+
baseOptions = configuration.baseOptions;
|
|
1323
|
+
}
|
|
1324
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1325
|
+
const localVarHeaderParameter = {};
|
|
1326
|
+
const localVarQueryParameter = {};
|
|
1327
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1328
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1330
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1331
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1332
|
+
return {
|
|
1333
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1334
|
+
options: localVarRequestOptions,
|
|
1335
|
+
};
|
|
1336
|
+
}),
|
|
1337
|
+
};
|
|
1338
|
+
};
|
|
1339
|
+
exports.SsoApiAxiosParamCreator = SsoApiAxiosParamCreator;
|
|
1340
|
+
/**
|
|
1341
|
+
* SsoApi - functional programming interface
|
|
1342
|
+
* @export
|
|
1343
|
+
*/
|
|
1344
|
+
const SsoApiFp = function (configuration) {
|
|
1345
|
+
const localVarAxiosParamCreator = (0, exports.SsoApiAxiosParamCreator)(configuration);
|
|
1346
|
+
return {
|
|
1347
|
+
/**
|
|
1348
|
+
*
|
|
1349
|
+
* @param {object} body
|
|
1350
|
+
* @param {*} [options] Override http request option.
|
|
1351
|
+
* @throws {RequiredError}
|
|
1352
|
+
*/
|
|
1353
|
+
ssoControllerGenerateLocalCode(body, options) {
|
|
1354
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1355
|
+
var _a, _b, _c;
|
|
1356
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerGenerateLocalCode(body, options);
|
|
1357
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1358
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SsoApi.ssoControllerGenerateLocalCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1359
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1360
|
+
});
|
|
1361
|
+
},
|
|
1362
|
+
/**
|
|
1363
|
+
*
|
|
1364
|
+
* @param {object} body
|
|
1365
|
+
* @param {*} [options] Override http request option.
|
|
1366
|
+
* @throws {RequiredError}
|
|
1367
|
+
*/
|
|
1368
|
+
ssoControllerValidateCode(body, options) {
|
|
1369
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1370
|
+
var _a, _b, _c;
|
|
1371
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerValidateCode(body, options);
|
|
1372
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1373
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SsoApi.ssoControllerValidateCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1374
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1375
|
+
});
|
|
1376
|
+
},
|
|
1377
|
+
};
|
|
1378
|
+
};
|
|
1379
|
+
exports.SsoApiFp = SsoApiFp;
|
|
1380
|
+
/**
|
|
1381
|
+
* SsoApi - factory interface
|
|
1382
|
+
* @export
|
|
1383
|
+
*/
|
|
1384
|
+
const SsoApiFactory = function (configuration, basePath, axios) {
|
|
1385
|
+
const localVarFp = (0, exports.SsoApiFp)(configuration);
|
|
1386
|
+
return {
|
|
1387
|
+
/**
|
|
1388
|
+
*
|
|
1389
|
+
* @param {SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
|
|
1390
|
+
* @param {*} [options] Override http request option.
|
|
1391
|
+
* @throws {RequiredError}
|
|
1392
|
+
*/
|
|
1393
|
+
ssoControllerGenerateLocalCode(requestParameters, options) {
|
|
1394
|
+
return localVarFp.ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1395
|
+
},
|
|
1396
|
+
/**
|
|
1397
|
+
*
|
|
1398
|
+
* @param {SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
1399
|
+
* @param {*} [options] Override http request option.
|
|
1400
|
+
* @throws {RequiredError}
|
|
1401
|
+
*/
|
|
1402
|
+
ssoControllerValidateCode(requestParameters, options) {
|
|
1403
|
+
return localVarFp.ssoControllerValidateCode(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1404
|
+
},
|
|
1405
|
+
};
|
|
1406
|
+
};
|
|
1407
|
+
exports.SsoApiFactory = SsoApiFactory;
|
|
1408
|
+
/**
|
|
1409
|
+
* SsoApi - object-oriented interface
|
|
1410
|
+
* @export
|
|
1411
|
+
* @class SsoApi
|
|
1412
|
+
* @extends {BaseAPI}
|
|
1413
|
+
*/
|
|
1414
|
+
class SsoApi extends base_1.BaseAPI {
|
|
1415
|
+
/**
|
|
1416
|
+
*
|
|
1417
|
+
* @param {SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
|
|
1418
|
+
* @param {*} [options] Override http request option.
|
|
1419
|
+
* @throws {RequiredError}
|
|
1420
|
+
* @memberof SsoApi
|
|
1421
|
+
*/
|
|
1422
|
+
ssoControllerGenerateLocalCode(requestParameters, options) {
|
|
1423
|
+
return (0, exports.SsoApiFp)(this.configuration).ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1424
|
+
}
|
|
1425
|
+
/**
|
|
1426
|
+
*
|
|
1427
|
+
* @param {SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
1428
|
+
* @param {*} [options] Override http request option.
|
|
1429
|
+
* @throws {RequiredError}
|
|
1430
|
+
* @memberof SsoApi
|
|
1431
|
+
*/
|
|
1432
|
+
ssoControllerValidateCode(requestParameters, options) {
|
|
1433
|
+
return (0, exports.SsoApiFp)(this.configuration).ssoControllerValidateCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
exports.SsoApi = SsoApi;
|