@gooday_corp/gooday-api-client 0.0.1-beta → 0.0.3
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 +1525 -168
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -23,6 +23,237 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface AddDevicePayload
|
|
30
|
+
*/
|
|
31
|
+
export interface AddDevicePayload {
|
|
32
|
+
/**
|
|
33
|
+
* Name of the device
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AddDevicePayload
|
|
36
|
+
*/
|
|
37
|
+
'name': string;
|
|
38
|
+
/**
|
|
39
|
+
* Unique identifier for the device
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AddDevicePayload
|
|
42
|
+
*/
|
|
43
|
+
'identifier': string;
|
|
44
|
+
/**
|
|
45
|
+
* Token associated with the device
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AddDevicePayload
|
|
48
|
+
*/
|
|
49
|
+
'token': string;
|
|
50
|
+
/**
|
|
51
|
+
* Device os
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof AddDevicePayload
|
|
54
|
+
*/
|
|
55
|
+
'os': string;
|
|
56
|
+
/**
|
|
57
|
+
* Device version
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof AddDevicePayload
|
|
60
|
+
*/
|
|
61
|
+
'version': string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @export
|
|
66
|
+
* @interface AssistantEntity
|
|
67
|
+
*/
|
|
68
|
+
export interface AssistantEntity {
|
|
69
|
+
/**
|
|
70
|
+
* Unique identifier for the assistant
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof AssistantEntity
|
|
73
|
+
*/
|
|
74
|
+
'id': string;
|
|
75
|
+
/**
|
|
76
|
+
* Name of the assistant
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof AssistantEntity
|
|
79
|
+
*/
|
|
80
|
+
'name': string;
|
|
81
|
+
/**
|
|
82
|
+
* Thumbnail URL or path
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof AssistantEntity
|
|
85
|
+
*/
|
|
86
|
+
'thumbnail': string;
|
|
87
|
+
/**
|
|
88
|
+
* Array of availability times for the assistant
|
|
89
|
+
* @type {Array<string>}
|
|
90
|
+
* @memberof AssistantEntity
|
|
91
|
+
*/
|
|
92
|
+
'availability': Array<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Configuration object for the assistant
|
|
95
|
+
* @type {object}
|
|
96
|
+
* @memberof AssistantEntity
|
|
97
|
+
*/
|
|
98
|
+
'configuration': object;
|
|
99
|
+
/**
|
|
100
|
+
* Attributes object for the assistant
|
|
101
|
+
* @type {AttributesDto}
|
|
102
|
+
* @memberof AssistantEntity
|
|
103
|
+
*/
|
|
104
|
+
'attributes': AttributesDto;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @export
|
|
109
|
+
* @interface AssistantListResponse
|
|
110
|
+
*/
|
|
111
|
+
export interface AssistantListResponse {
|
|
112
|
+
/**
|
|
113
|
+
* statuscCode
|
|
114
|
+
* @type {number}
|
|
115
|
+
* @memberof AssistantListResponse
|
|
116
|
+
*/
|
|
117
|
+
'statusCode': number;
|
|
118
|
+
/**
|
|
119
|
+
* Assistant
|
|
120
|
+
* @type {Array<AssistantEntity>}
|
|
121
|
+
* @memberof AssistantListResponse
|
|
122
|
+
*/
|
|
123
|
+
'data': Array<AssistantEntity>;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @export
|
|
128
|
+
* @interface AttributesDto
|
|
129
|
+
*/
|
|
130
|
+
export interface AttributesDto {
|
|
131
|
+
/**
|
|
132
|
+
* List of skills with their titles and values
|
|
133
|
+
* @type {Array<SkillDto>}
|
|
134
|
+
* @memberof AttributesDto
|
|
135
|
+
*/
|
|
136
|
+
'skills': Array<SkillDto>;
|
|
137
|
+
/**
|
|
138
|
+
* List of likes of assistants
|
|
139
|
+
* @type {Array<string>}
|
|
140
|
+
* @memberof AttributesDto
|
|
141
|
+
*/
|
|
142
|
+
'likes': Array<string>;
|
|
143
|
+
/**
|
|
144
|
+
* List of disliking of assistants
|
|
145
|
+
* @type {Array<string>}
|
|
146
|
+
* @memberof AttributesDto
|
|
147
|
+
*/
|
|
148
|
+
'dislikes': Array<string>;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @export
|
|
153
|
+
* @interface DeviceAddResponse
|
|
154
|
+
*/
|
|
155
|
+
export interface DeviceAddResponse {
|
|
156
|
+
/**
|
|
157
|
+
* Status code of the response
|
|
158
|
+
* @type {number}
|
|
159
|
+
* @memberof DeviceAddResponse
|
|
160
|
+
*/
|
|
161
|
+
'statusCode': number;
|
|
162
|
+
/**
|
|
163
|
+
* Device details
|
|
164
|
+
* @type {DeviceEntity}
|
|
165
|
+
* @memberof DeviceAddResponse
|
|
166
|
+
*/
|
|
167
|
+
'data': DeviceEntity;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @export
|
|
172
|
+
* @interface DeviceEntity
|
|
173
|
+
*/
|
|
174
|
+
export interface DeviceEntity {
|
|
175
|
+
/**
|
|
176
|
+
* Name of the device
|
|
177
|
+
* @type {string}
|
|
178
|
+
* @memberof DeviceEntity
|
|
179
|
+
*/
|
|
180
|
+
'name': string;
|
|
181
|
+
/**
|
|
182
|
+
* Unique identifier for the device
|
|
183
|
+
* @type {string}
|
|
184
|
+
* @memberof DeviceEntity
|
|
185
|
+
*/
|
|
186
|
+
'identifier': string;
|
|
187
|
+
/**
|
|
188
|
+
* Last used date of the device
|
|
189
|
+
* @type {string}
|
|
190
|
+
* @memberof DeviceEntity
|
|
191
|
+
*/
|
|
192
|
+
'lastUsed': string;
|
|
193
|
+
/**
|
|
194
|
+
* Token associated with the device
|
|
195
|
+
* @type {string}
|
|
196
|
+
* @memberof DeviceEntity
|
|
197
|
+
*/
|
|
198
|
+
'token': string;
|
|
199
|
+
/**
|
|
200
|
+
* Activation status of the device
|
|
201
|
+
* @type {string}
|
|
202
|
+
* @memberof DeviceEntity
|
|
203
|
+
*/
|
|
204
|
+
'status': string;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @export
|
|
209
|
+
* @interface FileNameUploadDTO
|
|
210
|
+
*/
|
|
211
|
+
export interface FileNameUploadDTO {
|
|
212
|
+
/**
|
|
213
|
+
* A message providing additional details about the response
|
|
214
|
+
* @type {string}
|
|
215
|
+
* @memberof FileNameUploadDTO
|
|
216
|
+
*/
|
|
217
|
+
'fileName': string;
|
|
218
|
+
/**
|
|
219
|
+
* A name of bucket where you have to upload the image
|
|
220
|
+
* @type {string}
|
|
221
|
+
* @memberof FileNameUploadDTO
|
|
222
|
+
*/
|
|
223
|
+
'bucketName': string;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @export
|
|
228
|
+
* @interface ForgotPasswordPayloadDTO
|
|
229
|
+
*/
|
|
230
|
+
export interface ForgotPasswordPayloadDTO {
|
|
231
|
+
/**
|
|
232
|
+
* User Email
|
|
233
|
+
* @type {string}
|
|
234
|
+
* @memberof ForgotPasswordPayloadDTO
|
|
235
|
+
*/
|
|
236
|
+
'email': string;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @export
|
|
241
|
+
* @interface ForgotPasswordResponseDTO
|
|
242
|
+
*/
|
|
243
|
+
export interface ForgotPasswordResponseDTO {
|
|
244
|
+
/**
|
|
245
|
+
* statusCode
|
|
246
|
+
* @type {number}
|
|
247
|
+
* @memberof ForgotPasswordResponseDTO
|
|
248
|
+
*/
|
|
249
|
+
'statusCode': number;
|
|
250
|
+
/**
|
|
251
|
+
* message
|
|
252
|
+
* @type {string}
|
|
253
|
+
* @memberof ForgotPasswordResponseDTO
|
|
254
|
+
*/
|
|
255
|
+
'message': string;
|
|
256
|
+
}
|
|
26
257
|
/**
|
|
27
258
|
*
|
|
28
259
|
* @export
|
|
@@ -61,6 +292,127 @@ export interface GoalListResponse {
|
|
|
61
292
|
*/
|
|
62
293
|
'data': Array<GoalEntity>;
|
|
63
294
|
}
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* @export
|
|
298
|
+
* @interface GoogleOAuthResponseDTO
|
|
299
|
+
*/
|
|
300
|
+
export interface GoogleOAuthResponseDTO {
|
|
301
|
+
/**
|
|
302
|
+
* statuscCode
|
|
303
|
+
* @type {number}
|
|
304
|
+
* @memberof GoogleOAuthResponseDTO
|
|
305
|
+
*/
|
|
306
|
+
'statusCode': number;
|
|
307
|
+
/**
|
|
308
|
+
* User
|
|
309
|
+
* @type {SignupResponse}
|
|
310
|
+
* @memberof GoogleOAuthResponseDTO
|
|
311
|
+
*/
|
|
312
|
+
'data': SignupResponse;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
* @export
|
|
317
|
+
* @interface GoogleVerificationPayloadDTO
|
|
318
|
+
*/
|
|
319
|
+
export interface GoogleVerificationPayloadDTO {
|
|
320
|
+
/**
|
|
321
|
+
* The ID token provided by Google after authentication
|
|
322
|
+
* @type {string}
|
|
323
|
+
* @memberof GoogleVerificationPayloadDTO
|
|
324
|
+
*/
|
|
325
|
+
'token': string;
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
*
|
|
329
|
+
* @export
|
|
330
|
+
* @interface LoggedOutPayloadDTO
|
|
331
|
+
*/
|
|
332
|
+
export interface LoggedOutPayloadDTO {
|
|
333
|
+
/**
|
|
334
|
+
* Unique identifier for the device
|
|
335
|
+
* @type {string}
|
|
336
|
+
* @memberof LoggedOutPayloadDTO
|
|
337
|
+
*/
|
|
338
|
+
'identifier': string;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
*
|
|
342
|
+
* @export
|
|
343
|
+
* @interface LoggedOutResponse
|
|
344
|
+
*/
|
|
345
|
+
export interface LoggedOutResponse {
|
|
346
|
+
/**
|
|
347
|
+
* Status code of the response
|
|
348
|
+
* @type {number}
|
|
349
|
+
* @memberof LoggedOutResponse
|
|
350
|
+
*/
|
|
351
|
+
'statusCode': number;
|
|
352
|
+
/**
|
|
353
|
+
* Response Message
|
|
354
|
+
* @type {string}
|
|
355
|
+
* @memberof LoggedOutResponse
|
|
356
|
+
*/
|
|
357
|
+
'message': string;
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @export
|
|
362
|
+
* @interface MyAssistantResponse
|
|
363
|
+
*/
|
|
364
|
+
export interface MyAssistantResponse {
|
|
365
|
+
/**
|
|
366
|
+
* statuscCode
|
|
367
|
+
* @type {number}
|
|
368
|
+
* @memberof MyAssistantResponse
|
|
369
|
+
*/
|
|
370
|
+
'statusCode': number;
|
|
371
|
+
/**
|
|
372
|
+
* Assistant
|
|
373
|
+
* @type {AssistantEntity}
|
|
374
|
+
* @memberof MyAssistantResponse
|
|
375
|
+
*/
|
|
376
|
+
'data': AssistantEntity;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
* @export
|
|
381
|
+
* @interface NewPasswordPayloadDTO
|
|
382
|
+
*/
|
|
383
|
+
export interface NewPasswordPayloadDTO {
|
|
384
|
+
/**
|
|
385
|
+
* email
|
|
386
|
+
* @type {string}
|
|
387
|
+
* @memberof NewPasswordPayloadDTO
|
|
388
|
+
*/
|
|
389
|
+
'email': string;
|
|
390
|
+
/**
|
|
391
|
+
* New password User
|
|
392
|
+
* @type {string}
|
|
393
|
+
* @memberof NewPasswordPayloadDTO
|
|
394
|
+
*/
|
|
395
|
+
'password': string;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @export
|
|
400
|
+
* @interface NewPasswordResponseDTO
|
|
401
|
+
*/
|
|
402
|
+
export interface NewPasswordResponseDTO {
|
|
403
|
+
/**
|
|
404
|
+
* statuscCode
|
|
405
|
+
* @type {number}
|
|
406
|
+
* @memberof NewPasswordResponseDTO
|
|
407
|
+
*/
|
|
408
|
+
'statusCode': number;
|
|
409
|
+
/**
|
|
410
|
+
* message
|
|
411
|
+
* @type {string}
|
|
412
|
+
* @memberof NewPasswordResponseDTO
|
|
413
|
+
*/
|
|
414
|
+
'message': string;
|
|
415
|
+
}
|
|
64
416
|
/**
|
|
65
417
|
*
|
|
66
418
|
* @export
|
|
@@ -72,31 +424,31 @@ export interface OnBoardingDTO {
|
|
|
72
424
|
* @type {string}
|
|
73
425
|
* @memberof OnBoardingDTO
|
|
74
426
|
*/
|
|
75
|
-
'nickname'
|
|
427
|
+
'nickname'?: string;
|
|
76
428
|
/**
|
|
77
|
-
*
|
|
429
|
+
* Assistant
|
|
78
430
|
* @type {string}
|
|
79
431
|
* @memberof OnBoardingDTO
|
|
80
432
|
*/
|
|
81
|
-
'
|
|
433
|
+
'assistant'?: string;
|
|
82
434
|
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {
|
|
435
|
+
*
|
|
436
|
+
* @type {UserPlanDTO}
|
|
85
437
|
* @memberof OnBoardingDTO
|
|
86
438
|
*/
|
|
87
|
-
'plan'
|
|
439
|
+
'plan'?: UserPlanDTO;
|
|
88
440
|
/**
|
|
89
441
|
* Date of Birth
|
|
90
442
|
* @type {string}
|
|
91
443
|
* @memberof OnBoardingDTO
|
|
92
444
|
*/
|
|
93
|
-
'dob'
|
|
445
|
+
'dob'?: string;
|
|
94
446
|
/**
|
|
95
447
|
* Goals
|
|
96
448
|
* @type {Array<string>}
|
|
97
449
|
* @memberof OnBoardingDTO
|
|
98
450
|
*/
|
|
99
|
-
'goals'
|
|
451
|
+
'goals'?: Array<string>;
|
|
100
452
|
}
|
|
101
453
|
/**
|
|
102
454
|
*
|
|
@@ -135,6 +487,12 @@ export interface PlanEntity {
|
|
|
135
487
|
* @memberof PlanEntity
|
|
136
488
|
*/
|
|
137
489
|
'name': string;
|
|
490
|
+
/**
|
|
491
|
+
*
|
|
492
|
+
* @type {string}
|
|
493
|
+
* @memberof PlanEntity
|
|
494
|
+
*/
|
|
495
|
+
'description': string;
|
|
138
496
|
/**
|
|
139
497
|
* Array of features included in the plan
|
|
140
498
|
* @type {Array<PlanFeature>}
|
|
@@ -147,6 +505,12 @@ export interface PlanEntity {
|
|
|
147
505
|
* @memberof PlanEntity
|
|
148
506
|
*/
|
|
149
507
|
'prices': Array<PriceEntity>;
|
|
508
|
+
/**
|
|
509
|
+
* Background Image
|
|
510
|
+
* @type {string}
|
|
511
|
+
* @memberof PlanEntity
|
|
512
|
+
*/
|
|
513
|
+
'image': string;
|
|
150
514
|
}
|
|
151
515
|
/**
|
|
152
516
|
*
|
|
@@ -167,6 +531,25 @@ export interface PlanFeature {
|
|
|
167
531
|
*/
|
|
168
532
|
'children': Array<PlanFeature>;
|
|
169
533
|
}
|
|
534
|
+
/**
|
|
535
|
+
*
|
|
536
|
+
* @export
|
|
537
|
+
* @interface PlanResponseDTO
|
|
538
|
+
*/
|
|
539
|
+
export interface PlanResponseDTO {
|
|
540
|
+
/**
|
|
541
|
+
* Message
|
|
542
|
+
* @type {string}
|
|
543
|
+
* @memberof PlanResponseDTO
|
|
544
|
+
*/
|
|
545
|
+
'message': string;
|
|
546
|
+
/**
|
|
547
|
+
* Message
|
|
548
|
+
* @type {Array<PlanEntity>}
|
|
549
|
+
* @memberof PlanResponseDTO
|
|
550
|
+
*/
|
|
551
|
+
'data': Array<PlanEntity>;
|
|
552
|
+
}
|
|
170
553
|
/**
|
|
171
554
|
*
|
|
172
555
|
* @export
|
|
@@ -211,32 +594,70 @@ export type PriceEntityIntervalEnum = typeof PriceEntityIntervalEnum[keyof typeo
|
|
|
211
594
|
/**
|
|
212
595
|
*
|
|
213
596
|
* @export
|
|
214
|
-
* @interface
|
|
597
|
+
* @interface ResetPasswordPayloadDTO
|
|
215
598
|
*/
|
|
216
|
-
export interface
|
|
599
|
+
export interface ResetPasswordPayloadDTO {
|
|
217
600
|
/**
|
|
218
|
-
*
|
|
601
|
+
* Old password for the user
|
|
219
602
|
* @type {string}
|
|
220
|
-
* @memberof
|
|
603
|
+
* @memberof ResetPasswordPayloadDTO
|
|
221
604
|
*/
|
|
222
|
-
'
|
|
605
|
+
'currentPasword': string;
|
|
223
606
|
/**
|
|
224
|
-
*
|
|
607
|
+
* The New password for the user account
|
|
225
608
|
* @type {string}
|
|
226
|
-
* @memberof
|
|
609
|
+
* @memberof ResetPasswordPayloadDTO
|
|
227
610
|
*/
|
|
228
|
-
'
|
|
611
|
+
'newPassword': string;
|
|
229
612
|
}
|
|
230
613
|
/**
|
|
231
614
|
*
|
|
232
615
|
* @export
|
|
233
|
-
* @interface
|
|
616
|
+
* @interface ResetPasswordResponseDTO
|
|
234
617
|
*/
|
|
235
|
-
export interface
|
|
618
|
+
export interface ResetPasswordResponseDTO {
|
|
236
619
|
/**
|
|
237
|
-
*
|
|
238
|
-
* @type {
|
|
239
|
-
* @memberof
|
|
620
|
+
* statuscCode
|
|
621
|
+
* @type {number}
|
|
622
|
+
* @memberof ResetPasswordResponseDTO
|
|
623
|
+
*/
|
|
624
|
+
'statusCode': number;
|
|
625
|
+
/**
|
|
626
|
+
* message
|
|
627
|
+
* @type {string}
|
|
628
|
+
* @memberof ResetPasswordResponseDTO
|
|
629
|
+
*/
|
|
630
|
+
'message': string;
|
|
631
|
+
}
|
|
632
|
+
/**
|
|
633
|
+
*
|
|
634
|
+
* @export
|
|
635
|
+
* @interface SignInDto
|
|
636
|
+
*/
|
|
637
|
+
export interface SignInDto {
|
|
638
|
+
/**
|
|
639
|
+
* Email
|
|
640
|
+
* @type {string}
|
|
641
|
+
* @memberof SignInDto
|
|
642
|
+
*/
|
|
643
|
+
'email': string;
|
|
644
|
+
/**
|
|
645
|
+
* Password of user
|
|
646
|
+
* @type {string}
|
|
647
|
+
* @memberof SignInDto
|
|
648
|
+
*/
|
|
649
|
+
'password': string;
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
*
|
|
653
|
+
* @export
|
|
654
|
+
* @interface SignInResponse
|
|
655
|
+
*/
|
|
656
|
+
export interface SignInResponse {
|
|
657
|
+
/**
|
|
658
|
+
* User
|
|
659
|
+
* @type {UserEntity}
|
|
660
|
+
* @memberof SignInResponse
|
|
240
661
|
*/
|
|
241
662
|
'user': UserEntity;
|
|
242
663
|
/**
|
|
@@ -271,6 +692,25 @@ export interface SignInResponseDto {
|
|
|
271
692
|
*/
|
|
272
693
|
'data': SignInResponse;
|
|
273
694
|
}
|
|
695
|
+
/**
|
|
696
|
+
*
|
|
697
|
+
* @export
|
|
698
|
+
* @interface SignedUrlResponseDTO
|
|
699
|
+
*/
|
|
700
|
+
export interface SignedUrlResponseDTO {
|
|
701
|
+
/**
|
|
702
|
+
* Status code of the response
|
|
703
|
+
* @type {number}
|
|
704
|
+
* @memberof SignedUrlResponseDTO
|
|
705
|
+
*/
|
|
706
|
+
'statusCode': number;
|
|
707
|
+
/**
|
|
708
|
+
* A pre-signed Url from the Google..
|
|
709
|
+
* @type {string}
|
|
710
|
+
* @memberof SignedUrlResponseDTO
|
|
711
|
+
*/
|
|
712
|
+
'signedUrl': string;
|
|
713
|
+
}
|
|
274
714
|
/**
|
|
275
715
|
*
|
|
276
716
|
* @export
|
|
@@ -278,11 +718,17 @@ export interface SignInResponseDto {
|
|
|
278
718
|
*/
|
|
279
719
|
export interface SignupDto {
|
|
280
720
|
/**
|
|
281
|
-
* The name of the user
|
|
721
|
+
* The first name of the user
|
|
282
722
|
* @type {string}
|
|
283
723
|
* @memberof SignupDto
|
|
284
724
|
*/
|
|
285
|
-
'
|
|
725
|
+
'firstName': string;
|
|
726
|
+
/**
|
|
727
|
+
* The last name of the user
|
|
728
|
+
* @type {string}
|
|
729
|
+
* @memberof SignupDto
|
|
730
|
+
*/
|
|
731
|
+
'lastName': string;
|
|
286
732
|
/**
|
|
287
733
|
* The email of the user
|
|
288
734
|
* @type {string}
|
|
@@ -290,7 +736,7 @@ export interface SignupDto {
|
|
|
290
736
|
*/
|
|
291
737
|
'email': string;
|
|
292
738
|
/**
|
|
293
|
-
*
|
|
739
|
+
* User Profile Name
|
|
294
740
|
* @type {string}
|
|
295
741
|
* @memberof SignupDto
|
|
296
742
|
*/
|
|
@@ -340,6 +786,25 @@ export interface SignupResponseDto {
|
|
|
340
786
|
*/
|
|
341
787
|
'data': SignupResponse;
|
|
342
788
|
}
|
|
789
|
+
/**
|
|
790
|
+
*
|
|
791
|
+
* @export
|
|
792
|
+
* @interface SkillDto
|
|
793
|
+
*/
|
|
794
|
+
export interface SkillDto {
|
|
795
|
+
/**
|
|
796
|
+
* Title of the skill
|
|
797
|
+
* @type {string}
|
|
798
|
+
* @memberof SkillDto
|
|
799
|
+
*/
|
|
800
|
+
'title': string;
|
|
801
|
+
/**
|
|
802
|
+
* Value or rating of the skill out of 1
|
|
803
|
+
* @type {number}
|
|
804
|
+
* @memberof SkillDto
|
|
805
|
+
*/
|
|
806
|
+
'weightage': number;
|
|
807
|
+
}
|
|
343
808
|
/**
|
|
344
809
|
*
|
|
345
810
|
* @export
|
|
@@ -353,11 +818,17 @@ export interface UserEntity {
|
|
|
353
818
|
*/
|
|
354
819
|
'_id': string;
|
|
355
820
|
/**
|
|
356
|
-
*
|
|
821
|
+
* First name of the user
|
|
357
822
|
* @type {string}
|
|
358
823
|
* @memberof UserEntity
|
|
359
824
|
*/
|
|
360
|
-
'
|
|
825
|
+
'firstName': string;
|
|
826
|
+
/**
|
|
827
|
+
* Last name of the user
|
|
828
|
+
* @type {string}
|
|
829
|
+
* @memberof UserEntity
|
|
830
|
+
*/
|
|
831
|
+
'lastName': string;
|
|
361
832
|
/**
|
|
362
833
|
* Email address of the user
|
|
363
834
|
* @type {string}
|
|
@@ -377,11 +848,11 @@ export interface UserEntity {
|
|
|
377
848
|
*/
|
|
378
849
|
'dob': string;
|
|
379
850
|
/**
|
|
380
|
-
*
|
|
851
|
+
* Assistant ID
|
|
381
852
|
* @type {string}
|
|
382
853
|
* @memberof UserEntity
|
|
383
854
|
*/
|
|
384
|
-
'
|
|
855
|
+
'assistant': string;
|
|
385
856
|
/**
|
|
386
857
|
* Indicates whether the user\'s email has been verified
|
|
387
858
|
* @type {boolean}
|
|
@@ -402,62 +873,860 @@ export interface UserEntity {
|
|
|
402
873
|
'goals': Array<string>;
|
|
403
874
|
/**
|
|
404
875
|
* Plan subscribed by the user
|
|
405
|
-
* @type {
|
|
876
|
+
* @type {UserPlanDTO}
|
|
406
877
|
* @memberof UserEntity
|
|
407
878
|
*/
|
|
408
|
-
'plan':
|
|
879
|
+
'plan': UserPlanDTO;
|
|
409
880
|
/**
|
|
410
881
|
* Action user has to perform
|
|
411
|
-
* @type {string}
|
|
882
|
+
* @type {Array<string>}
|
|
412
883
|
* @memberof UserEntity
|
|
413
884
|
*/
|
|
414
|
-
'
|
|
885
|
+
'pendingAction': Array<string>;
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
*
|
|
889
|
+
* @export
|
|
890
|
+
* @interface UserMeDTO
|
|
891
|
+
*/
|
|
892
|
+
export interface UserMeDTO {
|
|
893
|
+
/**
|
|
894
|
+
* statuscCode
|
|
895
|
+
* @type {number}
|
|
896
|
+
* @memberof UserMeDTO
|
|
897
|
+
*/
|
|
898
|
+
'statusCode': number;
|
|
899
|
+
/**
|
|
900
|
+
* User
|
|
901
|
+
* @type {UserEntity}
|
|
902
|
+
* @memberof UserMeDTO
|
|
903
|
+
*/
|
|
904
|
+
'data': UserEntity;
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
*
|
|
908
|
+
* @export
|
|
909
|
+
* @interface UserPlanDTO
|
|
910
|
+
*/
|
|
911
|
+
export interface UserPlanDTO {
|
|
912
|
+
/**
|
|
913
|
+
* id
|
|
914
|
+
* @type {string}
|
|
915
|
+
* @memberof UserPlanDTO
|
|
916
|
+
*/
|
|
917
|
+
'name': UserPlanDTONameEnum;
|
|
918
|
+
/**
|
|
919
|
+
* id
|
|
920
|
+
* @type {string}
|
|
921
|
+
* @memberof UserPlanDTO
|
|
922
|
+
*/
|
|
923
|
+
'id': string;
|
|
415
924
|
}
|
|
416
925
|
|
|
417
|
-
export const
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
Dob: 'dob',
|
|
421
|
-
Gender: 'gender',
|
|
422
|
-
Goals: 'goals',
|
|
423
|
-
Plan: 'plan'
|
|
926
|
+
export const UserPlanDTONameEnum = {
|
|
927
|
+
Free: 'Free',
|
|
928
|
+
Pro: 'Pro'
|
|
424
929
|
} as const;
|
|
425
930
|
|
|
426
|
-
export type
|
|
931
|
+
export type UserPlanDTONameEnum = typeof UserPlanDTONameEnum[keyof typeof UserPlanDTONameEnum];
|
|
427
932
|
|
|
428
933
|
/**
|
|
429
934
|
*
|
|
430
935
|
* @export
|
|
431
|
-
* @interface
|
|
936
|
+
* @interface VerifyOTPPayloadDTO
|
|
432
937
|
*/
|
|
433
|
-
export interface
|
|
938
|
+
export interface VerifyOTPPayloadDTO {
|
|
939
|
+
/**
|
|
940
|
+
* 6 digit otp from mail
|
|
941
|
+
* @type {string}
|
|
942
|
+
* @memberof VerifyOTPPayloadDTO
|
|
943
|
+
*/
|
|
944
|
+
'otp': string;
|
|
945
|
+
/**
|
|
946
|
+
* Email of user
|
|
947
|
+
* @type {string}
|
|
948
|
+
* @memberof VerifyOTPPayloadDTO
|
|
949
|
+
*/
|
|
950
|
+
'email': string;
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
*
|
|
954
|
+
* @export
|
|
955
|
+
* @interface VerifyOTPResponseDTO
|
|
956
|
+
*/
|
|
957
|
+
export interface VerifyOTPResponseDTO {
|
|
958
|
+
/**
|
|
959
|
+
* The HTTP status code
|
|
960
|
+
* @type {number}
|
|
961
|
+
* @memberof VerifyOTPResponseDTO
|
|
962
|
+
*/
|
|
963
|
+
'statusCode': number;
|
|
964
|
+
/**
|
|
965
|
+
* The
|
|
966
|
+
* @type {string}
|
|
967
|
+
* @memberof VerifyOTPResponseDTO
|
|
968
|
+
*/
|
|
969
|
+
'message': string;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* AIApi - axios parameter creator
|
|
974
|
+
* @export
|
|
975
|
+
*/
|
|
976
|
+
export const AIApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
977
|
+
return {
|
|
978
|
+
/**
|
|
979
|
+
*
|
|
980
|
+
* @param {*} [options] Override http request option.
|
|
981
|
+
* @throws {RequiredError}
|
|
982
|
+
*/
|
|
983
|
+
assistantControllerListAssistants: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
984
|
+
const localVarPath = `/v1/assistant/list`;
|
|
985
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
986
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
987
|
+
let baseOptions;
|
|
988
|
+
if (configuration) {
|
|
989
|
+
baseOptions = configuration.baseOptions;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
993
|
+
const localVarHeaderParameter = {} as any;
|
|
994
|
+
const localVarQueryParameter = {} as any;
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
999
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1000
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1001
|
+
|
|
1002
|
+
return {
|
|
1003
|
+
url: toPathString(localVarUrlObj),
|
|
1004
|
+
options: localVarRequestOptions,
|
|
1005
|
+
};
|
|
1006
|
+
},
|
|
1007
|
+
/**
|
|
1008
|
+
*
|
|
1009
|
+
* @param {*} [options] Override http request option.
|
|
1010
|
+
* @throws {RequiredError}
|
|
1011
|
+
*/
|
|
1012
|
+
assistantControllerMyAssistant: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1013
|
+
const localVarPath = `/v1/assistant/me`;
|
|
1014
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1015
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1016
|
+
let baseOptions;
|
|
1017
|
+
if (configuration) {
|
|
1018
|
+
baseOptions = configuration.baseOptions;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1022
|
+
const localVarHeaderParameter = {} as any;
|
|
1023
|
+
const localVarQueryParameter = {} as any;
|
|
1024
|
+
|
|
1025
|
+
// authentication bearer required
|
|
1026
|
+
// http bearer authentication required
|
|
1027
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1032
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1033
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1034
|
+
|
|
1035
|
+
return {
|
|
1036
|
+
url: toPathString(localVarUrlObj),
|
|
1037
|
+
options: localVarRequestOptions,
|
|
1038
|
+
};
|
|
1039
|
+
},
|
|
1040
|
+
}
|
|
1041
|
+
};
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
* AIApi - functional programming interface
|
|
1045
|
+
* @export
|
|
1046
|
+
*/
|
|
1047
|
+
export const AIApiFp = function(configuration?: Configuration) {
|
|
1048
|
+
const localVarAxiosParamCreator = AIApiAxiosParamCreator(configuration)
|
|
1049
|
+
return {
|
|
1050
|
+
/**
|
|
1051
|
+
*
|
|
1052
|
+
* @param {*} [options] Override http request option.
|
|
1053
|
+
* @throws {RequiredError}
|
|
1054
|
+
*/
|
|
1055
|
+
async assistantControllerListAssistants(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssistantListResponse>> {
|
|
1056
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.assistantControllerListAssistants(options);
|
|
1057
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1058
|
+
const localVarOperationServerBasePath = operationServerMap['AIApi.assistantControllerListAssistants']?.[localVarOperationServerIndex]?.url;
|
|
1059
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1060
|
+
},
|
|
1061
|
+
/**
|
|
1062
|
+
*
|
|
1063
|
+
* @param {*} [options] Override http request option.
|
|
1064
|
+
* @throws {RequiredError}
|
|
1065
|
+
*/
|
|
1066
|
+
async assistantControllerMyAssistant(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MyAssistantResponse>> {
|
|
1067
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.assistantControllerMyAssistant(options);
|
|
1068
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1069
|
+
const localVarOperationServerBasePath = operationServerMap['AIApi.assistantControllerMyAssistant']?.[localVarOperationServerIndex]?.url;
|
|
1070
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1071
|
+
},
|
|
1072
|
+
}
|
|
1073
|
+
};
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* AIApi - factory interface
|
|
1077
|
+
* @export
|
|
1078
|
+
*/
|
|
1079
|
+
export const AIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1080
|
+
const localVarFp = AIApiFp(configuration)
|
|
1081
|
+
return {
|
|
1082
|
+
/**
|
|
1083
|
+
*
|
|
1084
|
+
* @param {*} [options] Override http request option.
|
|
1085
|
+
* @throws {RequiredError}
|
|
1086
|
+
*/
|
|
1087
|
+
assistantControllerListAssistants(options?: RawAxiosRequestConfig): AxiosPromise<AssistantListResponse> {
|
|
1088
|
+
return localVarFp.assistantControllerListAssistants(options).then((request) => request(axios, basePath));
|
|
1089
|
+
},
|
|
1090
|
+
/**
|
|
1091
|
+
*
|
|
1092
|
+
* @param {*} [options] Override http request option.
|
|
1093
|
+
* @throws {RequiredError}
|
|
1094
|
+
*/
|
|
1095
|
+
assistantControllerMyAssistant(options?: RawAxiosRequestConfig): AxiosPromise<MyAssistantResponse> {
|
|
1096
|
+
return localVarFp.assistantControllerMyAssistant(options).then((request) => request(axios, basePath));
|
|
1097
|
+
},
|
|
1098
|
+
};
|
|
1099
|
+
};
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* AIApi - object-oriented interface
|
|
1103
|
+
* @export
|
|
1104
|
+
* @class AIApi
|
|
1105
|
+
* @extends {BaseAPI}
|
|
1106
|
+
*/
|
|
1107
|
+
export class AIApi extends BaseAPI {
|
|
1108
|
+
/**
|
|
1109
|
+
*
|
|
1110
|
+
* @param {*} [options] Override http request option.
|
|
1111
|
+
* @throws {RequiredError}
|
|
1112
|
+
* @memberof AIApi
|
|
1113
|
+
*/
|
|
1114
|
+
public assistantControllerListAssistants(options?: RawAxiosRequestConfig) {
|
|
1115
|
+
return AIApiFp(this.configuration).assistantControllerListAssistants(options).then((request) => request(this.axios, this.basePath));
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
*
|
|
1120
|
+
* @param {*} [options] Override http request option.
|
|
1121
|
+
* @throws {RequiredError}
|
|
1122
|
+
* @memberof AIApi
|
|
1123
|
+
*/
|
|
1124
|
+
public assistantControllerMyAssistant(options?: RawAxiosRequestConfig) {
|
|
1125
|
+
return AIApiFp(this.configuration).assistantControllerMyAssistant(options).then((request) => request(this.axios, this.basePath));
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* AuthApi - axios parameter creator
|
|
1133
|
+
* @export
|
|
1134
|
+
*/
|
|
1135
|
+
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1136
|
+
return {
|
|
1137
|
+
/**
|
|
1138
|
+
*
|
|
1139
|
+
* @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
|
|
1140
|
+
* @param {*} [options] Override http request option.
|
|
1141
|
+
* @throws {RequiredError}
|
|
1142
|
+
*/
|
|
1143
|
+
authControllerCreateNewPassword: async (newPasswordPayloadDTO: NewPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1144
|
+
// verify required parameter 'newPasswordPayloadDTO' is not null or undefined
|
|
1145
|
+
assertParamExists('authControllerCreateNewPassword', 'newPasswordPayloadDTO', newPasswordPayloadDTO)
|
|
1146
|
+
const localVarPath = `/v1/auth/new-password`;
|
|
1147
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1148
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1149
|
+
let baseOptions;
|
|
1150
|
+
if (configuration) {
|
|
1151
|
+
baseOptions = configuration.baseOptions;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1155
|
+
const localVarHeaderParameter = {} as any;
|
|
1156
|
+
const localVarQueryParameter = {} as any;
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1161
|
+
|
|
1162
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1163
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1164
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1165
|
+
localVarRequestOptions.data = serializeDataIfNeeded(newPasswordPayloadDTO, localVarRequestOptions, configuration)
|
|
1166
|
+
|
|
1167
|
+
return {
|
|
1168
|
+
url: toPathString(localVarUrlObj),
|
|
1169
|
+
options: localVarRequestOptions,
|
|
1170
|
+
};
|
|
1171
|
+
},
|
|
1172
|
+
/**
|
|
1173
|
+
*
|
|
1174
|
+
* @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
|
|
1175
|
+
* @param {*} [options] Override http request option.
|
|
1176
|
+
* @throws {RequiredError}
|
|
1177
|
+
*/
|
|
1178
|
+
authControllerForgotPassword: async (forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1179
|
+
// verify required parameter 'forgotPasswordPayloadDTO' is not null or undefined
|
|
1180
|
+
assertParamExists('authControllerForgotPassword', 'forgotPasswordPayloadDTO', forgotPasswordPayloadDTO)
|
|
1181
|
+
const localVarPath = `/v1/auth/forgot-password`;
|
|
1182
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1183
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1184
|
+
let baseOptions;
|
|
1185
|
+
if (configuration) {
|
|
1186
|
+
baseOptions = configuration.baseOptions;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1190
|
+
const localVarHeaderParameter = {} as any;
|
|
1191
|
+
const localVarQueryParameter = {} as any;
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1196
|
+
|
|
1197
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1198
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1199
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1200
|
+
localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordPayloadDTO, localVarRequestOptions, configuration)
|
|
1201
|
+
|
|
1202
|
+
return {
|
|
1203
|
+
url: toPathString(localVarUrlObj),
|
|
1204
|
+
options: localVarRequestOptions,
|
|
1205
|
+
};
|
|
1206
|
+
},
|
|
1207
|
+
/**
|
|
1208
|
+
*
|
|
1209
|
+
* @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
|
|
1210
|
+
* @param {*} [options] Override http request option.
|
|
1211
|
+
* @throws {RequiredError}
|
|
1212
|
+
*/
|
|
1213
|
+
authControllerResentOTP: async (forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1214
|
+
// verify required parameter 'forgotPasswordPayloadDTO' is not null or undefined
|
|
1215
|
+
assertParamExists('authControllerResentOTP', 'forgotPasswordPayloadDTO', forgotPasswordPayloadDTO)
|
|
1216
|
+
const localVarPath = `/v1/auth/resend-otp`;
|
|
1217
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1218
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1219
|
+
let baseOptions;
|
|
1220
|
+
if (configuration) {
|
|
1221
|
+
baseOptions = configuration.baseOptions;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1225
|
+
const localVarHeaderParameter = {} as any;
|
|
1226
|
+
const localVarQueryParameter = {} as any;
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1231
|
+
|
|
1232
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1233
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1234
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1235
|
+
localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordPayloadDTO, localVarRequestOptions, configuration)
|
|
1236
|
+
|
|
1237
|
+
return {
|
|
1238
|
+
url: toPathString(localVarUrlObj),
|
|
1239
|
+
options: localVarRequestOptions,
|
|
1240
|
+
};
|
|
1241
|
+
},
|
|
1242
|
+
/**
|
|
1243
|
+
*
|
|
1244
|
+
* @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
|
|
1245
|
+
* @param {*} [options] Override http request option.
|
|
1246
|
+
* @throws {RequiredError}
|
|
1247
|
+
*/
|
|
1248
|
+
authControllerResetPassword: async (resetPasswordPayloadDTO: ResetPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1249
|
+
// verify required parameter 'resetPasswordPayloadDTO' is not null or undefined
|
|
1250
|
+
assertParamExists('authControllerResetPassword', 'resetPasswordPayloadDTO', resetPasswordPayloadDTO)
|
|
1251
|
+
const localVarPath = `/v1/auth/reset-password`;
|
|
1252
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1253
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1254
|
+
let baseOptions;
|
|
1255
|
+
if (configuration) {
|
|
1256
|
+
baseOptions = configuration.baseOptions;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1260
|
+
const localVarHeaderParameter = {} as any;
|
|
1261
|
+
const localVarQueryParameter = {} as any;
|
|
1262
|
+
|
|
1263
|
+
// authentication bearer required
|
|
1264
|
+
// http bearer authentication required
|
|
1265
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1270
|
+
|
|
1271
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1272
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1273
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1274
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resetPasswordPayloadDTO, localVarRequestOptions, configuration)
|
|
1275
|
+
|
|
1276
|
+
return {
|
|
1277
|
+
url: toPathString(localVarUrlObj),
|
|
1278
|
+
options: localVarRequestOptions,
|
|
1279
|
+
};
|
|
1280
|
+
},
|
|
1281
|
+
/**
|
|
1282
|
+
*
|
|
1283
|
+
* @param {SignInDto} signInDto
|
|
1284
|
+
* @param {*} [options] Override http request option.
|
|
1285
|
+
* @throws {RequiredError}
|
|
1286
|
+
*/
|
|
1287
|
+
authControllerSignIn: async (signInDto: SignInDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1288
|
+
// verify required parameter 'signInDto' is not null or undefined
|
|
1289
|
+
assertParamExists('authControllerSignIn', 'signInDto', signInDto)
|
|
1290
|
+
const localVarPath = `/v1/auth/user-login`;
|
|
1291
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1292
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1293
|
+
let baseOptions;
|
|
1294
|
+
if (configuration) {
|
|
1295
|
+
baseOptions = configuration.baseOptions;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1299
|
+
const localVarHeaderParameter = {} as any;
|
|
1300
|
+
const localVarQueryParameter = {} as any;
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1305
|
+
|
|
1306
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1307
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1308
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1309
|
+
localVarRequestOptions.data = serializeDataIfNeeded(signInDto, localVarRequestOptions, configuration)
|
|
1310
|
+
|
|
1311
|
+
return {
|
|
1312
|
+
url: toPathString(localVarUrlObj),
|
|
1313
|
+
options: localVarRequestOptions,
|
|
1314
|
+
};
|
|
1315
|
+
},
|
|
1316
|
+
/**
|
|
1317
|
+
*
|
|
1318
|
+
* @param {LoggedOutPayloadDTO} loggedOutPayloadDTO
|
|
1319
|
+
* @param {*} [options] Override http request option.
|
|
1320
|
+
* @throws {RequiredError}
|
|
1321
|
+
*/
|
|
1322
|
+
authControllerSignOut: async (loggedOutPayloadDTO: LoggedOutPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1323
|
+
// verify required parameter 'loggedOutPayloadDTO' is not null or undefined
|
|
1324
|
+
assertParamExists('authControllerSignOut', 'loggedOutPayloadDTO', loggedOutPayloadDTO)
|
|
1325
|
+
const localVarPath = `/v1/auth/user-logout`;
|
|
1326
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1327
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1328
|
+
let baseOptions;
|
|
1329
|
+
if (configuration) {
|
|
1330
|
+
baseOptions = configuration.baseOptions;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1334
|
+
const localVarHeaderParameter = {} as any;
|
|
1335
|
+
const localVarQueryParameter = {} as any;
|
|
1336
|
+
|
|
1337
|
+
// authentication bearer required
|
|
1338
|
+
// http bearer authentication required
|
|
1339
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
|
|
1343
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1344
|
+
|
|
1345
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1346
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1347
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1348
|
+
localVarRequestOptions.data = serializeDataIfNeeded(loggedOutPayloadDTO, localVarRequestOptions, configuration)
|
|
1349
|
+
|
|
1350
|
+
return {
|
|
1351
|
+
url: toPathString(localVarUrlObj),
|
|
1352
|
+
options: localVarRequestOptions,
|
|
1353
|
+
};
|
|
1354
|
+
},
|
|
1355
|
+
/**
|
|
1356
|
+
*
|
|
1357
|
+
* @param {SignupDto} signupDto
|
|
1358
|
+
* @param {*} [options] Override http request option.
|
|
1359
|
+
* @throws {RequiredError}
|
|
1360
|
+
*/
|
|
1361
|
+
authControllerSignUp: async (signupDto: SignupDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1362
|
+
// verify required parameter 'signupDto' is not null or undefined
|
|
1363
|
+
assertParamExists('authControllerSignUp', 'signupDto', signupDto)
|
|
1364
|
+
const localVarPath = `/v1/auth/user-register`;
|
|
1365
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1366
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1367
|
+
let baseOptions;
|
|
1368
|
+
if (configuration) {
|
|
1369
|
+
baseOptions = configuration.baseOptions;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1373
|
+
const localVarHeaderParameter = {} as any;
|
|
1374
|
+
const localVarQueryParameter = {} as any;
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1379
|
+
|
|
1380
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1381
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1382
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1383
|
+
localVarRequestOptions.data = serializeDataIfNeeded(signupDto, localVarRequestOptions, configuration)
|
|
1384
|
+
|
|
1385
|
+
return {
|
|
1386
|
+
url: toPathString(localVarUrlObj),
|
|
1387
|
+
options: localVarRequestOptions,
|
|
1388
|
+
};
|
|
1389
|
+
},
|
|
1390
|
+
/**
|
|
1391
|
+
*
|
|
1392
|
+
* @param {VerifyOTPPayloadDTO} verifyOTPPayloadDTO
|
|
1393
|
+
* @param {*} [options] Override http request option.
|
|
1394
|
+
* @throws {RequiredError}
|
|
1395
|
+
*/
|
|
1396
|
+
authControllerVerifyOTP: async (verifyOTPPayloadDTO: VerifyOTPPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1397
|
+
// verify required parameter 'verifyOTPPayloadDTO' is not null or undefined
|
|
1398
|
+
assertParamExists('authControllerVerifyOTP', 'verifyOTPPayloadDTO', verifyOTPPayloadDTO)
|
|
1399
|
+
const localVarPath = `/v1/auth/verify-otp`;
|
|
1400
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1401
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1402
|
+
let baseOptions;
|
|
1403
|
+
if (configuration) {
|
|
1404
|
+
baseOptions = configuration.baseOptions;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1408
|
+
const localVarHeaderParameter = {} as any;
|
|
1409
|
+
const localVarQueryParameter = {} as any;
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1414
|
+
|
|
1415
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1416
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1417
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1418
|
+
localVarRequestOptions.data = serializeDataIfNeeded(verifyOTPPayloadDTO, localVarRequestOptions, configuration)
|
|
1419
|
+
|
|
1420
|
+
return {
|
|
1421
|
+
url: toPathString(localVarUrlObj),
|
|
1422
|
+
options: localVarRequestOptions,
|
|
1423
|
+
};
|
|
1424
|
+
},
|
|
1425
|
+
}
|
|
1426
|
+
};
|
|
1427
|
+
|
|
1428
|
+
/**
|
|
1429
|
+
* AuthApi - functional programming interface
|
|
1430
|
+
* @export
|
|
1431
|
+
*/
|
|
1432
|
+
export const AuthApiFp = function(configuration?: Configuration) {
|
|
1433
|
+
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
|
|
1434
|
+
return {
|
|
1435
|
+
/**
|
|
1436
|
+
*
|
|
1437
|
+
* @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
|
|
1438
|
+
* @param {*} [options] Override http request option.
|
|
1439
|
+
* @throws {RequiredError}
|
|
1440
|
+
*/
|
|
1441
|
+
async authControllerCreateNewPassword(newPasswordPayloadDTO: NewPasswordPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NewPasswordResponseDTO>> {
|
|
1442
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerCreateNewPassword(newPasswordPayloadDTO, options);
|
|
1443
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1444
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerCreateNewPassword']?.[localVarOperationServerIndex]?.url;
|
|
1445
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1446
|
+
},
|
|
1447
|
+
/**
|
|
1448
|
+
*
|
|
1449
|
+
* @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
|
|
1450
|
+
* @param {*} [options] Override http request option.
|
|
1451
|
+
* @throws {RequiredError}
|
|
1452
|
+
*/
|
|
1453
|
+
async authControllerForgotPassword(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ForgotPasswordResponseDTO>> {
|
|
1454
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerForgotPassword(forgotPasswordPayloadDTO, options);
|
|
1455
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1456
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerForgotPassword']?.[localVarOperationServerIndex]?.url;
|
|
1457
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1458
|
+
},
|
|
1459
|
+
/**
|
|
1460
|
+
*
|
|
1461
|
+
* @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
|
|
1462
|
+
* @param {*} [options] Override http request option.
|
|
1463
|
+
* @throws {RequiredError}
|
|
1464
|
+
*/
|
|
1465
|
+
async authControllerResentOTP(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ForgotPasswordResponseDTO>> {
|
|
1466
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerResentOTP(forgotPasswordPayloadDTO, options);
|
|
1467
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1468
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerResentOTP']?.[localVarOperationServerIndex]?.url;
|
|
1469
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1470
|
+
},
|
|
1471
|
+
/**
|
|
1472
|
+
*
|
|
1473
|
+
* @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
|
|
1474
|
+
* @param {*} [options] Override http request option.
|
|
1475
|
+
* @throws {RequiredError}
|
|
1476
|
+
*/
|
|
1477
|
+
async authControllerResetPassword(resetPasswordPayloadDTO: ResetPasswordPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResetPasswordResponseDTO>> {
|
|
1478
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerResetPassword(resetPasswordPayloadDTO, options);
|
|
1479
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1480
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerResetPassword']?.[localVarOperationServerIndex]?.url;
|
|
1481
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1482
|
+
},
|
|
1483
|
+
/**
|
|
1484
|
+
*
|
|
1485
|
+
* @param {SignInDto} signInDto
|
|
1486
|
+
* @param {*} [options] Override http request option.
|
|
1487
|
+
* @throws {RequiredError}
|
|
1488
|
+
*/
|
|
1489
|
+
async authControllerSignIn(signInDto: SignInDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignInResponseDto>> {
|
|
1490
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerSignIn(signInDto, options);
|
|
1491
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1492
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerSignIn']?.[localVarOperationServerIndex]?.url;
|
|
1493
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1494
|
+
},
|
|
1495
|
+
/**
|
|
1496
|
+
*
|
|
1497
|
+
* @param {LoggedOutPayloadDTO} loggedOutPayloadDTO
|
|
1498
|
+
* @param {*} [options] Override http request option.
|
|
1499
|
+
* @throws {RequiredError}
|
|
1500
|
+
*/
|
|
1501
|
+
async authControllerSignOut(loggedOutPayloadDTO: LoggedOutPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoggedOutResponse>> {
|
|
1502
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerSignOut(loggedOutPayloadDTO, options);
|
|
1503
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1504
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerSignOut']?.[localVarOperationServerIndex]?.url;
|
|
1505
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1506
|
+
},
|
|
1507
|
+
/**
|
|
1508
|
+
*
|
|
1509
|
+
* @param {SignupDto} signupDto
|
|
1510
|
+
* @param {*} [options] Override http request option.
|
|
1511
|
+
* @throws {RequiredError}
|
|
1512
|
+
*/
|
|
1513
|
+
async authControllerSignUp(signupDto: SignupDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignupResponseDto>> {
|
|
1514
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerSignUp(signupDto, options);
|
|
1515
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1516
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerSignUp']?.[localVarOperationServerIndex]?.url;
|
|
1517
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1518
|
+
},
|
|
1519
|
+
/**
|
|
1520
|
+
*
|
|
1521
|
+
* @param {VerifyOTPPayloadDTO} verifyOTPPayloadDTO
|
|
1522
|
+
* @param {*} [options] Override http request option.
|
|
1523
|
+
* @throws {RequiredError}
|
|
1524
|
+
*/
|
|
1525
|
+
async authControllerVerifyOTP(verifyOTPPayloadDTO: VerifyOTPPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyOTPResponseDTO>> {
|
|
1526
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerVerifyOTP(verifyOTPPayloadDTO, options);
|
|
1527
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1528
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerVerifyOTP']?.[localVarOperationServerIndex]?.url;
|
|
1529
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1530
|
+
},
|
|
1531
|
+
}
|
|
1532
|
+
};
|
|
1533
|
+
|
|
1534
|
+
/**
|
|
1535
|
+
* AuthApi - factory interface
|
|
1536
|
+
* @export
|
|
1537
|
+
*/
|
|
1538
|
+
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1539
|
+
const localVarFp = AuthApiFp(configuration)
|
|
1540
|
+
return {
|
|
1541
|
+
/**
|
|
1542
|
+
*
|
|
1543
|
+
* @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
|
|
1544
|
+
* @param {*} [options] Override http request option.
|
|
1545
|
+
* @throws {RequiredError}
|
|
1546
|
+
*/
|
|
1547
|
+
authControllerCreateNewPassword(newPasswordPayloadDTO: NewPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<NewPasswordResponseDTO> {
|
|
1548
|
+
return localVarFp.authControllerCreateNewPassword(newPasswordPayloadDTO, options).then((request) => request(axios, basePath));
|
|
1549
|
+
},
|
|
1550
|
+
/**
|
|
1551
|
+
*
|
|
1552
|
+
* @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
|
|
1553
|
+
* @param {*} [options] Override http request option.
|
|
1554
|
+
* @throws {RequiredError}
|
|
1555
|
+
*/
|
|
1556
|
+
authControllerForgotPassword(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<ForgotPasswordResponseDTO> {
|
|
1557
|
+
return localVarFp.authControllerForgotPassword(forgotPasswordPayloadDTO, options).then((request) => request(axios, basePath));
|
|
1558
|
+
},
|
|
1559
|
+
/**
|
|
1560
|
+
*
|
|
1561
|
+
* @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
|
|
1562
|
+
* @param {*} [options] Override http request option.
|
|
1563
|
+
* @throws {RequiredError}
|
|
1564
|
+
*/
|
|
1565
|
+
authControllerResentOTP(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<ForgotPasswordResponseDTO> {
|
|
1566
|
+
return localVarFp.authControllerResentOTP(forgotPasswordPayloadDTO, options).then((request) => request(axios, basePath));
|
|
1567
|
+
},
|
|
1568
|
+
/**
|
|
1569
|
+
*
|
|
1570
|
+
* @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
|
|
1571
|
+
* @param {*} [options] Override http request option.
|
|
1572
|
+
* @throws {RequiredError}
|
|
1573
|
+
*/
|
|
1574
|
+
authControllerResetPassword(resetPasswordPayloadDTO: ResetPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<ResetPasswordResponseDTO> {
|
|
1575
|
+
return localVarFp.authControllerResetPassword(resetPasswordPayloadDTO, options).then((request) => request(axios, basePath));
|
|
1576
|
+
},
|
|
1577
|
+
/**
|
|
1578
|
+
*
|
|
1579
|
+
* @param {SignInDto} signInDto
|
|
1580
|
+
* @param {*} [options] Override http request option.
|
|
1581
|
+
* @throws {RequiredError}
|
|
1582
|
+
*/
|
|
1583
|
+
authControllerSignIn(signInDto: SignInDto, options?: RawAxiosRequestConfig): AxiosPromise<SignInResponseDto> {
|
|
1584
|
+
return localVarFp.authControllerSignIn(signInDto, options).then((request) => request(axios, basePath));
|
|
1585
|
+
},
|
|
1586
|
+
/**
|
|
1587
|
+
*
|
|
1588
|
+
* @param {LoggedOutPayloadDTO} loggedOutPayloadDTO
|
|
1589
|
+
* @param {*} [options] Override http request option.
|
|
1590
|
+
* @throws {RequiredError}
|
|
1591
|
+
*/
|
|
1592
|
+
authControllerSignOut(loggedOutPayloadDTO: LoggedOutPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<LoggedOutResponse> {
|
|
1593
|
+
return localVarFp.authControllerSignOut(loggedOutPayloadDTO, options).then((request) => request(axios, basePath));
|
|
1594
|
+
},
|
|
1595
|
+
/**
|
|
1596
|
+
*
|
|
1597
|
+
* @param {SignupDto} signupDto
|
|
1598
|
+
* @param {*} [options] Override http request option.
|
|
1599
|
+
* @throws {RequiredError}
|
|
1600
|
+
*/
|
|
1601
|
+
authControllerSignUp(signupDto: SignupDto, options?: RawAxiosRequestConfig): AxiosPromise<SignupResponseDto> {
|
|
1602
|
+
return localVarFp.authControllerSignUp(signupDto, options).then((request) => request(axios, basePath));
|
|
1603
|
+
},
|
|
1604
|
+
/**
|
|
1605
|
+
*
|
|
1606
|
+
* @param {VerifyOTPPayloadDTO} verifyOTPPayloadDTO
|
|
1607
|
+
* @param {*} [options] Override http request option.
|
|
1608
|
+
* @throws {RequiredError}
|
|
1609
|
+
*/
|
|
1610
|
+
authControllerVerifyOTP(verifyOTPPayloadDTO: VerifyOTPPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<VerifyOTPResponseDTO> {
|
|
1611
|
+
return localVarFp.authControllerVerifyOTP(verifyOTPPayloadDTO, options).then((request) => request(axios, basePath));
|
|
1612
|
+
},
|
|
1613
|
+
};
|
|
1614
|
+
};
|
|
1615
|
+
|
|
1616
|
+
/**
|
|
1617
|
+
* AuthApi - object-oriented interface
|
|
1618
|
+
* @export
|
|
1619
|
+
* @class AuthApi
|
|
1620
|
+
* @extends {BaseAPI}
|
|
1621
|
+
*/
|
|
1622
|
+
export class AuthApi extends BaseAPI {
|
|
1623
|
+
/**
|
|
1624
|
+
*
|
|
1625
|
+
* @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
|
|
1626
|
+
* @param {*} [options] Override http request option.
|
|
1627
|
+
* @throws {RequiredError}
|
|
1628
|
+
* @memberof AuthApi
|
|
1629
|
+
*/
|
|
1630
|
+
public authControllerCreateNewPassword(newPasswordPayloadDTO: NewPasswordPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
1631
|
+
return AuthApiFp(this.configuration).authControllerCreateNewPassword(newPasswordPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
/**
|
|
1635
|
+
*
|
|
1636
|
+
* @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
|
|
1637
|
+
* @param {*} [options] Override http request option.
|
|
1638
|
+
* @throws {RequiredError}
|
|
1639
|
+
* @memberof AuthApi
|
|
1640
|
+
*/
|
|
1641
|
+
public authControllerForgotPassword(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
1642
|
+
return AuthApiFp(this.configuration).authControllerForgotPassword(forgotPasswordPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
/**
|
|
1646
|
+
*
|
|
1647
|
+
* @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
|
|
1648
|
+
* @param {*} [options] Override http request option.
|
|
1649
|
+
* @throws {RequiredError}
|
|
1650
|
+
* @memberof AuthApi
|
|
1651
|
+
*/
|
|
1652
|
+
public authControllerResentOTP(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
1653
|
+
return AuthApiFp(this.configuration).authControllerResentOTP(forgotPasswordPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
/**
|
|
1657
|
+
*
|
|
1658
|
+
* @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
|
|
1659
|
+
* @param {*} [options] Override http request option.
|
|
1660
|
+
* @throws {RequiredError}
|
|
1661
|
+
* @memberof AuthApi
|
|
1662
|
+
*/
|
|
1663
|
+
public authControllerResetPassword(resetPasswordPayloadDTO: ResetPasswordPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
1664
|
+
return AuthApiFp(this.configuration).authControllerResetPassword(resetPasswordPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
/**
|
|
1668
|
+
*
|
|
1669
|
+
* @param {SignInDto} signInDto
|
|
1670
|
+
* @param {*} [options] Override http request option.
|
|
1671
|
+
* @throws {RequiredError}
|
|
1672
|
+
* @memberof AuthApi
|
|
1673
|
+
*/
|
|
1674
|
+
public authControllerSignIn(signInDto: SignInDto, options?: RawAxiosRequestConfig) {
|
|
1675
|
+
return AuthApiFp(this.configuration).authControllerSignIn(signInDto, options).then((request) => request(this.axios, this.basePath));
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
/**
|
|
1679
|
+
*
|
|
1680
|
+
* @param {LoggedOutPayloadDTO} loggedOutPayloadDTO
|
|
1681
|
+
* @param {*} [options] Override http request option.
|
|
1682
|
+
* @throws {RequiredError}
|
|
1683
|
+
* @memberof AuthApi
|
|
1684
|
+
*/
|
|
1685
|
+
public authControllerSignOut(loggedOutPayloadDTO: LoggedOutPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
1686
|
+
return AuthApiFp(this.configuration).authControllerSignOut(loggedOutPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
1687
|
+
}
|
|
1688
|
+
|
|
434
1689
|
/**
|
|
435
|
-
*
|
|
436
|
-
* @
|
|
437
|
-
* @
|
|
1690
|
+
*
|
|
1691
|
+
* @param {SignupDto} signupDto
|
|
1692
|
+
* @param {*} [options] Override http request option.
|
|
1693
|
+
* @throws {RequiredError}
|
|
1694
|
+
* @memberof AuthApi
|
|
438
1695
|
*/
|
|
439
|
-
|
|
1696
|
+
public authControllerSignUp(signupDto: SignupDto, options?: RawAxiosRequestConfig) {
|
|
1697
|
+
return AuthApiFp(this.configuration).authControllerSignUp(signupDto, options).then((request) => request(this.axios, this.basePath));
|
|
1698
|
+
}
|
|
1699
|
+
|
|
440
1700
|
/**
|
|
441
|
-
*
|
|
442
|
-
* @
|
|
443
|
-
* @
|
|
1701
|
+
*
|
|
1702
|
+
* @param {VerifyOTPPayloadDTO} verifyOTPPayloadDTO
|
|
1703
|
+
* @param {*} [options] Override http request option.
|
|
1704
|
+
* @throws {RequiredError}
|
|
1705
|
+
* @memberof AuthApi
|
|
444
1706
|
*/
|
|
445
|
-
|
|
1707
|
+
public authControllerVerifyOTP(verifyOTPPayloadDTO: VerifyOTPPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
1708
|
+
return AuthApiFp(this.configuration).authControllerVerifyOTP(verifyOTPPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
1709
|
+
}
|
|
446
1710
|
}
|
|
447
1711
|
|
|
1712
|
+
|
|
1713
|
+
|
|
448
1714
|
/**
|
|
449
|
-
*
|
|
1715
|
+
* DeviceApi - axios parameter creator
|
|
450
1716
|
* @export
|
|
451
1717
|
*/
|
|
452
|
-
export const
|
|
1718
|
+
export const DeviceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
453
1719
|
return {
|
|
454
1720
|
/**
|
|
455
1721
|
*
|
|
1722
|
+
* @param {AddDevicePayload} addDevicePayload
|
|
456
1723
|
* @param {*} [options] Override http request option.
|
|
457
1724
|
* @throws {RequiredError}
|
|
458
1725
|
*/
|
|
459
|
-
|
|
460
|
-
|
|
1726
|
+
deviceControllerAddDevice: async (addDevicePayload: AddDevicePayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1727
|
+
// verify required parameter 'addDevicePayload' is not null or undefined
|
|
1728
|
+
assertParamExists('deviceControllerAddDevice', 'addDevicePayload', addDevicePayload)
|
|
1729
|
+
const localVarPath = `/v1/device`;
|
|
461
1730
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
462
1731
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
463
1732
|
let baseOptions;
|
|
@@ -469,62 +1738,105 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
469
1738
|
const localVarHeaderParameter = {} as any;
|
|
470
1739
|
const localVarQueryParameter = {} as any;
|
|
471
1740
|
|
|
1741
|
+
// authentication bearer required
|
|
1742
|
+
// http bearer authentication required
|
|
1743
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1744
|
+
|
|
472
1745
|
|
|
473
1746
|
|
|
1747
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1748
|
+
|
|
474
1749
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
475
1750
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
476
1751
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1752
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addDevicePayload, localVarRequestOptions, configuration)
|
|
477
1753
|
|
|
478
1754
|
return {
|
|
479
1755
|
url: toPathString(localVarUrlObj),
|
|
480
1756
|
options: localVarRequestOptions,
|
|
481
1757
|
};
|
|
482
1758
|
},
|
|
1759
|
+
}
|
|
1760
|
+
};
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
* DeviceApi - functional programming interface
|
|
1764
|
+
* @export
|
|
1765
|
+
*/
|
|
1766
|
+
export const DeviceApiFp = function(configuration?: Configuration) {
|
|
1767
|
+
const localVarAxiosParamCreator = DeviceApiAxiosParamCreator(configuration)
|
|
1768
|
+
return {
|
|
483
1769
|
/**
|
|
484
1770
|
*
|
|
485
|
-
* @param {
|
|
1771
|
+
* @param {AddDevicePayload} addDevicePayload
|
|
486
1772
|
* @param {*} [options] Override http request option.
|
|
487
1773
|
* @throws {RequiredError}
|
|
488
1774
|
*/
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
const
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
baseOptions = configuration.baseOptions;
|
|
498
|
-
}
|
|
1775
|
+
async deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceAddResponse>> {
|
|
1776
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deviceControllerAddDevice(addDevicePayload, options);
|
|
1777
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1778
|
+
const localVarOperationServerBasePath = operationServerMap['DeviceApi.deviceControllerAddDevice']?.[localVarOperationServerIndex]?.url;
|
|
1779
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1780
|
+
},
|
|
1781
|
+
}
|
|
1782
|
+
};
|
|
499
1783
|
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
1784
|
+
/**
|
|
1785
|
+
* DeviceApi - factory interface
|
|
1786
|
+
* @export
|
|
1787
|
+
*/
|
|
1788
|
+
export const DeviceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1789
|
+
const localVarFp = DeviceApiFp(configuration)
|
|
1790
|
+
return {
|
|
1791
|
+
/**
|
|
1792
|
+
*
|
|
1793
|
+
* @param {AddDevicePayload} addDevicePayload
|
|
1794
|
+
* @param {*} [options] Override http request option.
|
|
1795
|
+
* @throws {RequiredError}
|
|
1796
|
+
*/
|
|
1797
|
+
deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig): AxiosPromise<DeviceAddResponse> {
|
|
1798
|
+
return localVarFp.deviceControllerAddDevice(addDevicePayload, options).then((request) => request(axios, basePath));
|
|
1799
|
+
},
|
|
1800
|
+
};
|
|
1801
|
+
};
|
|
503
1802
|
|
|
1803
|
+
/**
|
|
1804
|
+
* DeviceApi - object-oriented interface
|
|
1805
|
+
* @export
|
|
1806
|
+
* @class DeviceApi
|
|
1807
|
+
* @extends {BaseAPI}
|
|
1808
|
+
*/
|
|
1809
|
+
export class DeviceApi extends BaseAPI {
|
|
1810
|
+
/**
|
|
1811
|
+
*
|
|
1812
|
+
* @param {AddDevicePayload} addDevicePayload
|
|
1813
|
+
* @param {*} [options] Override http request option.
|
|
1814
|
+
* @throws {RequiredError}
|
|
1815
|
+
* @memberof DeviceApi
|
|
1816
|
+
*/
|
|
1817
|
+
public deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig) {
|
|
1818
|
+
return DeviceApiFp(this.configuration).deviceControllerAddDevice(addDevicePayload, options).then((request) => request(this.axios, this.basePath));
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
504
1821
|
|
|
505
|
-
|
|
506
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
507
1822
|
|
|
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
1823
|
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
1824
|
+
/**
|
|
1825
|
+
* GcsApi - axios parameter creator
|
|
1826
|
+
* @export
|
|
1827
|
+
*/
|
|
1828
|
+
export const GcsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1829
|
+
return {
|
|
518
1830
|
/**
|
|
519
1831
|
*
|
|
520
|
-
* @param {
|
|
1832
|
+
* @param {FileNameUploadDTO} fileNameUploadDTO
|
|
521
1833
|
* @param {*} [options] Override http request option.
|
|
522
1834
|
* @throws {RequiredError}
|
|
523
1835
|
*/
|
|
524
|
-
|
|
525
|
-
// verify required parameter '
|
|
526
|
-
assertParamExists('
|
|
527
|
-
const localVarPath = `/v1/
|
|
1836
|
+
gcpControllerUploadFile: async (fileNameUploadDTO: FileNameUploadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1837
|
+
// verify required parameter 'fileNameUploadDTO' is not null or undefined
|
|
1838
|
+
assertParamExists('gcpControllerUploadFile', 'fileNameUploadDTO', fileNameUploadDTO)
|
|
1839
|
+
const localVarPath = `/v1/gcs/file`;
|
|
528
1840
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
529
1841
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
530
1842
|
let baseOptions;
|
|
@@ -543,7 +1855,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
543
1855
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
544
1856
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
545
1857
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
546
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1858
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fileNameUploadDTO, localVarRequestOptions, configuration)
|
|
547
1859
|
|
|
548
1860
|
return {
|
|
549
1861
|
url: toPathString(localVarUrlObj),
|
|
@@ -554,123 +1866,62 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
554
1866
|
};
|
|
555
1867
|
|
|
556
1868
|
/**
|
|
557
|
-
*
|
|
1869
|
+
* GcsApi - functional programming interface
|
|
558
1870
|
* @export
|
|
559
1871
|
*/
|
|
560
|
-
export const
|
|
561
|
-
const localVarAxiosParamCreator =
|
|
1872
|
+
export const GcsApiFp = function(configuration?: Configuration) {
|
|
1873
|
+
const localVarAxiosParamCreator = GcsApiAxiosParamCreator(configuration)
|
|
562
1874
|
return {
|
|
563
1875
|
/**
|
|
564
1876
|
*
|
|
1877
|
+
* @param {FileNameUploadDTO} fileNameUploadDTO
|
|
565
1878
|
* @param {*} [options] Override http request option.
|
|
566
1879
|
* @throws {RequiredError}
|
|
567
1880
|
*/
|
|
568
|
-
async
|
|
569
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
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);
|
|
1881
|
+
async gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignedUrlResponseDTO>> {
|
|
1882
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gcpControllerUploadFile(fileNameUploadDTO, options);
|
|
594
1883
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
595
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
1884
|
+
const localVarOperationServerBasePath = operationServerMap['GcsApi.gcpControllerUploadFile']?.[localVarOperationServerIndex]?.url;
|
|
596
1885
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
597
1886
|
},
|
|
598
1887
|
}
|
|
599
1888
|
};
|
|
600
1889
|
|
|
601
1890
|
/**
|
|
602
|
-
*
|
|
1891
|
+
* GcsApi - factory interface
|
|
603
1892
|
* @export
|
|
604
1893
|
*/
|
|
605
|
-
export const
|
|
606
|
-
const localVarFp =
|
|
1894
|
+
export const GcsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1895
|
+
const localVarFp = GcsApiFp(configuration)
|
|
607
1896
|
return {
|
|
608
1897
|
/**
|
|
609
1898
|
*
|
|
1899
|
+
* @param {FileNameUploadDTO} fileNameUploadDTO
|
|
610
1900
|
* @param {*} [options] Override http request option.
|
|
611
1901
|
* @throws {RequiredError}
|
|
612
1902
|
*/
|
|
613
|
-
|
|
614
|
-
return localVarFp.
|
|
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));
|
|
1903
|
+
gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig): AxiosPromise<SignedUrlResponseDTO> {
|
|
1904
|
+
return localVarFp.gcpControllerUploadFile(fileNameUploadDTO, options).then((request) => request(axios, basePath));
|
|
633
1905
|
},
|
|
634
1906
|
};
|
|
635
1907
|
};
|
|
636
1908
|
|
|
637
1909
|
/**
|
|
638
|
-
*
|
|
1910
|
+
* GcsApi - object-oriented interface
|
|
639
1911
|
* @export
|
|
640
|
-
* @class
|
|
1912
|
+
* @class GcsApi
|
|
641
1913
|
* @extends {BaseAPI}
|
|
642
1914
|
*/
|
|
643
|
-
export class
|
|
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
|
-
|
|
1915
|
+
export class GcsApi extends BaseAPI {
|
|
665
1916
|
/**
|
|
666
1917
|
*
|
|
667
|
-
* @param {
|
|
1918
|
+
* @param {FileNameUploadDTO} fileNameUploadDTO
|
|
668
1919
|
* @param {*} [options] Override http request option.
|
|
669
1920
|
* @throws {RequiredError}
|
|
670
|
-
* @memberof
|
|
1921
|
+
* @memberof GcsApi
|
|
671
1922
|
*/
|
|
672
|
-
public
|
|
673
|
-
return
|
|
1923
|
+
public gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig) {
|
|
1924
|
+
return GcsApiFp(this.configuration).gcpControllerUploadFile(fileNameUploadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
674
1925
|
}
|
|
675
1926
|
}
|
|
676
1927
|
|
|
@@ -773,6 +2024,112 @@ export class GoalsApi extends BaseAPI {
|
|
|
773
2024
|
|
|
774
2025
|
|
|
775
2026
|
|
|
2027
|
+
/**
|
|
2028
|
+
* OAuthApi - axios parameter creator
|
|
2029
|
+
* @export
|
|
2030
|
+
*/
|
|
2031
|
+
export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2032
|
+
return {
|
|
2033
|
+
/**
|
|
2034
|
+
*
|
|
2035
|
+
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
2036
|
+
* @param {*} [options] Override http request option.
|
|
2037
|
+
* @throws {RequiredError}
|
|
2038
|
+
*/
|
|
2039
|
+
oAuthControllerValidateGoogleToken: async (googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2040
|
+
// verify required parameter 'googleVerificationPayloadDTO' is not null or undefined
|
|
2041
|
+
assertParamExists('oAuthControllerValidateGoogleToken', 'googleVerificationPayloadDTO', googleVerificationPayloadDTO)
|
|
2042
|
+
const localVarPath = `/v1/oauth/google`;
|
|
2043
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2044
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2045
|
+
let baseOptions;
|
|
2046
|
+
if (configuration) {
|
|
2047
|
+
baseOptions = configuration.baseOptions;
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2051
|
+
const localVarHeaderParameter = {} as any;
|
|
2052
|
+
const localVarQueryParameter = {} as any;
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
|
|
2056
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2057
|
+
|
|
2058
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2059
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2060
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2061
|
+
localVarRequestOptions.data = serializeDataIfNeeded(googleVerificationPayloadDTO, localVarRequestOptions, configuration)
|
|
2062
|
+
|
|
2063
|
+
return {
|
|
2064
|
+
url: toPathString(localVarUrlObj),
|
|
2065
|
+
options: localVarRequestOptions,
|
|
2066
|
+
};
|
|
2067
|
+
},
|
|
2068
|
+
}
|
|
2069
|
+
};
|
|
2070
|
+
|
|
2071
|
+
/**
|
|
2072
|
+
* OAuthApi - functional programming interface
|
|
2073
|
+
* @export
|
|
2074
|
+
*/
|
|
2075
|
+
export const OAuthApiFp = function(configuration?: Configuration) {
|
|
2076
|
+
const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
|
|
2077
|
+
return {
|
|
2078
|
+
/**
|
|
2079
|
+
*
|
|
2080
|
+
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
2081
|
+
* @param {*} [options] Override http request option.
|
|
2082
|
+
* @throws {RequiredError}
|
|
2083
|
+
*/
|
|
2084
|
+
async oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GoogleOAuthResponseDTO>> {
|
|
2085
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO, options);
|
|
2086
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2087
|
+
const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerValidateGoogleToken']?.[localVarOperationServerIndex]?.url;
|
|
2088
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2089
|
+
},
|
|
2090
|
+
}
|
|
2091
|
+
};
|
|
2092
|
+
|
|
2093
|
+
/**
|
|
2094
|
+
* OAuthApi - factory interface
|
|
2095
|
+
* @export
|
|
2096
|
+
*/
|
|
2097
|
+
export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2098
|
+
const localVarFp = OAuthApiFp(configuration)
|
|
2099
|
+
return {
|
|
2100
|
+
/**
|
|
2101
|
+
*
|
|
2102
|
+
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
2103
|
+
* @param {*} [options] Override http request option.
|
|
2104
|
+
* @throws {RequiredError}
|
|
2105
|
+
*/
|
|
2106
|
+
oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<GoogleOAuthResponseDTO> {
|
|
2107
|
+
return localVarFp.oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO, options).then((request) => request(axios, basePath));
|
|
2108
|
+
},
|
|
2109
|
+
};
|
|
2110
|
+
};
|
|
2111
|
+
|
|
2112
|
+
/**
|
|
2113
|
+
* OAuthApi - object-oriented interface
|
|
2114
|
+
* @export
|
|
2115
|
+
* @class OAuthApi
|
|
2116
|
+
* @extends {BaseAPI}
|
|
2117
|
+
*/
|
|
2118
|
+
export class OAuthApi extends BaseAPI {
|
|
2119
|
+
/**
|
|
2120
|
+
*
|
|
2121
|
+
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
2122
|
+
* @param {*} [options] Override http request option.
|
|
2123
|
+
* @throws {RequiredError}
|
|
2124
|
+
* @memberof OAuthApi
|
|
2125
|
+
*/
|
|
2126
|
+
public oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
2127
|
+
return OAuthApiFp(this.configuration).oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
|
|
2132
|
+
|
|
776
2133
|
/**
|
|
777
2134
|
* PlansApi - axios parameter creator
|
|
778
2135
|
* @export
|
|
@@ -823,7 +2180,7 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
823
2180
|
* @param {*} [options] Override http request option.
|
|
824
2181
|
* @throws {RequiredError}
|
|
825
2182
|
*/
|
|
826
|
-
async paymentControllerGetPlans(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2183
|
+
async paymentControllerGetPlans(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanResponseDTO>> {
|
|
827
2184
|
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerGetPlans(options);
|
|
828
2185
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
829
2186
|
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerGetPlans']?.[localVarOperationServerIndex]?.url;
|
|
@@ -844,7 +2201,7 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
844
2201
|
* @param {*} [options] Override http request option.
|
|
845
2202
|
* @throws {RequiredError}
|
|
846
2203
|
*/
|
|
847
|
-
paymentControllerGetPlans(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2204
|
+
paymentControllerGetPlans(options?: RawAxiosRequestConfig): AxiosPromise<PlanResponseDTO> {
|
|
848
2205
|
return localVarFp.paymentControllerGetPlans(options).then((request) => request(axios, basePath));
|
|
849
2206
|
},
|
|
850
2207
|
};
|