@final-commerce/common 2.11.1-online.1 → 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 +154 -1
- package/dist/index.d.ts +154 -1
- package/dist/index.js +62 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +55 -0
- package/dist/index.mjs.map +1 -1
- package/dist/pos-types/index.d.mts +28 -0
- package/dist/pos-types/index.d.ts +28 -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 {
|
|
@@ -996,6 +1019,7 @@ interface Order extends BaseEntity {
|
|
|
996
1019
|
completedAt?: string;
|
|
997
1020
|
customerId?: string;
|
|
998
1021
|
source: string;
|
|
1022
|
+
contactEmail?: string;
|
|
999
1023
|
sessionId?: string;
|
|
1000
1024
|
balance: number;
|
|
1001
1025
|
externalId?: string;
|
|
@@ -1076,6 +1100,7 @@ interface Product extends BaseEntity {
|
|
|
1076
1100
|
supplier?: string;
|
|
1077
1101
|
taxTable?: string | null;
|
|
1078
1102
|
taxType?: string | null;
|
|
1103
|
+
taxExceptions?: TaxException[] | null;
|
|
1079
1104
|
defaultVariantId?: string;
|
|
1080
1105
|
categories?: string[];
|
|
1081
1106
|
outlets?: string[];
|
|
@@ -1568,6 +1593,7 @@ interface LineItem {
|
|
|
1568
1593
|
taxType?: string | null;
|
|
1569
1594
|
taxCategoryIds?: string[];
|
|
1570
1595
|
taxTableId?: string;
|
|
1596
|
+
taxSkipped?: OrderTaxSkip[];
|
|
1571
1597
|
}
|
|
1572
1598
|
|
|
1573
1599
|
interface TipPayment {
|
|
@@ -1817,6 +1843,7 @@ interface FullProduct {
|
|
|
1817
1843
|
externalId: string;
|
|
1818
1844
|
taxTable: string;
|
|
1819
1845
|
taxType?: string | null;
|
|
1846
|
+
taxExceptions?: TaxException[] | null;
|
|
1820
1847
|
name: string;
|
|
1821
1848
|
description?: string;
|
|
1822
1849
|
shortDescription?: string;
|
|
@@ -1934,6 +1961,7 @@ interface ActiveProduct {
|
|
|
1934
1961
|
images: string[];
|
|
1935
1962
|
taxTableId: string;
|
|
1936
1963
|
taxType?: string | null;
|
|
1964
|
+
taxExceptions?: TaxException[] | null;
|
|
1937
1965
|
taxCategoryIds?: string[];
|
|
1938
1966
|
quantity: number;
|
|
1939
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 {
|
|
@@ -996,6 +1019,7 @@ interface Order extends BaseEntity {
|
|
|
996
1019
|
completedAt?: string;
|
|
997
1020
|
customerId?: string;
|
|
998
1021
|
source: string;
|
|
1022
|
+
contactEmail?: string;
|
|
999
1023
|
sessionId?: string;
|
|
1000
1024
|
balance: number;
|
|
1001
1025
|
externalId?: string;
|
|
@@ -1076,6 +1100,7 @@ interface Product extends BaseEntity {
|
|
|
1076
1100
|
supplier?: string;
|
|
1077
1101
|
taxTable?: string | null;
|
|
1078
1102
|
taxType?: string | null;
|
|
1103
|
+
taxExceptions?: TaxException[] | null;
|
|
1079
1104
|
defaultVariantId?: string;
|
|
1080
1105
|
categories?: string[];
|
|
1081
1106
|
outlets?: string[];
|
|
@@ -1568,6 +1593,7 @@ interface LineItem {
|
|
|
1568
1593
|
taxType?: string | null;
|
|
1569
1594
|
taxCategoryIds?: string[];
|
|
1570
1595
|
taxTableId?: string;
|
|
1596
|
+
taxSkipped?: OrderTaxSkip[];
|
|
1571
1597
|
}
|
|
1572
1598
|
|
|
1573
1599
|
interface TipPayment {
|
|
@@ -1817,6 +1843,7 @@ interface FullProduct {
|
|
|
1817
1843
|
externalId: string;
|
|
1818
1844
|
taxTable: string;
|
|
1819
1845
|
taxType?: string | null;
|
|
1846
|
+
taxExceptions?: TaxException[] | null;
|
|
1820
1847
|
name: string;
|
|
1821
1848
|
description?: string;
|
|
1822
1849
|
shortDescription?: string;
|
|
@@ -1934,6 +1961,7 @@ interface ActiveProduct {
|
|
|
1934
1961
|
images: string[];
|
|
1935
1962
|
taxTableId: string;
|
|
1936
1963
|
taxType?: string | null;
|
|
1964
|
+
taxExceptions?: TaxException[] | null;
|
|
1937
1965
|
taxCategoryIds?: string[];
|
|
1938
1966
|
quantity: number;
|
|
1939
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": {
|