platform-types 1.10.696 → 1.10.697

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.
@@ -76,6 +76,12 @@ exports.STOREFRONT_SECTION_TYPES = [
76
76
  'contact',
77
77
  'paymentDelivery',
78
78
  ];
79
+ /**
80
+ * The storefront routes a design link may target by name. `incomes` is the
81
+ * always-available recency listing (`/products/incomes`); `new` is the separate
82
+ * listing that depends on a feature flag. `brands` and `favorites` map to
83
+ * `/brands` and `/favorites`.
84
+ */
79
85
  exports.STOREFRONT_BUILTIN_DESTINATIONS = [
80
86
  'home',
81
87
  'catalogue',
@@ -85,6 +91,9 @@ exports.STOREFRONT_BUILTIN_DESTINATIONS = [
85
91
  'cart',
86
92
  'account',
87
93
  'privacy',
94
+ 'brands',
95
+ 'favorites',
96
+ 'incomes',
88
97
  ];
89
98
  /**
90
99
  * The built-in destinations that must stay reachable whatever a design does with
@@ -164,6 +173,7 @@ exports.STOREFRONT_PREVIEW_READ_OPERATIONS = [
164
173
  'productBySlug',
165
174
  'productsByIds',
166
175
  'products',
176
+ 'incomes',
167
177
  'group',
168
178
  'related',
169
179
  'categories',
@@ -58,7 +58,13 @@ export declare const STOREFRONT_DESIGN_LIMITS: {
58
58
  export declare const STOREFRONT_PAGE_SLUG_RE: RegExp;
59
59
  export declare const isStorefrontPageSlug: (value: unknown) => value is string;
60
60
  export declare const STOREFRONT_SECTION_TYPES: readonly ["banner", "imageText", "products", "categories", "brands", "text", "faq", "benefits", "contact", "paymentDelivery"];
61
- export declare const STOREFRONT_BUILTIN_DESTINATIONS: readonly ["home", "catalogue", "offers", "new", "search", "cart", "account", "privacy"];
61
+ /**
62
+ * The storefront routes a design link may target by name. `incomes` is the
63
+ * always-available recency listing (`/products/incomes`); `new` is the separate
64
+ * listing that depends on a feature flag. `brands` and `favorites` map to
65
+ * `/brands` and `/favorites`.
66
+ */
67
+ export declare const STOREFRONT_BUILTIN_DESTINATIONS: readonly ["home", "catalogue", "offers", "new", "search", "cart", "account", "privacy", "brands", "favorites", "incomes"];
62
68
  /**
63
69
  * The built-in destinations that must stay reachable whatever a design does with
64
70
  * its menus: search, cart, account and the required legal page. Reachability is
@@ -536,6 +542,19 @@ declare global {
536
542
  inStock?: 'true';
537
543
  isNew?: 'true';
538
544
  startKey?: string;
545
+ }
546
+ /**
547
+ * Web `GET /products?updatedAt=`'s recency listing (the shop's «Ingresos» page), with the
548
+ * same rows and cursor shape, in the grant's store: enabled products updated after
549
+ * `updatedAt` (epoch ms, digits), newest first; `LastEvaluatedKey` resumes as `startKey`.
550
+ * Non-digits or a `startKey` over 2048 characters answer 400 `STOREFRONT_PREVIEW_INVALID`;
551
+ * an `updatedAt` past `Number.MAX_SAFE_INTEGER` answers 400 `INVALID_UPDATED_AT`; a
552
+ * malformed or foreign `startKey` answers 400 `INVALID_CURSOR`.
553
+ */
554
+ | {
555
+ operation: 'incomes';
556
+ updatedAt?: string;
557
+ startKey?: string;
539
558
  } | {
540
559
  operation: 'group';
541
560
  groupId: string;
@@ -746,7 +765,7 @@ declare global {
746
765
  data: StorefrontDesignPreviewResult;
747
766
  } | StorefrontDesignFailure;
748
767
  }
749
- export declare const STOREFRONT_PREVIEW_READ_OPERATIONS: readonly ["design", "store", "product", "productBySlug", "productsByIds", "products", "group", "related", "categories", "brands", "tags", "collection", "paymentMethods", "deliveryMethods", "asset"];
768
+ export declare const STOREFRONT_PREVIEW_READ_OPERATIONS: readonly ["design", "store", "product", "productBySlug", "productsByIds", "products", "incomes", "group", "related", "categories", "brands", "tags", "collection", "paymentMethods", "deliveryMethods", "asset"];
750
769
  /** Checks transport structure and UTF-8 size; unfamiliar section types are skipped, never rendered. */
751
770
  export declare function parseStorefrontPreviewDocument(input: unknown): StorefrontPreviewDocument | undefined;
752
771
  /** The codes a preview frame may report in an `error` message; the parser accepts exactly these. */
@@ -68,6 +68,12 @@ export const STOREFRONT_SECTION_TYPES = [
68
68
  'contact',
69
69
  'paymentDelivery',
70
70
  ];
71
+ /**
72
+ * The storefront routes a design link may target by name. `incomes` is the
73
+ * always-available recency listing (`/products/incomes`); `new` is the separate
74
+ * listing that depends on a feature flag. `brands` and `favorites` map to
75
+ * `/brands` and `/favorites`.
76
+ */
71
77
  export const STOREFRONT_BUILTIN_DESTINATIONS = [
72
78
  'home',
73
79
  'catalogue',
@@ -77,6 +83,9 @@ export const STOREFRONT_BUILTIN_DESTINATIONS = [
77
83
  'cart',
78
84
  'account',
79
85
  'privacy',
86
+ 'brands',
87
+ 'favorites',
88
+ 'incomes',
80
89
  ];
81
90
  /**
82
91
  * The built-in destinations that must stay reachable whatever a design does with
@@ -156,6 +165,7 @@ export const STOREFRONT_PREVIEW_READ_OPERATIONS = [
156
165
  'productBySlug',
157
166
  'productsByIds',
158
167
  'products',
168
+ 'incomes',
159
169
  'group',
160
170
  'related',
161
171
  'categories',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "platform-types",
3
- "version": "1.10.696",
3
+ "version": "1.10.697",
4
4
  "description": "Shared wire and entity contracts for the platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",