@final-commerce/common 2.12.0-staging.5 → 2.12.2-staging2.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/README.md +20 -0
- package/bin/gate-done.mjs +71 -36
- package/bin/lib/budget.mjs +71 -0
- package/dist/index.d.mts +24 -248
- package/dist/index.d.ts +24 -248
- package/dist/index.js +164 -1025
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +164 -992
- package/dist/index.mjs.map +1 -1
- package/dist/pos-types/index.d.mts +8 -58
- package/dist/pos-types/index.d.ts +8 -58
- package/dist/pos-types/index.js +2 -7
- package/dist/pos-types/index.js.map +1 -1
- package/dist/pos-types/index.mjs +1 -5
- package/dist/pos-types/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -424,29 +424,11 @@ declare enum BookingType {
|
|
|
424
424
|
}
|
|
425
425
|
declare enum BookingRatePeriod {
|
|
426
426
|
SLOT = "slot",
|
|
427
|
-
HOUR = "hour",
|
|
428
|
-
SESSION = "session",
|
|
429
427
|
DAY = "day",
|
|
430
428
|
NIGHT = "night",
|
|
431
429
|
WEEK = "week",
|
|
432
430
|
MONTH = "month"
|
|
433
431
|
}
|
|
434
|
-
declare enum BookingDurationUnit {
|
|
435
|
-
MINUTE = "minute",
|
|
436
|
-
HOUR = "hour",
|
|
437
|
-
DAY = "day",
|
|
438
|
-
NIGHT = "night",
|
|
439
|
-
WEEK = "week",
|
|
440
|
-
MONTH = "month"
|
|
441
|
-
}
|
|
442
|
-
declare enum BookingSessionSale {
|
|
443
|
-
SESSION = "session",
|
|
444
|
-
COURSE = "course"
|
|
445
|
-
}
|
|
446
|
-
declare enum BookingArriveLeave {
|
|
447
|
-
SET_TIMES = "set-times",
|
|
448
|
-
OPENING_HOURS = "opening-hours"
|
|
449
|
-
}
|
|
450
432
|
declare enum BookingResourceKind {
|
|
451
433
|
ASSET = "asset",
|
|
452
434
|
ROOM = "room",
|
|
@@ -1660,52 +1642,22 @@ interface WeeklyHours {
|
|
|
1660
1642
|
openMinute: number;
|
|
1661
1643
|
closeMinute: number;
|
|
1662
1644
|
}
|
|
1663
|
-
interface BookingDuration {
|
|
1664
|
-
count: number;
|
|
1665
|
-
unit: BookingDurationUnit | `${BookingDurationUnit}`;
|
|
1666
|
-
}
|
|
1667
|
-
interface BookingTimeSlots {
|
|
1668
|
-
length: BookingDuration;
|
|
1669
|
-
weeklyHours?: WeeklyHours[];
|
|
1670
|
-
}
|
|
1671
|
-
interface BookingDateRanges {
|
|
1672
|
-
weeklyHours?: WeeklyHours[];
|
|
1673
|
-
arrivalDays?: number[];
|
|
1674
|
-
arriveLeave?: BookingArriveLeave | `${BookingArriveLeave}`;
|
|
1675
|
-
checkInTime?: string | null;
|
|
1676
|
-
checkOutTime?: string | null;
|
|
1677
|
-
checkTimesByWeekday?: {
|
|
1678
|
-
weekday: number;
|
|
1679
|
-
checkInTime: string;
|
|
1680
|
-
checkOutTime: string;
|
|
1681
|
-
}[] | null;
|
|
1682
|
-
minStay?: BookingDuration;
|
|
1683
|
-
maxStay?: BookingDuration;
|
|
1684
|
-
}
|
|
1685
1645
|
interface BookingRulesInput {
|
|
1686
1646
|
ratePeriod: BookingRatePeriod | `${BookingRatePeriod}`;
|
|
1687
1647
|
slot: {
|
|
1688
|
-
lengthMinutes
|
|
1648
|
+
lengthMinutes: number;
|
|
1689
1649
|
bufferMinutes?: number;
|
|
1690
1650
|
minimumToRun?: number;
|
|
1691
1651
|
minStay?: number;
|
|
1692
1652
|
maxStay?: number;
|
|
1693
1653
|
sharedAcrossProducts?: boolean;
|
|
1694
|
-
maxQtyPerBooking?: number;
|
|
1695
|
-
maxPartySize?: number;
|
|
1696
|
-
wholePeriods?: boolean;
|
|
1697
|
-
buffer?: BookingDuration;
|
|
1698
1654
|
};
|
|
1699
1655
|
window: {
|
|
1700
1656
|
maxAdvanceDays?: number;
|
|
1701
|
-
maxAdvanceMinutes?: number;
|
|
1702
1657
|
minNoticeMinutes?: number;
|
|
1703
1658
|
holdMinutes?: number;
|
|
1704
1659
|
bookableFrom?: Date | string | null;
|
|
1705
1660
|
bookableTo?: Date | string | null;
|
|
1706
|
-
hold?: BookingDuration;
|
|
1707
|
-
minNotice?: BookingDuration;
|
|
1708
|
-
maxAdvance?: BookingDuration;
|
|
1709
1661
|
};
|
|
1710
1662
|
availability: {
|
|
1711
1663
|
weeklyHours?: WeeklyHours[];
|
|
@@ -1716,29 +1668,8 @@ interface BookingRulesInput {
|
|
|
1716
1668
|
arrivalDays?: number[];
|
|
1717
1669
|
availableFrom?: Date | string | null;
|
|
1718
1670
|
};
|
|
1719
|
-
sessions?: {
|
|
1720
|
-
sold: BookingSessionSale | `${BookingSessionSale}`;
|
|
1721
|
-
spots?: number;
|
|
1722
|
-
weekly?: {
|
|
1723
|
-
weekday: number;
|
|
1724
|
-
startMinute: number;
|
|
1725
|
-
endMinute: number;
|
|
1726
|
-
}[];
|
|
1727
|
-
dates?: {
|
|
1728
|
-
date: string;
|
|
1729
|
-
startMinute: number;
|
|
1730
|
-
endMinute: number;
|
|
1731
|
-
}[];
|
|
1732
|
-
} | null;
|
|
1733
|
-
checkTimesByWeekday?: {
|
|
1734
|
-
weekday: number;
|
|
1735
|
-
checkInTime: string;
|
|
1736
|
-
checkOutTime: string;
|
|
1737
|
-
}[] | null;
|
|
1738
1671
|
checkInTime?: string | null;
|
|
1739
1672
|
checkOutTime?: string | null;
|
|
1740
|
-
timeSlots?: BookingTimeSlots | null;
|
|
1741
|
-
dateRanges?: BookingDateRanges | null;
|
|
1742
1673
|
}
|
|
1743
1674
|
interface BusyWindow {
|
|
1744
1675
|
startAt: Date;
|
|
@@ -1750,148 +1681,20 @@ interface GridSlot {
|
|
|
1750
1681
|
bufferEndAt: Date;
|
|
1751
1682
|
canStart: boolean;
|
|
1752
1683
|
}
|
|
1753
|
-
declare const UNLIMITED_PLACES: number;
|
|
1754
1684
|
declare class BookingRulesError extends Error {
|
|
1755
1685
|
constructor(message: string);
|
|
1756
1686
|
}
|
|
1757
1687
|
|
|
1758
1688
|
declare function windowEndsAt(rule: BookingRulesInput, now: Date): Date | null;
|
|
1759
|
-
declare function windowEndsAtInZone(rule: BookingRulesInput, now: Date, timeZone: string | null): Date | null;
|
|
1760
|
-
declare const startsPastMaxAdvance: (rule: BookingRulesInput, startAt: Date, now: Date, timeZone: string) => boolean;
|
|
1761
|
-
declare function maxAdvanceMinutesOf(rule: Pick<BookingRulesInput, 'window'>): number;
|
|
1762
|
-
interface BookingRuleDurations {
|
|
1763
|
-
buffer?: BookingDuration;
|
|
1764
|
-
hold?: BookingDuration;
|
|
1765
|
-
minNotice?: BookingDuration;
|
|
1766
|
-
maxAdvance?: BookingDuration;
|
|
1767
|
-
}
|
|
1768
|
-
declare function ruleDurationsOf(rule: Pick<BookingRulesInput, 'slot' | 'window'>): BookingRuleDurations;
|
|
1769
|
-
declare function oldMaxAdvanceOf({ maxAdvanceMinutes, maxAdvanceDays, }: BookingRulesInput['window']): BookingDuration | undefined;
|
|
1770
|
-
declare function sessionCells(rule: BookingRulesInput, timeZone: string, from: Date, to: Date): GridSlot[];
|
|
1771
|
-
declare function calendarDate(value: string): [number, number, number];
|
|
1772
1689
|
declare function buildGrid(rule: BookingRulesInput, timeZone: string, from: Date, to: Date, now: Date, busy?: BusyWindow[]): GridSlot[];
|
|
1773
1690
|
declare function slotsForWindow(grid: GridSlot[], startAt: Date, endAt: Date): GridSlot[];
|
|
1774
1691
|
|
|
1775
|
-
type BookingDurationField = 'timeSlots.length' | 'slot.buffer' | 'window.hold' | 'window.minNotice' | 'window.maxAdvance' | 'dateRanges.minStay' | 'dateRanges.maxStay';
|
|
1776
|
-
type Units = readonly BookingDurationUnit[];
|
|
1777
|
-
declare function allowedDurationUnits(rule: Pick<BookingRulesInput, 'ratePeriod'>, field: BookingDurationField): Units;
|
|
1778
|
-
type BookingDurationProblemKind = 'count' | 'unit' | 'not-for-type' | 'min-above-max';
|
|
1779
|
-
interface BookingDurationProblem {
|
|
1780
|
-
field: BookingDurationField;
|
|
1781
|
-
kind: BookingDurationProblemKind;
|
|
1782
|
-
message: string;
|
|
1783
|
-
allowed?: readonly BookingDurationUnit[];
|
|
1784
|
-
min?: BookingDuration;
|
|
1785
|
-
max?: BookingDuration;
|
|
1786
|
-
}
|
|
1787
|
-
declare function durationProblems(rule: BookingRulesInput): BookingDurationProblem[];
|
|
1788
|
-
declare const shortestMinutesOf: ({ count, unit }: BookingDuration) => number;
|
|
1789
|
-
declare const longestMinutesOf: ({ count, unit }: BookingDuration) => number;
|
|
1790
|
-
declare const durationText: ({ count, unit }: BookingDuration) => string;
|
|
1791
|
-
|
|
1792
|
-
interface BookingRentalEnd {
|
|
1793
|
-
periods: number;
|
|
1794
|
-
endAt: string;
|
|
1795
|
-
lastDayKey: string;
|
|
1796
|
-
coveredSlots: {
|
|
1797
|
-
startAt: string;
|
|
1798
|
-
dayKey: string;
|
|
1799
|
-
}[];
|
|
1800
|
-
}
|
|
1801
|
-
|
|
1802
|
-
declare const DEFAULT_HOLD_MINUTES = 10;
|
|
1803
|
-
interface PlanWindowInput {
|
|
1804
|
-
rule: BookingRulesInput;
|
|
1805
|
-
timeZone: string;
|
|
1806
|
-
presence?: WeeklyHours[] | null;
|
|
1807
|
-
startAt: Date;
|
|
1808
|
-
endAt: Date;
|
|
1809
|
-
now: Date;
|
|
1810
|
-
busy?: BusyWindow[];
|
|
1811
|
-
}
|
|
1812
|
-
declare function planWindow({ rule, timeZone, presence, startAt, endAt, now, busy }: PlanWindowInput): {
|
|
1813
|
-
slots: GridSlot[];
|
|
1814
|
-
periods: number;
|
|
1815
|
-
endAt: Date;
|
|
1816
|
-
bufferEndAt: Date;
|
|
1817
|
-
};
|
|
1818
|
-
interface WindowForPeriodsInput {
|
|
1819
|
-
rule: BookingRulesInput;
|
|
1820
|
-
timeZone: string;
|
|
1821
|
-
startAt: Date;
|
|
1822
|
-
periods: number;
|
|
1823
|
-
now: Date;
|
|
1824
|
-
}
|
|
1825
|
-
declare function windowForPeriods({ rule, timeZone, startAt, periods, now }: WindowForPeriodsInput): {
|
|
1826
|
-
startAt: Date;
|
|
1827
|
-
endAt: Date;
|
|
1828
|
-
};
|
|
1829
|
-
interface RentalEndsInput {
|
|
1830
|
-
rule: BookingRulesInput;
|
|
1831
|
-
timeZone: string;
|
|
1832
|
-
startAt: Date;
|
|
1833
|
-
now: Date;
|
|
1834
|
-
untilDay: string;
|
|
1835
|
-
}
|
|
1836
|
-
declare function rentalEnds(input: RentalEndsInput): BookingRentalEnd[];
|
|
1837
|
-
interface PlanCourseInput {
|
|
1838
|
-
rule: BookingRulesInput;
|
|
1839
|
-
timeZone: string;
|
|
1840
|
-
presence?: WeeklyHours[] | null;
|
|
1841
|
-
now: Date;
|
|
1842
|
-
}
|
|
1843
|
-
declare function courseSessions(rule: BookingRulesInput, timeZone: string): GridSlot[];
|
|
1844
|
-
declare function courseSpan(rule: BookingRulesInput, timeZone: string): {
|
|
1845
|
-
from: Date;
|
|
1846
|
-
to: Date;
|
|
1847
|
-
};
|
|
1848
|
-
declare const courseStarted: (rule: BookingRulesInput, sessions: GridSlot[], now: Date) => boolean;
|
|
1849
|
-
declare function courseStartedInZone(rule: BookingRulesInput, sessions: GridSlot[], now: Date, timeZone: string): boolean;
|
|
1850
|
-
declare function planCourse({ rule, timeZone, presence, now }: PlanCourseInput): GridSlot[];
|
|
1851
|
-
declare function holdExpiresAt(rule: BookingRulesInput, now: Date): Date;
|
|
1852
|
-
declare function checkQtyPerBooking(rule: BookingRulesInput, qty: number): void;
|
|
1853
|
-
declare function checkPartySize(rule: BookingRulesInput, partySize: number): void;
|
|
1854
|
-
type BookingMethod = 'time-slots' | 'sessions' | 'date-ranges';
|
|
1855
|
-
declare function bookingMethodOf(rule: Pick<BookingRulesInput, 'ratePeriod'>): BookingMethod;
|
|
1856
|
-
declare const soldAsCourse: (rule: Pick<BookingRulesInput, "ratePeriod" | "sessions">) => boolean;
|
|
1857
|
-
declare function capacityOf(rule: Pick<BookingRulesInput, 'ratePeriod' | 'sessions'>, resource: {
|
|
1858
|
-
seats?: number | null;
|
|
1859
|
-
}): number;
|
|
1860
|
-
type BookingRuleParts = ({
|
|
1861
|
-
method: 'time-slots';
|
|
1862
|
-
} & Required<BookingTimeSlots>) | {
|
|
1863
|
-
method: 'sessions';
|
|
1864
|
-
sessions: NonNullable<BookingRulesInput['sessions']>;
|
|
1865
|
-
} | ({
|
|
1866
|
-
method: 'date-ranges';
|
|
1867
|
-
ratePeriod: BookingRulesInput['ratePeriod'];
|
|
1868
|
-
wholePeriods: boolean;
|
|
1869
|
-
} & BookingDateRanges);
|
|
1870
|
-
declare function bookingRuleParts(rule: BookingRulesInput): BookingRuleParts;
|
|
1871
|
-
interface BookingRuleNewFields {
|
|
1872
|
-
timeSlots?: Required<BookingTimeSlots>;
|
|
1873
|
-
dateRanges?: BookingDateRanges;
|
|
1874
|
-
'slot.buffer'?: BookingDuration;
|
|
1875
|
-
'window.hold': BookingDuration;
|
|
1876
|
-
'window.minNotice'?: BookingDuration;
|
|
1877
|
-
'window.maxAdvance'?: BookingDuration;
|
|
1878
|
-
}
|
|
1879
|
-
interface BookingRuleInNewShape {
|
|
1880
|
-
set: BookingRuleNewFields;
|
|
1881
|
-
unset: string[];
|
|
1882
|
-
problems: BookingDurationProblem[];
|
|
1883
|
-
notes: string[];
|
|
1884
|
-
changesBehaviour?: 'whole-periods';
|
|
1885
|
-
}
|
|
1886
|
-
declare function ruleInNewShape(rule: BookingRulesInput): BookingRuleInNewShape;
|
|
1887
|
-
|
|
1888
1692
|
interface BookingOccupancy {
|
|
1889
1693
|
resourceId: string;
|
|
1890
1694
|
productId: string;
|
|
1891
1695
|
qty: number;
|
|
1892
1696
|
startAt: Date;
|
|
1893
1697
|
bufferEndAt: Date;
|
|
1894
|
-
outletId?: string;
|
|
1895
1698
|
}
|
|
1896
1699
|
interface BookingResourceInput {
|
|
1897
1700
|
id: string;
|
|
@@ -1906,13 +1709,11 @@ interface ResourceAvailability {
|
|
|
1906
1709
|
capacity: number;
|
|
1907
1710
|
booked: number;
|
|
1908
1711
|
free: number;
|
|
1909
|
-
unlimited?: true;
|
|
1910
1712
|
}
|
|
1911
1713
|
interface AvailabilitySlot extends GridSlot {
|
|
1912
1714
|
capacity: number;
|
|
1913
1715
|
booked: number;
|
|
1914
1716
|
free: number;
|
|
1915
|
-
unlimited?: true;
|
|
1916
1717
|
resources: ResourceAvailability[];
|
|
1917
1718
|
dayKey: string;
|
|
1918
1719
|
}
|
|
@@ -1926,81 +1727,39 @@ interface ResourceInWindow {
|
|
|
1926
1727
|
interface AvailabilityInput {
|
|
1927
1728
|
productId: string;
|
|
1928
1729
|
bookingRulesId?: string;
|
|
1730
|
+
bookingType?: BookingType;
|
|
1929
1731
|
rule: BookingRulesInput;
|
|
1930
1732
|
resources: BookingResourceInput[];
|
|
1931
1733
|
occupied: BookingOccupancy[];
|
|
1932
|
-
outletId?: string;
|
|
1933
1734
|
from: Date;
|
|
1934
1735
|
to: Date;
|
|
1935
1736
|
now: Date;
|
|
1936
|
-
timeZone?: string;
|
|
1937
1737
|
}
|
|
1938
1738
|
declare const withinPresence: (slot: GridSlot, timeZone: string, presence?: WeeklyHours[] | null) => boolean;
|
|
1939
1739
|
declare function occupancyIn(occupied: BookingOccupancy[], productId: string, startAt: Date, bufferEndAt: Date, shared: boolean): {
|
|
1940
1740
|
taken: number;
|
|
1941
1741
|
foreignProductId?: string;
|
|
1942
1742
|
};
|
|
1943
|
-
declare function occupiedAtOutlet<T extends BookingOccupancy>(occupied: T[], rule: Pick<BookingRulesInput, 'ratePeriod'>, outletId?: string): T[];
|
|
1944
1743
|
declare function shopDayKey(instant: Date, timeZone: string): string;
|
|
1945
1744
|
declare function shopDayRange(fromDayKey: string, count: number, timeZone: string): {
|
|
1946
1745
|
from: Date;
|
|
1947
1746
|
to: Date;
|
|
1948
1747
|
};
|
|
1949
|
-
declare function buildAvailability({ productId, bookingRulesId, rule, resources, occupied
|
|
1950
|
-
course: ({
|
|
1951
|
-
sessions: number;
|
|
1952
|
-
alreadyStarted: boolean;
|
|
1953
|
-
beyondWindow: boolean;
|
|
1954
|
-
sessionTimes: {
|
|
1955
|
-
startAt: Date;
|
|
1956
|
-
endAt: Date;
|
|
1957
|
-
}[];
|
|
1958
|
-
startAt: Date;
|
|
1959
|
-
endAt: Date;
|
|
1960
|
-
resources: ({
|
|
1961
|
-
resourceId: string;
|
|
1962
|
-
free: number;
|
|
1963
|
-
unlimited?: undefined;
|
|
1964
|
-
} | {
|
|
1965
|
-
resourceId: string;
|
|
1966
|
-
free: number;
|
|
1967
|
-
unlimited: true;
|
|
1968
|
-
})[];
|
|
1969
|
-
} & {
|
|
1970
|
-
maxQtyNow?: number;
|
|
1971
|
-
}) | undefined;
|
|
1748
|
+
declare function buildAvailability({ productId, bookingRulesId, bookingType, rule, resources, occupied, from, to, now, }: AvailabilityInput): {
|
|
1972
1749
|
resources: ResourceInWindow[];
|
|
1973
|
-
slots:
|
|
1974
|
-
unlimited?: true;
|
|
1975
|
-
} & {
|
|
1976
|
-
maxQtyNow?: number;
|
|
1977
|
-
})[];
|
|
1750
|
+
slots: AvailabilitySlot[];
|
|
1978
1751
|
timeZone: string;
|
|
1979
1752
|
days: string[];
|
|
1980
1753
|
productId: string;
|
|
1981
1754
|
bookingRulesId: string | undefined;
|
|
1982
|
-
|
|
1983
|
-
|
|
1755
|
+
bookingType: BookingType | undefined;
|
|
1756
|
+
ratePeriod: "slot" | "day" | "night" | "week" | "month" | BookingRatePeriod;
|
|
1984
1757
|
minimumToRun: number | undefined;
|
|
1985
1758
|
minStay: number | undefined;
|
|
1986
1759
|
maxStay: number | undefined;
|
|
1987
|
-
minStayLength: BookingDuration | undefined;
|
|
1988
|
-
maxStayLength: BookingDuration | undefined;
|
|
1989
|
-
maxQtyPerBooking: number | undefined;
|
|
1990
|
-
maxPartySize: number | undefined;
|
|
1991
1760
|
bookableUntil: Date | null;
|
|
1992
1761
|
beyondWindow: boolean;
|
|
1993
1762
|
};
|
|
1994
|
-
declare function pickFreeResource<T extends {
|
|
1995
|
-
free: number;
|
|
1996
|
-
}>(slot: {
|
|
1997
|
-
resources: T[];
|
|
1998
|
-
}, qty?: number): T | undefined;
|
|
1999
|
-
declare function fewestFreeOver(slots: {
|
|
2000
|
-
startAt: Date;
|
|
2001
|
-
endAt: Date;
|
|
2002
|
-
resources: ResourceAvailability[];
|
|
2003
|
-
}[], from: Date, to: Date): ResourceAvailability[];
|
|
2004
1763
|
interface ResourcePresenceRow {
|
|
2005
1764
|
resourceId: string;
|
|
2006
1765
|
outletId: string;
|
|
@@ -2013,6 +1772,23 @@ declare function presentAt<T extends {
|
|
|
2013
1772
|
presence?: WeeklyHours[] | null;
|
|
2014
1773
|
}[];
|
|
2015
1774
|
|
|
1775
|
+
declare const DEFAULT_HOLD_MINUTES = 10;
|
|
1776
|
+
interface PlanWindowInput {
|
|
1777
|
+
rule: BookingRulesInput;
|
|
1778
|
+
timeZone: string;
|
|
1779
|
+
presence?: WeeklyHours[] | null;
|
|
1780
|
+
startAt: Date;
|
|
1781
|
+
endAt: Date;
|
|
1782
|
+
now: Date;
|
|
1783
|
+
busy?: BusyWindow[];
|
|
1784
|
+
}
|
|
1785
|
+
declare function planWindow({ rule, timeZone, presence, startAt, endAt, now, busy }: PlanWindowInput): {
|
|
1786
|
+
slots: GridSlot[];
|
|
1787
|
+
endAt: Date;
|
|
1788
|
+
bufferEndAt: Date;
|
|
1789
|
+
};
|
|
1790
|
+
declare const holdExpiresAt: (rule: BookingRulesInput, now: Date) => Date;
|
|
1791
|
+
|
|
2016
1792
|
interface ShippingPlace {
|
|
2017
1793
|
country: string;
|
|
2018
1794
|
province?: string | null;
|
|
@@ -2190,4 +1966,4 @@ declare const EXPENSE_DEFAULT_CATEGORIES: readonly [{
|
|
|
2190
1966
|
}];
|
|
2191
1967
|
type ExpenseDefaultCategoryKey = (typeof EXPENSE_DEFAULT_CATEGORIES)[number]['key'];
|
|
2192
1968
|
|
|
2193
|
-
export { ADYEN_JOB_TITLE_ASSOCIATION_TYPES, ADYEN_LEGAL_ENTITY_STATE_PROVINCE_COUNTRIES, ADYEN_NO_TAX_NUMBER_ABSENT_COUNTRIES, ADYEN_ROLLOUT_COUNTRY_CODES, ADYEN_STORE_STATE_PROVINCE_COUNTRIES, ADYEN_TAX_NUMBER_FORMATS, ADYEN_TAX_NUMBER_MIN_LENGTH, AFFIRM_COUNTRY_CODES, AFFIRM_PRICE_PLANS, type AddressLike, type AdyenBnplSettings, type AdyenBnplSkippedStore, type AdyenBnplUpdateResult, type AffirmPricePlan, type Amount, type AssignUserChange, AttributeType, type AvailabilityInput, type AvailabilitySlot, type AvailableTransition, BNPL_METHOD_STATUS, BNPL_SKIP_REASON, type BnplMethodStatus, type BnplSkipReason,
|
|
1969
|
+
export { ADYEN_JOB_TITLE_ASSOCIATION_TYPES, ADYEN_LEGAL_ENTITY_STATE_PROVINCE_COUNTRIES, ADYEN_NO_TAX_NUMBER_ABSENT_COUNTRIES, ADYEN_ROLLOUT_COUNTRY_CODES, ADYEN_STORE_STATE_PROVINCE_COUNTRIES, ADYEN_TAX_NUMBER_FORMATS, ADYEN_TAX_NUMBER_MIN_LENGTH, AFFIRM_COUNTRY_CODES, AFFIRM_PRICE_PLANS, type AddressLike, type AdyenBnplSettings, type AdyenBnplSkippedStore, type AdyenBnplUpdateResult, type AffirmPricePlan, type Amount, type AssignUserChange, AttributeType, type AvailabilityInput, type AvailabilitySlot, type AvailableTransition, BNPL_METHOD_STATUS, BNPL_SKIP_REASON, type BnplMethodStatus, type BnplSkipReason, type BookingOccupancy, BookingRatePeriod, type BookingResourceInput, BookingResourceKind, BookingResourceStatus, BookingRulesError, type BookingRulesInput, BookingType, type BusyWindow, CANADA_PROVINCES, CONDITION_OPERATORS, COUNTRY_CURRENCIES, CURRENCY_CONFIG, type CartDiscountBucket, type CartFeeBucket, type CashDrawer, type CashRoundingTuple, type CategoryModifierRow, type CategoryRow, CompanyType, type CompositeAvailabilityRows, type CompositeMakeable, type CompositeMakeableRow, type CompositePriceItem, type CompositePricePart, type CompositeReservationOrder, type CompositeShelf, type CompositeStockPart, type Condition, type ConditionGroup, type ConditionOperator, type ConfigUpdatedPayload, type ConfigValidationError, type ConfigValidationResult, type ConfigValidationWarning, type CountryOption, type CrossAxisRequires, type CrossAxisRule, type CrossAxisTrigger, CurrencyCode, type CurrencyConfig, type CurrencyRate, CustomTableAvailability, CustomerPlatform, DEFAULT_CONFIG, DEFAULT_CROSS_AXIS_RULES, DEFAULT_DISPLAY_STATE_MAP, DEFAULT_HOLD_MINUTES, DEFAULT_RESOLVED_CONFIG, DEFAULT_UNIT_ID, type DeleteStateConfigFragmentParams, type DeleteStateConfigFragmentResponse, type DiscountsBreakdown, type DiscountsTuple, type DisplayStateResult, type DisplayStateRule, DualWriteStrategy, EUFixedRates, EUROPE, EVERYWHERE_KEY, EXPENSE_DEFAULT_CATEGORIES, EXPENSE_NAME_MAX_LENGTH, EXPENSE_PAYMENT_METHOD_PRESETS, type EndOfSessionReport, type ExpenseDefaultCategoryKey, ExtensionCategory, FINANCIAL_INVARIANTS, FULFILLMENT_STATES, type FailedCondition, type FeesBreakdown, FeesCustomBillingStatus, type FeesTuple, type FinancialInvariant, type FragmentParam, type FragmentValidationResult, type FulfillmentState, type FulfillmentStateDefinition, type FulfillmentTransitionPath, type GetAvailableTransitionsParams, type GetAvailableTransitionsResponse, type GetOrderDisplayStateParams, type GetOrderDisplayStateResponse, type GetOrderStateConfigParams, type GetOrderStateConfigResponse, type GetStateConfigFragmentParams, type GetStateConfigFragmentResponse, type GridSlot, HttpMethod, InventoryBaseActionEnum, type InventoryBaseActionType, InventorySpecificActionType, InvoiceStatus, LegacyWriteStrategy, LibraryItemType, type LineStockMove, MAX_PRECISION, type Measurable, type MeasurementBase, type MeasurementUnit, type MeasurementUnitFamily, MenuProject, type ModifierChoiceRow, type ModifierRow, type ModifiersBreakdown, type ModifiersTuple, NAFixedRates, NORTH_AMERICA, NonRevenueItemType, type NormalizedAddress, ORDER_STATE_ACTIONS, ORDER_STATE_EVENTS, ORDER_STATE_TOPIC, type OrderContext, type OrderLikeForAssignedUsers, type OrderLikeForContext, type OrderLikeForInCart, type OrderLikeForLegacyInference, type OrderLineItem, type OrderMutationData, type OrderPaymentMethod, OrderPlatform, type OrderRefund, type OrderReservationForContext, type OrderStateEventPayload, type OrderStateWritable, type OrderStatusDefinition, type OrderStatusValidationError, type OrderWriteStrategy, OtherFixedRates, OwnerType, PATH_MODES, PAYMENT_CHANNELS, PAYMENT_STATES, POS_VALID_INITIAL_STATES, type PathMode, type PaymentChannel, PaymentMethod, PaymentProcessor, type PaymentState, type PaymentStateDefinition, type PaymentTransitionPath, type PlanWindowInput, Platform, type PoolDrawing, PreviewImageMode, PricingLevel, PricingPlanEnum, PricingRegionEnum, ProcessorType, type ProductDiscountBucket, type ProductFeeBucket, ProductSalesChartStep, ProductSalesReportCompare, ProductStatus, ProductType, type Province, PublicationAvailability, type PublicationConfig, PublicationStatus, REGION_MAPPING, REPORT_NEGATE_PATHS, ReceiptSendChannel, ReceiptType, type RefundsBreakdown, ReservationStatus, ResidualPaymentMethod, ResidualStatus, type ResolveInputs, type ResolveShippingInput, type ResolveTemplateResult, type ResourceAvailability, ResourceAvailabilityState, type ResourceInWindow, type ResourcePresenceRow, SHIPPING_COUNTRIES, STATE_SCHEMA, STRIPE_SUPPORTED_COUNTRIES, SYSTEM_FAMILIES, SYSTEM_FAMILY_IDS, SYSTEM_UNITS, SYSTEM_UNIT_IDS, SalesLineAction, SalesLineSourceArray, type SalesSummary, type SaveStateConfigFragmentParams, type SaveStateConfigFragmentResponse, type SettlementBreakdown, type SettlementBuckets, type SettlementCardSection, type SettlementCashSection, type SettlementCustomEntry, ShippingChannel, ShippingNoOptionReason, type ShippingOptionRule, ShippingOptionType, type ShippingPlace, type ShippingPriceTier, type ShippingQuoteOption, ShippingRateType, type ShippingResolution, type ShippingTuple, ShippingZoneError, ShippingZoneKind, type ShippingZoneProblem, type ShippingZoneRule, type SplitPayment, type SplitPaymentPayment, type StaffSales, type StaffSalesEntry, type StateConfig, type StateConfigFragment, type StateDefinition, type StatePair, type StateSchema, type StateTransitionBlockedPayload, type StateTransitionCompletedPayload, StationStatus, type StockLine, type StockLineComponent, type StockReservationLink, type StoredStateConfig, StripeCurrencyCode, StripeStatus, type TaxBreakdown, type TaxBreakdownRateEntry, type TaxBreakdownSection, type TaxBreakdownSubtotal, type TaxesTuple, TimePeriod, type TipEntry, type TipsBreakdown, type TipsTuple, TopMetericsSort, type TransitionBlockedBy, type TransitionConditionSet, type TransitionOrderStateParams, type TransitionOrderStateResponse, type TransitionPath, type TransitionRequest, type TransitionResult, UserTypes, type WeeklyHours, addAmounts, addressPlaceKeys, adyenLegalEntityRequiresStateOrProvince, adyenRequiresJobTitle, adyenStoreRequiresStateOrProvince, adyenSupportsTaxNumberAbsent, adyenTaxNumberFormat, amountToString, ancestorChain, applyAssignment, assertUnitSane, availableIn, baseFor, baseFulfillmentDefinitions, baseOf, basePaymentDefinitions, buildAvailability, buildGrid, buildOrderContext, buildPosPresetConfig, buildResolvedConfig, calculatePercentage, canTransition, cheapestCompositeItem, cheapestCompositePrice, compositeItemCost, compositeItemUnavailable, compositeMakeable, compositeModifierMismatches, compositeReservationMismatches, compositeVariantInStock, conditionSummary, convertFixedFeeToLocalCurrency, createAmount, crossAxisRuleApplies, currentAssignees, deriveDisplayState, deriveFamilyCode, deriveUnitId, displayRuleMatchesPair, divideAmount, evaluateCondition, evaluateConditionSet, extendPrice, extendPriceFor, formatCurrency, formatInUnit, formatMinorUnitsToString, formatQuantity, fromBase, fromMinorUnits, generateMongoID, getAvailableTransitions, getCashAmountDue, getCountriesByRegion, getCurrencyConfig, getCurrentISODate, getFinancialInvariantViolations, getGoodsPortion, getLineSubtotal, getMinorUnitMultiplier, getMinorUnits, getPaymentLegTotal, getPricingRegionFromCountry, getSettlementTotal, getTotalCollected, hasInCartFlag, hasSellableChoice, holdExpiresAt, inferStatesFromLegacyStatus, isAdyenRolloutCountry, isAffirmCountry, isAffirmPricePlan, isChoiceAvailableAtOutlet, isConditionOperator, isFulfillmentState, isInCart, isPaymentState, isSupportedCurrency, isSystemFamilyCode, isValidQuantity, isWhole, lineStockMoves, listCountries, listProvinces, listShippingCountries, mapToLegacyStatus, maxPrecisionFor, mergeFragment, modifiersSellable, multiplyAmount, normalizeAddress, normalizeCityKey, normalizeCountry, normalizeMongoIdString, normalizePostCode, normalizeProvince, occupancyIn, orderAssignments, parseAmountToMinorUnits, parseCurrencyCode, parseStripeCurrencyCode, placeKey, planWindow, poolDemand, poolOf, poolShortfall, poolStockAt, postCodeMatchesProvince, presentAt, priceForTotal, provincesForPostCode, removeFragment, resolveFamily, resolveModifiersForProduct, resolveShipping, resolveTemplate, resolveUnit, roundToPrecision, sameFamily, setOrderState, shipsToCountry, shopDayKey, shopDayRange, signReportForDisplay, slotsForWindow, stringifyMinorUnits, subtractAmounts, toBase, toMinorUnits, validateConfig, validateFragmentCompatibility, validateOrderStatuses, validateShippingZone, violatesFinancialInvariant, windowEndsAt, withinPresence };
|