@gooday_corp/gooday-api-client 1.0.4 → 1.0.5
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/api.ts +180 -345
- package/base.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -26,27 +26,40 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerM
|
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @export
|
|
29
|
-
* @interface
|
|
29
|
+
* @interface GoalEntity
|
|
30
30
|
*/
|
|
31
|
-
export interface
|
|
31
|
+
export interface GoalEntity {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {
|
|
35
|
-
* @memberof
|
|
33
|
+
* Unique identifier for the goal
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof GoalEntity
|
|
36
36
|
*/
|
|
37
|
-
'
|
|
37
|
+
'_id': string;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Label or description of the goal
|
|
40
40
|
* @type {string}
|
|
41
|
-
* @memberof
|
|
41
|
+
* @memberof GoalEntity
|
|
42
42
|
*/
|
|
43
|
-
'
|
|
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;
|
|
44
57
|
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {
|
|
47
|
-
* @memberof
|
|
58
|
+
* User
|
|
59
|
+
* @type {Array<GoalEntity>}
|
|
60
|
+
* @memberof GoalListResponse
|
|
48
61
|
*/
|
|
49
|
-
'data':
|
|
62
|
+
'data': Array<GoalEntity>;
|
|
50
63
|
}
|
|
51
64
|
/**
|
|
52
65
|
*
|
|
@@ -67,23 +80,17 @@ export interface OnBoardingDTO {
|
|
|
67
80
|
*/
|
|
68
81
|
'gender': string;
|
|
69
82
|
/**
|
|
70
|
-
*
|
|
83
|
+
* Date of Birth
|
|
71
84
|
* @type {string}
|
|
72
85
|
* @memberof OnBoardingDTO
|
|
73
86
|
*/
|
|
74
87
|
'dob': string;
|
|
75
88
|
/**
|
|
76
|
-
*
|
|
89
|
+
* Goals
|
|
77
90
|
* @type {Array<string>}
|
|
78
91
|
* @memberof OnBoardingDTO
|
|
79
92
|
*/
|
|
80
93
|
'goals': Array<string>;
|
|
81
|
-
/**
|
|
82
|
-
* Plans
|
|
83
|
-
* @type {string}
|
|
84
|
-
* @memberof OnBoardingDTO
|
|
85
|
-
*/
|
|
86
|
-
'plan': string;
|
|
87
94
|
}
|
|
88
95
|
/**
|
|
89
96
|
*
|
|
@@ -99,30 +106,102 @@ export interface OnBoardingResponseDTO {
|
|
|
99
106
|
'statusCode': number;
|
|
100
107
|
/**
|
|
101
108
|
* User
|
|
102
|
-
* @type {
|
|
109
|
+
* @type {UserEntity}
|
|
103
110
|
* @memberof OnBoardingResponseDTO
|
|
104
111
|
*/
|
|
105
|
-
'data':
|
|
112
|
+
'data': UserEntity;
|
|
106
113
|
}
|
|
107
114
|
/**
|
|
108
115
|
*
|
|
109
116
|
* @export
|
|
110
|
-
* @interface
|
|
117
|
+
* @interface PlanEntity
|
|
111
118
|
*/
|
|
112
|
-
export interface
|
|
119
|
+
export interface PlanEntity {
|
|
113
120
|
/**
|
|
114
|
-
*
|
|
121
|
+
*
|
|
115
122
|
* @type {string}
|
|
116
|
-
* @memberof
|
|
123
|
+
* @memberof PlanEntity
|
|
117
124
|
*/
|
|
118
|
-
'
|
|
125
|
+
'_id': string;
|
|
119
126
|
/**
|
|
120
|
-
*
|
|
127
|
+
*
|
|
121
128
|
* @type {string}
|
|
122
|
-
* @memberof
|
|
129
|
+
* @memberof PlanEntity
|
|
130
|
+
*/
|
|
131
|
+
'name': string;
|
|
132
|
+
/**
|
|
133
|
+
* Array of features included in the plan
|
|
134
|
+
* @type {Array<PlanFeature>}
|
|
135
|
+
* @memberof PlanEntity
|
|
136
|
+
*/
|
|
137
|
+
'features': Array<PlanFeature>;
|
|
138
|
+
/**
|
|
139
|
+
* Array of price options for the plan
|
|
140
|
+
* @type {Array<PriceEntity>}
|
|
141
|
+
* @memberof PlanEntity
|
|
142
|
+
*/
|
|
143
|
+
'prices': Array<PriceEntity>;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @export
|
|
148
|
+
* @interface PlanFeature
|
|
149
|
+
*/
|
|
150
|
+
export interface PlanFeature {
|
|
151
|
+
/**
|
|
152
|
+
* Description of the feature
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof PlanFeature
|
|
155
|
+
*/
|
|
156
|
+
'label': string;
|
|
157
|
+
/**
|
|
158
|
+
* Nested child features, if any
|
|
159
|
+
* @type {Array<PlanFeature>}
|
|
160
|
+
* @memberof PlanFeature
|
|
123
161
|
*/
|
|
124
|
-
'
|
|
162
|
+
'children': Array<PlanFeature>;
|
|
125
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @export
|
|
167
|
+
* @interface PriceEntity
|
|
168
|
+
*/
|
|
169
|
+
export interface PriceEntity {
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @type {string}
|
|
173
|
+
* @memberof PriceEntity
|
|
174
|
+
*/
|
|
175
|
+
'_id': string;
|
|
176
|
+
/**
|
|
177
|
+
* Price amount in the smallest currency unit (e.g., cents for USD)
|
|
178
|
+
* @type {number}
|
|
179
|
+
* @memberof PriceEntity
|
|
180
|
+
*/
|
|
181
|
+
'amount': number;
|
|
182
|
+
/**
|
|
183
|
+
* Currency symbol
|
|
184
|
+
* @type {string}
|
|
185
|
+
* @memberof PriceEntity
|
|
186
|
+
*/
|
|
187
|
+
'currencySymbol': string;
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
* @type {string}
|
|
191
|
+
* @memberof PriceEntity
|
|
192
|
+
*/
|
|
193
|
+
'interval': PriceEntityIntervalEnum;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export const PriceEntityIntervalEnum = {
|
|
197
|
+
Day: 'day',
|
|
198
|
+
Month: 'month',
|
|
199
|
+
Week: 'week',
|
|
200
|
+
Year: 'year'
|
|
201
|
+
} as const;
|
|
202
|
+
|
|
203
|
+
export type PriceEntityIntervalEnum = typeof PriceEntityIntervalEnum[keyof typeof PriceEntityIntervalEnum];
|
|
204
|
+
|
|
126
205
|
/**
|
|
127
206
|
*
|
|
128
207
|
* @export
|
|
@@ -149,23 +228,11 @@ export interface SignInDto {
|
|
|
149
228
|
*/
|
|
150
229
|
export interface SignInResponse {
|
|
151
230
|
/**
|
|
152
|
-
*
|
|
153
|
-
* @type {
|
|
154
|
-
* @memberof SignInResponse
|
|
155
|
-
*/
|
|
156
|
-
'id': string;
|
|
157
|
-
/**
|
|
158
|
-
* The name of the user
|
|
159
|
-
* @type {string}
|
|
160
|
-
* @memberof SignInResponse
|
|
161
|
-
*/
|
|
162
|
-
'name': string;
|
|
163
|
-
/**
|
|
164
|
-
* The email of the user
|
|
165
|
-
* @type {string}
|
|
231
|
+
* User
|
|
232
|
+
* @type {UserEntity}
|
|
166
233
|
* @memberof SignInResponse
|
|
167
234
|
*/
|
|
168
|
-
'
|
|
235
|
+
'user': UserEntity;
|
|
169
236
|
/**
|
|
170
237
|
* The JWT access token for authentication
|
|
171
238
|
* @type {string}
|
|
@@ -222,12 +289,6 @@ export interface SignupDto {
|
|
|
222
289
|
* @memberof SignupDto
|
|
223
290
|
*/
|
|
224
291
|
'password': string;
|
|
225
|
-
/**
|
|
226
|
-
* The confirmation of the password for the user account
|
|
227
|
-
* @type {string}
|
|
228
|
-
* @memberof SignupDto
|
|
229
|
-
*/
|
|
230
|
-
'confirmPassword': string;
|
|
231
292
|
}
|
|
232
293
|
/**
|
|
233
294
|
*
|
|
@@ -236,23 +297,11 @@ export interface SignupDto {
|
|
|
236
297
|
*/
|
|
237
298
|
export interface SignupResponse {
|
|
238
299
|
/**
|
|
239
|
-
*
|
|
240
|
-
* @type {
|
|
241
|
-
* @memberof SignupResponse
|
|
242
|
-
*/
|
|
243
|
-
'id': string;
|
|
244
|
-
/**
|
|
245
|
-
* The name of the user
|
|
246
|
-
* @type {string}
|
|
247
|
-
* @memberof SignupResponse
|
|
248
|
-
*/
|
|
249
|
-
'name': string;
|
|
250
|
-
/**
|
|
251
|
-
* The email of the user
|
|
252
|
-
* @type {string}
|
|
300
|
+
* User
|
|
301
|
+
* @type {UserEntity}
|
|
253
302
|
* @memberof SignupResponse
|
|
254
303
|
*/
|
|
255
|
-
'
|
|
304
|
+
'user': UserEntity;
|
|
256
305
|
/**
|
|
257
306
|
* The JWT access token for authentication
|
|
258
307
|
* @type {string}
|
|
@@ -288,112 +337,106 @@ export interface SignupResponseDto {
|
|
|
288
337
|
/**
|
|
289
338
|
*
|
|
290
339
|
* @export
|
|
291
|
-
* @interface
|
|
340
|
+
* @interface UserEntity
|
|
292
341
|
*/
|
|
293
|
-
export interface
|
|
294
|
-
/**
|
|
295
|
-
* statuscCode
|
|
296
|
-
* @type {number}
|
|
297
|
-
* @memberof UserMeDTO
|
|
298
|
-
*/
|
|
299
|
-
'statusCode': number;
|
|
300
|
-
/**
|
|
301
|
-
* User
|
|
302
|
-
* @type {UserMeResponse}
|
|
303
|
-
* @memberof UserMeDTO
|
|
304
|
-
*/
|
|
305
|
-
'data': UserMeResponse;
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
*
|
|
309
|
-
* @export
|
|
310
|
-
* @interface UserMeResponse
|
|
311
|
-
*/
|
|
312
|
-
export interface UserMeResponse {
|
|
342
|
+
export interface UserEntity {
|
|
313
343
|
/**
|
|
314
344
|
* Unique identifier for the user
|
|
315
345
|
* @type {string}
|
|
316
|
-
* @memberof
|
|
346
|
+
* @memberof UserEntity
|
|
317
347
|
*/
|
|
318
|
-
'
|
|
348
|
+
'_id': string;
|
|
319
349
|
/**
|
|
320
350
|
* Name of the user
|
|
321
351
|
* @type {string}
|
|
322
|
-
* @memberof
|
|
352
|
+
* @memberof UserEntity
|
|
323
353
|
*/
|
|
324
354
|
'name': string;
|
|
325
355
|
/**
|
|
326
356
|
* Email address of the user
|
|
327
357
|
* @type {string}
|
|
328
|
-
* @memberof
|
|
358
|
+
* @memberof UserEntity
|
|
329
359
|
*/
|
|
330
360
|
'email': string;
|
|
331
361
|
/**
|
|
332
362
|
* Nickname of the user
|
|
333
363
|
* @type {string}
|
|
334
|
-
* @memberof
|
|
364
|
+
* @memberof UserEntity
|
|
335
365
|
*/
|
|
336
366
|
'nickName': string;
|
|
337
367
|
/**
|
|
338
368
|
* User\'s date of birth
|
|
339
369
|
* @type {string}
|
|
340
|
-
* @memberof
|
|
370
|
+
* @memberof UserEntity
|
|
341
371
|
*/
|
|
342
372
|
'dob': string;
|
|
343
373
|
/**
|
|
344
374
|
* Gender of the user
|
|
345
375
|
* @type {string}
|
|
346
|
-
* @memberof
|
|
376
|
+
* @memberof UserEntity
|
|
347
377
|
*/
|
|
348
378
|
'gender': string;
|
|
349
379
|
/**
|
|
350
380
|
* Indicates whether the user\'s email has been verified
|
|
351
381
|
* @type {boolean}
|
|
352
|
-
* @memberof
|
|
382
|
+
* @memberof UserEntity
|
|
353
383
|
*/
|
|
354
384
|
'isEmailVerified': boolean;
|
|
355
385
|
/**
|
|
356
386
|
* Role of the user in the system
|
|
357
387
|
* @type {string}
|
|
358
|
-
* @memberof
|
|
388
|
+
* @memberof UserEntity
|
|
359
389
|
*/
|
|
360
390
|
'role': string;
|
|
361
391
|
/**
|
|
362
|
-
*
|
|
363
|
-
* @type {string}
|
|
364
|
-
* @memberof UserMeResponse
|
|
365
|
-
*/
|
|
366
|
-
'createdAt': string;
|
|
367
|
-
/**
|
|
368
|
-
* Date when the user was last updated
|
|
369
|
-
* @type {string}
|
|
370
|
-
* @memberof UserMeResponse
|
|
371
|
-
*/
|
|
372
|
-
'updatedAt': string;
|
|
373
|
-
/**
|
|
374
|
-
* Reasons why the user is using the product
|
|
392
|
+
* Goals why user is using the product
|
|
375
393
|
* @type {Array<string>}
|
|
376
|
-
* @memberof
|
|
394
|
+
* @memberof UserEntity
|
|
377
395
|
*/
|
|
378
396
|
'goals': Array<string>;
|
|
379
|
-
/**
|
|
380
|
-
* Push notification tokens associated with the user
|
|
381
|
-
* @type {Array<string>}
|
|
382
|
-
* @memberof UserMeResponse
|
|
383
|
-
*/
|
|
384
|
-
'pushNotificationTokens': Array<string>;
|
|
385
397
|
/**
|
|
386
398
|
* Plan subscribed by the user
|
|
387
399
|
* @type {string}
|
|
388
|
-
* @memberof
|
|
400
|
+
* @memberof UserEntity
|
|
389
401
|
*/
|
|
390
402
|
'plan': string;
|
|
391
403
|
/**
|
|
392
|
-
*
|
|
404
|
+
* Action user has to perform
|
|
393
405
|
* @type {string}
|
|
394
|
-
* @memberof
|
|
406
|
+
* @memberof UserEntity
|
|
395
407
|
*/
|
|
396
|
-
'
|
|
408
|
+
'nextStep': UserEntityNextStepEnum;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
export const UserEntityNextStepEnum = {
|
|
412
|
+
BasicInfo: 'basic_info',
|
|
413
|
+
NickName: 'nick_name',
|
|
414
|
+
Dob: 'dob',
|
|
415
|
+
Gender: 'gender',
|
|
416
|
+
Recommendations: 'recommendations',
|
|
417
|
+
Plan: 'plan'
|
|
418
|
+
} as const;
|
|
419
|
+
|
|
420
|
+
export type UserEntityNextStepEnum = typeof UserEntityNextStepEnum[keyof typeof UserEntityNextStepEnum];
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
*
|
|
424
|
+
* @export
|
|
425
|
+
* @interface UserMeDTO
|
|
426
|
+
*/
|
|
427
|
+
export interface UserMeDTO {
|
|
428
|
+
/**
|
|
429
|
+
* statuscCode
|
|
430
|
+
* @type {number}
|
|
431
|
+
* @memberof UserMeDTO
|
|
432
|
+
*/
|
|
433
|
+
'statusCode': number;
|
|
434
|
+
/**
|
|
435
|
+
* User
|
|
436
|
+
* @type {UserEntity}
|
|
437
|
+
* @memberof UserMeDTO
|
|
438
|
+
*/
|
|
439
|
+
'data': UserEntity;
|
|
397
440
|
}
|
|
398
441
|
|
|
399
442
|
/**
|
|
@@ -402,39 +445,6 @@ export interface UserMeResponse {
|
|
|
402
445
|
*/
|
|
403
446
|
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
404
447
|
return {
|
|
405
|
-
/**
|
|
406
|
-
*
|
|
407
|
-
* @param {*} [options] Override http request option.
|
|
408
|
-
* @throws {RequiredError}
|
|
409
|
-
*/
|
|
410
|
-
authControllerForgotPassword: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
411
|
-
const localVarPath = `/auth/forgot-password`;
|
|
412
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
413
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
414
|
-
let baseOptions;
|
|
415
|
-
if (configuration) {
|
|
416
|
-
baseOptions = configuration.baseOptions;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
420
|
-
const localVarHeaderParameter = {} as any;
|
|
421
|
-
const localVarQueryParameter = {} as any;
|
|
422
|
-
|
|
423
|
-
// authentication bearer required
|
|
424
|
-
// http bearer authentication required
|
|
425
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
430
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
431
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
432
|
-
|
|
433
|
-
return {
|
|
434
|
-
url: toPathString(localVarUrlObj),
|
|
435
|
-
options: localVarRequestOptions,
|
|
436
|
-
};
|
|
437
|
-
},
|
|
438
448
|
/**
|
|
439
449
|
*
|
|
440
450
|
* @param {*} [options] Override http request option.
|
|
@@ -464,45 +474,6 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
464
474
|
options: localVarRequestOptions,
|
|
465
475
|
};
|
|
466
476
|
},
|
|
467
|
-
/**
|
|
468
|
-
*
|
|
469
|
-
* @param {ResetPasswordDTO} resetPasswordDTO
|
|
470
|
-
* @param {*} [options] Override http request option.
|
|
471
|
-
* @throws {RequiredError}
|
|
472
|
-
*/
|
|
473
|
-
authControllerResetPassword: async (resetPasswordDTO: ResetPasswordDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
474
|
-
// verify required parameter 'resetPasswordDTO' is not null or undefined
|
|
475
|
-
assertParamExists('authControllerResetPassword', 'resetPasswordDTO', resetPasswordDTO)
|
|
476
|
-
const localVarPath = `/auth/reset-password`;
|
|
477
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
478
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
479
|
-
let baseOptions;
|
|
480
|
-
if (configuration) {
|
|
481
|
-
baseOptions = configuration.baseOptions;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
485
|
-
const localVarHeaderParameter = {} as any;
|
|
486
|
-
const localVarQueryParameter = {} as any;
|
|
487
|
-
|
|
488
|
-
// authentication bearer required
|
|
489
|
-
// http bearer authentication required
|
|
490
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
495
|
-
|
|
496
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
497
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
498
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
499
|
-
localVarRequestOptions.data = serializeDataIfNeeded(resetPasswordDTO, localVarRequestOptions, configuration)
|
|
500
|
-
|
|
501
|
-
return {
|
|
502
|
-
url: toPathString(localVarUrlObj),
|
|
503
|
-
options: localVarRequestOptions,
|
|
504
|
-
};
|
|
505
|
-
},
|
|
506
477
|
/**
|
|
507
478
|
*
|
|
508
479
|
* @param {SignInDto} signInDto
|
|
@@ -512,7 +483,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
512
483
|
authControllerSignIn: async (signInDto: SignInDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
513
484
|
// verify required parameter 'signInDto' is not null or undefined
|
|
514
485
|
assertParamExists('authControllerSignIn', 'signInDto', signInDto)
|
|
515
|
-
const localVarPath = `/auth/user-login`;
|
|
486
|
+
const localVarPath = `/v1/auth/user-login`;
|
|
516
487
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
517
488
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
518
489
|
let baseOptions;
|
|
@@ -547,7 +518,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
547
518
|
authControllerSignUp: async (signupDto: SignupDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
548
519
|
// verify required parameter 'signupDto' is not null or undefined
|
|
549
520
|
assertParamExists('authControllerSignUp', 'signupDto', signupDto)
|
|
550
|
-
const localVarPath = `/auth/user-register`;
|
|
521
|
+
const localVarPath = `/v1/auth/user-register`;
|
|
551
522
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
552
523
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
553
524
|
let baseOptions;
|
|
@@ -583,17 +554,6 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
583
554
|
export const AuthApiFp = function(configuration?: Configuration) {
|
|
584
555
|
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
|
|
585
556
|
return {
|
|
586
|
-
/**
|
|
587
|
-
*
|
|
588
|
-
* @param {*} [options] Override http request option.
|
|
589
|
-
* @throws {RequiredError}
|
|
590
|
-
*/
|
|
591
|
-
async authControllerForgotPassword(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponseDto>> {
|
|
592
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerForgotPassword(options);
|
|
593
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
594
|
-
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerForgotPassword']?.[localVarOperationServerIndex]?.url;
|
|
595
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
596
|
-
},
|
|
597
557
|
/**
|
|
598
558
|
*
|
|
599
559
|
* @param {*} [options] Override http request option.
|
|
@@ -605,18 +565,6 @@ export const AuthApiFp = function(configuration?: Configuration) {
|
|
|
605
565
|
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerGoogleLogin']?.[localVarOperationServerIndex]?.url;
|
|
606
566
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
607
567
|
},
|
|
608
|
-
/**
|
|
609
|
-
*
|
|
610
|
-
* @param {ResetPasswordDTO} resetPasswordDTO
|
|
611
|
-
* @param {*} [options] Override http request option.
|
|
612
|
-
* @throws {RequiredError}
|
|
613
|
-
*/
|
|
614
|
-
async authControllerResetPassword(resetPasswordDTO: ResetPasswordDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponseDto>> {
|
|
615
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerResetPassword(resetPasswordDTO, options);
|
|
616
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
617
|
-
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerResetPassword']?.[localVarOperationServerIndex]?.url;
|
|
618
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
619
|
-
},
|
|
620
568
|
/**
|
|
621
569
|
*
|
|
622
570
|
* @param {SignInDto} signInDto
|
|
@@ -651,14 +599,6 @@ export const AuthApiFp = function(configuration?: Configuration) {
|
|
|
651
599
|
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
652
600
|
const localVarFp = AuthApiFp(configuration)
|
|
653
601
|
return {
|
|
654
|
-
/**
|
|
655
|
-
*
|
|
656
|
-
* @param {*} [options] Override http request option.
|
|
657
|
-
* @throws {RequiredError}
|
|
658
|
-
*/
|
|
659
|
-
authControllerForgotPassword(options?: RawAxiosRequestConfig): AxiosPromise<ApiResponseDto> {
|
|
660
|
-
return localVarFp.authControllerForgotPassword(options).then((request) => request(axios, basePath));
|
|
661
|
-
},
|
|
662
602
|
/**
|
|
663
603
|
*
|
|
664
604
|
* @param {*} [options] Override http request option.
|
|
@@ -667,15 +607,6 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
|
|
|
667
607
|
authControllerGoogleLogin(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
668
608
|
return localVarFp.authControllerGoogleLogin(options).then((request) => request(axios, basePath));
|
|
669
609
|
},
|
|
670
|
-
/**
|
|
671
|
-
*
|
|
672
|
-
* @param {ResetPasswordDTO} resetPasswordDTO
|
|
673
|
-
* @param {*} [options] Override http request option.
|
|
674
|
-
* @throws {RequiredError}
|
|
675
|
-
*/
|
|
676
|
-
authControllerResetPassword(resetPasswordDTO: ResetPasswordDTO, options?: RawAxiosRequestConfig): AxiosPromise<ApiResponseDto> {
|
|
677
|
-
return localVarFp.authControllerResetPassword(resetPasswordDTO, options).then((request) => request(axios, basePath));
|
|
678
|
-
},
|
|
679
610
|
/**
|
|
680
611
|
*
|
|
681
612
|
* @param {SignInDto} signInDto
|
|
@@ -704,16 +635,6 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
|
|
|
704
635
|
* @extends {BaseAPI}
|
|
705
636
|
*/
|
|
706
637
|
export class AuthApi extends BaseAPI {
|
|
707
|
-
/**
|
|
708
|
-
*
|
|
709
|
-
* @param {*} [options] Override http request option.
|
|
710
|
-
* @throws {RequiredError}
|
|
711
|
-
* @memberof AuthApi
|
|
712
|
-
*/
|
|
713
|
-
public authControllerForgotPassword(options?: RawAxiosRequestConfig) {
|
|
714
|
-
return AuthApiFp(this.configuration).authControllerForgotPassword(options).then((request) => request(this.axios, this.basePath));
|
|
715
|
-
}
|
|
716
|
-
|
|
717
638
|
/**
|
|
718
639
|
*
|
|
719
640
|
* @param {*} [options] Override http request option.
|
|
@@ -724,17 +645,6 @@ export class AuthApi extends BaseAPI {
|
|
|
724
645
|
return AuthApiFp(this.configuration).authControllerGoogleLogin(options).then((request) => request(this.axios, this.basePath));
|
|
725
646
|
}
|
|
726
647
|
|
|
727
|
-
/**
|
|
728
|
-
*
|
|
729
|
-
* @param {ResetPasswordDTO} resetPasswordDTO
|
|
730
|
-
* @param {*} [options] Override http request option.
|
|
731
|
-
* @throws {RequiredError}
|
|
732
|
-
* @memberof AuthApi
|
|
733
|
-
*/
|
|
734
|
-
public authControllerResetPassword(resetPasswordDTO: ResetPasswordDTO, options?: RawAxiosRequestConfig) {
|
|
735
|
-
return AuthApiFp(this.configuration).authControllerResetPassword(resetPasswordDTO, options).then((request) => request(this.axios, this.basePath));
|
|
736
|
-
}
|
|
737
|
-
|
|
738
648
|
/**
|
|
739
649
|
*
|
|
740
650
|
* @param {SignInDto} signInDto
|
|
@@ -771,8 +681,8 @@ export const GoalsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
771
681
|
* @param {*} [options] Override http request option.
|
|
772
682
|
* @throws {RequiredError}
|
|
773
683
|
*/
|
|
774
|
-
|
|
775
|
-
const localVarPath = `/goals`;
|
|
684
|
+
goalControllerListGoals: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
685
|
+
const localVarPath = `/v1/goals`;
|
|
776
686
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
777
687
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
778
688
|
let baseOptions;
|
|
@@ -790,45 +700,6 @@ export const GoalsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
790
700
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
791
701
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
792
702
|
|
|
793
|
-
return {
|
|
794
|
-
url: toPathString(localVarUrlObj),
|
|
795
|
-
options: localVarRequestOptions,
|
|
796
|
-
};
|
|
797
|
-
},
|
|
798
|
-
/**
|
|
799
|
-
*
|
|
800
|
-
* @param {Array<string>} requestBody
|
|
801
|
-
* @param {*} [options] Override http request option.
|
|
802
|
-
* @throws {RequiredError}
|
|
803
|
-
*/
|
|
804
|
-
goalControllerOnBoarded: async (requestBody: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
805
|
-
// verify required parameter 'requestBody' is not null or undefined
|
|
806
|
-
assertParamExists('goalControllerOnBoarded', 'requestBody', requestBody)
|
|
807
|
-
const localVarPath = `/goals`;
|
|
808
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
809
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
810
|
-
let baseOptions;
|
|
811
|
-
if (configuration) {
|
|
812
|
-
baseOptions = configuration.baseOptions;
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
816
|
-
const localVarHeaderParameter = {} as any;
|
|
817
|
-
const localVarQueryParameter = {} as any;
|
|
818
|
-
|
|
819
|
-
// authentication bearer required
|
|
820
|
-
// http bearer authentication required
|
|
821
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
826
|
-
|
|
827
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
828
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
829
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
830
|
-
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
831
|
-
|
|
832
703
|
return {
|
|
833
704
|
url: toPathString(localVarUrlObj),
|
|
834
705
|
options: localVarRequestOptions,
|
|
@@ -849,22 +720,10 @@ export const GoalsApiFp = function(configuration?: Configuration) {
|
|
|
849
720
|
* @param {*} [options] Override http request option.
|
|
850
721
|
* @throws {RequiredError}
|
|
851
722
|
*/
|
|
852
|
-
async
|
|
853
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
854
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
855
|
-
const localVarOperationServerBasePath = operationServerMap['GoalsApi.goalControllerGetMe']?.[localVarOperationServerIndex]?.url;
|
|
856
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
857
|
-
},
|
|
858
|
-
/**
|
|
859
|
-
*
|
|
860
|
-
* @param {Array<string>} requestBody
|
|
861
|
-
* @param {*} [options] Override http request option.
|
|
862
|
-
* @throws {RequiredError}
|
|
863
|
-
*/
|
|
864
|
-
async goalControllerOnBoarded(requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
865
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.goalControllerOnBoarded(requestBody, options);
|
|
723
|
+
async goalControllerListGoals(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GoalListResponse>> {
|
|
724
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.goalControllerListGoals(options);
|
|
866
725
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
867
|
-
const localVarOperationServerBasePath = operationServerMap['GoalsApi.
|
|
726
|
+
const localVarOperationServerBasePath = operationServerMap['GoalsApi.goalControllerListGoals']?.[localVarOperationServerIndex]?.url;
|
|
868
727
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
869
728
|
},
|
|
870
729
|
}
|
|
@@ -882,17 +741,8 @@ export const GoalsApiFactory = function (configuration?: Configuration, basePath
|
|
|
882
741
|
* @param {*} [options] Override http request option.
|
|
883
742
|
* @throws {RequiredError}
|
|
884
743
|
*/
|
|
885
|
-
|
|
886
|
-
return localVarFp.
|
|
887
|
-
},
|
|
888
|
-
/**
|
|
889
|
-
*
|
|
890
|
-
* @param {Array<string>} requestBody
|
|
891
|
-
* @param {*} [options] Override http request option.
|
|
892
|
-
* @throws {RequiredError}
|
|
893
|
-
*/
|
|
894
|
-
goalControllerOnBoarded(requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
895
|
-
return localVarFp.goalControllerOnBoarded(requestBody, options).then((request) => request(axios, basePath));
|
|
744
|
+
goalControllerListGoals(options?: RawAxiosRequestConfig): AxiosPromise<GoalListResponse> {
|
|
745
|
+
return localVarFp.goalControllerListGoals(options).then((request) => request(axios, basePath));
|
|
896
746
|
},
|
|
897
747
|
};
|
|
898
748
|
};
|
|
@@ -910,19 +760,8 @@ export class GoalsApi extends BaseAPI {
|
|
|
910
760
|
* @throws {RequiredError}
|
|
911
761
|
* @memberof GoalsApi
|
|
912
762
|
*/
|
|
913
|
-
public
|
|
914
|
-
return GoalsApiFp(this.configuration).
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
/**
|
|
918
|
-
*
|
|
919
|
-
* @param {Array<string>} requestBody
|
|
920
|
-
* @param {*} [options] Override http request option.
|
|
921
|
-
* @throws {RequiredError}
|
|
922
|
-
* @memberof GoalsApi
|
|
923
|
-
*/
|
|
924
|
-
public goalControllerOnBoarded(requestBody: Array<string>, options?: RawAxiosRequestConfig) {
|
|
925
|
-
return GoalsApiFp(this.configuration).goalControllerOnBoarded(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
763
|
+
public goalControllerListGoals(options?: RawAxiosRequestConfig) {
|
|
764
|
+
return GoalsApiFp(this.configuration).goalControllerListGoals(options).then((request) => request(this.axios, this.basePath));
|
|
926
765
|
}
|
|
927
766
|
}
|
|
928
767
|
|
|
@@ -940,7 +779,7 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
940
779
|
* @throws {RequiredError}
|
|
941
780
|
*/
|
|
942
781
|
paymentControllerGetPlans: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
943
|
-
const localVarPath = `/plans`;
|
|
782
|
+
const localVarPath = `/v1/plans`;
|
|
944
783
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
945
784
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
946
785
|
let baseOptions;
|
|
@@ -952,10 +791,6 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
952
791
|
const localVarHeaderParameter = {} as any;
|
|
953
792
|
const localVarQueryParameter = {} as any;
|
|
954
793
|
|
|
955
|
-
// authentication bearer required
|
|
956
|
-
// http bearer authentication required
|
|
957
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
958
|
-
|
|
959
794
|
|
|
960
795
|
|
|
961
796
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -982,7 +817,7 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
982
817
|
* @param {*} [options] Override http request option.
|
|
983
818
|
* @throws {RequiredError}
|
|
984
819
|
*/
|
|
985
|
-
async paymentControllerGetPlans(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
820
|
+
async paymentControllerGetPlans(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PlanEntity>>> {
|
|
986
821
|
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerGetPlans(options);
|
|
987
822
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
988
823
|
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerGetPlans']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1003,7 +838,7 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
1003
838
|
* @param {*} [options] Override http request option.
|
|
1004
839
|
* @throws {RequiredError}
|
|
1005
840
|
*/
|
|
1006
|
-
paymentControllerGetPlans(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
841
|
+
paymentControllerGetPlans(options?: RawAxiosRequestConfig): AxiosPromise<Array<PlanEntity>> {
|
|
1007
842
|
return localVarFp.paymentControllerGetPlans(options).then((request) => request(axios, basePath));
|
|
1008
843
|
},
|
|
1009
844
|
};
|
|
@@ -1041,7 +876,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
1041
876
|
* @throws {RequiredError}
|
|
1042
877
|
*/
|
|
1043
878
|
usersControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1044
|
-
const localVarPath = `/user/me`;
|
|
879
|
+
const localVarPath = `/v1/user/me`;
|
|
1045
880
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1046
881
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1047
882
|
let baseOptions;
|
|
@@ -1077,7 +912,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
1077
912
|
usersControllerOnBoarded: async (onBoardingDTO: OnBoardingDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1078
913
|
// verify required parameter 'onBoardingDTO' is not null or undefined
|
|
1079
914
|
assertParamExists('usersControllerOnBoarded', 'onBoardingDTO', onBoardingDTO)
|
|
1080
|
-
const localVarPath = `/user/onboarding`;
|
|
915
|
+
const localVarPath = `/v1/user/onboarding`;
|
|
1081
916
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1082
917
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1083
918
|
let baseOptions;
|
package/base.ts
CHANGED
|
@@ -19,7 +19,7 @@ import type { Configuration } from './configuration';
|
|
|
19
19
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
20
20
|
import globalAxios from 'axios';
|
|
21
21
|
|
|
22
|
-
export const BASE_PATH = "
|
|
22
|
+
export const BASE_PATH = "http://localhost:8080".replace(/\/+$/, "");
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|