@gooday_corp/gooday-api-client 1.4.9 → 1.5.0

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 CHANGED
@@ -13600,6 +13600,35 @@ 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
+
13631
+
13603
13632
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13604
13633
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13605
13634
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -14205,6 +14234,17 @@ export const BusinessApiFp = function(configuration?: Configuration) {
14205
14234
  const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerGetVenueById']?.[localVarOperationServerIndex]?.url;
14206
14235
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14207
14236
  },
14237
+ /**
14238
+ *
14239
+ * @param {*} [options] Override http request option.
14240
+ * @throws {RequiredError}
14241
+ */
14242
+ async businessTypeControllerGetVenues(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVenueResponseDTO>> {
14243
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerGetVenues(options);
14244
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14245
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerGetVenues']?.[localVarOperationServerIndex]?.url;
14246
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14247
+ },
14208
14248
  /**
14209
14249
  *
14210
14250
  * @param {*} [options] Override http request option.
@@ -14502,6 +14542,14 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
14502
14542
  businessTypeControllerGetVenueById(id: string, options?: RawAxiosRequestConfig): AxiosPromise<VenueResponseDTO> {
14503
14543
  return localVarFp.businessTypeControllerGetVenueById(id, options).then((request) => request(axios, basePath));
14504
14544
  },
14545
+ /**
14546
+ *
14547
+ * @param {*} [options] Override http request option.
14548
+ * @throws {RequiredError}
14549
+ */
14550
+ businessTypeControllerGetVenues(options?: RawAxiosRequestConfig): AxiosPromise<BusinessVenueResponseDTO> {
14551
+ return localVarFp.businessTypeControllerGetVenues(options).then((request) => request(axios, basePath));
14552
+ },
14505
14553
  /**
14506
14554
  *
14507
14555
  * @param {*} [options] Override http request option.
@@ -14807,6 +14855,16 @@ export class BusinessApi extends BaseAPI {
14807
14855
  return BusinessApiFp(this.configuration).businessTypeControllerGetVenueById(id, options).then((request) => request(this.axios, this.basePath));
14808
14856
  }
14809
14857
 
14858
+ /**
14859
+ *
14860
+ * @param {*} [options] Override http request option.
14861
+ * @throws {RequiredError}
14862
+ * @memberof BusinessApi
14863
+ */
14864
+ public businessTypeControllerGetVenues(options?: RawAxiosRequestConfig) {
14865
+ return BusinessApiFp(this.configuration).businessTypeControllerGetVenues(options).then((request) => request(this.axios, this.basePath));
14866
+ }
14867
+
14810
14868
  /**
14811
14869
  *
14812
14870
  * @param {*} [options] Override http request option.
@@ -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
+ No authorization required
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-02T15:03:40Z]
10
- **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-07-02T15:03:40Z]
9
+ **date** | **string** | The start date of the booking | [default to 2025-07-03T11:10:08+05:30]
10
+ **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-07-03T11:10:08+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-02T15:03:40Z]
8
+ **date** | **string** | The start date of the booking | [default to 2025-07-03T11:10:08+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-02T15:03:40Z]
9
- **endDate** | **string** | The end date of the waitlist | [default to 2025-07-02T16:03:40Z]
8
+ **startDate** | **string** | The start date of the waitlist | [default to 2025-07-03T11:10:08+05:30]
9
+ **endDate** | **string** | The end date of the waitlist | [default to 2025-07-03T12:10:08+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&lt;CreateWaitlistBookingCollaboratorPayload&gt;**](CreateWaitlistBookingCollaboratorPayload.md) | The list of collaborators associated with the waitlist | [default to undefined]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.4.9",
3
+ "version": "1.5.0",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},