@jitsu/protocols 1.9.12 → 1.9.13-canary.1167.20250215132227

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.
@@ -18,6 +18,7 @@ export type IngestMessage = {
18
18
  baseUrl: string;
19
19
  slug?: string;
20
20
  domain?: string;
21
+ classic?: boolean;
21
22
  };
22
23
  httpHeaders: Record<string, string>;
23
24
  httpPayload: any;
package/functions.d.ts CHANGED
@@ -21,7 +21,7 @@ export interface Store {
21
21
  ttl(key: string): Promise<number>;
22
22
  }
23
23
 
24
- export interface Metrics {
24
+ export interface FunctionMetrics {
25
25
  counter(name: string): {
26
26
  //increment / decrement counter. Supports negative values
27
27
  inc: (value: number) => void;
@@ -70,7 +70,7 @@ export type FunctionContext<P extends AnyProps = AnyProps> = {
70
70
  log: FunctionLogger;
71
71
  fetch: FetchType;
72
72
  store: TTLStore;
73
- metrics?: Metrics;
73
+ metrics?: FunctionMetrics;
74
74
  props: P;
75
75
  };
76
76
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jitsu/protocols",
3
- "version": "1.9.12",
3
+ "version": "1.9.13-canary.1167.20250215132227",
4
4
  "description": "",
5
5
  "author": "Jitsu Dev Team <dev@jitsu.com>",
6
6
  "publishConfig": {
package/profile.d.ts CHANGED
@@ -2,6 +2,7 @@ import { FunctionContext } from "./functions";
2
2
  import { AnalyticsServerEvent } from "./analytics";
3
3
 
4
4
  export type ProfileResult = {
5
+ profile_id?: string;
5
6
  traits: Record<string, any>;
6
7
  };
7
8