@gooday_corp/gooday-api-client 1.1.32-alpha → 1.1.33
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 +351 -12
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -34,7 +34,7 @@ export interface AcceptBookingInvitePayload {
|
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof AcceptBookingInvitePayload
|
|
36
36
|
*/
|
|
37
|
-
'
|
|
37
|
+
'bookingId': string;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
@@ -367,18 +367,24 @@ export interface BookingResponse {
|
|
|
367
367
|
* @memberof BookingResponse
|
|
368
368
|
*/
|
|
369
369
|
'business': BusinessEntity;
|
|
370
|
+
/**
|
|
371
|
+
* The user details
|
|
372
|
+
* @type {Array<UserEntity>}
|
|
373
|
+
* @memberof BookingResponse
|
|
374
|
+
*/
|
|
375
|
+
'users': Array<UserEntity>;
|
|
370
376
|
/**
|
|
371
377
|
* The user details
|
|
372
378
|
* @type {UserEntity}
|
|
373
379
|
* @memberof BookingResponse
|
|
374
380
|
*/
|
|
375
|
-
'
|
|
381
|
+
'createdBy'?: UserEntity;
|
|
376
382
|
/**
|
|
377
383
|
* Notes attached with booking
|
|
378
384
|
* @type {string}
|
|
379
385
|
* @memberof BookingResponse
|
|
380
386
|
*/
|
|
381
|
-
'
|
|
387
|
+
'notes': string;
|
|
382
388
|
/**
|
|
383
389
|
* Occasion id
|
|
384
390
|
* @type {string}
|
|
@@ -415,6 +421,18 @@ export interface BookingResponse {
|
|
|
415
421
|
* @memberof BookingResponse
|
|
416
422
|
*/
|
|
417
423
|
'favorite'?: BusinessVenueDTO;
|
|
424
|
+
/**
|
|
425
|
+
* Booking Icon
|
|
426
|
+
* @type {string}
|
|
427
|
+
* @memberof BookingResponse
|
|
428
|
+
*/
|
|
429
|
+
'icon'?: string;
|
|
430
|
+
/**
|
|
431
|
+
* Status of the booking
|
|
432
|
+
* @type {string}
|
|
433
|
+
* @memberof BookingResponse
|
|
434
|
+
*/
|
|
435
|
+
'status': BookingResponseStatusEnum;
|
|
418
436
|
}
|
|
419
437
|
|
|
420
438
|
export const BookingResponseMethodEnum = {
|
|
@@ -424,6 +442,17 @@ export const BookingResponseMethodEnum = {
|
|
|
424
442
|
} as const;
|
|
425
443
|
|
|
426
444
|
export type BookingResponseMethodEnum = typeof BookingResponseMethodEnum[keyof typeof BookingResponseMethodEnum];
|
|
445
|
+
export const BookingResponseStatusEnum = {
|
|
446
|
+
CheckedIn: 'CHECKED_IN',
|
|
447
|
+
Confirmed: 'CONFIRMED',
|
|
448
|
+
Unconfirmed: 'UNCONFIRMED',
|
|
449
|
+
Rescheduled: 'RESCHEDULED',
|
|
450
|
+
NoShow: 'NO_SHOW',
|
|
451
|
+
Rejected: 'REJECTED',
|
|
452
|
+
Cancelled: 'CANCELLED'
|
|
453
|
+
} as const;
|
|
454
|
+
|
|
455
|
+
export type BookingResponseStatusEnum = typeof BookingResponseStatusEnum[keyof typeof BookingResponseStatusEnum];
|
|
427
456
|
|
|
428
457
|
/**
|
|
429
458
|
*
|
|
@@ -1409,6 +1438,12 @@ export interface CreateEventCustomerPayload {
|
|
|
1409
1438
|
* @interface CreateEventPayload
|
|
1410
1439
|
*/
|
|
1411
1440
|
export interface CreateEventPayload {
|
|
1441
|
+
/**
|
|
1442
|
+
* The unique identifier of the customer
|
|
1443
|
+
* @type {string}
|
|
1444
|
+
* @memberof CreateEventPayload
|
|
1445
|
+
*/
|
|
1446
|
+
'_id'?: string;
|
|
1412
1447
|
/**
|
|
1413
1448
|
* The title of the event
|
|
1414
1449
|
* @type {string}
|
|
@@ -1445,6 +1480,12 @@ export interface CreateEventPayload {
|
|
|
1445
1480
|
* @memberof CreateEventPayload
|
|
1446
1481
|
*/
|
|
1447
1482
|
'customers': Array<CreateEventCustomerPayload>;
|
|
1483
|
+
/**
|
|
1484
|
+
*
|
|
1485
|
+
* @type {LocationDTO}
|
|
1486
|
+
* @memberof CreateEventPayload
|
|
1487
|
+
*/
|
|
1488
|
+
'location': LocationDTO;
|
|
1448
1489
|
}
|
|
1449
1490
|
/**
|
|
1450
1491
|
*
|
|
@@ -1647,6 +1688,38 @@ export interface EventDTO {
|
|
|
1647
1688
|
*/
|
|
1648
1689
|
'data': boolean;
|
|
1649
1690
|
}
|
|
1691
|
+
/**
|
|
1692
|
+
*
|
|
1693
|
+
* @export
|
|
1694
|
+
* @interface EventDeletePayload
|
|
1695
|
+
*/
|
|
1696
|
+
export interface EventDeletePayload {
|
|
1697
|
+
/**
|
|
1698
|
+
* The unique identifier of the customer
|
|
1699
|
+
* @type {string}
|
|
1700
|
+
* @memberof EventDeletePayload
|
|
1701
|
+
*/
|
|
1702
|
+
'_id': string;
|
|
1703
|
+
}
|
|
1704
|
+
/**
|
|
1705
|
+
*
|
|
1706
|
+
* @export
|
|
1707
|
+
* @interface EventDeleteResponseDTO
|
|
1708
|
+
*/
|
|
1709
|
+
export interface EventDeleteResponseDTO {
|
|
1710
|
+
/**
|
|
1711
|
+
* statusCode
|
|
1712
|
+
* @type {number}
|
|
1713
|
+
* @memberof EventDeleteResponseDTO
|
|
1714
|
+
*/
|
|
1715
|
+
'statusCode': number;
|
|
1716
|
+
/**
|
|
1717
|
+
*
|
|
1718
|
+
* @type {boolean}
|
|
1719
|
+
* @memberof EventDeleteResponseDTO
|
|
1720
|
+
*/
|
|
1721
|
+
'data': boolean;
|
|
1722
|
+
}
|
|
1650
1723
|
/**
|
|
1651
1724
|
*
|
|
1652
1725
|
* @export
|
|
@@ -2135,6 +2208,38 @@ export interface IntegrationsResponse {
|
|
|
2135
2208
|
*/
|
|
2136
2209
|
'data': Array<IntegrationEntity>;
|
|
2137
2210
|
}
|
|
2211
|
+
/**
|
|
2212
|
+
*
|
|
2213
|
+
* @export
|
|
2214
|
+
* @interface LeaveBookingDTO
|
|
2215
|
+
*/
|
|
2216
|
+
export interface LeaveBookingDTO {
|
|
2217
|
+
/**
|
|
2218
|
+
* Booking Id
|
|
2219
|
+
* @type {string}
|
|
2220
|
+
* @memberof LeaveBookingDTO
|
|
2221
|
+
*/
|
|
2222
|
+
'booking': string;
|
|
2223
|
+
}
|
|
2224
|
+
/**
|
|
2225
|
+
*
|
|
2226
|
+
* @export
|
|
2227
|
+
* @interface LeaveBookingResponseDTO
|
|
2228
|
+
*/
|
|
2229
|
+
export interface LeaveBookingResponseDTO {
|
|
2230
|
+
/**
|
|
2231
|
+
* statusCode
|
|
2232
|
+
* @type {number}
|
|
2233
|
+
* @memberof LeaveBookingResponseDTO
|
|
2234
|
+
*/
|
|
2235
|
+
'statusCode': number;
|
|
2236
|
+
/**
|
|
2237
|
+
*
|
|
2238
|
+
* @type {boolean}
|
|
2239
|
+
* @memberof LeaveBookingResponseDTO
|
|
2240
|
+
*/
|
|
2241
|
+
'data': boolean;
|
|
2242
|
+
}
|
|
2138
2243
|
/**
|
|
2139
2244
|
*
|
|
2140
2245
|
* @export
|
|
@@ -2453,6 +2558,10 @@ export interface NotificationEntity {
|
|
|
2453
2558
|
|
|
2454
2559
|
export const NotificationEntityTypeEnum = {
|
|
2455
2560
|
FriendInvite: 'FRIEND_INVITE',
|
|
2561
|
+
CalendarInvite: 'CALENDAR_INVITE',
|
|
2562
|
+
CalendarInviteAccept: 'CALENDAR_INVITE_ACCEPT',
|
|
2563
|
+
CalendarInviteReject: 'CALENDAR_INVITE_REJECT',
|
|
2564
|
+
CalendarRename: 'CALENDAR_RENAME',
|
|
2456
2565
|
FriendInviteAccept: 'FRIEND_INVITE_ACCEPT',
|
|
2457
2566
|
FriendInviteReject: 'FRIEND_INVITE_REJECT',
|
|
2458
2567
|
UserOnboard: 'USER_ONBOARD',
|
|
@@ -2460,7 +2569,10 @@ export const NotificationEntityTypeEnum = {
|
|
|
2460
2569
|
BookingCreate: 'BOOKING_CREATE',
|
|
2461
2570
|
BookingCreateForUser: 'BOOKING_CREATE_FOR_USER',
|
|
2462
2571
|
BokingAccept: 'BOKING_ACCEPT',
|
|
2463
|
-
BookingReject: 'BOOKING_REJECT'
|
|
2572
|
+
BookingReject: 'BOOKING_REJECT',
|
|
2573
|
+
EventInvite: 'EVENT_INVITE',
|
|
2574
|
+
EventInviteReject: 'EVENT_INVITE_REJECT',
|
|
2575
|
+
EventInviteAccept: 'EVENT_INVITE_ACCEPT'
|
|
2464
2576
|
} as const;
|
|
2465
2577
|
|
|
2466
2578
|
export type NotificationEntityTypeEnum = typeof NotificationEntityTypeEnum[keyof typeof NotificationEntityTypeEnum];
|
|
@@ -2774,7 +2886,7 @@ export interface RejectBookingInvitePayload {
|
|
|
2774
2886
|
* @type {string}
|
|
2775
2887
|
* @memberof RejectBookingInvitePayload
|
|
2776
2888
|
*/
|
|
2777
|
-
'
|
|
2889
|
+
'bookingId': string;
|
|
2778
2890
|
}
|
|
2779
2891
|
/**
|
|
2780
2892
|
*
|
|
@@ -3406,6 +3518,12 @@ export interface UserEntity {
|
|
|
3406
3518
|
* @memberof UserEntity
|
|
3407
3519
|
*/
|
|
3408
3520
|
'lastName': string;
|
|
3521
|
+
/**
|
|
3522
|
+
* User Profile image
|
|
3523
|
+
* @type {string}
|
|
3524
|
+
* @memberof UserEntity
|
|
3525
|
+
*/
|
|
3526
|
+
'profile': string;
|
|
3409
3527
|
/**
|
|
3410
3528
|
* Is account deactivated?
|
|
3411
3529
|
* @type {boolean}
|
|
@@ -4826,6 +4944,45 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4826
4944
|
options: localVarRequestOptions,
|
|
4827
4945
|
};
|
|
4828
4946
|
},
|
|
4947
|
+
/**
|
|
4948
|
+
*
|
|
4949
|
+
* @param {LeaveBookingDTO} leaveBookingDTO
|
|
4950
|
+
* @param {*} [options] Override http request option.
|
|
4951
|
+
* @throws {RequiredError}
|
|
4952
|
+
*/
|
|
4953
|
+
bookingControllerLeaveBooking: async (leaveBookingDTO: LeaveBookingDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4954
|
+
// verify required parameter 'leaveBookingDTO' is not null or undefined
|
|
4955
|
+
assertParamExists('bookingControllerLeaveBooking', 'leaveBookingDTO', leaveBookingDTO)
|
|
4956
|
+
const localVarPath = `/v1/booking/leave-booking`;
|
|
4957
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4958
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4959
|
+
let baseOptions;
|
|
4960
|
+
if (configuration) {
|
|
4961
|
+
baseOptions = configuration.baseOptions;
|
|
4962
|
+
}
|
|
4963
|
+
|
|
4964
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4965
|
+
const localVarHeaderParameter = {} as any;
|
|
4966
|
+
const localVarQueryParameter = {} as any;
|
|
4967
|
+
|
|
4968
|
+
// authentication bearer required
|
|
4969
|
+
// http bearer authentication required
|
|
4970
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4971
|
+
|
|
4972
|
+
|
|
4973
|
+
|
|
4974
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4975
|
+
|
|
4976
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4977
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4978
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4979
|
+
localVarRequestOptions.data = serializeDataIfNeeded(leaveBookingDTO, localVarRequestOptions, configuration)
|
|
4980
|
+
|
|
4981
|
+
return {
|
|
4982
|
+
url: toPathString(localVarUrlObj),
|
|
4983
|
+
options: localVarRequestOptions,
|
|
4984
|
+
};
|
|
4985
|
+
},
|
|
4829
4986
|
/**
|
|
4830
4987
|
*
|
|
4831
4988
|
* @param {RejectBookingInvitePayload} rejectBookingInvitePayload
|
|
@@ -4923,6 +5080,18 @@ export const BookingApiFp = function(configuration?: Configuration) {
|
|
|
4923
5080
|
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerGetBooking']?.[localVarOperationServerIndex]?.url;
|
|
4924
5081
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4925
5082
|
},
|
|
5083
|
+
/**
|
|
5084
|
+
*
|
|
5085
|
+
* @param {LeaveBookingDTO} leaveBookingDTO
|
|
5086
|
+
* @param {*} [options] Override http request option.
|
|
5087
|
+
* @throws {RequiredError}
|
|
5088
|
+
*/
|
|
5089
|
+
async bookingControllerLeaveBooking(leaveBookingDTO: LeaveBookingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveBookingResponseDTO>> {
|
|
5090
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerLeaveBooking(leaveBookingDTO, options);
|
|
5091
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5092
|
+
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerLeaveBooking']?.[localVarOperationServerIndex]?.url;
|
|
5093
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5094
|
+
},
|
|
4926
5095
|
/**
|
|
4927
5096
|
*
|
|
4928
5097
|
* @param {RejectBookingInvitePayload} rejectBookingInvitePayload
|
|
@@ -4981,6 +5150,15 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
|
|
|
4981
5150
|
bookingControllerGetBooking(id: string, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponseDTO> {
|
|
4982
5151
|
return localVarFp.bookingControllerGetBooking(id, options).then((request) => request(axios, basePath));
|
|
4983
5152
|
},
|
|
5153
|
+
/**
|
|
5154
|
+
*
|
|
5155
|
+
* @param {LeaveBookingDTO} leaveBookingDTO
|
|
5156
|
+
* @param {*} [options] Override http request option.
|
|
5157
|
+
* @throws {RequiredError}
|
|
5158
|
+
*/
|
|
5159
|
+
bookingControllerLeaveBooking(leaveBookingDTO: LeaveBookingDTO, options?: RawAxiosRequestConfig): AxiosPromise<LeaveBookingResponseDTO> {
|
|
5160
|
+
return localVarFp.bookingControllerLeaveBooking(leaveBookingDTO, options).then((request) => request(axios, basePath));
|
|
5161
|
+
},
|
|
4984
5162
|
/**
|
|
4985
5163
|
*
|
|
4986
5164
|
* @param {RejectBookingInvitePayload} rejectBookingInvitePayload
|
|
@@ -5044,6 +5222,17 @@ export class BookingApi extends BaseAPI {
|
|
|
5044
5222
|
return BookingApiFp(this.configuration).bookingControllerGetBooking(id, options).then((request) => request(this.axios, this.basePath));
|
|
5045
5223
|
}
|
|
5046
5224
|
|
|
5225
|
+
/**
|
|
5226
|
+
*
|
|
5227
|
+
* @param {LeaveBookingDTO} leaveBookingDTO
|
|
5228
|
+
* @param {*} [options] Override http request option.
|
|
5229
|
+
* @throws {RequiredError}
|
|
5230
|
+
* @memberof BookingApi
|
|
5231
|
+
*/
|
|
5232
|
+
public bookingControllerLeaveBooking(leaveBookingDTO: LeaveBookingDTO, options?: RawAxiosRequestConfig) {
|
|
5233
|
+
return BookingApiFp(this.configuration).bookingControllerLeaveBooking(leaveBookingDTO, options).then((request) => request(this.axios, this.basePath));
|
|
5234
|
+
}
|
|
5235
|
+
|
|
5047
5236
|
/**
|
|
5048
5237
|
*
|
|
5049
5238
|
* @param {RejectBookingInvitePayload} rejectBookingInvitePayload
|
|
@@ -6010,10 +6199,11 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
6010
6199
|
*
|
|
6011
6200
|
* @param {string} startDate Start date for the events
|
|
6012
6201
|
* @param {string} endDate End date for the events
|
|
6202
|
+
* @param {string} [calendar] Calendar
|
|
6013
6203
|
* @param {*} [options] Override http request option.
|
|
6014
6204
|
* @throws {RequiredError}
|
|
6015
6205
|
*/
|
|
6016
|
-
calendarControllerListEvents: async (startDate: string, endDate: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6206
|
+
calendarControllerListEvents: async (startDate: string, endDate: string, calendar?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6017
6207
|
// verify required parameter 'startDate' is not null or undefined
|
|
6018
6208
|
assertParamExists('calendarControllerListEvents', 'startDate', startDate)
|
|
6019
6209
|
// verify required parameter 'endDate' is not null or undefined
|
|
@@ -6046,6 +6236,10 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
6046
6236
|
endDate;
|
|
6047
6237
|
}
|
|
6048
6238
|
|
|
6239
|
+
if (calendar !== undefined) {
|
|
6240
|
+
localVarQueryParameter['calendar'] = calendar;
|
|
6241
|
+
}
|
|
6242
|
+
|
|
6049
6243
|
|
|
6050
6244
|
|
|
6051
6245
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -6308,11 +6502,12 @@ export const CalendarApiFp = function(configuration?: Configuration) {
|
|
|
6308
6502
|
*
|
|
6309
6503
|
* @param {string} startDate Start date for the events
|
|
6310
6504
|
* @param {string} endDate End date for the events
|
|
6505
|
+
* @param {string} [calendar] Calendar
|
|
6311
6506
|
* @param {*} [options] Override http request option.
|
|
6312
6507
|
* @throws {RequiredError}
|
|
6313
6508
|
*/
|
|
6314
|
-
async calendarControllerListEvents(startDate: string, endDate: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarEventsDTO>> {
|
|
6315
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListEvents(startDate, endDate, options);
|
|
6509
|
+
async calendarControllerListEvents(startDate: string, endDate: string, calendar?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarEventsDTO>> {
|
|
6510
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListEvents(startDate, endDate, calendar, options);
|
|
6316
6511
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6317
6512
|
const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListEvents']?.[localVarOperationServerIndex]?.url;
|
|
6318
6513
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6426,11 +6621,12 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
|
|
|
6426
6621
|
*
|
|
6427
6622
|
* @param {string} startDate Start date for the events
|
|
6428
6623
|
* @param {string} endDate End date for the events
|
|
6624
|
+
* @param {string} [calendar] Calendar
|
|
6429
6625
|
* @param {*} [options] Override http request option.
|
|
6430
6626
|
* @throws {RequiredError}
|
|
6431
6627
|
*/
|
|
6432
|
-
calendarControllerListEvents(startDate: string, endDate: string, options?: RawAxiosRequestConfig): AxiosPromise<CalendarEventsDTO> {
|
|
6433
|
-
return localVarFp.calendarControllerListEvents(startDate, endDate, options).then((request) => request(axios, basePath));
|
|
6628
|
+
calendarControllerListEvents(startDate: string, endDate: string, calendar?: string, options?: RawAxiosRequestConfig): AxiosPromise<CalendarEventsDTO> {
|
|
6629
|
+
return localVarFp.calendarControllerListEvents(startDate, endDate, calendar, options).then((request) => request(axios, basePath));
|
|
6434
6630
|
},
|
|
6435
6631
|
/**
|
|
6436
6632
|
*
|
|
@@ -6534,12 +6730,13 @@ export class CalendarApi extends BaseAPI {
|
|
|
6534
6730
|
*
|
|
6535
6731
|
* @param {string} startDate Start date for the events
|
|
6536
6732
|
* @param {string} endDate End date for the events
|
|
6733
|
+
* @param {string} [calendar] Calendar
|
|
6537
6734
|
* @param {*} [options] Override http request option.
|
|
6538
6735
|
* @throws {RequiredError}
|
|
6539
6736
|
* @memberof CalendarApi
|
|
6540
6737
|
*/
|
|
6541
|
-
public calendarControllerListEvents(startDate: string, endDate: string, options?: RawAxiosRequestConfig) {
|
|
6542
|
-
return CalendarApiFp(this.configuration).calendarControllerListEvents(startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
6738
|
+
public calendarControllerListEvents(startDate: string, endDate: string, calendar?: string, options?: RawAxiosRequestConfig) {
|
|
6739
|
+
return CalendarApiFp(this.configuration).calendarControllerListEvents(startDate, endDate, calendar, options).then((request) => request(this.axios, this.basePath));
|
|
6543
6740
|
}
|
|
6544
6741
|
|
|
6545
6742
|
/**
|
|
@@ -6793,6 +6990,45 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
6793
6990
|
options: localVarRequestOptions,
|
|
6794
6991
|
};
|
|
6795
6992
|
},
|
|
6993
|
+
/**
|
|
6994
|
+
*
|
|
6995
|
+
* @param {EventDeletePayload} eventDeletePayload
|
|
6996
|
+
* @param {*} [options] Override http request option.
|
|
6997
|
+
* @throws {RequiredError}
|
|
6998
|
+
*/
|
|
6999
|
+
eventControllerDeleteEvents: async (eventDeletePayload: EventDeletePayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7000
|
+
// verify required parameter 'eventDeletePayload' is not null or undefined
|
|
7001
|
+
assertParamExists('eventControllerDeleteEvents', 'eventDeletePayload', eventDeletePayload)
|
|
7002
|
+
const localVarPath = `/v1/event`;
|
|
7003
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7004
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7005
|
+
let baseOptions;
|
|
7006
|
+
if (configuration) {
|
|
7007
|
+
baseOptions = configuration.baseOptions;
|
|
7008
|
+
}
|
|
7009
|
+
|
|
7010
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
7011
|
+
const localVarHeaderParameter = {} as any;
|
|
7012
|
+
const localVarQueryParameter = {} as any;
|
|
7013
|
+
|
|
7014
|
+
// authentication bearer required
|
|
7015
|
+
// http bearer authentication required
|
|
7016
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7017
|
+
|
|
7018
|
+
|
|
7019
|
+
|
|
7020
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7021
|
+
|
|
7022
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7023
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7024
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7025
|
+
localVarRequestOptions.data = serializeDataIfNeeded(eventDeletePayload, localVarRequestOptions, configuration)
|
|
7026
|
+
|
|
7027
|
+
return {
|
|
7028
|
+
url: toPathString(localVarUrlObj),
|
|
7029
|
+
options: localVarRequestOptions,
|
|
7030
|
+
};
|
|
7031
|
+
},
|
|
6796
7032
|
/**
|
|
6797
7033
|
*
|
|
6798
7034
|
* @param {string} id
|
|
@@ -6864,6 +7100,45 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
6864
7100
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6865
7101
|
localVarRequestOptions.data = serializeDataIfNeeded(rejectEventInvitePayload, localVarRequestOptions, configuration)
|
|
6866
7102
|
|
|
7103
|
+
return {
|
|
7104
|
+
url: toPathString(localVarUrlObj),
|
|
7105
|
+
options: localVarRequestOptions,
|
|
7106
|
+
};
|
|
7107
|
+
},
|
|
7108
|
+
/**
|
|
7109
|
+
*
|
|
7110
|
+
* @param {CreateEventPayload} createEventPayload
|
|
7111
|
+
* @param {*} [options] Override http request option.
|
|
7112
|
+
* @throws {RequiredError}
|
|
7113
|
+
*/
|
|
7114
|
+
eventControllerUpdateEvents: async (createEventPayload: CreateEventPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7115
|
+
// verify required parameter 'createEventPayload' is not null or undefined
|
|
7116
|
+
assertParamExists('eventControllerUpdateEvents', 'createEventPayload', createEventPayload)
|
|
7117
|
+
const localVarPath = `/v1/event`;
|
|
7118
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7119
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7120
|
+
let baseOptions;
|
|
7121
|
+
if (configuration) {
|
|
7122
|
+
baseOptions = configuration.baseOptions;
|
|
7123
|
+
}
|
|
7124
|
+
|
|
7125
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
7126
|
+
const localVarHeaderParameter = {} as any;
|
|
7127
|
+
const localVarQueryParameter = {} as any;
|
|
7128
|
+
|
|
7129
|
+
// authentication bearer required
|
|
7130
|
+
// http bearer authentication required
|
|
7131
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7132
|
+
|
|
7133
|
+
|
|
7134
|
+
|
|
7135
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7136
|
+
|
|
7137
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7138
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7139
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7140
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createEventPayload, localVarRequestOptions, configuration)
|
|
7141
|
+
|
|
6867
7142
|
return {
|
|
6868
7143
|
url: toPathString(localVarUrlObj),
|
|
6869
7144
|
options: localVarRequestOptions,
|
|
@@ -6903,6 +7178,18 @@ export const EventsApiFp = function(configuration?: Configuration) {
|
|
|
6903
7178
|
const localVarOperationServerBasePath = operationServerMap['EventsApi.eventControllerCreateEvents']?.[localVarOperationServerIndex]?.url;
|
|
6904
7179
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6905
7180
|
},
|
|
7181
|
+
/**
|
|
7182
|
+
*
|
|
7183
|
+
* @param {EventDeletePayload} eventDeletePayload
|
|
7184
|
+
* @param {*} [options] Override http request option.
|
|
7185
|
+
* @throws {RequiredError}
|
|
7186
|
+
*/
|
|
7187
|
+
async eventControllerDeleteEvents(eventDeletePayload: EventDeletePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventDeleteResponseDTO>> {
|
|
7188
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.eventControllerDeleteEvents(eventDeletePayload, options);
|
|
7189
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7190
|
+
const localVarOperationServerBasePath = operationServerMap['EventsApi.eventControllerDeleteEvents']?.[localVarOperationServerIndex]?.url;
|
|
7191
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7192
|
+
},
|
|
6906
7193
|
/**
|
|
6907
7194
|
*
|
|
6908
7195
|
* @param {string} id
|
|
@@ -6927,6 +7214,18 @@ export const EventsApiFp = function(configuration?: Configuration) {
|
|
|
6927
7214
|
const localVarOperationServerBasePath = operationServerMap['EventsApi.eventControllerRejectEventInvite']?.[localVarOperationServerIndex]?.url;
|
|
6928
7215
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6929
7216
|
},
|
|
7217
|
+
/**
|
|
7218
|
+
*
|
|
7219
|
+
* @param {CreateEventPayload} createEventPayload
|
|
7220
|
+
* @param {*} [options] Override http request option.
|
|
7221
|
+
* @throws {RequiredError}
|
|
7222
|
+
*/
|
|
7223
|
+
async eventControllerUpdateEvents(createEventPayload: CreateEventPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventResponseDTO>> {
|
|
7224
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.eventControllerUpdateEvents(createEventPayload, options);
|
|
7225
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7226
|
+
const localVarOperationServerBasePath = operationServerMap['EventsApi.eventControllerUpdateEvents']?.[localVarOperationServerIndex]?.url;
|
|
7227
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7228
|
+
},
|
|
6930
7229
|
}
|
|
6931
7230
|
};
|
|
6932
7231
|
|
|
@@ -6955,6 +7254,15 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
|
|
|
6955
7254
|
eventControllerCreateEvents(createEventPayload: CreateEventPayload, options?: RawAxiosRequestConfig): AxiosPromise<EventResponseDTO> {
|
|
6956
7255
|
return localVarFp.eventControllerCreateEvents(createEventPayload, options).then((request) => request(axios, basePath));
|
|
6957
7256
|
},
|
|
7257
|
+
/**
|
|
7258
|
+
*
|
|
7259
|
+
* @param {EventDeletePayload} eventDeletePayload
|
|
7260
|
+
* @param {*} [options] Override http request option.
|
|
7261
|
+
* @throws {RequiredError}
|
|
7262
|
+
*/
|
|
7263
|
+
eventControllerDeleteEvents(eventDeletePayload: EventDeletePayload, options?: RawAxiosRequestConfig): AxiosPromise<EventDeleteResponseDTO> {
|
|
7264
|
+
return localVarFp.eventControllerDeleteEvents(eventDeletePayload, options).then((request) => request(axios, basePath));
|
|
7265
|
+
},
|
|
6958
7266
|
/**
|
|
6959
7267
|
*
|
|
6960
7268
|
* @param {string} id
|
|
@@ -6973,6 +7281,15 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
|
|
|
6973
7281
|
eventControllerRejectEventInvite(rejectEventInvitePayload: RejectEventInvitePayload, options?: RawAxiosRequestConfig): AxiosPromise<EventDTO> {
|
|
6974
7282
|
return localVarFp.eventControllerRejectEventInvite(rejectEventInvitePayload, options).then((request) => request(axios, basePath));
|
|
6975
7283
|
},
|
|
7284
|
+
/**
|
|
7285
|
+
*
|
|
7286
|
+
* @param {CreateEventPayload} createEventPayload
|
|
7287
|
+
* @param {*} [options] Override http request option.
|
|
7288
|
+
* @throws {RequiredError}
|
|
7289
|
+
*/
|
|
7290
|
+
eventControllerUpdateEvents(createEventPayload: CreateEventPayload, options?: RawAxiosRequestConfig): AxiosPromise<EventResponseDTO> {
|
|
7291
|
+
return localVarFp.eventControllerUpdateEvents(createEventPayload, options).then((request) => request(axios, basePath));
|
|
7292
|
+
},
|
|
6976
7293
|
};
|
|
6977
7294
|
};
|
|
6978
7295
|
|
|
@@ -7005,6 +7322,17 @@ export class EventsApi extends BaseAPI {
|
|
|
7005
7322
|
return EventsApiFp(this.configuration).eventControllerCreateEvents(createEventPayload, options).then((request) => request(this.axios, this.basePath));
|
|
7006
7323
|
}
|
|
7007
7324
|
|
|
7325
|
+
/**
|
|
7326
|
+
*
|
|
7327
|
+
* @param {EventDeletePayload} eventDeletePayload
|
|
7328
|
+
* @param {*} [options] Override http request option.
|
|
7329
|
+
* @throws {RequiredError}
|
|
7330
|
+
* @memberof EventsApi
|
|
7331
|
+
*/
|
|
7332
|
+
public eventControllerDeleteEvents(eventDeletePayload: EventDeletePayload, options?: RawAxiosRequestConfig) {
|
|
7333
|
+
return EventsApiFp(this.configuration).eventControllerDeleteEvents(eventDeletePayload, options).then((request) => request(this.axios, this.basePath));
|
|
7334
|
+
}
|
|
7335
|
+
|
|
7008
7336
|
/**
|
|
7009
7337
|
*
|
|
7010
7338
|
* @param {string} id
|
|
@@ -7026,6 +7354,17 @@ export class EventsApi extends BaseAPI {
|
|
|
7026
7354
|
public eventControllerRejectEventInvite(rejectEventInvitePayload: RejectEventInvitePayload, options?: RawAxiosRequestConfig) {
|
|
7027
7355
|
return EventsApiFp(this.configuration).eventControllerRejectEventInvite(rejectEventInvitePayload, options).then((request) => request(this.axios, this.basePath));
|
|
7028
7356
|
}
|
|
7357
|
+
|
|
7358
|
+
/**
|
|
7359
|
+
*
|
|
7360
|
+
* @param {CreateEventPayload} createEventPayload
|
|
7361
|
+
* @param {*} [options] Override http request option.
|
|
7362
|
+
* @throws {RequiredError}
|
|
7363
|
+
* @memberof EventsApi
|
|
7364
|
+
*/
|
|
7365
|
+
public eventControllerUpdateEvents(createEventPayload: CreateEventPayload, options?: RawAxiosRequestConfig) {
|
|
7366
|
+
return EventsApiFp(this.configuration).eventControllerUpdateEvents(createEventPayload, options).then((request) => request(this.axios, this.basePath));
|
|
7367
|
+
}
|
|
7029
7368
|
}
|
|
7030
7369
|
|
|
7031
7370
|
|