@jitsu/protocols 1.9.7 → 1.9.9-canary.990.20241015090416
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/analytics.d.ts +0 -1
- package/package.json +1 -1
- package/profile.d.ts +16 -0
- package/tsconfig.json +3 -0
package/analytics.d.ts
CHANGED
|
@@ -357,7 +357,6 @@ export type JitsuOptions = {
|
|
|
357
357
|
/**
|
|
358
358
|
* If true, events will go to s2s endpoints like ${host}/api/s/s2s/{type}. Otherwise, they'll go to ${host}/api/s/{type}.
|
|
359
359
|
*
|
|
360
|
-
* If not set at all, it will be detected automatically by presence of `window` object
|
|
361
360
|
*/
|
|
362
361
|
s2s?: boolean;
|
|
363
362
|
|
package/package.json
CHANGED
package/profile.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FunctionContext } from "./functions";
|
|
2
|
+
import { AnalyticsServerEvent } from "./analytics";
|
|
3
|
+
|
|
4
|
+
export type ProfileResult = {
|
|
5
|
+
properties: Record<string, any>;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export type ProfileFunction = (params: {
|
|
9
|
+
context: FunctionContext;
|
|
10
|
+
events: Iterable<AnalyticsServerEvent>;
|
|
11
|
+
user: {
|
|
12
|
+
id?: string;
|
|
13
|
+
anonymousId?: string;
|
|
14
|
+
traits: Record<string, any>;
|
|
15
|
+
};
|
|
16
|
+
}) => Promise<ProfileResult | undefined>;
|
package/tsconfig.json
ADDED