@gooday_corp/gooday-api-client 1.9.8 → 1.9.9
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 +140 -0
- package/docs/AppApi.md +54 -0
- package/docs/AppEntity.md +26 -0
- package/docs/AppResponseDTO.md +22 -0
- package/docs/CreateBookingPayload.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
package/api.ts
CHANGED
|
@@ -224,6 +224,64 @@ export interface AddDevicePayload {
|
|
|
224
224
|
*/
|
|
225
225
|
'version': string;
|
|
226
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @export
|
|
230
|
+
* @interface AppEntity
|
|
231
|
+
*/
|
|
232
|
+
export interface AppEntity {
|
|
233
|
+
/**
|
|
234
|
+
* Unique identifier for the user
|
|
235
|
+
* @type {string}
|
|
236
|
+
* @memberof AppEntity
|
|
237
|
+
*/
|
|
238
|
+
'_id': string;
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @type {string}
|
|
242
|
+
* @memberof AppEntity
|
|
243
|
+
*/
|
|
244
|
+
'content': string;
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* @type {string}
|
|
248
|
+
* @memberof AppEntity
|
|
249
|
+
*/
|
|
250
|
+
'user': string;
|
|
251
|
+
/**
|
|
252
|
+
*
|
|
253
|
+
* @type {string}
|
|
254
|
+
* @memberof AppEntity
|
|
255
|
+
*/
|
|
256
|
+
'type': AppEntityTypeEnum;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export const AppEntityTypeEnum = {
|
|
260
|
+
HelpCenter: 'HELP_CENTER',
|
|
261
|
+
Feedback: 'FEEDBACK'
|
|
262
|
+
} as const;
|
|
263
|
+
|
|
264
|
+
export type AppEntityTypeEnum = typeof AppEntityTypeEnum[keyof typeof AppEntityTypeEnum];
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
*
|
|
268
|
+
* @export
|
|
269
|
+
* @interface AppResponseDTO
|
|
270
|
+
*/
|
|
271
|
+
export interface AppResponseDTO {
|
|
272
|
+
/**
|
|
273
|
+
* statusCode
|
|
274
|
+
* @type {number}
|
|
275
|
+
* @memberof AppResponseDTO
|
|
276
|
+
*/
|
|
277
|
+
'statusCode': number;
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* @type {AppEntity}
|
|
281
|
+
* @memberof AppResponseDTO
|
|
282
|
+
*/
|
|
283
|
+
'data': AppEntity;
|
|
284
|
+
}
|
|
227
285
|
/**
|
|
228
286
|
*
|
|
229
287
|
* @export
|
|
@@ -11004,6 +11062,53 @@ export class AIApi extends BaseAPI {
|
|
|
11004
11062
|
*/
|
|
11005
11063
|
export const AppApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
11006
11064
|
return {
|
|
11065
|
+
/**
|
|
11066
|
+
*
|
|
11067
|
+
* @param {number} page
|
|
11068
|
+
* @param {number} pageSize
|
|
11069
|
+
* @param {*} [options] Override http request option.
|
|
11070
|
+
* @throws {RequiredError}
|
|
11071
|
+
*/
|
|
11072
|
+
appResponseControllerAppResponse: async (page: number, pageSize: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11073
|
+
// verify required parameter 'page' is not null or undefined
|
|
11074
|
+
assertParamExists('appResponseControllerAppResponse', 'page', page)
|
|
11075
|
+
// verify required parameter 'pageSize' is not null or undefined
|
|
11076
|
+
assertParamExists('appResponseControllerAppResponse', 'pageSize', pageSize)
|
|
11077
|
+
const localVarPath = `/v1/app`;
|
|
11078
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11079
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11080
|
+
let baseOptions;
|
|
11081
|
+
if (configuration) {
|
|
11082
|
+
baseOptions = configuration.baseOptions;
|
|
11083
|
+
}
|
|
11084
|
+
|
|
11085
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11086
|
+
const localVarHeaderParameter = {} as any;
|
|
11087
|
+
const localVarQueryParameter = {} as any;
|
|
11088
|
+
|
|
11089
|
+
// authentication bearer required
|
|
11090
|
+
// http bearer authentication required
|
|
11091
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11092
|
+
|
|
11093
|
+
if (page !== undefined) {
|
|
11094
|
+
localVarQueryParameter['page'] = page;
|
|
11095
|
+
}
|
|
11096
|
+
|
|
11097
|
+
if (pageSize !== undefined) {
|
|
11098
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
11099
|
+
}
|
|
11100
|
+
|
|
11101
|
+
|
|
11102
|
+
|
|
11103
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11104
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11105
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11106
|
+
|
|
11107
|
+
return {
|
|
11108
|
+
url: toPathString(localVarUrlObj),
|
|
11109
|
+
options: localVarRequestOptions,
|
|
11110
|
+
};
|
|
11111
|
+
},
|
|
11007
11112
|
/**
|
|
11008
11113
|
*
|
|
11009
11114
|
* @param {FeedbackPayloadDTO} feedbackPayloadDTO
|
|
@@ -11092,6 +11197,19 @@ export const AppApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
11092
11197
|
export const AppApiFp = function(configuration?: Configuration) {
|
|
11093
11198
|
const localVarAxiosParamCreator = AppApiAxiosParamCreator(configuration)
|
|
11094
11199
|
return {
|
|
11200
|
+
/**
|
|
11201
|
+
*
|
|
11202
|
+
* @param {number} page
|
|
11203
|
+
* @param {number} pageSize
|
|
11204
|
+
* @param {*} [options] Override http request option.
|
|
11205
|
+
* @throws {RequiredError}
|
|
11206
|
+
*/
|
|
11207
|
+
async appResponseControllerAppResponse(page: number, pageSize: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppResponseDTO>> {
|
|
11208
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.appResponseControllerAppResponse(page, pageSize, options);
|
|
11209
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11210
|
+
const localVarOperationServerBasePath = operationServerMap['AppApi.appResponseControllerAppResponse']?.[localVarOperationServerIndex]?.url;
|
|
11211
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11212
|
+
},
|
|
11095
11213
|
/**
|
|
11096
11214
|
*
|
|
11097
11215
|
* @param {FeedbackPayloadDTO} feedbackPayloadDTO
|
|
@@ -11126,6 +11244,16 @@ export const AppApiFp = function(configuration?: Configuration) {
|
|
|
11126
11244
|
export const AppApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
11127
11245
|
const localVarFp = AppApiFp(configuration)
|
|
11128
11246
|
return {
|
|
11247
|
+
/**
|
|
11248
|
+
*
|
|
11249
|
+
* @param {number} page
|
|
11250
|
+
* @param {number} pageSize
|
|
11251
|
+
* @param {*} [options] Override http request option.
|
|
11252
|
+
* @throws {RequiredError}
|
|
11253
|
+
*/
|
|
11254
|
+
appResponseControllerAppResponse(page: number, pageSize: number, options?: RawAxiosRequestConfig): AxiosPromise<AppResponseDTO> {
|
|
11255
|
+
return localVarFp.appResponseControllerAppResponse(page, pageSize, options).then((request) => request(axios, basePath));
|
|
11256
|
+
},
|
|
11129
11257
|
/**
|
|
11130
11258
|
*
|
|
11131
11259
|
* @param {FeedbackPayloadDTO} feedbackPayloadDTO
|
|
@@ -11154,6 +11282,18 @@ export const AppApiFactory = function (configuration?: Configuration, basePath?:
|
|
|
11154
11282
|
* @extends {BaseAPI}
|
|
11155
11283
|
*/
|
|
11156
11284
|
export class AppApi extends BaseAPI {
|
|
11285
|
+
/**
|
|
11286
|
+
*
|
|
11287
|
+
* @param {number} page
|
|
11288
|
+
* @param {number} pageSize
|
|
11289
|
+
* @param {*} [options] Override http request option.
|
|
11290
|
+
* @throws {RequiredError}
|
|
11291
|
+
* @memberof AppApi
|
|
11292
|
+
*/
|
|
11293
|
+
public appResponseControllerAppResponse(page: number, pageSize: number, options?: RawAxiosRequestConfig) {
|
|
11294
|
+
return AppApiFp(this.configuration).appResponseControllerAppResponse(page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
11295
|
+
}
|
|
11296
|
+
|
|
11157
11297
|
/**
|
|
11158
11298
|
*
|
|
11159
11299
|
* @param {FeedbackPayloadDTO} feedbackPayloadDTO
|
package/docs/AppApi.md
CHANGED
|
@@ -4,9 +4,63 @@ All URIs are relative to *http://localhost:8080*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**appResponseControllerAppResponse**](#appresponsecontrollerappresponse) | **POST** /v1/app | |
|
|
7
8
|
|[**appResponseControllerFeedbackResponse**](#appresponsecontrollerfeedbackresponse) | **POST** /v1/feedback | |
|
|
8
9
|
|[**appResponseControllerHelpCenterResponse**](#appresponsecontrollerhelpcenterresponse) | **POST** /v1/help-center | |
|
|
9
10
|
|
|
11
|
+
# **appResponseControllerAppResponse**
|
|
12
|
+
> AppResponseDTO appResponseControllerAppResponse()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
AppApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from './api';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new AppApi(configuration);
|
|
25
|
+
|
|
26
|
+
let page: number; // (default to undefined)
|
|
27
|
+
let pageSize: number; // (default to undefined)
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.appResponseControllerAppResponse(
|
|
30
|
+
page,
|
|
31
|
+
pageSize
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **page** | [**number**] | | defaults to undefined|
|
|
40
|
+
| **pageSize** | [**number**] | | defaults to undefined|
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**AppResponseDTO**
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[bearer](../README.md#bearer)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: Not defined
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**200** | | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
10
64
|
# **appResponseControllerFeedbackResponse**
|
|
11
65
|
> appResponseControllerFeedbackResponse(feedbackPayloadDTO)
|
|
12
66
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# AppEntity
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **string** | Unique identifier for the user | [default to undefined]
|
|
9
|
+
**content** | **string** | | [default to undefined]
|
|
10
|
+
**user** | **string** | | [default to undefined]
|
|
11
|
+
**type** | **string** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AppEntity } from './api';
|
|
17
|
+
|
|
18
|
+
const instance: AppEntity = {
|
|
19
|
+
_id,
|
|
20
|
+
content,
|
|
21
|
+
user,
|
|
22
|
+
type,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[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
|
+
# AppResponseDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**statusCode** | **number** | statusCode | [default to undefined]
|
|
9
|
+
**data** | [**AppEntity**](AppEntity.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { AppResponseDTO } from './api';
|
|
15
|
+
|
|
16
|
+
const instance: AppResponseDTO = {
|
|
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-08-
|
|
10
|
-
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-08-
|
|
9
|
+
**date** | **string** | The start date of the booking | [default to 2025-08-28T10:03:44Z]
|
|
10
|
+
**recurrenceEndDate** | **string** | The start date of the booking | [optional] [default to 2025-08-28T10:03:44Z]
|
|
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-08-
|
|
8
|
+
**date** | **string** | The start date of the booking | [default to 2025-08-28T10:03:44Z]
|
|
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-08-
|
|
9
|
-
**endDate** | **string** | The end date of the waitlist | [default to 2025-08-
|
|
8
|
+
**startDate** | **string** | The start date of the waitlist | [default to 2025-08-28T10:03:44Z]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2025-08-28T11:03:44Z]
|
|
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]
|