@gooday_corp/gooday-api-client 1.1.22-alpha → 1.1.24
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 +119 -17
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -2351,6 +2351,44 @@ export interface NewPasswordResponseDTO {
|
|
|
2351
2351
|
*/
|
|
2352
2352
|
'message': string;
|
|
2353
2353
|
}
|
|
2354
|
+
/**
|
|
2355
|
+
*
|
|
2356
|
+
* @export
|
|
2357
|
+
* @interface NotificationActionEventPayload
|
|
2358
|
+
*/
|
|
2359
|
+
export interface NotificationActionEventPayload {
|
|
2360
|
+
/**
|
|
2361
|
+
* Trigger for event
|
|
2362
|
+
* @type {string}
|
|
2363
|
+
* @memberof NotificationActionEventPayload
|
|
2364
|
+
*/
|
|
2365
|
+
'trigger': string;
|
|
2366
|
+
/**
|
|
2367
|
+
* Action Data
|
|
2368
|
+
* @type {object}
|
|
2369
|
+
* @memberof NotificationActionEventPayload
|
|
2370
|
+
*/
|
|
2371
|
+
'data': object;
|
|
2372
|
+
}
|
|
2373
|
+
/**
|
|
2374
|
+
*
|
|
2375
|
+
* @export
|
|
2376
|
+
* @interface NotificationActionEventResponseDTO
|
|
2377
|
+
*/
|
|
2378
|
+
export interface NotificationActionEventResponseDTO {
|
|
2379
|
+
/**
|
|
2380
|
+
* statusCode
|
|
2381
|
+
* @type {number}
|
|
2382
|
+
* @memberof NotificationActionEventResponseDTO
|
|
2383
|
+
*/
|
|
2384
|
+
'statusCode': number;
|
|
2385
|
+
/**
|
|
2386
|
+
* Response
|
|
2387
|
+
* @type {boolean}
|
|
2388
|
+
* @memberof NotificationActionEventResponseDTO
|
|
2389
|
+
*/
|
|
2390
|
+
'success': boolean;
|
|
2391
|
+
}
|
|
2354
2392
|
/**
|
|
2355
2393
|
*
|
|
2356
2394
|
* @export
|
|
@@ -2408,7 +2446,8 @@ export const NotificationEntityTypeEnum = {
|
|
|
2408
2446
|
UserOnboard: 'USER_ONBOARD',
|
|
2409
2447
|
BusinessBookingCreate: 'BUSINESS_BOOKING_CREATE',
|
|
2410
2448
|
BookingCreate: 'BOOKING_CREATE',
|
|
2411
|
-
|
|
2449
|
+
BookingCreateForUser: 'BOOKING_CREATE_FOR_USER',
|
|
2450
|
+
BokingAccept: 'BOKING_ACCEPT',
|
|
2412
2451
|
BookingReject: 'BOOKING_REJECT'
|
|
2413
2452
|
} as const;
|
|
2414
2453
|
|
|
@@ -2440,7 +2479,7 @@ export interface NotificationReadResponseDTO {
|
|
|
2440
2479
|
*/
|
|
2441
2480
|
'statusCode': number;
|
|
2442
2481
|
/**
|
|
2443
|
-
*
|
|
2482
|
+
* Response
|
|
2444
2483
|
* @type {boolean}
|
|
2445
2484
|
* @memberof NotificationReadResponseDTO
|
|
2446
2485
|
*/
|
|
@@ -5959,11 +5998,10 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5959
5998
|
*
|
|
5960
5999
|
* @param {string} startDate Start date for the events
|
|
5961
6000
|
* @param {string} endDate End date for the events
|
|
5962
|
-
* @param {string} [calendar] Calendar
|
|
5963
6001
|
* @param {*} [options] Override http request option.
|
|
5964
6002
|
* @throws {RequiredError}
|
|
5965
6003
|
*/
|
|
5966
|
-
calendarControllerListEvents: async (startDate: string, endDate: string,
|
|
6004
|
+
calendarControllerListEvents: async (startDate: string, endDate: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5967
6005
|
// verify required parameter 'startDate' is not null or undefined
|
|
5968
6006
|
assertParamExists('calendarControllerListEvents', 'startDate', startDate)
|
|
5969
6007
|
// verify required parameter 'endDate' is not null or undefined
|
|
@@ -5996,10 +6034,6 @@ export const CalendarApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5996
6034
|
endDate;
|
|
5997
6035
|
}
|
|
5998
6036
|
|
|
5999
|
-
if (calendar !== undefined) {
|
|
6000
|
-
localVarQueryParameter['calendar'] = calendar;
|
|
6001
|
-
}
|
|
6002
|
-
|
|
6003
6037
|
|
|
6004
6038
|
|
|
6005
6039
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -6262,12 +6296,11 @@ export const CalendarApiFp = function(configuration?: Configuration) {
|
|
|
6262
6296
|
*
|
|
6263
6297
|
* @param {string} startDate Start date for the events
|
|
6264
6298
|
* @param {string} endDate End date for the events
|
|
6265
|
-
* @param {string} [calendar] Calendar
|
|
6266
6299
|
* @param {*} [options] Override http request option.
|
|
6267
6300
|
* @throws {RequiredError}
|
|
6268
6301
|
*/
|
|
6269
|
-
async calendarControllerListEvents(startDate: string, endDate: string,
|
|
6270
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListEvents(startDate, endDate,
|
|
6302
|
+
async calendarControllerListEvents(startDate: string, endDate: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarEventsDTO>> {
|
|
6303
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.calendarControllerListEvents(startDate, endDate, options);
|
|
6271
6304
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6272
6305
|
const localVarOperationServerBasePath = operationServerMap['CalendarApi.calendarControllerListEvents']?.[localVarOperationServerIndex]?.url;
|
|
6273
6306
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6381,12 +6414,11 @@ export const CalendarApiFactory = function (configuration?: Configuration, baseP
|
|
|
6381
6414
|
*
|
|
6382
6415
|
* @param {string} startDate Start date for the events
|
|
6383
6416
|
* @param {string} endDate End date for the events
|
|
6384
|
-
* @param {string} [calendar] Calendar
|
|
6385
6417
|
* @param {*} [options] Override http request option.
|
|
6386
6418
|
* @throws {RequiredError}
|
|
6387
6419
|
*/
|
|
6388
|
-
calendarControllerListEvents(startDate: string, endDate: string,
|
|
6389
|
-
return localVarFp.calendarControllerListEvents(startDate, endDate,
|
|
6420
|
+
calendarControllerListEvents(startDate: string, endDate: string, options?: RawAxiosRequestConfig): AxiosPromise<CalendarEventsDTO> {
|
|
6421
|
+
return localVarFp.calendarControllerListEvents(startDate, endDate, options).then((request) => request(axios, basePath));
|
|
6390
6422
|
},
|
|
6391
6423
|
/**
|
|
6392
6424
|
*
|
|
@@ -6490,13 +6522,12 @@ export class CalendarApi extends BaseAPI {
|
|
|
6490
6522
|
*
|
|
6491
6523
|
* @param {string} startDate Start date for the events
|
|
6492
6524
|
* @param {string} endDate End date for the events
|
|
6493
|
-
* @param {string} [calendar] Calendar
|
|
6494
6525
|
* @param {*} [options] Override http request option.
|
|
6495
6526
|
* @throws {RequiredError}
|
|
6496
6527
|
* @memberof CalendarApi
|
|
6497
6528
|
*/
|
|
6498
|
-
public calendarControllerListEvents(startDate: string, endDate: string,
|
|
6499
|
-
return CalendarApiFp(this.configuration).calendarControllerListEvents(startDate, endDate,
|
|
6529
|
+
public calendarControllerListEvents(startDate: string, endDate: string, options?: RawAxiosRequestConfig) {
|
|
6530
|
+
return CalendarApiFp(this.configuration).calendarControllerListEvents(startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
6500
6531
|
}
|
|
6501
6532
|
|
|
6502
6533
|
/**
|
|
@@ -8198,6 +8229,45 @@ export class LocationApi extends BaseAPI {
|
|
|
8198
8229
|
*/
|
|
8199
8230
|
export const NotificationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
8200
8231
|
return {
|
|
8232
|
+
/**
|
|
8233
|
+
*
|
|
8234
|
+
* @param {NotificationActionEventPayload} notificationActionEventPayload
|
|
8235
|
+
* @param {*} [options] Override http request option.
|
|
8236
|
+
* @throws {RequiredError}
|
|
8237
|
+
*/
|
|
8238
|
+
notificationControllerActionEventEmitter: async (notificationActionEventPayload: NotificationActionEventPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8239
|
+
// verify required parameter 'notificationActionEventPayload' is not null or undefined
|
|
8240
|
+
assertParamExists('notificationControllerActionEventEmitter', 'notificationActionEventPayload', notificationActionEventPayload)
|
|
8241
|
+
const localVarPath = `/v1/notification/action-event-emitter`;
|
|
8242
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8243
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8244
|
+
let baseOptions;
|
|
8245
|
+
if (configuration) {
|
|
8246
|
+
baseOptions = configuration.baseOptions;
|
|
8247
|
+
}
|
|
8248
|
+
|
|
8249
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
8250
|
+
const localVarHeaderParameter = {} as any;
|
|
8251
|
+
const localVarQueryParameter = {} as any;
|
|
8252
|
+
|
|
8253
|
+
// authentication bearer required
|
|
8254
|
+
// http bearer authentication required
|
|
8255
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8256
|
+
|
|
8257
|
+
|
|
8258
|
+
|
|
8259
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8260
|
+
|
|
8261
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8262
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8263
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8264
|
+
localVarRequestOptions.data = serializeDataIfNeeded(notificationActionEventPayload, localVarRequestOptions, configuration)
|
|
8265
|
+
|
|
8266
|
+
return {
|
|
8267
|
+
url: toPathString(localVarUrlObj),
|
|
8268
|
+
options: localVarRequestOptions,
|
|
8269
|
+
};
|
|
8270
|
+
},
|
|
8201
8271
|
/**
|
|
8202
8272
|
*
|
|
8203
8273
|
* @param {number} page
|
|
@@ -8301,6 +8371,18 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
|
8301
8371
|
export const NotificationApiFp = function(configuration?: Configuration) {
|
|
8302
8372
|
const localVarAxiosParamCreator = NotificationApiAxiosParamCreator(configuration)
|
|
8303
8373
|
return {
|
|
8374
|
+
/**
|
|
8375
|
+
*
|
|
8376
|
+
* @param {NotificationActionEventPayload} notificationActionEventPayload
|
|
8377
|
+
* @param {*} [options] Override http request option.
|
|
8378
|
+
* @throws {RequiredError}
|
|
8379
|
+
*/
|
|
8380
|
+
async notificationControllerActionEventEmitter(notificationActionEventPayload: NotificationActionEventPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationActionEventResponseDTO>> {
|
|
8381
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.notificationControllerActionEventEmitter(notificationActionEventPayload, options);
|
|
8382
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8383
|
+
const localVarOperationServerBasePath = operationServerMap['NotificationApi.notificationControllerActionEventEmitter']?.[localVarOperationServerIndex]?.url;
|
|
8384
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8385
|
+
},
|
|
8304
8386
|
/**
|
|
8305
8387
|
*
|
|
8306
8388
|
* @param {number} page
|
|
@@ -8337,6 +8419,15 @@ export const NotificationApiFp = function(configuration?: Configuration) {
|
|
|
8337
8419
|
export const NotificationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
8338
8420
|
const localVarFp = NotificationApiFp(configuration)
|
|
8339
8421
|
return {
|
|
8422
|
+
/**
|
|
8423
|
+
*
|
|
8424
|
+
* @param {NotificationActionEventPayload} notificationActionEventPayload
|
|
8425
|
+
* @param {*} [options] Override http request option.
|
|
8426
|
+
* @throws {RequiredError}
|
|
8427
|
+
*/
|
|
8428
|
+
notificationControllerActionEventEmitter(notificationActionEventPayload: NotificationActionEventPayload, options?: RawAxiosRequestConfig): AxiosPromise<NotificationActionEventResponseDTO> {
|
|
8429
|
+
return localVarFp.notificationControllerActionEventEmitter(notificationActionEventPayload, options).then((request) => request(axios, basePath));
|
|
8430
|
+
},
|
|
8340
8431
|
/**
|
|
8341
8432
|
*
|
|
8342
8433
|
* @param {number} page
|
|
@@ -8367,6 +8458,17 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
|
|
|
8367
8458
|
* @extends {BaseAPI}
|
|
8368
8459
|
*/
|
|
8369
8460
|
export class NotificationApi extends BaseAPI {
|
|
8461
|
+
/**
|
|
8462
|
+
*
|
|
8463
|
+
* @param {NotificationActionEventPayload} notificationActionEventPayload
|
|
8464
|
+
* @param {*} [options] Override http request option.
|
|
8465
|
+
* @throws {RequiredError}
|
|
8466
|
+
* @memberof NotificationApi
|
|
8467
|
+
*/
|
|
8468
|
+
public notificationControllerActionEventEmitter(notificationActionEventPayload: NotificationActionEventPayload, options?: RawAxiosRequestConfig) {
|
|
8469
|
+
return NotificationApiFp(this.configuration).notificationControllerActionEventEmitter(notificationActionEventPayload, options).then((request) => request(this.axios, this.basePath));
|
|
8470
|
+
}
|
|
8471
|
+
|
|
8370
8472
|
/**
|
|
8371
8473
|
*
|
|
8372
8474
|
* @param {number} page
|