@commercetools/importapi-sdk 5.20.0 → 6.1.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/CHANGELOG.md +17 -0
- package/README.md +9 -11
- package/dist/commercetools-importapi-sdk.browser.cjs.js +615 -0
- package/dist/commercetools-importapi-sdk.browser.esm.js +591 -1
- package/dist/commercetools-importapi-sdk.cjs.dev.js +615 -0
- package/dist/commercetools-importapi-sdk.cjs.prod.js +615 -0
- package/dist/commercetools-importapi-sdk.esm.js +591 -1
- package/dist/declarations/src/generated/models/common.d.ts +109 -22
- package/dist/declarations/src/generated/models/common.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/customers.d.ts +4 -0
- package/dist/declarations/src/generated/models/customers.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/customfields.d.ts +29 -22
- package/dist/declarations/src/generated/models/customfields.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/errors.d.ts +36 -24
- package/dist/declarations/src/generated/models/errors.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/importoperations.d.ts +4 -0
- package/dist/declarations/src/generated/models/importoperations.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/importrequests.d.ts +23 -14
- package/dist/declarations/src/generated/models/importrequests.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/order-patches.d.ts +6 -0
- package/dist/declarations/src/generated/models/order-patches.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/orders.d.ts +82 -5
- package/dist/declarations/src/generated/models/orders.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/productdrafts.d.ts +1 -1
- package/dist/declarations/src/generated/models/products.d.ts +9 -3
- package/dist/declarations/src/generated/models/products.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/producttypes.d.ts +29 -13
- package/dist/declarations/src/generated/models/producttypes.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/productvariants.d.ts +36 -22
- package/dist/declarations/src/generated/models/productvariants.d.ts.map +1 -1
- package/dist/declarations/src/generated/models/types.d.ts +71 -12
- package/dist/declarations/src/generated/models/types.d.ts.map +1 -1
- package/dist/declarations/src/generated/shared/utils/middleware.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1557,6 +1557,596 @@ class ApiRoot {
|
|
|
1557
1557
|
}
|
|
1558
1558
|
}
|
|
1559
1559
|
|
|
1560
|
+
/**
|
|
1561
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1562
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1563
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1564
|
+
*/
|
|
1565
|
+
|
|
1566
|
+
/**
|
|
1567
|
+
* The width and height of the Asset Source.
|
|
1568
|
+
*/
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* An AssetSource is a representation of an Asset in a specific format, for example, a video in a certain encoding or an image in a certain resolution.
|
|
1572
|
+
*/
|
|
1573
|
+
|
|
1574
|
+
/**
|
|
1575
|
+
* An Image uploaded to commercetools Composable Commerce is stored in a Content Delivery Network and it's available in several pre-defined sizes. If you already have an image stored on an external service, you can save the URL when creating a new product or adding a variant, or you can add it later.
|
|
1576
|
+
*/
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
* A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
|
|
1580
|
+
* ```json
|
|
1581
|
+
* {
|
|
1582
|
+
* "de": "Hundefutter",
|
|
1583
|
+
* "en": "dog food"
|
|
1584
|
+
* }
|
|
1585
|
+
* ```
|
|
1586
|
+
*
|
|
1587
|
+
*/
|
|
1588
|
+
|
|
1589
|
+
/**
|
|
1590
|
+
* A representation of the resource to import.
|
|
1591
|
+
* Import resources are similar to draft types, but they only support key references.
|
|
1592
|
+
* In general, import resources are more granular then regular resources.
|
|
1593
|
+
* They are optimized for incremental updates and therefore have a slightly different structure.
|
|
1594
|
+
*
|
|
1595
|
+
*/
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
* References a resource by key.
|
|
1599
|
+
*/
|
|
1600
|
+
|
|
1601
|
+
/**
|
|
1602
|
+
* References a cart by key.
|
|
1603
|
+
*/
|
|
1604
|
+
|
|
1605
|
+
/**
|
|
1606
|
+
* References a cart discount by key.
|
|
1607
|
+
*/
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* References a category by key.
|
|
1611
|
+
*/
|
|
1612
|
+
|
|
1613
|
+
/**
|
|
1614
|
+
* References a channel by key.
|
|
1615
|
+
*/
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
* References a customer by key.
|
|
1619
|
+
*/
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* References a customer group by key.
|
|
1623
|
+
*/
|
|
1624
|
+
|
|
1625
|
+
/**
|
|
1626
|
+
* References a discount code by key.
|
|
1627
|
+
*/
|
|
1628
|
+
|
|
1629
|
+
/**
|
|
1630
|
+
* References an order by key.
|
|
1631
|
+
*/
|
|
1632
|
+
|
|
1633
|
+
/**
|
|
1634
|
+
* References a payment by key.
|
|
1635
|
+
*/
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* References a price by key.
|
|
1639
|
+
*/
|
|
1640
|
+
|
|
1641
|
+
/**
|
|
1642
|
+
* References a product by key.
|
|
1643
|
+
*/
|
|
1644
|
+
|
|
1645
|
+
/**
|
|
1646
|
+
* References a product discount by key.
|
|
1647
|
+
*/
|
|
1648
|
+
|
|
1649
|
+
/**
|
|
1650
|
+
* References a product type by key.
|
|
1651
|
+
*/
|
|
1652
|
+
|
|
1653
|
+
/**
|
|
1654
|
+
* References a product variant by key.
|
|
1655
|
+
*/
|
|
1656
|
+
|
|
1657
|
+
/**
|
|
1658
|
+
* References a shipping method by key.
|
|
1659
|
+
*/
|
|
1660
|
+
|
|
1661
|
+
/**
|
|
1662
|
+
* References a state by key.
|
|
1663
|
+
*/
|
|
1664
|
+
|
|
1665
|
+
/**
|
|
1666
|
+
* References a store by key.
|
|
1667
|
+
*/
|
|
1668
|
+
|
|
1669
|
+
/**
|
|
1670
|
+
* References a tax category by key.
|
|
1671
|
+
*/
|
|
1672
|
+
|
|
1673
|
+
/**
|
|
1674
|
+
* References a type by key.
|
|
1675
|
+
*/
|
|
1676
|
+
|
|
1677
|
+
/**
|
|
1678
|
+
* References a key value document by key.
|
|
1679
|
+
*/
|
|
1680
|
+
|
|
1681
|
+
/**
|
|
1682
|
+
* References a resource which could not be resolved.
|
|
1683
|
+
*/
|
|
1684
|
+
|
|
1685
|
+
let MoneyTypeValues = /*#__PURE__*/function (MoneyTypeValues) {
|
|
1686
|
+
MoneyTypeValues["CentPrecision"] = "centPrecision";
|
|
1687
|
+
MoneyTypeValues["HighPrecision"] = "highPrecision";
|
|
1688
|
+
return MoneyTypeValues;
|
|
1689
|
+
}({});
|
|
1690
|
+
|
|
1691
|
+
/**
|
|
1692
|
+
* A price tier is selected instead of the default price when a certain quantity of the ProductVariant is added to a cart and ordered.
|
|
1693
|
+
*
|
|
1694
|
+
*/
|
|
1695
|
+
|
|
1696
|
+
/**
|
|
1697
|
+
* The resource types that can be imported.
|
|
1698
|
+
*
|
|
1699
|
+
*/
|
|
1700
|
+
let ImportResourceTypeValues = /*#__PURE__*/function (ImportResourceTypeValues) {
|
|
1701
|
+
ImportResourceTypeValues["Category"] = "category";
|
|
1702
|
+
ImportResourceTypeValues["Customer"] = "customer";
|
|
1703
|
+
ImportResourceTypeValues["DiscountCode"] = "discount-code";
|
|
1704
|
+
ImportResourceTypeValues["Inventory"] = "inventory";
|
|
1705
|
+
ImportResourceTypeValues["Order"] = "order";
|
|
1706
|
+
ImportResourceTypeValues["OrderPatch"] = "order-patch";
|
|
1707
|
+
ImportResourceTypeValues["Price"] = "price";
|
|
1708
|
+
ImportResourceTypeValues["Product"] = "product";
|
|
1709
|
+
ImportResourceTypeValues["ProductDraft"] = "product-draft";
|
|
1710
|
+
ImportResourceTypeValues["ProductType"] = "product-type";
|
|
1711
|
+
ImportResourceTypeValues["ProductVariant"] = "product-variant";
|
|
1712
|
+
ImportResourceTypeValues["ProductVariantPatch"] = "product-variant-patch";
|
|
1713
|
+
ImportResourceTypeValues["StandalonePrice"] = "standalone-price";
|
|
1714
|
+
ImportResourceTypeValues["Type"] = "type";
|
|
1715
|
+
return ImportResourceTypeValues;
|
|
1716
|
+
}({});
|
|
1717
|
+
/**
|
|
1718
|
+
* The type of the referenced resource.
|
|
1719
|
+
*
|
|
1720
|
+
*/
|
|
1721
|
+
let ReferenceTypeValues = /*#__PURE__*/function (ReferenceTypeValues) {
|
|
1722
|
+
ReferenceTypeValues["Cart"] = "cart";
|
|
1723
|
+
ReferenceTypeValues["CartDiscount"] = "cart-discount";
|
|
1724
|
+
ReferenceTypeValues["Category"] = "category";
|
|
1725
|
+
ReferenceTypeValues["Channel"] = "channel";
|
|
1726
|
+
ReferenceTypeValues["Customer"] = "customer";
|
|
1727
|
+
ReferenceTypeValues["CustomerGroup"] = "customer-group";
|
|
1728
|
+
ReferenceTypeValues["DiscountCode"] = "discount-code";
|
|
1729
|
+
ReferenceTypeValues["KeyValueDocument"] = "key-value-document";
|
|
1730
|
+
ReferenceTypeValues["Order"] = "order";
|
|
1731
|
+
ReferenceTypeValues["Payment"] = "payment";
|
|
1732
|
+
ReferenceTypeValues["Price"] = "price";
|
|
1733
|
+
ReferenceTypeValues["Product"] = "product";
|
|
1734
|
+
ReferenceTypeValues["ProductDiscount"] = "product-discount";
|
|
1735
|
+
ReferenceTypeValues["ProductType"] = "product-type";
|
|
1736
|
+
ReferenceTypeValues["ProductVariant"] = "product-variant";
|
|
1737
|
+
ReferenceTypeValues["ShippingMethod"] = "shipping-method";
|
|
1738
|
+
ReferenceTypeValues["State"] = "state";
|
|
1739
|
+
ReferenceTypeValues["Store"] = "store";
|
|
1740
|
+
ReferenceTypeValues["TaxCategory"] = "tax-category";
|
|
1741
|
+
ReferenceTypeValues["Type"] = "type";
|
|
1742
|
+
return ReferenceTypeValues;
|
|
1743
|
+
}({});
|
|
1744
|
+
/**
|
|
1745
|
+
* Every [Import Operation](ctp:import:type:ImportOperation) is assigned one of the following states.
|
|
1746
|
+
*
|
|
1747
|
+
*/
|
|
1748
|
+
let ProcessingStateValues = /*#__PURE__*/function (ProcessingStateValues) {
|
|
1749
|
+
ProcessingStateValues["Canceled"] = "canceled";
|
|
1750
|
+
ProcessingStateValues["Imported"] = "imported";
|
|
1751
|
+
ProcessingStateValues["Processing"] = "processing";
|
|
1752
|
+
ProcessingStateValues["Rejected"] = "rejected";
|
|
1753
|
+
ProcessingStateValues["Unresolved"] = "unresolved";
|
|
1754
|
+
ProcessingStateValues["ValidationFailed"] = "validationFailed";
|
|
1755
|
+
ProcessingStateValues["WaitForMasterVariant"] = "waitForMasterVariant";
|
|
1756
|
+
return ProcessingStateValues;
|
|
1757
|
+
}({});
|
|
1758
|
+
let ProductPriceModeEnumValues = /*#__PURE__*/function (ProductPriceModeEnumValues) {
|
|
1759
|
+
ProductPriceModeEnumValues["Embedded"] = "Embedded";
|
|
1760
|
+
ProductPriceModeEnumValues["Standalone"] = "Standalone";
|
|
1761
|
+
return ProductPriceModeEnumValues;
|
|
1762
|
+
}({});
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1766
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1767
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1768
|
+
*/
|
|
1769
|
+
|
|
1770
|
+
let AuthenticationModeValues = /*#__PURE__*/function (AuthenticationModeValues) {
|
|
1771
|
+
AuthenticationModeValues["ExternalAuth"] = "ExternalAuth";
|
|
1772
|
+
AuthenticationModeValues["Password"] = "Password";
|
|
1773
|
+
return AuthenticationModeValues;
|
|
1774
|
+
}({});
|
|
1775
|
+
|
|
1776
|
+
/**
|
|
1777
|
+
* Different from [Address](/types#address) in that `key` is required and `id` is not supported.
|
|
1778
|
+
*
|
|
1779
|
+
*/
|
|
1780
|
+
|
|
1781
|
+
/**
|
|
1782
|
+
* The data representation for a Customer to be imported that is persisted as a [Customer](ctp:api:type:Customer) in the Project.
|
|
1783
|
+
*
|
|
1784
|
+
*/
|
|
1785
|
+
|
|
1786
|
+
/**
|
|
1787
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1788
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1789
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1790
|
+
*/
|
|
1791
|
+
|
|
1792
|
+
/**
|
|
1793
|
+
* Import Operation describes the import status of a specific resource.
|
|
1794
|
+
*
|
|
1795
|
+
*/
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* [PagedQueryResult](/../api/general-concepts#pagedqueryresult) for Import Operations.
|
|
1799
|
+
*
|
|
1800
|
+
*/
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* Describes the validation state of a newly created [ImportOperation](#importoperation).
|
|
1804
|
+
*
|
|
1805
|
+
*/
|
|
1806
|
+
let ImportOperationStateValues = /*#__PURE__*/function (ImportOperationStateValues) {
|
|
1807
|
+
ImportOperationStateValues["Processing"] = "processing";
|
|
1808
|
+
ImportOperationStateValues["ValidationFailed"] = "validationFailed";
|
|
1809
|
+
return ImportOperationStateValues;
|
|
1810
|
+
}({});
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1814
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1815
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1816
|
+
*/
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* Maps to `ReturnItem.shipmentState`
|
|
1820
|
+
*/
|
|
1821
|
+
let ReturnShipmentStateValues = /*#__PURE__*/function (ReturnShipmentStateValues) {
|
|
1822
|
+
ReturnShipmentStateValues["Advised"] = "Advised";
|
|
1823
|
+
ReturnShipmentStateValues["BackInStock"] = "BackInStock";
|
|
1824
|
+
ReturnShipmentStateValues["Returned"] = "Returned";
|
|
1825
|
+
ReturnShipmentStateValues["Unusable"] = "Unusable";
|
|
1826
|
+
return ReturnShipmentStateValues;
|
|
1827
|
+
}({});
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* Order fields that needs to be added or updated.
|
|
1831
|
+
*
|
|
1832
|
+
*/
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* Representation for an update of an [Order](ctp:api:type:Order). Use this type to import updates for existing
|
|
1836
|
+
* [Orders](ctp:api:type:Order) in a Project.
|
|
1837
|
+
*
|
|
1838
|
+
*/
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1842
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1843
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1844
|
+
*/
|
|
1845
|
+
|
|
1846
|
+
/**
|
|
1847
|
+
* The item's state.
|
|
1848
|
+
*
|
|
1849
|
+
*/
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* The item's shipping target.
|
|
1853
|
+
*
|
|
1854
|
+
*/
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* Represents an individual Line Item in an Order. A line item is a snapshot of a product at the time it was added to the order.
|
|
1858
|
+
*
|
|
1859
|
+
* You cannot create an Order that includes line item operations that do not exist in the Project or have been deleted.
|
|
1860
|
+
* Products and Product Variants referenced by a line item must already exist in the Project.
|
|
1861
|
+
*
|
|
1862
|
+
*/
|
|
1863
|
+
|
|
1864
|
+
let ShippingRateTierTypeValues = /*#__PURE__*/function (ShippingRateTierTypeValues) {
|
|
1865
|
+
ShippingRateTierTypeValues["CartClassification"] = "CartClassification";
|
|
1866
|
+
ShippingRateTierTypeValues["CartScore"] = "CartScore";
|
|
1867
|
+
ShippingRateTierTypeValues["CartValue"] = "CartValue";
|
|
1868
|
+
return ShippingRateTierTypeValues;
|
|
1869
|
+
}({});
|
|
1870
|
+
let ShippingMethodStateValues = /*#__PURE__*/function (ShippingMethodStateValues) {
|
|
1871
|
+
ShippingMethodStateValues["DoesNotMatchCart"] = "DoesNotMatchCart";
|
|
1872
|
+
ShippingMethodStateValues["MatchesCart"] = "MatchesCart";
|
|
1873
|
+
return ShippingMethodStateValues;
|
|
1874
|
+
}({});
|
|
1875
|
+
|
|
1876
|
+
/**
|
|
1877
|
+
* Maps to an order's `shippingInfo` property. This field is usually populated by the cart associated with
|
|
1878
|
+
* the order, but when importing orders you must provide a draft representation as a part of the OrderImport.
|
|
1879
|
+
*
|
|
1880
|
+
*/
|
|
1881
|
+
|
|
1882
|
+
/**
|
|
1883
|
+
* Maps to `Order.taxMode`
|
|
1884
|
+
*/
|
|
1885
|
+
let TaxModeValues = /*#__PURE__*/function (TaxModeValues) {
|
|
1886
|
+
TaxModeValues["Disabled"] = "Disabled";
|
|
1887
|
+
TaxModeValues["External"] = "External";
|
|
1888
|
+
TaxModeValues["ExternalAmount"] = "ExternalAmount";
|
|
1889
|
+
TaxModeValues["Platform"] = "Platform";
|
|
1890
|
+
return TaxModeValues;
|
|
1891
|
+
}({});
|
|
1892
|
+
/**
|
|
1893
|
+
* Maps to `Order.orderState`.
|
|
1894
|
+
*/
|
|
1895
|
+
let OrderStateValues = /*#__PURE__*/function (OrderStateValues) {
|
|
1896
|
+
OrderStateValues["Cancelled"] = "Cancelled";
|
|
1897
|
+
OrderStateValues["Complete"] = "Complete";
|
|
1898
|
+
OrderStateValues["Confirmed"] = "Confirmed";
|
|
1899
|
+
OrderStateValues["Open"] = "Open";
|
|
1900
|
+
return OrderStateValues;
|
|
1901
|
+
}({});
|
|
1902
|
+
/**
|
|
1903
|
+
* Maps to `Order.shipmentState`.
|
|
1904
|
+
*/
|
|
1905
|
+
let ShipmentStateValues = /*#__PURE__*/function (ShipmentStateValues) {
|
|
1906
|
+
ShipmentStateValues["Backorder"] = "Backorder";
|
|
1907
|
+
ShipmentStateValues["Delayed"] = "Delayed";
|
|
1908
|
+
ShipmentStateValues["Partial"] = "Partial";
|
|
1909
|
+
ShipmentStateValues["Pending"] = "Pending";
|
|
1910
|
+
ShipmentStateValues["Ready"] = "Ready";
|
|
1911
|
+
ShipmentStateValues["Shipped"] = "Shipped";
|
|
1912
|
+
return ShipmentStateValues;
|
|
1913
|
+
}({});
|
|
1914
|
+
/**
|
|
1915
|
+
* Maps to `Order.paymentState`.
|
|
1916
|
+
*/
|
|
1917
|
+
let PaymentStateValues = /*#__PURE__*/function (PaymentStateValues) {
|
|
1918
|
+
PaymentStateValues["BalanceDue"] = "BalanceDue";
|
|
1919
|
+
PaymentStateValues["CreditOwed"] = "CreditOwed";
|
|
1920
|
+
PaymentStateValues["Failed"] = "Failed";
|
|
1921
|
+
PaymentStateValues["Paid"] = "Paid";
|
|
1922
|
+
PaymentStateValues["Pending"] = "Pending";
|
|
1923
|
+
return PaymentStateValues;
|
|
1924
|
+
}({});
|
|
1925
|
+
/**
|
|
1926
|
+
* Maps to `Order.inventoryMode`.
|
|
1927
|
+
*/
|
|
1928
|
+
let InventoryModeValues = /*#__PURE__*/function (InventoryModeValues) {
|
|
1929
|
+
InventoryModeValues["ReserveOnOrder"] = "ReserveOnOrder";
|
|
1930
|
+
InventoryModeValues["TrackOnly"] = "TrackOnly";
|
|
1931
|
+
return InventoryModeValues;
|
|
1932
|
+
}({});
|
|
1933
|
+
/**
|
|
1934
|
+
* Maps to `Order.taxRoundingMode`.
|
|
1935
|
+
*/
|
|
1936
|
+
let RoundingModeValues = /*#__PURE__*/function (RoundingModeValues) {
|
|
1937
|
+
RoundingModeValues["HalfDown"] = "HalfDown";
|
|
1938
|
+
RoundingModeValues["HalfEven"] = "HalfEven";
|
|
1939
|
+
RoundingModeValues["HalfUp"] = "HalfUp";
|
|
1940
|
+
return RoundingModeValues;
|
|
1941
|
+
}({});
|
|
1942
|
+
/**
|
|
1943
|
+
* Maps to `Order.taxCalculationMode`.
|
|
1944
|
+
*/
|
|
1945
|
+
let TaxCalculationModeValues = /*#__PURE__*/function (TaxCalculationModeValues) {
|
|
1946
|
+
TaxCalculationModeValues["LineItemLevel"] = "LineItemLevel";
|
|
1947
|
+
TaxCalculationModeValues["UnitPriceLevel"] = "UnitPriceLevel";
|
|
1948
|
+
return TaxCalculationModeValues;
|
|
1949
|
+
}({});
|
|
1950
|
+
/**
|
|
1951
|
+
* Maps to `Order.origin`.
|
|
1952
|
+
*/
|
|
1953
|
+
let CartOriginValues = /*#__PURE__*/function (CartOriginValues) {
|
|
1954
|
+
CartOriginValues["Customer"] = "Customer";
|
|
1955
|
+
CartOriginValues["Merchant"] = "Merchant";
|
|
1956
|
+
return CartOriginValues;
|
|
1957
|
+
}({});
|
|
1958
|
+
/**
|
|
1959
|
+
* Maps to `DiscountCodeInfo.state`
|
|
1960
|
+
*/
|
|
1961
|
+
let DiscountCodeStateValues = /*#__PURE__*/function (DiscountCodeStateValues) {
|
|
1962
|
+
DiscountCodeStateValues["ApplicationStoppedByPreviousDiscount"] = "ApplicationStoppedByPreviousDiscount";
|
|
1963
|
+
DiscountCodeStateValues["DoesNotMatchCart"] = "DoesNotMatchCart";
|
|
1964
|
+
DiscountCodeStateValues["MatchesCart"] = "MatchesCart";
|
|
1965
|
+
DiscountCodeStateValues["MaxApplicationReached"] = "MaxApplicationReached";
|
|
1966
|
+
DiscountCodeStateValues["NotActive"] = "NotActive";
|
|
1967
|
+
DiscountCodeStateValues["NotValid"] = "NotValid";
|
|
1968
|
+
return DiscountCodeStateValues;
|
|
1969
|
+
}({});
|
|
1970
|
+
let ShippingRateInputTypeValues = /*#__PURE__*/function (ShippingRateInputTypeValues) {
|
|
1971
|
+
ShippingRateInputTypeValues["Classification"] = "Classification";
|
|
1972
|
+
ShippingRateInputTypeValues["Score"] = "Score";
|
|
1973
|
+
return ShippingRateInputTypeValues;
|
|
1974
|
+
}({});
|
|
1975
|
+
|
|
1976
|
+
/**
|
|
1977
|
+
* The data representation for an Order to be imported that is persisted as an [Order](ctp:api:type:Order) in the Project.
|
|
1978
|
+
*
|
|
1979
|
+
* In commercetools, you can import an Order using the [Create Order by Import](/projects/orders-import#create-order-by-import) endpoint method instead of creating it from a Cart.
|
|
1980
|
+
*
|
|
1981
|
+
* An OrderImport is a snapshot of an order at the time it was imported.
|
|
1982
|
+
*
|
|
1983
|
+
*/
|
|
1984
|
+
|
|
1985
|
+
/**
|
|
1986
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1987
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
1988
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
1989
|
+
*/
|
|
1990
|
+
|
|
1991
|
+
let AttributeConstraintEnumValues = /*#__PURE__*/function (AttributeConstraintEnumValues) {
|
|
1992
|
+
AttributeConstraintEnumValues["CombinationUnique"] = "CombinationUnique";
|
|
1993
|
+
AttributeConstraintEnumValues["None"] = "None";
|
|
1994
|
+
AttributeConstraintEnumValues["SameForAll"] = "SameForAll";
|
|
1995
|
+
AttributeConstraintEnumValues["Unique"] = "Unique";
|
|
1996
|
+
return AttributeConstraintEnumValues;
|
|
1997
|
+
}({});
|
|
1998
|
+
let TextInputHintValues = /*#__PURE__*/function (TextInputHintValues) {
|
|
1999
|
+
TextInputHintValues["MultiLine"] = "MultiLine";
|
|
2000
|
+
TextInputHintValues["SingleLine"] = "SingleLine";
|
|
2001
|
+
return TextInputHintValues;
|
|
2002
|
+
}({});
|
|
2003
|
+
|
|
2004
|
+
/**
|
|
2005
|
+
* The data representation for a ProductType to be imported that is persisted as a [ProductType](ctp:api:type:ProductType) in the Project.
|
|
2006
|
+
*
|
|
2007
|
+
*/
|
|
2008
|
+
|
|
2009
|
+
/**
|
|
2010
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
2011
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
2012
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
2013
|
+
*/
|
|
2014
|
+
|
|
2015
|
+
/**
|
|
2016
|
+
* Provides a visual representation type for this field. It is only relevant for string-based field types like [CustomFieldStringType](ctp:import:type:CustomFieldStringType) and [CustomFieldLocalizedStringType](ctp:import:type:CustomFieldLocalizedStringType).
|
|
2017
|
+
*
|
|
2018
|
+
*/
|
|
2019
|
+
let TypeTextInputHintValues = /*#__PURE__*/function (TypeTextInputHintValues) {
|
|
2020
|
+
TypeTextInputHintValues["MultiLine"] = "MultiLine";
|
|
2021
|
+
TypeTextInputHintValues["SingleLine"] = "SingleLine";
|
|
2022
|
+
return TypeTextInputHintValues;
|
|
2023
|
+
}({});
|
|
2024
|
+
/**
|
|
2025
|
+
* IDs indicating the [type of resource](ctp:api:type:ResourceTypeId). Maps to `Type.resourceTypeIds`.
|
|
2026
|
+
*
|
|
2027
|
+
*/
|
|
2028
|
+
let ResourceTypeIdValues = /*#__PURE__*/function (ResourceTypeIdValues) {
|
|
2029
|
+
ResourceTypeIdValues["Address"] = "address";
|
|
2030
|
+
ResourceTypeIdValues["Asset"] = "asset";
|
|
2031
|
+
ResourceTypeIdValues["BusinessUnit"] = "business-unit";
|
|
2032
|
+
ResourceTypeIdValues["CartDiscount"] = "cart-discount";
|
|
2033
|
+
ResourceTypeIdValues["Category"] = "category";
|
|
2034
|
+
ResourceTypeIdValues["Channel"] = "channel";
|
|
2035
|
+
ResourceTypeIdValues["CustomLineItem"] = "custom-line-item";
|
|
2036
|
+
ResourceTypeIdValues["Customer"] = "customer";
|
|
2037
|
+
ResourceTypeIdValues["CustomerGroup"] = "customer-group";
|
|
2038
|
+
ResourceTypeIdValues["DiscountCode"] = "discount-code";
|
|
2039
|
+
ResourceTypeIdValues["InventoryEntry"] = "inventory-entry";
|
|
2040
|
+
ResourceTypeIdValues["LineItem"] = "line-item";
|
|
2041
|
+
ResourceTypeIdValues["Order"] = "order";
|
|
2042
|
+
ResourceTypeIdValues["OrderDelivery"] = "order-delivery";
|
|
2043
|
+
ResourceTypeIdValues["OrderEdit"] = "order-edit";
|
|
2044
|
+
ResourceTypeIdValues["OrderParcel"] = "order-parcel";
|
|
2045
|
+
ResourceTypeIdValues["OrderReturnItem"] = "order-return-item";
|
|
2046
|
+
ResourceTypeIdValues["Payment"] = "payment";
|
|
2047
|
+
ResourceTypeIdValues["PaymentInterfaceInteraction"] = "payment-interface-interaction";
|
|
2048
|
+
ResourceTypeIdValues["ProductPrice"] = "product-price";
|
|
2049
|
+
ResourceTypeIdValues["ProductSelection"] = "product-selection";
|
|
2050
|
+
ResourceTypeIdValues["Quote"] = "quote";
|
|
2051
|
+
ResourceTypeIdValues["Review"] = "review";
|
|
2052
|
+
ResourceTypeIdValues["Shipping"] = "shipping";
|
|
2053
|
+
ResourceTypeIdValues["ShippingMethod"] = "shipping-method";
|
|
2054
|
+
ResourceTypeIdValues["ShoppingList"] = "shopping-list";
|
|
2055
|
+
ResourceTypeIdValues["ShoppingListTextLineItem"] = "shopping-list-text-line-item";
|
|
2056
|
+
ResourceTypeIdValues["StandalonePrice"] = "standalone-price";
|
|
2057
|
+
ResourceTypeIdValues["Store"] = "store";
|
|
2058
|
+
ResourceTypeIdValues["Transaction"] = "transaction";
|
|
2059
|
+
return ResourceTypeIdValues;
|
|
2060
|
+
}({});
|
|
2061
|
+
|
|
2062
|
+
/**
|
|
2063
|
+
* Field type for Boolean values.
|
|
2064
|
+
*/
|
|
2065
|
+
|
|
2066
|
+
/**
|
|
2067
|
+
* Field type for [DateTime](ctp:api:type:DateTime) values.
|
|
2068
|
+
*/
|
|
2069
|
+
|
|
2070
|
+
/**
|
|
2071
|
+
* Field type for [Date](ctp:api:type:Date) values.
|
|
2072
|
+
*/
|
|
2073
|
+
|
|
2074
|
+
/**
|
|
2075
|
+
* Field type for enum values.
|
|
2076
|
+
*/
|
|
2077
|
+
|
|
2078
|
+
/**
|
|
2079
|
+
* Defines an allowed value of a [CustomFieldEnumType](ctp:import:type:CustomFieldEnumType) field.
|
|
2080
|
+
*/
|
|
2081
|
+
|
|
2082
|
+
/**
|
|
2083
|
+
* Field type for localized enum values.
|
|
2084
|
+
*/
|
|
2085
|
+
|
|
2086
|
+
/**
|
|
2087
|
+
* Defines an allowed value of a [CustomFieldLocalizedEnumType](ctp:import:type:CustomFieldLocalizedEnumType) field.
|
|
2088
|
+
*/
|
|
2089
|
+
|
|
2090
|
+
/**
|
|
2091
|
+
* Field type for [LocalizedString](ctp:api:type:LocalizedString) values.
|
|
2092
|
+
*/
|
|
2093
|
+
|
|
2094
|
+
/**
|
|
2095
|
+
* Field type for [CentPrecisionMoney](ctp:api:type:CentPrecisionMoney) values.
|
|
2096
|
+
*/
|
|
2097
|
+
|
|
2098
|
+
/**
|
|
2099
|
+
* Field type for number values.
|
|
2100
|
+
*/
|
|
2101
|
+
|
|
2102
|
+
/**
|
|
2103
|
+
* Field type for [Reference](ctp:api:type:Reference) values.
|
|
2104
|
+
*/
|
|
2105
|
+
|
|
2106
|
+
/**
|
|
2107
|
+
* Defines which resource type a [CustomFieldReferenceType](ctp:import:type:CustomFieldReferenceType) can reference.
|
|
2108
|
+
*/
|
|
2109
|
+
let CustomFieldReferenceValueValues = /*#__PURE__*/function (CustomFieldReferenceValueValues) {
|
|
2110
|
+
CustomFieldReferenceValueValues["AssociateRole"] = "associate-role";
|
|
2111
|
+
CustomFieldReferenceValueValues["BusinessUnit"] = "business-unit";
|
|
2112
|
+
CustomFieldReferenceValueValues["Cart"] = "cart";
|
|
2113
|
+
CustomFieldReferenceValueValues["Category"] = "category";
|
|
2114
|
+
CustomFieldReferenceValueValues["Channel"] = "channel";
|
|
2115
|
+
CustomFieldReferenceValueValues["Customer"] = "customer";
|
|
2116
|
+
CustomFieldReferenceValueValues["CustomerGroup"] = "customer-group";
|
|
2117
|
+
CustomFieldReferenceValueValues["KeyValueDocument"] = "key-value-document";
|
|
2118
|
+
CustomFieldReferenceValueValues["Order"] = "order";
|
|
2119
|
+
CustomFieldReferenceValueValues["Product"] = "product";
|
|
2120
|
+
CustomFieldReferenceValueValues["ProductType"] = "product-type";
|
|
2121
|
+
CustomFieldReferenceValueValues["Review"] = "review";
|
|
2122
|
+
CustomFieldReferenceValueValues["ShippingMethod"] = "shipping-method";
|
|
2123
|
+
CustomFieldReferenceValueValues["State"] = "state";
|
|
2124
|
+
CustomFieldReferenceValueValues["Zone"] = "zone";
|
|
2125
|
+
return CustomFieldReferenceValueValues;
|
|
2126
|
+
}({});
|
|
2127
|
+
|
|
2128
|
+
/**
|
|
2129
|
+
* Values of a SetType Custom Field are sets of values of the specified `elementType` (without duplicate elements).
|
|
2130
|
+
*/
|
|
2131
|
+
|
|
2132
|
+
/**
|
|
2133
|
+
* Field type for string values.
|
|
2134
|
+
*/
|
|
2135
|
+
|
|
2136
|
+
/**
|
|
2137
|
+
* Field type for [Time](ctp:api:type:Time) values.
|
|
2138
|
+
*/
|
|
2139
|
+
|
|
2140
|
+
/**
|
|
2141
|
+
* Defines a [Custom Field](/projects/custom-fields) and its meta-information. Maps to `Type.FieldDefinition`.
|
|
2142
|
+
*
|
|
2143
|
+
*/
|
|
2144
|
+
|
|
2145
|
+
/**
|
|
2146
|
+
* The data representation for a Type to be imported that is persisted as a [Type](ctp:api:type:Type) in the Project.
|
|
2147
|
+
*
|
|
2148
|
+
*/
|
|
2149
|
+
|
|
1560
2150
|
/**
|
|
1561
2151
|
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
1562
2152
|
* Please don't change this file manually but run `rmf-codegen generate <raml_file_path> -o <output_path> -t typescript_client` to update it.
|
|
@@ -1586,6 +2176,8 @@ function createApiBuilderFromCtpClient(ctpClient, baseUri) {
|
|
|
1586
2176
|
|
|
1587
2177
|
exports.ApiRequest = ApiRequest;
|
|
1588
2178
|
exports.ApiRoot = ApiRoot;
|
|
2179
|
+
exports.AttributeConstraintEnumValues = AttributeConstraintEnumValues;
|
|
2180
|
+
exports.AuthenticationModeValues = AuthenticationModeValues;
|
|
1589
2181
|
exports.ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder = ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder;
|
|
1590
2182
|
exports.ByProjectKeyCategoriesImportContainersRequestBuilder = ByProjectKeyCategoriesImportContainersRequestBuilder;
|
|
1591
2183
|
exports.ByProjectKeyCategoriesRequestBuilder = ByProjectKeyCategoriesRequestBuilder;
|
|
@@ -1635,6 +2227,29 @@ exports.ByProjectKeyStandalonePricesRequestBuilder = ByProjectKeyStandalonePrice
|
|
|
1635
2227
|
exports.ByProjectKeyTypesImportContainersByImportContainerKeyRequestBuilder = ByProjectKeyTypesImportContainersByImportContainerKeyRequestBuilder;
|
|
1636
2228
|
exports.ByProjectKeyTypesImportContainersRequestBuilder = ByProjectKeyTypesImportContainersRequestBuilder;
|
|
1637
2229
|
exports.ByProjectKeyTypesRequestBuilder = ByProjectKeyTypesRequestBuilder;
|
|
2230
|
+
exports.CartOriginValues = CartOriginValues;
|
|
2231
|
+
exports.CustomFieldReferenceValueValues = CustomFieldReferenceValueValues;
|
|
2232
|
+
exports.DiscountCodeStateValues = DiscountCodeStateValues;
|
|
2233
|
+
exports.ImportOperationStateValues = ImportOperationStateValues;
|
|
2234
|
+
exports.ImportResourceTypeValues = ImportResourceTypeValues;
|
|
2235
|
+
exports.InventoryModeValues = InventoryModeValues;
|
|
2236
|
+
exports.MoneyTypeValues = MoneyTypeValues;
|
|
2237
|
+
exports.OrderStateValues = OrderStateValues;
|
|
2238
|
+
exports.PaymentStateValues = PaymentStateValues;
|
|
2239
|
+
exports.ProcessingStateValues = ProcessingStateValues;
|
|
2240
|
+
exports.ProductPriceModeEnumValues = ProductPriceModeEnumValues;
|
|
2241
|
+
exports.ReferenceTypeValues = ReferenceTypeValues;
|
|
2242
|
+
exports.ResourceTypeIdValues = ResourceTypeIdValues;
|
|
2243
|
+
exports.ReturnShipmentStateValues = ReturnShipmentStateValues;
|
|
2244
|
+
exports.RoundingModeValues = RoundingModeValues;
|
|
2245
|
+
exports.ShipmentStateValues = ShipmentStateValues;
|
|
2246
|
+
exports.ShippingMethodStateValues = ShippingMethodStateValues;
|
|
2247
|
+
exports.ShippingRateInputTypeValues = ShippingRateInputTypeValues;
|
|
2248
|
+
exports.ShippingRateTierTypeValues = ShippingRateTierTypeValues;
|
|
2249
|
+
exports.TaxCalculationModeValues = TaxCalculationModeValues;
|
|
2250
|
+
exports.TaxModeValues = TaxModeValues;
|
|
2251
|
+
exports.TextInputHintValues = TextInputHintValues;
|
|
2252
|
+
exports.TypeTextInputHintValues = TypeTextInputHintValues;
|
|
1638
2253
|
exports.buildRelativeUri = buildRelativeUri;
|
|
1639
2254
|
exports.createApiBuilderFromCtpClient = createApiBuilderFromCtpClient;
|
|
1640
2255
|
exports.createExecutorFromMiddlewares = createExecutorFromMiddlewares;
|