@gooday_corp/gooday-api-client 1.0.3 → 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 +323 -220
- 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 {
|
|
44
51
|
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {
|
|
47
|
-
* @memberof
|
|
52
|
+
* statuscCode
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof GoalListResponse
|
|
48
55
|
*/
|
|
49
|
-
'
|
|
56
|
+
'statusCode': number;
|
|
57
|
+
/**
|
|
58
|
+
* User
|
|
59
|
+
* @type {Array<GoalEntity>}
|
|
60
|
+
* @memberof GoalListResponse
|
|
61
|
+
*/
|
|
62
|
+
'data': Array<GoalEntity>;
|
|
50
63
|
}
|
|
51
64
|
/**
|
|
52
65
|
*
|
|
@@ -67,43 +80,128 @@ 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>;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @export
|
|
98
|
+
* @interface OnBoardingResponseDTO
|
|
99
|
+
*/
|
|
100
|
+
export interface OnBoardingResponseDTO {
|
|
81
101
|
/**
|
|
82
|
-
*
|
|
102
|
+
* statusCode
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @memberof OnBoardingResponseDTO
|
|
105
|
+
*/
|
|
106
|
+
'statusCode': number;
|
|
107
|
+
/**
|
|
108
|
+
* User
|
|
109
|
+
* @type {UserEntity}
|
|
110
|
+
* @memberof OnBoardingResponseDTO
|
|
111
|
+
*/
|
|
112
|
+
'data': UserEntity;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @export
|
|
117
|
+
* @interface PlanEntity
|
|
118
|
+
*/
|
|
119
|
+
export interface PlanEntity {
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
83
122
|
* @type {string}
|
|
84
|
-
* @memberof
|
|
123
|
+
* @memberof PlanEntity
|
|
85
124
|
*/
|
|
86
|
-
'
|
|
125
|
+
'_id': string;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {string}
|
|
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>;
|
|
87
144
|
}
|
|
88
145
|
/**
|
|
89
146
|
*
|
|
90
147
|
* @export
|
|
91
|
-
* @interface
|
|
148
|
+
* @interface PlanFeature
|
|
92
149
|
*/
|
|
93
|
-
export interface
|
|
150
|
+
export interface PlanFeature {
|
|
94
151
|
/**
|
|
95
|
-
*
|
|
152
|
+
* Description of the feature
|
|
96
153
|
* @type {string}
|
|
97
|
-
* @memberof
|
|
154
|
+
* @memberof PlanFeature
|
|
98
155
|
*/
|
|
99
|
-
'
|
|
156
|
+
'label': string;
|
|
100
157
|
/**
|
|
101
|
-
*
|
|
158
|
+
* Nested child features, if any
|
|
159
|
+
* @type {Array<PlanFeature>}
|
|
160
|
+
* @memberof PlanFeature
|
|
161
|
+
*/
|
|
162
|
+
'children': Array<PlanFeature>;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @export
|
|
167
|
+
* @interface PriceEntity
|
|
168
|
+
*/
|
|
169
|
+
export interface PriceEntity {
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
102
172
|
* @type {string}
|
|
103
|
-
* @memberof
|
|
173
|
+
* @memberof PriceEntity
|
|
104
174
|
*/
|
|
105
|
-
'
|
|
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;
|
|
106
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
|
+
|
|
107
205
|
/**
|
|
108
206
|
*
|
|
109
207
|
* @export
|
|
@@ -123,6 +221,50 @@ export interface SignInDto {
|
|
|
123
221
|
*/
|
|
124
222
|
'password': string;
|
|
125
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @export
|
|
227
|
+
* @interface SignInResponse
|
|
228
|
+
*/
|
|
229
|
+
export interface SignInResponse {
|
|
230
|
+
/**
|
|
231
|
+
* User
|
|
232
|
+
* @type {UserEntity}
|
|
233
|
+
* @memberof SignInResponse
|
|
234
|
+
*/
|
|
235
|
+
'user': UserEntity;
|
|
236
|
+
/**
|
|
237
|
+
* The JWT access token for authentication
|
|
238
|
+
* @type {string}
|
|
239
|
+
* @memberof SignInResponse
|
|
240
|
+
*/
|
|
241
|
+
'accessToken': string;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
*
|
|
245
|
+
* @export
|
|
246
|
+
* @interface SignInResponseDto
|
|
247
|
+
*/
|
|
248
|
+
export interface SignInResponseDto {
|
|
249
|
+
/**
|
|
250
|
+
* statuscCode
|
|
251
|
+
* @type {number}
|
|
252
|
+
* @memberof SignInResponseDto
|
|
253
|
+
*/
|
|
254
|
+
'statusCode': number;
|
|
255
|
+
/**
|
|
256
|
+
* message
|
|
257
|
+
* @type {string}
|
|
258
|
+
* @memberof SignInResponseDto
|
|
259
|
+
*/
|
|
260
|
+
'message': string;
|
|
261
|
+
/**
|
|
262
|
+
* User
|
|
263
|
+
* @type {SignInResponse}
|
|
264
|
+
* @memberof SignInResponseDto
|
|
265
|
+
*/
|
|
266
|
+
'data': SignInResponse;
|
|
267
|
+
}
|
|
126
268
|
/**
|
|
127
269
|
*
|
|
128
270
|
* @export
|
|
@@ -147,12 +289,25 @@ export interface SignupDto {
|
|
|
147
289
|
* @memberof SignupDto
|
|
148
290
|
*/
|
|
149
291
|
'password': string;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* @export
|
|
296
|
+
* @interface SignupResponse
|
|
297
|
+
*/
|
|
298
|
+
export interface SignupResponse {
|
|
150
299
|
/**
|
|
151
|
-
*
|
|
300
|
+
* User
|
|
301
|
+
* @type {UserEntity}
|
|
302
|
+
* @memberof SignupResponse
|
|
303
|
+
*/
|
|
304
|
+
'user': UserEntity;
|
|
305
|
+
/**
|
|
306
|
+
* The JWT access token for authentication
|
|
152
307
|
* @type {string}
|
|
153
|
-
* @memberof
|
|
308
|
+
* @memberof SignupResponse
|
|
154
309
|
*/
|
|
155
|
-
'
|
|
310
|
+
'accessToken': string;
|
|
156
311
|
}
|
|
157
312
|
/**
|
|
158
313
|
*
|
|
@@ -161,29 +316,127 @@ export interface SignupDto {
|
|
|
161
316
|
*/
|
|
162
317
|
export interface SignupResponseDto {
|
|
163
318
|
/**
|
|
164
|
-
*
|
|
165
|
-
* @type {
|
|
319
|
+
* statuscCode
|
|
320
|
+
* @type {number}
|
|
166
321
|
* @memberof SignupResponseDto
|
|
167
322
|
*/
|
|
168
|
-
'
|
|
323
|
+
'statusCode': number;
|
|
169
324
|
/**
|
|
170
|
-
*
|
|
325
|
+
* message
|
|
171
326
|
* @type {string}
|
|
172
327
|
* @memberof SignupResponseDto
|
|
173
328
|
*/
|
|
329
|
+
'message': string;
|
|
330
|
+
/**
|
|
331
|
+
* User
|
|
332
|
+
* @type {SignupResponse}
|
|
333
|
+
* @memberof SignupResponseDto
|
|
334
|
+
*/
|
|
335
|
+
'data': SignupResponse;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
*
|
|
339
|
+
* @export
|
|
340
|
+
* @interface UserEntity
|
|
341
|
+
*/
|
|
342
|
+
export interface UserEntity {
|
|
343
|
+
/**
|
|
344
|
+
* Unique identifier for the user
|
|
345
|
+
* @type {string}
|
|
346
|
+
* @memberof UserEntity
|
|
347
|
+
*/
|
|
348
|
+
'_id': string;
|
|
349
|
+
/**
|
|
350
|
+
* Name of the user
|
|
351
|
+
* @type {string}
|
|
352
|
+
* @memberof UserEntity
|
|
353
|
+
*/
|
|
174
354
|
'name': string;
|
|
175
355
|
/**
|
|
176
|
-
*
|
|
356
|
+
* Email address of the user
|
|
177
357
|
* @type {string}
|
|
178
|
-
* @memberof
|
|
358
|
+
* @memberof UserEntity
|
|
179
359
|
*/
|
|
180
360
|
'email': string;
|
|
181
361
|
/**
|
|
182
|
-
*
|
|
362
|
+
* Nickname of the user
|
|
183
363
|
* @type {string}
|
|
184
|
-
* @memberof
|
|
364
|
+
* @memberof UserEntity
|
|
185
365
|
*/
|
|
186
|
-
'
|
|
366
|
+
'nickName': string;
|
|
367
|
+
/**
|
|
368
|
+
* User\'s date of birth
|
|
369
|
+
* @type {string}
|
|
370
|
+
* @memberof UserEntity
|
|
371
|
+
*/
|
|
372
|
+
'dob': string;
|
|
373
|
+
/**
|
|
374
|
+
* Gender of the user
|
|
375
|
+
* @type {string}
|
|
376
|
+
* @memberof UserEntity
|
|
377
|
+
*/
|
|
378
|
+
'gender': string;
|
|
379
|
+
/**
|
|
380
|
+
* Indicates whether the user\'s email has been verified
|
|
381
|
+
* @type {boolean}
|
|
382
|
+
* @memberof UserEntity
|
|
383
|
+
*/
|
|
384
|
+
'isEmailVerified': boolean;
|
|
385
|
+
/**
|
|
386
|
+
* Role of the user in the system
|
|
387
|
+
* @type {string}
|
|
388
|
+
* @memberof UserEntity
|
|
389
|
+
*/
|
|
390
|
+
'role': string;
|
|
391
|
+
/**
|
|
392
|
+
* Goals why user is using the product
|
|
393
|
+
* @type {Array<string>}
|
|
394
|
+
* @memberof UserEntity
|
|
395
|
+
*/
|
|
396
|
+
'goals': Array<string>;
|
|
397
|
+
/**
|
|
398
|
+
* Plan subscribed by the user
|
|
399
|
+
* @type {string}
|
|
400
|
+
* @memberof UserEntity
|
|
401
|
+
*/
|
|
402
|
+
'plan': string;
|
|
403
|
+
/**
|
|
404
|
+
* Action user has to perform
|
|
405
|
+
* @type {string}
|
|
406
|
+
* @memberof UserEntity
|
|
407
|
+
*/
|
|
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;
|
|
187
440
|
}
|
|
188
441
|
|
|
189
442
|
/**
|
|
@@ -197,44 +450,8 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
197
450
|
* @param {*} [options] Override http request option.
|
|
198
451
|
* @throws {RequiredError}
|
|
199
452
|
*/
|
|
200
|
-
|
|
201
|
-
const localVarPath = `/auth/
|
|
202
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
203
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
204
|
-
let baseOptions;
|
|
205
|
-
if (configuration) {
|
|
206
|
-
baseOptions = configuration.baseOptions;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
210
|
-
const localVarHeaderParameter = {} as any;
|
|
211
|
-
const localVarQueryParameter = {} as any;
|
|
212
|
-
|
|
213
|
-
// authentication bearer required
|
|
214
|
-
// http bearer authentication required
|
|
215
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
220
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
221
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
222
|
-
|
|
223
|
-
return {
|
|
224
|
-
url: toPathString(localVarUrlObj),
|
|
225
|
-
options: localVarRequestOptions,
|
|
226
|
-
};
|
|
227
|
-
},
|
|
228
|
-
/**
|
|
229
|
-
*
|
|
230
|
-
* @param {ResetPasswordDTO} resetPasswordDTO
|
|
231
|
-
* @param {*} [options] Override http request option.
|
|
232
|
-
* @throws {RequiredError}
|
|
233
|
-
*/
|
|
234
|
-
authControllerResetPassword: async (resetPasswordDTO: ResetPasswordDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
235
|
-
// verify required parameter 'resetPasswordDTO' is not null or undefined
|
|
236
|
-
assertParamExists('authControllerResetPassword', 'resetPasswordDTO', resetPasswordDTO)
|
|
237
|
-
const localVarPath = `/auth/reset-password`;
|
|
453
|
+
authControllerGoogleLogin: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
454
|
+
const localVarPath = `/auth/google-login`;
|
|
238
455
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
239
456
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
240
457
|
let baseOptions;
|
|
@@ -246,18 +463,11 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
246
463
|
const localVarHeaderParameter = {} as any;
|
|
247
464
|
const localVarQueryParameter = {} as any;
|
|
248
465
|
|
|
249
|
-
// authentication bearer required
|
|
250
|
-
// http bearer authentication required
|
|
251
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
252
|
-
|
|
253
466
|
|
|
254
467
|
|
|
255
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
256
|
-
|
|
257
468
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
258
469
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
259
470
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
260
|
-
localVarRequestOptions.data = serializeDataIfNeeded(resetPasswordDTO, localVarRequestOptions, configuration)
|
|
261
471
|
|
|
262
472
|
return {
|
|
263
473
|
url: toPathString(localVarUrlObj),
|
|
@@ -273,7 +483,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
273
483
|
authControllerSignIn: async (signInDto: SignInDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
274
484
|
// verify required parameter 'signInDto' is not null or undefined
|
|
275
485
|
assertParamExists('authControllerSignIn', 'signInDto', signInDto)
|
|
276
|
-
const localVarPath = `/auth/login`;
|
|
486
|
+
const localVarPath = `/v1/auth/user-login`;
|
|
277
487
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
278
488
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
279
489
|
let baseOptions;
|
|
@@ -308,7 +518,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
308
518
|
authControllerSignUp: async (signupDto: SignupDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
309
519
|
// verify required parameter 'signupDto' is not null or undefined
|
|
310
520
|
assertParamExists('authControllerSignUp', 'signupDto', signupDto)
|
|
311
|
-
const localVarPath = `/auth/register`;
|
|
521
|
+
const localVarPath = `/v1/auth/user-register`;
|
|
312
522
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
313
523
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
314
524
|
let baseOptions;
|
|
@@ -349,22 +559,10 @@ export const AuthApiFp = function(configuration?: Configuration) {
|
|
|
349
559
|
* @param {*} [options] Override http request option.
|
|
350
560
|
* @throws {RequiredError}
|
|
351
561
|
*/
|
|
352
|
-
async
|
|
353
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
562
|
+
async authControllerGoogleLogin(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
563
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGoogleLogin(options);
|
|
354
564
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
355
|
-
const localVarOperationServerBasePath = operationServerMap['AuthApi.
|
|
356
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
357
|
-
},
|
|
358
|
-
/**
|
|
359
|
-
*
|
|
360
|
-
* @param {ResetPasswordDTO} resetPasswordDTO
|
|
361
|
-
* @param {*} [options] Override http request option.
|
|
362
|
-
* @throws {RequiredError}
|
|
363
|
-
*/
|
|
364
|
-
async authControllerResetPassword(resetPasswordDTO: ResetPasswordDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiResponseDto>> {
|
|
365
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerResetPassword(resetPasswordDTO, options);
|
|
366
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
367
|
-
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerResetPassword']?.[localVarOperationServerIndex]?.url;
|
|
565
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerGoogleLogin']?.[localVarOperationServerIndex]?.url;
|
|
368
566
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
369
567
|
},
|
|
370
568
|
/**
|
|
@@ -373,7 +571,7 @@ export const AuthApiFp = function(configuration?: Configuration) {
|
|
|
373
571
|
* @param {*} [options] Override http request option.
|
|
374
572
|
* @throws {RequiredError}
|
|
375
573
|
*/
|
|
376
|
-
async authControllerSignIn(signInDto: SignInDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
574
|
+
async authControllerSignIn(signInDto: SignInDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignInResponseDto>> {
|
|
377
575
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerSignIn(signInDto, options);
|
|
378
576
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
379
577
|
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerSignIn']?.[localVarOperationServerIndex]?.url;
|
|
@@ -406,17 +604,8 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
|
|
|
406
604
|
* @param {*} [options] Override http request option.
|
|
407
605
|
* @throws {RequiredError}
|
|
408
606
|
*/
|
|
409
|
-
|
|
410
|
-
return localVarFp.
|
|
411
|
-
},
|
|
412
|
-
/**
|
|
413
|
-
*
|
|
414
|
-
* @param {ResetPasswordDTO} resetPasswordDTO
|
|
415
|
-
* @param {*} [options] Override http request option.
|
|
416
|
-
* @throws {RequiredError}
|
|
417
|
-
*/
|
|
418
|
-
authControllerResetPassword(resetPasswordDTO: ResetPasswordDTO, options?: RawAxiosRequestConfig): AxiosPromise<ApiResponseDto> {
|
|
419
|
-
return localVarFp.authControllerResetPassword(resetPasswordDTO, options).then((request) => request(axios, basePath));
|
|
607
|
+
authControllerGoogleLogin(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
608
|
+
return localVarFp.authControllerGoogleLogin(options).then((request) => request(axios, basePath));
|
|
420
609
|
},
|
|
421
610
|
/**
|
|
422
611
|
*
|
|
@@ -424,7 +613,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
|
|
|
424
613
|
* @param {*} [options] Override http request option.
|
|
425
614
|
* @throws {RequiredError}
|
|
426
615
|
*/
|
|
427
|
-
authControllerSignIn(signInDto: SignInDto, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
616
|
+
authControllerSignIn(signInDto: SignInDto, options?: RawAxiosRequestConfig): AxiosPromise<SignInResponseDto> {
|
|
428
617
|
return localVarFp.authControllerSignIn(signInDto, options).then((request) => request(axios, basePath));
|
|
429
618
|
},
|
|
430
619
|
/**
|
|
@@ -452,19 +641,8 @@ export class AuthApi extends BaseAPI {
|
|
|
452
641
|
* @throws {RequiredError}
|
|
453
642
|
* @memberof AuthApi
|
|
454
643
|
*/
|
|
455
|
-
public
|
|
456
|
-
return AuthApiFp(this.configuration).
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
*
|
|
461
|
-
* @param {ResetPasswordDTO} resetPasswordDTO
|
|
462
|
-
* @param {*} [options] Override http request option.
|
|
463
|
-
* @throws {RequiredError}
|
|
464
|
-
* @memberof AuthApi
|
|
465
|
-
*/
|
|
466
|
-
public authControllerResetPassword(resetPasswordDTO: ResetPasswordDTO, options?: RawAxiosRequestConfig) {
|
|
467
|
-
return AuthApiFp(this.configuration).authControllerResetPassword(resetPasswordDTO, options).then((request) => request(this.axios, this.basePath));
|
|
644
|
+
public authControllerGoogleLogin(options?: RawAxiosRequestConfig) {
|
|
645
|
+
return AuthApiFp(this.configuration).authControllerGoogleLogin(options).then((request) => request(this.axios, this.basePath));
|
|
468
646
|
}
|
|
469
647
|
|
|
470
648
|
/**
|
|
@@ -503,8 +681,8 @@ export const GoalsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
503
681
|
* @param {*} [options] Override http request option.
|
|
504
682
|
* @throws {RequiredError}
|
|
505
683
|
*/
|
|
506
|
-
|
|
507
|
-
const localVarPath = `/goals`;
|
|
684
|
+
goalControllerListGoals: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
685
|
+
const localVarPath = `/v1/goals`;
|
|
508
686
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
509
687
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
510
688
|
let baseOptions;
|
|
@@ -522,45 +700,6 @@ export const GoalsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
522
700
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
523
701
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
524
702
|
|
|
525
|
-
return {
|
|
526
|
-
url: toPathString(localVarUrlObj),
|
|
527
|
-
options: localVarRequestOptions,
|
|
528
|
-
};
|
|
529
|
-
},
|
|
530
|
-
/**
|
|
531
|
-
*
|
|
532
|
-
* @param {Array<string>} requestBody
|
|
533
|
-
* @param {*} [options] Override http request option.
|
|
534
|
-
* @throws {RequiredError}
|
|
535
|
-
*/
|
|
536
|
-
goalControllerOnBoarded: async (requestBody: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
537
|
-
// verify required parameter 'requestBody' is not null or undefined
|
|
538
|
-
assertParamExists('goalControllerOnBoarded', 'requestBody', requestBody)
|
|
539
|
-
const localVarPath = `/goals`;
|
|
540
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
541
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
542
|
-
let baseOptions;
|
|
543
|
-
if (configuration) {
|
|
544
|
-
baseOptions = configuration.baseOptions;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
548
|
-
const localVarHeaderParameter = {} as any;
|
|
549
|
-
const localVarQueryParameter = {} as any;
|
|
550
|
-
|
|
551
|
-
// authentication bearer required
|
|
552
|
-
// http bearer authentication required
|
|
553
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
558
|
-
|
|
559
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
560
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
561
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
562
|
-
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
563
|
-
|
|
564
703
|
return {
|
|
565
704
|
url: toPathString(localVarUrlObj),
|
|
566
705
|
options: localVarRequestOptions,
|
|
@@ -581,22 +720,10 @@ export const GoalsApiFp = function(configuration?: Configuration) {
|
|
|
581
720
|
* @param {*} [options] Override http request option.
|
|
582
721
|
* @throws {RequiredError}
|
|
583
722
|
*/
|
|
584
|
-
async
|
|
585
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
723
|
+
async goalControllerListGoals(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GoalListResponse>> {
|
|
724
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.goalControllerListGoals(options);
|
|
586
725
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
587
|
-
const localVarOperationServerBasePath = operationServerMap['GoalsApi.
|
|
588
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
589
|
-
},
|
|
590
|
-
/**
|
|
591
|
-
*
|
|
592
|
-
* @param {Array<string>} requestBody
|
|
593
|
-
* @param {*} [options] Override http request option.
|
|
594
|
-
* @throws {RequiredError}
|
|
595
|
-
*/
|
|
596
|
-
async goalControllerOnBoarded(requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
597
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.goalControllerOnBoarded(requestBody, options);
|
|
598
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
599
|
-
const localVarOperationServerBasePath = operationServerMap['GoalsApi.goalControllerOnBoarded']?.[localVarOperationServerIndex]?.url;
|
|
726
|
+
const localVarOperationServerBasePath = operationServerMap['GoalsApi.goalControllerListGoals']?.[localVarOperationServerIndex]?.url;
|
|
600
727
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
601
728
|
},
|
|
602
729
|
}
|
|
@@ -614,17 +741,8 @@ export const GoalsApiFactory = function (configuration?: Configuration, basePath
|
|
|
614
741
|
* @param {*} [options] Override http request option.
|
|
615
742
|
* @throws {RequiredError}
|
|
616
743
|
*/
|
|
617
|
-
|
|
618
|
-
return localVarFp.
|
|
619
|
-
},
|
|
620
|
-
/**
|
|
621
|
-
*
|
|
622
|
-
* @param {Array<string>} requestBody
|
|
623
|
-
* @param {*} [options] Override http request option.
|
|
624
|
-
* @throws {RequiredError}
|
|
625
|
-
*/
|
|
626
|
-
goalControllerOnBoarded(requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
627
|
-
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));
|
|
628
746
|
},
|
|
629
747
|
};
|
|
630
748
|
};
|
|
@@ -642,19 +760,8 @@ export class GoalsApi extends BaseAPI {
|
|
|
642
760
|
* @throws {RequiredError}
|
|
643
761
|
* @memberof GoalsApi
|
|
644
762
|
*/
|
|
645
|
-
public
|
|
646
|
-
return GoalsApiFp(this.configuration).
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
/**
|
|
650
|
-
*
|
|
651
|
-
* @param {Array<string>} requestBody
|
|
652
|
-
* @param {*} [options] Override http request option.
|
|
653
|
-
* @throws {RequiredError}
|
|
654
|
-
* @memberof GoalsApi
|
|
655
|
-
*/
|
|
656
|
-
public goalControllerOnBoarded(requestBody: Array<string>, options?: RawAxiosRequestConfig) {
|
|
657
|
-
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));
|
|
658
765
|
}
|
|
659
766
|
}
|
|
660
767
|
|
|
@@ -672,7 +779,7 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
672
779
|
* @throws {RequiredError}
|
|
673
780
|
*/
|
|
674
781
|
paymentControllerGetPlans: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
675
|
-
const localVarPath = `/plans`;
|
|
782
|
+
const localVarPath = `/v1/plans`;
|
|
676
783
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
677
784
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
678
785
|
let baseOptions;
|
|
@@ -684,10 +791,6 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
684
791
|
const localVarHeaderParameter = {} as any;
|
|
685
792
|
const localVarQueryParameter = {} as any;
|
|
686
793
|
|
|
687
|
-
// authentication bearer required
|
|
688
|
-
// http bearer authentication required
|
|
689
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
690
|
-
|
|
691
794
|
|
|
692
795
|
|
|
693
796
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -714,7 +817,7 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
714
817
|
* @param {*} [options] Override http request option.
|
|
715
818
|
* @throws {RequiredError}
|
|
716
819
|
*/
|
|
717
|
-
async paymentControllerGetPlans(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
820
|
+
async paymentControllerGetPlans(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PlanEntity>>> {
|
|
718
821
|
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerGetPlans(options);
|
|
719
822
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
720
823
|
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerGetPlans']?.[localVarOperationServerIndex]?.url;
|
|
@@ -735,7 +838,7 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
735
838
|
* @param {*} [options] Override http request option.
|
|
736
839
|
* @throws {RequiredError}
|
|
737
840
|
*/
|
|
738
|
-
paymentControllerGetPlans(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
841
|
+
paymentControllerGetPlans(options?: RawAxiosRequestConfig): AxiosPromise<Array<PlanEntity>> {
|
|
739
842
|
return localVarFp.paymentControllerGetPlans(options).then((request) => request(axios, basePath));
|
|
740
843
|
},
|
|
741
844
|
};
|
|
@@ -773,7 +876,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
773
876
|
* @throws {RequiredError}
|
|
774
877
|
*/
|
|
775
878
|
usersControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
776
|
-
const localVarPath = `/user/me`;
|
|
879
|
+
const localVarPath = `/v1/user/me`;
|
|
777
880
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
778
881
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
779
882
|
let baseOptions;
|
|
@@ -809,7 +912,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
809
912
|
usersControllerOnBoarded: async (onBoardingDTO: OnBoardingDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
810
913
|
// verify required parameter 'onBoardingDTO' is not null or undefined
|
|
811
914
|
assertParamExists('usersControllerOnBoarded', 'onBoardingDTO', onBoardingDTO)
|
|
812
|
-
const localVarPath = `/user/onboarding`;
|
|
915
|
+
const localVarPath = `/v1/user/onboarding`;
|
|
813
916
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
814
917
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
815
918
|
let baseOptions;
|
|
@@ -854,7 +957,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
854
957
|
* @param {*} [options] Override http request option.
|
|
855
958
|
* @throws {RequiredError}
|
|
856
959
|
*/
|
|
857
|
-
async usersControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
960
|
+
async usersControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserMeDTO>> {
|
|
858
961
|
const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerGetMe(options);
|
|
859
962
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
860
963
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerGetMe']?.[localVarOperationServerIndex]?.url;
|
|
@@ -866,7 +969,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
866
969
|
* @param {*} [options] Override http request option.
|
|
867
970
|
* @throws {RequiredError}
|
|
868
971
|
*/
|
|
869
|
-
async usersControllerOnBoarded(onBoardingDTO: OnBoardingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
972
|
+
async usersControllerOnBoarded(onBoardingDTO: OnBoardingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnBoardingResponseDTO>> {
|
|
870
973
|
const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerOnBoarded(onBoardingDTO, options);
|
|
871
974
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
872
975
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerOnBoarded']?.[localVarOperationServerIndex]?.url;
|
|
@@ -887,7 +990,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
887
990
|
* @param {*} [options] Override http request option.
|
|
888
991
|
* @throws {RequiredError}
|
|
889
992
|
*/
|
|
890
|
-
usersControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
993
|
+
usersControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<UserMeDTO> {
|
|
891
994
|
return localVarFp.usersControllerGetMe(options).then((request) => request(axios, basePath));
|
|
892
995
|
},
|
|
893
996
|
/**
|
|
@@ -896,7 +999,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
896
999
|
* @param {*} [options] Override http request option.
|
|
897
1000
|
* @throws {RequiredError}
|
|
898
1001
|
*/
|
|
899
|
-
usersControllerOnBoarded(onBoardingDTO: OnBoardingDTO, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1002
|
+
usersControllerOnBoarded(onBoardingDTO: OnBoardingDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
|
|
900
1003
|
return localVarFp.usersControllerOnBoarded(onBoardingDTO, options).then((request) => request(axios, basePath));
|
|
901
1004
|
},
|
|
902
1005
|
};
|
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
|
*
|