@gooday_corp/gooday-api-client 1.1.12-delta-8 → 1.1.12-delta-9

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 +680 -156
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -178,12 +178,24 @@ export interface BusinessEntity {
178
178
  * @memberof BusinessEntity
179
179
  */
180
180
  'timing'?: Array<BusinessTiming>;
181
+ /**
182
+ * Business Current Timing
183
+ * @type {BusinessTiming}
184
+ * @memberof BusinessEntity
185
+ */
186
+ 'currentTime'?: BusinessTiming;
181
187
  /**
182
188
  * Business policies
183
189
  * @type {string}
184
190
  * @memberof BusinessEntity
185
191
  */
186
192
  'policies'?: string;
193
+ /**
194
+ * Business Name
195
+ * @type {string}
196
+ * @memberof BusinessEntity
197
+ */
198
+ 'name'?: string;
187
199
  /**
188
200
  * Business cancellationFee
189
201
  * @type {number}
@@ -204,10 +216,10 @@ export interface BusinessEntity {
204
216
  'businessCountry'?: string;
205
217
  /**
206
218
  * Business Venue
207
- * @type {Array<BusinessVenueDTO>}
219
+ * @type {Array<string>}
208
220
  * @memberof BusinessEntity
209
221
  */
210
- 'venues'?: Array<BusinessVenueDTO>;
222
+ 'venues'?: Array<string>;
211
223
  /**
212
224
  * Business Type
213
225
  * @type {string}
@@ -236,12 +248,45 @@ export interface BusinessEntity {
236
248
 
237
249
  export const BusinessEntityStatusEnum = {
238
250
  Verified: 'VERIFIED',
251
+ InProgress: 'IN_PROGRESS',
239
252
  Pending: 'PENDING',
240
253
  QuoteRequested: 'QUOTE_REQUESTED'
241
254
  } as const;
242
255
 
243
256
  export type BusinessEntityStatusEnum = typeof BusinessEntityStatusEnum[keyof typeof BusinessEntityStatusEnum];
244
257
 
258
+ /**
259
+ *
260
+ * @export
261
+ * @interface BusinessFavoriteDTO
262
+ */
263
+ export interface BusinessFavoriteDTO {
264
+ /**
265
+ * Business Venue Id
266
+ * @type {string}
267
+ * @memberof BusinessFavoriteDTO
268
+ */
269
+ 'venue': string;
270
+ }
271
+ /**
272
+ *
273
+ * @export
274
+ * @interface BusinessFavoriteResponse
275
+ */
276
+ export interface BusinessFavoriteResponse {
277
+ /**
278
+ * statusCode
279
+ * @type {number}
280
+ * @memberof BusinessFavoriteResponse
281
+ */
282
+ 'statusCode': number;
283
+ /**
284
+ * Business Favorite
285
+ * @type {BusinessFavoriteDTO}
286
+ * @memberof BusinessFavoriteResponse
287
+ */
288
+ 'data': BusinessFavoriteDTO;
289
+ }
245
290
  /**
246
291
  *
247
292
  * @export
@@ -266,6 +311,12 @@ export interface BusinessOnBoardingDTO {
266
311
  * @memberof BusinessOnBoardingDTO
267
312
  */
268
313
  'policies'?: string;
314
+ /**
315
+ * Business Name
316
+ * @type {string}
317
+ * @memberof BusinessOnBoardingDTO
318
+ */
319
+ 'name'?: string;
269
320
  /**
270
321
  * Business cancellationFee
271
322
  * @type {number}
@@ -384,6 +435,37 @@ export interface BusinessTypeEntity {
384
435
  * @memberof BusinessTypeEntity
385
436
  */
386
437
  'name': string;
438
+ /**
439
+ * Image background color
440
+ * @type {string}
441
+ * @memberof BusinessTypeEntity
442
+ */
443
+ 'backgroundColor': string;
444
+ /**
445
+ * Business Image
446
+ * @type {BusinessTypeImageDTO}
447
+ * @memberof BusinessTypeEntity
448
+ */
449
+ 'images': BusinessTypeImageDTO;
450
+ }
451
+ /**
452
+ *
453
+ * @export
454
+ * @interface BusinessTypeImageDTO
455
+ */
456
+ export interface BusinessTypeImageDTO {
457
+ /**
458
+ * Business Type Image Small
459
+ * @type {string}
460
+ * @memberof BusinessTypeImageDTO
461
+ */
462
+ 'small': string;
463
+ /**
464
+ * Business Type Image Large
465
+ * @type {string}
466
+ * @memberof BusinessTypeImageDTO
467
+ */
468
+ 'large': string;
387
469
  }
388
470
  /**
389
471
  *
@@ -404,6 +486,25 @@ export interface BusinessTypeListResponse {
404
486
  */
405
487
  'data': Array<BusinessTypeEntity>;
406
488
  }
489
+ /**
490
+ *
491
+ * @export
492
+ * @interface BusinessUnFavoriteResponse
493
+ */
494
+ export interface BusinessUnFavoriteResponse {
495
+ /**
496
+ * statusCode
497
+ * @type {number}
498
+ * @memberof BusinessUnFavoriteResponse
499
+ */
500
+ 'statusCode': number;
501
+ /**
502
+ * Business Favorite Rule
503
+ * @type {string}
504
+ * @memberof BusinessUnFavoriteResponse
505
+ */
506
+ 'message': string;
507
+ }
407
508
  /**
408
509
  *
409
510
  * @export
@@ -411,11 +512,11 @@ export interface BusinessTypeListResponse {
411
512
  */
412
513
  export interface BusinessVenueDTO {
413
514
  /**
414
- *
515
+ * coverPhots
415
516
  * @type {string}
416
517
  * @memberof BusinessVenueDTO
417
518
  */
418
- 'coverPhotos': string;
519
+ 'coverPhoto': string;
419
520
  /**
420
521
  *
421
522
  * @type {string}
@@ -428,6 +529,80 @@ export interface BusinessVenueDTO {
428
529
  * @memberof BusinessVenueDTO
429
530
  */
430
531
  'location': LocationDTO;
532
+ /**
533
+ *
534
+ * @type {string}
535
+ * @memberof BusinessVenueDTO
536
+ */
537
+ 'numberOfEmployee': string;
538
+ }
539
+ /**
540
+ *
541
+ * @export
542
+ * @interface BusinessVenueDetailsEntity
543
+ */
544
+ export interface BusinessVenueDetailsEntity {
545
+ /**
546
+ * Unique identifier for the business venue
547
+ * @type {string}
548
+ * @memberof BusinessVenueDetailsEntity
549
+ */
550
+ '_id'?: string;
551
+ /**
552
+ * coverPhots
553
+ * @type {string}
554
+ * @memberof BusinessVenueDetailsEntity
555
+ */
556
+ 'coverPhoto': string;
557
+ /**
558
+ *
559
+ * @type {string}
560
+ * @memberof BusinessVenueDetailsEntity
561
+ */
562
+ 'priceRange': string;
563
+ /**
564
+ *
565
+ * @type {LocationDTO}
566
+ * @memberof BusinessVenueDetailsEntity
567
+ */
568
+ 'location': LocationDTO;
569
+ /**
570
+ *
571
+ * @type {string}
572
+ * @memberof BusinessVenueDetailsEntity
573
+ */
574
+ 'numberOfEmployee': string;
575
+ /**
576
+ *
577
+ * @type {UserEntity}
578
+ * @memberof BusinessVenueDetailsEntity
579
+ */
580
+ 'user': UserEntity;
581
+ /**
582
+ *
583
+ * @type {BusinessEntity}
584
+ * @memberof BusinessVenueDetailsEntity
585
+ */
586
+ 'business': BusinessEntity;
587
+ }
588
+ /**
589
+ *
590
+ * @export
591
+ * @interface BusinessVenueResponseDTO
592
+ */
593
+ export interface BusinessVenueResponseDTO {
594
+ /**
595
+ * statusCode
596
+ * @type {number}
597
+ * @memberof BusinessVenueResponseDTO
598
+ */
599
+ 'statusCode': number;
600
+ /**
601
+ * Business verification
602
+ * @type {Array<BusinessVenueDetailsEntity>}
603
+ * @memberof BusinessVenueResponseDTO
604
+ */
605
+ 'data': Array<BusinessVenueDetailsEntity>;
431
606
  }
432
607
  /**
433
608
  *
@@ -492,6 +667,12 @@ export interface CategoryEntity {
492
667
  * @memberof CategoryEntity
493
668
  */
494
669
  'name': string;
670
+ /**
671
+ * Image of category
672
+ * @type {string}
673
+ * @memberof CategoryEntity
674
+ */
675
+ 'image': string;
495
676
  /**
496
677
  * Unique identifier or reference of the business Type
497
678
  * @type {string}
@@ -800,6 +981,43 @@ export const FriendshipStatusDTOSuccessEnum = {
800
981
 
801
982
  export type FriendshipStatusDTOSuccessEnum = typeof FriendshipStatusDTOSuccessEnum[keyof typeof FriendshipStatusDTOSuccessEnum];
802
983
 
984
+ /**
985
+ *
986
+ * @export
987
+ * @interface GetBusinessVenueDto
988
+ */
989
+ export interface GetBusinessVenueDto {
990
+ /**
991
+ * Business type ID
992
+ * @type {string}
993
+ * @memberof GetBusinessVenueDto
994
+ */
995
+ 'type'?: string;
996
+ /**
997
+ * Business name search
998
+ * @type {string}
999
+ * @memberof GetBusinessVenueDto
1000
+ */
1001
+ 'search'?: string;
1002
+ /**
1003
+ * Business category ID
1004
+ * @type {string}
1005
+ * @memberof GetBusinessVenueDto
1006
+ */
1007
+ 'category'?: string;
1008
+ /**
1009
+ * Page number for pagination
1010
+ * @type {number}
1011
+ * @memberof GetBusinessVenueDto
1012
+ */
1013
+ 'page'?: number;
1014
+ /**
1015
+ * Number of items per page for pagination
1016
+ * @type {number}
1017
+ * @memberof GetBusinessVenueDto
1018
+ */
1019
+ 'limit'?: number;
1020
+ }
803
1021
  /**
804
1022
  *
805
1023
  * @export
@@ -990,6 +1208,12 @@ export interface LocationDTO {
990
1208
  * @memberof LocationDTO
991
1209
  */
992
1210
  'coordinates': Array<number>;
1211
+ /**
1212
+ *
1213
+ * @type {string}
1214
+ * @memberof LocationDTO
1215
+ */
1216
+ 'distance'?: string;
993
1217
  /**
994
1218
  *
995
1219
  * @type {LocationMetaDTO}
@@ -1561,6 +1785,18 @@ export interface SignupDto {
1561
1785
  * @memberof SignupDto
1562
1786
  */
1563
1787
  'lastName': string;
1788
+ /**
1789
+ * Contact Number For User
1790
+ * @type {string}
1791
+ * @memberof SignupDto
1792
+ */
1793
+ 'mobileNumber'?: string;
1794
+ /**
1795
+ * User gender
1796
+ * @type {string}
1797
+ * @memberof SignupDto
1798
+ */
1799
+ 'gender'?: string;
1564
1800
  /**
1565
1801
  * The email of the user
1566
1802
  * @type {string}
@@ -1693,6 +1929,12 @@ export interface UserEntity {
1693
1929
  * @memberof UserEntity
1694
1930
  */
1695
1931
  '_id': string;
1932
+ /**
1933
+ * Unique identifier for the Gooday user
1934
+ * @type {string}
1935
+ * @memberof UserEntity
1936
+ */
1937
+ 'goodayId': string;
1696
1938
  /**
1697
1939
  * First name of the user
1698
1940
  * @type {string}
@@ -1711,6 +1953,12 @@ export interface UserEntity {
1711
1953
  * @memberof UserEntity
1712
1954
  */
1713
1955
  'email': string;
1956
+ /**
1957
+ * User location
1958
+ * @type {Array<number>}
1959
+ * @memberof UserEntity
1960
+ */
1961
+ 'location'?: Array<number>;
1714
1962
  /**
1715
1963
  * Nickname of the user
1716
1964
  * @type {string}
@@ -1729,6 +1977,18 @@ export interface UserEntity {
1729
1977
  * @memberof UserEntity
1730
1978
  */
1731
1979
  'assistant': string;
1980
+ /**
1981
+ * Phone No
1982
+ * @type {string}
1983
+ * @memberof UserEntity
1984
+ */
1985
+ 'mobileNumber'?: string;
1986
+ /**
1987
+ * User gender
1988
+ * @type {string}
1989
+ * @memberof UserEntity
1990
+ */
1991
+ 'gender'?: string;
1732
1992
  /**
1733
1993
  * Indicates whether the user\'s email has been verified
1734
1994
  * @type {boolean}
@@ -1753,6 +2013,12 @@ export interface UserEntity {
1753
2013
  * @memberof UserEntity
1754
2014
  */
1755
2015
  'plan': UserPlanDTO;
2016
+ /**
2017
+ * Plan subscribed by the user
2018
+ * @type {BusinessEntity}
2019
+ * @memberof UserEntity
2020
+ */
2021
+ 'business'?: BusinessEntity;
1756
2022
  /**
1757
2023
  * Action user has to perform
1758
2024
  * @type {Array<string>}
@@ -1814,6 +2080,19 @@ export const UserPlanDTONameEnum = {
1814
2080
 
1815
2081
  export type UserPlanDTONameEnum = typeof UserPlanDTONameEnum[keyof typeof UserPlanDTONameEnum];
1816
2082
 
2083
+ /**
2084
+ *
2085
+ * @export
2086
+ * @interface UserSyncLocationDTO
2087
+ */
2088
+ export interface UserSyncLocationDTO {
2089
+ /**
2090
+ * User location
2091
+ * @type {Array<number>}
2092
+ * @memberof UserSyncLocationDTO
2093
+ */
2094
+ 'location': Array<number>;
2095
+ }
1817
2096
  /**
1818
2097
  *
1819
2098
  * @export
@@ -2746,7 +3025,7 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2746
3025
  * @throws {RequiredError}
2747
3026
  */
2748
3027
  businessControllerListBusinesses: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2749
- const localVarPath = `/business`;
3028
+ const localVarPath = `/v1/business`;
2750
3029
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2751
3030
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2752
3031
  let baseOptions;
@@ -2769,6 +3048,45 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2769
3048
  options: localVarRequestOptions,
2770
3049
  };
2771
3050
  },
3051
+ /**
3052
+ *
3053
+ * @param {GetBusinessVenueDto} getBusinessVenueDto
3054
+ * @param {*} [options] Override http request option.
3055
+ * @throws {RequiredError}
3056
+ */
3057
+ businessTypeControllerGetBusinessVenue: async (getBusinessVenueDto: GetBusinessVenueDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3058
+ // verify required parameter 'getBusinessVenueDto' is not null or undefined
3059
+ assertParamExists('businessTypeControllerGetBusinessVenue', 'getBusinessVenueDto', getBusinessVenueDto)
3060
+ const localVarPath = `/v1/business/business-venue`;
3061
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3062
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3063
+ let baseOptions;
3064
+ if (configuration) {
3065
+ baseOptions = configuration.baseOptions;
3066
+ }
3067
+
3068
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3069
+ const localVarHeaderParameter = {} as any;
3070
+ const localVarQueryParameter = {} as any;
3071
+
3072
+ // authentication bearer required
3073
+ // http bearer authentication required
3074
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3075
+
3076
+
3077
+
3078
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3079
+
3080
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3081
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3082
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3083
+ localVarRequestOptions.data = serializeDataIfNeeded(getBusinessVenueDto, localVarRequestOptions, configuration)
3084
+
3085
+ return {
3086
+ url: toPathString(localVarUrlObj),
3087
+ options: localVarRequestOptions,
3088
+ };
3089
+ },
2772
3090
  /**
2773
3091
  *
2774
3092
  * @param {*} [options] Override http request option.
@@ -2804,15 +3122,15 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2804
3122
  },
2805
3123
  /**
2806
3124
  *
2807
- * @param {string} businessType
3125
+ * @param {string} businessTypeId ID of the business type
2808
3126
  * @param {*} [options] Override http request option.
2809
3127
  * @throws {RequiredError}
2810
3128
  */
2811
- businessTypeControllerListCategories: async (businessType: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2812
- // verify required parameter 'businessType' is not null or undefined
2813
- assertParamExists('businessTypeControllerListCategories', 'businessType', businessType)
2814
- const localVarPath = `/v1/business/{businessType}/categories`
2815
- .replace(`{${"businessType"}}`, encodeURIComponent(String(businessType)));
3129
+ businessTypeControllerListCategories: async (businessTypeId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3130
+ // verify required parameter 'businessTypeId' is not null or undefined
3131
+ assertParamExists('businessTypeControllerListCategories', 'businessTypeId', businessTypeId)
3132
+ const localVarPath = `/v1/business/{businessTypeId}/categories`
3133
+ .replace(`{${"businessTypeId"}}`, encodeURIComponent(String(businessTypeId)));
2816
3134
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2817
3135
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2818
3136
  let baseOptions;
@@ -2905,49 +3223,176 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2905
3223
  options: localVarRequestOptions,
2906
3224
  };
2907
3225
  },
2908
- }
2909
- };
2910
-
2911
- /**
2912
- * BusinessApi - functional programming interface
2913
- * @export
2914
- */
2915
- export const BusinessApiFp = function(configuration?: Configuration) {
2916
- const localVarAxiosParamCreator = BusinessApiAxiosParamCreator(configuration)
2917
- return {
2918
- /**
2919
- *
2920
- * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
2921
- * @param {*} [options] Override http request option.
2922
- * @throws {RequiredError}
2923
- */
2924
- async businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
2925
- const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerBusinessOnboarding(businessOnBoardingDTO, options);
2926
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2927
- const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerBusinessOnboarding']?.[localVarOperationServerIndex]?.url;
2928
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2929
- },
2930
- /**
2931
- *
2932
- * @param {*} [options] Override http request option.
2933
- * @throws {RequiredError}
2934
- */
2935
- async businessControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
2936
- const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerGetMe(options);
2937
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2938
- const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerGetMe']?.[localVarOperationServerIndex]?.url;
2939
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2940
- },
2941
3226
  /**
2942
3227
  *
3228
+ * @param {BusinessFavoriteDTO} businessFavoriteDTO
2943
3229
  * @param {*} [options] Override http request option.
2944
3230
  * @throws {RequiredError}
2945
3231
  */
2946
- async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2947
- const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerListBusinesses(options);
2948
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2949
- const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerListBusinesses']?.[localVarOperationServerIndex]?.url;
2950
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3232
+ businessTypeControllerMarkBusinessAsFavorite: async (businessFavoriteDTO: BusinessFavoriteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3233
+ // verify required parameter 'businessFavoriteDTO' is not null or undefined
3234
+ assertParamExists('businessTypeControllerMarkBusinessAsFavorite', 'businessFavoriteDTO', businessFavoriteDTO)
3235
+ const localVarPath = `/v1/business/favorite`;
3236
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3237
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3238
+ let baseOptions;
3239
+ if (configuration) {
3240
+ baseOptions = configuration.baseOptions;
3241
+ }
3242
+
3243
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3244
+ const localVarHeaderParameter = {} as any;
3245
+ const localVarQueryParameter = {} as any;
3246
+
3247
+ // authentication bearer required
3248
+ // http bearer authentication required
3249
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3250
+
3251
+
3252
+
3253
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3254
+
3255
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3256
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3257
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3258
+ localVarRequestOptions.data = serializeDataIfNeeded(businessFavoriteDTO, localVarRequestOptions, configuration)
3259
+
3260
+ return {
3261
+ url: toPathString(localVarUrlObj),
3262
+ options: localVarRequestOptions,
3263
+ };
3264
+ },
3265
+ /**
3266
+ *
3267
+ * @param {BusinessFavoriteDTO} businessFavoriteDTO
3268
+ * @param {*} [options] Override http request option.
3269
+ * @throws {RequiredError}
3270
+ */
3271
+ businessTypeControllerUnFavoriteBusiness: async (businessFavoriteDTO: BusinessFavoriteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3272
+ // verify required parameter 'businessFavoriteDTO' is not null or undefined
3273
+ assertParamExists('businessTypeControllerUnFavoriteBusiness', 'businessFavoriteDTO', businessFavoriteDTO)
3274
+ const localVarPath = `/v1/business/unfavorite`;
3275
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3276
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3277
+ let baseOptions;
3278
+ if (configuration) {
3279
+ baseOptions = configuration.baseOptions;
3280
+ }
3281
+
3282
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3283
+ const localVarHeaderParameter = {} as any;
3284
+ const localVarQueryParameter = {} as any;
3285
+
3286
+ // authentication bearer required
3287
+ // http bearer authentication required
3288
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3289
+
3290
+
3291
+
3292
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3293
+
3294
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3295
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3296
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3297
+ localVarRequestOptions.data = serializeDataIfNeeded(businessFavoriteDTO, localVarRequestOptions, configuration)
3298
+
3299
+ return {
3300
+ url: toPathString(localVarUrlObj),
3301
+ options: localVarRequestOptions,
3302
+ };
3303
+ },
3304
+ /**
3305
+ *
3306
+ * @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
3307
+ * @param {string} businessNumber
3308
+ * @param {*} [options] Override http request option.
3309
+ * @throws {RequiredError}
3310
+ */
3311
+ businessVerificationControllerABNVerification: async (type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3312
+ // verify required parameter 'type' is not null or undefined
3313
+ assertParamExists('businessVerificationControllerABNVerification', 'type', type)
3314
+ // verify required parameter 'businessNumber' is not null or undefined
3315
+ assertParamExists('businessVerificationControllerABNVerification', 'businessNumber', businessNumber)
3316
+ const localVarPath = `/v1/business/verify/{type}/{businessNumber}`
3317
+ .replace(`{${"type"}}`, encodeURIComponent(String(type)))
3318
+ .replace(`{${"businessNumber"}}`, encodeURIComponent(String(businessNumber)));
3319
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3320
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3321
+ let baseOptions;
3322
+ if (configuration) {
3323
+ baseOptions = configuration.baseOptions;
3324
+ }
3325
+
3326
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3327
+ const localVarHeaderParameter = {} as any;
3328
+ const localVarQueryParameter = {} as any;
3329
+
3330
+
3331
+
3332
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3333
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3334
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3335
+
3336
+ return {
3337
+ url: toPathString(localVarUrlObj),
3338
+ options: localVarRequestOptions,
3339
+ };
3340
+ },
3341
+ }
3342
+ };
3343
+
3344
+ /**
3345
+ * BusinessApi - functional programming interface
3346
+ * @export
3347
+ */
3348
+ export const BusinessApiFp = function(configuration?: Configuration) {
3349
+ const localVarAxiosParamCreator = BusinessApiAxiosParamCreator(configuration)
3350
+ return {
3351
+ /**
3352
+ *
3353
+ * @param {BusinessOnBoardingDTO} businessOnBoardingDTO
3354
+ * @param {*} [options] Override http request option.
3355
+ * @throws {RequiredError}
3356
+ */
3357
+ async businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
3358
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerBusinessOnboarding(businessOnBoardingDTO, options);
3359
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3360
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerBusinessOnboarding']?.[localVarOperationServerIndex]?.url;
3361
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3362
+ },
3363
+ /**
3364
+ *
3365
+ * @param {*} [options] Override http request option.
3366
+ * @throws {RequiredError}
3367
+ */
3368
+ async businessControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
3369
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerGetMe(options);
3370
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3371
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerGetMe']?.[localVarOperationServerIndex]?.url;
3372
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3373
+ },
3374
+ /**
3375
+ *
3376
+ * @param {*} [options] Override http request option.
3377
+ * @throws {RequiredError}
3378
+ */
3379
+ async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessOnBoardingResponseDTO>>> {
3380
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerListBusinesses(options);
3381
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3382
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerListBusinesses']?.[localVarOperationServerIndex]?.url;
3383
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3384
+ },
3385
+ /**
3386
+ *
3387
+ * @param {GetBusinessVenueDto} getBusinessVenueDto
3388
+ * @param {*} [options] Override http request option.
3389
+ * @throws {RequiredError}
3390
+ */
3391
+ async businessTypeControllerGetBusinessVenue(getBusinessVenueDto: GetBusinessVenueDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVenueResponseDTO>> {
3392
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerGetBusinessVenue(getBusinessVenueDto, options);
3393
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3394
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerGetBusinessVenue']?.[localVarOperationServerIndex]?.url;
3395
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2951
3396
  },
2952
3397
  /**
2953
3398
  *
@@ -2962,12 +3407,12 @@ export const BusinessApiFp = function(configuration?: Configuration) {
2962
3407
  },
2963
3408
  /**
2964
3409
  *
2965
- * @param {string} businessType
3410
+ * @param {string} businessTypeId ID of the business type
2966
3411
  * @param {*} [options] Override http request option.
2967
3412
  * @throws {RequiredError}
2968
3413
  */
2969
- async businessTypeControllerListCategories(businessType: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryListResponse>> {
2970
- const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListCategories(businessType, options);
3414
+ async businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryListResponse>> {
3415
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListCategories(businessTypeId, options);
2971
3416
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2972
3417
  const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListCategories']?.[localVarOperationServerIndex]?.url;
2973
3418
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2994,6 +3439,43 @@ export const BusinessApiFp = function(configuration?: Configuration) {
2994
3439
  const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListPriceRange']?.[localVarOperationServerIndex]?.url;
2995
3440
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2996
3441
  },
3442
+ /**
3443
+ *
3444
+ * @param {BusinessFavoriteDTO} businessFavoriteDTO
3445
+ * @param {*} [options] Override http request option.
3446
+ * @throws {RequiredError}
3447
+ */
3448
+ async businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessFavoriteResponse>> {
3449
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options);
3450
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3451
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerMarkBusinessAsFavorite']?.[localVarOperationServerIndex]?.url;
3452
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3453
+ },
3454
+ /**
3455
+ *
3456
+ * @param {BusinessFavoriteDTO} businessFavoriteDTO
3457
+ * @param {*} [options] Override http request option.
3458
+ * @throws {RequiredError}
3459
+ */
3460
+ async businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessUnFavoriteResponse>> {
3461
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options);
3462
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3463
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerUnFavoriteBusiness']?.[localVarOperationServerIndex]?.url;
3464
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3465
+ },
3466
+ /**
3467
+ *
3468
+ * @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
3469
+ * @param {string} businessNumber
3470
+ * @param {*} [options] Override http request option.
3471
+ * @throws {RequiredError}
3472
+ */
3473
+ async businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVerificationResponse>> {
3474
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessVerificationControllerABNVerification(type, businessNumber, options);
3475
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3476
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessVerificationControllerABNVerification']?.[localVarOperationServerIndex]?.url;
3477
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3478
+ },
2997
3479
  }
2998
3480
  };
2999
3481
 
@@ -3026,9 +3508,18 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
3026
3508
  * @param {*} [options] Override http request option.
3027
3509
  * @throws {RequiredError}
3028
3510
  */
3029
- businessControllerListBusinesses(options?: RawAxiosRequestConfig): AxiosPromise<void> {
3511
+ businessControllerListBusinesses(options?: RawAxiosRequestConfig): AxiosPromise<Array<BusinessOnBoardingResponseDTO>> {
3030
3512
  return localVarFp.businessControllerListBusinesses(options).then((request) => request(axios, basePath));
3031
3513
  },
3514
+ /**
3515
+ *
3516
+ * @param {GetBusinessVenueDto} getBusinessVenueDto
3517
+ * @param {*} [options] Override http request option.
3518
+ * @throws {RequiredError}
3519
+ */
3520
+ businessTypeControllerGetBusinessVenue(getBusinessVenueDto: GetBusinessVenueDto, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVenueResponseDTO> {
3521
+ return localVarFp.businessTypeControllerGetBusinessVenue(getBusinessVenueDto, options).then((request) => request(axios, basePath));
3522
+ },
3032
3523
  /**
3033
3524
  *
3034
3525
  * @param {*} [options] Override http request option.
@@ -3039,12 +3530,12 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
3039
3530
  },
3040
3531
  /**
3041
3532
  *
3042
- * @param {string} businessType
3533
+ * @param {string} businessTypeId ID of the business type
3043
3534
  * @param {*} [options] Override http request option.
3044
3535
  * @throws {RequiredError}
3045
3536
  */
3046
- businessTypeControllerListCategories(businessType: string, options?: RawAxiosRequestConfig): AxiosPromise<CategoryListResponse> {
3047
- return localVarFp.businessTypeControllerListCategories(businessType, options).then((request) => request(axios, basePath));
3537
+ businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig): AxiosPromise<CategoryListResponse> {
3538
+ return localVarFp.businessTypeControllerListCategories(businessTypeId, options).then((request) => request(axios, basePath));
3048
3539
  },
3049
3540
  /**
3050
3541
  *
@@ -3062,6 +3553,34 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
3062
3553
  businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig): AxiosPromise<PriceRangeListResponse> {
3063
3554
  return localVarFp.businessTypeControllerListPriceRange(options).then((request) => request(axios, basePath));
3064
3555
  },
3556
+ /**
3557
+ *
3558
+ * @param {BusinessFavoriteDTO} businessFavoriteDTO
3559
+ * @param {*} [options] Override http request option.
3560
+ * @throws {RequiredError}
3561
+ */
3562
+ businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessFavoriteResponse> {
3563
+ return localVarFp.businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options).then((request) => request(axios, basePath));
3564
+ },
3565
+ /**
3566
+ *
3567
+ * @param {BusinessFavoriteDTO} businessFavoriteDTO
3568
+ * @param {*} [options] Override http request option.
3569
+ * @throws {RequiredError}
3570
+ */
3571
+ businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessUnFavoriteResponse> {
3572
+ return localVarFp.businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options).then((request) => request(axios, basePath));
3573
+ },
3574
+ /**
3575
+ *
3576
+ * @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
3577
+ * @param {string} businessNumber
3578
+ * @param {*} [options] Override http request option.
3579
+ * @throws {RequiredError}
3580
+ */
3581
+ businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVerificationResponse> {
3582
+ return localVarFp.businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(axios, basePath));
3583
+ },
3065
3584
  };
3066
3585
  };
3067
3586
 
@@ -3103,6 +3622,17 @@ export class BusinessApi extends BaseAPI {
3103
3622
  return BusinessApiFp(this.configuration).businessControllerListBusinesses(options).then((request) => request(this.axios, this.basePath));
3104
3623
  }
3105
3624
 
3625
+ /**
3626
+ *
3627
+ * @param {GetBusinessVenueDto} getBusinessVenueDto
3628
+ * @param {*} [options] Override http request option.
3629
+ * @throws {RequiredError}
3630
+ * @memberof BusinessApi
3631
+ */
3632
+ public businessTypeControllerGetBusinessVenue(getBusinessVenueDto: GetBusinessVenueDto, options?: RawAxiosRequestConfig) {
3633
+ return BusinessApiFp(this.configuration).businessTypeControllerGetBusinessVenue(getBusinessVenueDto, options).then((request) => request(this.axios, this.basePath));
3634
+ }
3635
+
3106
3636
  /**
3107
3637
  *
3108
3638
  * @param {*} [options] Override http request option.
@@ -3115,13 +3645,13 @@ export class BusinessApi extends BaseAPI {
3115
3645
 
3116
3646
  /**
3117
3647
  *
3118
- * @param {string} businessType
3648
+ * @param {string} businessTypeId ID of the business type
3119
3649
  * @param {*} [options] Override http request option.
3120
3650
  * @throws {RequiredError}
3121
3651
  * @memberof BusinessApi
3122
3652
  */
3123
- public businessTypeControllerListCategories(businessType: string, options?: RawAxiosRequestConfig) {
3124
- return BusinessApiFp(this.configuration).businessTypeControllerListCategories(businessType, options).then((request) => request(this.axios, this.basePath));
3653
+ public businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig) {
3654
+ return BusinessApiFp(this.configuration).businessTypeControllerListCategories(businessTypeId, options).then((request) => request(this.axios, this.basePath));
3125
3655
  }
3126
3656
 
3127
3657
  /**
@@ -3143,116 +3673,39 @@ export class BusinessApi extends BaseAPI {
3143
3673
  public businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig) {
3144
3674
  return BusinessApiFp(this.configuration).businessTypeControllerListPriceRange(options).then((request) => request(this.axios, this.basePath));
3145
3675
  }
3146
- }
3147
-
3148
3676
 
3149
-
3150
- /**
3151
- * BusinessVerificationApi - axios parameter creator
3152
- * @export
3153
- */
3154
- export const BusinessVerificationApiAxiosParamCreator = function (configuration?: Configuration) {
3155
- return {
3156
- /**
3157
- *
3158
- * @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
3159
- * @param {string} businessNumber
3160
- * @param {*} [options] Override http request option.
3161
- * @throws {RequiredError}
3162
- */
3163
- businessVerificationControllerABNVerification: async (type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3164
- // verify required parameter 'type' is not null or undefined
3165
- assertParamExists('businessVerificationControllerABNVerification', 'type', type)
3166
- // verify required parameter 'businessNumber' is not null or undefined
3167
- assertParamExists('businessVerificationControllerABNVerification', 'businessNumber', businessNumber)
3168
- const localVarPath = `/v1/business/verify/{type}/{businessNumber}`
3169
- .replace(`{${"type"}}`, encodeURIComponent(String(type)))
3170
- .replace(`{${"businessNumber"}}`, encodeURIComponent(String(businessNumber)));
3171
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3172
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3173
- let baseOptions;
3174
- if (configuration) {
3175
- baseOptions = configuration.baseOptions;
3176
- }
3177
-
3178
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3179
- const localVarHeaderParameter = {} as any;
3180
- const localVarQueryParameter = {} as any;
3181
-
3182
-
3183
-
3184
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3185
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3186
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3187
-
3188
- return {
3189
- url: toPathString(localVarUrlObj),
3190
- options: localVarRequestOptions,
3191
- };
3192
- },
3677
+ /**
3678
+ *
3679
+ * @param {BusinessFavoriteDTO} businessFavoriteDTO
3680
+ * @param {*} [options] Override http request option.
3681
+ * @throws {RequiredError}
3682
+ * @memberof BusinessApi
3683
+ */
3684
+ public businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig) {
3685
+ return BusinessApiFp(this.configuration).businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options).then((request) => request(this.axios, this.basePath));
3193
3686
  }
3194
- };
3195
3687
 
3196
- /**
3197
- * BusinessVerificationApi - functional programming interface
3198
- * @export
3199
- */
3200
- export const BusinessVerificationApiFp = function(configuration?: Configuration) {
3201
- const localVarAxiosParamCreator = BusinessVerificationApiAxiosParamCreator(configuration)
3202
- return {
3203
- /**
3204
- *
3205
- * @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
3206
- * @param {string} businessNumber
3207
- * @param {*} [options] Override http request option.
3208
- * @throws {RequiredError}
3209
- */
3210
- async businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVerificationResponse>> {
3211
- const localVarAxiosArgs = await localVarAxiosParamCreator.businessVerificationControllerABNVerification(type, businessNumber, options);
3212
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3213
- const localVarOperationServerBasePath = operationServerMap['BusinessVerificationApi.businessVerificationControllerABNVerification']?.[localVarOperationServerIndex]?.url;
3214
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3215
- },
3688
+ /**
3689
+ *
3690
+ * @param {BusinessFavoriteDTO} businessFavoriteDTO
3691
+ * @param {*} [options] Override http request option.
3692
+ * @throws {RequiredError}
3693
+ * @memberof BusinessApi
3694
+ */
3695
+ public businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig) {
3696
+ return BusinessApiFp(this.configuration).businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options).then((request) => request(this.axios, this.basePath));
3216
3697
  }
3217
- };
3218
3698
 
3219
- /**
3220
- * BusinessVerificationApi - factory interface
3221
- * @export
3222
- */
3223
- export const BusinessVerificationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3224
- const localVarFp = BusinessVerificationApiFp(configuration)
3225
- return {
3226
- /**
3227
- *
3228
- * @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
3229
- * @param {string} businessNumber
3230
- * @param {*} [options] Override http request option.
3231
- * @throws {RequiredError}
3232
- */
3233
- businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVerificationResponse> {
3234
- return localVarFp.businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(axios, basePath));
3235
- },
3236
- };
3237
- };
3238
-
3239
- /**
3240
- * BusinessVerificationApi - object-oriented interface
3241
- * @export
3242
- * @class BusinessVerificationApi
3243
- * @extends {BaseAPI}
3244
- */
3245
- export class BusinessVerificationApi extends BaseAPI {
3246
3699
  /**
3247
3700
  *
3248
3701
  * @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
3249
3702
  * @param {string} businessNumber
3250
3703
  * @param {*} [options] Override http request option.
3251
3704
  * @throws {RequiredError}
3252
- * @memberof BusinessVerificationApi
3705
+ * @memberof BusinessApi
3253
3706
  */
3254
3707
  public businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig) {
3255
- return BusinessVerificationApiFp(this.configuration).businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(this.axios, this.basePath));
3708
+ return BusinessApiFp(this.configuration).businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(this.axios, this.basePath));
3256
3709
  }
3257
3710
  }
3258
3711
 
@@ -5105,6 +5558,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
5105
5558
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5106
5559
  localVarRequestOptions.data = serializeDataIfNeeded(onBoardingDTO, localVarRequestOptions, configuration)
5107
5560
 
5561
+ return {
5562
+ url: toPathString(localVarUrlObj),
5563
+ options: localVarRequestOptions,
5564
+ };
5565
+ },
5566
+ /**
5567
+ *
5568
+ * @param {UserSyncLocationDTO} userSyncLocationDTO
5569
+ * @param {*} [options] Override http request option.
5570
+ * @throws {RequiredError}
5571
+ */
5572
+ usersControllerSyncUserLocation: async (userSyncLocationDTO: UserSyncLocationDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5573
+ // verify required parameter 'userSyncLocationDTO' is not null or undefined
5574
+ assertParamExists('usersControllerSyncUserLocation', 'userSyncLocationDTO', userSyncLocationDTO)
5575
+ const localVarPath = `/v1/user/sync/user/location`;
5576
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5577
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5578
+ let baseOptions;
5579
+ if (configuration) {
5580
+ baseOptions = configuration.baseOptions;
5581
+ }
5582
+
5583
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5584
+ const localVarHeaderParameter = {} as any;
5585
+ const localVarQueryParameter = {} as any;
5586
+
5587
+ // authentication bearer required
5588
+ // http bearer authentication required
5589
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5590
+
5591
+
5592
+
5593
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5594
+
5595
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5596
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5597
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5598
+ localVarRequestOptions.data = serializeDataIfNeeded(userSyncLocationDTO, localVarRequestOptions, configuration)
5599
+
5108
5600
  return {
5109
5601
  url: toPathString(localVarUrlObj),
5110
5602
  options: localVarRequestOptions,
@@ -5143,6 +5635,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
5143
5635
  const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerOnBoarded']?.[localVarOperationServerIndex]?.url;
5144
5636
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5145
5637
  },
5638
+ /**
5639
+ *
5640
+ * @param {UserSyncLocationDTO} userSyncLocationDTO
5641
+ * @param {*} [options] Override http request option.
5642
+ * @throws {RequiredError}
5643
+ */
5644
+ async usersControllerSyncUserLocation(userSyncLocationDTO: UserSyncLocationDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnBoardingResponseDTO>> {
5645
+ const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerSyncUserLocation(userSyncLocationDTO, options);
5646
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5647
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerSyncUserLocation']?.[localVarOperationServerIndex]?.url;
5648
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5649
+ },
5146
5650
  }
5147
5651
  };
5148
5652
 
@@ -5170,6 +5674,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
5170
5674
  usersControllerOnBoarded(onBoardingDTO: OnBoardingDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
5171
5675
  return localVarFp.usersControllerOnBoarded(onBoardingDTO, options).then((request) => request(axios, basePath));
5172
5676
  },
5677
+ /**
5678
+ *
5679
+ * @param {UserSyncLocationDTO} userSyncLocationDTO
5680
+ * @param {*} [options] Override http request option.
5681
+ * @throws {RequiredError}
5682
+ */
5683
+ usersControllerSyncUserLocation(userSyncLocationDTO: UserSyncLocationDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
5684
+ return localVarFp.usersControllerSyncUserLocation(userSyncLocationDTO, options).then((request) => request(axios, basePath));
5685
+ },
5173
5686
  };
5174
5687
  };
5175
5688
 
@@ -5200,6 +5713,17 @@ export class UsersApi extends BaseAPI {
5200
5713
  public usersControllerOnBoarded(onBoardingDTO: OnBoardingDTO, options?: RawAxiosRequestConfig) {
5201
5714
  return UsersApiFp(this.configuration).usersControllerOnBoarded(onBoardingDTO, options).then((request) => request(this.axios, this.basePath));
5202
5715
  }
5716
+
5717
+ /**
5718
+ *
5719
+ * @param {UserSyncLocationDTO} userSyncLocationDTO
5720
+ * @param {*} [options] Override http request option.
5721
+ * @throws {RequiredError}
5722
+ * @memberof UsersApi
5723
+ */
5724
+ public usersControllerSyncUserLocation(userSyncLocationDTO: UserSyncLocationDTO, options?: RawAxiosRequestConfig) {
5725
+ return UsersApiFp(this.configuration).usersControllerSyncUserLocation(userSyncLocationDTO, options).then((request) => request(this.axios, this.basePath));
5726
+ }
5203
5727
  }
5204
5728
 
5205
5729
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.12-delta-8",
3
+ "version": "1.1.12-delta-9",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},