@gooday_corp/gooday-api-client 4.6.9 → 4.7.1
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 +113 -0
- package/docs/BusinessApi.md +57 -0
- package/docs/CreateBookingPayload.md +2 -2
- package/docs/CreateRSVPCollaboratorPayload.md +32 -0
- package/docs/CreateRSVPEventBookingPayload.md +2 -2
- package/docs/CreateWalkInBookingPayload.md +2 -2
- package/docs/PaymentDetailsPayload.md +2 -2
- package/docs/RSVPEvenPayloadDTO.md +2 -0
- package/docs/RescheduleBookingPayload.md +1 -1
- package/docs/WaitlistPayloadDTO.md +2 -2
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -133,6 +133,7 @@ docs/CreateCustomerPayloadDTO.md
|
|
|
133
133
|
docs/CreateEventCollaboratorPayload.md
|
|
134
134
|
docs/CreateEventPayloadDTO.md
|
|
135
135
|
docs/CreatePaymentLinkDTO.md
|
|
136
|
+
docs/CreateRSVPCollaboratorPayload.md
|
|
136
137
|
docs/CreateRSVPEventBookingPayload.md
|
|
137
138
|
docs/CreateTaskPayload.md
|
|
138
139
|
docs/CreateTodoPayload.md
|
package/api.ts
CHANGED
|
@@ -2038,6 +2038,30 @@ export interface CreatePaymentLinkDTO {
|
|
|
2038
2038
|
*/
|
|
2039
2039
|
'productID': string;
|
|
2040
2040
|
}
|
|
2041
|
+
export interface CreateRSVPCollaboratorPayload {
|
|
2042
|
+
/**
|
|
2043
|
+
* The unique identifier of the customer
|
|
2044
|
+
*/
|
|
2045
|
+
'_id'?: string;
|
|
2046
|
+
/**
|
|
2047
|
+
* The name of the customer
|
|
2048
|
+
*/
|
|
2049
|
+
'name'?: string;
|
|
2050
|
+
'firstName'?: string;
|
|
2051
|
+
'lastName'?: string;
|
|
2052
|
+
/**
|
|
2053
|
+
* The mobile phone number of the customer
|
|
2054
|
+
*/
|
|
2055
|
+
'mobile'?: string;
|
|
2056
|
+
/**
|
|
2057
|
+
* The email address of the customer
|
|
2058
|
+
*/
|
|
2059
|
+
'email'?: string;
|
|
2060
|
+
/**
|
|
2061
|
+
* The goodayId for the customer
|
|
2062
|
+
*/
|
|
2063
|
+
'goodayId'?: string;
|
|
2064
|
+
}
|
|
2041
2065
|
export interface CreateRSVPEventBookingPayload {
|
|
2042
2066
|
/**
|
|
2043
2067
|
* The title of the booking
|
|
@@ -3922,6 +3946,10 @@ export interface RSVPEvenPayloadDTO {
|
|
|
3922
3946
|
*/
|
|
3923
3947
|
'meta'?: RSVPEventMetaDataDTO;
|
|
3924
3948
|
'stripeProduct'?: string;
|
|
3949
|
+
/**
|
|
3950
|
+
* The list of collaborators associated with the booking
|
|
3951
|
+
*/
|
|
3952
|
+
'collaboratorUsers'?: Array<CreateRSVPCollaboratorPayload>;
|
|
3925
3953
|
'calendars'?: Array<string>;
|
|
3926
3954
|
}
|
|
3927
3955
|
|
|
@@ -9097,6 +9125,54 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9097
9125
|
options: localVarRequestOptions,
|
|
9098
9126
|
};
|
|
9099
9127
|
},
|
|
9128
|
+
/**
|
|
9129
|
+
*
|
|
9130
|
+
* @param {number} page
|
|
9131
|
+
* @param {number} pageSize
|
|
9132
|
+
* @param {string} [query]
|
|
9133
|
+
* @param {*} [options] Override http request option.
|
|
9134
|
+
* @throws {RequiredError}
|
|
9135
|
+
*/
|
|
9136
|
+
businessControllerFindBusiness: async (page: number, pageSize: number, query?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9137
|
+
// verify required parameter 'page' is not null or undefined
|
|
9138
|
+
assertParamExists('businessControllerFindBusiness', 'page', page)
|
|
9139
|
+
// verify required parameter 'pageSize' is not null or undefined
|
|
9140
|
+
assertParamExists('businessControllerFindBusiness', 'pageSize', pageSize)
|
|
9141
|
+
const localVarPath = `/v1/business/hosts`;
|
|
9142
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9143
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9144
|
+
let baseOptions;
|
|
9145
|
+
if (configuration) {
|
|
9146
|
+
baseOptions = configuration.baseOptions;
|
|
9147
|
+
}
|
|
9148
|
+
|
|
9149
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9150
|
+
const localVarHeaderParameter = {} as any;
|
|
9151
|
+
const localVarQueryParameter = {} as any;
|
|
9152
|
+
|
|
9153
|
+
if (query !== undefined) {
|
|
9154
|
+
localVarQueryParameter['query'] = query;
|
|
9155
|
+
}
|
|
9156
|
+
|
|
9157
|
+
if (page !== undefined) {
|
|
9158
|
+
localVarQueryParameter['page'] = page;
|
|
9159
|
+
}
|
|
9160
|
+
|
|
9161
|
+
if (pageSize !== undefined) {
|
|
9162
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
9163
|
+
}
|
|
9164
|
+
|
|
9165
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
9166
|
+
|
|
9167
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9168
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9169
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9170
|
+
|
|
9171
|
+
return {
|
|
9172
|
+
url: toPathString(localVarUrlObj),
|
|
9173
|
+
options: localVarRequestOptions,
|
|
9174
|
+
};
|
|
9175
|
+
},
|
|
9100
9176
|
/**
|
|
9101
9177
|
*
|
|
9102
9178
|
* @param {*} [options] Override http request option.
|
|
@@ -10210,6 +10286,20 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
10210
10286
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerBusinessOnboarding']?.[localVarOperationServerIndex]?.url;
|
|
10211
10287
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10212
10288
|
},
|
|
10289
|
+
/**
|
|
10290
|
+
*
|
|
10291
|
+
* @param {number} page
|
|
10292
|
+
* @param {number} pageSize
|
|
10293
|
+
* @param {string} [query]
|
|
10294
|
+
* @param {*} [options] Override http request option.
|
|
10295
|
+
* @throws {RequiredError}
|
|
10296
|
+
*/
|
|
10297
|
+
async businessControllerFindBusiness(page: number, pageSize: number, query?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserEntity>>> {
|
|
10298
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerFindBusiness(page, pageSize, query, options);
|
|
10299
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10300
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerFindBusiness']?.[localVarOperationServerIndex]?.url;
|
|
10301
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10302
|
+
},
|
|
10213
10303
|
/**
|
|
10214
10304
|
*
|
|
10215
10305
|
* @param {*} [options] Override http request option.
|
|
@@ -10593,6 +10683,17 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
10593
10683
|
businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
|
|
10594
10684
|
return localVarFp.businessControllerBusinessOnboarding(businessOnBoardingDTO, options).then((request) => request(axios, basePath));
|
|
10595
10685
|
},
|
|
10686
|
+
/**
|
|
10687
|
+
*
|
|
10688
|
+
* @param {number} page
|
|
10689
|
+
* @param {number} pageSize
|
|
10690
|
+
* @param {string} [query]
|
|
10691
|
+
* @param {*} [options] Override http request option.
|
|
10692
|
+
* @throws {RequiredError}
|
|
10693
|
+
*/
|
|
10694
|
+
businessControllerFindBusiness(page: number, pageSize: number, query?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserEntity>> {
|
|
10695
|
+
return localVarFp.businessControllerFindBusiness(page, pageSize, query, options).then((request) => request(axios, basePath));
|
|
10696
|
+
},
|
|
10596
10697
|
/**
|
|
10597
10698
|
*
|
|
10598
10699
|
* @param {*} [options] Override http request option.
|
|
@@ -10886,6 +10987,18 @@ export class BusinessApi extends BaseAPI {
|
|
|
10886
10987
|
return BusinessApiFp(this.configuration).businessControllerBusinessOnboarding(businessOnBoardingDTO, options).then((request) => request(this.axios, this.basePath));
|
|
10887
10988
|
}
|
|
10888
10989
|
|
|
10990
|
+
/**
|
|
10991
|
+
*
|
|
10992
|
+
* @param {number} page
|
|
10993
|
+
* @param {number} pageSize
|
|
10994
|
+
* @param {string} [query]
|
|
10995
|
+
* @param {*} [options] Override http request option.
|
|
10996
|
+
* @throws {RequiredError}
|
|
10997
|
+
*/
|
|
10998
|
+
public businessControllerFindBusiness(page: number, pageSize: number, query?: string, options?: RawAxiosRequestConfig) {
|
|
10999
|
+
return BusinessApiFp(this.configuration).businessControllerFindBusiness(page, pageSize, query, options).then((request) => request(this.axios, this.basePath));
|
|
11000
|
+
}
|
|
11001
|
+
|
|
10889
11002
|
/**
|
|
10890
11003
|
*
|
|
10891
11004
|
* @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-03T17:58:34+05:30]
|
|
10
|
+
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2026-03-03T17:58:34+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,32 @@
|
|
|
1
|
+
# CreateRSVPCollaboratorPayload
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **string** | The unique identifier of the customer | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | The name of the customer | [optional] [default to 'John Doe']
|
|
10
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**mobile** | **string** | The mobile phone number of the customer | [optional] [default to '+11234567890']
|
|
13
|
+
**email** | **string** | The email address of the customer | [optional] [default to 'example@example.com']
|
|
14
|
+
**goodayId** | **string** | The goodayId for the customer | [optional] [default to 'default-gooday-id']
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { CreateRSVPCollaboratorPayload } from './api';
|
|
20
|
+
|
|
21
|
+
const instance: CreateRSVPCollaboratorPayload = {
|
|
22
|
+
_id,
|
|
23
|
+
name,
|
|
24
|
+
firstName,
|
|
25
|
+
lastName,
|
|
26
|
+
mobile,
|
|
27
|
+
email,
|
|
28
|
+
goodayId,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -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-03T17:58:34+05:30]
|
|
10
|
+
**endDate** | **string** | The start date of the booking | [default to 2026-03-03T17:58:34+05:30]
|
|
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-03T17:58:34+05:30]
|
|
10
|
+
**endDate** | **string** | The start date of the booking | [default to 2026-03-03T17:58:34+05:30]
|
|
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-03T17:58:34+05:30]
|
|
12
|
+
**endDate** | **string** | The end date of the booking | [optional] [default to 2026-03-03T17:58:34+05:30]
|
|
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]
|
|
@@ -37,6 +37,7 @@ Name | Type | Description | Notes
|
|
|
37
37
|
**discounts** | **Array<object>** | | [optional] [default to undefined]
|
|
38
38
|
**meta** | [**RSVPEventMetaDataDTO**](RSVPEventMetaDataDTO.md) | Meta information about the location. | [optional] [default to undefined]
|
|
39
39
|
**stripeProduct** | **string** | | [optional] [default to undefined]
|
|
40
|
+
**collaboratorUsers** | [**Array<CreateRSVPCollaboratorPayload>**](CreateRSVPCollaboratorPayload.md) | The list of collaborators associated with the booking | [optional] [default to undefined]
|
|
40
41
|
**calendars** | **Array<string>** | | [optional] [default to undefined]
|
|
41
42
|
|
|
42
43
|
## Example
|
|
@@ -77,6 +78,7 @@ const instance: RSVPEvenPayloadDTO = {
|
|
|
77
78
|
discounts,
|
|
78
79
|
meta,
|
|
79
80
|
stripeProduct,
|
|
81
|
+
collaboratorUsers,
|
|
80
82
|
calendars,
|
|
81
83
|
};
|
|
82
84
|
```
|
|
@@ -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-03T17:58:34+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 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-03T17:58:34+05:30]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2026-03-03T18:58:34+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]
|