@gooday_corp/gooday-api-client 4.6.5 → 4.6.6
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/.openapi-generator/FILES +1 -0
- package/api.ts +94 -0
- package/docs/BusinessApi.md +51 -0
- package/docs/BusinessTypeResponse.md +22 -0
- package/docs/ContactsPayloadDTO.md +2 -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/.openapi-generator/FILES
CHANGED
package/api.ts
CHANGED
|
@@ -2400,6 +2400,25 @@ export interface BusinessTypeListResponse {
|
|
|
2400
2400
|
*/
|
|
2401
2401
|
'data': Array<BusinessTypeEntity>;
|
|
2402
2402
|
}
|
|
2403
|
+
/**
|
|
2404
|
+
*
|
|
2405
|
+
* @export
|
|
2406
|
+
* @interface BusinessTypeResponse
|
|
2407
|
+
*/
|
|
2408
|
+
export interface BusinessTypeResponse {
|
|
2409
|
+
/**
|
|
2410
|
+
* statusCode
|
|
2411
|
+
* @type {number}
|
|
2412
|
+
* @memberof BusinessTypeResponse
|
|
2413
|
+
*/
|
|
2414
|
+
'statusCode': number;
|
|
2415
|
+
/**
|
|
2416
|
+
* businessType
|
|
2417
|
+
* @type {BusinessTypeEntity}
|
|
2418
|
+
* @memberof BusinessTypeResponse
|
|
2419
|
+
*/
|
|
2420
|
+
'data': BusinessTypeEntity;
|
|
2421
|
+
}
|
|
2403
2422
|
/**
|
|
2404
2423
|
*
|
|
2405
2424
|
* @export
|
|
@@ -3778,6 +3797,12 @@ export interface ContactsPayloadDTO {
|
|
|
3778
3797
|
* @memberof ContactsPayloadDTO
|
|
3779
3798
|
*/
|
|
3780
3799
|
'profile'?: string;
|
|
3800
|
+
/**
|
|
3801
|
+
* country code
|
|
3802
|
+
* @type {string}
|
|
3803
|
+
* @memberof ContactsPayloadDTO
|
|
3804
|
+
*/
|
|
3805
|
+
'code'?: string;
|
|
3781
3806
|
}
|
|
3782
3807
|
/**
|
|
3783
3808
|
*
|
|
@@ -17604,6 +17629,43 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
17604
17629
|
options: localVarRequestOptions,
|
|
17605
17630
|
};
|
|
17606
17631
|
},
|
|
17632
|
+
/**
|
|
17633
|
+
*
|
|
17634
|
+
* @param {string} id ID of the business type
|
|
17635
|
+
* @param {*} [options] Override http request option.
|
|
17636
|
+
* @throws {RequiredError}
|
|
17637
|
+
*/
|
|
17638
|
+
businessTypeControllerGetBusinessTypeById: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17639
|
+
// verify required parameter 'id' is not null or undefined
|
|
17640
|
+
assertParamExists('businessTypeControllerGetBusinessTypeById', 'id', id)
|
|
17641
|
+
const localVarPath = `/v1/business/type/{id}`
|
|
17642
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
17643
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17644
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17645
|
+
let baseOptions;
|
|
17646
|
+
if (configuration) {
|
|
17647
|
+
baseOptions = configuration.baseOptions;
|
|
17648
|
+
}
|
|
17649
|
+
|
|
17650
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17651
|
+
const localVarHeaderParameter = {} as any;
|
|
17652
|
+
const localVarQueryParameter = {} as any;
|
|
17653
|
+
|
|
17654
|
+
// authentication bearer required
|
|
17655
|
+
// http bearer authentication required
|
|
17656
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
17657
|
+
|
|
17658
|
+
|
|
17659
|
+
|
|
17660
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17661
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17662
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17663
|
+
|
|
17664
|
+
return {
|
|
17665
|
+
url: toPathString(localVarUrlObj),
|
|
17666
|
+
options: localVarRequestOptions,
|
|
17667
|
+
};
|
|
17668
|
+
},
|
|
17607
17669
|
/**
|
|
17608
17670
|
*
|
|
17609
17671
|
* @param {GetBusinessVenueDto} getBusinessVenueDto
|
|
@@ -18352,6 +18414,18 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
18352
18414
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerGetAllVenue']?.[localVarOperationServerIndex]?.url;
|
|
18353
18415
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18354
18416
|
},
|
|
18417
|
+
/**
|
|
18418
|
+
*
|
|
18419
|
+
* @param {string} id ID of the business type
|
|
18420
|
+
* @param {*} [options] Override http request option.
|
|
18421
|
+
* @throws {RequiredError}
|
|
18422
|
+
*/
|
|
18423
|
+
async businessTypeControllerGetBusinessTypeById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessTypeResponse>> {
|
|
18424
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerGetBusinessTypeById(id, options);
|
|
18425
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18426
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerGetBusinessTypeById']?.[localVarOperationServerIndex]?.url;
|
|
18427
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18428
|
+
},
|
|
18355
18429
|
/**
|
|
18356
18430
|
*
|
|
18357
18431
|
* @param {GetBusinessVenueDto} getBusinessVenueDto
|
|
@@ -18706,6 +18780,15 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
18706
18780
|
businessTypeControllerGetAllVenue(getAllVenueDto: GetAllVenueDto, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVenueResponseDTO> {
|
|
18707
18781
|
return localVarFp.businessTypeControllerGetAllVenue(getAllVenueDto, options).then((request) => request(axios, basePath));
|
|
18708
18782
|
},
|
|
18783
|
+
/**
|
|
18784
|
+
*
|
|
18785
|
+
* @param {string} id ID of the business type
|
|
18786
|
+
* @param {*} [options] Override http request option.
|
|
18787
|
+
* @throws {RequiredError}
|
|
18788
|
+
*/
|
|
18789
|
+
businessTypeControllerGetBusinessTypeById(id: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessTypeResponse> {
|
|
18790
|
+
return localVarFp.businessTypeControllerGetBusinessTypeById(id, options).then((request) => request(axios, basePath));
|
|
18791
|
+
},
|
|
18709
18792
|
/**
|
|
18710
18793
|
*
|
|
18711
18794
|
* @param {GetBusinessVenueDto} getBusinessVenueDto
|
|
@@ -19058,6 +19141,17 @@ export class BusinessApi extends BaseAPI {
|
|
|
19058
19141
|
return BusinessApiFp(this.configuration).businessTypeControllerGetAllVenue(getAllVenueDto, options).then((request) => request(this.axios, this.basePath));
|
|
19059
19142
|
}
|
|
19060
19143
|
|
|
19144
|
+
/**
|
|
19145
|
+
*
|
|
19146
|
+
* @param {string} id ID of the business type
|
|
19147
|
+
* @param {*} [options] Override http request option.
|
|
19148
|
+
* @throws {RequiredError}
|
|
19149
|
+
* @memberof BusinessApi
|
|
19150
|
+
*/
|
|
19151
|
+
public businessTypeControllerGetBusinessTypeById(id: string, options?: RawAxiosRequestConfig) {
|
|
19152
|
+
return BusinessApiFp(this.configuration).businessTypeControllerGetBusinessTypeById(id, options).then((request) => request(this.axios, this.basePath));
|
|
19153
|
+
}
|
|
19154
|
+
|
|
19061
19155
|
/**
|
|
19062
19156
|
*
|
|
19063
19157
|
* @param {GetBusinessVenueDto} getBusinessVenueDto
|
package/docs/BusinessApi.md
CHANGED
|
@@ -24,6 +24,7 @@ All URIs are relative to *http://localhost:8080*
|
|
|
24
24
|
|[**businessTypeControllerFindFavoriteBusinessVenueCount**](#businesstypecontrollerfindfavoritebusinessvenuecount) | **GET** /v1/business/favorite/count/{id} | |
|
|
25
25
|
|[**businessTypeControllerFindFriendsFavoriteBusinessVenueList**](#businesstypecontrollerfindfriendsfavoritebusinessvenuelist) | **POST** /v1/business/friends/favorite | |
|
|
26
26
|
|[**businessTypeControllerGetAllVenue**](#businesstypecontrollergetallvenue) | **POST** /v1/business/venues | |
|
|
27
|
+
|[**businessTypeControllerGetBusinessTypeById**](#businesstypecontrollergetbusinesstypebyid) | **GET** /v1/business/type/{id} | |
|
|
27
28
|
|[**businessTypeControllerGetBusinessVenue**](#businesstypecontrollergetbusinessvenue) | **POST** /v1/business/business-venue | |
|
|
28
29
|
|[**businessTypeControllerGetFavoriteVenueCount**](#businesstypecontrollergetfavoritevenuecount) | **GET** /v1/business/public/favorite/count/{id} | |
|
|
29
30
|
|[**businessTypeControllerGetVenueById**](#businesstypecontrollergetvenuebyid) | **POST** /v1/business/venue/{id} | |
|
|
@@ -1033,6 +1034,56 @@ No authorization required
|
|
|
1033
1034
|
- **Accept**: application/json
|
|
1034
1035
|
|
|
1035
1036
|
|
|
1037
|
+
### HTTP response details
|
|
1038
|
+
| Status code | Description | Response headers |
|
|
1039
|
+
|-------------|-------------|------------------|
|
|
1040
|
+
|**200** | | - |
|
|
1041
|
+
|
|
1042
|
+
[[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)
|
|
1043
|
+
|
|
1044
|
+
# **businessTypeControllerGetBusinessTypeById**
|
|
1045
|
+
> BusinessTypeResponse businessTypeControllerGetBusinessTypeById()
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
### Example
|
|
1049
|
+
|
|
1050
|
+
```typescript
|
|
1051
|
+
import {
|
|
1052
|
+
BusinessApi,
|
|
1053
|
+
Configuration
|
|
1054
|
+
} from './api';
|
|
1055
|
+
|
|
1056
|
+
const configuration = new Configuration();
|
|
1057
|
+
const apiInstance = new BusinessApi(configuration);
|
|
1058
|
+
|
|
1059
|
+
let id: string; //ID of the business type (default to undefined)
|
|
1060
|
+
|
|
1061
|
+
const { status, data } = await apiInstance.businessTypeControllerGetBusinessTypeById(
|
|
1062
|
+
id
|
|
1063
|
+
);
|
|
1064
|
+
```
|
|
1065
|
+
|
|
1066
|
+
### Parameters
|
|
1067
|
+
|
|
1068
|
+
|Name | Type | Description | Notes|
|
|
1069
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1070
|
+
| **id** | [**string**] | ID of the business type | defaults to undefined|
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
### Return type
|
|
1074
|
+
|
|
1075
|
+
**BusinessTypeResponse**
|
|
1076
|
+
|
|
1077
|
+
### Authorization
|
|
1078
|
+
|
|
1079
|
+
[bearer](../README.md#bearer)
|
|
1080
|
+
|
|
1081
|
+
### HTTP request headers
|
|
1082
|
+
|
|
1083
|
+
- **Content-Type**: Not defined
|
|
1084
|
+
- **Accept**: application/json
|
|
1085
|
+
|
|
1086
|
+
|
|
1036
1087
|
### HTTP response details
|
|
1037
1088
|
| Status code | Description | Response headers |
|
|
1038
1089
|
|-------------|-------------|------------------|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# BusinessTypeResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**statusCode** | **number** | statusCode | [default to undefined]
|
|
9
|
+
**data** | [**BusinessTypeEntity**](BusinessTypeEntity.md) | businessType | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BusinessTypeResponse } from './api';
|
|
15
|
+
|
|
16
|
+
const instance: BusinessTypeResponse = {
|
|
17
|
+
statusCode,
|
|
18
|
+
data,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**email** | **string** | Email address of the user | [optional] [default to undefined]
|
|
11
11
|
**mobileNumber** | **string** | Phone No | [optional] [default to undefined]
|
|
12
12
|
**profile** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**code** | **string** | country code | [optional] [default to undefined]
|
|
13
14
|
|
|
14
15
|
## Example
|
|
15
16
|
|
|
@@ -22,6 +23,7 @@ const instance: ContactsPayloadDTO = {
|
|
|
22
23
|
email,
|
|
23
24
|
mobileNumber,
|
|
24
25
|
profile,
|
|
26
|
+
code,
|
|
25
27
|
};
|
|
26
28
|
```
|
|
27
29
|
|
|
@@ -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-04-
|
|
10
|
-
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2026-04-
|
|
9
|
+
**date** | **string** | The start date of the booking | [default to 2026-04-16T14:33:43Z]
|
|
10
|
+
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2026-04-16T14:33:43Z]
|
|
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-04-
|
|
10
|
-
**endDate** | **string** | The start date of the booking | [default to 2026-04-
|
|
9
|
+
**startDate** | **string** | The start date of the booking | [default to 2026-04-16T14:33:43Z]
|
|
10
|
+
**endDate** | **string** | The start date of the booking | [default to 2026-04-16T14:33:43Z]
|
|
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-04-
|
|
10
|
-
**endDate** | **string** | The start date of the booking | [default to 2026-04-
|
|
9
|
+
**startDate** | **string** | The start date of the booking | [default to 2026-04-16T14:33:43Z]
|
|
10
|
+
**endDate** | **string** | The start date of the booking | [default to 2026-04-16T14:33:43Z]
|
|
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-04-
|
|
12
|
-
**endDate** | **string** | The end date of the booking | [optional] [default to 2026-04-
|
|
11
|
+
**startDate** | **string** | The start date of the booking | [optional] [default to 2026-04-16T14:33:42Z]
|
|
12
|
+
**endDate** | **string** | The end date of the booking | [optional] [default to 2026-04-16T14:33:42Z]
|
|
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-04-
|
|
8
|
+
**date** | **string** | The start date of the booking | [default to 2026-04-16T14:33:43Z]
|
|
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-04-
|
|
9
|
-
**endDate** | **string** | The end date of the waitlist | [default to 2026-04-
|
|
8
|
+
**startDate** | **string** | The start date of the waitlist | [default to 2026-04-16T14:33:43Z]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2026-04-16T15:33:43Z]
|
|
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]
|