@final-commerce/common 2.2.0-beta.2 → 2.2.0-preprod.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 +37 -35
- package/dist/index.d.ts +37 -35
- package/dist/index.js +60 -51
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +60 -51
- package/dist/index.mjs.map +1 -1
- package/dist/pos-types/index.d.mts +12 -0
- package/dist/pos-types/index.d.ts +12 -0
- package/package.json +1 -1
|
@@ -169,6 +169,11 @@ interface OrderLineItem {
|
|
|
169
169
|
metadata?: Metadata[];
|
|
170
170
|
stock?: number;
|
|
171
171
|
subTotal?: number;
|
|
172
|
+
unitId?: string;
|
|
173
|
+
unitAbbreviation?: string;
|
|
174
|
+
stockQuantity?: number;
|
|
175
|
+
unitRatioToBase?: number;
|
|
176
|
+
stockVariantId?: string;
|
|
172
177
|
}
|
|
173
178
|
|
|
174
179
|
interface OrderCustomSaleDiscount {
|
|
@@ -386,6 +391,10 @@ declare enum Platform {
|
|
|
386
391
|
OLIVER = "oliver",
|
|
387
392
|
STANDALONE = "standalone"
|
|
388
393
|
}
|
|
394
|
+
declare enum CustomerPlatform {
|
|
395
|
+
POS = "in-store",
|
|
396
|
+
WOO_COMMERCE = "woo-commerce"
|
|
397
|
+
}
|
|
389
398
|
declare enum StationStatus {
|
|
390
399
|
IN_USE = "IN_USE",
|
|
391
400
|
AVAILABLE = "AVAILABLE"
|
|
@@ -401,6 +410,7 @@ declare enum InventorySpecificActionType {
|
|
|
401
410
|
REFUND_DAMAGE = "REFUND_DAMAGE",
|
|
402
411
|
SALE = "SALE",
|
|
403
412
|
COMPOSED_FOR_SALE = "COMPOSED_FOR_SALE",
|
|
413
|
+
UNIT_FAMILY_CHANGED = "UNIT_FAMILY_CHANGED",
|
|
404
414
|
TRANSFER = "TRANSFER",
|
|
405
415
|
BULK_RECOUNT = "BULK_RECOUNT",
|
|
406
416
|
APPLIED_FROM_WOO = "APPLIED_FROM_WOO",
|
|
@@ -1129,6 +1139,7 @@ type ActiveCustomer = Enrich<Customer, {
|
|
|
1129
1139
|
shipping: Address | null;
|
|
1130
1140
|
createdAt?: string;
|
|
1131
1141
|
updatedAt?: string;
|
|
1142
|
+
source?: CustomerPlatform;
|
|
1132
1143
|
}>;
|
|
1133
1144
|
|
|
1134
1145
|
interface ActiveOutlet {
|
|
@@ -2075,6 +2086,7 @@ interface BootstrapMessage {
|
|
|
2075
2086
|
wsUrl?: string;
|
|
2076
2087
|
apiUrl?: string;
|
|
2077
2088
|
};
|
|
2089
|
+
paymentProvider?: PaymentProcessor;
|
|
2078
2090
|
}
|
|
2079
2091
|
interface TokenRefreshMessage {
|
|
2080
2092
|
type: 'TOKEN_REFRESH';
|
|
@@ -169,6 +169,11 @@ interface OrderLineItem {
|
|
|
169
169
|
metadata?: Metadata[];
|
|
170
170
|
stock?: number;
|
|
171
171
|
subTotal?: number;
|
|
172
|
+
unitId?: string;
|
|
173
|
+
unitAbbreviation?: string;
|
|
174
|
+
stockQuantity?: number;
|
|
175
|
+
unitRatioToBase?: number;
|
|
176
|
+
stockVariantId?: string;
|
|
172
177
|
}
|
|
173
178
|
|
|
174
179
|
interface OrderCustomSaleDiscount {
|
|
@@ -386,6 +391,10 @@ declare enum Platform {
|
|
|
386
391
|
OLIVER = "oliver",
|
|
387
392
|
STANDALONE = "standalone"
|
|
388
393
|
}
|
|
394
|
+
declare enum CustomerPlatform {
|
|
395
|
+
POS = "in-store",
|
|
396
|
+
WOO_COMMERCE = "woo-commerce"
|
|
397
|
+
}
|
|
389
398
|
declare enum StationStatus {
|
|
390
399
|
IN_USE = "IN_USE",
|
|
391
400
|
AVAILABLE = "AVAILABLE"
|
|
@@ -401,6 +410,7 @@ declare enum InventorySpecificActionType {
|
|
|
401
410
|
REFUND_DAMAGE = "REFUND_DAMAGE",
|
|
402
411
|
SALE = "SALE",
|
|
403
412
|
COMPOSED_FOR_SALE = "COMPOSED_FOR_SALE",
|
|
413
|
+
UNIT_FAMILY_CHANGED = "UNIT_FAMILY_CHANGED",
|
|
404
414
|
TRANSFER = "TRANSFER",
|
|
405
415
|
BULK_RECOUNT = "BULK_RECOUNT",
|
|
406
416
|
APPLIED_FROM_WOO = "APPLIED_FROM_WOO",
|
|
@@ -1129,6 +1139,7 @@ type ActiveCustomer = Enrich<Customer, {
|
|
|
1129
1139
|
shipping: Address | null;
|
|
1130
1140
|
createdAt?: string;
|
|
1131
1141
|
updatedAt?: string;
|
|
1142
|
+
source?: CustomerPlatform;
|
|
1132
1143
|
}>;
|
|
1133
1144
|
|
|
1134
1145
|
interface ActiveOutlet {
|
|
@@ -2075,6 +2086,7 @@ interface BootstrapMessage {
|
|
|
2075
2086
|
wsUrl?: string;
|
|
2076
2087
|
apiUrl?: string;
|
|
2077
2088
|
};
|
|
2089
|
+
paymentProvider?: PaymentProcessor;
|
|
2078
2090
|
}
|
|
2079
2091
|
interface TokenRefreshMessage {
|
|
2080
2092
|
type: 'TOKEN_REFRESH';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@final-commerce/common",
|
|
3
|
-
"version": "2.2.0-
|
|
3
|
+
"version": "2.2.0-preprod.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": {
|