@gooday_corp/gooday-api-client 4.5.71 → 4.6.0
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/.openapi-generator/FILES +2 -0
- package/api.ts +77 -0
- package/docs/ChatChannelRole.md +22 -0
- package/docs/ChatChannelRolePayloadDTO.md +22 -0
- package/docs/ChatMessagingApi.md +52 -0
- package/docs/CreateBookingPayload.md +2 -2
- package/docs/CreateRSVPEventBookingPayload.md +2 -2
- package/docs/CreateWalkInBookingPayload.md +2 -2
- package/docs/PaymentDetailsPayload.md +2 -2
- package/docs/RescheduleBookingPayload.md +1 -1
- package/docs/WaitlistPayloadDTO.md +2 -2
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -115,6 +115,8 @@ docs/CategoryListResponse.md
|
|
|
115
115
|
docs/ChannelCreateMultipleUsersPayload.md
|
|
116
116
|
docs/ChannelCreatePayload.md
|
|
117
117
|
docs/ChatChannelCreateResponseDTO.md
|
|
118
|
+
docs/ChatChannelRole.md
|
|
119
|
+
docs/ChatChannelRolePayloadDTO.md
|
|
118
120
|
docs/ChatMessagingApi.md
|
|
119
121
|
docs/ChatResponseDTO.md
|
|
120
122
|
docs/ContactDTO.md
|
package/api.ts
CHANGED
|
@@ -1730,6 +1730,14 @@ export interface ChatChannelCreateResponseDTO {
|
|
|
1730
1730
|
'statusCode': number;
|
|
1731
1731
|
'cid': string;
|
|
1732
1732
|
}
|
|
1733
|
+
export interface ChatChannelRole {
|
|
1734
|
+
'user_id': string;
|
|
1735
|
+
'channel_role': string;
|
|
1736
|
+
}
|
|
1737
|
+
export interface ChatChannelRolePayloadDTO {
|
|
1738
|
+
'users': Array<ChatChannelRole>;
|
|
1739
|
+
'channelId': string;
|
|
1740
|
+
}
|
|
1733
1741
|
export interface ChatResponseDTO {
|
|
1734
1742
|
/**
|
|
1735
1743
|
* statusCode
|
|
@@ -12479,6 +12487,44 @@ export const ChatMessagingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
12479
12487
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12480
12488
|
localVarRequestOptions.data = serializeDataIfNeeded(channelCreateMultipleUsersPayload, localVarRequestOptions, configuration)
|
|
12481
12489
|
|
|
12490
|
+
return {
|
|
12491
|
+
url: toPathString(localVarUrlObj),
|
|
12492
|
+
options: localVarRequestOptions,
|
|
12493
|
+
};
|
|
12494
|
+
},
|
|
12495
|
+
/**
|
|
12496
|
+
*
|
|
12497
|
+
* @param {ChatChannelRolePayloadDTO} chatChannelRolePayloadDTO
|
|
12498
|
+
* @param {*} [options] Override http request option.
|
|
12499
|
+
* @throws {RequiredError}
|
|
12500
|
+
*/
|
|
12501
|
+
chatControllerRoleUpdate: async (chatChannelRolePayloadDTO: ChatChannelRolePayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12502
|
+
// verify required parameter 'chatChannelRolePayloadDTO' is not null or undefined
|
|
12503
|
+
assertParamExists('chatControllerRoleUpdate', 'chatChannelRolePayloadDTO', chatChannelRolePayloadDTO)
|
|
12504
|
+
const localVarPath = `/v1/chat-messaging/user/role`;
|
|
12505
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12506
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12507
|
+
let baseOptions;
|
|
12508
|
+
if (configuration) {
|
|
12509
|
+
baseOptions = configuration.baseOptions;
|
|
12510
|
+
}
|
|
12511
|
+
|
|
12512
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
12513
|
+
const localVarHeaderParameter = {} as any;
|
|
12514
|
+
const localVarQueryParameter = {} as any;
|
|
12515
|
+
|
|
12516
|
+
// authentication bearer required
|
|
12517
|
+
// http bearer authentication required
|
|
12518
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
12519
|
+
|
|
12520
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12521
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
12522
|
+
|
|
12523
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12524
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12525
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12526
|
+
localVarRequestOptions.data = serializeDataIfNeeded(chatChannelRolePayloadDTO, localVarRequestOptions, configuration)
|
|
12527
|
+
|
|
12482
12528
|
return {
|
|
12483
12529
|
url: toPathString(localVarUrlObj),
|
|
12484
12530
|
options: localVarRequestOptions,
|
|
@@ -12529,6 +12575,18 @@ export const ChatMessagingApiFp = function(configuration?: Configuration) {
|
|
|
12529
12575
|
const localVarOperationServerBasePath = operationServerMap['ChatMessagingApi.chatControllerCreateUsers']?.[localVarOperationServerIndex]?.url;
|
|
12530
12576
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12531
12577
|
},
|
|
12578
|
+
/**
|
|
12579
|
+
*
|
|
12580
|
+
* @param {ChatChannelRolePayloadDTO} chatChannelRolePayloadDTO
|
|
12581
|
+
* @param {*} [options] Override http request option.
|
|
12582
|
+
* @throws {RequiredError}
|
|
12583
|
+
*/
|
|
12584
|
+
async chatControllerRoleUpdate(chatChannelRolePayloadDTO: ChatChannelRolePayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatResponseDTO>> {
|
|
12585
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.chatControllerRoleUpdate(chatChannelRolePayloadDTO, options);
|
|
12586
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12587
|
+
const localVarOperationServerBasePath = operationServerMap['ChatMessagingApi.chatControllerRoleUpdate']?.[localVarOperationServerIndex]?.url;
|
|
12588
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12589
|
+
},
|
|
12532
12590
|
}
|
|
12533
12591
|
};
|
|
12534
12592
|
|
|
@@ -12565,6 +12623,15 @@ export const ChatMessagingApiFactory = function (configuration?: Configuration,
|
|
|
12565
12623
|
chatControllerCreateUsers(channelCreateMultipleUsersPayload: ChannelCreateMultipleUsersPayload, options?: RawAxiosRequestConfig): AxiosPromise<ChatResponseDTO> {
|
|
12566
12624
|
return localVarFp.chatControllerCreateUsers(channelCreateMultipleUsersPayload, options).then((request) => request(axios, basePath));
|
|
12567
12625
|
},
|
|
12626
|
+
/**
|
|
12627
|
+
*
|
|
12628
|
+
* @param {ChatChannelRolePayloadDTO} chatChannelRolePayloadDTO
|
|
12629
|
+
* @param {*} [options] Override http request option.
|
|
12630
|
+
* @throws {RequiredError}
|
|
12631
|
+
*/
|
|
12632
|
+
chatControllerRoleUpdate(chatChannelRolePayloadDTO: ChatChannelRolePayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<ChatResponseDTO> {
|
|
12633
|
+
return localVarFp.chatControllerRoleUpdate(chatChannelRolePayloadDTO, options).then((request) => request(axios, basePath));
|
|
12634
|
+
},
|
|
12568
12635
|
};
|
|
12569
12636
|
};
|
|
12570
12637
|
|
|
@@ -12601,6 +12668,16 @@ export class ChatMessagingApi extends BaseAPI {
|
|
|
12601
12668
|
public chatControllerCreateUsers(channelCreateMultipleUsersPayload: ChannelCreateMultipleUsersPayload, options?: RawAxiosRequestConfig) {
|
|
12602
12669
|
return ChatMessagingApiFp(this.configuration).chatControllerCreateUsers(channelCreateMultipleUsersPayload, options).then((request) => request(this.axios, this.basePath));
|
|
12603
12670
|
}
|
|
12671
|
+
|
|
12672
|
+
/**
|
|
12673
|
+
*
|
|
12674
|
+
* @param {ChatChannelRolePayloadDTO} chatChannelRolePayloadDTO
|
|
12675
|
+
* @param {*} [options] Override http request option.
|
|
12676
|
+
* @throws {RequiredError}
|
|
12677
|
+
*/
|
|
12678
|
+
public chatControllerRoleUpdate(chatChannelRolePayloadDTO: ChatChannelRolePayloadDTO, options?: RawAxiosRequestConfig) {
|
|
12679
|
+
return ChatMessagingApiFp(this.configuration).chatControllerRoleUpdate(chatChannelRolePayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
12680
|
+
}
|
|
12604
12681
|
}
|
|
12605
12682
|
|
|
12606
12683
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ChatChannelRole
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**user_id** | **string** | | [default to undefined]
|
|
9
|
+
**channel_role** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ChatChannelRole } from './api';
|
|
15
|
+
|
|
16
|
+
const instance: ChatChannelRole = {
|
|
17
|
+
user_id,
|
|
18
|
+
channel_role,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ChatChannelRolePayloadDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**users** | [**Array<ChatChannelRole>**](ChatChannelRole.md) | | [default to undefined]
|
|
9
|
+
**channelId** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ChatChannelRolePayloadDTO } from './api';
|
|
15
|
+
|
|
16
|
+
const instance: ChatChannelRolePayloadDTO = {
|
|
17
|
+
users,
|
|
18
|
+
channelId,
|
|
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)
|
package/docs/ChatMessagingApi.md
CHANGED
|
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost:8080*
|
|
|
7
7
|
|[**chatControllerChannelCreate**](#chatcontrollerchannelcreate) | **POST** /v1/chat-messaging | |
|
|
8
8
|
|[**chatControllerChannelCreateMultipleUsers**](#chatcontrollerchannelcreatemultipleusers) | **POST** /v1/chat-messaging/multiple-members | |
|
|
9
9
|
|[**chatControllerCreateUsers**](#chatcontrollercreateusers) | **POST** /v1/chat-messaging/add-users | |
|
|
10
|
+
|[**chatControllerRoleUpdate**](#chatcontrollerroleupdate) | **PUT** /v1/chat-messaging/user/role | |
|
|
10
11
|
|
|
11
12
|
# **chatControllerChannelCreate**
|
|
12
13
|
> ChatChannelCreateResponseDTO chatControllerChannelCreate(channelCreatePayload)
|
|
@@ -161,3 +162,54 @@ const { status, data } = await apiInstance.chatControllerCreateUsers(
|
|
|
161
162
|
|
|
162
163
|
[[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)
|
|
163
164
|
|
|
165
|
+
# **chatControllerRoleUpdate**
|
|
166
|
+
> ChatResponseDTO chatControllerRoleUpdate(chatChannelRolePayloadDTO)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
### Example
|
|
170
|
+
|
|
171
|
+
```typescript
|
|
172
|
+
import {
|
|
173
|
+
ChatMessagingApi,
|
|
174
|
+
Configuration,
|
|
175
|
+
ChatChannelRolePayloadDTO
|
|
176
|
+
} from './api';
|
|
177
|
+
|
|
178
|
+
const configuration = new Configuration();
|
|
179
|
+
const apiInstance = new ChatMessagingApi(configuration);
|
|
180
|
+
|
|
181
|
+
let chatChannelRolePayloadDTO: ChatChannelRolePayloadDTO; //
|
|
182
|
+
|
|
183
|
+
const { status, data } = await apiInstance.chatControllerRoleUpdate(
|
|
184
|
+
chatChannelRolePayloadDTO
|
|
185
|
+
);
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### Parameters
|
|
189
|
+
|
|
190
|
+
|Name | Type | Description | Notes|
|
|
191
|
+
|------------- | ------------- | ------------- | -------------|
|
|
192
|
+
| **chatChannelRolePayloadDTO** | **ChatChannelRolePayloadDTO**| | |
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
### Return type
|
|
196
|
+
|
|
197
|
+
**ChatResponseDTO**
|
|
198
|
+
|
|
199
|
+
### Authorization
|
|
200
|
+
|
|
201
|
+
[bearer](../README.md#bearer)
|
|
202
|
+
|
|
203
|
+
### HTTP request headers
|
|
204
|
+
|
|
205
|
+
- **Content-Type**: application/json
|
|
206
|
+
- **Accept**: application/json
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
### HTTP response details
|
|
210
|
+
| Status code | Description | Response headers |
|
|
211
|
+
|-------------|-------------|------------------|
|
|
212
|
+
|**200** | | - |
|
|
213
|
+
|
|
214
|
+
[[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)
|
|
215
|
+
|
|
@@ -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-02-
|
|
10
|
-
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2026-02-
|
|
9
|
+
**date** | **string** | The start date of the booking | [default to 2026-02-05T10:41:08Z]
|
|
10
|
+
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2026-02-05T10:41:08Z]
|
|
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-02-
|
|
10
|
-
**endDate** | **string** | The start date of the booking | [default to 2026-02-
|
|
9
|
+
**startDate** | **string** | The start date of the booking | [default to 2026-02-05T10:41:08Z]
|
|
10
|
+
**endDate** | **string** | The start date of the booking | [default to 2026-02-05T10:41:08Z]
|
|
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<string>** | 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-02-
|
|
10
|
-
**endDate** | **string** | The start date of the booking | [default to 2026-02-
|
|
9
|
+
**startDate** | **string** | The start date of the booking | [default to 2026-02-05T10:41:08Z]
|
|
10
|
+
**endDate** | **string** | The start date of the booking | [default to 2026-02-05T10:41:08Z]
|
|
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<string>** | 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-02-
|
|
12
|
-
**endDate** | **string** | The end date of the booking | [optional] [default to 2026-02-
|
|
11
|
+
**startDate** | **string** | The start date of the booking | [optional] [default to 2026-02-05T10:41:06Z]
|
|
12
|
+
**endDate** | **string** | The end date of the booking | [optional] [default to 2026-02-05T10:41:06Z]
|
|
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]
|
|
@@ -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-02-
|
|
8
|
+
**date** | **string** | The start date of the booking | [default to 2026-02-05T10:41:08Z]
|
|
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-02-
|
|
9
|
-
**endDate** | **string** | The end date of the waitlist | [default to 2026-02-
|
|
8
|
+
**startDate** | **string** | The start date of the waitlist | [default to 2026-02-05T10:41:08Z]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2026-02-05T11:41:08Z]
|
|
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<CreateWaitlistBookingCollaboratorPayload>**](CreateWaitlistBookingCollaboratorPayload.md) | The list of collaborators associated with the waitlist | [default to undefined]
|