@final-commerce/common 2.8.1-online.3 → 2.8.1-online.4
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 +60 -9
- package/dist/index.d.ts +60 -9
- package/dist/index.js +151 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +146 -15
- package/dist/index.mjs.map +1 -1
- package/dist/pos-types/index.d.mts +7 -12
- package/dist/pos-types/index.d.ts +7 -12
- package/package.json +1 -1
|
@@ -320,12 +320,6 @@ declare enum ShippingChannel {
|
|
|
320
320
|
POS = "pos"
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
declare enum TaxProductType {
|
|
324
|
-
STANDARD = "standard",
|
|
325
|
-
BASIC_FOOD = "basic_food",
|
|
326
|
-
CHILDRENS_CLOTHING = "childrens_clothing",
|
|
327
|
-
EXEMPT = "exempt"
|
|
328
|
-
}
|
|
329
323
|
declare enum TaxSource {
|
|
330
324
|
MERCHANT = "merchant",
|
|
331
325
|
AUTOMATIC = "automatic"
|
|
@@ -539,7 +533,7 @@ interface OrderLineItem {
|
|
|
539
533
|
stockQuantity?: number;
|
|
540
534
|
unitRatioToBase?: number;
|
|
541
535
|
stockVariantId?: string;
|
|
542
|
-
taxType?:
|
|
536
|
+
taxType?: string | null;
|
|
543
537
|
taxCategoryIds?: string[];
|
|
544
538
|
taxTableId?: string;
|
|
545
539
|
}
|
|
@@ -735,7 +729,7 @@ interface Category extends BaseEntity {
|
|
|
735
729
|
parentId?: string;
|
|
736
730
|
menuOrder?: number;
|
|
737
731
|
source?: string;
|
|
738
|
-
taxType?:
|
|
732
|
+
taxType?: string | null;
|
|
739
733
|
}
|
|
740
734
|
|
|
741
735
|
interface CompanyExtension extends BaseEntity {
|
|
@@ -1020,6 +1014,7 @@ interface Order extends BaseEntity {
|
|
|
1020
1014
|
shipping?: Address$1;
|
|
1021
1015
|
shippingLine?: OrderShippingLine;
|
|
1022
1016
|
taxPlace?: string;
|
|
1017
|
+
taxTableVersion?: string;
|
|
1023
1018
|
lineItems: Partial<OrderLineItem>[];
|
|
1024
1019
|
customSales?: OrderCustomSale[];
|
|
1025
1020
|
nonRevenueItems?: NonRevenueItem$1[];
|
|
@@ -1074,7 +1069,7 @@ interface Product extends BaseEntity {
|
|
|
1074
1069
|
maxPrice?: number;
|
|
1075
1070
|
supplier?: string;
|
|
1076
1071
|
taxTable?: string | null;
|
|
1077
|
-
taxType?:
|
|
1072
|
+
taxType?: string | null;
|
|
1078
1073
|
defaultVariantId?: string;
|
|
1079
1074
|
categories?: string[];
|
|
1080
1075
|
outlets?: string[];
|
|
@@ -1563,7 +1558,7 @@ interface LineItem {
|
|
|
1563
1558
|
stockQuantity?: number;
|
|
1564
1559
|
unitRatioToBase?: number;
|
|
1565
1560
|
stockVariantId?: string;
|
|
1566
|
-
taxType?:
|
|
1561
|
+
taxType?: string | null;
|
|
1567
1562
|
taxCategoryIds?: string[];
|
|
1568
1563
|
taxTableId?: string;
|
|
1569
1564
|
}
|
|
@@ -1811,7 +1806,7 @@ interface FullProduct {
|
|
|
1811
1806
|
companyId?: string;
|
|
1812
1807
|
externalId: string;
|
|
1813
1808
|
taxTable: string;
|
|
1814
|
-
taxType?:
|
|
1809
|
+
taxType?: string | null;
|
|
1815
1810
|
name: string;
|
|
1816
1811
|
description?: string;
|
|
1817
1812
|
shortDescription?: string;
|
|
@@ -1928,7 +1923,7 @@ interface ActiveProduct {
|
|
|
1928
1923
|
price: number;
|
|
1929
1924
|
images: string[];
|
|
1930
1925
|
taxTableId: string;
|
|
1931
|
-
taxType?:
|
|
1926
|
+
taxType?: string | null;
|
|
1932
1927
|
taxCategoryIds?: string[];
|
|
1933
1928
|
quantity: number;
|
|
1934
1929
|
note?: string;
|
|
@@ -320,12 +320,6 @@ declare enum ShippingChannel {
|
|
|
320
320
|
POS = "pos"
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
declare enum TaxProductType {
|
|
324
|
-
STANDARD = "standard",
|
|
325
|
-
BASIC_FOOD = "basic_food",
|
|
326
|
-
CHILDRENS_CLOTHING = "childrens_clothing",
|
|
327
|
-
EXEMPT = "exempt"
|
|
328
|
-
}
|
|
329
323
|
declare enum TaxSource {
|
|
330
324
|
MERCHANT = "merchant",
|
|
331
325
|
AUTOMATIC = "automatic"
|
|
@@ -539,7 +533,7 @@ interface OrderLineItem {
|
|
|
539
533
|
stockQuantity?: number;
|
|
540
534
|
unitRatioToBase?: number;
|
|
541
535
|
stockVariantId?: string;
|
|
542
|
-
taxType?:
|
|
536
|
+
taxType?: string | null;
|
|
543
537
|
taxCategoryIds?: string[];
|
|
544
538
|
taxTableId?: string;
|
|
545
539
|
}
|
|
@@ -735,7 +729,7 @@ interface Category extends BaseEntity {
|
|
|
735
729
|
parentId?: string;
|
|
736
730
|
menuOrder?: number;
|
|
737
731
|
source?: string;
|
|
738
|
-
taxType?:
|
|
732
|
+
taxType?: string | null;
|
|
739
733
|
}
|
|
740
734
|
|
|
741
735
|
interface CompanyExtension extends BaseEntity {
|
|
@@ -1020,6 +1014,7 @@ interface Order extends BaseEntity {
|
|
|
1020
1014
|
shipping?: Address$1;
|
|
1021
1015
|
shippingLine?: OrderShippingLine;
|
|
1022
1016
|
taxPlace?: string;
|
|
1017
|
+
taxTableVersion?: string;
|
|
1023
1018
|
lineItems: Partial<OrderLineItem>[];
|
|
1024
1019
|
customSales?: OrderCustomSale[];
|
|
1025
1020
|
nonRevenueItems?: NonRevenueItem$1[];
|
|
@@ -1074,7 +1069,7 @@ interface Product extends BaseEntity {
|
|
|
1074
1069
|
maxPrice?: number;
|
|
1075
1070
|
supplier?: string;
|
|
1076
1071
|
taxTable?: string | null;
|
|
1077
|
-
taxType?:
|
|
1072
|
+
taxType?: string | null;
|
|
1078
1073
|
defaultVariantId?: string;
|
|
1079
1074
|
categories?: string[];
|
|
1080
1075
|
outlets?: string[];
|
|
@@ -1563,7 +1558,7 @@ interface LineItem {
|
|
|
1563
1558
|
stockQuantity?: number;
|
|
1564
1559
|
unitRatioToBase?: number;
|
|
1565
1560
|
stockVariantId?: string;
|
|
1566
|
-
taxType?:
|
|
1561
|
+
taxType?: string | null;
|
|
1567
1562
|
taxCategoryIds?: string[];
|
|
1568
1563
|
taxTableId?: string;
|
|
1569
1564
|
}
|
|
@@ -1811,7 +1806,7 @@ interface FullProduct {
|
|
|
1811
1806
|
companyId?: string;
|
|
1812
1807
|
externalId: string;
|
|
1813
1808
|
taxTable: string;
|
|
1814
|
-
taxType?:
|
|
1809
|
+
taxType?: string | null;
|
|
1815
1810
|
name: string;
|
|
1816
1811
|
description?: string;
|
|
1817
1812
|
shortDescription?: string;
|
|
@@ -1928,7 +1923,7 @@ interface ActiveProduct {
|
|
|
1928
1923
|
price: number;
|
|
1929
1924
|
images: string[];
|
|
1930
1925
|
taxTableId: string;
|
|
1931
|
-
taxType?:
|
|
1926
|
+
taxType?: string | null;
|
|
1932
1927
|
taxCategoryIds?: string[];
|
|
1933
1928
|
quantity: number;
|
|
1934
1929
|
note?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@final-commerce/common",
|
|
3
|
-
"version": "2.8.1-online.
|
|
3
|
+
"version": "2.8.1-online.4",
|
|
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": {
|