@gooday_corp/gooday-api-client 1.2.73 → 1.2.74-beta
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/api.ts +197 -13
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -827,6 +827,12 @@ export interface BookingEntity {
|
|
|
827
827
|
* @memberof BookingEntity
|
|
828
828
|
*/
|
|
829
829
|
'tags': Array<TagsResponse>;
|
|
830
|
+
/**
|
|
831
|
+
*
|
|
832
|
+
* @type {string}
|
|
833
|
+
* @memberof BookingEntity
|
|
834
|
+
*/
|
|
835
|
+
'whatsOn': string;
|
|
830
836
|
}
|
|
831
837
|
|
|
832
838
|
export const BookingEntityStatusEnum = {
|
|
@@ -993,6 +999,12 @@ export interface BookingResponse {
|
|
|
993
999
|
* @memberof BookingResponse
|
|
994
1000
|
*/
|
|
995
1001
|
'paymentMethod': StripeSetupIntentPaymentResponse;
|
|
1002
|
+
/**
|
|
1003
|
+
*
|
|
1004
|
+
* @type {string}
|
|
1005
|
+
* @memberof BookingResponse
|
|
1006
|
+
*/
|
|
1007
|
+
'whatsOn': string;
|
|
996
1008
|
}
|
|
997
1009
|
|
|
998
1010
|
export const BookingResponseMethodEnum = {
|
|
@@ -2516,6 +2528,12 @@ export interface CreateBookingPayload {
|
|
|
2516
2528
|
* @memberof CreateBookingPayload
|
|
2517
2529
|
*/
|
|
2518
2530
|
'paymentMethod': StripeSetupIntentPaymentResponse;
|
|
2531
|
+
/**
|
|
2532
|
+
*
|
|
2533
|
+
* @type {string}
|
|
2534
|
+
* @memberof CreateBookingPayload
|
|
2535
|
+
*/
|
|
2536
|
+
'whatsOn': string;
|
|
2519
2537
|
}
|
|
2520
2538
|
/**
|
|
2521
2539
|
*
|
|
@@ -4869,12 +4887,6 @@ export interface PrepaidServiceEntity {
|
|
|
4869
4887
|
* @memberof PrepaidServiceEntity
|
|
4870
4888
|
*/
|
|
4871
4889
|
'duration': Array<PrepaidServiceTimeDuration>;
|
|
4872
|
-
/**
|
|
4873
|
-
*
|
|
4874
|
-
* @type {number}
|
|
4875
|
-
* @memberof PrepaidServiceEntity
|
|
4876
|
-
*/
|
|
4877
|
-
'capacity': number;
|
|
4878
4890
|
/**
|
|
4879
4891
|
*
|
|
4880
4892
|
* @type {boolean}
|
|
@@ -5098,7 +5110,7 @@ export interface PrepaidServicePayloadDTO {
|
|
|
5098
5110
|
* @type {ServiceEndRepeat}
|
|
5099
5111
|
* @memberof PrepaidServicePayloadDTO
|
|
5100
5112
|
*/
|
|
5101
|
-
'repeat'
|
|
5113
|
+
'repeat'?: ServiceEndRepeat;
|
|
5102
5114
|
/**
|
|
5103
5115
|
*
|
|
5104
5116
|
* @type {Array<PrepaidServiceDiscount>}
|
|
@@ -5366,25 +5378,25 @@ export interface Repeat {
|
|
|
5366
5378
|
* @type {string}
|
|
5367
5379
|
* @memberof Repeat
|
|
5368
5380
|
*/
|
|
5369
|
-
'finalBookingTime'
|
|
5381
|
+
'finalBookingTime': RepeatFinalBookingTimeEnum;
|
|
5370
5382
|
/**
|
|
5371
5383
|
* to
|
|
5372
5384
|
* @type {string}
|
|
5373
5385
|
* @memberof Repeat
|
|
5374
5386
|
*/
|
|
5375
|
-
'time'
|
|
5387
|
+
'time': string;
|
|
5376
5388
|
/**
|
|
5377
5389
|
*
|
|
5378
5390
|
* @type {string}
|
|
5379
5391
|
* @memberof Repeat
|
|
5380
5392
|
*/
|
|
5381
|
-
'repeat'
|
|
5393
|
+
'repeat': RepeatRepeatEnum;
|
|
5382
5394
|
/**
|
|
5383
5395
|
*
|
|
5384
5396
|
* @type {string}
|
|
5385
5397
|
* @memberof Repeat
|
|
5386
5398
|
*/
|
|
5387
|
-
'repeatEndDate'
|
|
5399
|
+
'repeatEndDate': string;
|
|
5388
5400
|
}
|
|
5389
5401
|
|
|
5390
5402
|
export const RepeatFinalBookingTimeEnum = {
|
|
@@ -7057,6 +7069,38 @@ export interface WhatsDiscountCodeResponseDTO {
|
|
|
7057
7069
|
*/
|
|
7058
7070
|
'statusCode': number;
|
|
7059
7071
|
}
|
|
7072
|
+
/**
|
|
7073
|
+
*
|
|
7074
|
+
* @export
|
|
7075
|
+
* @interface WhatsOnAvailabilityPayloadDTO
|
|
7076
|
+
*/
|
|
7077
|
+
export interface WhatsOnAvailabilityPayloadDTO {
|
|
7078
|
+
/**
|
|
7079
|
+
*
|
|
7080
|
+
* @type {number}
|
|
7081
|
+
* @memberof WhatsOnAvailabilityPayloadDTO
|
|
7082
|
+
*/
|
|
7083
|
+
'customers': number;
|
|
7084
|
+
/**
|
|
7085
|
+
*
|
|
7086
|
+
* @type {string}
|
|
7087
|
+
* @memberof WhatsOnAvailabilityPayloadDTO
|
|
7088
|
+
*/
|
|
7089
|
+
'id': string;
|
|
7090
|
+
}
|
|
7091
|
+
/**
|
|
7092
|
+
*
|
|
7093
|
+
* @export
|
|
7094
|
+
* @interface WhatsOnAvailabilityResponseDTO
|
|
7095
|
+
*/
|
|
7096
|
+
export interface WhatsOnAvailabilityResponseDTO {
|
|
7097
|
+
/**
|
|
7098
|
+
* statusCode
|
|
7099
|
+
* @type {number}
|
|
7100
|
+
* @memberof WhatsOnAvailabilityResponseDTO
|
|
7101
|
+
*/
|
|
7102
|
+
'statusCode': number;
|
|
7103
|
+
}
|
|
7060
7104
|
/**
|
|
7061
7105
|
*
|
|
7062
7106
|
* @export
|
|
@@ -15774,6 +15818,43 @@ export const PrepaidServiceApiAxiosParamCreator = function (configuration?: Conf
|
|
|
15774
15818
|
options: localVarRequestOptions,
|
|
15775
15819
|
};
|
|
15776
15820
|
},
|
|
15821
|
+
/**
|
|
15822
|
+
*
|
|
15823
|
+
* @param {string} id
|
|
15824
|
+
* @param {*} [options] Override http request option.
|
|
15825
|
+
* @throws {RequiredError}
|
|
15826
|
+
*/
|
|
15827
|
+
prepaidServiceControllerDeleteService: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15828
|
+
// verify required parameter 'id' is not null or undefined
|
|
15829
|
+
assertParamExists('prepaidServiceControllerDeleteService', 'id', id)
|
|
15830
|
+
const localVarPath = `/v1/prepaid-service/delete/{id}`
|
|
15831
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
15832
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15833
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15834
|
+
let baseOptions;
|
|
15835
|
+
if (configuration) {
|
|
15836
|
+
baseOptions = configuration.baseOptions;
|
|
15837
|
+
}
|
|
15838
|
+
|
|
15839
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
15840
|
+
const localVarHeaderParameter = {} as any;
|
|
15841
|
+
const localVarQueryParameter = {} as any;
|
|
15842
|
+
|
|
15843
|
+
// authentication bearer required
|
|
15844
|
+
// http bearer authentication required
|
|
15845
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15846
|
+
|
|
15847
|
+
|
|
15848
|
+
|
|
15849
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15850
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15851
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15852
|
+
|
|
15853
|
+
return {
|
|
15854
|
+
url: toPathString(localVarUrlObj),
|
|
15855
|
+
options: localVarRequestOptions,
|
|
15856
|
+
};
|
|
15857
|
+
},
|
|
15777
15858
|
/**
|
|
15778
15859
|
*
|
|
15779
15860
|
* @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
|
|
@@ -15926,6 +16007,18 @@ export const PrepaidServiceApiFp = function(configuration?: Configuration) {
|
|
|
15926
16007
|
const localVarOperationServerBasePath = operationServerMap['PrepaidServiceApi.prepaidServiceControllerCreateService']?.[localVarOperationServerIndex]?.url;
|
|
15927
16008
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15928
16009
|
},
|
|
16010
|
+
/**
|
|
16011
|
+
*
|
|
16012
|
+
* @param {string} id
|
|
16013
|
+
* @param {*} [options] Override http request option.
|
|
16014
|
+
* @throws {RequiredError}
|
|
16015
|
+
*/
|
|
16016
|
+
async prepaidServiceControllerDeleteService(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrepaidServiceDTO>> {
|
|
16017
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.prepaidServiceControllerDeleteService(id, options);
|
|
16018
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16019
|
+
const localVarOperationServerBasePath = operationServerMap['PrepaidServiceApi.prepaidServiceControllerDeleteService']?.[localVarOperationServerIndex]?.url;
|
|
16020
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16021
|
+
},
|
|
15929
16022
|
/**
|
|
15930
16023
|
*
|
|
15931
16024
|
* @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
|
|
@@ -15990,6 +16083,15 @@ export const PrepaidServiceApiFactory = function (configuration?: Configuration,
|
|
|
15990
16083
|
prepaidServiceControllerCreateService(prepaidServicePayloadDTO: PrepaidServicePayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<PrepaidServiceDTO> {
|
|
15991
16084
|
return localVarFp.prepaidServiceControllerCreateService(prepaidServicePayloadDTO, options).then((request) => request(axios, basePath));
|
|
15992
16085
|
},
|
|
16086
|
+
/**
|
|
16087
|
+
*
|
|
16088
|
+
* @param {string} id
|
|
16089
|
+
* @param {*} [options] Override http request option.
|
|
16090
|
+
* @throws {RequiredError}
|
|
16091
|
+
*/
|
|
16092
|
+
prepaidServiceControllerDeleteService(id: string, options?: RawAxiosRequestConfig): AxiosPromise<PrepaidServiceDTO> {
|
|
16093
|
+
return localVarFp.prepaidServiceControllerDeleteService(id, options).then((request) => request(axios, basePath));
|
|
16094
|
+
},
|
|
15993
16095
|
/**
|
|
15994
16096
|
*
|
|
15995
16097
|
* @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
|
|
@@ -16049,6 +16151,17 @@ export class PrepaidServiceApi extends BaseAPI {
|
|
|
16049
16151
|
return PrepaidServiceApiFp(this.configuration).prepaidServiceControllerCreateService(prepaidServicePayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16050
16152
|
}
|
|
16051
16153
|
|
|
16154
|
+
/**
|
|
16155
|
+
*
|
|
16156
|
+
* @param {string} id
|
|
16157
|
+
* @param {*} [options] Override http request option.
|
|
16158
|
+
* @throws {RequiredError}
|
|
16159
|
+
* @memberof PrepaidServiceApi
|
|
16160
|
+
*/
|
|
16161
|
+
public prepaidServiceControllerDeleteService(id: string, options?: RawAxiosRequestConfig) {
|
|
16162
|
+
return PrepaidServiceApiFp(this.configuration).prepaidServiceControllerDeleteService(id, options).then((request) => request(this.axios, this.basePath));
|
|
16163
|
+
}
|
|
16164
|
+
|
|
16052
16165
|
/**
|
|
16053
16166
|
*
|
|
16054
16167
|
* @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
|
|
@@ -18934,7 +19047,7 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
18934
19047
|
whatsOnControllerDeleteWhatsOn: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18935
19048
|
// verify required parameter 'id' is not null or undefined
|
|
18936
19049
|
assertParamExists('whatsOnControllerDeleteWhatsOn', 'id', id)
|
|
18937
|
-
const localVarPath = `/v1/whats-on/{id}`
|
|
19050
|
+
const localVarPath = `/v1/whats-on/delete/{id}`
|
|
18938
19051
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
18939
19052
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18940
19053
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -18943,7 +19056,7 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
18943
19056
|
baseOptions = configuration.baseOptions;
|
|
18944
19057
|
}
|
|
18945
19058
|
|
|
18946
|
-
const localVarRequestOptions = { method: '
|
|
19059
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
18947
19060
|
const localVarHeaderParameter = {} as any;
|
|
18948
19061
|
const localVarQueryParameter = {} as any;
|
|
18949
19062
|
|
|
@@ -19278,6 +19391,45 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
19278
19391
|
options: localVarRequestOptions,
|
|
19279
19392
|
};
|
|
19280
19393
|
},
|
|
19394
|
+
/**
|
|
19395
|
+
*
|
|
19396
|
+
* @param {WhatsOnAvailabilityPayloadDTO} whatsOnAvailabilityPayloadDTO
|
|
19397
|
+
* @param {*} [options] Override http request option.
|
|
19398
|
+
* @throws {RequiredError}
|
|
19399
|
+
*/
|
|
19400
|
+
whatsOnControllerWhatsOnAvailability: async (whatsOnAvailabilityPayloadDTO: WhatsOnAvailabilityPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19401
|
+
// verify required parameter 'whatsOnAvailabilityPayloadDTO' is not null or undefined
|
|
19402
|
+
assertParamExists('whatsOnControllerWhatsOnAvailability', 'whatsOnAvailabilityPayloadDTO', whatsOnAvailabilityPayloadDTO)
|
|
19403
|
+
const localVarPath = `/v1/whats-on/availability`;
|
|
19404
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19405
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19406
|
+
let baseOptions;
|
|
19407
|
+
if (configuration) {
|
|
19408
|
+
baseOptions = configuration.baseOptions;
|
|
19409
|
+
}
|
|
19410
|
+
|
|
19411
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
19412
|
+
const localVarHeaderParameter = {} as any;
|
|
19413
|
+
const localVarQueryParameter = {} as any;
|
|
19414
|
+
|
|
19415
|
+
// authentication bearer required
|
|
19416
|
+
// http bearer authentication required
|
|
19417
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
19418
|
+
|
|
19419
|
+
|
|
19420
|
+
|
|
19421
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19422
|
+
|
|
19423
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19424
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19425
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19426
|
+
localVarRequestOptions.data = serializeDataIfNeeded(whatsOnAvailabilityPayloadDTO, localVarRequestOptions, configuration)
|
|
19427
|
+
|
|
19428
|
+
return {
|
|
19429
|
+
url: toPathString(localVarUrlObj),
|
|
19430
|
+
options: localVarRequestOptions,
|
|
19431
|
+
};
|
|
19432
|
+
},
|
|
19281
19433
|
/**
|
|
19282
19434
|
*
|
|
19283
19435
|
* @param {string} id
|
|
@@ -19447,6 +19599,18 @@ export const WhatsOnApiFp = function(configuration?: Configuration) {
|
|
|
19447
19599
|
const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerUpdateById']?.[localVarOperationServerIndex]?.url;
|
|
19448
19600
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19449
19601
|
},
|
|
19602
|
+
/**
|
|
19603
|
+
*
|
|
19604
|
+
* @param {WhatsOnAvailabilityPayloadDTO} whatsOnAvailabilityPayloadDTO
|
|
19605
|
+
* @param {*} [options] Override http request option.
|
|
19606
|
+
* @throws {RequiredError}
|
|
19607
|
+
*/
|
|
19608
|
+
async whatsOnControllerWhatsOnAvailability(whatsOnAvailabilityPayloadDTO: WhatsOnAvailabilityPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnAvailabilityResponseDTO>> {
|
|
19609
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerWhatsOnAvailability(whatsOnAvailabilityPayloadDTO, options);
|
|
19610
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19611
|
+
const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerWhatsOnAvailability']?.[localVarOperationServerIndex]?.url;
|
|
19612
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19613
|
+
},
|
|
19450
19614
|
/**
|
|
19451
19615
|
*
|
|
19452
19616
|
* @param {string} id
|
|
@@ -19561,6 +19725,15 @@ export const WhatsOnApiFactory = function (configuration?: Configuration, basePa
|
|
|
19561
19725
|
whatsOnControllerUpdateById(id: string, whatsOnPayloadDTO: WhatsOnPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnDTO> {
|
|
19562
19726
|
return localVarFp.whatsOnControllerUpdateById(id, whatsOnPayloadDTO, options).then((request) => request(axios, basePath));
|
|
19563
19727
|
},
|
|
19728
|
+
/**
|
|
19729
|
+
*
|
|
19730
|
+
* @param {WhatsOnAvailabilityPayloadDTO} whatsOnAvailabilityPayloadDTO
|
|
19731
|
+
* @param {*} [options] Override http request option.
|
|
19732
|
+
* @throws {RequiredError}
|
|
19733
|
+
*/
|
|
19734
|
+
whatsOnControllerWhatsOnAvailability(whatsOnAvailabilityPayloadDTO: WhatsOnAvailabilityPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnAvailabilityResponseDTO> {
|
|
19735
|
+
return localVarFp.whatsOnControllerWhatsOnAvailability(whatsOnAvailabilityPayloadDTO, options).then((request) => request(axios, basePath));
|
|
19736
|
+
},
|
|
19564
19737
|
/**
|
|
19565
19738
|
*
|
|
19566
19739
|
* @param {string} id
|
|
@@ -19692,6 +19865,17 @@ export class WhatsOnApi extends BaseAPI {
|
|
|
19692
19865
|
return WhatsOnApiFp(this.configuration).whatsOnControllerUpdateById(id, whatsOnPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
19693
19866
|
}
|
|
19694
19867
|
|
|
19868
|
+
/**
|
|
19869
|
+
*
|
|
19870
|
+
* @param {WhatsOnAvailabilityPayloadDTO} whatsOnAvailabilityPayloadDTO
|
|
19871
|
+
* @param {*} [options] Override http request option.
|
|
19872
|
+
* @throws {RequiredError}
|
|
19873
|
+
* @memberof WhatsOnApi
|
|
19874
|
+
*/
|
|
19875
|
+
public whatsOnControllerWhatsOnAvailability(whatsOnAvailabilityPayloadDTO: WhatsOnAvailabilityPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
19876
|
+
return WhatsOnApiFp(this.configuration).whatsOnControllerWhatsOnAvailability(whatsOnAvailabilityPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
19877
|
+
}
|
|
19878
|
+
|
|
19695
19879
|
/**
|
|
19696
19880
|
*
|
|
19697
19881
|
* @param {string} id
|