@gooday_corp/gooday-api-client 1.1.20 → 1.1.22
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 +234 -40
- 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}
|
|
@@ -409,6 +409,12 @@ export interface BookingResponse {
|
|
|
409
409
|
* @memberof BookingResponse
|
|
410
410
|
*/
|
|
411
411
|
'method': BookingResponseMethodEnum;
|
|
412
|
+
/**
|
|
413
|
+
* Business venue favorite
|
|
414
|
+
* @type {BusinessVenueDTO}
|
|
415
|
+
* @memberof BookingResponse
|
|
416
|
+
*/
|
|
417
|
+
'favorite'?: BusinessVenueDTO;
|
|
412
418
|
}
|
|
413
419
|
|
|
414
420
|
export const BookingResponseMethodEnum = {
|
|
@@ -949,21 +955,40 @@ export interface CalendarDTO {
|
|
|
949
955
|
/**
|
|
950
956
|
*
|
|
951
957
|
* @export
|
|
952
|
-
* @interface
|
|
958
|
+
* @interface CalendarEvents
|
|
953
959
|
*/
|
|
954
|
-
export interface
|
|
960
|
+
export interface CalendarEvents {
|
|
955
961
|
/**
|
|
956
|
-
*
|
|
957
|
-
* @type {
|
|
958
|
-
* @memberof
|
|
962
|
+
* Bookings list
|
|
963
|
+
* @type {Array<BookingResponse>}
|
|
964
|
+
* @memberof CalendarEvents
|
|
959
965
|
*/
|
|
960
|
-
'
|
|
966
|
+
'bookings': Array<BookingResponse>;
|
|
961
967
|
/**
|
|
962
|
-
*
|
|
963
|
-
* @type {
|
|
964
|
-
* @memberof
|
|
968
|
+
* Event list
|
|
969
|
+
* @type {Array<EventResponse>}
|
|
970
|
+
* @memberof CalendarEvents
|
|
965
971
|
*/
|
|
966
|
-
'
|
|
972
|
+
'events': Array<EventResponse>;
|
|
973
|
+
}
|
|
974
|
+
/**
|
|
975
|
+
*
|
|
976
|
+
* @export
|
|
977
|
+
* @interface CalendarEventsDTO
|
|
978
|
+
*/
|
|
979
|
+
export interface CalendarEventsDTO {
|
|
980
|
+
/**
|
|
981
|
+
* statusCode
|
|
982
|
+
* @type {number}
|
|
983
|
+
* @memberof CalendarEventsDTO
|
|
984
|
+
*/
|
|
985
|
+
'statusCode': number;
|
|
986
|
+
/**
|
|
987
|
+
* Calendar events response
|
|
988
|
+
* @type {CalendarEvents}
|
|
989
|
+
* @memberof CalendarEventsDTO
|
|
990
|
+
*/
|
|
991
|
+
'data': CalendarEvents;
|
|
967
992
|
}
|
|
968
993
|
/**
|
|
969
994
|
*
|
|
@@ -1099,6 +1124,38 @@ export interface CalendarSlotsDTO {
|
|
|
1099
1124
|
*/
|
|
1100
1125
|
'data': Array<CalendarSlotResponse>;
|
|
1101
1126
|
}
|
|
1127
|
+
/**
|
|
1128
|
+
*
|
|
1129
|
+
* @export
|
|
1130
|
+
* @interface CancelBookingDTO
|
|
1131
|
+
*/
|
|
1132
|
+
export interface CancelBookingDTO {
|
|
1133
|
+
/**
|
|
1134
|
+
* Booking Id
|
|
1135
|
+
* @type {string}
|
|
1136
|
+
* @memberof CancelBookingDTO
|
|
1137
|
+
*/
|
|
1138
|
+
'booking': string;
|
|
1139
|
+
}
|
|
1140
|
+
/**
|
|
1141
|
+
*
|
|
1142
|
+
* @export
|
|
1143
|
+
* @interface CancelBookingResponseDTO
|
|
1144
|
+
*/
|
|
1145
|
+
export interface CancelBookingResponseDTO {
|
|
1146
|
+
/**
|
|
1147
|
+
* statusCode
|
|
1148
|
+
* @type {number}
|
|
1149
|
+
* @memberof CancelBookingResponseDTO
|
|
1150
|
+
*/
|
|
1151
|
+
'statusCode': number;
|
|
1152
|
+
/**
|
|
1153
|
+
* Booking Cancel Status
|
|
1154
|
+
* @type {boolean}
|
|
1155
|
+
* @memberof CancelBookingResponseDTO
|
|
1156
|
+
*/
|
|
1157
|
+
'success': boolean;
|
|
1158
|
+
}
|
|
1102
1159
|
/**
|
|
1103
1160
|
*
|
|
1104
1161
|
* @export
|
|
@@ -1272,6 +1329,43 @@ export interface CreateCalendarPayload {
|
|
|
1272
1329
|
*/
|
|
1273
1330
|
'name': string;
|
|
1274
1331
|
}
|
|
1332
|
+
/**
|
|
1333
|
+
*
|
|
1334
|
+
* @export
|
|
1335
|
+
* @interface CreateEventCustomer
|
|
1336
|
+
*/
|
|
1337
|
+
export interface CreateEventCustomer {
|
|
1338
|
+
/**
|
|
1339
|
+
* The unique identifier of the customer
|
|
1340
|
+
* @type {string}
|
|
1341
|
+
* @memberof CreateEventCustomer
|
|
1342
|
+
*/
|
|
1343
|
+
'_id'?: string;
|
|
1344
|
+
/**
|
|
1345
|
+
* The name of the customer
|
|
1346
|
+
* @type {string}
|
|
1347
|
+
* @memberof CreateEventCustomer
|
|
1348
|
+
*/
|
|
1349
|
+
'name'?: string;
|
|
1350
|
+
/**
|
|
1351
|
+
* The mobile phone number of the customer
|
|
1352
|
+
* @type {string}
|
|
1353
|
+
* @memberof CreateEventCustomer
|
|
1354
|
+
*/
|
|
1355
|
+
'mobile'?: string;
|
|
1356
|
+
/**
|
|
1357
|
+
* The email address of the customer
|
|
1358
|
+
* @type {string}
|
|
1359
|
+
* @memberof CreateEventCustomer
|
|
1360
|
+
*/
|
|
1361
|
+
'email'?: string;
|
|
1362
|
+
/**
|
|
1363
|
+
* The goodayId for the customer
|
|
1364
|
+
* @type {string}
|
|
1365
|
+
* @memberof CreateEventCustomer
|
|
1366
|
+
*/
|
|
1367
|
+
'goodayId'?: string;
|
|
1368
|
+
}
|
|
1275
1369
|
/**
|
|
1276
1370
|
*
|
|
1277
1371
|
* @export
|
|
@@ -1585,10 +1679,10 @@ export interface EventResponse {
|
|
|
1585
1679
|
'endDate': string;
|
|
1586
1680
|
/**
|
|
1587
1681
|
* Create event customer
|
|
1588
|
-
* @type {Array<
|
|
1682
|
+
* @type {Array<CreateEventCustomer>}
|
|
1589
1683
|
* @memberof EventResponse
|
|
1590
1684
|
*/
|
|
1591
|
-
'customers': Array<
|
|
1685
|
+
'customers': Array<CreateEventCustomer>;
|
|
1592
1686
|
/**
|
|
1593
1687
|
* The user details
|
|
1594
1688
|
* @type {Array<UserEntity>}
|
|
@@ -2370,6 +2464,12 @@ export interface OnBoardingDTO {
|
|
|
2370
2464
|
* @memberof OnBoardingDTO
|
|
2371
2465
|
*/
|
|
2372
2466
|
'assistant'?: string;
|
|
2467
|
+
/**
|
|
2468
|
+
* Profile For user
|
|
2469
|
+
* @type {string}
|
|
2470
|
+
* @memberof OnBoardingDTO
|
|
2471
|
+
*/
|
|
2472
|
+
'profile'?: string;
|
|
2373
2473
|
/**
|
|
2374
2474
|
*
|
|
2375
2475
|
* @type {UserPlanDTO}
|
|
@@ -4560,6 +4660,45 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4560
4660
|
options: localVarRequestOptions,
|
|
4561
4661
|
};
|
|
4562
4662
|
},
|
|
4663
|
+
/**
|
|
4664
|
+
*
|
|
4665
|
+
* @param {CancelBookingDTO} cancelBookingDTO
|
|
4666
|
+
* @param {*} [options] Override http request option.
|
|
4667
|
+
* @throws {RequiredError}
|
|
4668
|
+
*/
|
|
4669
|
+
bookingControllerCancelBooking: async (cancelBookingDTO: CancelBookingDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4670
|
+
// verify required parameter 'cancelBookingDTO' is not null or undefined
|
|
4671
|
+
assertParamExists('bookingControllerCancelBooking', 'cancelBookingDTO', cancelBookingDTO)
|
|
4672
|
+
const localVarPath = `/v1/booking/cancel-booking`;
|
|
4673
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4674
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4675
|
+
let baseOptions;
|
|
4676
|
+
if (configuration) {
|
|
4677
|
+
baseOptions = configuration.baseOptions;
|
|
4678
|
+
}
|
|
4679
|
+
|
|
4680
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4681
|
+
const localVarHeaderParameter = {} as any;
|
|
4682
|
+
const localVarQueryParameter = {} as any;
|
|
4683
|
+
|
|
4684
|
+
// authentication bearer required
|
|
4685
|
+
// http bearer authentication required
|
|
4686
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4687
|
+
|
|
4688
|
+
|
|
4689
|
+
|
|
4690
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4691
|
+
|
|
4692
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4693
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4694
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4695
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cancelBookingDTO, localVarRequestOptions, configuration)
|
|
4696
|
+
|
|
4697
|
+
return {
|
|
4698
|
+
url: toPathString(localVarUrlObj),
|
|
4699
|
+
options: localVarRequestOptions,
|
|
4700
|
+
};
|
|
4701
|
+
},
|
|
4563
4702
|
/**
|
|
4564
4703
|
*
|
|
4565
4704
|
* @param {CreateBookingPayload} createBookingPayload
|
|
@@ -4653,7 +4792,7 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4653
4792
|
baseOptions = configuration.baseOptions;
|
|
4654
4793
|
}
|
|
4655
4794
|
|
|
4656
|
-
const localVarRequestOptions = { method: '
|
|
4795
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4657
4796
|
const localVarHeaderParameter = {} as any;
|
|
4658
4797
|
const localVarQueryParameter = {} as any;
|
|
4659
4798
|
|
|
@@ -4697,6 +4836,18 @@ export const BookingApiFp = function(configuration?: Configuration) {
|
|
|
4697
4836
|
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerAcceptBookingInvite']?.[localVarOperationServerIndex]?.url;
|
|
4698
4837
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4699
4838
|
},
|
|
4839
|
+
/**
|
|
4840
|
+
*
|
|
4841
|
+
* @param {CancelBookingDTO} cancelBookingDTO
|
|
4842
|
+
* @param {*} [options] Override http request option.
|
|
4843
|
+
* @throws {RequiredError}
|
|
4844
|
+
*/
|
|
4845
|
+
async bookingControllerCancelBooking(cancelBookingDTO: CancelBookingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelBookingResponseDTO>> {
|
|
4846
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerCancelBooking(cancelBookingDTO, options);
|
|
4847
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4848
|
+
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerCancelBooking']?.[localVarOperationServerIndex]?.url;
|
|
4849
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4850
|
+
},
|
|
4700
4851
|
/**
|
|
4701
4852
|
*
|
|
4702
4853
|
* @param {CreateBookingPayload} createBookingPayload
|
|
@@ -4752,6 +4903,15 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
|
|
|
4752
4903
|
bookingControllerAcceptBookingInvite(acceptBookingInvitePayload: AcceptBookingInvitePayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingRequestResponseDTO> {
|
|
4753
4904
|
return localVarFp.bookingControllerAcceptBookingInvite(acceptBookingInvitePayload, options).then((request) => request(axios, basePath));
|
|
4754
4905
|
},
|
|
4906
|
+
/**
|
|
4907
|
+
*
|
|
4908
|
+
* @param {CancelBookingDTO} cancelBookingDTO
|
|
4909
|
+
* @param {*} [options] Override http request option.
|
|
4910
|
+
* @throws {RequiredError}
|
|
4911
|
+
*/
|
|
4912
|
+
bookingControllerCancelBooking(cancelBookingDTO: CancelBookingDTO, options?: RawAxiosRequestConfig): AxiosPromise<CancelBookingResponseDTO> {
|
|
4913
|
+
return localVarFp.bookingControllerCancelBooking(cancelBookingDTO, options).then((request) => request(axios, basePath));
|
|
4914
|
+
},
|
|
4755
4915
|
/**
|
|
4756
4916
|
*
|
|
4757
4917
|
* @param {CreateBookingPayload} createBookingPayload
|
|
@@ -4800,6 +4960,17 @@ export class BookingApi extends BaseAPI {
|
|
|
4800
4960
|
return BookingApiFp(this.configuration).bookingControllerAcceptBookingInvite(acceptBookingInvitePayload, options).then((request) => request(this.axios, this.basePath));
|
|
4801
4961
|
}
|
|
4802
4962
|
|
|
4963
|
+
/**
|
|
4964
|
+
*
|
|
4965
|
+
* @param {CancelBookingDTO} cancelBookingDTO
|
|
4966
|
+
* @param {*} [options] Override http request option.
|
|
4967
|
+
* @throws {RequiredError}
|
|
4968
|
+
* @memberof BookingApi
|
|
4969
|
+
*/
|
|
4970
|
+
public bookingControllerCancelBooking(cancelBookingDTO: CancelBookingDTO, options?: RawAxiosRequestConfig) {
|
|
4971
|
+
return BookingApiFp(this.configuration).bookingControllerCancelBooking(cancelBookingDTO, options).then((request) => request(this.axios, this.basePath));
|
|
4972
|
+
}
|
|
4973
|
+
|
|
4803
4974
|
/**
|
|
4804
4975
|
*
|
|
4805
4976
|
* @param {CreateBookingPayload} createBookingPayload
|
|
@@ -4984,10 +5155,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4984
5155
|
},
|
|
4985
5156
|
/**
|
|
4986
5157
|
*
|
|
5158
|
+
* @param {boolean} [favorite] Business Type Allow Return Favourite
|
|
4987
5159
|
* @param {*} [options] Override http request option.
|
|
4988
5160
|
* @throws {RequiredError}
|
|
4989
5161
|
*/
|
|
4990
|
-
businessTypeControllerListBusinessType: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5162
|
+
businessTypeControllerListBusinessType: async (favorite?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4991
5163
|
const localVarPath = `/v1/business/list`;
|
|
4992
5164
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4993
5165
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5004,6 +5176,10 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5004
5176
|
// http bearer authentication required
|
|
5005
5177
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5006
5178
|
|
|
5179
|
+
if (favorite !== undefined) {
|
|
5180
|
+
localVarQueryParameter['favorite'] = favorite;
|
|
5181
|
+
}
|
|
5182
|
+
|
|
5007
5183
|
|
|
5008
5184
|
|
|
5009
5185
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -5291,11 +5467,12 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
5291
5467
|
},
|
|
5292
5468
|
/**
|
|
5293
5469
|
*
|
|
5470
|
+
* @param {boolean} [favorite] Business Type Allow Return Favourite
|
|
5294
5471
|
* @param {*} [options] Override http request option.
|
|
5295
5472
|
* @throws {RequiredError}
|
|
5296
5473
|
*/
|
|
5297
|
-
async businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessTypeListResponse>> {
|
|
5298
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListBusinessType(options);
|
|
5474
|
+
async businessTypeControllerListBusinessType(favorite?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessTypeListResponse>> {
|
|
5475
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListBusinessType(favorite, options);
|
|
5299
5476
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5300
5477
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListBusinessType']?.[localVarOperationServerIndex]?.url;
|
|
5301
5478
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5417,11 +5594,12 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
5417
5594
|
},
|
|
5418
5595
|
/**
|
|
5419
5596
|
*
|
|
5597
|
+
* @param {boolean} [favorite] Business Type Allow Return Favourite
|
|
5420
5598
|
* @param {*} [options] Override http request option.
|
|
5421
5599
|
* @throws {RequiredError}
|
|
5422
5600
|
*/
|
|
5423
|
-
businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig): AxiosPromise<BusinessTypeListResponse> {
|
|
5424
|
-
return localVarFp.businessTypeControllerListBusinessType(options).then((request) => request(axios, basePath));
|
|
5601
|
+
businessTypeControllerListBusinessType(favorite?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<BusinessTypeListResponse> {
|
|
5602
|
+
return localVarFp.businessTypeControllerListBusinessType(favorite, options).then((request) => request(axios, basePath));
|
|
5425
5603
|
},
|
|
5426
5604
|
/**
|
|
5427
5605
|
*
|
|
@@ -5530,12 +5708,13 @@ export class BusinessApi extends BaseAPI {
|
|
|
5530
5708
|
|
|
5531
5709
|
/**
|
|
5532
5710
|
*
|
|
5711
|
+
* @param {boolean} [favorite] Business Type Allow Return Favourite
|
|
5533
5712
|
* @param {*} [options] Override http request option.
|
|
5534
5713
|
* @throws {RequiredError}
|
|
5535
5714
|
* @memberof BusinessApi
|
|
5536
5715
|
*/
|
|
5537
|
-
public businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig) {
|
|
5538
|
-
return BusinessApiFp(this.configuration).businessTypeControllerListBusinessType(options).then((request) => request(this.axios, this.basePath));
|
|
5716
|
+
public businessTypeControllerListBusinessType(favorite?: boolean, options?: RawAxiosRequestConfig) {
|
|
5717
|
+
return BusinessApiFp(this.configuration).businessTypeControllerListBusinessType(favorite, options).then((request) => request(this.axios, this.basePath));
|
|
5539
5718
|
}
|
|
5540
5719
|
|
|
5541
5720
|
/**
|
|
@@ -5778,13 +5957,16 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5778
5957
|
},
|
|
5779
5958
|
/**
|
|
5780
5959
|
*
|
|
5781
|
-
* @param {
|
|
5960
|
+
* @param {string} startDate Start date for the events
|
|
5961
|
+
* @param {string} endDate End date for the events
|
|
5782
5962
|
* @param {*} [options] Override http request option.
|
|
5783
5963
|
* @throws {RequiredError}
|
|
5784
5964
|
*/
|
|
5785
|
-
calendarControllerListEvents: async (
|
|
5786
|
-
// verify required parameter '
|
|
5787
|
-
assertParamExists('calendarControllerListEvents', '
|
|
5965
|
+
calendarControllerListEvents: async (startDate: string, endDate: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5966
|
+
// verify required parameter 'startDate' is not null or undefined
|
|
5967
|
+
assertParamExists('calendarControllerListEvents', 'startDate', startDate)
|
|
5968
|
+
// verify required parameter 'endDate' is not null or undefined
|
|
5969
|
+
assertParamExists('calendarControllerListEvents', 'endDate', endDate)
|
|
5788
5970
|
const localVarPath = `/v1/calendar/events`;
|
|
5789
5971
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5790
5972
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5801,14 +5983,23 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5801
5983
|
// http bearer authentication required
|
|
5802
5984
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5803
5985
|
|
|
5986
|
+
if (startDate !== undefined) {
|
|
5987
|
+
localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ?
|
|
5988
|
+
(startDate as any).toISOString() :
|
|
5989
|
+
startDate;
|
|
5990
|
+
}
|
|
5991
|
+
|
|
5992
|
+
if (endDate !== undefined) {
|
|
5993
|
+
localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ?
|
|
5994
|
+
(endDate as any).toISOString() :
|
|
5995
|
+
endDate;
|
|
5996
|
+
}
|
|
5804
5997
|
|
|
5805
|
-
|
|
5806
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5807
5998
|
|
|
5999
|
+
|
|
5808
6000
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5809
6001
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5810
6002
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5811
|
-
localVarRequestOptions.data = serializeDataIfNeeded(calendarEventsListPayload, localVarRequestOptions, configuration)
|
|
5812
6003
|
|
|
5813
6004
|
return {
|
|
5814
6005
|
url: toPathString(localVarUrlObj),
|
|
@@ -6064,12 +6255,13 @@ export const CalendarApiFp = function(configuration?: Configuration) {
|
|
|
6064
6255
|
},
|
|
6065
6256
|
/**
|
|
6066
6257
|
*
|
|
6067
|
-
* @param {
|
|
6258
|
+
* @param {string} startDate Start date for the events
|
|
6259
|
+
* @param {string} endDate End date for the events
|
|
6068
6260
|
* @param {*} [options] Override http request option.
|
|
6069
6261
|
* @throws {RequiredError}
|
|
6070
6262
|
*/
|
|
6071
|
-
async calendarControllerListEvents(
|
|
6072
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListEvents(
|
|
6263
|
+
async calendarControllerListEvents(startDate: string, endDate: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarEventsDTO>> {
|
|
6264
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListEvents(startDate, endDate, options);
|
|
6073
6265
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6074
6266
|
const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListEvents']?.[localVarOperationServerIndex]?.url;
|
|
6075
6267
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6181,12 +6373,13 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
|
|
|
6181
6373
|
},
|
|
6182
6374
|
/**
|
|
6183
6375
|
*
|
|
6184
|
-
* @param {
|
|
6376
|
+
* @param {string} startDate Start date for the events
|
|
6377
|
+
* @param {string} endDate End date for the events
|
|
6185
6378
|
* @param {*} [options] Override http request option.
|
|
6186
6379
|
* @throws {RequiredError}
|
|
6187
6380
|
*/
|
|
6188
|
-
calendarControllerListEvents(
|
|
6189
|
-
return localVarFp.calendarControllerListEvents(
|
|
6381
|
+
calendarControllerListEvents(startDate: string, endDate: string, options?: RawAxiosRequestConfig): AxiosPromise<CalendarEventsDTO> {
|
|
6382
|
+
return localVarFp.calendarControllerListEvents(startDate, endDate, options).then((request) => request(axios, basePath));
|
|
6190
6383
|
},
|
|
6191
6384
|
/**
|
|
6192
6385
|
*
|
|
@@ -6288,13 +6481,14 @@ export class CalendarApi extends BaseAPI {
|
|
|
6288
6481
|
|
|
6289
6482
|
/**
|
|
6290
6483
|
*
|
|
6291
|
-
* @param {
|
|
6484
|
+
* @param {string} startDate Start date for the events
|
|
6485
|
+
* @param {string} endDate End date for the events
|
|
6292
6486
|
* @param {*} [options] Override http request option.
|
|
6293
6487
|
* @throws {RequiredError}
|
|
6294
6488
|
* @memberof CalendarApi
|
|
6295
6489
|
*/
|
|
6296
|
-
public calendarControllerListEvents(
|
|
6297
|
-
return CalendarApiFp(this.configuration).calendarControllerListEvents(
|
|
6490
|
+
public calendarControllerListEvents(startDate: string, endDate: string, options?: RawAxiosRequestConfig) {
|
|
6491
|
+
return CalendarApiFp(this.configuration).calendarControllerListEvents(startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
6298
6492
|
}
|
|
6299
6493
|
|
|
6300
6494
|
/**
|
|
@@ -6487,7 +6681,7 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
6487
6681
|
baseOptions = configuration.baseOptions;
|
|
6488
6682
|
}
|
|
6489
6683
|
|
|
6490
|
-
const localVarRequestOptions = { method: '
|
|
6684
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
6491
6685
|
const localVarHeaderParameter = {} as any;
|
|
6492
6686
|
const localVarQueryParameter = {} as any;
|
|
6493
6687
|
|
|
@@ -6602,7 +6796,7 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
6602
6796
|
baseOptions = configuration.baseOptions;
|
|
6603
6797
|
}
|
|
6604
6798
|
|
|
6605
|
-
const localVarRequestOptions = { method: '
|
|
6799
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
6606
6800
|
const localVarHeaderParameter = {} as any;
|
|
6607
6801
|
const localVarQueryParameter = {} as any;
|
|
6608
6802
|
|