@final-commerce/common 2.12.2-staging2.1 → 2.13.0-staging2.1
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/index.d.mts +76 -3
- package/dist/index.d.ts +76 -3
- package/dist/index.js +171 -40
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +156 -40
- package/dist/index.mjs.map +1 -1
- package/dist/pos-types/index.d.mts +12 -1
- package/dist/pos-types/index.d.ts +12 -1
- package/package.json +1 -1
|
@@ -491,9 +491,12 @@ interface OrderLineItemComponent {
|
|
|
491
491
|
stockVariantId?: string;
|
|
492
492
|
manageStock?: boolean;
|
|
493
493
|
supplierId?: string | null;
|
|
494
|
+
unitCost?: number | null;
|
|
494
495
|
taxTableId?: string;
|
|
495
496
|
totalTax?: number;
|
|
496
497
|
taxes?: OrderTax[];
|
|
498
|
+
parentIndex?: number;
|
|
499
|
+
unlisted?: boolean;
|
|
497
500
|
}
|
|
498
501
|
interface OrderLineItem {
|
|
499
502
|
id?: string;
|
|
@@ -503,6 +506,7 @@ interface OrderLineItem {
|
|
|
503
506
|
quantity?: number;
|
|
504
507
|
manageStock?: boolean;
|
|
505
508
|
supplierId?: string | null;
|
|
509
|
+
unitCost?: number | null;
|
|
506
510
|
price?: number;
|
|
507
511
|
description?: string;
|
|
508
512
|
sku?: string;
|
|
@@ -600,6 +604,7 @@ interface RefundLineItem {
|
|
|
600
604
|
action?: InventorySpecificActionType;
|
|
601
605
|
variantId: string;
|
|
602
606
|
supplierId?: string | null;
|
|
607
|
+
unitCost?: number | null;
|
|
603
608
|
totalTax?: number;
|
|
604
609
|
note?: string;
|
|
605
610
|
description?: string;
|
|
@@ -1542,6 +1547,7 @@ interface LineItem {
|
|
|
1542
1547
|
isUnlimited?: boolean;
|
|
1543
1548
|
manageStock?: boolean;
|
|
1544
1549
|
supplierId?: string | null;
|
|
1550
|
+
unitCost?: number | null;
|
|
1545
1551
|
unitId?: string;
|
|
1546
1552
|
unitAbbreviation?: string;
|
|
1547
1553
|
stockQuantity?: number;
|
|
@@ -1630,6 +1636,7 @@ interface RefundedLineItem {
|
|
|
1630
1636
|
stockVariantId?: string;
|
|
1631
1637
|
manageStock?: boolean;
|
|
1632
1638
|
supplierId?: string | null;
|
|
1639
|
+
unitCost?: number | null;
|
|
1633
1640
|
price: number;
|
|
1634
1641
|
taxes: Tax[];
|
|
1635
1642
|
discount: DiscountLineItem;
|
|
@@ -1830,7 +1837,7 @@ interface FullProduct {
|
|
|
1830
1837
|
}
|
|
1831
1838
|
type ActiveFullProduct = FullProduct;
|
|
1832
1839
|
|
|
1833
|
-
type CompositeItemUnavailable = 'deleted' | 'inactive' | 'hidden' | 'empty' | 'out_of_stock' | 'by_date' | 'fully_booked' | 'marked_sold_out';
|
|
1840
|
+
type CompositeItemUnavailable = 'deleted' | 'inactive' | 'hidden' | 'empty' | 'out_of_stock' | 'by_date' | 'fully_booked' | 'marked_sold_out' | 'contains_itself';
|
|
1834
1841
|
interface CompositeChoice {
|
|
1835
1842
|
productId: string;
|
|
1836
1843
|
variantId: string;
|
|
@@ -1850,6 +1857,7 @@ interface CompositeItem {
|
|
|
1850
1857
|
cost: number;
|
|
1851
1858
|
unavailable: CompositeItemUnavailable | null;
|
|
1852
1859
|
choices: CompositeChoice[];
|
|
1860
|
+
composite?: Composite;
|
|
1853
1861
|
}
|
|
1854
1862
|
interface CompositePart {
|
|
1855
1863
|
_id: string;
|
|
@@ -1871,6 +1879,7 @@ interface CompositePick {
|
|
|
1871
1879
|
variantId: string;
|
|
1872
1880
|
quantity?: number;
|
|
1873
1881
|
modifiers?: ModifierSelection[];
|
|
1882
|
+
picks?: CompositePick[][];
|
|
1874
1883
|
}
|
|
1875
1884
|
interface CartLineComponent {
|
|
1876
1885
|
partName?: string;
|
|
@@ -1884,6 +1893,8 @@ interface CartLineComponent {
|
|
|
1884
1893
|
taxTableId?: string;
|
|
1885
1894
|
unit?: MeasurementUnit;
|
|
1886
1895
|
stockVariantId?: string;
|
|
1896
|
+
parentIndex?: number;
|
|
1897
|
+
unlisted?: boolean;
|
|
1887
1898
|
}
|
|
1888
1899
|
|
|
1889
1900
|
interface Discount {
|
|
@@ -491,9 +491,12 @@ interface OrderLineItemComponent {
|
|
|
491
491
|
stockVariantId?: string;
|
|
492
492
|
manageStock?: boolean;
|
|
493
493
|
supplierId?: string | null;
|
|
494
|
+
unitCost?: number | null;
|
|
494
495
|
taxTableId?: string;
|
|
495
496
|
totalTax?: number;
|
|
496
497
|
taxes?: OrderTax[];
|
|
498
|
+
parentIndex?: number;
|
|
499
|
+
unlisted?: boolean;
|
|
497
500
|
}
|
|
498
501
|
interface OrderLineItem {
|
|
499
502
|
id?: string;
|
|
@@ -503,6 +506,7 @@ interface OrderLineItem {
|
|
|
503
506
|
quantity?: number;
|
|
504
507
|
manageStock?: boolean;
|
|
505
508
|
supplierId?: string | null;
|
|
509
|
+
unitCost?: number | null;
|
|
506
510
|
price?: number;
|
|
507
511
|
description?: string;
|
|
508
512
|
sku?: string;
|
|
@@ -600,6 +604,7 @@ interface RefundLineItem {
|
|
|
600
604
|
action?: InventorySpecificActionType;
|
|
601
605
|
variantId: string;
|
|
602
606
|
supplierId?: string | null;
|
|
607
|
+
unitCost?: number | null;
|
|
603
608
|
totalTax?: number;
|
|
604
609
|
note?: string;
|
|
605
610
|
description?: string;
|
|
@@ -1542,6 +1547,7 @@ interface LineItem {
|
|
|
1542
1547
|
isUnlimited?: boolean;
|
|
1543
1548
|
manageStock?: boolean;
|
|
1544
1549
|
supplierId?: string | null;
|
|
1550
|
+
unitCost?: number | null;
|
|
1545
1551
|
unitId?: string;
|
|
1546
1552
|
unitAbbreviation?: string;
|
|
1547
1553
|
stockQuantity?: number;
|
|
@@ -1630,6 +1636,7 @@ interface RefundedLineItem {
|
|
|
1630
1636
|
stockVariantId?: string;
|
|
1631
1637
|
manageStock?: boolean;
|
|
1632
1638
|
supplierId?: string | null;
|
|
1639
|
+
unitCost?: number | null;
|
|
1633
1640
|
price: number;
|
|
1634
1641
|
taxes: Tax[];
|
|
1635
1642
|
discount: DiscountLineItem;
|
|
@@ -1830,7 +1837,7 @@ interface FullProduct {
|
|
|
1830
1837
|
}
|
|
1831
1838
|
type ActiveFullProduct = FullProduct;
|
|
1832
1839
|
|
|
1833
|
-
type CompositeItemUnavailable = 'deleted' | 'inactive' | 'hidden' | 'empty' | 'out_of_stock' | 'by_date' | 'fully_booked' | 'marked_sold_out';
|
|
1840
|
+
type CompositeItemUnavailable = 'deleted' | 'inactive' | 'hidden' | 'empty' | 'out_of_stock' | 'by_date' | 'fully_booked' | 'marked_sold_out' | 'contains_itself';
|
|
1834
1841
|
interface CompositeChoice {
|
|
1835
1842
|
productId: string;
|
|
1836
1843
|
variantId: string;
|
|
@@ -1850,6 +1857,7 @@ interface CompositeItem {
|
|
|
1850
1857
|
cost: number;
|
|
1851
1858
|
unavailable: CompositeItemUnavailable | null;
|
|
1852
1859
|
choices: CompositeChoice[];
|
|
1860
|
+
composite?: Composite;
|
|
1853
1861
|
}
|
|
1854
1862
|
interface CompositePart {
|
|
1855
1863
|
_id: string;
|
|
@@ -1871,6 +1879,7 @@ interface CompositePick {
|
|
|
1871
1879
|
variantId: string;
|
|
1872
1880
|
quantity?: number;
|
|
1873
1881
|
modifiers?: ModifierSelection[];
|
|
1882
|
+
picks?: CompositePick[][];
|
|
1874
1883
|
}
|
|
1875
1884
|
interface CartLineComponent {
|
|
1876
1885
|
partName?: string;
|
|
@@ -1884,6 +1893,8 @@ interface CartLineComponent {
|
|
|
1884
1893
|
taxTableId?: string;
|
|
1885
1894
|
unit?: MeasurementUnit;
|
|
1886
1895
|
stockVariantId?: string;
|
|
1896
|
+
parentIndex?: number;
|
|
1897
|
+
unlisted?: boolean;
|
|
1887
1898
|
}
|
|
1888
1899
|
|
|
1889
1900
|
interface Discount {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@final-commerce/common",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0-staging2.1",
|
|
4
4
|
"description": "Shared utilities, types, constants, and engineering governance configs for the Final Commerce platform.",
|
|
5
5
|
"homepage": "https://github.com/Final-Commerce/common#readme",
|
|
6
6
|
"bugs": {
|