@gooday_corp/gooday-api-client 1.2.35 → 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 +162 -33
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -390,6 +390,50 @@ 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
|
+
}
|
|
393
437
|
/**
|
|
394
438
|
*
|
|
395
439
|
* @export
|
|
@@ -753,6 +797,18 @@ export interface BookingServicePayload {
|
|
|
753
797
|
* @interface BusinessDetailsPayloadDTO
|
|
754
798
|
*/
|
|
755
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;
|
|
756
812
|
/**
|
|
757
813
|
* Business Timing
|
|
758
814
|
* @type {Array<BusinessTiming>}
|
|
@@ -1554,10 +1610,28 @@ export interface BusinessVenueDTO {
|
|
|
1554
1610
|
'socialMedia': SocialMedia;
|
|
1555
1611
|
/**
|
|
1556
1612
|
*
|
|
1557
|
-
* @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}
|
|
1558
1626
|
* @memberof BusinessVenueDTO
|
|
1559
1627
|
*/
|
|
1560
|
-
'
|
|
1628
|
+
'website'?: string;
|
|
1629
|
+
/**
|
|
1630
|
+
*
|
|
1631
|
+
* @type {string}
|
|
1632
|
+
* @memberof BusinessVenueDTO
|
|
1633
|
+
*/
|
|
1634
|
+
'name'?: string;
|
|
1561
1635
|
/**
|
|
1562
1636
|
*
|
|
1563
1637
|
* @type {string}
|
|
@@ -1609,16 +1683,34 @@ export interface BusinessVenueDetailsEntity {
|
|
|
1609
1683
|
'description': string;
|
|
1610
1684
|
/**
|
|
1611
1685
|
*
|
|
1612
|
-
* @type {
|
|
1686
|
+
* @type {string}
|
|
1613
1687
|
* @memberof BusinessVenueDetailsEntity
|
|
1614
1688
|
*/
|
|
1615
|
-
'
|
|
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;
|
|
1616
1708
|
/**
|
|
1617
1709
|
*
|
|
1618
|
-
* @type {
|
|
1710
|
+
* @type {LocationDTO}
|
|
1619
1711
|
* @memberof BusinessVenueDetailsEntity
|
|
1620
1712
|
*/
|
|
1621
|
-
'
|
|
1713
|
+
'location': LocationDTO;
|
|
1622
1714
|
/**
|
|
1623
1715
|
*
|
|
1624
1716
|
* @type {string}
|
|
@@ -1999,31 +2091,6 @@ export interface CategoryListResponse {
|
|
|
1999
2091
|
*/
|
|
2000
2092
|
'data': Array<CategoryEntity>;
|
|
2001
2093
|
}
|
|
2002
|
-
/**
|
|
2003
|
-
*
|
|
2004
|
-
* @export
|
|
2005
|
-
* @interface Contact
|
|
2006
|
-
*/
|
|
2007
|
-
export interface Contact {
|
|
2008
|
-
/**
|
|
2009
|
-
*
|
|
2010
|
-
* @type {string}
|
|
2011
|
-
* @memberof Contact
|
|
2012
|
-
*/
|
|
2013
|
-
'email'?: string;
|
|
2014
|
-
/**
|
|
2015
|
-
*
|
|
2016
|
-
* @type {string}
|
|
2017
|
-
* @memberof Contact
|
|
2018
|
-
*/
|
|
2019
|
-
'mobile'?: string;
|
|
2020
|
-
/**
|
|
2021
|
-
*
|
|
2022
|
-
* @type {string}
|
|
2023
|
-
* @memberof Contact
|
|
2024
|
-
*/
|
|
2025
|
-
'website'?: string;
|
|
2026
|
-
}
|
|
2027
2094
|
/**
|
|
2028
2095
|
*
|
|
2029
2096
|
* @export
|
|
@@ -8083,6 +8150,39 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8083
8150
|
options: localVarRequestOptions,
|
|
8084
8151
|
};
|
|
8085
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
|
+
},
|
|
8086
8186
|
/**
|
|
8087
8187
|
*
|
|
8088
8188
|
* @param {boolean} favorite
|
|
@@ -8388,7 +8488,7 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
8388
8488
|
* @param {*} [options] Override http request option.
|
|
8389
8489
|
* @throws {RequiredError}
|
|
8390
8490
|
*/
|
|
8391
|
-
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>> {
|
|
8392
8492
|
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerUpdateBusinessDetails(businessDetailsPayloadDTO, options);
|
|
8393
8493
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8394
8494
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerUpdateBusinessDetails']?.[localVarOperationServerIndex]?.url;
|
|
@@ -8503,6 +8603,17 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
8503
8603
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerGetBusinessVenue']?.[localVarOperationServerIndex]?.url;
|
|
8504
8604
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8505
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
|
+
},
|
|
8506
8617
|
/**
|
|
8507
8618
|
*
|
|
8508
8619
|
* @param {boolean} favorite
|
|
@@ -8627,7 +8738,7 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
8627
8738
|
* @param {*} [options] Override http request option.
|
|
8628
8739
|
* @throws {RequiredError}
|
|
8629
8740
|
*/
|
|
8630
|
-
businessControllerUpdateBusinessDetails(businessDetailsPayloadDTO: BusinessDetailsPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
8741
|
+
businessControllerUpdateBusinessDetails(businessDetailsPayloadDTO: BusinessDetailsPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
|
|
8631
8742
|
return localVarFp.businessControllerUpdateBusinessDetails(businessDetailsPayloadDTO, options).then((request) => request(axios, basePath));
|
|
8632
8743
|
},
|
|
8633
8744
|
/**
|
|
@@ -8712,6 +8823,14 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
8712
8823
|
businessTypeControllerGetBusinessVenue(getBusinessVenueDto: GetBusinessVenueDto, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVenueResponseDTO> {
|
|
8713
8824
|
return localVarFp.businessTypeControllerGetBusinessVenue(getBusinessVenueDto, options).then((request) => request(axios, basePath));
|
|
8714
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
|
+
},
|
|
8715
8834
|
/**
|
|
8716
8835
|
*
|
|
8717
8836
|
* @param {boolean} favorite
|
|
@@ -8926,6 +9045,16 @@ export class BusinessApi extends BaseAPI {
|
|
|
8926
9045
|
return BusinessApiFp(this.configuration).businessTypeControllerGetBusinessVenue(getBusinessVenueDto, options).then((request) => request(this.axios, this.basePath));
|
|
8927
9046
|
}
|
|
8928
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
|
+
|
|
8929
9058
|
/**
|
|
8930
9059
|
*
|
|
8931
9060
|
* @param {boolean} favorite
|