@gooday_corp/gooday-api-client 1.4.3 → 1.4.4

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.
@@ -89,6 +89,7 @@ docs/CalendarEventResponseDTO.md
89
89
  docs/CalendarEvents.md
90
90
  docs/CalendarEventsDTO.md
91
91
  docs/CalendarEventsListPayload.md
92
+ docs/CalendarEventsSlotsDTO.md
92
93
  docs/CalendarListResponse.md
93
94
  docs/CalendarListResponseDTO.md
94
95
  docs/CalendarResponseDTO.md
package/api.ts CHANGED
@@ -2822,6 +2822,25 @@ export const CalendarEventsListPayloadViewEnum = {
2822
2822
 
2823
2823
  export type CalendarEventsListPayloadViewEnum = typeof CalendarEventsListPayloadViewEnum[keyof typeof CalendarEventsListPayloadViewEnum];
2824
2824
 
2825
+ /**
2826
+ *
2827
+ * @export
2828
+ * @interface CalendarEventsSlotsDTO
2829
+ */
2830
+ export interface CalendarEventsSlotsDTO {
2831
+ /**
2832
+ * statusCode
2833
+ * @type {number}
2834
+ * @memberof CalendarEventsSlotsDTO
2835
+ */
2836
+ 'statusCode': number;
2837
+ /**
2838
+ * Events slots response
2839
+ * @type {Array<CalendarSlots>}
2840
+ * @memberof CalendarEventsSlotsDTO
2841
+ */
2842
+ 'data': Array<CalendarSlots>;
2843
+ }
2825
2844
  /**
2826
2845
  *
2827
2846
  * @export
@@ -7645,7 +7664,7 @@ export interface StandardBookingSlotsPayload {
7645
7664
  * @type {Array<string>}
7646
7665
  * @memberof StandardBookingSlotsPayload
7647
7666
  */
7648
- 'staffs': Array<string>;
7667
+ 'staffs'?: Array<string>;
7649
7668
  /**
7650
7669
  * Venue ID
7651
7670
  * @type {string}
@@ -9820,7 +9839,7 @@ export interface WhatsOnSlotsPayload {
9820
9839
  * @type {Array<string>}
9821
9840
  * @memberof WhatsOnSlotsPayload
9822
9841
  */
9823
- 'staffs': Array<string>;
9842
+ 'staffs'?: Array<string>;
9824
9843
  /**
9825
9844
  * WhatsOn ID
9826
9845
  * @type {string}
@@ -14952,6 +14971,45 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
14952
14971
  options: localVarRequestOptions,
14953
14972
  };
14954
14973
  },
14974
+ /**
14975
+ *
14976
+ * @param {StandardBookingSlotsPayload} standardBookingSlotsPayload
14977
+ * @param {*} [options] Override http request option.
14978
+ * @throws {RequiredError}
14979
+ */
14980
+ calendarControllerListAvailableSlotsForEventBooking: async (standardBookingSlotsPayload: StandardBookingSlotsPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14981
+ // verify required parameter 'standardBookingSlotsPayload' is not null or undefined
14982
+ assertParamExists('calendarControllerListAvailableSlotsForEventBooking', 'standardBookingSlotsPayload', standardBookingSlotsPayload)
14983
+ const localVarPath = `/v1/calendar/slots/standard/events`;
14984
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14985
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14986
+ let baseOptions;
14987
+ if (configuration) {
14988
+ baseOptions = configuration.baseOptions;
14989
+ }
14990
+
14991
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14992
+ const localVarHeaderParameter = {} as any;
14993
+ const localVarQueryParameter = {} as any;
14994
+
14995
+ // authentication bearer required
14996
+ // http bearer authentication required
14997
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14998
+
14999
+
15000
+
15001
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15002
+
15003
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15004
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15005
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15006
+ localVarRequestOptions.data = serializeDataIfNeeded(standardBookingSlotsPayload, localVarRequestOptions, configuration)
15007
+
15008
+ return {
15009
+ url: toPathString(localVarUrlObj),
15010
+ options: localVarRequestOptions,
15011
+ };
15012
+ },
14955
15013
  /**
14956
15014
  *
14957
15015
  * @param {CalendarEventsListPayload} calendarEventsListPayload
@@ -15433,6 +15491,18 @@ export const CalendarApiFp = function(configuration?: Configuration) {
15433
15491
  const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerDeleteCalendarInvitation']?.[localVarOperationServerIndex]?.url;
15434
15492
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15435
15493
  },
15494
+ /**
15495
+ *
15496
+ * @param {StandardBookingSlotsPayload} standardBookingSlotsPayload
15497
+ * @param {*} [options] Override http request option.
15498
+ * @throws {RequiredError}
15499
+ */
15500
+ async calendarControllerListAvailableSlotsForEventBooking(standardBookingSlotsPayload: StandardBookingSlotsPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarEventsSlotsDTO>> {
15501
+ const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListAvailableSlotsForEventBooking(standardBookingSlotsPayload, options);
15502
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15503
+ const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListAvailableSlotsForEventBooking']?.[localVarOperationServerIndex]?.url;
15504
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15505
+ },
15436
15506
  /**
15437
15507
  *
15438
15508
  * @param {CalendarEventsListPayload} calendarEventsListPayload
@@ -15610,6 +15680,15 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
15610
15680
  calendarControllerDeleteCalendarInvitation(deleteCalendarInvitation: DeleteCalendarInvitation, options?: RawAxiosRequestConfig): AxiosPromise<DeleteCalendarInvitationResponseDTO> {
15611
15681
  return localVarFp.calendarControllerDeleteCalendarInvitation(deleteCalendarInvitation, options).then((request) => request(axios, basePath));
15612
15682
  },
15683
+ /**
15684
+ *
15685
+ * @param {StandardBookingSlotsPayload} standardBookingSlotsPayload
15686
+ * @param {*} [options] Override http request option.
15687
+ * @throws {RequiredError}
15688
+ */
15689
+ calendarControllerListAvailableSlotsForEventBooking(standardBookingSlotsPayload: StandardBookingSlotsPayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarEventsSlotsDTO> {
15690
+ return localVarFp.calendarControllerListAvailableSlotsForEventBooking(standardBookingSlotsPayload, options).then((request) => request(axios, basePath));
15691
+ },
15613
15692
  /**
15614
15693
  *
15615
15694
  * @param {CalendarEventsListPayload} calendarEventsListPayload
@@ -15762,6 +15841,17 @@ export class CalendarApi extends BaseAPI {
15762
15841
  return CalendarApiFp(this.configuration).calendarControllerDeleteCalendarInvitation(deleteCalendarInvitation, options).then((request) => request(this.axios, this.basePath));
15763
15842
  }
15764
15843
 
15844
+ /**
15845
+ *
15846
+ * @param {StandardBookingSlotsPayload} standardBookingSlotsPayload
15847
+ * @param {*} [options] Override http request option.
15848
+ * @throws {RequiredError}
15849
+ * @memberof CalendarApi
15850
+ */
15851
+ public calendarControllerListAvailableSlotsForEventBooking(standardBookingSlotsPayload: StandardBookingSlotsPayload, options?: RawAxiosRequestConfig) {
15852
+ return CalendarApiFp(this.configuration).calendarControllerListAvailableSlotsForEventBooking(standardBookingSlotsPayload, options).then((request) => request(this.axios, this.basePath));
15853
+ }
15854
+
15765
15855
  /**
15766
15856
  *
15767
15857
  * @param {CalendarEventsListPayload} calendarEventsListPayload
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost:8080*
8
8
  |[**calendarControllerCollaboratorsByCalendar**](#calendarcontrollercollaboratorsbycalendar) | **GET** /v1/calendar/{id}/collaborators | |
9
9
  |[**calendarControllerCreateSharedCalendar**](#calendarcontrollercreatesharedcalendar) | **POST** /v1/calendar | |
10
10
  |[**calendarControllerDeleteCalendarInvitation**](#calendarcontrollerdeletecalendarinvitation) | **PUT** /v1/calendar/invitation | |
11
+ |[**calendarControllerListAvailableSlotsForEventBooking**](#calendarcontrollerlistavailableslotsforeventbooking) | **POST** /v1/calendar/slots/standard/events | |
11
12
  |[**calendarControllerListCalendarsEvents**](#calendarcontrollerlistcalendarsevents) | **POST** /v1/calendar/list-events | |
12
13
  |[**calendarControllerListEvents**](#calendarcontrollerlistevents) | **POST** /v1/calendar/events | |
13
14
  |[**calendarControllerListMyCalendar**](#calendarcontrollerlistmycalendar) | **GET** /v1/calendar | |
@@ -216,6 +217,57 @@ const { status, data } = await apiInstance.calendarControllerDeleteCalendarInvit
216
217
  - **Accept**: application/json
217
218
 
218
219
 
220
+ ### HTTP response details
221
+ | Status code | Description | Response headers |
222
+ |-------------|-------------|------------------|
223
+ |**0** | | - |
224
+
225
+ [[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)
226
+
227
+ # **calendarControllerListAvailableSlotsForEventBooking**
228
+ > CalendarEventsSlotsDTO calendarControllerListAvailableSlotsForEventBooking(standardBookingSlotsPayload)
229
+
230
+
231
+ ### Example
232
+
233
+ ```typescript
234
+ import {
235
+ CalendarApi,
236
+ Configuration,
237
+ StandardBookingSlotsPayload
238
+ } from './api';
239
+
240
+ const configuration = new Configuration();
241
+ const apiInstance = new CalendarApi(configuration);
242
+
243
+ let standardBookingSlotsPayload: StandardBookingSlotsPayload; //
244
+
245
+ const { status, data } = await apiInstance.calendarControllerListAvailableSlotsForEventBooking(
246
+ standardBookingSlotsPayload
247
+ );
248
+ ```
249
+
250
+ ### Parameters
251
+
252
+ |Name | Type | Description | Notes|
253
+ |------------- | ------------- | ------------- | -------------|
254
+ | **standardBookingSlotsPayload** | **StandardBookingSlotsPayload**| | |
255
+
256
+
257
+ ### Return type
258
+
259
+ **CalendarEventsSlotsDTO**
260
+
261
+ ### Authorization
262
+
263
+ [bearer](../README.md#bearer)
264
+
265
+ ### HTTP request headers
266
+
267
+ - **Content-Type**: application/json
268
+ - **Accept**: application/json
269
+
270
+
219
271
  ### HTTP response details
220
272
  | Status code | Description | Response headers |
221
273
  |-------------|-------------|------------------|
@@ -0,0 +1,22 @@
1
+ # CalendarEventsSlotsDTO
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **statusCode** | **number** | statusCode | [default to undefined]
9
+ **data** | [**Array&lt;CalendarSlots&gt;**](CalendarSlots.md) | Events slots response | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { CalendarEventsSlotsDTO } from './api';
15
+
16
+ const instance: CalendarEventsSlotsDTO = {
17
+ statusCode,
18
+ data,
19
+ };
20
+ ```
21
+
22
+ [[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
- **date** | **string** | The start date of the booking | [default to 2025-06-20T10:41:29+05:30]
10
- **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-06-20T10:41:29+05:30]
9
+ **date** | **string** | The start date of the booking | [default to 2025-06-20T12:09:31+05:30]
10
+ **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-06-20T12:09:31+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]
@@ -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-06-20T10:41:29+05:30]
8
+ **date** | **string** | The start date of the booking | [default to 2025-06-20T12:09:31+05:30]
9
9
  **from** | **string** | | [optional] [default to undefined]
10
10
  **to** | **string** | | [optional] [default to undefined]
11
11
 
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **startDate** | **string** | Start date for the events | [default to undefined]
9
9
  **endDate** | **string** | End date for the events | [default to undefined]
10
10
  **collaborators** | **Array&lt;string&gt;** | List of collaborators associated with the booking | [default to undefined]
11
- **staffs** | **Array&lt;string&gt;** | List of staff associated with the booking | [default to undefined]
11
+ **staffs** | **Array&lt;string&gt;** | List of staff associated with the booking | [optional] [default to undefined]
12
12
  **id** | **string** | Venue ID | [optional] [default to undefined]
13
13
  **activityUser** | **boolean** | | [optional] [default to false]
14
14
 
@@ -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-06-20T10:41:29+05:30]
9
- **endDate** | **string** | The end date of the waitlist | [default to 2025-06-20T11:41:29+05:30]
8
+ **startDate** | **string** | The start date of the waitlist | [default to 2025-06-20T12:09:31+05:30]
9
+ **endDate** | **string** | The end date of the waitlist | [default to 2025-06-20T13:09:31+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]
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **startDate** | **string** | Start date for the events | [default to undefined]
9
9
  **endDate** | **string** | End date for the events | [default to undefined]
10
10
  **collaborators** | **Array&lt;string&gt;** | List of collaborators associated with the booking | [default to undefined]
11
- **staffs** | **Array&lt;string&gt;** | List of staff associated with the booking | [default to undefined]
11
+ **staffs** | **Array&lt;string&gt;** | List of staff associated with the booking | [optional] [default to undefined]
12
12
  **id** | **string** | WhatsOn ID | [default to undefined]
13
13
 
14
14
  ## Example
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},