evo360-types 1.3.6 → 1.3.9
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-activity/zod-schemas.d.ts +93 -0
- package/dist/apps/evo-activity/zod-schemas.js +40 -0
- package/dist/apps/evo-activity/zod-schemas.ts +43 -0
- package/dist/apps/evo-cake/zod-schemas.d.ts +783 -0
- package/dist/apps/evo-cake/zod-schemas.js +110 -0
- package/dist/apps/evo-cake/zod-schemas.ts +121 -0
- package/dist/apps/evo-calendar/zod-schemas.d.ts +71 -0
- package/dist/apps/evo-calendar/zod-schemas.js +32 -0
- package/dist/apps/evo-calendar/zod-schemas.ts +33 -0
- package/dist/apps/evo-core/zod-schemas.d.ts +14 -0
- package/dist/apps/evo-core/zod-schemas.js +9 -0
- package/dist/apps/evo-core/zod-schemas.ts +7 -0
- package/dist/apps/evo-crm/dic/zod-schemas.d.ts +233 -0
- package/dist/apps/evo-crm/dic/zod-schemas.js +45 -0
- package/dist/apps/evo-crm/dic/zod-schemas.ts +46 -0
- package/dist/apps/evo-crm/lead/zod-schemas.d.ts +347 -0
- package/dist/apps/evo-crm/lead/zod-schemas.js +30 -0
- package/dist/apps/evo-crm/lead/zod-schemas.ts +35 -0
- package/dist/apps/evo-med/dic/zod-schemas.d.ts +501 -0
- package/dist/apps/evo-med/dic/zod-schemas.js +116 -0
- package/dist/apps/evo-med/dic/zod-schemas.ts +127 -0
- package/dist/apps/evo-med/insurance/zod-schemas.d.ts +421 -0
- package/dist/apps/evo-med/insurance/zod-schemas.js +33 -0
- package/dist/apps/evo-med/insurance/zod-schemas.ts +39 -0
- package/dist/apps/evo-med/people/zod-schemas.d.ts +955 -0
- package/dist/apps/evo-med/people/zod-schemas.js +100 -0
- package/dist/apps/evo-med/people/zod-schemas.ts +117 -0
- package/dist/apps/evo-med/procedure/zod-schemas.d.ts +141 -0
- package/dist/apps/evo-med/procedure/zod-schemas.js +26 -0
- package/dist/apps/evo-med/procedure/zod-schemas.ts +26 -0
- package/dist/apps/evo-meeting/zod-schemas.d.ts +429 -0
- package/dist/apps/evo-meeting/zod-schemas.js +56 -0
- package/dist/apps/evo-meeting/zod-schemas.ts +62 -0
- package/dist/apps/evo-people/zod-schemas.d.ts +476 -0
- package/dist/apps/evo-people/zod-schemas.js +120 -0
- package/dist/apps/evo-people/zod-schemas.ts +124 -0
- package/dist/apps/evo-survey/zod-schemas.d.ts +1579 -0
- package/dist/apps/evo-survey/zod-schemas.js +191 -0
- package/dist/apps/evo-survey/zod-schemas.ts +209 -0
- package/dist/apps/evo-task/zod-schemas.d.ts +4 -0
- package/dist/apps/evo-task/zod-schemas.js +17 -0
- package/dist/apps/evo-task/zod-schemas.ts +17 -0
- package/dist/apps/evo-tenant/zod-schemas.d.ts +51 -0
- package/dist/apps/evo-tenant/zod-schemas.js +22 -0
- package/dist/apps/evo-tenant/zod-schemas.ts +23 -0
- package/dist/apps/shared/zod-schemas.d.ts +84 -0
- package/dist/apps/shared/zod-schemas.js +49 -0
- package/dist/apps/shared/zod-schemas.ts +51 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +50 -0
- package/dist/index.ts +35 -0
- package/dist/types/evo-activity/fb_collections.d.ts +4 -0
- package/dist/types/evo-activity/fb_collections.js +9 -0
- package/dist/types/evo-activity/fb_collections.ts +7 -0
- package/dist/types/evo-activity/index.d.ts +28 -0
- package/dist/types/evo-activity/index.js +27 -0
- package/dist/types/evo-activity/index.ts +45 -0
- package/dist/types/evo-cake/fb_collections.d.ts +4 -0
- package/dist/types/evo-cake/fb_collections.js +9 -0
- package/dist/types/evo-cake/fb_collections.ts +7 -0
- package/dist/types/evo-cake/index.d.ts +111 -0
- package/dist/types/evo-cake/index.js +79 -0
- package/dist/types/evo-cake/index.ts +186 -0
- package/dist/types/evo-calendar/fb_collections.d.ts +2 -0
- package/dist/types/evo-calendar/fb_collections.js +7 -0
- package/dist/types/evo-calendar/fb_collections.ts +5 -0
- package/dist/types/evo-calendar/index.d.ts +56 -0
- package/dist/types/evo-calendar/index.js +37 -0
- package/dist/types/evo-calendar/index.ts +69 -0
- package/dist/types/evo-core/index.d.ts +41 -0
- package/dist/types/evo-core/index.js +2 -0
- package/dist/types/evo-core/index.ts +48 -0
- package/dist/types/evo-crm/dic/index.d.ts +51 -0
- package/dist/types/evo-crm/dic/index.js +46 -0
- package/dist/types/evo-crm/dic/index.ts +86 -0
- package/dist/types/evo-crm/fb_collections.d.ts +7 -0
- package/dist/types/evo-crm/fb_collections.js +13 -0
- package/dist/types/evo-crm/fb_collections.ts +13 -0
- package/dist/types/evo-crm/lead/index.d.ts +31 -0
- package/dist/types/evo-crm/lead/index.js +24 -0
- package/dist/types/evo-crm/lead/index.ts +42 -0
- package/dist/types/evo-med/dic/index.d.ts +99 -0
- package/dist/types/evo-med/dic/index.js +52 -0
- package/dist/types/evo-med/dic/index.ts +131 -0
- package/dist/types/evo-med/fb_collections.d.ts +20 -0
- package/dist/types/evo-med/fb_collections.js +28 -0
- package/dist/types/evo-med/fb_collections.ts +31 -0
- package/dist/types/evo-med/insurance/index.d.ts +34 -0
- package/dist/types/evo-med/insurance/index.js +24 -0
- package/dist/types/evo-med/insurance/index.ts +45 -0
- package/dist/types/evo-med/people/index.d.ts +125 -0
- package/dist/types/evo-med/people/index.js +66 -0
- package/dist/types/evo-med/people/index.ts +188 -0
- package/dist/types/evo-med/procedure/index.d.ts +36 -0
- package/dist/types/evo-med/procedure/index.js +30 -0
- package/dist/types/evo-med/procedure/index.ts +48 -0
- package/dist/types/evo-meeting/fb_collections.d.ts +2 -0
- package/dist/types/evo-meeting/fb_collections.js +7 -0
- package/dist/types/evo-meeting/fb_collections.ts +5 -0
- package/dist/types/evo-meeting/index.d.ts +58 -0
- package/dist/types/evo-meeting/index.js +32 -0
- package/dist/types/evo-meeting/index.ts +80 -0
- package/dist/types/evo-messages/fb_collections.d.ts +1 -0
- package/dist/types/evo-messages/fb_collections.js +2 -0
- package/dist/types/evo-messages/fb_collections.ts +0 -0
- package/dist/types/evo-people/fb_collections.d.ts +5 -0
- package/dist/types/evo-people/fb_collections.js +10 -0
- package/dist/types/evo-people/fb_collections.ts +8 -0
- package/dist/types/evo-people/index.d.ts +117 -0
- package/dist/types/evo-people/index.js +59 -0
- package/dist/types/evo-people/index.ts +167 -0
- package/dist/types/evo-survey/fb_collections.d.ts +7 -0
- package/dist/types/evo-survey/fb_collections.js +13 -0
- package/dist/types/evo-survey/fb_collections.ts +12 -0
- package/dist/types/evo-survey/index.d.ts +172 -0
- package/dist/types/evo-survey/index.js +70 -0
- package/dist/types/evo-survey/index.ts +224 -0
- package/dist/types/evo-task/fb_collections.d.ts +2 -0
- package/dist/types/evo-task/fb_collections.js +7 -0
- package/dist/types/evo-task/fb_collections.ts +5 -0
- package/dist/types/evo-task/index.d.ts +35 -0
- package/dist/types/evo-task/index.js +38 -0
- package/dist/types/evo-task/index.ts +51 -0
- package/dist/types/evo-tenant/fb_collections.d.ts +1 -0
- package/dist/types/evo-tenant/fb_collections.js +5 -0
- package/dist/types/evo-tenant/fb_collections.ts +2 -0
- package/dist/types/evo-tenant/index.d.ts +28 -0
- package/dist/types/evo-tenant/index.js +35 -0
- package/dist/types/evo-tenant/index.ts +35 -0
- package/dist/types/shared/fb_collections.d.ts +5 -0
- package/dist/types/shared/fb_collections.js +13 -0
- package/dist/types/shared/fb_collections.ts +14 -0
- package/dist/types/shared/index.d.ts +52 -0
- package/dist/types/shared/index.js +30 -0
- package/dist/types/shared/index.ts +74 -0
- package/dist/types/shared/maska.d.ts +23 -0
- package/dist/types/shared/maska.js +2 -0
- package/dist/types/shared/maska.ts +26 -0
- package/package.json +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
// Enum for activity read status
|
|
4
|
+
export const zEvoAppSchema = z.enum([
|
|
5
|
+
"evo-activity",
|
|
6
|
+
"evo-calendar",
|
|
7
|
+
"evo-core",
|
|
8
|
+
"evo-crm",
|
|
9
|
+
"evo-meeting",
|
|
10
|
+
"evo-messages",
|
|
11
|
+
"evo-people",
|
|
12
|
+
"evo-survey",
|
|
13
|
+
"evo-task",
|
|
14
|
+
"evo-tenant",
|
|
15
|
+
]);
|
|
16
|
+
|
|
17
|
+
// Custom validation for FirestoreDocumentReference
|
|
18
|
+
export const zFireDocSchema = z.object({
|
|
19
|
+
id: z.string(),
|
|
20
|
+
ref: z.any(),
|
|
21
|
+
tenant: z.string(),
|
|
22
|
+
model_ver: z.number().optional().default(1),
|
|
23
|
+
created_at: z.coerce.date().nullable().optional(),
|
|
24
|
+
updated_at: z.coerce.date().nullable().optional(),
|
|
25
|
+
deleted_at: z.coerce.date().nullable().optional(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
// Custom validation for ITag
|
|
29
|
+
export const zTagSchema = z.object({
|
|
30
|
+
name: z.string().min(2).max(50),
|
|
31
|
+
color: z.string().optional(),
|
|
32
|
+
hidden: z.boolean(),
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export const zAddressSchema = z.object({
|
|
36
|
+
name: z.string().max(255).optional().default(""),
|
|
37
|
+
kind: z.string().max(255).optional().default(""),
|
|
38
|
+
line1: z.string().max(255).optional().default(""),
|
|
39
|
+
line2: z.string().max(255).optional().default(""),
|
|
40
|
+
city: z.string().max(255).optional().default(""),
|
|
41
|
+
state: z.string().max(255).optional().default(""),
|
|
42
|
+
zip: z.string().max(255).optional().default(""),
|
|
43
|
+
country: z.string().max(255).optional().default(""),
|
|
44
|
+
geo: z.any().optional(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export const zContactSchema = z.object({
|
|
48
|
+
email: z.string().max(255).nullable().optional().default(""),
|
|
49
|
+
phone: z.string().max(255).nullable().optional().default(""),
|
|
50
|
+
mobile: z.string().max(255).nullable().optional().default(""),
|
|
51
|
+
});
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @evo360/types/index.ts
|
|
2
|
+
export * from "./types/shared";
|
|
3
|
+
export * from "./types/evo-core";
|
|
4
|
+
export * from "./types/evo-tenant";
|
|
5
|
+
export * from "./types/evo-activity";
|
|
6
|
+
export * from "./types/evo-people";
|
|
7
|
+
export * from "./types/evo-crm/dic";
|
|
8
|
+
export * from "./types/evo-crm/lead";
|
|
9
|
+
export * from "./types/evo-med/dic";
|
|
10
|
+
export * from "./types/evo-med/insurance";
|
|
11
|
+
export * from "./types/evo-med/people";
|
|
12
|
+
export * from "./types/evo-med/procedure";
|
|
13
|
+
export * from "./types/evo-calendar";
|
|
14
|
+
export * from "./types/evo-task";
|
|
15
|
+
export * from "./types/evo-survey";
|
|
16
|
+
export * from "./types/evo-cake";
|
|
17
|
+
export * from "./types/evo-meeting";
|
|
18
|
+
|
|
19
|
+
// zod schemas
|
|
20
|
+
export * from "./apps/shared/zod-schemas";
|
|
21
|
+
export * from "./apps/evo-core/zod-schemas";
|
|
22
|
+
export * from "./apps/evo-tenant/zod-schemas";
|
|
23
|
+
export * from "./apps/evo-activity/zod-schemas";
|
|
24
|
+
export * from "./apps/evo-people/zod-schemas";
|
|
25
|
+
export * from "./apps/evo-crm/dic/zod-schemas";
|
|
26
|
+
export * from "./apps/evo-crm/lead/zod-schemas";
|
|
27
|
+
export * from "./apps/evo-med/dic/zod-schemas";
|
|
28
|
+
export * from "./apps/evo-med/insurance/zod-schemas";
|
|
29
|
+
export * from "./apps/evo-med/people/zod-schemas";
|
|
30
|
+
export * from "./apps/evo-med/procedure/zod-schemas";
|
|
31
|
+
export * from "./apps/evo-calendar/zod-schemas";
|
|
32
|
+
export * from "./apps/evo-task/zod-schemas";
|
|
33
|
+
export * from "./apps/evo-survey/zod-schemas";
|
|
34
|
+
export * from "./apps/evo-cake/zod-schemas";
|
|
35
|
+
export * from "./apps/evo-meeting/zod-schemas";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
// @evo360/types/index.ts
|
|
18
|
+
__exportStar(require("./types/shared"), exports);
|
|
19
|
+
__exportStar(require("./types/evo-core"), exports);
|
|
20
|
+
__exportStar(require("./types/evo-tenant"), exports);
|
|
21
|
+
__exportStar(require("./types/evo-activity"), exports);
|
|
22
|
+
__exportStar(require("./types/evo-people"), exports);
|
|
23
|
+
__exportStar(require("./types/evo-crm/dic"), exports);
|
|
24
|
+
__exportStar(require("./types/evo-crm/lead"), exports);
|
|
25
|
+
__exportStar(require("./types/evo-med/dic"), exports);
|
|
26
|
+
__exportStar(require("./types/evo-med/insurance"), exports);
|
|
27
|
+
__exportStar(require("./types/evo-med/people"), exports);
|
|
28
|
+
__exportStar(require("./types/evo-med/procedure"), exports);
|
|
29
|
+
__exportStar(require("./types/evo-calendar"), exports);
|
|
30
|
+
__exportStar(require("./types/evo-task"), exports);
|
|
31
|
+
__exportStar(require("./types/evo-survey"), exports);
|
|
32
|
+
__exportStar(require("./types/evo-cake"), exports);
|
|
33
|
+
__exportStar(require("./types/evo-meeting"), exports);
|
|
34
|
+
// zod schemas
|
|
35
|
+
__exportStar(require("./apps/shared/zod-schemas"), exports);
|
|
36
|
+
__exportStar(require("./apps/evo-core/zod-schemas"), exports);
|
|
37
|
+
__exportStar(require("./apps/evo-tenant/zod-schemas"), exports);
|
|
38
|
+
__exportStar(require("./apps/evo-activity/zod-schemas"), exports);
|
|
39
|
+
__exportStar(require("./apps/evo-people/zod-schemas"), exports);
|
|
40
|
+
__exportStar(require("./apps/evo-crm/dic/zod-schemas"), exports);
|
|
41
|
+
__exportStar(require("./apps/evo-crm/lead/zod-schemas"), exports);
|
|
42
|
+
__exportStar(require("./apps/evo-med/dic/zod-schemas"), exports);
|
|
43
|
+
__exportStar(require("./apps/evo-med/insurance/zod-schemas"), exports);
|
|
44
|
+
__exportStar(require("./apps/evo-med/people/zod-schemas"), exports);
|
|
45
|
+
__exportStar(require("./apps/evo-med/procedure/zod-schemas"), exports);
|
|
46
|
+
__exportStar(require("./apps/evo-calendar/zod-schemas"), exports);
|
|
47
|
+
__exportStar(require("./apps/evo-task/zod-schemas"), exports);
|
|
48
|
+
__exportStar(require("./apps/evo-survey/zod-schemas"), exports);
|
|
49
|
+
__exportStar(require("./apps/evo-cake/zod-schemas"), exports);
|
|
50
|
+
__exportStar(require("./apps/evo-meeting/zod-schemas"), exports);
|
package/dist/index.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @evo360/types/index.ts
|
|
2
|
+
export * from "./types/shared";
|
|
3
|
+
export * from "./types/evo-core";
|
|
4
|
+
export * from "./types/evo-tenant";
|
|
5
|
+
export * from "./types/evo-activity";
|
|
6
|
+
export * from "./types/evo-people";
|
|
7
|
+
export * from "./types/evo-crm/dic";
|
|
8
|
+
export * from "./types/evo-crm/lead";
|
|
9
|
+
export * from "./types/evo-med/dic";
|
|
10
|
+
export * from "./types/evo-med/insurance";
|
|
11
|
+
export * from "./types/evo-med/people";
|
|
12
|
+
export * from "./types/evo-med/procedure";
|
|
13
|
+
export * from "./types/evo-calendar";
|
|
14
|
+
export * from "./types/evo-task";
|
|
15
|
+
export * from "./types/evo-survey";
|
|
16
|
+
export * from "./types/evo-cake";
|
|
17
|
+
export * from "./types/evo-meeting";
|
|
18
|
+
|
|
19
|
+
// zod schemas
|
|
20
|
+
export * from "./apps/shared/zod-schemas";
|
|
21
|
+
export * from "./apps/evo-core/zod-schemas";
|
|
22
|
+
export * from "./apps/evo-tenant/zod-schemas";
|
|
23
|
+
export * from "./apps/evo-activity/zod-schemas";
|
|
24
|
+
export * from "./apps/evo-people/zod-schemas";
|
|
25
|
+
export * from "./apps/evo-crm/dic/zod-schemas";
|
|
26
|
+
export * from "./apps/evo-crm/lead/zod-schemas";
|
|
27
|
+
export * from "./apps/evo-med/dic/zod-schemas";
|
|
28
|
+
export * from "./apps/evo-med/insurance/zod-schemas";
|
|
29
|
+
export * from "./apps/evo-med/people/zod-schemas";
|
|
30
|
+
export * from "./apps/evo-med/procedure/zod-schemas";
|
|
31
|
+
export * from "./apps/evo-calendar/zod-schemas";
|
|
32
|
+
export * from "./apps/evo-task/zod-schemas";
|
|
33
|
+
export * from "./apps/evo-survey/zod-schemas";
|
|
34
|
+
export * from "./apps/evo-cake/zod-schemas";
|
|
35
|
+
export * from "./apps/evo-meeting/zod-schemas";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ACTIVITIES_EVENTS_RECIPIENTS_COLLECTION = exports.ACTIVITIES_EVENTS_COLLECTION = exports.ACTIVITIES_COLLECTION = exports.EVO_ACTIVITY_APP = void 0;
|
|
4
|
+
//EVO Activity Application Doc
|
|
5
|
+
exports.EVO_ACTIVITY_APP = "evo-activity";
|
|
6
|
+
//Activities collection
|
|
7
|
+
exports.ACTIVITIES_COLLECTION = "activities";
|
|
8
|
+
exports.ACTIVITIES_EVENTS_COLLECTION = "events";
|
|
9
|
+
exports.ACTIVITIES_EVENTS_RECIPIENTS_COLLECTION = "recipients";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//EVO Activity Application Doc
|
|
2
|
+
export const EVO_ACTIVITY_APP = "evo-activity";
|
|
3
|
+
|
|
4
|
+
//Activities collection
|
|
5
|
+
export const ACTIVITIES_COLLECTION = "activities";
|
|
6
|
+
export const ACTIVITIES_EVENTS_COLLECTION = "events";
|
|
7
|
+
export const ACTIVITIES_EVENTS_RECIPIENTS_COLLECTION = "recipients";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from "./fb_collections";
|
|
2
|
+
import type { CalendarAction } from "../evo-calendar";
|
|
3
|
+
import type { MeetingAction } from "../evo-meeting";
|
|
4
|
+
import type { MedPeopleAction } from "../evo-med/people";
|
|
5
|
+
import type { SurveyAction, SurveyDeploymentAction } from "../evo-survey";
|
|
6
|
+
import type { TaskAction } from "../evo-task";
|
|
7
|
+
import type { TenantAction } from "../evo-tenant";
|
|
8
|
+
import type { EvoApp, IFireDoc, ITag } from "../shared";
|
|
9
|
+
export type ActivityReadStatus = "new" | "unread" | "read" | "archived" | "dismissed" | "snoozed";
|
|
10
|
+
export declare enum IActivityReadStatus {
|
|
11
|
+
New = "new",
|
|
12
|
+
Unread = "unread",
|
|
13
|
+
Read = "read",
|
|
14
|
+
Archived = "archived",
|
|
15
|
+
Dismissed = "dismissed",
|
|
16
|
+
Snoozed = "snoozed"
|
|
17
|
+
}
|
|
18
|
+
export interface IActivityEvent extends IFireDoc {
|
|
19
|
+
recipientIds: string[];
|
|
20
|
+
creatorName: string;
|
|
21
|
+
creatorPath?: string;
|
|
22
|
+
docPath?: string;
|
|
23
|
+
app: EvoApp;
|
|
24
|
+
type: CalendarAction | MeetingAction | MedPeopleAction | SurveyAction | SurveyDeploymentAction | TaskAction | TenantAction;
|
|
25
|
+
readStatus: ActivityReadStatus;
|
|
26
|
+
metadata?: Record<string, any>;
|
|
27
|
+
tags?: ITag[] | null;
|
|
28
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
exports.IActivityReadStatus = void 0;
|
|
18
|
+
__exportStar(require("./fb_collections"), exports);
|
|
19
|
+
var IActivityReadStatus;
|
|
20
|
+
(function (IActivityReadStatus) {
|
|
21
|
+
IActivityReadStatus["New"] = "new";
|
|
22
|
+
IActivityReadStatus["Unread"] = "unread";
|
|
23
|
+
IActivityReadStatus["Read"] = "read";
|
|
24
|
+
IActivityReadStatus["Archived"] = "archived";
|
|
25
|
+
IActivityReadStatus["Dismissed"] = "dismissed";
|
|
26
|
+
IActivityReadStatus["Snoozed"] = "snoozed";
|
|
27
|
+
})(IActivityReadStatus || (exports.IActivityReadStatus = IActivityReadStatus = {}));
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export * from "./fb_collections";
|
|
2
|
+
import type { CalendarAction } from "../evo-calendar";
|
|
3
|
+
import type { MeetingAction } from "../evo-meeting";
|
|
4
|
+
import type { MedPeopleAction } from "../evo-med/people";
|
|
5
|
+
import type { SurveyAction, SurveyDeploymentAction } from "../evo-survey";
|
|
6
|
+
import type { TaskAction } from "../evo-task";
|
|
7
|
+
import type { TenantAction } from "../evo-tenant";
|
|
8
|
+
import type { EvoApp, IFireDoc, ITag } from "../shared";
|
|
9
|
+
|
|
10
|
+
// Enum for Tenant Action - used in Activities tracking
|
|
11
|
+
export type ActivityReadStatus =
|
|
12
|
+
| "new"
|
|
13
|
+
| "unread"
|
|
14
|
+
| "read"
|
|
15
|
+
| "archived"
|
|
16
|
+
| "dismissed"
|
|
17
|
+
| "snoozed";
|
|
18
|
+
export enum IActivityReadStatus {
|
|
19
|
+
New = "new",
|
|
20
|
+
Unread = "unread",
|
|
21
|
+
Read = "read",
|
|
22
|
+
Archived = "archived",
|
|
23
|
+
Dismissed = "dismissed",
|
|
24
|
+
Snoozed = "snoozed",
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Interface for Event Instances (eventInstances)
|
|
28
|
+
export interface IActivityEvent extends IFireDoc {
|
|
29
|
+
recipientIds: string[]; // List of recipients ids
|
|
30
|
+
creatorName: string; // Name of the user who created the meeting
|
|
31
|
+
creatorPath?: string;
|
|
32
|
+
docPath?: string;
|
|
33
|
+
app: EvoApp;
|
|
34
|
+
type:
|
|
35
|
+
| CalendarAction
|
|
36
|
+
| MeetingAction
|
|
37
|
+
| MedPeopleAction
|
|
38
|
+
| SurveyAction
|
|
39
|
+
| SurveyDeploymentAction
|
|
40
|
+
| TaskAction
|
|
41
|
+
| TenantAction;
|
|
42
|
+
readStatus: ActivityReadStatus;
|
|
43
|
+
metadata?: Record<string, any>;
|
|
44
|
+
tags?: ITag[] | null;
|
|
45
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CAKE_ASSETS_COLLECTION = exports.CAKE_DOCS_COLLECTION = exports.CAKES_COLLECTION = exports.EVO_CAKE_APP = void 0;
|
|
4
|
+
//EVO Activity Application Doc
|
|
5
|
+
exports.EVO_CAKE_APP = "evo-cake";
|
|
6
|
+
//Activities collection
|
|
7
|
+
exports.CAKES_COLLECTION = "cakes";
|
|
8
|
+
exports.CAKE_DOCS_COLLECTION = "docs"; //consensus documents
|
|
9
|
+
exports.CAKE_ASSETS_COLLECTION = "assets";
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export * from "./fb_collections";
|
|
2
|
+
import type { IFireDoc, ITag } from "../shared";
|
|
3
|
+
export type CakeAction = "CREATE_CAKE" | "DELETE_CAKE" | "UPDATE_CAKE" | "SHARE_CAKE";
|
|
4
|
+
export declare enum ICakeAction {
|
|
5
|
+
Create_cake_asset = "CREATE_CAKE_ASSET",
|
|
6
|
+
Delete_cake_asset = "DELETE_CAKE_ASSET",
|
|
7
|
+
Update_cake_asset = "UPDATE_CAKE_ASSET",
|
|
8
|
+
Share_cake_asset = "SHARE_CAKE"
|
|
9
|
+
}
|
|
10
|
+
export type CakeAssetAction = "CREATE_CAKE_ASSET" | "DELETE_CAKE_ASSET" | "UPDATE_CAKE_ASSET" | "PROCESS_CAKE_ASSET" | "CLASSIFY_CAKE_ASSET" | "EXTRACT_TEXT_CAKE_ASSET" | "OCR_CAKE_ASSET" | "METADATA_EXTRACTION_CAKE_ASSET" | "PROCESS_CAKE_ASSET_DONE" | "UPDATE_RELEVANCE_SCORE_CAKE_ASSET" | "UPDATE_ASSET_STATUS_CAKE_ASSET" | "UPDATE_ASSET_TAGS_CAKE_ASSET" | "PROCESS_CAKE_ASSET_FAILED" | "CLASSIFY_CAKE_ASSET_FAILED" | "EXTRACT_TEXT_CAKE_ASSET_FAILED" | "STORE_CAKE_ASSET" | "RETRIEVE_CAKE_ASSET";
|
|
11
|
+
export declare enum ICakeAssetAction {
|
|
12
|
+
Create_cake_asset = "CREATE_CAKE_ASSET",
|
|
13
|
+
Delete_cake_asset = "DELETE_CAKE_ASSET",
|
|
14
|
+
Update_cake_asset = "UPDATE_CAKE_ASSET",
|
|
15
|
+
Process_cake_asset = "PROCESS_CAKE_ASSET",// Ação geral de processamento iniciada
|
|
16
|
+
Classify_cake_asset = "CLASSIFY_CAKE_ASSET",// Classificação do asset (ex: tipo de documento, linguagem)
|
|
17
|
+
Extract_text_cake_asset = "EXTRACT_TEXT_CAKE_ASSET",// Extração de texto do asset
|
|
18
|
+
Ocr_cake_asset = "OCR_CAKE_ASSET",// Processamento OCR se aplicável
|
|
19
|
+
Metadata_extraction_cake_asset = "METADATA_EXTRACTION_CAKE_ASSET",// Extração de metadados
|
|
20
|
+
Process_cake_asset_done = "PROCESS_CAKE_ASSET_DONE",// Ação geral de processamento finalizada
|
|
21
|
+
Update_relevance_score_cake_asset = "UPDATE_RELEVANCE_SCORE_CAKE_ASSET",
|
|
22
|
+
Update_asset_status_cake_asset = "UPDATE_ASSET_STATUS_CAKE_ASSET",// Ex: processando, processado, erro
|
|
23
|
+
Update_asset_tags_cake_asset = "UPDATE_ASSET_TAGS_CAKE_ASSET",
|
|
24
|
+
Process_cake_asset_failed = "PROCESS_CAKE_ASSET_FAILED",
|
|
25
|
+
Classify_cake_asset_failed = "CLASSIFY_CAKE_ASSET_FAILED",
|
|
26
|
+
Extract_text_cake_asset_failed = "EXTRACT_TEXT_CAKE_ASSET_FAILED",
|
|
27
|
+
Store_cake_asset = "STORE_CAKE_ASSET",// Armazenamento do asset (ex: nuvem, banco de dados)
|
|
28
|
+
Retrieve_cake_asset = "RETRIEVE_CAKE_ASSET"
|
|
29
|
+
}
|
|
30
|
+
export type CakePermission = "private" | "tenant" | "public";
|
|
31
|
+
export declare enum ICakePermission {
|
|
32
|
+
Private = "private",
|
|
33
|
+
Tenant = "tenant",
|
|
34
|
+
Public = "public"
|
|
35
|
+
}
|
|
36
|
+
export type CakeStatus = "active" | "archived";
|
|
37
|
+
export declare enum ICakeStatus {
|
|
38
|
+
Active = "active",
|
|
39
|
+
Archived = "archived"
|
|
40
|
+
}
|
|
41
|
+
export interface ICake extends IFireDoc {
|
|
42
|
+
name: string;
|
|
43
|
+
description?: string;
|
|
44
|
+
status?: CakeStatus;
|
|
45
|
+
permission?: CakePermission;
|
|
46
|
+
assets?: ICakeAsset[] | null;
|
|
47
|
+
tags?: ITag[] | null;
|
|
48
|
+
}
|
|
49
|
+
export interface ICakeDoc extends IFireDoc {
|
|
50
|
+
name: string;
|
|
51
|
+
description?: string;
|
|
52
|
+
content?: string | null;
|
|
53
|
+
tags?: ITag[] | null;
|
|
54
|
+
}
|
|
55
|
+
export type CakeAssetType = "file" | "event" | "meeting" | "note" | "data";
|
|
56
|
+
export declare enum ICakeAssetType {
|
|
57
|
+
File = "file",
|
|
58
|
+
Event = "event",
|
|
59
|
+
Meeting = "meeting",
|
|
60
|
+
Note = "note",
|
|
61
|
+
Data = "data"
|
|
62
|
+
}
|
|
63
|
+
export type CakeAssetProcessingStatus = "waiting" | "started" | "done" | "failed";
|
|
64
|
+
export declare enum ICakeAssetProcessingStatus {
|
|
65
|
+
Waiting = "waiting",
|
|
66
|
+
Started = "started",
|
|
67
|
+
Done = "done",
|
|
68
|
+
Failed = "failed"
|
|
69
|
+
}
|
|
70
|
+
interface StructuredData {
|
|
71
|
+
[key: string]: string | number | boolean | Date | StructuredData;
|
|
72
|
+
}
|
|
73
|
+
export type ICakeAsset = IFileAsset | ICalendarEventAsset | IMeetingAsset | INoteAsset | IStructuredDataAsset;
|
|
74
|
+
export interface IBaseAsset extends IFireDoc {
|
|
75
|
+
cakeId: string;
|
|
76
|
+
type: CakeAssetType;
|
|
77
|
+
relevance_score: number;
|
|
78
|
+
structured_data?: StructuredData;
|
|
79
|
+
embeddings?: number[];
|
|
80
|
+
metadata?: Record<string, any>;
|
|
81
|
+
processing_status?: CakeAssetProcessingStatus;
|
|
82
|
+
tags?: ITag[] | null;
|
|
83
|
+
}
|
|
84
|
+
export interface IFileAsset extends IBaseAsset {
|
|
85
|
+
file_name: string;
|
|
86
|
+
file_type: string;
|
|
87
|
+
storage_location: string;
|
|
88
|
+
download_url: string;
|
|
89
|
+
extracted_text?: string;
|
|
90
|
+
}
|
|
91
|
+
export interface ICalendarEventAsset extends IBaseAsset {
|
|
92
|
+
title: string;
|
|
93
|
+
date: Date;
|
|
94
|
+
start_time?: Date;
|
|
95
|
+
end_time?: Date;
|
|
96
|
+
location?: string;
|
|
97
|
+
participants?: string[];
|
|
98
|
+
description?: string;
|
|
99
|
+
}
|
|
100
|
+
export interface IMeetingAsset extends ICalendarEventAsset {
|
|
101
|
+
agenda?: string;
|
|
102
|
+
notes?: string;
|
|
103
|
+
}
|
|
104
|
+
export interface INoteAsset extends IBaseAsset {
|
|
105
|
+
title?: string;
|
|
106
|
+
content: string;
|
|
107
|
+
}
|
|
108
|
+
export interface IStructuredDataAsset extends IBaseAsset {
|
|
109
|
+
data?: object;
|
|
110
|
+
schema?: string;
|
|
111
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
exports.ICakeAssetProcessingStatus = exports.ICakeAssetType = exports.ICakeStatus = exports.ICakePermission = exports.ICakeAssetAction = exports.ICakeAction = void 0;
|
|
18
|
+
__exportStar(require("./fb_collections"), exports);
|
|
19
|
+
var ICakeAction;
|
|
20
|
+
(function (ICakeAction) {
|
|
21
|
+
// Ações principais sobre o asset
|
|
22
|
+
ICakeAction["Create_cake_asset"] = "CREATE_CAKE_ASSET";
|
|
23
|
+
ICakeAction["Delete_cake_asset"] = "DELETE_CAKE_ASSET";
|
|
24
|
+
ICakeAction["Update_cake_asset"] = "UPDATE_CAKE_ASSET";
|
|
25
|
+
ICakeAction["Share_cake_asset"] = "SHARE_CAKE";
|
|
26
|
+
})(ICakeAction || (exports.ICakeAction = ICakeAction = {}));
|
|
27
|
+
var ICakeAssetAction;
|
|
28
|
+
(function (ICakeAssetAction) {
|
|
29
|
+
// Ações principais sobre o asset
|
|
30
|
+
ICakeAssetAction["Create_cake_asset"] = "CREATE_CAKE_ASSET";
|
|
31
|
+
ICakeAssetAction["Delete_cake_asset"] = "DELETE_CAKE_ASSET";
|
|
32
|
+
ICakeAssetAction["Update_cake_asset"] = "UPDATE_CAKE_ASSET";
|
|
33
|
+
// Ações de processamento
|
|
34
|
+
ICakeAssetAction["Process_cake_asset"] = "PROCESS_CAKE_ASSET";
|
|
35
|
+
ICakeAssetAction["Classify_cake_asset"] = "CLASSIFY_CAKE_ASSET";
|
|
36
|
+
ICakeAssetAction["Extract_text_cake_asset"] = "EXTRACT_TEXT_CAKE_ASSET";
|
|
37
|
+
ICakeAssetAction["Ocr_cake_asset"] = "OCR_CAKE_ASSET";
|
|
38
|
+
ICakeAssetAction["Metadata_extraction_cake_asset"] = "METADATA_EXTRACTION_CAKE_ASSET";
|
|
39
|
+
ICakeAssetAction["Process_cake_asset_done"] = "PROCESS_CAKE_ASSET_DONE";
|
|
40
|
+
// Ações de atualização de metadados
|
|
41
|
+
ICakeAssetAction["Update_relevance_score_cake_asset"] = "UPDATE_RELEVANCE_SCORE_CAKE_ASSET";
|
|
42
|
+
ICakeAssetAction["Update_asset_status_cake_asset"] = "UPDATE_ASSET_STATUS_CAKE_ASSET";
|
|
43
|
+
ICakeAssetAction["Update_asset_tags_cake_asset"] = "UPDATE_ASSET_TAGS_CAKE_ASSET";
|
|
44
|
+
// Ações relacionadas a erros
|
|
45
|
+
ICakeAssetAction["Process_cake_asset_failed"] = "PROCESS_CAKE_ASSET_FAILED";
|
|
46
|
+
ICakeAssetAction["Classify_cake_asset_failed"] = "CLASSIFY_CAKE_ASSET_FAILED";
|
|
47
|
+
ICakeAssetAction["Extract_text_cake_asset_failed"] = "EXTRACT_TEXT_CAKE_ASSET_FAILED";
|
|
48
|
+
// Ações relacionadas a armazenamento
|
|
49
|
+
ICakeAssetAction["Store_cake_asset"] = "STORE_CAKE_ASSET";
|
|
50
|
+
ICakeAssetAction["Retrieve_cake_asset"] = "RETRIEVE_CAKE_ASSET";
|
|
51
|
+
})(ICakeAssetAction || (exports.ICakeAssetAction = ICakeAssetAction = {}));
|
|
52
|
+
var ICakePermission;
|
|
53
|
+
(function (ICakePermission) {
|
|
54
|
+
ICakePermission["Private"] = "private";
|
|
55
|
+
ICakePermission["Tenant"] = "tenant";
|
|
56
|
+
ICakePermission["Public"] = "public";
|
|
57
|
+
})(ICakePermission || (exports.ICakePermission = ICakePermission = {}));
|
|
58
|
+
var ICakeStatus;
|
|
59
|
+
(function (ICakeStatus) {
|
|
60
|
+
ICakeStatus["Active"] = "active";
|
|
61
|
+
ICakeStatus["Archived"] = "archived";
|
|
62
|
+
})(ICakeStatus || (exports.ICakeStatus = ICakeStatus = {}));
|
|
63
|
+
// Enum for Asset Type
|
|
64
|
+
var ICakeAssetType;
|
|
65
|
+
(function (ICakeAssetType) {
|
|
66
|
+
ICakeAssetType["File"] = "file";
|
|
67
|
+
ICakeAssetType["Event"] = "event";
|
|
68
|
+
ICakeAssetType["Meeting"] = "meeting";
|
|
69
|
+
ICakeAssetType["Note"] = "note";
|
|
70
|
+
ICakeAssetType["Data"] = "data";
|
|
71
|
+
})(ICakeAssetType || (exports.ICakeAssetType = ICakeAssetType = {}));
|
|
72
|
+
// Enum for Asset Type
|
|
73
|
+
var ICakeAssetProcessingStatus;
|
|
74
|
+
(function (ICakeAssetProcessingStatus) {
|
|
75
|
+
ICakeAssetProcessingStatus["Waiting"] = "waiting";
|
|
76
|
+
ICakeAssetProcessingStatus["Started"] = "started";
|
|
77
|
+
ICakeAssetProcessingStatus["Done"] = "done";
|
|
78
|
+
ICakeAssetProcessingStatus["Failed"] = "failed";
|
|
79
|
+
})(ICakeAssetProcessingStatus || (exports.ICakeAssetProcessingStatus = ICakeAssetProcessingStatus = {}));
|