@wix/auto_sdk_suppliers-hub_products 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +20 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/schemas.d.ts +34 -1
- package/build/cjs/schemas.js +76 -0
- package/build/cjs/schemas.js.map +1 -1
- 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
- package/build/es/index.d.mts +20 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/es/schemas.d.mts +34 -1
- package/build/es/schemas.mjs +74 -0
- package/build/es/schemas.mjs.map +1 -1
- 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
- package/build/internal/cjs/index.d.ts +2 -4
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/cjs/schemas.d.ts +34 -1
- package/build/internal/cjs/schemas.js +76 -0
- package/build/internal/cjs/schemas.js.map +1 -1
- 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
- package/build/internal/es/index.d.mts +2 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/build/internal/es/schemas.d.mts +34 -1
- package/build/internal/es/schemas.mjs +74 -0
- package/build/internal/es/schemas.mjs.map +1 -1
- 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
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -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
|
|
3
|
-
export { bH as AccountInfo, bK as AccountInfoMetadata, bC as ActionEvent,
|
|
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 };
|