@gooday_corp/gooday-api-client 1.1.12-delta-8 → 1.1.12-delta-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.ts +862 -134
- 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<
|
|
219
|
+
* @type {Array<string>}
|
|
208
220
|
* @memberof BusinessEntity
|
|
209
221
|
*/
|
|
210
|
-
'venues'?: Array<
|
|
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
|
-
'
|
|
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,75 @@ 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
|
+
}
|
|
1021
|
+
/**
|
|
1022
|
+
*
|
|
1023
|
+
* @export
|
|
1024
|
+
* @interface GetNotificationDTO
|
|
1025
|
+
*/
|
|
1026
|
+
export interface GetNotificationDTO {
|
|
1027
|
+
/**
|
|
1028
|
+
* statuscCode
|
|
1029
|
+
* @type {number}
|
|
1030
|
+
* @memberof GetNotificationDTO
|
|
1031
|
+
*/
|
|
1032
|
+
'statusCode': number;
|
|
1033
|
+
/**
|
|
1034
|
+
* Notifications
|
|
1035
|
+
* @type {object}
|
|
1036
|
+
* @memberof GetNotificationDTO
|
|
1037
|
+
*/
|
|
1038
|
+
'data': object;
|
|
1039
|
+
}
|
|
1040
|
+
/**
|
|
1041
|
+
*
|
|
1042
|
+
* @export
|
|
1043
|
+
* @interface GetUserDTO
|
|
1044
|
+
*/
|
|
1045
|
+
export interface GetUserDTO {
|
|
1046
|
+
/**
|
|
1047
|
+
* 66f135c95a81ce68c9015414
|
|
1048
|
+
* @type {string}
|
|
1049
|
+
* @memberof GetUserDTO
|
|
1050
|
+
*/
|
|
1051
|
+
'id': string;
|
|
1052
|
+
}
|
|
803
1053
|
/**
|
|
804
1054
|
*
|
|
805
1055
|
* @export
|
|
@@ -990,6 +1240,12 @@ export interface LocationDTO {
|
|
|
990
1240
|
* @memberof LocationDTO
|
|
991
1241
|
*/
|
|
992
1242
|
'coordinates': Array<number>;
|
|
1243
|
+
/**
|
|
1244
|
+
*
|
|
1245
|
+
* @type {string}
|
|
1246
|
+
* @memberof LocationDTO
|
|
1247
|
+
*/
|
|
1248
|
+
'distance'?: string;
|
|
993
1249
|
/**
|
|
994
1250
|
*
|
|
995
1251
|
* @type {LocationMetaDTO}
|
|
@@ -1561,6 +1817,18 @@ export interface SignupDto {
|
|
|
1561
1817
|
* @memberof SignupDto
|
|
1562
1818
|
*/
|
|
1563
1819
|
'lastName': string;
|
|
1820
|
+
/**
|
|
1821
|
+
* Contact Number For User
|
|
1822
|
+
* @type {string}
|
|
1823
|
+
* @memberof SignupDto
|
|
1824
|
+
*/
|
|
1825
|
+
'mobileNumber'?: string;
|
|
1826
|
+
/**
|
|
1827
|
+
* User gender
|
|
1828
|
+
* @type {string}
|
|
1829
|
+
* @memberof SignupDto
|
|
1830
|
+
*/
|
|
1831
|
+
'gender'?: string;
|
|
1564
1832
|
/**
|
|
1565
1833
|
* The email of the user
|
|
1566
1834
|
* @type {string}
|
|
@@ -1693,6 +1961,12 @@ export interface UserEntity {
|
|
|
1693
1961
|
* @memberof UserEntity
|
|
1694
1962
|
*/
|
|
1695
1963
|
'_id': string;
|
|
1964
|
+
/**
|
|
1965
|
+
* Unique identifier for the Gooday user
|
|
1966
|
+
* @type {string}
|
|
1967
|
+
* @memberof UserEntity
|
|
1968
|
+
*/
|
|
1969
|
+
'goodayId': string;
|
|
1696
1970
|
/**
|
|
1697
1971
|
* First name of the user
|
|
1698
1972
|
* @type {string}
|
|
@@ -1711,6 +1985,12 @@ export interface UserEntity {
|
|
|
1711
1985
|
* @memberof UserEntity
|
|
1712
1986
|
*/
|
|
1713
1987
|
'email': string;
|
|
1988
|
+
/**
|
|
1989
|
+
* User location
|
|
1990
|
+
* @type {Array<number>}
|
|
1991
|
+
* @memberof UserEntity
|
|
1992
|
+
*/
|
|
1993
|
+
'location'?: Array<number>;
|
|
1714
1994
|
/**
|
|
1715
1995
|
* Nickname of the user
|
|
1716
1996
|
* @type {string}
|
|
@@ -1729,6 +2009,18 @@ export interface UserEntity {
|
|
|
1729
2009
|
* @memberof UserEntity
|
|
1730
2010
|
*/
|
|
1731
2011
|
'assistant': string;
|
|
2012
|
+
/**
|
|
2013
|
+
* Phone No
|
|
2014
|
+
* @type {string}
|
|
2015
|
+
* @memberof UserEntity
|
|
2016
|
+
*/
|
|
2017
|
+
'mobileNumber'?: string;
|
|
2018
|
+
/**
|
|
2019
|
+
* User gender
|
|
2020
|
+
* @type {string}
|
|
2021
|
+
* @memberof UserEntity
|
|
2022
|
+
*/
|
|
2023
|
+
'gender'?: string;
|
|
1732
2024
|
/**
|
|
1733
2025
|
* Indicates whether the user\'s email has been verified
|
|
1734
2026
|
* @type {boolean}
|
|
@@ -1753,6 +2045,12 @@ export interface UserEntity {
|
|
|
1753
2045
|
* @memberof UserEntity
|
|
1754
2046
|
*/
|
|
1755
2047
|
'plan': UserPlanDTO;
|
|
2048
|
+
/**
|
|
2049
|
+
* Plan subscribed by the user
|
|
2050
|
+
* @type {BusinessEntity}
|
|
2051
|
+
* @memberof UserEntity
|
|
2052
|
+
*/
|
|
2053
|
+
'business'?: BusinessEntity;
|
|
1756
2054
|
/**
|
|
1757
2055
|
* Action user has to perform
|
|
1758
2056
|
* @type {Array<string>}
|
|
@@ -1814,6 +2112,19 @@ export const UserPlanDTONameEnum = {
|
|
|
1814
2112
|
|
|
1815
2113
|
export type UserPlanDTONameEnum = typeof UserPlanDTONameEnum[keyof typeof UserPlanDTONameEnum];
|
|
1816
2114
|
|
|
2115
|
+
/**
|
|
2116
|
+
*
|
|
2117
|
+
* @export
|
|
2118
|
+
* @interface UserSyncLocationDTO
|
|
2119
|
+
*/
|
|
2120
|
+
export interface UserSyncLocationDTO {
|
|
2121
|
+
/**
|
|
2122
|
+
* User location
|
|
2123
|
+
* @type {Array<number>}
|
|
2124
|
+
* @memberof UserSyncLocationDTO
|
|
2125
|
+
*/
|
|
2126
|
+
'location': Array<number>;
|
|
2127
|
+
}
|
|
1817
2128
|
/**
|
|
1818
2129
|
*
|
|
1819
2130
|
* @export
|
|
@@ -2746,7 +3057,7 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2746
3057
|
* @throws {RequiredError}
|
|
2747
3058
|
*/
|
|
2748
3059
|
businessControllerListBusinesses: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2749
|
-
const localVarPath = `/business`;
|
|
3060
|
+
const localVarPath = `/v1/business`;
|
|
2750
3061
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2751
3062
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2752
3063
|
let baseOptions;
|
|
@@ -2769,6 +3080,45 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2769
3080
|
options: localVarRequestOptions,
|
|
2770
3081
|
};
|
|
2771
3082
|
},
|
|
3083
|
+
/**
|
|
3084
|
+
*
|
|
3085
|
+
* @param {GetBusinessVenueDto} getBusinessVenueDto
|
|
3086
|
+
* @param {*} [options] Override http request option.
|
|
3087
|
+
* @throws {RequiredError}
|
|
3088
|
+
*/
|
|
3089
|
+
businessTypeControllerGetBusinessVenue: async (getBusinessVenueDto: GetBusinessVenueDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3090
|
+
// verify required parameter 'getBusinessVenueDto' is not null or undefined
|
|
3091
|
+
assertParamExists('businessTypeControllerGetBusinessVenue', 'getBusinessVenueDto', getBusinessVenueDto)
|
|
3092
|
+
const localVarPath = `/v1/business/business-venue`;
|
|
3093
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3094
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3095
|
+
let baseOptions;
|
|
3096
|
+
if (configuration) {
|
|
3097
|
+
baseOptions = configuration.baseOptions;
|
|
3098
|
+
}
|
|
3099
|
+
|
|
3100
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3101
|
+
const localVarHeaderParameter = {} as any;
|
|
3102
|
+
const localVarQueryParameter = {} as any;
|
|
3103
|
+
|
|
3104
|
+
// authentication bearer required
|
|
3105
|
+
// http bearer authentication required
|
|
3106
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3107
|
+
|
|
3108
|
+
|
|
3109
|
+
|
|
3110
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3111
|
+
|
|
3112
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3113
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3114
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3115
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getBusinessVenueDto, localVarRequestOptions, configuration)
|
|
3116
|
+
|
|
3117
|
+
return {
|
|
3118
|
+
url: toPathString(localVarUrlObj),
|
|
3119
|
+
options: localVarRequestOptions,
|
|
3120
|
+
};
|
|
3121
|
+
},
|
|
2772
3122
|
/**
|
|
2773
3123
|
*
|
|
2774
3124
|
* @param {*} [options] Override http request option.
|
|
@@ -2804,15 +3154,15 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2804
3154
|
},
|
|
2805
3155
|
/**
|
|
2806
3156
|
*
|
|
2807
|
-
* @param {string}
|
|
3157
|
+
* @param {string} businessTypeId ID of the business type
|
|
2808
3158
|
* @param {*} [options] Override http request option.
|
|
2809
3159
|
* @throws {RequiredError}
|
|
2810
3160
|
*/
|
|
2811
|
-
businessTypeControllerListCategories: async (
|
|
2812
|
-
// verify required parameter '
|
|
2813
|
-
assertParamExists('businessTypeControllerListCategories', '
|
|
2814
|
-
const localVarPath = `/v1/business/{
|
|
2815
|
-
.replace(`{${"
|
|
3161
|
+
businessTypeControllerListCategories: async (businessTypeId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3162
|
+
// verify required parameter 'businessTypeId' is not null or undefined
|
|
3163
|
+
assertParamExists('businessTypeControllerListCategories', 'businessTypeId', businessTypeId)
|
|
3164
|
+
const localVarPath = `/v1/business/{businessTypeId}/categories`
|
|
3165
|
+
.replace(`{${"businessTypeId"}}`, encodeURIComponent(String(businessTypeId)));
|
|
2816
3166
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2817
3167
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2818
3168
|
let baseOptions;
|
|
@@ -2905,26 +3255,141 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2905
3255
|
options: localVarRequestOptions,
|
|
2906
3256
|
};
|
|
2907
3257
|
},
|
|
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
3258
|
/**
|
|
2919
3259
|
*
|
|
2920
|
-
* @param {
|
|
3260
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
2921
3261
|
* @param {*} [options] Override http request option.
|
|
2922
3262
|
* @throws {RequiredError}
|
|
2923
3263
|
*/
|
|
2924
|
-
async
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
const
|
|
3264
|
+
businessTypeControllerMarkBusinessAsFavorite: async (businessFavoriteDTO: BusinessFavoriteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3265
|
+
// verify required parameter 'businessFavoriteDTO' is not null or undefined
|
|
3266
|
+
assertParamExists('businessTypeControllerMarkBusinessAsFavorite', 'businessFavoriteDTO', businessFavoriteDTO)
|
|
3267
|
+
const localVarPath = `/v1/business/favorite`;
|
|
3268
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3269
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3270
|
+
let baseOptions;
|
|
3271
|
+
if (configuration) {
|
|
3272
|
+
baseOptions = configuration.baseOptions;
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3276
|
+
const localVarHeaderParameter = {} as any;
|
|
3277
|
+
const localVarQueryParameter = {} as any;
|
|
3278
|
+
|
|
3279
|
+
// authentication bearer required
|
|
3280
|
+
// http bearer authentication required
|
|
3281
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3282
|
+
|
|
3283
|
+
|
|
3284
|
+
|
|
3285
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3286
|
+
|
|
3287
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3288
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3289
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3290
|
+
localVarRequestOptions.data = serializeDataIfNeeded(businessFavoriteDTO, localVarRequestOptions, configuration)
|
|
3291
|
+
|
|
3292
|
+
return {
|
|
3293
|
+
url: toPathString(localVarUrlObj),
|
|
3294
|
+
options: localVarRequestOptions,
|
|
3295
|
+
};
|
|
3296
|
+
},
|
|
3297
|
+
/**
|
|
3298
|
+
*
|
|
3299
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3300
|
+
* @param {*} [options] Override http request option.
|
|
3301
|
+
* @throws {RequiredError}
|
|
3302
|
+
*/
|
|
3303
|
+
businessTypeControllerUnFavoriteBusiness: async (businessFavoriteDTO: BusinessFavoriteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3304
|
+
// verify required parameter 'businessFavoriteDTO' is not null or undefined
|
|
3305
|
+
assertParamExists('businessTypeControllerUnFavoriteBusiness', 'businessFavoriteDTO', businessFavoriteDTO)
|
|
3306
|
+
const localVarPath = `/v1/business/unfavorite`;
|
|
3307
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3308
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3309
|
+
let baseOptions;
|
|
3310
|
+
if (configuration) {
|
|
3311
|
+
baseOptions = configuration.baseOptions;
|
|
3312
|
+
}
|
|
3313
|
+
|
|
3314
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3315
|
+
const localVarHeaderParameter = {} as any;
|
|
3316
|
+
const localVarQueryParameter = {} as any;
|
|
3317
|
+
|
|
3318
|
+
// authentication bearer required
|
|
3319
|
+
// http bearer authentication required
|
|
3320
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3321
|
+
|
|
3322
|
+
|
|
3323
|
+
|
|
3324
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3325
|
+
|
|
3326
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3327
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3328
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3329
|
+
localVarRequestOptions.data = serializeDataIfNeeded(businessFavoriteDTO, localVarRequestOptions, configuration)
|
|
3330
|
+
|
|
3331
|
+
return {
|
|
3332
|
+
url: toPathString(localVarUrlObj),
|
|
3333
|
+
options: localVarRequestOptions,
|
|
3334
|
+
};
|
|
3335
|
+
},
|
|
3336
|
+
/**
|
|
3337
|
+
*
|
|
3338
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3339
|
+
* @param {string} businessNumber
|
|
3340
|
+
* @param {*} [options] Override http request option.
|
|
3341
|
+
* @throws {RequiredError}
|
|
3342
|
+
*/
|
|
3343
|
+
businessVerificationControllerABNVerification: async (type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3344
|
+
// verify required parameter 'type' is not null or undefined
|
|
3345
|
+
assertParamExists('businessVerificationControllerABNVerification', 'type', type)
|
|
3346
|
+
// verify required parameter 'businessNumber' is not null or undefined
|
|
3347
|
+
assertParamExists('businessVerificationControllerABNVerification', 'businessNumber', businessNumber)
|
|
3348
|
+
const localVarPath = `/v1/business/verify/{type}/{businessNumber}`
|
|
3349
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)))
|
|
3350
|
+
.replace(`{${"businessNumber"}}`, encodeURIComponent(String(businessNumber)));
|
|
3351
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3352
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3353
|
+
let baseOptions;
|
|
3354
|
+
if (configuration) {
|
|
3355
|
+
baseOptions = configuration.baseOptions;
|
|
3356
|
+
}
|
|
3357
|
+
|
|
3358
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3359
|
+
const localVarHeaderParameter = {} as any;
|
|
3360
|
+
const localVarQueryParameter = {} as any;
|
|
3361
|
+
|
|
3362
|
+
|
|
3363
|
+
|
|
3364
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3365
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3366
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3367
|
+
|
|
3368
|
+
return {
|
|
3369
|
+
url: toPathString(localVarUrlObj),
|
|
3370
|
+
options: localVarRequestOptions,
|
|
3371
|
+
};
|
|
3372
|
+
},
|
|
3373
|
+
}
|
|
3374
|
+
};
|
|
3375
|
+
|
|
3376
|
+
/**
|
|
3377
|
+
* BusinessApi - functional programming interface
|
|
3378
|
+
* @export
|
|
3379
|
+
*/
|
|
3380
|
+
export const BusinessApiFp = function(configuration?: Configuration) {
|
|
3381
|
+
const localVarAxiosParamCreator = BusinessApiAxiosParamCreator(configuration)
|
|
3382
|
+
return {
|
|
3383
|
+
/**
|
|
3384
|
+
*
|
|
3385
|
+
* @param {BusinessOnBoardingDTO} businessOnBoardingDTO
|
|
3386
|
+
* @param {*} [options] Override http request option.
|
|
3387
|
+
* @throws {RequiredError}
|
|
3388
|
+
*/
|
|
3389
|
+
async businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
|
|
3390
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerBusinessOnboarding(businessOnBoardingDTO, options);
|
|
3391
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3392
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerBusinessOnboarding']?.[localVarOperationServerIndex]?.url;
|
|
2928
3393
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2929
3394
|
},
|
|
2930
3395
|
/**
|
|
@@ -2943,12 +3408,24 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2943
3408
|
* @param {*} [options] Override http request option.
|
|
2944
3409
|
* @throws {RequiredError}
|
|
2945
3410
|
*/
|
|
2946
|
-
async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3411
|
+
async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessOnBoardingResponseDTO>>> {
|
|
2947
3412
|
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerListBusinesses(options);
|
|
2948
3413
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2949
3414
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerListBusinesses']?.[localVarOperationServerIndex]?.url;
|
|
2950
3415
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2951
3416
|
},
|
|
3417
|
+
/**
|
|
3418
|
+
*
|
|
3419
|
+
* @param {GetBusinessVenueDto} getBusinessVenueDto
|
|
3420
|
+
* @param {*} [options] Override http request option.
|
|
3421
|
+
* @throws {RequiredError}
|
|
3422
|
+
*/
|
|
3423
|
+
async businessTypeControllerGetBusinessVenue(getBusinessVenueDto: GetBusinessVenueDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVenueResponseDTO>> {
|
|
3424
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerGetBusinessVenue(getBusinessVenueDto, options);
|
|
3425
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3426
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerGetBusinessVenue']?.[localVarOperationServerIndex]?.url;
|
|
3427
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3428
|
+
},
|
|
2952
3429
|
/**
|
|
2953
3430
|
*
|
|
2954
3431
|
* @param {*} [options] Override http request option.
|
|
@@ -2962,12 +3439,12 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2962
3439
|
},
|
|
2963
3440
|
/**
|
|
2964
3441
|
*
|
|
2965
|
-
* @param {string}
|
|
3442
|
+
* @param {string} businessTypeId ID of the business type
|
|
2966
3443
|
* @param {*} [options] Override http request option.
|
|
2967
3444
|
* @throws {RequiredError}
|
|
2968
3445
|
*/
|
|
2969
|
-
async businessTypeControllerListCategories(
|
|
2970
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListCategories(
|
|
3446
|
+
async businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryListResponse>> {
|
|
3447
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListCategories(businessTypeId, options);
|
|
2971
3448
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2972
3449
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListCategories']?.[localVarOperationServerIndex]?.url;
|
|
2973
3450
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2994,6 +3471,43 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2994
3471
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListPriceRange']?.[localVarOperationServerIndex]?.url;
|
|
2995
3472
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2996
3473
|
},
|
|
3474
|
+
/**
|
|
3475
|
+
*
|
|
3476
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3477
|
+
* @param {*} [options] Override http request option.
|
|
3478
|
+
* @throws {RequiredError}
|
|
3479
|
+
*/
|
|
3480
|
+
async businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessFavoriteResponse>> {
|
|
3481
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options);
|
|
3482
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3483
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerMarkBusinessAsFavorite']?.[localVarOperationServerIndex]?.url;
|
|
3484
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3485
|
+
},
|
|
3486
|
+
/**
|
|
3487
|
+
*
|
|
3488
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3489
|
+
* @param {*} [options] Override http request option.
|
|
3490
|
+
* @throws {RequiredError}
|
|
3491
|
+
*/
|
|
3492
|
+
async businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessUnFavoriteResponse>> {
|
|
3493
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options);
|
|
3494
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3495
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerUnFavoriteBusiness']?.[localVarOperationServerIndex]?.url;
|
|
3496
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3497
|
+
},
|
|
3498
|
+
/**
|
|
3499
|
+
*
|
|
3500
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3501
|
+
* @param {string} businessNumber
|
|
3502
|
+
* @param {*} [options] Override http request option.
|
|
3503
|
+
* @throws {RequiredError}
|
|
3504
|
+
*/
|
|
3505
|
+
async businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVerificationResponse>> {
|
|
3506
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessVerificationControllerABNVerification(type, businessNumber, options);
|
|
3507
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3508
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessVerificationControllerABNVerification']?.[localVarOperationServerIndex]?.url;
|
|
3509
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3510
|
+
},
|
|
2997
3511
|
}
|
|
2998
3512
|
};
|
|
2999
3513
|
|
|
@@ -3026,9 +3540,18 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
3026
3540
|
* @param {*} [options] Override http request option.
|
|
3027
3541
|
* @throws {RequiredError}
|
|
3028
3542
|
*/
|
|
3029
|
-
businessControllerListBusinesses(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3543
|
+
businessControllerListBusinesses(options?: RawAxiosRequestConfig): AxiosPromise<Array<BusinessOnBoardingResponseDTO>> {
|
|
3030
3544
|
return localVarFp.businessControllerListBusinesses(options).then((request) => request(axios, basePath));
|
|
3031
3545
|
},
|
|
3546
|
+
/**
|
|
3547
|
+
*
|
|
3548
|
+
* @param {GetBusinessVenueDto} getBusinessVenueDto
|
|
3549
|
+
* @param {*} [options] Override http request option.
|
|
3550
|
+
* @throws {RequiredError}
|
|
3551
|
+
*/
|
|
3552
|
+
businessTypeControllerGetBusinessVenue(getBusinessVenueDto: GetBusinessVenueDto, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVenueResponseDTO> {
|
|
3553
|
+
return localVarFp.businessTypeControllerGetBusinessVenue(getBusinessVenueDto, options).then((request) => request(axios, basePath));
|
|
3554
|
+
},
|
|
3032
3555
|
/**
|
|
3033
3556
|
*
|
|
3034
3557
|
* @param {*} [options] Override http request option.
|
|
@@ -3039,12 +3562,12 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
3039
3562
|
},
|
|
3040
3563
|
/**
|
|
3041
3564
|
*
|
|
3042
|
-
* @param {string}
|
|
3565
|
+
* @param {string} businessTypeId ID of the business type
|
|
3043
3566
|
* @param {*} [options] Override http request option.
|
|
3044
3567
|
* @throws {RequiredError}
|
|
3045
3568
|
*/
|
|
3046
|
-
businessTypeControllerListCategories(
|
|
3047
|
-
return localVarFp.businessTypeControllerListCategories(
|
|
3569
|
+
businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig): AxiosPromise<CategoryListResponse> {
|
|
3570
|
+
return localVarFp.businessTypeControllerListCategories(businessTypeId, options).then((request) => request(axios, basePath));
|
|
3048
3571
|
},
|
|
3049
3572
|
/**
|
|
3050
3573
|
*
|
|
@@ -3062,6 +3585,34 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
3062
3585
|
businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig): AxiosPromise<PriceRangeListResponse> {
|
|
3063
3586
|
return localVarFp.businessTypeControllerListPriceRange(options).then((request) => request(axios, basePath));
|
|
3064
3587
|
},
|
|
3588
|
+
/**
|
|
3589
|
+
*
|
|
3590
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3591
|
+
* @param {*} [options] Override http request option.
|
|
3592
|
+
* @throws {RequiredError}
|
|
3593
|
+
*/
|
|
3594
|
+
businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessFavoriteResponse> {
|
|
3595
|
+
return localVarFp.businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options).then((request) => request(axios, basePath));
|
|
3596
|
+
},
|
|
3597
|
+
/**
|
|
3598
|
+
*
|
|
3599
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3600
|
+
* @param {*} [options] Override http request option.
|
|
3601
|
+
* @throws {RequiredError}
|
|
3602
|
+
*/
|
|
3603
|
+
businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessUnFavoriteResponse> {
|
|
3604
|
+
return localVarFp.businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options).then((request) => request(axios, basePath));
|
|
3605
|
+
},
|
|
3606
|
+
/**
|
|
3607
|
+
*
|
|
3608
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3609
|
+
* @param {string} businessNumber
|
|
3610
|
+
* @param {*} [options] Override http request option.
|
|
3611
|
+
* @throws {RequiredError}
|
|
3612
|
+
*/
|
|
3613
|
+
businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVerificationResponse> {
|
|
3614
|
+
return localVarFp.businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(axios, basePath));
|
|
3615
|
+
},
|
|
3065
3616
|
};
|
|
3066
3617
|
};
|
|
3067
3618
|
|
|
@@ -3103,6 +3654,17 @@ export class BusinessApi extends BaseAPI {
|
|
|
3103
3654
|
return BusinessApiFp(this.configuration).businessControllerListBusinesses(options).then((request) => request(this.axios, this.basePath));
|
|
3104
3655
|
}
|
|
3105
3656
|
|
|
3657
|
+
/**
|
|
3658
|
+
*
|
|
3659
|
+
* @param {GetBusinessVenueDto} getBusinessVenueDto
|
|
3660
|
+
* @param {*} [options] Override http request option.
|
|
3661
|
+
* @throws {RequiredError}
|
|
3662
|
+
* @memberof BusinessApi
|
|
3663
|
+
*/
|
|
3664
|
+
public businessTypeControllerGetBusinessVenue(getBusinessVenueDto: GetBusinessVenueDto, options?: RawAxiosRequestConfig) {
|
|
3665
|
+
return BusinessApiFp(this.configuration).businessTypeControllerGetBusinessVenue(getBusinessVenueDto, options).then((request) => request(this.axios, this.basePath));
|
|
3666
|
+
}
|
|
3667
|
+
|
|
3106
3668
|
/**
|
|
3107
3669
|
*
|
|
3108
3670
|
* @param {*} [options] Override http request option.
|
|
@@ -3115,13 +3677,13 @@ export class BusinessApi extends BaseAPI {
|
|
|
3115
3677
|
|
|
3116
3678
|
/**
|
|
3117
3679
|
*
|
|
3118
|
-
* @param {string}
|
|
3680
|
+
* @param {string} businessTypeId ID of the business type
|
|
3119
3681
|
* @param {*} [options] Override http request option.
|
|
3120
3682
|
* @throws {RequiredError}
|
|
3121
3683
|
* @memberof BusinessApi
|
|
3122
3684
|
*/
|
|
3123
|
-
public businessTypeControllerListCategories(
|
|
3124
|
-
return BusinessApiFp(this.configuration).businessTypeControllerListCategories(
|
|
3685
|
+
public businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig) {
|
|
3686
|
+
return BusinessApiFp(this.configuration).businessTypeControllerListCategories(businessTypeId, options).then((request) => request(this.axios, this.basePath));
|
|
3125
3687
|
}
|
|
3126
3688
|
|
|
3127
3689
|
/**
|
|
@@ -3143,116 +3705,39 @@ export class BusinessApi extends BaseAPI {
|
|
|
3143
3705
|
public businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig) {
|
|
3144
3706
|
return BusinessApiFp(this.configuration).businessTypeControllerListPriceRange(options).then((request) => request(this.axios, this.basePath));
|
|
3145
3707
|
}
|
|
3146
|
-
}
|
|
3147
3708
|
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
*
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
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
|
-
},
|
|
3709
|
+
/**
|
|
3710
|
+
*
|
|
3711
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3712
|
+
* @param {*} [options] Override http request option.
|
|
3713
|
+
* @throws {RequiredError}
|
|
3714
|
+
* @memberof BusinessApi
|
|
3715
|
+
*/
|
|
3716
|
+
public businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig) {
|
|
3717
|
+
return BusinessApiFp(this.configuration).businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3193
3718
|
}
|
|
3194
|
-
};
|
|
3195
3719
|
|
|
3196
|
-
/**
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
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
|
-
},
|
|
3720
|
+
/**
|
|
3721
|
+
*
|
|
3722
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3723
|
+
* @param {*} [options] Override http request option.
|
|
3724
|
+
* @throws {RequiredError}
|
|
3725
|
+
* @memberof BusinessApi
|
|
3726
|
+
*/
|
|
3727
|
+
public businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig) {
|
|
3728
|
+
return BusinessApiFp(this.configuration).businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3216
3729
|
}
|
|
3217
|
-
};
|
|
3218
|
-
|
|
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
3730
|
|
|
3239
|
-
/**
|
|
3240
|
-
* BusinessVerificationApi - object-oriented interface
|
|
3241
|
-
* @export
|
|
3242
|
-
* @class BusinessVerificationApi
|
|
3243
|
-
* @extends {BaseAPI}
|
|
3244
|
-
*/
|
|
3245
|
-
export class BusinessVerificationApi extends BaseAPI {
|
|
3246
3731
|
/**
|
|
3247
3732
|
*
|
|
3248
3733
|
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3249
3734
|
* @param {string} businessNumber
|
|
3250
3735
|
* @param {*} [options] Override http request option.
|
|
3251
3736
|
* @throws {RequiredError}
|
|
3252
|
-
* @memberof
|
|
3737
|
+
* @memberof BusinessApi
|
|
3253
3738
|
*/
|
|
3254
3739
|
public businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig) {
|
|
3255
|
-
return
|
|
3740
|
+
return BusinessApiFp(this.configuration).businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(this.axios, this.basePath));
|
|
3256
3741
|
}
|
|
3257
3742
|
}
|
|
3258
3743
|
|
|
@@ -4555,6 +5040,107 @@ export class LocationApi extends BaseAPI {
|
|
|
4555
5040
|
|
|
4556
5041
|
|
|
4557
5042
|
|
|
5043
|
+
/**
|
|
5044
|
+
* NotificationApi - axios parameter creator
|
|
5045
|
+
* @export
|
|
5046
|
+
*/
|
|
5047
|
+
export const NotificationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5048
|
+
return {
|
|
5049
|
+
/**
|
|
5050
|
+
*
|
|
5051
|
+
* @param {*} [options] Override http request option.
|
|
5052
|
+
* @throws {RequiredError}
|
|
5053
|
+
*/
|
|
5054
|
+
notificationControllerGetNotification: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5055
|
+
const localVarPath = `/v1/notification`;
|
|
5056
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5057
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5058
|
+
let baseOptions;
|
|
5059
|
+
if (configuration) {
|
|
5060
|
+
baseOptions = configuration.baseOptions;
|
|
5061
|
+
}
|
|
5062
|
+
|
|
5063
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5064
|
+
const localVarHeaderParameter = {} as any;
|
|
5065
|
+
const localVarQueryParameter = {} as any;
|
|
5066
|
+
|
|
5067
|
+
// authentication bearer required
|
|
5068
|
+
// http bearer authentication required
|
|
5069
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5070
|
+
|
|
5071
|
+
|
|
5072
|
+
|
|
5073
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5074
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5075
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5076
|
+
|
|
5077
|
+
return {
|
|
5078
|
+
url: toPathString(localVarUrlObj),
|
|
5079
|
+
options: localVarRequestOptions,
|
|
5080
|
+
};
|
|
5081
|
+
},
|
|
5082
|
+
}
|
|
5083
|
+
};
|
|
5084
|
+
|
|
5085
|
+
/**
|
|
5086
|
+
* NotificationApi - functional programming interface
|
|
5087
|
+
* @export
|
|
5088
|
+
*/
|
|
5089
|
+
export const NotificationApiFp = function(configuration?: Configuration) {
|
|
5090
|
+
const localVarAxiosParamCreator = NotificationApiAxiosParamCreator(configuration)
|
|
5091
|
+
return {
|
|
5092
|
+
/**
|
|
5093
|
+
*
|
|
5094
|
+
* @param {*} [options] Override http request option.
|
|
5095
|
+
* @throws {RequiredError}
|
|
5096
|
+
*/
|
|
5097
|
+
async notificationControllerGetNotification(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetNotificationDTO>> {
|
|
5098
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerGetNotification(options);
|
|
5099
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5100
|
+
const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerGetNotification']?.[localVarOperationServerIndex]?.url;
|
|
5101
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5102
|
+
},
|
|
5103
|
+
}
|
|
5104
|
+
};
|
|
5105
|
+
|
|
5106
|
+
/**
|
|
5107
|
+
* NotificationApi - factory interface
|
|
5108
|
+
* @export
|
|
5109
|
+
*/
|
|
5110
|
+
export const NotificationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5111
|
+
const localVarFp = NotificationApiFp(configuration)
|
|
5112
|
+
return {
|
|
5113
|
+
/**
|
|
5114
|
+
*
|
|
5115
|
+
* @param {*} [options] Override http request option.
|
|
5116
|
+
* @throws {RequiredError}
|
|
5117
|
+
*/
|
|
5118
|
+
notificationControllerGetNotification(options?: RawAxiosRequestConfig): AxiosPromise<GetNotificationDTO> {
|
|
5119
|
+
return localVarFp.notificationControllerGetNotification(options).then((request) => request(axios, basePath));
|
|
5120
|
+
},
|
|
5121
|
+
};
|
|
5122
|
+
};
|
|
5123
|
+
|
|
5124
|
+
/**
|
|
5125
|
+
* NotificationApi - object-oriented interface
|
|
5126
|
+
* @export
|
|
5127
|
+
* @class NotificationApi
|
|
5128
|
+
* @extends {BaseAPI}
|
|
5129
|
+
*/
|
|
5130
|
+
export class NotificationApi extends BaseAPI {
|
|
5131
|
+
/**
|
|
5132
|
+
*
|
|
5133
|
+
* @param {*} [options] Override http request option.
|
|
5134
|
+
* @throws {RequiredError}
|
|
5135
|
+
* @memberof NotificationApi
|
|
5136
|
+
*/
|
|
5137
|
+
public notificationControllerGetNotification(options?: RawAxiosRequestConfig) {
|
|
5138
|
+
return NotificationApiFp(this.configuration).notificationControllerGetNotification(options).then((request) => request(this.axios, this.basePath));
|
|
5139
|
+
}
|
|
5140
|
+
}
|
|
5141
|
+
|
|
5142
|
+
|
|
5143
|
+
|
|
4558
5144
|
/**
|
|
4559
5145
|
* OAuthApi - axios parameter creator
|
|
4560
5146
|
* @export
|
|
@@ -5071,6 +5657,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5071
5657
|
options: localVarRequestOptions,
|
|
5072
5658
|
};
|
|
5073
5659
|
},
|
|
5660
|
+
/**
|
|
5661
|
+
*
|
|
5662
|
+
* @param {GetUserDTO} getUserDTO
|
|
5663
|
+
* @param {*} [options] Override http request option.
|
|
5664
|
+
* @throws {RequiredError}
|
|
5665
|
+
*/
|
|
5666
|
+
usersControllerGetUser: async (getUserDTO: GetUserDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5667
|
+
// verify required parameter 'getUserDTO' is not null or undefined
|
|
5668
|
+
assertParamExists('usersControllerGetUser', 'getUserDTO', getUserDTO)
|
|
5669
|
+
const localVarPath = `/v1/user/get-user`;
|
|
5670
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5671
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5672
|
+
let baseOptions;
|
|
5673
|
+
if (configuration) {
|
|
5674
|
+
baseOptions = configuration.baseOptions;
|
|
5675
|
+
}
|
|
5676
|
+
|
|
5677
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5678
|
+
const localVarHeaderParameter = {} as any;
|
|
5679
|
+
const localVarQueryParameter = {} as any;
|
|
5680
|
+
|
|
5681
|
+
// authentication bearer required
|
|
5682
|
+
// http bearer authentication required
|
|
5683
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5684
|
+
|
|
5685
|
+
|
|
5686
|
+
|
|
5687
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5688
|
+
|
|
5689
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5690
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5691
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5692
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getUserDTO, localVarRequestOptions, configuration)
|
|
5693
|
+
|
|
5694
|
+
return {
|
|
5695
|
+
url: toPathString(localVarUrlObj),
|
|
5696
|
+
options: localVarRequestOptions,
|
|
5697
|
+
};
|
|
5698
|
+
},
|
|
5074
5699
|
/**
|
|
5075
5700
|
*
|
|
5076
5701
|
* @param {OnBoardingDTO} onBoardingDTO
|
|
@@ -5105,6 +5730,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5105
5730
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5106
5731
|
localVarRequestOptions.data = serializeDataIfNeeded(onBoardingDTO, localVarRequestOptions, configuration)
|
|
5107
5732
|
|
|
5733
|
+
return {
|
|
5734
|
+
url: toPathString(localVarUrlObj),
|
|
5735
|
+
options: localVarRequestOptions,
|
|
5736
|
+
};
|
|
5737
|
+
},
|
|
5738
|
+
/**
|
|
5739
|
+
*
|
|
5740
|
+
* @param {UserSyncLocationDTO} userSyncLocationDTO
|
|
5741
|
+
* @param {*} [options] Override http request option.
|
|
5742
|
+
* @throws {RequiredError}
|
|
5743
|
+
*/
|
|
5744
|
+
usersControllerSyncUserLocation: async (userSyncLocationDTO: UserSyncLocationDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5745
|
+
// verify required parameter 'userSyncLocationDTO' is not null or undefined
|
|
5746
|
+
assertParamExists('usersControllerSyncUserLocation', 'userSyncLocationDTO', userSyncLocationDTO)
|
|
5747
|
+
const localVarPath = `/v1/user/sync/user/location`;
|
|
5748
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5749
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5750
|
+
let baseOptions;
|
|
5751
|
+
if (configuration) {
|
|
5752
|
+
baseOptions = configuration.baseOptions;
|
|
5753
|
+
}
|
|
5754
|
+
|
|
5755
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5756
|
+
const localVarHeaderParameter = {} as any;
|
|
5757
|
+
const localVarQueryParameter = {} as any;
|
|
5758
|
+
|
|
5759
|
+
// authentication bearer required
|
|
5760
|
+
// http bearer authentication required
|
|
5761
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5762
|
+
|
|
5763
|
+
|
|
5764
|
+
|
|
5765
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5766
|
+
|
|
5767
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5768
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5769
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5770
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userSyncLocationDTO, localVarRequestOptions, configuration)
|
|
5771
|
+
|
|
5108
5772
|
return {
|
|
5109
5773
|
url: toPathString(localVarUrlObj),
|
|
5110
5774
|
options: localVarRequestOptions,
|
|
@@ -5131,6 +5795,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
5131
5795
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerGetMe']?.[localVarOperationServerIndex]?.url;
|
|
5132
5796
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5133
5797
|
},
|
|
5798
|
+
/**
|
|
5799
|
+
*
|
|
5800
|
+
* @param {GetUserDTO} getUserDTO
|
|
5801
|
+
* @param {*} [options] Override http request option.
|
|
5802
|
+
* @throws {RequiredError}
|
|
5803
|
+
*/
|
|
5804
|
+
async usersControllerGetUser(getUserDTO: GetUserDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnBoardingResponseDTO>> {
|
|
5805
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerGetUser(getUserDTO, options);
|
|
5806
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5807
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerGetUser']?.[localVarOperationServerIndex]?.url;
|
|
5808
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5809
|
+
},
|
|
5134
5810
|
/**
|
|
5135
5811
|
*
|
|
5136
5812
|
* @param {OnBoardingDTO} onBoardingDTO
|
|
@@ -5143,6 +5819,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
5143
5819
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerOnBoarded']?.[localVarOperationServerIndex]?.url;
|
|
5144
5820
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5145
5821
|
},
|
|
5822
|
+
/**
|
|
5823
|
+
*
|
|
5824
|
+
* @param {UserSyncLocationDTO} userSyncLocationDTO
|
|
5825
|
+
* @param {*} [options] Override http request option.
|
|
5826
|
+
* @throws {RequiredError}
|
|
5827
|
+
*/
|
|
5828
|
+
async usersControllerSyncUserLocation(userSyncLocationDTO: UserSyncLocationDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnBoardingResponseDTO>> {
|
|
5829
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerSyncUserLocation(userSyncLocationDTO, options);
|
|
5830
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5831
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerSyncUserLocation']?.[localVarOperationServerIndex]?.url;
|
|
5832
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5833
|
+
},
|
|
5146
5834
|
}
|
|
5147
5835
|
};
|
|
5148
5836
|
|
|
@@ -5161,6 +5849,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
5161
5849
|
usersControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<UserMeDTO> {
|
|
5162
5850
|
return localVarFp.usersControllerGetMe(options).then((request) => request(axios, basePath));
|
|
5163
5851
|
},
|
|
5852
|
+
/**
|
|
5853
|
+
*
|
|
5854
|
+
* @param {GetUserDTO} getUserDTO
|
|
5855
|
+
* @param {*} [options] Override http request option.
|
|
5856
|
+
* @throws {RequiredError}
|
|
5857
|
+
*/
|
|
5858
|
+
usersControllerGetUser(getUserDTO: GetUserDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
|
|
5859
|
+
return localVarFp.usersControllerGetUser(getUserDTO, options).then((request) => request(axios, basePath));
|
|
5860
|
+
},
|
|
5164
5861
|
/**
|
|
5165
5862
|
*
|
|
5166
5863
|
* @param {OnBoardingDTO} onBoardingDTO
|
|
@@ -5170,6 +5867,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
5170
5867
|
usersControllerOnBoarded(onBoardingDTO: OnBoardingDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
|
|
5171
5868
|
return localVarFp.usersControllerOnBoarded(onBoardingDTO, options).then((request) => request(axios, basePath));
|
|
5172
5869
|
},
|
|
5870
|
+
/**
|
|
5871
|
+
*
|
|
5872
|
+
* @param {UserSyncLocationDTO} userSyncLocationDTO
|
|
5873
|
+
* @param {*} [options] Override http request option.
|
|
5874
|
+
* @throws {RequiredError}
|
|
5875
|
+
*/
|
|
5876
|
+
usersControllerSyncUserLocation(userSyncLocationDTO: UserSyncLocationDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
|
|
5877
|
+
return localVarFp.usersControllerSyncUserLocation(userSyncLocationDTO, options).then((request) => request(axios, basePath));
|
|
5878
|
+
},
|
|
5173
5879
|
};
|
|
5174
5880
|
};
|
|
5175
5881
|
|
|
@@ -5190,6 +5896,17 @@ export class UsersApi extends BaseAPI {
|
|
|
5190
5896
|
return UsersApiFp(this.configuration).usersControllerGetMe(options).then((request) => request(this.axios, this.basePath));
|
|
5191
5897
|
}
|
|
5192
5898
|
|
|
5899
|
+
/**
|
|
5900
|
+
*
|
|
5901
|
+
* @param {GetUserDTO} getUserDTO
|
|
5902
|
+
* @param {*} [options] Override http request option.
|
|
5903
|
+
* @throws {RequiredError}
|
|
5904
|
+
* @memberof UsersApi
|
|
5905
|
+
*/
|
|
5906
|
+
public usersControllerGetUser(getUserDTO: GetUserDTO, options?: RawAxiosRequestConfig) {
|
|
5907
|
+
return UsersApiFp(this.configuration).usersControllerGetUser(getUserDTO, options).then((request) => request(this.axios, this.basePath));
|
|
5908
|
+
}
|
|
5909
|
+
|
|
5193
5910
|
/**
|
|
5194
5911
|
*
|
|
5195
5912
|
* @param {OnBoardingDTO} onBoardingDTO
|
|
@@ -5200,6 +5917,17 @@ export class UsersApi extends BaseAPI {
|
|
|
5200
5917
|
public usersControllerOnBoarded(onBoardingDTO: OnBoardingDTO, options?: RawAxiosRequestConfig) {
|
|
5201
5918
|
return UsersApiFp(this.configuration).usersControllerOnBoarded(onBoardingDTO, options).then((request) => request(this.axios, this.basePath));
|
|
5202
5919
|
}
|
|
5920
|
+
|
|
5921
|
+
/**
|
|
5922
|
+
*
|
|
5923
|
+
* @param {UserSyncLocationDTO} userSyncLocationDTO
|
|
5924
|
+
* @param {*} [options] Override http request option.
|
|
5925
|
+
* @throws {RequiredError}
|
|
5926
|
+
* @memberof UsersApi
|
|
5927
|
+
*/
|
|
5928
|
+
public usersControllerSyncUserLocation(userSyncLocationDTO: UserSyncLocationDTO, options?: RawAxiosRequestConfig) {
|
|
5929
|
+
return UsersApiFp(this.configuration).usersControllerSyncUserLocation(userSyncLocationDTO, options).then((request) => request(this.axios, this.basePath));
|
|
5930
|
+
}
|
|
5203
5931
|
}
|
|
5204
5932
|
|
|
5205
5933
|
|