@gooday_corp/gooday-api-client 1.4.9 → 1.5.1
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 +62 -0
- package/docs/BusinessApi.md +44 -0
- package/docs/CreateBookingPayload.md +2 -2
- package/docs/RescheduleBookingPayload.md +1 -1
- package/docs/WaitlistPayloadDTO.md +2 -2
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -13600,6 +13600,39 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
13600
13600
|
|
|
13601
13601
|
|
|
13602
13602
|
|
|
13603
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13604
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13605
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13606
|
+
|
|
13607
|
+
return {
|
|
13608
|
+
url: toPathString(localVarUrlObj),
|
|
13609
|
+
options: localVarRequestOptions,
|
|
13610
|
+
};
|
|
13611
|
+
},
|
|
13612
|
+
/**
|
|
13613
|
+
*
|
|
13614
|
+
* @param {*} [options] Override http request option.
|
|
13615
|
+
* @throws {RequiredError}
|
|
13616
|
+
*/
|
|
13617
|
+
businessTypeControllerGetVenues: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13618
|
+
const localVarPath = `/v1/business/venues/list`;
|
|
13619
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13620
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13621
|
+
let baseOptions;
|
|
13622
|
+
if (configuration) {
|
|
13623
|
+
baseOptions = configuration.baseOptions;
|
|
13624
|
+
}
|
|
13625
|
+
|
|
13626
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
13627
|
+
const localVarHeaderParameter = {} as any;
|
|
13628
|
+
const localVarQueryParameter = {} as any;
|
|
13629
|
+
|
|
13630
|
+
// authentication bearer required
|
|
13631
|
+
// http bearer authentication required
|
|
13632
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13633
|
+
|
|
13634
|
+
|
|
13635
|
+
|
|
13603
13636
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13604
13637
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13605
13638
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -14205,6 +14238,17 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
14205
14238
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerGetVenueById']?.[localVarOperationServerIndex]?.url;
|
|
14206
14239
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14207
14240
|
},
|
|
14241
|
+
/**
|
|
14242
|
+
*
|
|
14243
|
+
* @param {*} [options] Override http request option.
|
|
14244
|
+
* @throws {RequiredError}
|
|
14245
|
+
*/
|
|
14246
|
+
async businessTypeControllerGetVenues(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVenueResponseDTO>> {
|
|
14247
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerGetVenues(options);
|
|
14248
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14249
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerGetVenues']?.[localVarOperationServerIndex]?.url;
|
|
14250
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14251
|
+
},
|
|
14208
14252
|
/**
|
|
14209
14253
|
*
|
|
14210
14254
|
* @param {*} [options] Override http request option.
|
|
@@ -14502,6 +14546,14 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
14502
14546
|
businessTypeControllerGetVenueById(id: string, options?: RawAxiosRequestConfig): AxiosPromise<VenueResponseDTO> {
|
|
14503
14547
|
return localVarFp.businessTypeControllerGetVenueById(id, options).then((request) => request(axios, basePath));
|
|
14504
14548
|
},
|
|
14549
|
+
/**
|
|
14550
|
+
*
|
|
14551
|
+
* @param {*} [options] Override http request option.
|
|
14552
|
+
* @throws {RequiredError}
|
|
14553
|
+
*/
|
|
14554
|
+
businessTypeControllerGetVenues(options?: RawAxiosRequestConfig): AxiosPromise<BusinessVenueResponseDTO> {
|
|
14555
|
+
return localVarFp.businessTypeControllerGetVenues(options).then((request) => request(axios, basePath));
|
|
14556
|
+
},
|
|
14505
14557
|
/**
|
|
14506
14558
|
*
|
|
14507
14559
|
* @param {*} [options] Override http request option.
|
|
@@ -14807,6 +14859,16 @@ export class BusinessApi extends BaseAPI {
|
|
|
14807
14859
|
return BusinessApiFp(this.configuration).businessTypeControllerGetVenueById(id, options).then((request) => request(this.axios, this.basePath));
|
|
14808
14860
|
}
|
|
14809
14861
|
|
|
14862
|
+
/**
|
|
14863
|
+
*
|
|
14864
|
+
* @param {*} [options] Override http request option.
|
|
14865
|
+
* @throws {RequiredError}
|
|
14866
|
+
* @memberof BusinessApi
|
|
14867
|
+
*/
|
|
14868
|
+
public businessTypeControllerGetVenues(options?: RawAxiosRequestConfig) {
|
|
14869
|
+
return BusinessApiFp(this.configuration).businessTypeControllerGetVenues(options).then((request) => request(this.axios, this.basePath));
|
|
14870
|
+
}
|
|
14871
|
+
|
|
14810
14872
|
/**
|
|
14811
14873
|
*
|
|
14812
14874
|
* @param {*} [options] Override http request option.
|
package/docs/BusinessApi.md
CHANGED
|
@@ -23,6 +23,7 @@ All URIs are relative to *http://localhost:8080*
|
|
|
23
23
|
|[**businessTypeControllerGetBusinessVenue**](#businesstypecontrollergetbusinessvenue) | **POST** /v1/business/business-venue | |
|
|
24
24
|
|[**businessTypeControllerGetFavoriteVenueCount**](#businesstypecontrollergetfavoritevenuecount) | **GET** /v1/business/public/favorite/count/{id} | |
|
|
25
25
|
|[**businessTypeControllerGetVenueById**](#businesstypecontrollergetvenuebyid) | **POST** /v1/business/venue/{id} | |
|
|
26
|
+
|[**businessTypeControllerGetVenues**](#businesstypecontrollergetvenues) | **POST** /v1/business/venues/list | |
|
|
26
27
|
|[**businessTypeControllerHighlyRecommended**](#businesstypecontrollerhighlyrecommended) | **GET** /v1/business/highlyRecommended | |
|
|
27
28
|
|[**businessTypeControllerListAllCategories**](#businesstypecontrollerlistallcategories) | **GET** /v1/business/categories | |
|
|
28
29
|
|[**businessTypeControllerListBookingDurations**](#businesstypecontrollerlistbookingdurations) | **GET** /v1/business/booking-durations | |
|
|
@@ -979,6 +980,49 @@ No authorization required
|
|
|
979
980
|
- **Accept**: application/json
|
|
980
981
|
|
|
981
982
|
|
|
983
|
+
### HTTP response details
|
|
984
|
+
| Status code | Description | Response headers |
|
|
985
|
+
|-------------|-------------|------------------|
|
|
986
|
+
|**200** | | - |
|
|
987
|
+
|
|
988
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
989
|
+
|
|
990
|
+
# **businessTypeControllerGetVenues**
|
|
991
|
+
> BusinessVenueResponseDTO businessTypeControllerGetVenues()
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
### Example
|
|
995
|
+
|
|
996
|
+
```typescript
|
|
997
|
+
import {
|
|
998
|
+
BusinessApi,
|
|
999
|
+
Configuration
|
|
1000
|
+
} from './api';
|
|
1001
|
+
|
|
1002
|
+
const configuration = new Configuration();
|
|
1003
|
+
const apiInstance = new BusinessApi(configuration);
|
|
1004
|
+
|
|
1005
|
+
const { status, data } = await apiInstance.businessTypeControllerGetVenues();
|
|
1006
|
+
```
|
|
1007
|
+
|
|
1008
|
+
### Parameters
|
|
1009
|
+
This endpoint does not have any parameters.
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
### Return type
|
|
1013
|
+
|
|
1014
|
+
**BusinessVenueResponseDTO**
|
|
1015
|
+
|
|
1016
|
+
### Authorization
|
|
1017
|
+
|
|
1018
|
+
[bearer](../README.md#bearer)
|
|
1019
|
+
|
|
1020
|
+
### HTTP request headers
|
|
1021
|
+
|
|
1022
|
+
- **Content-Type**: Not defined
|
|
1023
|
+
- **Accept**: application/json
|
|
1024
|
+
|
|
1025
|
+
|
|
982
1026
|
### HTTP response details
|
|
983
1027
|
| Status code | Description | Response headers |
|
|
984
1028
|
|-------------|-------------|------------------|
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**title** | **string** | The title of the booking | [default to 'Default Booking Title']
|
|
9
|
-
**date** | **string** | The start date of the booking | [default to 2025-07-
|
|
10
|
-
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-07-
|
|
9
|
+
**date** | **string** | The start date of the booking | [default to 2025-07-03T11:35:54+05:30]
|
|
10
|
+
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-07-03T11:35:54+05:30]
|
|
11
11
|
**from** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**to** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**venue** | **string** | The venue of the booking | [default to undefined]
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**date** | **string** | The start date of the booking | [default to 2025-07-
|
|
8
|
+
**date** | **string** | The start date of the booking | [default to 2025-07-03T11:35:54+05:30]
|
|
9
9
|
**from** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**to** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**notes** | **string** | | [optional] [default to undefined]
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**startDate** | **string** | The start date of the waitlist | [default to 2025-07-
|
|
9
|
-
**endDate** | **string** | The end date of the waitlist | [default to 2025-07-
|
|
8
|
+
**startDate** | **string** | The start date of the waitlist | [default to 2025-07-03T11:35:54+05:30]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2025-07-03T12:35:54+05:30]
|
|
10
10
|
**venue** | **string** | The venue of the waitlist | [default to undefined]
|
|
11
11
|
**business** | **string** | The business associated with the waitlist | [default to undefined]
|
|
12
12
|
**collaborators** | [**Array<CreateWaitlistBookingCollaboratorPayload>**](CreateWaitlistBookingCollaboratorPayload.md) | The list of collaborators associated with the waitlist | [default to undefined]
|