@gooday_corp/gooday-api-client 1.2.87 → 1.2.88
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 +81 -59
- 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
|
*
|
|
@@ -11548,20 +11612,13 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11548
11612
|
},
|
|
11549
11613
|
/**
|
|
11550
11614
|
*
|
|
11551
|
-
* @param {
|
|
11552
|
-
* @param {string} endDate End date for the events
|
|
11553
|
-
* @param {CalendarControllerListEventsViewEnum} view View
|
|
11554
|
-
* @param {string} [calendar] Calendar
|
|
11615
|
+
* @param {CalendarEventsListPayload} calendarEventsListPayload
|
|
11555
11616
|
* @param {*} [options] Override http request option.
|
|
11556
11617
|
* @throws {RequiredError}
|
|
11557
11618
|
*/
|
|
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)
|
|
11619
|
+
calendarControllerListEvents: async (calendarEventsListPayload: CalendarEventsListPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11620
|
+
// verify required parameter 'calendarEventsListPayload' is not null or undefined
|
|
11621
|
+
assertParamExists('calendarControllerListEvents', 'calendarEventsListPayload', calendarEventsListPayload)
|
|
11565
11622
|
const localVarPath = `/v1/calendar/events`;
|
|
11566
11623
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11567
11624
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -11570,7 +11627,7 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11570
11627
|
baseOptions = configuration.baseOptions;
|
|
11571
11628
|
}
|
|
11572
11629
|
|
|
11573
|
-
const localVarRequestOptions = { method: '
|
|
11630
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11574
11631
|
const localVarHeaderParameter = {} as any;
|
|
11575
11632
|
const localVarQueryParameter = {} as any;
|
|
11576
11633
|
|
|
@@ -11578,31 +11635,14 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
11578
11635
|
// http bearer authentication required
|
|
11579
11636
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11580
11637
|
|
|
11581
|
-
if (startDate !== undefined) {
|
|
11582
|
-
localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ?
|
|
11583
|
-
(startDate as any).toISOString() :
|
|
11584
|
-
startDate;
|
|
11585
|
-
}
|
|
11586
|
-
|
|
11587
|
-
if (endDate !== undefined) {
|
|
11588
|
-
localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ?
|
|
11589
|
-
(endDate as any).toISOString() :
|
|
11590
|
-
endDate;
|
|
11591
|
-
}
|
|
11592
|
-
|
|
11593
|
-
if (view !== undefined) {
|
|
11594
|
-
localVarQueryParameter['view'] = view;
|
|
11595
|
-
}
|
|
11596
|
-
|
|
11597
|
-
if (calendar !== undefined) {
|
|
11598
|
-
localVarQueryParameter['calendar'] = calendar;
|
|
11599
|
-
}
|
|
11600
|
-
|
|
11601
11638
|
|
|
11602
11639
|
|
|
11640
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11641
|
+
|
|
11603
11642
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11604
11643
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11605
11644
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11645
|
+
localVarRequestOptions.data = serializeDataIfNeeded(calendarEventsListPayload, localVarRequestOptions, configuration)
|
|
11606
11646
|
|
|
11607
11647
|
return {
|
|
11608
11648
|
url: toPathString(localVarUrlObj),
|
|
@@ -11858,15 +11898,12 @@ export const CalendarApiFp = function(configuration?: Configuration) {
|
|
|
11858
11898
|
},
|
|
11859
11899
|
/**
|
|
11860
11900
|
*
|
|
11861
|
-
* @param {
|
|
11862
|
-
* @param {string} endDate End date for the events
|
|
11863
|
-
* @param {CalendarControllerListEventsViewEnum} view View
|
|
11864
|
-
* @param {string} [calendar] Calendar
|
|
11901
|
+
* @param {CalendarEventsListPayload} calendarEventsListPayload
|
|
11865
11902
|
* @param {*} [options] Override http request option.
|
|
11866
11903
|
* @throws {RequiredError}
|
|
11867
11904
|
*/
|
|
11868
|
-
async calendarControllerListEvents(
|
|
11869
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListEvents(
|
|
11905
|
+
async calendarControllerListEvents(calendarEventsListPayload: CalendarEventsListPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarEventsDTO>> {
|
|
11906
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListEvents(calendarEventsListPayload, options);
|
|
11870
11907
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11871
11908
|
const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListEvents']?.[localVarOperationServerIndex]?.url;
|
|
11872
11909
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -11978,15 +12015,12 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
|
|
|
11978
12015
|
},
|
|
11979
12016
|
/**
|
|
11980
12017
|
*
|
|
11981
|
-
* @param {
|
|
11982
|
-
* @param {string} endDate End date for the events
|
|
11983
|
-
* @param {CalendarControllerListEventsViewEnum} view View
|
|
11984
|
-
* @param {string} [calendar] Calendar
|
|
12018
|
+
* @param {CalendarEventsListPayload} calendarEventsListPayload
|
|
11985
12019
|
* @param {*} [options] Override http request option.
|
|
11986
12020
|
* @throws {RequiredError}
|
|
11987
12021
|
*/
|
|
11988
|
-
calendarControllerListEvents(
|
|
11989
|
-
return localVarFp.calendarControllerListEvents(
|
|
12022
|
+
calendarControllerListEvents(calendarEventsListPayload: CalendarEventsListPayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarEventsDTO> {
|
|
12023
|
+
return localVarFp.calendarControllerListEvents(calendarEventsListPayload, options).then((request) => request(axios, basePath));
|
|
11990
12024
|
},
|
|
11991
12025
|
/**
|
|
11992
12026
|
*
|
|
@@ -12088,16 +12122,13 @@ export class CalendarApi extends BaseAPI {
|
|
|
12088
12122
|
|
|
12089
12123
|
/**
|
|
12090
12124
|
*
|
|
12091
|
-
* @param {
|
|
12092
|
-
* @param {string} endDate End date for the events
|
|
12093
|
-
* @param {CalendarControllerListEventsViewEnum} view View
|
|
12094
|
-
* @param {string} [calendar] Calendar
|
|
12125
|
+
* @param {CalendarEventsListPayload} calendarEventsListPayload
|
|
12095
12126
|
* @param {*} [options] Override http request option.
|
|
12096
12127
|
* @throws {RequiredError}
|
|
12097
12128
|
* @memberof CalendarApi
|
|
12098
12129
|
*/
|
|
12099
|
-
public calendarControllerListEvents(
|
|
12100
|
-
return CalendarApiFp(this.configuration).calendarControllerListEvents(
|
|
12130
|
+
public calendarControllerListEvents(calendarEventsListPayload: CalendarEventsListPayload, options?: RawAxiosRequestConfig) {
|
|
12131
|
+
return CalendarApiFp(this.configuration).calendarControllerListEvents(calendarEventsListPayload, options).then((request) => request(this.axios, this.basePath));
|
|
12101
12132
|
}
|
|
12102
12133
|
|
|
12103
12134
|
/**
|
|
@@ -12155,15 +12186,6 @@ export class CalendarApi extends BaseAPI {
|
|
|
12155
12186
|
}
|
|
12156
12187
|
}
|
|
12157
12188
|
|
|
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
12189
|
|
|
12168
12190
|
|
|
12169
12191
|
/**
|