platform-types 1.10.791 → 1.10.793
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/dist/cjs/order.js +5 -3
- package/dist/cjs/storefrontDesignRegistry.js +4 -0
- package/dist/order.d.ts +5 -3
- package/dist/order.js +5 -3
- package/dist/storefrontDesign.d.ts +1 -1
- package/dist/storefrontDesignRegistry.d.ts +184 -0
- package/dist/storefrontDesignRegistry.js +4 -0
- package/package.json +1 -1
package/dist/cjs/order.js
CHANGED
|
@@ -286,9 +286,11 @@ exports.orderFulfilmentProgress = orderFulfilmentProgress;
|
|
|
286
286
|
* is refused after it, like every other refusal at commit.
|
|
287
287
|
* - `ORDER_HAS_KIT_LINES` · 409 — `mode: 'edit'` on an order holding a kit line
|
|
288
288
|
* (`CartLine.kit`). Cancel or return the order instead. Nothing was written.
|
|
289
|
-
* - `ORDER_HAS_FREIGHT_LINE` · 409 —
|
|
290
|
-
*
|
|
291
|
-
*
|
|
289
|
+
* - `ORDER_HAS_FREIGHT_LINE` · 409 — on an order holding a freight line
|
|
290
|
+
* (`OrderLine.lineKind: 'freight'`): `mode: 'edit'`, and a `POST /orders`
|
|
291
|
+
* update that CHANGES `deliveryMethod` (the freight was charged for the stored
|
|
292
|
+
* method, and is never re-priced; re-sending the stored method is not refused).
|
|
293
|
+
* Cancel or return the order instead. Nothing was written.
|
|
292
294
|
* - `CART_PROMOTION_UNAVAILABLE` · 409 — the insert leg converting a STORED
|
|
293
295
|
* ticket whose promotion ended, was paused, deleted, has not started or is
|
|
294
296
|
* no longer cart-applicable; the `PromotionRefusal` rides `data.reason`. No
|
|
@@ -61,6 +61,10 @@ exports.STOREFRONT_DESIGN_SETTINGS = {
|
|
|
61
61
|
layoutDensity: choice('layoutDensity', ['comfortable', 'dense'], 'comfortable', 'Densidad', 'Elegí cuánto espacio dejás entre los elementos de toda la tienda.'),
|
|
62
62
|
showBrand: toggle('showBrand', false, 'Mostrar marca', 'Mostrar la marca en las tarjetas de productos.'),
|
|
63
63
|
showSku: toggle('showSku', false, 'Mostrar SKU', 'Mostrar el código SKU en las tarjetas de productos.'),
|
|
64
|
+
showTierHint: toggle('showTierHint', true, 'Mostrar precios por cantidad', 'Muestra en las tarjetas el aviso de precio por cantidad, cuando el producto lo tiene.'),
|
|
65
|
+
showCompareAt: toggle('showCompareAt', true, 'Mostrar precio anterior', 'Muestra en las tarjetas el precio anterior tachado, cuando el producto lo tiene.'),
|
|
66
|
+
showStockBadge: toggle('showStockBadge', true, 'Mostrar avisos de stock', 'Oculta los avisos de stock en las tarjetas. Si la tienda oculta las cantidades, este ajuste no las muestra.'),
|
|
67
|
+
showQuickAdd: toggle('showQuickAdd', true, 'Mostrar botón Agregar', 'Muestra el botón Agregar en las tarjetas. Las filas de productos siempre lo muestran.'),
|
|
64
68
|
};
|
|
65
69
|
const isStorefrontDesignSettingKey = (key) => Object.hasOwn(exports.STOREFRONT_DESIGN_SETTINGS, key);
|
|
66
70
|
exports.isStorefrontDesignSettingKey = isStorefrontDesignSettingKey;
|
package/dist/order.d.ts
CHANGED
|
@@ -2773,9 +2773,11 @@ export declare const orderFulfilmentProgress: (order: OrderFulfilmentProgressInp
|
|
|
2773
2773
|
* is refused after it, like every other refusal at commit.
|
|
2774
2774
|
* - `ORDER_HAS_KIT_LINES` · 409 — `mode: 'edit'` on an order holding a kit line
|
|
2775
2775
|
* (`CartLine.kit`). Cancel or return the order instead. Nothing was written.
|
|
2776
|
-
* - `ORDER_HAS_FREIGHT_LINE` · 409 —
|
|
2777
|
-
*
|
|
2778
|
-
*
|
|
2776
|
+
* - `ORDER_HAS_FREIGHT_LINE` · 409 — on an order holding a freight line
|
|
2777
|
+
* (`OrderLine.lineKind: 'freight'`): `mode: 'edit'`, and a `POST /orders`
|
|
2778
|
+
* update that CHANGES `deliveryMethod` (the freight was charged for the stored
|
|
2779
|
+
* method, and is never re-priced; re-sending the stored method is not refused).
|
|
2780
|
+
* Cancel or return the order instead. Nothing was written.
|
|
2779
2781
|
* - `CART_PROMOTION_UNAVAILABLE` · 409 — the insert leg converting a STORED
|
|
2780
2782
|
* ticket whose promotion ended, was paused, deleted, has not started or is
|
|
2781
2783
|
* no longer cart-applicable; the `PromotionRefusal` rides `data.reason`. No
|
package/dist/order.js
CHANGED
|
@@ -279,9 +279,11 @@ export const orderFulfilmentProgress = (order) => {
|
|
|
279
279
|
* is refused after it, like every other refusal at commit.
|
|
280
280
|
* - `ORDER_HAS_KIT_LINES` · 409 — `mode: 'edit'` on an order holding a kit line
|
|
281
281
|
* (`CartLine.kit`). Cancel or return the order instead. Nothing was written.
|
|
282
|
-
* - `ORDER_HAS_FREIGHT_LINE` · 409 —
|
|
283
|
-
*
|
|
284
|
-
*
|
|
282
|
+
* - `ORDER_HAS_FREIGHT_LINE` · 409 — on an order holding a freight line
|
|
283
|
+
* (`OrderLine.lineKind: 'freight'`): `mode: 'edit'`, and a `POST /orders`
|
|
284
|
+
* update that CHANGES `deliveryMethod` (the freight was charged for the stored
|
|
285
|
+
* method, and is never re-priced; re-sending the stored method is not refused).
|
|
286
|
+
* Cancel or return the order instead. Nothing was written.
|
|
285
287
|
* - `CART_PROMOTION_UNAVAILABLE` · 409 — the insert leg converting a STORED
|
|
286
288
|
* ticket whose promotion ended, was paused, deleted, has not started or is
|
|
287
289
|
* no longer cart-applicable; the `PromotionRefusal` rides `data.reason`. No
|
|
@@ -414,6 +414,98 @@ export declare const STOREFRONT_DESIGN_SETTINGS: {
|
|
|
414
414
|
};
|
|
415
415
|
readonly ownership: "storefront-design";
|
|
416
416
|
};
|
|
417
|
+
readonly showTierHint: {
|
|
418
|
+
readonly key: "showTierHint";
|
|
419
|
+
readonly defaultValue: boolean;
|
|
420
|
+
readonly valueType: "boolean";
|
|
421
|
+
readonly valueSchema: {
|
|
422
|
+
readonly type: "boolean";
|
|
423
|
+
};
|
|
424
|
+
readonly description: string;
|
|
425
|
+
readonly literal: {
|
|
426
|
+
readonly kind: "text";
|
|
427
|
+
readonly label: string;
|
|
428
|
+
readonly help: string;
|
|
429
|
+
};
|
|
430
|
+
readonly scope: "storefront";
|
|
431
|
+
readonly allowedLayers: readonly ["GLOBAL", "WEB", "WEB#store"];
|
|
432
|
+
readonly audience: "public";
|
|
433
|
+
readonly lifecycle: "release-owned";
|
|
434
|
+
readonly storage: {
|
|
435
|
+
readonly policy: "GLOBALS";
|
|
436
|
+
readonly override: "design.settings";
|
|
437
|
+
};
|
|
438
|
+
readonly ownership: "storefront-design";
|
|
439
|
+
};
|
|
440
|
+
readonly showCompareAt: {
|
|
441
|
+
readonly key: "showCompareAt";
|
|
442
|
+
readonly defaultValue: boolean;
|
|
443
|
+
readonly valueType: "boolean";
|
|
444
|
+
readonly valueSchema: {
|
|
445
|
+
readonly type: "boolean";
|
|
446
|
+
};
|
|
447
|
+
readonly description: string;
|
|
448
|
+
readonly literal: {
|
|
449
|
+
readonly kind: "text";
|
|
450
|
+
readonly label: string;
|
|
451
|
+
readonly help: string;
|
|
452
|
+
};
|
|
453
|
+
readonly scope: "storefront";
|
|
454
|
+
readonly allowedLayers: readonly ["GLOBAL", "WEB", "WEB#store"];
|
|
455
|
+
readonly audience: "public";
|
|
456
|
+
readonly lifecycle: "release-owned";
|
|
457
|
+
readonly storage: {
|
|
458
|
+
readonly policy: "GLOBALS";
|
|
459
|
+
readonly override: "design.settings";
|
|
460
|
+
};
|
|
461
|
+
readonly ownership: "storefront-design";
|
|
462
|
+
};
|
|
463
|
+
readonly showStockBadge: {
|
|
464
|
+
readonly key: "showStockBadge";
|
|
465
|
+
readonly defaultValue: boolean;
|
|
466
|
+
readonly valueType: "boolean";
|
|
467
|
+
readonly valueSchema: {
|
|
468
|
+
readonly type: "boolean";
|
|
469
|
+
};
|
|
470
|
+
readonly description: string;
|
|
471
|
+
readonly literal: {
|
|
472
|
+
readonly kind: "text";
|
|
473
|
+
readonly label: string;
|
|
474
|
+
readonly help: string;
|
|
475
|
+
};
|
|
476
|
+
readonly scope: "storefront";
|
|
477
|
+
readonly allowedLayers: readonly ["GLOBAL", "WEB", "WEB#store"];
|
|
478
|
+
readonly audience: "public";
|
|
479
|
+
readonly lifecycle: "release-owned";
|
|
480
|
+
readonly storage: {
|
|
481
|
+
readonly policy: "GLOBALS";
|
|
482
|
+
readonly override: "design.settings";
|
|
483
|
+
};
|
|
484
|
+
readonly ownership: "storefront-design";
|
|
485
|
+
};
|
|
486
|
+
readonly showQuickAdd: {
|
|
487
|
+
readonly key: "showQuickAdd";
|
|
488
|
+
readonly defaultValue: boolean;
|
|
489
|
+
readonly valueType: "boolean";
|
|
490
|
+
readonly valueSchema: {
|
|
491
|
+
readonly type: "boolean";
|
|
492
|
+
};
|
|
493
|
+
readonly description: string;
|
|
494
|
+
readonly literal: {
|
|
495
|
+
readonly kind: "text";
|
|
496
|
+
readonly label: string;
|
|
497
|
+
readonly help: string;
|
|
498
|
+
};
|
|
499
|
+
readonly scope: "storefront";
|
|
500
|
+
readonly allowedLayers: readonly ["GLOBAL", "WEB", "WEB#store"];
|
|
501
|
+
readonly audience: "public";
|
|
502
|
+
readonly lifecycle: "release-owned";
|
|
503
|
+
readonly storage: {
|
|
504
|
+
readonly policy: "GLOBALS";
|
|
505
|
+
readonly override: "design.settings";
|
|
506
|
+
};
|
|
507
|
+
readonly ownership: "storefront-design";
|
|
508
|
+
};
|
|
417
509
|
};
|
|
418
510
|
type SettingValue<T> = T extends {
|
|
419
511
|
valueSchema: {
|
|
@@ -822,6 +914,98 @@ export declare const STOREFRONT_DESIGN_REGISTRY: {
|
|
|
822
914
|
};
|
|
823
915
|
readonly ownership: "storefront-design";
|
|
824
916
|
};
|
|
917
|
+
readonly showTierHint: {
|
|
918
|
+
readonly key: "showTierHint";
|
|
919
|
+
readonly defaultValue: boolean;
|
|
920
|
+
readonly valueType: "boolean";
|
|
921
|
+
readonly valueSchema: {
|
|
922
|
+
readonly type: "boolean";
|
|
923
|
+
};
|
|
924
|
+
readonly description: string;
|
|
925
|
+
readonly literal: {
|
|
926
|
+
readonly kind: "text";
|
|
927
|
+
readonly label: string;
|
|
928
|
+
readonly help: string;
|
|
929
|
+
};
|
|
930
|
+
readonly scope: "storefront";
|
|
931
|
+
readonly allowedLayers: readonly ["GLOBAL", "WEB", "WEB#store"];
|
|
932
|
+
readonly audience: "public";
|
|
933
|
+
readonly lifecycle: "release-owned";
|
|
934
|
+
readonly storage: {
|
|
935
|
+
readonly policy: "GLOBALS";
|
|
936
|
+
readonly override: "design.settings";
|
|
937
|
+
};
|
|
938
|
+
readonly ownership: "storefront-design";
|
|
939
|
+
};
|
|
940
|
+
readonly showCompareAt: {
|
|
941
|
+
readonly key: "showCompareAt";
|
|
942
|
+
readonly defaultValue: boolean;
|
|
943
|
+
readonly valueType: "boolean";
|
|
944
|
+
readonly valueSchema: {
|
|
945
|
+
readonly type: "boolean";
|
|
946
|
+
};
|
|
947
|
+
readonly description: string;
|
|
948
|
+
readonly literal: {
|
|
949
|
+
readonly kind: "text";
|
|
950
|
+
readonly label: string;
|
|
951
|
+
readonly help: string;
|
|
952
|
+
};
|
|
953
|
+
readonly scope: "storefront";
|
|
954
|
+
readonly allowedLayers: readonly ["GLOBAL", "WEB", "WEB#store"];
|
|
955
|
+
readonly audience: "public";
|
|
956
|
+
readonly lifecycle: "release-owned";
|
|
957
|
+
readonly storage: {
|
|
958
|
+
readonly policy: "GLOBALS";
|
|
959
|
+
readonly override: "design.settings";
|
|
960
|
+
};
|
|
961
|
+
readonly ownership: "storefront-design";
|
|
962
|
+
};
|
|
963
|
+
readonly showStockBadge: {
|
|
964
|
+
readonly key: "showStockBadge";
|
|
965
|
+
readonly defaultValue: boolean;
|
|
966
|
+
readonly valueType: "boolean";
|
|
967
|
+
readonly valueSchema: {
|
|
968
|
+
readonly type: "boolean";
|
|
969
|
+
};
|
|
970
|
+
readonly description: string;
|
|
971
|
+
readonly literal: {
|
|
972
|
+
readonly kind: "text";
|
|
973
|
+
readonly label: string;
|
|
974
|
+
readonly help: string;
|
|
975
|
+
};
|
|
976
|
+
readonly scope: "storefront";
|
|
977
|
+
readonly allowedLayers: readonly ["GLOBAL", "WEB", "WEB#store"];
|
|
978
|
+
readonly audience: "public";
|
|
979
|
+
readonly lifecycle: "release-owned";
|
|
980
|
+
readonly storage: {
|
|
981
|
+
readonly policy: "GLOBALS";
|
|
982
|
+
readonly override: "design.settings";
|
|
983
|
+
};
|
|
984
|
+
readonly ownership: "storefront-design";
|
|
985
|
+
};
|
|
986
|
+
readonly showQuickAdd: {
|
|
987
|
+
readonly key: "showQuickAdd";
|
|
988
|
+
readonly defaultValue: boolean;
|
|
989
|
+
readonly valueType: "boolean";
|
|
990
|
+
readonly valueSchema: {
|
|
991
|
+
readonly type: "boolean";
|
|
992
|
+
};
|
|
993
|
+
readonly description: string;
|
|
994
|
+
readonly literal: {
|
|
995
|
+
readonly kind: "text";
|
|
996
|
+
readonly label: string;
|
|
997
|
+
readonly help: string;
|
|
998
|
+
};
|
|
999
|
+
readonly scope: "storefront";
|
|
1000
|
+
readonly allowedLayers: readonly ["GLOBAL", "WEB", "WEB#store"];
|
|
1001
|
+
readonly audience: "public";
|
|
1002
|
+
readonly lifecycle: "release-owned";
|
|
1003
|
+
readonly storage: {
|
|
1004
|
+
readonly policy: "GLOBALS";
|
|
1005
|
+
readonly override: "design.settings";
|
|
1006
|
+
};
|
|
1007
|
+
readonly ownership: "storefront-design";
|
|
1008
|
+
};
|
|
825
1009
|
};
|
|
826
1010
|
readonly content: {
|
|
827
1011
|
readonly schema: "StorefrontDesignV1";
|
|
@@ -58,6 +58,10 @@ export const STOREFRONT_DESIGN_SETTINGS = {
|
|
|
58
58
|
layoutDensity: choice('layoutDensity', ['comfortable', 'dense'], 'comfortable', 'Densidad', 'Elegí cuánto espacio dejás entre los elementos de toda la tienda.'),
|
|
59
59
|
showBrand: toggle('showBrand', false, 'Mostrar marca', 'Mostrar la marca en las tarjetas de productos.'),
|
|
60
60
|
showSku: toggle('showSku', false, 'Mostrar SKU', 'Mostrar el código SKU en las tarjetas de productos.'),
|
|
61
|
+
showTierHint: toggle('showTierHint', true, 'Mostrar precios por cantidad', 'Muestra en las tarjetas el aviso de precio por cantidad, cuando el producto lo tiene.'),
|
|
62
|
+
showCompareAt: toggle('showCompareAt', true, 'Mostrar precio anterior', 'Muestra en las tarjetas el precio anterior tachado, cuando el producto lo tiene.'),
|
|
63
|
+
showStockBadge: toggle('showStockBadge', true, 'Mostrar avisos de stock', 'Oculta los avisos de stock en las tarjetas. Si la tienda oculta las cantidades, este ajuste no las muestra.'),
|
|
64
|
+
showQuickAdd: toggle('showQuickAdd', true, 'Mostrar botón Agregar', 'Muestra el botón Agregar en las tarjetas. Las filas de productos siempre lo muestran.'),
|
|
61
65
|
};
|
|
62
66
|
export const isStorefrontDesignSettingKey = (key) => Object.hasOwn(STOREFRONT_DESIGN_SETTINGS, key);
|
|
63
67
|
export const validateStorefrontSettingValue = (schema, value) => {
|