@gooday_corp/gooday-api-client 1.2.34 → 1.2.35

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 +318 -0
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -390,6 +390,159 @@ export const AvailableSlotsPayloadViewEnum = {
390
390
 
391
391
  export type AvailableSlotsPayloadViewEnum = typeof AvailableSlotsPayloadViewEnum[keyof typeof AvailableSlotsPayloadViewEnum];
392
392
 
393
+ /**
394
+ *
395
+ * @export
396
+ * @interface BookingEntity
397
+ */
398
+ export interface BookingEntity {
399
+ /**
400
+ * Unique identifier for the booking
401
+ * @type {string}
402
+ * @memberof BookingEntity
403
+ */
404
+ '_id': string;
405
+ /**
406
+ * Title of the booking
407
+ * @type {string}
408
+ * @memberof BookingEntity
409
+ */
410
+ 'title': string;
411
+ /**
412
+ * Start date of the booking
413
+ * @type {string}
414
+ * @memberof BookingEntity
415
+ */
416
+ 'startDate': string;
417
+ /**
418
+ * End date of the booking
419
+ * @type {string}
420
+ * @memberof BookingEntity
421
+ */
422
+ 'endDate': string;
423
+ /**
424
+ * Venue associated with the booking
425
+ * @type {string}
426
+ * @memberof BookingEntity
427
+ */
428
+ 'venue': string;
429
+ /**
430
+ * Business associated with the booking
431
+ * @type {string}
432
+ * @memberof BookingEntity
433
+ */
434
+ 'business': string;
435
+ /**
436
+ * List of customers in the booking
437
+ * @type {Array<object>}
438
+ * @memberof BookingEntity
439
+ */
440
+ 'customers': Array<object>;
441
+ /**
442
+ * Users associated with the booking
443
+ * @type {Array<string>}
444
+ * @memberof BookingEntity
445
+ */
446
+ 'users': Array<string>;
447
+ /**
448
+ * Staff members involved in the booking
449
+ * @type {Array<BusinessStaffEntity>}
450
+ * @memberof BookingEntity
451
+ */
452
+ 'staffs': Array<BusinessStaffEntity>;
453
+ /**
454
+ * Space for the booking
455
+ * @type {string}
456
+ * @memberof BookingEntity
457
+ */
458
+ 'space': string;
459
+ /**
460
+ * Creator of the booking
461
+ * @type {string}
462
+ * @memberof BookingEntity
463
+ */
464
+ 'createdBy': string;
465
+ /**
466
+ * Notes related to the booking
467
+ * @type {string}
468
+ * @memberof BookingEntity
469
+ */
470
+ 'notes': string;
471
+ /**
472
+ * Status of the booking
473
+ * @type {string}
474
+ * @memberof BookingEntity
475
+ */
476
+ 'status': BookingEntityStatusEnum;
477
+ /**
478
+ * Occasion for the booking
479
+ * @type {string}
480
+ * @memberof BookingEntity
481
+ */
482
+ 'occasion': string;
483
+ /**
484
+ * Calendar associated with the booking
485
+ * @type {Array<string>}
486
+ * @memberof BookingEntity
487
+ */
488
+ 'calendar': Array<string>;
489
+ /**
490
+ * Payment method ID for the booking
491
+ * @type {string}
492
+ * @memberof BookingEntity
493
+ */
494
+ 'paymentMethodId': string;
495
+ /**
496
+ * Booking method used
497
+ * @type {string}
498
+ * @memberof BookingEntity
499
+ */
500
+ 'method': BookingEntityMethodEnum;
501
+ /**
502
+ * Business venue favorite
503
+ * @type {BusinessVenueDTO}
504
+ * @memberof BookingEntity
505
+ */
506
+ 'favorite'?: BusinessVenueDTO;
507
+ /**
508
+ * Booking Icon
509
+ * @type {string}
510
+ * @memberof BookingEntity
511
+ */
512
+ 'icon'?: string;
513
+ /**
514
+ *
515
+ * @type {number}
516
+ * @memberof BookingEntity
517
+ */
518
+ 'bookingQuantity': number;
519
+ /**
520
+ *
521
+ * @type {Array<BookingServicePayload>}
522
+ * @memberof BookingEntity
523
+ */
524
+ 'services': Array<BookingServicePayload>;
525
+ }
526
+
527
+ export const BookingEntityStatusEnum = {
528
+ CheckedIn: 'CHECKED_IN',
529
+ Confirmed: 'CONFIRMED',
530
+ Unconfirmed: 'UNCONFIRMED',
531
+ Rescheduled: 'RESCHEDULED',
532
+ NoShow: 'NO_SHOW',
533
+ Rejected: 'REJECTED',
534
+ Cancelled: 'CANCELLED'
535
+ } as const;
536
+
537
+ export type BookingEntityStatusEnum = typeof BookingEntityStatusEnum[keyof typeof BookingEntityStatusEnum];
538
+ export const BookingEntityMethodEnum = {
539
+ Call: 'CALL',
540
+ InPerson: 'IN_PERSON',
541
+ App: 'APP'
542
+ } as const;
543
+
544
+ export type BookingEntityMethodEnum = typeof BookingEntityMethodEnum[keyof typeof BookingEntityMethodEnum];
545
+
393
546
  /**
394
547
  *
395
548
  * @export
@@ -2546,6 +2699,25 @@ export interface EventResponseDTO {
2546
2699
  */
2547
2700
  'data': EventResponse;
2548
2701
  }
2702
+ /**
2703
+ *
2704
+ * @export
2705
+ * @interface FIndBookingResponseDTO
2706
+ */
2707
+ export interface FIndBookingResponseDTO {
2708
+ /**
2709
+ * statusCode
2710
+ * @type {number}
2711
+ * @memberof FIndBookingResponseDTO
2712
+ */
2713
+ 'statusCode': number;
2714
+ /**
2715
+ * Booking response
2716
+ * @type {Array<BookingEntity>}
2717
+ * @memberof FIndBookingResponseDTO
2718
+ */
2719
+ 'data': Array<BookingEntity>;
2720
+ }
2549
2721
  /**
2550
2722
  *
2551
2723
  * @export
@@ -2578,6 +2750,81 @@ export interface FileNameUploadDTO {
2578
2750
  */
2579
2751
  'bucketName': string;
2580
2752
  }
2753
+ /**
2754
+ *
2755
+ * @export
2756
+ * @interface FindBookingPayload
2757
+ */
2758
+ export interface FindBookingPayload {
2759
+ /**
2760
+ * Start date for the events
2761
+ * @type {string}
2762
+ * @memberof FindBookingPayload
2763
+ */
2764
+ 'startDate': string;
2765
+ /**
2766
+ * End date for the events
2767
+ * @type {string}
2768
+ * @memberof FindBookingPayload
2769
+ */
2770
+ 'endDate': string;
2771
+ /**
2772
+ * View
2773
+ * @type {string}
2774
+ * @memberof FindBookingPayload
2775
+ */
2776
+ 'view': FindBookingPayloadViewEnum;
2777
+ /**
2778
+ * Staff Id
2779
+ * @type {Array<string>}
2780
+ * @memberof FindBookingPayload
2781
+ */
2782
+ 'staffs': Array<string>;
2783
+ /**
2784
+ *
2785
+ * @type {string}
2786
+ * @memberof FindBookingPayload
2787
+ */
2788
+ 'status': FindBookingPayloadStatusEnum;
2789
+ /**
2790
+ *
2791
+ * @type {number}
2792
+ * @memberof FindBookingPayload
2793
+ */
2794
+ 'page': number;
2795
+ /**
2796
+ *
2797
+ * @type {number}
2798
+ * @memberof FindBookingPayload
2799
+ */
2800
+ 'pageSize': number;
2801
+ /**
2802
+ *
2803
+ * @type {string}
2804
+ * @memberof FindBookingPayload
2805
+ */
2806
+ 'search'?: string;
2807
+ }
2808
+
2809
+ export const FindBookingPayloadViewEnum = {
2810
+ Daily: 'daily',
2811
+ Weekly: 'weekly',
2812
+ Monthly: 'monthly'
2813
+ } as const;
2814
+
2815
+ export type FindBookingPayloadViewEnum = typeof FindBookingPayloadViewEnum[keyof typeof FindBookingPayloadViewEnum];
2816
+ export const FindBookingPayloadStatusEnum = {
2817
+ Booking: 'BOOKING',
2818
+ Shared: 'SHARED',
2819
+ Invites: 'INVITES',
2820
+ Unconfirmed: 'UNCONFIRMED',
2821
+ Rescheduled: 'RESCHEDULED',
2822
+ Confirmed: 'CONFIRMED',
2823
+ CheckIn: 'CHECK_IN'
2824
+ } as const;
2825
+
2826
+ export type FindBookingPayloadStatusEnum = typeof FindBookingPayloadStatusEnum[keyof typeof FindBookingPayloadStatusEnum];
2827
+
2581
2828
  /**
2582
2829
  *
2583
2830
  * @export
@@ -7008,6 +7255,45 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
7008
7255
  options: localVarRequestOptions,
7009
7256
  };
7010
7257
  },
7258
+ /**
7259
+ *
7260
+ * @param {FindBookingPayload} findBookingPayload
7261
+ * @param {*} [options] Override http request option.
7262
+ * @throws {RequiredError}
7263
+ */
7264
+ bookingControllerListBookings: async (findBookingPayload: FindBookingPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7265
+ // verify required parameter 'findBookingPayload' is not null or undefined
7266
+ assertParamExists('bookingControllerListBookings', 'findBookingPayload', findBookingPayload)
7267
+ const localVarPath = `/v1/booking/list`;
7268
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7269
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7270
+ let baseOptions;
7271
+ if (configuration) {
7272
+ baseOptions = configuration.baseOptions;
7273
+ }
7274
+
7275
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7276
+ const localVarHeaderParameter = {} as any;
7277
+ const localVarQueryParameter = {} as any;
7278
+
7279
+ // authentication bearer required
7280
+ // http bearer authentication required
7281
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7282
+
7283
+
7284
+
7285
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7286
+
7287
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7288
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7289
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7290
+ localVarRequestOptions.data = serializeDataIfNeeded(findBookingPayload, localVarRequestOptions, configuration)
7291
+
7292
+ return {
7293
+ url: toPathString(localVarUrlObj),
7294
+ options: localVarRequestOptions,
7295
+ };
7296
+ },
7011
7297
  /**
7012
7298
  *
7013
7299
  * @param {RejectBookingInvitePayload} rejectBookingInvitePayload
@@ -7117,6 +7403,18 @@ export const BookingApiFp = function(configuration?: Configuration) {
7117
7403
  const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerLeaveBooking']?.[localVarOperationServerIndex]?.url;
7118
7404
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7119
7405
  },
7406
+ /**
7407
+ *
7408
+ * @param {FindBookingPayload} findBookingPayload
7409
+ * @param {*} [options] Override http request option.
7410
+ * @throws {RequiredError}
7411
+ */
7412
+ async bookingControllerListBookings(findBookingPayload: FindBookingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FIndBookingResponseDTO>> {
7413
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerListBookings(findBookingPayload, options);
7414
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7415
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerListBookings']?.[localVarOperationServerIndex]?.url;
7416
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7417
+ },
7120
7418
  /**
7121
7419
  *
7122
7420
  * @param {RejectBookingInvitePayload} rejectBookingInvitePayload
@@ -7184,6 +7482,15 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
7184
7482
  bookingControllerLeaveBooking(leaveBookingDTO: LeaveBookingDTO, options?: RawAxiosRequestConfig): AxiosPromise<LeaveBookingResponseDTO> {
7185
7483
  return localVarFp.bookingControllerLeaveBooking(leaveBookingDTO, options).then((request) => request(axios, basePath));
7186
7484
  },
7485
+ /**
7486
+ *
7487
+ * @param {FindBookingPayload} findBookingPayload
7488
+ * @param {*} [options] Override http request option.
7489
+ * @throws {RequiredError}
7490
+ */
7491
+ bookingControllerListBookings(findBookingPayload: FindBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<FIndBookingResponseDTO> {
7492
+ return localVarFp.bookingControllerListBookings(findBookingPayload, options).then((request) => request(axios, basePath));
7493
+ },
7187
7494
  /**
7188
7495
  *
7189
7496
  * @param {RejectBookingInvitePayload} rejectBookingInvitePayload
@@ -7258,6 +7565,17 @@ export class BookingApi extends BaseAPI {
7258
7565
  return BookingApiFp(this.configuration).bookingControllerLeaveBooking(leaveBookingDTO, options).then((request) => request(this.axios, this.basePath));
7259
7566
  }
7260
7567
 
7568
+ /**
7569
+ *
7570
+ * @param {FindBookingPayload} findBookingPayload
7571
+ * @param {*} [options] Override http request option.
7572
+ * @throws {RequiredError}
7573
+ * @memberof BookingApi
7574
+ */
7575
+ public bookingControllerListBookings(findBookingPayload: FindBookingPayload, options?: RawAxiosRequestConfig) {
7576
+ return BookingApiFp(this.configuration).bookingControllerListBookings(findBookingPayload, options).then((request) => request(this.axios, this.basePath));
7577
+ }
7578
+
7261
7579
  /**
7262
7580
  *
7263
7581
  * @param {RejectBookingInvitePayload} rejectBookingInvitePayload
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.34",
3
+ "version": "1.2.35",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},