@wix/stores 1.0.122 → 1.0.123

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 (35) hide show
  1. package/build/cjs/src/platform-v1-wishlist.universal.js +11 -4
  2. package/build/cjs/src/platform-v1-wishlist.universal.js.map +1 -1
  3. package/build/cjs/src/stores-catalog-v1-collection.universal.js +11 -6
  4. package/build/cjs/src/stores-catalog-v1-collection.universal.js.map +1 -1
  5. package/build/cjs/src/stores-catalog-v1-product.public.d.ts +1 -1
  6. package/build/cjs/src/stores-catalog-v1-product.types.d.ts +67 -0
  7. package/build/cjs/src/stores-catalog-v1-product.types.js.map +1 -1
  8. package/build/cjs/src/stores-catalog-v1-product.universal.d.ts +67 -0
  9. package/build/cjs/src/stores-catalog-v1-product.universal.js +173 -113
  10. package/build/cjs/src/stores-catalog-v1-product.universal.js.map +1 -1
  11. package/build/cjs/src/stores-v1-subscription-option.public.d.ts +1 -1
  12. package/build/cjs/src/stores-v1-subscription-option.types.d.ts +67 -0
  13. package/build/cjs/src/stores-v1-subscription-option.universal.d.ts +67 -0
  14. package/build/cjs/src/stores-v1-subscription-option.universal.js +71 -41
  15. package/build/cjs/src/stores-v1-subscription-option.universal.js.map +1 -1
  16. package/build/cjs/src/stores-v2-inventory.universal.js +31 -17
  17. package/build/cjs/src/stores-v2-inventory.universal.js.map +1 -1
  18. package/build/es/src/platform-v1-wishlist.universal.js +12 -5
  19. package/build/es/src/platform-v1-wishlist.universal.js.map +1 -1
  20. package/build/es/src/stores-catalog-v1-collection.universal.js +11 -6
  21. package/build/es/src/stores-catalog-v1-collection.universal.js.map +1 -1
  22. package/build/es/src/stores-catalog-v1-product.public.d.ts +1 -1
  23. package/build/es/src/stores-catalog-v1-product.types.d.ts +67 -0
  24. package/build/es/src/stores-catalog-v1-product.types.js.map +1 -1
  25. package/build/es/src/stores-catalog-v1-product.universal.d.ts +67 -0
  26. package/build/es/src/stores-catalog-v1-product.universal.js +173 -113
  27. package/build/es/src/stores-catalog-v1-product.universal.js.map +1 -1
  28. package/build/es/src/stores-v1-subscription-option.public.d.ts +1 -1
  29. package/build/es/src/stores-v1-subscription-option.types.d.ts +67 -0
  30. package/build/es/src/stores-v1-subscription-option.universal.d.ts +67 -0
  31. package/build/es/src/stores-v1-subscription-option.universal.js +72 -42
  32. package/build/es/src/stores-v1-subscription-option.universal.js.map +1 -1
  33. package/build/es/src/stores-v2-inventory.universal.js +32 -18
  34. package/build/es/src/stores-v2-inventory.universal.js.map +1 -1
  35. package/package.json +3 -3
@@ -34,6 +34,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
35
  exports.getWishlistById = exports.__debug = void 0;
36
36
  const velo_1 = require("@wix/metro-runtime/velo");
37
+ const transform_error_1 = require("@wix/sdk-runtime/transform-error");
37
38
  const ambassadorWixPlatformV1Wishlist = __importStar(require("./platform-v1-wishlist.http"));
38
39
  let __verbose = false;
39
40
  function __log(...args) {
@@ -100,10 +101,16 @@ function getWishlistById(_id, options) {
100
101
  return fromJSON(result.data);
101
102
  }
102
103
  catch (err) {
103
- const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
104
- '_id',
105
- 'options',
106
- ]);
104
+ const transformedError = (0, transform_error_1.transformError)(err, {
105
+ spreadPathsToArguments: {},
106
+ explicitPathsToArguments: {
107
+ id: '$[0]',
108
+ limit: '$[1].limit',
109
+ offset: '$[1].offset',
110
+ kind: '$[1].kind',
111
+ },
112
+ singleArgumentUnchanged: false,
113
+ }, ['_id', 'options']);
107
114
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
108
115
  throw transformedError;
109
116
  }
@@ -1 +1 @@
1
- {"version":3,"file":"platform-v1-wishlist.universal.js","sourceRoot":"","sources":["../../../src/platform-v1-wishlist.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;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AAE,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;gBACxB,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;QAEpD,MAAM,OAAO,GAAG,+BAA+B,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QAEzE,KAAK,CAAC,2CAA2C,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAEvE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,2DAAI,CAAC;QAC5B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,4DAAG,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;QACtC,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;gBACE,sBAAsB,EAAE,EAAE;gBAC1B,wBAAwB,EAAE;oBACxB,EAAE,EAAE,MAAM;oBACV,KAAK,EAAE,YAAY;oBACnB,MAAM,EAAE,aAAa;oBACrB,IAAI,EAAE,WAAW;iBAClB;gBACD,uBAAuB,EAAE,KAAK;aAC/B,EACD,CAAC,KAAK,EAAE,SAAS,CAAC,CACnB,CAAC;YACF,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,4DAAG,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;QACzB,CAAC;;CACF;AAxED,0CAwEC"}
@@ -34,6 +34,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
35
  exports.getCollectionBySlug = exports.getCollection = exports.queryCollections = exports.SortOrder = exports.MediaItemType = exports.__debug = void 0;
36
36
  const velo_1 = require("@wix/metro-runtime/velo");
37
+ const transform_error_1 = require("@wix/sdk-runtime/transform-error");
37
38
  const ambassadorWixStoresCatalogV1Collection = __importStar(require("./stores-catalog-v1-collection.http"));
38
39
  // @ts-ignore
39
40
  const motion_edm_autogen_query_wrapper_1 = require("@wix/motion-edm-autogen-query-wrapper");
@@ -172,9 +173,11 @@ function getCollection(_id) {
172
173
  return fromJSON(result.data);
173
174
  }
174
175
  catch (err) {
175
- const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
176
- '_id',
177
- ]);
176
+ const transformedError = (0, transform_error_1.transformError)(err, {
177
+ spreadPathsToArguments: {},
178
+ explicitPathsToArguments: { id: '$[0]' },
179
+ singleArgumentUnchanged: false,
180
+ }, ['_id']);
178
181
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
179
182
  throw transformedError;
180
183
  }
@@ -223,9 +226,11 @@ function getCollectionBySlug(slug) {
223
226
  return fromJSON(result.data);
224
227
  }
225
228
  catch (err) {
226
- const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
227
- 'slug',
228
- ]);
229
+ const transformedError = (0, transform_error_1.transformError)(err, {
230
+ spreadPathsToArguments: {},
231
+ explicitPathsToArguments: { slug: '$[0]' },
232
+ singleArgumentUnchanged: false,
233
+ }, ['slug']);
229
234
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
230
235
  throw transformedError;
231
236
  }
@@ -1 +1 @@
1
- {"version":3,"file":"stores-catalog-v1-collection.universal.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AAEjC,4GAA8F;AAC9F,aAAa;AACb,4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AAC,CAAC;QAEH,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,iBAAU,EAAC;YAC9B,UAAU,EAAE,4BAA4B;YACxC,UAAU,EAAE,EAAE;YACd,kBAAkB,EAAE;gBAClB,KAAK,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;gBAC1B,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAE5C,MAAM,OAAO,GACX,sCAAsC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;QAEtE,KAAK,CAAC,+CAA+C,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAE3E,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,2DAAI,CAAC;QAC5B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,4DAAG,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;QACtC,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAClB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,MAAM;aACP,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,4DAAG,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;QACzB,CAAC;;CACF;AAvDD,kDAuDC"}
1
+ {"version":3,"file":"stores-catalog-v1-collection.universal.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AACjC,sE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DAAG,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;QACzB,CAAC;;CACF;AA7DD,kDA6DC"}
@@ -1212,4 +1212,4 @@ export declare function queryProductVariants(httpClient: HttpClient): (_id: stri
1212
1212
  export declare function queryStoreVariants(httpClient: HttpClient): (query: PlatformQuery) => Promise<import("./stores-catalog-v1-product.universal").QueryStoreVariantsResponse & import("./stores-catalog-v1-product.universal").QueryStoreVariantsResponseNonNullableFields>;
1213
1213
  export declare function getStoreVariant(httpClient: HttpClient): (_id: string) => Promise<import("./stores-catalog-v1-product.universal").GetStoreVariantResponse & import("./stores-catalog-v1-product.universal").GetStoreVariantResponseNonNullableFields>;
1214
1214
  export { ProductType, InventoryStatus, MeasurementUnit, MediaItemType, OptionType, DiscountType, SortOrder, } from './stores-catalog-v1-product.universal';
1215
- export { Product, NumericPropertyRange, Stock, PriceData, FormattedPrice, CostAndProfitData, PricePerUnitData, AdditionalInfoSection, Ribbon, Media, MediaItem, MediaItemItemOneOf, MediaItemUrlAndSize, MediaItemVideo, CustomTextField, ProductOption, Choice, PageUrl, Discount, Variant, VariantDataWithNoStock, VariantStock, SeoSchema, Keyword, Tag, Settings, CreateProductRequest, CreateProductResponse, CreateProductPlatformizedRequest, CreateProductPlatformizedResponse, UpdateProductRequest, UpdateProductResponse, UpdateProductPlatformizedRequest, UpdateProductPlatformizedResponse, DeleteProductRequest, DeleteProductResponse, DeleteProductPlatformizedRequest, DeleteProductPlatformizedResponse, BulkDeleteProductsRequest, BulkDeleteProductsResponse, UpdateVariantsRequest, VariantOverride, UpdateVariantsResponse, ResetAllVariantDataRequest, ResetAllVariantDataResponse, AddProductsToCollectionRequest, AddProductsToCollectionResponse, RemoveProductsFromCollectionRequest, RemoveProductsFromCollectionResponse, AddProductMediaRequest, MediaDataForWrite, MediaDataForWriteMediaSourceOneOf, OptionAndChoice, AddProductMediaResponse, RemoveProductMediaRequest, RemoveProductMediaResponse, AddProductMediaToChoicesRequest, MediaAssignmentToChoice, AddProductMediaToChoicesResponse, RemoveProductMediaFromChoicesRequest, RemoveProductMediaFromChoicesResponse, DeleteProductOptionsRequest, DeleteProductOptionsResponse, SetCustomFieldsRequest, SetCustomFieldsResponse, RemoveCustomFieldsRequest, RemoveCustomFieldsResponse, RemoveProductBrandRequest, RemoveProductBrandResponse, BulkSetCustomFieldsRequest, BulkSetCustomFieldsResponse, BulkRemoveCustomFieldsRequest, BulkRemoveCustomFieldsResponse, CreateCollectionRequest, Collection, CreateCollectionResponse, UpdateCollectionRequest, UpdateCollectionResponse, DeleteCollectionRequest, DeleteCollectionResponse, RemoveProductRibbonRequest, RemoveProductRibbonResponse, BulkUpdateProductsRequest, SetValue, SetValueValueOneOf, BulkUpdateProductsResponse, BulkProductResult, ItemMetadata, ApplicationError, BulkActionMetadata, BulkUpdateProductsByFilterSyncRequest, BulkUpdateProductsByFilterSyncResponse, AllowedProductsCountLimitExceededErrorData, BulkAdjustProductPropertiesRequest, AdjustValue, AdjustValueValueOneOf, PropertyAdjustmentData, PropertyAdjustmentDataByOneOf, PercentageData, BulkAdjustProductPropertiesResponse, BulkAdjustProductPropertiesByFilterSyncRequest, BulkAdjustProductPropertiesByFilterSyncResponse, ReCloneStoreRequest, ReCloneStoreResponse, V1CreateProductPlatformizedRequest, V1CreateProductPlatformizedResponse, V1UpdateProductPlatformizedRequest, V1UpdateProductPlatformizedResponse, V1DeleteProductPlatformizedRequest, V1DeleteProductPlatformizedResponse, ProductCreated, ProductChanged, ProductDeleted, CollectionCreated, CollectionChanged, CollectionDeleted, VariantsChanged, VariantChanged, QueryProductsRequest, Query, Paging, QueryProductsResponse, PagingMetadata, QueryProductsPlatformizedRequest, PlatformQuery, PlatformQueryPagingMethodOneOf, Sorting, PlatformPaging, CursorPaging, QueryProductsPlatformizedResponse, PlatformPagingMetadata, Cursors, QueryProductsWithBigPageLimitRequest, QueryWithBigPageLimit, PagingWithBigLimit, GetProductsRequest, GetProductsResponse, GetProductRequest, GetProductResponse, GetProductPlatformizedRequest, GetProductPlatformizedResponse, QueryCollectionsRequest, QueryCollectionsResponse, QueryCollectionsPlatformizedRequest, QueryCollectionsPlatformizedResponse, GetCollectionRequest, GetCollectionResponse, GetCollectionBySlugRequest, GetCollectionBySlugResponse, ProductOptionsAvailabilityRequest, ProductOptionsAvailabilityResponse, VariantData, QueryProductVariantsRequest, QueryProductVariantsResponse, QueryStoreVariantsRequest, QueryStoreVariantsResponse, StoreVariant, PlatformMedia, PlatformMediaMediaOneOf, VideoResolution, PreorderInfo, QueryStoreVariantsWithBigLimitRequest, UnlimitedPlatformQuery, UnlimitedPlatformQueryPagingMethodOneOf, UnlimitedPlatformPaging, UnlimitedPlatformCursorPaging, GetStoreVariantRequest, GetStoreVariantResponse, QueryCustomFieldsRequest, QueryCustomFieldsResponse, BulkQueryCustomFieldsRequest, BulkQueryCustomFieldsResponse, CustomFieldsContainer, AggregateProductsRequest, AggregateProductsResponse, CreateProductResponseNonNullableFields, CreateProductPlatformizedResponseNonNullableFields, UpdateProductResponseNonNullableFields, UpdateProductPlatformizedResponseNonNullableFields, UpdateVariantsResponseNonNullableFields, CreateCollectionResponseNonNullableFields, UpdateCollectionResponseNonNullableFields, BulkUpdateProductsResponseNonNullableFields, BulkAdjustProductPropertiesResponseNonNullableFields, V1CreateProductPlatformizedResponseNonNullableFields, V1UpdateProductPlatformizedResponseNonNullableFields, QueryProductsPlatformizedResponseNonNullableFields, GetProductResponseNonNullableFields, GetProductPlatformizedResponseNonNullableFields, GetCollectionBySlugResponseNonNullableFields, ProductOptionsAvailabilityResponseNonNullableFields, QueryProductVariantsResponseNonNullableFields, QueryStoreVariantsResponseNonNullableFields, GetStoreVariantResponseNonNullableFields, UpdateProduct, UpdateProductPlatformizedProduct, UpdateCollection, WriteProxyUpdateProductPlatformizedProduct, ProductsQueryResult, ProductsQueryBuilder, GetProductOptions, GetProductPlatformizedOptions, QueryProductVariantsOptions, } from './stores-catalog-v1-product.universal';
1215
+ export { Product, NumericPropertyRange, Stock, PriceData, FormattedPrice, CostAndProfitData, PricePerUnitData, AdditionalInfoSection, Ribbon, Media, MediaItem, MediaItemItemOneOf, MediaItemUrlAndSize, MediaItemVideo, CustomTextField, ProductOption, Choice, PageUrl, Discount, Variant, VariantDataWithNoStock, VariantStock, SeoSchema, Keyword, Tag, Settings, CreateProductRequest, CreateProductResponse, CreateProductPlatformizedRequest, CreateProductPlatformizedResponse, UpdateProductRequest, UpdateProductResponse, UpdateProductPlatformizedRequest, UpdateProductPlatformizedResponse, DeleteProductRequest, DeleteProductResponse, DeleteProductPlatformizedRequest, DeleteProductPlatformizedResponse, BulkDeleteProductsRequest, BulkDeleteProductsResponse, UpdateVariantsRequest, VariantOverride, UpdateVariantsResponse, ResetAllVariantDataRequest, ResetAllVariantDataResponse, AddProductsToCollectionRequest, AddProductsToCollectionResponse, RemoveProductsFromCollectionRequest, RemoveProductsFromCollectionResponse, AddProductMediaRequest, MediaDataForWrite, MediaDataForWriteMediaSourceOneOf, OptionAndChoice, AddProductMediaResponse, RemoveProductMediaRequest, RemoveProductMediaResponse, AddProductMediaToChoicesRequest, MediaAssignmentToChoice, AddProductMediaToChoicesResponse, RemoveProductMediaFromChoicesRequest, RemoveProductMediaFromChoicesResponse, DeleteProductOptionsRequest, DeleteProductOptionsResponse, SetCustomFieldsRequest, SetCustomFieldsResponse, RemoveCustomFieldsRequest, RemoveCustomFieldsResponse, RemoveProductBrandRequest, RemoveProductBrandResponse, BulkSetCustomFieldsRequest, BulkSetCustomFieldsResponse, BulkRemoveCustomFieldsRequest, BulkRemoveCustomFieldsResponse, CreateCollectionRequest, Collection, CreateCollectionResponse, UpdateCollectionRequest, UpdateCollectionResponse, DeleteCollectionRequest, DeleteCollectionResponse, RemoveProductRibbonRequest, RemoveProductRibbonResponse, BulkUpdateProductsRequest, SetValue, SetValueValueOneOf, BulkUpdateProductsResponse, BulkProductResult, ItemMetadata, ApplicationError, BulkActionMetadata, BulkUpdateProductsByFilterSyncRequest, BulkUpdateProductsByFilterSyncResponse, AllowedProductsCountLimitExceededErrorData, BulkAdjustProductPropertiesRequest, AdjustValue, AdjustValueValueOneOf, PropertyAdjustmentData, PropertyAdjustmentDataByOneOf, PercentageData, BulkAdjustProductPropertiesResponse, BulkAdjustProductPropertiesByFilterSyncRequest, BulkAdjustProductPropertiesByFilterSyncResponse, ReCloneStoreRequest, ReCloneStoreResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, V1CreateProductPlatformizedRequest, V1CreateProductPlatformizedResponse, V1UpdateProductPlatformizedRequest, V1UpdateProductPlatformizedResponse, V1DeleteProductPlatformizedRequest, V1DeleteProductPlatformizedResponse, ProductCreated, ProductChanged, ProductDeleted, CollectionCreated, CollectionChanged, CollectionDeleted, VariantsChanged, VariantChanged, QueryProductsRequest, Query, Paging, QueryProductsResponse, PagingMetadata, QueryProductsPlatformizedRequest, PlatformQuery, PlatformQueryPagingMethodOneOf, Sorting, PlatformPaging, CursorPaging, QueryProductsPlatformizedResponse, PlatformPagingMetadata, Cursors, QueryProductsWithBigPageLimitRequest, QueryWithBigPageLimit, PagingWithBigLimit, GetProductsRequest, GetProductsResponse, GetProductRequest, GetProductResponse, GetProductPlatformizedRequest, GetProductPlatformizedResponse, QueryCollectionsRequest, QueryCollectionsResponse, QueryCollectionsPlatformizedRequest, QueryCollectionsPlatformizedResponse, GetCollectionRequest, GetCollectionResponse, GetCollectionBySlugRequest, GetCollectionBySlugResponse, ProductOptionsAvailabilityRequest, ProductOptionsAvailabilityResponse, VariantData, QueryProductVariantsRequest, QueryProductVariantsResponse, QueryStoreVariantsRequest, QueryStoreVariantsResponse, StoreVariant, PlatformMedia, PlatformMediaMediaOneOf, VideoResolution, PreorderInfo, QueryStoreVariantsWithBigLimitRequest, UnlimitedPlatformQuery, UnlimitedPlatformQueryPagingMethodOneOf, UnlimitedPlatformPaging, UnlimitedPlatformCursorPaging, GetStoreVariantRequest, GetStoreVariantResponse, QueryCustomFieldsRequest, QueryCustomFieldsResponse, BulkQueryCustomFieldsRequest, BulkQueryCustomFieldsResponse, CustomFieldsContainer, AggregateProductsRequest, AggregateProductsResponse, CreateProductResponseNonNullableFields, CreateProductPlatformizedResponseNonNullableFields, UpdateProductResponseNonNullableFields, UpdateProductPlatformizedResponseNonNullableFields, UpdateVariantsResponseNonNullableFields, CreateCollectionResponseNonNullableFields, UpdateCollectionResponseNonNullableFields, BulkUpdateProductsResponseNonNullableFields, BulkAdjustProductPropertiesResponseNonNullableFields, V1CreateProductPlatformizedResponseNonNullableFields, V1UpdateProductPlatformizedResponseNonNullableFields, QueryProductsPlatformizedResponseNonNullableFields, GetProductResponseNonNullableFields, GetProductPlatformizedResponseNonNullableFields, GetCollectionBySlugResponseNonNullableFields, ProductOptionsAvailabilityResponseNonNullableFields, QueryProductVariantsResponseNonNullableFields, QueryStoreVariantsResponseNonNullableFields, GetStoreVariantResponseNonNullableFields, UpdateProduct, UpdateProductPlatformizedProduct, UpdateCollection, WriteProxyUpdateProductPlatformizedProduct, ProductsQueryResult, ProductsQueryBuilder, GetProductOptions, GetProductPlatformizedOptions, QueryProductVariantsOptions, } from './stores-catalog-v1-product.universal';
@@ -940,6 +940,73 @@ export interface ReCloneStoreRequest {
940
940
  }
941
941
  export interface ReCloneStoreResponse {
942
942
  }
943
+ export interface DomainEvent extends DomainEventBodyOneOf {
944
+ createdEvent?: EntityCreatedEvent;
945
+ updatedEvent?: EntityUpdatedEvent;
946
+ deletedEvent?: EntityDeletedEvent;
947
+ actionEvent?: ActionEvent;
948
+ /**
949
+ * Unique event ID.
950
+ * Allows clients to ignore duplicate webhooks.
951
+ */
952
+ id?: string;
953
+ /**
954
+ * Assumes actions are also always typed to an entity_type
955
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
956
+ */
957
+ entityFqdn?: string;
958
+ /**
959
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
960
+ * This is although the created/updated/deleted notion is duplication of the oneof types
961
+ * Example: created/updated/deleted/started/completed/email_opened
962
+ */
963
+ slug?: string;
964
+ /** ID of the entity associated with the event. */
965
+ entityId?: string;
966
+ /** Event timestamp. */
967
+ eventTime?: Date;
968
+ /**
969
+ * Whether the event was triggered as a result of a privacy regulation application
970
+ * (for example, GDPR).
971
+ */
972
+ triggeredByAnonymizeRequest?: boolean | null;
973
+ /** If present, indicates the action that triggered the event. */
974
+ originatedFrom?: string | null;
975
+ /**
976
+ * A sequence number defining the order of updates to the underlying entity.
977
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
978
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
979
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
980
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
981
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
982
+ */
983
+ entityEventSequence?: string | null;
984
+ }
985
+ /** @oneof */
986
+ export interface DomainEventBodyOneOf {
987
+ createdEvent?: EntityCreatedEvent;
988
+ updatedEvent?: EntityUpdatedEvent;
989
+ deletedEvent?: EntityDeletedEvent;
990
+ actionEvent?: ActionEvent;
991
+ }
992
+ export interface EntityCreatedEvent {
993
+ entityAsJson?: string;
994
+ }
995
+ export interface EntityUpdatedEvent {
996
+ /**
997
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
998
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
999
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1000
+ */
1001
+ currentEntityAsJson?: string;
1002
+ }
1003
+ export interface EntityDeletedEvent {
1004
+ /** Entity that was deleted */
1005
+ deletedEntityAsJson?: string | null;
1006
+ }
1007
+ export interface ActionEvent {
1008
+ bodyAsJson?: string;
1009
+ }
943
1010
  export interface V1CreateProductPlatformizedRequest {
944
1011
  /** Product information. */
945
1012
  product?: Product;
@@ -1 +1 @@
1
- {"version":3,"file":"stores-catalog-v1-product.types.js","sourceRoot":"","sources":["../../../src/st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CAAA;IACb,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAqxBD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}
1
+ {"version":3,"file":"stores-catalog-v1-product.types.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product.types.ts"],"names":[],"mappings":";;;AAgIA,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,oEAAqD,CAAA;IACrD,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;AACrB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AA4BD,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,gDAA6B,CAAA;IAC7B,oEAAiD,CAAA;AACnD,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AA4ED,IAAY,eAuBX;AAvBD,WAAY,eAAe;IACzB,8CAA2B,CAAA;IAC3B,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,0BAAO,CAAA;IACP,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,0BAAO,CAAA;IACP,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,0BAAO,CAAA;IACP,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,gCAAa,CAAA;IACb,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,gCAAa,CAAA;AACf,CAAC,EAvBW,eAAe,+BAAf,eAAe,QAuB1B;AAyDD,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,4EAA2D,CAAA;IAC3D,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,sCAAqB,CAAA;IACrB,4BAAW,CAAA;AACb,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB;AA8BD,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,iEAAmD,CAAA;IACnD,qCAAuB,CAAA;IACvB,6BAAe,CAAA;AACjB,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AA0CD,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,kBAAkB;IAClB,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AA81BD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}
@@ -942,6 +942,73 @@ export interface ReCloneStoreRequest {
942
942
  }
943
943
  export interface ReCloneStoreResponse {
944
944
  }
945
+ export interface DomainEvent extends DomainEventBodyOneOf {
946
+ createdEvent?: EntityCreatedEvent;
947
+ updatedEvent?: EntityUpdatedEvent;
948
+ deletedEvent?: EntityDeletedEvent;
949
+ actionEvent?: ActionEvent;
950
+ /**
951
+ * Unique event ID.
952
+ * Allows clients to ignore duplicate webhooks.
953
+ */
954
+ _id?: string;
955
+ /**
956
+ * Assumes actions are also always typed to an entity_type
957
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
958
+ */
959
+ entityFqdn?: string;
960
+ /**
961
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
962
+ * This is although the created/updated/deleted notion is duplication of the oneof types
963
+ * Example: created/updated/deleted/started/completed/email_opened
964
+ */
965
+ slug?: string;
966
+ /** ID of the entity associated with the event. */
967
+ entityId?: string;
968
+ /** Event timestamp. */
969
+ eventTime?: Date;
970
+ /**
971
+ * Whether the event was triggered as a result of a privacy regulation application
972
+ * (for example, GDPR).
973
+ */
974
+ triggeredByAnonymizeRequest?: boolean | null;
975
+ /** If present, indicates the action that triggered the event. */
976
+ originatedFrom?: string | null;
977
+ /**
978
+ * A sequence number defining the order of updates to the underlying entity.
979
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
980
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
981
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
982
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
983
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
984
+ */
985
+ entityEventSequence?: string | null;
986
+ }
987
+ /** @oneof */
988
+ export interface DomainEventBodyOneOf {
989
+ createdEvent?: EntityCreatedEvent;
990
+ updatedEvent?: EntityUpdatedEvent;
991
+ deletedEvent?: EntityDeletedEvent;
992
+ actionEvent?: ActionEvent;
993
+ }
994
+ export interface EntityCreatedEvent {
995
+ entityAsJson?: string;
996
+ }
997
+ export interface EntityUpdatedEvent {
998
+ /**
999
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1000
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1001
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1002
+ */
1003
+ currentEntityAsJson?: string;
1004
+ }
1005
+ export interface EntityDeletedEvent {
1006
+ /** Entity that was deleted */
1007
+ deletedEntityAsJson?: string | null;
1008
+ }
1009
+ export interface ActionEvent {
1010
+ bodyAsJson?: string;
1011
+ }
945
1012
  export interface V1CreateProductPlatformizedRequest {
946
1013
  /** Product information. */
947
1014
  product?: Product;