@gooday_corp/gooday-api-client 4.5.98 → 4.5.100

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
@@ -28502,6 +28502,120 @@ export const RSVPV2ApiAxiosParamCreator = function (configuration?: Configuratio
28502
28502
 
28503
28503
 
28504
28504
 
28505
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28506
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28507
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28508
+
28509
+ return {
28510
+ url: toPathString(localVarUrlObj),
28511
+ options: localVarRequestOptions,
28512
+ };
28513
+ },
28514
+ /**
28515
+ *
28516
+ * @param {string} businessId
28517
+ * @param {number} page
28518
+ * @param {number} pageSize
28519
+ * @param {string} [search]
28520
+ * @param {string} [venue]
28521
+ * @param {*} [options] Override http request option.
28522
+ * @throws {RequiredError}
28523
+ */
28524
+ rSVPV2ControllerGetEventsByBusiness: async (businessId: string, page: number, pageSize: number, search?: string, venue?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28525
+ // verify required parameter 'businessId' is not null or undefined
28526
+ assertParamExists('rSVPV2ControllerGetEventsByBusiness', 'businessId', businessId)
28527
+ // verify required parameter 'page' is not null or undefined
28528
+ assertParamExists('rSVPV2ControllerGetEventsByBusiness', 'page', page)
28529
+ // verify required parameter 'pageSize' is not null or undefined
28530
+ assertParamExists('rSVPV2ControllerGetEventsByBusiness', 'pageSize', pageSize)
28531
+ const localVarPath = `/v1/rsvp/v2/events/business/{businessId}`
28532
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
28533
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28534
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28535
+ let baseOptions;
28536
+ if (configuration) {
28537
+ baseOptions = configuration.baseOptions;
28538
+ }
28539
+
28540
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28541
+ const localVarHeaderParameter = {} as any;
28542
+ const localVarQueryParameter = {} as any;
28543
+
28544
+ if (page !== undefined) {
28545
+ localVarQueryParameter['page'] = page;
28546
+ }
28547
+
28548
+ if (pageSize !== undefined) {
28549
+ localVarQueryParameter['pageSize'] = pageSize;
28550
+ }
28551
+
28552
+ if (search !== undefined) {
28553
+ localVarQueryParameter['search'] = search;
28554
+ }
28555
+
28556
+ if (venue !== undefined) {
28557
+ localVarQueryParameter['venue'] = venue;
28558
+ }
28559
+
28560
+
28561
+
28562
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28563
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28564
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28565
+
28566
+ return {
28567
+ url: toPathString(localVarUrlObj),
28568
+ options: localVarRequestOptions,
28569
+ };
28570
+ },
28571
+ /**
28572
+ *
28573
+ * @param {string} venueId
28574
+ * @param {number} page
28575
+ * @param {number} pageSize
28576
+ * @param {string} [search]
28577
+ * @param {string} [venue]
28578
+ * @param {*} [options] Override http request option.
28579
+ * @throws {RequiredError}
28580
+ */
28581
+ rSVPV2ControllerGetEventsByVenue: async (venueId: string, page: number, pageSize: number, search?: string, venue?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28582
+ // verify required parameter 'venueId' is not null or undefined
28583
+ assertParamExists('rSVPV2ControllerGetEventsByVenue', 'venueId', venueId)
28584
+ // verify required parameter 'page' is not null or undefined
28585
+ assertParamExists('rSVPV2ControllerGetEventsByVenue', 'page', page)
28586
+ // verify required parameter 'pageSize' is not null or undefined
28587
+ assertParamExists('rSVPV2ControllerGetEventsByVenue', 'pageSize', pageSize)
28588
+ const localVarPath = `/v1/rsvp/v2/events/venue/{venueId}`
28589
+ .replace(`{${"venueId"}}`, encodeURIComponent(String(venueId)));
28590
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28591
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28592
+ let baseOptions;
28593
+ if (configuration) {
28594
+ baseOptions = configuration.baseOptions;
28595
+ }
28596
+
28597
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28598
+ const localVarHeaderParameter = {} as any;
28599
+ const localVarQueryParameter = {} as any;
28600
+
28601
+ if (page !== undefined) {
28602
+ localVarQueryParameter['page'] = page;
28603
+ }
28604
+
28605
+ if (pageSize !== undefined) {
28606
+ localVarQueryParameter['pageSize'] = pageSize;
28607
+ }
28608
+
28609
+ if (search !== undefined) {
28610
+ localVarQueryParameter['search'] = search;
28611
+ }
28612
+
28613
+ if (venue !== undefined) {
28614
+ localVarQueryParameter['venue'] = venue;
28615
+ }
28616
+
28617
+
28618
+
28505
28619
  setSearchParams(localVarUrlObj, localVarQueryParameter);
28506
28620
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28507
28621
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -28893,6 +29007,38 @@ export const RSVPV2ApiFp = function(configuration?: Configuration) {
28893
29007
  const localVarOperationServerBasePath = operationServerMap['RSVPV2Api.rSVPV2ControllerGetEventById']?.[localVarOperationServerIndex]?.url;
28894
29008
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28895
29009
  },
29010
+ /**
29011
+ *
29012
+ * @param {string} businessId
29013
+ * @param {number} page
29014
+ * @param {number} pageSize
29015
+ * @param {string} [search]
29016
+ * @param {string} [venue]
29017
+ * @param {*} [options] Override http request option.
29018
+ * @throws {RequiredError}
29019
+ */
29020
+ async rSVPV2ControllerGetEventsByBusiness(businessId: string, page: number, pageSize: number, search?: string, venue?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
29021
+ const localVarAxiosArgs = await localVarAxiosParamCreator.rSVPV2ControllerGetEventsByBusiness(businessId, page, pageSize, search, venue, options);
29022
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
29023
+ const localVarOperationServerBasePath = operationServerMap['RSVPV2Api.rSVPV2ControllerGetEventsByBusiness']?.[localVarOperationServerIndex]?.url;
29024
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29025
+ },
29026
+ /**
29027
+ *
29028
+ * @param {string} venueId
29029
+ * @param {number} page
29030
+ * @param {number} pageSize
29031
+ * @param {string} [search]
29032
+ * @param {string} [venue]
29033
+ * @param {*} [options] Override http request option.
29034
+ * @throws {RequiredError}
29035
+ */
29036
+ async rSVPV2ControllerGetEventsByVenue(venueId: string, page: number, pageSize: number, search?: string, venue?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
29037
+ const localVarAxiosArgs = await localVarAxiosParamCreator.rSVPV2ControllerGetEventsByVenue(venueId, page, pageSize, search, venue, options);
29038
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
29039
+ const localVarOperationServerBasePath = operationServerMap['RSVPV2Api.rSVPV2ControllerGetEventsByVenue']?.[localVarOperationServerIndex]?.url;
29040
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29041
+ },
28896
29042
  /**
28897
29043
  *
28898
29044
  * @param {number} page
@@ -29036,6 +29182,32 @@ export const RSVPV2ApiFactory = function (configuration?: Configuration, basePat
29036
29182
  rSVPV2ControllerGetEventById(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
29037
29183
  return localVarFp.rSVPV2ControllerGetEventById(id, options).then((request) => request(axios, basePath));
29038
29184
  },
29185
+ /**
29186
+ *
29187
+ * @param {string} businessId
29188
+ * @param {number} page
29189
+ * @param {number} pageSize
29190
+ * @param {string} [search]
29191
+ * @param {string} [venue]
29192
+ * @param {*} [options] Override http request option.
29193
+ * @throws {RequiredError}
29194
+ */
29195
+ rSVPV2ControllerGetEventsByBusiness(businessId: string, page: number, pageSize: number, search?: string, venue?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
29196
+ return localVarFp.rSVPV2ControllerGetEventsByBusiness(businessId, page, pageSize, search, venue, options).then((request) => request(axios, basePath));
29197
+ },
29198
+ /**
29199
+ *
29200
+ * @param {string} venueId
29201
+ * @param {number} page
29202
+ * @param {number} pageSize
29203
+ * @param {string} [search]
29204
+ * @param {string} [venue]
29205
+ * @param {*} [options] Override http request option.
29206
+ * @throws {RequiredError}
29207
+ */
29208
+ rSVPV2ControllerGetEventsByVenue(venueId: string, page: number, pageSize: number, search?: string, venue?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
29209
+ return localVarFp.rSVPV2ControllerGetEventsByVenue(venueId, page, pageSize, search, venue, options).then((request) => request(axios, basePath));
29210
+ },
29039
29211
  /**
29040
29212
  *
29041
29213
  * @param {number} page
@@ -29166,6 +29338,36 @@ export class RSVPV2Api extends BaseAPI {
29166
29338
  return RSVPV2ApiFp(this.configuration).rSVPV2ControllerGetEventById(id, options).then((request) => request(this.axios, this.basePath));
29167
29339
  }
29168
29340
 
29341
+ /**
29342
+ *
29343
+ * @param {string} businessId
29344
+ * @param {number} page
29345
+ * @param {number} pageSize
29346
+ * @param {string} [search]
29347
+ * @param {string} [venue]
29348
+ * @param {*} [options] Override http request option.
29349
+ * @throws {RequiredError}
29350
+ * @memberof RSVPV2Api
29351
+ */
29352
+ public rSVPV2ControllerGetEventsByBusiness(businessId: string, page: number, pageSize: number, search?: string, venue?: string, options?: RawAxiosRequestConfig) {
29353
+ return RSVPV2ApiFp(this.configuration).rSVPV2ControllerGetEventsByBusiness(businessId, page, pageSize, search, venue, options).then((request) => request(this.axios, this.basePath));
29354
+ }
29355
+
29356
+ /**
29357
+ *
29358
+ * @param {string} venueId
29359
+ * @param {number} page
29360
+ * @param {number} pageSize
29361
+ * @param {string} [search]
29362
+ * @param {string} [venue]
29363
+ * @param {*} [options] Override http request option.
29364
+ * @throws {RequiredError}
29365
+ * @memberof RSVPV2Api
29366
+ */
29367
+ public rSVPV2ControllerGetEventsByVenue(venueId: string, page: number, pageSize: number, search?: string, venue?: string, options?: RawAxiosRequestConfig) {
29368
+ return RSVPV2ApiFp(this.configuration).rSVPV2ControllerGetEventsByVenue(venueId, page, pageSize, search, venue, options).then((request) => request(this.axios, this.basePath));
29369
+ }
29370
+
29169
29371
  /**
29170
29372
  *
29171
29373
  * @param {number} page
@@ -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-09T07:49:40Z]
10
- **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2026-04-09T07:49:40Z]
9
+ **date** | **string** | The start date of the booking | [default to 2026-04-09T08:58:55Z]
10
+ **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2026-04-09T08:58:55Z]
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-09T07:49:40Z]
10
- **endDate** | **string** | The start date of the booking | [default to 2026-04-09T07:49:40Z]
9
+ **startDate** | **string** | The start date of the booking | [default to 2026-04-09T08:58:55Z]
10
+ **endDate** | **string** | The start date of the booking | [default to 2026-04-09T08:58:55Z]
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-04-09T07:49:40Z]
10
- **endDate** | **string** | The start date of the booking | [default to 2026-04-09T07:49:40Z]
9
+ **startDate** | **string** | The start date of the booking | [default to 2026-04-09T08:58:55Z]
10
+ **endDate** | **string** | The start date of the booking | [default to 2026-04-09T08:58:55Z]
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-04-09T07:49:38Z]
12
- **endDate** | **string** | The end date of the booking | [optional] [default to 2026-04-09T07:49:38Z]
11
+ **startDate** | **string** | The start date of the booking | [optional] [default to 2026-04-09T08:58:53Z]
12
+ **endDate** | **string** | The end date of the booking | [optional] [default to 2026-04-09T08:58:53Z]
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]
package/docs/RSVPV2Api.md CHANGED
@@ -8,6 +8,8 @@ All URIs are relative to *http://localhost:8080*
8
8
  |[**rSVPV2ControllerCreateEvent**](#rsvpv2controllercreateevent) | **POST** /v1/rsvp/v2/events | |
9
9
  |[**rSVPV2ControllerGetAttendees**](#rsvpv2controllergetattendees) | **GET** /v1/rsvp/v2/events/{id}/attendees | |
10
10
  |[**rSVPV2ControllerGetEventById**](#rsvpv2controllergeteventbyid) | **GET** /v1/rsvp/v2/events/{id} | |
11
+ |[**rSVPV2ControllerGetEventsByBusiness**](#rsvpv2controllergeteventsbybusiness) | **GET** /v1/rsvp/v2/events/business/{businessId} | |
12
+ |[**rSVPV2ControllerGetEventsByVenue**](#rsvpv2controllergeteventsbyvenue) | **GET** /v1/rsvp/v2/events/venue/{venueId} | |
11
13
  |[**rSVPV2ControllerGetHostEvents**](#rsvpv2controllergethostevents) | **GET** /v1/rsvp/v2/host/events | |
12
14
  |[**rSVPV2ControllerGetMyEvents**](#rsvpv2controllergetmyevents) | **GET** /v1/rsvp/v2/my/events | |
13
15
  |[**rSVPV2ControllerInvite**](#rsvpv2controllerinvite) | **POST** /v1/rsvp/v2/events/{id}/invite | |
@@ -227,6 +229,130 @@ No authorization required
227
229
 
228
230
  [[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)
229
231
 
232
+ # **rSVPV2ControllerGetEventsByBusiness**
233
+ > rSVPV2ControllerGetEventsByBusiness()
234
+
235
+
236
+ ### Example
237
+
238
+ ```typescript
239
+ import {
240
+ RSVPV2Api,
241
+ Configuration
242
+ } from './api';
243
+
244
+ const configuration = new Configuration();
245
+ const apiInstance = new RSVPV2Api(configuration);
246
+
247
+ let businessId: string; // (default to undefined)
248
+ let page: number; // (default to undefined)
249
+ let pageSize: number; // (default to undefined)
250
+ let search: string; // (optional) (default to undefined)
251
+ let venue: string; // (optional) (default to undefined)
252
+
253
+ const { status, data } = await apiInstance.rSVPV2ControllerGetEventsByBusiness(
254
+ businessId,
255
+ page,
256
+ pageSize,
257
+ search,
258
+ venue
259
+ );
260
+ ```
261
+
262
+ ### Parameters
263
+
264
+ |Name | Type | Description | Notes|
265
+ |------------- | ------------- | ------------- | -------------|
266
+ | **businessId** | [**string**] | | defaults to undefined|
267
+ | **page** | [**number**] | | defaults to undefined|
268
+ | **pageSize** | [**number**] | | defaults to undefined|
269
+ | **search** | [**string**] | | (optional) defaults to undefined|
270
+ | **venue** | [**string**] | | (optional) defaults to undefined|
271
+
272
+
273
+ ### Return type
274
+
275
+ void (empty response body)
276
+
277
+ ### Authorization
278
+
279
+ No authorization required
280
+
281
+ ### HTTP request headers
282
+
283
+ - **Content-Type**: Not defined
284
+ - **Accept**: Not defined
285
+
286
+
287
+ ### HTTP response details
288
+ | Status code | Description | Response headers |
289
+ |-------------|-------------|------------------|
290
+ |**200** | Get list of events for a specific business | - |
291
+
292
+ [[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)
293
+
294
+ # **rSVPV2ControllerGetEventsByVenue**
295
+ > rSVPV2ControllerGetEventsByVenue()
296
+
297
+
298
+ ### Example
299
+
300
+ ```typescript
301
+ import {
302
+ RSVPV2Api,
303
+ Configuration
304
+ } from './api';
305
+
306
+ const configuration = new Configuration();
307
+ const apiInstance = new RSVPV2Api(configuration);
308
+
309
+ let venueId: string; // (default to undefined)
310
+ let page: number; // (default to undefined)
311
+ let pageSize: number; // (default to undefined)
312
+ let search: string; // (optional) (default to undefined)
313
+ let venue: string; // (optional) (default to undefined)
314
+
315
+ const { status, data } = await apiInstance.rSVPV2ControllerGetEventsByVenue(
316
+ venueId,
317
+ page,
318
+ pageSize,
319
+ search,
320
+ venue
321
+ );
322
+ ```
323
+
324
+ ### Parameters
325
+
326
+ |Name | Type | Description | Notes|
327
+ |------------- | ------------- | ------------- | -------------|
328
+ | **venueId** | [**string**] | | defaults to undefined|
329
+ | **page** | [**number**] | | defaults to undefined|
330
+ | **pageSize** | [**number**] | | defaults to undefined|
331
+ | **search** | [**string**] | | (optional) defaults to undefined|
332
+ | **venue** | [**string**] | | (optional) defaults to undefined|
333
+
334
+
335
+ ### Return type
336
+
337
+ void (empty response body)
338
+
339
+ ### Authorization
340
+
341
+ No authorization required
342
+
343
+ ### HTTP request headers
344
+
345
+ - **Content-Type**: Not defined
346
+ - **Accept**: Not defined
347
+
348
+
349
+ ### HTTP response details
350
+ | Status code | Description | Response headers |
351
+ |-------------|-------------|------------------|
352
+ |**200** | Get list of events for a specific venue | - |
353
+
354
+ [[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)
355
+
230
356
  # **rSVPV2ControllerGetHostEvents**
231
357
  > rSVPV2ControllerGetHostEvents()
232
358
 
@@ -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-09T07:49:40Z]
8
+ **date** | **string** | The start date of the booking | [default to 2026-04-09T08:58:55Z]
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-09T07:49:40Z]
9
- **endDate** | **string** | The end date of the waitlist | [default to 2026-04-09T08:49:40Z]
8
+ **startDate** | **string** | The start date of the waitlist | [default to 2026-04-09T08:58:55Z]
9
+ **endDate** | **string** | The end date of the waitlist | [default to 2026-04-09T09:58:55Z]
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.98",
3
+ "version": "4.5.100",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},