@gooday_corp/gooday-api-client 4.4.13 → 4.4.15
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 +3 -0
- package/api.ts +113 -0
- package/docs/ChannelCreatePayload.md +20 -0
- package/docs/ChatMessagingApi.md +59 -0
- package/docs/ChatResponseDTO.md +22 -0
- package/docs/CreateBookingPayload.md +2 -2
- package/docs/CreateWalkInBookingPayload.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
|
@@ -110,6 +110,9 @@ docs/CancelBookingDTO.md
|
|
|
110
110
|
docs/CancelBookingResponseDTO.md
|
|
111
111
|
docs/CategoryEntity.md
|
|
112
112
|
docs/CategoryListResponse.md
|
|
113
|
+
docs/ChannelCreatePayload.md
|
|
114
|
+
docs/ChatMessagingApi.md
|
|
115
|
+
docs/ChatResponseDTO.md
|
|
113
116
|
docs/ContactDTO.md
|
|
114
117
|
docs/ContactResponseDTO.md
|
|
115
118
|
docs/ContactStatusResponseDTO.md
|
package/api.ts
CHANGED
|
@@ -1678,6 +1678,16 @@ export interface CategoryListResponse {
|
|
|
1678
1678
|
*/
|
|
1679
1679
|
'data': Array<CategoryEntity>;
|
|
1680
1680
|
}
|
|
1681
|
+
export interface ChannelCreatePayload {
|
|
1682
|
+
'userId': string;
|
|
1683
|
+
}
|
|
1684
|
+
export interface ChatResponseDTO {
|
|
1685
|
+
/**
|
|
1686
|
+
* statusCode
|
|
1687
|
+
*/
|
|
1688
|
+
'statusCode': number;
|
|
1689
|
+
'success': boolean;
|
|
1690
|
+
}
|
|
1681
1691
|
export interface ContactDTO {
|
|
1682
1692
|
/**
|
|
1683
1693
|
* statusCode
|
|
@@ -11593,6 +11603,109 @@ export class CalendarApi extends BaseAPI {
|
|
|
11593
11603
|
|
|
11594
11604
|
|
|
11595
11605
|
|
|
11606
|
+
/**
|
|
11607
|
+
* ChatMessagingApi - axios parameter creator
|
|
11608
|
+
*/
|
|
11609
|
+
export const ChatMessagingApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
11610
|
+
return {
|
|
11611
|
+
/**
|
|
11612
|
+
*
|
|
11613
|
+
* @param {ChannelCreatePayload} channelCreatePayload
|
|
11614
|
+
* @param {*} [options] Override http request option.
|
|
11615
|
+
* @throws {RequiredError}
|
|
11616
|
+
*/
|
|
11617
|
+
chatControllerChannelCreate: async (channelCreatePayload: ChannelCreatePayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11618
|
+
// verify required parameter 'channelCreatePayload' is not null or undefined
|
|
11619
|
+
assertParamExists('chatControllerChannelCreate', 'channelCreatePayload', channelCreatePayload)
|
|
11620
|
+
const localVarPath = `/v1/chat-messaging`;
|
|
11621
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11622
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11623
|
+
let baseOptions;
|
|
11624
|
+
if (configuration) {
|
|
11625
|
+
baseOptions = configuration.baseOptions;
|
|
11626
|
+
}
|
|
11627
|
+
|
|
11628
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11629
|
+
const localVarHeaderParameter = {} as any;
|
|
11630
|
+
const localVarQueryParameter = {} as any;
|
|
11631
|
+
|
|
11632
|
+
// authentication bearer required
|
|
11633
|
+
// http bearer authentication required
|
|
11634
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11635
|
+
|
|
11636
|
+
|
|
11637
|
+
|
|
11638
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11639
|
+
|
|
11640
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11641
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11642
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11643
|
+
localVarRequestOptions.data = serializeDataIfNeeded(channelCreatePayload, localVarRequestOptions, configuration)
|
|
11644
|
+
|
|
11645
|
+
return {
|
|
11646
|
+
url: toPathString(localVarUrlObj),
|
|
11647
|
+
options: localVarRequestOptions,
|
|
11648
|
+
};
|
|
11649
|
+
},
|
|
11650
|
+
}
|
|
11651
|
+
};
|
|
11652
|
+
|
|
11653
|
+
/**
|
|
11654
|
+
* ChatMessagingApi - functional programming interface
|
|
11655
|
+
*/
|
|
11656
|
+
export const ChatMessagingApiFp = function(configuration?: Configuration) {
|
|
11657
|
+
const localVarAxiosParamCreator = ChatMessagingApiAxiosParamCreator(configuration)
|
|
11658
|
+
return {
|
|
11659
|
+
/**
|
|
11660
|
+
*
|
|
11661
|
+
* @param {ChannelCreatePayload} channelCreatePayload
|
|
11662
|
+
* @param {*} [options] Override http request option.
|
|
11663
|
+
* @throws {RequiredError}
|
|
11664
|
+
*/
|
|
11665
|
+
async chatControllerChannelCreate(channelCreatePayload: ChannelCreatePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatResponseDTO>> {
|
|
11666
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.chatControllerChannelCreate(channelCreatePayload, options);
|
|
11667
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11668
|
+
const localVarOperationServerBasePath = operationServerMap['ChatMessagingApi.chatControllerChannelCreate']?.[localVarOperationServerIndex]?.url;
|
|
11669
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11670
|
+
},
|
|
11671
|
+
}
|
|
11672
|
+
};
|
|
11673
|
+
|
|
11674
|
+
/**
|
|
11675
|
+
* ChatMessagingApi - factory interface
|
|
11676
|
+
*/
|
|
11677
|
+
export const ChatMessagingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
11678
|
+
const localVarFp = ChatMessagingApiFp(configuration)
|
|
11679
|
+
return {
|
|
11680
|
+
/**
|
|
11681
|
+
*
|
|
11682
|
+
* @param {ChannelCreatePayload} channelCreatePayload
|
|
11683
|
+
* @param {*} [options] Override http request option.
|
|
11684
|
+
* @throws {RequiredError}
|
|
11685
|
+
*/
|
|
11686
|
+
chatControllerChannelCreate(channelCreatePayload: ChannelCreatePayload, options?: RawAxiosRequestConfig): AxiosPromise<ChatResponseDTO> {
|
|
11687
|
+
return localVarFp.chatControllerChannelCreate(channelCreatePayload, options).then((request) => request(axios, basePath));
|
|
11688
|
+
},
|
|
11689
|
+
};
|
|
11690
|
+
};
|
|
11691
|
+
|
|
11692
|
+
/**
|
|
11693
|
+
* ChatMessagingApi - object-oriented interface
|
|
11694
|
+
*/
|
|
11695
|
+
export class ChatMessagingApi extends BaseAPI {
|
|
11696
|
+
/**
|
|
11697
|
+
*
|
|
11698
|
+
* @param {ChannelCreatePayload} channelCreatePayload
|
|
11699
|
+
* @param {*} [options] Override http request option.
|
|
11700
|
+
* @throws {RequiredError}
|
|
11701
|
+
*/
|
|
11702
|
+
public chatControllerChannelCreate(channelCreatePayload: ChannelCreatePayload, options?: RawAxiosRequestConfig) {
|
|
11703
|
+
return ChatMessagingApiFp(this.configuration).chatControllerChannelCreate(channelCreatePayload, options).then((request) => request(this.axios, this.basePath));
|
|
11704
|
+
}
|
|
11705
|
+
}
|
|
11706
|
+
|
|
11707
|
+
|
|
11708
|
+
|
|
11596
11709
|
/**
|
|
11597
11710
|
* ContactsApi - axios parameter creator
|
|
11598
11711
|
*/
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ChannelCreatePayload
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**userId** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ChannelCreatePayload } from './api';
|
|
14
|
+
|
|
15
|
+
const instance: ChannelCreatePayload = {
|
|
16
|
+
userId,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[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,59 @@
|
|
|
1
|
+
# ChatMessagingApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8080*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**chatControllerChannelCreate**](#chatcontrollerchannelcreate) | **POST** /v1/chat-messaging | |
|
|
8
|
+
|
|
9
|
+
# **chatControllerChannelCreate**
|
|
10
|
+
> ChatResponseDTO chatControllerChannelCreate(channelCreatePayload)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
ChatMessagingApi,
|
|
18
|
+
Configuration,
|
|
19
|
+
ChannelCreatePayload
|
|
20
|
+
} from './api';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new ChatMessagingApi(configuration);
|
|
24
|
+
|
|
25
|
+
let channelCreatePayload: ChannelCreatePayload; //
|
|
26
|
+
|
|
27
|
+
const { status, data } = await apiInstance.chatControllerChannelCreate(
|
|
28
|
+
channelCreatePayload
|
|
29
|
+
);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Parameters
|
|
33
|
+
|
|
34
|
+
|Name | Type | Description | Notes|
|
|
35
|
+
|------------- | ------------- | ------------- | -------------|
|
|
36
|
+
| **channelCreatePayload** | **ChannelCreatePayload**| | |
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Return type
|
|
40
|
+
|
|
41
|
+
**ChatResponseDTO**
|
|
42
|
+
|
|
43
|
+
### Authorization
|
|
44
|
+
|
|
45
|
+
[bearer](../README.md#bearer)
|
|
46
|
+
|
|
47
|
+
### HTTP request headers
|
|
48
|
+
|
|
49
|
+
- **Content-Type**: application/json
|
|
50
|
+
- **Accept**: application/json
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### HTTP response details
|
|
54
|
+
| Status code | Description | Response headers |
|
|
55
|
+
|-------------|-------------|------------------|
|
|
56
|
+
|**200** | | - |
|
|
57
|
+
|
|
58
|
+
[[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)
|
|
59
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ChatResponseDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**statusCode** | **number** | statusCode | [default to undefined]
|
|
9
|
+
**success** | **boolean** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ChatResponseDTO } from './api';
|
|
15
|
+
|
|
16
|
+
const instance: ChatResponseDTO = {
|
|
17
|
+
statusCode,
|
|
18
|
+
success,
|
|
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-11-04T16:
|
|
10
|
-
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-11-04T16:
|
|
9
|
+
**date** | **string** | The start date of the booking | [default to 2025-11-04T16:59:58+05:30]
|
|
10
|
+
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-11-04T16:59:58+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-04T16:
|
|
10
|
-
**endDate** | **string** | The start date of the booking | [default to 2025-11-04T16:
|
|
9
|
+
**startDate** | **string** | The start date of the booking | [default to 2025-11-04T16:59:58+05:30]
|
|
10
|
+
**endDate** | **string** | The start date of the booking | [default to 2025-11-04T16:59:58+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<string>** | Calendar attached with booking | [optional] [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-11-04T16:
|
|
8
|
+
**date** | **string** | The start date of the booking | [default to 2025-11-04T16:59:58+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-04T16:
|
|
9
|
-
**endDate** | **string** | The end date of the waitlist | [default to 2025-11-04T17:
|
|
8
|
+
**startDate** | **string** | The start date of the waitlist | [default to 2025-11-04T16:59:58+05:30]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2025-11-04T17:59:58+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<CreateWaitlistBookingCollaboratorPayload>**](CreateWaitlistBookingCollaboratorPayload.md) | The list of collaborators associated with the waitlist | [default to undefined]
|