@final-commerce/common 2.4.0-staging.1 → 2.4.0
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 +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +41 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -9
- package/dist/index.mjs.map +1 -1
- package/dist/pos-types/index.d.mts +7 -0
- package/dist/pos-types/index.d.ts +7 -0
- package/package.json +1 -1
|
@@ -539,6 +539,7 @@ interface RefundPayment {
|
|
|
539
539
|
processor?: string;
|
|
540
540
|
saleId?: string;
|
|
541
541
|
tendered?: number;
|
|
542
|
+
tip?: OrderTip | null;
|
|
542
543
|
}
|
|
543
544
|
|
|
544
545
|
interface RefundTip {
|
|
@@ -896,6 +897,7 @@ interface Product extends BaseEntity {
|
|
|
896
897
|
maxPrice?: number;
|
|
897
898
|
supplier?: string;
|
|
898
899
|
taxTable?: string | null;
|
|
900
|
+
defaultVariantId?: string;
|
|
899
901
|
categories?: string[];
|
|
900
902
|
outlets?: string[];
|
|
901
903
|
currency?: CurrencyCode;
|
|
@@ -1815,6 +1817,7 @@ interface FullProduct {
|
|
|
1815
1817
|
productType: ProductType;
|
|
1816
1818
|
bookingRulesId?: string;
|
|
1817
1819
|
variants: ProductVariant[];
|
|
1820
|
+
defaultVariantId?: string;
|
|
1818
1821
|
modifiers?: ResolvedModifier[];
|
|
1819
1822
|
minPrice?: number;
|
|
1820
1823
|
maxPrice?: number;
|
|
@@ -1844,6 +1847,7 @@ interface BookingSlot {
|
|
|
1844
1847
|
booked: number;
|
|
1845
1848
|
free: number;
|
|
1846
1849
|
resources: BookingSlotResource[];
|
|
1850
|
+
dayKey?: string;
|
|
1847
1851
|
}
|
|
1848
1852
|
interface BookingAvailability {
|
|
1849
1853
|
productId: string;
|
|
@@ -1856,12 +1860,15 @@ interface BookingAvailability {
|
|
|
1856
1860
|
bookableUntil?: string;
|
|
1857
1861
|
beyondWindow?: boolean;
|
|
1858
1862
|
slots: BookingSlot[];
|
|
1863
|
+
timeZone?: string | null;
|
|
1864
|
+
days?: string[];
|
|
1859
1865
|
}
|
|
1860
1866
|
interface BookingResource {
|
|
1861
1867
|
id: string;
|
|
1862
1868
|
name: string;
|
|
1863
1869
|
kind: BookingResourceKind;
|
|
1864
1870
|
tag?: string;
|
|
1871
|
+
image?: string;
|
|
1865
1872
|
}
|
|
1866
1873
|
interface Booking {
|
|
1867
1874
|
id: string;
|
|
@@ -539,6 +539,7 @@ interface RefundPayment {
|
|
|
539
539
|
processor?: string;
|
|
540
540
|
saleId?: string;
|
|
541
541
|
tendered?: number;
|
|
542
|
+
tip?: OrderTip | null;
|
|
542
543
|
}
|
|
543
544
|
|
|
544
545
|
interface RefundTip {
|
|
@@ -896,6 +897,7 @@ interface Product extends BaseEntity {
|
|
|
896
897
|
maxPrice?: number;
|
|
897
898
|
supplier?: string;
|
|
898
899
|
taxTable?: string | null;
|
|
900
|
+
defaultVariantId?: string;
|
|
899
901
|
categories?: string[];
|
|
900
902
|
outlets?: string[];
|
|
901
903
|
currency?: CurrencyCode;
|
|
@@ -1815,6 +1817,7 @@ interface FullProduct {
|
|
|
1815
1817
|
productType: ProductType;
|
|
1816
1818
|
bookingRulesId?: string;
|
|
1817
1819
|
variants: ProductVariant[];
|
|
1820
|
+
defaultVariantId?: string;
|
|
1818
1821
|
modifiers?: ResolvedModifier[];
|
|
1819
1822
|
minPrice?: number;
|
|
1820
1823
|
maxPrice?: number;
|
|
@@ -1844,6 +1847,7 @@ interface BookingSlot {
|
|
|
1844
1847
|
booked: number;
|
|
1845
1848
|
free: number;
|
|
1846
1849
|
resources: BookingSlotResource[];
|
|
1850
|
+
dayKey?: string;
|
|
1847
1851
|
}
|
|
1848
1852
|
interface BookingAvailability {
|
|
1849
1853
|
productId: string;
|
|
@@ -1856,12 +1860,15 @@ interface BookingAvailability {
|
|
|
1856
1860
|
bookableUntil?: string;
|
|
1857
1861
|
beyondWindow?: boolean;
|
|
1858
1862
|
slots: BookingSlot[];
|
|
1863
|
+
timeZone?: string | null;
|
|
1864
|
+
days?: string[];
|
|
1859
1865
|
}
|
|
1860
1866
|
interface BookingResource {
|
|
1861
1867
|
id: string;
|
|
1862
1868
|
name: string;
|
|
1863
1869
|
kind: BookingResourceKind;
|
|
1864
1870
|
tag?: string;
|
|
1871
|
+
image?: string;
|
|
1865
1872
|
}
|
|
1866
1873
|
interface Booking {
|
|
1867
1874
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@final-commerce/common",
|
|
3
|
-
"version": "2.4.0
|
|
3
|
+
"version": "2.4.0",
|
|
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": {
|