@gooday_corp/gooday-api-client 1.3.71 → 1.3.73
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 +107 -0
- package/docs/CreateBookingPayload.md +1 -1
- package/docs/RescheduleBookingPayload.md +1 -1
- package/docs/WaitlistPayloadDTO.md +2 -2
- package/docs/WhatsOnApi.md +51 -0
- package/docs/WhatsOnFavoriteCounts.md +22 -0
- package/docs/WhatsOnFavoriteCountsDTO.md +22 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -313,6 +313,8 @@ docs/WhatsOnDeleteResponseDTO.md
|
|
|
313
313
|
docs/WhatsOnEntity.md
|
|
314
314
|
docs/WhatsOnFavoriteCount.md
|
|
315
315
|
docs/WhatsOnFavoriteCountResponseDTO.md
|
|
316
|
+
docs/WhatsOnFavoriteCounts.md
|
|
317
|
+
docs/WhatsOnFavoriteCountsDTO.md
|
|
316
318
|
docs/WhatsOnFavoriteDTO.md
|
|
317
319
|
docs/WhatsOnFavoriteListResponseDTO.md
|
|
318
320
|
docs/WhatsOnFavoriteResponse.md
|
package/api.ts
CHANGED
|
@@ -9059,6 +9059,44 @@ export interface WhatsOnFavoriteCountResponseDTO {
|
|
|
9059
9059
|
*/
|
|
9060
9060
|
'data': WhatsOnFavoriteCount;
|
|
9061
9061
|
}
|
|
9062
|
+
/**
|
|
9063
|
+
*
|
|
9064
|
+
* @export
|
|
9065
|
+
* @interface WhatsOnFavoriteCounts
|
|
9066
|
+
*/
|
|
9067
|
+
export interface WhatsOnFavoriteCounts {
|
|
9068
|
+
/**
|
|
9069
|
+
*
|
|
9070
|
+
* @type {number}
|
|
9071
|
+
* @memberof WhatsOnFavoriteCounts
|
|
9072
|
+
*/
|
|
9073
|
+
'whatsOnFavorite': number;
|
|
9074
|
+
/**
|
|
9075
|
+
*
|
|
9076
|
+
* @type {Array<UserEntity>}
|
|
9077
|
+
* @memberof WhatsOnFavoriteCounts
|
|
9078
|
+
*/
|
|
9079
|
+
'whatsOnFavoriteByFriend': Array<UserEntity>;
|
|
9080
|
+
}
|
|
9081
|
+
/**
|
|
9082
|
+
*
|
|
9083
|
+
* @export
|
|
9084
|
+
* @interface WhatsOnFavoriteCountsDTO
|
|
9085
|
+
*/
|
|
9086
|
+
export interface WhatsOnFavoriteCountsDTO {
|
|
9087
|
+
/**
|
|
9088
|
+
* statusCode
|
|
9089
|
+
* @type {number}
|
|
9090
|
+
* @memberof WhatsOnFavoriteCountsDTO
|
|
9091
|
+
*/
|
|
9092
|
+
'statusCode': number;
|
|
9093
|
+
/**
|
|
9094
|
+
*
|
|
9095
|
+
* @type {WhatsOnFavoriteCounts}
|
|
9096
|
+
* @memberof WhatsOnFavoriteCountsDTO
|
|
9097
|
+
*/
|
|
9098
|
+
'data': WhatsOnFavoriteCounts;
|
|
9099
|
+
}
|
|
9062
9100
|
/**
|
|
9063
9101
|
*
|
|
9064
9102
|
* @export
|
|
@@ -23627,6 +23665,43 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
23627
23665
|
options: localVarRequestOptions,
|
|
23628
23666
|
};
|
|
23629
23667
|
},
|
|
23668
|
+
/**
|
|
23669
|
+
*
|
|
23670
|
+
* @param {string} id
|
|
23671
|
+
* @param {*} [options] Override http request option.
|
|
23672
|
+
* @throws {RequiredError}
|
|
23673
|
+
*/
|
|
23674
|
+
whatsOnControllerFavoriteWhatOnCountAndList: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
23675
|
+
// verify required parameter 'id' is not null or undefined
|
|
23676
|
+
assertParamExists('whatsOnControllerFavoriteWhatOnCountAndList', 'id', id)
|
|
23677
|
+
const localVarPath = `/v1/whats-on/favorite/counts/{id}`
|
|
23678
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
23679
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23680
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
23681
|
+
let baseOptions;
|
|
23682
|
+
if (configuration) {
|
|
23683
|
+
baseOptions = configuration.baseOptions;
|
|
23684
|
+
}
|
|
23685
|
+
|
|
23686
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
23687
|
+
const localVarHeaderParameter = {} as any;
|
|
23688
|
+
const localVarQueryParameter = {} as any;
|
|
23689
|
+
|
|
23690
|
+
// authentication bearer required
|
|
23691
|
+
// http bearer authentication required
|
|
23692
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
23693
|
+
|
|
23694
|
+
|
|
23695
|
+
|
|
23696
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23697
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23698
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
23699
|
+
|
|
23700
|
+
return {
|
|
23701
|
+
url: toPathString(localVarUrlObj),
|
|
23702
|
+
options: localVarRequestOptions,
|
|
23703
|
+
};
|
|
23704
|
+
},
|
|
23630
23705
|
/**
|
|
23631
23706
|
*
|
|
23632
23707
|
* @param {WhatsOnFilterDTO} whatsOnFilterDTO
|
|
@@ -24271,6 +24346,18 @@ export const WhatsOnApiFp = function(configuration?: Configuration) {
|
|
|
24271
24346
|
const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerDiscountCodeApply']?.[localVarOperationServerIndex]?.url;
|
|
24272
24347
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24273
24348
|
},
|
|
24349
|
+
/**
|
|
24350
|
+
*
|
|
24351
|
+
* @param {string} id
|
|
24352
|
+
* @param {*} [options] Override http request option.
|
|
24353
|
+
* @throws {RequiredError}
|
|
24354
|
+
*/
|
|
24355
|
+
async whatsOnControllerFavoriteWhatOnCountAndList(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnFavoriteCountsDTO>> {
|
|
24356
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerFavoriteWhatOnCountAndList(id, options);
|
|
24357
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
24358
|
+
const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerFavoriteWhatOnCountAndList']?.[localVarOperationServerIndex]?.url;
|
|
24359
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24360
|
+
},
|
|
24274
24361
|
/**
|
|
24275
24362
|
*
|
|
24276
24363
|
* @param {WhatsOnFilterDTO} whatsOnFilterDTO
|
|
@@ -24492,6 +24579,15 @@ export const WhatsOnApiFactory = function (configuration?: Configuration, basePa
|
|
|
24492
24579
|
whatsOnControllerDiscountCodeApply(whatsDiscountCodePayloadDTO: WhatsDiscountCodePayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<WhatsDiscountCodeResponseDTO> {
|
|
24493
24580
|
return localVarFp.whatsOnControllerDiscountCodeApply(whatsDiscountCodePayloadDTO, options).then((request) => request(axios, basePath));
|
|
24494
24581
|
},
|
|
24582
|
+
/**
|
|
24583
|
+
*
|
|
24584
|
+
* @param {string} id
|
|
24585
|
+
* @param {*} [options] Override http request option.
|
|
24586
|
+
* @throws {RequiredError}
|
|
24587
|
+
*/
|
|
24588
|
+
whatsOnControllerFavoriteWhatOnCountAndList(id: string, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnFavoriteCountsDTO> {
|
|
24589
|
+
return localVarFp.whatsOnControllerFavoriteWhatOnCountAndList(id, options).then((request) => request(axios, basePath));
|
|
24590
|
+
},
|
|
24495
24591
|
/**
|
|
24496
24592
|
*
|
|
24497
24593
|
* @param {WhatsOnFilterDTO} whatsOnFilterDTO
|
|
@@ -24674,6 +24770,17 @@ export class WhatsOnApi extends BaseAPI {
|
|
|
24674
24770
|
return WhatsOnApiFp(this.configuration).whatsOnControllerDiscountCodeApply(whatsDiscountCodePayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
24675
24771
|
}
|
|
24676
24772
|
|
|
24773
|
+
/**
|
|
24774
|
+
*
|
|
24775
|
+
* @param {string} id
|
|
24776
|
+
* @param {*} [options] Override http request option.
|
|
24777
|
+
* @throws {RequiredError}
|
|
24778
|
+
* @memberof WhatsOnApi
|
|
24779
|
+
*/
|
|
24780
|
+
public whatsOnControllerFavoriteWhatOnCountAndList(id: string, options?: RawAxiosRequestConfig) {
|
|
24781
|
+
return WhatsOnApiFp(this.configuration).whatsOnControllerFavoriteWhatOnCountAndList(id, options).then((request) => request(this.axios, this.basePath));
|
|
24782
|
+
}
|
|
24783
|
+
|
|
24677
24784
|
/**
|
|
24678
24785
|
*
|
|
24679
24786
|
* @param {WhatsOnFilterDTO} whatsOnFilterDTO
|
|
@@ -6,7 +6,7 @@
|
|
|
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-05-
|
|
9
|
+
**date** | **string** | The start date of the booking | [default to 2025-05-26T10:20:49+05:30]
|
|
10
10
|
**from** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**to** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**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-05-
|
|
8
|
+
**date** | **string** | The start date of the booking | [default to 2025-05-26T10:20:49+05:30]
|
|
9
9
|
**from** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**to** | **string** | | [optional] [default to undefined]
|
|
11
11
|
|
|
@@ -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-05-
|
|
9
|
-
**endDate** | **string** | The end date of the waitlist | [default to 2025-05-
|
|
8
|
+
**startDate** | **string** | The start date of the waitlist | [default to 2025-05-26T10:20:49+05:30]
|
|
9
|
+
**endDate** | **string** | The end date of the waitlist | [default to 2025-05-26T11:20:49+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]
|
package/docs/WhatsOnApi.md
CHANGED
|
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost:8080*
|
|
|
7
7
|
|[**whatsOnControllerCreateWhatsOn**](#whatsoncontrollercreatewhatson) | **POST** /v1/whats-on | |
|
|
8
8
|
|[**whatsOnControllerDeleteWhatsOn**](#whatsoncontrollerdeletewhatson) | **PUT** /v1/whats-on/delete/{id} | |
|
|
9
9
|
|[**whatsOnControllerDiscountCodeApply**](#whatsoncontrollerdiscountcodeapply) | **POST** /v1/whats-on/discount | |
|
|
10
|
+
|[**whatsOnControllerFavoriteWhatOnCountAndList**](#whatsoncontrollerfavoritewhatoncountandlist) | **GET** /v1/whats-on/favorite/counts/{id} | |
|
|
10
11
|
|[**whatsOnControllerFilterWhatsOn**](#whatsoncontrollerfilterwhatson) | **POST** /v1/whats-on/filter/list | |
|
|
11
12
|
|[**whatsOnControllerFindCategoryBaseWhatsOn**](#whatsoncontrollerfindcategorybasewhatson) | **POST** /v1/whats-on/categories/list | |
|
|
12
13
|
|[**whatsOnControllerFindFavoriteWhatOnCount**](#whatsoncontrollerfindfavoritewhatoncount) | **GET** /v1/whats-on/favorite/count/{id} | |
|
|
@@ -168,6 +169,56 @@ const { status, data } = await apiInstance.whatsOnControllerDiscountCodeApply(
|
|
|
168
169
|
- **Accept**: application/json
|
|
169
170
|
|
|
170
171
|
|
|
172
|
+
### HTTP response details
|
|
173
|
+
| Status code | Description | Response headers |
|
|
174
|
+
|-------------|-------------|------------------|
|
|
175
|
+
|**200** | | - |
|
|
176
|
+
|
|
177
|
+
[[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)
|
|
178
|
+
|
|
179
|
+
# **whatsOnControllerFavoriteWhatOnCountAndList**
|
|
180
|
+
> WhatsOnFavoriteCountsDTO whatsOnControllerFavoriteWhatOnCountAndList()
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
### Example
|
|
184
|
+
|
|
185
|
+
```typescript
|
|
186
|
+
import {
|
|
187
|
+
WhatsOnApi,
|
|
188
|
+
Configuration
|
|
189
|
+
} from './api';
|
|
190
|
+
|
|
191
|
+
const configuration = new Configuration();
|
|
192
|
+
const apiInstance = new WhatsOnApi(configuration);
|
|
193
|
+
|
|
194
|
+
let id: string; // (default to undefined)
|
|
195
|
+
|
|
196
|
+
const { status, data } = await apiInstance.whatsOnControllerFavoriteWhatOnCountAndList(
|
|
197
|
+
id
|
|
198
|
+
);
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### Parameters
|
|
202
|
+
|
|
203
|
+
|Name | Type | Description | Notes|
|
|
204
|
+
|------------- | ------------- | ------------- | -------------|
|
|
205
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
### Return type
|
|
209
|
+
|
|
210
|
+
**WhatsOnFavoriteCountsDTO**
|
|
211
|
+
|
|
212
|
+
### Authorization
|
|
213
|
+
|
|
214
|
+
[bearer](../README.md#bearer)
|
|
215
|
+
|
|
216
|
+
### HTTP request headers
|
|
217
|
+
|
|
218
|
+
- **Content-Type**: Not defined
|
|
219
|
+
- **Accept**: application/json
|
|
220
|
+
|
|
221
|
+
|
|
171
222
|
### HTTP response details
|
|
172
223
|
| Status code | Description | Response headers |
|
|
173
224
|
|-------------|-------------|------------------|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# WhatsOnFavoriteCounts
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**whatsOnFavorite** | **number** | | [default to undefined]
|
|
9
|
+
**whatsOnFavoriteByFriend** | [**Array<UserEntity>**](UserEntity.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { WhatsOnFavoriteCounts } from './api';
|
|
15
|
+
|
|
16
|
+
const instance: WhatsOnFavoriteCounts = {
|
|
17
|
+
whatsOnFavorite,
|
|
18
|
+
whatsOnFavoriteByFriend,
|
|
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
|
+
# WhatsOnFavoriteCountsDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**statusCode** | **number** | statusCode | [default to undefined]
|
|
9
|
+
**data** | [**WhatsOnFavoriteCounts**](WhatsOnFavoriteCounts.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { WhatsOnFavoriteCountsDTO } from './api';
|
|
15
|
+
|
|
16
|
+
const instance: WhatsOnFavoriteCountsDTO = {
|
|
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)
|