@gooday_corp/gooday-api-client 1.1.16 → 1.1.18-alpha
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 +165 -97
- 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>}
|
|
@@ -2280,49 +2336,19 @@ export interface NotificationEntity {
|
|
|
2280
2336
|
* @type {string}
|
|
2281
2337
|
* @memberof NotificationEntity
|
|
2282
2338
|
*/
|
|
2283
|
-
'
|
|
2284
|
-
/**
|
|
2285
|
-
* The ID of the recipient (optional)
|
|
2286
|
-
* @type {string}
|
|
2287
|
-
* @memberof NotificationEntity
|
|
2288
|
-
*/
|
|
2289
|
-
'recipientId'?: string;
|
|
2290
|
-
/**
|
|
2291
|
-
* The badge number (optional)
|
|
2292
|
-
* @type {number}
|
|
2293
|
-
* @memberof NotificationEntity
|
|
2294
|
-
*/
|
|
2295
|
-
'badge'?: number;
|
|
2339
|
+
'content': string;
|
|
2296
2340
|
/**
|
|
2297
2341
|
* The user associated with the notification
|
|
2298
2342
|
* @type {string}
|
|
2299
2343
|
* @memberof NotificationEntity
|
|
2300
2344
|
*/
|
|
2301
2345
|
'user': string;
|
|
2302
|
-
/**
|
|
2303
|
-
* The channel through which the notification is sent
|
|
2304
|
-
* @type {string}
|
|
2305
|
-
* @memberof NotificationEntity
|
|
2306
|
-
*/
|
|
2307
|
-
'channel': NotificationEntityChannelEnum;
|
|
2308
2346
|
/**
|
|
2309
2347
|
* The type of the notification (optional)
|
|
2310
2348
|
* @type {string}
|
|
2311
2349
|
* @memberof NotificationEntity
|
|
2312
2350
|
*/
|
|
2313
2351
|
'type'?: NotificationEntityTypeEnum;
|
|
2314
|
-
/**
|
|
2315
|
-
* The status of the notification
|
|
2316
|
-
* @type {string}
|
|
2317
|
-
* @memberof NotificationEntity
|
|
2318
|
-
*/
|
|
2319
|
-
'status': NotificationEntityStatusEnum;
|
|
2320
|
-
/**
|
|
2321
|
-
* The scheduled time for the notification (optional)
|
|
2322
|
-
* @type {string}
|
|
2323
|
-
* @memberof NotificationEntity
|
|
2324
|
-
*/
|
|
2325
|
-
'scheduledAt'?: string;
|
|
2326
2352
|
/**
|
|
2327
2353
|
* Additional metadata associated with the notification (optional)
|
|
2328
2354
|
* @type {object}
|
|
@@ -2337,28 +2363,18 @@ export interface NotificationEntity {
|
|
|
2337
2363
|
'isRead': boolean;
|
|
2338
2364
|
}
|
|
2339
2365
|
|
|
2340
|
-
export const NotificationEntityChannelEnum = {
|
|
2341
|
-
PushNotification: 'push-notification',
|
|
2342
|
-
Email: 'email'
|
|
2343
|
-
} as const;
|
|
2344
|
-
|
|
2345
|
-
export type NotificationEntityChannelEnum = typeof NotificationEntityChannelEnum[keyof typeof NotificationEntityChannelEnum];
|
|
2346
2366
|
export const NotificationEntityTypeEnum = {
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2367
|
+
FriendInvite: 'FRIEND_INVITE',
|
|
2368
|
+
FriendInviteAccept: 'FRIEND_INVITE_ACCEPT',
|
|
2369
|
+
FriendInviteReject: 'FRIEND_INVITE_REJECT',
|
|
2370
|
+
UserOnboard: 'USER_ONBOARD',
|
|
2371
|
+
BusinessBookingCreate: 'BUSINESS_BOOKING_CREATE',
|
|
2372
|
+
BookingCreate: 'BOOKING_CREATE',
|
|
2373
|
+
BokkingAccept: 'BOKKING_ACCEPT',
|
|
2374
|
+
BookingReject: 'BOOKING_REJECT'
|
|
2352
2375
|
} as const;
|
|
2353
2376
|
|
|
2354
2377
|
export type NotificationEntityTypeEnum = typeof NotificationEntityTypeEnum[keyof typeof NotificationEntityTypeEnum];
|
|
2355
|
-
export const NotificationEntityStatusEnum = {
|
|
2356
|
-
Pending: 'pending',
|
|
2357
|
-
Sent: 'sent',
|
|
2358
|
-
Failed: 'failed'
|
|
2359
|
-
} as const;
|
|
2360
|
-
|
|
2361
|
-
export type NotificationEntityStatusEnum = typeof NotificationEntityStatusEnum[keyof typeof NotificationEntityStatusEnum];
|
|
2362
2378
|
|
|
2363
2379
|
/**
|
|
2364
2380
|
*
|
|
@@ -2410,6 +2426,12 @@ export interface OnBoardingDTO {
|
|
|
2410
2426
|
* @memberof OnBoardingDTO
|
|
2411
2427
|
*/
|
|
2412
2428
|
'assistant'?: string;
|
|
2429
|
+
/**
|
|
2430
|
+
* Profile For user
|
|
2431
|
+
* @type {string}
|
|
2432
|
+
* @memberof OnBoardingDTO
|
|
2433
|
+
*/
|
|
2434
|
+
'profile'?: string;
|
|
2413
2435
|
/**
|
|
2414
2436
|
*
|
|
2415
2437
|
* @type {UserPlanDTO}
|
|
@@ -4578,7 +4600,7 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4578
4600
|
baseOptions = configuration.baseOptions;
|
|
4579
4601
|
}
|
|
4580
4602
|
|
|
4581
|
-
const localVarRequestOptions = { method: '
|
|
4603
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4582
4604
|
const localVarHeaderParameter = {} as any;
|
|
4583
4605
|
const localVarQueryParameter = {} as any;
|
|
4584
4606
|
|
|
@@ -4693,7 +4715,7 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4693
4715
|
baseOptions = configuration.baseOptions;
|
|
4694
4716
|
}
|
|
4695
4717
|
|
|
4696
|
-
const localVarRequestOptions = { method: '
|
|
4718
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4697
4719
|
const localVarHeaderParameter = {} as any;
|
|
4698
4720
|
const localVarQueryParameter = {} as any;
|
|
4699
4721
|
|
|
@@ -5024,10 +5046,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5024
5046
|
},
|
|
5025
5047
|
/**
|
|
5026
5048
|
*
|
|
5049
|
+
* @param {boolean} [favorite] Business Type Allow Return Favourite
|
|
5027
5050
|
* @param {*} [options] Override http request option.
|
|
5028
5051
|
* @throws {RequiredError}
|
|
5029
5052
|
*/
|
|
5030
|
-
businessTypeControllerListBusinessType: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5053
|
+
businessTypeControllerListBusinessType: async (favorite?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5031
5054
|
const localVarPath = `/v1/business/list`;
|
|
5032
5055
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5033
5056
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5044,6 +5067,10 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5044
5067
|
// http bearer authentication required
|
|
5045
5068
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5046
5069
|
|
|
5070
|
+
if (favorite !== undefined) {
|
|
5071
|
+
localVarQueryParameter['favorite'] = favorite;
|
|
5072
|
+
}
|
|
5073
|
+
|
|
5047
5074
|
|
|
5048
5075
|
|
|
5049
5076
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -5331,11 +5358,12 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
5331
5358
|
},
|
|
5332
5359
|
/**
|
|
5333
5360
|
*
|
|
5361
|
+
* @param {boolean} [favorite] Business Type Allow Return Favourite
|
|
5334
5362
|
* @param {*} [options] Override http request option.
|
|
5335
5363
|
* @throws {RequiredError}
|
|
5336
5364
|
*/
|
|
5337
|
-
async businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessTypeListResponse>> {
|
|
5338
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListBusinessType(options);
|
|
5365
|
+
async businessTypeControllerListBusinessType(favorite?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessTypeListResponse>> {
|
|
5366
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListBusinessType(favorite, options);
|
|
5339
5367
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5340
5368
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListBusinessType']?.[localVarOperationServerIndex]?.url;
|
|
5341
5369
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5457,11 +5485,12 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
5457
5485
|
},
|
|
5458
5486
|
/**
|
|
5459
5487
|
*
|
|
5488
|
+
* @param {boolean} [favorite] Business Type Allow Return Favourite
|
|
5460
5489
|
* @param {*} [options] Override http request option.
|
|
5461
5490
|
* @throws {RequiredError}
|
|
5462
5491
|
*/
|
|
5463
|
-
businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig): AxiosPromise<BusinessTypeListResponse> {
|
|
5464
|
-
return localVarFp.businessTypeControllerListBusinessType(options).then((request) => request(axios, basePath));
|
|
5492
|
+
businessTypeControllerListBusinessType(favorite?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<BusinessTypeListResponse> {
|
|
5493
|
+
return localVarFp.businessTypeControllerListBusinessType(favorite, options).then((request) => request(axios, basePath));
|
|
5465
5494
|
},
|
|
5466
5495
|
/**
|
|
5467
5496
|
*
|
|
@@ -5570,12 +5599,13 @@ export class BusinessApi extends BaseAPI {
|
|
|
5570
5599
|
|
|
5571
5600
|
/**
|
|
5572
5601
|
*
|
|
5602
|
+
* @param {boolean} [favorite] Business Type Allow Return Favourite
|
|
5573
5603
|
* @param {*} [options] Override http request option.
|
|
5574
5604
|
* @throws {RequiredError}
|
|
5575
5605
|
* @memberof BusinessApi
|
|
5576
5606
|
*/
|
|
5577
|
-
public businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig) {
|
|
5578
|
-
return BusinessApiFp(this.configuration).businessTypeControllerListBusinessType(options).then((request) => request(this.axios, this.basePath));
|
|
5607
|
+
public businessTypeControllerListBusinessType(favorite?: boolean, options?: RawAxiosRequestConfig) {
|
|
5608
|
+
return BusinessApiFp(this.configuration).businessTypeControllerListBusinessType(favorite, options).then((request) => request(this.axios, this.basePath));
|
|
5579
5609
|
}
|
|
5580
5610
|
|
|
5581
5611
|
/**
|
|
@@ -5818,13 +5848,16 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5818
5848
|
},
|
|
5819
5849
|
/**
|
|
5820
5850
|
*
|
|
5821
|
-
* @param {
|
|
5851
|
+
* @param {string} startDate Start date for the events
|
|
5852
|
+
* @param {string} endDate End date for the events
|
|
5822
5853
|
* @param {*} [options] Override http request option.
|
|
5823
5854
|
* @throws {RequiredError}
|
|
5824
5855
|
*/
|
|
5825
|
-
calendarControllerListEvents: async (
|
|
5826
|
-
// verify required parameter '
|
|
5827
|
-
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)
|
|
5828
5861
|
const localVarPath = `/v1/calendar/events`;
|
|
5829
5862
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5830
5863
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5841,14 +5874,23 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5841
5874
|
// http bearer authentication required
|
|
5842
5875
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5843
5876
|
|
|
5877
|
+
if (startDate !== undefined) {
|
|
5878
|
+
localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ?
|
|
5879
|
+
(startDate as any).toISOString() :
|
|
5880
|
+
startDate;
|
|
5881
|
+
}
|
|
5882
|
+
|
|
5883
|
+
if (endDate !== undefined) {
|
|
5884
|
+
localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ?
|
|
5885
|
+
(endDate as any).toISOString() :
|
|
5886
|
+
endDate;
|
|
5887
|
+
}
|
|
5844
5888
|
|
|
5845
|
-
|
|
5846
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5847
5889
|
|
|
5890
|
+
|
|
5848
5891
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5849
5892
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5850
5893
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5851
|
-
localVarRequestOptions.data = serializeDataIfNeeded(calendarEventsListPayload, localVarRequestOptions, configuration)
|
|
5852
5894
|
|
|
5853
5895
|
return {
|
|
5854
5896
|
url: toPathString(localVarUrlObj),
|
|
@@ -6104,12 +6146,13 @@ export const CalendarApiFp = function(configuration?: Configuration) {
|
|
|
6104
6146
|
},
|
|
6105
6147
|
/**
|
|
6106
6148
|
*
|
|
6107
|
-
* @param {
|
|
6149
|
+
* @param {string} startDate Start date for the events
|
|
6150
|
+
* @param {string} endDate End date for the events
|
|
6108
6151
|
* @param {*} [options] Override http request option.
|
|
6109
6152
|
* @throws {RequiredError}
|
|
6110
6153
|
*/
|
|
6111
|
-
async calendarControllerListEvents(
|
|
6112
|
-
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);
|
|
6113
6156
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6114
6157
|
const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListEvents']?.[localVarOperationServerIndex]?.url;
|
|
6115
6158
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6221,12 +6264,13 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
|
|
|
6221
6264
|
},
|
|
6222
6265
|
/**
|
|
6223
6266
|
*
|
|
6224
|
-
* @param {
|
|
6267
|
+
* @param {string} startDate Start date for the events
|
|
6268
|
+
* @param {string} endDate End date for the events
|
|
6225
6269
|
* @param {*} [options] Override http request option.
|
|
6226
6270
|
* @throws {RequiredError}
|
|
6227
6271
|
*/
|
|
6228
|
-
calendarControllerListEvents(
|
|
6229
|
-
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));
|
|
6230
6274
|
},
|
|
6231
6275
|
/**
|
|
6232
6276
|
*
|
|
@@ -6328,13 +6372,14 @@ export class CalendarApi extends BaseAPI {
|
|
|
6328
6372
|
|
|
6329
6373
|
/**
|
|
6330
6374
|
*
|
|
6331
|
-
* @param {
|
|
6375
|
+
* @param {string} startDate Start date for the events
|
|
6376
|
+
* @param {string} endDate End date for the events
|
|
6332
6377
|
* @param {*} [options] Override http request option.
|
|
6333
6378
|
* @throws {RequiredError}
|
|
6334
6379
|
* @memberof CalendarApi
|
|
6335
6380
|
*/
|
|
6336
|
-
public calendarControllerListEvents(
|
|
6337
|
-
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));
|
|
6338
6383
|
}
|
|
6339
6384
|
|
|
6340
6385
|
/**
|
|
@@ -6527,7 +6572,7 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
6527
6572
|
baseOptions = configuration.baseOptions;
|
|
6528
6573
|
}
|
|
6529
6574
|
|
|
6530
|
-
const localVarRequestOptions = { method: '
|
|
6575
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
6531
6576
|
const localVarHeaderParameter = {} as any;
|
|
6532
6577
|
const localVarQueryParameter = {} as any;
|
|
6533
6578
|
|
|
@@ -6642,7 +6687,7 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
6642
6687
|
baseOptions = configuration.baseOptions;
|
|
6643
6688
|
}
|
|
6644
6689
|
|
|
6645
|
-
const localVarRequestOptions = { method: '
|
|
6690
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
6646
6691
|
const localVarHeaderParameter = {} as any;
|
|
6647
6692
|
const localVarQueryParameter = {} as any;
|
|
6648
6693
|
|
|
@@ -8040,14 +8085,17 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
|
8040
8085
|
*
|
|
8041
8086
|
* @param {number} page
|
|
8042
8087
|
* @param {number} pageSize
|
|
8088
|
+
* @param {NotificationControllerGetNotificationCategoryEnum} category
|
|
8043
8089
|
* @param {*} [options] Override http request option.
|
|
8044
8090
|
* @throws {RequiredError}
|
|
8045
8091
|
*/
|
|
8046
|
-
notificationControllerGetNotification: async (page: number, pageSize: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8092
|
+
notificationControllerGetNotification: async (page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8047
8093
|
// verify required parameter 'page' is not null or undefined
|
|
8048
8094
|
assertParamExists('notificationControllerGetNotification', 'page', page)
|
|
8049
8095
|
// verify required parameter 'pageSize' is not null or undefined
|
|
8050
8096
|
assertParamExists('notificationControllerGetNotification', 'pageSize', pageSize)
|
|
8097
|
+
// verify required parameter 'category' is not null or undefined
|
|
8098
|
+
assertParamExists('notificationControllerGetNotification', 'category', category)
|
|
8051
8099
|
const localVarPath = `/v1/notification`;
|
|
8052
8100
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8053
8101
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8072,6 +8120,10 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
|
8072
8120
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
8073
8121
|
}
|
|
8074
8122
|
|
|
8123
|
+
if (category !== undefined) {
|
|
8124
|
+
localVarQueryParameter['category'] = category;
|
|
8125
|
+
}
|
|
8126
|
+
|
|
8075
8127
|
|
|
8076
8128
|
|
|
8077
8129
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -8136,11 +8188,12 @@ export const NotificationApiFp = function(configuration?: Configuration) {
|
|
|
8136
8188
|
*
|
|
8137
8189
|
* @param {number} page
|
|
8138
8190
|
* @param {number} pageSize
|
|
8191
|
+
* @param {NotificationControllerGetNotificationCategoryEnum} category
|
|
8139
8192
|
* @param {*} [options] Override http request option.
|
|
8140
8193
|
* @throws {RequiredError}
|
|
8141
8194
|
*/
|
|
8142
|
-
async notificationControllerGetNotification(page: number, pageSize: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetNotificationDTO>> {
|
|
8143
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerGetNotification(page, pageSize, options);
|
|
8195
|
+
async notificationControllerGetNotification(page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetNotificationDTO>> {
|
|
8196
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerGetNotification(page, pageSize, category, options);
|
|
8144
8197
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8145
8198
|
const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerGetNotification']?.[localVarOperationServerIndex]?.url;
|
|
8146
8199
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -8171,11 +8224,12 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
|
|
|
8171
8224
|
*
|
|
8172
8225
|
* @param {number} page
|
|
8173
8226
|
* @param {number} pageSize
|
|
8227
|
+
* @param {NotificationControllerGetNotificationCategoryEnum} category
|
|
8174
8228
|
* @param {*} [options] Override http request option.
|
|
8175
8229
|
* @throws {RequiredError}
|
|
8176
8230
|
*/
|
|
8177
|
-
notificationControllerGetNotification(page: number, pageSize: number, options?: RawAxiosRequestConfig): AxiosPromise<GetNotificationDTO> {
|
|
8178
|
-
return localVarFp.notificationControllerGetNotification(page, pageSize, options).then((request) => request(axios, basePath));
|
|
8231
|
+
notificationControllerGetNotification(page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options?: RawAxiosRequestConfig): AxiosPromise<GetNotificationDTO> {
|
|
8232
|
+
return localVarFp.notificationControllerGetNotification(page, pageSize, category, options).then((request) => request(axios, basePath));
|
|
8179
8233
|
},
|
|
8180
8234
|
/**
|
|
8181
8235
|
*
|
|
@@ -8200,12 +8254,13 @@ export class NotificationApi extends BaseAPI {
|
|
|
8200
8254
|
*
|
|
8201
8255
|
* @param {number} page
|
|
8202
8256
|
* @param {number} pageSize
|
|
8257
|
+
* @param {NotificationControllerGetNotificationCategoryEnum} category
|
|
8203
8258
|
* @param {*} [options] Override http request option.
|
|
8204
8259
|
* @throws {RequiredError}
|
|
8205
8260
|
* @memberof NotificationApi
|
|
8206
8261
|
*/
|
|
8207
|
-
public notificationControllerGetNotification(page: number, pageSize: number, options?: RawAxiosRequestConfig) {
|
|
8208
|
-
return NotificationApiFp(this.configuration).notificationControllerGetNotification(page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
8262
|
+
public notificationControllerGetNotification(page: number, pageSize: number, category: NotificationControllerGetNotificationCategoryEnum, options?: RawAxiosRequestConfig) {
|
|
8263
|
+
return NotificationApiFp(this.configuration).notificationControllerGetNotification(page, pageSize, category, options).then((request) => request(this.axios, this.basePath));
|
|
8209
8264
|
}
|
|
8210
8265
|
|
|
8211
8266
|
/**
|
|
@@ -8220,6 +8275,19 @@ export class NotificationApi extends BaseAPI {
|
|
|
8220
8275
|
}
|
|
8221
8276
|
}
|
|
8222
8277
|
|
|
8278
|
+
/**
|
|
8279
|
+
* @export
|
|
8280
|
+
*/
|
|
8281
|
+
export const NotificationControllerGetNotificationCategoryEnum = {
|
|
8282
|
+
Calendar: 'CALENDAR',
|
|
8283
|
+
Tasks: 'TASKS',
|
|
8284
|
+
Reminders: 'REMINDERS',
|
|
8285
|
+
Waitlist: 'WAITLIST',
|
|
8286
|
+
Booking: 'BOOKING',
|
|
8287
|
+
Invites: 'INVITES',
|
|
8288
|
+
General: 'GENERAL'
|
|
8289
|
+
} as const;
|
|
8290
|
+
export type NotificationControllerGetNotificationCategoryEnum = typeof NotificationControllerGetNotificationCategoryEnum[keyof typeof NotificationControllerGetNotificationCategoryEnum];
|
|
8223
8291
|
|
|
8224
8292
|
|
|
8225
8293
|
/**
|