@munchi_oy/core 1.9.89 → 1.9.90

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,12 +4180,6 @@ 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;
4189
4183
  /**
4190
4184
  *
4191
4185
  * @type {string}
@@ -4988,6 +4982,68 @@ export interface DiscoverTerminalDto {
4988
4982
  */
4989
4983
  'provider': PaymentProvider;
4990
4984
  }
4985
+ /**
4986
+ *
4987
+ * @export
4988
+ * @interface DispatchPosOrderDto
4989
+ */
4990
+ export interface DispatchPosOrderDto {
4991
+ /**
4992
+ * Ordering business id the POS order belongs to.
4993
+ * @type {number}
4994
+ * @memberof DispatchPosOrderDto
4995
+ */
4996
+ 'businessId': number;
4997
+ /**
4998
+ * Id of the POS order to fulfil.
4999
+ * @type {string}
5000
+ * @memberof DispatchPosOrderDto
5001
+ */
5002
+ 'orderId': string;
5003
+ }
5004
+ /**
5005
+ *
5006
+ * @export
5007
+ * @interface DispatchPosOrderResponseDto
5008
+ */
5009
+ export interface DispatchPosOrderResponseDto {
5010
+ /**
5011
+ *
5012
+ * @type {object}
5013
+ * @memberof DispatchPosOrderResponseDto
5014
+ */
5015
+ 'ticketId': object | null;
5016
+ /**
5017
+ *
5018
+ * @type {object}
5019
+ * @memberof DispatchPosOrderResponseDto
5020
+ */
5021
+ 'ticketOrderNumber': object | null;
5022
+ /**
5023
+ * Line items placed on the ticket by this call.
5024
+ * @type {number}
5025
+ * @memberof DispatchPosOrderResponseDto
5026
+ */
5027
+ 'ticketedLineItems': number;
5028
+ /**
5029
+ * Print jobs emitted for this fire.
5030
+ * @type {number}
5031
+ * @memberof DispatchPosOrderResponseDto
5032
+ */
5033
+ 'printJobs': number;
5034
+ /**
5035
+ * Whether the order reached its terminal state.
5036
+ * @type {boolean}
5037
+ * @memberof DispatchPosOrderResponseDto
5038
+ */
5039
+ 'orderCompleted': boolean;
5040
+ /**
5041
+ * Whether loyalty points were credited by this call.
5042
+ * @type {boolean}
5043
+ * @memberof DispatchPosOrderResponseDto
5044
+ */
5045
+ 'loyaltyCredited': boolean;
5046
+ }
4991
5047
  /**
4992
5048
  *
4993
5049
  * @export
@@ -19081,56 +19137,6 @@ export interface RequestSessionTokenResponseDto {
19081
19137
  */
19082
19138
  'sessionChannel': string;
19083
19139
  }
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
- }
19134
19140
  /**
19135
19141
  *
19136
19142
  * @export
@@ -21934,6 +21940,12 @@ export interface UnifiedOptionDto {
21934
21940
  * @interface UnifiedOrderResponseDto
21935
21941
  */
21936
21942
  export interface UnifiedOrderResponseDto {
21943
+ /**
21944
+ * Set on tickets whose lines are all configured not to show in Order Manager. The ticket stays in_progress so the kitchen screen still receives it; only Order Manager skips it. Absent on every document written before this field existed, which is treated as not hidden.
21945
+ * @type {boolean}
21946
+ * @memberof UnifiedOrderResponseDto
21947
+ */
21948
+ 'hiddenFromOrderManager'?: boolean;
21937
21949
  /**
21938
21950
  *
21939
21951
  * @type {OrderSource}
@@ -23296,12 +23308,6 @@ export interface UpdateReservationDto {
23296
23308
  * @memberof UpdateReservationDto
23297
23309
  */
23298
23310
  'guestPhone'?: string;
23299
- /**
23300
- *
23301
- * @type {string}
23302
- * @memberof UpdateReservationDto
23303
- */
23304
- 'guestEmail'?: string;
23305
23311
  /**
23306
23312
  *
23307
23313
  * @type {string}
@@ -33135,6 +33141,14 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
33135
33141
  * @throws {RequiredError}
33136
33142
  */
33137
33143
  deliverOrder: (deliveredOrderDto: DeliveredOrderDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33144
+ /**
33145
+ * Resolves the dispatch policy for every line, tickets the lines that have not been fired yet, and emits print, KDS and Order Manager work from a single plan. The order is completed only when it is fully paid, so a part-paid order stays parked and remains collectable. Already-fired lines are never re-ticketed, so calling this twice is safe.
33146
+ * @summary Ready & Send a POS order to the kitchen
33147
+ * @param {DispatchPosOrderDto} dispatchPosOrderDto
33148
+ * @param {*} [options] Override http request option.
33149
+ * @throws {RequiredError}
33150
+ */
33151
+ dispatchPosOrderV5: (dispatchPosOrderDto: DispatchPosOrderDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33138
33152
  /**
33139
33153
  *
33140
33154
  * @summary Get all orders across all statuses
@@ -33154,6 +33168,15 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
33154
33168
  * @throws {RequiredError}
33155
33169
  */
33156
33170
  getOrdersV2: (status: "pending" | "in_progress" | "ready" | "delivered" | "rejected" | "pick_up_by_driver" | "preorder" | "accept_by_driver" | "parked" | "refunded" | "draft", businessIds: string, posBusinessId?: string, extraProvider?: "Wolt" | "MunchiOnline" | "MunchiKiosk" | "MunchiPos" | "UberEats" | "Foodora" | "Bolt" | "MunchiKioskV2" | "Kiosk" | "WoltStorefront" | "Storefront", options?: AxiosRequestConfig) => Promise<RequestArgs>;
33171
+ /**
33172
+ * Identical to V2, except tickets flagged hiddenFromOrderManager are omitted. Those tickets stay in_progress so the kitchen screen still receives them; only Order Manager skips them.
33173
+ * @summary Get orders by status, excluding tickets hidden from Order Manager
33174
+ * @param {'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft'} status
33175
+ * @param {string} businessIds Comma-separated list of business IDs
33176
+ * @param {*} [options] Override http request option.
33177
+ * @throws {RequiredError}
33178
+ */
33179
+ getOrdersV3: (status: "pending" | "in_progress" | "ready" | "delivered" | "rejected" | "pick_up_by_driver" | "preorder" | "accept_by_driver" | "parked" | "refunded" | "draft", businessIds: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33157
33180
  /**
33158
33181
  *
33159
33182
  * @summary Get all Pos park order
@@ -33256,6 +33279,14 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
33256
33279
  * @throws {RequiredError}
33257
33280
  */
33258
33281
  deliverOrder(deliveredOrderDto: DeliveredOrderDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderStatusResponseDto>>;
33282
+ /**
33283
+ * Resolves the dispatch policy for every line, tickets the lines that have not been fired yet, and emits print, KDS and Order Manager work from a single plan. The order is completed only when it is fully paid, so a part-paid order stays parked and remains collectable. Already-fired lines are never re-ticketed, so calling this twice is safe.
33284
+ * @summary Ready & Send a POS order to the kitchen
33285
+ * @param {DispatchPosOrderDto} dispatchPosOrderDto
33286
+ * @param {*} [options] Override http request option.
33287
+ * @throws {RequiredError}
33288
+ */
33289
+ dispatchPosOrderV5(dispatchPosOrderDto: DispatchPosOrderDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DispatchPosOrderResponseDto>>;
33259
33290
  /**
33260
33291
  *
33261
33292
  * @summary Get all orders across all statuses
@@ -33275,6 +33306,15 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
33275
33306
  * @throws {RequiredError}
33276
33307
  */
33277
33308
  getOrdersV2(status: "pending" | "in_progress" | "ready" | "delivered" | "rejected" | "pick_up_by_driver" | "preorder" | "accept_by_driver" | "parked" | "refunded" | "draft", businessIds: string, posBusinessId?: string, extraProvider?: "Wolt" | "MunchiOnline" | "MunchiKiosk" | "MunchiPos" | "UberEats" | "Foodora" | "Bolt" | "MunchiKioskV2" | "Kiosk" | "WoltStorefront" | "Storefront", options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UnifiedOrderResponseDto>>>;
33309
+ /**
33310
+ * Identical to V2, except tickets flagged hiddenFromOrderManager are omitted. Those tickets stay in_progress so the kitchen screen still receives them; only Order Manager skips them.
33311
+ * @summary Get orders by status, excluding tickets hidden from Order Manager
33312
+ * @param {'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft'} status
33313
+ * @param {string} businessIds Comma-separated list of business IDs
33314
+ * @param {*} [options] Override http request option.
33315
+ * @throws {RequiredError}
33316
+ */
33317
+ getOrdersV3(status: "pending" | "in_progress" | "ready" | "delivered" | "rejected" | "pick_up_by_driver" | "preorder" | "accept_by_driver" | "parked" | "refunded" | "draft", businessIds: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
33278
33318
  /**
33279
33319
  *
33280
33320
  * @summary Get all Pos park order
@@ -33377,6 +33417,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
33377
33417
  * @throws {RequiredError}
33378
33418
  */
33379
33419
  deliverOrder(deliveredOrderDto: DeliveredOrderDto, options?: any): AxiosPromise<OrderStatusResponseDto>;
33420
+ /**
33421
+ * Resolves the dispatch policy for every line, tickets the lines that have not been fired yet, and emits print, KDS and Order Manager work from a single plan. The order is completed only when it is fully paid, so a part-paid order stays parked and remains collectable. Already-fired lines are never re-ticketed, so calling this twice is safe.
33422
+ * @summary Ready & Send a POS order to the kitchen
33423
+ * @param {DispatchPosOrderDto} dispatchPosOrderDto
33424
+ * @param {*} [options] Override http request option.
33425
+ * @throws {RequiredError}
33426
+ */
33427
+ dispatchPosOrderV5(dispatchPosOrderDto: DispatchPosOrderDto, options?: any): AxiosPromise<DispatchPosOrderResponseDto>;
33380
33428
  /**
33381
33429
  *
33382
33430
  * @summary Get all orders across all statuses
@@ -33396,6 +33444,15 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
33396
33444
  * @throws {RequiredError}
33397
33445
  */
33398
33446
  getOrdersV2(status: "pending" | "in_progress" | "ready" | "delivered" | "rejected" | "pick_up_by_driver" | "preorder" | "accept_by_driver" | "parked" | "refunded" | "draft", businessIds: string, posBusinessId?: string, extraProvider?: "Wolt" | "MunchiOnline" | "MunchiKiosk" | "MunchiPos" | "UberEats" | "Foodora" | "Bolt" | "MunchiKioskV2" | "Kiosk" | "WoltStorefront" | "Storefront", options?: any): AxiosPromise<Array<UnifiedOrderResponseDto>>;
33447
+ /**
33448
+ * Identical to V2, except tickets flagged hiddenFromOrderManager are omitted. Those tickets stay in_progress so the kitchen screen still receives them; only Order Manager skips them.
33449
+ * @summary Get orders by status, excluding tickets hidden from Order Manager
33450
+ * @param {'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft'} status
33451
+ * @param {string} businessIds Comma-separated list of business IDs
33452
+ * @param {*} [options] Override http request option.
33453
+ * @throws {RequiredError}
33454
+ */
33455
+ getOrdersV3(status: "pending" | "in_progress" | "ready" | "delivered" | "rejected" | "pick_up_by_driver" | "preorder" | "accept_by_driver" | "parked" | "refunded" | "draft", businessIds: string, options?: any): AxiosPromise<void>;
33399
33456
  /**
33400
33457
  *
33401
33458
  * @summary Get all Pos park order
@@ -33503,6 +33560,15 @@ export interface OrdersApiInterface {
33503
33560
  * @memberof OrdersApiInterface
33504
33561
  */
33505
33562
  deliverOrder(deliveredOrderDto: DeliveredOrderDto, options?: AxiosRequestConfig): AxiosPromise<OrderStatusResponseDto>;
33563
+ /**
33564
+ * Resolves the dispatch policy for every line, tickets the lines that have not been fired yet, and emits print, KDS and Order Manager work from a single plan. The order is completed only when it is fully paid, so a part-paid order stays parked and remains collectable. Already-fired lines are never re-ticketed, so calling this twice is safe.
33565
+ * @summary Ready & Send a POS order to the kitchen
33566
+ * @param {DispatchPosOrderDto} dispatchPosOrderDto
33567
+ * @param {*} [options] Override http request option.
33568
+ * @throws {RequiredError}
33569
+ * @memberof OrdersApiInterface
33570
+ */
33571
+ dispatchPosOrderV5(dispatchPosOrderDto: DispatchPosOrderDto, options?: AxiosRequestConfig): AxiosPromise<DispatchPosOrderResponseDto>;
33506
33572
  /**
33507
33573
  *
33508
33574
  * @summary Get all orders across all statuses
@@ -33524,6 +33590,16 @@ export interface OrdersApiInterface {
33524
33590
  * @memberof OrdersApiInterface
33525
33591
  */
33526
33592
  getOrdersV2(status: 'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft', businessIds: string, posBusinessId?: string, extraProvider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: AxiosRequestConfig): AxiosPromise<Array<UnifiedOrderResponseDto>>;
33593
+ /**
33594
+ * Identical to V2, except tickets flagged hiddenFromOrderManager are omitted. Those tickets stay in_progress so the kitchen screen still receives them; only Order Manager skips them.
33595
+ * @summary Get orders by status, excluding tickets hidden from Order Manager
33596
+ * @param {'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft'} status
33597
+ * @param {string} businessIds Comma-separated list of business IDs
33598
+ * @param {*} [options] Override http request option.
33599
+ * @throws {RequiredError}
33600
+ * @memberof OrdersApiInterface
33601
+ */
33602
+ getOrdersV3(status: 'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft', businessIds: string, options?: AxiosRequestConfig): AxiosPromise<void>;
33527
33603
  /**
33528
33604
  *
33529
33605
  * @summary Get all Pos park order
@@ -33640,6 +33716,15 @@ export declare class OrdersApi extends BaseAPI implements OrdersApiInterface {
33640
33716
  * @memberof OrdersApi
33641
33717
  */
33642
33718
  deliverOrder(deliveredOrderDto: DeliveredOrderDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderStatusResponseDto, any, {}>>;
33719
+ /**
33720
+ * Resolves the dispatch policy for every line, tickets the lines that have not been fired yet, and emits print, KDS and Order Manager work from a single plan. The order is completed only when it is fully paid, so a part-paid order stays parked and remains collectable. Already-fired lines are never re-ticketed, so calling this twice is safe.
33721
+ * @summary Ready & Send a POS order to the kitchen
33722
+ * @param {DispatchPosOrderDto} dispatchPosOrderDto
33723
+ * @param {*} [options] Override http request option.
33724
+ * @throws {RequiredError}
33725
+ * @memberof OrdersApi
33726
+ */
33727
+ dispatchPosOrderV5(dispatchPosOrderDto: DispatchPosOrderDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DispatchPosOrderResponseDto, any, {}>>;
33643
33728
  /**
33644
33729
  *
33645
33730
  * @summary Get all orders across all statuses
@@ -33661,6 +33746,16 @@ export declare class OrdersApi extends BaseAPI implements OrdersApiInterface {
33661
33746
  * @memberof OrdersApi
33662
33747
  */
33663
33748
  getOrdersV2(status: 'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft', businessIds: string, posBusinessId?: string, extraProvider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnifiedOrderResponseDto[], any, {}>>;
33749
+ /**
33750
+ * Identical to V2, except tickets flagged hiddenFromOrderManager are omitted. Those tickets stay in_progress so the kitchen screen still receives them; only Order Manager skips them.
33751
+ * @summary Get orders by status, excluding tickets hidden from Order Manager
33752
+ * @param {'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft'} status
33753
+ * @param {string} businessIds Comma-separated list of business IDs
33754
+ * @param {*} [options] Override http request option.
33755
+ * @throws {RequiredError}
33756
+ * @memberof OrdersApi
33757
+ */
33758
+ getOrdersV3(status: 'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft', businessIds: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
33664
33759
  /**
33665
33760
  *
33666
33761
  * @summary Get all Pos park order
@@ -37446,7 +37541,7 @@ export declare const ReservationsApiFp: (configuration?: Configuration) => {
37446
37541
  * @param {*} [options] Override http request option.
37447
37542
  * @throws {RequiredError}
37448
37543
  */
37449
- getReservationAvailability(businessId: number, date: string, partySize: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReservationAvailabilityResponseDto>>;
37544
+ getReservationAvailability(businessId: number, date: string, partySize: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
37450
37545
  /**
37451
37546
  *
37452
37547
  * @summary Get the reservation policy
@@ -37540,7 +37635,7 @@ export declare const ReservationsApiFactory: (configuration?: Configuration, bas
37540
37635
  * @param {*} [options] Override http request option.
37541
37636
  * @throws {RequiredError}
37542
37637
  */
37543
- getReservationAvailability(businessId: number, date: string, partySize: number, options?: any): AxiosPromise<ReservationAvailabilityResponseDto>;
37638
+ getReservationAvailability(businessId: number, date: string, partySize: number, options?: any): AxiosPromise<void>;
37544
37639
  /**
37545
37640
  *
37546
37641
  * @summary Get the reservation policy
@@ -37637,7 +37732,7 @@ export interface ReservationsApiInterface {
37637
37732
  * @throws {RequiredError}
37638
37733
  * @memberof ReservationsApiInterface
37639
37734
  */
37640
- getReservationAvailability(businessId: number, date: string, partySize: number, options?: AxiosRequestConfig): AxiosPromise<ReservationAvailabilityResponseDto>;
37735
+ getReservationAvailability(businessId: number, date: string, partySize: number, options?: AxiosRequestConfig): AxiosPromise<void>;
37641
37736
  /**
37642
37737
  *
37643
37738
  * @summary Get the reservation policy
@@ -37743,7 +37838,7 @@ export declare class ReservationsApi extends BaseAPI implements ReservationsApiI
37743
37838
  * @throws {RequiredError}
37744
37839
  * @memberof ReservationsApi
37745
37840
  */
37746
- getReservationAvailability(businessId: number, date: string, partySize: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ReservationAvailabilityResponseDto, any, {}>>;
37841
+ getReservationAvailability(businessId: number, date: string, partySize: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
37747
37842
  /**
37748
37843
  *
37749
37844
  * @summary Get the reservation policy