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.
- package/dist/store.d.ts +13 -10
- 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
|
-
/**
|
|
344
|
-
|
|
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:
|
|
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
|
|
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
|
*
|