platform-types 1.10.680 → 1.10.681

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/store.d.ts CHANGED
@@ -892,6 +892,13 @@ declare global {
892
892
  * value refetches `GET /store` to see those.
893
893
  */
894
894
  publicStorefront?: PublicStorefront | null;
895
+ /**
896
+ * Server-built public contact on web GET /store and customer STORE frames.
897
+ * Absent means an older API; an empty object means no validated public
898
+ * targets. Private fields are omitted. Before design adoption, only the
899
+ * email/phone pair explicitly consented by config.publicContact is used.
900
+ */
901
+ publicContact?: StorefrontPublicContact;
895
902
  /** Read-only legacy editor seed, available only to the entitled tenant ADMIN. */
896
903
  storefrontEditorBaseline?: StorefrontEditorBaseline;
897
904
  photoURL: string;
@@ -229,6 +229,30 @@ declare global {
229
229
  value: StorefrontDesignContactValues[K];
230
230
  };
231
231
  };
232
+ /** Public overrides only. Missing, private, empty and invalid fields are omitted by the server. */
233
+ interface StorefrontPublicContact {
234
+ email?: string;
235
+ /** Explicit +E.164 (8–15 digits); the server never guesses a country code. */
236
+ phone?: {
237
+ number: string;
238
+ url: `tel:${string}`;
239
+ };
240
+ /** Same E.164 number, with a digits-only wa.me path and no platform fallback. */
241
+ whatsapp?: {
242
+ number: string;
243
+ url: `https://wa.me/${string}`;
244
+ };
245
+ /** Plain display text; renderers must escape markup. Independent of fiscal/legal identity. */
246
+ address?: string;
247
+ /** Rows may repeat days or overlap to represent split shifts; overnight hours use separate rows. */
248
+ hours?: StorefrontContactHours;
249
+ /** At most one account per kind (six kinds), with an approved HTTPS destination. */
250
+ socials?: StorefrontContactSocial[];
251
+ }
252
+ /** Published design projection; contact values contain normalized destinations without author visibility wrappers. */
253
+ type StorefrontDesignPublic = Omit<StorefrontDesignV1, 'contact'> & {
254
+ contact: StorefrontPublicContact;
255
+ };
232
256
  interface StorefrontDesignV1 {
233
257
  schemaVersion: 1;
234
258
  templateId: 'standard';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "platform-types",
3
- "version": "1.10.680",
3
+ "version": "1.10.681",
4
4
  "description": "Shared wire and entity contracts for the platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",