@gooday_corp/gooday-api-client 2.3.1 → 3.3.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 +111 -0
- package/docs/BookingApi.md +52 -0
- package/docs/CreateBookingPayload.md +2 -2
- package/docs/CreateWalkInBookingPayload.md +42 -0
- package/docs/RescheduleBookingPayload.md +1 -1
- package/docs/WaitlistPayloadDTO.md +2 -2
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -127,6 +127,7 @@ docs/CreatePaymentLinkDTO.md
|
|
|
127
127
|
docs/CreateTaskPayload.md
|
|
128
128
|
docs/CreateTodoPayload.md
|
|
129
129
|
docs/CreateWaitlistBookingCollaboratorPayload.md
|
|
130
|
+
docs/CreateWalkInBookingPayload.md
|
|
130
131
|
docs/CustomerApi.md
|
|
131
132
|
docs/CustomerBookingResponseDTO.md
|
|
132
133
|
docs/CustomerDeleteResponseDTO.md
|
package/api.ts
CHANGED
|
@@ -2018,6 +2018,47 @@ export const CreateWaitlistBookingCollaboratorPayloadStatusEnum = {
|
|
|
2018
2018
|
|
|
2019
2019
|
export type CreateWaitlistBookingCollaboratorPayloadStatusEnum = typeof CreateWaitlistBookingCollaboratorPayloadStatusEnum[keyof typeof CreateWaitlistBookingCollaboratorPayloadStatusEnum];
|
|
2020
2020
|
|
|
2021
|
+
export interface CreateWalkInBookingPayload {
|
|
2022
|
+
/**
|
|
2023
|
+
* The title of the booking
|
|
2024
|
+
*/
|
|
2025
|
+
'title': string;
|
|
2026
|
+
/**
|
|
2027
|
+
* The start date of the booking
|
|
2028
|
+
*/
|
|
2029
|
+
'startDate': string;
|
|
2030
|
+
/**
|
|
2031
|
+
* The start date of the booking
|
|
2032
|
+
*/
|
|
2033
|
+
'endDate': string;
|
|
2034
|
+
/**
|
|
2035
|
+
* Notes attached with booking
|
|
2036
|
+
*/
|
|
2037
|
+
'note'?: string;
|
|
2038
|
+
/**
|
|
2039
|
+
* Occasion id
|
|
2040
|
+
*/
|
|
2041
|
+
'occasion'?: string;
|
|
2042
|
+
/**
|
|
2043
|
+
* Calendar attached with booking
|
|
2044
|
+
*/
|
|
2045
|
+
'calendar'?: Array<string>;
|
|
2046
|
+
/**
|
|
2047
|
+
* The list of collaborators associated with the booking
|
|
2048
|
+
*/
|
|
2049
|
+
'collaborators': Array<CreateBookingCollaboratorPayload>;
|
|
2050
|
+
/**
|
|
2051
|
+
* The list of customers associated with the booking
|
|
2052
|
+
*/
|
|
2053
|
+
'customers': Array<string>;
|
|
2054
|
+
/**
|
|
2055
|
+
* Booking method
|
|
2056
|
+
*/
|
|
2057
|
+
'method': string;
|
|
2058
|
+
'tags'?: Array<string>;
|
|
2059
|
+
'quantity': number;
|
|
2060
|
+
'walking': object;
|
|
2061
|
+
}
|
|
2021
2062
|
export interface CustomerBookingResponseDTO {
|
|
2022
2063
|
/**
|
|
2023
2064
|
* statusCode
|
|
@@ -7070,6 +7111,45 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
7070
7111
|
options: localVarRequestOptions,
|
|
7071
7112
|
};
|
|
7072
7113
|
},
|
|
7114
|
+
/**
|
|
7115
|
+
*
|
|
7116
|
+
* @param {CreateWalkInBookingPayload} createWalkInBookingPayload
|
|
7117
|
+
* @param {*} [options] Override http request option.
|
|
7118
|
+
* @throws {RequiredError}
|
|
7119
|
+
*/
|
|
7120
|
+
bookingControllerCreateWalkInBooking: async (createWalkInBookingPayload: CreateWalkInBookingPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7121
|
+
// verify required parameter 'createWalkInBookingPayload' is not null or undefined
|
|
7122
|
+
assertParamExists('bookingControllerCreateWalkInBooking', 'createWalkInBookingPayload', createWalkInBookingPayload)
|
|
7123
|
+
const localVarPath = `/v1/booking/walk-in`;
|
|
7124
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7125
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7126
|
+
let baseOptions;
|
|
7127
|
+
if (configuration) {
|
|
7128
|
+
baseOptions = configuration.baseOptions;
|
|
7129
|
+
}
|
|
7130
|
+
|
|
7131
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
7132
|
+
const localVarHeaderParameter = {} as any;
|
|
7133
|
+
const localVarQueryParameter = {} as any;
|
|
7134
|
+
|
|
7135
|
+
// authentication bearer required
|
|
7136
|
+
// http bearer authentication required
|
|
7137
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7138
|
+
|
|
7139
|
+
|
|
7140
|
+
|
|
7141
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7142
|
+
|
|
7143
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7144
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7145
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7146
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createWalkInBookingPayload, localVarRequestOptions, configuration)
|
|
7147
|
+
|
|
7148
|
+
return {
|
|
7149
|
+
url: toPathString(localVarUrlObj),
|
|
7150
|
+
options: localVarRequestOptions,
|
|
7151
|
+
};
|
|
7152
|
+
},
|
|
7073
7153
|
/**
|
|
7074
7154
|
*
|
|
7075
7155
|
* @param {string} id
|
|
@@ -7586,6 +7666,18 @@ export const BookingApiFp = function(configuration?: Configuration) {
|
|
|
7586
7666
|
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerCreateBooking']?.[localVarOperationServerIndex]?.url;
|
|
7587
7667
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7588
7668
|
},
|
|
7669
|
+
/**
|
|
7670
|
+
*
|
|
7671
|
+
* @param {CreateWalkInBookingPayload} createWalkInBookingPayload
|
|
7672
|
+
* @param {*} [options] Override http request option.
|
|
7673
|
+
* @throws {RequiredError}
|
|
7674
|
+
*/
|
|
7675
|
+
async bookingControllerCreateWalkInBooking(createWalkInBookingPayload: CreateWalkInBookingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingResponseDTO>> {
|
|
7676
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerCreateWalkInBooking(createWalkInBookingPayload, options);
|
|
7677
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7678
|
+
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerCreateWalkInBooking']?.[localVarOperationServerIndex]?.url;
|
|
7679
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7680
|
+
},
|
|
7589
7681
|
/**
|
|
7590
7682
|
*
|
|
7591
7683
|
* @param {string} id
|
|
@@ -7783,6 +7875,15 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
|
|
|
7783
7875
|
bookingControllerCreateBooking(createBookingPayload: CreateBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponseDTO> {
|
|
7784
7876
|
return localVarFp.bookingControllerCreateBooking(createBookingPayload, options).then((request) => request(axios, basePath));
|
|
7785
7877
|
},
|
|
7878
|
+
/**
|
|
7879
|
+
*
|
|
7880
|
+
* @param {CreateWalkInBookingPayload} createWalkInBookingPayload
|
|
7881
|
+
* @param {*} [options] Override http request option.
|
|
7882
|
+
* @throws {RequiredError}
|
|
7883
|
+
*/
|
|
7884
|
+
bookingControllerCreateWalkInBooking(createWalkInBookingPayload: CreateWalkInBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponseDTO> {
|
|
7885
|
+
return localVarFp.bookingControllerCreateWalkInBooking(createWalkInBookingPayload, options).then((request) => request(axios, basePath));
|
|
7886
|
+
},
|
|
7786
7887
|
/**
|
|
7787
7888
|
*
|
|
7788
7889
|
* @param {string} id
|
|
@@ -7951,6 +8052,16 @@ export class BookingApi extends BaseAPI {
|
|
|
7951
8052
|
return BookingApiFp(this.configuration).bookingControllerCreateBooking(createBookingPayload, options).then((request) => request(this.axios, this.basePath));
|
|
7952
8053
|
}
|
|
7953
8054
|
|
|
8055
|
+
/**
|
|
8056
|
+
*
|
|
8057
|
+
* @param {CreateWalkInBookingPayload} createWalkInBookingPayload
|
|
8058
|
+
* @param {*} [options] Override http request option.
|
|
8059
|
+
* @throws {RequiredError}
|
|
8060
|
+
*/
|
|
8061
|
+
public bookingControllerCreateWalkInBooking(createWalkInBookingPayload: CreateWalkInBookingPayload, options?: RawAxiosRequestConfig) {
|
|
8062
|
+
return BookingApiFp(this.configuration).bookingControllerCreateWalkInBooking(createWalkInBookingPayload, options).then((request) => request(this.axios, this.basePath));
|
|
8063
|
+
}
|
|
8064
|
+
|
|
7954
8065
|
/**
|
|
7955
8066
|
*
|
|
7956
8067
|
* @param {string} id
|
package/docs/BookingApi.md
CHANGED
|
@@ -10,6 +10,7 @@ All URIs are relative to *http://localhost:8080*
|
|
|
10
10
|
|[**bookingControllerCalendarInvites**](#bookingcontrollercalendarinvites) | **POST** /v1/booking/calendar-shared | |
|
|
11
11
|
|[**bookingControllerCancelBooking**](#bookingcontrollercancelbooking) | **POST** /v1/booking/cancel-booking | |
|
|
12
12
|
|[**bookingControllerCreateBooking**](#bookingcontrollercreatebooking) | **POST** /v1/booking | |
|
|
13
|
+
|[**bookingControllerCreateWalkInBooking**](#bookingcontrollercreatewalkinbooking) | **POST** /v1/booking/walk-in | |
|
|
13
14
|
|[**bookingControllerGetBooking**](#bookingcontrollergetbooking) | **GET** /v1/booking/{id} | |
|
|
14
15
|
|[**bookingControllerLeaveBooking**](#bookingcontrollerleavebooking) | **POST** /v1/booking/leave-booking | |
|
|
15
16
|
|[**bookingControllerListBookings**](#bookingcontrollerlistbookings) | **POST** /v1/booking/list | |
|
|
@@ -306,6 +307,57 @@ const { status, data } = await apiInstance.bookingControllerCreateBooking(
|
|
|
306
307
|
| **createBookingPayload** | **CreateBookingPayload**| | |
|
|
307
308
|
|
|
308
309
|
|
|
310
|
+
### Return type
|
|
311
|
+
|
|
312
|
+
**BookingResponseDTO**
|
|
313
|
+
|
|
314
|
+
### Authorization
|
|
315
|
+
|
|
316
|
+
[bearer](../README.md#bearer)
|
|
317
|
+
|
|
318
|
+
### HTTP request headers
|
|
319
|
+
|
|
320
|
+
- **Content-Type**: application/json
|
|
321
|
+
- **Accept**: application/json
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
### HTTP response details
|
|
325
|
+
| Status code | Description | Response headers |
|
|
326
|
+
|-------------|-------------|------------------|
|
|
327
|
+
|**0** | | - |
|
|
328
|
+
|
|
329
|
+
[[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)
|
|
330
|
+
|
|
331
|
+
# **bookingControllerCreateWalkInBooking**
|
|
332
|
+
> BookingResponseDTO bookingControllerCreateWalkInBooking(createWalkInBookingPayload)
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
### Example
|
|
336
|
+
|
|
337
|
+
```typescript
|
|
338
|
+
import {
|
|
339
|
+
BookingApi,
|
|
340
|
+
Configuration,
|
|
341
|
+
CreateWalkInBookingPayload
|
|
342
|
+
} from './api';
|
|
343
|
+
|
|
344
|
+
const configuration = new Configuration();
|
|
345
|
+
const apiInstance = new BookingApi(configuration);
|
|
346
|
+
|
|
347
|
+
let createWalkInBookingPayload: CreateWalkInBookingPayload; //
|
|
348
|
+
|
|
349
|
+
const { status, data } = await apiInstance.bookingControllerCreateWalkInBooking(
|
|
350
|
+
createWalkInBookingPayload
|
|
351
|
+
);
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
### Parameters
|
|
355
|
+
|
|
356
|
+
|Name | Type | Description | Notes|
|
|
357
|
+
|------------- | ------------- | ------------- | -------------|
|
|
358
|
+
| **createWalkInBookingPayload** | **CreateWalkInBookingPayload**| | |
|
|
359
|
+
|
|
360
|
+
|
|
309
361
|
### Return type
|
|
310
362
|
|
|
311
363
|
**BookingResponseDTO**
|
|
@@ -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-09-
|
|
10
|
-
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-09-
|
|
9
|
+
**date** | **string** | The start date of the booking | [default to 2025-09-19T17:40:54+05:30]
|
|
10
|
+
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-09-19T17:40: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]
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# CreateWalkInBookingPayload
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**title** | **string** | The title of the booking | [default to 'Default Booking Title']
|
|
9
|
+
**startDate** | **string** | The start date of the booking | [default to 2025-09-19T17:40:54+05:30]
|
|
10
|
+
**endDate** | **string** | The start date of the booking | [default to 2025-09-19T17:40:54+05:30]
|
|
11
|
+
**note** | **string** | Notes attached with booking | [optional] [default to undefined]
|
|
12
|
+
**occasion** | **string** | Occasion id | [optional] [default to undefined]
|
|
13
|
+
**calendar** | **Array<string>** | Calendar attached with booking | [optional] [default to undefined]
|
|
14
|
+
**collaborators** | [**Array<CreateBookingCollaboratorPayload>**](CreateBookingCollaboratorPayload.md) | The list of collaborators associated with the booking | [default to undefined]
|
|
15
|
+
**customers** | **Array<string>** | The list of customers associated with the booking | [default to undefined]
|
|
16
|
+
**method** | **string** | Booking method | [default to 'WALK_IN']
|
|
17
|
+
**tags** | **Array<string>** | | [optional] [default to undefined]
|
|
18
|
+
**quantity** | **number** | | [default to undefined]
|
|
19
|
+
**walking** | **object** | | [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { CreateWalkInBookingPayload } from './api';
|
|
25
|
+
|
|
26
|
+
const instance: CreateWalkInBookingPayload = {
|
|
27
|
+
title,
|
|
28
|
+
startDate,
|
|
29
|
+
endDate,
|
|
30
|
+
note,
|
|
31
|
+
occasion,
|
|
32
|
+
calendar,
|
|
33
|
+
collaborators,
|
|
34
|
+
customers,
|
|
35
|
+
method,
|
|
36
|
+
tags,
|
|
37
|
+
quantity,
|
|
38
|
+
walking,
|
|
39
|
+
};
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -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-09-
|
|
8
|
+
**date** | **string** | The start date of the booking | [default to 2025-09-19T17:40: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-09-
|
|
9
|
-
**endDate** | **string** | The end date of the waitlist | [default to 2025-09-
|
|
8
|
+
**startDate** | **string** | The start date of the waitlist | [default to 2025-09-19T17:40:54+05:30]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2025-09-19T18:40: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]
|