@wix/stores 1.0.92 → 1.0.94

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.
Files changed (73) hide show
  1. package/build/cjs/src/platform-v1-wishlist.http.d.ts +2 -2
  2. package/build/cjs/src/platform-v1-wishlist.http.js.map +1 -1
  3. package/build/cjs/src/platform-v1-wishlist.public.d.ts +10 -2
  4. package/build/cjs/src/platform-v1-wishlist.types.d.ts +11 -0
  5. package/build/cjs/src/platform-v1-wishlist.universal.d.ts +12 -1
  6. package/build/cjs/src/platform-v1-wishlist.universal.js.map +1 -1
  7. package/build/cjs/src/stores-catalog-v1-collection.http.d.ts +4 -4
  8. package/build/cjs/src/stores-catalog-v1-collection.http.js.map +1 -1
  9. package/build/cjs/src/stores-catalog-v1-collection.public.d.ts +53 -3
  10. package/build/cjs/src/stores-catalog-v1-collection.types.d.ts +204 -0
  11. package/build/cjs/src/stores-catalog-v1-collection.universal.d.ts +161 -2
  12. package/build/cjs/src/stores-catalog-v1-collection.universal.js.map +1 -1
  13. package/build/cjs/src/stores-catalog-v1-product.http.d.ts +15 -15
  14. package/build/cjs/src/stores-catalog-v1-product.http.js.map +1 -1
  15. package/build/cjs/src/stores-catalog-v1-product.public.d.ts +14 -14
  16. package/build/cjs/src/stores-catalog-v1-product.types.d.ts +1501 -0
  17. package/build/cjs/src/stores-catalog-v1-product.universal.d.ts +1411 -13
  18. package/build/cjs/src/stores-catalog-v1-product.universal.js.map +1 -1
  19. package/build/cjs/src/stores-v1-abandoned-cart.http.d.ts +3 -3
  20. package/build/cjs/src/stores-v1-abandoned-cart.http.js.map +1 -1
  21. package/build/cjs/src/stores-v1-abandoned-cart.public.d.ts +13 -3
  22. package/build/cjs/src/stores-v1-abandoned-cart.types.d.ts +27 -0
  23. package/build/cjs/src/stores-v1-abandoned-cart.universal.d.ts +29 -2
  24. package/build/cjs/src/stores-v1-abandoned-cart.universal.js.map +1 -1
  25. package/build/cjs/src/stores-v1-subscription-option.http.d.ts +9 -9
  26. package/build/cjs/src/stores-v1-subscription-option.http.js.map +1 -1
  27. package/build/cjs/src/stores-v1-subscription-option.public.d.ts +36 -9
  28. package/build/cjs/src/stores-v1-subscription-option.types.d.ts +85 -0
  29. package/build/cjs/src/stores-v1-subscription-option.universal.d.ts +93 -8
  30. package/build/cjs/src/stores-v1-subscription-option.universal.js.map +1 -1
  31. package/build/cjs/src/stores-v2-inventory.http.d.ts +3 -3
  32. package/build/cjs/src/stores-v2-inventory.http.js.map +1 -1
  33. package/build/cjs/src/stores-v2-inventory.public.d.ts +3 -3
  34. package/build/cjs/src/stores-v2-inventory.types.d.ts +29 -0
  35. package/build/cjs/src/stores-v2-inventory.universal.d.ts +31 -2
  36. package/build/cjs/src/stores-v2-inventory.universal.js.map +1 -1
  37. package/build/es/src/platform-v1-wishlist.http.d.ts +2 -2
  38. package/build/es/src/platform-v1-wishlist.http.js.map +1 -1
  39. package/build/es/src/platform-v1-wishlist.public.d.ts +10 -2
  40. package/build/es/src/platform-v1-wishlist.types.d.ts +11 -0
  41. package/build/es/src/platform-v1-wishlist.universal.d.ts +12 -1
  42. package/build/es/src/platform-v1-wishlist.universal.js.map +1 -1
  43. package/build/es/src/stores-catalog-v1-collection.http.d.ts +4 -4
  44. package/build/es/src/stores-catalog-v1-collection.http.js.map +1 -1
  45. package/build/es/src/stores-catalog-v1-collection.public.d.ts +53 -3
  46. package/build/es/src/stores-catalog-v1-collection.types.d.ts +204 -0
  47. package/build/es/src/stores-catalog-v1-collection.universal.d.ts +161 -2
  48. package/build/es/src/stores-catalog-v1-collection.universal.js.map +1 -1
  49. package/build/es/src/stores-catalog-v1-product.http.d.ts +15 -15
  50. package/build/es/src/stores-catalog-v1-product.http.js.map +1 -1
  51. package/build/es/src/stores-catalog-v1-product.public.d.ts +14 -14
  52. package/build/es/src/stores-catalog-v1-product.types.d.ts +1501 -0
  53. package/build/es/src/stores-catalog-v1-product.universal.d.ts +1411 -13
  54. package/build/es/src/stores-catalog-v1-product.universal.js.map +1 -1
  55. package/build/es/src/stores-v1-abandoned-cart.http.d.ts +3 -3
  56. package/build/es/src/stores-v1-abandoned-cart.http.js.map +1 -1
  57. package/build/es/src/stores-v1-abandoned-cart.public.d.ts +13 -3
  58. package/build/es/src/stores-v1-abandoned-cart.types.d.ts +27 -0
  59. package/build/es/src/stores-v1-abandoned-cart.universal.d.ts +29 -2
  60. package/build/es/src/stores-v1-abandoned-cart.universal.js.map +1 -1
  61. package/build/es/src/stores-v1-subscription-option.http.d.ts +9 -9
  62. package/build/es/src/stores-v1-subscription-option.http.js.map +1 -1
  63. package/build/es/src/stores-v1-subscription-option.public.d.ts +36 -9
  64. package/build/es/src/stores-v1-subscription-option.types.d.ts +85 -0
  65. package/build/es/src/stores-v1-subscription-option.universal.d.ts +93 -8
  66. package/build/es/src/stores-v1-subscription-option.universal.js.map +1 -1
  67. package/build/es/src/stores-v2-inventory.http.d.ts +3 -3
  68. package/build/es/src/stores-v2-inventory.http.js.map +1 -1
  69. package/build/es/src/stores-v2-inventory.public.d.ts +3 -3
  70. package/build/es/src/stores-v2-inventory.types.d.ts +29 -0
  71. package/build/es/src/stores-v2-inventory.universal.d.ts +31 -2
  72. package/build/es/src/stores-v2-inventory.universal.js.map +1 -1
  73. package/package.json +5 -5
@@ -1414,3 +1414,1504 @@ export interface AggregateProductsRequest {
1414
1414
  export interface AggregateProductsResponse {
1415
1415
  aggregates?: Record<string, any> | null;
1416
1416
  }
1417
+ export interface CreateProductResponseNonNullableFields {
1418
+ product?: {
1419
+ id: string;
1420
+ slug: string;
1421
+ productType: ProductType;
1422
+ weightRange?: {
1423
+ minValue: number;
1424
+ maxValue: number;
1425
+ };
1426
+ stock?: {
1427
+ trackInventory: boolean;
1428
+ inStock: boolean;
1429
+ inventoryStatus: InventoryStatus;
1430
+ };
1431
+ price?: {
1432
+ currency: string;
1433
+ discountedPrice: number;
1434
+ formatted?: {
1435
+ price: string;
1436
+ discountedPrice: string;
1437
+ };
1438
+ };
1439
+ priceData?: {
1440
+ currency: string;
1441
+ discountedPrice: number;
1442
+ formatted?: {
1443
+ price: string;
1444
+ discountedPrice: string;
1445
+ };
1446
+ };
1447
+ convertedPriceData?: {
1448
+ currency: string;
1449
+ discountedPrice: number;
1450
+ formatted?: {
1451
+ price: string;
1452
+ discountedPrice: string;
1453
+ };
1454
+ };
1455
+ priceRange?: {
1456
+ minValue: number;
1457
+ maxValue: number;
1458
+ };
1459
+ costAndProfitData?: {
1460
+ formattedItemCost: string;
1461
+ profit: number;
1462
+ formattedProfit: string;
1463
+ profitMargin: number;
1464
+ };
1465
+ costRange?: {
1466
+ minValue: number;
1467
+ maxValue: number;
1468
+ };
1469
+ pricePerUnitData?: {
1470
+ totalQuantity: number;
1471
+ totalMeasurementUnit: MeasurementUnit;
1472
+ baseQuantity: number;
1473
+ baseMeasurementUnit: MeasurementUnit;
1474
+ };
1475
+ additionalInfoSections: {
1476
+ title: string;
1477
+ description: string;
1478
+ }[];
1479
+ ribbons: {
1480
+ text: string;
1481
+ }[];
1482
+ media?: {
1483
+ mainMedia?: {
1484
+ image?: {
1485
+ url: string;
1486
+ width: number;
1487
+ height: number;
1488
+ };
1489
+ video?: {
1490
+ files: {
1491
+ url: string;
1492
+ width: number;
1493
+ height: number;
1494
+ }[];
1495
+ stillFrameMediaId: string;
1496
+ };
1497
+ thumbnail?: {
1498
+ url: string;
1499
+ width: number;
1500
+ height: number;
1501
+ };
1502
+ mediaType: MediaItemType;
1503
+ title: string;
1504
+ id: string;
1505
+ };
1506
+ items: {
1507
+ image?: {
1508
+ url: string;
1509
+ width: number;
1510
+ height: number;
1511
+ };
1512
+ video?: {
1513
+ files: {
1514
+ url: string;
1515
+ width: number;
1516
+ height: number;
1517
+ }[];
1518
+ stillFrameMediaId: string;
1519
+ };
1520
+ thumbnail?: {
1521
+ url: string;
1522
+ width: number;
1523
+ height: number;
1524
+ };
1525
+ mediaType: MediaItemType;
1526
+ title: string;
1527
+ id: string;
1528
+ }[];
1529
+ };
1530
+ customTextFields: {
1531
+ title: string;
1532
+ maxLength: number;
1533
+ mandatory: boolean;
1534
+ }[];
1535
+ productOptions: {
1536
+ optionType: OptionType;
1537
+ name: string;
1538
+ choices: {
1539
+ value: string;
1540
+ description: string;
1541
+ media?: {
1542
+ mainMedia?: {
1543
+ image?: {
1544
+ url: string;
1545
+ width: number;
1546
+ height: number;
1547
+ };
1548
+ video?: {
1549
+ files: {
1550
+ url: string;
1551
+ width: number;
1552
+ height: number;
1553
+ }[];
1554
+ stillFrameMediaId: string;
1555
+ };
1556
+ thumbnail?: {
1557
+ url: string;
1558
+ width: number;
1559
+ height: number;
1560
+ };
1561
+ mediaType: MediaItemType;
1562
+ title: string;
1563
+ id: string;
1564
+ };
1565
+ items: {
1566
+ image?: {
1567
+ url: string;
1568
+ width: number;
1569
+ height: number;
1570
+ };
1571
+ video?: {
1572
+ files: {
1573
+ url: string;
1574
+ width: number;
1575
+ height: number;
1576
+ }[];
1577
+ stillFrameMediaId: string;
1578
+ };
1579
+ thumbnail?: {
1580
+ url: string;
1581
+ width: number;
1582
+ height: number;
1583
+ };
1584
+ mediaType: MediaItemType;
1585
+ title: string;
1586
+ id: string;
1587
+ }[];
1588
+ };
1589
+ inStock: boolean;
1590
+ visible: boolean;
1591
+ }[];
1592
+ }[];
1593
+ productPageUrl?: {
1594
+ base: string;
1595
+ path: string;
1596
+ };
1597
+ numericId: string;
1598
+ inventoryItemId: string;
1599
+ discount?: {
1600
+ type: DiscountType;
1601
+ value: number;
1602
+ };
1603
+ collectionIds: string[];
1604
+ variants: {
1605
+ id: string;
1606
+ variant?: {
1607
+ priceData?: {
1608
+ currency: string;
1609
+ discountedPrice: number;
1610
+ formatted?: {
1611
+ price: string;
1612
+ discountedPrice: string;
1613
+ };
1614
+ };
1615
+ convertedPriceData?: {
1616
+ currency: string;
1617
+ discountedPrice: number;
1618
+ formatted?: {
1619
+ price: string;
1620
+ discountedPrice: string;
1621
+ };
1622
+ };
1623
+ costAndProfitData?: {
1624
+ formattedItemCost: string;
1625
+ profit: number;
1626
+ formattedProfit: string;
1627
+ profitMargin: number;
1628
+ };
1629
+ weight: number;
1630
+ sku: string;
1631
+ visible: boolean;
1632
+ };
1633
+ stock?: {
1634
+ trackQuantity: boolean;
1635
+ inStock: boolean;
1636
+ };
1637
+ }[];
1638
+ seoData?: {
1639
+ tags: {
1640
+ type: string;
1641
+ children: string;
1642
+ custom: boolean;
1643
+ disabled: boolean;
1644
+ }[];
1645
+ settings?: {
1646
+ preventAutoRedirect: boolean;
1647
+ keywords: {
1648
+ term: string;
1649
+ isMain: boolean;
1650
+ }[];
1651
+ };
1652
+ };
1653
+ exportProductId: string;
1654
+ };
1655
+ }
1656
+ export interface UpdateProductResponseNonNullableFields {
1657
+ product?: {
1658
+ id: string;
1659
+ slug: string;
1660
+ productType: ProductType;
1661
+ weightRange?: {
1662
+ minValue: number;
1663
+ maxValue: number;
1664
+ };
1665
+ stock?: {
1666
+ trackInventory: boolean;
1667
+ inStock: boolean;
1668
+ inventoryStatus: InventoryStatus;
1669
+ };
1670
+ price?: {
1671
+ currency: string;
1672
+ discountedPrice: number;
1673
+ formatted?: {
1674
+ price: string;
1675
+ discountedPrice: string;
1676
+ };
1677
+ };
1678
+ priceData?: {
1679
+ currency: string;
1680
+ discountedPrice: number;
1681
+ formatted?: {
1682
+ price: string;
1683
+ discountedPrice: string;
1684
+ };
1685
+ };
1686
+ convertedPriceData?: {
1687
+ currency: string;
1688
+ discountedPrice: number;
1689
+ formatted?: {
1690
+ price: string;
1691
+ discountedPrice: string;
1692
+ };
1693
+ };
1694
+ priceRange?: {
1695
+ minValue: number;
1696
+ maxValue: number;
1697
+ };
1698
+ costAndProfitData?: {
1699
+ formattedItemCost: string;
1700
+ profit: number;
1701
+ formattedProfit: string;
1702
+ profitMargin: number;
1703
+ };
1704
+ costRange?: {
1705
+ minValue: number;
1706
+ maxValue: number;
1707
+ };
1708
+ pricePerUnitData?: {
1709
+ totalQuantity: number;
1710
+ totalMeasurementUnit: MeasurementUnit;
1711
+ baseQuantity: number;
1712
+ baseMeasurementUnit: MeasurementUnit;
1713
+ };
1714
+ additionalInfoSections: {
1715
+ title: string;
1716
+ description: string;
1717
+ }[];
1718
+ ribbons: {
1719
+ text: string;
1720
+ }[];
1721
+ media?: {
1722
+ mainMedia?: {
1723
+ image?: {
1724
+ url: string;
1725
+ width: number;
1726
+ height: number;
1727
+ };
1728
+ video?: {
1729
+ files: {
1730
+ url: string;
1731
+ width: number;
1732
+ height: number;
1733
+ }[];
1734
+ stillFrameMediaId: string;
1735
+ };
1736
+ thumbnail?: {
1737
+ url: string;
1738
+ width: number;
1739
+ height: number;
1740
+ };
1741
+ mediaType: MediaItemType;
1742
+ title: string;
1743
+ id: string;
1744
+ };
1745
+ items: {
1746
+ image?: {
1747
+ url: string;
1748
+ width: number;
1749
+ height: number;
1750
+ };
1751
+ video?: {
1752
+ files: {
1753
+ url: string;
1754
+ width: number;
1755
+ height: number;
1756
+ }[];
1757
+ stillFrameMediaId: string;
1758
+ };
1759
+ thumbnail?: {
1760
+ url: string;
1761
+ width: number;
1762
+ height: number;
1763
+ };
1764
+ mediaType: MediaItemType;
1765
+ title: string;
1766
+ id: string;
1767
+ }[];
1768
+ };
1769
+ customTextFields: {
1770
+ title: string;
1771
+ maxLength: number;
1772
+ mandatory: boolean;
1773
+ }[];
1774
+ productOptions: {
1775
+ optionType: OptionType;
1776
+ name: string;
1777
+ choices: {
1778
+ value: string;
1779
+ description: string;
1780
+ media?: {
1781
+ mainMedia?: {
1782
+ image?: {
1783
+ url: string;
1784
+ width: number;
1785
+ height: number;
1786
+ };
1787
+ video?: {
1788
+ files: {
1789
+ url: string;
1790
+ width: number;
1791
+ height: number;
1792
+ }[];
1793
+ stillFrameMediaId: string;
1794
+ };
1795
+ thumbnail?: {
1796
+ url: string;
1797
+ width: number;
1798
+ height: number;
1799
+ };
1800
+ mediaType: MediaItemType;
1801
+ title: string;
1802
+ id: string;
1803
+ };
1804
+ items: {
1805
+ image?: {
1806
+ url: string;
1807
+ width: number;
1808
+ height: number;
1809
+ };
1810
+ video?: {
1811
+ files: {
1812
+ url: string;
1813
+ width: number;
1814
+ height: number;
1815
+ }[];
1816
+ stillFrameMediaId: string;
1817
+ };
1818
+ thumbnail?: {
1819
+ url: string;
1820
+ width: number;
1821
+ height: number;
1822
+ };
1823
+ mediaType: MediaItemType;
1824
+ title: string;
1825
+ id: string;
1826
+ }[];
1827
+ };
1828
+ inStock: boolean;
1829
+ visible: boolean;
1830
+ }[];
1831
+ }[];
1832
+ productPageUrl?: {
1833
+ base: string;
1834
+ path: string;
1835
+ };
1836
+ numericId: string;
1837
+ inventoryItemId: string;
1838
+ discount?: {
1839
+ type: DiscountType;
1840
+ value: number;
1841
+ };
1842
+ collectionIds: string[];
1843
+ variants: {
1844
+ id: string;
1845
+ variant?: {
1846
+ priceData?: {
1847
+ currency: string;
1848
+ discountedPrice: number;
1849
+ formatted?: {
1850
+ price: string;
1851
+ discountedPrice: string;
1852
+ };
1853
+ };
1854
+ convertedPriceData?: {
1855
+ currency: string;
1856
+ discountedPrice: number;
1857
+ formatted?: {
1858
+ price: string;
1859
+ discountedPrice: string;
1860
+ };
1861
+ };
1862
+ costAndProfitData?: {
1863
+ formattedItemCost: string;
1864
+ profit: number;
1865
+ formattedProfit: string;
1866
+ profitMargin: number;
1867
+ };
1868
+ weight: number;
1869
+ sku: string;
1870
+ visible: boolean;
1871
+ };
1872
+ stock?: {
1873
+ trackQuantity: boolean;
1874
+ inStock: boolean;
1875
+ };
1876
+ }[];
1877
+ seoData?: {
1878
+ tags: {
1879
+ type: string;
1880
+ children: string;
1881
+ custom: boolean;
1882
+ disabled: boolean;
1883
+ }[];
1884
+ settings?: {
1885
+ preventAutoRedirect: boolean;
1886
+ keywords: {
1887
+ term: string;
1888
+ isMain: boolean;
1889
+ }[];
1890
+ };
1891
+ };
1892
+ exportProductId: string;
1893
+ };
1894
+ }
1895
+ export interface UpdateVariantsResponseNonNullableFields {
1896
+ variants: {
1897
+ id: string;
1898
+ variant?: {
1899
+ priceData?: {
1900
+ currency: string;
1901
+ discountedPrice: number;
1902
+ formatted?: {
1903
+ price: string;
1904
+ discountedPrice: string;
1905
+ };
1906
+ };
1907
+ convertedPriceData?: {
1908
+ currency: string;
1909
+ discountedPrice: number;
1910
+ formatted?: {
1911
+ price: string;
1912
+ discountedPrice: string;
1913
+ };
1914
+ };
1915
+ costAndProfitData?: {
1916
+ formattedItemCost: string;
1917
+ profit: number;
1918
+ formattedProfit: string;
1919
+ profitMargin: number;
1920
+ };
1921
+ weight: number;
1922
+ sku: string;
1923
+ visible: boolean;
1924
+ };
1925
+ stock?: {
1926
+ trackQuantity: boolean;
1927
+ inStock: boolean;
1928
+ };
1929
+ }[];
1930
+ }
1931
+ export interface CreateCollectionResponseNonNullableFields {
1932
+ collection?: {
1933
+ media?: {
1934
+ mainMedia?: {
1935
+ image?: {
1936
+ url: string;
1937
+ width: number;
1938
+ height: number;
1939
+ };
1940
+ video?: {
1941
+ files: {
1942
+ url: string;
1943
+ width: number;
1944
+ height: number;
1945
+ }[];
1946
+ stillFrameMediaId: string;
1947
+ };
1948
+ thumbnail?: {
1949
+ url: string;
1950
+ width: number;
1951
+ height: number;
1952
+ };
1953
+ mediaType: MediaItemType;
1954
+ title: string;
1955
+ id: string;
1956
+ };
1957
+ items: {
1958
+ image?: {
1959
+ url: string;
1960
+ width: number;
1961
+ height: number;
1962
+ };
1963
+ video?: {
1964
+ files: {
1965
+ url: string;
1966
+ width: number;
1967
+ height: number;
1968
+ }[];
1969
+ stillFrameMediaId: string;
1970
+ };
1971
+ thumbnail?: {
1972
+ url: string;
1973
+ width: number;
1974
+ height: number;
1975
+ };
1976
+ mediaType: MediaItemType;
1977
+ title: string;
1978
+ id: string;
1979
+ }[];
1980
+ };
1981
+ numberOfProducts: number;
1982
+ seoSchema?: {
1983
+ tags: {
1984
+ type: string;
1985
+ children: string;
1986
+ custom: boolean;
1987
+ disabled: boolean;
1988
+ }[];
1989
+ settings?: {
1990
+ preventAutoRedirect: boolean;
1991
+ keywords: {
1992
+ term: string;
1993
+ isMain: boolean;
1994
+ }[];
1995
+ };
1996
+ };
1997
+ };
1998
+ }
1999
+ export interface UpdateCollectionResponseNonNullableFields {
2000
+ collection?: {
2001
+ media?: {
2002
+ mainMedia?: {
2003
+ image?: {
2004
+ url: string;
2005
+ width: number;
2006
+ height: number;
2007
+ };
2008
+ video?: {
2009
+ files: {
2010
+ url: string;
2011
+ width: number;
2012
+ height: number;
2013
+ }[];
2014
+ stillFrameMediaId: string;
2015
+ };
2016
+ thumbnail?: {
2017
+ url: string;
2018
+ width: number;
2019
+ height: number;
2020
+ };
2021
+ mediaType: MediaItemType;
2022
+ title: string;
2023
+ id: string;
2024
+ };
2025
+ items: {
2026
+ image?: {
2027
+ url: string;
2028
+ width: number;
2029
+ height: number;
2030
+ };
2031
+ video?: {
2032
+ files: {
2033
+ url: string;
2034
+ width: number;
2035
+ height: number;
2036
+ }[];
2037
+ stillFrameMediaId: string;
2038
+ };
2039
+ thumbnail?: {
2040
+ url: string;
2041
+ width: number;
2042
+ height: number;
2043
+ };
2044
+ mediaType: MediaItemType;
2045
+ title: string;
2046
+ id: string;
2047
+ }[];
2048
+ };
2049
+ numberOfProducts: number;
2050
+ seoSchema?: {
2051
+ tags: {
2052
+ type: string;
2053
+ children: string;
2054
+ custom: boolean;
2055
+ disabled: boolean;
2056
+ }[];
2057
+ settings?: {
2058
+ preventAutoRedirect: boolean;
2059
+ keywords: {
2060
+ term: string;
2061
+ isMain: boolean;
2062
+ }[];
2063
+ };
2064
+ };
2065
+ };
2066
+ }
2067
+ export interface BulkUpdateProductsResponseNonNullableFields {
2068
+ results: {
2069
+ itemMetadata?: {
2070
+ originalIndex: number;
2071
+ success: boolean;
2072
+ error?: {
2073
+ code: string;
2074
+ description: string;
2075
+ };
2076
+ };
2077
+ }[];
2078
+ bulkActionMetadata?: {
2079
+ totalSuccesses: number;
2080
+ totalFailures: number;
2081
+ undetailedFailures: number;
2082
+ };
2083
+ }
2084
+ export interface BulkAdjustProductPropertiesResponseNonNullableFields {
2085
+ results: {
2086
+ itemMetadata?: {
2087
+ originalIndex: number;
2088
+ success: boolean;
2089
+ error?: {
2090
+ code: string;
2091
+ description: string;
2092
+ };
2093
+ };
2094
+ }[];
2095
+ bulkActionMetadata?: {
2096
+ totalSuccesses: number;
2097
+ totalFailures: number;
2098
+ undetailedFailures: number;
2099
+ };
2100
+ }
2101
+ export interface QueryProductsPlatformizedResponseNonNullableFields {
2102
+ products: {
2103
+ id: string;
2104
+ slug: string;
2105
+ productType: ProductType;
2106
+ weightRange?: {
2107
+ minValue: number;
2108
+ maxValue: number;
2109
+ };
2110
+ stock?: {
2111
+ trackInventory: boolean;
2112
+ inStock: boolean;
2113
+ inventoryStatus: InventoryStatus;
2114
+ };
2115
+ price?: {
2116
+ currency: string;
2117
+ discountedPrice: number;
2118
+ formatted?: {
2119
+ price: string;
2120
+ discountedPrice: string;
2121
+ };
2122
+ };
2123
+ priceData?: {
2124
+ currency: string;
2125
+ discountedPrice: number;
2126
+ formatted?: {
2127
+ price: string;
2128
+ discountedPrice: string;
2129
+ };
2130
+ };
2131
+ convertedPriceData?: {
2132
+ currency: string;
2133
+ discountedPrice: number;
2134
+ formatted?: {
2135
+ price: string;
2136
+ discountedPrice: string;
2137
+ };
2138
+ };
2139
+ priceRange?: {
2140
+ minValue: number;
2141
+ maxValue: number;
2142
+ };
2143
+ costAndProfitData?: {
2144
+ formattedItemCost: string;
2145
+ profit: number;
2146
+ formattedProfit: string;
2147
+ profitMargin: number;
2148
+ };
2149
+ costRange?: {
2150
+ minValue: number;
2151
+ maxValue: number;
2152
+ };
2153
+ pricePerUnitData?: {
2154
+ totalQuantity: number;
2155
+ totalMeasurementUnit: MeasurementUnit;
2156
+ baseQuantity: number;
2157
+ baseMeasurementUnit: MeasurementUnit;
2158
+ };
2159
+ additionalInfoSections: {
2160
+ title: string;
2161
+ description: string;
2162
+ }[];
2163
+ ribbons: {
2164
+ text: string;
2165
+ }[];
2166
+ media?: {
2167
+ mainMedia?: {
2168
+ image?: {
2169
+ url: string;
2170
+ width: number;
2171
+ height: number;
2172
+ };
2173
+ video?: {
2174
+ files: {
2175
+ url: string;
2176
+ width: number;
2177
+ height: number;
2178
+ }[];
2179
+ stillFrameMediaId: string;
2180
+ };
2181
+ thumbnail?: {
2182
+ url: string;
2183
+ width: number;
2184
+ height: number;
2185
+ };
2186
+ mediaType: MediaItemType;
2187
+ title: string;
2188
+ id: string;
2189
+ };
2190
+ items: {
2191
+ image?: {
2192
+ url: string;
2193
+ width: number;
2194
+ height: number;
2195
+ };
2196
+ video?: {
2197
+ files: {
2198
+ url: string;
2199
+ width: number;
2200
+ height: number;
2201
+ }[];
2202
+ stillFrameMediaId: string;
2203
+ };
2204
+ thumbnail?: {
2205
+ url: string;
2206
+ width: number;
2207
+ height: number;
2208
+ };
2209
+ mediaType: MediaItemType;
2210
+ title: string;
2211
+ id: string;
2212
+ }[];
2213
+ };
2214
+ customTextFields: {
2215
+ title: string;
2216
+ maxLength: number;
2217
+ mandatory: boolean;
2218
+ }[];
2219
+ productOptions: {
2220
+ optionType: OptionType;
2221
+ name: string;
2222
+ choices: {
2223
+ value: string;
2224
+ description: string;
2225
+ media?: {
2226
+ mainMedia?: {
2227
+ image?: {
2228
+ url: string;
2229
+ width: number;
2230
+ height: number;
2231
+ };
2232
+ video?: {
2233
+ files: {
2234
+ url: string;
2235
+ width: number;
2236
+ height: number;
2237
+ }[];
2238
+ stillFrameMediaId: string;
2239
+ };
2240
+ thumbnail?: {
2241
+ url: string;
2242
+ width: number;
2243
+ height: number;
2244
+ };
2245
+ mediaType: MediaItemType;
2246
+ title: string;
2247
+ id: string;
2248
+ };
2249
+ items: {
2250
+ image?: {
2251
+ url: string;
2252
+ width: number;
2253
+ height: number;
2254
+ };
2255
+ video?: {
2256
+ files: {
2257
+ url: string;
2258
+ width: number;
2259
+ height: number;
2260
+ }[];
2261
+ stillFrameMediaId: string;
2262
+ };
2263
+ thumbnail?: {
2264
+ url: string;
2265
+ width: number;
2266
+ height: number;
2267
+ };
2268
+ mediaType: MediaItemType;
2269
+ title: string;
2270
+ id: string;
2271
+ }[];
2272
+ };
2273
+ inStock: boolean;
2274
+ visible: boolean;
2275
+ }[];
2276
+ }[];
2277
+ productPageUrl?: {
2278
+ base: string;
2279
+ path: string;
2280
+ };
2281
+ numericId: string;
2282
+ inventoryItemId: string;
2283
+ discount?: {
2284
+ type: DiscountType;
2285
+ value: number;
2286
+ };
2287
+ collectionIds: string[];
2288
+ variants: {
2289
+ id: string;
2290
+ variant?: {
2291
+ priceData?: {
2292
+ currency: string;
2293
+ discountedPrice: number;
2294
+ formatted?: {
2295
+ price: string;
2296
+ discountedPrice: string;
2297
+ };
2298
+ };
2299
+ convertedPriceData?: {
2300
+ currency: string;
2301
+ discountedPrice: number;
2302
+ formatted?: {
2303
+ price: string;
2304
+ discountedPrice: string;
2305
+ };
2306
+ };
2307
+ costAndProfitData?: {
2308
+ formattedItemCost: string;
2309
+ profit: number;
2310
+ formattedProfit: string;
2311
+ profitMargin: number;
2312
+ };
2313
+ weight: number;
2314
+ sku: string;
2315
+ visible: boolean;
2316
+ };
2317
+ stock?: {
2318
+ trackQuantity: boolean;
2319
+ inStock: boolean;
2320
+ };
2321
+ }[];
2322
+ seoData?: {
2323
+ tags: {
2324
+ type: string;
2325
+ children: string;
2326
+ custom: boolean;
2327
+ disabled: boolean;
2328
+ }[];
2329
+ settings?: {
2330
+ preventAutoRedirect: boolean;
2331
+ keywords: {
2332
+ term: string;
2333
+ isMain: boolean;
2334
+ }[];
2335
+ };
2336
+ };
2337
+ exportProductId: string;
2338
+ }[];
2339
+ }
2340
+ export interface GetProductResponseNonNullableFields {
2341
+ product?: {
2342
+ id: string;
2343
+ slug: string;
2344
+ productType: ProductType;
2345
+ weightRange?: {
2346
+ minValue: number;
2347
+ maxValue: number;
2348
+ };
2349
+ stock?: {
2350
+ trackInventory: boolean;
2351
+ inStock: boolean;
2352
+ inventoryStatus: InventoryStatus;
2353
+ };
2354
+ price?: {
2355
+ currency: string;
2356
+ discountedPrice: number;
2357
+ formatted?: {
2358
+ price: string;
2359
+ discountedPrice: string;
2360
+ };
2361
+ };
2362
+ priceData?: {
2363
+ currency: string;
2364
+ discountedPrice: number;
2365
+ formatted?: {
2366
+ price: string;
2367
+ discountedPrice: string;
2368
+ };
2369
+ };
2370
+ convertedPriceData?: {
2371
+ currency: string;
2372
+ discountedPrice: number;
2373
+ formatted?: {
2374
+ price: string;
2375
+ discountedPrice: string;
2376
+ };
2377
+ };
2378
+ priceRange?: {
2379
+ minValue: number;
2380
+ maxValue: number;
2381
+ };
2382
+ costAndProfitData?: {
2383
+ formattedItemCost: string;
2384
+ profit: number;
2385
+ formattedProfit: string;
2386
+ profitMargin: number;
2387
+ };
2388
+ costRange?: {
2389
+ minValue: number;
2390
+ maxValue: number;
2391
+ };
2392
+ pricePerUnitData?: {
2393
+ totalQuantity: number;
2394
+ totalMeasurementUnit: MeasurementUnit;
2395
+ baseQuantity: number;
2396
+ baseMeasurementUnit: MeasurementUnit;
2397
+ };
2398
+ additionalInfoSections: {
2399
+ title: string;
2400
+ description: string;
2401
+ }[];
2402
+ ribbons: {
2403
+ text: string;
2404
+ }[];
2405
+ media?: {
2406
+ mainMedia?: {
2407
+ image?: {
2408
+ url: string;
2409
+ width: number;
2410
+ height: number;
2411
+ };
2412
+ video?: {
2413
+ files: {
2414
+ url: string;
2415
+ width: number;
2416
+ height: number;
2417
+ }[];
2418
+ stillFrameMediaId: string;
2419
+ };
2420
+ thumbnail?: {
2421
+ url: string;
2422
+ width: number;
2423
+ height: number;
2424
+ };
2425
+ mediaType: MediaItemType;
2426
+ title: string;
2427
+ id: string;
2428
+ };
2429
+ items: {
2430
+ image?: {
2431
+ url: string;
2432
+ width: number;
2433
+ height: number;
2434
+ };
2435
+ video?: {
2436
+ files: {
2437
+ url: string;
2438
+ width: number;
2439
+ height: number;
2440
+ }[];
2441
+ stillFrameMediaId: string;
2442
+ };
2443
+ thumbnail?: {
2444
+ url: string;
2445
+ width: number;
2446
+ height: number;
2447
+ };
2448
+ mediaType: MediaItemType;
2449
+ title: string;
2450
+ id: string;
2451
+ }[];
2452
+ };
2453
+ customTextFields: {
2454
+ title: string;
2455
+ maxLength: number;
2456
+ mandatory: boolean;
2457
+ }[];
2458
+ productOptions: {
2459
+ optionType: OptionType;
2460
+ name: string;
2461
+ choices: {
2462
+ value: string;
2463
+ description: string;
2464
+ media?: {
2465
+ mainMedia?: {
2466
+ image?: {
2467
+ url: string;
2468
+ width: number;
2469
+ height: number;
2470
+ };
2471
+ video?: {
2472
+ files: {
2473
+ url: string;
2474
+ width: number;
2475
+ height: number;
2476
+ }[];
2477
+ stillFrameMediaId: string;
2478
+ };
2479
+ thumbnail?: {
2480
+ url: string;
2481
+ width: number;
2482
+ height: number;
2483
+ };
2484
+ mediaType: MediaItemType;
2485
+ title: string;
2486
+ id: string;
2487
+ };
2488
+ items: {
2489
+ image?: {
2490
+ url: string;
2491
+ width: number;
2492
+ height: number;
2493
+ };
2494
+ video?: {
2495
+ files: {
2496
+ url: string;
2497
+ width: number;
2498
+ height: number;
2499
+ }[];
2500
+ stillFrameMediaId: string;
2501
+ };
2502
+ thumbnail?: {
2503
+ url: string;
2504
+ width: number;
2505
+ height: number;
2506
+ };
2507
+ mediaType: MediaItemType;
2508
+ title: string;
2509
+ id: string;
2510
+ }[];
2511
+ };
2512
+ inStock: boolean;
2513
+ visible: boolean;
2514
+ }[];
2515
+ }[];
2516
+ productPageUrl?: {
2517
+ base: string;
2518
+ path: string;
2519
+ };
2520
+ numericId: string;
2521
+ inventoryItemId: string;
2522
+ discount?: {
2523
+ type: DiscountType;
2524
+ value: number;
2525
+ };
2526
+ collectionIds: string[];
2527
+ variants: {
2528
+ id: string;
2529
+ variant?: {
2530
+ priceData?: {
2531
+ currency: string;
2532
+ discountedPrice: number;
2533
+ formatted?: {
2534
+ price: string;
2535
+ discountedPrice: string;
2536
+ };
2537
+ };
2538
+ convertedPriceData?: {
2539
+ currency: string;
2540
+ discountedPrice: number;
2541
+ formatted?: {
2542
+ price: string;
2543
+ discountedPrice: string;
2544
+ };
2545
+ };
2546
+ costAndProfitData?: {
2547
+ formattedItemCost: string;
2548
+ profit: number;
2549
+ formattedProfit: string;
2550
+ profitMargin: number;
2551
+ };
2552
+ weight: number;
2553
+ sku: string;
2554
+ visible: boolean;
2555
+ };
2556
+ stock?: {
2557
+ trackQuantity: boolean;
2558
+ inStock: boolean;
2559
+ };
2560
+ }[];
2561
+ seoData?: {
2562
+ tags: {
2563
+ type: string;
2564
+ children: string;
2565
+ custom: boolean;
2566
+ disabled: boolean;
2567
+ }[];
2568
+ settings?: {
2569
+ preventAutoRedirect: boolean;
2570
+ keywords: {
2571
+ term: string;
2572
+ isMain: boolean;
2573
+ }[];
2574
+ };
2575
+ };
2576
+ exportProductId: string;
2577
+ };
2578
+ }
2579
+ export interface GetCollectionBySlugResponseNonNullableFields {
2580
+ collection?: {
2581
+ media?: {
2582
+ mainMedia?: {
2583
+ image?: {
2584
+ url: string;
2585
+ width: number;
2586
+ height: number;
2587
+ };
2588
+ video?: {
2589
+ files: {
2590
+ url: string;
2591
+ width: number;
2592
+ height: number;
2593
+ }[];
2594
+ stillFrameMediaId: string;
2595
+ };
2596
+ thumbnail?: {
2597
+ url: string;
2598
+ width: number;
2599
+ height: number;
2600
+ };
2601
+ mediaType: MediaItemType;
2602
+ title: string;
2603
+ id: string;
2604
+ };
2605
+ items: {
2606
+ image?: {
2607
+ url: string;
2608
+ width: number;
2609
+ height: number;
2610
+ };
2611
+ video?: {
2612
+ files: {
2613
+ url: string;
2614
+ width: number;
2615
+ height: number;
2616
+ }[];
2617
+ stillFrameMediaId: string;
2618
+ };
2619
+ thumbnail?: {
2620
+ url: string;
2621
+ width: number;
2622
+ height: number;
2623
+ };
2624
+ mediaType: MediaItemType;
2625
+ title: string;
2626
+ id: string;
2627
+ }[];
2628
+ };
2629
+ numberOfProducts: number;
2630
+ seoSchema?: {
2631
+ tags: {
2632
+ type: string;
2633
+ children: string;
2634
+ custom: boolean;
2635
+ disabled: boolean;
2636
+ }[];
2637
+ settings?: {
2638
+ preventAutoRedirect: boolean;
2639
+ keywords: {
2640
+ term: string;
2641
+ isMain: boolean;
2642
+ }[];
2643
+ };
2644
+ };
2645
+ };
2646
+ }
2647
+ export interface ProductOptionsAvailabilityResponseNonNullableFields {
2648
+ selectedVariant?: {
2649
+ price?: {
2650
+ currency: string;
2651
+ discountedPrice: number;
2652
+ formatted?: {
2653
+ price: string;
2654
+ discountedPrice: string;
2655
+ };
2656
+ };
2657
+ convertedPriceData?: {
2658
+ currency: string;
2659
+ discountedPrice: number;
2660
+ formatted?: {
2661
+ price: string;
2662
+ discountedPrice: string;
2663
+ };
2664
+ };
2665
+ sku: string;
2666
+ inStock: boolean;
2667
+ visible: boolean;
2668
+ variantId: string;
2669
+ };
2670
+ media?: {
2671
+ mainMedia?: {
2672
+ image?: {
2673
+ url: string;
2674
+ width: number;
2675
+ height: number;
2676
+ };
2677
+ video?: {
2678
+ files: {
2679
+ url: string;
2680
+ width: number;
2681
+ height: number;
2682
+ }[];
2683
+ stillFrameMediaId: string;
2684
+ };
2685
+ thumbnail?: {
2686
+ url: string;
2687
+ width: number;
2688
+ height: number;
2689
+ };
2690
+ mediaType: MediaItemType;
2691
+ title: string;
2692
+ id: string;
2693
+ };
2694
+ items: {
2695
+ image?: {
2696
+ url: string;
2697
+ width: number;
2698
+ height: number;
2699
+ };
2700
+ video?: {
2701
+ files: {
2702
+ url: string;
2703
+ width: number;
2704
+ height: number;
2705
+ }[];
2706
+ stillFrameMediaId: string;
2707
+ };
2708
+ thumbnail?: {
2709
+ url: string;
2710
+ width: number;
2711
+ height: number;
2712
+ };
2713
+ mediaType: MediaItemType;
2714
+ title: string;
2715
+ id: string;
2716
+ }[];
2717
+ };
2718
+ productOptions: {
2719
+ optionType: OptionType;
2720
+ name: string;
2721
+ choices: {
2722
+ value: string;
2723
+ description: string;
2724
+ media?: {
2725
+ mainMedia?: {
2726
+ image?: {
2727
+ url: string;
2728
+ width: number;
2729
+ height: number;
2730
+ };
2731
+ video?: {
2732
+ files: {
2733
+ url: string;
2734
+ width: number;
2735
+ height: number;
2736
+ }[];
2737
+ stillFrameMediaId: string;
2738
+ };
2739
+ thumbnail?: {
2740
+ url: string;
2741
+ width: number;
2742
+ height: number;
2743
+ };
2744
+ mediaType: MediaItemType;
2745
+ title: string;
2746
+ id: string;
2747
+ };
2748
+ items: {
2749
+ image?: {
2750
+ url: string;
2751
+ width: number;
2752
+ height: number;
2753
+ };
2754
+ video?: {
2755
+ files: {
2756
+ url: string;
2757
+ width: number;
2758
+ height: number;
2759
+ }[];
2760
+ stillFrameMediaId: string;
2761
+ };
2762
+ thumbnail?: {
2763
+ url: string;
2764
+ width: number;
2765
+ height: number;
2766
+ };
2767
+ mediaType: MediaItemType;
2768
+ title: string;
2769
+ id: string;
2770
+ }[];
2771
+ };
2772
+ inStock: boolean;
2773
+ visible: boolean;
2774
+ }[];
2775
+ }[];
2776
+ availableForPurchase: boolean;
2777
+ managedProduct: boolean;
2778
+ }
2779
+ export interface QueryProductVariantsResponseNonNullableFields {
2780
+ variants: {
2781
+ id: string;
2782
+ variant?: {
2783
+ priceData?: {
2784
+ currency: string;
2785
+ discountedPrice: number;
2786
+ formatted?: {
2787
+ price: string;
2788
+ discountedPrice: string;
2789
+ };
2790
+ };
2791
+ convertedPriceData?: {
2792
+ currency: string;
2793
+ discountedPrice: number;
2794
+ formatted?: {
2795
+ price: string;
2796
+ discountedPrice: string;
2797
+ };
2798
+ };
2799
+ costAndProfitData?: {
2800
+ formattedItemCost: string;
2801
+ profit: number;
2802
+ formattedProfit: string;
2803
+ profitMargin: number;
2804
+ };
2805
+ weight: number;
2806
+ sku: string;
2807
+ visible: boolean;
2808
+ };
2809
+ stock?: {
2810
+ trackQuantity: boolean;
2811
+ inStock: boolean;
2812
+ };
2813
+ }[];
2814
+ metadata?: {
2815
+ items: number;
2816
+ offset: number;
2817
+ };
2818
+ totalResults: number;
2819
+ }
2820
+ export interface QueryStoreVariantsResponseNonNullableFields {
2821
+ variants: {
2822
+ id: string;
2823
+ variantId: string;
2824
+ productId: string;
2825
+ variantName: string;
2826
+ productName: string;
2827
+ managedVariant: boolean;
2828
+ sku: string;
2829
+ stock?: {
2830
+ trackQuantity: boolean;
2831
+ inStock: boolean;
2832
+ };
2833
+ collectionIds: string[];
2834
+ media?: {
2835
+ image?: {
2836
+ id: string;
2837
+ url: string;
2838
+ height: number;
2839
+ width: number;
2840
+ };
2841
+ video?: {
2842
+ id: string;
2843
+ url: string;
2844
+ resolutions: {
2845
+ url: string;
2846
+ height: number;
2847
+ width: number;
2848
+ poster?: {
2849
+ id: string;
2850
+ url: string;
2851
+ height: number;
2852
+ width: number;
2853
+ };
2854
+ format: string;
2855
+ }[];
2856
+ posters: {
2857
+ id: string;
2858
+ url: string;
2859
+ height: number;
2860
+ width: number;
2861
+ }[];
2862
+ };
2863
+ };
2864
+ preorderInfo?: {
2865
+ enabled: boolean;
2866
+ };
2867
+ }[];
2868
+ }
2869
+ export interface GetStoreVariantResponseNonNullableFields {
2870
+ variant?: {
2871
+ id: string;
2872
+ variantId: string;
2873
+ productId: string;
2874
+ variantName: string;
2875
+ productName: string;
2876
+ managedVariant: boolean;
2877
+ sku: string;
2878
+ stock?: {
2879
+ trackQuantity: boolean;
2880
+ inStock: boolean;
2881
+ };
2882
+ collectionIds: string[];
2883
+ media?: {
2884
+ image?: {
2885
+ id: string;
2886
+ url: string;
2887
+ height: number;
2888
+ width: number;
2889
+ };
2890
+ video?: {
2891
+ id: string;
2892
+ url: string;
2893
+ resolutions: {
2894
+ url: string;
2895
+ height: number;
2896
+ width: number;
2897
+ poster?: {
2898
+ id: string;
2899
+ url: string;
2900
+ height: number;
2901
+ width: number;
2902
+ };
2903
+ format: string;
2904
+ }[];
2905
+ posters: {
2906
+ id: string;
2907
+ url: string;
2908
+ height: number;
2909
+ width: number;
2910
+ }[];
2911
+ };
2912
+ };
2913
+ preorderInfo?: {
2914
+ enabled: boolean;
2915
+ };
2916
+ };
2917
+ }