@gooday_corp/gooday-api-client 1.2.87 → 1.2.89
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 +175 -57
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -2207,6 +2207,64 @@ export interface CalendarEventsDTO {
|
|
|
2207
2207
|
*/
|
|
2208
2208
|
'data': CalendarEvents;
|
|
2209
2209
|
}
|
|
2210
|
+
/**
|
|
2211
|
+
*
|
|
2212
|
+
* @export
|
|
2213
|
+
* @interface CalendarEventsListPayload
|
|
2214
|
+
*/
|
|
2215
|
+
export interface CalendarEventsListPayload {
|
|
2216
|
+
/**
|
|
2217
|
+
* Start date for the events
|
|
2218
|
+
* @type {string}
|
|
2219
|
+
* @memberof CalendarEventsListPayload
|
|
2220
|
+
*/
|
|
2221
|
+
'startDate': string;
|
|
2222
|
+
/**
|
|
2223
|
+
* End date for the events
|
|
2224
|
+
* @type {string}
|
|
2225
|
+
* @memberof CalendarEventsListPayload
|
|
2226
|
+
*/
|
|
2227
|
+
'endDate': string;
|
|
2228
|
+
/**
|
|
2229
|
+
* View
|
|
2230
|
+
* @type {string}
|
|
2231
|
+
* @memberof CalendarEventsListPayload
|
|
2232
|
+
*/
|
|
2233
|
+
'view': CalendarEventsListPayloadViewEnum;
|
|
2234
|
+
/**
|
|
2235
|
+
* Calendar
|
|
2236
|
+
* @type {string}
|
|
2237
|
+
* @memberof CalendarEventsListPayload
|
|
2238
|
+
*/
|
|
2239
|
+
'calendar'?: string;
|
|
2240
|
+
/**
|
|
2241
|
+
* Venue
|
|
2242
|
+
* @type {string}
|
|
2243
|
+
* @memberof CalendarEventsListPayload
|
|
2244
|
+
*/
|
|
2245
|
+
'venue'?: string;
|
|
2246
|
+
/**
|
|
2247
|
+
*
|
|
2248
|
+
* @type {number}
|
|
2249
|
+
* @memberof CalendarEventsListPayload
|
|
2250
|
+
*/
|
|
2251
|
+
'page'?: number;
|
|
2252
|
+
/**
|
|
2253
|
+
*
|
|
2254
|
+
* @type {number}
|
|
2255
|
+
* @memberof CalendarEventsListPayload
|
|
2256
|
+
*/
|
|
2257
|
+
'pageSize'?: number;
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
export const CalendarEventsListPayloadViewEnum = {
|
|
2261
|
+
Daily: 'daily',
|
|
2262
|
+
Weekly: 'weekly',
|
|
2263
|
+
Monthly: 'monthly'
|
|
2264
|
+
} as const;
|
|
2265
|
+
|
|
2266
|
+
export type CalendarEventsListPayloadViewEnum = typeof CalendarEventsListPayloadViewEnum[keyof typeof CalendarEventsListPayloadViewEnum];
|
|
2267
|
+
|
|
2210
2268
|
/**
|
|
2211
2269
|
*
|
|
2212
2270
|
* @export
|
|
@@ -2353,6 +2411,12 @@ export interface CancelBookingDTO {
|
|
|
2353
2411
|
* @memberof CancelBookingDTO
|
|
2354
2412
|
*/
|
|
2355
2413
|
'booking': string;
|
|
2414
|
+
/**
|
|
2415
|
+
*
|
|
2416
|
+
* @type {string}
|
|
2417
|
+
* @memberof CancelBookingDTO
|
|
2418
|
+
*/
|
|
2419
|
+
'reason'?: string;
|
|
2356
2420
|
}
|
|
2357
2421
|
/**
|
|
2358
2422
|
*
|
|
@@ -7648,6 +7712,31 @@ export interface WhatsOnResponseDTO {
|
|
|
7648
7712
|
*/
|
|
7649
7713
|
'statusCode': number;
|
|
7650
7714
|
}
|
|
7715
|
+
/**
|
|
7716
|
+
*
|
|
7717
|
+
* @export
|
|
7718
|
+
* @interface WhatsOnSlotsPayload
|
|
7719
|
+
*/
|
|
7720
|
+
export interface WhatsOnSlotsPayload {
|
|
7721
|
+
/**
|
|
7722
|
+
* Start date for the events
|
|
7723
|
+
* @type {string}
|
|
7724
|
+
* @memberof WhatsOnSlotsPayload
|
|
7725
|
+
*/
|
|
7726
|
+
'startDate': string;
|
|
7727
|
+
/**
|
|
7728
|
+
* End date for the events
|
|
7729
|
+
* @type {string}
|
|
7730
|
+
* @memberof WhatsOnSlotsPayload
|
|
7731
|
+
*/
|
|
7732
|
+
'endDate': string;
|
|
7733
|
+
/**
|
|
7734
|
+
* WhatsOn ID
|
|
7735
|
+
* @type {string}
|
|
7736
|
+
* @memberof WhatsOnSlotsPayload
|
|
7737
|
+
*/
|
|
7738
|
+
'id': string;
|
|
7739
|
+
}
|
|
7651
7740
|
/**
|
|
7652
7741
|
*
|
|
7653
7742
|
* @export
|
|
@@ -11548,20 +11637,13 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11548
11637
|
},
|
|
11549
11638
|
/**
|
|
11550
11639
|
*
|
|
11551
|
-
* @param {
|
|
11552
|
-
* @param {string} endDate End date for the events
|
|
11553
|
-
* @param {CalendarControllerListEventsViewEnum} view View
|
|
11554
|
-
* @param {string} [calendar] Calendar
|
|
11640
|
+
* @param {CalendarEventsListPayload} calendarEventsListPayload
|
|
11555
11641
|
* @param {*} [options] Override http request option.
|
|
11556
11642
|
* @throws {RequiredError}
|
|
11557
11643
|
*/
|
|
11558
|
-
calendarControllerListEvents: async (
|
|
11559
|
-
// verify required parameter '
|
|
11560
|
-
assertParamExists('calendarControllerListEvents', '
|
|
11561
|
-
// verify required parameter 'endDate' is not null or undefined
|
|
11562
|
-
assertParamExists('calendarControllerListEvents', 'endDate', endDate)
|
|
11563
|
-
// verify required parameter 'view' is not null or undefined
|
|
11564
|
-
assertParamExists('calendarControllerListEvents', 'view', view)
|
|
11644
|
+
calendarControllerListEvents: async (calendarEventsListPayload: CalendarEventsListPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11645
|
+
// verify required parameter 'calendarEventsListPayload' is not null or undefined
|
|
11646
|
+
assertParamExists('calendarControllerListEvents', 'calendarEventsListPayload', calendarEventsListPayload)
|
|
11565
11647
|
const localVarPath = `/v1/calendar/events`;
|
|
11566
11648
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11567
11649
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -11570,7 +11652,7 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11570
11652
|
baseOptions = configuration.baseOptions;
|
|
11571
11653
|
}
|
|
11572
11654
|
|
|
11573
|
-
const localVarRequestOptions = { method: '
|
|
11655
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11574
11656
|
const localVarHeaderParameter = {} as any;
|
|
11575
11657
|
const localVarQueryParameter = {} as any;
|
|
11576
11658
|
|
|
@@ -11578,26 +11660,42 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11578
11660
|
// http bearer authentication required
|
|
11579
11661
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11580
11662
|
|
|
11581
|
-
if (startDate !== undefined) {
|
|
11582
|
-
localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ?
|
|
11583
|
-
(startDate as any).toISOString() :
|
|
11584
|
-
startDate;
|
|
11585
|
-
}
|
|
11586
11663
|
|
|
11587
|
-
|
|
11588
|
-
|
|
11589
|
-
(endDate as any).toISOString() :
|
|
11590
|
-
endDate;
|
|
11591
|
-
}
|
|
11664
|
+
|
|
11665
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11592
11666
|
|
|
11593
|
-
|
|
11594
|
-
|
|
11595
|
-
}
|
|
11667
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11668
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11669
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11670
|
+
localVarRequestOptions.data = serializeDataIfNeeded(calendarEventsListPayload, localVarRequestOptions, configuration)
|
|
11596
11671
|
|
|
11597
|
-
|
|
11598
|
-
|
|
11672
|
+
return {
|
|
11673
|
+
url: toPathString(localVarUrlObj),
|
|
11674
|
+
options: localVarRequestOptions,
|
|
11675
|
+
};
|
|
11676
|
+
},
|
|
11677
|
+
/**
|
|
11678
|
+
*
|
|
11679
|
+
* @param {*} [options] Override http request option.
|
|
11680
|
+
* @throws {RequiredError}
|
|
11681
|
+
*/
|
|
11682
|
+
calendarControllerListMyCalendar: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11683
|
+
const localVarPath = `/v1/calendar`;
|
|
11684
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11685
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11686
|
+
let baseOptions;
|
|
11687
|
+
if (configuration) {
|
|
11688
|
+
baseOptions = configuration.baseOptions;
|
|
11599
11689
|
}
|
|
11600
11690
|
|
|
11691
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
11692
|
+
const localVarHeaderParameter = {} as any;
|
|
11693
|
+
const localVarQueryParameter = {} as any;
|
|
11694
|
+
|
|
11695
|
+
// authentication bearer required
|
|
11696
|
+
// http bearer authentication required
|
|
11697
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11698
|
+
|
|
11601
11699
|
|
|
11602
11700
|
|
|
11603
11701
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -11611,11 +11709,14 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11611
11709
|
},
|
|
11612
11710
|
/**
|
|
11613
11711
|
*
|
|
11712
|
+
* @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
|
|
11614
11713
|
* @param {*} [options] Override http request option.
|
|
11615
11714
|
* @throws {RequiredError}
|
|
11616
11715
|
*/
|
|
11617
|
-
|
|
11618
|
-
|
|
11716
|
+
calendarControllerListWhatsOnAvailableSlots: async (whatsOnSlotsPayload: WhatsOnSlotsPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11717
|
+
// verify required parameter 'whatsOnSlotsPayload' is not null or undefined
|
|
11718
|
+
assertParamExists('calendarControllerListWhatsOnAvailableSlots', 'whatsOnSlotsPayload', whatsOnSlotsPayload)
|
|
11719
|
+
const localVarPath = `/v1/calendar/slots/whats-on`;
|
|
11619
11720
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11620
11721
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11621
11722
|
let baseOptions;
|
|
@@ -11623,7 +11724,7 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11623
11724
|
baseOptions = configuration.baseOptions;
|
|
11624
11725
|
}
|
|
11625
11726
|
|
|
11626
|
-
const localVarRequestOptions = { method: '
|
|
11727
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11627
11728
|
const localVarHeaderParameter = {} as any;
|
|
11628
11729
|
const localVarQueryParameter = {} as any;
|
|
11629
11730
|
|
|
@@ -11633,9 +11734,12 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11633
11734
|
|
|
11634
11735
|
|
|
11635
11736
|
|
|
11737
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11738
|
+
|
|
11636
11739
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11637
11740
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11638
11741
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11742
|
+
localVarRequestOptions.data = serializeDataIfNeeded(whatsOnSlotsPayload, localVarRequestOptions, configuration)
|
|
11639
11743
|
|
|
11640
11744
|
return {
|
|
11641
11745
|
url: toPathString(localVarUrlObj),
|
|
@@ -11858,15 +11962,12 @@ export const CalendarApiFp = function(configuration?: Configuration) {
|
|
|
11858
11962
|
},
|
|
11859
11963
|
/**
|
|
11860
11964
|
*
|
|
11861
|
-
* @param {
|
|
11862
|
-
* @param {string} endDate End date for the events
|
|
11863
|
-
* @param {CalendarControllerListEventsViewEnum} view View
|
|
11864
|
-
* @param {string} [calendar] Calendar
|
|
11965
|
+
* @param {CalendarEventsListPayload} calendarEventsListPayload
|
|
11865
11966
|
* @param {*} [options] Override http request option.
|
|
11866
11967
|
* @throws {RequiredError}
|
|
11867
11968
|
*/
|
|
11868
|
-
async calendarControllerListEvents(
|
|
11869
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListEvents(
|
|
11969
|
+
async calendarControllerListEvents(calendarEventsListPayload: CalendarEventsListPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarEventsDTO>> {
|
|
11970
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListEvents(calendarEventsListPayload, options);
|
|
11870
11971
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11871
11972
|
const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListEvents']?.[localVarOperationServerIndex]?.url;
|
|
11872
11973
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -11882,6 +11983,18 @@ export const CalendarApiFp = function(configuration?: Configuration) {
|
|
|
11882
11983
|
const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListMyCalendar']?.[localVarOperationServerIndex]?.url;
|
|
11883
11984
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11884
11985
|
},
|
|
11986
|
+
/**
|
|
11987
|
+
*
|
|
11988
|
+
* @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
|
|
11989
|
+
* @param {*} [options] Override http request option.
|
|
11990
|
+
* @throws {RequiredError}
|
|
11991
|
+
*/
|
|
11992
|
+
async calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload: WhatsOnSlotsPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarSlotsDTO>> {
|
|
11993
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload, options);
|
|
11994
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11995
|
+
const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListWhatsOnAvailableSlots']?.[localVarOperationServerIndex]?.url;
|
|
11996
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11997
|
+
},
|
|
11885
11998
|
/**
|
|
11886
11999
|
*
|
|
11887
12000
|
* @param {RejectCollaborateInvitePayload} rejectCollaborateInvitePayload
|
|
@@ -11978,15 +12091,12 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
|
|
|
11978
12091
|
},
|
|
11979
12092
|
/**
|
|
11980
12093
|
*
|
|
11981
|
-
* @param {
|
|
11982
|
-
* @param {string} endDate End date for the events
|
|
11983
|
-
* @param {CalendarControllerListEventsViewEnum} view View
|
|
11984
|
-
* @param {string} [calendar] Calendar
|
|
12094
|
+
* @param {CalendarEventsListPayload} calendarEventsListPayload
|
|
11985
12095
|
* @param {*} [options] Override http request option.
|
|
11986
12096
|
* @throws {RequiredError}
|
|
11987
12097
|
*/
|
|
11988
|
-
calendarControllerListEvents(
|
|
11989
|
-
return localVarFp.calendarControllerListEvents(
|
|
12098
|
+
calendarControllerListEvents(calendarEventsListPayload: CalendarEventsListPayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarEventsDTO> {
|
|
12099
|
+
return localVarFp.calendarControllerListEvents(calendarEventsListPayload, options).then((request) => request(axios, basePath));
|
|
11990
12100
|
},
|
|
11991
12101
|
/**
|
|
11992
12102
|
*
|
|
@@ -11996,6 +12106,15 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
|
|
|
11996
12106
|
calendarControllerListMyCalendar(options?: RawAxiosRequestConfig): AxiosPromise<CalendarListResponseDTO> {
|
|
11997
12107
|
return localVarFp.calendarControllerListMyCalendar(options).then((request) => request(axios, basePath));
|
|
11998
12108
|
},
|
|
12109
|
+
/**
|
|
12110
|
+
*
|
|
12111
|
+
* @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
|
|
12112
|
+
* @param {*} [options] Override http request option.
|
|
12113
|
+
* @throws {RequiredError}
|
|
12114
|
+
*/
|
|
12115
|
+
calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload: WhatsOnSlotsPayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarSlotsDTO> {
|
|
12116
|
+
return localVarFp.calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload, options).then((request) => request(axios, basePath));
|
|
12117
|
+
},
|
|
11999
12118
|
/**
|
|
12000
12119
|
*
|
|
12001
12120
|
* @param {RejectCollaborateInvitePayload} rejectCollaborateInvitePayload
|
|
@@ -12088,16 +12207,13 @@ export class CalendarApi extends BaseAPI {
|
|
|
12088
12207
|
|
|
12089
12208
|
/**
|
|
12090
12209
|
*
|
|
12091
|
-
* @param {
|
|
12092
|
-
* @param {string} endDate End date for the events
|
|
12093
|
-
* @param {CalendarControllerListEventsViewEnum} view View
|
|
12094
|
-
* @param {string} [calendar] Calendar
|
|
12210
|
+
* @param {CalendarEventsListPayload} calendarEventsListPayload
|
|
12095
12211
|
* @param {*} [options] Override http request option.
|
|
12096
12212
|
* @throws {RequiredError}
|
|
12097
12213
|
* @memberof CalendarApi
|
|
12098
12214
|
*/
|
|
12099
|
-
public calendarControllerListEvents(
|
|
12100
|
-
return CalendarApiFp(this.configuration).calendarControllerListEvents(
|
|
12215
|
+
public calendarControllerListEvents(calendarEventsListPayload: CalendarEventsListPayload, options?: RawAxiosRequestConfig) {
|
|
12216
|
+
return CalendarApiFp(this.configuration).calendarControllerListEvents(calendarEventsListPayload, options).then((request) => request(this.axios, this.basePath));
|
|
12101
12217
|
}
|
|
12102
12218
|
|
|
12103
12219
|
/**
|
|
@@ -12110,6 +12226,17 @@ export class CalendarApi extends BaseAPI {
|
|
|
12110
12226
|
return CalendarApiFp(this.configuration).calendarControllerListMyCalendar(options).then((request) => request(this.axios, this.basePath));
|
|
12111
12227
|
}
|
|
12112
12228
|
|
|
12229
|
+
/**
|
|
12230
|
+
*
|
|
12231
|
+
* @param {WhatsOnSlotsPayload} whatsOnSlotsPayload
|
|
12232
|
+
* @param {*} [options] Override http request option.
|
|
12233
|
+
* @throws {RequiredError}
|
|
12234
|
+
* @memberof CalendarApi
|
|
12235
|
+
*/
|
|
12236
|
+
public calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload: WhatsOnSlotsPayload, options?: RawAxiosRequestConfig) {
|
|
12237
|
+
return CalendarApiFp(this.configuration).calendarControllerListWhatsOnAvailableSlots(whatsOnSlotsPayload, options).then((request) => request(this.axios, this.basePath));
|
|
12238
|
+
}
|
|
12239
|
+
|
|
12113
12240
|
/**
|
|
12114
12241
|
*
|
|
12115
12242
|
* @param {RejectCollaborateInvitePayload} rejectCollaborateInvitePayload
|
|
@@ -12155,15 +12282,6 @@ export class CalendarApi extends BaseAPI {
|
|
|
12155
12282
|
}
|
|
12156
12283
|
}
|
|
12157
12284
|
|
|
12158
|
-
/**
|
|
12159
|
-
* @export
|
|
12160
|
-
*/
|
|
12161
|
-
export const CalendarControllerListEventsViewEnum = {
|
|
12162
|
-
Daily: 'daily',
|
|
12163
|
-
Weekly: 'weekly',
|
|
12164
|
-
Monthly: 'monthly'
|
|
12165
|
-
} as const;
|
|
12166
|
-
export type CalendarControllerListEventsViewEnum = typeof CalendarControllerListEventsViewEnum[keyof typeof CalendarControllerListEventsViewEnum];
|
|
12167
12285
|
|
|
12168
12286
|
|
|
12169
12287
|
/**
|