@jitsu/protocols 1.3.0-canary.235.20230925135001 → 1.3.1-canary.300.20231019125048

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 CHANGED
@@ -147,6 +147,14 @@ interface AnalyticsContext {
147
147
  amp?: {
148
148
  id: string;
149
149
  };
150
+ /**
151
+ * Other tracking tools client ids
152
+ */
153
+ clientIds?: {
154
+ //Client ID of GA4 property
155
+ ga4?: string;
156
+ [key: string]: string;
157
+ };
150
158
 
151
159
  [key: string]: any;
152
160
  }
package/functions.d.ts CHANGED
@@ -33,6 +33,8 @@ export type AnyProps = Record<string, any>;
33
33
 
34
34
  export type FetchResponse = Response;
35
35
 
36
+ export type FetchType = (url: string, opts?: FetchOpts, logToRedis?: boolean) => Promise<FetchResponse>;
37
+
36
38
  export type FetchOpts = {
37
39
  method?: string;
38
40
  headers?: Record<string, string>;
@@ -45,7 +47,7 @@ export type FunctionContext = {
45
47
  debug: (message: string, ...args: any[]) => void;
46
48
  error: (message: string, ...args: any[]) => void;
47
49
  };
48
- fetch: (url: string, opts?: FetchOpts, logToRedis?: boolean) => Promise<FetchResponse>;
50
+ fetch: FetchType;
49
51
  store: Store;
50
52
  };
51
53
 
@@ -180,6 +182,8 @@ export type EventContext = {
180
182
  mode?: string;
181
183
  options?: any;
182
184
  };
185
+ // number of retries attempted
186
+ retries?: number;
183
187
  };
184
188
 
185
189
  export type FunctionConfigContext<P extends AnyProps = AnyProps> = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jitsu/protocols",
3
- "version": "1.3.0-canary.235.20230925135001",
3
+ "version": "1.3.1-canary.300.20231019125048",
4
4
  "description": "",
5
5
  "author": "Jitsu Dev Team <dev@jitsu.com>",
6
6
  "publishConfig": {