@wix/auto_sdk_stores_products 1.0.15 → 1.0.17

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 (134) hide show
  1. package/build/index.d.mts +299 -0
  2. package/build/index.d.ts +299 -0
  3. package/build/index.js +2296 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +2230 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +299 -0
  8. package/build/internal/index.d.ts +299 -0
  9. package/build/internal/index.js +2296 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +2230 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +1492 -0
  14. package/build/internal/meta.d.ts +1492 -0
  15. package/build/internal/meta.js +1666 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +1614 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/internal/{cjs/src/stores-catalog-v1-product-products.types.d.ts → stores-catalog-v1-product-products.universal-BIBKG21Y.d.mts} +574 -286
  20. package/build/internal/{es/src/stores-catalog-v1-product-products.types.d.ts → stores-catalog-v1-product-products.universal-BIBKG21Y.d.ts} +574 -286
  21. package/build/meta.d.mts +1492 -0
  22. package/build/meta.d.ts +1492 -0
  23. package/build/meta.js +1666 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +1614 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{es/src/stores-catalog-v1-product-products.types.d.ts → stores-catalog-v1-product-products.universal-DbP0_IgA.d.mts} +562 -286
  28. package/build/{cjs/src/stores-catalog-v1-product-products.types.d.ts → stores-catalog-v1-product-products.universal-DbP0_IgA.d.ts} +562 -286
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/stores-catalog-v1-product-products.context.d.ts +0 -66
  40. package/build/cjs/src/stores-catalog-v1-product-products.context.js +0 -79
  41. package/build/cjs/src/stores-catalog-v1-product-products.context.js.map +0 -1
  42. package/build/cjs/src/stores-catalog-v1-product-products.http.d.ts +0 -79
  43. package/build/cjs/src/stores-catalog-v1-product-products.http.js +0 -1196
  44. package/build/cjs/src/stores-catalog-v1-product-products.http.js.map +0 -1
  45. package/build/cjs/src/stores-catalog-v1-product-products.meta.d.ts +0 -78
  46. package/build/cjs/src/stores-catalog-v1-product-products.meta.js +0 -522
  47. package/build/cjs/src/stores-catalog-v1-product-products.meta.js.map +0 -1
  48. package/build/cjs/src/stores-catalog-v1-product-products.public.d.ts +0 -244
  49. package/build/cjs/src/stores-catalog-v1-product-products.public.js +0 -196
  50. package/build/cjs/src/stores-catalog-v1-product-products.public.js.map +0 -1
  51. package/build/cjs/src/stores-catalog-v1-product-products.types.js +0 -106
  52. package/build/cjs/src/stores-catalog-v1-product-products.types.js.map +0 -1
  53. package/build/cjs/src/stores-catalog-v1-product-products.universal.d.ts +0 -2912
  54. package/build/cjs/src/stores-catalog-v1-product-products.universal.js +0 -1282
  55. package/build/cjs/src/stores-catalog-v1-product-products.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/stores-catalog-v1-product-products.context.d.ts +0 -66
  67. package/build/es/src/stores-catalog-v1-product-products.context.js +0 -66
  68. package/build/es/src/stores-catalog-v1-product-products.context.js.map +0 -1
  69. package/build/es/src/stores-catalog-v1-product-products.http.d.ts +0 -79
  70. package/build/es/src/stores-catalog-v1-product-products.http.js +0 -1167
  71. package/build/es/src/stores-catalog-v1-product-products.http.js.map +0 -1
  72. package/build/es/src/stores-catalog-v1-product-products.meta.d.ts +0 -78
  73. package/build/es/src/stores-catalog-v1-product-products.meta.js +0 -470
  74. package/build/es/src/stores-catalog-v1-product-products.meta.js.map +0 -1
  75. package/build/es/src/stores-catalog-v1-product-products.public.d.ts +0 -244
  76. package/build/es/src/stores-catalog-v1-product-products.public.js +0 -157
  77. package/build/es/src/stores-catalog-v1-product-products.public.js.map +0 -1
  78. package/build/es/src/stores-catalog-v1-product-products.types.js +0 -103
  79. package/build/es/src/stores-catalog-v1-product-products.types.js.map +0 -1
  80. package/build/es/src/stores-catalog-v1-product-products.universal.d.ts +0 -2912
  81. package/build/es/src/stores-catalog-v1-product-products.universal.js +0 -1230
  82. package/build/es/src/stores-catalog-v1-product-products.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/stores-catalog-v1-product-products.context.d.ts +0 -66
  93. package/build/internal/cjs/src/stores-catalog-v1-product-products.context.js +0 -79
  94. package/build/internal/cjs/src/stores-catalog-v1-product-products.context.js.map +0 -1
  95. package/build/internal/cjs/src/stores-catalog-v1-product-products.http.d.ts +0 -79
  96. package/build/internal/cjs/src/stores-catalog-v1-product-products.http.js +0 -1196
  97. package/build/internal/cjs/src/stores-catalog-v1-product-products.http.js.map +0 -1
  98. package/build/internal/cjs/src/stores-catalog-v1-product-products.meta.d.ts +0 -78
  99. package/build/internal/cjs/src/stores-catalog-v1-product-products.meta.js +0 -522
  100. package/build/internal/cjs/src/stores-catalog-v1-product-products.meta.js.map +0 -1
  101. package/build/internal/cjs/src/stores-catalog-v1-product-products.public.d.ts +0 -244
  102. package/build/internal/cjs/src/stores-catalog-v1-product-products.public.js +0 -196
  103. package/build/internal/cjs/src/stores-catalog-v1-product-products.public.js.map +0 -1
  104. package/build/internal/cjs/src/stores-catalog-v1-product-products.types.js +0 -106
  105. package/build/internal/cjs/src/stores-catalog-v1-product-products.types.js.map +0 -1
  106. package/build/internal/cjs/src/stores-catalog-v1-product-products.universal.d.ts +0 -2924
  107. package/build/internal/cjs/src/stores-catalog-v1-product-products.universal.js +0 -1282
  108. package/build/internal/cjs/src/stores-catalog-v1-product-products.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/stores-catalog-v1-product-products.context.d.ts +0 -66
  119. package/build/internal/es/src/stores-catalog-v1-product-products.context.js +0 -66
  120. package/build/internal/es/src/stores-catalog-v1-product-products.context.js.map +0 -1
  121. package/build/internal/es/src/stores-catalog-v1-product-products.http.d.ts +0 -79
  122. package/build/internal/es/src/stores-catalog-v1-product-products.http.js +0 -1167
  123. package/build/internal/es/src/stores-catalog-v1-product-products.http.js.map +0 -1
  124. package/build/internal/es/src/stores-catalog-v1-product-products.meta.d.ts +0 -78
  125. package/build/internal/es/src/stores-catalog-v1-product-products.meta.js +0 -470
  126. package/build/internal/es/src/stores-catalog-v1-product-products.meta.js.map +0 -1
  127. package/build/internal/es/src/stores-catalog-v1-product-products.public.d.ts +0 -244
  128. package/build/internal/es/src/stores-catalog-v1-product-products.public.js +0 -157
  129. package/build/internal/es/src/stores-catalog-v1-product-products.public.js.map +0 -1
  130. package/build/internal/es/src/stores-catalog-v1-product-products.types.js +0 -103
  131. package/build/internal/es/src/stores-catalog-v1-product-products.types.js.map +0 -1
  132. package/build/internal/es/src/stores-catalog-v1-product-products.universal.d.ts +0 -2924
  133. package/build/internal/es/src/stores-catalog-v1-product-products.universal.js +0 -1230
  134. package/build/internal/es/src/stores-catalog-v1-product-products.universal.js.map +0 -1
@@ -0,0 +1,299 @@
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { P as Product, C as CreateProductResponse, U as UpdateProduct, a as UpdateProductResponse, V as VariantOverride, b as UpdateVariantsResponse, M as MediaDataForWrite, c as MediaAssignmentToChoice, d as Collection, e as CreateCollectionResponse, f as UpdateCollection, g as UpdateCollectionResponse, S as SetValue, B as BulkUpdateProductsResponse, A as AdjustValue, h as BulkAdjustProductPropertiesResponse, i as ProductsQueryBuilder, G as GetProductOptions, j as GetProductResponse, k as GetCollectionBySlugResponse, l as ProductOptionsAvailabilityResponse, Q as QueryProductVariantsOptions, m as QueryProductVariantsResponse, n as PlatformQuery, o as QueryStoreVariantsResponse, p as GetStoreVariantResponse, q as ProductCollectionChangedEnvelope, r as ProductCollectionCreatedEnvelope, s as ProductCollectionDeletedEnvelope, t as ProductChangedEnvelope, u as ProductCreatedEnvelope, v as ProductDeletedEnvelope, w as ProductVariantsChangedEnvelope } from './stores-catalog-v1-product-products.universal-DbP0_IgA.mjs';
3
+ export { aG as AddProductMediaRequest, aJ as AddProductMediaResponse, aM as AddProductMediaToChoicesRequest, aN as AddProductMediaToChoicesResponse, aC as AddProductsToCollectionRequest, aD as AddProductsToCollectionResponse, X as AdditionalInfoSection, bg as AdjustValueValueOneOf, ch as AggregateProductsRequest, ci as AggregateProductsResponse, be as AllowedProductsCountLimitExceededErrorData, ba as ApplicationError, cm as BaseEventMetadata, bb as BulkActionMetadata, bk as BulkAdjustProductPropertiesByFilterSyncRequest, bl as BulkAdjustProductPropertiesByFilterSyncResponse, bf as BulkAdjustProductPropertiesRequest, ax as BulkDeleteProductsRequest, ay as BulkDeleteProductsResponse, b8 as BulkProductResult, ce as BulkQueryCustomFieldsRequest, cf as BulkQueryCustomFieldsResponse, a_ as BulkRemoveCustomFieldsRequest, a$ as BulkRemoveCustomFieldsResponse, aY as BulkSetCustomFieldsRequest, aZ as BulkSetCustomFieldsResponse, bc as BulkUpdateProductsByFilterSyncRequest, bd as BulkUpdateProductsByFilterSyncResponse, b6 as BulkUpdateProductsRequest, a4 as Choice, bs as CollectionChanged, br as CollectionCreated, bt as CollectionDeleted, R as CostAndProfitData, b0 as CreateCollectionRequest, ao as CreateDigitalProductRequest, ap as CreateDigitalProductResponse, am as CreateProductPlatformizedRequest, an as CreateProductPlatformizedResponse, al as CreateProductRequest, bF as CursorPaging, bI as Cursors, cg as CustomFieldsContainer, a2 as CustomTextField, b2 as DeleteCollectionRequest, b3 as DeleteCollectionResponse, aQ as DeleteProductOptionsRequest, aR as DeleteProductOptionsResponse, av as DeleteProductPlatformizedRequest, aw as DeleteProductPlatformizedResponse, at as DeleteProductRequest, au as DeleteProductResponse, a6 as Discount, D as DiscountType, F as FileType, c3 as FocalPoint, L as FormattedPrice, bX as GetCollectionBySlugRequest, bV as GetCollectionRequest, bW as GetCollectionResponse, bP as GetProductPlatformizedRequest, bQ as GetProductPlatformizedResponse, bO as GetProductRequest, bM as GetProductsRequest, bN as GetProductsResponse, cb as GetStoreVariantRequest, ck as IdentificationData, cl as IdentificationDataIdOneOf, I as InventoryStatus, b9 as ItemMetadata, ab as Keyword, y as MeasurementUnit, Z as Media, aH as MediaDataForWriteMediaSourceOneOf, _ as MediaItem, $ as MediaItemItemOneOf, z as MediaItemType, a0 as MediaItemUrlAndSize, a1 as MediaItemVideo, cj as MessageEnvelope, N as NumericPropertyRange, aI as OptionAndChoice, O as OptionType, a5 as PageUrl, by as Paging, bA as PagingMetadata, bL as PagingWithBigLimit, bj as PercentageData, c1 as PlatformMedia, c2 as PlatformMediaMediaOneOf, bE as PlatformPaging, bH as PlatformPagingMetadata, bC as PlatformQueryPagingMethodOneOf, c5 as PreorderInfo, K as PriceData, T as PricePerUnitData, bp as ProductChanged, bo as ProductCreated, bq as ProductDeleted, a3 as ProductOption, bY as ProductOptionsAvailabilityRequest, x as ProductType, cn as ProductsQueryResult, bh as PropertyAdjustmentData, bi as PropertyAdjustmentDataByOneOf, bx as Query, bT as QueryCollectionsPlatformizedRequest, bU as QueryCollectionsPlatformizedResponse, bR as QueryCollectionsRequest, bS as QueryCollectionsResponse, cc as QueryCustomFieldsRequest, cd as QueryCustomFieldsResponse, b_ as QueryProductVariantsRequest, bB as QueryProductsPlatformizedRequest, bG as QueryProductsPlatformizedResponse, bw as QueryProductsRequest, bz as QueryProductsResponse, bJ as QueryProductsWithBigPageLimitRequest, b$ as QueryStoreVariantsRequest, c6 as QueryStoreVariantsWithBigLimitRequest, bK as QueryWithBigPageLimit, bm as ReCloneStoreRequest, bn as ReCloneStoreResponse, aU as RemoveCustomFieldsRequest, aV as RemoveCustomFieldsResponse, aW as RemoveProductBrandRequest, aX as RemoveProductBrandResponse, aO as RemoveProductMediaFromChoicesRequest, aP as RemoveProductMediaFromChoicesResponse, aK as RemoveProductMediaRequest, aL as RemoveProductMediaResponse, b4 as RemoveProductRibbonRequest, b5 as RemoveProductRibbonResponse, aE as RemoveProductsFromCollectionRequest, aF as RemoveProductsFromCollectionResponse, aA as ResetAllVariantDataRequest, aB as ResetAllVariantDataResponse, Y as Ribbon, ae as SecuredMedia, aa as SeoSchema, aS as SetCustomFieldsRequest, aT as SetCustomFieldsResponse, b7 as SetValueValueOneOf, ad as Settings, H as SortOrder, bD as Sorting, J as Stock, c0 as StoreVariant, ac as Tag, ca as UnlimitedPlatformCursorPaging, c9 as UnlimitedPlatformPaging, c7 as UnlimitedPlatformQuery, c8 as UnlimitedPlatformQueryPagingMethodOneOf, b1 as UpdateCollectionRequest, ar as UpdateProductPlatformizedRequest, as as UpdateProductPlatformizedResponse, aq as UpdateProductRequest, az as UpdateVariantsRequest, af as V1CreateProductPlatformizedRequest, ag as V1CreateProductPlatformizedResponse, aj as V1DeleteProductPlatformizedRequest, ak as V1DeleteProductPlatformizedResponse, ah as V1UpdateProductPlatformizedRequest, ai as V1UpdateProductPlatformizedResponse, a7 as Variant, bv as VariantChanged, bZ as VariantData, a8 as VariantDataWithNoStock, a9 as VariantStock, bu as VariantsChanged, E as Version, c4 as VideoResolution, W as WebhookIdentityType } from './stores-catalog-v1-product-products.universal-DbP0_IgA.mjs';
4
+
5
+ declare function createProduct$1(httpClient: HttpClient): CreateProductSignature;
6
+ interface CreateProductSignature {
7
+ /**
8
+ * Creates a new product.
9
+ * @param - Product information.
10
+ */
11
+ (product: Product): Promise<CreateProductResponse>;
12
+ }
13
+ declare function updateProduct$1(httpClient: HttpClient): UpdateProductSignature;
14
+ interface UpdateProductSignature {
15
+ /**
16
+ * Updates specified fields in a product.
17
+ *
18
+ * To update a single field across multiple products, use [Bulk Update Product Property](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/bulk-update-product-property).
19
+ * @param - Product ID (generated automatically by the catalog).
20
+ * @param - Product info to update.
21
+ */
22
+ (_id: string, product: UpdateProduct): Promise<UpdateProductResponse>;
23
+ }
24
+ declare function deleteProduct$1(httpClient: HttpClient): DeleteProductSignature;
25
+ interface DeleteProductSignature {
26
+ /**
27
+ * Deletes a product.
28
+ * @param - ID of the product to delete.
29
+ */
30
+ (_id: string): Promise<void>;
31
+ }
32
+ declare function updateProductVariants$1(httpClient: HttpClient): UpdateProductVariantsSignature;
33
+ interface UpdateProductVariantsSignature {
34
+ /**
35
+ * Updates variants of a specified product.
36
+ * @param - ID of the product with managed variants.
37
+ * @param - Variant info to update.
38
+ */
39
+ (_id: string, variants: VariantOverride[]): Promise<UpdateVariantsResponse>;
40
+ }
41
+ declare function resetAllProductVariantData$1(httpClient: HttpClient): ResetAllProductVariantDataSignature;
42
+ interface ResetAllProductVariantDataSignature {
43
+ /**
44
+ * Resets the data (such as the price and the weight) of all variants for a given product to their default values.
45
+ * @param - Product ID.
46
+ */
47
+ (_id: string): Promise<void>;
48
+ }
49
+ declare function addProductsToCollection$1(httpClient: HttpClient): AddProductsToCollectionSignature;
50
+ interface AddProductsToCollectionSignature {
51
+ /**
52
+ * Adds products to a specified collection.
53
+ * @param - Collection ID.
54
+ * @param - IDs of the products to add to the collection, separated by commas.
55
+ */
56
+ (_id: string, productIds: string[]): Promise<void>;
57
+ }
58
+ declare function removeProductsFromCollection$1(httpClient: HttpClient): RemoveProductsFromCollectionSignature;
59
+ interface RemoveProductsFromCollectionSignature {
60
+ /**
61
+ * Deletes products from a specified collection.
62
+ * @param - ID of the collection from which to remove products.
63
+ * @param - IDs of the products to remove from the collection.
64
+ */
65
+ (_id: string, productIds: string[]): Promise<void>;
66
+ }
67
+ declare function addProductMedia$1(httpClient: HttpClient): AddProductMediaSignature;
68
+ interface AddProductMediaSignature {
69
+ /**
70
+ * Adds media items to a specified product, either via URL or existing media ID.
71
+ *
72
+ * > **NOTE:** The URL is not validated and no event is triggered to indicate if the media was added successfully.
73
+ * @param - Product ID.
74
+ * @param - Sources of media items already uploaded to the Wix site.
75
+ */
76
+ (_id: string, media: MediaDataForWrite[]): Promise<void>;
77
+ }
78
+ declare function removeProductMedia$1(httpClient: HttpClient): RemoveProductMediaSignature;
79
+ interface RemoveProductMediaSignature {
80
+ /**
81
+ * Removes specified media items from a product.
82
+ * Pass an empty array to remove all media items.
83
+ * @param - Product ID.
84
+ * @param - List of media IDs to remove. Pass an empty array to delete all media items for the product.
85
+ */
86
+ (_id: string, mediaIds: string[]): Promise<void>;
87
+ }
88
+ declare function addProductMediaToChoices$1(httpClient: HttpClient): AddProductMediaToChoicesSignature;
89
+ interface AddProductMediaToChoicesSignature {
90
+ /**
91
+ * Links media items that are already associated with a specific product to a choice within the same product.
92
+ *
93
+ * Media items can only be set for choices within one option at a time - e.g., if you set media items for some or all of the choices within the Colors option (blue, green, and red), you won't be able to also assign media items to choices within the Size option (S, M, and L).
94
+ *
95
+ * To remove all existing media items, call the [Remove Product Media From Choices](https://dev.wix.com/api/rest/wix-stores/catalog/products/remove-product-media-from-choices) endpoint.
96
+ * @param - Product ID.
97
+ * @param - Product media items and the choices to add the media to.
98
+ */
99
+ (_id: string, media: MediaAssignmentToChoice[]): Promise<void>;
100
+ }
101
+ declare function removeProductMediaFromChoices$1(httpClient: HttpClient): RemoveProductMediaFromChoicesSignature;
102
+ interface RemoveProductMediaFromChoicesSignature {
103
+ /**
104
+ * Removes media items from all or some of a product's choices.
105
+ * (Media items can only be set for choices within one option at a time - e.g., if you set media items for some or all of the choices within the Colors option (blue, green, and red), you won't be able to also assign media items to choices within the Size option (S, M, and L).)
106
+ * @param - Product ID from whose choices to remove media items.
107
+ * @param - Media to remove from choices. If an empty array is passed, all media will be removed from all choices for the given product.
108
+ */
109
+ (_id: string, media: MediaAssignmentToChoice[]): Promise<void>;
110
+ }
111
+ declare function deleteProductOptions$1(httpClient: HttpClient): DeleteProductOptionsSignature;
112
+ interface DeleteProductOptionsSignature {
113
+ /**
114
+ * Delete all options from a specific product. Only available when [variant management](https://support.wix.com/en/article/wix-stores-adding-and-customizing-product-options#setting-different-prices-for-variants) is disabled.
115
+ * @param - ID of the product with options to delete.
116
+ */
117
+ (_id: string): Promise<void>;
118
+ }
119
+ declare function removeBrand$1(httpClient: HttpClient): RemoveBrandSignature;
120
+ interface RemoveBrandSignature {
121
+ /**
122
+ * Deletes a product's brand.
123
+ * @param - Product ID.
124
+ */
125
+ (_id: string): Promise<void>;
126
+ }
127
+ declare function createCollection$1(httpClient: HttpClient): CreateCollectionSignature;
128
+ interface CreateCollectionSignature {
129
+ /**
130
+ * Creates a new collection.
131
+ * @param - Collection info.
132
+ */
133
+ (collection: Collection): Promise<CreateCollectionResponse>;
134
+ }
135
+ declare function updateCollection$1(httpClient: HttpClient): UpdateCollectionSignature;
136
+ interface UpdateCollectionSignature {
137
+ /**
138
+ * Updates specified properties of a collection. To add products to a collection, call the [addProductsToCollection](#addproductstocollection) function.
139
+ * @param - Collection ID (generated automatically by the catalog).
140
+ * @param - Collection info to update.
141
+ */
142
+ (_id: string, collection: UpdateCollection): Promise<UpdateCollectionResponse>;
143
+ }
144
+ declare function deleteCollection$1(httpClient: HttpClient): DeleteCollectionSignature;
145
+ interface DeleteCollectionSignature {
146
+ /**
147
+ * Deletes a collection.
148
+ * @param - ID of the collection to delete.
149
+ */
150
+ (_id: string): Promise<void>;
151
+ }
152
+ declare function removeRibbon$1(httpClient: HttpClient): RemoveRibbonSignature;
153
+ interface RemoveRibbonSignature {
154
+ /**
155
+ * Deletes a product's ribbon.
156
+ * @param - Product ID.
157
+ */
158
+ (_id: string): Promise<void>;
159
+ }
160
+ declare function bulkUpdateProductsProperty$1(httpClient: HttpClient): BulkUpdateProductsPropertySignature;
161
+ interface BulkUpdateProductsPropertySignature {
162
+ /**
163
+ * Updates a specified property for up to 100 products at a time.
164
+ * @param - Product IDs.
165
+ * @param - Field to update.
166
+ */
167
+ (ids: string[], set: SetValue): Promise<BulkUpdateProductsResponse>;
168
+ }
169
+ declare function bulkAdjustProductProperty$1(httpClient: HttpClient): BulkAdjustProductPropertySignature;
170
+ interface BulkAdjustProductPropertySignature {
171
+ /**
172
+ * Adjusts a specified numerical property for up to 100 products at a time.
173
+ * The property can be increased or decreased either by percentage or amount.
174
+ * @param - Numerical property to adjust.
175
+ * @param - Product IDs.
176
+ */
177
+ (adjust: AdjustValue, ids: string[]): Promise<BulkAdjustProductPropertiesResponse>;
178
+ }
179
+ declare function queryProducts$1(httpClient: HttpClient): QueryProductsSignature;
180
+ interface QueryProductsSignature {
181
+ /**
182
+ * Returns a list of up to 100 products, given the provided paging, sorting and filtering.
183
+ */
184
+ (): ProductsQueryBuilder;
185
+ }
186
+ declare function getProduct$1(httpClient: HttpClient): GetProductSignature;
187
+ interface GetProductSignature {
188
+ /**
189
+ * Retrieves a product with the provided ID.
190
+ * @param - Requested product ID.
191
+ */
192
+ (_id: string, options?: GetProductOptions | undefined): Promise<GetProductResponse>;
193
+ }
194
+ declare function getCollectionBySlug$1(httpClient: HttpClient): GetCollectionBySlugSignature;
195
+ interface GetCollectionBySlugSignature {
196
+ /**
197
+ * Retrieves a collection with the provided slug.
198
+ * @param - Slug of the collection to retrieve.
199
+ */
200
+ (slug: string): Promise<GetCollectionBySlugResponse>;
201
+ }
202
+ declare function getProductOptionsAvailability$1(httpClient: HttpClient): GetProductOptionsAvailabilitySignature;
203
+ interface GetProductOptionsAvailabilitySignature {
204
+ /**
205
+ * Gets the availability of relevant product variants based on the product ID and selections provided. See [Use Cases](https://dev.wix.com/api/rest/wix-stores/catalog/use-cases) for an example.
206
+ * @param - Requested product ID.
207
+ * @param - Array containing the selected options. For example, `["color": "Blue", "size": "Large"]`.
208
+ */
209
+ (_id: string, options: Record<string, string>): Promise<ProductOptionsAvailabilityResponse>;
210
+ }
211
+ declare function queryProductVariants$1(httpClient: HttpClient): QueryProductVariantsSignature;
212
+ interface QueryProductVariantsSignature {
213
+ /**
214
+ * Retrieves product variants, based on either choices (option-choice key-value pairs) or variant IDs.
215
+ * See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
216
+ * @param - Requested product ID.
217
+ */
218
+ (_id: string, options?: QueryProductVariantsOptions | undefined): Promise<QueryProductVariantsResponse>;
219
+ }
220
+ declare function queryStoreVariants$1(httpClient: HttpClient): QueryStoreVariantsSignature;
221
+ interface QueryStoreVariantsSignature {
222
+ /**
223
+ * Retrieves up to 100 store variants, given the provided paging, filtering, and sorting.
224
+ * @param - Query options.
225
+ */
226
+ (query: PlatformQuery): Promise<QueryStoreVariantsResponse>;
227
+ }
228
+ declare function getStoreVariant$1(httpClient: HttpClient): GetStoreVariantSignature;
229
+ interface GetStoreVariantSignature {
230
+ /**
231
+ * Retrieves a store variant with the provided ID.
232
+ * @param - Store variant ID. Comprised of the `productId` and the `variantId`, separated by a hyphen. For example, `{productId}-{variantId}`.
233
+ */
234
+ (_id: string): Promise<GetStoreVariantResponse>;
235
+ }
236
+ declare const onProductCollectionChanged$1: EventDefinition<ProductCollectionChangedEnvelope, "com.wix.ecommerce.catalog.api.v1.CollectionChanged">;
237
+ declare const onProductCollectionCreated$1: EventDefinition<ProductCollectionCreatedEnvelope, "com.wix.ecommerce.catalog.api.v1.CollectionCreated">;
238
+ declare const onProductCollectionDeleted$1: EventDefinition<ProductCollectionDeletedEnvelope, "com.wix.ecommerce.catalog.api.v1.CollectionDeleted">;
239
+ declare const onProductChanged$1: EventDefinition<ProductChangedEnvelope, "com.wix.ecommerce.catalog.api.v1.ProductChanged">;
240
+ declare const onProductCreated$1: EventDefinition<ProductCreatedEnvelope, "com.wix.ecommerce.catalog.api.v1.ProductCreated">;
241
+ declare const onProductDeleted$1: EventDefinition<ProductDeletedEnvelope, "com.wix.ecommerce.catalog.api.v1.ProductDeleted">;
242
+ declare const onProductVariantsChanged$1: EventDefinition<ProductVariantsChangedEnvelope, "com.wix.ecommerce.catalog.api.v1.VariantsChanged">;
243
+
244
+ declare const createProduct: MaybeContext<BuildRESTFunction<typeof createProduct$1> & typeof createProduct$1>;
245
+ declare const updateProduct: MaybeContext<BuildRESTFunction<typeof updateProduct$1> & typeof updateProduct$1>;
246
+ declare const deleteProduct: MaybeContext<BuildRESTFunction<typeof deleteProduct$1> & typeof deleteProduct$1>;
247
+ declare const updateProductVariants: MaybeContext<BuildRESTFunction<typeof updateProductVariants$1> & typeof updateProductVariants$1>;
248
+ declare const resetAllProductVariantData: MaybeContext<BuildRESTFunction<typeof resetAllProductVariantData$1> & typeof resetAllProductVariantData$1>;
249
+ declare const addProductsToCollection: MaybeContext<BuildRESTFunction<typeof addProductsToCollection$1> & typeof addProductsToCollection$1>;
250
+ declare const removeProductsFromCollection: MaybeContext<BuildRESTFunction<typeof removeProductsFromCollection$1> & typeof removeProductsFromCollection$1>;
251
+ declare const addProductMedia: MaybeContext<BuildRESTFunction<typeof addProductMedia$1> & typeof addProductMedia$1>;
252
+ declare const removeProductMedia: MaybeContext<BuildRESTFunction<typeof removeProductMedia$1> & typeof removeProductMedia$1>;
253
+ declare const addProductMediaToChoices: MaybeContext<BuildRESTFunction<typeof addProductMediaToChoices$1> & typeof addProductMediaToChoices$1>;
254
+ declare const removeProductMediaFromChoices: MaybeContext<BuildRESTFunction<typeof removeProductMediaFromChoices$1> & typeof removeProductMediaFromChoices$1>;
255
+ declare const deleteProductOptions: MaybeContext<BuildRESTFunction<typeof deleteProductOptions$1> & typeof deleteProductOptions$1>;
256
+ declare const removeBrand: MaybeContext<BuildRESTFunction<typeof removeBrand$1> & typeof removeBrand$1>;
257
+ declare const createCollection: MaybeContext<BuildRESTFunction<typeof createCollection$1> & typeof createCollection$1>;
258
+ declare const updateCollection: MaybeContext<BuildRESTFunction<typeof updateCollection$1> & typeof updateCollection$1>;
259
+ declare const deleteCollection: MaybeContext<BuildRESTFunction<typeof deleteCollection$1> & typeof deleteCollection$1>;
260
+ declare const removeRibbon: MaybeContext<BuildRESTFunction<typeof removeRibbon$1> & typeof removeRibbon$1>;
261
+ declare const bulkUpdateProductsProperty: MaybeContext<BuildRESTFunction<typeof bulkUpdateProductsProperty$1> & typeof bulkUpdateProductsProperty$1>;
262
+ declare const bulkAdjustProductProperty: MaybeContext<BuildRESTFunction<typeof bulkAdjustProductProperty$1> & typeof bulkAdjustProductProperty$1>;
263
+ declare const queryProducts: MaybeContext<BuildRESTFunction<typeof queryProducts$1> & typeof queryProducts$1>;
264
+ declare const getProduct: MaybeContext<BuildRESTFunction<typeof getProduct$1> & typeof getProduct$1>;
265
+ declare const getCollectionBySlug: MaybeContext<BuildRESTFunction<typeof getCollectionBySlug$1> & typeof getCollectionBySlug$1>;
266
+ declare const getProductOptionsAvailability: MaybeContext<BuildRESTFunction<typeof getProductOptionsAvailability$1> & typeof getProductOptionsAvailability$1>;
267
+ declare const queryProductVariants: MaybeContext<BuildRESTFunction<typeof queryProductVariants$1> & typeof queryProductVariants$1>;
268
+ declare const queryStoreVariants: MaybeContext<BuildRESTFunction<typeof queryStoreVariants$1> & typeof queryStoreVariants$1>;
269
+ declare const getStoreVariant: MaybeContext<BuildRESTFunction<typeof getStoreVariant$1> & typeof getStoreVariant$1>;
270
+ /**
271
+ * Triggered when a collection is changed.
272
+ */
273
+ declare const onProductCollectionChanged: BuildEventDefinition<typeof onProductCollectionChanged$1>;
274
+ /**
275
+ * Triggered when a collection is created.
276
+ */
277
+ declare const onProductCollectionCreated: BuildEventDefinition<typeof onProductCollectionCreated$1>;
278
+ /**
279
+ * Triggered when a collection is deleted.
280
+ */
281
+ declare const onProductCollectionDeleted: BuildEventDefinition<typeof onProductCollectionDeleted$1>;
282
+ /**
283
+ * Triggered when a product is changed.
284
+ */
285
+ declare const onProductChanged: BuildEventDefinition<typeof onProductChanged$1>;
286
+ /**
287
+ * Triggered when a product is created.
288
+ */
289
+ declare const onProductCreated: BuildEventDefinition<typeof onProductCreated$1>;
290
+ /**
291
+ * Triggered when a product is deleted.
292
+ */
293
+ declare const onProductDeleted: BuildEventDefinition<typeof onProductDeleted$1>;
294
+ /**
295
+ * Triggered when a product variant is changed.
296
+ */
297
+ declare const onProductVariantsChanged: BuildEventDefinition<typeof onProductVariantsChanged$1>;
298
+
299
+ export { AdjustValue, BulkAdjustProductPropertiesResponse, BulkUpdateProductsResponse, Collection, CreateCollectionResponse, CreateProductResponse, GetCollectionBySlugResponse, GetProductOptions, GetProductResponse, GetStoreVariantResponse, MediaAssignmentToChoice, MediaDataForWrite, PlatformQuery, Product, ProductChangedEnvelope, ProductCollectionChangedEnvelope, ProductCollectionCreatedEnvelope, ProductCollectionDeletedEnvelope, ProductCreatedEnvelope, ProductDeletedEnvelope, ProductOptionsAvailabilityResponse, ProductVariantsChangedEnvelope, ProductsQueryBuilder, QueryProductVariantsOptions, QueryProductVariantsResponse, QueryStoreVariantsResponse, SetValue, UpdateCollection, UpdateCollectionResponse, UpdateProduct, UpdateProductResponse, UpdateVariantsResponse, VariantOverride, addProductMedia, addProductMediaToChoices, addProductsToCollection, bulkAdjustProductProperty, bulkUpdateProductsProperty, createCollection, createProduct, deleteCollection, deleteProduct, deleteProductOptions, getCollectionBySlug, getProduct, getProductOptionsAvailability, getStoreVariant, onProductChanged, onProductCollectionChanged, onProductCollectionCreated, onProductCollectionDeleted, onProductCreated, onProductDeleted, onProductVariantsChanged, queryProductVariants, queryProducts, queryStoreVariants, removeBrand, removeProductMedia, removeProductMediaFromChoices, removeProductsFromCollection, removeRibbon, resetAllProductVariantData, updateCollection, updateProduct, updateProductVariants };
@@ -0,0 +1,299 @@
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { P as Product, C as CreateProductResponse, U as UpdateProduct, a as UpdateProductResponse, V as VariantOverride, b as UpdateVariantsResponse, M as MediaDataForWrite, c as MediaAssignmentToChoice, d as Collection, e as CreateCollectionResponse, f as UpdateCollection, g as UpdateCollectionResponse, S as SetValue, B as BulkUpdateProductsResponse, A as AdjustValue, h as BulkAdjustProductPropertiesResponse, i as ProductsQueryBuilder, G as GetProductOptions, j as GetProductResponse, k as GetCollectionBySlugResponse, l as ProductOptionsAvailabilityResponse, Q as QueryProductVariantsOptions, m as QueryProductVariantsResponse, n as PlatformQuery, o as QueryStoreVariantsResponse, p as GetStoreVariantResponse, q as ProductCollectionChangedEnvelope, r as ProductCollectionCreatedEnvelope, s as ProductCollectionDeletedEnvelope, t as ProductChangedEnvelope, u as ProductCreatedEnvelope, v as ProductDeletedEnvelope, w as ProductVariantsChangedEnvelope } from './stores-catalog-v1-product-products.universal-DbP0_IgA.js';
3
+ export { aG as AddProductMediaRequest, aJ as AddProductMediaResponse, aM as AddProductMediaToChoicesRequest, aN as AddProductMediaToChoicesResponse, aC as AddProductsToCollectionRequest, aD as AddProductsToCollectionResponse, X as AdditionalInfoSection, bg as AdjustValueValueOneOf, ch as AggregateProductsRequest, ci as AggregateProductsResponse, be as AllowedProductsCountLimitExceededErrorData, ba as ApplicationError, cm as BaseEventMetadata, bb as BulkActionMetadata, bk as BulkAdjustProductPropertiesByFilterSyncRequest, bl as BulkAdjustProductPropertiesByFilterSyncResponse, bf as BulkAdjustProductPropertiesRequest, ax as BulkDeleteProductsRequest, ay as BulkDeleteProductsResponse, b8 as BulkProductResult, ce as BulkQueryCustomFieldsRequest, cf as BulkQueryCustomFieldsResponse, a_ as BulkRemoveCustomFieldsRequest, a$ as BulkRemoveCustomFieldsResponse, aY as BulkSetCustomFieldsRequest, aZ as BulkSetCustomFieldsResponse, bc as BulkUpdateProductsByFilterSyncRequest, bd as BulkUpdateProductsByFilterSyncResponse, b6 as BulkUpdateProductsRequest, a4 as Choice, bs as CollectionChanged, br as CollectionCreated, bt as CollectionDeleted, R as CostAndProfitData, b0 as CreateCollectionRequest, ao as CreateDigitalProductRequest, ap as CreateDigitalProductResponse, am as CreateProductPlatformizedRequest, an as CreateProductPlatformizedResponse, al as CreateProductRequest, bF as CursorPaging, bI as Cursors, cg as CustomFieldsContainer, a2 as CustomTextField, b2 as DeleteCollectionRequest, b3 as DeleteCollectionResponse, aQ as DeleteProductOptionsRequest, aR as DeleteProductOptionsResponse, av as DeleteProductPlatformizedRequest, aw as DeleteProductPlatformizedResponse, at as DeleteProductRequest, au as DeleteProductResponse, a6 as Discount, D as DiscountType, F as FileType, c3 as FocalPoint, L as FormattedPrice, bX as GetCollectionBySlugRequest, bV as GetCollectionRequest, bW as GetCollectionResponse, bP as GetProductPlatformizedRequest, bQ as GetProductPlatformizedResponse, bO as GetProductRequest, bM as GetProductsRequest, bN as GetProductsResponse, cb as GetStoreVariantRequest, ck as IdentificationData, cl as IdentificationDataIdOneOf, I as InventoryStatus, b9 as ItemMetadata, ab as Keyword, y as MeasurementUnit, Z as Media, aH as MediaDataForWriteMediaSourceOneOf, _ as MediaItem, $ as MediaItemItemOneOf, z as MediaItemType, a0 as MediaItemUrlAndSize, a1 as MediaItemVideo, cj as MessageEnvelope, N as NumericPropertyRange, aI as OptionAndChoice, O as OptionType, a5 as PageUrl, by as Paging, bA as PagingMetadata, bL as PagingWithBigLimit, bj as PercentageData, c1 as PlatformMedia, c2 as PlatformMediaMediaOneOf, bE as PlatformPaging, bH as PlatformPagingMetadata, bC as PlatformQueryPagingMethodOneOf, c5 as PreorderInfo, K as PriceData, T as PricePerUnitData, bp as ProductChanged, bo as ProductCreated, bq as ProductDeleted, a3 as ProductOption, bY as ProductOptionsAvailabilityRequest, x as ProductType, cn as ProductsQueryResult, bh as PropertyAdjustmentData, bi as PropertyAdjustmentDataByOneOf, bx as Query, bT as QueryCollectionsPlatformizedRequest, bU as QueryCollectionsPlatformizedResponse, bR as QueryCollectionsRequest, bS as QueryCollectionsResponse, cc as QueryCustomFieldsRequest, cd as QueryCustomFieldsResponse, b_ as QueryProductVariantsRequest, bB as QueryProductsPlatformizedRequest, bG as QueryProductsPlatformizedResponse, bw as QueryProductsRequest, bz as QueryProductsResponse, bJ as QueryProductsWithBigPageLimitRequest, b$ as QueryStoreVariantsRequest, c6 as QueryStoreVariantsWithBigLimitRequest, bK as QueryWithBigPageLimit, bm as ReCloneStoreRequest, bn as ReCloneStoreResponse, aU as RemoveCustomFieldsRequest, aV as RemoveCustomFieldsResponse, aW as RemoveProductBrandRequest, aX as RemoveProductBrandResponse, aO as RemoveProductMediaFromChoicesRequest, aP as RemoveProductMediaFromChoicesResponse, aK as RemoveProductMediaRequest, aL as RemoveProductMediaResponse, b4 as RemoveProductRibbonRequest, b5 as RemoveProductRibbonResponse, aE as RemoveProductsFromCollectionRequest, aF as RemoveProductsFromCollectionResponse, aA as ResetAllVariantDataRequest, aB as ResetAllVariantDataResponse, Y as Ribbon, ae as SecuredMedia, aa as SeoSchema, aS as SetCustomFieldsRequest, aT as SetCustomFieldsResponse, b7 as SetValueValueOneOf, ad as Settings, H as SortOrder, bD as Sorting, J as Stock, c0 as StoreVariant, ac as Tag, ca as UnlimitedPlatformCursorPaging, c9 as UnlimitedPlatformPaging, c7 as UnlimitedPlatformQuery, c8 as UnlimitedPlatformQueryPagingMethodOneOf, b1 as UpdateCollectionRequest, ar as UpdateProductPlatformizedRequest, as as UpdateProductPlatformizedResponse, aq as UpdateProductRequest, az as UpdateVariantsRequest, af as V1CreateProductPlatformizedRequest, ag as V1CreateProductPlatformizedResponse, aj as V1DeleteProductPlatformizedRequest, ak as V1DeleteProductPlatformizedResponse, ah as V1UpdateProductPlatformizedRequest, ai as V1UpdateProductPlatformizedResponse, a7 as Variant, bv as VariantChanged, bZ as VariantData, a8 as VariantDataWithNoStock, a9 as VariantStock, bu as VariantsChanged, E as Version, c4 as VideoResolution, W as WebhookIdentityType } from './stores-catalog-v1-product-products.universal-DbP0_IgA.js';
4
+
5
+ declare function createProduct$1(httpClient: HttpClient): CreateProductSignature;
6
+ interface CreateProductSignature {
7
+ /**
8
+ * Creates a new product.
9
+ * @param - Product information.
10
+ */
11
+ (product: Product): Promise<CreateProductResponse>;
12
+ }
13
+ declare function updateProduct$1(httpClient: HttpClient): UpdateProductSignature;
14
+ interface UpdateProductSignature {
15
+ /**
16
+ * Updates specified fields in a product.
17
+ *
18
+ * To update a single field across multiple products, use [Bulk Update Product Property](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/bulk-update-product-property).
19
+ * @param - Product ID (generated automatically by the catalog).
20
+ * @param - Product info to update.
21
+ */
22
+ (_id: string, product: UpdateProduct): Promise<UpdateProductResponse>;
23
+ }
24
+ declare function deleteProduct$1(httpClient: HttpClient): DeleteProductSignature;
25
+ interface DeleteProductSignature {
26
+ /**
27
+ * Deletes a product.
28
+ * @param - ID of the product to delete.
29
+ */
30
+ (_id: string): Promise<void>;
31
+ }
32
+ declare function updateProductVariants$1(httpClient: HttpClient): UpdateProductVariantsSignature;
33
+ interface UpdateProductVariantsSignature {
34
+ /**
35
+ * Updates variants of a specified product.
36
+ * @param - ID of the product with managed variants.
37
+ * @param - Variant info to update.
38
+ */
39
+ (_id: string, variants: VariantOverride[]): Promise<UpdateVariantsResponse>;
40
+ }
41
+ declare function resetAllProductVariantData$1(httpClient: HttpClient): ResetAllProductVariantDataSignature;
42
+ interface ResetAllProductVariantDataSignature {
43
+ /**
44
+ * Resets the data (such as the price and the weight) of all variants for a given product to their default values.
45
+ * @param - Product ID.
46
+ */
47
+ (_id: string): Promise<void>;
48
+ }
49
+ declare function addProductsToCollection$1(httpClient: HttpClient): AddProductsToCollectionSignature;
50
+ interface AddProductsToCollectionSignature {
51
+ /**
52
+ * Adds products to a specified collection.
53
+ * @param - Collection ID.
54
+ * @param - IDs of the products to add to the collection, separated by commas.
55
+ */
56
+ (_id: string, productIds: string[]): Promise<void>;
57
+ }
58
+ declare function removeProductsFromCollection$1(httpClient: HttpClient): RemoveProductsFromCollectionSignature;
59
+ interface RemoveProductsFromCollectionSignature {
60
+ /**
61
+ * Deletes products from a specified collection.
62
+ * @param - ID of the collection from which to remove products.
63
+ * @param - IDs of the products to remove from the collection.
64
+ */
65
+ (_id: string, productIds: string[]): Promise<void>;
66
+ }
67
+ declare function addProductMedia$1(httpClient: HttpClient): AddProductMediaSignature;
68
+ interface AddProductMediaSignature {
69
+ /**
70
+ * Adds media items to a specified product, either via URL or existing media ID.
71
+ *
72
+ * > **NOTE:** The URL is not validated and no event is triggered to indicate if the media was added successfully.
73
+ * @param - Product ID.
74
+ * @param - Sources of media items already uploaded to the Wix site.
75
+ */
76
+ (_id: string, media: MediaDataForWrite[]): Promise<void>;
77
+ }
78
+ declare function removeProductMedia$1(httpClient: HttpClient): RemoveProductMediaSignature;
79
+ interface RemoveProductMediaSignature {
80
+ /**
81
+ * Removes specified media items from a product.
82
+ * Pass an empty array to remove all media items.
83
+ * @param - Product ID.
84
+ * @param - List of media IDs to remove. Pass an empty array to delete all media items for the product.
85
+ */
86
+ (_id: string, mediaIds: string[]): Promise<void>;
87
+ }
88
+ declare function addProductMediaToChoices$1(httpClient: HttpClient): AddProductMediaToChoicesSignature;
89
+ interface AddProductMediaToChoicesSignature {
90
+ /**
91
+ * Links media items that are already associated with a specific product to a choice within the same product.
92
+ *
93
+ * Media items can only be set for choices within one option at a time - e.g., if you set media items for some or all of the choices within the Colors option (blue, green, and red), you won't be able to also assign media items to choices within the Size option (S, M, and L).
94
+ *
95
+ * To remove all existing media items, call the [Remove Product Media From Choices](https://dev.wix.com/api/rest/wix-stores/catalog/products/remove-product-media-from-choices) endpoint.
96
+ * @param - Product ID.
97
+ * @param - Product media items and the choices to add the media to.
98
+ */
99
+ (_id: string, media: MediaAssignmentToChoice[]): Promise<void>;
100
+ }
101
+ declare function removeProductMediaFromChoices$1(httpClient: HttpClient): RemoveProductMediaFromChoicesSignature;
102
+ interface RemoveProductMediaFromChoicesSignature {
103
+ /**
104
+ * Removes media items from all or some of a product's choices.
105
+ * (Media items can only be set for choices within one option at a time - e.g., if you set media items for some or all of the choices within the Colors option (blue, green, and red), you won't be able to also assign media items to choices within the Size option (S, M, and L).)
106
+ * @param - Product ID from whose choices to remove media items.
107
+ * @param - Media to remove from choices. If an empty array is passed, all media will be removed from all choices for the given product.
108
+ */
109
+ (_id: string, media: MediaAssignmentToChoice[]): Promise<void>;
110
+ }
111
+ declare function deleteProductOptions$1(httpClient: HttpClient): DeleteProductOptionsSignature;
112
+ interface DeleteProductOptionsSignature {
113
+ /**
114
+ * Delete all options from a specific product. Only available when [variant management](https://support.wix.com/en/article/wix-stores-adding-and-customizing-product-options#setting-different-prices-for-variants) is disabled.
115
+ * @param - ID of the product with options to delete.
116
+ */
117
+ (_id: string): Promise<void>;
118
+ }
119
+ declare function removeBrand$1(httpClient: HttpClient): RemoveBrandSignature;
120
+ interface RemoveBrandSignature {
121
+ /**
122
+ * Deletes a product's brand.
123
+ * @param - Product ID.
124
+ */
125
+ (_id: string): Promise<void>;
126
+ }
127
+ declare function createCollection$1(httpClient: HttpClient): CreateCollectionSignature;
128
+ interface CreateCollectionSignature {
129
+ /**
130
+ * Creates a new collection.
131
+ * @param - Collection info.
132
+ */
133
+ (collection: Collection): Promise<CreateCollectionResponse>;
134
+ }
135
+ declare function updateCollection$1(httpClient: HttpClient): UpdateCollectionSignature;
136
+ interface UpdateCollectionSignature {
137
+ /**
138
+ * Updates specified properties of a collection. To add products to a collection, call the [addProductsToCollection](#addproductstocollection) function.
139
+ * @param - Collection ID (generated automatically by the catalog).
140
+ * @param - Collection info to update.
141
+ */
142
+ (_id: string, collection: UpdateCollection): Promise<UpdateCollectionResponse>;
143
+ }
144
+ declare function deleteCollection$1(httpClient: HttpClient): DeleteCollectionSignature;
145
+ interface DeleteCollectionSignature {
146
+ /**
147
+ * Deletes a collection.
148
+ * @param - ID of the collection to delete.
149
+ */
150
+ (_id: string): Promise<void>;
151
+ }
152
+ declare function removeRibbon$1(httpClient: HttpClient): RemoveRibbonSignature;
153
+ interface RemoveRibbonSignature {
154
+ /**
155
+ * Deletes a product's ribbon.
156
+ * @param - Product ID.
157
+ */
158
+ (_id: string): Promise<void>;
159
+ }
160
+ declare function bulkUpdateProductsProperty$1(httpClient: HttpClient): BulkUpdateProductsPropertySignature;
161
+ interface BulkUpdateProductsPropertySignature {
162
+ /**
163
+ * Updates a specified property for up to 100 products at a time.
164
+ * @param - Product IDs.
165
+ * @param - Field to update.
166
+ */
167
+ (ids: string[], set: SetValue): Promise<BulkUpdateProductsResponse>;
168
+ }
169
+ declare function bulkAdjustProductProperty$1(httpClient: HttpClient): BulkAdjustProductPropertySignature;
170
+ interface BulkAdjustProductPropertySignature {
171
+ /**
172
+ * Adjusts a specified numerical property for up to 100 products at a time.
173
+ * The property can be increased or decreased either by percentage or amount.
174
+ * @param - Numerical property to adjust.
175
+ * @param - Product IDs.
176
+ */
177
+ (adjust: AdjustValue, ids: string[]): Promise<BulkAdjustProductPropertiesResponse>;
178
+ }
179
+ declare function queryProducts$1(httpClient: HttpClient): QueryProductsSignature;
180
+ interface QueryProductsSignature {
181
+ /**
182
+ * Returns a list of up to 100 products, given the provided paging, sorting and filtering.
183
+ */
184
+ (): ProductsQueryBuilder;
185
+ }
186
+ declare function getProduct$1(httpClient: HttpClient): GetProductSignature;
187
+ interface GetProductSignature {
188
+ /**
189
+ * Retrieves a product with the provided ID.
190
+ * @param - Requested product ID.
191
+ */
192
+ (_id: string, options?: GetProductOptions | undefined): Promise<GetProductResponse>;
193
+ }
194
+ declare function getCollectionBySlug$1(httpClient: HttpClient): GetCollectionBySlugSignature;
195
+ interface GetCollectionBySlugSignature {
196
+ /**
197
+ * Retrieves a collection with the provided slug.
198
+ * @param - Slug of the collection to retrieve.
199
+ */
200
+ (slug: string): Promise<GetCollectionBySlugResponse>;
201
+ }
202
+ declare function getProductOptionsAvailability$1(httpClient: HttpClient): GetProductOptionsAvailabilitySignature;
203
+ interface GetProductOptionsAvailabilitySignature {
204
+ /**
205
+ * Gets the availability of relevant product variants based on the product ID and selections provided. See [Use Cases](https://dev.wix.com/api/rest/wix-stores/catalog/use-cases) for an example.
206
+ * @param - Requested product ID.
207
+ * @param - Array containing the selected options. For example, `["color": "Blue", "size": "Large"]`.
208
+ */
209
+ (_id: string, options: Record<string, string>): Promise<ProductOptionsAvailabilityResponse>;
210
+ }
211
+ declare function queryProductVariants$1(httpClient: HttpClient): QueryProductVariantsSignature;
212
+ interface QueryProductVariantsSignature {
213
+ /**
214
+ * Retrieves product variants, based on either choices (option-choice key-value pairs) or variant IDs.
215
+ * See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
216
+ * @param - Requested product ID.
217
+ */
218
+ (_id: string, options?: QueryProductVariantsOptions | undefined): Promise<QueryProductVariantsResponse>;
219
+ }
220
+ declare function queryStoreVariants$1(httpClient: HttpClient): QueryStoreVariantsSignature;
221
+ interface QueryStoreVariantsSignature {
222
+ /**
223
+ * Retrieves up to 100 store variants, given the provided paging, filtering, and sorting.
224
+ * @param - Query options.
225
+ */
226
+ (query: PlatformQuery): Promise<QueryStoreVariantsResponse>;
227
+ }
228
+ declare function getStoreVariant$1(httpClient: HttpClient): GetStoreVariantSignature;
229
+ interface GetStoreVariantSignature {
230
+ /**
231
+ * Retrieves a store variant with the provided ID.
232
+ * @param - Store variant ID. Comprised of the `productId` and the `variantId`, separated by a hyphen. For example, `{productId}-{variantId}`.
233
+ */
234
+ (_id: string): Promise<GetStoreVariantResponse>;
235
+ }
236
+ declare const onProductCollectionChanged$1: EventDefinition<ProductCollectionChangedEnvelope, "com.wix.ecommerce.catalog.api.v1.CollectionChanged">;
237
+ declare const onProductCollectionCreated$1: EventDefinition<ProductCollectionCreatedEnvelope, "com.wix.ecommerce.catalog.api.v1.CollectionCreated">;
238
+ declare const onProductCollectionDeleted$1: EventDefinition<ProductCollectionDeletedEnvelope, "com.wix.ecommerce.catalog.api.v1.CollectionDeleted">;
239
+ declare const onProductChanged$1: EventDefinition<ProductChangedEnvelope, "com.wix.ecommerce.catalog.api.v1.ProductChanged">;
240
+ declare const onProductCreated$1: EventDefinition<ProductCreatedEnvelope, "com.wix.ecommerce.catalog.api.v1.ProductCreated">;
241
+ declare const onProductDeleted$1: EventDefinition<ProductDeletedEnvelope, "com.wix.ecommerce.catalog.api.v1.ProductDeleted">;
242
+ declare const onProductVariantsChanged$1: EventDefinition<ProductVariantsChangedEnvelope, "com.wix.ecommerce.catalog.api.v1.VariantsChanged">;
243
+
244
+ declare const createProduct: MaybeContext<BuildRESTFunction<typeof createProduct$1> & typeof createProduct$1>;
245
+ declare const updateProduct: MaybeContext<BuildRESTFunction<typeof updateProduct$1> & typeof updateProduct$1>;
246
+ declare const deleteProduct: MaybeContext<BuildRESTFunction<typeof deleteProduct$1> & typeof deleteProduct$1>;
247
+ declare const updateProductVariants: MaybeContext<BuildRESTFunction<typeof updateProductVariants$1> & typeof updateProductVariants$1>;
248
+ declare const resetAllProductVariantData: MaybeContext<BuildRESTFunction<typeof resetAllProductVariantData$1> & typeof resetAllProductVariantData$1>;
249
+ declare const addProductsToCollection: MaybeContext<BuildRESTFunction<typeof addProductsToCollection$1> & typeof addProductsToCollection$1>;
250
+ declare const removeProductsFromCollection: MaybeContext<BuildRESTFunction<typeof removeProductsFromCollection$1> & typeof removeProductsFromCollection$1>;
251
+ declare const addProductMedia: MaybeContext<BuildRESTFunction<typeof addProductMedia$1> & typeof addProductMedia$1>;
252
+ declare const removeProductMedia: MaybeContext<BuildRESTFunction<typeof removeProductMedia$1> & typeof removeProductMedia$1>;
253
+ declare const addProductMediaToChoices: MaybeContext<BuildRESTFunction<typeof addProductMediaToChoices$1> & typeof addProductMediaToChoices$1>;
254
+ declare const removeProductMediaFromChoices: MaybeContext<BuildRESTFunction<typeof removeProductMediaFromChoices$1> & typeof removeProductMediaFromChoices$1>;
255
+ declare const deleteProductOptions: MaybeContext<BuildRESTFunction<typeof deleteProductOptions$1> & typeof deleteProductOptions$1>;
256
+ declare const removeBrand: MaybeContext<BuildRESTFunction<typeof removeBrand$1> & typeof removeBrand$1>;
257
+ declare const createCollection: MaybeContext<BuildRESTFunction<typeof createCollection$1> & typeof createCollection$1>;
258
+ declare const updateCollection: MaybeContext<BuildRESTFunction<typeof updateCollection$1> & typeof updateCollection$1>;
259
+ declare const deleteCollection: MaybeContext<BuildRESTFunction<typeof deleteCollection$1> & typeof deleteCollection$1>;
260
+ declare const removeRibbon: MaybeContext<BuildRESTFunction<typeof removeRibbon$1> & typeof removeRibbon$1>;
261
+ declare const bulkUpdateProductsProperty: MaybeContext<BuildRESTFunction<typeof bulkUpdateProductsProperty$1> & typeof bulkUpdateProductsProperty$1>;
262
+ declare const bulkAdjustProductProperty: MaybeContext<BuildRESTFunction<typeof bulkAdjustProductProperty$1> & typeof bulkAdjustProductProperty$1>;
263
+ declare const queryProducts: MaybeContext<BuildRESTFunction<typeof queryProducts$1> & typeof queryProducts$1>;
264
+ declare const getProduct: MaybeContext<BuildRESTFunction<typeof getProduct$1> & typeof getProduct$1>;
265
+ declare const getCollectionBySlug: MaybeContext<BuildRESTFunction<typeof getCollectionBySlug$1> & typeof getCollectionBySlug$1>;
266
+ declare const getProductOptionsAvailability: MaybeContext<BuildRESTFunction<typeof getProductOptionsAvailability$1> & typeof getProductOptionsAvailability$1>;
267
+ declare const queryProductVariants: MaybeContext<BuildRESTFunction<typeof queryProductVariants$1> & typeof queryProductVariants$1>;
268
+ declare const queryStoreVariants: MaybeContext<BuildRESTFunction<typeof queryStoreVariants$1> & typeof queryStoreVariants$1>;
269
+ declare const getStoreVariant: MaybeContext<BuildRESTFunction<typeof getStoreVariant$1> & typeof getStoreVariant$1>;
270
+ /**
271
+ * Triggered when a collection is changed.
272
+ */
273
+ declare const onProductCollectionChanged: BuildEventDefinition<typeof onProductCollectionChanged$1>;
274
+ /**
275
+ * Triggered when a collection is created.
276
+ */
277
+ declare const onProductCollectionCreated: BuildEventDefinition<typeof onProductCollectionCreated$1>;
278
+ /**
279
+ * Triggered when a collection is deleted.
280
+ */
281
+ declare const onProductCollectionDeleted: BuildEventDefinition<typeof onProductCollectionDeleted$1>;
282
+ /**
283
+ * Triggered when a product is changed.
284
+ */
285
+ declare const onProductChanged: BuildEventDefinition<typeof onProductChanged$1>;
286
+ /**
287
+ * Triggered when a product is created.
288
+ */
289
+ declare const onProductCreated: BuildEventDefinition<typeof onProductCreated$1>;
290
+ /**
291
+ * Triggered when a product is deleted.
292
+ */
293
+ declare const onProductDeleted: BuildEventDefinition<typeof onProductDeleted$1>;
294
+ /**
295
+ * Triggered when a product variant is changed.
296
+ */
297
+ declare const onProductVariantsChanged: BuildEventDefinition<typeof onProductVariantsChanged$1>;
298
+
299
+ export { AdjustValue, BulkAdjustProductPropertiesResponse, BulkUpdateProductsResponse, Collection, CreateCollectionResponse, CreateProductResponse, GetCollectionBySlugResponse, GetProductOptions, GetProductResponse, GetStoreVariantResponse, MediaAssignmentToChoice, MediaDataForWrite, PlatformQuery, Product, ProductChangedEnvelope, ProductCollectionChangedEnvelope, ProductCollectionCreatedEnvelope, ProductCollectionDeletedEnvelope, ProductCreatedEnvelope, ProductDeletedEnvelope, ProductOptionsAvailabilityResponse, ProductVariantsChangedEnvelope, ProductsQueryBuilder, QueryProductVariantsOptions, QueryProductVariantsResponse, QueryStoreVariantsResponse, SetValue, UpdateCollection, UpdateCollectionResponse, UpdateProduct, UpdateProductResponse, UpdateVariantsResponse, VariantOverride, addProductMedia, addProductMediaToChoices, addProductsToCollection, bulkAdjustProductProperty, bulkUpdateProductsProperty, createCollection, createProduct, deleteCollection, deleteProduct, deleteProductOptions, getCollectionBySlug, getProduct, getProductOptionsAvailability, getStoreVariant, onProductChanged, onProductCollectionChanged, onProductCollectionCreated, onProductCollectionDeleted, onProductCreated, onProductDeleted, onProductVariantsChanged, queryProductVariants, queryProducts, queryStoreVariants, removeBrand, removeProductMedia, removeProductMediaFromChoices, removeProductsFromCollection, removeRibbon, resetAllProductVariantData, updateCollection, updateProduct, updateProductVariants };