@gooday_corp/gooday-api-client 1.2.86 → 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.
Files changed (2) hide show
  1. package/api.ts +143 -59
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -1041,6 +1041,44 @@ export interface BookingResponseDTO {
1041
1041
  */
1042
1042
  'data': BookingResponse;
1043
1043
  }
1044
+ /**
1045
+ *
1046
+ * @export
1047
+ * @interface BookingRulesEntity
1048
+ */
1049
+ export interface BookingRulesEntity {
1050
+ /**
1051
+ * Final booking relative time
1052
+ * @type {string}
1053
+ * @memberof BookingRulesEntity
1054
+ */
1055
+ 'finalBookingTimeRelative': string;
1056
+ /**
1057
+ * Final booking absolute time
1058
+ * @type {string}
1059
+ * @memberof BookingRulesEntity
1060
+ */
1061
+ 'finalBookingTimeAbsolute': string;
1062
+ }
1063
+ /**
1064
+ *
1065
+ * @export
1066
+ * @interface BookingRulesPayloadDTO
1067
+ */
1068
+ export interface BookingRulesPayloadDTO {
1069
+ /**
1070
+ * Final booking relative time
1071
+ * @type {string}
1072
+ * @memberof BookingRulesPayloadDTO
1073
+ */
1074
+ 'finalBookingTimeRelative': string;
1075
+ /**
1076
+ * Final booking absolute time
1077
+ * @type {string}
1078
+ * @memberof BookingRulesPayloadDTO
1079
+ */
1080
+ 'finalBookingTimeAbsolute': string;
1081
+ }
1044
1082
  /**
1045
1083
  *
1046
1084
  * @export
@@ -2169,6 +2207,64 @@ export interface CalendarEventsDTO {
2169
2207
  */
2170
2208
  'data': CalendarEvents;
2171
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
+
2172
2268
  /**
2173
2269
  *
2174
2270
  * @export
@@ -2315,6 +2411,12 @@ export interface CancelBookingDTO {
2315
2411
  * @memberof CancelBookingDTO
2316
2412
  */
2317
2413
  'booking': string;
2414
+ /**
2415
+ *
2416
+ * @type {string}
2417
+ * @memberof CancelBookingDTO
2418
+ */
2419
+ 'reason'?: string;
2318
2420
  }
2319
2421
  /**
2320
2422
  *
@@ -4968,6 +5070,12 @@ export interface PrepaidServiceEntity {
4968
5070
  * @memberof PrepaidServiceEntity
4969
5071
  */
4970
5072
  'staffs': Array<BusinessStaffEntity>;
5073
+ /**
5074
+ *
5075
+ * @type {BookingRulesEntity}
5076
+ * @memberof PrepaidServiceEntity
5077
+ */
5078
+ 'rules': BookingRulesEntity;
4971
5079
  /**
4972
5080
  *
4973
5081
  * @type {Array<StaffPrice>}
@@ -5155,6 +5263,12 @@ export interface PrepaidServicePayloadDTO {
5155
5263
  * @memberof PrepaidServicePayloadDTO
5156
5264
  */
5157
5265
  'staffPrice': Array<StaffPrice>;
5266
+ /**
5267
+ * Booking rules
5268
+ * @type {BookingRulesPayloadDTO}
5269
+ * @memberof PrepaidServicePayloadDTO
5270
+ */
5271
+ 'rules': BookingRulesPayloadDTO;
5158
5272
  /**
5159
5273
  * Business venue
5160
5274
  * @type {string}
@@ -7209,6 +7323,12 @@ export interface WhatsOnEntity {
7209
7323
  * @memberof WhatsOnEntity
7210
7324
  */
7211
7325
  'location'?: WhatsOnLocationDTO;
7326
+ /**
7327
+ *
7328
+ * @type {BookingRulesEntity}
7329
+ * @memberof WhatsOnEntity
7330
+ */
7331
+ 'rules'?: BookingRulesEntity;
7212
7332
  /**
7213
7333
  *
7214
7334
  * @type {number}
@@ -7489,6 +7609,12 @@ export interface WhatsOnPayloadDTO {
7489
7609
  * @memberof WhatsOnPayloadDTO
7490
7610
  */
7491
7611
  'price': number;
7612
+ /**
7613
+ * Booking rules
7614
+ * @type {BookingRulesPayloadDTO}
7615
+ * @memberof WhatsOnPayloadDTO
7616
+ */
7617
+ 'rules': BookingRulesPayloadDTO;
7492
7618
  /**
7493
7619
  *
7494
7620
  * @type {number}
@@ -11486,20 +11612,13 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
11486
11612
  },
11487
11613
  /**
11488
11614
  *
11489
- * @param {string} startDate Start date for the events
11490
- * @param {string} endDate End date for the events
11491
- * @param {CalendarControllerListEventsViewEnum} view View
11492
- * @param {string} [calendar] Calendar
11615
+ * @param {CalendarEventsListPayload} calendarEventsListPayload
11493
11616
  * @param {*} [options] Override http request option.
11494
11617
  * @throws {RequiredError}
11495
11618
  */
11496
- calendarControllerListEvents: async (startDate: string, endDate: string, view: CalendarControllerListEventsViewEnum, calendar?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11497
- // verify required parameter 'startDate' is not null or undefined
11498
- assertParamExists('calendarControllerListEvents', 'startDate', startDate)
11499
- // verify required parameter 'endDate' is not null or undefined
11500
- assertParamExists('calendarControllerListEvents', 'endDate', endDate)
11501
- // verify required parameter 'view' is not null or undefined
11502
- 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)
11503
11622
  const localVarPath = `/v1/calendar/events`;
11504
11623
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11505
11624
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -11508,7 +11627,7 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
11508
11627
  baseOptions = configuration.baseOptions;
11509
11628
  }
11510
11629
 
11511
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11630
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11512
11631
  const localVarHeaderParameter = {} as any;
11513
11632
  const localVarQueryParameter = {} as any;
11514
11633
 
@@ -11516,31 +11635,14 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
11516
11635
  // http bearer authentication required
11517
11636
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
11518
11637
 
11519
- if (startDate !== undefined) {
11520
- localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ?
11521
- (startDate as any).toISOString() :
11522
- startDate;
11523
- }
11524
-
11525
- if (endDate !== undefined) {
11526
- localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ?
11527
- (endDate as any).toISOString() :
11528
- endDate;
11529
- }
11530
-
11531
- if (view !== undefined) {
11532
- localVarQueryParameter['view'] = view;
11533
- }
11534
-
11535
- if (calendar !== undefined) {
11536
- localVarQueryParameter['calendar'] = calendar;
11537
- }
11538
-
11539
11638
 
11540
11639
 
11640
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11641
+
11541
11642
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11542
11643
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11543
11644
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11645
+ localVarRequestOptions.data = serializeDataIfNeeded(calendarEventsListPayload, localVarRequestOptions, configuration)
11544
11646
 
11545
11647
  return {
11546
11648
  url: toPathString(localVarUrlObj),
@@ -11796,15 +11898,12 @@ export const CalendarApiFp = function(configuration?: Configuration) {
11796
11898
  },
11797
11899
  /**
11798
11900
  *
11799
- * @param {string} startDate Start date for the events
11800
- * @param {string} endDate End date for the events
11801
- * @param {CalendarControllerListEventsViewEnum} view View
11802
- * @param {string} [calendar] Calendar
11901
+ * @param {CalendarEventsListPayload} calendarEventsListPayload
11803
11902
  * @param {*} [options] Override http request option.
11804
11903
  * @throws {RequiredError}
11805
11904
  */
11806
- async calendarControllerListEvents(startDate: string, endDate: string, view: CalendarControllerListEventsViewEnum, calendar?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarEventsDTO>> {
11807
- const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListEvents(startDate, endDate, view, calendar, options);
11905
+ async calendarControllerListEvents(calendarEventsListPayload: CalendarEventsListPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarEventsDTO>> {
11906
+ const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListEvents(calendarEventsListPayload, options);
11808
11907
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11809
11908
  const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListEvents']?.[localVarOperationServerIndex]?.url;
11810
11909
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -11916,15 +12015,12 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
11916
12015
  },
11917
12016
  /**
11918
12017
  *
11919
- * @param {string} startDate Start date for the events
11920
- * @param {string} endDate End date for the events
11921
- * @param {CalendarControllerListEventsViewEnum} view View
11922
- * @param {string} [calendar] Calendar
12018
+ * @param {CalendarEventsListPayload} calendarEventsListPayload
11923
12019
  * @param {*} [options] Override http request option.
11924
12020
  * @throws {RequiredError}
11925
12021
  */
11926
- calendarControllerListEvents(startDate: string, endDate: string, view: CalendarControllerListEventsViewEnum, calendar?: string, options?: RawAxiosRequestConfig): AxiosPromise<CalendarEventsDTO> {
11927
- return localVarFp.calendarControllerListEvents(startDate, endDate, view, calendar, options).then((request) => request(axios, basePath));
12022
+ calendarControllerListEvents(calendarEventsListPayload: CalendarEventsListPayload, options?: RawAxiosRequestConfig): AxiosPromise<CalendarEventsDTO> {
12023
+ return localVarFp.calendarControllerListEvents(calendarEventsListPayload, options).then((request) => request(axios, basePath));
11928
12024
  },
11929
12025
  /**
11930
12026
  *
@@ -12026,16 +12122,13 @@ export class CalendarApi extends BaseAPI {
12026
12122
 
12027
12123
  /**
12028
12124
  *
12029
- * @param {string} startDate Start date for the events
12030
- * @param {string} endDate End date for the events
12031
- * @param {CalendarControllerListEventsViewEnum} view View
12032
- * @param {string} [calendar] Calendar
12125
+ * @param {CalendarEventsListPayload} calendarEventsListPayload
12033
12126
  * @param {*} [options] Override http request option.
12034
12127
  * @throws {RequiredError}
12035
12128
  * @memberof CalendarApi
12036
12129
  */
12037
- public calendarControllerListEvents(startDate: string, endDate: string, view: CalendarControllerListEventsViewEnum, calendar?: string, options?: RawAxiosRequestConfig) {
12038
- return CalendarApiFp(this.configuration).calendarControllerListEvents(startDate, endDate, view, calendar, options).then((request) => request(this.axios, this.basePath));
12130
+ public calendarControllerListEvents(calendarEventsListPayload: CalendarEventsListPayload, options?: RawAxiosRequestConfig) {
12131
+ return CalendarApiFp(this.configuration).calendarControllerListEvents(calendarEventsListPayload, options).then((request) => request(this.axios, this.basePath));
12039
12132
  }
12040
12133
 
12041
12134
  /**
@@ -12093,15 +12186,6 @@ export class CalendarApi extends BaseAPI {
12093
12186
  }
12094
12187
  }
12095
12188
 
12096
- /**
12097
- * @export
12098
- */
12099
- export const CalendarControllerListEventsViewEnum = {
12100
- Daily: 'daily',
12101
- Weekly: 'weekly',
12102
- Monthly: 'monthly'
12103
- } as const;
12104
- export type CalendarControllerListEventsViewEnum = typeof CalendarControllerListEventsViewEnum[keyof typeof CalendarControllerListEventsViewEnum];
12105
12189
 
12106
12190
 
12107
12191
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.86",
3
+ "version": "1.2.88",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},