platform-types 1.10.740 → 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/auth.d.ts +2 -1
- package/dist/store.d.ts +18 -8
- package/package.json +1 -1
package/dist/auth.d.ts
CHANGED
|
@@ -112,7 +112,8 @@ declare global {
|
|
|
112
112
|
* First-touch acquisition captured by the registration client; the api
|
|
113
113
|
* server-stamps `capturedAt`.
|
|
114
114
|
*
|
|
115
|
-
* ⚠️ A STRICT allow-list, not a tracking bag.
|
|
115
|
+
* ⚠️ A STRICT allow-list, not a tracking bag. `fbclid` (Meta's ad click
|
|
116
|
+
* id) is the ONE click id accepted; any other unknown key (`gclid`,
|
|
116
117
|
* `utm_term`, a raw referrer, a client-sent `capturedAt`) refuses the WHOLE
|
|
117
118
|
* registration. Send all three required keys or omit the object entirely.
|
|
118
119
|
*/
|
package/dist/store.d.ts
CHANGED
|
@@ -340,21 +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;
|
|
353
|
+
/**
|
|
354
|
+
* Meta's ad click id (the `fbclid` URL parameter), present only when the
|
|
355
|
+
* sign-up arrived from a Meta ad. Case-sensitive: forwarded to Meta
|
|
356
|
+
* byte-for-byte. Trimmed, then 1–500 characters of `[A-Za-z0-9_-]`; only
|
|
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.
|
|
360
|
+
*/
|
|
361
|
+
fbclid?: string;
|
|
362
|
+
}
|
|
363
|
+
/** First-touch acquisition metadata captured when this tenant self-registers. */
|
|
364
|
+
interface StoreAcquisition extends Omit<StoreAcquisitionInput, 'fbclid'> {
|
|
349
365
|
/** Unix ms, stamped by the api from the registration timestamp. */
|
|
350
366
|
capturedAt: number;
|
|
351
367
|
}
|
|
352
|
-
/**
|
|
353
|
-
* The REQUEST leaf: everything a registration client may send, i.e.
|
|
354
|
-
* `StoreAcquisition` minus the server-owned stamp. The api refuses a body
|
|
355
|
-
* carrying `capturedAt`, and refuses any key this type does not name.
|
|
356
|
-
*/
|
|
357
|
-
type StoreAcquisitionInput = Omit<StoreAcquisition, 'capturedAt'>;
|
|
358
368
|
/**
|
|
359
369
|
* The terms-of-service acceptance recorded when this tenant self-registers.
|
|
360
370
|
*
|