@munchi_oy/core 1.9.88 → 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.
- package/dist/generated/api.d.ts +157 -12
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +235 -12
- package/package.json +13 -15
- package/src/version.ts +1 -1
package/dist/generated/api.d.ts
CHANGED
|
@@ -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
|
|
@@ -21884,6 +21940,12 @@ export interface UnifiedOptionDto {
|
|
|
21884
21940
|
* @interface UnifiedOrderResponseDto
|
|
21885
21941
|
*/
|
|
21886
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;
|
|
21887
21949
|
/**
|
|
21888
21950
|
*
|
|
21889
21951
|
* @type {OrderSource}
|
|
@@ -23246,12 +23308,6 @@ export interface UpdateReservationDto {
|
|
|
23246
23308
|
* @memberof UpdateReservationDto
|
|
23247
23309
|
*/
|
|
23248
23310
|
'guestPhone'?: string;
|
|
23249
|
-
/**
|
|
23250
|
-
*
|
|
23251
|
-
* @type {string}
|
|
23252
|
-
* @memberof UpdateReservationDto
|
|
23253
|
-
*/
|
|
23254
|
-
'guestEmail'?: string;
|
|
23255
23311
|
/**
|
|
23256
23312
|
*
|
|
23257
23313
|
* @type {string}
|
|
@@ -33085,6 +33141,14 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
33085
33141
|
* @throws {RequiredError}
|
|
33086
33142
|
*/
|
|
33087
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>;
|
|
33088
33152
|
/**
|
|
33089
33153
|
*
|
|
33090
33154
|
* @summary Get all orders across all statuses
|
|
@@ -33104,6 +33168,15 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
33104
33168
|
* @throws {RequiredError}
|
|
33105
33169
|
*/
|
|
33106
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>;
|
|
33107
33180
|
/**
|
|
33108
33181
|
*
|
|
33109
33182
|
* @summary Get all Pos park order
|
|
@@ -33206,6 +33279,14 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
33206
33279
|
* @throws {RequiredError}
|
|
33207
33280
|
*/
|
|
33208
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>>;
|
|
33209
33290
|
/**
|
|
33210
33291
|
*
|
|
33211
33292
|
* @summary Get all orders across all statuses
|
|
@@ -33225,6 +33306,15 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
33225
33306
|
* @throws {RequiredError}
|
|
33226
33307
|
*/
|
|
33227
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>>;
|
|
33228
33318
|
/**
|
|
33229
33319
|
*
|
|
33230
33320
|
* @summary Get all Pos park order
|
|
@@ -33327,6 +33417,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
33327
33417
|
* @throws {RequiredError}
|
|
33328
33418
|
*/
|
|
33329
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>;
|
|
33330
33428
|
/**
|
|
33331
33429
|
*
|
|
33332
33430
|
* @summary Get all orders across all statuses
|
|
@@ -33346,6 +33444,15 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
33346
33444
|
* @throws {RequiredError}
|
|
33347
33445
|
*/
|
|
33348
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>;
|
|
33349
33456
|
/**
|
|
33350
33457
|
*
|
|
33351
33458
|
* @summary Get all Pos park order
|
|
@@ -33453,6 +33560,15 @@ export interface OrdersApiInterface {
|
|
|
33453
33560
|
* @memberof OrdersApiInterface
|
|
33454
33561
|
*/
|
|
33455
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>;
|
|
33456
33572
|
/**
|
|
33457
33573
|
*
|
|
33458
33574
|
* @summary Get all orders across all statuses
|
|
@@ -33474,6 +33590,16 @@ export interface OrdersApiInterface {
|
|
|
33474
33590
|
* @memberof OrdersApiInterface
|
|
33475
33591
|
*/
|
|
33476
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>;
|
|
33477
33603
|
/**
|
|
33478
33604
|
*
|
|
33479
33605
|
* @summary Get all Pos park order
|
|
@@ -33590,6 +33716,15 @@ export declare class OrdersApi extends BaseAPI implements OrdersApiInterface {
|
|
|
33590
33716
|
* @memberof OrdersApi
|
|
33591
33717
|
*/
|
|
33592
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, {}>>;
|
|
33593
33728
|
/**
|
|
33594
33729
|
*
|
|
33595
33730
|
* @summary Get all orders across all statuses
|
|
@@ -33611,6 +33746,16 @@ export declare class OrdersApi extends BaseAPI implements OrdersApiInterface {
|
|
|
33611
33746
|
* @memberof OrdersApi
|
|
33612
33747
|
*/
|
|
33613
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, {}>>;
|
|
33614
33759
|
/**
|
|
33615
33760
|
*
|
|
33616
33761
|
* @summary Get all Pos park order
|