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