@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,106 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.getWishlistById = void 0;
|
|
36
|
-
const velo_1 = require("@wix/metro-runtime/velo");
|
|
37
|
-
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
38
|
-
const ambassadorWixPlatformV1Wishlist = __importStar(require("./platform-v1-wishlist.http"));
|
|
39
|
-
const _toVeloEntity = '$';
|
|
40
|
-
const _fromVeloEntity = '$';
|
|
41
|
-
const _getWishlistByIdRequest = {};
|
|
42
|
-
const _getWishlistByIdResponse = {};
|
|
43
|
-
/**
|
|
44
|
-
* Get wishlist by id
|
|
45
|
-
* @param _id - Unique identifier representing requested list
|
|
46
|
-
* @public
|
|
47
|
-
* @documentationMaturity preview
|
|
48
|
-
* @requiredField _id
|
|
49
|
-
* @returns Object containing requested list data
|
|
50
|
-
*/
|
|
51
|
-
function getWishlistById(_id, options) {
|
|
52
|
-
var _a, _b, _c;
|
|
53
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
54
|
-
const requestTransformation = {
|
|
55
|
-
id: '$[0]',
|
|
56
|
-
limit: '$[1].limit',
|
|
57
|
-
offset: '$[1].offset',
|
|
58
|
-
kind: '$[1].kind',
|
|
59
|
-
};
|
|
60
|
-
const responseTransformation = '$.wishlist';
|
|
61
|
-
// @ts-ignore
|
|
62
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
63
|
-
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
64
|
-
rootSchema: _getWishlistByIdRequest,
|
|
65
|
-
depSchemas: {},
|
|
66
|
-
fqdnTransformation: {
|
|
67
|
-
paths: [],
|
|
68
|
-
transformation: _fromVeloEntity,
|
|
69
|
-
},
|
|
70
|
-
customTransformation: requestTransformation,
|
|
71
|
-
});
|
|
72
|
-
const { fromJSON } = (0, velo_1.serializer)({
|
|
73
|
-
rootSchema: _getWishlistByIdResponse,
|
|
74
|
-
depSchemas: {},
|
|
75
|
-
fqdnTransformation: {
|
|
76
|
-
paths: [...['wishlist']],
|
|
77
|
-
transformation: _toVeloEntity,
|
|
78
|
-
},
|
|
79
|
-
customTransformation: responseTransformation,
|
|
80
|
-
});
|
|
81
|
-
const payload = toAmbassadorRequest([_id, options]);
|
|
82
|
-
const reqOpts = ambassadorWixPlatformV1Wishlist.getWishlistById(payload);
|
|
83
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
84
|
-
try {
|
|
85
|
-
const result = yield httpClient.request(reqOpts);
|
|
86
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
87
|
-
return fromJSON(result.data);
|
|
88
|
-
}
|
|
89
|
-
catch (err) {
|
|
90
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
91
|
-
spreadPathsToArguments: {},
|
|
92
|
-
explicitPathsToArguments: {
|
|
93
|
-
id: '$[0]',
|
|
94
|
-
limit: '$[1].limit',
|
|
95
|
-
offset: '$[1].offset',
|
|
96
|
-
kind: '$[1].kind',
|
|
97
|
-
},
|
|
98
|
-
singleArgumentUnchanged: false,
|
|
99
|
-
}, ['_id', 'options']);
|
|
100
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
101
|
-
throw transformedError;
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
exports.getWishlistById = getWishlistById;
|
|
106
|
-
//# sourceMappingURL=platform-v1-wishlist.universal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"platform-v1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AAG,+BAA+B,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QAEzE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,2DAAI,CAAC;QAC5B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,4DAAG,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;QACtC,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;gBACE,sBAAsB,EAAE,EAAE;gBAC1B,wBAAwB,EAAE;oBACxB,EAAE,EAAE,MAAM;oBACV,KAAK,EAAE,YAAY;oBACnB,MAAM,EAAE,aAAa;oBACrB,IAAI,EAAE,WAAW;iBAClB;gBACD,uBAAuB,EAAE,KAAK;aAC/B,EACD,CAAC,KAAK,EAAE,SAAS,CAAC,CACnB,CAAC;YACF,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,4DAAG,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;QACzB,CAAC;;CACF;AAtED,0CAsEC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { queryCollections as publicQueryCollections, getCollection as publicGetCollection, 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,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCollectionBySlug = exports.getCollection = exports.queryCollections = void 0;
|
|
4
|
-
const stores_catalog_v1_collection_public_1 = require("./stores-catalog-v1-collection.public");
|
|
5
|
-
const queryCollections = (...args) => {
|
|
6
|
-
var _a;
|
|
7
|
-
const context =
|
|
8
|
-
// @ts-expect-error
|
|
9
|
-
typeof $wixContext !== 'undefined'
|
|
10
|
-
? // @ts-expect-error
|
|
11
|
-
$wixContext
|
|
12
|
-
: // @ts-expect-error
|
|
13
|
-
globalThis.__wix_context__;
|
|
14
|
-
if (!context) {
|
|
15
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
16
|
-
}
|
|
17
|
-
return context
|
|
18
|
-
.initWixModules(stores_catalog_v1_collection_public_1.queryCollections, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
19
|
-
.apply(undefined, args);
|
|
20
|
-
};
|
|
21
|
-
exports.queryCollections = queryCollections;
|
|
22
|
-
const getCollection = (...args) => {
|
|
23
|
-
var _a;
|
|
24
|
-
const context =
|
|
25
|
-
// @ts-expect-error
|
|
26
|
-
typeof $wixContext !== 'undefined'
|
|
27
|
-
? // @ts-expect-error
|
|
28
|
-
$wixContext
|
|
29
|
-
: // @ts-expect-error
|
|
30
|
-
globalThis.__wix_context__;
|
|
31
|
-
if (!context) {
|
|
32
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
33
|
-
}
|
|
34
|
-
return context
|
|
35
|
-
.initWixModules(stores_catalog_v1_collection_public_1.getCollection, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
36
|
-
.apply(undefined, args);
|
|
37
|
-
};
|
|
38
|
-
exports.getCollection = getCollection;
|
|
39
|
-
const getCollectionBySlug = (...args) => {
|
|
40
|
-
var _a;
|
|
41
|
-
const context =
|
|
42
|
-
// @ts-expect-error
|
|
43
|
-
typeof $wixContext !== 'undefined'
|
|
44
|
-
? // @ts-expect-error
|
|
45
|
-
$wixContext
|
|
46
|
-
: // @ts-expect-error
|
|
47
|
-
globalThis.__wix_context__;
|
|
48
|
-
if (!context) {
|
|
49
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
50
|
-
}
|
|
51
|
-
return context
|
|
52
|
-
.initWixModules(stores_catalog_v1_collection_public_1.getCollectionBySlug, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
53
|
-
.apply(undefined, args);
|
|
54
|
-
};
|
|
55
|
-
exports.getCollectionBySlug = getCollectionBySlug;
|
|
56
|
-
//# 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,+FAI+C;AAGxC,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,sDAAsB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SAC3E,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAlBW,QAAA,gBAAgB,oBAkB3B;AACK,MAAM,aAAa,GAAkD,CAC1E,GAAG,IAAS,EACZ,EAAE;;IACF,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,mDAAmB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SACxE,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAlBW,QAAA,aAAa,iBAkBxB;AACK,MAAM,mBAAmB,GAE5B,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,CACb,yDAAyB,EACzB,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AArBW,QAAA,mBAAmB,uBAqB9B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { 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,110 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCollectionBySlug = exports.getCollection = exports.queryCollections = void 0;
|
|
4
|
-
const metro_runtime_1 = require("@wix/metro-runtime");
|
|
5
|
-
const metro_runtime_2 = require("@wix/metro-runtime");
|
|
6
|
-
function resolveWixCatalogApiV2CollectionReadApiUrl(opts) {
|
|
7
|
-
const domainToMappings = {
|
|
8
|
-
'api._api_base_domain_': [
|
|
9
|
-
{
|
|
10
|
-
srcPath: '/wix-ecommerce-catalog-reader-web',
|
|
11
|
-
destPath: '',
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
'manage._base_domain_': [
|
|
15
|
-
{
|
|
16
|
-
srcPath: '/wix-ecommerce-catalog-reader-web',
|
|
17
|
-
destPath: '',
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
'www.wixapis.com': [
|
|
21
|
-
{
|
|
22
|
-
srcPath: '/stores-reader/v2/collections',
|
|
23
|
-
destPath: '/v2/collections',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
srcPath: '/stores-reader/v2/inventoryItems',
|
|
27
|
-
destPath: '/v2/inventoryItems',
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
'www._base_domain_': [
|
|
31
|
-
{
|
|
32
|
-
srcPath: '/wix-ecommerce-catalog-reader-web',
|
|
33
|
-
destPath: '',
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
};
|
|
37
|
-
return (0, metro_runtime_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering.
|
|
41
|
-
* See [Stores Pagination](https://dev.wix.com/api/rest/wix-stores/pagination) for more information.
|
|
42
|
-
*/
|
|
43
|
-
function queryCollections(payload) {
|
|
44
|
-
function __queryCollections({ host }) {
|
|
45
|
-
const metadata = {
|
|
46
|
-
entityFqdn: 'wix.stores.catalog.v1.collection',
|
|
47
|
-
method: 'POST',
|
|
48
|
-
methodFqn: 'wix.catalog.api.v2.CollectionReadApi.QueryCollections',
|
|
49
|
-
url: resolveWixCatalogApiV2CollectionReadApiUrl({
|
|
50
|
-
protoPath: '/v2/collections/query',
|
|
51
|
-
data: payload,
|
|
52
|
-
host,
|
|
53
|
-
}),
|
|
54
|
-
data: payload,
|
|
55
|
-
fallback: [
|
|
56
|
-
{
|
|
57
|
-
method: 'POST',
|
|
58
|
-
url: resolveWixCatalogApiV2CollectionReadApiUrl({
|
|
59
|
-
protoPath: '/v2/collections/query',
|
|
60
|
-
data: payload,
|
|
61
|
-
host,
|
|
62
|
-
}),
|
|
63
|
-
data: payload,
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
};
|
|
67
|
-
return metadata;
|
|
68
|
-
}
|
|
69
|
-
return __queryCollections;
|
|
70
|
-
}
|
|
71
|
-
exports.queryCollections = queryCollections;
|
|
72
|
-
/** Retrieves a collection with the provided ID. */
|
|
73
|
-
function getCollection(payload) {
|
|
74
|
-
function __getCollection({ host }) {
|
|
75
|
-
const metadata = {
|
|
76
|
-
entityFqdn: 'wix.stores.catalog.v1.collection',
|
|
77
|
-
method: 'GET',
|
|
78
|
-
methodFqn: 'wix.catalog.api.v2.CollectionReadApi.GetCollection',
|
|
79
|
-
url: resolveWixCatalogApiV2CollectionReadApiUrl({
|
|
80
|
-
protoPath: '/v2/collections/{id}',
|
|
81
|
-
data: payload,
|
|
82
|
-
host,
|
|
83
|
-
}),
|
|
84
|
-
params: (0, metro_runtime_1.toURLSearchParams)(payload),
|
|
85
|
-
};
|
|
86
|
-
return metadata;
|
|
87
|
-
}
|
|
88
|
-
return __getCollection;
|
|
89
|
-
}
|
|
90
|
-
exports.getCollection = getCollection;
|
|
91
|
-
/** Retrieves a collection with the provided slug. */
|
|
92
|
-
function getCollectionBySlug(payload) {
|
|
93
|
-
function __getCollectionBySlug({ host }) {
|
|
94
|
-
const metadata = {
|
|
95
|
-
entityFqdn: 'wix.stores.catalog.v1.collection',
|
|
96
|
-
method: 'GET',
|
|
97
|
-
methodFqn: 'wix.catalog.api.v2.CollectionReadApi.GetCollectionBySlug',
|
|
98
|
-
url: resolveWixCatalogApiV2CollectionReadApiUrl({
|
|
99
|
-
protoPath: '/v2/collections/slug/{slug}',
|
|
100
|
-
data: payload,
|
|
101
|
-
host,
|
|
102
|
-
}),
|
|
103
|
-
params: (0, metro_runtime_1.toURLSearchParams)(payload),
|
|
104
|
-
};
|
|
105
|
-
return metadata;
|
|
106
|
-
}
|
|
107
|
-
return __getCollectionBySlug;
|
|
108
|
-
}
|
|
109
|
-
exports.getCollectionBySlug = getCollectionBySlug;
|
|
110
|
-
//# 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,sDAAuD;AACvD,sDAAgD;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;aAC5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AAE,IAAA,iCAAiB,EAAC,OAAO,CAAC;SACnC,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC;AAlBD,sCAkBC;AAED,qDAAqD;AACrD,SAAgB,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,IAAA,iCAAiB,EAAC,OAAO,CAAC;SACnC,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,qBAAqB,CAAC;AAC/B,CAAC;AApBD,kDAoBC"}
|
|
@@ -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,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.getCollectionBySlug = exports.getCollection = exports.queryCollections = void 0;
|
|
27
|
-
const ambassadorWixStoresCatalogV1Collection = __importStar(require("./stores-catalog-v1-collection.http"));
|
|
28
|
-
function queryCollections() {
|
|
29
|
-
const payload = {};
|
|
30
|
-
const getRequestOptions = ambassadorWixStoresCatalogV1Collection.queryCollections(payload);
|
|
31
|
-
const getUrl = (context) => {
|
|
32
|
-
const { url } = getRequestOptions(context);
|
|
33
|
-
return url;
|
|
34
|
-
};
|
|
35
|
-
return {
|
|
36
|
-
getUrl,
|
|
37
|
-
httpMethod: 'GET',
|
|
38
|
-
path: '/v2/collections/query',
|
|
39
|
-
pathParams: {},
|
|
40
|
-
__requestType: null,
|
|
41
|
-
__originalRequestType: null,
|
|
42
|
-
__responseType: null,
|
|
43
|
-
__originalResponseType: null,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
exports.queryCollections = queryCollections;
|
|
47
|
-
function getCollection() {
|
|
48
|
-
const payload = { id: ':id' };
|
|
49
|
-
const getRequestOptions = ambassadorWixStoresCatalogV1Collection.getCollection(payload);
|
|
50
|
-
const getUrl = (context) => {
|
|
51
|
-
const { url } = getRequestOptions(context);
|
|
52
|
-
return url;
|
|
53
|
-
};
|
|
54
|
-
return {
|
|
55
|
-
getUrl,
|
|
56
|
-
httpMethod: 'GET',
|
|
57
|
-
path: '/v2/collections/{id}',
|
|
58
|
-
pathParams: { id: 'id' },
|
|
59
|
-
__requestType: null,
|
|
60
|
-
__originalRequestType: null,
|
|
61
|
-
__responseType: null,
|
|
62
|
-
__originalResponseType: null,
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
exports.getCollection = getCollection;
|
|
66
|
-
function getCollectionBySlug() {
|
|
67
|
-
const payload = { slug: ':slug' };
|
|
68
|
-
const getRequestOptions = ambassadorWixStoresCatalogV1Collection.getCollectionBySlug(payload);
|
|
69
|
-
const getUrl = (context) => {
|
|
70
|
-
const { url } = getRequestOptions(context);
|
|
71
|
-
return url;
|
|
72
|
-
};
|
|
73
|
-
return {
|
|
74
|
-
getUrl,
|
|
75
|
-
httpMethod: 'GET',
|
|
76
|
-
path: '/v2/collections/slug/{slug}',
|
|
77
|
-
pathParams: { slug: 'slug' },
|
|
78
|
-
__requestType: null,
|
|
79
|
-
__originalRequestType: null,
|
|
80
|
-
__responseType: null,
|
|
81
|
-
__originalResponseType: null,
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
exports.getCollectionBySlug = getCollectionBySlug;
|
|
85
|
-
//# 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,4GAA8F;AAsB9F,SAAgB,gBAAgB;IAU9B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,sCAAsC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC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