@gooday_corp/gooday-api-client 4.6.9 → 4.7.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 +85 -0
- package/docs/BusinessApi.md +57 -0
- package/docs/CreateBookingPayload.md +2 -2
- package/docs/CreateRSVPEventBookingPayload.md +2 -2
- package/docs/CreateWalkInBookingPayload.md +2 -2
- package/docs/PaymentDetailsPayload.md +2 -2
- package/docs/RescheduleBookingPayload.md +1 -1
- package/docs/WaitlistPayloadDTO.md +2 -2
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -9097,6 +9097,54 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9097
9097
|
options: localVarRequestOptions,
|
|
9098
9098
|
};
|
|
9099
9099
|
},
|
|
9100
|
+
/**
|
|
9101
|
+
*
|
|
9102
|
+
* @param {number} page
|
|
9103
|
+
* @param {number} pageSize
|
|
9104
|
+
* @param {string} [query]
|
|
9105
|
+
* @param {*} [options] Override http request option.
|
|
9106
|
+
* @throws {RequiredError}
|
|
9107
|
+
*/
|
|
9108
|
+
businessControllerFindBusiness: async (page: number, pageSize: number, query?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9109
|
+
// verify required parameter 'page' is not null or undefined
|
|
9110
|
+
assertParamExists('businessControllerFindBusiness', 'page', page)
|
|
9111
|
+
// verify required parameter 'pageSize' is not null or undefined
|
|
9112
|
+
assertParamExists('businessControllerFindBusiness', 'pageSize', pageSize)
|
|
9113
|
+
const localVarPath = `/v1/business/hosts`;
|
|
9114
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9115
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9116
|
+
let baseOptions;
|
|
9117
|
+
if (configuration) {
|
|
9118
|
+
baseOptions = configuration.baseOptions;
|
|
9119
|
+
}
|
|
9120
|
+
|
|
9121
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9122
|
+
const localVarHeaderParameter = {} as any;
|
|
9123
|
+
const localVarQueryParameter = {} as any;
|
|
9124
|
+
|
|
9125
|
+
if (query !== undefined) {
|
|
9126
|
+
localVarQueryParameter['query'] = query;
|
|
9127
|
+
}
|
|
9128
|
+
|
|
9129
|
+
if (page !== undefined) {
|
|
9130
|
+
localVarQueryParameter['page'] = page;
|
|
9131
|
+
}
|
|
9132
|
+
|
|
9133
|
+
if (pageSize !== undefined) {
|
|
9134
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
9135
|
+
}
|
|
9136
|
+
|
|
9137
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
9138
|
+
|
|
9139
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9140
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9141
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9142
|
+
|
|
9143
|
+
return {
|
|
9144
|
+
url: toPathString(localVarUrlObj),
|
|
9145
|
+
options: localVarRequestOptions,
|
|
9146
|
+
};
|
|
9147
|
+
},
|
|
9100
9148
|
/**
|
|
9101
9149
|
*
|
|
9102
9150
|
* @param {*} [options] Override http request option.
|
|
@@ -10210,6 +10258,20 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
10210
10258
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerBusinessOnboarding']?.[localVarOperationServerIndex]?.url;
|
|
10211
10259
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10212
10260
|
},
|
|
10261
|
+
/**
|
|
10262
|
+
*
|
|
10263
|
+
* @param {number} page
|
|
10264
|
+
* @param {number} pageSize
|
|
10265
|
+
* @param {string} [query]
|
|
10266
|
+
* @param {*} [options] Override http request option.
|
|
10267
|
+
* @throws {RequiredError}
|
|
10268
|
+
*/
|
|
10269
|
+
async businessControllerFindBusiness(page: number, pageSize: number, query?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserEntity>>> {
|
|
10270
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerFindBusiness(page, pageSize, query, options);
|
|
10271
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10272
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerFindBusiness']?.[localVarOperationServerIndex]?.url;
|
|
10273
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10274
|
+
},
|
|
10213
10275
|
/**
|
|
10214
10276
|
*
|
|
10215
10277
|
* @param {*} [options] Override http request option.
|
|
@@ -10593,6 +10655,17 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
10593
10655
|
businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
|
|
10594
10656
|
return localVarFp.businessControllerBusinessOnboarding(businessOnBoardingDTO, options).then((request) => request(axios, basePath));
|
|
10595
10657
|
},
|
|
10658
|
+
/**
|
|
10659
|
+
*
|
|
10660
|
+
* @param {number} page
|
|
10661
|
+
* @param {number} pageSize
|
|
10662
|
+
* @param {string} [query]
|
|
10663
|
+
* @param {*} [options] Override http request option.
|
|
10664
|
+
* @throws {RequiredError}
|
|
10665
|
+
*/
|
|
10666
|
+
businessControllerFindBusiness(page: number, pageSize: number, query?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserEntity>> {
|
|
10667
|
+
return localVarFp.businessControllerFindBusiness(page, pageSize, query, options).then((request) => request(axios, basePath));
|
|
10668
|
+
},
|
|
10596
10669
|
/**
|
|
10597
10670
|
*
|
|
10598
10671
|
* @param {*} [options] Override http request option.
|
|
@@ -10886,6 +10959,18 @@ export class BusinessApi extends BaseAPI {
|
|
|
10886
10959
|
return BusinessApiFp(this.configuration).businessControllerBusinessOnboarding(businessOnBoardingDTO, options).then((request) => request(this.axios, this.basePath));
|
|
10887
10960
|
}
|
|
10888
10961
|
|
|
10962
|
+
/**
|
|
10963
|
+
*
|
|
10964
|
+
* @param {number} page
|
|
10965
|
+
* @param {number} pageSize
|
|
10966
|
+
* @param {string} [query]
|
|
10967
|
+
* @param {*} [options] Override http request option.
|
|
10968
|
+
* @throws {RequiredError}
|
|
10969
|
+
*/
|
|
10970
|
+
public businessControllerFindBusiness(page: number, pageSize: number, query?: string, options?: RawAxiosRequestConfig) {
|
|
10971
|
+
return BusinessApiFp(this.configuration).businessControllerFindBusiness(page, pageSize, query, options).then((request) => request(this.axios, this.basePath));
|
|
10972
|
+
}
|
|
10973
|
+
|
|
10889
10974
|
/**
|
|
10890
10975
|
*
|
|
10891
10976
|
* @param {*} [options] Override http request option.
|
package/docs/BusinessApi.md
CHANGED
|
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost:8080*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**businessControllerBusinessBookingFeeUpdate**](#businesscontrollerbusinessbookingfeeupdate) | **PUT** /v1/business/booking/fee | |
|
|
8
8
|
|[**businessControllerBusinessOnboarding**](#businesscontrollerbusinessonboarding) | **POST** /v1/business/onboarding | |
|
|
9
|
+
|[**businessControllerFindBusiness**](#businesscontrollerfindbusiness) | **GET** /v1/business/hosts | |
|
|
9
10
|
|[**businessControllerGetMe**](#businesscontrollergetme) | **GET** /v1/business/me | |
|
|
10
11
|
|[**businessControllerListBusinesses**](#businesscontrollerlistbusinesses) | **GET** /v1/business | |
|
|
11
12
|
|[**businessControllerUpdateBusinessDetails**](#businesscontrollerupdatebusinessdetails) | **PUT** /v1/business/business-details | |
|
|
@@ -140,6 +141,62 @@ const { status, data } = await apiInstance.businessControllerBusinessOnboarding(
|
|
|
140
141
|
|
|
141
142
|
[[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)
|
|
142
143
|
|
|
144
|
+
# **businessControllerFindBusiness**
|
|
145
|
+
> Array<UserEntity> businessControllerFindBusiness()
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
### Example
|
|
149
|
+
|
|
150
|
+
```typescript
|
|
151
|
+
import {
|
|
152
|
+
BusinessApi,
|
|
153
|
+
Configuration
|
|
154
|
+
} from './api';
|
|
155
|
+
|
|
156
|
+
const configuration = new Configuration();
|
|
157
|
+
const apiInstance = new BusinessApi(configuration);
|
|
158
|
+
|
|
159
|
+
let page: number; // (default to undefined)
|
|
160
|
+
let pageSize: number; // (default to undefined)
|
|
161
|
+
let query: string; // (optional) (default to undefined)
|
|
162
|
+
|
|
163
|
+
const { status, data } = await apiInstance.businessControllerFindBusiness(
|
|
164
|
+
page,
|
|
165
|
+
pageSize,
|
|
166
|
+
query
|
|
167
|
+
);
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
### Parameters
|
|
171
|
+
|
|
172
|
+
|Name | Type | Description | Notes|
|
|
173
|
+
|------------- | ------------- | ------------- | -------------|
|
|
174
|
+
| **page** | [**number**] | | defaults to undefined|
|
|
175
|
+
| **pageSize** | [**number**] | | defaults to undefined|
|
|
176
|
+
| **query** | [**string**] | | (optional) defaults to undefined|
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
### Return type
|
|
180
|
+
|
|
181
|
+
**Array<UserEntity>**
|
|
182
|
+
|
|
183
|
+
### Authorization
|
|
184
|
+
|
|
185
|
+
No authorization required
|
|
186
|
+
|
|
187
|
+
### HTTP request headers
|
|
188
|
+
|
|
189
|
+
- **Content-Type**: Not defined
|
|
190
|
+
- **Accept**: application/json
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
### HTTP response details
|
|
194
|
+
| Status code | Description | Response headers |
|
|
195
|
+
|-------------|-------------|------------------|
|
|
196
|
+
|**200** | | - |
|
|
197
|
+
|
|
198
|
+
[[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)
|
|
199
|
+
|
|
143
200
|
# **businessControllerGetMe**
|
|
144
201
|
> BusinessOnBoardingResponseDTO businessControllerGetMe()
|
|
145
202
|
|
|
@@ -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 2026-03-
|
|
10
|
-
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2026-03-
|
|
9
|
+
**date** | **string** | The start date of the booking | [default to 2026-03-03T10:56:17Z]
|
|
10
|
+
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2026-03-03T10:56:17Z]
|
|
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]
|
|
@@ -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
|
-
**startDate** | **string** | The start date of the booking | [default to 2026-03-
|
|
10
|
-
**endDate** | **string** | The start date of the booking | [default to 2026-03-
|
|
9
|
+
**startDate** | **string** | The start date of the booking | [default to 2026-03-03T10:56:17Z]
|
|
10
|
+
**endDate** | **string** | The start date of the booking | [default to 2026-03-03T10:56:17Z]
|
|
11
11
|
**note** | **string** | Notes attached with booking | [optional] [default to undefined]
|
|
12
12
|
**occasion** | **string** | Occasion id | [optional] [default to undefined]
|
|
13
13
|
**calendar** | **Array<string>** | Calendar attached with booking | [optional] [default to undefined]
|
|
@@ -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
|
-
**startDate** | **string** | The start date of the booking | [default to 2026-03-
|
|
10
|
-
**endDate** | **string** | The start date of the booking | [default to 2026-03-
|
|
9
|
+
**startDate** | **string** | The start date of the booking | [default to 2026-03-03T10:56:17Z]
|
|
10
|
+
**endDate** | **string** | The start date of the booking | [default to 2026-03-03T10:56:17Z]
|
|
11
11
|
**note** | **string** | Notes attached with booking | [optional] [default to undefined]
|
|
12
12
|
**occasion** | **string** | Occasion id | [optional] [default to undefined]
|
|
13
13
|
**calendar** | **Array<string>** | Calendar attached with booking | [optional] [default to undefined]
|
|
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**whatsOnId** | **string** | Event ID | [optional] [default to undefined]
|
|
9
9
|
**serviceId** | **string** | Service ID | [optional] [default to undefined]
|
|
10
10
|
**rsvpId** | **string** | RSVP ID | [optional] [default to undefined]
|
|
11
|
-
**startDate** | **string** | The start date of the booking | [optional] [default to 2026-03-
|
|
12
|
-
**endDate** | **string** | The end date of the booking | [optional] [default to 2026-03-
|
|
11
|
+
**startDate** | **string** | The start date of the booking | [optional] [default to 2026-03-03T10:56:15Z]
|
|
12
|
+
**endDate** | **string** | The end date of the booking | [optional] [default to 2026-03-03T10:56:15Z]
|
|
13
13
|
**discountId** | **string** | Discount ID | [optional] [default to undefined]
|
|
14
14
|
**selectedStaff** | **string** | Staff ID | [optional] [default to undefined]
|
|
15
15
|
**quantity** | **number** | | [optional] [default to 0]
|
|
@@ -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 2026-03-
|
|
8
|
+
**date** | **string** | The start date of the booking | [default to 2026-03-03T10:56:17Z]
|
|
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 2026-03-
|
|
9
|
-
**endDate** | **string** | The end date of the waitlist | [default to 2026-03-
|
|
8
|
+
**startDate** | **string** | The start date of the waitlist | [default to 2026-03-03T10:56:17Z]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2026-03-03T11:56:17Z]
|
|
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]
|