@gooday_corp/gooday-api-client 4.5.73 → 4.6.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/api.ts CHANGED
@@ -18902,6 +18902,40 @@ export const RSVPEventApiAxiosParamCreator = function (configuration?: Configura
18902
18902
  options: localVarRequestOptions,
18903
18903
  };
18904
18904
  },
18905
+ /**
18906
+ *
18907
+ * @param {RSVPEventFindDTO} rSVPEventFindDTO
18908
+ * @param {*} [options] Override http request option.
18909
+ * @throws {RequiredError}
18910
+ */
18911
+ rSVPControllerHostEvents: async (rSVPEventFindDTO: RSVPEventFindDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18912
+ // verify required parameter 'rSVPEventFindDTO' is not null or undefined
18913
+ assertParamExists('rSVPControllerHostEvents', 'rSVPEventFindDTO', rSVPEventFindDTO)
18914
+ const localVarPath = `/v1/rsvp/host/events`;
18915
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18916
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18917
+ let baseOptions;
18918
+ if (configuration) {
18919
+ baseOptions = configuration.baseOptions;
18920
+ }
18921
+
18922
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18923
+ const localVarHeaderParameter = {} as any;
18924
+ const localVarQueryParameter = {} as any;
18925
+
18926
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18927
+ localVarHeaderParameter['Accept'] = 'application/json';
18928
+
18929
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18930
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18931
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18932
+ localVarRequestOptions.data = serializeDataIfNeeded(rSVPEventFindDTO, localVarRequestOptions, configuration)
18933
+
18934
+ return {
18935
+ url: toPathString(localVarUrlObj),
18936
+ options: localVarRequestOptions,
18937
+ };
18938
+ },
18905
18939
  /**
18906
18940
  *
18907
18941
  * @param {string} id
@@ -19257,6 +19291,18 @@ export const RSVPEventApiFp = function(configuration?: Configuration) {
19257
19291
  const localVarOperationServerBasePath = operationServerMap['RSVPEventApi.rSVPControllerFavoriteRSVPEventById']?.[localVarOperationServerIndex]?.url;
19258
19292
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19259
19293
  },
19294
+ /**
19295
+ *
19296
+ * @param {RSVPEventFindDTO} rSVPEventFindDTO
19297
+ * @param {*} [options] Override http request option.
19298
+ * @throws {RequiredError}
19299
+ */
19300
+ async rSVPControllerHostEvents(rSVPEventFindDTO: RSVPEventFindDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RSVPEventResponseDTO>> {
19301
+ const localVarAxiosArgs = await localVarAxiosParamCreator.rSVPControllerHostEvents(rSVPEventFindDTO, options);
19302
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19303
+ const localVarOperationServerBasePath = operationServerMap['RSVPEventApi.rSVPControllerHostEvents']?.[localVarOperationServerIndex]?.url;
19304
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19305
+ },
19260
19306
  /**
19261
19307
  *
19262
19308
  * @param {string} id
@@ -19408,6 +19454,15 @@ export const RSVPEventApiFactory = function (configuration?: Configuration, base
19408
19454
  rSVPControllerFavoriteRSVPEventById(id: string, options?: RawAxiosRequestConfig): AxiosPromise<RSVPEventFavoriteResponsedDTO> {
19409
19455
  return localVarFp.rSVPControllerFavoriteRSVPEventById(id, options).then((request) => request(axios, basePath));
19410
19456
  },
19457
+ /**
19458
+ *
19459
+ * @param {RSVPEventFindDTO} rSVPEventFindDTO
19460
+ * @param {*} [options] Override http request option.
19461
+ * @throws {RequiredError}
19462
+ */
19463
+ rSVPControllerHostEvents(rSVPEventFindDTO: RSVPEventFindDTO, options?: RawAxiosRequestConfig): AxiosPromise<RSVPEventResponseDTO> {
19464
+ return localVarFp.rSVPControllerHostEvents(rSVPEventFindDTO, options).then((request) => request(axios, basePath));
19465
+ },
19411
19466
  /**
19412
19467
  *
19413
19468
  * @param {string} id
@@ -19538,6 +19593,16 @@ export class RSVPEventApi extends BaseAPI {
19538
19593
  return RSVPEventApiFp(this.configuration).rSVPControllerFavoriteRSVPEventById(id, options).then((request) => request(this.axios, this.basePath));
19539
19594
  }
19540
19595
 
19596
+ /**
19597
+ *
19598
+ * @param {RSVPEventFindDTO} rSVPEventFindDTO
19599
+ * @param {*} [options] Override http request option.
19600
+ * @throws {RequiredError}
19601
+ */
19602
+ public rSVPControllerHostEvents(rSVPEventFindDTO: RSVPEventFindDTO, options?: RawAxiosRequestConfig) {
19603
+ return RSVPEventApiFp(this.configuration).rSVPControllerHostEvents(rSVPEventFindDTO, options).then((request) => request(this.axios, this.basePath));
19604
+ }
19605
+
19541
19606
  /**
19542
19607
  *
19543
19608
  * @param {string} id
@@ -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-02-24T05:36:38Z]
10
- **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2026-02-24T05:36:38Z]
9
+ **date** | **string** | The start date of the booking | [default to 2026-02-27T13:35:20Z]
10
+ **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2026-02-27T13:35:20Z]
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-02-24T05:36:38Z]
10
- **endDate** | **string** | The start date of the booking | [default to 2026-02-24T05:36:38Z]
9
+ **startDate** | **string** | The start date of the booking | [default to 2026-02-27T13:35:20Z]
10
+ **endDate** | **string** | The start date of the booking | [default to 2026-02-27T13:35:20Z]
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&lt;string&gt;** | 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-02-24T05:36:38Z]
10
- **endDate** | **string** | The start date of the booking | [default to 2026-02-24T05:36:38Z]
9
+ **startDate** | **string** | The start date of the booking | [default to 2026-02-27T13:35:20Z]
10
+ **endDate** | **string** | The start date of the booking | [default to 2026-02-27T13:35:20Z]
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&lt;string&gt;** | 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-02-24T05:36:36Z]
12
- **endDate** | **string** | The end date of the booking | [optional] [default to 2026-02-24T05:36:36Z]
11
+ **startDate** | **string** | The start date of the booking | [optional] [default to 2026-02-27T13:35:18Z]
12
+ **endDate** | **string** | The end date of the booking | [optional] [default to 2026-02-27T13:35:18Z]
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]
@@ -9,6 +9,7 @@ All URIs are relative to *http://localhost:8080*
9
9
  |[**rSVPControllerDeleteRSVPEvent**](#rsvpcontrollerdeletersvpevent) | **DELETE** /v1/rsvp | |
10
10
  |[**rSVPControllerDeleteRSVPFavorites**](#rsvpcontrollerdeletersvpfavorites) | **DELETE** /v1/rsvp/event/unfavorite | |
11
11
  |[**rSVPControllerFavoriteRSVPEventById**](#rsvpcontrollerfavoritersvpeventbyid) | **GET** /v1/rsvp/favoriteId/{id} | |
12
+ |[**rSVPControllerHostEvents**](#rsvpcontrollerhostevents) | **POST** /v1/rsvp/host/events | |
12
13
  |[**rSVPControllerReminderEventCalendar**](#rsvpcontrollerremindereventcalendar) | **PUT** /v1/rsvp/remindar/{id} | |
13
14
  |[**rSVPControllerRsvpEventById**](#rsvpcontrollerrsvpeventbyid) | **GET** /v1/rsvp/{id} | |
14
15
  |[**rSVPControllerRsvpEvents**](#rsvpcontrollerrsvpevents) | **POST** /v1/rsvp/rsvp/event | |
@@ -264,6 +265,57 @@ const { status, data } = await apiInstance.rSVPControllerFavoriteRSVPEventById(
264
265
  - **Accept**: application/json
265
266
 
266
267
 
268
+ ### HTTP response details
269
+ | Status code | Description | Response headers |
270
+ |-------------|-------------|------------------|
271
+ |**200** | | - |
272
+
273
+ [[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)
274
+
275
+ # **rSVPControllerHostEvents**
276
+ > RSVPEventResponseDTO rSVPControllerHostEvents(rSVPEventFindDTO)
277
+
278
+
279
+ ### Example
280
+
281
+ ```typescript
282
+ import {
283
+ RSVPEventApi,
284
+ Configuration,
285
+ RSVPEventFindDTO
286
+ } from './api';
287
+
288
+ const configuration = new Configuration();
289
+ const apiInstance = new RSVPEventApi(configuration);
290
+
291
+ let rSVPEventFindDTO: RSVPEventFindDTO; //
292
+
293
+ const { status, data } = await apiInstance.rSVPControllerHostEvents(
294
+ rSVPEventFindDTO
295
+ );
296
+ ```
297
+
298
+ ### Parameters
299
+
300
+ |Name | Type | Description | Notes|
301
+ |------------- | ------------- | ------------- | -------------|
302
+ | **rSVPEventFindDTO** | **RSVPEventFindDTO**| | |
303
+
304
+
305
+ ### Return type
306
+
307
+ **RSVPEventResponseDTO**
308
+
309
+ ### Authorization
310
+
311
+ No authorization required
312
+
313
+ ### HTTP request headers
314
+
315
+ - **Content-Type**: application/json
316
+ - **Accept**: application/json
317
+
318
+
267
319
  ### HTTP response details
268
320
  | Status code | Description | Response headers |
269
321
  |-------------|-------------|------------------|
@@ -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-02-24T05:36:38Z]
8
+ **date** | **string** | The start date of the booking | [default to 2026-02-27T13:35:20Z]
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-02-24T05:36:38Z]
9
- **endDate** | **string** | The end date of the waitlist | [default to 2026-02-24T06:36:38Z]
8
+ **startDate** | **string** | The start date of the waitlist | [default to 2026-02-27T13:35:20Z]
9
+ **endDate** | **string** | The end date of the waitlist | [default to 2026-02-27T14:35:20Z]
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&lt;CreateWaitlistBookingCollaboratorPayload&gt;**](CreateWaitlistBookingCollaboratorPayload.md) | The list of collaborators associated with the waitlist | [default to undefined]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "4.5.73",
3
+ "version": "4.6.1",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},