@gooday_corp/gooday-api-client 2.2.3 → 2.2.7

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
@@ -3170,6 +3170,12 @@ export interface CalendarSlots {
3170
3170
  * @memberof CalendarSlots
3171
3171
  */
3172
3172
  'end': string;
3173
+ /**
3174
+ * Slot is available or not
3175
+ * @type {boolean}
3176
+ * @memberof CalendarSlots
3177
+ */
3178
+ 'isBusinessAvailable': boolean;
3173
3179
  /**
3174
3180
  * Slot is available or not
3175
3181
  * @type {boolean}
@@ -16125,6 +16131,43 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
16125
16131
  options: localVarRequestOptions,
16126
16132
  };
16127
16133
  },
16134
+ /**
16135
+ *
16136
+ * @param {string} id
16137
+ * @param {*} [options] Override http request option.
16138
+ * @throws {RequiredError}
16139
+ */
16140
+ calendarControllerAllCollaboratorsByCalendar: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16141
+ // verify required parameter 'id' is not null or undefined
16142
+ assertParamExists('calendarControllerAllCollaboratorsByCalendar', 'id', id)
16143
+ const localVarPath = `/v1/calendar/{id}/all/collaborators`
16144
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
16145
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16146
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16147
+ let baseOptions;
16148
+ if (configuration) {
16149
+ baseOptions = configuration.baseOptions;
16150
+ }
16151
+
16152
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16153
+ const localVarHeaderParameter = {} as any;
16154
+ const localVarQueryParameter = {} as any;
16155
+
16156
+ // authentication bearer required
16157
+ // http bearer authentication required
16158
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16159
+
16160
+
16161
+
16162
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16163
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16164
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16165
+
16166
+ return {
16167
+ url: toPathString(localVarUrlObj),
16168
+ options: localVarRequestOptions,
16169
+ };
16170
+ },
16128
16171
  /**
16129
16172
  *
16130
16173
  * @param {string} id
@@ -16724,6 +16767,18 @@ export const CalendarApiFp = function(configuration?: Configuration) {
16724
16767
  const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerAcceptCalendarInvite']?.[localVarOperationServerIndex]?.url;
16725
16768
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16726
16769
  },
16770
+ /**
16771
+ *
16772
+ * @param {string} id
16773
+ * @param {*} [options] Override http request option.
16774
+ * @throws {RequiredError}
16775
+ */
16776
+ async calendarControllerAllCollaboratorsByCalendar(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
16777
+ const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerAllCollaboratorsByCalendar(id, options);
16778
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16779
+ const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerAllCollaboratorsByCalendar']?.[localVarOperationServerIndex]?.url;
16780
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16781
+ },
16727
16782
  /**
16728
16783
  *
16729
16784
  * @param {string} id
@@ -16922,6 +16977,15 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
16922
16977
  calendarControllerAcceptCalendarInvite(acceptCollaborateInvitePayload: AcceptCollaborateInvitePayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarDTO> {
16923
16978
  return localVarFp.calendarControllerAcceptCalendarInvite(acceptCollaborateInvitePayload, options).then((request) => request(axios, basePath));
16924
16979
  },
16980
+ /**
16981
+ *
16982
+ * @param {string} id
16983
+ * @param {*} [options] Override http request option.
16984
+ * @throws {RequiredError}
16985
+ */
16986
+ calendarControllerAllCollaboratorsByCalendar(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
16987
+ return localVarFp.calendarControllerAllCollaboratorsByCalendar(id, options).then((request) => request(axios, basePath));
16988
+ },
16925
16989
  /**
16926
16990
  *
16927
16991
  * @param {string} id
@@ -17077,6 +17141,17 @@ export class CalendarApi extends BaseAPI {
17077
17141
  return CalendarApiFp(this.configuration).calendarControllerAcceptCalendarInvite(acceptCollaborateInvitePayload, options).then((request) => request(this.axios, this.basePath));
17078
17142
  }
17079
17143
 
17144
+ /**
17145
+ *
17146
+ * @param {string} id
17147
+ * @param {*} [options] Override http request option.
17148
+ * @throws {RequiredError}
17149
+ * @memberof CalendarApi
17150
+ */
17151
+ public calendarControllerAllCollaboratorsByCalendar(id: string, options?: RawAxiosRequestConfig) {
17152
+ return CalendarApiFp(this.configuration).calendarControllerAllCollaboratorsByCalendar(id, options).then((request) => request(this.axios, this.basePath));
17153
+ }
17154
+
17080
17155
  /**
17081
17156
  *
17082
17157
  * @param {string} id
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost:8080*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**calendarControllerAcceptCalendarInvite**](#calendarcontrolleracceptcalendarinvite) | **POST** /v1/calendar/invite/accept | |
8
+ |[**calendarControllerAllCollaboratorsByCalendar**](#calendarcontrollerallcollaboratorsbycalendar) | **GET** /v1/calendar/{id}/all/collaborators | |
8
9
  |[**calendarControllerCollaboratorsByCalendar**](#calendarcontrollercollaboratorsbycalendar) | **GET** /v1/calendar/{id}/collaborators | |
9
10
  |[**calendarControllerCreateSharedCalendar**](#calendarcontrollercreatesharedcalendar) | **POST** /v1/calendar | |
10
11
  |[**calendarControllerDeleteCalendarInvitation**](#calendarcontrollerdeletecalendarinvitation) | **PUT** /v1/calendar/invitation | |
@@ -72,6 +73,56 @@ const { status, data } = await apiInstance.calendarControllerAcceptCalendarInvit
72
73
 
73
74
  [[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)
74
75
 
76
+ # **calendarControllerAllCollaboratorsByCalendar**
77
+ > calendarControllerAllCollaboratorsByCalendar()
78
+
79
+
80
+ ### Example
81
+
82
+ ```typescript
83
+ import {
84
+ CalendarApi,
85
+ Configuration
86
+ } from './api';
87
+
88
+ const configuration = new Configuration();
89
+ const apiInstance = new CalendarApi(configuration);
90
+
91
+ let id: string; // (default to undefined)
92
+
93
+ const { status, data } = await apiInstance.calendarControllerAllCollaboratorsByCalendar(
94
+ id
95
+ );
96
+ ```
97
+
98
+ ### Parameters
99
+
100
+ |Name | Type | Description | Notes|
101
+ |------------- | ------------- | ------------- | -------------|
102
+ | **id** | [**string**] | | defaults to undefined|
103
+
104
+
105
+ ### Return type
106
+
107
+ void (empty response body)
108
+
109
+ ### Authorization
110
+
111
+ [bearer](../README.md#bearer)
112
+
113
+ ### HTTP request headers
114
+
115
+ - **Content-Type**: Not defined
116
+ - **Accept**: Not defined
117
+
118
+
119
+ ### HTTP response details
120
+ | Status code | Description | Response headers |
121
+ |-------------|-------------|------------------|
122
+ |**200** | | - |
123
+
124
+ [[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)
125
+
75
126
  # **calendarControllerCollaboratorsByCalendar**
76
127
  > calendarControllerCollaboratorsByCalendar()
77
128
 
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **start** | **string** | start | [default to undefined]
9
9
  **end** | **string** | end | [default to undefined]
10
+ **isBusinessAvailable** | **boolean** | Slot is available or not | [default to undefined]
10
11
  **isAvailable** | **boolean** | Slot is available or not | [default to undefined]
11
12
  **unavailableFriends** | **Array&lt;object&gt;** | Friends unavailable for this slot | [default to undefined]
12
13
  **unavailableStaffs** | [**Array&lt;BusinessStaffEntity&gt;**](BusinessStaffEntity.md) | Staffs unavailable for this slot | [default to undefined]
@@ -19,6 +20,7 @@ import { CalendarSlots } from './api';
19
20
  const instance: CalendarSlots = {
20
21
  start,
21
22
  end,
23
+ isBusinessAvailable,
22
24
  isAvailable,
23
25
  unavailableFriends,
24
26
  unavailableStaffs,
@@ -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-09-09T16:20:45+05:30]
10
- **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-09-09T16:20:45+05:30]
9
+ **date** | **string** | The start date of the booking | [default to 2025-09-10T18:00:14+05:30]
10
+ **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-09-10T18:00:14+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-09-09T16:20:45+05:30]
8
+ **date** | **string** | The start date of the booking | [default to 2025-09-10T18:00:14+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-09-09T16:20:45+05:30]
9
- **endDate** | **string** | The end date of the waitlist | [default to 2025-09-09T17:20:45+05:30]
8
+ **startDate** | **string** | The start date of the waitlist | [default to 2025-09-10T18:00:14+05:30]
9
+ **endDate** | **string** | The end date of the waitlist | [default to 2025-09-10T19:00:14+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": "2.2.3",
3
+ "version": "2.2.7",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},