@wix/stores 1.0.134 → 1.0.135
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/context.d.ts +5 -5
- package/build/cjs/context.js +5 -5
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +5 -6
- package/build/cjs/index.js +6 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -6
- package/build/cjs/meta.js +6 -7
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +5 -5
- package/build/es/context.js +5 -5
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +5 -6
- package/build/es/index.js +5 -6
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +5 -6
- package/build/es/meta.js +5 -6
- package/build/es/meta.js.map +1 -1
- package/package.json +15 -9
- package/build/cjs/index.typings.d.ts +0 -6
- package/build/cjs/index.typings.js +0 -33
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/platform-v1-wishlist.context.d.ts +0 -3
- package/build/cjs/src/platform-v1-wishlist.context.js +0 -22
- package/build/cjs/src/platform-v1-wishlist.context.js.map +0 -1
- package/build/cjs/src/platform-v1-wishlist.http.d.ts +0 -3
- package/build/cjs/src/platform-v1-wishlist.http.js +0 -91
- package/build/cjs/src/platform-v1-wishlist.http.js.map +0 -1
- package/build/cjs/src/platform-v1-wishlist.meta.d.ts +0 -13
- package/build/cjs/src/platform-v1-wishlist.meta.js +0 -47
- package/build/cjs/src/platform-v1-wishlist.meta.js.map +0 -1
- package/build/cjs/src/platform-v1-wishlist.public.d.ts +0 -15
- package/build/cjs/src/platform-v1-wishlist.public.js +0 -12
- package/build/cjs/src/platform-v1-wishlist.public.js.map +0 -1
- package/build/cjs/src/platform-v1-wishlist.types.d.ts +0 -104
- package/build/cjs/src/platform-v1-wishlist.types.js +0 -3
- package/build/cjs/src/platform-v1-wishlist.types.js.map +0 -1
- package/build/cjs/src/platform-v1-wishlist.universal.d.ts +0 -121
- package/build/cjs/src/platform-v1-wishlist.universal.js +0 -106
- package/build/cjs/src/platform-v1-wishlist.universal.js.map +0 -1
- package/build/cjs/src/stores-catalog-v1-collection.context.d.ts +0 -5
- package/build/cjs/src/stores-catalog-v1-collection.context.js +0 -56
- package/build/cjs/src/stores-catalog-v1-collection.context.js.map +0 -1
- package/build/cjs/src/stores-catalog-v1-collection.http.d.ts +0 -10
- package/build/cjs/src/stores-catalog-v1-collection.http.js +0 -110
- package/build/cjs/src/stores-catalog-v1-collection.http.js.map +0 -1
- package/build/cjs/src/stores-catalog-v1-collection.meta.d.ts +0 -19
- package/build/cjs/src/stores-catalog-v1-collection.meta.js +0 -85
- package/build/cjs/src/stores-catalog-v1-collection.meta.js.map +0 -1
- package/build/cjs/src/stores-catalog-v1-collection.public.d.ts +0 -59
- package/build/cjs/src/stores-catalog-v1-collection.public.js +0 -27
- package/build/cjs/src/stores-catalog-v1-collection.public.js.map +0 -1
- package/build/cjs/src/stores-catalog-v1-collection.types.d.ts +0 -414
- package/build/cjs/src/stores-catalog-v1-collection.types.js +0 -18
- package/build/cjs/src/stores-catalog-v1-collection.types.js.map +0 -1
- package/build/cjs/src/stores-catalog-v1-collection.universal.d.ts +0 -452
- package/build/cjs/src/stores-catalog-v1-collection.universal.js +0 -225
- package/build/cjs/src/stores-catalog-v1-collection.universal.js.map +0 -1
- package/build/cjs/src/stores-catalog-v1-product.context.d.ts +0 -35
- package/build/cjs/src/stores-catalog-v1-product.context.js +0 -566
- package/build/cjs/src/stores-catalog-v1-product.context.js.map +0 -1
- package/build/cjs/src/stores-catalog-v1-product.http.d.ts +0 -89
- package/build/cjs/src/stores-catalog-v1-product.http.js +0 -1716
- package/build/cjs/src/stores-catalog-v1-product.http.js.map +0 -1
- package/build/cjs/src/stores-catalog-v1-product.meta.d.ts +0 -95
- package/build/cjs/src/stores-catalog-v1-product.meta.js +0 -655
- package/build/cjs/src/stores-catalog-v1-product.meta.js.map +0 -1
- package/build/cjs/src/stores-catalog-v1-product.public.d.ts +0 -1216
- package/build/cjs/src/stores-catalog-v1-product.public.js +0 -221
- package/build/cjs/src/stores-catalog-v1-product.public.js.map +0 -1
- package/build/cjs/src/stores-catalog-v1-product.types.d.ts +0 -4235
- package/build/cjs/src/stores-catalog-v1-product.types.js +0 -78
- package/build/cjs/src/stores-catalog-v1-product.types.js.map +0 -1
- package/build/cjs/src/stores-catalog-v1-product.universal.d.ts +0 -5074
- package/build/cjs/src/stores-catalog-v1-product.universal.js +0 -2220
- package/build/cjs/src/stores-catalog-v1-product.universal.js.map +0 -1
- package/build/cjs/src/stores-v1-abandoned-cart.http.d.ts +0 -6
- package/build/cjs/src/stores-v1-abandoned-cart.http.js +0 -103
- package/build/cjs/src/stores-v1-abandoned-cart.http.js.map +0 -1
- package/build/cjs/src/stores-v1-abandoned-cart.meta.d.ts +0 -16
- package/build/cjs/src/stores-v1-abandoned-cart.meta.js +0 -66
- package/build/cjs/src/stores-v1-abandoned-cart.meta.js.map +0 -1
- package/build/cjs/src/stores-v1-abandoned-cart.public.d.ts +0 -19
- package/build/cjs/src/stores-v1-abandoned-cart.public.js +0 -22
- package/build/cjs/src/stores-v1-abandoned-cart.public.js.map +0 -1
- package/build/cjs/src/stores-v1-abandoned-cart.types.d.ts +0 -216
- package/build/cjs/src/stores-v1-abandoned-cart.types.js +0 -30
- package/build/cjs/src/stores-v1-abandoned-cart.types.js.map +0 -1
- package/build/cjs/src/stores-v1-abandoned-cart.universal.d.ts +0 -246
- package/build/cjs/src/stores-v1-abandoned-cart.universal.js +0 -189
- package/build/cjs/src/stores-v1-abandoned-cart.universal.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option.context.d.ts +0 -14
- package/build/cjs/src/stores-v1-subscription-option.context.js +0 -209
- package/build/cjs/src/stores-v1-subscription-option.context.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option.http.d.ts +0 -128
- package/build/cjs/src/stores-v1-subscription-option.http.js +0 -466
- package/build/cjs/src/stores-v1-subscription-option.http.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option.meta.d.ts +0 -40
- package/build/cjs/src/stores-v1-subscription-option.meta.js +0 -258
- package/build/cjs/src/stores-v1-subscription-option.meta.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option.public.d.ts +0 -46
- package/build/cjs/src/stores-v1-subscription-option.public.js +0 -81
- package/build/cjs/src/stores-v1-subscription-option.public.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option.types.d.ts +0 -351
- package/build/cjs/src/stores-v1-subscription-option.types.js +0 -20
- package/build/cjs/src/stores-v1-subscription-option.types.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option.universal.d.ts +0 -646
- package/build/cjs/src/stores-v1-subscription-option.universal.js +0 -893
- package/build/cjs/src/stores-v1-subscription-option.universal.js.map +0 -1
- package/build/cjs/src/stores-v2-inventory.context.d.ts +0 -7
- package/build/cjs/src/stores-v2-inventory.context.js +0 -90
- package/build/cjs/src/stores-v2-inventory.context.js.map +0 -1
- package/build/cjs/src/stores-v2-inventory.http.d.ts +0 -31
- package/build/cjs/src/stores-v2-inventory.http.js +0 -289
- package/build/cjs/src/stores-v2-inventory.http.js.map +0 -1
- package/build/cjs/src/stores-v2-inventory.meta.d.ts +0 -21
- package/build/cjs/src/stores-v2-inventory.meta.js +0 -125
- package/build/cjs/src/stores-v2-inventory.meta.js.map +0 -1
- package/build/cjs/src/stores-v2-inventory.public.d.ts +0 -13
- package/build/cjs/src/stores-v2-inventory.public.js +0 -41
- package/build/cjs/src/stores-v2-inventory.public.js.map +0 -1
- package/build/cjs/src/stores-v2-inventory.types.d.ts +0 -283
- package/build/cjs/src/stores-v2-inventory.types.js +0 -11
- package/build/cjs/src/stores-v2-inventory.types.js.map +0 -1
- package/build/cjs/src/stores-v2-inventory.universal.d.ts +0 -425
- package/build/cjs/src/stores-v2-inventory.universal.js +0 -382
- package/build/cjs/src/stores-v2-inventory.universal.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -6
- package/build/es/index.typings.js +0 -7
- package/build/es/index.typings.js.map +0 -1
- package/build/es/src/platform-v1-wishlist.context.d.ts +0 -3
- package/build/es/src/platform-v1-wishlist.context.js +0 -18
- package/build/es/src/platform-v1-wishlist.context.js.map +0 -1
- package/build/es/src/platform-v1-wishlist.http.d.ts +0 -3
- package/build/es/src/platform-v1-wishlist.http.js +0 -87
- package/build/es/src/platform-v1-wishlist.http.js.map +0 -1
- package/build/es/src/platform-v1-wishlist.meta.d.ts +0 -13
- package/build/es/src/platform-v1-wishlist.meta.js +0 -20
- package/build/es/src/platform-v1-wishlist.meta.js.map +0 -1
- package/build/es/src/platform-v1-wishlist.public.d.ts +0 -15
- package/build/es/src/platform-v1-wishlist.public.js +0 -8
- package/build/es/src/platform-v1-wishlist.public.js.map +0 -1
- package/build/es/src/platform-v1-wishlist.types.d.ts +0 -104
- package/build/es/src/platform-v1-wishlist.types.js +0 -2
- package/build/es/src/platform-v1-wishlist.types.js.map +0 -1
- package/build/es/src/platform-v1-wishlist.universal.d.ts +0 -121
- package/build/es/src/platform-v1-wishlist.universal.js +0 -79
- package/build/es/src/platform-v1-wishlist.universal.js.map +0 -1
- package/build/es/src/stores-catalog-v1-collection.context.d.ts +0 -5
- package/build/es/src/stores-catalog-v1-collection.context.js +0 -50
- package/build/es/src/stores-catalog-v1-collection.context.js.map +0 -1
- package/build/es/src/stores-catalog-v1-collection.http.d.ts +0 -10
- package/build/es/src/stores-catalog-v1-collection.http.js +0 -104
- package/build/es/src/stores-catalog-v1-collection.http.js.map +0 -1
- package/build/es/src/stores-catalog-v1-collection.meta.d.ts +0 -19
- package/build/es/src/stores-catalog-v1-collection.meta.js +0 -56
- package/build/es/src/stores-catalog-v1-collection.meta.js.map +0 -1
- package/build/es/src/stores-catalog-v1-collection.public.d.ts +0 -59
- package/build/es/src/stores-catalog-v1-collection.public.js +0 -19
- package/build/es/src/stores-catalog-v1-collection.public.js.map +0 -1
- package/build/es/src/stores-catalog-v1-collection.types.d.ts +0 -414
- package/build/es/src/stores-catalog-v1-collection.types.js +0 -15
- package/build/es/src/stores-catalog-v1-collection.types.js.map +0 -1
- package/build/es/src/stores-catalog-v1-collection.universal.d.ts +0 -452
- package/build/es/src/stores-catalog-v1-collection.universal.js +0 -196
- package/build/es/src/stores-catalog-v1-collection.universal.js.map +0 -1
- package/build/es/src/stores-catalog-v1-product.context.d.ts +0 -35
- package/build/es/src/stores-catalog-v1-product.context.js +0 -530
- package/build/es/src/stores-catalog-v1-product.context.js.map +0 -1
- package/build/es/src/stores-catalog-v1-product.http.d.ts +0 -89
- package/build/es/src/stores-catalog-v1-product.http.js +0 -1680
- package/build/es/src/stores-catalog-v1-product.http.js.map +0 -1
- package/build/es/src/stores-catalog-v1-product.meta.d.ts +0 -95
- package/build/es/src/stores-catalog-v1-product.meta.js +0 -596
- package/build/es/src/stores-catalog-v1-product.meta.js.map +0 -1
- package/build/es/src/stores-catalog-v1-product.public.d.ts +0 -1216
- package/build/es/src/stores-catalog-v1-product.public.js +0 -170
- package/build/es/src/stores-catalog-v1-product.public.js.map +0 -1
- package/build/es/src/stores-catalog-v1-product.types.d.ts +0 -4235
- package/build/es/src/stores-catalog-v1-product.types.js +0 -75
- package/build/es/src/stores-catalog-v1-product.types.js.map +0 -1
- package/build/es/src/stores-catalog-v1-product.universal.d.ts +0 -5074
- package/build/es/src/stores-catalog-v1-product.universal.js +0 -2161
- package/build/es/src/stores-catalog-v1-product.universal.js.map +0 -1
- package/build/es/src/stores-v1-abandoned-cart.http.d.ts +0 -6
- package/build/es/src/stores-v1-abandoned-cart.http.js +0 -98
- package/build/es/src/stores-v1-abandoned-cart.http.js.map +0 -1
- package/build/es/src/stores-v1-abandoned-cart.meta.d.ts +0 -16
- package/build/es/src/stores-v1-abandoned-cart.meta.js +0 -38
- package/build/es/src/stores-v1-abandoned-cart.meta.js.map +0 -1
- package/build/es/src/stores-v1-abandoned-cart.public.d.ts +0 -19
- package/build/es/src/stores-v1-abandoned-cart.public.js +0 -14
- package/build/es/src/stores-v1-abandoned-cart.public.js.map +0 -1
- package/build/es/src/stores-v1-abandoned-cart.types.d.ts +0 -216
- package/build/es/src/stores-v1-abandoned-cart.types.js +0 -27
- package/build/es/src/stores-v1-abandoned-cart.types.js.map +0 -1
- package/build/es/src/stores-v1-abandoned-cart.universal.d.ts +0 -246
- package/build/es/src/stores-v1-abandoned-cart.universal.js +0 -161
- package/build/es/src/stores-v1-abandoned-cart.universal.js.map +0 -1
- package/build/es/src/stores-v1-subscription-option.context.d.ts +0 -14
- package/build/es/src/stores-v1-subscription-option.context.js +0 -194
- package/build/es/src/stores-v1-subscription-option.context.js.map +0 -1
- package/build/es/src/stores-v1-subscription-option.http.d.ts +0 -128
- package/build/es/src/stores-v1-subscription-option.http.js +0 -451
- package/build/es/src/stores-v1-subscription-option.http.js.map +0 -1
- package/build/es/src/stores-v1-subscription-option.meta.d.ts +0 -40
- package/build/es/src/stores-v1-subscription-option.meta.js +0 -220
- package/build/es/src/stores-v1-subscription-option.meta.js.map +0 -1
- package/build/es/src/stores-v1-subscription-option.public.d.ts +0 -46
- package/build/es/src/stores-v1-subscription-option.public.js +0 -64
- package/build/es/src/stores-v1-subscription-option.public.js.map +0 -1
- package/build/es/src/stores-v1-subscription-option.types.d.ts +0 -351
- package/build/es/src/stores-v1-subscription-option.types.js +0 -17
- package/build/es/src/stores-v1-subscription-option.types.js.map +0 -1
- package/build/es/src/stores-v1-subscription-option.universal.d.ts +0 -646
- package/build/es/src/stores-v1-subscription-option.universal.js +0 -855
- package/build/es/src/stores-v1-subscription-option.universal.js.map +0 -1
- package/build/es/src/stores-v2-inventory.context.d.ts +0 -7
- package/build/es/src/stores-v2-inventory.context.js +0 -82
- package/build/es/src/stores-v2-inventory.context.js.map +0 -1
- package/build/es/src/stores-v2-inventory.http.d.ts +0 -31
- package/build/es/src/stores-v2-inventory.http.js +0 -281
- package/build/es/src/stores-v2-inventory.http.js.map +0 -1
- package/build/es/src/stores-v2-inventory.meta.d.ts +0 -21
- package/build/es/src/stores-v2-inventory.meta.js +0 -94
- package/build/es/src/stores-v2-inventory.meta.js.map +0 -1
- package/build/es/src/stores-v2-inventory.public.d.ts +0 -13
- package/build/es/src/stores-v2-inventory.public.js +0 -30
- package/build/es/src/stores-v2-inventory.public.js.map +0 -1
- package/build/es/src/stores-v2-inventory.types.d.ts +0 -283
- package/build/es/src/stores-v2-inventory.types.js +0 -8
- package/build/es/src/stores-v2-inventory.types.js.map +0 -1
- package/build/es/src/stores-v2-inventory.universal.d.ts +0 -425
- package/build/es/src/stores-v2-inventory.universal.js +0 -351
- package/build/es/src/stores-v2-inventory.universal.js.map +0 -1
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { queryCollections as universalQueryCollections, getCollection as universalGetCollection, getCollectionBySlug as universalGetCollectionBySlug, } from './stores-catalog-v1-collection.universal';
|
|
2
|
-
export const __metadata = { PACKAGE_NAME: '@wix/stores' };
|
|
3
|
-
export function queryCollections(httpClient) {
|
|
4
|
-
return () => universalQueryCollections(
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
{ httpClient });
|
|
7
|
-
}
|
|
8
|
-
export function getCollection(httpClient) {
|
|
9
|
-
return (_id) => universalGetCollection(_id,
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
{ httpClient });
|
|
12
|
-
}
|
|
13
|
-
export function getCollectionBySlug(httpClient) {
|
|
14
|
-
return (slug) => universalGetCollectionBySlug(slug,
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
{ httpClient });
|
|
17
|
-
}
|
|
18
|
-
export { MediaItemType, SortOrder, } from './stores-catalog-v1-collection.universal';
|
|
19
|
-
//# sourceMappingURL=stores-catalog-v1-collection.public.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stores-catalog-v1-collection.public.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,IAAI,yBAAyB,EAC7C,aAAa,IAAI,sBAAsB,EACvC,mBAAmB,IAAI,4BAA4B,GACpD,MAAM,0CAA0C,CAAC;AAElD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC;AAE1D,MAAM,UAAU,gBAAgB,CAAC,UAAsB;IACrD,OAAO,GAAG,EAAE,CACV,yBAAyB;IACvB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,sBAAsB,CACpB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,UAAsB;IACxD,OAAO,CAAC,IAAY,EAAE,EAAE,CACtB,4BAA4B,CAC1B,IAAI;IACJ,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EACL,aAAa,EACb,SAAS,GACV,MAAM,0CAA0C,CAAC"}
|
|
@@ -1,414 +0,0 @@
|
|
|
1
|
-
export interface Collection {
|
|
2
|
-
/**
|
|
3
|
-
* Collection ID (generated automatically by the catalog).
|
|
4
|
-
* @readonly
|
|
5
|
-
*/
|
|
6
|
-
id?: string | null;
|
|
7
|
-
/** Collection name. */
|
|
8
|
-
name?: string | null;
|
|
9
|
-
/**
|
|
10
|
-
* Media items (images, videos etc) associated with this collection. Read only.
|
|
11
|
-
* @readonly
|
|
12
|
-
*/
|
|
13
|
-
media?: Media;
|
|
14
|
-
/**
|
|
15
|
-
* Number of products in the collection. Read only.
|
|
16
|
-
* @readonly
|
|
17
|
-
*/
|
|
18
|
-
numberOfProducts?: number;
|
|
19
|
-
/** Collection description. */
|
|
20
|
-
description?: string | null;
|
|
21
|
-
/** Collection slug. */
|
|
22
|
-
slug?: string | null;
|
|
23
|
-
/** Collection visibility. Only impacts dynamic pages, no impact on static pages. Default: `true`. */
|
|
24
|
-
visible?: boolean | null;
|
|
25
|
-
}
|
|
26
|
-
export interface Media {
|
|
27
|
-
/** Primary media (image, video etc) associated with this product. */
|
|
28
|
-
mainMedia?: MediaItem;
|
|
29
|
-
/** Media (images, videos etc) associated with this product. */
|
|
30
|
-
items?: MediaItem[];
|
|
31
|
-
}
|
|
32
|
-
export interface MediaItem extends MediaItemItemOneOf {
|
|
33
|
-
/** Image data (URL, size). */
|
|
34
|
-
image?: MediaItemUrlAndSize;
|
|
35
|
-
/** Video data (URL, size). */
|
|
36
|
-
video?: MediaItemVideo;
|
|
37
|
-
/** Media item thumbnail details. */
|
|
38
|
-
thumbnail?: MediaItemUrlAndSize;
|
|
39
|
-
/** Media item type (image, video, etc.). */
|
|
40
|
-
mediaType?: MediaItemType;
|
|
41
|
-
/** Media item title. */
|
|
42
|
-
title?: string;
|
|
43
|
-
/** Media ID (for example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`). */
|
|
44
|
-
id?: string;
|
|
45
|
-
}
|
|
46
|
-
/** @oneof */
|
|
47
|
-
export interface MediaItemItemOneOf {
|
|
48
|
-
/** Image data (URL, size). */
|
|
49
|
-
image?: MediaItemUrlAndSize;
|
|
50
|
-
/** Video data (URL, size). */
|
|
51
|
-
video?: MediaItemVideo;
|
|
52
|
-
}
|
|
53
|
-
export interface MediaItemUrlAndSize {
|
|
54
|
-
/** Media item URL. */
|
|
55
|
-
url?: string;
|
|
56
|
-
/** Media item width. */
|
|
57
|
-
width?: number;
|
|
58
|
-
/** Media item height. */
|
|
59
|
-
height?: number;
|
|
60
|
-
/** Media format (mp4, png, etc.). */
|
|
61
|
-
format?: string | null;
|
|
62
|
-
/** Alt text. This text will be shown in case the image is not available. */
|
|
63
|
-
altText?: string | null;
|
|
64
|
-
}
|
|
65
|
-
export declare enum MediaItemType {
|
|
66
|
-
unspecified_media_item_type = "unspecified_media_item_type",
|
|
67
|
-
image = "image",
|
|
68
|
-
video = "video",
|
|
69
|
-
audio = "audio",
|
|
70
|
-
document = "document",
|
|
71
|
-
zip = "zip"
|
|
72
|
-
}
|
|
73
|
-
export interface MediaItemVideo {
|
|
74
|
-
/** Data (URL, size) about each resolution for which this video is available. */
|
|
75
|
-
files?: MediaItemUrlAndSize[];
|
|
76
|
-
/** ID of an image taken from the video. Used primarily for Wix Search indexing. For example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`. */
|
|
77
|
-
stillFrameMediaId?: string;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.
|
|
81
|
-
* The search engines use this information for ranking purposes, or to display snippets in the search results.
|
|
82
|
-
* This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.
|
|
83
|
-
*/
|
|
84
|
-
export interface SeoSchema {
|
|
85
|
-
/** SEO tag information. */
|
|
86
|
-
tags?: Tag[];
|
|
87
|
-
/** SEO general settings. */
|
|
88
|
-
settings?: Settings;
|
|
89
|
-
}
|
|
90
|
-
export interface Keyword {
|
|
91
|
-
/** Keyword value. */
|
|
92
|
-
term?: string;
|
|
93
|
-
/** Whether the keyword is the main focus keyword. */
|
|
94
|
-
isMain?: boolean;
|
|
95
|
-
}
|
|
96
|
-
export interface Tag {
|
|
97
|
-
/**
|
|
98
|
-
* SEO tag type.
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* Supported values: `title`, `meta`, `script`, `link`.
|
|
102
|
-
*/
|
|
103
|
-
type?: string;
|
|
104
|
-
/**
|
|
105
|
-
* A `{'key':'value'}` pair object where each SEO tag property (`'name'`, `'content'`, `'rel'`, `'href'`) contains a value.
|
|
106
|
-
* For example: `{'name': 'description', 'content': 'the description itself'}`.
|
|
107
|
-
*/
|
|
108
|
-
props?: Record<string, any> | null;
|
|
109
|
-
/** SEO tag meta data. For example, `{height: 300, width: 240}`. */
|
|
110
|
-
meta?: Record<string, any> | null;
|
|
111
|
-
/** SEO tag inner content. For example, `<title> inner content </title>`. */
|
|
112
|
-
children?: string;
|
|
113
|
-
/** Whether the tag is a custom tag. */
|
|
114
|
-
custom?: boolean;
|
|
115
|
-
/** Whether the tag is disabled. */
|
|
116
|
-
disabled?: boolean;
|
|
117
|
-
}
|
|
118
|
-
export interface Settings {
|
|
119
|
-
/**
|
|
120
|
-
* Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* Default: `false` (Auto Redirect is enabled.)
|
|
124
|
-
*/
|
|
125
|
-
preventAutoRedirect?: boolean;
|
|
126
|
-
/** User-selected keyword terms for a specific page. */
|
|
127
|
-
keywords?: Keyword[];
|
|
128
|
-
}
|
|
129
|
-
export interface QueryCollectionsRequest {
|
|
130
|
-
query?: PlatformQuery;
|
|
131
|
-
}
|
|
132
|
-
export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
|
|
133
|
-
/** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
|
|
134
|
-
paging?: PlatformPaging;
|
|
135
|
-
/** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
|
|
136
|
-
cursorPaging?: CursorPaging;
|
|
137
|
-
/** Filter object. */
|
|
138
|
-
filter?: Record<string, any> | null;
|
|
139
|
-
/** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
|
|
140
|
-
sort?: Sorting[];
|
|
141
|
-
}
|
|
142
|
-
/** @oneof */
|
|
143
|
-
export interface PlatformQueryPagingMethodOneOf {
|
|
144
|
-
/** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
|
|
145
|
-
paging?: PlatformPaging;
|
|
146
|
-
/** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
|
|
147
|
-
cursorPaging?: CursorPaging;
|
|
148
|
-
}
|
|
149
|
-
export interface Sorting {
|
|
150
|
-
/** Name of the field to sort by. */
|
|
151
|
-
fieldName?: string;
|
|
152
|
-
/** Sort order. */
|
|
153
|
-
order?: SortOrder;
|
|
154
|
-
}
|
|
155
|
-
export declare enum SortOrder {
|
|
156
|
-
ASC = "ASC",
|
|
157
|
-
DESC = "DESC"
|
|
158
|
-
}
|
|
159
|
-
export interface PlatformPaging {
|
|
160
|
-
/** Number of items to load. */
|
|
161
|
-
limit?: number | null;
|
|
162
|
-
/** Number of items to skip in the current sort order. */
|
|
163
|
-
offset?: number | null;
|
|
164
|
-
}
|
|
165
|
-
export interface CursorPaging {
|
|
166
|
-
/** Maximum number of items to return in the results. */
|
|
167
|
-
limit?: number | null;
|
|
168
|
-
/**
|
|
169
|
-
* Pointer to the next or previous page in the list of results.
|
|
170
|
-
*
|
|
171
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
172
|
-
* Not relevant for the first request.
|
|
173
|
-
*/
|
|
174
|
-
cursor?: string | null;
|
|
175
|
-
}
|
|
176
|
-
export interface QueryCollectionsResponse {
|
|
177
|
-
collections?: Collection[];
|
|
178
|
-
metadata?: PlatformPagingMetadata;
|
|
179
|
-
}
|
|
180
|
-
export interface PlatformPagingMetadata {
|
|
181
|
-
/** The number of items returned in this response. */
|
|
182
|
-
count?: number | null;
|
|
183
|
-
/** The offset which was requested. Returned if offset paging was used. */
|
|
184
|
-
offset?: number | null;
|
|
185
|
-
/** The total number of items that match the query. Returned if offset paging was used. */
|
|
186
|
-
total?: number | null;
|
|
187
|
-
/** Cursors to navigate through result pages. Returned if cursor paging was used. */
|
|
188
|
-
cursors?: Cursors;
|
|
189
|
-
}
|
|
190
|
-
export interface Cursors {
|
|
191
|
-
/** Cursor string pointing to the next page in the list of results. */
|
|
192
|
-
next?: string | null;
|
|
193
|
-
/** Cursor pointing to the previous page in the list of results. */
|
|
194
|
-
prev?: string | null;
|
|
195
|
-
}
|
|
196
|
-
export interface GetCollectionRequest {
|
|
197
|
-
/** Requested collection ID. */
|
|
198
|
-
id: string;
|
|
199
|
-
}
|
|
200
|
-
export interface GetCollectionResponse {
|
|
201
|
-
collection?: Collection;
|
|
202
|
-
}
|
|
203
|
-
export interface GetCollectionBySlugRequest {
|
|
204
|
-
/** Slug of the collection to retrieve. */
|
|
205
|
-
slug: string;
|
|
206
|
-
}
|
|
207
|
-
export interface GetCollectionBySlugResponse {
|
|
208
|
-
/** The requested collection. */
|
|
209
|
-
collection?: Collection;
|
|
210
|
-
}
|
|
211
|
-
export interface QueryCollectionsResponseNonNullableFields {
|
|
212
|
-
collections: {
|
|
213
|
-
media?: {
|
|
214
|
-
mainMedia?: {
|
|
215
|
-
image?: {
|
|
216
|
-
url: string;
|
|
217
|
-
width: number;
|
|
218
|
-
height: number;
|
|
219
|
-
};
|
|
220
|
-
video?: {
|
|
221
|
-
files: {
|
|
222
|
-
url: string;
|
|
223
|
-
width: number;
|
|
224
|
-
height: number;
|
|
225
|
-
}[];
|
|
226
|
-
stillFrameMediaId: string;
|
|
227
|
-
};
|
|
228
|
-
thumbnail?: {
|
|
229
|
-
url: string;
|
|
230
|
-
width: number;
|
|
231
|
-
height: number;
|
|
232
|
-
};
|
|
233
|
-
mediaType: MediaItemType;
|
|
234
|
-
title: string;
|
|
235
|
-
id: string;
|
|
236
|
-
};
|
|
237
|
-
items: {
|
|
238
|
-
image?: {
|
|
239
|
-
url: string;
|
|
240
|
-
width: number;
|
|
241
|
-
height: number;
|
|
242
|
-
};
|
|
243
|
-
video?: {
|
|
244
|
-
files: {
|
|
245
|
-
url: string;
|
|
246
|
-
width: number;
|
|
247
|
-
height: number;
|
|
248
|
-
}[];
|
|
249
|
-
stillFrameMediaId: string;
|
|
250
|
-
};
|
|
251
|
-
thumbnail?: {
|
|
252
|
-
url: string;
|
|
253
|
-
width: number;
|
|
254
|
-
height: number;
|
|
255
|
-
};
|
|
256
|
-
mediaType: MediaItemType;
|
|
257
|
-
title: string;
|
|
258
|
-
id: string;
|
|
259
|
-
}[];
|
|
260
|
-
};
|
|
261
|
-
numberOfProducts: number;
|
|
262
|
-
seoSchema?: {
|
|
263
|
-
tags: {
|
|
264
|
-
type: string;
|
|
265
|
-
children: string;
|
|
266
|
-
custom: boolean;
|
|
267
|
-
disabled: boolean;
|
|
268
|
-
}[];
|
|
269
|
-
settings?: {
|
|
270
|
-
preventAutoRedirect: boolean;
|
|
271
|
-
keywords: {
|
|
272
|
-
term: string;
|
|
273
|
-
isMain: boolean;
|
|
274
|
-
}[];
|
|
275
|
-
};
|
|
276
|
-
};
|
|
277
|
-
}[];
|
|
278
|
-
}
|
|
279
|
-
export interface GetCollectionResponseNonNullableFields {
|
|
280
|
-
collection?: {
|
|
281
|
-
media?: {
|
|
282
|
-
mainMedia?: {
|
|
283
|
-
image?: {
|
|
284
|
-
url: string;
|
|
285
|
-
width: number;
|
|
286
|
-
height: number;
|
|
287
|
-
};
|
|
288
|
-
video?: {
|
|
289
|
-
files: {
|
|
290
|
-
url: string;
|
|
291
|
-
width: number;
|
|
292
|
-
height: number;
|
|
293
|
-
}[];
|
|
294
|
-
stillFrameMediaId: string;
|
|
295
|
-
};
|
|
296
|
-
thumbnail?: {
|
|
297
|
-
url: string;
|
|
298
|
-
width: number;
|
|
299
|
-
height: number;
|
|
300
|
-
};
|
|
301
|
-
mediaType: MediaItemType;
|
|
302
|
-
title: string;
|
|
303
|
-
id: string;
|
|
304
|
-
};
|
|
305
|
-
items: {
|
|
306
|
-
image?: {
|
|
307
|
-
url: string;
|
|
308
|
-
width: number;
|
|
309
|
-
height: number;
|
|
310
|
-
};
|
|
311
|
-
video?: {
|
|
312
|
-
files: {
|
|
313
|
-
url: string;
|
|
314
|
-
width: number;
|
|
315
|
-
height: number;
|
|
316
|
-
}[];
|
|
317
|
-
stillFrameMediaId: string;
|
|
318
|
-
};
|
|
319
|
-
thumbnail?: {
|
|
320
|
-
url: string;
|
|
321
|
-
width: number;
|
|
322
|
-
height: number;
|
|
323
|
-
};
|
|
324
|
-
mediaType: MediaItemType;
|
|
325
|
-
title: string;
|
|
326
|
-
id: string;
|
|
327
|
-
}[];
|
|
328
|
-
};
|
|
329
|
-
numberOfProducts: number;
|
|
330
|
-
seoSchema?: {
|
|
331
|
-
tags: {
|
|
332
|
-
type: string;
|
|
333
|
-
children: string;
|
|
334
|
-
custom: boolean;
|
|
335
|
-
disabled: boolean;
|
|
336
|
-
}[];
|
|
337
|
-
settings?: {
|
|
338
|
-
preventAutoRedirect: boolean;
|
|
339
|
-
keywords: {
|
|
340
|
-
term: string;
|
|
341
|
-
isMain: boolean;
|
|
342
|
-
}[];
|
|
343
|
-
};
|
|
344
|
-
};
|
|
345
|
-
};
|
|
346
|
-
}
|
|
347
|
-
export interface GetCollectionBySlugResponseNonNullableFields {
|
|
348
|
-
collection?: {
|
|
349
|
-
media?: {
|
|
350
|
-
mainMedia?: {
|
|
351
|
-
image?: {
|
|
352
|
-
url: string;
|
|
353
|
-
width: number;
|
|
354
|
-
height: number;
|
|
355
|
-
};
|
|
356
|
-
video?: {
|
|
357
|
-
files: {
|
|
358
|
-
url: string;
|
|
359
|
-
width: number;
|
|
360
|
-
height: number;
|
|
361
|
-
}[];
|
|
362
|
-
stillFrameMediaId: string;
|
|
363
|
-
};
|
|
364
|
-
thumbnail?: {
|
|
365
|
-
url: string;
|
|
366
|
-
width: number;
|
|
367
|
-
height: number;
|
|
368
|
-
};
|
|
369
|
-
mediaType: MediaItemType;
|
|
370
|
-
title: string;
|
|
371
|
-
id: string;
|
|
372
|
-
};
|
|
373
|
-
items: {
|
|
374
|
-
image?: {
|
|
375
|
-
url: string;
|
|
376
|
-
width: number;
|
|
377
|
-
height: number;
|
|
378
|
-
};
|
|
379
|
-
video?: {
|
|
380
|
-
files: {
|
|
381
|
-
url: string;
|
|
382
|
-
width: number;
|
|
383
|
-
height: number;
|
|
384
|
-
}[];
|
|
385
|
-
stillFrameMediaId: string;
|
|
386
|
-
};
|
|
387
|
-
thumbnail?: {
|
|
388
|
-
url: string;
|
|
389
|
-
width: number;
|
|
390
|
-
height: number;
|
|
391
|
-
};
|
|
392
|
-
mediaType: MediaItemType;
|
|
393
|
-
title: string;
|
|
394
|
-
id: string;
|
|
395
|
-
}[];
|
|
396
|
-
};
|
|
397
|
-
numberOfProducts: number;
|
|
398
|
-
seoSchema?: {
|
|
399
|
-
tags: {
|
|
400
|
-
type: string;
|
|
401
|
-
children: string;
|
|
402
|
-
custom: boolean;
|
|
403
|
-
disabled: boolean;
|
|
404
|
-
}[];
|
|
405
|
-
settings?: {
|
|
406
|
-
preventAutoRedirect: boolean;
|
|
407
|
-
keywords: {
|
|
408
|
-
term: string;
|
|
409
|
-
isMain: boolean;
|
|
410
|
-
}[];
|
|
411
|
-
};
|
|
412
|
-
};
|
|
413
|
-
};
|
|
414
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export var MediaItemType;
|
|
2
|
-
(function (MediaItemType) {
|
|
3
|
-
MediaItemType["unspecified_media_item_type"] = "unspecified_media_item_type";
|
|
4
|
-
MediaItemType["image"] = "image";
|
|
5
|
-
MediaItemType["video"] = "video";
|
|
6
|
-
MediaItemType["audio"] = "audio";
|
|
7
|
-
MediaItemType["document"] = "document";
|
|
8
|
-
MediaItemType["zip"] = "zip";
|
|
9
|
-
})(MediaItemType || (MediaItemType = {}));
|
|
10
|
-
export var SortOrder;
|
|
11
|
-
(function (SortOrder) {
|
|
12
|
-
SortOrder["ASC"] = "ASC";
|
|
13
|
-
SortOrder["DESC"] = "DESC";
|
|
14
|
-
})(SortOrder || (SortOrder = {}));
|
|
15
|
-
//# sourceMappingURL=stores-catalog-v1-collection.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stores-catalog-v1-collection.types.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection.types.ts"],"names":[],"mappings":"AAqEA,MAAM,CAAN,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,KAAb,aAAa,QAOxB;AA6FD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB"}
|