@wix/auto_sdk_suppliers-hub_products 1.0.13 → 1.0.14
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 +13 -13
- package/build/cjs/index.js +201 -361
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +154 -311
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js +122 -251
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{suppliershub-marketplace-product-v1-product-products.universal-DiAFrjt4.d.ts → suppliershub-marketplace-product-v1-product-products.universal-Cebobp5Y.d.ts} +11 -11
- package/build/es/index.d.mts +13 -13
- package/build/es/index.mjs +201 -361
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +154 -311
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/es/meta.mjs +122 -251
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{suppliershub-marketplace-product-v1-product-products.universal-DiAFrjt4.d.mts → suppliershub-marketplace-product-v1-product-products.universal-Cebobp5Y.d.mts} +11 -11
- package/build/internal/cjs/index.d.ts +13 -13
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/cjs/{suppliershub-marketplace-product-v1-product-products.universal-D5s5KoBa.d.ts → suppliershub-marketplace-product-v1-product-products.universal-BPzmoS_B.d.ts} +11 -11
- package/build/internal/es/index.d.mts +13 -13
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/meta.d.mts +1 -1
- package/build/internal/es/{suppliershub-marketplace-product-v1-product-products.universal-D5s5KoBa.d.mts → suppliershub-marketplace-product-v1-product-products.universal-BPzmoS_B.d.mts} +11 -11
- 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 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-
|
|
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-
|
|
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-Cebobp5Y.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-Cebobp5Y.js';
|
|
4
4
|
|
|
5
5
|
declare function createProduct$1(httpClient: HttpClient): CreateProductSignature;
|
|
6
6
|
interface CreateProductSignature {
|
|
@@ -12,7 +12,7 @@ interface CreateProductSignature {
|
|
|
12
12
|
* @param - Product to create. Must include all required fields for the specified product types.
|
|
13
13
|
* @returns Created product with assigned ID and read-only fields populated.
|
|
14
14
|
*/
|
|
15
|
-
(product: NonNullablePaths<Product, `directCategories.${number}._id` | `directCategories.${number}.namespace` | `media` | `minimumPrice` | `name` | `options.${number}.name` | `options.${number}.values` | `providerInfo` | `providerInfo.productId` | `shippingDestinations.${number}.minimumShippingCost` | `types` | `wholesaleOptions.priceTiers.${number}.countFrom` | `wholesaleOptions.priceTiers.${number}.priceFrom`,
|
|
15
|
+
(product: NonNullablePaths<Product, `directCategories.${number}._id` | `directCategories.${number}.namespace` | `media` | `minimumPrice` | `name` | `options.${number}.name` | `options.${number}.values` | `providerInfo` | `providerInfo.productId` | `shippingDestinations.${number}.minimumShippingCost` | `types` | `wholesaleOptions.priceTiers.${number}.countFrom` | `wholesaleOptions.priceTiers.${number}.priceFrom`, 3>): Promise<NonNullablePaths<Product, `media.items` | `types` | `options` | `options.${number}.name` | `orderProcessingTime.min.value` | `orderProcessingTime.min.unit` | `shippingDestinations` | `shippingDestinations.${number}.countrySelections` | `shippingDestinations.${number}.minimumShippingCost` | `inventory.tier` | `directCategories` | `directCategories.${number}._id` | `directCategories.${number}.namespace` | `allCategories` | `wholesaleOptions.priceTiers` | `wholesaleOptions.priceTiers.${number}.priceFrom` | `supplierInfo.verified` | `printOnDemandOptions.printTechnologies` | `sizeGuides` | `sizeGuides.${number}.measurementUnit` | `tags.privateTags.tagIds`, 3>>;
|
|
16
16
|
}
|
|
17
17
|
declare function getProduct$1(httpClient: HttpClient): GetProductSignature;
|
|
18
18
|
interface GetProductSignature {
|
|
@@ -21,7 +21,7 @@ interface GetProductSignature {
|
|
|
21
21
|
* @param - Product ID.
|
|
22
22
|
* @returns Retrieved product.
|
|
23
23
|
*/
|
|
24
|
-
(productId: string): Promise<NonNullablePaths<Product, `media.items` | `types` | `options` | `options.${number}.name` | `orderProcessingTime.min.value` | `orderProcessingTime.min.unit` | `shippingDestinations` | `shippingDestinations.${number}.countrySelections` | `shippingDestinations.${number}.minimumShippingCost` | `inventory.tier` | `directCategories` | `directCategories.${number}._id` | `directCategories.${number}.namespace` | `allCategories` | `wholesaleOptions.priceTiers` | `wholesaleOptions.priceTiers.${number}.priceFrom` | `supplierInfo.verified` | `printOnDemandOptions.printTechnologies` | `sizeGuides` | `sizeGuides.${number}.measurementUnit` | `tags.privateTags.tagIds`,
|
|
24
|
+
(productId: string): Promise<NonNullablePaths<Product, `media.items` | `types` | `options` | `options.${number}.name` | `orderProcessingTime.min.value` | `orderProcessingTime.min.unit` | `shippingDestinations` | `shippingDestinations.${number}.countrySelections` | `shippingDestinations.${number}.minimumShippingCost` | `inventory.tier` | `directCategories` | `directCategories.${number}._id` | `directCategories.${number}.namespace` | `allCategories` | `wholesaleOptions.priceTiers` | `wholesaleOptions.priceTiers.${number}.priceFrom` | `supplierInfo.verified` | `printOnDemandOptions.printTechnologies` | `sizeGuides` | `sizeGuides.${number}.measurementUnit` | `tags.privateTags.tagIds`, 3>>;
|
|
25
25
|
}
|
|
26
26
|
declare function updateProduct$1(httpClient: HttpClient): UpdateProductSignature;
|
|
27
27
|
interface UpdateProductSignature {
|
|
@@ -33,7 +33,7 @@ interface UpdateProductSignature {
|
|
|
33
33
|
* @param - Product ID.
|
|
34
34
|
* @returns Updated product.
|
|
35
35
|
*/
|
|
36
|
-
(_id: string, product: NonNullablePaths<UpdateProduct, `directCategories.${number}._id` | `directCategories.${number}.namespace`,
|
|
36
|
+
(_id: string, product: NonNullablePaths<UpdateProduct, `directCategories.${number}._id` | `directCategories.${number}.namespace`, 2>): Promise<NonNullablePaths<Product, `media.items` | `types` | `options` | `options.${number}.name` | `orderProcessingTime.min.value` | `orderProcessingTime.min.unit` | `shippingDestinations` | `shippingDestinations.${number}.countrySelections` | `shippingDestinations.${number}.minimumShippingCost` | `inventory.tier` | `directCategories` | `directCategories.${number}._id` | `directCategories.${number}.namespace` | `allCategories` | `wholesaleOptions.priceTiers` | `wholesaleOptions.priceTiers.${number}.priceFrom` | `supplierInfo.verified` | `printOnDemandOptions.printTechnologies` | `sizeGuides` | `sizeGuides.${number}.measurementUnit` | `tags.privateTags.tagIds`, 3>>;
|
|
37
37
|
}
|
|
38
38
|
declare function deleteProduct$1(httpClient: HttpClient): DeleteProductSignature;
|
|
39
39
|
interface DeleteProductSignature {
|
|
@@ -57,7 +57,7 @@ interface BulkCreateProductsSignature {
|
|
|
57
57
|
* and transient errors which can be retried. Only retry failed items, not the entire batch.
|
|
58
58
|
* @param - Products to create. Each must include all required fields for the specified product types.
|
|
59
59
|
*/
|
|
60
|
-
(products: NonNullablePaths<Product, `directCategories.${number}._id` | `directCategories.${number}.namespace` | `media` | `minimumPrice` | `name` | `options.${number}.name` | `options.${number}.values` | `providerInfo` | `providerInfo.productId` | `shippingDestinations.${number}.minimumShippingCost` | `types` | `wholesaleOptions.priceTiers.${number}.countFrom` | `wholesaleOptions.priceTiers.${number}.priceFrom`,
|
|
60
|
+
(products: NonNullablePaths<Product, `directCategories.${number}._id` | `directCategories.${number}.namespace` | `media` | `minimumPrice` | `name` | `options.${number}.name` | `options.${number}.values` | `providerInfo` | `providerInfo.productId` | `shippingDestinations.${number}.minimumShippingCost` | `types` | `wholesaleOptions.priceTiers.${number}.countFrom` | `wholesaleOptions.priceTiers.${number}.priceFrom`, 3>[], options?: BulkCreateProductsOptions): Promise<NonNullablePaths<BulkCreateProductsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.inventory.tier` | `results.${number}.item.supplierInfo.verified` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 4>>;
|
|
61
61
|
}
|
|
62
62
|
declare function bulkUpdateProducts$1(httpClient: HttpClient): BulkUpdateProductsSignature;
|
|
63
63
|
interface BulkUpdateProductsSignature {
|
|
@@ -70,7 +70,7 @@ interface BulkUpdateProductsSignature {
|
|
|
70
70
|
* and transient errors which can be retried. Only retry failed items, not the entire batch.
|
|
71
71
|
* @param - Products to update. Each can be partial based on its field mask.
|
|
72
72
|
*/
|
|
73
|
-
(products: NonNullablePaths<MaskedProduct, `product._id` | `product.directCategories.${number}._id` | `product.directCategories.${number}.namespace`,
|
|
73
|
+
(products: NonNullablePaths<MaskedProduct, `product._id` | `product.directCategories.${number}._id` | `product.directCategories.${number}.namespace`, 3>[], options?: BulkUpdateProductsOptions): Promise<NonNullablePaths<BulkUpdateProductsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.inventory.tier` | `results.${number}.item.supplierInfo.verified` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 4>>;
|
|
74
74
|
}
|
|
75
75
|
declare function bulkDeleteProducts$1(httpClient: HttpClient): BulkDeleteProductsSignature;
|
|
76
76
|
interface BulkDeleteProductsSignature {
|
|
@@ -82,7 +82,7 @@ interface BulkDeleteProductsSignature {
|
|
|
82
82
|
* and transient errors which can be retried. Only retry failed items, not the entire batch.
|
|
83
83
|
* @param - Product IDs to delete.
|
|
84
84
|
*/
|
|
85
|
-
(productIds: string[]): Promise<NonNullablePaths<BulkDeleteProductsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`,
|
|
85
|
+
(productIds: string[]): Promise<NonNullablePaths<BulkDeleteProductsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 4>>;
|
|
86
86
|
}
|
|
87
87
|
declare function searchProducts$1(httpClient: HttpClient): SearchProductsSignature;
|
|
88
88
|
interface SearchProductsSignature {
|
|
@@ -96,7 +96,7 @@ interface SearchProductsSignature {
|
|
|
96
96
|
* For real-time accuracy in operational tasks, use [Query Products](https://dev.wix.com/docs/api-reference/business-solutions/suppliers-hub/products/query-products) instead.
|
|
97
97
|
* @param - Search parameters including filter, sort, full-text search, and aggregations.
|
|
98
98
|
*/
|
|
99
|
-
(search: ProductSearch): Promise<NonNullablePaths<SearchProductsResponse, `products` | `products.${number}.orderProcessingTime.min.value` | `products.${number}.orderProcessingTime.min.unit` | `products.${number}.inventory.tier` | `products.${number}.supplierInfo.verified` | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`,
|
|
99
|
+
(search: ProductSearch): Promise<NonNullablePaths<SearchProductsResponse, `products` | `products.${number}.orderProcessingTime.min.value` | `products.${number}.orderProcessingTime.min.unit` | `products.${number}.inventory.tier` | `products.${number}.supplierInfo.verified` | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`, 4>>;
|
|
100
100
|
}
|
|
101
101
|
declare function bulkUpdateProductTags$1(httpClient: HttpClient): BulkUpdateProductTagsSignature;
|
|
102
102
|
interface BulkUpdateProductTagsSignature {
|
|
@@ -106,7 +106,7 @@ interface BulkUpdateProductTagsSignature {
|
|
|
106
106
|
* A tag that appears both in the list of assign and unassign tags, will be assigned
|
|
107
107
|
* @param - Product IDs to update tags for.
|
|
108
108
|
*/
|
|
109
|
-
(productIds: string[], options?: BulkUpdateProductTagsOptions): Promise<NonNullablePaths<BulkUpdateProductTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`,
|
|
109
|
+
(productIds: string[], options?: BulkUpdateProductTagsOptions): Promise<NonNullablePaths<BulkUpdateProductTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 4> & {
|
|
110
110
|
__applicationErrorsType?: BulkUpdateProductTagsApplicationErrors;
|
|
111
111
|
}>;
|
|
112
112
|
}
|
|
@@ -121,7 +121,7 @@ interface BulkUpdateProductTagsByFilterSignature {
|
|
|
121
121
|
* An empty filter updates all products. If a tag appears in both assign and unassign lists, it will be assigned.
|
|
122
122
|
* @param - Filter to select products for tag updates. Empty filter updates all products.
|
|
123
123
|
*/
|
|
124
|
-
(filter: Record<string, any>, options?: BulkUpdateProductTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateProductTagsByFilterResponse, `jobId`,
|
|
124
|
+
(filter: Record<string, any>, options?: BulkUpdateProductTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateProductTagsByFilterResponse, `jobId`, 0> & {
|
|
125
125
|
__applicationErrorsType?: BulkUpdateProductTagsByFilterApplicationErrors;
|
|
126
126
|
}>;
|
|
127
127
|
}
|
|
@@ -132,7 +132,7 @@ interface QueryCategoriesSignature {
|
|
|
132
132
|
*
|
|
133
133
|
* Supports filtering, sorting, and pagination.
|
|
134
134
|
*/
|
|
135
|
-
(options?: NonNullablePaths<QueryCategoriesOptions, `namespace`,
|
|
135
|
+
(options?: NonNullablePaths<QueryCategoriesOptions, `namespace`, 0>): Promise<NonNullablePaths<QueryCategoriesResponse, `categories` | `categories.${number}.itemCount`, 2>>;
|
|
136
136
|
}
|
|
137
137
|
declare function bulkAddProductsToStore$1(httpClient: HttpClient): BulkAddProductsToStoreSignature;
|
|
138
138
|
interface BulkAddProductsToStoreSignature {
|
|
@@ -148,7 +148,7 @@ interface BulkAddProductsToStoreSignature {
|
|
|
148
148
|
*
|
|
149
149
|
* Each reference must include a `productId` identifying an existing Marketplace product.
|
|
150
150
|
*/
|
|
151
|
-
(productReferences: NonNullablePaths<ProductReference, `productId`,
|
|
151
|
+
(productReferences: NonNullablePaths<ProductReference, `productId`, 0>[]): 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`, 4>>;
|
|
152
152
|
}
|
|
153
153
|
declare const onProductCreated$1: EventDefinition<ProductCreatedEnvelope, "wix.suppliershub.marketplace_product.v1.product_created">;
|
|
154
154
|
declare const onProductDeleted$1: EventDefinition<ProductDeletedEnvelope, "wix.suppliershub.marketplace_product.v1.product_deleted">;
|