@shware/analytics 8.12.0 → 8.13.1
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/attribution/classify.cjs +35 -26
- package/dist/attribution/classify.cjs.map +1 -1
- package/dist/attribution/classify.d.cts +15 -9
- package/dist/attribution/classify.d.cts.map +1 -1
- package/dist/attribution/classify.d.mts +15 -9
- package/dist/attribution/classify.d.mts.map +1 -1
- package/dist/attribution/classify.mjs +36 -27
- package/dist/attribution/classify.mjs.map +1 -1
- package/dist/attribution/index.cjs +2 -0
- package/dist/attribution/index.d.cts +2 -2
- package/dist/attribution/index.d.mts +2 -2
- package/dist/attribution/index.mjs +2 -2
- package/dist/attribution/vocabulary.cjs +207 -34
- package/dist/attribution/vocabulary.cjs.map +1 -1
- package/dist/attribution/vocabulary.d.cts +75 -31
- package/dist/attribution/vocabulary.d.cts.map +1 -1
- package/dist/attribution/vocabulary.d.mts +75 -31
- package/dist/attribution/vocabulary.d.mts.map +1 -1
- package/dist/attribution/vocabulary.mjs +206 -35
- package/dist/attribution/vocabulary.mjs.map +1 -1
- package/dist/click-id/index.d.cts +18 -19
- package/dist/click-id/index.d.cts.map +1 -1
- package/dist/click-id/index.d.mts +18 -19
- package/dist/click-id/index.d.mts.map +1 -1
- package/dist/constants/storage.d.cts +1 -2
- package/dist/constants/storage.d.cts.map +1 -1
- package/dist/constants/storage.d.mts +1 -2
- package/dist/constants/storage.d.mts.map +1 -1
- package/dist/feedback/index.d.cts +1 -2
- package/dist/feedback/index.d.cts.map +1 -1
- package/dist/feedback/index.d.mts +1 -2
- package/dist/feedback/index.d.mts.map +1 -1
- package/dist/hooks/use-app-analytics.d.cts +1 -2
- package/dist/hooks/use-app-analytics.d.cts.map +1 -1
- package/dist/hooks/use-app-analytics.d.mts +1 -2
- package/dist/hooks/use-app-analytics.d.mts.map +1 -1
- package/dist/hooks/use-outbound-click-analytics.d.cts +1 -2
- package/dist/hooks/use-outbound-click-analytics.d.cts.map +1 -1
- package/dist/hooks/use-outbound-click-analytics.d.mts +1 -2
- package/dist/hooks/use-outbound-click-analytics.d.mts.map +1 -1
- package/dist/hooks/use-previous.d.cts +1 -2
- package/dist/hooks/use-previous.d.cts.map +1 -1
- package/dist/hooks/use-previous.d.mts +1 -2
- package/dist/hooks/use-previous.d.mts.map +1 -1
- package/dist/hooks/use-report-web-vitals.d.cts +1 -2
- package/dist/hooks/use-report-web-vitals.d.cts.map +1 -1
- package/dist/hooks/use-report-web-vitals.d.mts +1 -2
- package/dist/hooks/use-report-web-vitals.d.mts.map +1 -1
- package/dist/hooks/use-track-impression.d.cts +1 -2
- package/dist/hooks/use-track-impression.d.cts.map +1 -1
- package/dist/hooks/use-track-impression.d.mts +1 -2
- package/dist/hooks/use-track-impression.d.mts.map +1 -1
- package/dist/hooks/use-uet-id-sync.d.cts +1 -2
- package/dist/hooks/use-uet-id-sync.d.cts.map +1 -1
- package/dist/hooks/use-uet-id-sync.d.mts +1 -2
- package/dist/hooks/use-uet-id-sync.d.mts.map +1 -1
- package/dist/hooks/use-web-analytics.d.cts +1 -2
- package/dist/hooks/use-web-analytics.d.cts.map +1 -1
- package/dist/hooks/use-web-analytics.d.mts +1 -2
- package/dist/hooks/use-web-analytics.d.mts.map +1 -1
- package/dist/link/index.d.cts +3 -4
- package/dist/link/index.d.cts.map +1 -1
- package/dist/link/index.d.mts +3 -4
- package/dist/link/index.d.mts.map +1 -1
- package/dist/native/fbsdk.d.cts +1 -2
- package/dist/native/fbsdk.d.cts.map +1 -1
- package/dist/native/fbsdk.d.mts +1 -2
- package/dist/native/fbsdk.d.mts.map +1 -1
- package/dist/native/fingerprint.d.cts +4 -5
- package/dist/native/fingerprint.d.cts.map +1 -1
- package/dist/native/fingerprint.d.mts +4 -5
- package/dist/native/fingerprint.d.mts.map +1 -1
- package/dist/native/firebase.d.cts +1 -2
- package/dist/native/firebase.d.cts.map +1 -1
- package/dist/native/firebase.d.mts +1 -2
- package/dist/native/firebase.d.mts.map +1 -1
- package/dist/native/posthog.d.cts +1 -2
- package/dist/native/posthog.d.cts.map +1 -1
- package/dist/native/posthog.d.mts +1 -2
- package/dist/native/posthog.d.mts.map +1 -1
- package/dist/native/setup.d.cts +4 -5
- package/dist/native/setup.d.cts.map +1 -1
- package/dist/native/setup.d.mts +4 -5
- package/dist/native/setup.d.mts.map +1 -1
- package/dist/next/index.cjs +14 -14
- package/dist/next/index.cjs.map +1 -1
- package/dist/next/index.d.cts +1 -2
- package/dist/next/index.d.cts.map +1 -1
- package/dist/next/index.d.mts +1 -2
- package/dist/next/index.d.mts.map +1 -1
- package/dist/next/index.mjs +3 -3
- package/dist/react-router/index.d.cts +1 -2
- package/dist/react-router/index.d.cts.map +1 -1
- package/dist/react-router/index.d.mts +1 -2
- package/dist/react-router/index.d.mts.map +1 -1
- package/dist/schema/index.d.cts +16 -17
- package/dist/schema/index.d.cts.map +1 -1
- package/dist/schema/index.d.mts +16 -17
- package/dist/schema/index.d.mts.map +1 -1
- package/dist/server/action-source.d.cts +3 -4
- package/dist/server/action-source.d.cts.map +1 -1
- package/dist/server/action-source.d.mts +3 -4
- package/dist/server/action-source.d.mts.map +1 -1
- package/dist/server/google-data-manager.d.cts +9 -10
- package/dist/server/google-data-manager.d.cts.map +1 -1
- package/dist/server/google-data-manager.d.mts +9 -10
- package/dist/server/google-data-manager.d.mts.map +1 -1
- package/dist/server/linkedin-conversions-api.d.cts +4 -5
- package/dist/server/linkedin-conversions-api.d.cts.map +1 -1
- package/dist/server/linkedin-conversions-api.d.mts +4 -5
- package/dist/server/linkedin-conversions-api.d.mts.map +1 -1
- package/dist/server/meta-capi.d.cts +5 -6
- package/dist/server/meta-capi.d.cts.map +1 -1
- package/dist/server/meta-capi.d.mts +5 -6
- package/dist/server/meta-capi.d.mts.map +1 -1
- package/dist/server/meta-conversions-api.d.cts +4 -5
- package/dist/server/meta-conversions-api.d.cts.map +1 -1
- package/dist/server/meta-conversions-api.d.mts +4 -5
- package/dist/server/meta-conversions-api.d.mts.map +1 -1
- package/dist/server/microsoft-conversions-api.d.cts +11 -12
- package/dist/server/microsoft-conversions-api.d.cts.map +1 -1
- package/dist/server/microsoft-conversions-api.d.mts +11 -12
- package/dist/server/microsoft-conversions-api.d.mts.map +1 -1
- package/dist/server/openai-conversions-api.d.cts +5 -6
- package/dist/server/openai-conversions-api.d.cts.map +1 -1
- package/dist/server/openai-conversions-api.d.mts +5 -6
- package/dist/server/openai-conversions-api.d.mts.map +1 -1
- package/dist/server/page-location.d.cts +1 -2
- package/dist/server/page-location.d.cts.map +1 -1
- package/dist/server/page-location.d.mts +1 -2
- package/dist/server/page-location.d.mts.map +1 -1
- package/dist/server/reddit-conversions-api.d.cts +4 -5
- package/dist/server/reddit-conversions-api.d.cts.map +1 -1
- package/dist/server/reddit-conversions-api.d.mts +4 -5
- package/dist/server/reddit-conversions-api.d.mts.map +1 -1
- package/dist/setup/index.d.cts +5 -6
- package/dist/setup/index.d.cts.map +1 -1
- package/dist/setup/index.d.mts +5 -6
- package/dist/setup/index.d.mts.map +1 -1
- package/dist/setup/session.d.cts +2 -3
- package/dist/setup/session.d.cts.map +1 -1
- package/dist/setup/session.d.mts +2 -3
- package/dist/setup/session.d.mts.map +1 -1
- package/dist/tanstack/analytics.d.cts +1 -2
- package/dist/tanstack/analytics.d.cts.map +1 -1
- package/dist/tanstack/analytics.d.mts +1 -2
- package/dist/tanstack/analytics.d.mts.map +1 -1
- package/dist/tanstack/middleware.d.cts +3 -4
- package/dist/tanstack/middleware.d.cts.map +1 -1
- package/dist/tanstack/middleware.d.mts +3 -4
- package/dist/tanstack/middleware.d.mts.map +1 -1
- package/dist/test/setup.d.cts +3 -4
- package/dist/test/setup.d.cts.map +1 -1
- package/dist/test/setup.d.mts +3 -4
- package/dist/test/setup.d.mts.map +1 -1
- package/dist/third-parties/google-analytics.d.cts +2 -3
- package/dist/third-parties/google-analytics.d.cts.map +1 -1
- package/dist/third-parties/google-analytics.d.mts +2 -3
- package/dist/third-parties/google-analytics.d.mts.map +1 -1
- package/dist/third-parties/ignored-events.d.cts +1 -2
- package/dist/third-parties/ignored-events.d.cts.map +1 -1
- package/dist/third-parties/ignored-events.d.mts +1 -2
- package/dist/third-parties/ignored-events.d.mts.map +1 -1
- package/dist/third-parties/linkedin-insight-tag.d.cts +3 -4
- package/dist/third-parties/linkedin-insight-tag.d.cts.map +1 -1
- package/dist/third-parties/linkedin-insight-tag.d.mts +3 -4
- package/dist/third-parties/linkedin-insight-tag.d.mts.map +1 -1
- package/dist/third-parties/meta-pixel.d.cts +2 -3
- package/dist/third-parties/meta-pixel.d.cts.map +1 -1
- package/dist/third-parties/meta-pixel.d.mts +2 -3
- package/dist/third-parties/meta-pixel.d.mts.map +1 -1
- package/dist/third-parties/microsoft-uet.d.cts +6 -7
- package/dist/third-parties/microsoft-uet.d.cts.map +1 -1
- package/dist/third-parties/microsoft-uet.d.mts +6 -7
- package/dist/third-parties/microsoft-uet.d.mts.map +1 -1
- package/dist/third-parties/openai-pixel.d.cts +2 -3
- package/dist/third-parties/openai-pixel.d.cts.map +1 -1
- package/dist/third-parties/openai-pixel.d.mts +2 -3
- package/dist/third-parties/openai-pixel.d.mts.map +1 -1
- package/dist/third-parties/posthog.d.cts +2 -3
- package/dist/third-parties/posthog.d.cts.map +1 -1
- package/dist/third-parties/posthog.d.mts +2 -3
- package/dist/third-parties/posthog.d.mts.map +1 -1
- package/dist/third-parties/reddit-pixel.d.cts +2 -3
- package/dist/third-parties/reddit-pixel.d.cts.map +1 -1
- package/dist/third-parties/reddit-pixel.d.mts +2 -3
- package/dist/third-parties/reddit-pixel.d.mts.map +1 -1
- package/dist/track/fbq.d.cts +10 -11
- package/dist/track/fbq.d.cts.map +1 -1
- package/dist/track/fbq.d.mts +10 -11
- package/dist/track/fbq.d.mts.map +1 -1
- package/dist/track/gtag.d.cts +26 -27
- package/dist/track/gtag.d.cts.map +1 -1
- package/dist/track/gtag.d.mts +26 -27
- package/dist/track/gtag.d.mts.map +1 -1
- package/dist/track/index.d.cts +4 -5
- package/dist/track/index.d.cts.map +1 -1
- package/dist/track/index.d.mts +4 -5
- package/dist/track/index.d.mts.map +1 -1
- package/dist/track/lintrk.d.cts +1 -2
- package/dist/track/lintrk.d.cts.map +1 -1
- package/dist/track/lintrk.d.mts +1 -2
- package/dist/track/lintrk.d.mts.map +1 -1
- package/dist/track/oaiq.d.cts +17 -18
- package/dist/track/oaiq.d.cts.map +1 -1
- package/dist/track/oaiq.d.mts +17 -18
- package/dist/track/oaiq.d.mts.map +1 -1
- package/dist/track/rdt.d.cts +10 -11
- package/dist/track/rdt.d.cts.map +1 -1
- package/dist/track/rdt.d.mts +10 -11
- package/dist/track/rdt.d.mts.map +1 -1
- package/dist/track/types.d.cts +20 -21
- package/dist/track/types.d.cts.map +1 -1
- package/dist/track/types.d.mts +20 -21
- package/dist/track/types.d.mts.map +1 -1
- package/dist/track/uetq.d.cts +8 -9
- package/dist/track/uetq.d.cts.map +1 -1
- package/dist/track/uetq.d.mts +8 -9
- package/dist/track/uetq.d.mts.map +1 -1
- package/dist/utils/field.d.cts +1 -2
- package/dist/utils/field.d.cts.map +1 -1
- package/dist/utils/field.d.mts +1 -2
- package/dist/utils/field.d.mts.map +1 -1
- package/dist/utils/sha256.d.cts +1 -2
- package/dist/utils/sha256.d.cts.map +1 -1
- package/dist/utils/sha256.d.mts +1 -2
- package/dist/utils/sha256.d.mts.map +1 -1
- package/dist/utils/stripe.d.cts +2 -3
- package/dist/utils/stripe.d.cts.map +1 -1
- package/dist/utils/stripe.d.mts +2 -3
- package/dist/utils/stripe.d.mts.map +1 -1
- package/dist/visitor/index.d.cts +2 -3
- package/dist/visitor/index.d.cts.map +1 -1
- package/dist/visitor/index.d.mts +2 -3
- package/dist/visitor/index.d.mts.map +1 -1
- package/dist/visitor/types.d.cts +4 -5
- package/dist/visitor/types.d.cts.map +1 -1
- package/dist/visitor/types.d.mts +4 -5
- package/dist/visitor/types.d.mts.map +1 -1
- package/dist/web/index.d.cts +3 -4
- package/dist/web/index.d.cts.map +1 -1
- package/dist/web/index.d.mts +3 -4
- package/dist/web/index.d.mts.map +1 -1
- package/dist/web/page-key.d.cts +1 -2
- package/dist/web/page-key.d.cts.map +1 -1
- package/dist/web/page-key.d.mts +1 -2
- package/dist/web/page-key.d.mts.map +1 -1
- package/package.json +27 -27
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SetCookie } from "cookie";
|
|
2
2
|
//#region src/click-id/index.d.ts
|
|
3
|
-
declare const FBC_COOKIE = "_fbc";
|
|
4
|
-
declare const RDT_CID_COOKIE = "_rdt_cid";
|
|
5
|
-
declare const GCL_AW_COOKIE = "_gcl_aw";
|
|
6
|
-
declare const GCL_GB_COOKIE = "_gcl_gb";
|
|
7
|
-
declare const UET_MSCLKID_COOKIE = "_uetmsclkid";
|
|
8
|
-
type ParsedFbc = {
|
|
3
|
+
export declare const FBC_COOKIE = "_fbc";
|
|
4
|
+
export declare const RDT_CID_COOKIE = "_rdt_cid";
|
|
5
|
+
export declare const GCL_AW_COOKIE = "_gcl_aw";
|
|
6
|
+
export declare const GCL_GB_COOKIE = "_gcl_gb";
|
|
7
|
+
export declare const UET_MSCLKID_COOKIE = "_uetmsclkid";
|
|
8
|
+
export type ParsedFbc = {
|
|
9
9
|
raw: string;
|
|
10
10
|
creationTime: number;
|
|
11
11
|
fbclid: string;
|
|
@@ -15,13 +15,13 @@ type ParsedFbc = {
|
|
|
15
15
|
* Returns undefined for anything malformed — a fbclid never contains a dot, but joining the tail
|
|
16
16
|
* back together keeps us forward-compatible if that ever changes.
|
|
17
17
|
*/
|
|
18
|
-
declare function parseFbc(raw: string | undefined | null, now?: number): ParsedFbc | undefined;
|
|
18
|
+
export declare function parseFbc(raw: string | undefined | null, now?: number): ParsedFbc | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* Build a fresh `_fbc` value. subdomainIndex is the cookie's domain level (com=0, example.com=1,
|
|
21
21
|
* www.example.com=2); 1 is correct for an apex-hosted cookie.
|
|
22
22
|
*/
|
|
23
|
-
declare function formatFbc(fbclid: string, now: number, subdomainIndex?: number): string;
|
|
24
|
-
type ParsedGcl = {
|
|
23
|
+
export declare function formatFbc(fbclid: string, now: number, subdomainIndex?: number): string;
|
|
24
|
+
export type ParsedGcl = {
|
|
25
25
|
raw: string;
|
|
26
26
|
creationTime: number;
|
|
27
27
|
clickId: string;
|
|
@@ -32,22 +32,22 @@ type ParsedGcl = {
|
|
|
32
32
|
* validates the segments exactly this way (`/^\d+$/` timestamp, `/^[\w-]+$/` click id); any
|
|
33
33
|
* labels tail is preserved through `raw` so a re-issue stays byte-identical.
|
|
34
34
|
*/
|
|
35
|
-
declare function parseGcl(raw: string | undefined | null, now?: number): ParsedGcl | undefined;
|
|
35
|
+
export declare function parseGcl(raw: string | undefined | null, now?: number): ParsedGcl | undefined;
|
|
36
36
|
/** Build a fresh `_gcl_aw`/`_gcl_gb` value in gtag's own format. */
|
|
37
|
-
declare function formatGcl(clickId: string, now: number): string;
|
|
37
|
+
export declare function formatGcl(clickId: string, now: number): string;
|
|
38
38
|
/**
|
|
39
39
|
* Parse a `_uetmsclkid` value: `_uet<32 hex>`. Returns the click id, lowercased, or undefined
|
|
40
40
|
* for anything bat.js itself would not read back.
|
|
41
41
|
*/
|
|
42
|
-
declare function parseUetMsclkid(raw: string | undefined | null): string | undefined;
|
|
42
|
+
export declare function parseUetMsclkid(raw: string | undefined | null): string | undefined;
|
|
43
43
|
/** Build a `_uetmsclkid` value in bat.js's own format. */
|
|
44
|
-
declare function formatUetMsclkid(clickId: string): string;
|
|
44
|
+
export declare function formatUetMsclkid(clickId: string): string;
|
|
45
45
|
/**
|
|
46
46
|
* The click id as the Conversions API wants it: a dashed, lowercase UUID. The URL and the cookie
|
|
47
47
|
* carry the 32-hex form; a value in any other shape is returned untouched for the API to judge.
|
|
48
48
|
*/
|
|
49
|
-
declare function formatMsclkid(clickId: string): string;
|
|
50
|
-
type ResolveClickIdCookiesInput = {
|
|
49
|
+
export declare function formatMsclkid(clickId: string): string;
|
|
50
|
+
export type ResolveClickIdCookiesInput = {
|
|
51
51
|
/** The absolute request URL (must include the query string). */
|
|
52
52
|
url: string;
|
|
53
53
|
/** The raw `Cookie` request header, if any. */
|
|
@@ -76,7 +76,7 @@ type ResolveClickIdCookiesInput = {
|
|
|
76
76
|
*/
|
|
77
77
|
refresh?: boolean;
|
|
78
78
|
};
|
|
79
|
-
type ResolveClickIdCookiesResult = {
|
|
79
|
+
export type ResolveClickIdCookiesResult = {
|
|
80
80
|
/**
|
|
81
81
|
* Cookies to emit on the response, ready for `Set-Cookie`. Empty when nothing needs to change.
|
|
82
82
|
* A `value: ''`, `maxAge: 0` entry is a deletion (an expired or malformed leftover).
|
|
@@ -103,9 +103,8 @@ type ResolveClickIdCookiesResult = {
|
|
|
103
103
|
* *remaining* lifetime — never `now + 90d` — so a returning visitor's window cannot slide forward
|
|
104
104
|
* (which is what makes Meta flag an expired fbclid).
|
|
105
105
|
*/
|
|
106
|
-
declare function resolveClickIdCookies(input: ResolveClickIdCookiesInput): ResolveClickIdCookiesResult;
|
|
106
|
+
export declare function resolveClickIdCookies(input: ResolveClickIdCookiesInput): ResolveClickIdCookiesResult;
|
|
107
107
|
/** Serialize the resolved cookies into `Set-Cookie` header values. */
|
|
108
|
-
declare function toSetCookieHeaders(cookies: SetCookie[]): string[];
|
|
108
|
+
export declare function toSetCookieHeaders(cookies: SetCookie[]): string[];
|
|
109
109
|
//#endregion
|
|
110
|
-
export { FBC_COOKIE, GCL_AW_COOKIE, GCL_GB_COOKIE, ParsedFbc, ParsedGcl, RDT_CID_COOKIE, ResolveClickIdCookiesInput, ResolveClickIdCookiesResult, UET_MSCLKID_COOKIE, formatFbc, formatGcl, formatMsclkid, formatUetMsclkid, parseFbc, parseGcl, parseUetMsclkid, resolveClickIdCookies, toSetCookieHeaders };
|
|
111
110
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/click-id/index.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/click-id/index.ts"],"mappings":";;qBA2Ca;qBACA;qBACA;qBACA;qBACA;YAED;EAAc;EAAa;EAAsB;;;;;;;wBAO7C,SACd,gCACA,eACC;;;;;wBAmBa,UAAU,gBAAgB,aAAa;YAI3C;EAAc;EAAa;EAAsB;;;;;;;;wBAa7C,SACd,gCACA,eACC;;wBAgBa,UAAU,iBAAiB;;;;;wBAe3B,gBAAgB;;wBAOhB,iBAAiB;;;;;wBAQjB,cAAc;YAMlB;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;;;;;;;;;;EAeA;;YAGU;;;;;EAKV,SAAS;;EAET;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;;;;;;;wBAuBc,sBACd,OAAO,6BACN;;wBAoHa,mBAAmB,SAAS"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SetCookie } from "cookie";
|
|
2
2
|
//#region src/click-id/index.d.ts
|
|
3
|
-
declare const FBC_COOKIE = "_fbc";
|
|
4
|
-
declare const RDT_CID_COOKIE = "_rdt_cid";
|
|
5
|
-
declare const GCL_AW_COOKIE = "_gcl_aw";
|
|
6
|
-
declare const GCL_GB_COOKIE = "_gcl_gb";
|
|
7
|
-
declare const UET_MSCLKID_COOKIE = "_uetmsclkid";
|
|
8
|
-
type ParsedFbc = {
|
|
3
|
+
export declare const FBC_COOKIE = "_fbc";
|
|
4
|
+
export declare const RDT_CID_COOKIE = "_rdt_cid";
|
|
5
|
+
export declare const GCL_AW_COOKIE = "_gcl_aw";
|
|
6
|
+
export declare const GCL_GB_COOKIE = "_gcl_gb";
|
|
7
|
+
export declare const UET_MSCLKID_COOKIE = "_uetmsclkid";
|
|
8
|
+
export type ParsedFbc = {
|
|
9
9
|
raw: string;
|
|
10
10
|
creationTime: number;
|
|
11
11
|
fbclid: string;
|
|
@@ -15,13 +15,13 @@ type ParsedFbc = {
|
|
|
15
15
|
* Returns undefined for anything malformed — a fbclid never contains a dot, but joining the tail
|
|
16
16
|
* back together keeps us forward-compatible if that ever changes.
|
|
17
17
|
*/
|
|
18
|
-
declare function parseFbc(raw: string | undefined | null, now?: number): ParsedFbc | undefined;
|
|
18
|
+
export declare function parseFbc(raw: string | undefined | null, now?: number): ParsedFbc | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* Build a fresh `_fbc` value. subdomainIndex is the cookie's domain level (com=0, example.com=1,
|
|
21
21
|
* www.example.com=2); 1 is correct for an apex-hosted cookie.
|
|
22
22
|
*/
|
|
23
|
-
declare function formatFbc(fbclid: string, now: number, subdomainIndex?: number): string;
|
|
24
|
-
type ParsedGcl = {
|
|
23
|
+
export declare function formatFbc(fbclid: string, now: number, subdomainIndex?: number): string;
|
|
24
|
+
export type ParsedGcl = {
|
|
25
25
|
raw: string;
|
|
26
26
|
creationTime: number;
|
|
27
27
|
clickId: string;
|
|
@@ -32,22 +32,22 @@ type ParsedGcl = {
|
|
|
32
32
|
* validates the segments exactly this way (`/^\d+$/` timestamp, `/^[\w-]+$/` click id); any
|
|
33
33
|
* labels tail is preserved through `raw` so a re-issue stays byte-identical.
|
|
34
34
|
*/
|
|
35
|
-
declare function parseGcl(raw: string | undefined | null, now?: number): ParsedGcl | undefined;
|
|
35
|
+
export declare function parseGcl(raw: string | undefined | null, now?: number): ParsedGcl | undefined;
|
|
36
36
|
/** Build a fresh `_gcl_aw`/`_gcl_gb` value in gtag's own format. */
|
|
37
|
-
declare function formatGcl(clickId: string, now: number): string;
|
|
37
|
+
export declare function formatGcl(clickId: string, now: number): string;
|
|
38
38
|
/**
|
|
39
39
|
* Parse a `_uetmsclkid` value: `_uet<32 hex>`. Returns the click id, lowercased, or undefined
|
|
40
40
|
* for anything bat.js itself would not read back.
|
|
41
41
|
*/
|
|
42
|
-
declare function parseUetMsclkid(raw: string | undefined | null): string | undefined;
|
|
42
|
+
export declare function parseUetMsclkid(raw: string | undefined | null): string | undefined;
|
|
43
43
|
/** Build a `_uetmsclkid` value in bat.js's own format. */
|
|
44
|
-
declare function formatUetMsclkid(clickId: string): string;
|
|
44
|
+
export declare function formatUetMsclkid(clickId: string): string;
|
|
45
45
|
/**
|
|
46
46
|
* The click id as the Conversions API wants it: a dashed, lowercase UUID. The URL and the cookie
|
|
47
47
|
* carry the 32-hex form; a value in any other shape is returned untouched for the API to judge.
|
|
48
48
|
*/
|
|
49
|
-
declare function formatMsclkid(clickId: string): string;
|
|
50
|
-
type ResolveClickIdCookiesInput = {
|
|
49
|
+
export declare function formatMsclkid(clickId: string): string;
|
|
50
|
+
export type ResolveClickIdCookiesInput = {
|
|
51
51
|
/** The absolute request URL (must include the query string). */
|
|
52
52
|
url: string;
|
|
53
53
|
/** The raw `Cookie` request header, if any. */
|
|
@@ -76,7 +76,7 @@ type ResolveClickIdCookiesInput = {
|
|
|
76
76
|
*/
|
|
77
77
|
refresh?: boolean;
|
|
78
78
|
};
|
|
79
|
-
type ResolveClickIdCookiesResult = {
|
|
79
|
+
export type ResolveClickIdCookiesResult = {
|
|
80
80
|
/**
|
|
81
81
|
* Cookies to emit on the response, ready for `Set-Cookie`. Empty when nothing needs to change.
|
|
82
82
|
* A `value: ''`, `maxAge: 0` entry is a deletion (an expired or malformed leftover).
|
|
@@ -103,9 +103,8 @@ type ResolveClickIdCookiesResult = {
|
|
|
103
103
|
* *remaining* lifetime — never `now + 90d` — so a returning visitor's window cannot slide forward
|
|
104
104
|
* (which is what makes Meta flag an expired fbclid).
|
|
105
105
|
*/
|
|
106
|
-
declare function resolveClickIdCookies(input: ResolveClickIdCookiesInput): ResolveClickIdCookiesResult;
|
|
106
|
+
export declare function resolveClickIdCookies(input: ResolveClickIdCookiesInput): ResolveClickIdCookiesResult;
|
|
107
107
|
/** Serialize the resolved cookies into `Set-Cookie` header values. */
|
|
108
|
-
declare function toSetCookieHeaders(cookies: SetCookie[]): string[];
|
|
108
|
+
export declare function toSetCookieHeaders(cookies: SetCookie[]): string[];
|
|
109
109
|
//#endregion
|
|
110
|
-
export { FBC_COOKIE, GCL_AW_COOKIE, GCL_GB_COOKIE, ParsedFbc, ParsedGcl, RDT_CID_COOKIE, ResolveClickIdCookiesInput, ResolveClickIdCookiesResult, UET_MSCLKID_COOKIE, formatFbc, formatGcl, formatMsclkid, formatUetMsclkid, parseFbc, parseGcl, parseUetMsclkid, resolveClickIdCookies, toSetCookieHeaders };
|
|
111
110
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/click-id/index.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/click-id/index.ts"],"mappings":";;qBA2Ca;qBACA;qBACA;qBACA;qBACA;YAED;EAAc;EAAa;EAAsB;;;;;;;wBAO7C,SACd,gCACA,eACC;;;;;wBAmBa,UAAU,gBAAgB,aAAa;YAI3C;EAAc;EAAa;EAAsB;;;;;;;;wBAa7C,SACd,gCACA,eACC;;wBAgBa,UAAU,iBAAiB;;;;;wBAe3B,gBAAgB;;wBAOhB,iBAAiB;;;;;wBAQjB,cAAc;YAMlB;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;;;;;;;;;;EAeA;;YAGU;;;;;EAKV,SAAS;;EAET;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;;;;;;;wBAuBc,sBACd,OAAO,6BACN;;wBAoHa,mBAAmB,SAAS"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/constants/storage.d.ts
|
|
2
|
-
declare const keys: {
|
|
2
|
+
export declare const keys: {
|
|
3
3
|
readonly device_id: 'device_id';
|
|
4
4
|
readonly visitor_id: 'visitor_id';
|
|
5
5
|
readonly first_open_time: 'first_open_time';
|
|
@@ -9,5 +9,4 @@ declare const keys: {
|
|
|
9
9
|
readonly session: 'session';
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
|
-
export { keys };
|
|
13
12
|
//# sourceMappingURL=storage.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.cts","names":[],"sources":["../../src/constants/storage.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"storage.d.cts","names":[],"sources":["../../src/constants/storage.ts"],"mappings":";qBAAa;WACX;WACA;WACA;WACA;;WAEA;WACA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/constants/storage.d.ts
|
|
2
|
-
declare const keys: {
|
|
2
|
+
export declare const keys: {
|
|
3
3
|
readonly device_id: 'device_id';
|
|
4
4
|
readonly visitor_id: 'visitor_id';
|
|
5
5
|
readonly first_open_time: 'first_open_time';
|
|
@@ -9,5 +9,4 @@ declare const keys: {
|
|
|
9
9
|
readonly session: 'session';
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
|
-
export { keys };
|
|
13
12
|
//# sourceMappingURL=storage.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.mts","names":[],"sources":["../../src/constants/storage.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"storage.d.mts","names":[],"sources":["../../src/constants/storage.ts"],"mappings":";qBAAa;WACX;WACA;WACA;WACA;;WAEA;WACA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CreateFeedbackDTO } from "../schema/index.cjs";
|
|
2
2
|
//#region src/feedback/index.d.ts
|
|
3
|
-
declare function sendFeedback(dto: CreateFeedbackDTO): Promise<void>;
|
|
3
|
+
export declare function sendFeedback(dto: CreateFeedbackDTO): Promise<void>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { sendFeedback };
|
|
6
5
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/feedback/index.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/feedback/index.ts"],"mappings":";;wBAIsB,aAAa,KAAK,oBAAiB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CreateFeedbackDTO } from "../schema/index.mjs";
|
|
2
2
|
//#region src/feedback/index.d.ts
|
|
3
|
-
declare function sendFeedback(dto: CreateFeedbackDTO): Promise<void>;
|
|
3
|
+
export declare function sendFeedback(dto: CreateFeedbackDTO): Promise<void>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { sendFeedback };
|
|
6
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/feedback/index.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/feedback/index.ts"],"mappings":";;wBAIsB,aAAa,KAAK,oBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-app-analytics.d.cts","names":[],"sources":["../../src/hooks/use-app-analytics.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"use-app-analytics.d.cts","names":[],"sources":["../../src/hooks/use-app-analytics.ts"],"mappings":";wBAoBgB,gBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-app-analytics.d.mts","names":[],"sources":["../../src/hooks/use-app-analytics.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"use-app-analytics.d.mts","names":[],"sources":["../../src/hooks/use-app-analytics.ts"],"mappings":";wBAoBgB,gBAAgB"}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Tracks outbound link clicks - when a user clicks a link that leads away
|
|
4
4
|
* from the current domain to another website.
|
|
5
5
|
*/
|
|
6
|
-
declare function useOutboundClickAnalytics(): void;
|
|
6
|
+
export declare function useOutboundClickAnalytics(): void;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { useOutboundClickAnalytics };
|
|
9
8
|
//# sourceMappingURL=use-outbound-click-analytics.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-outbound-click-analytics.d.cts","names":[],"sources":["../../src/hooks/use-outbound-click-analytics.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"use-outbound-click-analytics.d.cts","names":[],"sources":["../../src/hooks/use-outbound-click-analytics.ts"],"mappings":";;;;;wBAOgB"}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Tracks outbound link clicks - when a user clicks a link that leads away
|
|
4
4
|
* from the current domain to another website.
|
|
5
5
|
*/
|
|
6
|
-
declare function useOutboundClickAnalytics(): void;
|
|
6
|
+
export declare function useOutboundClickAnalytics(): void;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { useOutboundClickAnalytics };
|
|
9
8
|
//# sourceMappingURL=use-outbound-click-analytics.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-outbound-click-analytics.d.mts","names":[],"sources":["../../src/hooks/use-outbound-click-analytics.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"use-outbound-click-analytics.d.mts","names":[],"sources":["../../src/hooks/use-outbound-click-analytics.ts"],"mappings":";;;;;wBAOgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-previous.d.cts","names":[],"sources":["../../src/hooks/use-previous.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"use-previous.d.cts","names":[],"sources":["../../src/hooks/use-previous.ts"],"mappings":";wBAEgB,YAAY,GAAG,OAAO,IAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-previous.d.mts","names":[],"sources":["../../src/hooks/use-previous.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"use-previous.d.mts","names":[],"sources":["../../src/hooks/use-previous.ts"],"mappings":";wBAEgB,YAAY,GAAG,OAAO,IAAI"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Metric } from "web-vitals";
|
|
2
2
|
//#region src/hooks/use-report-web-vitals.d.ts
|
|
3
|
-
declare function useReportWebVitals(reportWebVitalsFn: (metric: Metric) => void): void;
|
|
3
|
+
export declare function useReportWebVitals(reportWebVitalsFn: (metric: Metric) => void): void;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { useReportWebVitals };
|
|
6
5
|
//# sourceMappingURL=use-report-web-vitals.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-report-web-vitals.d.cts","names":[],"sources":["../../src/hooks/use-report-web-vitals.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"use-report-web-vitals.d.cts","names":[],"sources":["../../src/hooks/use-report-web-vitals.ts"],"mappings":";;wBAGgB,mBAAmB,oBAAoB,QAAQ"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Metric } from "web-vitals";
|
|
2
2
|
//#region src/hooks/use-report-web-vitals.d.ts
|
|
3
|
-
declare function useReportWebVitals(reportWebVitalsFn: (metric: Metric) => void): void;
|
|
3
|
+
export declare function useReportWebVitals(reportWebVitalsFn: (metric: Metric) => void): void;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { useReportWebVitals };
|
|
6
5
|
//# sourceMappingURL=use-report-web-vitals.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-report-web-vitals.d.mts","names":[],"sources":["../../src/hooks/use-report-web-vitals.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"use-report-web-vitals.d.mts","names":[],"sources":["../../src/hooks/use-report-web-vitals.ts"],"mappings":";;wBAGgB,mBAAmB,oBAAoB,QAAQ"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventName, TrackName, TrackProperties } from "../track/types.cjs";
|
|
2
2
|
import { RefCallback } from "react";
|
|
3
3
|
//#region src/hooks/use-track-impression.d.ts
|
|
4
|
-
declare function useTrackImpression<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>): RefCallback<Element>;
|
|
4
|
+
export declare function useTrackImpression<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>): RefCallback<Element>;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { useTrackImpression };
|
|
7
6
|
//# sourceMappingURL=use-track-impression.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-track-impression.d.cts","names":[],"sources":["../../src/hooks/use-track-impression.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"use-track-impression.d.cts","names":[],"sources":["../../src/hooks/use-track-impression.ts"],"mappings":";;;wBAIgB,mBAAmB,UAAU,YAAY,WACvD,MAAM,UAAU,IAChB,aAAa,gBAAgB,KAC5B,YAAY"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EventName, TrackName, TrackProperties } from "../track/types.mjs";
|
|
2
2
|
import { RefCallback } from "react";
|
|
3
3
|
//#region src/hooks/use-track-impression.d.ts
|
|
4
|
-
declare function useTrackImpression<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>): RefCallback<Element>;
|
|
4
|
+
export declare function useTrackImpression<T extends EventName = EventName>(name: TrackName<T>, properties?: TrackProperties<T>): RefCallback<Element>;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { useTrackImpression };
|
|
7
6
|
//# sourceMappingURL=use-track-impression.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-track-impression.d.mts","names":[],"sources":["../../src/hooks/use-track-impression.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"use-track-impression.d.mts","names":[],"sources":["../../src/hooks/use-track-impression.ts"],"mappings":";;;wBAIgB,mBAAmB,UAAU,YAAY,WACvD,MAAM,UAAU,IAChB,aAAa,gBAAgB,KAC5B,YAAY"}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* id for `setUETUser` and sync the visitor once per mount — the first page view of the visit,
|
|
5
5
|
* which is where Microsoft wants it. No-op without a customer id.
|
|
6
6
|
*/
|
|
7
|
-
declare function useUETIdSync(customerId: string | number | undefined): void;
|
|
7
|
+
export declare function useUETIdSync(customerId: string | number | undefined): void;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { useUETIdSync };
|
|
10
9
|
//# sourceMappingURL=use-uet-id-sync.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-uet-id-sync.d.cts","names":[],"sources":["../../src/hooks/use-uet-id-sync.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"use-uet-id-sync.d.cts","names":[],"sources":["../../src/hooks/use-uet-id-sync.ts"],"mappings":";;;;;;wBAQgB,aAAa"}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* id for `setUETUser` and sync the visitor once per mount — the first page view of the visit,
|
|
5
5
|
* which is where Microsoft wants it. No-op without a customer id.
|
|
6
6
|
*/
|
|
7
|
-
declare function useUETIdSync(customerId: string | number | undefined): void;
|
|
7
|
+
export declare function useUETIdSync(customerId: string | number | undefined): void;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { useUETIdSync };
|
|
10
9
|
//# sourceMappingURL=use-uet-id-sync.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-uet-id-sync.d.mts","names":[],"sources":["../../src/hooks/use-uet-id-sync.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"use-uet-id-sync.d.mts","names":[],"sources":["../../src/hooks/use-uet-id-sync.ts"],"mappings":";;;;;;wBAQgB,aAAa"}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* router's query string (`?a=1`, or `''`), required so no caller forgets that the query is
|
|
8
8
|
* part of what makes a page
|
|
9
9
|
*/
|
|
10
|
-
declare function useWebAnalytics(pathname: string, search: string): void;
|
|
10
|
+
export declare function useWebAnalytics(pathname: string, search: string): void;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { useWebAnalytics };
|
|
13
12
|
//# sourceMappingURL=use-web-analytics.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-web-analytics.d.cts","names":[],"sources":["../../src/hooks/use-web-analytics.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"use-web-analytics.d.cts","names":[],"sources":["../../src/hooks/use-web-analytics.ts"],"mappings":";;;;;;;;;wBA8DgB,gBAAgB,kBAAkB"}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* router's query string (`?a=1`, or `''`), required so no caller forgets that the query is
|
|
8
8
|
* part of what makes a page
|
|
9
9
|
*/
|
|
10
|
-
declare function useWebAnalytics(pathname: string, search: string): void;
|
|
10
|
+
export declare function useWebAnalytics(pathname: string, search: string): void;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { useWebAnalytics };
|
|
13
12
|
//# sourceMappingURL=use-web-analytics.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-web-analytics.d.mts","names":[],"sources":["../../src/hooks/use-web-analytics.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"use-web-analytics.d.mts","names":[],"sources":["../../src/hooks/use-web-analytics.ts"],"mappings":";;;;;;;;;wBA8DgB,gBAAgB,kBAAkB"}
|
package/dist/link/index.d.cts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { CreateLinkDTO } from "../schema/index.cjs";
|
|
2
2
|
//#region src/link/index.d.ts
|
|
3
|
-
interface Link extends CreateLinkDTO {
|
|
3
|
+
export interface Link extends CreateLinkDTO {
|
|
4
4
|
id: string;
|
|
5
5
|
created_at: string;
|
|
6
6
|
}
|
|
7
|
-
declare function createLink(dto: CreateLinkDTO): Promise<Link>;
|
|
8
|
-
declare function getLink(id: string): Promise<Link | null>;
|
|
7
|
+
export declare function createLink(dto: CreateLinkDTO): Promise<Link>;
|
|
8
|
+
export declare function getLink(id: string): Promise<Link | null>;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { Link, createLink, getLink };
|
|
11
10
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/link/index.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/link/index.ts"],"mappings":";;iBAIiB,aAAa;EAC5B;EACA;;wBAGoB,WAAW,KAAK,gBAAa,QAAA;wBAc7B,QAAQ,aAAa,QAAQ"}
|
package/dist/link/index.d.mts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { CreateLinkDTO } from "../schema/index.mjs";
|
|
2
2
|
//#region src/link/index.d.ts
|
|
3
|
-
interface Link extends CreateLinkDTO {
|
|
3
|
+
export interface Link extends CreateLinkDTO {
|
|
4
4
|
id: string;
|
|
5
5
|
created_at: string;
|
|
6
6
|
}
|
|
7
|
-
declare function createLink(dto: CreateLinkDTO): Promise<Link>;
|
|
8
|
-
declare function getLink(id: string): Promise<Link | null>;
|
|
7
|
+
export declare function createLink(dto: CreateLinkDTO): Promise<Link>;
|
|
8
|
+
export declare function getLink(id: string): Promise<Link | null>;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { Link, createLink, getLink };
|
|
11
10
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/link/index.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/link/index.ts"],"mappings":";;iBAIiB,aAAa;EAC5B;EACA;;wBAGoB,WAAW,KAAK,gBAAa,QAAA;wBAc7B,QAAQ,aAAa,QAAQ"}
|
package/dist/native/fbsdk.d.cts
CHANGED
|
@@ -3,7 +3,6 @@ import { EventName, TrackName, TrackProperties } from "../track/types.cjs";
|
|
|
3
3
|
/**
|
|
4
4
|
* ref: https://developers.facebook.com/docs/app-events/guides/maximize-in-app-ad-revenue/
|
|
5
5
|
*/
|
|
6
|
-
declare function sendFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Promise<void>;
|
|
6
|
+
export declare function sendFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Promise<void>;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { sendFBEvent };
|
|
9
8
|
//# sourceMappingURL=fbsdk.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fbsdk.d.cts","names":[],"sources":["../../src/native/fbsdk.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"fbsdk.d.cts","names":[],"sources":["../../src/native/fbsdk.ts"],"mappings":";;;;;wBAOsB,YAAY,UAAU,WAC1C,MAAM,UAAU,IAChB,aAAa,gBAAgB,KAAE"}
|
package/dist/native/fbsdk.d.mts
CHANGED
|
@@ -3,7 +3,6 @@ import { EventName, TrackName, TrackProperties } from "../track/types.mjs";
|
|
|
3
3
|
/**
|
|
4
4
|
* ref: https://developers.facebook.com/docs/app-events/guides/maximize-in-app-ad-revenue/
|
|
5
5
|
*/
|
|
6
|
-
declare function sendFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Promise<void>;
|
|
6
|
+
export declare function sendFBEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Promise<void>;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { sendFBEvent };
|
|
9
8
|
//# sourceMappingURL=fbsdk.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fbsdk.d.mts","names":[],"sources":["../../src/native/fbsdk.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"fbsdk.d.mts","names":[],"sources":["../../src/native/fbsdk.ts"],"mappings":";;;;;wBAOsB,YAAY,UAAU,WAC1C,MAAM,UAAU,IAChB,aAAa,gBAAgB,KAAE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//#region src/native/fingerprint.d.ts
|
|
2
|
-
type DeterministicFingerprint = {
|
|
2
|
+
export type DeterministicFingerprint = {
|
|
3
3
|
click_id: string | null;
|
|
4
4
|
};
|
|
5
|
-
type ProbabilisticFingerprint = {
|
|
5
|
+
export type ProbabilisticFingerprint = {
|
|
6
6
|
os: string | null;
|
|
7
7
|
os_name: string | null;
|
|
8
8
|
os_version: string | null;
|
|
@@ -21,8 +21,7 @@ type ProbabilisticFingerprint = {
|
|
|
21
21
|
pasted_link: string | null;
|
|
22
22
|
timestamp: number;
|
|
23
23
|
};
|
|
24
|
-
declare function getDeterministicFingerprint(): Promise<DeterministicFingerprint>;
|
|
25
|
-
declare function getProbabilisticFingerprint(shouldUseClipboard?: boolean): Promise<ProbabilisticFingerprint>;
|
|
24
|
+
export declare function getDeterministicFingerprint(): Promise<DeterministicFingerprint>;
|
|
25
|
+
export declare function getProbabilisticFingerprint(shouldUseClipboard?: boolean): Promise<ProbabilisticFingerprint>;
|
|
26
26
|
//#endregion
|
|
27
|
-
export { DeterministicFingerprint, ProbabilisticFingerprint, getDeterministicFingerprint, getProbabilisticFingerprint };
|
|
28
27
|
//# sourceMappingURL=fingerprint.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fingerprint.d.cts","names":[],"sources":["../../src/native/fingerprint.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"fingerprint.d.cts","names":[],"sources":["../../src/native/fingerprint.ts"],"mappings":";YAkBY;EACV;;YAGU;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;wBAGoB,+BAA+B,QAAQ;wBAOvC,4BACpB,+BACC,QAAQ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//#region src/native/fingerprint.d.ts
|
|
2
|
-
type DeterministicFingerprint = {
|
|
2
|
+
export type DeterministicFingerprint = {
|
|
3
3
|
click_id: string | null;
|
|
4
4
|
};
|
|
5
|
-
type ProbabilisticFingerprint = {
|
|
5
|
+
export type ProbabilisticFingerprint = {
|
|
6
6
|
os: string | null;
|
|
7
7
|
os_name: string | null;
|
|
8
8
|
os_version: string | null;
|
|
@@ -21,8 +21,7 @@ type ProbabilisticFingerprint = {
|
|
|
21
21
|
pasted_link: string | null;
|
|
22
22
|
timestamp: number;
|
|
23
23
|
};
|
|
24
|
-
declare function getDeterministicFingerprint(): Promise<DeterministicFingerprint>;
|
|
25
|
-
declare function getProbabilisticFingerprint(shouldUseClipboard?: boolean): Promise<ProbabilisticFingerprint>;
|
|
24
|
+
export declare function getDeterministicFingerprint(): Promise<DeterministicFingerprint>;
|
|
25
|
+
export declare function getProbabilisticFingerprint(shouldUseClipboard?: boolean): Promise<ProbabilisticFingerprint>;
|
|
26
26
|
//#endregion
|
|
27
|
-
export { DeterministicFingerprint, ProbabilisticFingerprint, getDeterministicFingerprint, getProbabilisticFingerprint };
|
|
28
27
|
//# sourceMappingURL=fingerprint.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fingerprint.d.mts","names":[],"sources":["../../src/native/fingerprint.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"fingerprint.d.mts","names":[],"sources":["../../src/native/fingerprint.ts"],"mappings":";YAkBY;EACV;;YAGU;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;wBAGoB,+BAA+B,QAAQ;wBAOvC,4BACpB,+BACC,QAAQ"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventName, TrackName, TrackProperties } from "../track/types.cjs";
|
|
2
2
|
//#region src/native/firebase.d.ts
|
|
3
|
-
declare function sendFirebaseEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Promise<void>;
|
|
3
|
+
export declare function sendFirebaseEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Promise<void>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { sendFirebaseEvent };
|
|
6
5
|
//# sourceMappingURL=firebase.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firebase.d.cts","names":[],"sources":["../../src/native/firebase.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"firebase.d.cts","names":[],"sources":["../../src/native/firebase.ts"],"mappings":";;wBAMsB,kBAAkB,UAAU,WAChD,MAAM,UAAU,IAChB,aAAa,gBAAgB,KAAE"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventName, TrackName, TrackProperties } from "../track/types.mjs";
|
|
2
2
|
//#region src/native/firebase.d.ts
|
|
3
|
-
declare function sendFirebaseEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Promise<void>;
|
|
3
|
+
export declare function sendFirebaseEvent<T extends EventName>(name: TrackName<T>, properties?: TrackProperties<T>): Promise<void>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { sendFirebaseEvent };
|
|
6
5
|
//# sourceMappingURL=firebase.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firebase.d.mts","names":[],"sources":["../../src/native/firebase.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"firebase.d.mts","names":[],"sources":["../../src/native/firebase.ts"],"mappings":";;wBAMsB,kBAAkB,UAAU,WAChD,MAAM,UAAU,IAChB,aAAa,gBAAgB,KAAE"}
|