@wix/stores 1.0.24 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +2 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/platform-v1-wishlist.http.d.ts +4 -0
- package/build/cjs/src/platform-v1-wishlist.http.js +88 -0
- package/build/cjs/src/platform-v1-wishlist.http.js.map +1 -0
- package/build/cjs/src/platform-v1-wishlist.public.d.ts +4 -0
- package/build/cjs/src/platform-v1-wishlist.public.js +11 -0
- package/build/cjs/src/platform-v1-wishlist.public.js.map +1 -0
- package/build/cjs/src/platform-v1-wishlist.types.d.ts +93 -0
- package/build/cjs/src/platform-v1-wishlist.types.js +3 -0
- package/build/cjs/src/platform-v1-wishlist.types.js.map +1 -0
- package/build/cjs/src/platform-v1-wishlist.universal.d.ts +115 -0
- package/build/cjs/src/platform-v1-wishlist.universal.js +108 -0
- package/build/cjs/src/platform-v1-wishlist.universal.js.map +1 -0
- package/build/cjs/src/stores-catalog-v1-product-products.universal.d.ts +6 -1
- package/build/cjs/src/stores-catalog-v1-product-products.universal.js.map +1 -1
- package/build/cjs/src/stores-catalog-v1-product.types.d.ts +6 -1
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/es/index.js.map +1 -1
- package/build/es/src/platform-v1-wishlist.http.d.ts +4 -0
- package/build/es/src/platform-v1-wishlist.http.js +84 -0
- package/build/es/src/platform-v1-wishlist.http.js.map +1 -0
- package/build/es/src/platform-v1-wishlist.public.d.ts +4 -0
- package/build/es/src/platform-v1-wishlist.public.js +7 -0
- package/build/es/src/platform-v1-wishlist.public.js.map +1 -0
- package/build/es/src/platform-v1-wishlist.types.d.ts +93 -0
- package/build/es/src/platform-v1-wishlist.types.js +2 -0
- package/build/es/src/platform-v1-wishlist.types.js.map +1 -0
- package/build/es/src/platform-v1-wishlist.universal.d.ts +115 -0
- package/build/es/src/platform-v1-wishlist.universal.js +85 -0
- package/build/es/src/platform-v1-wishlist.universal.js.map +1 -0
- package/build/es/src/stores-catalog-v1-product-products.universal.d.ts +6 -1
- package/build/es/src/stores-catalog-v1-product-products.universal.js.map +1 -1
- package/build/es/src/stores-catalog-v1-product.types.d.ts +6 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as catalog from './src/stores-v2-inventory.public';
|
|
2
|
+
export * as wishlist from './src/platform-v1-wishlist.public';
|
|
2
3
|
export * as collections from './src/stores-catalog-v1-collection.public';
|
|
3
4
|
export * as products from './src/stores-catalog-v1-product-products.public';
|
|
4
5
|
export * as orders from './src/stores-v2-orders.public';
|
package/build/cjs/index.js
CHANGED
|
@@ -19,8 +19,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.orders = exports.products = exports.collections = exports.catalog = void 0;
|
|
22
|
+
exports.orders = exports.products = exports.collections = exports.wishlist = exports.catalog = void 0;
|
|
23
23
|
exports.catalog = __importStar(require("./src/stores-v2-inventory.public"));
|
|
24
|
+
exports.wishlist = __importStar(require("./src/platform-v1-wishlist.public"));
|
|
24
25
|
exports.collections = __importStar(require("./src/stores-catalog-v1-collection.public"));
|
|
25
26
|
exports.products = __importStar(require("./src/stores-catalog-v1-product-products.public"));
|
|
26
27
|
exports.orders = __importStar(require("./src/stores-v2-orders.public"));
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA4D;AAC5D,yFAAyE;AACzE,4FAA4E;AAC5E,wEAAwD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA4D;AAC5D,8EAA8D;AAC9D,yFAAyE;AACzE,4FAA4E;AAC5E,wEAAwD"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
import { GetWishlistByIdRequest, GetWishlistByIdResponse } from './platform-v1-wishlist.types';
|
|
3
|
+
/** Get wishlist by id */
|
|
4
|
+
export declare function getWishlistById(payload: GetWishlistByIdRequest): RequestOptionsFactory<GetWishlistByIdResponse>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getWishlistById = void 0;
|
|
4
|
+
const ambassador_1 = require("@wix/metro-runtime/ambassador");
|
|
5
|
+
const metro_runtime_1 = require("@wix/metro-runtime");
|
|
6
|
+
const _getWishlistByIdRequest = {};
|
|
7
|
+
const _getWishlistByIdResponse = { wishlist: '_wishlistData' };
|
|
8
|
+
const _wishlistData = { items: '_wishlistItem' };
|
|
9
|
+
const _wishlistItem = { dateAdded: 'google.protobuf.Timestamp' };
|
|
10
|
+
function resolveComWixpressWishlistWishlistUrl(opts) {
|
|
11
|
+
const domainToMappings = {
|
|
12
|
+
'bo._base_domain_': [
|
|
13
|
+
{
|
|
14
|
+
srcPath: '/wishlist-server',
|
|
15
|
+
destPath: '',
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
'api._api_base_domain_': [
|
|
19
|
+
{
|
|
20
|
+
srcPath: '/wishlist-server',
|
|
21
|
+
destPath: '',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
_: [
|
|
25
|
+
{
|
|
26
|
+
srcPath: '/_api/wishlist-server',
|
|
27
|
+
destPath: '',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
'ecom._base_domain_': [
|
|
31
|
+
{
|
|
32
|
+
srcPath: '/_api/wishlist-server',
|
|
33
|
+
destPath: '',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
'manage._base_domain_': [
|
|
37
|
+
{
|
|
38
|
+
srcPath: '/_api/wishlist-server',
|
|
39
|
+
destPath: '/api',
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
'*.dev.wix-code.com': [
|
|
43
|
+
{
|
|
44
|
+
srcPath: '/_api/wishlist-server',
|
|
45
|
+
destPath: '',
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
'www.wixapis.com': [
|
|
49
|
+
{
|
|
50
|
+
srcPath: '/stores/v1/wishlists',
|
|
51
|
+
destPath: '/v1/wishlists',
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
'www._base_domain_': [
|
|
55
|
+
{
|
|
56
|
+
srcPath: '/_api/wishlist-server',
|
|
57
|
+
destPath: '',
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
};
|
|
61
|
+
return metro_runtime_1.resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
62
|
+
}
|
|
63
|
+
/** Get wishlist by id */
|
|
64
|
+
function getWishlistById(payload) {
|
|
65
|
+
const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_getWishlistByIdRequest, {});
|
|
66
|
+
const { fromJSON: fromRes } = ambassador_1.serializer(_getWishlistByIdResponse, {
|
|
67
|
+
_wishlistData,
|
|
68
|
+
_wishlistItem,
|
|
69
|
+
});
|
|
70
|
+
function __getWishlistById({ host }) {
|
|
71
|
+
const serializedData = toReq(payload);
|
|
72
|
+
const metadata = {
|
|
73
|
+
method: 'POST',
|
|
74
|
+
url: resolveComWixpressWishlistWishlistUrl({
|
|
75
|
+
protoPath: '/v1/wishlists/get',
|
|
76
|
+
data: serializedData,
|
|
77
|
+
host,
|
|
78
|
+
}),
|
|
79
|
+
data: serializedData,
|
|
80
|
+
transformResponse: fromRes,
|
|
81
|
+
};
|
|
82
|
+
return metadata;
|
|
83
|
+
}
|
|
84
|
+
__getWishlistById.fromReq = fromReq;
|
|
85
|
+
return __getWishlistById;
|
|
86
|
+
}
|
|
87
|
+
exports.getWishlistById = getWishlistById;
|
|
88
|
+
//# sourceMappingURL=platform-v1-wishlist.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-v1-wishlist.http.js","sourceRoot":"","sources":["../../../src/platform-v1-wishlist.http.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAC3D,sDAAgD;AAQhD,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,wBAAwB,GAAG,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC;AAC/D,MAAM,aAAa,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;AACjD,MAAM,aAAa,GAAG,EAAE,SAAS,EAAE,2BAA2B,EAAE,CAAC;AAEjE,SAAS,qCAAqC,CAC5C,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,kBAAkB,EAAE;YAClB;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,MAAM;aACjB;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,sBAAsB;gBAC/B,QAAQ,EAAE,eAAe;aAC1B;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,0BAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,yBAAyB;AACzB,SAAgB,eAAe,CAC7B,OAA+B;IAE/B,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,uBAAU,CACrD,uBAAuB,EACvB,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,uBAAU,CAAC,wBAAwB,EAAE;QACjE,aAAa;QACb,aAAa;KACd,CAAC,CAAC;IAEH,SAAS,iBAAiB,CAAC,EAAE,IAAI,EAAO;QACtC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,MAAa;YACrB,GAAG,EAAE,qCAAqC,CAAC;gBACzC,SAAS,EAAE,mBAAmB;gBAC9B,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,iBAAiB,CAAC,OAAO,GAAG,OAAO,CAAC;IAEpC,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AA/BD,0CA+BC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { GetWishlistByIdOptions } from './platform-v1-wishlist.universal';
|
|
3
|
+
export declare function getWishlistById(httpClient: HttpClient): (_id: string, options?: GetWishlistByIdOptions | undefined) => Promise<import("./platform-v1-wishlist.universal").WishlistData>;
|
|
4
|
+
export { WishlistData, WishlistItem, ItemsAddedToWishlist, ItemsRemovedFromWishlist, GetWishlistRequest, WishlistItemKind, GetWishlistResponse, AddToWishlistRequest, AddToWishlistResponse, RemoveFromWishlistRequest, RemoveFromWishlistResponse, GetWishlistByIdRequest, GetWishlistByIdResponse, GetWishlistsRequest, GetWishlistsResponse, GetWishlistByIdOptions, } from './platform-v1-wishlist.universal';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getWishlistById = void 0;
|
|
4
|
+
const platform_v1_wishlist_universal_1 = require("./platform-v1-wishlist.universal");
|
|
5
|
+
function getWishlistById(httpClient) {
|
|
6
|
+
return (_id, options) => platform_v1_wishlist_universal_1.getWishlistById(_id, options,
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
{ httpClient });
|
|
9
|
+
}
|
|
10
|
+
exports.getWishlistById = getWishlistById;
|
|
11
|
+
//# sourceMappingURL=platform-v1-wishlist.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-v1-wishlist.public.js","sourceRoot":"","sources":["../../../src/platform-v1-wishlist.public.ts"],"names":[],"mappings":";;;AACA,qFAG0C;AAE1C,SAAgB,eAAe,CAAC,UAAsB;IACpD,OAAO,CAAC,GAAW,EAAE,OAAgC,EAAE,EAAE,CACvD,gDAAwB,CACtB,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,0CAQC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-v1-wishlist.types.js","sourceRoot":"","sources":["../../../src/platform-v1-wishlist.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
export declare const __debug: {
|
|
2
|
+
verboseLogging: {
|
|
3
|
+
on: () => boolean;
|
|
4
|
+
off: () => boolean;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export interface WishlistData {
|
|
8
|
+
/** GUID unique to this list for this site */
|
|
9
|
+
_id?: string | null;
|
|
10
|
+
/** Member id the list belongs to */
|
|
11
|
+
ownerId?: string;
|
|
12
|
+
/** List of items in the list. Not necessarily the full list (can depends on request data) */
|
|
13
|
+
items?: WishlistItem[];
|
|
14
|
+
/** Total count of items in the list */
|
|
15
|
+
totalCount?: number;
|
|
16
|
+
}
|
|
17
|
+
export interface WishlistItem {
|
|
18
|
+
/** Unique identifier for an item of this type and origin */
|
|
19
|
+
_id?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The data the item was save to the list
|
|
22
|
+
* @readonly
|
|
23
|
+
*/
|
|
24
|
+
dateAdded?: Date;
|
|
25
|
+
/** The type of the item. For example "product" */
|
|
26
|
+
type?: string;
|
|
27
|
+
/** The origin of the item. Should be the scope the item type is related to. For example "wixstores" */
|
|
28
|
+
origin?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ItemsAddedToWishlist {
|
|
31
|
+
/** GUID unique to this list for its site */
|
|
32
|
+
_id?: string | null;
|
|
33
|
+
/** Member id the list belongs to */
|
|
34
|
+
ownerId?: string;
|
|
35
|
+
/** List of items that were added to wishlist */
|
|
36
|
+
items?: WishlistItem[];
|
|
37
|
+
}
|
|
38
|
+
export interface ItemsRemovedFromWishlist {
|
|
39
|
+
/** GUID unique to this list for its site */
|
|
40
|
+
_id?: string | null;
|
|
41
|
+
/** Member id the list belongs to */
|
|
42
|
+
ownerId?: string;
|
|
43
|
+
/** List of items that were removed from wishlist */
|
|
44
|
+
items?: WishlistItem[];
|
|
45
|
+
}
|
|
46
|
+
export interface GetWishlistRequest {
|
|
47
|
+
/** List length limit. Default is 100 */
|
|
48
|
+
limit?: number | null;
|
|
49
|
+
/** List starting index offset. Default is 0 */
|
|
50
|
+
offset?: number | null;
|
|
51
|
+
/** Filter requested list by specific kinds of items */
|
|
52
|
+
kind?: WishlistItemKind[];
|
|
53
|
+
}
|
|
54
|
+
export interface WishlistItemKind {
|
|
55
|
+
/** The type of the item. For example "product" */
|
|
56
|
+
type?: string;
|
|
57
|
+
/** The origin of the item. Should be the scope the item type is related to. For example "wixstores" */
|
|
58
|
+
origin?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface GetWishlistResponse {
|
|
61
|
+
/** Object containing requested list data */
|
|
62
|
+
wishlist?: WishlistData;
|
|
63
|
+
}
|
|
64
|
+
export interface AddToWishlistRequest {
|
|
65
|
+
/** List of items to add to list */
|
|
66
|
+
items?: WishlistItem[];
|
|
67
|
+
}
|
|
68
|
+
export interface AddToWishlistResponse {
|
|
69
|
+
}
|
|
70
|
+
export interface RemoveFromWishlistRequest {
|
|
71
|
+
/** List of items to remove from list */
|
|
72
|
+
items?: WishlistItem[];
|
|
73
|
+
}
|
|
74
|
+
export interface RemoveFromWishlistResponse {
|
|
75
|
+
}
|
|
76
|
+
export interface GetWishlistByIdRequest {
|
|
77
|
+
/** Unique identifier representing requested list */
|
|
78
|
+
_id: string;
|
|
79
|
+
/** List length limit. Default is 100 */
|
|
80
|
+
limit?: number | null;
|
|
81
|
+
/** List starting index offset. Default is 0 */
|
|
82
|
+
offset?: number | null;
|
|
83
|
+
/** Filter requested list by specific kinds of items */
|
|
84
|
+
kind?: WishlistItemKind[];
|
|
85
|
+
}
|
|
86
|
+
export interface GetWishlistByIdResponse {
|
|
87
|
+
/** Object containing requested list data */
|
|
88
|
+
wishlist?: WishlistData;
|
|
89
|
+
}
|
|
90
|
+
export interface GetWishlistsRequest {
|
|
91
|
+
/** List length limit. Default is 100 */
|
|
92
|
+
limit?: number | null;
|
|
93
|
+
/** List starting index offset. Default is 0 */
|
|
94
|
+
offset?: number | null;
|
|
95
|
+
}
|
|
96
|
+
export interface GetWishlistsResponse {
|
|
97
|
+
/** List result of requested wishlists */
|
|
98
|
+
wishlists?: WishlistData[];
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Get wishlist by id
|
|
102
|
+
* @param _id - Unique identifier representing requested list
|
|
103
|
+
* @public
|
|
104
|
+
* @requiredField _id
|
|
105
|
+
* @returns Object containing requested list data
|
|
106
|
+
*/
|
|
107
|
+
export declare function getWishlistById(_id: string, options?: GetWishlistByIdOptions): Promise<WishlistData>;
|
|
108
|
+
export interface GetWishlistByIdOptions {
|
|
109
|
+
/** List length limit. Default is 100 */
|
|
110
|
+
limit?: number | null;
|
|
111
|
+
/** List starting index offset. Default is 0 */
|
|
112
|
+
offset?: number | null;
|
|
113
|
+
/** Filter requested list by specific kinds of items */
|
|
114
|
+
kind?: WishlistItemKind[];
|
|
115
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
22
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
25
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
26
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
exports.getWishlistById = exports.__debug = void 0;
|
|
32
|
+
const velo_1 = require("@wix/metro-runtime/velo");
|
|
33
|
+
const ambassadorWixPlatformV1Wishlist = __importStar(require("./platform-v1-wishlist.http"));
|
|
34
|
+
let __verbose = false;
|
|
35
|
+
function __log(...args) {
|
|
36
|
+
__verbose && console.log(...args);
|
|
37
|
+
}
|
|
38
|
+
function __inspect(obj) {
|
|
39
|
+
return obj;
|
|
40
|
+
}
|
|
41
|
+
exports.__debug = {
|
|
42
|
+
verboseLogging: {
|
|
43
|
+
on: () => (__verbose = true),
|
|
44
|
+
off: () => (__verbose = false),
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
const _toVeloEntity = '$';
|
|
48
|
+
const _fromVeloEntity = '$';
|
|
49
|
+
const _getWishlistByIdRequest = {};
|
|
50
|
+
const _getWishlistByIdResponse = {};
|
|
51
|
+
/**
|
|
52
|
+
* Get wishlist by id
|
|
53
|
+
* @param _id - Unique identifier representing requested list
|
|
54
|
+
* @public
|
|
55
|
+
* @requiredField _id
|
|
56
|
+
* @returns Object containing requested list data
|
|
57
|
+
*/
|
|
58
|
+
function getWishlistById(_id, options) {
|
|
59
|
+
var _a, _b, _c;
|
|
60
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
61
|
+
const requestTransformation = {
|
|
62
|
+
id: '$[0]',
|
|
63
|
+
limit: '$[1].limit',
|
|
64
|
+
offset: '$[1].offset',
|
|
65
|
+
kind: '$[1].kind',
|
|
66
|
+
};
|
|
67
|
+
const responseTransformation = '$.wishlist';
|
|
68
|
+
// @ts-ignore
|
|
69
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
70
|
+
const { toAmbassadorRequest } = velo_1.serializer({
|
|
71
|
+
rootSchema: _getWishlistByIdRequest,
|
|
72
|
+
depSchemas: {},
|
|
73
|
+
fqdnTransformation: {
|
|
74
|
+
paths: [],
|
|
75
|
+
transformation: _fromVeloEntity,
|
|
76
|
+
},
|
|
77
|
+
customTransformation: requestTransformation,
|
|
78
|
+
});
|
|
79
|
+
const { fromJSON } = velo_1.serializer({
|
|
80
|
+
rootSchema: _getWishlistByIdResponse,
|
|
81
|
+
depSchemas: {},
|
|
82
|
+
fqdnTransformation: {
|
|
83
|
+
paths: [...['wishlist']],
|
|
84
|
+
transformation: _toVeloEntity,
|
|
85
|
+
},
|
|
86
|
+
customTransformation: responseTransformation,
|
|
87
|
+
});
|
|
88
|
+
const payload = toAmbassadorRequest([_id, options]);
|
|
89
|
+
const reqOpts = ambassadorWixPlatformV1Wishlist.getWishlistById(payload);
|
|
90
|
+
__log(`"GetWishlistById" sending request with: ${__inspect(reqOpts)}`);
|
|
91
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
92
|
+
try {
|
|
93
|
+
const result = yield httpClient.request(reqOpts);
|
|
94
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
95
|
+
return fromJSON(result.data);
|
|
96
|
+
}
|
|
97
|
+
catch (err) {
|
|
98
|
+
const transformedError = velo_1.transformError(err, requestTransformation, [
|
|
99
|
+
'_id',
|
|
100
|
+
'options',
|
|
101
|
+
]);
|
|
102
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
103
|
+
throw transformedError;
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
exports.getWishlistById = getWishlistById;
|
|
108
|
+
//# sourceMappingURL=platform-v1-wishlist.universal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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
|
1103
|
+
/** Query options. */
|
|
1103
1104
|
query?: Query;
|
|
1104
1105
|
/** Whether number of products should be included in the response. */
|
|
1105
1106
|
includeNumberOfProducts?: boolean;
|
|
1106
|
-
/**
|
|
1107
|
+
/** Wether to include collection description in the response. When `false` is passed, `collection.description` will return null. */
|
|
1107
1108
|
includeDescription?: boolean;
|
|
1108
1109
|
}
|
|
1109
1110
|
export interface QueryCollectionsResponse {
|
|
1111
|
+
/** List of collections. */
|
|
1110
1112
|
collections?: Collection[];
|
|
1113
|
+
/** Details on the paged set of results returned. */
|
|
1111
1114
|
metadata?: PagingMetadata;
|
|
1115
|
+
/** Total number of results returned. */
|
|
1112
1116
|
totalResults?: number;
|
|
1113
1117
|
}
|
|
1114
1118
|
export interface QueryCollectionsPlatformizedRequest {
|
|
@@ -1128,6 +1132,7 @@ export interface GetCollectionRequest {
|
|
|
1128
1132
|
includeNumberOfProducts?: boolean;
|
|
1129
1133
|
}
|
|
1130
1134
|
export interface GetCollectionResponse {
|
|
1135
|
+
/** The requested collection. */
|
|
1131
1136
|
collection?: Collection;
|
|
1132
1137
|
}
|
|
1133
1138
|
export interface GetCollectionBySlugRequest {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stores-catalog-v1-product-products.universal.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product-products.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AAEjC,sGAAwF;AACxF,aAAa;AACb,4FAA6E;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,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AIX;AAJD,WAAY,UAAU;IACpB,iEAAmD,CAAA;IACnD,qCAAuB,CAAA;IACvB,6BAAe,CAAA;AACjB,CAAC,EAJW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAIrB;AAsCD,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,kBAAkB;IAClB,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AAwsBD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;
|
|
1
|
+
{"version":3,"file":"stores-catalog-v1-product-products.universal.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product-products.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AAEjC,sGAAwF;AACxF,aAAa;AACb,4FAA6E;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAgI5B,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,oEAAqD,CAAA;IACrD,oCAAqB,CAAA;IACrB,k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,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AAzDD,gCAyDC"}
|
|
@@ -1094,15 +1094,19 @@ export interface GetProductResponse {
|
|
|
1094
1094
|
product?: Product;
|
|
1095
1095
|
}
|
|
1096
1096
|
export interface QueryCollectionsRequest {
|
|
1097
|
+
/** Query options. */
|
|
1097
1098
|
query?: Query;
|
|
1098
1099
|
/** Whether number of products should be included in the response. */
|
|
1099
1100
|
includeNumberOfProducts?: boolean;
|
|
1100
|
-
/**
|
|
1101
|
+
/** Wether to include collection description in the response. When `false` is passed, `collection.description` will return null. */
|
|
1101
1102
|
includeDescription?: boolean;
|
|
1102
1103
|
}
|
|
1103
1104
|
export interface QueryCollectionsResponse {
|
|
1105
|
+
/** List of collections. */
|
|
1104
1106
|
collections?: Collection[];
|
|
1107
|
+
/** Details on the paged set of results returned. */
|
|
1105
1108
|
metadata?: PagingMetadata;
|
|
1109
|
+
/** Total number of results returned. */
|
|
1106
1110
|
totalResults?: number;
|
|
1107
1111
|
}
|
|
1108
1112
|
export interface QueryCollectionsPlatformizedRequest {
|
|
@@ -1122,6 +1126,7 @@ export interface GetCollectionRequest {
|
|
|
1122
1126
|
includeNumberOfProducts?: boolean;
|
|
1123
1127
|
}
|
|
1124
1128
|
export interface GetCollectionResponse {
|
|
1129
|
+
/** The requested collection. */
|
|
1125
1130
|
collection?: Collection;
|
|
1126
1131
|
}
|
|
1127
1132
|
export interface GetCollectionBySlugRequest {
|
package/build/es/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as catalog from './src/stores-v2-inventory.public';
|
|
2
|
+
export * as wishlist from './src/platform-v1-wishlist.public';
|
|
2
3
|
export * as collections from './src/stores-catalog-v1-collection.public';
|
|
3
4
|
export * as products from './src/stores-catalog-v1-product-products.public';
|
|
4
5
|
export * as orders from './src/stores-v2-orders.public';
|
package/build/es/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * as catalog from './src/stores-v2-inventory.public';
|
|
2
|
+
export * as wishlist from './src/platform-v1-wishlist.public';
|
|
2
3
|
export * as collections from './src/stores-catalog-v1-collection.public';
|
|
3
4
|
export * as products from './src/stores-catalog-v1-product-products.public';
|
|
4
5
|
export * as orders from './src/stores-v2-orders.public';
|
package/build/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kCAAkC,CAAC;AAC5D,OAAO,KAAK,WAAW,MAAM,2CAA2C,CAAC;AACzE,OAAO,KAAK,QAAQ,MAAM,iDAAiD,CAAC;AAC5E,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kCAAkC,CAAC;AAC5D,OAAO,KAAK,QAAQ,MAAM,mCAAmC,CAAC;AAC9D,OAAO,KAAK,WAAW,MAAM,2CAA2C,CAAC;AACzE,OAAO,KAAK,QAAQ,MAAM,iDAAiD,CAAC;AAC5E,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
import { GetWishlistByIdRequest, GetWishlistByIdResponse } from './platform-v1-wishlist.types';
|
|
3
|
+
/** Get wishlist by id */
|
|
4
|
+
export declare function getWishlistById(payload: GetWishlistByIdRequest): RequestOptionsFactory<GetWishlistByIdResponse>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { serializer } from '@wix/metro-runtime/ambassador';
|
|
2
|
+
import { resolveUrl } from '@wix/metro-runtime';
|
|
3
|
+
const _getWishlistByIdRequest = {};
|
|
4
|
+
const _getWishlistByIdResponse = { wishlist: '_wishlistData' };
|
|
5
|
+
const _wishlistData = { items: '_wishlistItem' };
|
|
6
|
+
const _wishlistItem = { dateAdded: 'google.protobuf.Timestamp' };
|
|
7
|
+
function resolveComWixpressWishlistWishlistUrl(opts) {
|
|
8
|
+
const domainToMappings = {
|
|
9
|
+
'bo._base_domain_': [
|
|
10
|
+
{
|
|
11
|
+
srcPath: '/wishlist-server',
|
|
12
|
+
destPath: '',
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
'api._api_base_domain_': [
|
|
16
|
+
{
|
|
17
|
+
srcPath: '/wishlist-server',
|
|
18
|
+
destPath: '',
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
_: [
|
|
22
|
+
{
|
|
23
|
+
srcPath: '/_api/wishlist-server',
|
|
24
|
+
destPath: '',
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
'ecom._base_domain_': [
|
|
28
|
+
{
|
|
29
|
+
srcPath: '/_api/wishlist-server',
|
|
30
|
+
destPath: '',
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
'manage._base_domain_': [
|
|
34
|
+
{
|
|
35
|
+
srcPath: '/_api/wishlist-server',
|
|
36
|
+
destPath: '/api',
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
'*.dev.wix-code.com': [
|
|
40
|
+
{
|
|
41
|
+
srcPath: '/_api/wishlist-server',
|
|
42
|
+
destPath: '',
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
'www.wixapis.com': [
|
|
46
|
+
{
|
|
47
|
+
srcPath: '/stores/v1/wishlists',
|
|
48
|
+
destPath: '/v1/wishlists',
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
'www._base_domain_': [
|
|
52
|
+
{
|
|
53
|
+
srcPath: '/_api/wishlist-server',
|
|
54
|
+
destPath: '',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
};
|
|
58
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
59
|
+
}
|
|
60
|
+
/** Get wishlist by id */
|
|
61
|
+
export function getWishlistById(payload) {
|
|
62
|
+
const { toJSON: toReq, fromJSON: fromReq } = serializer(_getWishlistByIdRequest, {});
|
|
63
|
+
const { fromJSON: fromRes } = serializer(_getWishlistByIdResponse, {
|
|
64
|
+
_wishlistData,
|
|
65
|
+
_wishlistItem,
|
|
66
|
+
});
|
|
67
|
+
function __getWishlistById({ host }) {
|
|
68
|
+
const serializedData = toReq(payload);
|
|
69
|
+
const metadata = {
|
|
70
|
+
method: 'POST',
|
|
71
|
+
url: resolveComWixpressWishlistWishlistUrl({
|
|
72
|
+
protoPath: '/v1/wishlists/get',
|
|
73
|
+
data: serializedData,
|
|
74
|
+
host,
|
|
75
|
+
}),
|
|
76
|
+
data: serializedData,
|
|
77
|
+
transformResponse: fromRes,
|
|
78
|
+
};
|
|
79
|
+
return metadata;
|
|
80
|
+
}
|
|
81
|
+
__getWishlistById.fromReq = fromReq;
|
|
82
|
+
return __getWishlistById;
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=platform-v1-wishlist.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-v1-wishlist.http.js","sourceRoot":"","sources":["../../../src/platform-v1-wishlist.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAQhD,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,wBAAwB,GAAG,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC;AAC/D,MAAM,aAAa,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;AACjD,MAAM,aAAa,GAAG,EAAE,SAAS,EAAE,2BAA2B,EAAE,CAAC;AAEjE,SAAS,qCAAqC,CAC5C,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,kBAAkB,EAAE;YAClB;gBACE,OAAO,EAA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AAE,qCAAqC,CAAC;gBACzC,SAAS,EAAE,mBAAmB;gBAC9B,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,iBAAiB,CAAC,OAAO,GAAG,OAAO,CAAC;IAEpC,OAAO,iBAAiB,CAAC;AAC3B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { GetWishlistByIdOptions } from './platform-v1-wishlist.universal';
|
|
3
|
+
export declare function getWishlistById(httpClient: HttpClient): (_id: string, options?: GetWishlistByIdOptions | undefined) => Promise<import("./platform-v1-wishlist.universal").WishlistData>;
|
|
4
|
+
export { WishlistData, WishlistItem, ItemsAddedToWishlist, ItemsRemovedFromWishlist, GetWishlistRequest, WishlistItemKind, GetWishlistResponse, AddToWishlistRequest, AddToWishlistResponse, RemoveFromWishlistRequest, RemoveFromWishlistResponse, GetWishlistByIdRequest, GetWishlistByIdResponse, GetWishlistsRequest, GetWishlistsResponse, GetWishlistByIdOptions, } from './platform-v1-wishlist.universal';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { getWishlistById as universalGetWishlistById, } from './platform-v1-wishlist.universal';
|
|
2
|
+
export function getWishlistById(httpClient) {
|
|
3
|
+
return (_id, options) => universalGetWishlistById(_id, options,
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
{ httpClient });
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=platform-v1-wishlist.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-v1-wishlist.public.js","sourceRoot":"","sources":["../../../src/platform-v1-wishlist.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,IAAI,wBAAwB,GAE5C,MAAM,kCAAkC,CAAC;AAE1C,MAAM,UAAU,eAAe,CAAC,UAAsB;IACpD,OAAO,CAAC,GAAW,EAAE,OAAgC,EAAE,EAAE,CACvD,wBAAwB,CACtB,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-v1-wishlist.types.js","sourceRoot":"","sources":["../../../src/platform-v1-wishlist.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
export declare const __debug: {
|
|
2
|
+
verboseLogging: {
|
|
3
|
+
on: () => boolean;
|
|
4
|
+
off: () => boolean;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export interface WishlistData {
|
|
8
|
+
/** GUID unique to this list for this site */
|
|
9
|
+
_id?: string | null;
|
|
10
|
+
/** Member id the list belongs to */
|
|
11
|
+
ownerId?: string;
|
|
12
|
+
/** List of items in the list. Not necessarily the full list (can depends on request data) */
|
|
13
|
+
items?: WishlistItem[];
|
|
14
|
+
/** Total count of items in the list */
|
|
15
|
+
totalCount?: number;
|
|
16
|
+
}
|
|
17
|
+
export interface WishlistItem {
|
|
18
|
+
/** Unique identifier for an item of this type and origin */
|
|
19
|
+
_id?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The data the item was save to the list
|
|
22
|
+
* @readonly
|
|
23
|
+
*/
|
|
24
|
+
dateAdded?: Date;
|
|
25
|
+
/** The type of the item. For example "product" */
|
|
26
|
+
type?: string;
|
|
27
|
+
/** The origin of the item. Should be the scope the item type is related to. For example "wixstores" */
|
|
28
|
+
origin?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ItemsAddedToWishlist {
|
|
31
|
+
/** GUID unique to this list for its site */
|
|
32
|
+
_id?: string | null;
|
|
33
|
+
/** Member id the list belongs to */
|
|
34
|
+
ownerId?: string;
|
|
35
|
+
/** List of items that were added to wishlist */
|
|
36
|
+
items?: WishlistItem[];
|
|
37
|
+
}
|
|
38
|
+
export interface ItemsRemovedFromWishlist {
|
|
39
|
+
/** GUID unique to this list for its site */
|
|
40
|
+
_id?: string | null;
|
|
41
|
+
/** Member id the list belongs to */
|
|
42
|
+
ownerId?: string;
|
|
43
|
+
/** List of items that were removed from wishlist */
|
|
44
|
+
items?: WishlistItem[];
|
|
45
|
+
}
|
|
46
|
+
export interface GetWishlistRequest {
|
|
47
|
+
/** List length limit. Default is 100 */
|
|
48
|
+
limit?: number | null;
|
|
49
|
+
/** List starting index offset. Default is 0 */
|
|
50
|
+
offset?: number | null;
|
|
51
|
+
/** Filter requested list by specific kinds of items */
|
|
52
|
+
kind?: WishlistItemKind[];
|
|
53
|
+
}
|
|
54
|
+
export interface WishlistItemKind {
|
|
55
|
+
/** The type of the item. For example "product" */
|
|
56
|
+
type?: string;
|
|
57
|
+
/** The origin of the item. Should be the scope the item type is related to. For example "wixstores" */
|
|
58
|
+
origin?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface GetWishlistResponse {
|
|
61
|
+
/** Object containing requested list data */
|
|
62
|
+
wishlist?: WishlistData;
|
|
63
|
+
}
|
|
64
|
+
export interface AddToWishlistRequest {
|
|
65
|
+
/** List of items to add to list */
|
|
66
|
+
items?: WishlistItem[];
|
|
67
|
+
}
|
|
68
|
+
export interface AddToWishlistResponse {
|
|
69
|
+
}
|
|
70
|
+
export interface RemoveFromWishlistRequest {
|
|
71
|
+
/** List of items to remove from list */
|
|
72
|
+
items?: WishlistItem[];
|
|
73
|
+
}
|
|
74
|
+
export interface RemoveFromWishlistResponse {
|
|
75
|
+
}
|
|
76
|
+
export interface GetWishlistByIdRequest {
|
|
77
|
+
/** Unique identifier representing requested list */
|
|
78
|
+
_id: string;
|
|
79
|
+
/** List length limit. Default is 100 */
|
|
80
|
+
limit?: number | null;
|
|
81
|
+
/** List starting index offset. Default is 0 */
|
|
82
|
+
offset?: number | null;
|
|
83
|
+
/** Filter requested list by specific kinds of items */
|
|
84
|
+
kind?: WishlistItemKind[];
|
|
85
|
+
}
|
|
86
|
+
export interface GetWishlistByIdResponse {
|
|
87
|
+
/** Object containing requested list data */
|
|
88
|
+
wishlist?: WishlistData;
|
|
89
|
+
}
|
|
90
|
+
export interface GetWishlistsRequest {
|
|
91
|
+
/** List length limit. Default is 100 */
|
|
92
|
+
limit?: number | null;
|
|
93
|
+
/** List starting index offset. Default is 0 */
|
|
94
|
+
offset?: number | null;
|
|
95
|
+
}
|
|
96
|
+
export interface GetWishlistsResponse {
|
|
97
|
+
/** List result of requested wishlists */
|
|
98
|
+
wishlists?: WishlistData[];
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Get wishlist by id
|
|
102
|
+
* @param _id - Unique identifier representing requested list
|
|
103
|
+
* @public
|
|
104
|
+
* @requiredField _id
|
|
105
|
+
* @returns Object containing requested list data
|
|
106
|
+
*/
|
|
107
|
+
export declare function getWishlistById(_id: string, options?: GetWishlistByIdOptions): Promise<WishlistData>;
|
|
108
|
+
export interface GetWishlistByIdOptions {
|
|
109
|
+
/** List length limit. Default is 100 */
|
|
110
|
+
limit?: number | null;
|
|
111
|
+
/** List starting index offset. Default is 0 */
|
|
112
|
+
offset?: number | null;
|
|
113
|
+
/** Filter requested list by specific kinds of items */
|
|
114
|
+
kind?: WishlistItemKind[];
|
|
115
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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, transformError } from '@wix/metro-runtime/velo';
|
|
11
|
+
import * as ambassadorWixPlatformV1Wishlist from './platform-v1-wishlist.http';
|
|
12
|
+
let __verbose = false;
|
|
13
|
+
function __log(...args) {
|
|
14
|
+
__verbose && console.log(...args);
|
|
15
|
+
}
|
|
16
|
+
function __inspect(obj) {
|
|
17
|
+
return obj;
|
|
18
|
+
}
|
|
19
|
+
export const __debug = {
|
|
20
|
+
verboseLogging: {
|
|
21
|
+
on: () => (__verbose = true),
|
|
22
|
+
off: () => (__verbose = false),
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
const _toVeloEntity = '$';
|
|
26
|
+
const _fromVeloEntity = '$';
|
|
27
|
+
const _getWishlistByIdRequest = {};
|
|
28
|
+
const _getWishlistByIdResponse = {};
|
|
29
|
+
/**
|
|
30
|
+
* Get wishlist by id
|
|
31
|
+
* @param _id - Unique identifier representing requested list
|
|
32
|
+
* @public
|
|
33
|
+
* @requiredField _id
|
|
34
|
+
* @returns Object containing requested list data
|
|
35
|
+
*/
|
|
36
|
+
export function getWishlistById(_id, options) {
|
|
37
|
+
var _a, _b, _c;
|
|
38
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
39
|
+
const requestTransformation = {
|
|
40
|
+
id: '$[0]',
|
|
41
|
+
limit: '$[1].limit',
|
|
42
|
+
offset: '$[1].offset',
|
|
43
|
+
kind: '$[1].kind',
|
|
44
|
+
};
|
|
45
|
+
const responseTransformation = '$.wishlist';
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
48
|
+
const { toAmbassadorRequest } = serializer({
|
|
49
|
+
rootSchema: _getWishlistByIdRequest,
|
|
50
|
+
depSchemas: {},
|
|
51
|
+
fqdnTransformation: {
|
|
52
|
+
paths: [],
|
|
53
|
+
transformation: _fromVeloEntity,
|
|
54
|
+
},
|
|
55
|
+
customTransformation: requestTransformation,
|
|
56
|
+
});
|
|
57
|
+
const { fromJSON } = serializer({
|
|
58
|
+
rootSchema: _getWishlistByIdResponse,
|
|
59
|
+
depSchemas: {},
|
|
60
|
+
fqdnTransformation: {
|
|
61
|
+
paths: [...['wishlist']],
|
|
62
|
+
transformation: _toVeloEntity,
|
|
63
|
+
},
|
|
64
|
+
customTransformation: responseTransformation,
|
|
65
|
+
});
|
|
66
|
+
const payload = toAmbassadorRequest([_id, options]);
|
|
67
|
+
const reqOpts = ambassadorWixPlatformV1Wishlist.getWishlistById(payload);
|
|
68
|
+
__log(`"GetWishlistById" sending request with: ${__inspect(reqOpts)}`);
|
|
69
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
70
|
+
try {
|
|
71
|
+
const result = yield httpClient.request(reqOpts);
|
|
72
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
73
|
+
return fromJSON(result.data);
|
|
74
|
+
}
|
|
75
|
+
catch (err) {
|
|
76
|
+
const transformedError = transformError(err, requestTransformation, [
|
|
77
|
+
'_id',
|
|
78
|
+
'options',
|
|
79
|
+
]);
|
|
80
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
81
|
+
throw transformedError;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=platform-v1-wishlist.universal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-v1-wishlist.universal.js","sourceRoot":"","sources":["../../../src/platform-v1-wishlist.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,+BAA+B,MAAM,6BAA6B,CAAC;AAE/E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,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aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;QAEpD,MAAM,OAAO,GAAG,+BAA+B,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QAEzE,KAAK,CAAC,2CAA2C,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAEvE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,KAAK;gBACL,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
|
|
@@ -1100,15 +1100,19 @@ export interface GetProductResponse {
|
|
|
1100
1100
|
product?: Product;
|
|
1101
1101
|
}
|
|
1102
1102
|
export interface QueryCollectionsRequest {
|
|
1103
|
+
/** Query options. */
|
|
1103
1104
|
query?: Query;
|
|
1104
1105
|
/** Whether number of products should be included in the response. */
|
|
1105
1106
|
includeNumberOfProducts?: boolean;
|
|
1106
|
-
/**
|
|
1107
|
+
/** Wether to include collection description in the response. When `false` is passed, `collection.description` will return null. */
|
|
1107
1108
|
includeDescription?: boolean;
|
|
1108
1109
|
}
|
|
1109
1110
|
export interface QueryCollectionsResponse {
|
|
1111
|
+
/** List of collections. */
|
|
1110
1112
|
collections?: Collection[];
|
|
1113
|
+
/** Details on the paged set of results returned. */
|
|
1111
1114
|
metadata?: PagingMetadata;
|
|
1115
|
+
/** Total number of results returned. */
|
|
1112
1116
|
totalResults?: number;
|
|
1113
1117
|
}
|
|
1114
1118
|
export interface QueryCollectionsPlatformizedRequest {
|
|
@@ -1128,6 +1132,7 @@ export interface GetCollectionRequest {
|
|
|
1128
1132
|
includeNumberOfProducts?: boolean;
|
|
1129
1133
|
}
|
|
1130
1134
|
export interface GetCollectionResponse {
|
|
1135
|
+
/** The requested collection. */
|
|
1131
1136
|
collection?: Collection;
|
|
1132
1137
|
}
|
|
1133
1138
|
export interface GetCollectionBySlugRequest {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stores-catalog-v1-product-products.universal.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product-products.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,mCAAmC,MAAM,kCAAkC,CAAC;AACxF,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,a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D,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,kBAAkB;IAClB,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AAwsBD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;
|
|
1
|
+
{"version":3,"file":"stores-catalog-v1-product-products.universal.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product-products.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,mCAAmC,MAAM,kCAAkC,CAAC;AACxF,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAgI5B,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,oEAAqD,CAAA;IACrD,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;AACrB,CAAC,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M,gBAAgB,CAAC;SACxB;;CACF"}
|
|
@@ -1094,15 +1094,19 @@ export interface GetProductResponse {
|
|
|
1094
1094
|
product?: Product;
|
|
1095
1095
|
}
|
|
1096
1096
|
export interface QueryCollectionsRequest {
|
|
1097
|
+
/** Query options. */
|
|
1097
1098
|
query?: Query;
|
|
1098
1099
|
/** Whether number of products should be included in the response. */
|
|
1099
1100
|
includeNumberOfProducts?: boolean;
|
|
1100
|
-
/**
|
|
1101
|
+
/** Wether to include collection description in the response. When `false` is passed, `collection.description` will return null. */
|
|
1101
1102
|
includeDescription?: boolean;
|
|
1102
1103
|
}
|
|
1103
1104
|
export interface QueryCollectionsResponse {
|
|
1105
|
+
/** List of collections. */
|
|
1104
1106
|
collections?: Collection[];
|
|
1107
|
+
/** Details on the paged set of results returned. */
|
|
1105
1108
|
metadata?: PagingMetadata;
|
|
1109
|
+
/** Total number of results returned. */
|
|
1106
1110
|
totalResults?: number;
|
|
1107
1111
|
}
|
|
1108
1112
|
export interface QueryCollectionsPlatformizedRequest {
|
|
@@ -1122,6 +1126,7 @@ export interface GetCollectionRequest {
|
|
|
1122
1126
|
includeNumberOfProducts?: boolean;
|
|
1123
1127
|
}
|
|
1124
1128
|
export interface GetCollectionResponse {
|
|
1129
|
+
/** The requested collection. */
|
|
1125
1130
|
collection?: Collection;
|
|
1126
1131
|
}
|
|
1127
1132
|
export interface GetCollectionBySlugRequest {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/stores",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"falconPackageHash": "
|
|
36
|
+
"falconPackageHash": "908f40947142962b0564a7513705d83cc03813287214804479b2339f"
|
|
37
37
|
}
|