@posx/core 5.5.182 → 5.5.184
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/build/index.d.ts +36 -1
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1794,6 +1794,10 @@ declare module '@posx/core/test/services/payment/cash-payment-test/cash-payment.
|
|
|
1794
1794
|
declare module '@posx/core/test/services/report/item-sales-report-test/item-sales-report.test' {
|
|
1795
1795
|
export {};
|
|
1796
1796
|
|
|
1797
|
+
}
|
|
1798
|
+
declare module '@posx/core/test/services/report/modifier-sales-report-test/modifier-sales-report.test' {
|
|
1799
|
+
export {};
|
|
1800
|
+
|
|
1797
1801
|
}
|
|
1798
1802
|
declare module '@posx/core/test/services/tax/tax-exempt-test/tax-exempt.test' {
|
|
1799
1803
|
export {};
|
|
@@ -2011,7 +2015,7 @@ declare module '@posx/core/types/condition.type' {
|
|
|
2011
2015
|
}
|
|
2012
2016
|
declare module '@posx/core/types/config.type' {
|
|
2013
2017
|
import { AppCoreModel, IAppCoreModel } from '@posx/core/types/abstract.type';
|
|
2014
|
-
import { TaxMethod } from '@posx/core/types/invoice.type';
|
|
2018
|
+
import { OrderFlow, TaxMethod } from '@posx/core/types/invoice.type';
|
|
2015
2019
|
export interface IAppConfig extends IAppCoreModel {
|
|
2016
2020
|
config: IConfig;
|
|
2017
2021
|
cache: ICache;
|
|
@@ -2183,15 +2187,26 @@ declare module '@posx/core/types/config.type' {
|
|
|
2183
2187
|
loyalty_program: LoyaltyProgram;
|
|
2184
2188
|
constructor();
|
|
2185
2189
|
}
|
|
2190
|
+
export type TDynamicOrderQR = {
|
|
2191
|
+
default_order_flow: OrderFlow;
|
|
2192
|
+
select_order_flow: boolean;
|
|
2193
|
+
select_menus: boolean;
|
|
2194
|
+
};
|
|
2186
2195
|
export interface IOnlineOrderConfig {
|
|
2187
2196
|
enable_membership: boolean;
|
|
2188
2197
|
login_call_to_action_text: string;
|
|
2189
2198
|
menu_banner_image_url: string;
|
|
2199
|
+
dynamic_order_qr_: TDynamicOrderQR;
|
|
2190
2200
|
}
|
|
2191
2201
|
export class OnlineOrderConfig implements IOnlineOrderConfig {
|
|
2192
2202
|
enable_membership: boolean;
|
|
2193
2203
|
login_call_to_action_text: string;
|
|
2194
2204
|
menu_banner_image_url: string;
|
|
2205
|
+
dynamic_order_qr_: {
|
|
2206
|
+
default_order_flow: OrderFlow;
|
|
2207
|
+
select_order_flow: boolean;
|
|
2208
|
+
select_menus: boolean;
|
|
2209
|
+
};
|
|
2195
2210
|
constructor();
|
|
2196
2211
|
}
|
|
2197
2212
|
export interface IGeneralConfig {
|
|
@@ -2650,6 +2665,10 @@ declare module '@posx/core/types/invoice.type' {
|
|
|
2650
2665
|
TakeOut = "take_out",
|
|
2651
2666
|
Delivery = "delivery"
|
|
2652
2667
|
}
|
|
2668
|
+
export enum OrderFlow {
|
|
2669
|
+
PayToOrder = "pay_to_order",
|
|
2670
|
+
OrderFirstAndPayLater = "order_first_and_pay_later"
|
|
2671
|
+
}
|
|
2653
2672
|
export enum TaxMethod {
|
|
2654
2673
|
Inclusive = "inclusive",
|
|
2655
2674
|
Exclusive = "exclusive"
|
|
@@ -4402,6 +4421,9 @@ declare module '@posx/core/types/report.type' {
|
|
|
4402
4421
|
item_sales_summary: TItemSalesSummary[];
|
|
4403
4422
|
item_sales_summary_total: number;
|
|
4404
4423
|
item_sales_summary_total_count: number;
|
|
4424
|
+
modifier_sales_summary: TModifierSalesSummary[];
|
|
4425
|
+
modifier_sales_summary_total: number;
|
|
4426
|
+
modifier_sales_summary_total_count: number;
|
|
4405
4427
|
config: IConfig;
|
|
4406
4428
|
};
|
|
4407
4429
|
export class ReportData implements IReportData {
|
|
@@ -4417,6 +4439,9 @@ declare module '@posx/core/types/report.type' {
|
|
|
4417
4439
|
item_sales_summary: ItemSalesSummary[];
|
|
4418
4440
|
item_sales_summary_total: number;
|
|
4419
4441
|
item_sales_summary_total_count: number;
|
|
4442
|
+
modifier_sales_summary: ModifierSalesSummary[];
|
|
4443
|
+
modifier_sales_summary_total: number;
|
|
4444
|
+
modifier_sales_summary_total_count: number;
|
|
4420
4445
|
config: IConfig;
|
|
4421
4446
|
}
|
|
4422
4447
|
export type ISalesSummary = {
|
|
@@ -4527,6 +4552,16 @@ declare module '@posx/core/types/report.type' {
|
|
|
4527
4552
|
total_amount: number;
|
|
4528
4553
|
modifiers: TItemCoreSalesSummary[];
|
|
4529
4554
|
}
|
|
4555
|
+
export type TModifierSalesSummary = {
|
|
4556
|
+
item: IItem;
|
|
4557
|
+
quantity: number;
|
|
4558
|
+
total_amount: number;
|
|
4559
|
+
};
|
|
4560
|
+
export class ModifierSalesSummary implements TModifierSalesSummary {
|
|
4561
|
+
item: IItem;
|
|
4562
|
+
quantity: number;
|
|
4563
|
+
total_amount: number;
|
|
4564
|
+
}
|
|
4530
4565
|
|
|
4531
4566
|
}
|
|
4532
4567
|
declare module '@posx/core/types/request.type' {
|