@final-commerce/common 2.11.1-online.2 → 2.11.1-online.3
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 +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -1
- package/dist/pos-types/index.d.mts +27 -0
- package/dist/pos-types/index.d.ts +27 -0
- package/package.json +1 -1
|
@@ -461,6 +461,27 @@ interface OrderCustomStatus {
|
|
|
461
461
|
setBy: string | null;
|
|
462
462
|
}
|
|
463
463
|
|
|
464
|
+
declare enum TaxExceptionSource {
|
|
465
|
+
PRODUCT = "product",
|
|
466
|
+
CATEGORY = "category"
|
|
467
|
+
}
|
|
468
|
+
interface TaxException {
|
|
469
|
+
place: string;
|
|
470
|
+
skip: string[];
|
|
471
|
+
reason?: string;
|
|
472
|
+
setBy?: string;
|
|
473
|
+
setAt?: string;
|
|
474
|
+
}
|
|
475
|
+
interface OrderTaxSkip {
|
|
476
|
+
code: string;
|
|
477
|
+
name: string;
|
|
478
|
+
place: string;
|
|
479
|
+
source: TaxExceptionSource | `${TaxExceptionSource}`;
|
|
480
|
+
label: string;
|
|
481
|
+
categoryId?: string;
|
|
482
|
+
reason?: string;
|
|
483
|
+
}
|
|
484
|
+
|
|
464
485
|
interface OrderLineItemDiscount {
|
|
465
486
|
itemDiscounts?: PriceModifierDetail[];
|
|
466
487
|
cartDiscount?: PriceModifierDetail;
|
|
@@ -540,6 +561,7 @@ interface OrderLineItem {
|
|
|
540
561
|
taxType?: string | null;
|
|
541
562
|
taxCategoryIds?: string[];
|
|
542
563
|
taxTableId?: string;
|
|
564
|
+
taxSkipped?: OrderTaxSkip[];
|
|
543
565
|
}
|
|
544
566
|
|
|
545
567
|
interface OrderCustomSaleDiscount {
|
|
@@ -736,6 +758,7 @@ interface Category extends BaseEntity {
|
|
|
736
758
|
menuOrder?: number;
|
|
737
759
|
source?: string;
|
|
738
760
|
taxType?: string | null;
|
|
761
|
+
taxExceptions?: TaxException[] | null;
|
|
739
762
|
}
|
|
740
763
|
|
|
741
764
|
interface CompanyExtension extends BaseEntity {
|
|
@@ -1077,6 +1100,7 @@ interface Product extends BaseEntity {
|
|
|
1077
1100
|
supplier?: string;
|
|
1078
1101
|
taxTable?: string | null;
|
|
1079
1102
|
taxType?: string | null;
|
|
1103
|
+
taxExceptions?: TaxException[] | null;
|
|
1080
1104
|
defaultVariantId?: string;
|
|
1081
1105
|
categories?: string[];
|
|
1082
1106
|
outlets?: string[];
|
|
@@ -1569,6 +1593,7 @@ interface LineItem {
|
|
|
1569
1593
|
taxType?: string | null;
|
|
1570
1594
|
taxCategoryIds?: string[];
|
|
1571
1595
|
taxTableId?: string;
|
|
1596
|
+
taxSkipped?: OrderTaxSkip[];
|
|
1572
1597
|
}
|
|
1573
1598
|
|
|
1574
1599
|
interface TipPayment {
|
|
@@ -1818,6 +1843,7 @@ interface FullProduct {
|
|
|
1818
1843
|
externalId: string;
|
|
1819
1844
|
taxTable: string;
|
|
1820
1845
|
taxType?: string | null;
|
|
1846
|
+
taxExceptions?: TaxException[] | null;
|
|
1821
1847
|
name: string;
|
|
1822
1848
|
description?: string;
|
|
1823
1849
|
shortDescription?: string;
|
|
@@ -1935,6 +1961,7 @@ interface ActiveProduct {
|
|
|
1935
1961
|
images: string[];
|
|
1936
1962
|
taxTableId: string;
|
|
1937
1963
|
taxType?: string | null;
|
|
1964
|
+
taxExceptions?: TaxException[] | null;
|
|
1938
1965
|
taxCategoryIds?: string[];
|
|
1939
1966
|
quantity: number;
|
|
1940
1967
|
note?: string;
|
|
@@ -461,6 +461,27 @@ interface OrderCustomStatus {
|
|
|
461
461
|
setBy: string | null;
|
|
462
462
|
}
|
|
463
463
|
|
|
464
|
+
declare enum TaxExceptionSource {
|
|
465
|
+
PRODUCT = "product",
|
|
466
|
+
CATEGORY = "category"
|
|
467
|
+
}
|
|
468
|
+
interface TaxException {
|
|
469
|
+
place: string;
|
|
470
|
+
skip: string[];
|
|
471
|
+
reason?: string;
|
|
472
|
+
setBy?: string;
|
|
473
|
+
setAt?: string;
|
|
474
|
+
}
|
|
475
|
+
interface OrderTaxSkip {
|
|
476
|
+
code: string;
|
|
477
|
+
name: string;
|
|
478
|
+
place: string;
|
|
479
|
+
source: TaxExceptionSource | `${TaxExceptionSource}`;
|
|
480
|
+
label: string;
|
|
481
|
+
categoryId?: string;
|
|
482
|
+
reason?: string;
|
|
483
|
+
}
|
|
484
|
+
|
|
464
485
|
interface OrderLineItemDiscount {
|
|
465
486
|
itemDiscounts?: PriceModifierDetail[];
|
|
466
487
|
cartDiscount?: PriceModifierDetail;
|
|
@@ -540,6 +561,7 @@ interface OrderLineItem {
|
|
|
540
561
|
taxType?: string | null;
|
|
541
562
|
taxCategoryIds?: string[];
|
|
542
563
|
taxTableId?: string;
|
|
564
|
+
taxSkipped?: OrderTaxSkip[];
|
|
543
565
|
}
|
|
544
566
|
|
|
545
567
|
interface OrderCustomSaleDiscount {
|
|
@@ -736,6 +758,7 @@ interface Category extends BaseEntity {
|
|
|
736
758
|
menuOrder?: number;
|
|
737
759
|
source?: string;
|
|
738
760
|
taxType?: string | null;
|
|
761
|
+
taxExceptions?: TaxException[] | null;
|
|
739
762
|
}
|
|
740
763
|
|
|
741
764
|
interface CompanyExtension extends BaseEntity {
|
|
@@ -1077,6 +1100,7 @@ interface Product extends BaseEntity {
|
|
|
1077
1100
|
supplier?: string;
|
|
1078
1101
|
taxTable?: string | null;
|
|
1079
1102
|
taxType?: string | null;
|
|
1103
|
+
taxExceptions?: TaxException[] | null;
|
|
1080
1104
|
defaultVariantId?: string;
|
|
1081
1105
|
categories?: string[];
|
|
1082
1106
|
outlets?: string[];
|
|
@@ -1569,6 +1593,7 @@ interface LineItem {
|
|
|
1569
1593
|
taxType?: string | null;
|
|
1570
1594
|
taxCategoryIds?: string[];
|
|
1571
1595
|
taxTableId?: string;
|
|
1596
|
+
taxSkipped?: OrderTaxSkip[];
|
|
1572
1597
|
}
|
|
1573
1598
|
|
|
1574
1599
|
interface TipPayment {
|
|
@@ -1818,6 +1843,7 @@ interface FullProduct {
|
|
|
1818
1843
|
externalId: string;
|
|
1819
1844
|
taxTable: string;
|
|
1820
1845
|
taxType?: string | null;
|
|
1846
|
+
taxExceptions?: TaxException[] | null;
|
|
1821
1847
|
name: string;
|
|
1822
1848
|
description?: string;
|
|
1823
1849
|
shortDescription?: string;
|
|
@@ -1935,6 +1961,7 @@ interface ActiveProduct {
|
|
|
1935
1961
|
images: string[];
|
|
1936
1962
|
taxTableId: string;
|
|
1937
1963
|
taxType?: string | null;
|
|
1964
|
+
taxExceptions?: TaxException[] | null;
|
|
1938
1965
|
taxCategoryIds?: string[];
|
|
1939
1966
|
quantity: number;
|
|
1940
1967
|
note?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@final-commerce/common",
|
|
3
|
-
"version": "2.11.1-online.
|
|
3
|
+
"version": "2.11.1-online.3",
|
|
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": {
|