@wix/stores 1.0.134 → 1.0.136
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,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.onInventoryVariantsChanged = exports.onInventoryItemChanged = exports.ReasonType = exports.incrementInventory = exports.decrementInventory = exports.updateInventoryVariants = exports.queryInventory = exports.getInventoryVariants = exports.__metadata = void 0;
|
|
4
|
-
const stores_v2_inventory_universal_1 = require("./stores-v2-inventory.universal");
|
|
5
|
-
exports.__metadata = { PACKAGE_NAME: '@wix/stores' };
|
|
6
|
-
function getInventoryVariants(httpClient) {
|
|
7
|
-
return (inventoryId, options) => (0, stores_v2_inventory_universal_1.getInventoryVariants)(inventoryId, options,
|
|
8
|
-
// @ts-ignore
|
|
9
|
-
{ httpClient });
|
|
10
|
-
}
|
|
11
|
-
exports.getInventoryVariants = getInventoryVariants;
|
|
12
|
-
function queryInventory(httpClient) {
|
|
13
|
-
return (options) => (0, stores_v2_inventory_universal_1.queryInventory)(options,
|
|
14
|
-
// @ts-ignore
|
|
15
|
-
{ httpClient });
|
|
16
|
-
}
|
|
17
|
-
exports.queryInventory = queryInventory;
|
|
18
|
-
function updateInventoryVariants(httpClient) {
|
|
19
|
-
return (productId, inventoryItem) => (0, stores_v2_inventory_universal_1.updateInventoryVariants)(productId, inventoryItem,
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
{ httpClient });
|
|
22
|
-
}
|
|
23
|
-
exports.updateInventoryVariants = updateInventoryVariants;
|
|
24
|
-
function decrementInventory(httpClient) {
|
|
25
|
-
return (decrementData) => (0, stores_v2_inventory_universal_1.decrementInventory)(decrementData,
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
{ httpClient });
|
|
28
|
-
}
|
|
29
|
-
exports.decrementInventory = decrementInventory;
|
|
30
|
-
function incrementInventory(httpClient) {
|
|
31
|
-
return (incrementData) => (0, stores_v2_inventory_universal_1.incrementInventory)(incrementData,
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
{ httpClient });
|
|
34
|
-
}
|
|
35
|
-
exports.incrementInventory = incrementInventory;
|
|
36
|
-
var stores_v2_inventory_universal_2 = require("./stores-v2-inventory.universal");
|
|
37
|
-
Object.defineProperty(exports, "ReasonType", { enumerable: true, get: function () { return stores_v2_inventory_universal_2.ReasonType; } });
|
|
38
|
-
var stores_v2_inventory_universal_3 = require("./stores-v2-inventory.universal");
|
|
39
|
-
Object.defineProperty(exports, "onInventoryItemChanged", { enumerable: true, get: function () { return stores_v2_inventory_universal_3.onInventoryItemChanged; } });
|
|
40
|
-
Object.defineProperty(exports, "onInventoryVariantsChanged", { enumerable: true, get: function () { return stores_v2_inventory_universal_3.onInventoryVariantsChanged; } });
|
|
41
|
-
//# sourceMappingURL=stores-v2-inventory.public.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stores-v2-inventory.public.js","sourceRoot":"","sources":["../../../src/stores-v2-inventory.public.ts"],"names":[],"mappings":";;;AACA,mFAWyC;AAE5B,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC;AAE1D,SAAgB,oBAAoB,CAAC,UAAsB;IACzD,OAAO,CAAC,WAAmB,EAAE,OAAqC,EAAE,EAAE,CACpE,IAAA,oDAA6B,EAC3B,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,oDAQC;AAED,SAAgB,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,OAA+B,EAAE,EAAE,CACzC,IAAA,8CAAuB,EACrB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,wCAOC;AAED,SAAgB,uBAAuB,CAAC,UAAsB;IAC5D,OAAO,CACL,SAAwB,EACxB,aAAmD,EACnD,EAAE,CACF,IAAA,uDAAgC,EAC9B,SAAS,EACT,aAAa;IACb,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAXD,0DAWC;AAED,SAAgB,kBAAkB,CAAC,UAAsB;IACvD,OAAO,CAAC,aAA8B,EAAE,EAAE,CACxC,IAAA,kDAA2B,EACzB,aAAa;IACb,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,gDAOC;AAED,SAAgB,kBAAkB,CAAC,UAAsB;IACvD,OAAO,CAAC,aAA8B,EAAE,EAAE,CACxC,IAAA,kDAA2B,EACzB,aAAa;IACb,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,gDAOC;AAED,iFAA6D;AAApD,2HAAA,UAAU,OAAA;AAwCnB,iFAGyC;AAFvC,uIAAA,sBAAsB,OAAA;AACtB,2IAAA,0BAA0B,OAAA"}
|
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
export interface InventoryItemV2 {
|
|
2
|
-
/** Inventory item ID. */
|
|
3
|
-
id?: string | null;
|
|
4
|
-
/**
|
|
5
|
-
* Deprecated: use productId.
|
|
6
|
-
* @readonly
|
|
7
|
-
*/
|
|
8
|
-
externalId?: string | null;
|
|
9
|
-
/**
|
|
10
|
-
* Product ID.
|
|
11
|
-
* @readonly
|
|
12
|
-
*/
|
|
13
|
-
productId?: string | null;
|
|
14
|
-
/** Whether quantity is being tracked. */
|
|
15
|
-
trackQuantity?: boolean | null;
|
|
16
|
-
/** Variants associated with this inventory item. */
|
|
17
|
-
variants?: InventoryVariantV2[];
|
|
18
|
-
/**
|
|
19
|
-
* Last updated timestamp.
|
|
20
|
-
* @readonly
|
|
21
|
-
*/
|
|
22
|
-
lastUpdated?: Date;
|
|
23
|
-
/**
|
|
24
|
-
* Inventory’s unique numeric ID (assigned in ascending order).
|
|
25
|
-
* Primarily for sorting and filtering when crawling all inventories.
|
|
26
|
-
* @readonly
|
|
27
|
-
*/
|
|
28
|
-
numericId?: string;
|
|
29
|
-
/** Preorder information. */
|
|
30
|
-
preorderInfo?: PreorderInfo;
|
|
31
|
-
}
|
|
32
|
-
export interface InventoryVariantV2 {
|
|
33
|
-
/** Variant ID. */
|
|
34
|
-
variantId?: string;
|
|
35
|
-
/** Whether the product is listed as in stock. */
|
|
36
|
-
inStock?: boolean | null;
|
|
37
|
-
/** Quantity currently left in inventory. */
|
|
38
|
-
quantity?: number | null;
|
|
39
|
-
/**
|
|
40
|
-
* Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level.
|
|
41
|
-
* @readonly
|
|
42
|
-
*/
|
|
43
|
-
availableForPreorder?: boolean;
|
|
44
|
-
}
|
|
45
|
-
export interface PreorderInfo {
|
|
46
|
-
/** Whether the item is available for preorder. */
|
|
47
|
-
enabled?: boolean;
|
|
48
|
-
/** A message the buyer will see when the item is out of stock and preorder is enabled. */
|
|
49
|
-
message?: string | null;
|
|
50
|
-
/** Number of products that can be preordered after stock reaches zero. */
|
|
51
|
-
limit?: number | null;
|
|
52
|
-
}
|
|
53
|
-
export interface InventoryItemChanged {
|
|
54
|
-
/** Inventory item ID. */
|
|
55
|
-
inventoryItemId?: string;
|
|
56
|
-
/** Deprecated: use productId. */
|
|
57
|
-
externalId?: string;
|
|
58
|
-
/** Product ID. */
|
|
59
|
-
productId?: string;
|
|
60
|
-
/** Whether inventory is being tracked. */
|
|
61
|
-
trackInventory?: boolean;
|
|
62
|
-
/** Preorder information. */
|
|
63
|
-
preorderInfo?: PreorderInfo;
|
|
64
|
-
/** Date and time the inventory item was last updated. */
|
|
65
|
-
updatedDate?: Date;
|
|
66
|
-
}
|
|
67
|
-
export interface InventoryVariantsChanged {
|
|
68
|
-
/** Inventory item ID. */
|
|
69
|
-
inventoryItemId?: string;
|
|
70
|
-
/** Deprecated: use productId. */
|
|
71
|
-
externalId?: string;
|
|
72
|
-
/** Product ID. */
|
|
73
|
-
productId?: string;
|
|
74
|
-
/** Information about changed variants. */
|
|
75
|
-
variants?: ChangedInventoryVariant[];
|
|
76
|
-
/** Date and time the inventory variant item was last updated. */
|
|
77
|
-
updatedDate?: Date;
|
|
78
|
-
}
|
|
79
|
-
export interface ChangedInventoryVariant {
|
|
80
|
-
/** Variant ID. */
|
|
81
|
-
id?: string;
|
|
82
|
-
/** Previous inventory variant data. */
|
|
83
|
-
oldValue?: ChangedInventoryVariantData;
|
|
84
|
-
/** Current inventory variant data. */
|
|
85
|
-
newValue?: ChangedInventoryVariantData;
|
|
86
|
-
}
|
|
87
|
-
export interface ChangedInventoryVariantData {
|
|
88
|
-
/** Inventory variant quantity. */
|
|
89
|
-
quantity?: number | null;
|
|
90
|
-
/** Whether the product variant is in stock. */
|
|
91
|
-
inStock?: boolean;
|
|
92
|
-
/** Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level. */
|
|
93
|
-
availableForPreorder?: boolean;
|
|
94
|
-
}
|
|
95
|
-
export declare enum ReasonType {
|
|
96
|
-
UNKNOWN = "UNKNOWN",
|
|
97
|
-
ORDER = "ORDER",
|
|
98
|
-
MANUAL = "MANUAL",
|
|
99
|
-
REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
|
|
100
|
-
}
|
|
101
|
-
export interface GetInventoryVariantsRequest extends GetInventoryVariantsRequestIdOneOf {
|
|
102
|
-
/** Inventory item ID. */
|
|
103
|
-
inventoryId: string;
|
|
104
|
-
/** Deprecated (use productID instead). */
|
|
105
|
-
externalId?: string;
|
|
106
|
-
/** Product ID. */
|
|
107
|
-
productId?: string;
|
|
108
|
-
/** Variant IDs to query for this inventory item (optional). */
|
|
109
|
-
variantIds?: string[];
|
|
110
|
-
}
|
|
111
|
-
/** @oneof */
|
|
112
|
-
export interface GetInventoryVariantsRequestIdOneOf {
|
|
113
|
-
/** Inventory item ID. */
|
|
114
|
-
inventoryId?: string;
|
|
115
|
-
/** Deprecated (use productID instead). */
|
|
116
|
-
externalId?: string;
|
|
117
|
-
/** Product ID. */
|
|
118
|
-
productId?: string;
|
|
119
|
-
}
|
|
120
|
-
export interface GetInventoryVariantsResponse {
|
|
121
|
-
/** Inventory item. */
|
|
122
|
-
inventoryItem?: InventoryItemV2;
|
|
123
|
-
}
|
|
124
|
-
export interface GetInventoryItemsRequest {
|
|
125
|
-
/** Product IDs */
|
|
126
|
-
productIds?: string[];
|
|
127
|
-
}
|
|
128
|
-
export interface GetInventoryItemsResponse {
|
|
129
|
-
/** Inventory items. */
|
|
130
|
-
inventoryItems?: InventoryItemV2[];
|
|
131
|
-
}
|
|
132
|
-
export interface QueryInventoryRequest {
|
|
133
|
-
query?: Query;
|
|
134
|
-
}
|
|
135
|
-
export interface Query {
|
|
136
|
-
paging?: Paging;
|
|
137
|
-
/** Filter string */
|
|
138
|
-
filter?: string | null;
|
|
139
|
-
/** Sort string */
|
|
140
|
-
sort?: string | null;
|
|
141
|
-
}
|
|
142
|
-
export interface Paging {
|
|
143
|
-
/** Amount of items to load per page */
|
|
144
|
-
limit?: number | null;
|
|
145
|
-
/** Number of items to skip in the display (relevant for all pages after the first) */
|
|
146
|
-
offset?: number | null;
|
|
147
|
-
}
|
|
148
|
-
export interface QueryInventoryResponse {
|
|
149
|
-
/** Inventory items. */
|
|
150
|
-
inventoryItems?: InventoryItemV2[];
|
|
151
|
-
/** Display metadata. */
|
|
152
|
-
metadata?: PagingMetadata;
|
|
153
|
-
/** Number of total results. */
|
|
154
|
-
totalResults?: number;
|
|
155
|
-
}
|
|
156
|
-
export interface PagingMetadata {
|
|
157
|
-
/** Amount of items to load per page */
|
|
158
|
-
items?: number;
|
|
159
|
-
/** Number of items to skip in the display (relevant for all pages after the first) */
|
|
160
|
-
offset?: number;
|
|
161
|
-
}
|
|
162
|
-
export interface UpdateInventoryVariantsRequest {
|
|
163
|
-
/** Inventory item. */
|
|
164
|
-
inventoryItem: InventoryItemV2;
|
|
165
|
-
}
|
|
166
|
-
export interface UpdateInventoryVariantsResponse {
|
|
167
|
-
}
|
|
168
|
-
export interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
|
|
169
|
-
/** Change availability. */
|
|
170
|
-
setInStock?: boolean | null;
|
|
171
|
-
/** Set new quantity. */
|
|
172
|
-
setQuantity?: number | null;
|
|
173
|
-
/** Number to increment inventory by. */
|
|
174
|
-
incrementBy?: number | null;
|
|
175
|
-
/** Number to decrement inventory by. */
|
|
176
|
-
decrementBy?: number | null;
|
|
177
|
-
/** Variants filter. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
|
|
178
|
-
filter?: Record<string, any> | null;
|
|
179
|
-
}
|
|
180
|
-
/** @oneof */
|
|
181
|
-
export interface BulkUpdateInventoryVariantsRequestActionOneOf {
|
|
182
|
-
/** Change availability. */
|
|
183
|
-
setInStock?: boolean | null;
|
|
184
|
-
/** Set new quantity. */
|
|
185
|
-
setQuantity?: number | null;
|
|
186
|
-
/** Number to increment inventory by. */
|
|
187
|
-
incrementBy?: number | null;
|
|
188
|
-
/** Number to decrement inventory by. */
|
|
189
|
-
decrementBy?: number | null;
|
|
190
|
-
}
|
|
191
|
-
export interface BulkUpdateInventoryVariantsResponse {
|
|
192
|
-
}
|
|
193
|
-
export interface BulkUpdateInventoryItemsRequest {
|
|
194
|
-
/** Variants filter */
|
|
195
|
-
variantsFilter?: Record<string, any> | null;
|
|
196
|
-
/** Whether inventory is being tracked. */
|
|
197
|
-
trackInventory?: boolean | null;
|
|
198
|
-
}
|
|
199
|
-
export interface BulkUpdateInventoryItemsResponse {
|
|
200
|
-
}
|
|
201
|
-
export interface DecrementInventoryRequest {
|
|
202
|
-
decrementData?: DecrementData[];
|
|
203
|
-
}
|
|
204
|
-
export interface DecrementData extends DecrementDataIdOneOf {
|
|
205
|
-
/** Inventory item ID. */
|
|
206
|
-
inventoryId?: string;
|
|
207
|
-
/** Deprecated: use productId. */
|
|
208
|
-
externalId?: string;
|
|
209
|
-
/** Product ID. */
|
|
210
|
-
productId?: string;
|
|
211
|
-
/** Variant ID. */
|
|
212
|
-
variantId?: string;
|
|
213
|
-
/** Number to decrement inventory by. */
|
|
214
|
-
decrementBy?: number;
|
|
215
|
-
/**
|
|
216
|
-
* Whether the request to decrement the item's inventory was made as part of a purchase that includes preorder items.
|
|
217
|
-
* If true and the item is available for preorder, we allow negative inventory.
|
|
218
|
-
* If false and the item is not available for preorder, we allow regular buy flow (no negative inventory).
|
|
219
|
-
*/
|
|
220
|
-
preorderRequest?: boolean;
|
|
221
|
-
}
|
|
222
|
-
/** @oneof */
|
|
223
|
-
export interface DecrementDataIdOneOf {
|
|
224
|
-
/** Inventory item ID. */
|
|
225
|
-
inventoryId?: string;
|
|
226
|
-
/** Deprecated: use productId. */
|
|
227
|
-
externalId?: string;
|
|
228
|
-
/** Product ID. */
|
|
229
|
-
productId?: string;
|
|
230
|
-
}
|
|
231
|
-
export interface DecrementInventoryResponse {
|
|
232
|
-
}
|
|
233
|
-
export interface IncrementInventoryRequest {
|
|
234
|
-
incrementData?: IncrementData[];
|
|
235
|
-
}
|
|
236
|
-
export interface IncrementData extends IncrementDataIdOneOf {
|
|
237
|
-
/** Inventory item ID. */
|
|
238
|
-
inventoryId?: string;
|
|
239
|
-
/** Product ID. */
|
|
240
|
-
productId?: string;
|
|
241
|
-
/** Variant ID. */
|
|
242
|
-
variantId?: string;
|
|
243
|
-
/** Number to increment inventory by. */
|
|
244
|
-
incrementBy?: number;
|
|
245
|
-
}
|
|
246
|
-
/** @oneof */
|
|
247
|
-
export interface IncrementDataIdOneOf {
|
|
248
|
-
/** Inventory item ID. */
|
|
249
|
-
inventoryId?: string;
|
|
250
|
-
/** Product ID. */
|
|
251
|
-
productId?: string;
|
|
252
|
-
}
|
|
253
|
-
export interface IncrementInventoryResponse {
|
|
254
|
-
}
|
|
255
|
-
export interface GetInventoryVariantsResponseNonNullableFields {
|
|
256
|
-
inventoryItem?: {
|
|
257
|
-
variants: {
|
|
258
|
-
variantId: string;
|
|
259
|
-
availableForPreorder: boolean;
|
|
260
|
-
}[];
|
|
261
|
-
numericId: string;
|
|
262
|
-
preorderInfo?: {
|
|
263
|
-
enabled: boolean;
|
|
264
|
-
};
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
export interface QueryInventoryResponseNonNullableFields {
|
|
268
|
-
inventoryItems: {
|
|
269
|
-
variants: {
|
|
270
|
-
variantId: string;
|
|
271
|
-
availableForPreorder: boolean;
|
|
272
|
-
}[];
|
|
273
|
-
numericId: string;
|
|
274
|
-
preorderInfo?: {
|
|
275
|
-
enabled: boolean;
|
|
276
|
-
};
|
|
277
|
-
}[];
|
|
278
|
-
metadata?: {
|
|
279
|
-
items: number;
|
|
280
|
-
offset: number;
|
|
281
|
-
};
|
|
282
|
-
totalResults: number;
|
|
283
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReasonType = void 0;
|
|
4
|
-
var ReasonType;
|
|
5
|
-
(function (ReasonType) {
|
|
6
|
-
ReasonType["UNKNOWN"] = "UNKNOWN";
|
|
7
|
-
ReasonType["ORDER"] = "ORDER";
|
|
8
|
-
ReasonType["MANUAL"] = "MANUAL";
|
|
9
|
-
ReasonType["REVERT_INVENTORY_CHANGE"] = "REVERT_INVENTORY_CHANGE";
|
|
10
|
-
})(ReasonType || (exports.ReasonType = ReasonType = {}));
|
|
11
|
-
//# sourceMappingURL=stores-v2-inventory.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stores-v2-inventory.types.js","sourceRoot":"","sources":["../../../src/stores-v2-inventory.types.ts"],"names":[],"mappings":";;;AAqGA,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,6BAAe,CAAA;IACf,+BAAiB,CAAA;IACjB,iEAAmD,CAAA;AACrD,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB"}
|