@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,104 +0,0 @@
|
|
|
1
|
-
export interface WishlistData {
|
|
2
|
-
/** GUID unique to this list for this site */
|
|
3
|
-
id?: string | null;
|
|
4
|
-
/** Member id the list belongs to */
|
|
5
|
-
ownerId?: string;
|
|
6
|
-
/** List of items in the list. Not necessarily the full list (can depends on request data) */
|
|
7
|
-
items?: WishlistItem[];
|
|
8
|
-
/** Total count of items in the list */
|
|
9
|
-
totalCount?: number;
|
|
10
|
-
}
|
|
11
|
-
export interface WishlistItem {
|
|
12
|
-
/** Unique identifier for an item of this type and origin */
|
|
13
|
-
id?: string;
|
|
14
|
-
/**
|
|
15
|
-
* The data the item was save to the list
|
|
16
|
-
* @readonly
|
|
17
|
-
*/
|
|
18
|
-
dateAdded?: Date;
|
|
19
|
-
/** The type of the item. For example "product" */
|
|
20
|
-
type?: string;
|
|
21
|
-
/** The origin of the item. Should be the scope the item type is related to. For example "wixstores" */
|
|
22
|
-
origin?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface ItemsAddedToWishlist {
|
|
25
|
-
/** GUID unique to this list for its site */
|
|
26
|
-
id?: string | null;
|
|
27
|
-
/** Member id the list belongs to */
|
|
28
|
-
ownerId?: string;
|
|
29
|
-
/** List of items that were added to wishlist */
|
|
30
|
-
items?: WishlistItem[];
|
|
31
|
-
}
|
|
32
|
-
export interface ItemsRemovedFromWishlist {
|
|
33
|
-
/** GUID unique to this list for its site */
|
|
34
|
-
id?: string | null;
|
|
35
|
-
/** Member id the list belongs to */
|
|
36
|
-
ownerId?: string;
|
|
37
|
-
/** List of items that were removed from wishlist */
|
|
38
|
-
items?: WishlistItem[];
|
|
39
|
-
}
|
|
40
|
-
export interface GetWishlistRequest {
|
|
41
|
-
/** List length limit. Default is 100 */
|
|
42
|
-
limit?: number | null;
|
|
43
|
-
/** List starting index offset. Default is 0 */
|
|
44
|
-
offset?: number | null;
|
|
45
|
-
/** Filter requested list by specific kinds of items */
|
|
46
|
-
kind?: WishlistItemKind[];
|
|
47
|
-
}
|
|
48
|
-
export interface WishlistItemKind {
|
|
49
|
-
/** The type of the item. For example "product" */
|
|
50
|
-
type?: string;
|
|
51
|
-
/** The origin of the item. Should be the scope the item type is related to. For example "wixstores" */
|
|
52
|
-
origin?: string;
|
|
53
|
-
}
|
|
54
|
-
export interface GetWishlistResponse {
|
|
55
|
-
/** Object containing requested list data */
|
|
56
|
-
wishlist?: WishlistData;
|
|
57
|
-
}
|
|
58
|
-
export interface AddToWishlistRequest {
|
|
59
|
-
/** List of items to add to list */
|
|
60
|
-
items?: WishlistItem[];
|
|
61
|
-
}
|
|
62
|
-
export interface AddToWishlistResponse {
|
|
63
|
-
}
|
|
64
|
-
export interface RemoveFromWishlistRequest {
|
|
65
|
-
/** List of items to remove from list */
|
|
66
|
-
items?: WishlistItem[];
|
|
67
|
-
}
|
|
68
|
-
export interface RemoveFromWishlistResponse {
|
|
69
|
-
}
|
|
70
|
-
export interface GetWishlistByIdRequest {
|
|
71
|
-
/** Unique identifier representing requested list */
|
|
72
|
-
id: string;
|
|
73
|
-
/** List length limit. Default is 100 */
|
|
74
|
-
limit?: number | null;
|
|
75
|
-
/** List starting index offset. Default is 0 */
|
|
76
|
-
offset?: number | null;
|
|
77
|
-
/** Filter requested list by specific kinds of items */
|
|
78
|
-
kind?: WishlistItemKind[];
|
|
79
|
-
}
|
|
80
|
-
export interface GetWishlistByIdResponse {
|
|
81
|
-
/** Object containing requested list data */
|
|
82
|
-
wishlist?: WishlistData;
|
|
83
|
-
}
|
|
84
|
-
export interface GetWishlistsRequest {
|
|
85
|
-
/** List length limit. Default is 100 */
|
|
86
|
-
limit?: number | null;
|
|
87
|
-
/** List starting index offset. Default is 0 */
|
|
88
|
-
offset?: number | null;
|
|
89
|
-
}
|
|
90
|
-
export interface GetWishlistsResponse {
|
|
91
|
-
/** List result of requested wishlists */
|
|
92
|
-
wishlists?: WishlistData[];
|
|
93
|
-
}
|
|
94
|
-
export interface GetWishlistByIdResponseNonNullableFields {
|
|
95
|
-
wishlist?: {
|
|
96
|
-
ownerId: string;
|
|
97
|
-
items: {
|
|
98
|
-
id: string;
|
|
99
|
-
type: string;
|
|
100
|
-
origin: string;
|
|
101
|
-
}[];
|
|
102
|
-
totalCount: number;
|
|
103
|
-
};
|
|
104
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"platform-v1-wishlist.types.js","sourceRoot":"","sources":["../../../src/platform-v1-wishlist.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
export interface WishlistData {
|
|
2
|
-
/** GUID unique to this list for this site */
|
|
3
|
-
_id?: string | null;
|
|
4
|
-
/** Member id the list belongs to */
|
|
5
|
-
ownerId?: string;
|
|
6
|
-
/** List of items in the list. Not necessarily the full list (can depends on request data) */
|
|
7
|
-
items?: WishlistItem[];
|
|
8
|
-
/** Total count of items in the list */
|
|
9
|
-
totalCount?: number;
|
|
10
|
-
}
|
|
11
|
-
export interface WishlistItem {
|
|
12
|
-
/** Unique identifier for an item of this type and origin */
|
|
13
|
-
_id?: string;
|
|
14
|
-
/**
|
|
15
|
-
* The data the item was save to the list
|
|
16
|
-
* @readonly
|
|
17
|
-
*/
|
|
18
|
-
dateAdded?: Date;
|
|
19
|
-
/** The type of the item. For example "product" */
|
|
20
|
-
type?: string;
|
|
21
|
-
/** The origin of the item. Should be the scope the item type is related to. For example "wixstores" */
|
|
22
|
-
origin?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface ItemsAddedToWishlist {
|
|
25
|
-
/** GUID unique to this list for its site */
|
|
26
|
-
_id?: string | null;
|
|
27
|
-
/** Member id the list belongs to */
|
|
28
|
-
ownerId?: string;
|
|
29
|
-
/** List of items that were added to wishlist */
|
|
30
|
-
items?: WishlistItem[];
|
|
31
|
-
}
|
|
32
|
-
export interface ItemsRemovedFromWishlist {
|
|
33
|
-
/** GUID unique to this list for its site */
|
|
34
|
-
_id?: string | null;
|
|
35
|
-
/** Member id the list belongs to */
|
|
36
|
-
ownerId?: string;
|
|
37
|
-
/** List of items that were removed from wishlist */
|
|
38
|
-
items?: WishlistItem[];
|
|
39
|
-
}
|
|
40
|
-
export interface GetWishlistRequest {
|
|
41
|
-
/** List length limit. Default is 100 */
|
|
42
|
-
limit?: number | null;
|
|
43
|
-
/** List starting index offset. Default is 0 */
|
|
44
|
-
offset?: number | null;
|
|
45
|
-
/** Filter requested list by specific kinds of items */
|
|
46
|
-
kind?: WishlistItemKind[];
|
|
47
|
-
}
|
|
48
|
-
export interface WishlistItemKind {
|
|
49
|
-
/** The type of the item. For example "product" */
|
|
50
|
-
type?: string;
|
|
51
|
-
/** The origin of the item. Should be the scope the item type is related to. For example "wixstores" */
|
|
52
|
-
origin?: string;
|
|
53
|
-
}
|
|
54
|
-
export interface GetWishlistResponse {
|
|
55
|
-
/** Object containing requested list data */
|
|
56
|
-
wishlist?: WishlistData;
|
|
57
|
-
}
|
|
58
|
-
export interface AddToWishlistRequest {
|
|
59
|
-
/** List of items to add to list */
|
|
60
|
-
items?: WishlistItem[];
|
|
61
|
-
}
|
|
62
|
-
export interface AddToWishlistResponse {
|
|
63
|
-
}
|
|
64
|
-
export interface RemoveFromWishlistRequest {
|
|
65
|
-
/** List of items to remove from list */
|
|
66
|
-
items?: WishlistItem[];
|
|
67
|
-
}
|
|
68
|
-
export interface RemoveFromWishlistResponse {
|
|
69
|
-
}
|
|
70
|
-
export interface GetWishlistByIdRequest {
|
|
71
|
-
/** Unique identifier representing requested list */
|
|
72
|
-
_id: string;
|
|
73
|
-
/** List length limit. Default is 100 */
|
|
74
|
-
limit?: number | null;
|
|
75
|
-
/** List starting index offset. Default is 0 */
|
|
76
|
-
offset?: number | null;
|
|
77
|
-
/** Filter requested list by specific kinds of items */
|
|
78
|
-
kind?: WishlistItemKind[];
|
|
79
|
-
}
|
|
80
|
-
export interface GetWishlistByIdResponse {
|
|
81
|
-
/** Object containing requested list data */
|
|
82
|
-
wishlist?: WishlistData;
|
|
83
|
-
}
|
|
84
|
-
export interface GetWishlistsRequest {
|
|
85
|
-
/** List length limit. Default is 100 */
|
|
86
|
-
limit?: number | null;
|
|
87
|
-
/** List starting index offset. Default is 0 */
|
|
88
|
-
offset?: number | null;
|
|
89
|
-
}
|
|
90
|
-
export interface GetWishlistsResponse {
|
|
91
|
-
/** List result of requested wishlists */
|
|
92
|
-
wishlists?: WishlistData[];
|
|
93
|
-
}
|
|
94
|
-
export interface GetWishlistByIdResponseNonNullableFields {
|
|
95
|
-
wishlist?: {
|
|
96
|
-
ownerId: string;
|
|
97
|
-
items: {
|
|
98
|
-
_id: string;
|
|
99
|
-
type: string;
|
|
100
|
-
origin: string;
|
|
101
|
-
}[];
|
|
102
|
-
totalCount: number;
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Get wishlist by id
|
|
107
|
-
* @param _id - Unique identifier representing requested list
|
|
108
|
-
* @public
|
|
109
|
-
* @documentationMaturity preview
|
|
110
|
-
* @requiredField _id
|
|
111
|
-
* @returns Object containing requested list data
|
|
112
|
-
*/
|
|
113
|
-
export declare function getWishlistById(_id: string, options?: GetWishlistByIdOptions): Promise<WishlistData & NonNullable<GetWishlistByIdResponseNonNullableFields>['wishlist']>;
|
|
114
|
-
export interface GetWishlistByIdOptions {
|
|
115
|
-
/** List length limit. Default is 100 */
|
|
116
|
-
limit?: number | null;
|
|
117
|
-
/** List starting index offset. Default is 0 */
|
|
118
|
-
offset?: number | null;
|
|
119
|
-
/** Filter requested list by specific kinds of items */
|
|
120
|
-
kind?: WishlistItemKind[];
|
|
121
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { serializer } from '@wix/metro-runtime/velo';
|
|
11
|
-
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
12
|
-
import * as ambassadorWixPlatformV1Wishlist from './platform-v1-wishlist.http';
|
|
13
|
-
const _toVeloEntity = '$';
|
|
14
|
-
const _fromVeloEntity = '$';
|
|
15
|
-
const _getWishlistByIdRequest = {};
|
|
16
|
-
const _getWishlistByIdResponse = {};
|
|
17
|
-
/**
|
|
18
|
-
* Get wishlist by id
|
|
19
|
-
* @param _id - Unique identifier representing requested list
|
|
20
|
-
* @public
|
|
21
|
-
* @documentationMaturity preview
|
|
22
|
-
* @requiredField _id
|
|
23
|
-
* @returns Object containing requested list data
|
|
24
|
-
*/
|
|
25
|
-
export function getWishlistById(_id, options) {
|
|
26
|
-
var _a, _b, _c;
|
|
27
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
28
|
-
const requestTransformation = {
|
|
29
|
-
id: '$[0]',
|
|
30
|
-
limit: '$[1].limit',
|
|
31
|
-
offset: '$[1].offset',
|
|
32
|
-
kind: '$[1].kind',
|
|
33
|
-
};
|
|
34
|
-
const responseTransformation = '$.wishlist';
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
37
|
-
const { toAmbassadorRequest } = serializer({
|
|
38
|
-
rootSchema: _getWishlistByIdRequest,
|
|
39
|
-
depSchemas: {},
|
|
40
|
-
fqdnTransformation: {
|
|
41
|
-
paths: [],
|
|
42
|
-
transformation: _fromVeloEntity,
|
|
43
|
-
},
|
|
44
|
-
customTransformation: requestTransformation,
|
|
45
|
-
});
|
|
46
|
-
const { fromJSON } = serializer({
|
|
47
|
-
rootSchema: _getWishlistByIdResponse,
|
|
48
|
-
depSchemas: {},
|
|
49
|
-
fqdnTransformation: {
|
|
50
|
-
paths: [...['wishlist']],
|
|
51
|
-
transformation: _toVeloEntity,
|
|
52
|
-
},
|
|
53
|
-
customTransformation: responseTransformation,
|
|
54
|
-
});
|
|
55
|
-
const payload = toAmbassadorRequest([_id, options]);
|
|
56
|
-
const reqOpts = ambassadorWixPlatformV1Wishlist.getWishlistById(payload);
|
|
57
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
58
|
-
try {
|
|
59
|
-
const result = yield httpClient.request(reqOpts);
|
|
60
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
61
|
-
return fromJSON(result.data);
|
|
62
|
-
}
|
|
63
|
-
catch (err) {
|
|
64
|
-
const transformedError = sdkTransformError(err, {
|
|
65
|
-
spreadPathsToArguments: {},
|
|
66
|
-
explicitPathsToArguments: {
|
|
67
|
-
id: '$[0]',
|
|
68
|
-
limit: '$[1].limit',
|
|
69
|
-
offset: '$[1].offset',
|
|
70
|
-
kind: '$[1].kind',
|
|
71
|
-
},
|
|
72
|
-
singleArgumentUnchanged: false,
|
|
73
|
-
}, ['_id', 'options']);
|
|
74
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
75
|
-
throw transformedError;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
//# sourceMappingURL=platform-v1-wishlist.universal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"platform-v1-wishlist.universal.js","sourceRoot":"","sources":["../../../src/platform-v1-wishlist.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAEvF,OAAO,KAAK,+BAA+B,MAAM,6BAA6B,CAAC;AAE/E,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAoH5B,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,wBAAwB,GAAG,EAAE,CAAC;AAEpC;;;;;;;GAOG;AACH,MAAM,UAAgB,eAAe,CACnC,GAAW,EACX,OAAgC;;;QAKhC,MAAM,qBAAqB,GAAG;YAC5B,EAAE,EAAE,MAAM;YACV,KAAK,EAAE,YAAY;YACnB,MAAM,EAAE,aAAa;YACrB,IAAI,EAAE,WAAW;SAClB,CAAC;QACF,MAAM,sBAAsB,GAAG,YAAY,CAAC;QAE5C,aAAa;QACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;QAEF,MAAM,EAAE,mBAAmB,EAAE,GAAG,UAAU,CAAC;YACzC,UAAU,EAAE,uBAAuB;YACnC,UAAU,EAAE,EAAE;YACd,kBAAkB,EAAE;gBAClB,KAAK,EAAE,EAAE;gBACT,cAAc,EAAE,eAAe;aAChC;YACD,oBAAoB,EAAE,qBAAqB;SAC5C,CAAC,CAAC;Q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Collection, getCollectionBySlug as publicGetCollectionBySlug } from './stores-catalog-v1-collection.public';
|
|
2
|
-
import { BuildRESTFunction } from '@wix/sdk-types';
|
|
3
|
-
export declare const queryCollections: BuildRESTFunction<typeof publicQueryCollections>;
|
|
4
|
-
export declare const getCollection: BuildRESTFunction<typeof publicGetCollection>;
|
|
5
|
-
export declare const getCollectionBySlug: BuildRESTFunction<typeof publicGetCollectionBySlug>;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { queryCollections as publicQueryCollections, getCollection as publicGetCollection, getCollectionBySlug as publicGetCollectionBySlug, } from './stores-catalog-v1-collection.public';
|
|
2
|
-
export const queryCollections = (...args) => {
|
|
3
|
-
var _a;
|
|
4
|
-
const context =
|
|
5
|
-
// @ts-expect-error
|
|
6
|
-
typeof $wixContext !== 'undefined'
|
|
7
|
-
? // @ts-expect-error
|
|
8
|
-
$wixContext
|
|
9
|
-
: // @ts-expect-error
|
|
10
|
-
globalThis.__wix_context__;
|
|
11
|
-
if (!context) {
|
|
12
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
13
|
-
}
|
|
14
|
-
return context
|
|
15
|
-
.initWixModules(publicQueryCollections, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
16
|
-
.apply(undefined, args);
|
|
17
|
-
};
|
|
18
|
-
export const getCollection = (...args) => {
|
|
19
|
-
var _a;
|
|
20
|
-
const context =
|
|
21
|
-
// @ts-expect-error
|
|
22
|
-
typeof $wixContext !== 'undefined'
|
|
23
|
-
? // @ts-expect-error
|
|
24
|
-
$wixContext
|
|
25
|
-
: // @ts-expect-error
|
|
26
|
-
globalThis.__wix_context__;
|
|
27
|
-
if (!context) {
|
|
28
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
29
|
-
}
|
|
30
|
-
return context
|
|
31
|
-
.initWixModules(publicGetCollection, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
32
|
-
.apply(undefined, args);
|
|
33
|
-
};
|
|
34
|
-
export const getCollectionBySlug = (...args) => {
|
|
35
|
-
var _a;
|
|
36
|
-
const context =
|
|
37
|
-
// @ts-expect-error
|
|
38
|
-
typeof $wixContext !== 'undefined'
|
|
39
|
-
? // @ts-expect-error
|
|
40
|
-
$wixContext
|
|
41
|
-
: // @ts-expect-error
|
|
42
|
-
globalThis.__wix_context__;
|
|
43
|
-
if (!context) {
|
|
44
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
45
|
-
}
|
|
46
|
-
return context
|
|
47
|
-
.initWixModules(publicGetCollectionBySlug, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
48
|
-
.apply(undefined, args);
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=stores-catalog-v1-collection.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stores-catalog-v1-collection.context.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,IAAI,sBAAsB,EAC1C,aAAa,IAAI,mBAAmB,EACpC,mBAAmB,IAAI,yBAAyB,GACjD,MAAM,uCAAuC,CAAC;AAG/C,MAAM,CAAC,MAAM,gBAAgB,GAEzB,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CAAC,sBAAsB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CA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{ RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
|
|
4
|
-
* See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
|
|
5
|
-
*/
|
|
6
|
-
export declare function queryCollections(payload: object): RequestOptionsFactory<any>;
|
|
7
|
-
/** Retrieves a collection with the provided ID. */
|
|
8
|
-
export declare function getCollection(payload: object): RequestOptionsFactory<any>;
|
|
9
|
-
/** Retrieves a collection with the provided slug. */
|
|
10
|
-
export declare function getCollectionBySlug(payload: object): RequestOptionsFactory<any>;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { toURLSearchParams } from '@wix/metro-runtime';
|
|
2
|
-
import { resolveUrl } from '@wix/metro-runtime';
|
|
3
|
-
function resolveWixCatalogApiV2CollectionReadApiUrl(opts) {
|
|
4
|
-
const domainToMappings = {
|
|
5
|
-
'api._api_base_domain_': [
|
|
6
|
-
{
|
|
7
|
-
srcPath: '/wix-ecommerce-catalog-reader-web',
|
|
8
|
-
destPath: '',
|
|
9
|
-
},
|
|
10
|
-
],
|
|
11
|
-
'manage._base_domain_': [
|
|
12
|
-
{
|
|
13
|
-
srcPath: '/wix-ecommerce-catalog-reader-web',
|
|
14
|
-
destPath: '',
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
'www.wixapis.com': [
|
|
18
|
-
{
|
|
19
|
-
srcPath: '/stores-reader/v2/collections',
|
|
20
|
-
destPath: '/v2/collections',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
srcPath: '/stores-reader/v2/inventoryItems',
|
|
24
|
-
destPath: '/v2/inventoryItems',
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
'www._base_domain_': [
|
|
28
|
-
{
|
|
29
|
-
srcPath: '/wix-ecommerce-catalog-reader-web',
|
|
30
|
-
destPath: '',
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
};
|
|
34
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
|
|
38
|
-
* See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
|
|
39
|
-
*/
|
|
40
|
-
export function queryCollections(payload) {
|
|
41
|
-
function __queryCollections({ host }) {
|
|
42
|
-
const metadata = {
|
|
43
|
-
entityFqdn: 'wix.stores.catalog.v1.collection',
|
|
44
|
-
method: 'POST',
|
|
45
|
-
methodFqn: 'wix.catalog.api.v2.CollectionReadApi.QueryCollections',
|
|
46
|
-
url: resolveWixCatalogApiV2CollectionReadApiUrl({
|
|
47
|
-
protoPath: '/v2/collections/query',
|
|
48
|
-
data: payload,
|
|
49
|
-
host,
|
|
50
|
-
}),
|
|
51
|
-
data: payload,
|
|
52
|
-
fallback: [
|
|
53
|
-
{
|
|
54
|
-
method: 'POST',
|
|
55
|
-
url: resolveWixCatalogApiV2CollectionReadApiUrl({
|
|
56
|
-
protoPath: '/v2/collections/query',
|
|
57
|
-
data: payload,
|
|
58
|
-
host,
|
|
59
|
-
}),
|
|
60
|
-
data: payload,
|
|
61
|
-
},
|
|
62
|
-
],
|
|
63
|
-
};
|
|
64
|
-
return metadata;
|
|
65
|
-
}
|
|
66
|
-
return __queryCollections;
|
|
67
|
-
}
|
|
68
|
-
/** Retrieves a collection with the provided ID. */
|
|
69
|
-
export function getCollection(payload) {
|
|
70
|
-
function __getCollection({ host }) {
|
|
71
|
-
const metadata = {
|
|
72
|
-
entityFqdn: 'wix.stores.catalog.v1.collection',
|
|
73
|
-
method: 'GET',
|
|
74
|
-
methodFqn: 'wix.catalog.api.v2.CollectionReadApi.GetCollection',
|
|
75
|
-
url: resolveWixCatalogApiV2CollectionReadApiUrl({
|
|
76
|
-
protoPath: '/v2/collections/{id}',
|
|
77
|
-
data: payload,
|
|
78
|
-
host,
|
|
79
|
-
}),
|
|
80
|
-
params: toURLSearchParams(payload),
|
|
81
|
-
};
|
|
82
|
-
return metadata;
|
|
83
|
-
}
|
|
84
|
-
return __getCollection;
|
|
85
|
-
}
|
|
86
|
-
/** Retrieves a collection with the provided slug. */
|
|
87
|
-
export function getCollectionBySlug(payload) {
|
|
88
|
-
function __getCollectionBySlug({ host }) {
|
|
89
|
-
const metadata = {
|
|
90
|
-
entityFqdn: 'wix.stores.catalog.v1.collection',
|
|
91
|
-
method: 'GET',
|
|
92
|
-
methodFqn: 'wix.catalog.api.v2.CollectionReadApi.GetCollectionBySlug',
|
|
93
|
-
url: resolveWixCatalogApiV2CollectionReadApiUrl({
|
|
94
|
-
protoPath: '/v2/collections/slug/{slug}',
|
|
95
|
-
data: payload,
|
|
96
|
-
host,
|
|
97
|
-
}),
|
|
98
|
-
params: toURLSearchParams(payload),
|
|
99
|
-
};
|
|
100
|
-
return metadata;
|
|
101
|
-
}
|
|
102
|
-
return __getCollectionBySlug;
|
|
103
|
-
}
|
|
104
|
-
//# sourceMappingURL=stores-catalog-v1-collection.http.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stores-catalog-v1-collection.http.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIhD,SAAS,0CAA0C,CACjD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,mCAAmC;gBAC5C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,iBAAiB;aAC5B;YACD;gBACE,OAAO,EAAE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CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,qDAAqD;AACrD,MAAM,UAAU,mBAAmB,CACjC,OAAe;IAEf,SAAS,qBAAqB,CAAC,EAAE,IAAI,EAAO;QAC1C,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,kCAAkC;YAC9C,MAAM,EAAE,KAAY;YACpB,SAAS,EAAE,0DAA0D;YACrE,GAAG,EAAE,0CAA0C,CAAC;gBAC9C,SAAS,EAAE,6BAA6B;gBACxC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,MAAM,EAAE,iBAAiB,CAAC,OAAO,CAAC;SACnC,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,qBAAqB,CAAC;AAC/B,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixStoresCatalogV1CollectionTypes from './stores-catalog-v1-collection.types';
|
|
2
|
-
import * as ambassadorWixStoresCatalogV1CollectionUniversalTypes from './stores-catalog-v1-collection.universal';
|
|
3
|
-
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
-
getUrl: (context: any) => string;
|
|
5
|
-
httpMethod: K;
|
|
6
|
-
path: string;
|
|
7
|
-
pathParams: M;
|
|
8
|
-
__requestType: T;
|
|
9
|
-
__originalRequestType: S;
|
|
10
|
-
__responseType: Q;
|
|
11
|
-
__originalResponseType: R;
|
|
12
|
-
};
|
|
13
|
-
export declare function queryCollections(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixStoresCatalogV1CollectionUniversalTypes.QueryCollectionsRequest, ambassadorWixStoresCatalogV1CollectionTypes.QueryCollectionsRequest, ambassadorWixStoresCatalogV1CollectionUniversalTypes.QueryCollectionsResponse & ambassadorWixStoresCatalogV1CollectionUniversalTypes.QueryCollectionsResponseNonNullableFields, ambassadorWixStoresCatalogV1CollectionTypes.QueryCollectionsResponse & ambassadorWixStoresCatalogV1CollectionTypes.QueryCollectionsResponseNonNullableFields>;
|
|
14
|
-
export declare function getCollection(): __PublicMethodMetaInfo<'GET', {
|
|
15
|
-
id: string;
|
|
16
|
-
}, ambassadorWixStoresCatalogV1CollectionUniversalTypes.GetCollectionRequest, ambassadorWixStoresCatalogV1CollectionTypes.GetCollectionRequest, ambassadorWixStoresCatalogV1CollectionUniversalTypes.GetCollectionResponse & ambassadorWixStoresCatalogV1CollectionUniversalTypes.GetCollectionResponseNonNullableFields, ambassadorWixStoresCatalogV1CollectionTypes.GetCollectionResponse & ambassadorWixStoresCatalogV1CollectionTypes.GetCollectionResponseNonNullableFields>;
|
|
17
|
-
export declare function getCollectionBySlug(): __PublicMethodMetaInfo<'GET', {
|
|
18
|
-
slug: string;
|
|
19
|
-
}, ambassadorWixStoresCatalogV1CollectionUniversalTypes.GetCollectionBySlugRequest, ambassadorWixStoresCatalogV1CollectionTypes.GetCollectionBySlugRequest, ambassadorWixStoresCatalogV1CollectionUniversalTypes.GetCollectionBySlugResponse & ambassadorWixStoresCatalogV1CollectionUniversalTypes.GetCollectionBySlugResponseNonNullableFields, ambassadorWixStoresCatalogV1CollectionTypes.GetCollectionBySlugResponse & ambassadorWixStoresCatalogV1CollectionTypes.GetCollectionBySlugResponseNonNullableFields>;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixStoresCatalogV1Collection from './stores-catalog-v1-collection.http';
|
|
2
|
-
export function queryCollections() {
|
|
3
|
-
const payload = {};
|
|
4
|
-
const getRequestOptions = ambassadorWixStoresCatalogV1Collection.queryCollections(payload);
|
|
5
|
-
const getUrl = (context) => {
|
|
6
|
-
const { url } = getRequestOptions(context);
|
|
7
|
-
return url;
|
|
8
|
-
};
|
|
9
|
-
return {
|
|
10
|
-
getUrl,
|
|
11
|
-
httpMethod: 'GET',
|
|
12
|
-
path: '/v2/collections/query',
|
|
13
|
-
pathParams: {},
|
|
14
|
-
__requestType: null,
|
|
15
|
-
__originalRequestType: null,
|
|
16
|
-
__responseType: null,
|
|
17
|
-
__originalResponseType: null,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export function getCollection() {
|
|
21
|
-
const payload = { id: ':id' };
|
|
22
|
-
const getRequestOptions = ambassadorWixStoresCatalogV1Collection.getCollection(payload);
|
|
23
|
-
const getUrl = (context) => {
|
|
24
|
-
const { url } = getRequestOptions(context);
|
|
25
|
-
return url;
|
|
26
|
-
};
|
|
27
|
-
return {
|
|
28
|
-
getUrl,
|
|
29
|
-
httpMethod: 'GET',
|
|
30
|
-
path: '/v2/collections/{id}',
|
|
31
|
-
pathParams: { id: 'id' },
|
|
32
|
-
__requestType: null,
|
|
33
|
-
__originalRequestType: null,
|
|
34
|
-
__responseType: null,
|
|
35
|
-
__originalResponseType: null,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export function getCollectionBySlug() {
|
|
39
|
-
const payload = { slug: ':slug' };
|
|
40
|
-
const getRequestOptions = ambassadorWixStoresCatalogV1Collection.getCollectionBySlug(payload);
|
|
41
|
-
const getUrl = (context) => {
|
|
42
|
-
const { url } = getRequestOptions(context);
|
|
43
|
-
return url;
|
|
44
|
-
};
|
|
45
|
-
return {
|
|
46
|
-
getUrl,
|
|
47
|
-
httpMethod: 'GET',
|
|
48
|
-
path: '/v2/collections/slug/{slug}',
|
|
49
|
-
pathParams: { slug: 'slug' },
|
|
50
|
-
__requestType: null,
|
|
51
|
-
__originalRequestType: null,
|
|
52
|
-
__responseType: null,
|
|
53
|
-
__originalResponseType: null,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=stores-catalog-v1-collection.meta.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stores-catalog-v1-collection.meta.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,sCAAsC,MAAM,qCAAqC,C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AAC,OAAO,CAAC,CAAC;IAEtE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,6BAA6B;QACnC,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QAC5B,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
export declare const __metadata: {
|
|
3
|
-
PACKAGE_NAME: string;
|
|
4
|
-
};
|
|
5
|
-
export declare function queryCollections(httpClient: HttpClient): () => import("./stores-catalog-v1-collection.universal").CollectionsQueryBuilder;
|
|
6
|
-
export declare function getCollection(httpClient: HttpClient): (_id: string) => Promise<import("./stores-catalog-v1-collection.universal").Collection & {
|
|
7
|
-
media?: {
|
|
8
|
-
mainMedia?: {
|
|
9
|
-
image?: {
|
|
10
|
-
url: string;
|
|
11
|
-
width: number;
|
|
12
|
-
height: number;
|
|
13
|
-
} | undefined;
|
|
14
|
-
video?: {
|
|
15
|
-
files: {
|
|
16
|
-
url: string;
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
}[];
|
|
20
|
-
stillFrameMediaId: string;
|
|
21
|
-
} | undefined;
|
|
22
|
-
thumbnail?: {
|
|
23
|
-
url: string;
|
|
24
|
-
width: number;
|
|
25
|
-
height: number;
|
|
26
|
-
} | undefined;
|
|
27
|
-
mediaType: import("./stores-catalog-v1-collection.universal").MediaItemType;
|
|
28
|
-
title: string;
|
|
29
|
-
_id: string;
|
|
30
|
-
} | undefined;
|
|
31
|
-
items: {
|
|
32
|
-
image?: {
|
|
33
|
-
url: string;
|
|
34
|
-
width: number;
|
|
35
|
-
height: number;
|
|
36
|
-
} | undefined;
|
|
37
|
-
video?: {
|
|
38
|
-
files: {
|
|
39
|
-
url: string;
|
|
40
|
-
width: number;
|
|
41
|
-
height: number;
|
|
42
|
-
}[];
|
|
43
|
-
stillFrameMediaId: string;
|
|
44
|
-
} | undefined;
|
|
45
|
-
thumbnail?: {
|
|
46
|
-
url: string;
|
|
47
|
-
width: number;
|
|
48
|
-
height: number;
|
|
49
|
-
} | undefined;
|
|
50
|
-
mediaType: import("./stores-catalog-v1-collection.universal").MediaItemType;
|
|
51
|
-
title: string;
|
|
52
|
-
_id: string;
|
|
53
|
-
}[];
|
|
54
|
-
} | undefined;
|
|
55
|
-
numberOfProducts: number;
|
|
56
|
-
}>;
|
|
57
|
-
export declare function getCollectionBySlug(httpClient: HttpClient): (slug: string) => Promise<import("./stores-catalog-v1-collection.universal").GetCollectionBySlugResponse & import("./stores-catalog-v1-collection.universal").GetCollectionBySlugResponseNonNullableFields>;
|
|
58
|
-
export { MediaItemType, SortOrder, } from './stores-catalog-v1-collection.universal';
|
|
59
|
-
export { Collection, Media, MediaItem, MediaItemItemOneOf, MediaItemUrlAndSize, MediaItemVideo, SeoSchema, Keyword, Tag, Settings, QueryCollectionsRequest, PlatformQuery, PlatformQueryPagingMethodOneOf, Sorting, PlatformPaging, CursorPaging, QueryCollectionsResponse, PlatformPagingMetadata, Cursors, GetCollectionRequest, GetCollectionResponse, GetCollectionBySlugRequest, GetCollectionBySlugResponse, QueryCollectionsResponseNonNullableFields, GetCollectionResponseNonNullableFields, GetCollectionBySlugResponseNonNullableFields, CollectionsQueryResult, CollectionsQueryBuilder, } from './stores-catalog-v1-collection.universal';
|