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