@mondaydotcomorg/z2h-shared-utils 0.3.0 → 0.3.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/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.mjs +1 -2
- package/dist/esm/observability/events.d.ts +24 -0
- package/dist/esm/observability/events.d.ts.map +1 -0
- package/dist/esm/observability/events.mjs +25 -0
- package/dist/esm/observability/index.d.ts +1 -0
- package/dist/esm/observability/index.d.ts.map +1 -1
- package/dist/esm/observability/index.mjs +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -8
- package/dist/observability/events.d.ts +24 -0
- package/dist/observability/events.d.ts.map +1 -0
- package/dist/observability/events.js +27 -0
- package/dist/observability/index.d.ts +1 -0
- package/dist/observability/index.d.ts.map +1 -1
- package/dist/observability/index.js +2 -0
- package/package.json +6 -1
- package/src/index.ts +1 -1
- package/src/observability/events.ts +23 -0
- package/src/observability/index.ts +1 -0
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { createHttpTracker } from './observability/httpTracker.mjs';
|
|
1
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BI event names tracked via `trackEvent`, grouped by the part of the backend
|
|
3
|
+
* runner that emits them. Single source of truth for what's tracked — add a
|
|
4
|
+
* new event here first, then reference it, instead of a string literal at the
|
|
5
|
+
* call site.
|
|
6
|
+
*/
|
|
7
|
+
export declare const BackendRunnerEvents: {
|
|
8
|
+
readonly invoke: {
|
|
9
|
+
readonly succeeded: "z2h_backend_invoke_succeeded";
|
|
10
|
+
readonly failed: "z2h_backend_invoke_failed";
|
|
11
|
+
};
|
|
12
|
+
readonly snowflake: {
|
|
13
|
+
readonly queryExecuted: "z2h_snowflake_query_executed";
|
|
14
|
+
};
|
|
15
|
+
readonly llm: {
|
|
16
|
+
readonly call: "z2h_llm_call";
|
|
17
|
+
};
|
|
18
|
+
readonly integration: {
|
|
19
|
+
readonly connectStarted: "z2h_integration_connect_started";
|
|
20
|
+
readonly connected: "z2h_integration_connected";
|
|
21
|
+
readonly connectDeclined: "z2h_integration_connect_declined";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;CAgBtB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BI event names tracked via `trackEvent`, grouped by the part of the backend
|
|
3
|
+
* runner that emits them. Single source of truth for what's tracked — add a
|
|
4
|
+
* new event here first, then reference it, instead of a string literal at the
|
|
5
|
+
* call site.
|
|
6
|
+
*/
|
|
7
|
+
const BackendRunnerEvents = {
|
|
8
|
+
invoke: {
|
|
9
|
+
succeeded: 'z2h_backend_invoke_succeeded',
|
|
10
|
+
failed: 'z2h_backend_invoke_failed',
|
|
11
|
+
},
|
|
12
|
+
snowflake: {
|
|
13
|
+
queryExecuted: 'z2h_snowflake_query_executed',
|
|
14
|
+
},
|
|
15
|
+
llm: {
|
|
16
|
+
call: 'z2h_llm_call',
|
|
17
|
+
},
|
|
18
|
+
integration: {
|
|
19
|
+
connectStarted: 'z2h_integration_connect_started',
|
|
20
|
+
connected: 'z2h_integration_connected',
|
|
21
|
+
connectDeclined: 'z2h_integration_connect_declined',
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { BackendRunnerEvents };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/observability/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/observability/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
1
|
|
|
3
|
-
const observability_tracker = require('./observability/tracker.js');
|
|
4
|
-
const observability_httpTracker = require('./observability/httpTracker.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
exports.trackEvent = observability_tracker.trackEvent;
|
|
9
|
-
exports.createHttpTracker = observability_httpTracker.createHttpTracker;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BI event names tracked via `trackEvent`, grouped by the part of the backend
|
|
3
|
+
* runner that emits them. Single source of truth for what's tracked — add a
|
|
4
|
+
* new event here first, then reference it, instead of a string literal at the
|
|
5
|
+
* call site.
|
|
6
|
+
*/
|
|
7
|
+
export declare const BackendRunnerEvents: {
|
|
8
|
+
readonly invoke: {
|
|
9
|
+
readonly succeeded: "z2h_backend_invoke_succeeded";
|
|
10
|
+
readonly failed: "z2h_backend_invoke_failed";
|
|
11
|
+
};
|
|
12
|
+
readonly snowflake: {
|
|
13
|
+
readonly queryExecuted: "z2h_snowflake_query_executed";
|
|
14
|
+
};
|
|
15
|
+
readonly llm: {
|
|
16
|
+
readonly call: "z2h_llm_call";
|
|
17
|
+
};
|
|
18
|
+
readonly integration: {
|
|
19
|
+
readonly connectStarted: "z2h_integration_connect_started";
|
|
20
|
+
readonly connected: "z2h_integration_connected";
|
|
21
|
+
readonly connectDeclined: "z2h_integration_connect_declined";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;CAgBtB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* BI event names tracked via `trackEvent`, grouped by the part of the backend
|
|
5
|
+
* runner that emits them. Single source of truth for what's tracked — add a
|
|
6
|
+
* new event here first, then reference it, instead of a string literal at the
|
|
7
|
+
* call site.
|
|
8
|
+
*/
|
|
9
|
+
const BackendRunnerEvents = {
|
|
10
|
+
invoke: {
|
|
11
|
+
succeeded: 'z2h_backend_invoke_succeeded',
|
|
12
|
+
failed: 'z2h_backend_invoke_failed',
|
|
13
|
+
},
|
|
14
|
+
snowflake: {
|
|
15
|
+
queryExecuted: 'z2h_snowflake_query_executed',
|
|
16
|
+
},
|
|
17
|
+
llm: {
|
|
18
|
+
call: 'z2h_llm_call',
|
|
19
|
+
},
|
|
20
|
+
integration: {
|
|
21
|
+
connectStarted: 'z2h_integration_connect_started',
|
|
22
|
+
connected: 'z2h_integration_connected',
|
|
23
|
+
connectDeclined: 'z2h_integration_connect_declined',
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports.BackendRunnerEvents = BackendRunnerEvents;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/observability/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/observability/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -2,8 +2,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2
2
|
|
|
3
3
|
const observability_tracker = require('./tracker.js');
|
|
4
4
|
const observability_httpTracker = require('./httpTracker.js');
|
|
5
|
+
const observability_events = require('./events.js');
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
exports.trackEvent = observability_tracker.trackEvent;
|
|
9
10
|
exports.createHttpTracker = observability_httpTracker.createHttpTracker;
|
|
11
|
+
exports.BackendRunnerEvents = observability_events.BackendRunnerEvents;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mondaydotcomorg/z2h-shared-utils",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
"require": "./dist/index.js",
|
|
10
10
|
"types": "./dist/index.d.ts"
|
|
11
11
|
},
|
|
12
|
+
"./observability": {
|
|
13
|
+
"import": "./dist/esm/observability/index.mjs",
|
|
14
|
+
"require": "./dist/observability/index.js",
|
|
15
|
+
"types": "./dist/observability/index.d.ts"
|
|
16
|
+
},
|
|
12
17
|
"./mf-scaffold": {
|
|
13
18
|
"import": "./dist/esm/mfScaffold.mjs",
|
|
14
19
|
"require": "./dist/mfScaffold.js",
|
package/src/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BI event names tracked via `trackEvent`, grouped by the part of the backend
|
|
3
|
+
* runner that emits them. Single source of truth for what's tracked — add a
|
|
4
|
+
* new event here first, then reference it, instead of a string literal at the
|
|
5
|
+
* call site.
|
|
6
|
+
*/
|
|
7
|
+
export const BackendRunnerEvents = {
|
|
8
|
+
invoke: {
|
|
9
|
+
succeeded: 'z2h_backend_invoke_succeeded',
|
|
10
|
+
failed: 'z2h_backend_invoke_failed',
|
|
11
|
+
},
|
|
12
|
+
snowflake: {
|
|
13
|
+
queryExecuted: 'z2h_snowflake_query_executed',
|
|
14
|
+
},
|
|
15
|
+
llm: {
|
|
16
|
+
call: 'z2h_llm_call',
|
|
17
|
+
},
|
|
18
|
+
integration: {
|
|
19
|
+
connectStarted: 'z2h_integration_connect_started',
|
|
20
|
+
connected: 'z2h_integration_connected',
|
|
21
|
+
connectDeclined: 'z2h_integration_connect_declined',
|
|
22
|
+
},
|
|
23
|
+
} as const;
|