@gooday_corp/gooday-api-client 1.4.4 → 1.4.5

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.
@@ -93,6 +93,7 @@ docs/CalendarEventsSlotsDTO.md
93
93
  docs/CalendarListResponse.md
94
94
  docs/CalendarListResponseDTO.md
95
95
  docs/CalendarResponseDTO.md
96
+ docs/CalendarSharedPayload.md
96
97
  docs/CalendarSlotResponse.md
97
98
  docs/CalendarSlots.md
98
99
  docs/CalendarSlotsDTO.md
@@ -1 +1 @@
1
- 7.13.0
1
+ 7.14.0
package/api.ts CHANGED
@@ -2918,6 +2918,25 @@ export interface CalendarResponseDTO {
2918
2918
  */
2919
2919
  'data': CalendarListResponse;
2920
2920
  }
2921
+ /**
2922
+ *
2923
+ * @export
2924
+ * @interface CalendarSharedPayload
2925
+ */
2926
+ export interface CalendarSharedPayload {
2927
+ /**
2928
+ * ID of the booking
2929
+ * @type {string}
2930
+ * @memberof CalendarSharedPayload
2931
+ */
2932
+ 'bookingId': string;
2933
+ /**
2934
+ * Calendar associated with the booking
2935
+ * @type {Array<string>}
2936
+ * @memberof CalendarSharedPayload
2937
+ */
2938
+ 'calendars': Array<string>;
2939
+ }
2921
2940
  /**
2922
2941
  *
2923
2942
  * @export
@@ -6017,6 +6036,12 @@ export interface NotificationEntity {
6017
6036
  * @memberof NotificationEntity
6018
6037
  */
6019
6038
  'actions'?: NotificationActions;
6039
+ /**
6040
+ *
6041
+ * @type {string}
6042
+ * @memberof NotificationEntity
6043
+ */
6044
+ 'createdAt'?: string;
6020
6045
  }
6021
6046
 
6022
6047
  export const NotificationEntityTypeEnum = {
@@ -6041,6 +6066,7 @@ export const NotificationEntityTypeEnum = {
6041
6066
  BookingAccept: 'BOOKING_ACCEPT',
6042
6067
  BookingReject: 'BOOKING_REJECT',
6043
6068
  InviteTodo: 'INVITE_TODO',
6069
+ InviteTodoFriend: 'INVITE_TODO_FRIEND',
6044
6070
  TodoReject: 'TODO_REJECT',
6045
6071
  TodoInviteApproved: 'TODO_INVITE_APPROVED',
6046
6072
  TodoDeleted: 'TODO_DELETED',
@@ -6057,6 +6083,7 @@ export const NotificationEntityTypeEnum = {
6057
6083
  EventDetailsUpdate: 'EVENT_DETAILS_UPDATE',
6058
6084
  CalendarDetailsUpdate: 'CALENDAR_DETAILS_UPDATE',
6059
6085
  CalendarRemove: 'CALENDAR_REMOVE',
6086
+ CalendarShared: 'CALENDAR_SHARED',
6060
6087
  BookingRescheduled: 'BOOKING_RESCHEDULED',
6061
6088
  BookingRescheduledBusiness: 'BOOKING_RESCHEDULED_BUSINESS',
6062
6089
  EventRescheduled: 'EVENT_RESCHEDULED',
@@ -7144,6 +7171,24 @@ export interface RescheduleBookingPayload {
7144
7171
  * @memberof RescheduleBookingPayload
7145
7172
  */
7146
7173
  'to'?: string;
7174
+ /**
7175
+ *
7176
+ * @type {string}
7177
+ * @memberof RescheduleBookingPayload
7178
+ */
7179
+ 'notes'?: string;
7180
+ /**
7181
+ *
7182
+ * @type {Array<string>}
7183
+ * @memberof RescheduleBookingPayload
7184
+ */
7185
+ 'tags'?: Array<string>;
7186
+ /**
7187
+ * The list of collaborators associated with the booking
7188
+ * @type {Array<CreateBookingCollaboratorPayload>}
7189
+ * @memberof RescheduleBookingPayload
7190
+ */
7191
+ 'collaborators': Array<CreateBookingCollaboratorPayload>;
7147
7192
  }
7148
7193
  /**
7149
7194
  *
@@ -7533,6 +7578,12 @@ export interface SignupDto {
7533
7578
  * @memberof SignupDto
7534
7579
  */
7535
7580
  'planId'?: string;
7581
+ /**
7582
+ *
7583
+ * @type {boolean}
7584
+ * @memberof SignupDto
7585
+ */
7586
+ 'isApp'?: boolean;
7536
7587
  }
7537
7588
  /**
7538
7589
  *
@@ -7671,12 +7722,6 @@ export interface StandardBookingSlotsPayload {
7671
7722
  * @memberof StandardBookingSlotsPayload
7672
7723
  */
7673
7724
  'id'?: string;
7674
- /**
7675
- *
7676
- * @type {boolean}
7677
- * @memberof StandardBookingSlotsPayload
7678
- */
7679
- 'activityUser'?: boolean;
7680
7725
  }
7681
7726
  /**
7682
7727
  *
@@ -11722,6 +11767,45 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
11722
11767
  options: localVarRequestOptions,
11723
11768
  };
11724
11769
  },
11770
+ /**
11771
+ *
11772
+ * @param {CalendarSharedPayload} calendarSharedPayload
11773
+ * @param {*} [options] Override http request option.
11774
+ * @throws {RequiredError}
11775
+ */
11776
+ bookingControllerCalendarInvites: async (calendarSharedPayload: CalendarSharedPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11777
+ // verify required parameter 'calendarSharedPayload' is not null or undefined
11778
+ assertParamExists('bookingControllerCalendarInvites', 'calendarSharedPayload', calendarSharedPayload)
11779
+ const localVarPath = `/v1/booking/calendar-shared`;
11780
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11781
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11782
+ let baseOptions;
11783
+ if (configuration) {
11784
+ baseOptions = configuration.baseOptions;
11785
+ }
11786
+
11787
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
11788
+ const localVarHeaderParameter = {} as any;
11789
+ const localVarQueryParameter = {} as any;
11790
+
11791
+ // authentication bearer required
11792
+ // http bearer authentication required
11793
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11794
+
11795
+
11796
+
11797
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11798
+
11799
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11800
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11801
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11802
+ localVarRequestOptions.data = serializeDataIfNeeded(calendarSharedPayload, localVarRequestOptions, configuration)
11803
+
11804
+ return {
11805
+ url: toPathString(localVarUrlObj),
11806
+ options: localVarRequestOptions,
11807
+ };
11808
+ },
11725
11809
  /**
11726
11810
  *
11727
11811
  * @param {CancelBookingDTO} cancelBookingDTO
@@ -12281,6 +12365,18 @@ export const BookingApiFp = function(configuration?: Configuration) {
12281
12365
  const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerBookingConfirmation']?.[localVarOperationServerIndex]?.url;
12282
12366
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12283
12367
  },
12368
+ /**
12369
+ *
12370
+ * @param {CalendarSharedPayload} calendarSharedPayload
12371
+ * @param {*} [options] Override http request option.
12372
+ * @throws {RequiredError}
12373
+ */
12374
+ async bookingControllerCalendarInvites(calendarSharedPayload: CalendarSharedPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindBookingResponseDTO>> {
12375
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerCalendarInvites(calendarSharedPayload, options);
12376
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12377
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerCalendarInvites']?.[localVarOperationServerIndex]?.url;
12378
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12379
+ },
12284
12380
  /**
12285
12381
  *
12286
12382
  * @param {CancelBookingDTO} cancelBookingDTO
@@ -12476,6 +12572,15 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
12476
12572
  bookingControllerBookingConfirmation(bookingConfirmPayload: BookingConfirmPayload, options?: RawAxiosRequestConfig): AxiosPromise<CustomerBookingResponseDTO> {
12477
12573
  return localVarFp.bookingControllerBookingConfirmation(bookingConfirmPayload, options).then((request) => request(axios, basePath));
12478
12574
  },
12575
+ /**
12576
+ *
12577
+ * @param {CalendarSharedPayload} calendarSharedPayload
12578
+ * @param {*} [options] Override http request option.
12579
+ * @throws {RequiredError}
12580
+ */
12581
+ bookingControllerCalendarInvites(calendarSharedPayload: CalendarSharedPayload, options?: RawAxiosRequestConfig): AxiosPromise<FindBookingResponseDTO> {
12582
+ return localVarFp.bookingControllerCalendarInvites(calendarSharedPayload, options).then((request) => request(axios, basePath));
12583
+ },
12479
12584
  /**
12480
12585
  *
12481
12586
  * @param {CancelBookingDTO} cancelBookingDTO
@@ -12638,6 +12743,17 @@ export class BookingApi extends BaseAPI {
12638
12743
  return BookingApiFp(this.configuration).bookingControllerBookingConfirmation(bookingConfirmPayload, options).then((request) => request(this.axios, this.basePath));
12639
12744
  }
12640
12745
 
12746
+ /**
12747
+ *
12748
+ * @param {CalendarSharedPayload} calendarSharedPayload
12749
+ * @param {*} [options] Override http request option.
12750
+ * @throws {RequiredError}
12751
+ * @memberof BookingApi
12752
+ */
12753
+ public bookingControllerCalendarInvites(calendarSharedPayload: CalendarSharedPayload, options?: RawAxiosRequestConfig) {
12754
+ return BookingApiFp(this.configuration).bookingControllerCalendarInvites(calendarSharedPayload, options).then((request) => request(this.axios, this.basePath));
12755
+ }
12756
+
12641
12757
  /**
12642
12758
  *
12643
12759
  * @param {CancelBookingDTO} cancelBookingDTO
package/common.ts CHANGED
@@ -89,17 +89,17 @@ function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: an
89
89
  if (typeof parameter === "object") {
90
90
  if (Array.isArray(parameter)) {
91
91
  (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
92
- }
92
+ }
93
93
  else {
94
- Object.keys(parameter).forEach(currentKey =>
94
+ Object.keys(parameter).forEach(currentKey =>
95
95
  setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
96
96
  );
97
97
  }
98
- }
98
+ }
99
99
  else {
100
100
  if (urlSearchParams.has(key)) {
101
101
  urlSearchParams.append(key, parameter);
102
- }
102
+ }
103
103
  else {
104
104
  urlSearchParams.set(key, parameter);
105
105
  }
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost:8080*
7
7
  |[**bookingControllerAcceptBookingInvite**](#bookingcontrolleracceptbookinginvite) | **POST** /v1/booking/accept | |
8
8
  |[**bookingControllerBookingCollaboratorDetail**](#bookingcontrollerbookingcollaboratordetail) | **GET** /v1/booking/collaborator-details/{id} | |
9
9
  |[**bookingControllerBookingConfirmation**](#bookingcontrollerbookingconfirmation) | **POST** /v1/booking/confirmation | |
10
+ |[**bookingControllerCalendarInvites**](#bookingcontrollercalendarinvites) | **PUT** /v1/booking/calendar-shared | |
10
11
  |[**bookingControllerCancelBooking**](#bookingcontrollercancelbooking) | **POST** /v1/booking/cancel-booking | |
11
12
  |[**bookingControllerCreateBooking**](#bookingcontrollercreatebooking) | **POST** /v1/booking | |
12
13
  |[**bookingControllerGetBooking**](#bookingcontrollergetbooking) | **GET** /v1/booking/{id} | |
@@ -173,6 +174,57 @@ const { status, data } = await apiInstance.bookingControllerBookingConfirmation(
173
174
 
174
175
  [[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)
175
176
 
177
+ # **bookingControllerCalendarInvites**
178
+ > FindBookingResponseDTO bookingControllerCalendarInvites(calendarSharedPayload)
179
+
180
+
181
+ ### Example
182
+
183
+ ```typescript
184
+ import {
185
+ BookingApi,
186
+ Configuration,
187
+ CalendarSharedPayload
188
+ } from './api';
189
+
190
+ const configuration = new Configuration();
191
+ const apiInstance = new BookingApi(configuration);
192
+
193
+ let calendarSharedPayload: CalendarSharedPayload; //
194
+
195
+ const { status, data } = await apiInstance.bookingControllerCalendarInvites(
196
+ calendarSharedPayload
197
+ );
198
+ ```
199
+
200
+ ### Parameters
201
+
202
+ |Name | Type | Description | Notes|
203
+ |------------- | ------------- | ------------- | -------------|
204
+ | **calendarSharedPayload** | **CalendarSharedPayload**| | |
205
+
206
+
207
+ ### Return type
208
+
209
+ **FindBookingResponseDTO**
210
+
211
+ ### Authorization
212
+
213
+ [bearer](../README.md#bearer)
214
+
215
+ ### HTTP request headers
216
+
217
+ - **Content-Type**: application/json
218
+ - **Accept**: application/json
219
+
220
+
221
+ ### HTTP response details
222
+ | Status code | Description | Response headers |
223
+ |-------------|-------------|------------------|
224
+ |**200** | | - |
225
+
226
+ [[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)
227
+
176
228
  # **bookingControllerCancelBooking**
177
229
  > CancelBookingResponseDTO bookingControllerCancelBooking(cancelBookingDTO)
178
230
 
@@ -0,0 +1,22 @@
1
+ # CalendarSharedPayload
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **bookingId** | **string** | ID of the booking | [default to undefined]
9
+ **calendars** | **Array&lt;string&gt;** | Calendar associated with the booking | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { CalendarSharedPayload } from './api';
15
+
16
+ const instance: CalendarSharedPayload = {
17
+ bookingId,
18
+ calendars,
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-20T12:09:31+05:30]
10
- **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-06-20T12:09:31+05:30]
9
+ **date** | **string** | The start date of the booking | [default to 2025-07-02T18:06:47+05:30]
10
+ **recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-07-02T18:06:47+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]
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
14
14
  **isRead** | **boolean** | Indicates if the notification has been read (optional) | [default to false]
15
15
  **isAction** | **boolean** | | [default to false]
16
16
  **actions** | [**NotificationActions**](NotificationActions.md) | Additional metadata associated with the notification (optional) | [optional] [default to undefined]
17
+ **createdAt** | **string** | | [optional] [default to undefined]
17
18
 
18
19
  ## Example
19
20
 
@@ -30,6 +31,7 @@ const instance: NotificationEntity = {
30
31
  isRead,
31
32
  isAction,
32
33
  actions,
34
+ createdAt,
33
35
  };
34
36
  ```
35
37
 
@@ -5,9 +5,12 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **date** | **string** | The start date of the booking | [default to 2025-06-20T12:09:31+05:30]
8
+ **date** | **string** | The start date of the booking | [default to 2025-07-02T18:06:47+05:30]
9
9
  **from** | **string** | | [optional] [default to undefined]
10
10
  **to** | **string** | | [optional] [default to undefined]
11
+ **notes** | **string** | | [optional] [default to undefined]
12
+ **tags** | **Array&lt;string&gt;** | | [optional] [default to undefined]
13
+ **collaborators** | [**Array&lt;CreateBookingCollaboratorPayload&gt;**](CreateBookingCollaboratorPayload.md) | The list of collaborators associated with the booking | [default to undefined]
11
14
 
12
15
  ## Example
13
16
 
@@ -18,6 +21,9 @@ const instance: RescheduleBookingPayload = {
18
21
  date,
19
22
  from,
20
23
  to,
24
+ notes,
25
+ tags,
26
+ collaborators,
21
27
  };
22
28
  ```
23
29
 
package/docs/SignupDto.md CHANGED
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
12
12
  **email** | **string** | The email of the user | [default to undefined]
13
13
  **password** | **string** | User Profile Name | [default to undefined]
14
14
  **planId** | **string** | | [optional] [default to undefined]
15
+ **isApp** | **boolean** | | [optional] [default to true]
15
16
 
16
17
  ## Example
17
18
 
@@ -26,6 +27,7 @@ const instance: SignupDto = {
26
27
  email,
27
28
  password,
28
29
  planId,
30
+ isApp,
29
31
  };
30
32
  ```
31
33
 
@@ -10,7 +10,6 @@ Name | Type | Description | Notes
10
10
  **collaborators** | **Array&lt;string&gt;** | List of collaborators associated with the booking | [default to undefined]
11
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
- **activityUser** | **boolean** | | [optional] [default to false]
14
13
 
15
14
  ## Example
16
15
 
@@ -23,7 +22,6 @@ const instance: StandardBookingSlotsPayload = {
23
22
  collaborators,
24
23
  staffs,
25
24
  id,
26
- activityUser,
27
25
  };
28
26
  ```
29
27
 
@@ -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-20T12:09:31+05:30]
9
- **endDate** | **string** | The end date of the waitlist | [default to 2025-06-20T13:09:31+05:30]
8
+ **startDate** | **string** | The start date of the waitlist | [default to 2025-07-02T18:06:47+05:30]
9
+ **endDate** | **string** | The end date of the waitlist | [default to 2025-07-02T19:06:47+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": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},