platform-types 1.10.741 → 1.10.742

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.
Files changed (2) hide show
  1. package/dist/store.d.ts +13 -10
  2. package/package.json +1 -1
package/dist/store.d.ts CHANGED
@@ -340,28 +340,31 @@ declare global {
340
340
  */
341
341
  tolerancePercent?: number;
342
342
  }
343
- /** First-touch acquisition metadata captured when this tenant self-registers. */
344
- interface StoreAcquisition {
343
+ /**
344
+ * The REQUEST leaf: everything a registration client may send. The api
345
+ * refuses a body carrying `capturedAt`, and refuses any key this type does
346
+ * not name.
347
+ */
348
+ interface StoreAcquisitionInput {
345
349
  source: string;
346
350
  medium: string;
347
351
  campaign: string;
348
352
  content?: string;
349
353
  /**
350
354
  * Meta's ad click id (the `fbclid` URL parameter), present only when the
351
- * sign-up arrived from a Meta ad. Case-sensitive: stored and sent to Meta
355
+ * sign-up arrived from a Meta ad. Case-sensitive: forwarded to Meta
352
356
  * byte-for-byte. Trimmed, then 1–500 characters of `[A-Za-z0-9_-]`; only
353
- * ever present together with the required UTM keys above.
357
+ * ever present together with the required UTM keys. REQUEST-only: the api
358
+ * never writes it to the STORE row, which is why `StoreAcquisition` (the
359
+ * stored shape) does not declare it.
354
360
  */
355
361
  fbclid?: string;
362
+ }
363
+ /** First-touch acquisition metadata captured when this tenant self-registers. */
364
+ interface StoreAcquisition extends Omit<StoreAcquisitionInput, 'fbclid'> {
356
365
  /** Unix ms, stamped by the api from the registration timestamp. */
357
366
  capturedAt: number;
358
367
  }
359
- /**
360
- * The REQUEST leaf: everything a registration client may send, i.e.
361
- * `StoreAcquisition` minus the server-owned stamp. The api refuses a body
362
- * carrying `capturedAt`, and refuses any key this type does not name.
363
- */
364
- type StoreAcquisitionInput = Omit<StoreAcquisition, 'capturedAt'>;
365
368
  /**
366
369
  * The terms-of-service acceptance recorded when this tenant self-registers.
367
370
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "platform-types",
3
- "version": "1.10.741",
3
+ "version": "1.10.742",
4
4
  "description": "Shared wire and entity contracts for the platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",