@gooday_corp/gooday-api-client 1.1.22 → 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.
Files changed (2) hide show
  1. package/api.ts +112 -2
  2. 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
- BokkingAccept: 'BOKKING_ACCEPT',
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
  */
@@ -8190,6 +8229,45 @@ export class LocationApi extends BaseAPI {
8190
8229
  */
8191
8230
  export const NotificationApiAxiosParamCreator = function (configuration?: Configuration) {
8192
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
+ },
8193
8271
  /**
8194
8272
  *
8195
8273
  * @param {number} page
@@ -8293,6 +8371,18 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
8293
8371
  export const NotificationApiFp = function(configuration?: Configuration) {
8294
8372
  const localVarAxiosParamCreator = NotificationApiAxiosParamCreator(configuration)
8295
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
+ },
8296
8386
  /**
8297
8387
  *
8298
8388
  * @param {number} page
@@ -8329,6 +8419,15 @@ export const NotificationApiFp = function(configuration?: Configuration) {
8329
8419
  export const NotificationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
8330
8420
  const localVarFp = NotificationApiFp(configuration)
8331
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
+ },
8332
8431
  /**
8333
8432
  *
8334
8433
  * @param {number} page
@@ -8359,6 +8458,17 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
8359
8458
  * @extends {BaseAPI}
8360
8459
  */
8361
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
+
8362
8472
  /**
8363
8473
  *
8364
8474
  * @param {number} page
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.22",
3
+ "version": "1.1.24",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},