@gooday_corp/gooday-api-client 4.4.26 → 4.4.27

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
@@ -7548,6 +7548,45 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
7548
7548
  options: localVarRequestOptions,
7549
7549
  };
7550
7550
  },
7551
+ /**
7552
+ *
7553
+ * @param {AcceptBookingInvitePayload} acceptBookingInvitePayload
7554
+ * @param {*} [options] Override http request option.
7555
+ * @throws {RequiredError}
7556
+ */
7557
+ bookingControllerRevertBookingStatus: async (acceptBookingInvitePayload: AcceptBookingInvitePayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7558
+ // verify required parameter 'acceptBookingInvitePayload' is not null or undefined
7559
+ assertParamExists('bookingControllerRevertBookingStatus', 'acceptBookingInvitePayload', acceptBookingInvitePayload)
7560
+ const localVarPath = `/v1/booking/revert-booking-status`;
7561
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7562
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7563
+ let baseOptions;
7564
+ if (configuration) {
7565
+ baseOptions = configuration.baseOptions;
7566
+ }
7567
+
7568
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7569
+ const localVarHeaderParameter = {} as any;
7570
+ const localVarQueryParameter = {} as any;
7571
+
7572
+ // authentication bearer required
7573
+ // http bearer authentication required
7574
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7575
+
7576
+
7577
+
7578
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7579
+
7580
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7581
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7582
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7583
+ localVarRequestOptions.data = serializeDataIfNeeded(acceptBookingInvitePayload, localVarRequestOptions, configuration)
7584
+
7585
+ return {
7586
+ url: toPathString(localVarUrlObj),
7587
+ options: localVarRequestOptions,
7588
+ };
7589
+ },
7551
7590
  /**
7552
7591
  *
7553
7592
  * @param {TrendingFilterDTO} trendingFilterDTO
@@ -7832,6 +7871,18 @@ export const BookingApiFp = function(configuration?: Configuration) {
7832
7871
  const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerRescheduleBooking']?.[localVarOperationServerIndex]?.url;
7833
7872
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7834
7873
  },
7874
+ /**
7875
+ *
7876
+ * @param {AcceptBookingInvitePayload} acceptBookingInvitePayload
7877
+ * @param {*} [options] Override http request option.
7878
+ * @throws {RequiredError}
7879
+ */
7880
+ async bookingControllerRevertBookingStatus(acceptBookingInvitePayload: AcceptBookingInvitePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingRequestResponseDTO>> {
7881
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerRevertBookingStatus(acceptBookingInvitePayload, options);
7882
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7883
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerRevertBookingStatus']?.[localVarOperationServerIndex]?.url;
7884
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7885
+ },
7835
7886
  /**
7836
7887
  *
7837
7888
  * @param {TrendingFilterDTO} trendingFilterDTO
@@ -8011,6 +8062,15 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
8011
8062
  bookingControllerRescheduleBooking(id: string, rescheduleBookingPayload: RescheduleBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponseDTO> {
8012
8063
  return localVarFp.bookingControllerRescheduleBooking(id, rescheduleBookingPayload, options).then((request) => request(axios, basePath));
8013
8064
  },
8065
+ /**
8066
+ *
8067
+ * @param {AcceptBookingInvitePayload} acceptBookingInvitePayload
8068
+ * @param {*} [options] Override http request option.
8069
+ * @throws {RequiredError}
8070
+ */
8071
+ bookingControllerRevertBookingStatus(acceptBookingInvitePayload: AcceptBookingInvitePayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingRequestResponseDTO> {
8072
+ return localVarFp.bookingControllerRevertBookingStatus(acceptBookingInvitePayload, options).then((request) => request(axios, basePath));
8073
+ },
8014
8074
  /**
8015
8075
  *
8016
8076
  * @param {TrendingFilterDTO} trendingFilterDTO
@@ -8198,6 +8258,16 @@ export class BookingApi extends BaseAPI {
8198
8258
  return BookingApiFp(this.configuration).bookingControllerRescheduleBooking(id, rescheduleBookingPayload, options).then((request) => request(this.axios, this.basePath));
8199
8259
  }
8200
8260
 
8261
+ /**
8262
+ *
8263
+ * @param {AcceptBookingInvitePayload} acceptBookingInvitePayload
8264
+ * @param {*} [options] Override http request option.
8265
+ * @throws {RequiredError}
8266
+ */
8267
+ public bookingControllerRevertBookingStatus(acceptBookingInvitePayload: AcceptBookingInvitePayload, options?: RawAxiosRequestConfig) {
8268
+ return BookingApiFp(this.configuration).bookingControllerRevertBookingStatus(acceptBookingInvitePayload, options).then((request) => request(this.axios, this.basePath));
8269
+ }
8270
+
8201
8271
  /**
8202
8272
  *
8203
8273
  * @param {TrendingFilterDTO} trendingFilterDTO
@@ -13026,6 +13096,45 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
13026
13096
  options: localVarRequestOptions,
13027
13097
  };
13028
13098
  },
13099
+ /**
13100
+ *
13101
+ * @param {AcceptEventInvitePayload} acceptEventInvitePayload
13102
+ * @param {*} [options] Override http request option.
13103
+ * @throws {RequiredError}
13104
+ */
13105
+ eventControllerRevertEventStatus: async (acceptEventInvitePayload: AcceptEventInvitePayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13106
+ // verify required parameter 'acceptEventInvitePayload' is not null or undefined
13107
+ assertParamExists('eventControllerRevertEventStatus', 'acceptEventInvitePayload', acceptEventInvitePayload)
13108
+ const localVarPath = `/v1/event/revert-event-status`;
13109
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13110
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13111
+ let baseOptions;
13112
+ if (configuration) {
13113
+ baseOptions = configuration.baseOptions;
13114
+ }
13115
+
13116
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
13117
+ const localVarHeaderParameter = {} as any;
13118
+ const localVarQueryParameter = {} as any;
13119
+
13120
+ // authentication bearer required
13121
+ // http bearer authentication required
13122
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13123
+
13124
+
13125
+
13126
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13127
+
13128
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13129
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13130
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13131
+ localVarRequestOptions.data = serializeDataIfNeeded(acceptEventInvitePayload, localVarRequestOptions, configuration)
13132
+
13133
+ return {
13134
+ url: toPathString(localVarUrlObj),
13135
+ options: localVarRequestOptions,
13136
+ };
13137
+ },
13029
13138
  /**
13030
13139
  *
13031
13140
  * @param {CreateEventPayloadDTO} createEventPayloadDTO
@@ -13146,6 +13255,18 @@ export const EventsApiFp = function(configuration?: Configuration) {
13146
13255
  const localVarOperationServerBasePath = operationServerMap['EventsApi.eventControllerRejectEventInvite']?.[localVarOperationServerIndex]?.url;
13147
13256
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13148
13257
  },
13258
+ /**
13259
+ *
13260
+ * @param {AcceptEventInvitePayload} acceptEventInvitePayload
13261
+ * @param {*} [options] Override http request option.
13262
+ * @throws {RequiredError}
13263
+ */
13264
+ async eventControllerRevertEventStatus(acceptEventInvitePayload: AcceptEventInvitePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventResponseDTO>> {
13265
+ const localVarAxiosArgs = await localVarAxiosParamCreator.eventControllerRevertEventStatus(acceptEventInvitePayload, options);
13266
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13267
+ const localVarOperationServerBasePath = operationServerMap['EventsApi.eventControllerRevertEventStatus']?.[localVarOperationServerIndex]?.url;
13268
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13269
+ },
13149
13270
  /**
13150
13271
  *
13151
13272
  * @param {CreateEventPayloadDTO} createEventPayloadDTO
@@ -13221,6 +13342,15 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
13221
13342
  eventControllerRejectEventInvite(rejectEventInvitePayload: RejectEventInvitePayload, options?: RawAxiosRequestConfig): AxiosPromise<EventDTO> {
13222
13343
  return localVarFp.eventControllerRejectEventInvite(rejectEventInvitePayload, options).then((request) => request(axios, basePath));
13223
13344
  },
13345
+ /**
13346
+ *
13347
+ * @param {AcceptEventInvitePayload} acceptEventInvitePayload
13348
+ * @param {*} [options] Override http request option.
13349
+ * @throws {RequiredError}
13350
+ */
13351
+ eventControllerRevertEventStatus(acceptEventInvitePayload: AcceptEventInvitePayload, options?: RawAxiosRequestConfig): AxiosPromise<EventResponseDTO> {
13352
+ return localVarFp.eventControllerRevertEventStatus(acceptEventInvitePayload, options).then((request) => request(axios, basePath));
13353
+ },
13224
13354
  /**
13225
13355
  *
13226
13356
  * @param {CreateEventPayloadDTO} createEventPayloadDTO
@@ -13297,6 +13427,16 @@ export class EventsApi extends BaseAPI {
13297
13427
  return EventsApiFp(this.configuration).eventControllerRejectEventInvite(rejectEventInvitePayload, options).then((request) => request(this.axios, this.basePath));
13298
13428
  }
13299
13429
 
13430
+ /**
13431
+ *
13432
+ * @param {AcceptEventInvitePayload} acceptEventInvitePayload
13433
+ * @param {*} [options] Override http request option.
13434
+ * @throws {RequiredError}
13435
+ */
13436
+ public eventControllerRevertEventStatus(acceptEventInvitePayload: AcceptEventInvitePayload, options?: RawAxiosRequestConfig) {
13437
+ return EventsApiFp(this.configuration).eventControllerRevertEventStatus(acceptEventInvitePayload, options).then((request) => request(this.axios, this.basePath));
13438
+ }
13439
+
13300
13440
  /**
13301
13441
  *
13302
13442
  * @param {CreateEventPayloadDTO} createEventPayloadDTO
@@ -20,6 +20,7 @@ All URIs are relative to *http://localhost:8080*
20
20
  |[**bookingControllerRegularBookingAvailability**](#bookingcontrollerregularbookingavailability) | **POST** /v1/booking/availability | |
21
21
  |[**bookingControllerRejectBookingInvite**](#bookingcontrollerrejectbookinginvite) | **POST** /v1/booking/reject | |
22
22
  |[**bookingControllerRescheduleBooking**](#bookingcontrollerreschedulebooking) | **PUT** /v1/booking/reschedule/{id} | |
23
+ |[**bookingControllerRevertBookingStatus**](#bookingcontrollerrevertbookingstatus) | **POST** /v1/booking/revert-booking-status | |
23
24
  |[**bookingControllerTrendingEvents**](#bookingcontrollertrendingevents) | **POST** /v1/booking/trending-events | |
24
25
  |[**bookingControllerUpdateBooking**](#bookingcontrollerupdatebooking) | **PUT** /v1/booking/{id} | |
25
26
 
@@ -833,6 +834,57 @@ const { status, data } = await apiInstance.bookingControllerRescheduleBooking(
833
834
  - **Accept**: application/json
834
835
 
835
836
 
837
+ ### HTTP response details
838
+ | Status code | Description | Response headers |
839
+ |-------------|-------------|------------------|
840
+ |**0** | | - |
841
+
842
+ [[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)
843
+
844
+ # **bookingControllerRevertBookingStatus**
845
+ > BookingRequestResponseDTO bookingControllerRevertBookingStatus(acceptBookingInvitePayload)
846
+
847
+
848
+ ### Example
849
+
850
+ ```typescript
851
+ import {
852
+ BookingApi,
853
+ Configuration,
854
+ AcceptBookingInvitePayload
855
+ } from './api';
856
+
857
+ const configuration = new Configuration();
858
+ const apiInstance = new BookingApi(configuration);
859
+
860
+ let acceptBookingInvitePayload: AcceptBookingInvitePayload; //
861
+
862
+ const { status, data } = await apiInstance.bookingControllerRevertBookingStatus(
863
+ acceptBookingInvitePayload
864
+ );
865
+ ```
866
+
867
+ ### Parameters
868
+
869
+ |Name | Type | Description | Notes|
870
+ |------------- | ------------- | ------------- | -------------|
871
+ | **acceptBookingInvitePayload** | **AcceptBookingInvitePayload**| | |
872
+
873
+
874
+ ### Return type
875
+
876
+ **BookingRequestResponseDTO**
877
+
878
+ ### Authorization
879
+
880
+ [bearer](../README.md#bearer)
881
+
882
+ ### HTTP request headers
883
+
884
+ - **Content-Type**: application/json
885
+ - **Accept**: application/json
886
+
887
+
836
888
  ### HTTP response details
837
889
  | Status code | Description | Response headers |
838
890
  |-------------|-------------|------------------|
@@ -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-11-25T18:48:09+05:30]
10
- **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-11-25T18:48:09+05:30]
9
+ **date** | **string** | The start date of the booking | [default to 2025-11-27T16:46:12+05:30]
10
+ **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-11-27T16:46:12+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]
@@ -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 2025-11-25T18:48:09+05:30]
10
- **endDate** | **string** | The start date of the booking | [default to 2025-11-25T18:48:09+05:30]
9
+ **startDate** | **string** | The start date of the booking | [default to 2025-11-27T16:46:12+05:30]
10
+ **endDate** | **string** | The start date of the booking | [default to 2025-11-27T16:46:12+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&lt;string&gt;** | Calendar attached with booking | [optional] [default to undefined]
package/docs/EventsApi.md CHANGED
@@ -10,6 +10,7 @@ All URIs are relative to *http://localhost:8080*
10
10
  |[**eventControllerDeleteEvents**](#eventcontrollerdeleteevents) | **DELETE** /v1/event | |
11
11
  |[**eventControllerEventDetail**](#eventcontrollereventdetail) | **GET** /v1/event/{id} | |
12
12
  |[**eventControllerRejectEventInvite**](#eventcontrollerrejecteventinvite) | **POST** /v1/event/reject | |
13
+ |[**eventControllerRevertEventStatus**](#eventcontrollerreverteventstatus) | **PUT** /v1/event/revert-event-status | |
13
14
  |[**eventControllerUpdateEvents**](#eventcontrollerupdateevents) | **PUT** /v1/event | |
14
15
 
15
16
  # **eventControllerAcceptEventInvite**
@@ -317,6 +318,57 @@ const { status, data } = await apiInstance.eventControllerRejectEventInvite(
317
318
 
318
319
  [[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)
319
320
 
321
+ # **eventControllerRevertEventStatus**
322
+ > EventResponseDTO eventControllerRevertEventStatus(acceptEventInvitePayload)
323
+
324
+
325
+ ### Example
326
+
327
+ ```typescript
328
+ import {
329
+ EventsApi,
330
+ Configuration,
331
+ AcceptEventInvitePayload
332
+ } from './api';
333
+
334
+ const configuration = new Configuration();
335
+ const apiInstance = new EventsApi(configuration);
336
+
337
+ let acceptEventInvitePayload: AcceptEventInvitePayload; //
338
+
339
+ const { status, data } = await apiInstance.eventControllerRevertEventStatus(
340
+ acceptEventInvitePayload
341
+ );
342
+ ```
343
+
344
+ ### Parameters
345
+
346
+ |Name | Type | Description | Notes|
347
+ |------------- | ------------- | ------------- | -------------|
348
+ | **acceptEventInvitePayload** | **AcceptEventInvitePayload**| | |
349
+
350
+
351
+ ### Return type
352
+
353
+ **EventResponseDTO**
354
+
355
+ ### Authorization
356
+
357
+ [bearer](../README.md#bearer)
358
+
359
+ ### HTTP request headers
360
+
361
+ - **Content-Type**: application/json
362
+ - **Accept**: application/json
363
+
364
+
365
+ ### HTTP response details
366
+ | Status code | Description | Response headers |
367
+ |-------------|-------------|------------------|
368
+ |**200** | | - |
369
+
370
+ [[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)
371
+
320
372
  # **eventControllerUpdateEvents**
321
373
  > EventResponseDTO eventControllerUpdateEvents(createEventPayloadDTO)
322
374
 
@@ -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-11-25T18:48:09+05:30]
8
+ **date** | **string** | The start date of the booking | [default to 2025-11-27T16:46:12+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-11-25T18:48:09+05:30]
9
- **endDate** | **string** | The end date of the waitlist | [default to 2025-11-25T19:48:09+05:30]
8
+ **startDate** | **string** | The start date of the waitlist | [default to 2025-11-27T16:46:12+05:30]
9
+ **endDate** | **string** | The end date of the waitlist | [default to 2025-11-27T17:46:12+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&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.4.26",
3
+ "version": "4.4.27",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},