@wix/auto_sdk_stores_products 1.0.63 → 1.0.65
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 +2 -2
- package/build/cjs/index.js +7 -9
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +8 -6
- package/build/cjs/index.typings.js +7 -9
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +5 -5
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +8 -6
- package/build/es/index.typings.mjs +5 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +7 -9
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +8 -6
- package/build/internal/cjs/index.typings.js +7 -9
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +5 -5
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +8 -6
- package/build/internal/es/index.typings.mjs +5 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/build/internal/es/meta.mjs.map +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
2
|
import { Product, CreateProductResponse, UpdateProduct, UpdateProductResponse, VariantOverride, UpdateVariantsResponse, MediaDataForWrite, MediaAssignmentToChoice, Collection, CreateCollectionResponse, UpdateCollection, UpdateCollectionResponse, SetValue, BulkUpdateProductsResponse, AdjustValue, BulkAdjustProductPropertiesResponse, GetProductOptions, GetProductResponse, GetCollectionBySlugResponse, ProductOptionsAvailabilityResponse, QueryProductVariantsOptions, QueryProductVariantsResponse, PlatformQuery, QueryStoreVariantsResponse, GetStoreVariantResponse, ProductCollectionChangedEnvelope, ProductCollectionCreatedEnvelope, ProductCollectionDeletedEnvelope, ProductChangedEnvelope, ProductCreatedEnvelope, ProductDeletedEnvelope, ProductVariantsChangedEnvelope, ProductsQueryBuilder, ProductQuery, typedQueryProducts } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, AddProductMediaRequest, AddProductMediaResponse, AddProductMediaToChoicesRequest, AddProductMediaToChoicesResponse, AddProductsToCollectionRequest, AddProductsToCollectionResponse, AdditionalInfoSection, AdjustValueValueOneOf, AggregateProductsRequest, AggregateProductsResponse, AllowedProductsCountLimitExceededErrorData, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkAdjustProductPropertiesByFilterSyncRequest, BulkAdjustProductPropertiesByFilterSyncResponse, BulkAdjustProductPropertiesRequest, BulkDeleteProductsRequest, BulkDeleteProductsResponse, BulkProductResult, BulkQueryCustomFieldsRequest, BulkQueryCustomFieldsResponse, BulkRemoveCustomFieldsRequest, BulkRemoveCustomFieldsResponse, BulkSetCustomFieldsRequest, BulkSetCustomFieldsResponse, BulkUpdateProductsByFilterSyncRequest, BulkUpdateProductsByFilterSyncResponse, BulkUpdateProductsRequest, Choice, CollectionChanged, CollectionCreated, CollectionDeleted, CommonQueryWithEntityContext, CostAndProfitData, CreateCollectionRequest, CreateDigitalProductRequest, CreateDigitalProductResponse, CreateProductPlatformizedRequest, CreateProductPlatformizedResponse, CreateProductRequest, CursorPaging, Cursors, CustomFieldsContainer, CustomTextField, DeleteCollectionRequest, DeleteCollectionResponse, DeleteProductOptionsRequest, DeleteProductOptionsResponse, DeleteProductPlatformizedRequest, DeleteProductPlatformizedResponse, DeleteProductRequest, DeleteProductResponse, Discount, DiscountType, DiscountTypeWithLiterals, FileType, FileTypeWithLiterals,
|
|
3
|
+
export { AccountInfo, AddProductMediaRequest, AddProductMediaResponse, AddProductMediaToChoicesRequest, AddProductMediaToChoicesResponse, AddProductsToCollectionRequest, AddProductsToCollectionResponse, AdditionalInfoSection, AdjustValueValueOneOf, AggregateProductsRequest, AggregateProductsResponse, AllowedProductsCountLimitExceededErrorData, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkAdjustProductPropertiesByFilterSyncRequest, BulkAdjustProductPropertiesByFilterSyncResponse, BulkAdjustProductPropertiesRequest, BulkDeleteProductsRequest, BulkDeleteProductsResponse, BulkProductResult, BulkQueryCustomFieldsRequest, BulkQueryCustomFieldsResponse, BulkRemoveCustomFieldsRequest, BulkRemoveCustomFieldsResponse, BulkSetCustomFieldsRequest, BulkSetCustomFieldsResponse, BulkUpdateProductsByFilterSyncRequest, BulkUpdateProductsByFilterSyncResponse, BulkUpdateProductsRequest, Choice, CollectionChanged, CollectionCreated, CollectionDeleted, CommonQueryWithEntityContext, CostAndProfitData, CreateCollectionRequest, CreateDigitalProductRequest, CreateDigitalProductResponse, CreateProductPlatformizedRequest, CreateProductPlatformizedResponse, CreateProductRequest, CursorPaging, Cursors, CustomFieldsContainer, CustomTextField, DeleteCollectionRequest, DeleteCollectionResponse, DeleteProductOptionsRequest, DeleteProductOptionsResponse, DeleteProductPlatformizedRequest, DeleteProductPlatformizedResponse, DeleteProductRequest, DeleteProductResponse, Discount, DiscountType, DiscountTypeWithLiterals, FileType, FileTypeWithLiterals, FocalPoint, FormattedPrice, GetCollectionBySlugRequest, GetCollectionRequest, GetCollectionResponse, GetProductPlatformizedRequest, GetProductPlatformizedResponse, GetProductRequest, GetProductsRequest, GetProductsResponse, GetStoreVariantRequest, IdentificationData, IdentificationDataIdOneOf, InventoryStatus, InventoryStatusWithLiterals, ItemMetadata, Keyword, MeasurementUnit, MeasurementUnitWithLiterals, Media, MediaDataForWriteMediaSourceOneOf, MediaItem, MediaItemItemOneOf, MediaItemType, MediaItemTypeWithLiterals, MediaItemUrlAndSize, MediaItemVideo, MessageEnvelope, NumericPropertyRange, OptionAndChoice, OptionType, OptionTypeWithLiterals, PageUrl, Paging, PagingMetadata, PagingWithBigLimit, PercentageData, PlatformMedia, PlatformMediaMediaOneOf, PlatformPaging, PlatformPagingMetadata, PlatformQueryPagingMethodOneOf, PreorderInfo, PriceData, PricePerUnitData, ProductChanged, ProductCreated, ProductDeleted, ProductOption, ProductOptionsAvailabilityRequest, ProductQuerySpec, ProductType, ProductTypeWithLiterals, ProductsQueryResult, PropertyAdjustmentData, PropertyAdjustmentDataByOneOf, Query, QueryCollectionsPlatformizedRequest, QueryCollectionsPlatformizedResponse, QueryCollectionsRequest, QueryCollectionsResponse, QueryCustomFieldsRequest, QueryCustomFieldsResponse, QueryProductVariantsRequest, QueryProductsPlatformizedRequest, QueryProductsPlatformizedResponse, QueryProductsRequest, QueryProductsResponse, QueryProductsWithBigPageLimitRequest, QueryStoreVariantsRequest, QueryStoreVariantsWithBigLimitRequest, QueryWithBigPageLimit, ReCloneStoreRequest, ReCloneStoreResponse, RemoveCustomFieldsRequest, RemoveCustomFieldsResponse, RemoveProductBrandRequest, RemoveProductBrandResponse, RemoveProductMediaFromChoicesRequest, RemoveProductMediaFromChoicesResponse, RemoveProductMediaRequest, RemoveProductMediaResponse, RemoveProductRibbonRequest, RemoveProductRibbonResponse, RemoveProductsFromCollectionRequest, RemoveProductsFromCollectionResponse, ResetAllVariantDataRequest, ResetAllVariantDataResponse, Ribbon, SecuredMedia, SeoSchema, SetCustomFieldsRequest, SetCustomFieldsResponse, SetValueValueOneOf, Settings, SortOrder, SortOrderWithLiterals, Sorting, Stock, StoreVariant, Tag, UnlimitedPlatformCursorPaging, UnlimitedPlatformPaging, UnlimitedPlatformQuery, UnlimitedPlatformQueryPagingMethodOneOf, UpdateCollectionRequest, UpdateProductPlatformizedRequest, UpdateProductPlatformizedResponse, UpdateProductRequest, UpdateVariantsRequest, V1CreateProductPlatformizedRequest, V1CreateProductPlatformizedResponse, V1DeleteProductPlatformizedRequest, V1DeleteProductPlatformizedResponse, V1UpdateProductPlatformizedRequest, V1UpdateProductPlatformizedResponse, Variant, VariantChanged, VariantData, VariantDataWithNoStock, VariantStock, VariantsChanged, Version, VersionWithLiterals, VideoResolution, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createProduct$1(httpClient: HttpClient): CreateProductSignature;
|
|
6
6
|
interface CreateProductSignature {
|
|
@@ -104,7 +104,7 @@ interface RemoveProductMediaFromChoicesSignature {
|
|
|
104
104
|
* Removes media items from all or some of a product's choices.
|
|
105
105
|
* (Media items can only be set for choices within one option at a time - e.g., if you set media items for some or all of the choices within the Colors option (blue, green, and red), you won't be able to also assign media items to choices within the Size option (S, M, and L).)
|
|
106
106
|
* @param - Product ID from whose choices to remove media items.
|
|
107
|
-
* @param - Media to remove from choices.
|
|
107
|
+
* @param - Media to remove from choices.
|
|
108
108
|
*/
|
|
109
109
|
(_id: string, media: MediaAssignmentToChoice[]): Promise<void>;
|
|
110
110
|
}
|
package/build/cjs/index.js
CHANGED
|
@@ -22,14 +22,11 @@ var index_exports = {};
|
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
DiscountType: () => DiscountType,
|
|
24
24
|
FileType: () => FileType,
|
|
25
|
-
Filter: () => Filter,
|
|
26
25
|
InventoryStatus: () => InventoryStatus,
|
|
27
26
|
MeasurementUnit: () => MeasurementUnit,
|
|
28
27
|
MediaItemType: () => MediaItemType,
|
|
29
28
|
OptionType: () => OptionType,
|
|
30
29
|
ProductType: () => ProductType,
|
|
31
|
-
QueryBuilder: () => QueryBuilder,
|
|
32
|
-
Sort: () => Sort,
|
|
33
30
|
SortOrder: () => SortOrder,
|
|
34
31
|
Version: () => Version,
|
|
35
32
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
@@ -65,7 +62,8 @@ __export(index_exports, {
|
|
|
65
62
|
resetAllProductVariantData: () => resetAllProductVariantData3,
|
|
66
63
|
updateCollection: () => updateCollection4,
|
|
67
64
|
updateProduct: () => updateProduct4,
|
|
68
|
-
updateProductVariants: () => updateProductVariants3
|
|
65
|
+
updateProductVariants: () => updateProductVariants3,
|
|
66
|
+
utils: () => utils
|
|
69
67
|
});
|
|
70
68
|
module.exports = __toCommonJS(index_exports);
|
|
71
69
|
|
|
@@ -1890,7 +1888,9 @@ async function typedQueryProducts(query) {
|
|
|
1890
1888
|
throw transformedError;
|
|
1891
1889
|
}
|
|
1892
1890
|
}
|
|
1893
|
-
var
|
|
1891
|
+
var utils = {
|
|
1892
|
+
...(0, import_query_builder_utils.createQueryUtils)()
|
|
1893
|
+
};
|
|
1894
1894
|
async function getProduct2(_id, options) {
|
|
1895
1895
|
const { httpClient, sideEffects } = arguments[2];
|
|
1896
1896
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -2386,14 +2386,11 @@ var onProductVariantsChanged2 = (0, import_event_definition_modules.createEventM
|
|
|
2386
2386
|
0 && (module.exports = {
|
|
2387
2387
|
DiscountType,
|
|
2388
2388
|
FileType,
|
|
2389
|
-
Filter,
|
|
2390
2389
|
InventoryStatus,
|
|
2391
2390
|
MeasurementUnit,
|
|
2392
2391
|
MediaItemType,
|
|
2393
2392
|
OptionType,
|
|
2394
2393
|
ProductType,
|
|
2395
|
-
QueryBuilder,
|
|
2396
|
-
Sort,
|
|
2397
2394
|
SortOrder,
|
|
2398
2395
|
Version,
|
|
2399
2396
|
WebhookIdentityType,
|
|
@@ -2429,6 +2426,7 @@ var onProductVariantsChanged2 = (0, import_event_definition_modules.createEventM
|
|
|
2429
2426
|
resetAllProductVariantData,
|
|
2430
2427
|
updateCollection,
|
|
2431
2428
|
updateProduct,
|
|
2432
|
-
updateProductVariants
|
|
2429
|
+
updateProductVariants,
|
|
2430
|
+
utils
|
|
2433
2431
|
});
|
|
2434
2432
|
//# sourceMappingURL=index.js.map
|