@munchi_oy/core 1.9.87 → 1.9.89

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.
@@ -4180,6 +4180,12 @@ export interface CreateReservationDto {
4180
4180
  * @memberof CreateReservationDto
4181
4181
  */
4182
4182
  'guestPhone'?: string;
4183
+ /**
4184
+ *
4185
+ * @type {string}
4186
+ * @memberof CreateReservationDto
4187
+ */
4188
+ 'guestEmail'?: string;
4183
4189
  /**
4184
4190
  *
4185
4191
  * @type {string}
@@ -19075,6 +19081,56 @@ export interface RequestSessionTokenResponseDto {
19075
19081
  */
19076
19082
  'sessionChannel': string;
19077
19083
  }
19084
+ /**
19085
+ *
19086
+ * @export
19087
+ * @interface ReservationAvailabilityResponseDto
19088
+ */
19089
+ export interface ReservationAvailabilityResponseDto {
19090
+ /**
19091
+ *
19092
+ * @type {string}
19093
+ * @memberof ReservationAvailabilityResponseDto
19094
+ */
19095
+ 'date': string;
19096
+ /**
19097
+ *
19098
+ * @type {string}
19099
+ * @memberof ReservationAvailabilityResponseDto
19100
+ */
19101
+ 'timezone': string;
19102
+ /**
19103
+ *
19104
+ * @type {number}
19105
+ * @memberof ReservationAvailabilityResponseDto
19106
+ */
19107
+ 'turnTimeMins': number;
19108
+ /**
19109
+ *
19110
+ * @type {Array<ReservationAvailabilitySlotDto>}
19111
+ * @memberof ReservationAvailabilityResponseDto
19112
+ */
19113
+ 'slots': Array<ReservationAvailabilitySlotDto>;
19114
+ }
19115
+ /**
19116
+ *
19117
+ * @export
19118
+ * @interface ReservationAvailabilitySlotDto
19119
+ */
19120
+ export interface ReservationAvailabilitySlotDto {
19121
+ /**
19122
+ *
19123
+ * @type {string}
19124
+ * @memberof ReservationAvailabilitySlotDto
19125
+ */
19126
+ 'time': string;
19127
+ /**
19128
+ *
19129
+ * @type {number}
19130
+ * @memberof ReservationAvailabilitySlotDto
19131
+ */
19132
+ 'availableTables': number;
19133
+ }
19078
19134
  /**
19079
19135
  *
19080
19136
  * @export
@@ -23240,6 +23296,12 @@ export interface UpdateReservationDto {
23240
23296
  * @memberof UpdateReservationDto
23241
23297
  */
23242
23298
  'guestPhone'?: string;
23299
+ /**
23300
+ *
23301
+ * @type {string}
23302
+ * @memberof UpdateReservationDto
23303
+ */
23304
+ 'guestEmail'?: string;
23243
23305
  /**
23244
23306
  *
23245
23307
  * @type {string}
@@ -37312,11 +37374,11 @@ export declare const ReservationsApiAxiosParamCreator: (configuration?: Configur
37312
37374
  * @summary List reservations for a business
37313
37375
  * @param {number} businessId
37314
37376
  * @param {string} [date]
37315
- * @param {'REQUESTED' | 'CONFIRMED' | 'WAITLIST' | 'SEATED' | 'NO_SHOW' | 'COMPLETED' | 'CANCELLED'} [status]
37377
+ * @param {ReservationStatus} [status]
37316
37378
  * @param {*} [options] Override http request option.
37317
37379
  * @throws {RequiredError}
37318
37380
  */
37319
- listReservations: (businessId: number, date?: string, status?: "REQUESTED" | "CONFIRMED" | "WAITLIST" | "SEATED" | "NO_SHOW" | "COMPLETED" | "CANCELLED", options?: AxiosRequestConfig) => Promise<RequestArgs>;
37381
+ listReservations: (businessId: number, date?: string, status?: ReservationStatus, options?: AxiosRequestConfig) => Promise<RequestArgs>;
37320
37382
  /**
37321
37383
  *
37322
37384
  * @summary Receive a booking event from the provider
@@ -37384,7 +37446,7 @@ export declare const ReservationsApiFp: (configuration?: Configuration) => {
37384
37446
  * @param {*} [options] Override http request option.
37385
37447
  * @throws {RequiredError}
37386
37448
  */
37387
- getReservationAvailability(businessId: number, date: string, partySize: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
37449
+ getReservationAvailability(businessId: number, date: string, partySize: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReservationAvailabilityResponseDto>>;
37388
37450
  /**
37389
37451
  *
37390
37452
  * @summary Get the reservation policy
@@ -37406,11 +37468,11 @@ export declare const ReservationsApiFp: (configuration?: Configuration) => {
37406
37468
  * @summary List reservations for a business
37407
37469
  * @param {number} businessId
37408
37470
  * @param {string} [date]
37409
- * @param {'REQUESTED' | 'CONFIRMED' | 'WAITLIST' | 'SEATED' | 'NO_SHOW' | 'COMPLETED' | 'CANCELLED'} [status]
37471
+ * @param {ReservationStatus} [status]
37410
37472
  * @param {*} [options] Override http request option.
37411
37473
  * @throws {RequiredError}
37412
37474
  */
37413
- listReservations(businessId: number, date?: string, status?: "REQUESTED" | "CONFIRMED" | "WAITLIST" | "SEATED" | "NO_SHOW" | "COMPLETED" | "CANCELLED", options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReservationResponseDto>>>;
37475
+ listReservations(businessId: number, date?: string, status?: ReservationStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReservationResponseDto>>>;
37414
37476
  /**
37415
37477
  *
37416
37478
  * @summary Receive a booking event from the provider
@@ -37478,7 +37540,7 @@ export declare const ReservationsApiFactory: (configuration?: Configuration, bas
37478
37540
  * @param {*} [options] Override http request option.
37479
37541
  * @throws {RequiredError}
37480
37542
  */
37481
- getReservationAvailability(businessId: number, date: string, partySize: number, options?: any): AxiosPromise<void>;
37543
+ getReservationAvailability(businessId: number, date: string, partySize: number, options?: any): AxiosPromise<ReservationAvailabilityResponseDto>;
37482
37544
  /**
37483
37545
  *
37484
37546
  * @summary Get the reservation policy
@@ -37500,11 +37562,11 @@ export declare const ReservationsApiFactory: (configuration?: Configuration, bas
37500
37562
  * @summary List reservations for a business
37501
37563
  * @param {number} businessId
37502
37564
  * @param {string} [date]
37503
- * @param {'REQUESTED' | 'CONFIRMED' | 'WAITLIST' | 'SEATED' | 'NO_SHOW' | 'COMPLETED' | 'CANCELLED'} [status]
37565
+ * @param {ReservationStatus} [status]
37504
37566
  * @param {*} [options] Override http request option.
37505
37567
  * @throws {RequiredError}
37506
37568
  */
37507
- listReservations(businessId: number, date?: string, status?: "REQUESTED" | "CONFIRMED" | "WAITLIST" | "SEATED" | "NO_SHOW" | "COMPLETED" | "CANCELLED", options?: any): AxiosPromise<Array<ReservationResponseDto>>;
37569
+ listReservations(businessId: number, date?: string, status?: ReservationStatus, options?: any): AxiosPromise<Array<ReservationResponseDto>>;
37508
37570
  /**
37509
37571
  *
37510
37572
  * @summary Receive a booking event from the provider
@@ -37575,7 +37637,7 @@ export interface ReservationsApiInterface {
37575
37637
  * @throws {RequiredError}
37576
37638
  * @memberof ReservationsApiInterface
37577
37639
  */
37578
- getReservationAvailability(businessId: number, date: string, partySize: number, options?: AxiosRequestConfig): AxiosPromise<void>;
37640
+ getReservationAvailability(businessId: number, date: string, partySize: number, options?: AxiosRequestConfig): AxiosPromise<ReservationAvailabilityResponseDto>;
37579
37641
  /**
37580
37642
  *
37581
37643
  * @summary Get the reservation policy
@@ -37599,12 +37661,12 @@ export interface ReservationsApiInterface {
37599
37661
  * @summary List reservations for a business
37600
37662
  * @param {number} businessId
37601
37663
  * @param {string} [date]
37602
- * @param {'REQUESTED' | 'CONFIRMED' | 'WAITLIST' | 'SEATED' | 'NO_SHOW' | 'COMPLETED' | 'CANCELLED'} [status]
37664
+ * @param {ReservationStatus} [status]
37603
37665
  * @param {*} [options] Override http request option.
37604
37666
  * @throws {RequiredError}
37605
37667
  * @memberof ReservationsApiInterface
37606
37668
  */
37607
- listReservations(businessId: number, date?: string, status?: 'REQUESTED' | 'CONFIRMED' | 'WAITLIST' | 'SEATED' | 'NO_SHOW' | 'COMPLETED' | 'CANCELLED', options?: AxiosRequestConfig): AxiosPromise<Array<ReservationResponseDto>>;
37669
+ listReservations(businessId: number, date?: string, status?: ReservationStatus, options?: AxiosRequestConfig): AxiosPromise<Array<ReservationResponseDto>>;
37608
37670
  /**
37609
37671
  *
37610
37672
  * @summary Receive a booking event from the provider
@@ -37681,7 +37743,7 @@ export declare class ReservationsApi extends BaseAPI implements ReservationsApiI
37681
37743
  * @throws {RequiredError}
37682
37744
  * @memberof ReservationsApi
37683
37745
  */
37684
- getReservationAvailability(businessId: number, date: string, partySize: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
37746
+ getReservationAvailability(businessId: number, date: string, partySize: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ReservationAvailabilityResponseDto, any, {}>>;
37685
37747
  /**
37686
37748
  *
37687
37749
  * @summary Get the reservation policy
@@ -37705,12 +37767,12 @@ export declare class ReservationsApi extends BaseAPI implements ReservationsApiI
37705
37767
  * @summary List reservations for a business
37706
37768
  * @param {number} businessId
37707
37769
  * @param {string} [date]
37708
- * @param {'REQUESTED' | 'CONFIRMED' | 'WAITLIST' | 'SEATED' | 'NO_SHOW' | 'COMPLETED' | 'CANCELLED'} [status]
37770
+ * @param {ReservationStatus} [status]
37709
37771
  * @param {*} [options] Override http request option.
37710
37772
  * @throws {RequiredError}
37711
37773
  * @memberof ReservationsApi
37712
37774
  */
37713
- listReservations(businessId: number, date?: string, status?: 'REQUESTED' | 'CONFIRMED' | 'WAITLIST' | 'SEATED' | 'NO_SHOW' | 'COMPLETED' | 'CANCELLED', options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ReservationResponseDto[], any, {}>>;
37775
+ listReservations(businessId: number, date?: string, status?: ReservationStatus, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ReservationResponseDto[], any, {}>>;
37714
37776
  /**
37715
37777
  *
37716
37778
  * @summary Receive a booking event from the provider