evo360-types 1.3.249 → 1.3.258
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.ts +1 -0
- package/dist/types/evo-log/evo-log-event.d.ts +70 -0
- package/dist/types/evo-log/evo-log-event.js +21 -0
- package/dist/types/evo-log/evo-log-event.ts +79 -0
- package/dist/types/evo-log/fb_collections.d.ts +6 -0
- package/dist/types/evo-log/fb_collections.js +9 -0
- package/dist/types/evo-log/fb_collections.ts +8 -0
- package/dist/types/evo-log/index.d.ts +2 -0
- package/dist/types/evo-log/index.js +18 -0
- package/dist/types/evo-log/index.ts +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from "./types/firebase/pubsub-sync";
|
|
|
4
4
|
export * from "./types/evo-core";
|
|
5
5
|
export * from "./types/evo-tenant";
|
|
6
6
|
export * from "./types/evo-activity";
|
|
7
|
+
export * from "./types/evo-log";
|
|
7
8
|
export * from "./types/evo-people";
|
|
8
9
|
export * from "./types/evo-crm/dic";
|
|
9
10
|
export * from "./types/evo-crm/lead";
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./types/firebase/pubsub-sync"), exports);
|
|
|
20
20
|
__exportStar(require("./types/evo-core"), exports);
|
|
21
21
|
__exportStar(require("./types/evo-tenant"), exports);
|
|
22
22
|
__exportStar(require("./types/evo-activity"), exports);
|
|
23
|
+
__exportStar(require("./types/evo-log"), exports);
|
|
23
24
|
__exportStar(require("./types/evo-people"), exports);
|
|
24
25
|
__exportStar(require("./types/evo-crm/dic"), exports);
|
|
25
26
|
__exportStar(require("./types/evo-crm/lead"), exports);
|
package/dist/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from "./types/firebase/pubsub-sync";
|
|
|
4
4
|
export * from "./types/evo-core";
|
|
5
5
|
export * from "./types/evo-tenant";
|
|
6
6
|
export * from "./types/evo-activity";
|
|
7
|
+
export * from "./types/evo-log";
|
|
7
8
|
export * from "./types/evo-people";
|
|
8
9
|
export * from "./types/evo-crm/dic";
|
|
9
10
|
export * from "./types/evo-crm/lead";
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/** Who performed the action (or integration/system). */
|
|
2
|
+
export declare enum EvoLogActorType {
|
|
3
|
+
User = "user",
|
|
4
|
+
System = "system",
|
|
5
|
+
Integration = "integration"
|
|
6
|
+
}
|
|
7
|
+
export declare enum EvoLogStatus {
|
|
8
|
+
Success = "success",
|
|
9
|
+
Error = "error"
|
|
10
|
+
}
|
|
11
|
+
/** Entrypoint kind for request metadata. */
|
|
12
|
+
export declare enum EvoLogRequestMethod {
|
|
13
|
+
OnCall = "onCall",
|
|
14
|
+
OnRequest = "onRequest"
|
|
15
|
+
}
|
|
16
|
+
export interface IEvoLogActor {
|
|
17
|
+
type: EvoLogActorType;
|
|
18
|
+
userId: string | null;
|
|
19
|
+
loginId: string | null;
|
|
20
|
+
}
|
|
21
|
+
export interface IEvoLogRequestMeta {
|
|
22
|
+
ip: string | null;
|
|
23
|
+
userAgent: string | null;
|
|
24
|
+
method: EvoLogRequestMethod;
|
|
25
|
+
requestId: string | null;
|
|
26
|
+
}
|
|
27
|
+
export interface IEvoLogTarget {
|
|
28
|
+
entityType?: string | null;
|
|
29
|
+
entityId?: string | null;
|
|
30
|
+
tenantScopedPath?: string | null;
|
|
31
|
+
}
|
|
32
|
+
export interface IEvoLogError {
|
|
33
|
+
code?: string | null;
|
|
34
|
+
message?: string | null;
|
|
35
|
+
}
|
|
36
|
+
export interface IEvoLogResultSummary {
|
|
37
|
+
summary?: string | null;
|
|
38
|
+
changedFields?: string[] | null;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* JSON string used for flexible fields in BigQuery sinks.
|
|
42
|
+
* Prefer `null` when absent (avoid the literal string `"null"`).
|
|
43
|
+
*/
|
|
44
|
+
export type EvoLogJsonString = string;
|
|
45
|
+
/**
|
|
46
|
+
* Canonical audit event payload published to {@link EvoLogEventsPubSubTopic}.
|
|
47
|
+
* `params` must follow a per-endpoint whitelist (no full raw payloads).
|
|
48
|
+
*/
|
|
49
|
+
export interface IEvoLogEvent {
|
|
50
|
+
eventId: string;
|
|
51
|
+
occurredAt: string;
|
|
52
|
+
tenant: string | null;
|
|
53
|
+
module: string;
|
|
54
|
+
action: string;
|
|
55
|
+
functionName: string;
|
|
56
|
+
status: EvoLogStatus;
|
|
57
|
+
actor: IEvoLogActor;
|
|
58
|
+
request: IEvoLogRequestMeta;
|
|
59
|
+
target?: IEvoLogTarget | null;
|
|
60
|
+
/**
|
|
61
|
+
* Whitelisted parameters as JSON string (sink-friendly).
|
|
62
|
+
*/
|
|
63
|
+
params: EvoLogJsonString | null;
|
|
64
|
+
/**
|
|
65
|
+
* Optional result summary as JSON string (sink-friendly).
|
|
66
|
+
*/
|
|
67
|
+
result?: EvoLogJsonString | null;
|
|
68
|
+
error?: IEvoLogError | null;
|
|
69
|
+
labels?: Record<string, string>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EvoLogRequestMethod = exports.EvoLogStatus = exports.EvoLogActorType = void 0;
|
|
4
|
+
/** Who performed the action (or integration/system). */
|
|
5
|
+
var EvoLogActorType;
|
|
6
|
+
(function (EvoLogActorType) {
|
|
7
|
+
EvoLogActorType["User"] = "user";
|
|
8
|
+
EvoLogActorType["System"] = "system";
|
|
9
|
+
EvoLogActorType["Integration"] = "integration";
|
|
10
|
+
})(EvoLogActorType || (exports.EvoLogActorType = EvoLogActorType = {}));
|
|
11
|
+
var EvoLogStatus;
|
|
12
|
+
(function (EvoLogStatus) {
|
|
13
|
+
EvoLogStatus["Success"] = "success";
|
|
14
|
+
EvoLogStatus["Error"] = "error";
|
|
15
|
+
})(EvoLogStatus || (exports.EvoLogStatus = EvoLogStatus = {}));
|
|
16
|
+
/** Entrypoint kind for request metadata. */
|
|
17
|
+
var EvoLogRequestMethod;
|
|
18
|
+
(function (EvoLogRequestMethod) {
|
|
19
|
+
EvoLogRequestMethod["OnCall"] = "onCall";
|
|
20
|
+
EvoLogRequestMethod["OnRequest"] = "onRequest";
|
|
21
|
+
})(EvoLogRequestMethod || (exports.EvoLogRequestMethod = EvoLogRequestMethod = {}));
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/** Who performed the action (or integration/system). */
|
|
2
|
+
export enum EvoLogActorType {
|
|
3
|
+
User = "user",
|
|
4
|
+
System = "system",
|
|
5
|
+
Integration = "integration",
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export enum EvoLogStatus {
|
|
9
|
+
Success = "success",
|
|
10
|
+
Error = "error",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** Entrypoint kind for request metadata. */
|
|
14
|
+
export enum EvoLogRequestMethod {
|
|
15
|
+
OnCall = "onCall",
|
|
16
|
+
OnRequest = "onRequest",
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface IEvoLogActor {
|
|
20
|
+
type: EvoLogActorType;
|
|
21
|
+
userId: string | null;
|
|
22
|
+
loginId: string | null;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface IEvoLogRequestMeta {
|
|
26
|
+
ip: string | null;
|
|
27
|
+
userAgent: string | null;
|
|
28
|
+
method: EvoLogRequestMethod;
|
|
29
|
+
requestId: string | null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface IEvoLogTarget {
|
|
33
|
+
entityType?: string | null;
|
|
34
|
+
entityId?: string | null;
|
|
35
|
+
tenantScopedPath?: string | null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface IEvoLogError {
|
|
39
|
+
code?: string | null;
|
|
40
|
+
message?: string | null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface IEvoLogResultSummary {
|
|
44
|
+
summary?: string | null;
|
|
45
|
+
changedFields?: string[] | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* JSON string used for flexible fields in BigQuery sinks.
|
|
50
|
+
* Prefer `null` when absent (avoid the literal string `"null"`).
|
|
51
|
+
*/
|
|
52
|
+
export type EvoLogJsonString = string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Canonical audit event payload published to {@link EvoLogEventsPubSubTopic}.
|
|
56
|
+
* `params` must follow a per-endpoint whitelist (no full raw payloads).
|
|
57
|
+
*/
|
|
58
|
+
export interface IEvoLogEvent {
|
|
59
|
+
eventId: string;
|
|
60
|
+
occurredAt: string;
|
|
61
|
+
tenant: string | null;
|
|
62
|
+
module: string;
|
|
63
|
+
action: string;
|
|
64
|
+
functionName: string;
|
|
65
|
+
status: EvoLogStatus;
|
|
66
|
+
actor: IEvoLogActor;
|
|
67
|
+
request: IEvoLogRequestMeta;
|
|
68
|
+
target?: IEvoLogTarget | null;
|
|
69
|
+
/**
|
|
70
|
+
* Whitelisted parameters as JSON string (sink-friendly).
|
|
71
|
+
*/
|
|
72
|
+
params: EvoLogJsonString | null;
|
|
73
|
+
/**
|
|
74
|
+
* Optional result summary as JSON string (sink-friendly).
|
|
75
|
+
*/
|
|
76
|
+
result?: EvoLogJsonString | null;
|
|
77
|
+
error?: IEvoLogError | null;
|
|
78
|
+
labels?: Record<string, string>;
|
|
79
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Evo-Log application id (cross-cutting audit / activity stream). */
|
|
2
|
+
export declare const EVO_LOG_APP = "evo-log";
|
|
3
|
+
/** Logical collection name used in Pub/Sub topic naming (mirrors other apps). */
|
|
4
|
+
export declare const EVO_LOG_ENTRIES_COLLECTION = "entries";
|
|
5
|
+
/** Dedicated Pub/Sub topic for structured audit events (sink: BigQuery, etc.). */
|
|
6
|
+
export declare const EvoLogEventsPubSubTopic = "app_evo-log_entries_events";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EvoLogEventsPubSubTopic = exports.EVO_LOG_ENTRIES_COLLECTION = exports.EVO_LOG_APP = void 0;
|
|
4
|
+
/** Evo-Log application id (cross-cutting audit / activity stream). */
|
|
5
|
+
exports.EVO_LOG_APP = "evo-log";
|
|
6
|
+
/** Logical collection name used in Pub/Sub topic naming (mirrors other apps). */
|
|
7
|
+
exports.EVO_LOG_ENTRIES_COLLECTION = "entries";
|
|
8
|
+
/** Dedicated Pub/Sub topic for structured audit events (sink: BigQuery, etc.). */
|
|
9
|
+
exports.EvoLogEventsPubSubTopic = `app_${exports.EVO_LOG_APP}_${exports.EVO_LOG_ENTRIES_COLLECTION}_events`;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Evo-Log application id (cross-cutting audit / activity stream). */
|
|
2
|
+
export const EVO_LOG_APP = "evo-log";
|
|
3
|
+
|
|
4
|
+
/** Logical collection name used in Pub/Sub topic naming (mirrors other apps). */
|
|
5
|
+
export const EVO_LOG_ENTRIES_COLLECTION = "entries";
|
|
6
|
+
|
|
7
|
+
/** Dedicated Pub/Sub topic for structured audit events (sink: BigQuery, etc.). */
|
|
8
|
+
export const EvoLogEventsPubSubTopic = `app_${EVO_LOG_APP}_${EVO_LOG_ENTRIES_COLLECTION}_events`;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./fb_collections"), exports);
|
|
18
|
+
__exportStar(require("./evo-log-event"), exports);
|