@gooday_corp/gooday-api-client 4.5.82 → 4.5.84
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 +22 -17
- package/docs/AcceptBookingInvitePayload.md +3 -1
- package/docs/BusinessApi.md +2 -9
- 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/PromoCodeResponseDTO.md +2 -0
- package/docs/RSVPEventMetaDataDTO.md +2 -0
- package/docs/RejectBookingInvitePayload.md +3 -1
- package/docs/RescheduleBookingPayload.md +1 -1
- package/docs/WaitlistPayloadDTO.md +2 -2
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -49,7 +49,11 @@ export interface AcceptBookingInvitePayload {
|
|
|
49
49
|
/**
|
|
50
50
|
* ID of the booking
|
|
51
51
|
*/
|
|
52
|
-
'bookingId'
|
|
52
|
+
'bookingId'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* ID of the rsvp
|
|
55
|
+
*/
|
|
56
|
+
'rsvpId'?: string;
|
|
53
57
|
}
|
|
54
58
|
export interface AcceptCollaborateInvitePayload {
|
|
55
59
|
/**
|
|
@@ -3952,6 +3956,10 @@ export interface PromoCodeResponseDTO {
|
|
|
3952
3956
|
* Discount ID
|
|
3953
3957
|
*/
|
|
3954
3958
|
'message': string;
|
|
3959
|
+
/**
|
|
3960
|
+
* Discount
|
|
3961
|
+
*/
|
|
3962
|
+
'data': string;
|
|
3955
3963
|
}
|
|
3956
3964
|
export interface RSVPEvenPayloadDTO {
|
|
3957
3965
|
/**
|
|
@@ -4221,6 +4229,7 @@ export interface RSVPEventMetaDataDTO {
|
|
|
4221
4229
|
'firstName': string;
|
|
4222
4230
|
'lastName': string;
|
|
4223
4231
|
'mobileNumber': string;
|
|
4232
|
+
'code': string;
|
|
4224
4233
|
}
|
|
4225
4234
|
export interface RSVPEventResponse {
|
|
4226
4235
|
'count': number;
|
|
@@ -4266,7 +4275,11 @@ export interface RejectBookingInvitePayload {
|
|
|
4266
4275
|
/**
|
|
4267
4276
|
* ID of the booking
|
|
4268
4277
|
*/
|
|
4269
|
-
'bookingId'
|
|
4278
|
+
'bookingId'?: string;
|
|
4279
|
+
/**
|
|
4280
|
+
* ID of the rsvp
|
|
4281
|
+
*/
|
|
4282
|
+
'rsvpId'?: string;
|
|
4270
4283
|
}
|
|
4271
4284
|
export interface RejectCollaborateInvitePayload {
|
|
4272
4285
|
/**
|
|
@@ -10012,11 +10025,10 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
10012
10025
|
},
|
|
10013
10026
|
/**
|
|
10014
10027
|
*
|
|
10015
|
-
* @param {string} [id] Unique identifier for the category
|
|
10016
10028
|
* @param {*} [options] Override http request option.
|
|
10017
10029
|
* @throws {RequiredError}
|
|
10018
10030
|
*/
|
|
10019
|
-
businessTypeControllerListAllCategories: async (
|
|
10031
|
+
businessTypeControllerListAllCategories: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10020
10032
|
const localVarPath = `/v1/business/categories`;
|
|
10021
10033
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10022
10034
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -10033,10 +10045,6 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
10033
10045
|
// http bearer authentication required
|
|
10034
10046
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10035
10047
|
|
|
10036
|
-
if (id !== undefined) {
|
|
10037
|
-
localVarQueryParameter['id'] = id;
|
|
10038
|
-
}
|
|
10039
|
-
|
|
10040
10048
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
10041
10049
|
|
|
10042
10050
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -10633,12 +10641,11 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
10633
10641
|
},
|
|
10634
10642
|
/**
|
|
10635
10643
|
*
|
|
10636
|
-
* @param {string} [id] Unique identifier for the category
|
|
10637
10644
|
* @param {*} [options] Override http request option.
|
|
10638
10645
|
* @throws {RequiredError}
|
|
10639
10646
|
*/
|
|
10640
|
-
async businessTypeControllerListAllCategories(
|
|
10641
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListAllCategories(
|
|
10647
|
+
async businessTypeControllerListAllCategories(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryListResponse>> {
|
|
10648
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListAllCategories(options);
|
|
10642
10649
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10643
10650
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListAllCategories']?.[localVarOperationServerIndex]?.url;
|
|
10644
10651
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -10964,12 +10971,11 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
10964
10971
|
},
|
|
10965
10972
|
/**
|
|
10966
10973
|
*
|
|
10967
|
-
* @param {string} [id] Unique identifier for the category
|
|
10968
10974
|
* @param {*} [options] Override http request option.
|
|
10969
10975
|
* @throws {RequiredError}
|
|
10970
10976
|
*/
|
|
10971
|
-
businessTypeControllerListAllCategories(
|
|
10972
|
-
return localVarFp.businessTypeControllerListAllCategories(
|
|
10977
|
+
businessTypeControllerListAllCategories(options?: RawAxiosRequestConfig): AxiosPromise<CategoryListResponse> {
|
|
10978
|
+
return localVarFp.businessTypeControllerListAllCategories(options).then((request) => request(axios, basePath));
|
|
10973
10979
|
},
|
|
10974
10980
|
/**
|
|
10975
10981
|
*
|
|
@@ -11290,12 +11296,11 @@ export class BusinessApi extends BaseAPI {
|
|
|
11290
11296
|
|
|
11291
11297
|
/**
|
|
11292
11298
|
*
|
|
11293
|
-
* @param {string} [id] Unique identifier for the category
|
|
11294
11299
|
* @param {*} [options] Override http request option.
|
|
11295
11300
|
* @throws {RequiredError}
|
|
11296
11301
|
*/
|
|
11297
|
-
public businessTypeControllerListAllCategories(
|
|
11298
|
-
return BusinessApiFp(this.configuration).businessTypeControllerListAllCategories(
|
|
11302
|
+
public businessTypeControllerListAllCategories(options?: RawAxiosRequestConfig) {
|
|
11303
|
+
return BusinessApiFp(this.configuration).businessTypeControllerListAllCategories(options).then((request) => request(this.axios, this.basePath));
|
|
11299
11304
|
}
|
|
11300
11305
|
|
|
11301
11306
|
/**
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**bookingId** | **string** | ID of the booking | [default to undefined]
|
|
8
|
+
**bookingId** | **string** | ID of the booking | [optional] [default to undefined]
|
|
9
|
+
**rsvpId** | **string** | ID of the rsvp | [optional] [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
@@ -14,6 +15,7 @@ import { AcceptBookingInvitePayload } from './api';
|
|
|
14
15
|
|
|
15
16
|
const instance: AcceptBookingInvitePayload = {
|
|
16
17
|
bookingId,
|
|
18
|
+
rsvpId,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
package/docs/BusinessApi.md
CHANGED
|
@@ -1256,18 +1256,11 @@ import {
|
|
|
1256
1256
|
const configuration = new Configuration();
|
|
1257
1257
|
const apiInstance = new BusinessApi(configuration);
|
|
1258
1258
|
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
const { status, data } = await apiInstance.businessTypeControllerListAllCategories(
|
|
1262
|
-
id
|
|
1263
|
-
);
|
|
1259
|
+
const { status, data } = await apiInstance.businessTypeControllerListAllCategories();
|
|
1264
1260
|
```
|
|
1265
1261
|
|
|
1266
1262
|
### Parameters
|
|
1267
|
-
|
|
1268
|
-
|Name | Type | Description | Notes|
|
|
1269
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1270
|
-
| **id** | [**string**] | Unique identifier for the category | (optional) defaults to undefined|
|
|
1263
|
+
This endpoint does not have any parameters.
|
|
1271
1264
|
|
|
1272
1265
|
|
|
1273
1266
|
### Return type
|
|
@@ -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-31T09:35:02Z]
|
|
10
|
+
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2026-03-31T09:35:02Z]
|
|
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-31T09:35:02Z]
|
|
10
|
+
**endDate** | **string** | The start date of the booking | [default to 2026-03-31T09:35:02Z]
|
|
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-31T09:35:02Z]
|
|
10
|
+
**endDate** | **string** | The start date of the booking | [default to 2026-03-31T09:35:02Z]
|
|
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-31T09:35Z]
|
|
12
|
+
**endDate** | **string** | The end date of the booking | [optional] [default to 2026-03-31T09:35Z]
|
|
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]
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**statusCode** | **number** | statusCode | [default to undefined]
|
|
9
9
|
**message** | **string** | Discount ID | [default to undefined]
|
|
10
|
+
**data** | **string** | Discount | [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ import { PromoCodeResponseDTO } from './api';
|
|
|
16
17
|
const instance: PromoCodeResponseDTO = {
|
|
17
18
|
statusCode,
|
|
18
19
|
message,
|
|
20
|
+
data,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
21
23
|
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**firstName** | **string** | | [default to undefined]
|
|
10
10
|
**lastName** | **string** | | [default to undefined]
|
|
11
11
|
**mobileNumber** | **string** | | [default to undefined]
|
|
12
|
+
**code** | **string** | | [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const instance: RSVPEventMetaDataDTO = {
|
|
|
20
21
|
firstName,
|
|
21
22
|
lastName,
|
|
22
23
|
mobileNumber,
|
|
24
|
+
code,
|
|
23
25
|
};
|
|
24
26
|
```
|
|
25
27
|
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**bookingId** | **string** | ID of the booking | [default to undefined]
|
|
8
|
+
**bookingId** | **string** | ID of the booking | [optional] [default to undefined]
|
|
9
|
+
**rsvpId** | **string** | ID of the rsvp | [optional] [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
@@ -14,6 +15,7 @@ import { RejectBookingInvitePayload } from './api';
|
|
|
14
15
|
|
|
15
16
|
const instance: RejectBookingInvitePayload = {
|
|
16
17
|
bookingId,
|
|
18
|
+
rsvpId,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
|
@@ -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-31T09:35:02Z]
|
|
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-31T09:35:02Z]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2026-03-31T10:35:02Z]
|
|
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]
|