@wix/stores 1.0.39 → 1.0.41
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/src/stores-catalog-v1-product-products.public.d.ts +2 -2
- package/build/cjs/src/stores-catalog-v1-product-products.public.js +5 -4
- package/build/cjs/src/stores-catalog-v1-product-products.public.js.map +1 -1
- package/build/cjs/src/stores-catalog-v1-product-products.types.d.ts +164 -158
- package/build/cjs/src/stores-catalog-v1-product-products.types.js +56 -44
- package/build/cjs/src/stores-catalog-v1-product-products.types.js.map +1 -1
- package/build/cjs/src/stores-catalog-v1-product-products.universal.d.ts +164 -158
- package/build/cjs/src/stores-catalog-v1-product-products.universal.js +56 -44
- package/build/cjs/src/stores-catalog-v1-product-products.universal.js.map +1 -1
- package/build/es/src/stores-catalog-v1-product-products.public.d.ts +2 -2
- package/build/es/src/stores-catalog-v1-product-products.public.js +1 -1
- package/build/es/src/stores-catalog-v1-product-products.public.js.map +1 -1
- package/build/es/src/stores-catalog-v1-product-products.types.d.ts +164 -158
- package/build/es/src/stores-catalog-v1-product-products.types.js +55 -43
- package/build/es/src/stores-catalog-v1-product-products.types.js.map +1 -1
- package/build/es/src/stores-catalog-v1-product-products.universal.d.ts +164 -158
- package/build/es/src/stores-catalog-v1-product-products.universal.js +55 -43
- package/build/es/src/stores-catalog-v1-product-products.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DiscountType = exports.OptionType = exports.MediaItemType = exports.InventoryStatus = exports.ProductType = exports.SortOrder = exports.
|
|
3
|
+
exports.DiscountType = exports.OptionType = exports.MediaItemType = exports.InventoryStatus = exports.ProductType = exports.SortOrder = exports.FileType = exports.MeasurementUnit = exports.V1ProductType = exports.PreorderStatus = exports.PurchaseAvailabilityStatus = exports.CustomizationType = exports.ChoiceType = exports.V1OptionType = exports.NullValue = exports.VerticalAlignment = exports.Direction = exports.InitialExpandedItems = exports.AppType = exports.FontType = exports.DecorationType = exports.BackgroundType = exports.PollLayoutDirection = exports.PollLayoutType = exports.VoteRole = exports.ViewRole = exports.MapType = exports.Source = exports.ThumbnailsAlignment = exports.Crop = exports.Orientation = exports.LayoutType = exports.ViewMode = exports.Alignment = exports.Width = exports.LineStyle = exports.TextAlignment = exports.Target = exports.Type = exports.PluginContainerDataAlignment = exports.WidthType = exports.NodeType = void 0;
|
|
4
4
|
var NodeType;
|
|
5
5
|
(function (NodeType) {
|
|
6
6
|
NodeType["PARAGRAPH"] = "PARAGRAPH";
|
|
@@ -288,31 +288,6 @@ var NullValue;
|
|
|
288
288
|
/** Null value. */
|
|
289
289
|
NullValue["NULL_VALUE"] = "NULL_VALUE";
|
|
290
290
|
})(NullValue = exports.NullValue || (exports.NullValue = {}));
|
|
291
|
-
var MeasurementUnit;
|
|
292
|
-
(function (MeasurementUnit) {
|
|
293
|
-
MeasurementUnit["UNSPECIFIED"] = "UNSPECIFIED";
|
|
294
|
-
MeasurementUnit["ML"] = "ML";
|
|
295
|
-
MeasurementUnit["CL"] = "CL";
|
|
296
|
-
MeasurementUnit["L"] = "L";
|
|
297
|
-
MeasurementUnit["CBM"] = "CBM";
|
|
298
|
-
MeasurementUnit["MG"] = "MG";
|
|
299
|
-
MeasurementUnit["G"] = "G";
|
|
300
|
-
MeasurementUnit["KG"] = "KG";
|
|
301
|
-
MeasurementUnit["MM"] = "MM";
|
|
302
|
-
MeasurementUnit["CM"] = "CM";
|
|
303
|
-
MeasurementUnit["M"] = "M";
|
|
304
|
-
MeasurementUnit["SQM"] = "SQM";
|
|
305
|
-
MeasurementUnit["OZ"] = "OZ";
|
|
306
|
-
MeasurementUnit["LB"] = "LB";
|
|
307
|
-
MeasurementUnit["FLOZ"] = "FLOZ";
|
|
308
|
-
MeasurementUnit["PT"] = "PT";
|
|
309
|
-
MeasurementUnit["QT"] = "QT";
|
|
310
|
-
MeasurementUnit["GAL"] = "GAL";
|
|
311
|
-
MeasurementUnit["IN"] = "IN";
|
|
312
|
-
MeasurementUnit["FT"] = "FT";
|
|
313
|
-
MeasurementUnit["YD"] = "YD";
|
|
314
|
-
MeasurementUnit["SQFT"] = "SQFT";
|
|
315
|
-
})(MeasurementUnit = exports.MeasurementUnit || (exports.MeasurementUnit = {}));
|
|
316
291
|
var V1OptionType;
|
|
317
292
|
(function (V1OptionType) {
|
|
318
293
|
V1OptionType["UNKNOWN_OPTION_TYPE"] = "UNKNOWN_OPTION_TYPE";
|
|
@@ -322,7 +297,7 @@ var V1OptionType;
|
|
|
322
297
|
var ChoiceType;
|
|
323
298
|
(function (ChoiceType) {
|
|
324
299
|
ChoiceType["UNKNOWN_CHOICE_TYPE"] = "UNKNOWN_CHOICE_TYPE";
|
|
325
|
-
ChoiceType["
|
|
300
|
+
ChoiceType["TEXT_CHOICE"] = "TEXT_CHOICE";
|
|
326
301
|
ChoiceType["ONE_COLOR"] = "ONE_COLOR";
|
|
327
302
|
ChoiceType["MULTIPLE_COLORS"] = "MULTIPLE_COLORS";
|
|
328
303
|
ChoiceType["IMAGE"] = "IMAGE";
|
|
@@ -334,29 +309,66 @@ var CustomizationType;
|
|
|
334
309
|
CustomizationType["TEXT_INPUT"] = "TEXT_INPUT";
|
|
335
310
|
CustomizationType["CHECKBOX"] = "CHECKBOX";
|
|
336
311
|
})(CustomizationType = exports.CustomizationType || (exports.CustomizationType = {}));
|
|
337
|
-
var
|
|
338
|
-
(function (
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
312
|
+
var PurchaseAvailabilityStatus;
|
|
313
|
+
(function (PurchaseAvailabilityStatus) {
|
|
314
|
+
PurchaseAvailabilityStatus["UNKNOWN_PURCHASE_AVAILABILITY_STATUS"] = "UNKNOWN_PURCHASE_AVAILABILITY_STATUS";
|
|
315
|
+
/** All variants in stock and available for purchase */
|
|
316
|
+
PurchaseAvailabilityStatus["IN_STOCK"] = "IN_STOCK";
|
|
317
|
+
/** All variants out of stock */
|
|
318
|
+
PurchaseAvailabilityStatus["OUT_OF_STOCK"] = "OUT_OF_STOCK";
|
|
319
|
+
/** Some ouf variants out of stock and some of them are in stock */
|
|
320
|
+
PurchaseAvailabilityStatus["PARTIALLY_OUT_OF_STOCK"] = "PARTIALLY_OUT_OF_STOCK";
|
|
321
|
+
})(PurchaseAvailabilityStatus = exports.PurchaseAvailabilityStatus || (exports.PurchaseAvailabilityStatus = {}));
|
|
322
|
+
var PreorderStatus;
|
|
323
|
+
(function (PreorderStatus) {
|
|
324
|
+
PreorderStatus["UNKNOWN_PREORDER_STATUS"] = "UNKNOWN_PREORDER_STATUS";
|
|
325
|
+
/** All variants available for preorder */
|
|
326
|
+
PreorderStatus["ALL_VARIANTS"] = "ALL_VARIANTS";
|
|
327
|
+
/** No variants available for preorder */
|
|
328
|
+
PreorderStatus["NO_VARIANTS"] = "NO_VARIANTS";
|
|
329
|
+
/** Some variants available for preorder */
|
|
330
|
+
PreorderStatus["SOME_VARIANTS"] = "SOME_VARIANTS";
|
|
331
|
+
})(PreorderStatus = exports.PreorderStatus || (exports.PreorderStatus = {}));
|
|
344
332
|
var V1ProductType;
|
|
345
333
|
(function (V1ProductType) {
|
|
346
334
|
V1ProductType["UNKNOWN_PRODUCT_TYPE"] = "UNKNOWN_PRODUCT_TYPE";
|
|
347
335
|
V1ProductType["PHYSICAL"] = "PHYSICAL";
|
|
348
336
|
V1ProductType["DIGITAL"] = "DIGITAL";
|
|
349
337
|
})(V1ProductType = exports.V1ProductType || (exports.V1ProductType = {}));
|
|
350
|
-
var
|
|
351
|
-
(function (
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
338
|
+
var MeasurementUnit;
|
|
339
|
+
(function (MeasurementUnit) {
|
|
340
|
+
MeasurementUnit["UNSPECIFIED"] = "UNSPECIFIED";
|
|
341
|
+
MeasurementUnit["ML"] = "ML";
|
|
342
|
+
MeasurementUnit["CL"] = "CL";
|
|
343
|
+
MeasurementUnit["L"] = "L";
|
|
344
|
+
MeasurementUnit["CBM"] = "CBM";
|
|
345
|
+
MeasurementUnit["MG"] = "MG";
|
|
346
|
+
MeasurementUnit["G"] = "G";
|
|
347
|
+
MeasurementUnit["KG"] = "KG";
|
|
348
|
+
MeasurementUnit["MM"] = "MM";
|
|
349
|
+
MeasurementUnit["CM"] = "CM";
|
|
350
|
+
MeasurementUnit["M"] = "M";
|
|
351
|
+
MeasurementUnit["SQM"] = "SQM";
|
|
352
|
+
MeasurementUnit["OZ"] = "OZ";
|
|
353
|
+
MeasurementUnit["LB"] = "LB";
|
|
354
|
+
MeasurementUnit["FLOZ"] = "FLOZ";
|
|
355
|
+
MeasurementUnit["PT"] = "PT";
|
|
356
|
+
MeasurementUnit["QT"] = "QT";
|
|
357
|
+
MeasurementUnit["GAL"] = "GAL";
|
|
358
|
+
MeasurementUnit["IN"] = "IN";
|
|
359
|
+
MeasurementUnit["FT"] = "FT";
|
|
360
|
+
MeasurementUnit["YD"] = "YD";
|
|
361
|
+
MeasurementUnit["SQFT"] = "SQFT";
|
|
362
|
+
})(MeasurementUnit = exports.MeasurementUnit || (exports.MeasurementUnit = {}));
|
|
363
|
+
var FileType;
|
|
364
|
+
(function (FileType) {
|
|
365
|
+
FileType["UNSPECIFIED"] = "UNSPECIFIED";
|
|
366
|
+
FileType["SECURE_PICTURE"] = "SECURE_PICTURE";
|
|
367
|
+
FileType["SECURE_VIDEO"] = "SECURE_VIDEO";
|
|
368
|
+
FileType["SECURE_DOCUMENT"] = "SECURE_DOCUMENT";
|
|
369
|
+
FileType["SECURE_MUSIC"] = "SECURE_MUSIC";
|
|
370
|
+
FileType["SECURE_ARCHIVE"] = "SECURE_ARCHIVE";
|
|
371
|
+
})(FileType = exports.FileType || (exports.FileType = {}));
|
|
360
372
|
var SortOrder;
|
|
361
373
|
(function (SortOrder) {
|
|
362
374
|
SortOrder["ASC"] = "ASC";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stores-catalog-v1-product-products.types.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product-products.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"stores-catalog-v1-product-products.types.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product-products.types.ts"],"names":[],"mappings":";;;AAyOA,IAAY,QA+BX;AA/BD,WAAY,QAAQ;IAClB,mCAAuB,CAAA;IACvB,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,2CAA+B,CAAA;IAC/B,yCAA6B,CAAA;IAC7B,mCAAuB,CAAA;IACvB,qCAAyB,CAAA;IACzB,qCAAyB,CAAA;IACzB,2BAAe,CAAA;IACf,+BAAmB,CAAA;IACnB,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,uBAAW,CAAA;IACX,yBAAa,CAAA;IACb,2BAAe,CAAA;IACf,yCAA6B,CAAA;IAC7B,uBAAW,CAAA;IACX,yBAAa,CAAA;IACb,mCAAuB,CAAA;IACvB,6BAAiB,CAAA;IACjB,iDAAqC,CAAA;IACrC,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,iDAAqC,CAAA;IACrC,6DAAiD,CAAA;IACjD,2DAA+C,CAAA;IAC/C,qCAAyB,CAAA;IACzB,mCAAuB,CAAA;IACvB,iCAAqB,CAAA;IACrB,2BAAe,CAAA;AACjB,CAAC,EA/BW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QA+BnB;AAqDD,IAAY,SASX;AATD,WAAY,SAAS;IACnB,sCAAsC;IACtC,gCAAmB,CAAA;IACnB,kBAAkB;IAClB,4BAAe,CAAA;IACf,gDAAgD;IAChD,kCAAqB,CAAA;IACrB,6BAA6B;IAC7B,sCAAyB,CAAA;AAC3B,CAAC,EATW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QASpB;AA8BD,IAAY,4BAOX;AAPD,WAAY,4B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CAAA;IACrB,gDAA6B,CAAA;IAC7B,oEAAiD,CAAA;AACnD,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAmID,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,4EAA2D,CAAA;IAC3D,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,sCAAqB,CAAA;IACrB,4BAAW,CAAA;AACb,CAAC,EAPW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAOxB;AA8BD,IAAY,UAIX;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"}
|
|
@@ -5,7 +5,7 @@ export declare const __debug: {
|
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
7
|
/** Product is the main entity of ProductService that can be used for lorem ipsum dolor */
|
|
8
|
-
export interface V1Product {
|
|
8
|
+
export interface V1Product extends V1ProductTypedPropertiesOneOf {
|
|
9
9
|
/** Product ID. Auto-generated on product creation. */
|
|
10
10
|
_id?: string | null;
|
|
11
11
|
/** Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision */
|
|
@@ -47,14 +47,9 @@ export interface V1Product {
|
|
|
47
47
|
/** Custom SEO data for the product. */
|
|
48
48
|
seoData?: SeoSchema;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* For example - price per 100 gr. of cheese.
|
|
53
|
-
* Allowed only for `type` PHYSICAL.
|
|
54
|
-
* todo: move to `physical_properties` together with `weight_range`
|
|
50
|
+
* can set this field only on create
|
|
51
|
+
* for update, call SetProductOptions endpoint
|
|
55
52
|
*/
|
|
56
|
-
pricePerUnit?: PricePerUnitSettings;
|
|
57
|
-
/** for update, call AddProductOptions, AddProductOptionChoice or DeleteProductOptions endpoints */
|
|
58
53
|
options?: V1ProductOption[];
|
|
59
54
|
/** Optional - Brand. To assign existing brand to product provide `brand.id`, to create new brand omit `brand.id` and provide other brand data. */
|
|
60
55
|
brand?: Brand;
|
|
@@ -98,17 +93,16 @@ export interface V1Product {
|
|
|
98
93
|
* Product inventory (a materialized view by listening to inventory domain events).
|
|
99
94
|
* @readonly
|
|
100
95
|
*/
|
|
101
|
-
inventory?:
|
|
96
|
+
inventory?: Inventory;
|
|
102
97
|
/** Product type. Affects which properties product has. Also defines type of variants which allowed to be associated with this product. Product type must be provided on creation and cannot be changed. */
|
|
103
98
|
productType?: V1ProductType;
|
|
104
|
-
/**
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
weightRange?: V1NumericPropertyRange;
|
|
99
|
+
/** Physical properties, must be provided when `product_type` is PHYSICAL */
|
|
100
|
+
physicalOptions?: V1PhysicalProperties;
|
|
101
|
+
}
|
|
102
|
+
/** @oneof */
|
|
103
|
+
export interface V1ProductTypedPropertiesOneOf {
|
|
104
|
+
/** Physical properties, must be provided when `product_type` is PHYSICAL */
|
|
105
|
+
physicalOptions?: V1PhysicalProperties;
|
|
112
106
|
}
|
|
113
107
|
export interface RichContent {
|
|
114
108
|
/** Node objects representing a rich content document. */
|
|
@@ -1373,36 +1367,6 @@ export interface Settings {
|
|
|
1373
1367
|
/** User-selected keyword terms for a specific page. */
|
|
1374
1368
|
keywords?: Keyword[];
|
|
1375
1369
|
}
|
|
1376
|
-
export interface PricePerUnitSettings {
|
|
1377
|
-
/** Quantity value. e.g to define price per unit product setting to price per 100 gr. Set this value to 100. */
|
|
1378
|
-
quantity?: number;
|
|
1379
|
-
/** Measurement unit, e.g to define price per unit product setting to price per 100 gr. Set this value to "G". */
|
|
1380
|
-
measurementUnit?: MeasurementUnit;
|
|
1381
|
-
}
|
|
1382
|
-
export declare enum MeasurementUnit {
|
|
1383
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
1384
|
-
ML = "ML",
|
|
1385
|
-
CL = "CL",
|
|
1386
|
-
L = "L",
|
|
1387
|
-
CBM = "CBM",
|
|
1388
|
-
MG = "MG",
|
|
1389
|
-
G = "G",
|
|
1390
|
-
KG = "KG",
|
|
1391
|
-
MM = "MM",
|
|
1392
|
-
CM = "CM",
|
|
1393
|
-
M = "M",
|
|
1394
|
-
SQM = "SQM",
|
|
1395
|
-
OZ = "OZ",
|
|
1396
|
-
LB = "LB",
|
|
1397
|
-
FLOZ = "FLOZ",
|
|
1398
|
-
PT = "PT",
|
|
1399
|
-
QT = "QT",
|
|
1400
|
-
GAL = "GAL",
|
|
1401
|
-
IN = "IN",
|
|
1402
|
-
FT = "FT",
|
|
1403
|
-
YD = "YD",
|
|
1404
|
-
SQFT = "SQFT"
|
|
1405
|
-
}
|
|
1406
1370
|
export interface V1ProductOption {
|
|
1407
1371
|
/** The id of the option */
|
|
1408
1372
|
optionId?: string;
|
|
@@ -1429,76 +1393,75 @@ export declare enum V1OptionType {
|
|
|
1429
1393
|
TEXT = "TEXT",
|
|
1430
1394
|
SWATCH = "SWATCH"
|
|
1431
1395
|
}
|
|
1432
|
-
export interface ProductChoice {
|
|
1433
|
-
/** The id of the choice */
|
|
1396
|
+
export interface ProductChoice extends ProductChoiceValueOneOf {
|
|
1397
|
+
/** The id of the choice. */
|
|
1434
1398
|
choiceId?: string;
|
|
1435
1399
|
/**
|
|
1436
|
-
*
|
|
1437
|
-
* todo: copy proto
|
|
1400
|
+
* The type of this choice. Materialized view field
|
|
1438
1401
|
* @readonly
|
|
1439
1402
|
*/
|
|
1440
|
-
|
|
1441
|
-
}
|
|
1442
|
-
export interface V1Choice extends V1ChoiceValueOneOf {
|
|
1403
|
+
choiceType?: ChoiceType;
|
|
1443
1404
|
/**
|
|
1444
|
-
*
|
|
1405
|
+
* A key based the choice name that will be used for CatalogSPI endpoints. Materialized view field.
|
|
1445
1406
|
* @readonly
|
|
1446
1407
|
*/
|
|
1447
|
-
|
|
1448
|
-
/**
|
|
1449
|
-
* The type of this choice.
|
|
1450
|
-
* Choices related to options of type SWATCH must have ONE_COLOR, MULTIPLE_COLORS or IMAGE choice type.
|
|
1451
|
-
* Choice related to options of type TEXT, must have TEXT choice type.
|
|
1452
|
-
*/
|
|
1453
|
-
choiceType?: ChoiceType;
|
|
1408
|
+
key?: string;
|
|
1454
1409
|
/**
|
|
1455
|
-
*
|
|
1410
|
+
* Choice name. Materialized view field.
|
|
1456
1411
|
* @readonly
|
|
1457
1412
|
*/
|
|
1458
|
-
key?: string | null;
|
|
1459
|
-
/** Choice name. */
|
|
1460
1413
|
name?: string;
|
|
1461
1414
|
/**
|
|
1462
|
-
*
|
|
1415
|
+
* One color - HEX or RGB color code for display.
|
|
1463
1416
|
* @readonly
|
|
1464
1417
|
*/
|
|
1465
|
-
numberOfProducts?: number;
|
|
1466
|
-
/** One color - HEX or RGB color code for display. */
|
|
1467
1418
|
colorCode?: string;
|
|
1468
1419
|
}
|
|
1469
1420
|
/** @oneof */
|
|
1470
|
-
export interface
|
|
1471
|
-
/**
|
|
1421
|
+
export interface ProductChoiceValueOneOf {
|
|
1422
|
+
/**
|
|
1423
|
+
* One color - HEX or RGB color code for display.
|
|
1424
|
+
* @readonly
|
|
1425
|
+
*/
|
|
1472
1426
|
colorCode?: string;
|
|
1473
1427
|
}
|
|
1474
1428
|
export declare enum ChoiceType {
|
|
1475
1429
|
UNKNOWN_CHOICE_TYPE = "UNKNOWN_CHOICE_TYPE",
|
|
1476
|
-
|
|
1430
|
+
TEXT_CHOICE = "TEXT_CHOICE",
|
|
1477
1431
|
ONE_COLOR = "ONE_COLOR",
|
|
1478
1432
|
MULTIPLE_COLORS = "MULTIPLE_COLORS",
|
|
1479
1433
|
IMAGE = "IMAGE"
|
|
1480
1434
|
}
|
|
1481
1435
|
export interface MultipleColors {
|
|
1482
|
-
/** A list of color codes */
|
|
1436
|
+
/** A list of color codes. */
|
|
1483
1437
|
colorCodes?: string[];
|
|
1484
1438
|
}
|
|
1485
1439
|
export interface Brand {
|
|
1486
1440
|
/** brand ID */
|
|
1487
|
-
_id?: string
|
|
1488
|
-
/**
|
|
1489
|
-
|
|
1441
|
+
_id?: string;
|
|
1442
|
+
/**
|
|
1443
|
+
* brand name. Translatable. Materialized field view.
|
|
1444
|
+
* @readonly
|
|
1445
|
+
*/
|
|
1446
|
+
name?: string;
|
|
1490
1447
|
}
|
|
1491
1448
|
export interface InfoSection {
|
|
1492
1449
|
/** info section id */
|
|
1493
1450
|
_id?: string;
|
|
1494
|
-
/**
|
|
1451
|
+
/**
|
|
1452
|
+
* Product info section title. Translatable. Materialized view field.
|
|
1453
|
+
* @readonly
|
|
1454
|
+
*/
|
|
1495
1455
|
title?: string;
|
|
1496
|
-
/**
|
|
1456
|
+
/**
|
|
1457
|
+
* Product info section description. Translatable. Materialized view field.
|
|
1458
|
+
* @readonly
|
|
1459
|
+
*/
|
|
1497
1460
|
description?: string | null;
|
|
1498
1461
|
}
|
|
1499
1462
|
export interface SubscriptionOptionInfo {
|
|
1500
1463
|
/** The id of the subscription_option */
|
|
1501
|
-
|
|
1464
|
+
_id?: string;
|
|
1502
1465
|
/** The visibility of the subscription_option. Default: true */
|
|
1503
1466
|
visible?: boolean | null;
|
|
1504
1467
|
/**
|
|
@@ -1517,15 +1480,15 @@ export interface Customization extends CustomizationValueOneOf {
|
|
|
1517
1480
|
title?: string;
|
|
1518
1481
|
/** Type. */
|
|
1519
1482
|
customizationType?: CustomizationType;
|
|
1520
|
-
/** Whether customer's input is mandatory */
|
|
1483
|
+
/** Whether customer's input is mandatory. */
|
|
1521
1484
|
mandatory?: boolean;
|
|
1522
1485
|
/** Text input configuration. Required when `type` is TEXT_INPUT. */
|
|
1523
|
-
|
|
1486
|
+
textInputOptions?: TextInputValue;
|
|
1524
1487
|
}
|
|
1525
1488
|
/** @oneof */
|
|
1526
1489
|
export interface CustomizationValueOneOf {
|
|
1527
1490
|
/** Text input configuration. Required when `type` is TEXT_INPUT. */
|
|
1528
|
-
|
|
1491
|
+
textInputOptions?: TextInputValue;
|
|
1529
1492
|
}
|
|
1530
1493
|
export declare enum CustomizationType {
|
|
1531
1494
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
@@ -1554,45 +1517,96 @@ export interface V1NumericPropertyRange {
|
|
|
1554
1517
|
/** Maximum value. */
|
|
1555
1518
|
maxValue?: number;
|
|
1556
1519
|
}
|
|
1557
|
-
|
|
1558
|
-
export interface ProductInventory {
|
|
1559
|
-
/**
|
|
1560
|
-
* inventory ID.
|
|
1561
|
-
* @readonly
|
|
1562
|
-
*/
|
|
1563
|
-
inventoryId?: string;
|
|
1520
|
+
export interface Inventory {
|
|
1564
1521
|
/**
|
|
1565
|
-
*
|
|
1522
|
+
* The current purchase availability status calculated based on variants
|
|
1566
1523
|
* @readonly
|
|
1567
1524
|
*/
|
|
1568
|
-
|
|
1525
|
+
purchaseAvailabilityStatus?: PurchaseAvailabilityStatus;
|
|
1569
1526
|
/**
|
|
1570
|
-
* The current status
|
|
1571
|
-
* + `IN_STOCK` - In stock
|
|
1572
|
-
* + `OUT_OF_STOCK` - Not in stock
|
|
1573
|
-
* + `PARTIALLY_OUT_OF_STOCK` - Some of the variants are not in stock
|
|
1527
|
+
* The current preorder status calculated based on variants
|
|
1574
1528
|
* @readonly
|
|
1575
1529
|
*/
|
|
1576
|
-
|
|
1530
|
+
preorderAvailabilityStatus?: PreorderStatus;
|
|
1577
1531
|
}
|
|
1578
|
-
export declare enum
|
|
1579
|
-
|
|
1532
|
+
export declare enum PurchaseAvailabilityStatus {
|
|
1533
|
+
UNKNOWN_PURCHASE_AVAILABILITY_STATUS = "UNKNOWN_PURCHASE_AVAILABILITY_STATUS",
|
|
1534
|
+
/** All variants in stock and available for purchase */
|
|
1580
1535
|
IN_STOCK = "IN_STOCK",
|
|
1536
|
+
/** All variants out of stock */
|
|
1581
1537
|
OUT_OF_STOCK = "OUT_OF_STOCK",
|
|
1538
|
+
/** Some ouf variants out of stock and some of them are in stock */
|
|
1582
1539
|
PARTIALLY_OUT_OF_STOCK = "PARTIALLY_OUT_OF_STOCK"
|
|
1583
1540
|
}
|
|
1541
|
+
export declare enum PreorderStatus {
|
|
1542
|
+
UNKNOWN_PREORDER_STATUS = "UNKNOWN_PREORDER_STATUS",
|
|
1543
|
+
/** All variants available for preorder */
|
|
1544
|
+
ALL_VARIANTS = "ALL_VARIANTS",
|
|
1545
|
+
/** No variants available for preorder */
|
|
1546
|
+
NO_VARIANTS = "NO_VARIANTS",
|
|
1547
|
+
/** Some variants available for preorder */
|
|
1548
|
+
SOME_VARIANTS = "SOME_VARIANTS"
|
|
1549
|
+
}
|
|
1584
1550
|
export declare enum V1ProductType {
|
|
1585
1551
|
UNKNOWN_PRODUCT_TYPE = "UNKNOWN_PRODUCT_TYPE",
|
|
1586
1552
|
PHYSICAL = "PHYSICAL",
|
|
1587
1553
|
DIGITAL = "DIGITAL"
|
|
1588
1554
|
}
|
|
1555
|
+
export interface V1PhysicalProperties {
|
|
1556
|
+
/**
|
|
1557
|
+
* Price per unit settings - base measurement unit and quantity in order to show price per unit data on the product page.
|
|
1558
|
+
* This setting is fixed for a product. The specific price per unit value for each variant is set on each variant
|
|
1559
|
+
* For example - price per 100 gr. of cheese.
|
|
1560
|
+
* Allowed only for `type` PHYSICAL.
|
|
1561
|
+
*/
|
|
1562
|
+
pricePerUnit?: PricePerUnitSettings;
|
|
1563
|
+
/** Fulfiller id */
|
|
1564
|
+
fulfillerId?: string | null;
|
|
1565
|
+
/**
|
|
1566
|
+
* Product weight range. The minimum and maximum weights of all the variants.
|
|
1567
|
+
* this is needed for bulk adjust product properties action, and also exist in the current API.
|
|
1568
|
+
* @readonly
|
|
1569
|
+
*/
|
|
1570
|
+
weightRange?: V1NumericPropertyRange;
|
|
1571
|
+
}
|
|
1572
|
+
export interface PricePerUnitSettings {
|
|
1573
|
+
/** Quantity value. e.g to define price per unit product setting to price per 100 gr. Set this value to 100. */
|
|
1574
|
+
quantity?: number;
|
|
1575
|
+
/** Measurement unit, e.g to define price per unit product setting to price per 100 gr. Set this value to "G". */
|
|
1576
|
+
measurementUnit?: MeasurementUnit;
|
|
1577
|
+
}
|
|
1578
|
+
export declare enum MeasurementUnit {
|
|
1579
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
1580
|
+
ML = "ML",
|
|
1581
|
+
CL = "CL",
|
|
1582
|
+
L = "L",
|
|
1583
|
+
CBM = "CBM",
|
|
1584
|
+
MG = "MG",
|
|
1585
|
+
G = "G",
|
|
1586
|
+
KG = "KG",
|
|
1587
|
+
MM = "MM",
|
|
1588
|
+
CM = "CM",
|
|
1589
|
+
M = "M",
|
|
1590
|
+
SQM = "SQM",
|
|
1591
|
+
OZ = "OZ",
|
|
1592
|
+
LB = "LB",
|
|
1593
|
+
FLOZ = "FLOZ",
|
|
1594
|
+
PT = "PT",
|
|
1595
|
+
QT = "QT",
|
|
1596
|
+
GAL = "GAL",
|
|
1597
|
+
IN = "IN",
|
|
1598
|
+
FT = "FT",
|
|
1599
|
+
YD = "YD",
|
|
1600
|
+
SQFT = "SQFT"
|
|
1601
|
+
}
|
|
1589
1602
|
export interface V1CreateProductRequest {
|
|
1590
1603
|
/** Product to be created */
|
|
1591
1604
|
product?: V1Product;
|
|
1605
|
+
/** variants to be created for given product. */
|
|
1592
1606
|
variants?: V1Variant[];
|
|
1593
1607
|
}
|
|
1594
1608
|
/** Variant is the main entity of VariantService that can be used for lorem ipsum dolor */
|
|
1595
|
-
export interface V1Variant {
|
|
1609
|
+
export interface V1Variant extends V1VariantTypedPropertiesOneOf {
|
|
1596
1610
|
/**
|
|
1597
1611
|
* Variant ID
|
|
1598
1612
|
* @readonly
|
|
@@ -1629,12 +1643,6 @@ export interface V1Variant {
|
|
|
1629
1643
|
* @readonly
|
|
1630
1644
|
*/
|
|
1631
1645
|
currency?: string;
|
|
1632
|
-
/** Variant SKU (stock keeping unit) */
|
|
1633
|
-
sku?: string | null;
|
|
1634
|
-
/** Variant shipping weight. Allowed only when `product_type` PHYSICAL. */
|
|
1635
|
-
weight?: number | null;
|
|
1636
|
-
/** Whether the variant is visible to customers. Default is true */
|
|
1637
|
-
visible?: boolean | null;
|
|
1638
1646
|
/**
|
|
1639
1647
|
* Variant inventory stock status, Generated automatically based on InventoryItems of this variant.
|
|
1640
1648
|
* @readonly
|
|
@@ -1667,6 +1675,17 @@ export interface V1Variant {
|
|
|
1667
1675
|
* @readonly
|
|
1668
1676
|
*/
|
|
1669
1677
|
productType?: V1ProductType;
|
|
1678
|
+
/** Physical properties. Can be provided when `product_type` PHYSICAL */
|
|
1679
|
+
physicalOptions?: PhysicalProperties;
|
|
1680
|
+
/** Digital properties. Can be provided when `product_type` DIGITAL */
|
|
1681
|
+
digitalOptions?: DigitalProperties;
|
|
1682
|
+
}
|
|
1683
|
+
/** @oneof */
|
|
1684
|
+
export interface V1VariantTypedPropertiesOneOf {
|
|
1685
|
+
/** Physical properties. Can be provided when `product_type` PHYSICAL */
|
|
1686
|
+
physicalOptions?: PhysicalProperties;
|
|
1687
|
+
/** Digital properties. Can be provided when `product_type` DIGITAL */
|
|
1688
|
+
digitalOptions?: DigitalProperties;
|
|
1670
1689
|
}
|
|
1671
1690
|
export interface OptionChoice {
|
|
1672
1691
|
/** The id of the option, should be unique per variant */
|
|
@@ -1680,20 +1699,10 @@ export interface OptionChoice {
|
|
|
1680
1699
|
choiceName?: string;
|
|
1681
1700
|
}
|
|
1682
1701
|
export interface PriceInfo {
|
|
1683
|
-
/** Variant price
|
|
1684
|
-
|
|
1685
|
-
/**
|
|
1686
|
-
* Discount data based on the product
|
|
1687
|
-
* @readonly
|
|
1688
|
-
*/
|
|
1689
|
-
discount?: DiscountData;
|
|
1690
|
-
/**
|
|
1691
|
-
* Discounted variant price (if no discounted price is set, the variant price is returned)
|
|
1692
|
-
* @readonly
|
|
1693
|
-
*/
|
|
1702
|
+
/** Variant price. Must be greater or equal to 0. */
|
|
1703
|
+
basePrice?: FixedMonetaryAmount;
|
|
1704
|
+
/** Discounted variant price. If not provided will be equal to `base_price`. Must be greater or equal to 0. */
|
|
1694
1705
|
discountedPrice?: FixedMonetaryAmount;
|
|
1695
|
-
/** Price per unit info, in order to show price per unit on the product page, for example €4.00 / 100g. Allowed only for `product_type` PHYSICAL */
|
|
1696
|
-
pricePerUnit?: PricePerUnit;
|
|
1697
1706
|
}
|
|
1698
1707
|
export interface FixedMonetaryAmount {
|
|
1699
1708
|
/** Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative. */
|
|
@@ -1705,34 +1714,28 @@ export interface FixedMonetaryAmount {
|
|
|
1705
1714
|
*/
|
|
1706
1715
|
formattedValue?: string | null;
|
|
1707
1716
|
}
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
/** No discount */
|
|
1723
|
-
NONE = "NONE",
|
|
1724
|
-
/** Fixed amount discount */
|
|
1725
|
-
AMOUNT = "AMOUNT",
|
|
1726
|
-
/** Percentage off discount */
|
|
1727
|
-
PERCENT = "PERCENT"
|
|
1728
|
-
}
|
|
1729
|
-
export interface PercentDiscountValue {
|
|
1730
|
-
/** The percentage value of the discount - from 0 to 100 */
|
|
1731
|
-
value?: number;
|
|
1717
|
+
export interface CostAndProfitInfo {
|
|
1718
|
+
/** Item cost. */
|
|
1719
|
+
itemCost?: FixedMonetaryAmount;
|
|
1720
|
+
/**
|
|
1721
|
+
* Profit. Calculated by reducing `cost` from `discounted_price`.
|
|
1722
|
+
* @readonly
|
|
1723
|
+
*/
|
|
1724
|
+
profit?: FixedMonetaryAmount;
|
|
1725
|
+
/**
|
|
1726
|
+
* Profit Margin. Calculated by dividing `profit` by `discounted_price`.
|
|
1727
|
+
* The result is rounded to 4 decimal places.
|
|
1728
|
+
* @readonly
|
|
1729
|
+
*/
|
|
1730
|
+
profitMargin?: number;
|
|
1732
1731
|
}
|
|
1733
|
-
export interface
|
|
1734
|
-
/**
|
|
1735
|
-
|
|
1732
|
+
export interface PhysicalProperties {
|
|
1733
|
+
/** Variant shipping weight. */
|
|
1734
|
+
weight?: number | null;
|
|
1735
|
+
/** Price per unit info, in order to show price per unit on the product page, for example €4.00 / 100g. Allowed only for `product_type` PHYSICAL */
|
|
1736
|
+
pricePerUnit?: PricePerUnit;
|
|
1737
|
+
/** Variant SKU (stock keeping unit) */
|
|
1738
|
+
sku?: string | null;
|
|
1736
1739
|
}
|
|
1737
1740
|
export interface PricePerUnit {
|
|
1738
1741
|
/**
|
|
@@ -1752,20 +1755,23 @@ export interface PricePerUnit {
|
|
|
1752
1755
|
*/
|
|
1753
1756
|
description?: string | null;
|
|
1754
1757
|
}
|
|
1755
|
-
export interface
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
/**
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1758
|
+
export interface DigitalProperties {
|
|
1759
|
+
}
|
|
1760
|
+
export interface SecuredMedia {
|
|
1761
|
+
/** Media ID in media manager. */
|
|
1762
|
+
_id?: string;
|
|
1763
|
+
/** Original file name. */
|
|
1764
|
+
fileName?: string;
|
|
1765
|
+
/** File type. */
|
|
1766
|
+
fileType?: FileType;
|
|
1767
|
+
}
|
|
1768
|
+
export declare enum FileType {
|
|
1769
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
1770
|
+
SECURE_PICTURE = "SECURE_PICTURE",
|
|
1771
|
+
SECURE_VIDEO = "SECURE_VIDEO",
|
|
1772
|
+
SECURE_DOCUMENT = "SECURE_DOCUMENT",
|
|
1773
|
+
SECURE_MUSIC = "SECURE_MUSIC",
|
|
1774
|
+
SECURE_ARCHIVE = "SECURE_ARCHIVE"
|
|
1769
1775
|
}
|
|
1770
1776
|
export interface V1CreateProductResponse {
|
|
1771
1777
|
/** The created Product */
|