@flowio/types 11.24.14 → 11.24.15
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/api-internal.d.ts +99 -119
- package/dist/api.d.ts +21 -554
- package/package.json +2 -2
- package/src/api-internal.ts +1569 -3012
- package/src/api.ts +456 -1574
package/dist/api.d.ts
CHANGED
|
@@ -1581,555 +1581,6 @@ declare namespace io.flow.shopify.external.v0.models {
|
|
|
1581
1581
|
readonly webhook: io.flow.shopify.external.v0.models.Webhook;
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
|
-
declare namespace io.flow.channel.internal.v0.enums {
|
|
1585
|
-
type ChannelCurrencyCapability = 'payment_authorizations' | 'settlement_currency';
|
|
1586
|
-
type ChannelOrderAcceptanceRejectionReason = 'unsupported_origin_country' | 'unsupported_destination_country' | 'domestic_order' | 'order_contains_gift_card';
|
|
1587
|
-
type ChannelOrderAcceptanceStatus = 'accepted' | 'rejected' | 'review';
|
|
1588
|
-
}
|
|
1589
|
-
declare namespace io.flow.channel.internal.v0.models {
|
|
1590
|
-
interface Channel {
|
|
1591
|
-
readonly id: string;
|
|
1592
|
-
readonly name: string;
|
|
1593
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
1594
|
-
readonly organization_id_prefix?: string;
|
|
1595
|
-
}
|
|
1596
|
-
interface ChannelCurrency {
|
|
1597
|
-
readonly id: string;
|
|
1598
|
-
readonly currency: string;
|
|
1599
|
-
readonly channel: io.flow.common.v0.models.ChannelReference;
|
|
1600
|
-
readonly capabilities: io.flow.channel.internal.v0.enums.ChannelCurrencyCapability[];
|
|
1601
|
-
}
|
|
1602
|
-
interface ChannelCurrencyForm {
|
|
1603
|
-
readonly currency: string;
|
|
1604
|
-
readonly channel_id: string;
|
|
1605
|
-
readonly capabilities: io.flow.channel.internal.v0.enums.ChannelCurrencyCapability[];
|
|
1606
|
-
}
|
|
1607
|
-
interface ChannelForm {
|
|
1608
|
-
readonly name: string;
|
|
1609
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
1610
|
-
readonly organization_id_prefix?: string;
|
|
1611
|
-
}
|
|
1612
|
-
interface ChannelMembership {
|
|
1613
|
-
readonly id: string;
|
|
1614
|
-
readonly channel: io.flow.common.v0.models.ChannelReference;
|
|
1615
|
-
readonly user: io.flow.common.v0.unions.ExpandableUser;
|
|
1616
|
-
readonly role?: io.flow.common.v0.enums.Role;
|
|
1617
|
-
}
|
|
1618
|
-
interface ChannelMembershipForm {
|
|
1619
|
-
readonly channel_id: string;
|
|
1620
|
-
readonly user_id: string;
|
|
1621
|
-
readonly role?: io.flow.common.v0.enums.Role;
|
|
1622
|
-
}
|
|
1623
|
-
interface ChannelMembershipPutForm {
|
|
1624
|
-
readonly role?: io.flow.common.v0.enums.Role;
|
|
1625
|
-
}
|
|
1626
|
-
interface ChannelOrderAcceptance {
|
|
1627
|
-
readonly id: string;
|
|
1628
|
-
readonly organization_id: string;
|
|
1629
|
-
readonly order_number: string;
|
|
1630
|
-
readonly channel_id: string;
|
|
1631
|
-
readonly external_order_reference: string;
|
|
1632
|
-
readonly payment_request_id?: string;
|
|
1633
|
-
readonly status: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
|
|
1634
|
-
readonly reasons: io.flow.channel.internal.v0.models.ChannelOrderAcceptanceReason[];
|
|
1635
|
-
}
|
|
1636
|
-
interface ChannelOrderAcceptanceForm {
|
|
1637
|
-
readonly status: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
|
|
1638
|
-
}
|
|
1639
|
-
interface ChannelOrderAcceptanceReason {
|
|
1640
|
-
readonly description: string;
|
|
1641
|
-
readonly rejection_reason?: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceRejectionReason;
|
|
1642
|
-
}
|
|
1643
|
-
}
|
|
1644
|
-
declare namespace io.flow.common.v0.enums {
|
|
1645
|
-
type AttributeDataType = 'boolean' | 'integer' | 'decimal' | 'string' | 'json_array';
|
|
1646
|
-
type AvailabilityStatus = 'enabled' | 'disabled';
|
|
1647
|
-
type Calendar = 'weekdays' | 'everyday';
|
|
1648
|
-
type Capability = 'crossdock';
|
|
1649
|
-
type ChangeType = 'insert' | 'update' | 'delete';
|
|
1650
|
-
type CurrencyLabelFormatter = 'strip_trailing_zeros' | 'symbol_prefix' | 'symbol_suffix';
|
|
1651
|
-
type CurrencySymbolFormat = 'narrow' | 'primary';
|
|
1652
|
-
type DayOfWeek = 'sunday' | 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday';
|
|
1653
|
-
type DeliveredDuty = 'paid' | 'unpaid';
|
|
1654
|
-
type DiscountTarget = 'item' | 'shipping';
|
|
1655
|
-
type EntityIdentifierType = 'ioss' | 'voec';
|
|
1656
|
-
type Environment = 'sandbox' | 'production';
|
|
1657
|
-
type ExceptionType = 'open' | 'closed';
|
|
1658
|
-
type GoodsSupply = 'export' | 'intra_community' | 'local';
|
|
1659
|
-
type HolidayCalendar = 'us_bank_holidays' | 'jewish_holidays';
|
|
1660
|
-
type IncludedLevyKey = 'duty' | 'vat' | 'vat_and_duty' | 'none';
|
|
1661
|
-
type Incoterm = 'EXW' | 'FCA' | 'CPT' | 'CIP' | 'DAT' | 'DAP' | 'DDP' | 'FAS' | 'FOB' | 'CFR' | 'CIF' | 'DAF' | 'DES' | 'DEQ' | 'DDU';
|
|
1662
|
-
type InputSpecificationType = 'text' | 'number';
|
|
1663
|
-
type MarginType = 'fixed' | 'percent';
|
|
1664
|
-
type MeasurementSystem = 'imperial' | 'metric';
|
|
1665
|
-
type MerchantOfRecord = 'flow' | 'organization';
|
|
1666
|
-
type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
|
|
1667
|
-
type OrganizationStatus = 'active' | 'inactive' | 'deactivated' | 'provisioned';
|
|
1668
|
-
type PriceBookStatus = 'draft' | 'published' | 'archived';
|
|
1669
|
-
type Role = 'admin' | 'member';
|
|
1670
|
-
type RoundingMethod = 'up' | 'down' | 'nearest';
|
|
1671
|
-
type RoundingType = 'pattern' | 'multiple';
|
|
1672
|
-
type ScheduleExceptionStatus = 'Open' | 'Closed';
|
|
1673
|
-
type SortDirection = 'ascending' | 'descending';
|
|
1674
|
-
type UnitOfMeasurement = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'cubic_inch' | 'cubic_meter' | 'gram' | 'kilogram' | 'meter' | 'ounce' | 'pound';
|
|
1675
|
-
type UnitOfTime = 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute';
|
|
1676
|
-
type UserStatus = 'pending' | 'active' | 'inactive';
|
|
1677
|
-
type ValueAddedService = 'Hazardous Material';
|
|
1678
|
-
type Visibility = 'public' | 'private';
|
|
1679
|
-
}
|
|
1680
|
-
declare namespace io.flow.common.v0.models {
|
|
1681
|
-
interface Address {
|
|
1682
|
-
readonly text?: string;
|
|
1683
|
-
readonly streets?: string[];
|
|
1684
|
-
readonly street_number?: string;
|
|
1685
|
-
readonly city?: string;
|
|
1686
|
-
readonly province?: string;
|
|
1687
|
-
readonly postal?: string;
|
|
1688
|
-
readonly country?: string;
|
|
1689
|
-
readonly latitude?: string;
|
|
1690
|
-
readonly longitude?: string;
|
|
1691
|
-
}
|
|
1692
|
-
interface BillingAddress {
|
|
1693
|
-
readonly name?: io.flow.common.v0.models.Name;
|
|
1694
|
-
readonly streets?: string[];
|
|
1695
|
-
readonly city?: string;
|
|
1696
|
-
readonly province?: string;
|
|
1697
|
-
readonly postal?: string;
|
|
1698
|
-
readonly country?: string;
|
|
1699
|
-
readonly company?: string;
|
|
1700
|
-
}
|
|
1701
|
-
interface CatalogItemReference {
|
|
1702
|
-
readonly id: string;
|
|
1703
|
-
readonly number: string;
|
|
1704
|
-
}
|
|
1705
|
-
interface CatalogItemSummary {
|
|
1706
|
-
readonly number: string;
|
|
1707
|
-
readonly name: string;
|
|
1708
|
-
readonly attributes: Record<string, string>;
|
|
1709
|
-
}
|
|
1710
|
-
interface ChannelReference {
|
|
1711
|
-
readonly id: string;
|
|
1712
|
-
}
|
|
1713
|
-
interface CheckoutReference {
|
|
1714
|
-
readonly id: string;
|
|
1715
|
-
}
|
|
1716
|
-
interface Contact {
|
|
1717
|
-
readonly name: io.flow.common.v0.models.Name;
|
|
1718
|
-
readonly company?: string;
|
|
1719
|
-
readonly email?: string;
|
|
1720
|
-
readonly phone?: string;
|
|
1721
|
-
}
|
|
1722
|
-
interface CustomerInvoice {
|
|
1723
|
-
readonly address?: io.flow.common.v0.models.BillingAddress;
|
|
1724
|
-
}
|
|
1725
|
-
interface CustomerReference {
|
|
1726
|
-
readonly number: string;
|
|
1727
|
-
}
|
|
1728
|
-
interface DatetimeRange {
|
|
1729
|
-
readonly from: string;
|
|
1730
|
-
readonly to: string;
|
|
1731
|
-
}
|
|
1732
|
-
interface Dimension {
|
|
1733
|
-
readonly depth?: io.flow.common.v0.models.Measurement;
|
|
1734
|
-
readonly diameter?: io.flow.common.v0.models.Measurement;
|
|
1735
|
-
readonly length?: io.flow.common.v0.models.Measurement;
|
|
1736
|
-
readonly weight?: io.flow.common.v0.models.Measurement;
|
|
1737
|
-
readonly width?: io.flow.common.v0.models.Measurement;
|
|
1738
|
-
}
|
|
1739
|
-
interface Dimensions {
|
|
1740
|
-
readonly product?: io.flow.common.v0.models.Dimension;
|
|
1741
|
-
readonly packaging?: io.flow.common.v0.models.Dimension;
|
|
1742
|
-
}
|
|
1743
|
-
interface DiscountForm {
|
|
1744
|
-
readonly offer: io.flow.common.v0.unions.DiscountOffer;
|
|
1745
|
-
readonly target?: io.flow.common.v0.enums.DiscountTarget;
|
|
1746
|
-
readonly label?: string;
|
|
1747
|
-
}
|
|
1748
|
-
interface DiscountOfferFixed {
|
|
1749
|
-
readonly discriminator: 'discount_offer_fixed';
|
|
1750
|
-
readonly money: io.flow.common.v0.models.Money;
|
|
1751
|
-
}
|
|
1752
|
-
interface DiscountOfferPercent {
|
|
1753
|
-
readonly discriminator: 'discount_offer_percent';
|
|
1754
|
-
readonly percent: number;
|
|
1755
|
-
}
|
|
1756
|
-
interface DiscountsForm {
|
|
1757
|
-
readonly discounts: io.flow.common.v0.models.DiscountForm[];
|
|
1758
|
-
}
|
|
1759
|
-
interface Duration {
|
|
1760
|
-
readonly unit: io.flow.common.v0.enums.UnitOfTime;
|
|
1761
|
-
readonly value: number;
|
|
1762
|
-
}
|
|
1763
|
-
interface EntityIdentifier {
|
|
1764
|
-
readonly name: io.flow.common.v0.enums.EntityIdentifierType;
|
|
1765
|
-
readonly number: string;
|
|
1766
|
-
readonly issuing_country?: string;
|
|
1767
|
-
}
|
|
1768
|
-
interface Exception {
|
|
1769
|
-
readonly type: io.flow.common.v0.enums.ExceptionType;
|
|
1770
|
-
readonly datetime_range: io.flow.common.v0.models.DatetimeRange;
|
|
1771
|
-
}
|
|
1772
|
-
interface ExperienceSummary {
|
|
1773
|
-
readonly id: string;
|
|
1774
|
-
readonly key: string;
|
|
1775
|
-
readonly name: string;
|
|
1776
|
-
readonly country?: string;
|
|
1777
|
-
readonly currency?: string;
|
|
1778
|
-
readonly language?: string;
|
|
1779
|
-
}
|
|
1780
|
-
interface IncludedLevies {
|
|
1781
|
-
readonly key: io.flow.common.v0.enums.IncludedLevyKey;
|
|
1782
|
-
readonly label: string;
|
|
1783
|
-
}
|
|
1784
|
-
interface InputForm {
|
|
1785
|
-
readonly values?: Record<string, string>;
|
|
1786
|
-
}
|
|
1787
|
-
interface InputFormSpecification {
|
|
1788
|
-
readonly inputs?: io.flow.common.v0.models.InputSpecification[];
|
|
1789
|
-
readonly limitations?: io.flow.common.v0.models.InputSpecificationLimitations;
|
|
1790
|
-
}
|
|
1791
|
-
interface InputSpecification {
|
|
1792
|
-
readonly type: io.flow.common.v0.enums.InputSpecificationType;
|
|
1793
|
-
readonly name: string;
|
|
1794
|
-
readonly display_text?: string;
|
|
1795
|
-
}
|
|
1796
|
-
interface InputSpecificationLimitationMax {
|
|
1797
|
-
readonly discriminator: 'input_specification_limitation_max';
|
|
1798
|
-
readonly max: number;
|
|
1799
|
-
}
|
|
1800
|
-
interface InputSpecificationLimitations {
|
|
1801
|
-
readonly limitations?: io.flow.common.v0.unions.InputSpecificationLimitation[];
|
|
1802
|
-
}
|
|
1803
|
-
interface ItemReference {
|
|
1804
|
-
readonly number: string;
|
|
1805
|
-
}
|
|
1806
|
-
interface LineItem {
|
|
1807
|
-
readonly number: string;
|
|
1808
|
-
readonly quantity: number;
|
|
1809
|
-
readonly price: io.flow.common.v0.models.Money;
|
|
1810
|
-
readonly attributes: Record<string, string>;
|
|
1811
|
-
readonly center?: string;
|
|
1812
|
-
readonly discount?: io.flow.common.v0.models.Money;
|
|
1813
|
-
}
|
|
1814
|
-
interface LineItemAttributesForm {
|
|
1815
|
-
readonly attributes: Record<string, string>;
|
|
1816
|
-
}
|
|
1817
|
-
interface LineItemForm {
|
|
1818
|
-
readonly number: string;
|
|
1819
|
-
readonly quantity: number;
|
|
1820
|
-
readonly shipment_estimate?: io.flow.common.v0.models.DatetimeRange;
|
|
1821
|
-
readonly price?: io.flow.common.v0.models.Money;
|
|
1822
|
-
readonly attributes?: Record<string, string>;
|
|
1823
|
-
readonly center?: string;
|
|
1824
|
-
readonly discount?: io.flow.common.v0.models.Money;
|
|
1825
|
-
readonly discounts?: io.flow.common.v0.models.DiscountsForm;
|
|
1826
|
-
}
|
|
1827
|
-
interface LineItemQuantityForm {
|
|
1828
|
-
readonly quantity: number;
|
|
1829
|
-
}
|
|
1830
|
-
interface Margin {
|
|
1831
|
-
readonly type: io.flow.common.v0.enums.MarginType;
|
|
1832
|
-
readonly value: number;
|
|
1833
|
-
}
|
|
1834
|
-
interface Measurement {
|
|
1835
|
-
readonly value: string;
|
|
1836
|
-
readonly units: io.flow.common.v0.enums.UnitOfMeasurement;
|
|
1837
|
-
}
|
|
1838
|
-
interface MerchantOfRecordEntity {
|
|
1839
|
-
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
1840
|
-
readonly name: string;
|
|
1841
|
-
readonly vat?: io.flow.common.v0.models.MerchantOfRecordEntityRegistration;
|
|
1842
|
-
readonly identifiers?: io.flow.common.v0.models.EntityIdentifier[];
|
|
1843
|
-
readonly streets: string[];
|
|
1844
|
-
readonly city: string;
|
|
1845
|
-
readonly province?: string;
|
|
1846
|
-
readonly postal?: string;
|
|
1847
|
-
readonly country: string;
|
|
1848
|
-
readonly phone?: string;
|
|
1849
|
-
readonly email?: string;
|
|
1850
|
-
}
|
|
1851
|
-
interface MerchantOfRecordEntityRegistration {
|
|
1852
|
-
readonly number: string;
|
|
1853
|
-
readonly country: string;
|
|
1854
|
-
}
|
|
1855
|
-
interface Money {
|
|
1856
|
-
readonly amount: number;
|
|
1857
|
-
readonly currency: string;
|
|
1858
|
-
}
|
|
1859
|
-
interface MoneyWithBase {
|
|
1860
|
-
readonly currency: string;
|
|
1861
|
-
readonly amount: number;
|
|
1862
|
-
readonly base: io.flow.common.v0.models.Money;
|
|
1863
|
-
}
|
|
1864
|
-
interface MoneyWithOptionalBase {
|
|
1865
|
-
readonly currency: string;
|
|
1866
|
-
readonly amount: number;
|
|
1867
|
-
readonly base?: io.flow.common.v0.models.Money;
|
|
1868
|
-
}
|
|
1869
|
-
interface Name {
|
|
1870
|
-
readonly first?: string;
|
|
1871
|
-
readonly last?: string;
|
|
1872
|
-
}
|
|
1873
|
-
interface OrderCustomer {
|
|
1874
|
-
readonly name: io.flow.common.v0.models.Name;
|
|
1875
|
-
readonly number?: string;
|
|
1876
|
-
readonly phone?: string;
|
|
1877
|
-
readonly email?: string;
|
|
1878
|
-
readonly address?: io.flow.common.v0.models.BillingAddress;
|
|
1879
|
-
readonly invoice?: io.flow.common.v0.models.CustomerInvoice;
|
|
1880
|
-
}
|
|
1881
|
-
interface OrderCustomerForm {
|
|
1882
|
-
readonly name?: io.flow.common.v0.models.Name;
|
|
1883
|
-
readonly number?: string;
|
|
1884
|
-
readonly phone?: string;
|
|
1885
|
-
readonly email?: string;
|
|
1886
|
-
readonly address?: io.flow.common.v0.models.BillingAddress;
|
|
1887
|
-
readonly invoice?: io.flow.common.v0.models.CustomerInvoice;
|
|
1888
|
-
}
|
|
1889
|
-
interface Organization {
|
|
1890
|
-
readonly discriminator: 'organization';
|
|
1891
|
-
readonly id: string;
|
|
1892
|
-
readonly name: string;
|
|
1893
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
1894
|
-
readonly parent?: io.flow.common.v0.models.OrganizationReference;
|
|
1895
|
-
readonly defaults?: io.flow.common.v0.models.OrganizationDefaults;
|
|
1896
|
-
readonly created_at?: string;
|
|
1897
|
-
readonly status?: io.flow.common.v0.enums.OrganizationStatus;
|
|
1898
|
-
}
|
|
1899
|
-
interface OrganizationDefaults {
|
|
1900
|
-
readonly country: string;
|
|
1901
|
-
readonly base_currency: string;
|
|
1902
|
-
readonly language: string;
|
|
1903
|
-
readonly locale: string;
|
|
1904
|
-
readonly timezone: string;
|
|
1905
|
-
}
|
|
1906
|
-
interface OrganizationReference {
|
|
1907
|
-
readonly discriminator: 'organization_reference';
|
|
1908
|
-
readonly id: string;
|
|
1909
|
-
}
|
|
1910
|
-
interface OrganizationSummary {
|
|
1911
|
-
readonly id: string;
|
|
1912
|
-
readonly name: string;
|
|
1913
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
1914
|
-
}
|
|
1915
|
-
interface PartnerReference {
|
|
1916
|
-
readonly id: string;
|
|
1917
|
-
}
|
|
1918
|
-
interface Price {
|
|
1919
|
-
readonly amount: number;
|
|
1920
|
-
readonly currency: string;
|
|
1921
|
-
readonly label: string;
|
|
1922
|
-
}
|
|
1923
|
-
interface PriceForm {
|
|
1924
|
-
readonly amount: number;
|
|
1925
|
-
readonly currency: string;
|
|
1926
|
-
}
|
|
1927
|
-
interface PriceSourceCatalog {
|
|
1928
|
-
readonly discriminator: 'catalog';
|
|
1929
|
-
readonly price: io.flow.common.v0.models.Money;
|
|
1930
|
-
}
|
|
1931
|
-
interface PriceSourcePriceBook {
|
|
1932
|
-
readonly discriminator: 'price_book';
|
|
1933
|
-
readonly price: io.flow.common.v0.models.Money;
|
|
1934
|
-
readonly includes: io.flow.common.v0.models.IncludedLevies;
|
|
1935
|
-
readonly price_book_reference: io.flow.common.v0.models.PriceSourcePriceBookReference;
|
|
1936
|
-
}
|
|
1937
|
-
interface PriceSourcePriceBookReference {
|
|
1938
|
-
readonly id: string;
|
|
1939
|
-
readonly key: string;
|
|
1940
|
-
}
|
|
1941
|
-
interface PriceSourceProvided {
|
|
1942
|
-
readonly discriminator: 'provided';
|
|
1943
|
-
readonly price: io.flow.common.v0.models.Money;
|
|
1944
|
-
}
|
|
1945
|
-
interface PriceWithBase {
|
|
1946
|
-
readonly currency: string;
|
|
1947
|
-
readonly amount: number;
|
|
1948
|
-
readonly label: string;
|
|
1949
|
-
readonly base?: io.flow.common.v0.models.Price;
|
|
1950
|
-
}
|
|
1951
|
-
interface RepeatDaily {
|
|
1952
|
-
readonly discriminator: 'repeat_daily';
|
|
1953
|
-
readonly interval: number;
|
|
1954
|
-
}
|
|
1955
|
-
interface RepeatHourly {
|
|
1956
|
-
readonly discriminator: 'repeat_hourly';
|
|
1957
|
-
readonly interval: number;
|
|
1958
|
-
}
|
|
1959
|
-
interface RepeatMonthly {
|
|
1960
|
-
readonly discriminator: 'repeat_monthly';
|
|
1961
|
-
readonly interval: number;
|
|
1962
|
-
readonly days: number[];
|
|
1963
|
-
}
|
|
1964
|
-
interface RepeatWeekly {
|
|
1965
|
-
readonly discriminator: 'repeat_weekly';
|
|
1966
|
-
readonly interval: number;
|
|
1967
|
-
readonly days_of_week: io.flow.common.v0.enums.DayOfWeek[];
|
|
1968
|
-
}
|
|
1969
|
-
interface Rounding {
|
|
1970
|
-
readonly type: io.flow.common.v0.enums.RoundingType;
|
|
1971
|
-
readonly method: io.flow.common.v0.enums.RoundingMethod;
|
|
1972
|
-
readonly value: number;
|
|
1973
|
-
}
|
|
1974
|
-
interface Schedule {
|
|
1975
|
-
readonly calendar?: io.flow.common.v0.enums.Calendar;
|
|
1976
|
-
readonly holiday: io.flow.common.v0.enums.HolidayCalendar;
|
|
1977
|
-
readonly exception: io.flow.common.v0.models.Exception[];
|
|
1978
|
-
readonly cutoff?: string;
|
|
1979
|
-
readonly min_lead_time?: number;
|
|
1980
|
-
readonly max_lead_time?: number;
|
|
1981
|
-
}
|
|
1982
|
-
interface SessionReference {
|
|
1983
|
-
readonly id: string;
|
|
1984
|
-
}
|
|
1985
|
-
interface User {
|
|
1986
|
-
readonly discriminator: 'user';
|
|
1987
|
-
readonly id: string;
|
|
1988
|
-
readonly email?: string;
|
|
1989
|
-
readonly name: io.flow.common.v0.models.Name;
|
|
1990
|
-
readonly status: io.flow.common.v0.enums.UserStatus;
|
|
1991
|
-
}
|
|
1992
|
-
interface UserReference {
|
|
1993
|
-
readonly discriminator: 'user_reference';
|
|
1994
|
-
readonly id: string;
|
|
1995
|
-
}
|
|
1996
|
-
interface Zone {
|
|
1997
|
-
readonly postals?: string[];
|
|
1998
|
-
readonly provinces?: string[];
|
|
1999
|
-
readonly country: string;
|
|
2000
|
-
}
|
|
2001
|
-
}
|
|
2002
|
-
declare namespace io.flow.common.v0.unions {
|
|
2003
|
-
type DiscountOffer = io.flow.common.v0.models.DiscountOfferFixed | io.flow.common.v0.models.DiscountOfferPercent;
|
|
2004
|
-
type ExpandableOrganization = io.flow.common.v0.models.Organization | io.flow.common.v0.models.OrganizationReference;
|
|
2005
|
-
type ExpandableUser = io.flow.common.v0.models.User | io.flow.common.v0.models.UserReference;
|
|
2006
|
-
type InputSpecificationLimitation = io.flow.common.v0.models.InputSpecificationLimitationMax;
|
|
2007
|
-
type PriceSource = io.flow.common.v0.models.PriceSourcePriceBook | io.flow.common.v0.models.PriceSourceCatalog | io.flow.common.v0.models.PriceSourceProvided;
|
|
2008
|
-
type RepeatSchedule = io.flow.common.v0.models.RepeatHourly | io.flow.common.v0.models.RepeatDaily | io.flow.common.v0.models.RepeatWeekly | io.flow.common.v0.models.RepeatMonthly;
|
|
2009
|
-
}
|
|
2010
|
-
declare namespace io.flow.token.v0.models {
|
|
2011
|
-
interface ChannelToken {
|
|
2012
|
-
readonly discriminator: 'channel_token';
|
|
2013
|
-
readonly id: string;
|
|
2014
|
-
readonly channel: io.flow.common.v0.models.ChannelReference;
|
|
2015
|
-
readonly user: io.flow.common.v0.models.UserReference;
|
|
2016
|
-
readonly partial: string;
|
|
2017
|
-
readonly cleartext?: string;
|
|
2018
|
-
readonly created_at: string;
|
|
2019
|
-
readonly description?: string;
|
|
2020
|
-
}
|
|
2021
|
-
interface ChannelTokenForm {
|
|
2022
|
-
readonly channel_id: string;
|
|
2023
|
-
readonly description?: string;
|
|
2024
|
-
}
|
|
2025
|
-
interface ChannelTokenReference {
|
|
2026
|
-
readonly discriminator: 'channel_token_reference';
|
|
2027
|
-
readonly id: string;
|
|
2028
|
-
readonly channel: io.flow.common.v0.models.ChannelReference;
|
|
2029
|
-
readonly user: io.flow.common.v0.models.UserReference;
|
|
2030
|
-
}
|
|
2031
|
-
interface Cleartext {
|
|
2032
|
-
readonly value: string;
|
|
2033
|
-
}
|
|
2034
|
-
interface OrganizationToken {
|
|
2035
|
-
readonly discriminator: 'organization_token';
|
|
2036
|
-
readonly id: string;
|
|
2037
|
-
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
2038
|
-
readonly user: io.flow.common.v0.models.UserReference;
|
|
2039
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2040
|
-
readonly partial: string;
|
|
2041
|
-
readonly created_at: string;
|
|
2042
|
-
readonly description?: string;
|
|
2043
|
-
}
|
|
2044
|
-
interface OrganizationTokenForm {
|
|
2045
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2046
|
-
readonly description?: string;
|
|
2047
|
-
}
|
|
2048
|
-
interface OrganizationTokenFormV2 {
|
|
2049
|
-
readonly organization_id: string;
|
|
2050
|
-
readonly description?: string;
|
|
2051
|
-
}
|
|
2052
|
-
interface OrganizationTokenReference {
|
|
2053
|
-
readonly discriminator: 'organization_token_reference';
|
|
2054
|
-
readonly id: string;
|
|
2055
|
-
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
2056
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2057
|
-
readonly user: io.flow.common.v0.models.UserReference;
|
|
2058
|
-
}
|
|
2059
|
-
interface OrganizationTokenV2 {
|
|
2060
|
-
readonly discriminator: 'organization_token_v2';
|
|
2061
|
-
readonly id: string;
|
|
2062
|
-
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
2063
|
-
readonly user: io.flow.common.v0.models.UserReference;
|
|
2064
|
-
readonly partial: string;
|
|
2065
|
-
readonly cleartext?: string;
|
|
2066
|
-
readonly created_at: string;
|
|
2067
|
-
readonly description?: string;
|
|
2068
|
-
}
|
|
2069
|
-
interface OrganizationTokenV2Reference {
|
|
2070
|
-
readonly discriminator: 'organization_token_v2_reference';
|
|
2071
|
-
readonly id: string;
|
|
2072
|
-
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
2073
|
-
}
|
|
2074
|
-
interface PartnerToken {
|
|
2075
|
-
readonly discriminator: 'partner_token';
|
|
2076
|
-
readonly id: string;
|
|
2077
|
-
readonly partner: io.flow.token.v0.models.TokenPartnerReference;
|
|
2078
|
-
readonly user: io.flow.common.v0.models.UserReference;
|
|
2079
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2080
|
-
readonly partial: string;
|
|
2081
|
-
readonly created_at: string;
|
|
2082
|
-
readonly description?: string;
|
|
2083
|
-
}
|
|
2084
|
-
interface PartnerTokenForm {
|
|
2085
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2086
|
-
readonly description?: string;
|
|
2087
|
-
}
|
|
2088
|
-
interface PartnerTokenReference {
|
|
2089
|
-
readonly discriminator: 'partner_token_reference';
|
|
2090
|
-
readonly id: string;
|
|
2091
|
-
readonly partner: io.flow.token.v0.models.TokenPartnerReference;
|
|
2092
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2093
|
-
readonly user: io.flow.common.v0.models.UserReference;
|
|
2094
|
-
}
|
|
2095
|
-
interface TokenAuthenticationForm {
|
|
2096
|
-
readonly token: string;
|
|
2097
|
-
}
|
|
2098
|
-
interface TokenPartnerReference {
|
|
2099
|
-
readonly id: string;
|
|
2100
|
-
}
|
|
2101
|
-
interface TokenRbacAuthenticationForm {
|
|
2102
|
-
readonly token: string;
|
|
2103
|
-
readonly method: string;
|
|
2104
|
-
readonly path_pattern: string;
|
|
2105
|
-
readonly path: string;
|
|
2106
|
-
}
|
|
2107
|
-
interface TokenValidation {
|
|
2108
|
-
readonly status: string;
|
|
2109
|
-
}
|
|
2110
|
-
interface TokenValidationForm {
|
|
2111
|
-
readonly token: string;
|
|
2112
|
-
}
|
|
2113
|
-
}
|
|
2114
|
-
declare namespace io.flow.token.v0.unions {
|
|
2115
|
-
type Token = io.flow.token.v0.models.ChannelToken | io.flow.token.v0.models.OrganizationToken | io.flow.token.v0.models.OrganizationTokenV2 | io.flow.token.v0.models.PartnerToken;
|
|
2116
|
-
type TokenReference = io.flow.token.v0.models.ChannelTokenReference | io.flow.token.v0.models.OrganizationTokenReference | io.flow.token.v0.models.OrganizationTokenV2Reference | io.flow.token.v0.models.PartnerTokenReference;
|
|
2117
|
-
}
|
|
2118
|
-
declare namespace io.flow.error.v0.enums {
|
|
2119
|
-
type GenericErrorCode = 'generic_error' | 'client_error' | 'server_error';
|
|
2120
|
-
}
|
|
2121
|
-
declare namespace io.flow.error.v0.models {
|
|
2122
|
-
interface GenericError {
|
|
2123
|
-
readonly code: io.flow.error.v0.enums.GenericErrorCode;
|
|
2124
|
-
readonly messages: string[];
|
|
2125
|
-
}
|
|
2126
|
-
}
|
|
2127
|
-
declare namespace io.flow.token.internal.v0.models {
|
|
2128
|
-
interface ChannelTokenForm {
|
|
2129
|
-
readonly channel_id: string;
|
|
2130
|
-
readonly description?: string;
|
|
2131
|
-
}
|
|
2132
|
-
}
|
|
2133
1584
|
declare namespace io.flow.apple.pay.v0.enums {
|
|
2134
1585
|
type ApplePayContactField = 'email' | 'name' | 'phone' | 'postal_address' | 'phonetic_name';
|
|
2135
1586
|
type ApplePayLineItemType = 'final' | 'pending';
|
|
@@ -2219,6 +1670,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2219
1670
|
type CardType = 'american_express' | 'cartes_bancaires' | 'china_union_pay' | 'dankort' | 'diners_club' | 'discover' | 'jcb' | 'maestro' | 'mastercard' | 'visa';
|
|
2220
1671
|
type CenterCapability = 'international' | 'domestic' | 'crossdock' | 'commercial_invoice';
|
|
2221
1672
|
type ChangeType = 'insert' | 'update' | 'delete';
|
|
1673
|
+
type ChannelCurrencyCapability = 'payment_authorizations' | 'settlement_currency';
|
|
2222
1674
|
type ConsumerInvoiceCustomerType = 'business_eu_verified' | 'business_non_verified' | 'individual';
|
|
2223
1675
|
type ConsumerInvoiceDocumentType = 'pdf';
|
|
2224
1676
|
type ConsumerInvoiceStatus = 'pending' | 'available' | 'invalid';
|
|
@@ -2253,7 +1705,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2253
1705
|
type ExperienceStatus = 'draft' | 'active' | 'archiving' | 'archived';
|
|
2254
1706
|
type ExportStatus = 'created' | 'processing' | 'completed' | 'failed';
|
|
2255
1707
|
type ExporterOfRecord = 'flow' | 'organization';
|
|
2256
|
-
type FeeDeductionType = 'mor' | '
|
|
1708
|
+
type FeeDeductionType = 'duty_guarantee' | 'mor' | 'fraud' | 'fx' | 'processing' | 'rate_lock' | 'transfer';
|
|
2257
1709
|
type FlowBehavior = 'view_consumer_data';
|
|
2258
1710
|
type FlowEntity = 'flow-usa' | 'flow-irl' | 'flow-can';
|
|
2259
1711
|
type FlowRole = 'organization_admin' | 'organization_merchant' | 'organization_customer_service' | 'organization_fulfillment' | 'organization_marketing' | 'organization_finance' | 'flow_operations' | 'channel_admin' | 'channel_organization_admin';
|
|
@@ -2373,7 +1825,7 @@ declare namespace io.flow.v0.enums {
|
|
|
2373
1825
|
type TrackingStatus = 'label_created' | 'pending' | 'info_received' | 'picked_up' | 'in_transit' | 'out_for_delivery' | 'attempt_fail' | 'delivered' | 'exception' | 'returned' | 'expired';
|
|
2374
1826
|
type TradeAgreementName = 'USMCA' | 'T-MEC' | 'CUSMA' | 'TCA';
|
|
2375
1827
|
type TradeAgreementStatus = 'supported' | 'not_supported';
|
|
2376
|
-
type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'shipping_label' | '
|
|
1828
|
+
type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'shipping_label' | 'platform_fee' | 'other_adjustment' | 'tax_adjustment' | 'channel' | 'order' | 'virtual_card_capture' | 'virtual_card_refund';
|
|
2377
1829
|
type UnitOfMeasurement = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'cubic_inch' | 'cubic_meter' | 'gram' | 'kilogram' | 'meter' | 'ounce' | 'pound';
|
|
2378
1830
|
type UnitOfTime = 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute';
|
|
2379
1831
|
type UpdatePolicy = 'auto' | 'queue' | 'discard';
|
|
@@ -3490,12 +2942,24 @@ declare namespace io.flow.v0.models {
|
|
|
3490
2942
|
readonly type: io.flow.v0.enums.ChangeType;
|
|
3491
2943
|
readonly center: io.flow.v0.models.Center;
|
|
3492
2944
|
}
|
|
2945
|
+
interface Channel {
|
|
2946
|
+
readonly id: string;
|
|
2947
|
+
readonly name: string;
|
|
2948
|
+
readonly environment: io.flow.v0.enums.Environment;
|
|
2949
|
+
readonly organization_id_prefix?: string;
|
|
2950
|
+
}
|
|
3493
2951
|
interface ChannelAuthorization {
|
|
3494
2952
|
readonly placeholder?: string;
|
|
3495
2953
|
}
|
|
3496
2954
|
interface ChannelAuthorizationForm {
|
|
3497
2955
|
readonly channel_id: string;
|
|
3498
2956
|
}
|
|
2957
|
+
interface ChannelCurrency {
|
|
2958
|
+
readonly id: string;
|
|
2959
|
+
readonly currency: string;
|
|
2960
|
+
readonly channel: io.flow.v0.models.ChannelReference;
|
|
2961
|
+
readonly capabilities: io.flow.v0.enums.ChannelCurrencyCapability[];
|
|
2962
|
+
}
|
|
3499
2963
|
interface ChannelCurrencyDeleted {
|
|
3500
2964
|
readonly discriminator: 'channel_currency_deleted';
|
|
3501
2965
|
readonly event_id: string;
|
|
@@ -3506,7 +2970,7 @@ declare namespace io.flow.v0.models {
|
|
|
3506
2970
|
readonly discriminator: 'channel_currency_upserted';
|
|
3507
2971
|
readonly event_id: string;
|
|
3508
2972
|
readonly timestamp: string;
|
|
3509
|
-
readonly channel_currency: io.flow.
|
|
2973
|
+
readonly channel_currency: io.flow.v0.models.ChannelCurrency;
|
|
3510
2974
|
}
|
|
3511
2975
|
interface ChannelDeleted {
|
|
3512
2976
|
readonly discriminator: 'channel_deleted';
|
|
@@ -3586,7 +3050,7 @@ declare namespace io.flow.v0.models {
|
|
|
3586
3050
|
readonly discriminator: 'channel_upserted';
|
|
3587
3051
|
readonly event_id: string;
|
|
3588
3052
|
readonly timestamp: string;
|
|
3589
|
-
readonly channel: io.flow.
|
|
3053
|
+
readonly channel: io.flow.v0.models.Channel;
|
|
3590
3054
|
}
|
|
3591
3055
|
interface ChannelViesRegistration {
|
|
3592
3056
|
readonly id: string;
|
|
@@ -6279,7 +5743,7 @@ declare namespace io.flow.v0.models {
|
|
|
6279
5743
|
interface OnboardingMerchantTime {
|
|
6280
5744
|
readonly hour_of_day: string;
|
|
6281
5745
|
readonly minute_of_hour: string;
|
|
6282
|
-
readonly timezone
|
|
5746
|
+
readonly timezone?: string;
|
|
6283
5747
|
}
|
|
6284
5748
|
interface OnlineAuthorization {
|
|
6285
5749
|
readonly discriminator: 'online_authorization';
|
|
@@ -10601,8 +10065,11 @@ export declare type CenterSummary = io.flow.v0.models.CenterSummary;
|
|
|
10601
10065
|
export declare type CenterUpserted = io.flow.v0.models.CenterUpserted;
|
|
10602
10066
|
export declare type CenterVersion = io.flow.v0.models.CenterVersion;
|
|
10603
10067
|
export declare type ChangeType = io.flow.v0.enums.ChangeType;
|
|
10068
|
+
export declare type Channel = io.flow.v0.models.Channel;
|
|
10604
10069
|
export declare type ChannelAuthorization = io.flow.v0.models.ChannelAuthorization;
|
|
10605
10070
|
export declare type ChannelAuthorizationForm = io.flow.v0.models.ChannelAuthorizationForm;
|
|
10071
|
+
export declare type ChannelCurrency = io.flow.v0.models.ChannelCurrency;
|
|
10072
|
+
export declare type ChannelCurrencyCapability = io.flow.v0.enums.ChannelCurrencyCapability;
|
|
10606
10073
|
export declare type ChannelCurrencyDeleted = io.flow.v0.models.ChannelCurrencyDeleted;
|
|
10607
10074
|
export declare type ChannelCurrencyUpserted = io.flow.v0.models.ChannelCurrencyUpserted;
|
|
10608
10075
|
export declare type ChannelDeleted = io.flow.v0.models.ChannelDeleted;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/types",
|
|
3
|
-
"version": "11.24.
|
|
3
|
+
"version": "11.24.15",
|
|
4
4
|
"description": "TypeScript type definitions for custom types found in Flow API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"maintainers": [
|
|
26
26
|
"Christian Muñoz <christian.munoz@flow.io>"
|
|
27
27
|
],
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "7b2e429840b21cd751e228d0cea9c2845fbedb25"
|
|
29
29
|
}
|