platform-types 1.10.745 → 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 +6 -1
- package/dist/platform.d.ts +7 -1
- package/dist/store.d.ts +13 -0
- package/dist/store.js +5 -0
- package/package.json +1 -1
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/platform.d.ts
CHANGED
|
@@ -449,7 +449,13 @@ export interface TenantHealthEnvelope {
|
|
|
449
449
|
certBand: CertBand | null;
|
|
450
450
|
};
|
|
451
451
|
integrations: {
|
|
452
|
-
/**
|
|
452
|
+
/**
|
|
453
|
+
* Presence and expiry ONLY — never the OAuth tokens. Read from the nested
|
|
454
|
+
* `integrations.mercadopago` leaf only, never the legacy flat blob.
|
|
455
|
+
* `connected` means linked: a `userId` is present and the automatic
|
|
456
|
+
* revocation has not stamped `disconnectedAt`. It stays `true` after
|
|
457
|
+
* `oauthExpiresAt` passes — that epoch is what grades a lapsing grant.
|
|
458
|
+
*/
|
|
453
459
|
mercadopago: {
|
|
454
460
|
connected: boolean;
|
|
455
461
|
oauthExpiresAt: number | null;
|
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
|
|
@@ -1288,7 +1294,9 @@ declare global {
|
|
|
1288
1294
|
liveMode?: boolean;
|
|
1289
1295
|
/** @deprecated Never populated: the OAuth callback drops the token response's `public_key` and no other writer exists (sanitizers deliberately treat it as non-secret, but nothing writes it). */
|
|
1290
1296
|
publicKey?: string;
|
|
1297
|
+
/** @deprecated Never populated: no writer stamps it. Derive the connection from `userId`, `disconnectedAt` and `expiresAt`. */
|
|
1291
1298
|
status?: MercadopagoConnectionStatus;
|
|
1299
|
+
/** unix ms; set by the automatic revocation, which keeps `userId`. The tenant disconnect removes the whole leaf instead. */
|
|
1292
1300
|
disconnectedAt?: number;
|
|
1293
1301
|
lastTokenRefreshAt?: number;
|
|
1294
1302
|
tokenRefreshFailures?: number;
|
|
@@ -2107,6 +2115,11 @@ export declare const CUSTOM_DOMAIN_SLOT_LIMIT = 2;
|
|
|
2107
2115
|
* `409 DOMAIN_ROW_LIMIT` with this value as `limit`.
|
|
2108
2116
|
*/
|
|
2109
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"];
|
|
2110
2123
|
/**
|
|
2111
2124
|
* Every `StoreModuleKey`, in catalogue order — the ONE list. The type is derived
|
|
2112
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
|