platform-types 1.10.746 → 1.10.747

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/store.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.STORE_PATCH_ERROR_CODES = exports.STORE_MODULE_ERROR_CODES = exports.isStoreModuleOn = exports.isStoreModuleKey = exports.STORE_MODULE_KEYS = exports.CUSTOM_DOMAIN_ROW_LIMIT = exports.CUSTOM_DOMAIN_SLOT_LIMIT = void 0;
3
+ exports.STORE_PATCH_ERROR_CODES = exports.STORE_MODULE_ERROR_CODES = exports.isStoreModuleOn = exports.isStoreModuleKey = exports.STORE_MODULE_KEYS = exports.STORE_ONBOARDING_REVIEW_AREAS = exports.CUSTOM_DOMAIN_ROW_LIMIT = exports.CUSTOM_DOMAIN_SLOT_LIMIT = void 0;
4
4
  /**
5
5
  * How many custom-domain rows a store may hold that count: one active domain
6
6
  * and one spare, so a replacement can be verified and provisioned before the
@@ -18,6 +18,11 @@ exports.CUSTOM_DOMAIN_SLOT_LIMIT = 2;
18
18
  * `409 DOMAIN_ROW_LIMIT` with this value as `limit`.
19
19
  */
20
20
  exports.CUSTOM_DOMAIN_ROW_LIMIT = 10;
21
+ /**
22
+ * Every `StoreOnboardingReviewArea` — the ONE list. `PATCH /store` validates
23
+ * `config.onboarding.reviewed` against it, so an area is added in one place.
24
+ */
25
+ exports.STORE_ONBOARDING_REVIEW_AREAS = ['payments', 'delivery', 'pricing'];
21
26
  /**
22
27
  * Every `StoreModuleKey`, in catalogue order — the ONE list. The type is derived
23
28
  * from it, so the `PATCH /store` validator and every client enumerate exactly
package/dist/store.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import type { ArgentineProvince } from './provinces.ts';
2
2
  import type { StorefrontLiveSettingKey } from './storefrontDesignRegistry.ts';
3
3
  declare global {
4
+ /** A seeded setup area the admin confirmed in the onboarding checklist — one of `STORE_ONBOARDING_REVIEW_AREAS`. */
5
+ type StoreOnboardingReviewArea = (typeof STORE_ONBOARDING_REVIEW_AREAS)[number];
4
6
  /**
5
7
  * One tenant-authored Cmd-K palette entry (`store.palette.custom[]`).
6
8
  *
@@ -872,11 +874,15 @@ declare global {
872
874
  /**
873
875
  * Guided-setup onboarding progress (ADR-0020). First-login is derived
874
876
  * FE-side (absent, or neither `completed` nor `skipped` ⇒ show wizard).
877
+ * `reviewed` lists the seeded setup areas the admin confirmed with «Ya
878
+ * lo revisé»; absent ⇒ none reviewed. The block is replaced wholesale on
879
+ * `PATCH /store`, so a writer must carry `reviewed` forward.
875
880
  */
876
881
  onboarding?: {
877
882
  step: number;
878
883
  completed: boolean;
879
884
  skipped: boolean;
885
+ reviewed?: StoreOnboardingReviewArea[];
880
886
  };
881
887
  /**
882
888
  * Store-level configuration for GENERATED internal barcodes (products that
@@ -2109,6 +2115,11 @@ export declare const CUSTOM_DOMAIN_SLOT_LIMIT = 2;
2109
2115
  * `409 DOMAIN_ROW_LIMIT` with this value as `limit`.
2110
2116
  */
2111
2117
  export declare const CUSTOM_DOMAIN_ROW_LIMIT = 10;
2118
+ /**
2119
+ * Every `StoreOnboardingReviewArea` — the ONE list. `PATCH /store` validates
2120
+ * `config.onboarding.reviewed` against it, so an area is added in one place.
2121
+ */
2122
+ export declare const STORE_ONBOARDING_REVIEW_AREAS: readonly ["payments", "delivery", "pricing"];
2112
2123
  /**
2113
2124
  * Every `StoreModuleKey`, in catalogue order — the ONE list. The type is derived
2114
2125
  * from it, so the `PATCH /store` validator and every client enumerate exactly
package/dist/store.js CHANGED
@@ -15,6 +15,11 @@ export const CUSTOM_DOMAIN_SLOT_LIMIT = 2;
15
15
  * `409 DOMAIN_ROW_LIMIT` with this value as `limit`.
16
16
  */
17
17
  export const CUSTOM_DOMAIN_ROW_LIMIT = 10;
18
+ /**
19
+ * Every `StoreOnboardingReviewArea` — the ONE list. `PATCH /store` validates
20
+ * `config.onboarding.reviewed` against it, so an area is added in one place.
21
+ */
22
+ export const STORE_ONBOARDING_REVIEW_AREAS = ['payments', 'delivery', 'pricing'];
18
23
  /**
19
24
  * Every `StoreModuleKey`, in catalogue order — the ONE list. The type is derived
20
25
  * from it, so the `PATCH /store` validator and every client enumerate exactly
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "platform-types",
3
- "version": "1.10.746",
3
+ "version": "1.10.747",
4
4
  "description": "Shared wire and entity contracts for the platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",