@wix/auto_sdk_suppliers-hub_products 1.0.6 → 1.0.8

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 (53) hide show
  1. package/build/cjs/index.d.ts +20 -3
  2. package/build/cjs/index.js +12 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2 -2
  5. package/build/cjs/index.typings.js +12 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1 -1
  8. package/build/cjs/meta.js +12 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +34 -1
  11. package/build/cjs/schemas.js +76 -0
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/cjs/{suppliershub-marketplace-product-v1-product-products.universal-DcUAuofc.d.ts → suppliershub-marketplace-product-v1-product-products.universal-CJtZJgLu.d.ts} +21 -1
  14. package/build/es/index.d.mts +20 -3
  15. package/build/es/index.mjs +12 -0
  16. package/build/es/index.mjs.map +1 -1
  17. package/build/es/index.typings.d.mts +2 -2
  18. package/build/es/index.typings.mjs +12 -0
  19. package/build/es/index.typings.mjs.map +1 -1
  20. package/build/es/meta.d.mts +1 -1
  21. package/build/es/meta.mjs +12 -0
  22. package/build/es/meta.mjs.map +1 -1
  23. package/build/es/schemas.d.mts +34 -1
  24. package/build/es/schemas.mjs +74 -0
  25. package/build/es/schemas.mjs.map +1 -1
  26. package/build/es/{suppliershub-marketplace-product-v1-product-products.universal-DcUAuofc.d.mts → suppliershub-marketplace-product-v1-product-products.universal-CJtZJgLu.d.mts} +21 -1
  27. package/build/internal/cjs/index.d.ts +2 -4
  28. package/build/internal/cjs/index.js +12 -0
  29. package/build/internal/cjs/index.js.map +1 -1
  30. package/build/internal/cjs/index.typings.d.ts +2 -2
  31. package/build/internal/cjs/index.typings.js +12 -0
  32. package/build/internal/cjs/index.typings.js.map +1 -1
  33. package/build/internal/cjs/meta.d.ts +1 -1
  34. package/build/internal/cjs/meta.js +12 -0
  35. package/build/internal/cjs/meta.js.map +1 -1
  36. package/build/internal/cjs/schemas.d.ts +34 -1
  37. package/build/internal/cjs/schemas.js +76 -0
  38. package/build/internal/cjs/schemas.js.map +1 -1
  39. package/build/internal/cjs/{suppliershub-marketplace-product-v1-product-products.universal-Dmb9xuXz.d.ts → suppliershub-marketplace-product-v1-product-products.universal-CvMqPcwD.d.ts} +1 -1
  40. package/build/internal/es/index.d.mts +2 -4
  41. package/build/internal/es/index.mjs +12 -0
  42. package/build/internal/es/index.mjs.map +1 -1
  43. package/build/internal/es/index.typings.d.mts +2 -2
  44. package/build/internal/es/index.typings.mjs +12 -0
  45. package/build/internal/es/index.typings.mjs.map +1 -1
  46. package/build/internal/es/meta.d.mts +1 -1
  47. package/build/internal/es/meta.mjs +12 -0
  48. package/build/internal/es/meta.mjs.map +1 -1
  49. package/build/internal/es/schemas.d.mts +34 -1
  50. package/build/internal/es/schemas.mjs +74 -0
  51. package/build/internal/es/schemas.mjs.map +1 -1
  52. package/build/internal/es/{suppliershub-marketplace-product-v1-product-products.universal-Dmb9xuXz.d.mts → suppliershub-marketplace-product-v1-product-products.universal-CvMqPcwD.d.mts} +1 -1
  53. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { P as Product, U as UpdateProduct, B as BulkCreateProductsOptions, a as BulkCreateProductsResponse, M as MaskedProduct, b as BulkUpdateProductsOptions, c as BulkUpdateProductsResponse, d as BulkDeleteProductsResponse, e as ProductSearch, S as SearchProductsResponse, f as BulkUpdateProductTagsOptions, g as BulkUpdateProductTagsResponse, h as BulkUpdateProductTagsApplicationErrors, i as BulkUpdateProductTagsByFilterOptions, j as BulkUpdateProductTagsByFilterResponse, k as BulkUpdateProductTagsByFilterApplicationErrors, Q as QueryCategoriesOptions, l as QueryCategoriesResponse, m as ProductCreatedEnvelope, n as ProductDeletedEnvelope, o as ProductTagsModifiedEnvelope, p as ProductUpdatedEnvelope, q as ProductsQueryBuilder, r as ProductQuery, t as typedQueryProducts } from './suppliershub-marketplace-product-v1-product-products.universal-DcUAuofc.js';
3
- export { bH as AccountInfo, bK as AccountInfoMetadata, bC as ActionEvent, aJ as Aggregation, aW as AggregationData, aK as AggregationKindOneOf, bd as AggregationResults, be as AggregationResultsResultOneOf, b1 as AggregationResultsScalarResult, F as AggregationType, c1 as AggregationTypeWithLiterals, ar as ApplicationError, bI as BaseEventMetadata, bo as Breadcrumb, at as BulkActionMetadata, bv as BulkAddProductToStoreResult, bs as BulkAddProductsToStoreRequest, bu as BulkAddProductsToStoreResponse, ap as BulkCreateProductsRequest, aw as BulkDeleteProductsRequest, ax as BulkDeleteProductsResponseBulkProductResult, as as BulkProductResult, bh as BulkUpdateProductTagsByFilterRequest, bf as BulkUpdateProductTagsRequest, bg as BulkUpdateProductTagsResult, au as BulkUpdateProductsRequest, av as BulkUpdateProductsResponseBulkProductResult, bn as Category, u as CategoryNamespace, bT as CategoryNamespaceWithLiterals, X as ColorOption, aC as CommonCursorPaging, aE as CommonCursorPagingMetadata, az as CommonCursorQuery, aA as CommonCursorQueryPagingMethodOneOf, aF as CommonCursors, c5 as CommonQueryWithEntityContext, c6 as CommonSearchWithEntityContext, x as CommonSortOrder, bW as CommonSortOrderWithLiterals, aB as CommonSorting, a1 as Countries, C as CountrySelections, bR as CountrySelectionsWithLiterals, ah as CreateProductRequest, ai as CreateProductResponse, bm as CursorPaging, bq as CursorPagingMetadata, bj as CursorQuery, bk as CursorQueryPagingMethodOneOf, aH as CursorSearch, aI as CursorSearchPagingMethodOneOf, br as Cursors, aR as DateHistogramAggregation, b9 as DateHistogramResult, bb as DateHistogramResults, an as DeleteProductRequest, ao as DeleteProductResponse, bw as DomainEvent, bx as DomainEventBodyOneOf, ad as DropshippingOptions, bD as Empty, by as EntityCreatedEvent, bB as EntityDeletedEvent, bA as EntityUpdatedEvent, bJ as EventMetadata, L as FocalPoint, aj as GetProductRequest, ak as GetProductResponse, ba as GroupByValueResults, bF as IdentificationData, bG as IdentificationDataIdOneOf, aM as IncludeMissingValuesOptions, E as Interval, c0 as IntervalWithLiterals, a2 as Inventory, I as InventoryTier, bS as InventoryTierWithLiterals, aq as ItemMetadata, aa as Measurement, w as MeasurementUnit, bV as MeasurementUnitWithLiterals, ab as MeasurementValueOneOf, ac as MeasurementValueRange, K as Media, bE as MessageEnvelope, A as MissingValues, bZ as MissingValuesWithLiterals, G as Mode, c2 as ModeWithLiterals, aU as NestedAggregation, aS as NestedAggregationItem, aT as NestedAggregationItemKindOneOf, aZ as NestedAggregationResults, a_ as NestedAggregationResultsResultOneOf, N as NestedAggregationType, b$ as NestedAggregationTypeWithLiterals, b6 as NestedResultValue, b7 as NestedResultValueResultOneOf, bc as NestedResults, b2 as NestedValueAggregationResult, R as OptionValue, V as OptionValueValueOneOf, bp as ParentCategory, a5 as PriceTier, a7 as PrintOnDemandOptions, v as PrintTechnology, bU as PrintTechnologyWithLiterals, a3 as ProductCategory, O as ProductOption, bM as ProductQuerySpec, bt as ProductReference, bN as ProductSearchSpec, s as ProductType, bP as ProductTypeWithLiterals, bL as ProductsQueryResult, J as ProviderInfo, bi as QueryCategoriesRequest, ay as QueryProductsRequest, aD as QueryProductsResponse, aP as RangeAggregation, aY as RangeAggregationResult, aL as RangeBucket, b4 as RangeResult, b0 as RangeResults, bz as RestoreInfo, b8 as Results, aQ as ScalarAggregation, b5 as ScalarResult, D as ScalarType, b_ as ScalarTypeWithLiterals, aV as SearchDetails, aG as SearchProductsRequest, $ as ShippingDestination, a0 as ShippingDestinationCountriesOptionsOneOf, a8 as SizeGuide, z as SortDirection, bY as SortDirectionWithLiterals, H as SortOrder, c3 as SortOrderWithLiterals, y as SortType, bX as SortTypeWithLiterals, bl as Sorting, a9 as Specification, a6 as SupplierInfo, af as TagList, ae as Tags, ag as TagsModified, Y as TextOption, Z as TimeInterval, T as TimeUnit, bQ as TimeUnitWithLiterals, _ as TimeValue, al as UpdateProductRequest, am as UpdateProductResponse, aN as ValueAggregation, aO as ValueAggregationOptionsOneOf, aX as ValueAggregationResult, b3 as ValueResult, a$ as ValueResults, W as WebhookIdentityType, c4 as WebhookIdentityTypeWithLiterals, a4 as WholesaleOptions, bO as utils } from './suppliershub-marketplace-product-v1-product-products.universal-DcUAuofc.js';
2
+ import { P as Product, U as UpdateProduct, B as BulkCreateProductsOptions, a as BulkCreateProductsResponse, M as MaskedProduct, b as BulkUpdateProductsOptions, c as BulkUpdateProductsResponse, d as BulkDeleteProductsResponse, e as ProductSearch, S as SearchProductsResponse, f as BulkUpdateProductTagsOptions, g as BulkUpdateProductTagsResponse, h as BulkUpdateProductTagsApplicationErrors, i as BulkUpdateProductTagsByFilterOptions, j as BulkUpdateProductTagsByFilterResponse, k as BulkUpdateProductTagsByFilterApplicationErrors, Q as QueryCategoriesOptions, l as QueryCategoriesResponse, m as ProductReference, n as BulkAddProductsToStoreResponse, o as ProductCreatedEnvelope, p as ProductDeletedEnvelope, q as ProductTagsModifiedEnvelope, r as ProductUpdatedEnvelope, s as ProductsQueryBuilder, t as ProductQuery, u as typedQueryProducts } from './suppliershub-marketplace-product-v1-product-products.universal-CJtZJgLu.js';
3
+ export { bH as AccountInfo, bK as AccountInfoMetadata, bC as ActionEvent, aL as Aggregation, aY as AggregationData, aM as AggregationKindOneOf, bf as AggregationResults, bg as AggregationResultsResultOneOf, b3 as AggregationResultsScalarResult, H as AggregationType, c1 as AggregationTypeWithLiterals, at as ApplicationError, bI as BaseEventMetadata, bq as Breadcrumb, av as BulkActionMetadata, bv as BulkAddProductToStoreResult, bu as BulkAddProductsToStoreRequest, ar as BulkCreateProductsRequest, ay as BulkDeleteProductsRequest, az as BulkDeleteProductsResponseBulkProductResult, au as BulkProductResult, bj as BulkUpdateProductTagsByFilterRequest, bh as BulkUpdateProductTagsRequest, bi as BulkUpdateProductTagsResult, aw as BulkUpdateProductsRequest, ax as BulkUpdateProductsResponseBulkProductResult, bp as Category, w as CategoryNamespace, bT as CategoryNamespaceWithLiterals, Z as ColorOption, aE as CommonCursorPaging, aG as CommonCursorPagingMetadata, aB as CommonCursorQuery, aC as CommonCursorQueryPagingMethodOneOf, aH as CommonCursors, c5 as CommonQueryWithEntityContext, c6 as CommonSearchWithEntityContext, z as CommonSortOrder, bW as CommonSortOrderWithLiterals, aD as CommonSorting, a3 as Countries, C as CountrySelections, bR as CountrySelectionsWithLiterals, aj as CreateProductRequest, ak as CreateProductResponse, bo as CursorPaging, bs as CursorPagingMetadata, bl as CursorQuery, bm as CursorQueryPagingMethodOneOf, aJ as CursorSearch, aK as CursorSearchPagingMethodOneOf, bt as Cursors, aT as DateHistogramAggregation, bb as DateHistogramResult, bd as DateHistogramResults, ap as DeleteProductRequest, aq as DeleteProductResponse, bw as DomainEvent, bx as DomainEventBodyOneOf, af as DropshippingOptions, bD as Empty, by as EntityCreatedEvent, bB as EntityDeletedEvent, bA as EntityUpdatedEvent, bJ as EventMetadata, R as FocalPoint, al as GetProductRequest, am as GetProductResponse, bc as GroupByValueResults, bF as IdentificationData, bG as IdentificationDataIdOneOf, aO as IncludeMissingValuesOptions, G as Interval, c0 as IntervalWithLiterals, a4 as Inventory, I as InventoryTier, bS as InventoryTierWithLiterals, as as ItemMetadata, ac as Measurement, y as MeasurementUnit, bV as MeasurementUnitWithLiterals, ad as MeasurementValueOneOf, ae as MeasurementValueRange, O as Media, bE as MessageEnvelope, E as MissingValues, bZ as MissingValuesWithLiterals, J as Mode, c2 as ModeWithLiterals, aW as NestedAggregation, aU as NestedAggregationItem, aV as NestedAggregationItemKindOneOf, a$ as NestedAggregationResults, b0 as NestedAggregationResultsResultOneOf, N as NestedAggregationType, b$ as NestedAggregationTypeWithLiterals, b8 as NestedResultValue, b9 as NestedResultValueResultOneOf, be as NestedResults, b4 as NestedValueAggregationResult, X as OptionValue, Y as OptionValueValueOneOf, br as ParentCategory, a7 as PriceTier, a9 as PrintOnDemandOptions, x as PrintTechnology, bU as PrintTechnologyWithLiterals, a5 as ProductCategory, V as ProductOption, bM as ProductQuerySpec, bN as ProductSearchSpec, v as ProductType, bP as ProductTypeWithLiterals, bL as ProductsQueryResult, L as ProviderInfo, bk as QueryCategoriesRequest, aA as QueryProductsRequest, aF as QueryProductsResponse, aR as RangeAggregation, a_ as RangeAggregationResult, aN as RangeBucket, b6 as RangeResult, b2 as RangeResults, bz as RestoreInfo, ba as Results, aS as ScalarAggregation, b7 as ScalarResult, F as ScalarType, b_ as ScalarTypeWithLiterals, aX as SearchDetails, aI as SearchProductsRequest, a1 as ShippingDestination, a2 as ShippingDestinationCountriesOptionsOneOf, aa as SizeGuide, D as SortDirection, bY as SortDirectionWithLiterals, K as SortOrder, c3 as SortOrderWithLiterals, A as SortType, bX as SortTypeWithLiterals, bn as Sorting, ab as Specification, a8 as SupplierInfo, ah as TagList, ag as Tags, ai as TagsModified, _ as TextOption, $ as TimeInterval, T as TimeUnit, bQ as TimeUnitWithLiterals, a0 as TimeValue, an as UpdateProductRequest, ao as UpdateProductResponse, aP as ValueAggregation, aQ as ValueAggregationOptionsOneOf, aZ as ValueAggregationResult, b5 as ValueResult, b1 as ValueResults, W as WebhookIdentityType, c4 as WebhookIdentityTypeWithLiterals, a6 as WholesaleOptions, bO as utils } from './suppliershub-marketplace-product-v1-product-products.universal-CJtZJgLu.js';
4
4
 
5
5
  declare function createProduct$1(httpClient: HttpClient): CreateProductSignature;
6
6
  interface CreateProductSignature {
@@ -134,6 +134,22 @@ interface QueryCategoriesSignature {
134
134
  */
135
135
  (options?: NonNullablePaths<QueryCategoriesOptions, `namespace`, 2>): Promise<NonNullablePaths<QueryCategoriesResponse, `categories` | `categories.${number}.itemCount`, 4>>;
136
136
  }
137
+ declare function bulkAddProductsToStore$1(httpClient: HttpClient): BulkAddProductsToStoreSignature;
138
+ interface BulkAddProductsToStoreSignature {
139
+ /**
140
+ * Adds multiple Marketplace products to the caller's Wix store in a single request.
141
+ *
142
+ * Call this method to adopt products from the Marketplace into a Wix Stores catalog for selling. The target store is determined by the calling identity, so there's no need to specify a store ID in the request.
143
+ *
144
+ * Supports partial success. Some products may be added successfully while others fail. Each result includes an `itemMetadata` object indicating success or failure with error details.
145
+ *
146
+ * When handling failures, distinguish between validation errors, which shouldn't be retried, and transient errors, which can be retried. Retry only failed items, not the entire batch.
147
+ * @param - References to the Marketplace products to add to the store.
148
+ *
149
+ * Each reference must include a `productId` identifying an existing Marketplace product.
150
+ */
151
+ (productReferences: NonNullablePaths<ProductReference, `productId`, 2>[]): Promise<NonNullablePaths<BulkAddProductsToStoreResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.productId` | `results.${number}.item.appId` | `results.${number}.item.visibleInStore` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
152
+ }
137
153
  declare const onProductCreated$1: EventDefinition<ProductCreatedEnvelope, "wix.suppliershub.marketplace_product.v1.product_created">;
138
154
  declare const onProductDeleted$1: EventDefinition<ProductDeletedEnvelope, "wix.suppliershub.marketplace_product.v1.product_deleted">;
139
155
  declare const onProductTagsModified$1: EventDefinition<ProductTagsModifiedEnvelope, "wix.suppliershub.marketplace_product.v1.product_tags_modified">;
@@ -154,6 +170,7 @@ declare const searchProducts: MaybeContext<BuildRESTFunction<typeof searchProduc
154
170
  declare const bulkUpdateProductTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateProductTags$1> & typeof bulkUpdateProductTags$1>;
155
171
  declare const bulkUpdateProductTagsByFilter: MaybeContext<BuildRESTFunction<typeof bulkUpdateProductTagsByFilter$1> & typeof bulkUpdateProductTagsByFilter$1>;
156
172
  declare const queryCategories: MaybeContext<BuildRESTFunction<typeof queryCategories$1> & typeof queryCategories$1>;
173
+ declare const bulkAddProductsToStore: MaybeContext<BuildRESTFunction<typeof bulkAddProductsToStore$1> & typeof bulkAddProductsToStore$1>;
157
174
  declare const queryProducts: MaybeContext<BuildRESTFunction<typeof customQueryProducts> & typeof customQueryProducts>;
158
175
  /**
159
176
  * Triggered when a product is created.
@@ -172,4 +189,4 @@ declare const onProductTagsModified: BuildEventDefinition<typeof onProductTagsMo
172
189
  */
173
190
  declare const onProductUpdated: BuildEventDefinition<typeof onProductUpdated$1> & typeof onProductUpdated$1;
174
191
 
175
- export { BulkCreateProductsOptions, BulkCreateProductsResponse, BulkDeleteProductsResponse, BulkUpdateProductTagsApplicationErrors, BulkUpdateProductTagsByFilterApplicationErrors, BulkUpdateProductTagsByFilterOptions, BulkUpdateProductTagsByFilterResponse, BulkUpdateProductTagsOptions, BulkUpdateProductTagsResponse, BulkUpdateProductsOptions, BulkUpdateProductsResponse, MaskedProduct, Product, ProductCreatedEnvelope, ProductDeletedEnvelope, ProductQuery, ProductSearch, ProductTagsModifiedEnvelope, ProductUpdatedEnvelope, ProductsQueryBuilder, QueryCategoriesOptions, QueryCategoriesResponse, SearchProductsResponse, UpdateProduct, bulkCreateProducts, bulkDeleteProducts, bulkUpdateProductTags, bulkUpdateProductTagsByFilter, bulkUpdateProducts, createProduct, deleteProduct, getProduct, onProductCreated, onProductDeleted, onProductTagsModified, onProductUpdated, queryCategories, queryProducts, searchProducts, updateProduct };
192
+ export { BulkAddProductsToStoreResponse, BulkCreateProductsOptions, BulkCreateProductsResponse, BulkDeleteProductsResponse, BulkUpdateProductTagsApplicationErrors, BulkUpdateProductTagsByFilterApplicationErrors, BulkUpdateProductTagsByFilterOptions, BulkUpdateProductTagsByFilterResponse, BulkUpdateProductTagsOptions, BulkUpdateProductTagsResponse, BulkUpdateProductsOptions, BulkUpdateProductsResponse, MaskedProduct, Product, ProductCreatedEnvelope, ProductDeletedEnvelope, ProductQuery, ProductReference, ProductSearch, ProductTagsModifiedEnvelope, ProductUpdatedEnvelope, ProductsQueryBuilder, QueryCategoriesOptions, QueryCategoriesResponse, SearchProductsResponse, UpdateProduct, bulkAddProductsToStore, bulkCreateProducts, bulkDeleteProducts, bulkUpdateProductTags, bulkUpdateProductTagsByFilter, bulkUpdateProducts, createProduct, deleteProduct, getProduct, onProductCreated, onProductDeleted, onProductTagsModified, onProductUpdated, queryCategories, queryProducts, searchProducts, updateProduct };
@@ -110,6 +110,10 @@ function resolveWixSuppliershubMarketplaceProductV1MarketplaceProductUrl(opts) {
110
110
  {
111
111
  srcPath: "/suppliershub/marketplace-product/v1/products",
112
112
  destPath: "/v1/products"
113
+ },
114
+ {
115
+ srcPath: "/suppliershub/marketplace-product/v1/bulk/add-products-to-store",
116
+ destPath: "/v1/bulk/add-products-to-store"
113
117
  }
114
118
  ],
115
119
  "*.dev.wix-code.com": [
@@ -124,6 +128,10 @@ function resolveWixSuppliershubMarketplaceProductV1MarketplaceProductUrl(opts) {
124
128
  {
125
129
  srcPath: "/suppliershub/marketplace-product/v1/categories/query",
126
130
  destPath: "/v1/categories/query"
131
+ },
132
+ {
133
+ srcPath: "/suppliershub/marketplace-product/v1/bulk/add-products-to-store",
134
+ destPath: "/v1/bulk/add-products-to-store"
127
135
  }
128
136
  ],
129
137
  _: [
@@ -138,6 +146,10 @@ function resolveWixSuppliershubMarketplaceProductV1MarketplaceProductUrl(opts) {
138
146
  {
139
147
  srcPath: "/suppliershub/marketplace-product/v1/categories/query",
140
148
  destPath: "/v1/categories/query"
149
+ },
150
+ {
151
+ srcPath: "/suppliershub/marketplace-product/v1/bulk/add-products-to-store",
152
+ destPath: "/v1/bulk/add-products-to-store"
141
153
  }
142
154
  ]
143
155
  };