@gooday_corp/gooday-api-client 1.2.34 → 1.2.36
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 +480 -33
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -390,6 +390,203 @@ export const AvailableSlotsPayloadViewEnum = {
|
|
|
390
390
|
|
|
391
391
|
export type AvailableSlotsPayloadViewEnum = typeof AvailableSlotsPayloadViewEnum[keyof typeof AvailableSlotsPayloadViewEnum];
|
|
392
392
|
|
|
393
|
+
/**
|
|
394
|
+
*
|
|
395
|
+
* @export
|
|
396
|
+
* @interface BookingDurationEntity
|
|
397
|
+
*/
|
|
398
|
+
export interface BookingDurationEntity {
|
|
399
|
+
/**
|
|
400
|
+
* Unique identifier for the Booking duration
|
|
401
|
+
* @type {string}
|
|
402
|
+
* @memberof BookingDurationEntity
|
|
403
|
+
*/
|
|
404
|
+
'id': string;
|
|
405
|
+
/**
|
|
406
|
+
* Title of the Booking duration
|
|
407
|
+
* @type {string}
|
|
408
|
+
* @memberof BookingDurationEntity
|
|
409
|
+
*/
|
|
410
|
+
'title': string;
|
|
411
|
+
/**
|
|
412
|
+
* Value of the Booking duration
|
|
413
|
+
* @type {string}
|
|
414
|
+
* @memberof BookingDurationEntity
|
|
415
|
+
*/
|
|
416
|
+
'value': string;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
*
|
|
420
|
+
* @export
|
|
421
|
+
* @interface BookingDurationListResponse
|
|
422
|
+
*/
|
|
423
|
+
export interface BookingDurationListResponse {
|
|
424
|
+
/**
|
|
425
|
+
* statusCode
|
|
426
|
+
* @type {number}
|
|
427
|
+
* @memberof BookingDurationListResponse
|
|
428
|
+
*/
|
|
429
|
+
'statusCode': number;
|
|
430
|
+
/**
|
|
431
|
+
* Employees Size
|
|
432
|
+
* @type {Array<BookingDurationEntity>}
|
|
433
|
+
* @memberof BookingDurationListResponse
|
|
434
|
+
*/
|
|
435
|
+
'data': Array<BookingDurationEntity>;
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
*
|
|
439
|
+
* @export
|
|
440
|
+
* @interface BookingEntity
|
|
441
|
+
*/
|
|
442
|
+
export interface BookingEntity {
|
|
443
|
+
/**
|
|
444
|
+
* Unique identifier for the booking
|
|
445
|
+
* @type {string}
|
|
446
|
+
* @memberof BookingEntity
|
|
447
|
+
*/
|
|
448
|
+
'_id': string;
|
|
449
|
+
/**
|
|
450
|
+
* Title of the booking
|
|
451
|
+
* @type {string}
|
|
452
|
+
* @memberof BookingEntity
|
|
453
|
+
*/
|
|
454
|
+
'title': string;
|
|
455
|
+
/**
|
|
456
|
+
* Start date of the booking
|
|
457
|
+
* @type {string}
|
|
458
|
+
* @memberof BookingEntity
|
|
459
|
+
*/
|
|
460
|
+
'startDate': string;
|
|
461
|
+
/**
|
|
462
|
+
* End date of the booking
|
|
463
|
+
* @type {string}
|
|
464
|
+
* @memberof BookingEntity
|
|
465
|
+
*/
|
|
466
|
+
'endDate': string;
|
|
467
|
+
/**
|
|
468
|
+
* Venue associated with the booking
|
|
469
|
+
* @type {string}
|
|
470
|
+
* @memberof BookingEntity
|
|
471
|
+
*/
|
|
472
|
+
'venue': string;
|
|
473
|
+
/**
|
|
474
|
+
* Business associated with the booking
|
|
475
|
+
* @type {string}
|
|
476
|
+
* @memberof BookingEntity
|
|
477
|
+
*/
|
|
478
|
+
'business': string;
|
|
479
|
+
/**
|
|
480
|
+
* List of customers in the booking
|
|
481
|
+
* @type {Array<object>}
|
|
482
|
+
* @memberof BookingEntity
|
|
483
|
+
*/
|
|
484
|
+
'customers': Array<object>;
|
|
485
|
+
/**
|
|
486
|
+
* Users associated with the booking
|
|
487
|
+
* @type {Array<string>}
|
|
488
|
+
* @memberof BookingEntity
|
|
489
|
+
*/
|
|
490
|
+
'users': Array<string>;
|
|
491
|
+
/**
|
|
492
|
+
* Staff members involved in the booking
|
|
493
|
+
* @type {Array<BusinessStaffEntity>}
|
|
494
|
+
* @memberof BookingEntity
|
|
495
|
+
*/
|
|
496
|
+
'staffs': Array<BusinessStaffEntity>;
|
|
497
|
+
/**
|
|
498
|
+
* Space for the booking
|
|
499
|
+
* @type {string}
|
|
500
|
+
* @memberof BookingEntity
|
|
501
|
+
*/
|
|
502
|
+
'space': string;
|
|
503
|
+
/**
|
|
504
|
+
* Creator of the booking
|
|
505
|
+
* @type {string}
|
|
506
|
+
* @memberof BookingEntity
|
|
507
|
+
*/
|
|
508
|
+
'createdBy': string;
|
|
509
|
+
/**
|
|
510
|
+
* Notes related to the booking
|
|
511
|
+
* @type {string}
|
|
512
|
+
* @memberof BookingEntity
|
|
513
|
+
*/
|
|
514
|
+
'notes': string;
|
|
515
|
+
/**
|
|
516
|
+
* Status of the booking
|
|
517
|
+
* @type {string}
|
|
518
|
+
* @memberof BookingEntity
|
|
519
|
+
*/
|
|
520
|
+
'status': BookingEntityStatusEnum;
|
|
521
|
+
/**
|
|
522
|
+
* Occasion for the booking
|
|
523
|
+
* @type {string}
|
|
524
|
+
* @memberof BookingEntity
|
|
525
|
+
*/
|
|
526
|
+
'occasion': string;
|
|
527
|
+
/**
|
|
528
|
+
* Calendar associated with the booking
|
|
529
|
+
* @type {Array<string>}
|
|
530
|
+
* @memberof BookingEntity
|
|
531
|
+
*/
|
|
532
|
+
'calendar': Array<string>;
|
|
533
|
+
/**
|
|
534
|
+
* Payment method ID for the booking
|
|
535
|
+
* @type {string}
|
|
536
|
+
* @memberof BookingEntity
|
|
537
|
+
*/
|
|
538
|
+
'paymentMethodId': string;
|
|
539
|
+
/**
|
|
540
|
+
* Booking method used
|
|
541
|
+
* @type {string}
|
|
542
|
+
* @memberof BookingEntity
|
|
543
|
+
*/
|
|
544
|
+
'method': BookingEntityMethodEnum;
|
|
545
|
+
/**
|
|
546
|
+
* Business venue favorite
|
|
547
|
+
* @type {BusinessVenueDTO}
|
|
548
|
+
* @memberof BookingEntity
|
|
549
|
+
*/
|
|
550
|
+
'favorite'?: BusinessVenueDTO;
|
|
551
|
+
/**
|
|
552
|
+
* Booking Icon
|
|
553
|
+
* @type {string}
|
|
554
|
+
* @memberof BookingEntity
|
|
555
|
+
*/
|
|
556
|
+
'icon'?: string;
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @type {number}
|
|
560
|
+
* @memberof BookingEntity
|
|
561
|
+
*/
|
|
562
|
+
'bookingQuantity': number;
|
|
563
|
+
/**
|
|
564
|
+
*
|
|
565
|
+
* @type {Array<BookingServicePayload>}
|
|
566
|
+
* @memberof BookingEntity
|
|
567
|
+
*/
|
|
568
|
+
'services': Array<BookingServicePayload>;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
export const BookingEntityStatusEnum = {
|
|
572
|
+
CheckedIn: 'CHECKED_IN',
|
|
573
|
+
Confirmed: 'CONFIRMED',
|
|
574
|
+
Unconfirmed: 'UNCONFIRMED',
|
|
575
|
+
Rescheduled: 'RESCHEDULED',
|
|
576
|
+
NoShow: 'NO_SHOW',
|
|
577
|
+
Rejected: 'REJECTED',
|
|
578
|
+
Cancelled: 'CANCELLED'
|
|
579
|
+
} as const;
|
|
580
|
+
|
|
581
|
+
export type BookingEntityStatusEnum = typeof BookingEntityStatusEnum[keyof typeof BookingEntityStatusEnum];
|
|
582
|
+
export const BookingEntityMethodEnum = {
|
|
583
|
+
Call: 'CALL',
|
|
584
|
+
InPerson: 'IN_PERSON',
|
|
585
|
+
App: 'APP'
|
|
586
|
+
} as const;
|
|
587
|
+
|
|
588
|
+
export type BookingEntityMethodEnum = typeof BookingEntityMethodEnum[keyof typeof BookingEntityMethodEnum];
|
|
589
|
+
|
|
393
590
|
/**
|
|
394
591
|
*
|
|
395
592
|
* @export
|
|
@@ -600,6 +797,18 @@ export interface BookingServicePayload {
|
|
|
600
797
|
* @interface BusinessDetailsPayloadDTO
|
|
601
798
|
*/
|
|
602
799
|
export interface BusinessDetailsPayloadDTO {
|
|
800
|
+
/**
|
|
801
|
+
* Business Type
|
|
802
|
+
* @type {string}
|
|
803
|
+
* @memberof BusinessDetailsPayloadDTO
|
|
804
|
+
*/
|
|
805
|
+
'businessType'?: string;
|
|
806
|
+
/**
|
|
807
|
+
* Business Category
|
|
808
|
+
* @type {string}
|
|
809
|
+
* @memberof BusinessDetailsPayloadDTO
|
|
810
|
+
*/
|
|
811
|
+
'businessCategory'?: string;
|
|
603
812
|
/**
|
|
604
813
|
* Business Timing
|
|
605
814
|
* @type {Array<BusinessTiming>}
|
|
@@ -1401,10 +1610,28 @@ export interface BusinessVenueDTO {
|
|
|
1401
1610
|
'socialMedia': SocialMedia;
|
|
1402
1611
|
/**
|
|
1403
1612
|
*
|
|
1404
|
-
* @type {
|
|
1613
|
+
* @type {string}
|
|
1614
|
+
* @memberof BusinessVenueDTO
|
|
1615
|
+
*/
|
|
1616
|
+
'email'?: string;
|
|
1617
|
+
/**
|
|
1618
|
+
*
|
|
1619
|
+
* @type {string}
|
|
1620
|
+
* @memberof BusinessVenueDTO
|
|
1621
|
+
*/
|
|
1622
|
+
'phone'?: string;
|
|
1623
|
+
/**
|
|
1624
|
+
*
|
|
1625
|
+
* @type {string}
|
|
1626
|
+
* @memberof BusinessVenueDTO
|
|
1627
|
+
*/
|
|
1628
|
+
'website'?: string;
|
|
1629
|
+
/**
|
|
1630
|
+
*
|
|
1631
|
+
* @type {string}
|
|
1405
1632
|
* @memberof BusinessVenueDTO
|
|
1406
1633
|
*/
|
|
1407
|
-
'
|
|
1634
|
+
'name'?: string;
|
|
1408
1635
|
/**
|
|
1409
1636
|
*
|
|
1410
1637
|
* @type {string}
|
|
@@ -1456,16 +1683,34 @@ export interface BusinessVenueDetailsEntity {
|
|
|
1456
1683
|
'description': string;
|
|
1457
1684
|
/**
|
|
1458
1685
|
*
|
|
1459
|
-
* @type {
|
|
1686
|
+
* @type {string}
|
|
1460
1687
|
* @memberof BusinessVenueDetailsEntity
|
|
1461
1688
|
*/
|
|
1462
|
-
'
|
|
1689
|
+
'email': string;
|
|
1690
|
+
/**
|
|
1691
|
+
*
|
|
1692
|
+
* @type {string}
|
|
1693
|
+
* @memberof BusinessVenueDetailsEntity
|
|
1694
|
+
*/
|
|
1695
|
+
'website': string;
|
|
1696
|
+
/**
|
|
1697
|
+
*
|
|
1698
|
+
* @type {string}
|
|
1699
|
+
* @memberof BusinessVenueDetailsEntity
|
|
1700
|
+
*/
|
|
1701
|
+
'phone': string;
|
|
1702
|
+
/**
|
|
1703
|
+
*
|
|
1704
|
+
* @type {string}
|
|
1705
|
+
* @memberof BusinessVenueDetailsEntity
|
|
1706
|
+
*/
|
|
1707
|
+
'name': string;
|
|
1463
1708
|
/**
|
|
1464
1709
|
*
|
|
1465
|
-
* @type {
|
|
1710
|
+
* @type {LocationDTO}
|
|
1466
1711
|
* @memberof BusinessVenueDetailsEntity
|
|
1467
1712
|
*/
|
|
1468
|
-
'
|
|
1713
|
+
'location': LocationDTO;
|
|
1469
1714
|
/**
|
|
1470
1715
|
*
|
|
1471
1716
|
* @type {string}
|
|
@@ -1846,31 +2091,6 @@ export interface CategoryListResponse {
|
|
|
1846
2091
|
*/
|
|
1847
2092
|
'data': Array<CategoryEntity>;
|
|
1848
2093
|
}
|
|
1849
|
-
/**
|
|
1850
|
-
*
|
|
1851
|
-
* @export
|
|
1852
|
-
* @interface Contact
|
|
1853
|
-
*/
|
|
1854
|
-
export interface Contact {
|
|
1855
|
-
/**
|
|
1856
|
-
*
|
|
1857
|
-
* @type {string}
|
|
1858
|
-
* @memberof Contact
|
|
1859
|
-
*/
|
|
1860
|
-
'email'?: string;
|
|
1861
|
-
/**
|
|
1862
|
-
*
|
|
1863
|
-
* @type {string}
|
|
1864
|
-
* @memberof Contact
|
|
1865
|
-
*/
|
|
1866
|
-
'mobile'?: string;
|
|
1867
|
-
/**
|
|
1868
|
-
*
|
|
1869
|
-
* @type {string}
|
|
1870
|
-
* @memberof Contact
|
|
1871
|
-
*/
|
|
1872
|
-
'website'?: string;
|
|
1873
|
-
}
|
|
1874
2094
|
/**
|
|
1875
2095
|
*
|
|
1876
2096
|
* @export
|
|
@@ -2546,6 +2766,25 @@ export interface EventResponseDTO {
|
|
|
2546
2766
|
*/
|
|
2547
2767
|
'data': EventResponse;
|
|
2548
2768
|
}
|
|
2769
|
+
/**
|
|
2770
|
+
*
|
|
2771
|
+
* @export
|
|
2772
|
+
* @interface FIndBookingResponseDTO
|
|
2773
|
+
*/
|
|
2774
|
+
export interface FIndBookingResponseDTO {
|
|
2775
|
+
/**
|
|
2776
|
+
* statusCode
|
|
2777
|
+
* @type {number}
|
|
2778
|
+
* @memberof FIndBookingResponseDTO
|
|
2779
|
+
*/
|
|
2780
|
+
'statusCode': number;
|
|
2781
|
+
/**
|
|
2782
|
+
* Booking response
|
|
2783
|
+
* @type {Array<BookingEntity>}
|
|
2784
|
+
* @memberof FIndBookingResponseDTO
|
|
2785
|
+
*/
|
|
2786
|
+
'data': Array<BookingEntity>;
|
|
2787
|
+
}
|
|
2549
2788
|
/**
|
|
2550
2789
|
*
|
|
2551
2790
|
* @export
|
|
@@ -2578,6 +2817,81 @@ export interface FileNameUploadDTO {
|
|
|
2578
2817
|
*/
|
|
2579
2818
|
'bucketName': string;
|
|
2580
2819
|
}
|
|
2820
|
+
/**
|
|
2821
|
+
*
|
|
2822
|
+
* @export
|
|
2823
|
+
* @interface FindBookingPayload
|
|
2824
|
+
*/
|
|
2825
|
+
export interface FindBookingPayload {
|
|
2826
|
+
/**
|
|
2827
|
+
* Start date for the events
|
|
2828
|
+
* @type {string}
|
|
2829
|
+
* @memberof FindBookingPayload
|
|
2830
|
+
*/
|
|
2831
|
+
'startDate': string;
|
|
2832
|
+
/**
|
|
2833
|
+
* End date for the events
|
|
2834
|
+
* @type {string}
|
|
2835
|
+
* @memberof FindBookingPayload
|
|
2836
|
+
*/
|
|
2837
|
+
'endDate': string;
|
|
2838
|
+
/**
|
|
2839
|
+
* View
|
|
2840
|
+
* @type {string}
|
|
2841
|
+
* @memberof FindBookingPayload
|
|
2842
|
+
*/
|
|
2843
|
+
'view': FindBookingPayloadViewEnum;
|
|
2844
|
+
/**
|
|
2845
|
+
* Staff Id
|
|
2846
|
+
* @type {Array<string>}
|
|
2847
|
+
* @memberof FindBookingPayload
|
|
2848
|
+
*/
|
|
2849
|
+
'staffs': Array<string>;
|
|
2850
|
+
/**
|
|
2851
|
+
*
|
|
2852
|
+
* @type {string}
|
|
2853
|
+
* @memberof FindBookingPayload
|
|
2854
|
+
*/
|
|
2855
|
+
'status': FindBookingPayloadStatusEnum;
|
|
2856
|
+
/**
|
|
2857
|
+
*
|
|
2858
|
+
* @type {number}
|
|
2859
|
+
* @memberof FindBookingPayload
|
|
2860
|
+
*/
|
|
2861
|
+
'page': number;
|
|
2862
|
+
/**
|
|
2863
|
+
*
|
|
2864
|
+
* @type {number}
|
|
2865
|
+
* @memberof FindBookingPayload
|
|
2866
|
+
*/
|
|
2867
|
+
'pageSize': number;
|
|
2868
|
+
/**
|
|
2869
|
+
*
|
|
2870
|
+
* @type {string}
|
|
2871
|
+
* @memberof FindBookingPayload
|
|
2872
|
+
*/
|
|
2873
|
+
'search'?: string;
|
|
2874
|
+
}
|
|
2875
|
+
|
|
2876
|
+
export const FindBookingPayloadViewEnum = {
|
|
2877
|
+
Daily: 'daily',
|
|
2878
|
+
Weekly: 'weekly',
|
|
2879
|
+
Monthly: 'monthly'
|
|
2880
|
+
} as const;
|
|
2881
|
+
|
|
2882
|
+
export type FindBookingPayloadViewEnum = typeof FindBookingPayloadViewEnum[keyof typeof FindBookingPayloadViewEnum];
|
|
2883
|
+
export const FindBookingPayloadStatusEnum = {
|
|
2884
|
+
Booking: 'BOOKING',
|
|
2885
|
+
Shared: 'SHARED',
|
|
2886
|
+
Invites: 'INVITES',
|
|
2887
|
+
Unconfirmed: 'UNCONFIRMED',
|
|
2888
|
+
Rescheduled: 'RESCHEDULED',
|
|
2889
|
+
Confirmed: 'CONFIRMED',
|
|
2890
|
+
CheckIn: 'CHECK_IN'
|
|
2891
|
+
} as const;
|
|
2892
|
+
|
|
2893
|
+
export type FindBookingPayloadStatusEnum = typeof FindBookingPayloadStatusEnum[keyof typeof FindBookingPayloadStatusEnum];
|
|
2894
|
+
|
|
2581
2895
|
/**
|
|
2582
2896
|
*
|
|
2583
2897
|
* @export
|
|
@@ -7008,6 +7322,45 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
7008
7322
|
options: localVarRequestOptions,
|
|
7009
7323
|
};
|
|
7010
7324
|
},
|
|
7325
|
+
/**
|
|
7326
|
+
*
|
|
7327
|
+
* @param {FindBookingPayload} findBookingPayload
|
|
7328
|
+
* @param {*} [options] Override http request option.
|
|
7329
|
+
* @throws {RequiredError}
|
|
7330
|
+
*/
|
|
7331
|
+
bookingControllerListBookings: async (findBookingPayload: FindBookingPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7332
|
+
// verify required parameter 'findBookingPayload' is not null or undefined
|
|
7333
|
+
assertParamExists('bookingControllerListBookings', 'findBookingPayload', findBookingPayload)
|
|
7334
|
+
const localVarPath = `/v1/booking/list`;
|
|
7335
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7336
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7337
|
+
let baseOptions;
|
|
7338
|
+
if (configuration) {
|
|
7339
|
+
baseOptions = configuration.baseOptions;
|
|
7340
|
+
}
|
|
7341
|
+
|
|
7342
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
7343
|
+
const localVarHeaderParameter = {} as any;
|
|
7344
|
+
const localVarQueryParameter = {} as any;
|
|
7345
|
+
|
|
7346
|
+
// authentication bearer required
|
|
7347
|
+
// http bearer authentication required
|
|
7348
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7349
|
+
|
|
7350
|
+
|
|
7351
|
+
|
|
7352
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7353
|
+
|
|
7354
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7355
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7356
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7357
|
+
localVarRequestOptions.data = serializeDataIfNeeded(findBookingPayload, localVarRequestOptions, configuration)
|
|
7358
|
+
|
|
7359
|
+
return {
|
|
7360
|
+
url: toPathString(localVarUrlObj),
|
|
7361
|
+
options: localVarRequestOptions,
|
|
7362
|
+
};
|
|
7363
|
+
},
|
|
7011
7364
|
/**
|
|
7012
7365
|
*
|
|
7013
7366
|
* @param {RejectBookingInvitePayload} rejectBookingInvitePayload
|
|
@@ -7117,6 +7470,18 @@ export const BookingApiFp = function(configuration?: Configuration) {
|
|
|
7117
7470
|
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerLeaveBooking']?.[localVarOperationServerIndex]?.url;
|
|
7118
7471
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7119
7472
|
},
|
|
7473
|
+
/**
|
|
7474
|
+
*
|
|
7475
|
+
* @param {FindBookingPayload} findBookingPayload
|
|
7476
|
+
* @param {*} [options] Override http request option.
|
|
7477
|
+
* @throws {RequiredError}
|
|
7478
|
+
*/
|
|
7479
|
+
async bookingControllerListBookings(findBookingPayload: FindBookingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FIndBookingResponseDTO>> {
|
|
7480
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerListBookings(findBookingPayload, options);
|
|
7481
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7482
|
+
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerListBookings']?.[localVarOperationServerIndex]?.url;
|
|
7483
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7484
|
+
},
|
|
7120
7485
|
/**
|
|
7121
7486
|
*
|
|
7122
7487
|
* @param {RejectBookingInvitePayload} rejectBookingInvitePayload
|
|
@@ -7184,6 +7549,15 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
|
|
|
7184
7549
|
bookingControllerLeaveBooking(leaveBookingDTO: LeaveBookingDTO, options?: RawAxiosRequestConfig): AxiosPromise<LeaveBookingResponseDTO> {
|
|
7185
7550
|
return localVarFp.bookingControllerLeaveBooking(leaveBookingDTO, options).then((request) => request(axios, basePath));
|
|
7186
7551
|
},
|
|
7552
|
+
/**
|
|
7553
|
+
*
|
|
7554
|
+
* @param {FindBookingPayload} findBookingPayload
|
|
7555
|
+
* @param {*} [options] Override http request option.
|
|
7556
|
+
* @throws {RequiredError}
|
|
7557
|
+
*/
|
|
7558
|
+
bookingControllerListBookings(findBookingPayload: FindBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<FIndBookingResponseDTO> {
|
|
7559
|
+
return localVarFp.bookingControllerListBookings(findBookingPayload, options).then((request) => request(axios, basePath));
|
|
7560
|
+
},
|
|
7187
7561
|
/**
|
|
7188
7562
|
*
|
|
7189
7563
|
* @param {RejectBookingInvitePayload} rejectBookingInvitePayload
|
|
@@ -7258,6 +7632,17 @@ export class BookingApi extends BaseAPI {
|
|
|
7258
7632
|
return BookingApiFp(this.configuration).bookingControllerLeaveBooking(leaveBookingDTO, options).then((request) => request(this.axios, this.basePath));
|
|
7259
7633
|
}
|
|
7260
7634
|
|
|
7635
|
+
/**
|
|
7636
|
+
*
|
|
7637
|
+
* @param {FindBookingPayload} findBookingPayload
|
|
7638
|
+
* @param {*} [options] Override http request option.
|
|
7639
|
+
* @throws {RequiredError}
|
|
7640
|
+
* @memberof BookingApi
|
|
7641
|
+
*/
|
|
7642
|
+
public bookingControllerListBookings(findBookingPayload: FindBookingPayload, options?: RawAxiosRequestConfig) {
|
|
7643
|
+
return BookingApiFp(this.configuration).bookingControllerListBookings(findBookingPayload, options).then((request) => request(this.axios, this.basePath));
|
|
7644
|
+
}
|
|
7645
|
+
|
|
7261
7646
|
/**
|
|
7262
7647
|
*
|
|
7263
7648
|
* @param {RejectBookingInvitePayload} rejectBookingInvitePayload
|
|
@@ -7765,6 +8150,39 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
7765
8150
|
options: localVarRequestOptions,
|
|
7766
8151
|
};
|
|
7767
8152
|
},
|
|
8153
|
+
/**
|
|
8154
|
+
*
|
|
8155
|
+
* @param {*} [options] Override http request option.
|
|
8156
|
+
* @throws {RequiredError}
|
|
8157
|
+
*/
|
|
8158
|
+
businessTypeControllerListBookingDurations: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8159
|
+
const localVarPath = `/v1/business/booking-durations`;
|
|
8160
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8161
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8162
|
+
let baseOptions;
|
|
8163
|
+
if (configuration) {
|
|
8164
|
+
baseOptions = configuration.baseOptions;
|
|
8165
|
+
}
|
|
8166
|
+
|
|
8167
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8168
|
+
const localVarHeaderParameter = {} as any;
|
|
8169
|
+
const localVarQueryParameter = {} as any;
|
|
8170
|
+
|
|
8171
|
+
// authentication bearer required
|
|
8172
|
+
// http bearer authentication required
|
|
8173
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8174
|
+
|
|
8175
|
+
|
|
8176
|
+
|
|
8177
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8178
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8179
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8180
|
+
|
|
8181
|
+
return {
|
|
8182
|
+
url: toPathString(localVarUrlObj),
|
|
8183
|
+
options: localVarRequestOptions,
|
|
8184
|
+
};
|
|
8185
|
+
},
|
|
7768
8186
|
/**
|
|
7769
8187
|
*
|
|
7770
8188
|
* @param {boolean} favorite
|
|
@@ -8070,7 +8488,7 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
8070
8488
|
* @param {*} [options] Override http request option.
|
|
8071
8489
|
* @throws {RequiredError}
|
|
8072
8490
|
*/
|
|
8073
|
-
async businessControllerUpdateBusinessDetails(businessDetailsPayloadDTO: BusinessDetailsPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
8491
|
+
async businessControllerUpdateBusinessDetails(businessDetailsPayloadDTO: BusinessDetailsPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
|
|
8074
8492
|
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerUpdateBusinessDetails(businessDetailsPayloadDTO, options);
|
|
8075
8493
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8076
8494
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerUpdateBusinessDetails']?.[localVarOperationServerIndex]?.url;
|
|
@@ -8185,6 +8603,17 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
8185
8603
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerGetBusinessVenue']?.[localVarOperationServerIndex]?.url;
|
|
8186
8604
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8187
8605
|
},
|
|
8606
|
+
/**
|
|
8607
|
+
*
|
|
8608
|
+
* @param {*} [options] Override http request option.
|
|
8609
|
+
* @throws {RequiredError}
|
|
8610
|
+
*/
|
|
8611
|
+
async businessTypeControllerListBookingDurations(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingDurationListResponse>> {
|
|
8612
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListBookingDurations(options);
|
|
8613
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8614
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListBookingDurations']?.[localVarOperationServerIndex]?.url;
|
|
8615
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8616
|
+
},
|
|
8188
8617
|
/**
|
|
8189
8618
|
*
|
|
8190
8619
|
* @param {boolean} favorite
|
|
@@ -8309,7 +8738,7 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
8309
8738
|
* @param {*} [options] Override http request option.
|
|
8310
8739
|
* @throws {RequiredError}
|
|
8311
8740
|
*/
|
|
8312
|
-
businessControllerUpdateBusinessDetails(businessDetailsPayloadDTO: BusinessDetailsPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
8741
|
+
businessControllerUpdateBusinessDetails(businessDetailsPayloadDTO: BusinessDetailsPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
|
|
8313
8742
|
return localVarFp.businessControllerUpdateBusinessDetails(businessDetailsPayloadDTO, options).then((request) => request(axios, basePath));
|
|
8314
8743
|
},
|
|
8315
8744
|
/**
|
|
@@ -8394,6 +8823,14 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
8394
8823
|
businessTypeControllerGetBusinessVenue(getBusinessVenueDto: GetBusinessVenueDto, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVenueResponseDTO> {
|
|
8395
8824
|
return localVarFp.businessTypeControllerGetBusinessVenue(getBusinessVenueDto, options).then((request) => request(axios, basePath));
|
|
8396
8825
|
},
|
|
8826
|
+
/**
|
|
8827
|
+
*
|
|
8828
|
+
* @param {*} [options] Override http request option.
|
|
8829
|
+
* @throws {RequiredError}
|
|
8830
|
+
*/
|
|
8831
|
+
businessTypeControllerListBookingDurations(options?: RawAxiosRequestConfig): AxiosPromise<BookingDurationListResponse> {
|
|
8832
|
+
return localVarFp.businessTypeControllerListBookingDurations(options).then((request) => request(axios, basePath));
|
|
8833
|
+
},
|
|
8397
8834
|
/**
|
|
8398
8835
|
*
|
|
8399
8836
|
* @param {boolean} favorite
|
|
@@ -8608,6 +9045,16 @@ export class BusinessApi extends BaseAPI {
|
|
|
8608
9045
|
return BusinessApiFp(this.configuration).businessTypeControllerGetBusinessVenue(getBusinessVenueDto, options).then((request) => request(this.axios, this.basePath));
|
|
8609
9046
|
}
|
|
8610
9047
|
|
|
9048
|
+
/**
|
|
9049
|
+
*
|
|
9050
|
+
* @param {*} [options] Override http request option.
|
|
9051
|
+
* @throws {RequiredError}
|
|
9052
|
+
* @memberof BusinessApi
|
|
9053
|
+
*/
|
|
9054
|
+
public businessTypeControllerListBookingDurations(options?: RawAxiosRequestConfig) {
|
|
9055
|
+
return BusinessApiFp(this.configuration).businessTypeControllerListBookingDurations(options).then((request) => request(this.axios, this.basePath));
|
|
9056
|
+
}
|
|
9057
|
+
|
|
8611
9058
|
/**
|
|
8612
9059
|
*
|
|
8613
9060
|
* @param {boolean} favorite
|