@orderingstack/ordering-types 1.32.0 → 1.33.0
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/cjs/index.d.ts +23 -1
- package/dist/esm/index.d.ts +23 -1
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -199,6 +199,7 @@ export interface IProduct {
|
|
|
199
199
|
literals?: TLiterals;
|
|
200
200
|
media?: TMedia[];
|
|
201
201
|
};
|
|
202
|
+
drs?: string;
|
|
202
203
|
price?: string;
|
|
203
204
|
minPrice?: string;
|
|
204
205
|
quantity?: string;
|
|
@@ -371,6 +372,13 @@ export interface IOrder {
|
|
|
371
372
|
verified?: boolean;
|
|
372
373
|
closed?: boolean;
|
|
373
374
|
variant?: TestVariant;
|
|
375
|
+
drsSummary?: [
|
|
376
|
+
{
|
|
377
|
+
deposit: string;
|
|
378
|
+
count: number;
|
|
379
|
+
confirmed: boolean;
|
|
380
|
+
}
|
|
381
|
+
];
|
|
374
382
|
}
|
|
375
383
|
export interface IOrderCoupon {
|
|
376
384
|
coupon: string;
|
|
@@ -527,6 +535,10 @@ export interface IOrderLine {
|
|
|
527
535
|
created: string;
|
|
528
536
|
creator?: string;
|
|
529
537
|
discounts?: IDiscount[];
|
|
538
|
+
drsSummary?: Array<{
|
|
539
|
+
deposit: string;
|
|
540
|
+
count: number;
|
|
541
|
+
}>;
|
|
530
542
|
extra?: IStringKeyRecord<string>;
|
|
531
543
|
hash: string;
|
|
532
544
|
id: string;
|
|
@@ -562,6 +574,7 @@ export interface IOrderProduct {
|
|
|
562
574
|
img?: string;
|
|
563
575
|
quantity: string;
|
|
564
576
|
price: string;
|
|
577
|
+
drs?: string;
|
|
565
578
|
vat?: string;
|
|
566
579
|
extra?: IProductExtra;
|
|
567
580
|
}
|
|
@@ -646,6 +659,12 @@ export interface IFiscalData {
|
|
|
646
659
|
entries: IFiscalEntry[];
|
|
647
660
|
payments: Partial<Record<EOrderPaymentType, string>>;
|
|
648
661
|
timestamp: string;
|
|
662
|
+
drsSummary?: [
|
|
663
|
+
{
|
|
664
|
+
deposit: string;
|
|
665
|
+
count: number;
|
|
666
|
+
}
|
|
667
|
+
];
|
|
649
668
|
}
|
|
650
669
|
/**
|
|
651
670
|
* @interface IFiscalizeData
|
|
@@ -728,8 +747,11 @@ export interface ISteeringCommand {
|
|
|
728
747
|
}
|
|
729
748
|
export declare const modules: readonly ["POS_INTEGRATOR", "KIOSK", "BI_CONNECTOR", "AGGREGATOR", "KDS", "STATUS_SCREEN", "LOYALTY_INTEGRATOR", "LOYALTY", "MOBILE_APP_LOYALTY", "ORDERING_WEB", "DELIVERY_PANEL"];
|
|
730
749
|
export type TModuleType = (typeof modules)[number];
|
|
731
|
-
|
|
750
|
+
type VariantsConfig = (Partial<Record<`variantRatio_${TestVariant}`, number>> & Partial<Record<`KIOSK_MEDIA_3_cmsId_variant_${TestVariant}`, 'string'>>);
|
|
751
|
+
interface IModuleConfig extends VariantsConfig {
|
|
732
752
|
abTestingEnabled?: boolean;
|
|
753
|
+
KIOSK_MEDIA_2_cmsId?: string;
|
|
754
|
+
KIOSK_MEDIA_3_cmsId?: string;
|
|
733
755
|
[key: string]: any;
|
|
734
756
|
}
|
|
735
757
|
export interface IModule {
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -199,6 +199,7 @@ export interface IProduct {
|
|
|
199
199
|
literals?: TLiterals;
|
|
200
200
|
media?: TMedia[];
|
|
201
201
|
};
|
|
202
|
+
drs?: string;
|
|
202
203
|
price?: string;
|
|
203
204
|
minPrice?: string;
|
|
204
205
|
quantity?: string;
|
|
@@ -371,6 +372,13 @@ export interface IOrder {
|
|
|
371
372
|
verified?: boolean;
|
|
372
373
|
closed?: boolean;
|
|
373
374
|
variant?: TestVariant;
|
|
375
|
+
drsSummary?: [
|
|
376
|
+
{
|
|
377
|
+
deposit: string;
|
|
378
|
+
count: number;
|
|
379
|
+
confirmed: boolean;
|
|
380
|
+
}
|
|
381
|
+
];
|
|
374
382
|
}
|
|
375
383
|
export interface IOrderCoupon {
|
|
376
384
|
coupon: string;
|
|
@@ -527,6 +535,10 @@ export interface IOrderLine {
|
|
|
527
535
|
created: string;
|
|
528
536
|
creator?: string;
|
|
529
537
|
discounts?: IDiscount[];
|
|
538
|
+
drsSummary?: Array<{
|
|
539
|
+
deposit: string;
|
|
540
|
+
count: number;
|
|
541
|
+
}>;
|
|
530
542
|
extra?: IStringKeyRecord<string>;
|
|
531
543
|
hash: string;
|
|
532
544
|
id: string;
|
|
@@ -562,6 +574,7 @@ export interface IOrderProduct {
|
|
|
562
574
|
img?: string;
|
|
563
575
|
quantity: string;
|
|
564
576
|
price: string;
|
|
577
|
+
drs?: string;
|
|
565
578
|
vat?: string;
|
|
566
579
|
extra?: IProductExtra;
|
|
567
580
|
}
|
|
@@ -646,6 +659,12 @@ export interface IFiscalData {
|
|
|
646
659
|
entries: IFiscalEntry[];
|
|
647
660
|
payments: Partial<Record<EOrderPaymentType, string>>;
|
|
648
661
|
timestamp: string;
|
|
662
|
+
drsSummary?: [
|
|
663
|
+
{
|
|
664
|
+
deposit: string;
|
|
665
|
+
count: number;
|
|
666
|
+
}
|
|
667
|
+
];
|
|
649
668
|
}
|
|
650
669
|
/**
|
|
651
670
|
* @interface IFiscalizeData
|
|
@@ -728,8 +747,11 @@ export interface ISteeringCommand {
|
|
|
728
747
|
}
|
|
729
748
|
export declare const modules: readonly ["POS_INTEGRATOR", "KIOSK", "BI_CONNECTOR", "AGGREGATOR", "KDS", "STATUS_SCREEN", "LOYALTY_INTEGRATOR", "LOYALTY", "MOBILE_APP_LOYALTY", "ORDERING_WEB", "DELIVERY_PANEL"];
|
|
730
749
|
export type TModuleType = (typeof modules)[number];
|
|
731
|
-
|
|
750
|
+
type VariantsConfig = (Partial<Record<`variantRatio_${TestVariant}`, number>> & Partial<Record<`KIOSK_MEDIA_3_cmsId_variant_${TestVariant}`, 'string'>>);
|
|
751
|
+
interface IModuleConfig extends VariantsConfig {
|
|
732
752
|
abTestingEnabled?: boolean;
|
|
753
|
+
KIOSK_MEDIA_2_cmsId?: string;
|
|
754
|
+
KIOSK_MEDIA_3_cmsId?: string;
|
|
733
755
|
[key: string]: any;
|
|
734
756
|
}
|
|
735
757
|
export interface IModule {
|