evo360-types 1.3.247 → 1.3.252
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/apps/evo-finops/zod-schemas.d.ts +3 -0
- package/dist/apps/evo-finops/zod-schemas.js +1 -0
- package/dist/apps/evo-finops/zod-schemas.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.ts +1 -0
- package/dist/types/evo-finops/invoices/index.d.ts +1 -0
- package/dist/types/evo-finops/invoices/index.ts +1 -0
- package/dist/types/evo-log/evo-log-event.d.ts +59 -0
- package/dist/types/evo-log/evo-log-event.js +21 -0
- package/dist/types/evo-log/evo-log-event.ts +67 -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
|
@@ -10879,6 +10879,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
10879
10879
|
label: z.ZodOptional<z.ZodString>;
|
|
10880
10880
|
ref: z.ZodOptional<z.ZodAny>;
|
|
10881
10881
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
10882
|
+
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10882
10883
|
evo_chat: z.ZodOptional<z.ZodObject<{
|
|
10883
10884
|
notifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10884
10885
|
at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
@@ -11297,6 +11298,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
11297
11298
|
label: z.ZodOptional<z.ZodString>;
|
|
11298
11299
|
ref: z.ZodOptional<z.ZodAny>;
|
|
11299
11300
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
11301
|
+
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11300
11302
|
evo_chat: z.ZodOptional<z.ZodObject<{
|
|
11301
11303
|
notifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11302
11304
|
at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
@@ -11715,6 +11717,7 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
|
|
|
11715
11717
|
label: z.ZodOptional<z.ZodString>;
|
|
11716
11718
|
ref: z.ZodOptional<z.ZodAny>;
|
|
11717
11719
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
11720
|
+
externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11718
11721
|
evo_chat: z.ZodOptional<z.ZodObject<{
|
|
11719
11722
|
notifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11720
11723
|
at: z.ZodEffects<z.ZodDate, Date, unknown>;
|
|
@@ -570,6 +570,7 @@ exports.zServiceInvoiceSchema = zod_schemas_1.zFireDocSchema
|
|
|
570
570
|
taker: exports.zInvoiceTakerRefSchema,
|
|
571
571
|
source: exports.zInvoiceSourceRefSchema.optional(),
|
|
572
572
|
externalLinks: zod_1.z.array(zod_schemas_2.zExternalLinkSchema).optional(),
|
|
573
|
+
externalLinkKeys: zod_1.z.array(zod_1.z.string()).optional(),
|
|
573
574
|
evo_chat: zod_1.z
|
|
574
575
|
.object({
|
|
575
576
|
notifications: zod_1.z
|
|
@@ -621,6 +621,7 @@ export const zServiceInvoiceSchema = zFireDocSchema
|
|
|
621
621
|
taker: zInvoiceTakerRefSchema,
|
|
622
622
|
source: zInvoiceSourceRefSchema.optional(),
|
|
623
623
|
externalLinks: z.array(zExternalLinkSchema).optional(),
|
|
624
|
+
externalLinkKeys: z.array(z.string()).optional(),
|
|
624
625
|
evo_chat: z
|
|
625
626
|
.object({
|
|
626
627
|
notifications: z
|
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";
|
|
@@ -123,6 +123,7 @@ export interface IServiceInvoice extends IFireDoc {
|
|
|
123
123
|
taker: IInvoiceTakerRef;
|
|
124
124
|
source?: IInvoiceSourceRef;
|
|
125
125
|
externalLinks?: IExternalLink[];
|
|
126
|
+
externalLinkKeys?: string[];
|
|
126
127
|
evo_chat?: {
|
|
127
128
|
notifications?: IInvoiceChatNotification[];
|
|
128
129
|
};
|
|
@@ -171,6 +171,7 @@ export interface IServiceInvoice extends IFireDoc {
|
|
|
171
171
|
|
|
172
172
|
// Links to other documents (crm_lead, med_patient, etc.)
|
|
173
173
|
externalLinks?: IExternalLink[];
|
|
174
|
+
externalLinkKeys?: string[];
|
|
174
175
|
|
|
175
176
|
// Chat notifications (e.g. NFSe sent via WhatsApp)
|
|
176
177
|
evo_chat?: { notifications?: IInvoiceChatNotification[] };
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
* Canonical audit event payload published to {@link EvoLogEventsPubSubTopic}.
|
|
42
|
+
* `params` must follow a per-endpoint whitelist (no full raw payloads).
|
|
43
|
+
*/
|
|
44
|
+
export interface IEvoLogEvent {
|
|
45
|
+
eventId: string;
|
|
46
|
+
occurredAt: string;
|
|
47
|
+
tenant: string | null;
|
|
48
|
+
module: string;
|
|
49
|
+
action: string;
|
|
50
|
+
functionName: string;
|
|
51
|
+
status: EvoLogStatus;
|
|
52
|
+
actor: IEvoLogActor;
|
|
53
|
+
request: IEvoLogRequestMeta;
|
|
54
|
+
target?: IEvoLogTarget | null;
|
|
55
|
+
params: Record<string, unknown>;
|
|
56
|
+
result?: IEvoLogResultSummary | null;
|
|
57
|
+
error?: IEvoLogError | null;
|
|
58
|
+
labels?: Record<string, string>;
|
|
59
|
+
}
|
|
@@ -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,67 @@
|
|
|
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
|
+
* Canonical audit event payload published to {@link EvoLogEventsPubSubTopic}.
|
|
50
|
+
* `params` must follow a per-endpoint whitelist (no full raw payloads).
|
|
51
|
+
*/
|
|
52
|
+
export interface IEvoLogEvent {
|
|
53
|
+
eventId: string;
|
|
54
|
+
occurredAt: string;
|
|
55
|
+
tenant: string | null;
|
|
56
|
+
module: string;
|
|
57
|
+
action: string;
|
|
58
|
+
functionName: string;
|
|
59
|
+
status: EvoLogStatus;
|
|
60
|
+
actor: IEvoLogActor;
|
|
61
|
+
request: IEvoLogRequestMeta;
|
|
62
|
+
target?: IEvoLogTarget | null;
|
|
63
|
+
params: Record<string, unknown>;
|
|
64
|
+
result?: IEvoLogResultSummary | null;
|
|
65
|
+
error?: IEvoLogError | null;
|
|
66
|
+
labels?: Record<string, string>;
|
|
67
|
+
}
|
|
@@ -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);
|