@wix/auto_sdk_suppliers-hub_products 1.0.3 → 1.0.5

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 (49) hide show
  1. package/build/cjs/index.d.ts +2 -2
  2. package/build/cjs/index.js +58 -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 +50 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +36 -16
  8. package/build/cjs/meta.js +43 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.js +44 -22
  11. package/build/cjs/schemas.js.map +1 -1
  12. package/build/{internal/cjs/suppliershub-marketplace-product-v1-product-products.universal-CtS-tTzr.d.ts → cjs/suppliershub-marketplace-product-v1-product-products.universal-Ck8NHqsQ.d.ts} +34 -29
  13. package/build/es/index.d.mts +2 -2
  14. package/build/es/index.mjs +57 -0
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +2 -2
  17. package/build/es/index.typings.mjs +49 -0
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +36 -16
  20. package/build/es/meta.mjs +42 -0
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.mjs +44 -22
  23. package/build/es/schemas.mjs.map +1 -1
  24. package/build/{internal/es/suppliershub-marketplace-product-v1-product-products.universal-CtS-tTzr.d.mts → es/suppliershub-marketplace-product-v1-product-products.universal-Ck8NHqsQ.d.mts} +34 -29
  25. package/build/internal/cjs/index.d.ts +22 -3
  26. package/build/internal/cjs/index.js +58 -0
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +2 -2
  29. package/build/internal/cjs/index.typings.js +50 -0
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +36 -16
  32. package/build/internal/cjs/meta.js +43 -0
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.js +44 -22
  35. package/build/internal/cjs/schemas.js.map +1 -1
  36. package/build/{cjs/suppliershub-marketplace-product-v1-product-products.universal-Dn4iCbNX.d.ts → internal/cjs/suppliershub-marketplace-product-v1-product-products.universal-DJ63B95q.d.ts} +89 -15
  37. package/build/internal/es/index.d.mts +22 -3
  38. package/build/internal/es/index.mjs +57 -0
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +2 -2
  41. package/build/internal/es/index.typings.mjs +49 -0
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +36 -16
  44. package/build/internal/es/meta.mjs +42 -0
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.mjs +44 -22
  47. package/build/internal/es/schemas.mjs.map +1 -1
  48. package/build/{es/suppliershub-marketplace-product-v1-product-products.universal-Dn4iCbNX.d.mts → internal/es/suppliershub-marketplace-product-v1-product-products.universal-DJ63B95q.d.mts} +89 -15
  49. package/package.json +4 -4
@@ -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-Dn4iCbNX.js';
3
- export { bG as AccountInfo, bJ as AccountInfoMetadata, bB as ActionEvent, aI as Aggregation, aV as AggregationData, aJ as AggregationKindOneOf, bc as AggregationResults, bd as AggregationResultsResultOneOf, b0 as AggregationResultsScalarResult, F as AggregationType, c0 as AggregationTypeWithLiterals, aq as ApplicationError, bH as BaseEventMetadata, bn as Breadcrumb, as as BulkActionMetadata, bu as BulkAddProductToStoreResult, br as BulkAddProductsToStoreRequest, bt as BulkAddProductsToStoreResponse, ao as BulkCreateProductsRequest, av as BulkDeleteProductsRequest, aw as BulkDeleteProductsResponseBulkProductResult, ar as BulkProductResult, bg as BulkUpdateProductTagsByFilterRequest, be as BulkUpdateProductTagsRequest, bf as BulkUpdateProductTagsResult, at as BulkUpdateProductsRequest, au as BulkUpdateProductsResponseBulkProductResult, bm as Category, u as CategoryNamespace, bS as CategoryNamespaceWithLiterals, X as ColorOption, aB as CommonCursorPaging, aD as CommonCursorPagingMetadata, ay as CommonCursorQuery, az as CommonCursorQueryPagingMethodOneOf, aE as CommonCursors, c4 as CommonQueryWithEntityContext, c5 as CommonSearchWithEntityContext, x as CommonSortOrder, bV as CommonSortOrderWithLiterals, aA as CommonSorting, a0 as Countries, C as CountrySelections, bQ as CountrySelectionsWithLiterals, ag as CreateProductRequest, ah as CreateProductResponse, bl as CursorPaging, bp as CursorPagingMetadata, bi as CursorQuery, bj as CursorQueryPagingMethodOneOf, aG as CursorSearch, aH as CursorSearchPagingMethodOneOf, bq as Cursors, aQ as DateHistogramAggregation, b8 as DateHistogramResult, ba as DateHistogramResults, am as DeleteProductRequest, an as DeleteProductResponse, bv as DomainEvent, bw as DomainEventBodyOneOf, ac as DropshippingOptions, bC as Empty, bx as EntityCreatedEvent, bA as EntityDeletedEvent, bz as EntityUpdatedEvent, bI as EventMetadata, L as FocalPoint, ai as GetProductRequest, aj as GetProductResponse, b9 as GroupByValueResults, bE as IdentificationData, bF as IdentificationDataIdOneOf, aL as IncludeMissingValuesOptions, E as Interval, b$ as IntervalWithLiterals, a1 as Inventory, I as InventoryTier, bR as InventoryTierWithLiterals, ap as ItemMetadata, a9 as Measurement, w as MeasurementUnit, bU as MeasurementUnitWithLiterals, aa as MeasurementValueOneOf, ab as MeasurementValueRange, K as Media, bD as MessageEnvelope, A as MissingValues, bY as MissingValuesWithLiterals, G as Mode, c1 as ModeWithLiterals, aT as NestedAggregation, aR as NestedAggregationItem, aS as NestedAggregationItemKindOneOf, aY as NestedAggregationResults, aZ as NestedAggregationResultsResultOneOf, N as NestedAggregationType, b_ as NestedAggregationTypeWithLiterals, b5 as NestedResultValue, b6 as NestedResultValueResultOneOf, bb as NestedResults, b1 as NestedValueAggregationResult, R as OptionValue, V as OptionValueValueOneOf, bo as ParentCategory, a4 as PriceTier, a6 as PrintOnDemandOptions, v as PrintTechnology, bT as PrintTechnologyWithLiterals, a2 as ProductCategory, O as ProductOption, bL as ProductQuerySpec, bs as ProductReference, bM as ProductSearchSpec, s as ProductType, bO as ProductTypeWithLiterals, bK as ProductsQueryResult, J as ProviderInfo, bh as QueryCategoriesRequest, ax as QueryProductsRequest, aC as QueryProductsResponse, aO as RangeAggregation, aX as RangeAggregationResult, aK as RangeBucket, b3 as RangeResult, a$ as RangeResults, by as RestoreInfo, b7 as Results, aP as ScalarAggregation, b4 as ScalarResult, D as ScalarType, bZ as ScalarTypeWithLiterals, aU as SearchDetails, aF as SearchProductsRequest, _ as ShippingDestination, $ as ShippingDestinationCountriesOptionsOneOf, a7 as SizeGuide, z as SortDirection, bX as SortDirectionWithLiterals, H as SortOrder, c2 as SortOrderWithLiterals, y as SortType, bW as SortTypeWithLiterals, bk as Sorting, a8 as Specification, a5 as SupplierInfo, ae as TagList, ad as Tags, af as TagsModified, Y as TimeInterval, T as TimeUnit, bP as TimeUnitWithLiterals, Z as TimeValue, ak as UpdateProductRequest, al as UpdateProductResponse, aM as ValueAggregation, aN as ValueAggregationOptionsOneOf, aW as ValueAggregationResult, b2 as ValueResult, a_ as ValueResults, W as WebhookIdentityType, c3 as WebhookIdentityTypeWithLiterals, a3 as WholesaleOptions, bN as utils } from './suppliershub-marketplace-product-v1-product-products.universal-Dn4iCbNX.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 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-Ck8NHqsQ.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-Ck8NHqsQ.js';
4
4
 
5
5
  declare function createProduct$1(httpClient: HttpClient): CreateProductSignature;
6
6
  interface CreateProductSignature {
@@ -38,6 +38,7 @@ __export(index_exports, {
38
38
  SortType: () => SortType,
39
39
  TimeUnit: () => TimeUnit,
40
40
  WebhookIdentityType: () => WebhookIdentityType,
41
+ bulkAddProductsToStore: () => bulkAddProductsToStore4,
41
42
  bulkCreateProducts: () => bulkCreateProducts4,
42
43
  bulkDeleteProducts: () => bulkDeleteProducts4,
43
44
  bulkUpdateProductTags: () => bulkUpdateProductTags4,
@@ -745,6 +746,27 @@ function queryCategories(payload) {
745
746
  }
746
747
  return __queryCategories;
747
748
  }
749
+ function bulkAddProductsToStore(payload) {
750
+ function __bulkAddProductsToStore({ host }) {
751
+ const metadata = {
752
+ entityFqdn: "wix.suppliershub.marketplace_product.v1.product",
753
+ method: "POST",
754
+ methodFqn: "wix.suppliershub.marketplace.product.v1.MarketplaceProduct.BulkAddProductsToStore",
755
+ packageName: PACKAGE_NAME,
756
+ migrationOptions: {
757
+ optInTransformResponse: true
758
+ },
759
+ url: resolveWixSuppliershubMarketplaceProductV1MarketplaceProductUrl({
760
+ protoPath: "/v1/bulk/add-products-to-store",
761
+ data: payload,
762
+ host
763
+ }),
764
+ data: payload
765
+ };
766
+ return metadata;
767
+ }
768
+ return __bulkAddProductsToStore;
769
+ }
748
770
 
749
771
  // src/suppliershub-marketplace-product-v1-product-products.universal.ts
750
772
  var import_image = require("@wix/sdk-runtime/transformations/image");
@@ -1386,6 +1408,33 @@ async function queryCategories2(options) {
1386
1408
  throw transformedError;
1387
1409
  }
1388
1410
  }
1411
+ async function bulkAddProductsToStore2(productReferences) {
1412
+ const { httpClient, sideEffects } = arguments[1];
1413
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1414
+ productReferences
1415
+ });
1416
+ const reqOpts = bulkAddProductsToStore(
1417
+ payload
1418
+ );
1419
+ sideEffects?.onSiteCall?.();
1420
+ try {
1421
+ const result = await httpClient.request(reqOpts);
1422
+ sideEffects?.onSuccess?.(result);
1423
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1424
+ } catch (err) {
1425
+ const transformedError = (0, import_transform_error.transformError)(
1426
+ err,
1427
+ {
1428
+ spreadPathsToArguments: {},
1429
+ explicitPathsToArguments: { productReferences: "$[0]" },
1430
+ singleArgumentUnchanged: false
1431
+ },
1432
+ ["productReferences"]
1433
+ );
1434
+ sideEffects?.onError?.(err);
1435
+ throw transformedError;
1436
+ }
1437
+ }
1389
1438
 
1390
1439
  // src/suppliershub-marketplace-product-v1-product-products.public.ts
1391
1440
  function createProduct3(httpClient) {
@@ -1483,6 +1532,13 @@ function queryCategories3(httpClient) {
1483
1532
  { httpClient }
1484
1533
  );
1485
1534
  }
1535
+ function bulkAddProductsToStore3(httpClient) {
1536
+ return (productReferences) => bulkAddProductsToStore2(
1537
+ productReferences,
1538
+ // @ts-ignore
1539
+ { httpClient }
1540
+ );
1541
+ }
1486
1542
  var onProductCreated = (0, import_sdk_types.EventDefinition)(
1487
1543
  "wix.suppliershub.marketplace_product.v1.product_created",
1488
1544
  true,
@@ -1616,6 +1672,7 @@ var searchProducts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)
1616
1672
  var bulkUpdateProductTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateProductTags3);
1617
1673
  var bulkUpdateProductTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateProductTagsByFilter3);
1618
1674
  var queryCategories4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryCategories3);
1675
+ var bulkAddProductsToStore4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkAddProductsToStore3);
1619
1676
  var queryProducts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryProducts);
1620
1677
  var onProductCreated2 = (0, import_event_definition_modules.createEventModule)(onProductCreated);
1621
1678
  var onProductDeleted2 = (0, import_event_definition_modules.createEventModule)(onProductDeleted);
@@ -1643,6 +1700,7 @@ var onProductUpdated2 = (0, import_event_definition_modules.createEventModule)(o
1643
1700
  SortType,
1644
1701
  TimeUnit,
1645
1702
  WebhookIdentityType,
1703
+ bulkAddProductsToStore,
1646
1704
  bulkCreateProducts,
1647
1705
  bulkDeleteProducts,
1648
1706
  bulkUpdateProductTags,