@gooday_corp/gooday-api-client 1.0.0
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 +9 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/api.ts +948 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +22 -0
package/api.ts
ADDED
|
@@ -0,0 +1,948 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Goodday
|
|
5
|
+
* Gooday API 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
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from './configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
|
+
import type { RequestArgs } from './base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface ApiResponseDto
|
|
30
|
+
*/
|
|
31
|
+
export interface ApiResponseDto {
|
|
32
|
+
/**
|
|
33
|
+
* The HTTP status code
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof ApiResponseDto
|
|
36
|
+
*/
|
|
37
|
+
'statusCode': number;
|
|
38
|
+
/**
|
|
39
|
+
* A message providing additional details about the response
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ApiResponseDto
|
|
42
|
+
*/
|
|
43
|
+
'message': string;
|
|
44
|
+
/**
|
|
45
|
+
* The data payload of the response
|
|
46
|
+
* @type {object}
|
|
47
|
+
* @memberof ApiResponseDto
|
|
48
|
+
*/
|
|
49
|
+
'data': object;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
* @interface OnBoardingDTO
|
|
55
|
+
*/
|
|
56
|
+
export interface OnBoardingDTO {
|
|
57
|
+
/**
|
|
58
|
+
* nickname
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof OnBoardingDTO
|
|
61
|
+
*/
|
|
62
|
+
'nickname': string;
|
|
63
|
+
/**
|
|
64
|
+
* Gender
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof OnBoardingDTO
|
|
67
|
+
*/
|
|
68
|
+
'gender': string;
|
|
69
|
+
/**
|
|
70
|
+
* User Date of Birth
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof OnBoardingDTO
|
|
73
|
+
*/
|
|
74
|
+
'dob': string;
|
|
75
|
+
/**
|
|
76
|
+
* Recommendation
|
|
77
|
+
* @type {Array<string>}
|
|
78
|
+
* @memberof OnBoardingDTO
|
|
79
|
+
*/
|
|
80
|
+
'recommendations': Array<string>;
|
|
81
|
+
/**
|
|
82
|
+
* Plans
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof OnBoardingDTO
|
|
85
|
+
*/
|
|
86
|
+
'plan': string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @export
|
|
91
|
+
* @interface ResetPasswordDTO
|
|
92
|
+
*/
|
|
93
|
+
export interface ResetPasswordDTO {
|
|
94
|
+
/**
|
|
95
|
+
* Email of user
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof ResetPasswordDTO
|
|
98
|
+
*/
|
|
99
|
+
'currentPasword': string;
|
|
100
|
+
/**
|
|
101
|
+
* Email of user
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof ResetPasswordDTO
|
|
104
|
+
*/
|
|
105
|
+
'newPassword': string;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @export
|
|
110
|
+
* @interface SaveRecommendationDto
|
|
111
|
+
*/
|
|
112
|
+
export interface SaveRecommendationDto {
|
|
113
|
+
/**
|
|
114
|
+
* An array of recommendation.
|
|
115
|
+
* @type {Array<string>}
|
|
116
|
+
* @memberof SaveRecommendationDto
|
|
117
|
+
*/
|
|
118
|
+
'recommendation': Array<string>;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @export
|
|
123
|
+
* @interface SignInDto
|
|
124
|
+
*/
|
|
125
|
+
export interface SignInDto {
|
|
126
|
+
/**
|
|
127
|
+
* Email of user
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof SignInDto
|
|
130
|
+
*/
|
|
131
|
+
'email': string;
|
|
132
|
+
/**
|
|
133
|
+
* Password of user
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof SignInDto
|
|
136
|
+
*/
|
|
137
|
+
'password': string;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @export
|
|
142
|
+
* @interface SignupDto
|
|
143
|
+
*/
|
|
144
|
+
export interface SignupDto {
|
|
145
|
+
/**
|
|
146
|
+
* The name of the user
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof SignupDto
|
|
149
|
+
*/
|
|
150
|
+
'name': string;
|
|
151
|
+
/**
|
|
152
|
+
* The email of the user
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof SignupDto
|
|
155
|
+
*/
|
|
156
|
+
'email': string;
|
|
157
|
+
/**
|
|
158
|
+
* The password for the user account
|
|
159
|
+
* @type {string}
|
|
160
|
+
* @memberof SignupDto
|
|
161
|
+
*/
|
|
162
|
+
'password': string;
|
|
163
|
+
/**
|
|
164
|
+
* The confirmation of the password for the user account
|
|
165
|
+
* @type {string}
|
|
166
|
+
* @memberof SignupDto
|
|
167
|
+
*/
|
|
168
|
+
'confirmPassword': string;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @export
|
|
173
|
+
* @interface SignupResponseDto
|
|
174
|
+
*/
|
|
175
|
+
export interface SignupResponseDto {
|
|
176
|
+
/**
|
|
177
|
+
* The unique identifier of the user
|
|
178
|
+
* @type {string}
|
|
179
|
+
* @memberof SignupResponseDto
|
|
180
|
+
*/
|
|
181
|
+
'id': string;
|
|
182
|
+
/**
|
|
183
|
+
* The name of the user
|
|
184
|
+
* @type {string}
|
|
185
|
+
* @memberof SignupResponseDto
|
|
186
|
+
*/
|
|
187
|
+
'name': string;
|
|
188
|
+
/**
|
|
189
|
+
* The email of the user
|
|
190
|
+
* @type {string}
|
|
191
|
+
* @memberof SignupResponseDto
|
|
192
|
+
*/
|
|
193
|
+
'email': string;
|
|
194
|
+
/**
|
|
195
|
+
* The JWT access token for authentication
|
|
196
|
+
* @type {string}
|
|
197
|
+
* @memberof SignupResponseDto
|
|
198
|
+
*/
|
|
199
|
+
'accessToken': string;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* AuthApi - axios parameter creator
|
|
204
|
+
* @export
|
|
205
|
+
*/
|
|
206
|
+
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
207
|
+
return {
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @param {*} [options] Override http request option.
|
|
211
|
+
* @throws {RequiredError}
|
|
212
|
+
*/
|
|
213
|
+
authControllerForgotPassword: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
214
|
+
const localVarPath = `/auth/forgot-password`;
|
|
215
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
216
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
217
|
+
let baseOptions;
|
|
218
|
+
if (configuration) {
|
|
219
|
+
baseOptions = configuration.baseOptions;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
223
|
+
const localVarHeaderParameter = {} as any;
|
|
224
|
+
const localVarQueryParameter = {} as any;
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
229
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
230
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
231
|
+
|
|
232
|
+
return {
|
|
233
|
+
url: toPathString(localVarUrlObj),
|
|
234
|
+
options: localVarRequestOptions,
|
|
235
|
+
};
|
|
236
|
+
},
|
|
237
|
+
/**
|
|
238
|
+
*
|
|
239
|
+
* @param {ResetPasswordDTO} resetPasswordDTO
|
|
240
|
+
* @param {*} [options] Override http request option.
|
|
241
|
+
* @throws {RequiredError}
|
|
242
|
+
*/
|
|
243
|
+
authControllerResetPassword: async (resetPasswordDTO: ResetPasswordDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
244
|
+
// verify required parameter 'resetPasswordDTO' is not null or undefined
|
|
245
|
+
assertParamExists('authControllerResetPassword', 'resetPasswordDTO', resetPasswordDTO)
|
|
246
|
+
const localVarPath = `/auth/reset-password`;
|
|
247
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
248
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
249
|
+
let baseOptions;
|
|
250
|
+
if (configuration) {
|
|
251
|
+
baseOptions = configuration.baseOptions;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
255
|
+
const localVarHeaderParameter = {} as any;
|
|
256
|
+
const localVarQueryParameter = {} as any;
|
|
257
|
+
|
|
258
|
+
// authentication bearer required
|
|
259
|
+
// http bearer authentication required
|
|
260
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
265
|
+
|
|
266
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
267
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
268
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
269
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resetPasswordDTO, localVarRequestOptions, configuration)
|
|
270
|
+
|
|
271
|
+
return {
|
|
272
|
+
url: toPathString(localVarUrlObj),
|
|
273
|
+
options: localVarRequestOptions,
|
|
274
|
+
};
|
|
275
|
+
},
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
* @param {SignInDto} signInDto
|
|
279
|
+
* @param {*} [options] Override http request option.
|
|
280
|
+
* @throws {RequiredError}
|
|
281
|
+
*/
|
|
282
|
+
authControllerSignIn: async (signInDto: SignInDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
283
|
+
// verify required parameter 'signInDto' is not null or undefined
|
|
284
|
+
assertParamExists('authControllerSignIn', 'signInDto', signInDto)
|
|
285
|
+
const localVarPath = `/auth/login`;
|
|
286
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
287
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
288
|
+
let baseOptions;
|
|
289
|
+
if (configuration) {
|
|
290
|
+
baseOptions = configuration.baseOptions;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
294
|
+
const localVarHeaderParameter = {} as any;
|
|
295
|
+
const localVarQueryParameter = {} as any;
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
300
|
+
|
|
301
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
302
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
303
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
304
|
+
localVarRequestOptions.data = serializeDataIfNeeded(signInDto, localVarRequestOptions, configuration)
|
|
305
|
+
|
|
306
|
+
return {
|
|
307
|
+
url: toPathString(localVarUrlObj),
|
|
308
|
+
options: localVarRequestOptions,
|
|
309
|
+
};
|
|
310
|
+
},
|
|
311
|
+
/**
|
|
312
|
+
*
|
|
313
|
+
* @param {SignupDto} signupDto
|
|
314
|
+
* @param {*} [options] Override http request option.
|
|
315
|
+
* @throws {RequiredError}
|
|
316
|
+
*/
|
|
317
|
+
authControllerSignUp: async (signupDto: SignupDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
318
|
+
// verify required parameter 'signupDto' is not null or undefined
|
|
319
|
+
assertParamExists('authControllerSignUp', 'signupDto', signupDto)
|
|
320
|
+
const localVarPath = `/auth/register`;
|
|
321
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
322
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
323
|
+
let baseOptions;
|
|
324
|
+
if (configuration) {
|
|
325
|
+
baseOptions = configuration.baseOptions;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
329
|
+
const localVarHeaderParameter = {} as any;
|
|
330
|
+
const localVarQueryParameter = {} as any;
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
335
|
+
|
|
336
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
337
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
338
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
339
|
+
localVarRequestOptions.data = serializeDataIfNeeded(signupDto, localVarRequestOptions, configuration)
|
|
340
|
+
|
|
341
|
+
return {
|
|
342
|
+
url: toPathString(localVarUrlObj),
|
|
343
|
+
options: localVarRequestOptions,
|
|
344
|
+
};
|
|
345
|
+
},
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* AuthApi - functional programming interface
|
|
351
|
+
* @export
|
|
352
|
+
*/
|
|
353
|
+
export const AuthApiFp = function(configuration?: Configuration) {
|
|
354
|
+
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
|
|
355
|
+
return {
|
|
356
|
+
/**
|
|
357
|
+
*
|
|
358
|
+
* @param {*} [options] Override http request option.
|
|
359
|
+
* @throws {RequiredError}
|
|
360
|
+
*/
|
|
361
|
+
async authControllerForgotPassword(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponseDto>> {
|
|
362
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerForgotPassword(options);
|
|
363
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
364
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerForgotPassword']?.[localVarOperationServerIndex]?.url;
|
|
365
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
366
|
+
},
|
|
367
|
+
/**
|
|
368
|
+
*
|
|
369
|
+
* @param {ResetPasswordDTO} resetPasswordDTO
|
|
370
|
+
* @param {*} [options] Override http request option.
|
|
371
|
+
* @throws {RequiredError}
|
|
372
|
+
*/
|
|
373
|
+
async authControllerResetPassword(resetPasswordDTO: ResetPasswordDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponseDto>> {
|
|
374
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerResetPassword(resetPasswordDTO, options);
|
|
375
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
376
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerResetPassword']?.[localVarOperationServerIndex]?.url;
|
|
377
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
378
|
+
},
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @param {SignInDto} signInDto
|
|
382
|
+
* @param {*} [options] Override http request option.
|
|
383
|
+
* @throws {RequiredError}
|
|
384
|
+
*/
|
|
385
|
+
async authControllerSignIn(signInDto: SignInDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignupResponseDto>> {
|
|
386
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerSignIn(signInDto, options);
|
|
387
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
388
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerSignIn']?.[localVarOperationServerIndex]?.url;
|
|
389
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
390
|
+
},
|
|
391
|
+
/**
|
|
392
|
+
*
|
|
393
|
+
* @param {SignupDto} signupDto
|
|
394
|
+
* @param {*} [options] Override http request option.
|
|
395
|
+
* @throws {RequiredError}
|
|
396
|
+
*/
|
|
397
|
+
async authControllerSignUp(signupDto: SignupDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignupResponseDto>> {
|
|
398
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerSignUp(signupDto, options);
|
|
399
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
400
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerSignUp']?.[localVarOperationServerIndex]?.url;
|
|
401
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
402
|
+
},
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* AuthApi - factory interface
|
|
408
|
+
* @export
|
|
409
|
+
*/
|
|
410
|
+
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
411
|
+
const localVarFp = AuthApiFp(configuration)
|
|
412
|
+
return {
|
|
413
|
+
/**
|
|
414
|
+
*
|
|
415
|
+
* @param {*} [options] Override http request option.
|
|
416
|
+
* @throws {RequiredError}
|
|
417
|
+
*/
|
|
418
|
+
authControllerForgotPassword(options?: RawAxiosRequestConfig): AxiosPromise<ApiResponseDto> {
|
|
419
|
+
return localVarFp.authControllerForgotPassword(options).then((request) => request(axios, basePath));
|
|
420
|
+
},
|
|
421
|
+
/**
|
|
422
|
+
*
|
|
423
|
+
* @param {ResetPasswordDTO} resetPasswordDTO
|
|
424
|
+
* @param {*} [options] Override http request option.
|
|
425
|
+
* @throws {RequiredError}
|
|
426
|
+
*/
|
|
427
|
+
authControllerResetPassword(resetPasswordDTO: ResetPasswordDTO, options?: RawAxiosRequestConfig): AxiosPromise<ApiResponseDto> {
|
|
428
|
+
return localVarFp.authControllerResetPassword(resetPasswordDTO, options).then((request) => request(axios, basePath));
|
|
429
|
+
},
|
|
430
|
+
/**
|
|
431
|
+
*
|
|
432
|
+
* @param {SignInDto} signInDto
|
|
433
|
+
* @param {*} [options] Override http request option.
|
|
434
|
+
* @throws {RequiredError}
|
|
435
|
+
*/
|
|
436
|
+
authControllerSignIn(signInDto: SignInDto, options?: RawAxiosRequestConfig): AxiosPromise<SignupResponseDto> {
|
|
437
|
+
return localVarFp.authControllerSignIn(signInDto, options).then((request) => request(axios, basePath));
|
|
438
|
+
},
|
|
439
|
+
/**
|
|
440
|
+
*
|
|
441
|
+
* @param {SignupDto} signupDto
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
authControllerSignUp(signupDto: SignupDto, options?: RawAxiosRequestConfig): AxiosPromise<SignupResponseDto> {
|
|
446
|
+
return localVarFp.authControllerSignUp(signupDto, options).then((request) => request(axios, basePath));
|
|
447
|
+
},
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* AuthApi - object-oriented interface
|
|
453
|
+
* @export
|
|
454
|
+
* @class AuthApi
|
|
455
|
+
* @extends {BaseAPI}
|
|
456
|
+
*/
|
|
457
|
+
export class AuthApi extends BaseAPI {
|
|
458
|
+
/**
|
|
459
|
+
*
|
|
460
|
+
* @param {*} [options] Override http request option.
|
|
461
|
+
* @throws {RequiredError}
|
|
462
|
+
* @memberof AuthApi
|
|
463
|
+
*/
|
|
464
|
+
public authControllerForgotPassword(options?: RawAxiosRequestConfig) {
|
|
465
|
+
return AuthApiFp(this.configuration).authControllerForgotPassword(options).then((request) => request(this.axios, this.basePath));
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
*
|
|
470
|
+
* @param {ResetPasswordDTO} resetPasswordDTO
|
|
471
|
+
* @param {*} [options] Override http request option.
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
* @memberof AuthApi
|
|
474
|
+
*/
|
|
475
|
+
public authControllerResetPassword(resetPasswordDTO: ResetPasswordDTO, options?: RawAxiosRequestConfig) {
|
|
476
|
+
return AuthApiFp(this.configuration).authControllerResetPassword(resetPasswordDTO, options).then((request) => request(this.axios, this.basePath));
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
*
|
|
481
|
+
* @param {SignInDto} signInDto
|
|
482
|
+
* @param {*} [options] Override http request option.
|
|
483
|
+
* @throws {RequiredError}
|
|
484
|
+
* @memberof AuthApi
|
|
485
|
+
*/
|
|
486
|
+
public authControllerSignIn(signInDto: SignInDto, options?: RawAxiosRequestConfig) {
|
|
487
|
+
return AuthApiFp(this.configuration).authControllerSignIn(signInDto, options).then((request) => request(this.axios, this.basePath));
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
*
|
|
492
|
+
* @param {SignupDto} signupDto
|
|
493
|
+
* @param {*} [options] Override http request option.
|
|
494
|
+
* @throws {RequiredError}
|
|
495
|
+
* @memberof AuthApi
|
|
496
|
+
*/
|
|
497
|
+
public authControllerSignUp(signupDto: SignupDto, options?: RawAxiosRequestConfig) {
|
|
498
|
+
return AuthApiFp(this.configuration).authControllerSignUp(signupDto, options).then((request) => request(this.axios, this.basePath));
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* PlansApi - axios parameter creator
|
|
506
|
+
* @export
|
|
507
|
+
*/
|
|
508
|
+
export const PlansApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
509
|
+
return {
|
|
510
|
+
/**
|
|
511
|
+
*
|
|
512
|
+
* @param {*} [options] Override http request option.
|
|
513
|
+
* @throws {RequiredError}
|
|
514
|
+
*/
|
|
515
|
+
plansControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
516
|
+
const localVarPath = `/plans`;
|
|
517
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
518
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
519
|
+
let baseOptions;
|
|
520
|
+
if (configuration) {
|
|
521
|
+
baseOptions = configuration.baseOptions;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
525
|
+
const localVarHeaderParameter = {} as any;
|
|
526
|
+
const localVarQueryParameter = {} as any;
|
|
527
|
+
|
|
528
|
+
// authentication bearer required
|
|
529
|
+
// http bearer authentication required
|
|
530
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
535
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
536
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
537
|
+
|
|
538
|
+
return {
|
|
539
|
+
url: toPathString(localVarUrlObj),
|
|
540
|
+
options: localVarRequestOptions,
|
|
541
|
+
};
|
|
542
|
+
},
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* PlansApi - functional programming interface
|
|
548
|
+
* @export
|
|
549
|
+
*/
|
|
550
|
+
export const PlansApiFp = function(configuration?: Configuration) {
|
|
551
|
+
const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
|
|
552
|
+
return {
|
|
553
|
+
/**
|
|
554
|
+
*
|
|
555
|
+
* @param {*} [options] Override http request option.
|
|
556
|
+
* @throws {RequiredError}
|
|
557
|
+
*/
|
|
558
|
+
async plansControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
559
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.plansControllerGetMe(options);
|
|
560
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
561
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.plansControllerGetMe']?.[localVarOperationServerIndex]?.url;
|
|
562
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
563
|
+
},
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* PlansApi - factory interface
|
|
569
|
+
* @export
|
|
570
|
+
*/
|
|
571
|
+
export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
572
|
+
const localVarFp = PlansApiFp(configuration)
|
|
573
|
+
return {
|
|
574
|
+
/**
|
|
575
|
+
*
|
|
576
|
+
* @param {*} [options] Override http request option.
|
|
577
|
+
* @throws {RequiredError}
|
|
578
|
+
*/
|
|
579
|
+
plansControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
580
|
+
return localVarFp.plansControllerGetMe(options).then((request) => request(axios, basePath));
|
|
581
|
+
},
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* PlansApi - object-oriented interface
|
|
587
|
+
* @export
|
|
588
|
+
* @class PlansApi
|
|
589
|
+
* @extends {BaseAPI}
|
|
590
|
+
*/
|
|
591
|
+
export class PlansApi extends BaseAPI {
|
|
592
|
+
/**
|
|
593
|
+
*
|
|
594
|
+
* @param {*} [options] Override http request option.
|
|
595
|
+
* @throws {RequiredError}
|
|
596
|
+
* @memberof PlansApi
|
|
597
|
+
*/
|
|
598
|
+
public plansControllerGetMe(options?: RawAxiosRequestConfig) {
|
|
599
|
+
return PlansApiFp(this.configuration).plansControllerGetMe(options).then((request) => request(this.axios, this.basePath));
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* RecommendationApi - axios parameter creator
|
|
607
|
+
* @export
|
|
608
|
+
*/
|
|
609
|
+
export const RecommendationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
610
|
+
return {
|
|
611
|
+
/**
|
|
612
|
+
*
|
|
613
|
+
* @param {*} [options] Override http request option.
|
|
614
|
+
* @throws {RequiredError}
|
|
615
|
+
*/
|
|
616
|
+
recommendationControllerGetrecommendation: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
617
|
+
const localVarPath = `/recommendation`;
|
|
618
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
619
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
620
|
+
let baseOptions;
|
|
621
|
+
if (configuration) {
|
|
622
|
+
baseOptions = configuration.baseOptions;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
626
|
+
const localVarHeaderParameter = {} as any;
|
|
627
|
+
const localVarQueryParameter = {} as any;
|
|
628
|
+
|
|
629
|
+
// authentication bearer required
|
|
630
|
+
// http bearer authentication required
|
|
631
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
636
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
637
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
638
|
+
|
|
639
|
+
return {
|
|
640
|
+
url: toPathString(localVarUrlObj),
|
|
641
|
+
options: localVarRequestOptions,
|
|
642
|
+
};
|
|
643
|
+
},
|
|
644
|
+
/**
|
|
645
|
+
*
|
|
646
|
+
* @param {SaveRecommendationDto} saveRecommendationDto
|
|
647
|
+
* @param {*} [options] Override http request option.
|
|
648
|
+
* @throws {RequiredError}
|
|
649
|
+
*/
|
|
650
|
+
recommendationControllerSaveRecommendation: async (saveRecommendationDto: SaveRecommendationDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
651
|
+
// verify required parameter 'saveRecommendationDto' is not null or undefined
|
|
652
|
+
assertParamExists('recommendationControllerSaveRecommendation', 'saveRecommendationDto', saveRecommendationDto)
|
|
653
|
+
const localVarPath = `/recommendation`;
|
|
654
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
655
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
656
|
+
let baseOptions;
|
|
657
|
+
if (configuration) {
|
|
658
|
+
baseOptions = configuration.baseOptions;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
662
|
+
const localVarHeaderParameter = {} as any;
|
|
663
|
+
const localVarQueryParameter = {} as any;
|
|
664
|
+
|
|
665
|
+
// authentication bearer required
|
|
666
|
+
// http bearer authentication required
|
|
667
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
672
|
+
|
|
673
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
674
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
675
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
676
|
+
localVarRequestOptions.data = serializeDataIfNeeded(saveRecommendationDto, localVarRequestOptions, configuration)
|
|
677
|
+
|
|
678
|
+
return {
|
|
679
|
+
url: toPathString(localVarUrlObj),
|
|
680
|
+
options: localVarRequestOptions,
|
|
681
|
+
};
|
|
682
|
+
},
|
|
683
|
+
}
|
|
684
|
+
};
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* RecommendationApi - functional programming interface
|
|
688
|
+
* @export
|
|
689
|
+
*/
|
|
690
|
+
export const RecommendationApiFp = function(configuration?: Configuration) {
|
|
691
|
+
const localVarAxiosParamCreator = RecommendationApiAxiosParamCreator(configuration)
|
|
692
|
+
return {
|
|
693
|
+
/**
|
|
694
|
+
*
|
|
695
|
+
* @param {*} [options] Override http request option.
|
|
696
|
+
* @throws {RequiredError}
|
|
697
|
+
*/
|
|
698
|
+
async recommendationControllerGetrecommendation(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
699
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.recommendationControllerGetrecommendation(options);
|
|
700
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
701
|
+
const localVarOperationServerBasePath = operationServerMap['RecommendationApi.recommendationControllerGetrecommendation']?.[localVarOperationServerIndex]?.url;
|
|
702
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
703
|
+
},
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @param {SaveRecommendationDto} saveRecommendationDto
|
|
707
|
+
* @param {*} [options] Override http request option.
|
|
708
|
+
* @throws {RequiredError}
|
|
709
|
+
*/
|
|
710
|
+
async recommendationControllerSaveRecommendation(saveRecommendationDto: SaveRecommendationDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
711
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.recommendationControllerSaveRecommendation(saveRecommendationDto, options);
|
|
712
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
713
|
+
const localVarOperationServerBasePath = operationServerMap['RecommendationApi.recommendationControllerSaveRecommendation']?.[localVarOperationServerIndex]?.url;
|
|
714
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
715
|
+
},
|
|
716
|
+
}
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* RecommendationApi - factory interface
|
|
721
|
+
* @export
|
|
722
|
+
*/
|
|
723
|
+
export const RecommendationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
724
|
+
const localVarFp = RecommendationApiFp(configuration)
|
|
725
|
+
return {
|
|
726
|
+
/**
|
|
727
|
+
*
|
|
728
|
+
* @param {*} [options] Override http request option.
|
|
729
|
+
* @throws {RequiredError}
|
|
730
|
+
*/
|
|
731
|
+
recommendationControllerGetrecommendation(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
732
|
+
return localVarFp.recommendationControllerGetrecommendation(options).then((request) => request(axios, basePath));
|
|
733
|
+
},
|
|
734
|
+
/**
|
|
735
|
+
*
|
|
736
|
+
* @param {SaveRecommendationDto} saveRecommendationDto
|
|
737
|
+
* @param {*} [options] Override http request option.
|
|
738
|
+
* @throws {RequiredError}
|
|
739
|
+
*/
|
|
740
|
+
recommendationControllerSaveRecommendation(saveRecommendationDto: SaveRecommendationDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
741
|
+
return localVarFp.recommendationControllerSaveRecommendation(saveRecommendationDto, options).then((request) => request(axios, basePath));
|
|
742
|
+
},
|
|
743
|
+
};
|
|
744
|
+
};
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* RecommendationApi - object-oriented interface
|
|
748
|
+
* @export
|
|
749
|
+
* @class RecommendationApi
|
|
750
|
+
* @extends {BaseAPI}
|
|
751
|
+
*/
|
|
752
|
+
export class RecommendationApi extends BaseAPI {
|
|
753
|
+
/**
|
|
754
|
+
*
|
|
755
|
+
* @param {*} [options] Override http request option.
|
|
756
|
+
* @throws {RequiredError}
|
|
757
|
+
* @memberof RecommendationApi
|
|
758
|
+
*/
|
|
759
|
+
public recommendationControllerGetrecommendation(options?: RawAxiosRequestConfig) {
|
|
760
|
+
return RecommendationApiFp(this.configuration).recommendationControllerGetrecommendation(options).then((request) => request(this.axios, this.basePath));
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
*
|
|
765
|
+
* @param {SaveRecommendationDto} saveRecommendationDto
|
|
766
|
+
* @param {*} [options] Override http request option.
|
|
767
|
+
* @throws {RequiredError}
|
|
768
|
+
* @memberof RecommendationApi
|
|
769
|
+
*/
|
|
770
|
+
public recommendationControllerSaveRecommendation(saveRecommendationDto: SaveRecommendationDto, options?: RawAxiosRequestConfig) {
|
|
771
|
+
return RecommendationApiFp(this.configuration).recommendationControllerSaveRecommendation(saveRecommendationDto, options).then((request) => request(this.axios, this.basePath));
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* UsersApi - axios parameter creator
|
|
779
|
+
* @export
|
|
780
|
+
*/
|
|
781
|
+
export const UsersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
782
|
+
return {
|
|
783
|
+
/**
|
|
784
|
+
*
|
|
785
|
+
* @param {*} [options] Override http request option.
|
|
786
|
+
* @throws {RequiredError}
|
|
787
|
+
*/
|
|
788
|
+
usersControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
789
|
+
const localVarPath = `/user/me`;
|
|
790
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
791
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
792
|
+
let baseOptions;
|
|
793
|
+
if (configuration) {
|
|
794
|
+
baseOptions = configuration.baseOptions;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
798
|
+
const localVarHeaderParameter = {} as any;
|
|
799
|
+
const localVarQueryParameter = {} as any;
|
|
800
|
+
|
|
801
|
+
// authentication bearer required
|
|
802
|
+
// http bearer authentication required
|
|
803
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
808
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
809
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
810
|
+
|
|
811
|
+
return {
|
|
812
|
+
url: toPathString(localVarUrlObj),
|
|
813
|
+
options: localVarRequestOptions,
|
|
814
|
+
};
|
|
815
|
+
},
|
|
816
|
+
/**
|
|
817
|
+
*
|
|
818
|
+
* @param {OnBoardingDTO} onBoardingDTO
|
|
819
|
+
* @param {*} [options] Override http request option.
|
|
820
|
+
* @throws {RequiredError}
|
|
821
|
+
*/
|
|
822
|
+
usersControllerOnBoarded: async (onBoardingDTO: OnBoardingDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
823
|
+
// verify required parameter 'onBoardingDTO' is not null or undefined
|
|
824
|
+
assertParamExists('usersControllerOnBoarded', 'onBoardingDTO', onBoardingDTO)
|
|
825
|
+
const localVarPath = `/user/onboarding`;
|
|
826
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
827
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
828
|
+
let baseOptions;
|
|
829
|
+
if (configuration) {
|
|
830
|
+
baseOptions = configuration.baseOptions;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
834
|
+
const localVarHeaderParameter = {} as any;
|
|
835
|
+
const localVarQueryParameter = {} as any;
|
|
836
|
+
|
|
837
|
+
// authentication bearer required
|
|
838
|
+
// http bearer authentication required
|
|
839
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
844
|
+
|
|
845
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
846
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
847
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
848
|
+
localVarRequestOptions.data = serializeDataIfNeeded(onBoardingDTO, localVarRequestOptions, configuration)
|
|
849
|
+
|
|
850
|
+
return {
|
|
851
|
+
url: toPathString(localVarUrlObj),
|
|
852
|
+
options: localVarRequestOptions,
|
|
853
|
+
};
|
|
854
|
+
},
|
|
855
|
+
}
|
|
856
|
+
};
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* UsersApi - functional programming interface
|
|
860
|
+
* @export
|
|
861
|
+
*/
|
|
862
|
+
export const UsersApiFp = function(configuration?: Configuration) {
|
|
863
|
+
const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
|
|
864
|
+
return {
|
|
865
|
+
/**
|
|
866
|
+
*
|
|
867
|
+
* @param {*} [options] Override http request option.
|
|
868
|
+
* @throws {RequiredError}
|
|
869
|
+
*/
|
|
870
|
+
async usersControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
871
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerGetMe(options);
|
|
872
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
873
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerGetMe']?.[localVarOperationServerIndex]?.url;
|
|
874
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
875
|
+
},
|
|
876
|
+
/**
|
|
877
|
+
*
|
|
878
|
+
* @param {OnBoardingDTO} onBoardingDTO
|
|
879
|
+
* @param {*} [options] Override http request option.
|
|
880
|
+
* @throws {RequiredError}
|
|
881
|
+
*/
|
|
882
|
+
async usersControllerOnBoarded(onBoardingDTO: OnBoardingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
883
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerOnBoarded(onBoardingDTO, options);
|
|
884
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
885
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerOnBoarded']?.[localVarOperationServerIndex]?.url;
|
|
886
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
887
|
+
},
|
|
888
|
+
}
|
|
889
|
+
};
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* UsersApi - factory interface
|
|
893
|
+
* @export
|
|
894
|
+
*/
|
|
895
|
+
export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
896
|
+
const localVarFp = UsersApiFp(configuration)
|
|
897
|
+
return {
|
|
898
|
+
/**
|
|
899
|
+
*
|
|
900
|
+
* @param {*} [options] Override http request option.
|
|
901
|
+
* @throws {RequiredError}
|
|
902
|
+
*/
|
|
903
|
+
usersControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
904
|
+
return localVarFp.usersControllerGetMe(options).then((request) => request(axios, basePath));
|
|
905
|
+
},
|
|
906
|
+
/**
|
|
907
|
+
*
|
|
908
|
+
* @param {OnBoardingDTO} onBoardingDTO
|
|
909
|
+
* @param {*} [options] Override http request option.
|
|
910
|
+
* @throws {RequiredError}
|
|
911
|
+
*/
|
|
912
|
+
usersControllerOnBoarded(onBoardingDTO: OnBoardingDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
913
|
+
return localVarFp.usersControllerOnBoarded(onBoardingDTO, options).then((request) => request(axios, basePath));
|
|
914
|
+
},
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* UsersApi - object-oriented interface
|
|
920
|
+
* @export
|
|
921
|
+
* @class UsersApi
|
|
922
|
+
* @extends {BaseAPI}
|
|
923
|
+
*/
|
|
924
|
+
export class UsersApi extends BaseAPI {
|
|
925
|
+
/**
|
|
926
|
+
*
|
|
927
|
+
* @param {*} [options] Override http request option.
|
|
928
|
+
* @throws {RequiredError}
|
|
929
|
+
* @memberof UsersApi
|
|
930
|
+
*/
|
|
931
|
+
public usersControllerGetMe(options?: RawAxiosRequestConfig) {
|
|
932
|
+
return UsersApiFp(this.configuration).usersControllerGetMe(options).then((request) => request(this.axios, this.basePath));
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
*
|
|
937
|
+
* @param {OnBoardingDTO} onBoardingDTO
|
|
938
|
+
* @param {*} [options] Override http request option.
|
|
939
|
+
* @throws {RequiredError}
|
|
940
|
+
* @memberof UsersApi
|
|
941
|
+
*/
|
|
942
|
+
public usersControllerOnBoarded(onBoardingDTO: OnBoardingDTO, options?: RawAxiosRequestConfig) {
|
|
943
|
+
return UsersApiFp(this.configuration).usersControllerOnBoarded(onBoardingDTO, options).then((request) => request(this.axios, this.basePath));
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
|