@wix/stores 1.0.97 → 1.0.99

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 (33) hide show
  1. package/build/cjs/src/stores-catalog-v1-collection.http.js +2 -2
  2. package/build/cjs/src/stores-catalog-v1-collection.http.js.map +1 -1
  3. package/build/cjs/src/stores-catalog-v1-product.http.d.ts +7 -1
  4. package/build/cjs/src/stores-catalog-v1-product.http.js +121 -3
  5. package/build/cjs/src/stores-catalog-v1-product.http.js.map +1 -1
  6. package/build/cjs/src/stores-catalog-v1-product.meta.d.ts +7 -0
  7. package/build/cjs/src/stores-catalog-v1-product.meta.js +58 -1
  8. package/build/cjs/src/stores-catalog-v1-product.meta.js.map +1 -1
  9. package/build/cjs/src/stores-catalog-v1-product.public.d.ts +5 -2
  10. package/build/cjs/src/stores-catalog-v1-product.public.js +19 -1
  11. package/build/cjs/src/stores-catalog-v1-product.public.js.map +1 -1
  12. package/build/cjs/src/stores-catalog-v1-product.types.d.ts +497 -0
  13. package/build/cjs/src/stores-catalog-v1-product.types.js.map +1 -1
  14. package/build/cjs/src/stores-catalog-v1-product.universal.d.ts +862 -208
  15. package/build/cjs/src/stores-catalog-v1-product.universal.js +169 -1
  16. package/build/cjs/src/stores-catalog-v1-product.universal.js.map +1 -1
  17. package/build/es/src/stores-catalog-v1-collection.http.js +2 -2
  18. package/build/es/src/stores-catalog-v1-collection.http.js.map +1 -1
  19. package/build/es/src/stores-catalog-v1-product.http.d.ts +7 -1
  20. package/build/es/src/stores-catalog-v1-product.http.js +117 -2
  21. package/build/es/src/stores-catalog-v1-product.http.js.map +1 -1
  22. package/build/es/src/stores-catalog-v1-product.meta.d.ts +7 -0
  23. package/build/es/src/stores-catalog-v1-product.meta.js +54 -0
  24. package/build/es/src/stores-catalog-v1-product.meta.js.map +1 -1
  25. package/build/es/src/stores-catalog-v1-product.public.d.ts +5 -2
  26. package/build/es/src/stores-catalog-v1-product.public.js +16 -1
  27. package/build/es/src/stores-catalog-v1-product.public.js.map +1 -1
  28. package/build/es/src/stores-catalog-v1-product.types.d.ts +497 -0
  29. package/build/es/src/stores-catalog-v1-product.types.js.map +1 -1
  30. package/build/es/src/stores-catalog-v1-product.universal.d.ts +862 -208
  31. package/build/es/src/stores-catalog-v1-product.universal.js +165 -0
  32. package/build/es/src/stores-catalog-v1-product.universal.js.map +1 -1
  33. package/package.json +2 -2
@@ -471,6 +471,25 @@ export interface Settings {
471
471
  /** User-selected keyword terms for a specific page. */
472
472
  keywords?: Keyword[];
473
473
  }
474
+ export interface V1CreateProductPlatformizedRequest {
475
+ /** Product information. */
476
+ product?: Product;
477
+ }
478
+ export interface V1CreateProductPlatformizedResponse {
479
+ product?: Product;
480
+ }
481
+ export interface V1UpdateProductPlatformizedRequest {
482
+ product: Product;
483
+ }
484
+ export interface V1UpdateProductPlatformizedResponse {
485
+ product?: Product;
486
+ }
487
+ export interface V1DeleteProductPlatformizedRequest {
488
+ /** ID of the product to delete. */
489
+ id: string;
490
+ }
491
+ export interface V1DeleteProductPlatformizedResponse {
492
+ }
474
493
  export interface CreateProductRequest {
475
494
  /** Product information. */
476
495
  product?: Product;
@@ -1443,6 +1462,484 @@ export interface AggregateProductsRequest {
1443
1462
  export interface AggregateProductsResponse {
1444
1463
  aggregates?: Record<string, any> | null;
1445
1464
  }
1465
+ export interface V1CreateProductPlatformizedResponseNonNullableFields {
1466
+ product?: {
1467
+ id: string;
1468
+ slug: string;
1469
+ productType: ProductType;
1470
+ weightRange?: {
1471
+ minValue: number;
1472
+ maxValue: number;
1473
+ };
1474
+ stock?: {
1475
+ trackInventory: boolean;
1476
+ inStock: boolean;
1477
+ inventoryStatus: InventoryStatus;
1478
+ };
1479
+ price?: {
1480
+ currency: string;
1481
+ discountedPrice: number;
1482
+ formatted?: {
1483
+ price: string;
1484
+ discountedPrice: string;
1485
+ };
1486
+ };
1487
+ priceData?: {
1488
+ currency: string;
1489
+ discountedPrice: number;
1490
+ formatted?: {
1491
+ price: string;
1492
+ discountedPrice: string;
1493
+ };
1494
+ };
1495
+ convertedPriceData?: {
1496
+ currency: string;
1497
+ discountedPrice: number;
1498
+ formatted?: {
1499
+ price: string;
1500
+ discountedPrice: string;
1501
+ };
1502
+ };
1503
+ priceRange?: {
1504
+ minValue: number;
1505
+ maxValue: number;
1506
+ };
1507
+ costAndProfitData?: {
1508
+ formattedItemCost: string;
1509
+ profit: number;
1510
+ formattedProfit: string;
1511
+ profitMargin: number;
1512
+ };
1513
+ costRange?: {
1514
+ minValue: number;
1515
+ maxValue: number;
1516
+ };
1517
+ pricePerUnitData?: {
1518
+ totalQuantity: number;
1519
+ totalMeasurementUnit: MeasurementUnit;
1520
+ baseQuantity: number;
1521
+ baseMeasurementUnit: MeasurementUnit;
1522
+ };
1523
+ additionalInfoSections: {
1524
+ title: string;
1525
+ description: string;
1526
+ }[];
1527
+ ribbons: {
1528
+ text: string;
1529
+ }[];
1530
+ media?: {
1531
+ mainMedia?: {
1532
+ image?: {
1533
+ url: string;
1534
+ width: number;
1535
+ height: number;
1536
+ };
1537
+ video?: {
1538
+ files: {
1539
+ url: string;
1540
+ width: number;
1541
+ height: number;
1542
+ }[];
1543
+ stillFrameMediaId: string;
1544
+ };
1545
+ thumbnail?: {
1546
+ url: string;
1547
+ width: number;
1548
+ height: number;
1549
+ };
1550
+ mediaType: MediaItemType;
1551
+ title: string;
1552
+ id: string;
1553
+ };
1554
+ items: {
1555
+ image?: {
1556
+ url: string;
1557
+ width: number;
1558
+ height: number;
1559
+ };
1560
+ video?: {
1561
+ files: {
1562
+ url: string;
1563
+ width: number;
1564
+ height: number;
1565
+ }[];
1566
+ stillFrameMediaId: string;
1567
+ };
1568
+ thumbnail?: {
1569
+ url: string;
1570
+ width: number;
1571
+ height: number;
1572
+ };
1573
+ mediaType: MediaItemType;
1574
+ title: string;
1575
+ id: string;
1576
+ }[];
1577
+ };
1578
+ customTextFields: {
1579
+ title: string;
1580
+ maxLength: number;
1581
+ mandatory: boolean;
1582
+ }[];
1583
+ productOptions: {
1584
+ optionType: OptionType;
1585
+ name: string;
1586
+ choices: {
1587
+ value: string;
1588
+ description: string;
1589
+ media?: {
1590
+ mainMedia?: {
1591
+ image?: {
1592
+ url: string;
1593
+ width: number;
1594
+ height: number;
1595
+ };
1596
+ video?: {
1597
+ files: {
1598
+ url: string;
1599
+ width: number;
1600
+ height: number;
1601
+ }[];
1602
+ stillFrameMediaId: string;
1603
+ };
1604
+ thumbnail?: {
1605
+ url: string;
1606
+ width: number;
1607
+ height: number;
1608
+ };
1609
+ mediaType: MediaItemType;
1610
+ title: string;
1611
+ id: string;
1612
+ };
1613
+ items: {
1614
+ image?: {
1615
+ url: string;
1616
+ width: number;
1617
+ height: number;
1618
+ };
1619
+ video?: {
1620
+ files: {
1621
+ url: string;
1622
+ width: number;
1623
+ height: number;
1624
+ }[];
1625
+ stillFrameMediaId: string;
1626
+ };
1627
+ thumbnail?: {
1628
+ url: string;
1629
+ width: number;
1630
+ height: number;
1631
+ };
1632
+ mediaType: MediaItemType;
1633
+ title: string;
1634
+ id: string;
1635
+ }[];
1636
+ };
1637
+ inStock: boolean;
1638
+ visible: boolean;
1639
+ }[];
1640
+ }[];
1641
+ productPageUrl?: {
1642
+ base: string;
1643
+ path: string;
1644
+ };
1645
+ numericId: string;
1646
+ inventoryItemId: string;
1647
+ discount?: {
1648
+ type: DiscountType;
1649
+ value: number;
1650
+ };
1651
+ collectionIds: string[];
1652
+ variants: {
1653
+ id: string;
1654
+ variant?: {
1655
+ priceData?: {
1656
+ currency: string;
1657
+ discountedPrice: number;
1658
+ formatted?: {
1659
+ price: string;
1660
+ discountedPrice: string;
1661
+ };
1662
+ };
1663
+ convertedPriceData?: {
1664
+ currency: string;
1665
+ discountedPrice: number;
1666
+ formatted?: {
1667
+ price: string;
1668
+ discountedPrice: string;
1669
+ };
1670
+ };
1671
+ costAndProfitData?: {
1672
+ formattedItemCost: string;
1673
+ profit: number;
1674
+ formattedProfit: string;
1675
+ profitMargin: number;
1676
+ };
1677
+ weight: number;
1678
+ sku: string;
1679
+ visible: boolean;
1680
+ };
1681
+ stock?: {
1682
+ trackQuantity: boolean;
1683
+ inStock: boolean;
1684
+ };
1685
+ }[];
1686
+ seoData?: {
1687
+ tags: {
1688
+ type: string;
1689
+ children: string;
1690
+ custom: boolean;
1691
+ disabled: boolean;
1692
+ }[];
1693
+ settings?: {
1694
+ preventAutoRedirect: boolean;
1695
+ keywords: {
1696
+ term: string;
1697
+ isMain: boolean;
1698
+ }[];
1699
+ };
1700
+ };
1701
+ exportProductId: string;
1702
+ };
1703
+ }
1704
+ export interface V1UpdateProductPlatformizedResponseNonNullableFields {
1705
+ product?: {
1706
+ id: string;
1707
+ slug: string;
1708
+ productType: ProductType;
1709
+ weightRange?: {
1710
+ minValue: number;
1711
+ maxValue: number;
1712
+ };
1713
+ stock?: {
1714
+ trackInventory: boolean;
1715
+ inStock: boolean;
1716
+ inventoryStatus: InventoryStatus;
1717
+ };
1718
+ price?: {
1719
+ currency: string;
1720
+ discountedPrice: number;
1721
+ formatted?: {
1722
+ price: string;
1723
+ discountedPrice: string;
1724
+ };
1725
+ };
1726
+ priceData?: {
1727
+ currency: string;
1728
+ discountedPrice: number;
1729
+ formatted?: {
1730
+ price: string;
1731
+ discountedPrice: string;
1732
+ };
1733
+ };
1734
+ convertedPriceData?: {
1735
+ currency: string;
1736
+ discountedPrice: number;
1737
+ formatted?: {
1738
+ price: string;
1739
+ discountedPrice: string;
1740
+ };
1741
+ };
1742
+ priceRange?: {
1743
+ minValue: number;
1744
+ maxValue: number;
1745
+ };
1746
+ costAndProfitData?: {
1747
+ formattedItemCost: string;
1748
+ profit: number;
1749
+ formattedProfit: string;
1750
+ profitMargin: number;
1751
+ };
1752
+ costRange?: {
1753
+ minValue: number;
1754
+ maxValue: number;
1755
+ };
1756
+ pricePerUnitData?: {
1757
+ totalQuantity: number;
1758
+ totalMeasurementUnit: MeasurementUnit;
1759
+ baseQuantity: number;
1760
+ baseMeasurementUnit: MeasurementUnit;
1761
+ };
1762
+ additionalInfoSections: {
1763
+ title: string;
1764
+ description: string;
1765
+ }[];
1766
+ ribbons: {
1767
+ text: string;
1768
+ }[];
1769
+ media?: {
1770
+ mainMedia?: {
1771
+ image?: {
1772
+ url: string;
1773
+ width: number;
1774
+ height: number;
1775
+ };
1776
+ video?: {
1777
+ files: {
1778
+ url: string;
1779
+ width: number;
1780
+ height: number;
1781
+ }[];
1782
+ stillFrameMediaId: string;
1783
+ };
1784
+ thumbnail?: {
1785
+ url: string;
1786
+ width: number;
1787
+ height: number;
1788
+ };
1789
+ mediaType: MediaItemType;
1790
+ title: string;
1791
+ id: string;
1792
+ };
1793
+ items: {
1794
+ image?: {
1795
+ url: string;
1796
+ width: number;
1797
+ height: number;
1798
+ };
1799
+ video?: {
1800
+ files: {
1801
+ url: string;
1802
+ width: number;
1803
+ height: number;
1804
+ }[];
1805
+ stillFrameMediaId: string;
1806
+ };
1807
+ thumbnail?: {
1808
+ url: string;
1809
+ width: number;
1810
+ height: number;
1811
+ };
1812
+ mediaType: MediaItemType;
1813
+ title: string;
1814
+ id: string;
1815
+ }[];
1816
+ };
1817
+ customTextFields: {
1818
+ title: string;
1819
+ maxLength: number;
1820
+ mandatory: boolean;
1821
+ }[];
1822
+ productOptions: {
1823
+ optionType: OptionType;
1824
+ name: string;
1825
+ choices: {
1826
+ value: string;
1827
+ description: string;
1828
+ media?: {
1829
+ mainMedia?: {
1830
+ image?: {
1831
+ url: string;
1832
+ width: number;
1833
+ height: number;
1834
+ };
1835
+ video?: {
1836
+ files: {
1837
+ url: string;
1838
+ width: number;
1839
+ height: number;
1840
+ }[];
1841
+ stillFrameMediaId: string;
1842
+ };
1843
+ thumbnail?: {
1844
+ url: string;
1845
+ width: number;
1846
+ height: number;
1847
+ };
1848
+ mediaType: MediaItemType;
1849
+ title: string;
1850
+ id: string;
1851
+ };
1852
+ items: {
1853
+ image?: {
1854
+ url: string;
1855
+ width: number;
1856
+ height: number;
1857
+ };
1858
+ video?: {
1859
+ files: {
1860
+ url: string;
1861
+ width: number;
1862
+ height: number;
1863
+ }[];
1864
+ stillFrameMediaId: string;
1865
+ };
1866
+ thumbnail?: {
1867
+ url: string;
1868
+ width: number;
1869
+ height: number;
1870
+ };
1871
+ mediaType: MediaItemType;
1872
+ title: string;
1873
+ id: string;
1874
+ }[];
1875
+ };
1876
+ inStock: boolean;
1877
+ visible: boolean;
1878
+ }[];
1879
+ }[];
1880
+ productPageUrl?: {
1881
+ base: string;
1882
+ path: string;
1883
+ };
1884
+ numericId: string;
1885
+ inventoryItemId: string;
1886
+ discount?: {
1887
+ type: DiscountType;
1888
+ value: number;
1889
+ };
1890
+ collectionIds: string[];
1891
+ variants: {
1892
+ id: string;
1893
+ variant?: {
1894
+ priceData?: {
1895
+ currency: string;
1896
+ discountedPrice: number;
1897
+ formatted?: {
1898
+ price: string;
1899
+ discountedPrice: string;
1900
+ };
1901
+ };
1902
+ convertedPriceData?: {
1903
+ currency: string;
1904
+ discountedPrice: number;
1905
+ formatted?: {
1906
+ price: string;
1907
+ discountedPrice: string;
1908
+ };
1909
+ };
1910
+ costAndProfitData?: {
1911
+ formattedItemCost: string;
1912
+ profit: number;
1913
+ formattedProfit: string;
1914
+ profitMargin: number;
1915
+ };
1916
+ weight: number;
1917
+ sku: string;
1918
+ visible: boolean;
1919
+ };
1920
+ stock?: {
1921
+ trackQuantity: boolean;
1922
+ inStock: boolean;
1923
+ };
1924
+ }[];
1925
+ seoData?: {
1926
+ tags: {
1927
+ type: string;
1928
+ children: string;
1929
+ custom: boolean;
1930
+ disabled: boolean;
1931
+ }[];
1932
+ settings?: {
1933
+ preventAutoRedirect: boolean;
1934
+ keywords: {
1935
+ term: string;
1936
+ isMain: boolean;
1937
+ }[];
1938
+ };
1939
+ };
1940
+ exportProductId: string;
1941
+ };
1942
+ }
1446
1943
  export interface CreateProductResponseNonNullableFields {
1447
1944
  product?: {
1448
1945
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"stores-catalog-v1-product.types.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product.types.ts"],"names":[],"mappings":"AAgIA,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,oEAAqD,CAAA;IACrD,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;AACrB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AA4BD,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,gDAA6B,CAAA;IAC7B,oEAAiD,CAAA;AACnD,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AA4ED,MAAM,CAAN,IAAY,eAuBX;AAvBD,WAAY,eAAe;IACzB,8CAA2B,CAAA;IAC3B,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,0BAAO,CAAA;IACP,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,0BAAO,CAAA;IACP,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,0BAAO,CAAA;IACP,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,gCAAa,CAAA;IACb,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,gCAAa,CAAA;AACf,CAAC,EAvBW,eAAe,KAAf,eAAe,QAuB1B;AAyDD,MAAM,CAAN,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,4EAA2D,CAAA;IAC3D,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,sCAAqB,CAAA;IACrB,4BAAW,CAAA;AACb,CAAC,EAPW,aAAa,KAAb,aAAa,QAOxB;AA8BD,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,iEAAmD,CAAA;IACnD,qCAAuB,CAAA;IACvB,6BAAe,CAAA;AACjB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AA0CD,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,kBAAkB;IAClB,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AAqvBD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB"}
1
+ {"version":3,"file":"stores-catalog-v1-product.types.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product.types.ts"],"names":[],"mappings":"AAgIA,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,oEAAqD,CAAA;IACrD,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;AACrB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AA4BD,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,gDAA6B,CAAA;IAC7B,oEAAiD,CAAA;AACnD,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AA4ED,MAAM,CAAN,IAAY,eAuBX;AAvBD,WAAY,eAAe;IACzB,8CAA2B,CAAA;IAC3B,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,0BAAO,CAAA;IACP,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,0BAAO,CAAA;IACP,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,0BAAO,CAAA;IACP,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,gCAAa,CAAA;IACb,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,gCAAa,CAAA;AACf,CAAC,EAvBW,eAAe,KAAf,eAAe,QAuB1B;AAyDD,MAAM,CAAN,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,4EAA2D,CAAA;IAC3D,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,sCAAqB,CAAA;IACrB,4BAAW,CAAA;AACb,CAAC,EAPW,aAAa,KAAb,aAAa,QAOxB;AA8BD,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,iEAAmD,CAAA;IACnD,qCAAuB,CAAA;IACvB,6BAAe,CAAA;AACjB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AA0CD,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,kBAAkB;IAClB,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AA6wBD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB"}