@gooday_corp/gooday-api-client 1.0.16-beta → 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 +493 -510
  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
@@ -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
@@ -735,12 +849,6 @@ export interface SignupDto {
735
849
  * @memberof SignupDto
736
850
  */
737
851
  'email': string;
738
- /**
739
- * User Profile Name
740
- * @type {string}
741
- * @memberof SignupDto
742
- */
743
- 'profile': string;
744
852
  /**
745
853
  * The password for the user account
746
854
  * @type {string}
@@ -795,26 +903,7 @@ export interface SignupResponseDto {
795
903
  /**
796
904
  *
797
905
  * @export
798
- * @interface SkillDto
799
- */
800
- export interface SkillDto {
801
- /**
802
- * Title of the skill
803
- * @type {string}
804
- * @memberof SkillDto
805
- */
806
- 'title': string;
807
- /**
808
- * Value or rating of the skill out of 1
809
- * @type {number}
810
- * @memberof SkillDto
811
- */
812
- 'weightage': number;
813
- }
814
- /**
815
- *
816
- * @export
817
- * @interface UserEntity
906
+ * @interface UserEntity
818
907
  */
819
908
  export interface UserEntity {
820
909
  /**
@@ -835,12 +924,6 @@ export interface UserEntity {
835
924
  * @memberof UserEntity
836
925
  */
837
926
  'lastName': string;
838
- /**
839
- * Profile Picture of User
840
- * @type {string}
841
- * @memberof UserEntity
842
- */
843
- 'profile': string;
844
927
  /**
845
928
  * Email address of the user
846
929
  * @type {string}
@@ -876,7 +959,7 @@ export interface UserEntity {
876
959
  * @type {string}
877
960
  * @memberof UserEntity
878
961
  */
879
- 'role': string;
962
+ 'role': UserEntityRoleEnum;
880
963
  /**
881
964
  * Goals why user is using the product
882
965
  * @type {Array<string>}
@@ -894,8 +977,16 @@ export interface UserEntity {
894
977
  * @type {Array<string>}
895
978
  * @memberof UserEntity
896
979
  */
897
- 'pendingAction': Array<string>;
980
+ 'pendingAction'?: Array<string>;
898
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
+
899
990
  /**
900
991
  *
901
992
  * @export
@@ -915,44 +1006,6 @@ export interface UserMeDTO {
915
1006
  */
916
1007
  'data': UserEntity;
917
1008
  }
918
- /**
919
- *
920
- * @export
921
- * @interface VerifyOTPPayloadDTO
922
- */
923
- export interface VerifyOTPPayloadDTO {
924
- /**
925
- * 6 digit otp from mail
926
- * @type {string}
927
- * @memberof VerifyOTPPayloadDTO
928
- */
929
- 'otp': string;
930
- /**
931
- * Email of user
932
- * @type {string}
933
- * @memberof VerifyOTPPayloadDTO
934
- */
935
- 'email': string;
936
- }
937
- /**
938
- *
939
- * @export
940
- * @interface VerifyOTPResponseDTO
941
- */
942
- export interface VerifyOTPResponseDTO {
943
- /**
944
- * The HTTP status code
945
- * @type {number}
946
- * @memberof VerifyOTPResponseDTO
947
- */
948
- 'statusCode': number;
949
- /**
950
- * The
951
- * @type {string}
952
- * @memberof VerifyOTPResponseDTO
953
- */
954
- 'message': string;
955
- }
956
1009
 
957
1010
  /**
958
1011
  * AIApi - axios parameter creator
@@ -1121,84 +1174,14 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1121
1174
  return {
1122
1175
  /**
1123
1176
  *
1124
- * @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
1125
- * @param {*} [options] Override http request option.
1126
- * @throws {RequiredError}
1127
- */
1128
- authControllerCreateNewPassword: async (newPasswordPayloadDTO: NewPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1129
- // verify required parameter 'newPasswordPayloadDTO' is not null or undefined
1130
- assertParamExists('authControllerCreateNewPassword', 'newPasswordPayloadDTO', newPasswordPayloadDTO)
1131
- const localVarPath = `/v1/auth/new-password`;
1132
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1133
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1134
- let baseOptions;
1135
- if (configuration) {
1136
- baseOptions = configuration.baseOptions;
1137
- }
1138
-
1139
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1140
- const localVarHeaderParameter = {} as any;
1141
- const localVarQueryParameter = {} as any;
1142
-
1143
-
1144
-
1145
- localVarHeaderParameter['Content-Type'] = 'application/json';
1146
-
1147
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1148
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1149
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1150
- localVarRequestOptions.data = serializeDataIfNeeded(newPasswordPayloadDTO, localVarRequestOptions, configuration)
1151
-
1152
- return {
1153
- url: toPathString(localVarUrlObj),
1154
- options: localVarRequestOptions,
1155
- };
1156
- },
1157
- /**
1158
- *
1159
- * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
1160
- * @param {*} [options] Override http request option.
1161
- * @throws {RequiredError}
1162
- */
1163
- authControllerForgotPassword: async (forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1164
- // verify required parameter 'forgotPasswordPayloadDTO' is not null or undefined
1165
- assertParamExists('authControllerForgotPassword', 'forgotPasswordPayloadDTO', forgotPasswordPayloadDTO)
1166
- const localVarPath = `/v1/auth/forgot-password`;
1167
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1168
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1169
- let baseOptions;
1170
- if (configuration) {
1171
- baseOptions = configuration.baseOptions;
1172
- }
1173
-
1174
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1175
- const localVarHeaderParameter = {} as any;
1176
- const localVarQueryParameter = {} as any;
1177
-
1178
-
1179
-
1180
- localVarHeaderParameter['Content-Type'] = 'application/json';
1181
-
1182
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1183
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1184
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1185
- localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordPayloadDTO, localVarRequestOptions, configuration)
1186
-
1187
- return {
1188
- url: toPathString(localVarUrlObj),
1189
- options: localVarRequestOptions,
1190
- };
1191
- },
1192
- /**
1193
- *
1194
- * @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
1177
+ * @param {SignupDto} signupDto
1195
1178
  * @param {*} [options] Override http request option.
1196
1179
  * @throws {RequiredError}
1197
1180
  */
1198
- authControllerResetPassword: async (resetPasswordPayloadDTO: ResetPasswordPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1199
- // verify required parameter 'resetPasswordPayloadDTO' is not null or undefined
1200
- assertParamExists('authControllerResetPassword', 'resetPasswordPayloadDTO', resetPasswordPayloadDTO)
1201
- 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`;
1202
1185
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1203
1186
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1204
1187
  let baseOptions;
@@ -1210,10 +1193,6 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1210
1193
  const localVarHeaderParameter = {} as any;
1211
1194
  const localVarQueryParameter = {} as any;
1212
1195
 
1213
- // authentication bearer required
1214
- // http bearer authentication required
1215
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1216
-
1217
1196
 
1218
1197
 
1219
1198
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -1221,7 +1200,7 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1221
1200
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1222
1201
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1223
1202
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1224
- localVarRequestOptions.data = serializeDataIfNeeded(resetPasswordPayloadDTO, localVarRequestOptions, configuration)
1203
+ localVarRequestOptions.data = serializeDataIfNeeded(signupDto, localVarRequestOptions, configuration)
1225
1204
 
1226
1205
  return {
1227
1206
  url: toPathString(localVarUrlObj),
@@ -1332,41 +1311,6 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1332
1311
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1333
1312
  localVarRequestOptions.data = serializeDataIfNeeded(signupDto, localVarRequestOptions, configuration)
1334
1313
 
1335
- return {
1336
- url: toPathString(localVarUrlObj),
1337
- options: localVarRequestOptions,
1338
- };
1339
- },
1340
- /**
1341
- *
1342
- * @param {VerifyOTPPayloadDTO} verifyOTPPayloadDTO
1343
- * @param {*} [options] Override http request option.
1344
- * @throws {RequiredError}
1345
- */
1346
- authControllerVerifyOTP: async (verifyOTPPayloadDTO: VerifyOTPPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1347
- // verify required parameter 'verifyOTPPayloadDTO' is not null or undefined
1348
- assertParamExists('authControllerVerifyOTP', 'verifyOTPPayloadDTO', verifyOTPPayloadDTO)
1349
- const localVarPath = `/v1/auth/verify-otp`;
1350
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1351
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1352
- let baseOptions;
1353
- if (configuration) {
1354
- baseOptions = configuration.baseOptions;
1355
- }
1356
-
1357
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1358
- const localVarHeaderParameter = {} as any;
1359
- const localVarQueryParameter = {} as any;
1360
-
1361
-
1362
-
1363
- localVarHeaderParameter['Content-Type'] = 'application/json';
1364
-
1365
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1366
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1367
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1368
- localVarRequestOptions.data = serializeDataIfNeeded(verifyOTPPayloadDTO, localVarRequestOptions, configuration)
1369
-
1370
1314
  return {
1371
1315
  url: toPathString(localVarUrlObj),
1372
1316
  options: localVarRequestOptions,
@@ -1384,38 +1328,14 @@ export const AuthApiFp = function(configuration?: Configuration) {
1384
1328
  return {
1385
1329
  /**
1386
1330
  *
1387
- * @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
1388
- * @param {*} [options] Override http request option.
1389
- * @throws {RequiredError}
1390
- */
1391
- async authControllerCreateNewPassword(newPasswordPayloadDTO: NewPasswordPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NewPasswordResponseDTO>> {
1392
- const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerCreateNewPassword(newPasswordPayloadDTO, options);
1393
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1394
- const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerCreateNewPassword']?.[localVarOperationServerIndex]?.url;
1395
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1396
- },
1397
- /**
1398
- *
1399
- * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
1400
- * @param {*} [options] Override http request option.
1401
- * @throws {RequiredError}
1402
- */
1403
- async authControllerForgotPassword(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ForgotPasswordResponseDTO>> {
1404
- const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerForgotPassword(forgotPasswordPayloadDTO, options);
1405
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1406
- const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerForgotPassword']?.[localVarOperationServerIndex]?.url;
1407
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1408
- },
1409
- /**
1410
- *
1411
- * @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
1331
+ * @param {SignupDto} signupDto
1412
1332
  * @param {*} [options] Override http request option.
1413
1333
  * @throws {RequiredError}
1414
1334
  */
1415
- async authControllerResetPassword(resetPasswordPayloadDTO: ResetPasswordPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResetPasswordResponseDTO>> {
1416
- 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);
1417
1337
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1418
- const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerResetPassword']?.[localVarOperationServerIndex]?.url;
1338
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerBusinessRegister']?.[localVarOperationServerIndex]?.url;
1419
1339
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1420
1340
  },
1421
1341
  /**
@@ -1454,18 +1374,6 @@ export const AuthApiFp = function(configuration?: Configuration) {
1454
1374
  const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerSignUp']?.[localVarOperationServerIndex]?.url;
1455
1375
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1456
1376
  },
1457
- /**
1458
- *
1459
- * @param {VerifyOTPPayloadDTO} verifyOTPPayloadDTO
1460
- * @param {*} [options] Override http request option.
1461
- * @throws {RequiredError}
1462
- */
1463
- async authControllerVerifyOTP(verifyOTPPayloadDTO: VerifyOTPPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyOTPResponseDTO>> {
1464
- const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerVerifyOTP(verifyOTPPayloadDTO, options);
1465
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1466
- const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerVerifyOTP']?.[localVarOperationServerIndex]?.url;
1467
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1468
- },
1469
1377
  }
1470
1378
  };
1471
1379
 
@@ -1478,30 +1386,12 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
1478
1386
  return {
1479
1387
  /**
1480
1388
  *
1481
- * @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
1482
- * @param {*} [options] Override http request option.
1483
- * @throws {RequiredError}
1484
- */
1485
- authControllerCreateNewPassword(newPasswordPayloadDTO: NewPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<NewPasswordResponseDTO> {
1486
- return localVarFp.authControllerCreateNewPassword(newPasswordPayloadDTO, options).then((request) => request(axios, basePath));
1487
- },
1488
- /**
1489
- *
1490
- * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
1491
- * @param {*} [options] Override http request option.
1492
- * @throws {RequiredError}
1493
- */
1494
- authControllerForgotPassword(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<ForgotPasswordResponseDTO> {
1495
- return localVarFp.authControllerForgotPassword(forgotPasswordPayloadDTO, options).then((request) => request(axios, basePath));
1496
- },
1497
- /**
1498
- *
1499
- * @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
1389
+ * @param {SignupDto} signupDto
1500
1390
  * @param {*} [options] Override http request option.
1501
1391
  * @throws {RequiredError}
1502
1392
  */
1503
- authControllerResetPassword(resetPasswordPayloadDTO: ResetPasswordPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<ResetPasswordResponseDTO> {
1504
- 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));
1505
1395
  },
1506
1396
  /**
1507
1397
  *
@@ -1530,15 +1420,6 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
1530
1420
  authControllerSignUp(signupDto: SignupDto, options?: RawAxiosRequestConfig): AxiosPromise<SignupResponseDto> {
1531
1421
  return localVarFp.authControllerSignUp(signupDto, options).then((request) => request(axios, basePath));
1532
1422
  },
1533
- /**
1534
- *
1535
- * @param {VerifyOTPPayloadDTO} verifyOTPPayloadDTO
1536
- * @param {*} [options] Override http request option.
1537
- * @throws {RequiredError}
1538
- */
1539
- authControllerVerifyOTP(verifyOTPPayloadDTO: VerifyOTPPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<VerifyOTPResponseDTO> {
1540
- return localVarFp.authControllerVerifyOTP(verifyOTPPayloadDTO, options).then((request) => request(axios, basePath));
1541
- },
1542
1423
  };
1543
1424
  };
1544
1425
 
@@ -1551,35 +1432,13 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
1551
1432
  export class AuthApi extends BaseAPI {
1552
1433
  /**
1553
1434
  *
1554
- * @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
1555
- * @param {*} [options] Override http request option.
1556
- * @throws {RequiredError}
1557
- * @memberof AuthApi
1558
- */
1559
- public authControllerCreateNewPassword(newPasswordPayloadDTO: NewPasswordPayloadDTO, options?: RawAxiosRequestConfig) {
1560
- return AuthApiFp(this.configuration).authControllerCreateNewPassword(newPasswordPayloadDTO, options).then((request) => request(this.axios, this.basePath));
1561
- }
1562
-
1563
- /**
1564
- *
1565
- * @param {ForgotPasswordPayloadDTO} forgotPasswordPayloadDTO
1566
- * @param {*} [options] Override http request option.
1567
- * @throws {RequiredError}
1568
- * @memberof AuthApi
1569
- */
1570
- public authControllerForgotPassword(forgotPasswordPayloadDTO: ForgotPasswordPayloadDTO, options?: RawAxiosRequestConfig) {
1571
- return AuthApiFp(this.configuration).authControllerForgotPassword(forgotPasswordPayloadDTO, options).then((request) => request(this.axios, this.basePath));
1572
- }
1573
-
1574
- /**
1575
- *
1576
- * @param {ResetPasswordPayloadDTO} resetPasswordPayloadDTO
1435
+ * @param {SignupDto} signupDto
1577
1436
  * @param {*} [options] Override http request option.
1578
1437
  * @throws {RequiredError}
1579
1438
  * @memberof AuthApi
1580
1439
  */
1581
- public authControllerResetPassword(resetPasswordPayloadDTO: ResetPasswordPayloadDTO, options?: RawAxiosRequestConfig) {
1582
- 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));
1583
1442
  }
1584
1443
 
1585
1444
  /**
@@ -1614,37 +1473,26 @@ export class AuthApi extends BaseAPI {
1614
1473
  public authControllerSignUp(signupDto: SignupDto, options?: RawAxiosRequestConfig) {
1615
1474
  return AuthApiFp(this.configuration).authControllerSignUp(signupDto, options).then((request) => request(this.axios, this.basePath));
1616
1475
  }
1617
-
1618
- /**
1619
- *
1620
- * @param {VerifyOTPPayloadDTO} verifyOTPPayloadDTO
1621
- * @param {*} [options] Override http request option.
1622
- * @throws {RequiredError}
1623
- * @memberof AuthApi
1624
- */
1625
- public authControllerVerifyOTP(verifyOTPPayloadDTO: VerifyOTPPayloadDTO, options?: RawAxiosRequestConfig) {
1626
- return AuthApiFp(this.configuration).authControllerVerifyOTP(verifyOTPPayloadDTO, options).then((request) => request(this.axios, this.basePath));
1627
- }
1628
1476
  }
1629
1477
 
1630
1478
 
1631
1479
 
1632
1480
  /**
1633
- * DeviceApi - axios parameter creator
1481
+ * BusinessCategoriesApi - axios parameter creator
1634
1482
  * @export
1635
1483
  */
1636
- export const DeviceApiAxiosParamCreator = function (configuration?: Configuration) {
1484
+ export const BusinessCategoriesApiAxiosParamCreator = function (configuration?: Configuration) {
1637
1485
  return {
1638
1486
  /**
1639
1487
  *
1640
- * @param {AddDevicePayload} addDevicePayload
1488
+ * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
1641
1489
  * @param {*} [options] Override http request option.
1642
1490
  * @throws {RequiredError}
1643
1491
  */
1644
- deviceControllerAddDevice: async (addDevicePayload: AddDevicePayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1645
- // verify required parameter 'addDevicePayload' is not null or undefined
1646
- assertParamExists('deviceControllerAddDevice', 'addDevicePayload', addDevicePayload)
1647
- 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`;
1648
1496
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1649
1497
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1650
1498
  let baseOptions;
@@ -1667,7 +1515,77 @@ export const DeviceApiAxiosParamCreator = function (configuration?: Configuratio
1667
1515
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1668
1516
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1669
1517
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1670
- 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};
1671
1589
 
1672
1590
  return {
1673
1591
  url: toPathString(localVarUrlObj),
@@ -1678,83 +1596,144 @@ export const DeviceApiAxiosParamCreator = function (configuration?: Configuratio
1678
1596
  };
1679
1597
 
1680
1598
  /**
1681
- * DeviceApi - functional programming interface
1599
+ * BusinessCategoriesApi - functional programming interface
1682
1600
  * @export
1683
1601
  */
1684
- export const DeviceApiFp = function(configuration?: Configuration) {
1685
- const localVarAxiosParamCreator = DeviceApiAxiosParamCreator(configuration)
1602
+ export const BusinessCategoriesApiFp = function(configuration?: Configuration) {
1603
+ const localVarAxiosParamCreator = BusinessCategoriesApiAxiosParamCreator(configuration)
1686
1604
  return {
1687
1605
  /**
1688
1606
  *
1689
- * @param {AddDevicePayload} addDevicePayload
1607
+ * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
1690
1608
  * @param {*} [options] Override http request option.
1691
1609
  * @throws {RequiredError}
1692
1610
  */
1693
- async deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceAddResponse>> {
1694
- 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);
1695
1613
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1696
- 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;
1697
1638
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1698
1639
  },
1699
1640
  }
1700
1641
  };
1701
1642
 
1702
1643
  /**
1703
- * DeviceApi - factory interface
1644
+ * BusinessCategoriesApi - factory interface
1704
1645
  * @export
1705
1646
  */
1706
- export const DeviceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1707
- const localVarFp = DeviceApiFp(configuration)
1647
+ export const BusinessCategoriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1648
+ const localVarFp = BusinessCategoriesApiFp(configuration)
1708
1649
  return {
1709
1650
  /**
1710
1651
  *
1711
- * @param {AddDevicePayload} addDevicePayload
1652
+ * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
1712
1653
  * @param {*} [options] Override http request option.
1713
1654
  * @throws {RequiredError}
1714
1655
  */
1715
- deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig): AxiosPromise<DeviceAddResponse> {
1716
- 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));
1717
1675
  },
1718
1676
  };
1719
1677
  };
1720
1678
 
1721
1679
  /**
1722
- * DeviceApi - object-oriented interface
1680
+ * BusinessCategoriesApi - object-oriented interface
1723
1681
  * @export
1724
- * @class DeviceApi
1682
+ * @class BusinessCategoriesApi
1725
1683
  * @extends {BaseAPI}
1726
1684
  */
1727
- export class DeviceApi extends BaseAPI {
1685
+ export class BusinessCategoriesApi extends BaseAPI {
1728
1686
  /**
1729
1687
  *
1730
- * @param {AddDevicePayload} addDevicePayload
1688
+ * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
1731
1689
  * @param {*} [options] Override http request option.
1732
1690
  * @throws {RequiredError}
1733
- * @memberof DeviceApi
1691
+ * @memberof BusinessCategoriesApi
1734
1692
  */
1735
- public deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig) {
1736
- 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));
1737
1716
  }
1738
1717
  }
1739
1718
 
1740
1719
 
1741
1720
 
1742
1721
  /**
1743
- * GcsApi - axios parameter creator
1722
+ * DeviceApi - axios parameter creator
1744
1723
  * @export
1745
1724
  */
1746
- export const GcsApiAxiosParamCreator = function (configuration?: Configuration) {
1725
+ export const DeviceApiAxiosParamCreator = function (configuration?: Configuration) {
1747
1726
  return {
1748
1727
  /**
1749
1728
  *
1750
- * @param {FileNameUploadDTO} fileNameUploadDTO
1729
+ * @param {AddDevicePayload} addDevicePayload
1751
1730
  * @param {*} [options] Override http request option.
1752
1731
  * @throws {RequiredError}
1753
1732
  */
1754
- gcpControllerUploadFile: async (fileNameUploadDTO: FileNameUploadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1755
- // verify required parameter 'fileNameUploadDTO' is not null or undefined
1756
- assertParamExists('gcpControllerUploadFile', 'fileNameUploadDTO', fileNameUploadDTO)
1757
- 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`;
1758
1737
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1759
1738
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1760
1739
  let baseOptions;
@@ -1766,6 +1745,10 @@ export const GcsApiAxiosParamCreator = function (configuration?: Configuration)
1766
1745
  const localVarHeaderParameter = {} as any;
1767
1746
  const localVarQueryParameter = {} as any;
1768
1747
 
1748
+ // authentication bearer required
1749
+ // http bearer authentication required
1750
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1751
+
1769
1752
 
1770
1753
 
1771
1754
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -1773,7 +1756,7 @@ export const GcsApiAxiosParamCreator = function (configuration?: Configuration)
1773
1756
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1774
1757
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1775
1758
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1776
- localVarRequestOptions.data = serializeDataIfNeeded(fileNameUploadDTO, localVarRequestOptions, configuration)
1759
+ localVarRequestOptions.data = serializeDataIfNeeded(addDevicePayload, localVarRequestOptions, configuration)
1777
1760
 
1778
1761
  return {
1779
1762
  url: toPathString(localVarUrlObj),
@@ -1784,62 +1767,62 @@ export const GcsApiAxiosParamCreator = function (configuration?: Configuration)
1784
1767
  };
1785
1768
 
1786
1769
  /**
1787
- * GcsApi - functional programming interface
1770
+ * DeviceApi - functional programming interface
1788
1771
  * @export
1789
1772
  */
1790
- export const GcsApiFp = function(configuration?: Configuration) {
1791
- const localVarAxiosParamCreator = GcsApiAxiosParamCreator(configuration)
1773
+ export const DeviceApiFp = function(configuration?: Configuration) {
1774
+ const localVarAxiosParamCreator = DeviceApiAxiosParamCreator(configuration)
1792
1775
  return {
1793
1776
  /**
1794
1777
  *
1795
- * @param {FileNameUploadDTO} fileNameUploadDTO
1778
+ * @param {AddDevicePayload} addDevicePayload
1796
1779
  * @param {*} [options] Override http request option.
1797
1780
  * @throws {RequiredError}
1798
1781
  */
1799
- async gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignedUrlResponseDTO>> {
1800
- 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);
1801
1784
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1802
- const localVarOperationServerBasePath = operationServerMap['GcsApi.gcpControllerUploadFile']?.[localVarOperationServerIndex]?.url;
1785
+ const localVarOperationServerBasePath = operationServerMap['DeviceApi.deviceControllerAddDevice']?.[localVarOperationServerIndex]?.url;
1803
1786
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1804
1787
  },
1805
1788
  }
1806
1789
  };
1807
1790
 
1808
1791
  /**
1809
- * GcsApi - factory interface
1792
+ * DeviceApi - factory interface
1810
1793
  * @export
1811
1794
  */
1812
- export const GcsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1813
- const localVarFp = GcsApiFp(configuration)
1795
+ export const DeviceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1796
+ const localVarFp = DeviceApiFp(configuration)
1814
1797
  return {
1815
1798
  /**
1816
1799
  *
1817
- * @param {FileNameUploadDTO} fileNameUploadDTO
1800
+ * @param {AddDevicePayload} addDevicePayload
1818
1801
  * @param {*} [options] Override http request option.
1819
1802
  * @throws {RequiredError}
1820
1803
  */
1821
- gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig): AxiosPromise<SignedUrlResponseDTO> {
1822
- 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));
1823
1806
  },
1824
1807
  };
1825
1808
  };
1826
1809
 
1827
1810
  /**
1828
- * GcsApi - object-oriented interface
1811
+ * DeviceApi - object-oriented interface
1829
1812
  * @export
1830
- * @class GcsApi
1813
+ * @class DeviceApi
1831
1814
  * @extends {BaseAPI}
1832
1815
  */
1833
- export class GcsApi extends BaseAPI {
1816
+ export class DeviceApi extends BaseAPI {
1834
1817
  /**
1835
1818
  *
1836
- * @param {FileNameUploadDTO} fileNameUploadDTO
1819
+ * @param {AddDevicePayload} addDevicePayload
1837
1820
  * @param {*} [options] Override http request option.
1838
1821
  * @throws {RequiredError}
1839
- * @memberof GcsApi
1822
+ * @memberof DeviceApi
1840
1823
  */
1841
- public gcpControllerUploadFile(fileNameUploadDTO: FileNameUploadDTO, options?: RawAxiosRequestConfig) {
1842
- 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));
1843
1826
  }
1844
1827
  }
1845
1828