@gooday_corp/gooday-api-client 1.0.16-alpha → 1.0.16-delta

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.
Files changed (2) hide show
  1. package/api.ts +501 -600
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -89,19 +89,13 @@ export interface AssistantEntity {
89
89
  * @type {Array<string>}
90
90
  * @memberof AssistantEntity
91
91
  */
92
- 'availability': Array<string>;
92
+ 'availablity': Array<string>;
93
93
  /**
94
94
  * Configuration object for the assistant
95
95
  * @type {object}
96
96
  * @memberof AssistantEntity
97
97
  */
98
98
  'configuration': object;
99
- /**
100
- * Attributes object for the assistant
101
- * @type {AttributesDto}
102
- * @memberof AssistantEntity
103
- */
104
- 'attributes': AttributesDto;
105
99
  }
106
100
  /**
107
101
  *
@@ -125,134 +119,349 @@ export interface AssistantListResponse {
125
119
  /**
126
120
  *
127
121
  * @export
128
- * @interface AttributesDto
122
+ * @interface BusinessEntity
129
123
  */
130
- export interface AttributesDto {
124
+ export interface BusinessEntity {
125
+ /**
126
+ * Unique identifier for the Business
127
+ * @type {string}
128
+ * @memberof BusinessEntity
129
+ */
130
+ '_id': string;
131
+ /**
132
+ * Business Timing
133
+ * @type {Array<BusinessTiming>}
134
+ * @memberof BusinessEntity
135
+ */
136
+ 'timing'?: Array<BusinessTiming>;
137
+ /**
138
+ * Business policies
139
+ * @type {string}
140
+ * @memberof BusinessEntity
141
+ */
142
+ 'policies'?: string;
143
+ /**
144
+ * Business cancellationFree
145
+ * @type {number}
146
+ * @memberof BusinessEntity
147
+ */
148
+ 'cancellationFree'?: number;
149
+ /**
150
+ * Business ID
151
+ * @type {string}
152
+ * @memberof BusinessEntity
153
+ */
154
+ 'businessID'?: string;
155
+ /**
156
+ * Business Country
157
+ * @type {string}
158
+ * @memberof BusinessEntity
159
+ */
160
+ 'businessCountry'?: string;
131
161
  /**
132
- * List of skills with their titles and values
133
- * @type {Array<SkillDto>}
134
- * @memberof AttributesDto
162
+ * Business Type
163
+ * @type {string}
164
+ * @memberof BusinessEntity
135
165
  */
136
- 'skills': Array<SkillDto>;
166
+ 'businessType'?: string;
137
167
  /**
138
- * List of likes of assistants
168
+ * Business Category
139
169
  * @type {Array<string>}
140
- * @memberof AttributesDto
170
+ * @memberof BusinessEntity
171
+ */
172
+ 'businessCategory'?: Array<string>;
173
+ /**
174
+ * Business Employee
175
+ * @type {string}
176
+ * @memberof BusinessEntity
177
+ */
178
+ 'numberOfEmployees'?: string;
179
+ /**
180
+ * Business Type
181
+ * @type {string}
182
+ * @memberof BusinessEntity
183
+ */
184
+ 'priceRange'?: string;
185
+ }
186
+ /**
187
+ *
188
+ * @export
189
+ * @interface BusinessOnBoardingDTO
190
+ */
191
+ export interface BusinessOnBoardingDTO {
192
+ /**
193
+ * Business Timing
194
+ * @type {Array<BusinessTiming>}
195
+ * @memberof BusinessOnBoardingDTO
196
+ */
197
+ 'timing'?: Array<BusinessTiming>;
198
+ /**
199
+ * Business policies
200
+ * @type {string}
201
+ * @memberof BusinessOnBoardingDTO
202
+ */
203
+ 'policies'?: string;
204
+ /**
205
+ * Business cancellationFree
206
+ * @type {number}
207
+ * @memberof BusinessOnBoardingDTO
208
+ */
209
+ 'cancellationFree'?: number;
210
+ /**
211
+ * Business ID
212
+ * @type {string}
213
+ * @memberof BusinessOnBoardingDTO
214
+ */
215
+ 'businessID'?: string;
216
+ /**
217
+ * Business Country
218
+ * @type {string}
219
+ * @memberof BusinessOnBoardingDTO
220
+ */
221
+ 'businessCountry'?: string;
222
+ /**
223
+ * Business Type
224
+ * @type {string}
225
+ * @memberof BusinessOnBoardingDTO
141
226
  */
142
- 'likes': Array<string>;
227
+ 'businessType'?: string;
143
228
  /**
144
- * List of disliking of assistants
229
+ * Business Category
145
230
  * @type {Array<string>}
146
- * @memberof AttributesDto
231
+ * @memberof BusinessOnBoardingDTO
232
+ */
233
+ 'businessCategory'?: Array<string>;
234
+ /**
235
+ * Business Employee
236
+ * @type {string}
237
+ * @memberof BusinessOnBoardingDTO
238
+ */
239
+ 'numberOfEmployees'?: string;
240
+ /**
241
+ * Assistant ID
242
+ * @type {string}
243
+ * @memberof BusinessOnBoardingDTO
244
+ */
245
+ 'assistant'?: string;
246
+ /**
247
+ * Business Type
248
+ * @type {string}
249
+ * @memberof BusinessOnBoardingDTO
250
+ */
251
+ 'priceRange'?: string;
252
+ /**
253
+ * Business Active
254
+ * @type {boolean}
255
+ * @memberof BusinessOnBoardingDTO
147
256
  */
148
- 'dislikes': Array<string>;
257
+ 'isActive'?: boolean;
258
+ /**
259
+ * Business Account Confirmation
260
+ * @type {boolean}
261
+ * @memberof BusinessOnBoardingDTO
262
+ */
263
+ 'accountConfirmation'?: boolean;
149
264
  }
150
265
  /**
151
266
  *
152
267
  * @export
153
- * @interface DeviceAddResponse
268
+ * @interface BusinessOnBoardingResponseDTO
154
269
  */
155
- export interface DeviceAddResponse {
270
+ export interface BusinessOnBoardingResponseDTO {
156
271
  /**
157
- * Status code of the response
272
+ * statusCode
158
273
  * @type {number}
159
- * @memberof DeviceAddResponse
274
+ * @memberof BusinessOnBoardingResponseDTO
160
275
  */
161
276
  'statusCode': number;
162
277
  /**
163
- * Device details
164
- * @type {DeviceEntity}
165
- * @memberof DeviceAddResponse
278
+ * User
279
+ * @type {BusinessEntity}
280
+ * @memberof BusinessOnBoardingResponseDTO
166
281
  */
167
- 'data': DeviceEntity;
282
+ 'data': BusinessEntity;
168
283
  }
169
284
  /**
170
285
  *
171
286
  * @export
172
- * @interface DeviceEntity
287
+ * @interface BusinessTime
173
288
  */
174
- export interface DeviceEntity {
289
+ export interface BusinessTime {
175
290
  /**
176
- * Name of the device
291
+ * Business open time
177
292
  * @type {string}
178
- * @memberof DeviceEntity
293
+ * @memberof BusinessTime
179
294
  */
180
- 'name': string;
295
+ 'openAt': string;
181
296
  /**
182
- * Unique identifier for the device
297
+ * Business close time
183
298
  * @type {string}
184
- * @memberof DeviceEntity
299
+ * @memberof BusinessTime
185
300
  */
186
- 'identifier': string;
301
+ 'closeAt': string;
302
+ }
303
+ /**
304
+ *
305
+ * @export
306
+ * @interface BusinessTiming
307
+ */
308
+ export interface BusinessTiming {
187
309
  /**
188
- * Last used date of the device
189
- * @type {string}
190
- * @memberof DeviceEntity
310
+ *
311
+ * @type {Array<BusinessTime>}
312
+ * @memberof BusinessTiming
191
313
  */
192
- 'lastUsed': string;
314
+ 'time'?: Array<BusinessTime>;
193
315
  /**
194
- * Token associated with the device
316
+ * Day name
195
317
  * @type {string}
196
- * @memberof DeviceEntity
318
+ * @memberof BusinessTiming
197
319
  */
198
- 'token': string;
320
+ 'day': string;
199
321
  /**
200
- * Activation status of the device
201
- * @type {string}
202
- * @memberof DeviceEntity
322
+ * Business close flag
323
+ * @type {boolean}
324
+ * @memberof BusinessTiming
203
325
  */
204
- 'status': string;
326
+ 'isClose': boolean;
205
327
  }
206
328
  /**
207
329
  *
208
330
  * @export
209
- * @interface FileNameUploadDTO
331
+ * @interface BusinessTypeEntity
210
332
  */
211
- export interface FileNameUploadDTO {
333
+ export interface BusinessTypeEntity {
212
334
  /**
213
- * A message providing additional details about the response
335
+ * Unique identifier for the business type
214
336
  * @type {string}
215
- * @memberof FileNameUploadDTO
337
+ * @memberof BusinessTypeEntity
216
338
  */
217
- 'fileName': string;
339
+ '_id': string;
218
340
  /**
219
- * A name of bucket where you have to upload the image
341
+ * name of the business type
220
342
  * @type {string}
221
- * @memberof FileNameUploadDTO
343
+ * @memberof BusinessTypeEntity
344
+ */
345
+ 'name': string;
346
+ }
347
+ /**
348
+ *
349
+ * @export
350
+ * @interface BusinessTypeListResponse
351
+ */
352
+ export interface BusinessTypeListResponse {
353
+ /**
354
+ * statusCode
355
+ * @type {number}
356
+ * @memberof BusinessTypeListResponse
357
+ */
358
+ 'statusCode': number;
359
+ /**
360
+ * businessTypes
361
+ * @type {Array<BusinessTypeEntity>}
362
+ * @memberof BusinessTypeListResponse
222
363
  */
223
- 'bucketName': string;
364
+ 'data': Array<BusinessTypeEntity>;
224
365
  }
225
366
  /**
226
367
  *
227
368
  * @export
228
- * @interface ForgotPasswordPayloadDTO
369
+ * @interface CategoryEntity
229
370
  */
230
- export interface ForgotPasswordPayloadDTO {
371
+ export interface CategoryEntity {
231
372
  /**
232
- * User Email
373
+ * Unique identifier for the category
233
374
  * @type {string}
234
- * @memberof ForgotPasswordPayloadDTO
375
+ * @memberof CategoryEntity
235
376
  */
236
- 'email': string;
377
+ '_id': string;
378
+ /**
379
+ * name of the category
380
+ * @type {string}
381
+ * @memberof CategoryEntity
382
+ */
383
+ 'name': string;
384
+ /**
385
+ * Unique identifier or reference of the business Type
386
+ * @type {string}
387
+ * @memberof CategoryEntity
388
+ */
389
+ 'businessTypeId': string;
237
390
  }
238
391
  /**
239
392
  *
240
393
  * @export
241
- * @interface ForgotPasswordResponseDTO
394
+ * @interface CategoryListResponse
242
395
  */
243
- export interface ForgotPasswordResponseDTO {
396
+ export interface CategoryListResponse {
244
397
  /**
245
398
  * statusCode
246
399
  * @type {number}
247
- * @memberof ForgotPasswordResponseDTO
400
+ * @memberof CategoryListResponse
248
401
  */
249
402
  'statusCode': number;
250
403
  /**
251
- * message
404
+ * Categories
405
+ * @type {Array<CategoryEntity>}
406
+ * @memberof CategoryListResponse
407
+ */
408
+ 'data': Array<CategoryEntity>;
409
+ }
410
+ /**
411
+ *
412
+ * @export
413
+ * @interface DeviceAddResponse
414
+ */
415
+ export interface DeviceAddResponse {
416
+ /**
417
+ * Status code of the response
418
+ * @type {number}
419
+ * @memberof DeviceAddResponse
420
+ */
421
+ 'statusCode': number;
422
+ /**
423
+ * Device details
424
+ * @type {DeviceEntity}
425
+ * @memberof DeviceAddResponse
426
+ */
427
+ 'data': DeviceEntity;
428
+ }
429
+ /**
430
+ *
431
+ * @export
432
+ * @interface DeviceEntity
433
+ */
434
+ export interface DeviceEntity {
435
+ /**
436
+ * Name of the device
252
437
  * @type {string}
253
- * @memberof ForgotPasswordResponseDTO
438
+ * @memberof DeviceEntity
254
439
  */
255
- 'message': string;
440
+ 'name': string;
441
+ /**
442
+ * Unique identifier for the device
443
+ * @type {string}
444
+ * @memberof DeviceEntity
445
+ */
446
+ 'identifier': string;
447
+ /**
448
+ * Last used date of the device
449
+ * @type {string}
450
+ * @memberof DeviceEntity
451
+ */
452
+ 'lastUsed': string;
453
+ /**
454
+ * Token associated with the device
455
+ * @type {string}
456
+ * @memberof DeviceEntity
457
+ */
458
+ 'token': string;
459
+ /**
460
+ * Activation status of the device
461
+ * @type {string}
462
+ * @memberof DeviceEntity
463
+ */
464
+ 'status': string;
256
465
  }
257
466
  /**
258
467
  *
@@ -375,44 +584,6 @@ export interface MyAssistantResponse {
375
584
  */
376
585
  'data': AssistantEntity;
377
586
  }
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
- }
416
587
  /**
417
588
  *
418
589
  * @export
@@ -432,11 +603,11 @@ export interface OnBoardingDTO {
432
603
  */
433
604
  'assistant'?: string;
434
605
  /**
435
- *
436
- * @type {UserPlanDTO}
606
+ * Plan
607
+ * @type {string}
437
608
  * @memberof OnBoardingDTO
438
609
  */
439
- 'plan'?: UserPlanDTO;
610
+ 'plan'?: string;
440
611
  /**
441
612
  * Date of Birth
442
613
  * @type {string}
@@ -591,44 +762,6 @@ export const PriceEntityIntervalEnum = {
591
762
 
592
763
  export type PriceEntityIntervalEnum = typeof PriceEntityIntervalEnum[keyof typeof PriceEntityIntervalEnum];
593
764
 
594
- /**
595
- *
596
- * @export
597
- * @interface ResetPasswordPayloadDTO
598
- */
599
- export interface ResetPasswordPayloadDTO {
600
- /**
601
- * Old password for the user
602
- * @type {string}
603
- * @memberof ResetPasswordPayloadDTO
604
- */
605
- 'currentPasword': string;
606
- /**
607
- * The New password for the user account
608
- * @type {string}
609
- * @memberof ResetPasswordPayloadDTO
610
- */
611
- 'newPassword': string;
612
- }
613
- /**
614
- *
615
- * @export
616
- * @interface ResetPasswordResponseDTO
617
- */
618
- export interface ResetPasswordResponseDTO {
619
- /**
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
765
  /**
633
766
  *
634
767
  * @export
@@ -636,7 +769,7 @@ export interface ResetPasswordResponseDTO {
636
769
  */
637
770
  export interface SignInDto {
638
771
  /**
639
- * Email
772
+ * Email of user
640
773
  * @type {string}
641
774
  * @memberof SignInDto
642
775
  */
@@ -692,25 +825,6 @@ export interface SignInResponseDto {
692
825
  */
693
826
  'data': SignInResponse;
694
827
  }
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
- }
714
828
  /**
715
829
  *
716
830
  * @export
@@ -736,7 +850,7 @@ export interface SignupDto {
736
850
  */
737
851
  'email': string;
738
852
  /**
739
- * User Profile Name
853
+ * The password for the user account
740
854
  * @type {string}
741
855
  * @memberof SignupDto
742
856
  */
@@ -789,30 +903,11 @@ export interface SignupResponseDto {
789
903
  /**
790
904
  *
791
905
  * @export
792
- * @interface SkillDto
906
+ * @interface UserEntity
793
907
  */
794
- export interface SkillDto {
908
+ export interface UserEntity {
795
909
  /**
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
- }
808
- /**
809
- *
810
- * @export
811
- * @interface UserEntity
812
- */
813
- export interface UserEntity {
814
- /**
815
- * Unique identifier for the user
910
+ * Unique identifier for the user
816
911
  * @type {string}
817
912
  * @memberof UserEntity
818
913
  */
@@ -864,7 +959,7 @@ export interface UserEntity {
864
959
  * @type {string}
865
960
  * @memberof UserEntity
866
961
  */
867
- 'role': string;
962
+ 'role': UserEntityRoleEnum;
868
963
  /**
869
964
  * Goals why user is using the product
870
965
  * @type {Array<string>}
@@ -873,17 +968,25 @@ export interface UserEntity {
873
968
  'goals': Array<string>;
874
969
  /**
875
970
  * Plan subscribed by the user
876
- * @type {UserPlanDTO}
971
+ * @type {string}
877
972
  * @memberof UserEntity
878
973
  */
879
- 'plan': UserPlanDTO;
974
+ 'plan': string;
880
975
  /**
881
976
  * Action user has to perform
882
977
  * @type {Array<string>}
883
978
  * @memberof UserEntity
884
979
  */
885
- 'pendingAction': Array<string>;
980
+ 'pendingAction'?: Array<string>;
886
981
  }
982
+
983
+ export const UserEntityRoleEnum = {
984
+ BusinessOwner: 'business_owner',
985
+ User: 'user'
986
+ } as const;
987
+
988
+ export type UserEntityRoleEnum = typeof UserEntityRoleEnum[keyof typeof UserEntityRoleEnum];
989
+
887
990
  /**
888
991
  *
889
992
  * @export
@@ -903,71 +1006,6 @@ export interface UserMeDTO {
903
1006
  */
904
1007
  'data': UserEntity;
905
1008
  }
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;
924
- }
925
-
926
- export const UserPlanDTONameEnum = {
927
- Free: 'free',
928
- Pro: 'pro'
929
- } as const;
930
-
931
- export type UserPlanDTONameEnum = typeof UserPlanDTONameEnum[keyof typeof UserPlanDTONameEnum];
932
-
933
- /**
934
- *
935
- * @export
936
- * @interface VerifyOTPPayloadDTO
937
- */
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
1009
 
972
1010
  /**
973
1011
  * AIApi - axios parameter creator
@@ -1136,119 +1174,14 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1136
1174
  return {
1137
1175
  /**
1138
1176
  *
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
1177
+ * @param {SignupDto} signupDto
1245
1178
  * @param {*} [options] Override http request option.
1246
1179
  * @throws {RequiredError}
1247
1180
  */
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`;
1181
+ authControllerBusinessRegister: async (signupDto: SignupDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1182
+ // verify required parameter 'signupDto' is not null or undefined
1183
+ assertParamExists('authControllerBusinessRegister', 'signupDto', signupDto)
1184
+ const localVarPath = `/v1/auth/business-register`;
1252
1185
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1253
1186
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1254
1187
  let baseOptions;
@@ -1260,10 +1193,6 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1260
1193
  const localVarHeaderParameter = {} as any;
1261
1194
  const localVarQueryParameter = {} as any;
1262
1195
 
1263
- // authentication bearer required
1264
- // http bearer authentication required
1265
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1266
-
1267
1196
 
1268
1197
 
1269
1198
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -1271,7 +1200,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1271
1200
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1272
1201
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1273
1202
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1274
- localVarRequestOptions.data = serializeDataIfNeeded(resetPasswordPayloadDTO, localVarRequestOptions, configuration)
1203
+ localVarRequestOptions.data = serializeDataIfNeeded(signupDto, localVarRequestOptions, configuration)
1275
1204
 
1276
1205
  return {
1277
1206
  url: toPathString(localVarUrlObj),
@@ -1382,41 +1311,6 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1382
1311
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1383
1312
  localVarRequestOptions.data = serializeDataIfNeeded(signupDto, localVarRequestOptions, configuration)
1384
1313
 
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
1314
  return {
1421
1315
  url: toPathString(localVarUrlObj),
1422
1316
  options: localVarRequestOptions,
@@ -1434,50 +1328,14 @@ export const AuthApiFp = function(configuration?: Configuration) {
1434
1328
  return {
1435
1329
  /**
1436
1330
  *
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
1331
+ * @param {SignupDto} signupDto
1474
1332
  * @param {*} [options] Override http request option.
1475
1333
  * @throws {RequiredError}
1476
1334
  */
1477
- async authControllerResetPassword(resetPasswordPayloadDTO: ResetPasswordPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResetPasswordResponseDTO>> {
1478
- const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerResetPassword(resetPasswordPayloadDTO, options);
1335
+ async authControllerBusinessRegister(signupDto: SignupDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignupResponseDto>> {
1336
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerBusinessRegister(signupDto, options);
1479
1337
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1480
- const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerResetPassword']?.[localVarOperationServerIndex]?.url;
1338
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerBusinessRegister']?.[localVarOperationServerIndex]?.url;
1481
1339
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1482
1340
  },
1483
1341
  /**
@@ -1516,18 +1374,6 @@ export const AuthApiFp = function(configuration?: Configuration) {
1516
1374
  const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerSignUp']?.[localVarOperationServerIndex]?.url;
1517
1375
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1518
1376
  },
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
1377
  }
1532
1378
  };
1533
1379
 
@@ -1540,39 +1386,12 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
1540
1386
  return {
1541
1387
  /**
1542
1388
  *
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
1389
+ * @param {SignupDto} signupDto
1571
1390
  * @param {*} [options] Override http request option.
1572
1391
  * @throws {RequiredError}
1573
1392
  */
1574
- authControllerResetPassword(resetPasswordPayloadDTO: ResetPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<ResetPasswordResponseDTO> {
1575
- return localVarFp.authControllerResetPassword(resetPasswordPayloadDTO, options).then((request) => request(axios, basePath));
1393
+ authControllerBusinessRegister(signupDto: SignupDto, options?: RawAxiosRequestConfig): AxiosPromise<SignupResponseDto> {
1394
+ return localVarFp.authControllerBusinessRegister(signupDto, options).then((request) => request(axios, basePath));
1576
1395
  },
1577
1396
  /**
1578
1397
  *
@@ -1601,15 +1420,6 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
1601
1420
  authControllerSignUp(signupDto: SignupDto, options?: RawAxiosRequestConfig): AxiosPromise<SignupResponseDto> {
1602
1421
  return localVarFp.authControllerSignUp(signupDto, options).then((request) => request(axios, basePath));
1603
1422
  },
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
1423
  };
1614
1424
  };
1615
1425
 
@@ -1622,46 +1432,13 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
1622
1432
  export class AuthApi extends BaseAPI {
1623
1433
  /**
1624
1434
  *
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
1435
+ * @param {SignupDto} signupDto
1659
1436
  * @param {*} [options] Override http request option.
1660
1437
  * @throws {RequiredError}
1661
1438
  * @memberof AuthApi
1662
1439
  */
1663
- public authControllerResetPassword(resetPasswordPayloadDTO: ResetPasswordPayloadDTO, options?: RawAxiosRequestConfig) {
1664
- return AuthApiFp(this.configuration).authControllerResetPassword(resetPasswordPayloadDTO, options).then((request) => request(this.axios, this.basePath));
1440
+ public authControllerBusinessRegister(signupDto: SignupDto, options?: RawAxiosRequestConfig) {
1441
+ return AuthApiFp(this.configuration).authControllerBusinessRegister(signupDto, options).then((request) => request(this.axios, this.basePath));
1665
1442
  }
1666
1443
 
1667
1444
  /**
@@ -1696,37 +1473,26 @@ export class AuthApi extends BaseAPI {
1696
1473
  public authControllerSignUp(signupDto: SignupDto, options?: RawAxiosRequestConfig) {
1697
1474
  return AuthApiFp(this.configuration).authControllerSignUp(signupDto, options).then((request) => request(this.axios, this.basePath));
1698
1475
  }
1699
-
1700
- /**
1701
- *
1702
- * @param {VerifyOTPPayloadDTO} verifyOTPPayloadDTO
1703
- * @param {*} [options] Override http request option.
1704
- * @throws {RequiredError}
1705
- * @memberof AuthApi
1706
- */
1707
- public authControllerVerifyOTP(verifyOTPPayloadDTO: VerifyOTPPayloadDTO, options?: RawAxiosRequestConfig) {
1708
- return AuthApiFp(this.configuration).authControllerVerifyOTP(verifyOTPPayloadDTO, options).then((request) => request(this.axios, this.basePath));
1709
- }
1710
1476
  }
1711
1477
 
1712
1478
 
1713
1479
 
1714
1480
  /**
1715
- * DeviceApi - axios parameter creator
1481
+ * BusinessCategoriesApi - axios parameter creator
1716
1482
  * @export
1717
1483
  */
1718
- export const DeviceApiAxiosParamCreator = function (configuration?: Configuration) {
1484
+ export const BusinessCategoriesApiAxiosParamCreator = function (configuration?: Configuration) {
1719
1485
  return {
1720
1486
  /**
1721
1487
  *
1722
- * @param {AddDevicePayload} addDevicePayload
1488
+ * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
1723
1489
  * @param {*} [options] Override http request option.
1724
1490
  * @throws {RequiredError}
1725
1491
  */
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`;
1492
+ businessControllerBusinessOnboarding: async (businessOnBoardingDTO: BusinessOnBoardingDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1493
+ // verify required parameter 'businessOnBoardingDTO' is not null or undefined
1494
+ assertParamExists('businessControllerBusinessOnboarding', 'businessOnBoardingDTO', businessOnBoardingDTO)
1495
+ const localVarPath = `/v1/business/onboarding`;
1730
1496
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1731
1497
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1732
1498
  let baseOptions;
@@ -1749,7 +1515,77 @@ export const DeviceApiAxiosParamCreator = function (configuration?: Configuratio
1749
1515
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1750
1516
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1751
1517
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1752
- localVarRequestOptions.data = serializeDataIfNeeded(addDevicePayload, localVarRequestOptions, configuration)
1518
+ localVarRequestOptions.data = serializeDataIfNeeded(businessOnBoardingDTO, localVarRequestOptions, configuration)
1519
+
1520
+ return {
1521
+ url: toPathString(localVarUrlObj),
1522
+ options: localVarRequestOptions,
1523
+ };
1524
+ },
1525
+ /**
1526
+ *
1527
+ * @param {*} [options] Override http request option.
1528
+ * @throws {RequiredError}
1529
+ */
1530
+ businessTypeControllerListBusinessType: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1531
+ const localVarPath = `/v1/business/list`;
1532
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1533
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1534
+ let baseOptions;
1535
+ if (configuration) {
1536
+ baseOptions = configuration.baseOptions;
1537
+ }
1538
+
1539
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1540
+ const localVarHeaderParameter = {} as any;
1541
+ const localVarQueryParameter = {} as any;
1542
+
1543
+ // authentication bearer required
1544
+ // http bearer authentication required
1545
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1546
+
1547
+
1548
+
1549
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1550
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1551
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1552
+
1553
+ return {
1554
+ url: toPathString(localVarUrlObj),
1555
+ options: localVarRequestOptions,
1556
+ };
1557
+ },
1558
+ /**
1559
+ *
1560
+ * @param {string} businessType
1561
+ * @param {*} [options] Override http request option.
1562
+ * @throws {RequiredError}
1563
+ */
1564
+ businessTypeControllerListCategories: async (businessType: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1565
+ // verify required parameter 'businessType' is not null or undefined
1566
+ assertParamExists('businessTypeControllerListCategories', 'businessType', businessType)
1567
+ const localVarPath = `/v1/business/{businessType}/categories`
1568
+ .replace(`{${"businessType"}}`, encodeURIComponent(String(businessType)));
1569
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1570
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1571
+ let baseOptions;
1572
+ if (configuration) {
1573
+ baseOptions = configuration.baseOptions;
1574
+ }
1575
+
1576
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1577
+ const localVarHeaderParameter = {} as any;
1578
+ const localVarQueryParameter = {} as any;
1579
+
1580
+ // authentication bearer required
1581
+ // http bearer authentication required
1582
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1583
+
1584
+
1585
+
1586
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1587
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1588
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1753
1589
 
1754
1590
  return {
1755
1591
  url: toPathString(localVarUrlObj),
@@ -1760,83 +1596,144 @@ export const DeviceApiAxiosParamCreator = function (configuration?: Configuratio
1760
1596
  };
1761
1597
 
1762
1598
  /**
1763
- * DeviceApi - functional programming interface
1599
+ * BusinessCategoriesApi - functional programming interface
1764
1600
  * @export
1765
1601
  */
1766
- export const DeviceApiFp = function(configuration?: Configuration) {
1767
- const localVarAxiosParamCreator = DeviceApiAxiosParamCreator(configuration)
1602
+ export const BusinessCategoriesApiFp = function(configuration?: Configuration) {
1603
+ const localVarAxiosParamCreator = BusinessCategoriesApiAxiosParamCreator(configuration)
1768
1604
  return {
1769
1605
  /**
1770
1606
  *
1771
- * @param {AddDevicePayload} addDevicePayload
1607
+ * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
1772
1608
  * @param {*} [options] Override http request option.
1773
1609
  * @throws {RequiredError}
1774
1610
  */
1775
- async deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceAddResponse>> {
1776
- const localVarAxiosArgs = await localVarAxiosParamCreator.deviceControllerAddDevice(addDevicePayload, options);
1611
+ async businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
1612
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerBusinessOnboarding(businessOnBoardingDTO, options);
1777
1613
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1778
- const localVarOperationServerBasePath = operationServerMap['DeviceApi.deviceControllerAddDevice']?.[localVarOperationServerIndex]?.url;
1614
+ const localVarOperationServerBasePath = operationServerMap['BusinessCategoriesApi.businessControllerBusinessOnboarding']?.[localVarOperationServerIndex]?.url;
1615
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1616
+ },
1617
+ /**
1618
+ *
1619
+ * @param {*} [options] Override http request option.
1620
+ * @throws {RequiredError}
1621
+ */
1622
+ async businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessTypeListResponse>> {
1623
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListBusinessType(options);
1624
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1625
+ const localVarOperationServerBasePath = operationServerMap['BusinessCategoriesApi.businessTypeControllerListBusinessType']?.[localVarOperationServerIndex]?.url;
1626
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1627
+ },
1628
+ /**
1629
+ *
1630
+ * @param {string} businessType
1631
+ * @param {*} [options] Override http request option.
1632
+ * @throws {RequiredError}
1633
+ */
1634
+ async businessTypeControllerListCategories(businessType: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryListResponse>> {
1635
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListCategories(businessType, options);
1636
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1637
+ const localVarOperationServerBasePath = operationServerMap['BusinessCategoriesApi.businessTypeControllerListCategories']?.[localVarOperationServerIndex]?.url;
1779
1638
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1780
1639
  },
1781
1640
  }
1782
1641
  };
1783
1642
 
1784
1643
  /**
1785
- * DeviceApi - factory interface
1644
+ * BusinessCategoriesApi - factory interface
1786
1645
  * @export
1787
1646
  */
1788
- export const DeviceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1789
- const localVarFp = DeviceApiFp(configuration)
1647
+ export const BusinessCategoriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1648
+ const localVarFp = BusinessCategoriesApiFp(configuration)
1790
1649
  return {
1791
1650
  /**
1792
1651
  *
1793
- * @param {AddDevicePayload} addDevicePayload
1652
+ * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
1794
1653
  * @param {*} [options] Override http request option.
1795
1654
  * @throws {RequiredError}
1796
1655
  */
1797
- deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig): AxiosPromise<DeviceAddResponse> {
1798
- return localVarFp.deviceControllerAddDevice(addDevicePayload, options).then((request) => request(axios, basePath));
1656
+ businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
1657
+ return localVarFp.businessControllerBusinessOnboarding(businessOnBoardingDTO, options).then((request) => request(axios, basePath));
1658
+ },
1659
+ /**
1660
+ *
1661
+ * @param {*} [options] Override http request option.
1662
+ * @throws {RequiredError}
1663
+ */
1664
+ businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig): AxiosPromise<BusinessTypeListResponse> {
1665
+ return localVarFp.businessTypeControllerListBusinessType(options).then((request) => request(axios, basePath));
1666
+ },
1667
+ /**
1668
+ *
1669
+ * @param {string} businessType
1670
+ * @param {*} [options] Override http request option.
1671
+ * @throws {RequiredError}
1672
+ */
1673
+ businessTypeControllerListCategories(businessType: string, options?: RawAxiosRequestConfig): AxiosPromise<CategoryListResponse> {
1674
+ return localVarFp.businessTypeControllerListCategories(businessType, options).then((request) => request(axios, basePath));
1799
1675
  },
1800
1676
  };
1801
1677
  };
1802
1678
 
1803
1679
  /**
1804
- * DeviceApi - object-oriented interface
1680
+ * BusinessCategoriesApi - object-oriented interface
1805
1681
  * @export
1806
- * @class DeviceApi
1682
+ * @class BusinessCategoriesApi
1807
1683
  * @extends {BaseAPI}
1808
1684
  */
1809
- export class DeviceApi extends BaseAPI {
1685
+ export class BusinessCategoriesApi extends BaseAPI {
1810
1686
  /**
1811
1687
  *
1812
- * @param {AddDevicePayload} addDevicePayload
1688
+ * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
1813
1689
  * @param {*} [options] Override http request option.
1814
1690
  * @throws {RequiredError}
1815
- * @memberof DeviceApi
1691
+ * @memberof BusinessCategoriesApi
1816
1692
  */
1817
- public deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig) {
1818
- return DeviceApiFp(this.configuration).deviceControllerAddDevice(addDevicePayload, options).then((request) => request(this.axios, this.basePath));
1693
+ public businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig) {
1694
+ return BusinessCategoriesApiFp(this.configuration).businessControllerBusinessOnboarding(businessOnBoardingDTO, options).then((request) => request(this.axios, this.basePath));
1695
+ }
1696
+
1697
+ /**
1698
+ *
1699
+ * @param {*} [options] Override http request option.
1700
+ * @throws {RequiredError}
1701
+ * @memberof BusinessCategoriesApi
1702
+ */
1703
+ public businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig) {
1704
+ return BusinessCategoriesApiFp(this.configuration).businessTypeControllerListBusinessType(options).then((request) => request(this.axios, this.basePath));
1705
+ }
1706
+
1707
+ /**
1708
+ *
1709
+ * @param {string} businessType
1710
+ * @param {*} [options] Override http request option.
1711
+ * @throws {RequiredError}
1712
+ * @memberof BusinessCategoriesApi
1713
+ */
1714
+ public businessTypeControllerListCategories(businessType: string, options?: RawAxiosRequestConfig) {
1715
+ return BusinessCategoriesApiFp(this.configuration).businessTypeControllerListCategories(businessType, options).then((request) => request(this.axios, this.basePath));
1819
1716
  }
1820
1717
  }
1821
1718
 
1822
1719
 
1823
1720
 
1824
1721
  /**
1825
- * GcsApi - axios parameter creator
1722
+ * DeviceApi - axios parameter creator
1826
1723
  * @export
1827
1724
  */
1828
- export const GcsApiAxiosParamCreator = function (configuration?: Configuration) {
1725
+ export const DeviceApiAxiosParamCreator = function (configuration?: Configuration) {
1829
1726
  return {
1830
1727
  /**
1831
1728
  *
1832
- * @param {FileNameUploadDTO} fileNameUploadDTO
1729
+ * @param {AddDevicePayload} addDevicePayload
1833
1730
  * @param {*} [options] Override http request option.
1834
1731
  * @throws {RequiredError}
1835
1732
  */
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`;
1733
+ deviceControllerAddDevice: async (addDevicePayload: AddDevicePayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1734
+ // verify required parameter 'addDevicePayload' is not null or undefined
1735
+ assertParamExists('deviceControllerAddDevice', 'addDevicePayload', addDevicePayload)
1736
+ const localVarPath = `/v1/device`;
1840
1737
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1841
1738
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1842
1739
  let baseOptions;
@@ -1848,6 +1745,10 @@ export const GcsApiAxiosParamCreator = function (configuration?: Configuration)
1848
1745
  const localVarHeaderParameter = {} as any;
1849
1746
  const localVarQueryParameter = {} as any;
1850
1747
 
1748
+ // authentication bearer required
1749
+ // http bearer authentication required
1750
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1751
+
1851
1752
 
1852
1753
 
1853
1754
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -1855,7 +1756,7 @@ export const GcsApiAxiosParamCreator = function (configuration?: Configuration)
1855
1756
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1856
1757
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1857
1758
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1858
- localVarRequestOptions.data = serializeDataIfNeeded(fileNameUploadDTO, localVarRequestOptions, configuration)
1759
+ localVarRequestOptions.data = serializeDataIfNeeded(addDevicePayload, localVarRequestOptions, configuration)
1859
1760
 
1860
1761
  return {
1861
1762
  url: toPathString(localVarUrlObj),
@@ -1866,62 +1767,62 @@ export const GcsApiAxiosParamCreator = function (configuration?: Configuration)
1866
1767
  };
1867
1768
 
1868
1769
  /**
1869
- * GcsApi - functional programming interface
1770
+ * DeviceApi - functional programming interface
1870
1771
  * @export
1871
1772
  */
1872
- export const GcsApiFp = function(configuration?: Configuration) {
1873
- const localVarAxiosParamCreator = GcsApiAxiosParamCreator(configuration)
1773
+ export const DeviceApiFp = function(configuration?: Configuration) {
1774
+ const localVarAxiosParamCreator = DeviceApiAxiosParamCreator(configuration)
1874
1775
  return {
1875
1776
  /**
1876
1777
  *
1877
- * @param {FileNameUploadDTO} fileNameUploadDTO
1778
+ * @param {AddDevicePayload} addDevicePayload
1878
1779
  * @param {*} [options] Override http request option.
1879
1780
  * @throws {RequiredError}
1880
1781
  */
1881
- async gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignedUrlResponseDTO>> {
1882
- const localVarAxiosArgs = await localVarAxiosParamCreator.gcpControllerUploadFile(fileNameUploadDTO, options);
1782
+ async deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceAddResponse>> {
1783
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deviceControllerAddDevice(addDevicePayload, options);
1883
1784
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1884
- const localVarOperationServerBasePath = operationServerMap['GcsApi.gcpControllerUploadFile']?.[localVarOperationServerIndex]?.url;
1785
+ const localVarOperationServerBasePath = operationServerMap['DeviceApi.deviceControllerAddDevice']?.[localVarOperationServerIndex]?.url;
1885
1786
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1886
1787
  },
1887
1788
  }
1888
1789
  };
1889
1790
 
1890
1791
  /**
1891
- * GcsApi - factory interface
1792
+ * DeviceApi - factory interface
1892
1793
  * @export
1893
1794
  */
1894
- export const GcsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1895
- const localVarFp = GcsApiFp(configuration)
1795
+ export const DeviceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1796
+ const localVarFp = DeviceApiFp(configuration)
1896
1797
  return {
1897
1798
  /**
1898
1799
  *
1899
- * @param {FileNameUploadDTO} fileNameUploadDTO
1800
+ * @param {AddDevicePayload} addDevicePayload
1900
1801
  * @param {*} [options] Override http request option.
1901
1802
  * @throws {RequiredError}
1902
1803
  */
1903
- gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig): AxiosPromise<SignedUrlResponseDTO> {
1904
- return localVarFp.gcpControllerUploadFile(fileNameUploadDTO, options).then((request) => request(axios, basePath));
1804
+ deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig): AxiosPromise<DeviceAddResponse> {
1805
+ return localVarFp.deviceControllerAddDevice(addDevicePayload, options).then((request) => request(axios, basePath));
1905
1806
  },
1906
1807
  };
1907
1808
  };
1908
1809
 
1909
1810
  /**
1910
- * GcsApi - object-oriented interface
1811
+ * DeviceApi - object-oriented interface
1911
1812
  * @export
1912
- * @class GcsApi
1813
+ * @class DeviceApi
1913
1814
  * @extends {BaseAPI}
1914
1815
  */
1915
- export class GcsApi extends BaseAPI {
1816
+ export class DeviceApi extends BaseAPI {
1916
1817
  /**
1917
1818
  *
1918
- * @param {FileNameUploadDTO} fileNameUploadDTO
1819
+ * @param {AddDevicePayload} addDevicePayload
1919
1820
  * @param {*} [options] Override http request option.
1920
1821
  * @throws {RequiredError}
1921
- * @memberof GcsApi
1822
+ * @memberof DeviceApi
1922
1823
  */
1923
- public gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig) {
1924
- return GcsApiFp(this.configuration).gcpControllerUploadFile(fileNameUploadDTO, options).then((request) => request(this.axios, this.basePath));
1824
+ public deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig) {
1825
+ return DeviceApiFp(this.configuration).deviceControllerAddDevice(addDevicePayload, options).then((request) => request(this.axios, this.basePath));
1925
1826
  }
1926
1827
  }
1927
1828