@gooday_corp/gooday-api-client 1.1.18 → 1.1.19
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 +104 -33
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -357,10 +357,10 @@ export interface BookingResponse {
|
|
|
357
357
|
'endDate': string;
|
|
358
358
|
/**
|
|
359
359
|
* The venue of the booking
|
|
360
|
-
* @type {
|
|
360
|
+
* @type {BusinessVenueDTO}
|
|
361
361
|
* @memberof BookingResponse
|
|
362
362
|
*/
|
|
363
|
-
'venue':
|
|
363
|
+
'venue': BusinessVenueDTO;
|
|
364
364
|
/**
|
|
365
365
|
* The business associated with the booking
|
|
366
366
|
* @type {BusinessEntity}
|
|
@@ -949,21 +949,40 @@ export interface CalendarDTO {
|
|
|
949
949
|
/**
|
|
950
950
|
*
|
|
951
951
|
* @export
|
|
952
|
-
* @interface
|
|
952
|
+
* @interface CalendarEvents
|
|
953
953
|
*/
|
|
954
|
-
export interface
|
|
954
|
+
export interface CalendarEvents {
|
|
955
955
|
/**
|
|
956
|
-
*
|
|
957
|
-
* @type {
|
|
958
|
-
* @memberof
|
|
956
|
+
* Bookings list
|
|
957
|
+
* @type {Array<BookingResponse>}
|
|
958
|
+
* @memberof CalendarEvents
|
|
959
959
|
*/
|
|
960
|
-
'
|
|
960
|
+
'bookings': Array<BookingResponse>;
|
|
961
961
|
/**
|
|
962
|
-
*
|
|
963
|
-
* @type {
|
|
964
|
-
* @memberof
|
|
962
|
+
* Event list
|
|
963
|
+
* @type {Array<EventResponse>}
|
|
964
|
+
* @memberof CalendarEvents
|
|
965
965
|
*/
|
|
966
|
-
'
|
|
966
|
+
'events': Array<EventResponse>;
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
*
|
|
970
|
+
* @export
|
|
971
|
+
* @interface CalendarEventsDTO
|
|
972
|
+
*/
|
|
973
|
+
export interface CalendarEventsDTO {
|
|
974
|
+
/**
|
|
975
|
+
* statusCode
|
|
976
|
+
* @type {number}
|
|
977
|
+
* @memberof CalendarEventsDTO
|
|
978
|
+
*/
|
|
979
|
+
'statusCode': number;
|
|
980
|
+
/**
|
|
981
|
+
* Calendar events response
|
|
982
|
+
* @type {CalendarEvents}
|
|
983
|
+
* @memberof CalendarEventsDTO
|
|
984
|
+
*/
|
|
985
|
+
'data': CalendarEvents;
|
|
967
986
|
}
|
|
968
987
|
/**
|
|
969
988
|
*
|
|
@@ -1272,6 +1291,43 @@ export interface CreateCalendarPayload {
|
|
|
1272
1291
|
*/
|
|
1273
1292
|
'name': string;
|
|
1274
1293
|
}
|
|
1294
|
+
/**
|
|
1295
|
+
*
|
|
1296
|
+
* @export
|
|
1297
|
+
* @interface CreateEventCustomer
|
|
1298
|
+
*/
|
|
1299
|
+
export interface CreateEventCustomer {
|
|
1300
|
+
/**
|
|
1301
|
+
* The unique identifier of the customer
|
|
1302
|
+
* @type {string}
|
|
1303
|
+
* @memberof CreateEventCustomer
|
|
1304
|
+
*/
|
|
1305
|
+
'_id'?: string;
|
|
1306
|
+
/**
|
|
1307
|
+
* The name of the customer
|
|
1308
|
+
* @type {string}
|
|
1309
|
+
* @memberof CreateEventCustomer
|
|
1310
|
+
*/
|
|
1311
|
+
'name'?: string;
|
|
1312
|
+
/**
|
|
1313
|
+
* The mobile phone number of the customer
|
|
1314
|
+
* @type {string}
|
|
1315
|
+
* @memberof CreateEventCustomer
|
|
1316
|
+
*/
|
|
1317
|
+
'mobile'?: string;
|
|
1318
|
+
/**
|
|
1319
|
+
* The email address of the customer
|
|
1320
|
+
* @type {string}
|
|
1321
|
+
* @memberof CreateEventCustomer
|
|
1322
|
+
*/
|
|
1323
|
+
'email'?: string;
|
|
1324
|
+
/**
|
|
1325
|
+
* The goodayId for the customer
|
|
1326
|
+
* @type {string}
|
|
1327
|
+
* @memberof CreateEventCustomer
|
|
1328
|
+
*/
|
|
1329
|
+
'goodayId'?: string;
|
|
1330
|
+
}
|
|
1275
1331
|
/**
|
|
1276
1332
|
*
|
|
1277
1333
|
* @export
|
|
@@ -1585,10 +1641,10 @@ export interface EventResponse {
|
|
|
1585
1641
|
'endDate': string;
|
|
1586
1642
|
/**
|
|
1587
1643
|
* Create event customer
|
|
1588
|
-
* @type {Array<
|
|
1644
|
+
* @type {Array<CreateEventCustomer>}
|
|
1589
1645
|
* @memberof EventResponse
|
|
1590
1646
|
*/
|
|
1591
|
-
'customers': Array<
|
|
1647
|
+
'customers': Array<CreateEventCustomer>;
|
|
1592
1648
|
/**
|
|
1593
1649
|
* The user details
|
|
1594
1650
|
* @type {Array<UserEntity>}
|
|
@@ -4659,7 +4715,7 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4659
4715
|
baseOptions = configuration.baseOptions;
|
|
4660
4716
|
}
|
|
4661
4717
|
|
|
4662
|
-
const localVarRequestOptions = { method: '
|
|
4718
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4663
4719
|
const localVarHeaderParameter = {} as any;
|
|
4664
4720
|
const localVarQueryParameter = {} as any;
|
|
4665
4721
|
|
|
@@ -5792,13 +5848,16 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5792
5848
|
},
|
|
5793
5849
|
/**
|
|
5794
5850
|
*
|
|
5795
|
-
* @param {
|
|
5851
|
+
* @param {string} startDate Start date for the events
|
|
5852
|
+
* @param {string} endDate End date for the events
|
|
5796
5853
|
* @param {*} [options] Override http request option.
|
|
5797
5854
|
* @throws {RequiredError}
|
|
5798
5855
|
*/
|
|
5799
|
-
calendarControllerListEvents: async (
|
|
5800
|
-
// verify required parameter '
|
|
5801
|
-
assertParamExists('calendarControllerListEvents', '
|
|
5856
|
+
calendarControllerListEvents: async (startDate: string, endDate: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5857
|
+
// verify required parameter 'startDate' is not null or undefined
|
|
5858
|
+
assertParamExists('calendarControllerListEvents', 'startDate', startDate)
|
|
5859
|
+
// verify required parameter 'endDate' is not null or undefined
|
|
5860
|
+
assertParamExists('calendarControllerListEvents', 'endDate', endDate)
|
|
5802
5861
|
const localVarPath = `/v1/calendar/events`;
|
|
5803
5862
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5804
5863
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5815,14 +5874,23 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5815
5874
|
// http bearer authentication required
|
|
5816
5875
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5817
5876
|
|
|
5877
|
+
if (startDate !== undefined) {
|
|
5878
|
+
localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ?
|
|
5879
|
+
(startDate as any).toISOString() :
|
|
5880
|
+
startDate;
|
|
5881
|
+
}
|
|
5818
5882
|
|
|
5819
|
-
|
|
5820
|
-
|
|
5883
|
+
if (endDate !== undefined) {
|
|
5884
|
+
localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ?
|
|
5885
|
+
(endDate as any).toISOString() :
|
|
5886
|
+
endDate;
|
|
5887
|
+
}
|
|
5821
5888
|
|
|
5889
|
+
|
|
5890
|
+
|
|
5822
5891
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5823
5892
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5824
5893
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5825
|
-
localVarRequestOptions.data = serializeDataIfNeeded(calendarEventsListPayload, localVarRequestOptions, configuration)
|
|
5826
5894
|
|
|
5827
5895
|
return {
|
|
5828
5896
|
url: toPathString(localVarUrlObj),
|
|
@@ -6078,12 +6146,13 @@ export const CalendarApiFp = function(configuration?: Configuration) {
|
|
|
6078
6146
|
},
|
|
6079
6147
|
/**
|
|
6080
6148
|
*
|
|
6081
|
-
* @param {
|
|
6149
|
+
* @param {string} startDate Start date for the events
|
|
6150
|
+
* @param {string} endDate End date for the events
|
|
6082
6151
|
* @param {*} [options] Override http request option.
|
|
6083
6152
|
* @throws {RequiredError}
|
|
6084
6153
|
*/
|
|
6085
|
-
async calendarControllerListEvents(
|
|
6086
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListEvents(
|
|
6154
|
+
async calendarControllerListEvents(startDate: string, endDate: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarEventsDTO>> {
|
|
6155
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListEvents(startDate, endDate, options);
|
|
6087
6156
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6088
6157
|
const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListEvents']?.[localVarOperationServerIndex]?.url;
|
|
6089
6158
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6195,12 +6264,13 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
|
|
|
6195
6264
|
},
|
|
6196
6265
|
/**
|
|
6197
6266
|
*
|
|
6198
|
-
* @param {
|
|
6267
|
+
* @param {string} startDate Start date for the events
|
|
6268
|
+
* @param {string} endDate End date for the events
|
|
6199
6269
|
* @param {*} [options] Override http request option.
|
|
6200
6270
|
* @throws {RequiredError}
|
|
6201
6271
|
*/
|
|
6202
|
-
calendarControllerListEvents(
|
|
6203
|
-
return localVarFp.calendarControllerListEvents(
|
|
6272
|
+
calendarControllerListEvents(startDate: string, endDate: string, options?: RawAxiosRequestConfig): AxiosPromise<CalendarEventsDTO> {
|
|
6273
|
+
return localVarFp.calendarControllerListEvents(startDate, endDate, options).then((request) => request(axios, basePath));
|
|
6204
6274
|
},
|
|
6205
6275
|
/**
|
|
6206
6276
|
*
|
|
@@ -6302,13 +6372,14 @@ export class CalendarApi extends BaseAPI {
|
|
|
6302
6372
|
|
|
6303
6373
|
/**
|
|
6304
6374
|
*
|
|
6305
|
-
* @param {
|
|
6375
|
+
* @param {string} startDate Start date for the events
|
|
6376
|
+
* @param {string} endDate End date for the events
|
|
6306
6377
|
* @param {*} [options] Override http request option.
|
|
6307
6378
|
* @throws {RequiredError}
|
|
6308
6379
|
* @memberof CalendarApi
|
|
6309
6380
|
*/
|
|
6310
|
-
public calendarControllerListEvents(
|
|
6311
|
-
return CalendarApiFp(this.configuration).calendarControllerListEvents(
|
|
6381
|
+
public calendarControllerListEvents(startDate: string, endDate: string, options?: RawAxiosRequestConfig) {
|
|
6382
|
+
return CalendarApiFp(this.configuration).calendarControllerListEvents(startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
6312
6383
|
}
|
|
6313
6384
|
|
|
6314
6385
|
/**
|
|
@@ -6501,7 +6572,7 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
6501
6572
|
baseOptions = configuration.baseOptions;
|
|
6502
6573
|
}
|
|
6503
6574
|
|
|
6504
|
-
const localVarRequestOptions = { method: '
|
|
6575
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
6505
6576
|
const localVarHeaderParameter = {} as any;
|
|
6506
6577
|
const localVarQueryParameter = {} as any;
|
|
6507
6578
|
|
|
@@ -6616,7 +6687,7 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
6616
6687
|
baseOptions = configuration.baseOptions;
|
|
6617
6688
|
}
|
|
6618
6689
|
|
|
6619
|
-
const localVarRequestOptions = { method: '
|
|
6690
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
6620
6691
|
const localVarHeaderParameter = {} as any;
|
|
6621
6692
|
const localVarQueryParameter = {} as any;
|
|
6622
6693
|
|