@wix/stores 1.0.241 → 1.0.242

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.
@@ -14196,75 +14196,6 @@ interface V3GetProductBySlugResponse$1 {
14196
14196
  /** Product. */
14197
14197
  product?: V3Product$1;
14198
14198
  }
14199
- interface V3RetrieveVariantsRequest$1 {
14200
- /** Ids of the product and variants to retrieve */
14201
- productVariantIds: V3ProductVariantIds$1[];
14202
- /**
14203
- * Pointer to the next page in the list of results.
14204
- * Pass the relevant cursor token from the `pagingMetadata` in the previous call's response.
14205
- * Not relevant for the first request.
14206
- */
14207
- cursorPaging?: CommonVariantsCursorPaging$1;
14208
- /** Fields to include in the response. */
14209
- fields?: VariantsOpsRequestedFields$1[];
14210
- }
14211
- interface V3ProductVariantIds$1 {
14212
- /** Product id of the requested variants. */
14213
- productId?: string;
14214
- /** A list of variant ids. */
14215
- variantIds?: string[];
14216
- }
14217
- interface CommonVariantsCursorPaging$1 {
14218
- /** Maximum number of items to return in the results. */
14219
- limit?: number | null;
14220
- /**
14221
- * Pointer to the next or previous page in the list of results.
14222
- *
14223
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
14224
- * Not relevant for the first request.
14225
- */
14226
- cursor?: string | null;
14227
- }
14228
- declare enum VariantsOpsRequestedFields$1 {
14229
- UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
14230
- CURRENCY = "CURRENCY",
14231
- /** You can request merchant data only if you have `WIX_STORES.PRODUCT_MERCHANT_DATA_READ` permission. */
14232
- MERCHANT_DATA = "MERCHANT_DATA",
14233
- SUBSCRIPTION_PRICES_INFO = "SUBSCRIPTION_PRICES_INFO",
14234
- VARIANT_OPTION_CHOICE_NAMES = "VARIANT_OPTION_CHOICE_NAMES",
14235
- THUMBNAIL = "THUMBNAIL"
14236
- }
14237
- interface V3RetrieveVariantsResponse$1 {
14238
- /** The retrieved Products and Variants */
14239
- productVariants?: V3ProductVariants$1[];
14240
- /** Paging metadata. */
14241
- pagingMetadata?: CommonCursorPagingMetadata$1;
14242
- }
14243
- interface V3ProductVariants$1 {
14244
- /** Product id of the requested variants. */
14245
- productId?: string;
14246
- /** A list of variants. */
14247
- variants?: Variant$1[];
14248
- }
14249
- interface CommonCursorPagingMetadata$1 {
14250
- /** Number of items returned in the response. */
14251
- count?: number | null;
14252
- /** Cursor strings that point to the next page, previous page, or both. */
14253
- cursors?: CommonCursors$1;
14254
- /**
14255
- * Whether there are more pages to retrieve following the current page.
14256
- *
14257
- * + `true`: Another page of results can be retrieved.
14258
- * + `false`: This is the last page.
14259
- */
14260
- hasNext?: boolean | null;
14261
- }
14262
- interface CommonCursors$1 {
14263
- /** Cursor string pointing to the next page in the list of results. */
14264
- next?: string | null;
14265
- /** Cursor pointing to the previous page in the list of results. */
14266
- prev?: string | null;
14267
- }
14268
14199
  interface V3SearchProductsRequest$1 {
14269
14200
  /** Search options. */
14270
14201
  search?: CommonCursorSearch$1;
@@ -14519,6 +14450,25 @@ interface V3SearchProductsResponse$1 {
14519
14450
  /** Aggregation data. */
14520
14451
  aggregationData?: CommonAggregationData$1;
14521
14452
  }
14453
+ interface CommonCursorPagingMetadata$1 {
14454
+ /** Number of items returned in the response. */
14455
+ count?: number | null;
14456
+ /** Cursor strings that point to the next page, previous page, or both. */
14457
+ cursors?: CommonCursors$1;
14458
+ /**
14459
+ * Whether there are more pages to retrieve following the current page.
14460
+ *
14461
+ * + `true`: Another page of results can be retrieved.
14462
+ * + `false`: This is the last page.
14463
+ */
14464
+ hasNext?: boolean | null;
14465
+ }
14466
+ interface CommonCursors$1 {
14467
+ /** Cursor string pointing to the next page in the list of results. */
14468
+ next?: string | null;
14469
+ /** Cursor pointing to the previous page in the list of results. */
14470
+ prev?: string | null;
14471
+ }
14522
14472
  interface CommonAggregationData$1 {
14523
14473
  /** key = aggregation name (as derived from search request) */
14524
14474
  results?: AggregationDataAggregationResults$1[];
@@ -15558,13 +15508,6 @@ interface V3GetProductResponseNonNullableFields$1 {
15558
15508
  interface V3GetProductBySlugResponseNonNullableFields$1 {
15559
15509
  product?: V3ProductNonNullableFields$1;
15560
15510
  }
15561
- interface V3ProductVariantsNonNullableFields$1 {
15562
- productId: string;
15563
- variants: VariantNonNullableFields$1[];
15564
- }
15565
- interface V3RetrieveVariantsResponseNonNullableFields$1 {
15566
- productVariants: V3ProductVariantsNonNullableFields$1[];
15567
- }
15568
15511
  interface ValueResultsValueAggregationResultNonNullableFields$1 {
15569
15512
  value: string;
15570
15513
  count: number;
@@ -18626,75 +18569,6 @@ interface V3GetProductBySlugResponse {
18626
18569
  /** Product. */
18627
18570
  product?: V3Product;
18628
18571
  }
18629
- interface V3RetrieveVariantsRequest {
18630
- /** Ids of the product and variants to retrieve */
18631
- productVariantIds: V3ProductVariantIds[];
18632
- /**
18633
- * Pointer to the next page in the list of results.
18634
- * Pass the relevant cursor token from the `pagingMetadata` in the previous call's response.
18635
- * Not relevant for the first request.
18636
- */
18637
- cursorPaging?: CommonVariantsCursorPaging;
18638
- /** Fields to include in the response. */
18639
- fields?: VariantsOpsRequestedFields[];
18640
- }
18641
- interface V3ProductVariantIds {
18642
- /** Product id of the requested variants. */
18643
- productId?: string;
18644
- /** A list of variant ids. */
18645
- variantIds?: string[];
18646
- }
18647
- interface CommonVariantsCursorPaging {
18648
- /** Maximum number of items to return in the results. */
18649
- limit?: number | null;
18650
- /**
18651
- * Pointer to the next or previous page in the list of results.
18652
- *
18653
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
18654
- * Not relevant for the first request.
18655
- */
18656
- cursor?: string | null;
18657
- }
18658
- declare enum VariantsOpsRequestedFields {
18659
- UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
18660
- CURRENCY = "CURRENCY",
18661
- /** You can request merchant data only if you have `WIX_STORES.PRODUCT_MERCHANT_DATA_READ` permission. */
18662
- MERCHANT_DATA = "MERCHANT_DATA",
18663
- SUBSCRIPTION_PRICES_INFO = "SUBSCRIPTION_PRICES_INFO",
18664
- VARIANT_OPTION_CHOICE_NAMES = "VARIANT_OPTION_CHOICE_NAMES",
18665
- THUMBNAIL = "THUMBNAIL"
18666
- }
18667
- interface V3RetrieveVariantsResponse {
18668
- /** The retrieved Products and Variants */
18669
- productVariants?: V3ProductVariants[];
18670
- /** Paging metadata. */
18671
- pagingMetadata?: CommonCursorPagingMetadata;
18672
- }
18673
- interface V3ProductVariants {
18674
- /** Product id of the requested variants. */
18675
- productId?: string;
18676
- /** A list of variants. */
18677
- variants?: Variant[];
18678
- }
18679
- interface CommonCursorPagingMetadata {
18680
- /** Number of items returned in the response. */
18681
- count?: number | null;
18682
- /** Cursor strings that point to the next page, previous page, or both. */
18683
- cursors?: CommonCursors;
18684
- /**
18685
- * Whether there are more pages to retrieve following the current page.
18686
- *
18687
- * + `true`: Another page of results can be retrieved.
18688
- * + `false`: This is the last page.
18689
- */
18690
- hasNext?: boolean | null;
18691
- }
18692
- interface CommonCursors {
18693
- /** Cursor string pointing to the next page in the list of results. */
18694
- next?: string | null;
18695
- /** Cursor pointing to the previous page in the list of results. */
18696
- prev?: string | null;
18697
- }
18698
18572
  interface V3SearchProductsRequest {
18699
18573
  /** Search options. */
18700
18574
  search?: CommonCursorSearch;
@@ -18949,6 +18823,25 @@ interface V3SearchProductsResponse {
18949
18823
  /** Aggregation data. */
18950
18824
  aggregationData?: CommonAggregationData;
18951
18825
  }
18826
+ interface CommonCursorPagingMetadata {
18827
+ /** Number of items returned in the response. */
18828
+ count?: number | null;
18829
+ /** Cursor strings that point to the next page, previous page, or both. */
18830
+ cursors?: CommonCursors;
18831
+ /**
18832
+ * Whether there are more pages to retrieve following the current page.
18833
+ *
18834
+ * + `true`: Another page of results can be retrieved.
18835
+ * + `false`: This is the last page.
18836
+ */
18837
+ hasNext?: boolean | null;
18838
+ }
18839
+ interface CommonCursors {
18840
+ /** Cursor string pointing to the next page in the list of results. */
18841
+ next?: string | null;
18842
+ /** Cursor pointing to the previous page in the list of results. */
18843
+ prev?: string | null;
18844
+ }
18952
18845
  interface CommonAggregationData {
18953
18846
  /** key = aggregation name (as derived from search request) */
18954
18847
  results?: AggregationDataAggregationResults[];
@@ -19966,13 +19859,6 @@ interface V3GetProductResponseNonNullableFields {
19966
19859
  interface V3GetProductBySlugResponseNonNullableFields {
19967
19860
  product?: V3ProductNonNullableFields;
19968
19861
  }
19969
- interface V3ProductVariantsNonNullableFields {
19970
- productId: string;
19971
- variants: VariantNonNullableFields[];
19972
- }
19973
- interface V3RetrieveVariantsResponseNonNullableFields {
19974
- productVariants: V3ProductVariantsNonNullableFields[];
19975
- }
19976
19862
  interface ValueResultsValueAggregationResultNonNullableFields {
19977
19863
  value: string;
19978
19864
  count: number;
@@ -20099,7 +19985,6 @@ declare function getProduct(): __PublicMethodMetaInfo$5<'GET', {
20099
19985
  declare function getProductBySlug(): __PublicMethodMetaInfo$5<'GET', {
20100
19986
  slug: string;
20101
19987
  }, V3GetProductBySlugRequest, V3GetProductBySlugRequest$1, V3GetProductBySlugResponse & V3GetProductBySlugResponseNonNullableFields, V3GetProductBySlugResponse$1 & V3GetProductBySlugResponseNonNullableFields$1>;
20102
- declare function retrieveVariants(): __PublicMethodMetaInfo$5<'POST', {}, V3RetrieveVariantsRequest, V3RetrieveVariantsRequest$1, V3RetrieveVariantsResponse & V3RetrieveVariantsResponseNonNullableFields, V3RetrieveVariantsResponse$1 & V3RetrieveVariantsResponseNonNullableFields$1>;
20103
19988
  declare function searchProducts(): __PublicMethodMetaInfo$5<'POST', {}, V3SearchProductsRequest, V3SearchProductsRequest$1, V3SearchProductsResponse & V3SearchProductsResponseNonNullableFields, V3SearchProductsResponse$1 & V3SearchProductsResponseNonNullableFields$1>;
20104
19989
  declare function queryProducts(): __PublicMethodMetaInfo$5<'POST', {}, V3QueryProductsRequest, V3QueryProductsRequest$1, V3QueryProductsResponse & V3QueryProductsResponseNonNullableFields, V3QueryProductsResponse$1 & V3QueryProductsResponseNonNullableFields$1>;
20105
19990
  declare function countProducts(): __PublicMethodMetaInfo$5<'POST', {}, V3CountProductsRequest, V3CountProductsRequest$1, V3CountProductsResponse & V3CountProductsResponseNonNullableFields, V3CountProductsResponse$1 & V3CountProductsResponseNonNullableFields$1>;
@@ -20134,13 +20019,12 @@ declare const meta$5_deleteProduct: typeof deleteProduct;
20134
20019
  declare const meta$5_getProduct: typeof getProduct;
20135
20020
  declare const meta$5_getProductBySlug: typeof getProductBySlug;
20136
20021
  declare const meta$5_queryProducts: typeof queryProducts;
20137
- declare const meta$5_retrieveVariants: typeof retrieveVariants;
20138
20022
  declare const meta$5_searchProducts: typeof searchProducts;
20139
20023
  declare const meta$5_updateExtendedFields: typeof updateExtendedFields;
20140
20024
  declare const meta$5_updateProduct: typeof updateProduct;
20141
20025
  declare const meta$5_updateProductWithInventory: typeof updateProductWithInventory;
20142
20026
  declare namespace meta$5 {
20143
- export { type __PublicMethodMetaInfo$5 as __PublicMethodMetaInfo, meta$5_bulkAddInfoSectionsToProducts as bulkAddInfoSectionsToProducts, meta$5_bulkAddInfoSectionsToProductsByFilter as bulkAddInfoSectionsToProductsByFilter, meta$5_bulkAddProductsToCategoriesByFilter as bulkAddProductsToCategoriesByFilter, meta$5_bulkAdjustProductVariantsByFilter as bulkAdjustProductVariantsByFilter, meta$5_bulkCreateProducts as bulkCreateProducts, meta$5_bulkCreateProductsWithInventory as bulkCreateProductsWithInventory, meta$5_bulkDeleteProducts as bulkDeleteProducts, meta$5_bulkDeleteProductsByFilter as bulkDeleteProductsByFilter, meta$5_bulkRemoveInfoSectionsFromProducts as bulkRemoveInfoSectionsFromProducts, meta$5_bulkRemoveInfoSectionsFromProductsByFilter as bulkRemoveInfoSectionsFromProductsByFilter, meta$5_bulkRemoveProductsFromCategoriesByFilter as bulkRemoveProductsFromCategoriesByFilter, meta$5_bulkUpdateProductVariantsByFilter as bulkUpdateProductVariantsByFilter, meta$5_bulkUpdateProducts as bulkUpdateProducts, meta$5_bulkUpdateProductsByFilter as bulkUpdateProductsByFilter, meta$5_bulkUpdateProductsWithInventory as bulkUpdateProductsWithInventory, meta$5_countProducts as countProducts, meta$5_createProduct as createProduct, meta$5_createProductWithInventory as createProductWithInventory, meta$5_deleteProduct as deleteProduct, meta$5_getProduct as getProduct, meta$5_getProductBySlug as getProductBySlug, meta$5_queryProducts as queryProducts, meta$5_retrieveVariants as retrieveVariants, meta$5_searchProducts as searchProducts, meta$5_updateExtendedFields as updateExtendedFields, meta$5_updateProduct as updateProduct, meta$5_updateProductWithInventory as updateProductWithInventory };
20027
+ export { type __PublicMethodMetaInfo$5 as __PublicMethodMetaInfo, meta$5_bulkAddInfoSectionsToProducts as bulkAddInfoSectionsToProducts, meta$5_bulkAddInfoSectionsToProductsByFilter as bulkAddInfoSectionsToProductsByFilter, meta$5_bulkAddProductsToCategoriesByFilter as bulkAddProductsToCategoriesByFilter, meta$5_bulkAdjustProductVariantsByFilter as bulkAdjustProductVariantsByFilter, meta$5_bulkCreateProducts as bulkCreateProducts, meta$5_bulkCreateProductsWithInventory as bulkCreateProductsWithInventory, meta$5_bulkDeleteProducts as bulkDeleteProducts, meta$5_bulkDeleteProductsByFilter as bulkDeleteProductsByFilter, meta$5_bulkRemoveInfoSectionsFromProducts as bulkRemoveInfoSectionsFromProducts, meta$5_bulkRemoveInfoSectionsFromProductsByFilter as bulkRemoveInfoSectionsFromProductsByFilter, meta$5_bulkRemoveProductsFromCategoriesByFilter as bulkRemoveProductsFromCategoriesByFilter, meta$5_bulkUpdateProductVariantsByFilter as bulkUpdateProductVariantsByFilter, meta$5_bulkUpdateProducts as bulkUpdateProducts, meta$5_bulkUpdateProductsByFilter as bulkUpdateProductsByFilter, meta$5_bulkUpdateProductsWithInventory as bulkUpdateProductsWithInventory, meta$5_countProducts as countProducts, meta$5_createProduct as createProduct, meta$5_createProductWithInventory as createProductWithInventory, meta$5_deleteProduct as deleteProduct, meta$5_getProduct as getProduct, meta$5_getProductBySlug as getProductBySlug, meta$5_queryProducts as queryProducts, meta$5_searchProducts as searchProducts, meta$5_updateExtendedFields as updateExtendedFields, meta$5_updateProduct as updateProduct, meta$5_updateProductWithInventory as updateProductWithInventory };
20144
20028
  }
20145
20029
 
20146
20030
  declare enum Version$1 {