evo360-types 1.3.35 → 1.3.39

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.
Files changed (31) hide show
  1. package/dist/apps/evo-activity/zod-schemas.d.ts +3 -3
  2. package/dist/apps/evo-activity/zod-schemas.js +8 -10
  3. package/dist/apps/evo-activity/zod-schemas.ts +0 -2
  4. package/dist/apps/evo-calendar/zod-schemas.d.ts +4 -4
  5. package/dist/apps/evo-survey/zod-schemas.d.ts +14 -14
  6. package/dist/index.d.ts +2 -4
  7. package/dist/index.js +2 -6
  8. package/dist/index.ts +2 -6
  9. package/dist/types/evo-activity/index.d.ts +1 -2
  10. package/dist/types/evo-activity/index.ts +1 -2
  11. package/dist/types/evo-calendar/index.d.ts +0 -2
  12. package/dist/types/evo-calendar/index.ts +0 -2
  13. package/package.json +1 -1
  14. package/dist/apps/evo-cake/zod-schemas.d.ts +0 -783
  15. package/dist/apps/evo-cake/zod-schemas.js +0 -110
  16. package/dist/apps/evo-cake/zod-schemas.ts +0 -121
  17. package/dist/apps/evo-meeting/zod-schemas.d.ts +0 -429
  18. package/dist/apps/evo-meeting/zod-schemas.js +0 -56
  19. package/dist/apps/evo-meeting/zod-schemas.ts +0 -62
  20. package/dist/types/evo-cake/fb_collections.d.ts +0 -4
  21. package/dist/types/evo-cake/fb_collections.js +0 -9
  22. package/dist/types/evo-cake/fb_collections.ts +0 -7
  23. package/dist/types/evo-cake/index.d.ts +0 -111
  24. package/dist/types/evo-cake/index.js +0 -79
  25. package/dist/types/evo-cake/index.ts +0 -186
  26. package/dist/types/evo-meeting/fb_collections.d.ts +0 -2
  27. package/dist/types/evo-meeting/fb_collections.js +0 -7
  28. package/dist/types/evo-meeting/fb_collections.ts +0 -5
  29. package/dist/types/evo-meeting/index.d.ts +0 -58
  30. package/dist/types/evo-meeting/index.js +0 -32
  31. package/dist/types/evo-meeting/index.ts +0 -80
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zMeetingSchema = exports.zMeetingTalkingPointSchema = exports.zMeetingTaskSchema = exports.zMeetingEventSchema = exports.zMeetingTypeSchema = exports.zMeetingActionSchema = void 0;
4
- const zod_1 = require("zod");
5
- const zod_schemas_1 = require("../evo-task/zod-schemas");
6
- const zod_schemas_2 = require("../shared/zod-schemas");
7
- exports.zMeetingActionSchema = zod_1.z.enum([
8
- "CREATE_MEETING",
9
- "DELETE_MEETING",
10
- "UPDATE_MEETING",
11
- ]);
12
- // Enum for Meeting Types
13
- exports.zMeetingTypeSchema = zod_1.z.enum([
14
- "regular",
15
- "oneonone",
16
- "feedback",
17
- "presentation",
18
- "other",
19
- ]);
20
- exports.zMeetingEventSchema = zod_1.z.object({
21
- eventRef: zod_1.z.any(),
22
- participantNames: zod_1.z.array(zod_1.z.string()).min(1).max(100),
23
- participantRefs: zod_1.z.array(zod_1.z.any()).min(1).max(100),
24
- startDate: zod_1.z.coerce.date(),
25
- endDate: zod_1.z.coerce.date().optional(),
26
- });
27
- exports.zMeetingTaskSchema = zod_1.z.object({
28
- taskRef: zod_1.z.any(),
29
- title: zod_1.z.string(),
30
- status: zod_schemas_1.zTaskStatusSchema,
31
- priority: zod_schemas_1.zTaskPrioritySchema.optional(),
32
- assigneeName: zod_1.z.string().optional(),
33
- });
34
- exports.zMeetingTalkingPointSchema = zod_1.z.object({
35
- templateRef: zod_1.z.any(),
36
- title: zod_1.z.string(),
37
- description: zod_1.z.string().optional(),
38
- tags: zod_1.z.array(zod_schemas_2.zTagSchema).nullable().optional(),
39
- discussed: zod_1.z.boolean(),
40
- notes: zod_1.z.string().optional(),
41
- assigneeName: zod_1.z.string().optional(),
42
- assigneeRef: zod_1.z.any(),
43
- });
44
- exports.zMeetingSchema = zod_schemas_2.zFireDocSchema // Extend from FireDocSchema
45
- .extend({
46
- title: zod_1.z.string(),
47
- description: zod_1.z.string().optional(),
48
- creatorName: zod_1.z.string(),
49
- creatorRef: zod_1.z.any(),
50
- event: exports.zMeetingEventSchema,
51
- type: exports.zMeetingTypeSchema,
52
- tasks: zod_1.z.array(exports.zMeetingTaskSchema).optional(),
53
- talkingPoints: zod_1.z.array(exports.zMeetingTalkingPointSchema).optional(),
54
- tags: zod_1.z.array(zod_schemas_2.zTagSchema).nullable().optional(),
55
- })
56
- .catchall(zod_1.z.unknown());
@@ -1,62 +0,0 @@
1
- import { z } from "zod";
2
- import {
3
- zTaskPrioritySchema,
4
- zTaskStatusSchema,
5
- } from "../evo-task/zod-schemas";
6
- import { zFireDocSchema, zTagSchema } from "../shared/zod-schemas";
7
-
8
- export const zMeetingActionSchema = z.enum([
9
- "CREATE_MEETING",
10
- "DELETE_MEETING",
11
- "UPDATE_MEETING",
12
- ]);
13
-
14
- // Enum for Meeting Types
15
- export const zMeetingTypeSchema = z.enum([
16
- "regular",
17
- "oneonone",
18
- "feedback",
19
- "presentation",
20
- "other",
21
- ]);
22
-
23
- export const zMeetingEventSchema = z.object({
24
- eventRef: z.any(),
25
- participantNames: z.array(z.string()).min(1).max(100),
26
- participantRefs: z.array(z.any()).min(1).max(100),
27
- startDate: z.coerce.date(),
28
- endDate: z.coerce.date().optional(),
29
- });
30
-
31
- export const zMeetingTaskSchema = z.object({
32
- taskRef: z.any(),
33
- title: z.string(),
34
- status: zTaskStatusSchema,
35
- priority: zTaskPrioritySchema.optional(),
36
- assigneeName: z.string().optional(),
37
- });
38
-
39
- export const zMeetingTalkingPointSchema = z.object({
40
- templateRef: z.any(),
41
- title: z.string(),
42
- description: z.string().optional(),
43
- tags: z.array(zTagSchema).nullable().optional(),
44
- discussed: z.boolean(),
45
- notes: z.string().optional(),
46
- assigneeName: z.string().optional(),
47
- assigneeRef: z.any(),
48
- });
49
-
50
- export const zMeetingSchema = zFireDocSchema // Extend from FireDocSchema
51
- .extend({
52
- title: z.string(),
53
- description: z.string().optional(),
54
- creatorName: z.string(),
55
- creatorRef: z.any(),
56
- event: zMeetingEventSchema,
57
- type: zMeetingTypeSchema,
58
- tasks: z.array(zMeetingTaskSchema).optional(),
59
- talkingPoints: z.array(zMeetingTalkingPointSchema).optional(),
60
- tags: z.array(zTagSchema).nullable().optional(),
61
- })
62
- .catchall(z.unknown());
@@ -1,4 +0,0 @@
1
- export declare const EVO_CAKE_APP = "evo-cake";
2
- export declare const CAKES_COLLECTION = "cakes";
3
- export declare const CAKE_DOCS_COLLECTION = "docs";
4
- export declare const CAKE_ASSETS_COLLECTION = "assets";
@@ -1,9 +0,0 @@
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";
@@ -1,7 +0,0 @@
1
- //EVO Activity Application Doc
2
- export const EVO_CAKE_APP = "evo-cake";
3
-
4
- //Activities collection
5
- export const CAKES_COLLECTION = "cakes";
6
- export const CAKE_DOCS_COLLECTION = "docs"; //consensus documents
7
- export const CAKE_ASSETS_COLLECTION = "assets";
@@ -1,111 +0,0 @@
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
- }
@@ -1,79 +0,0 @@
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 = {}));
@@ -1,186 +0,0 @@
1
- export * from "./fb_collections";
2
- import type { IFireDoc, ITag } from "../shared";
3
-
4
- // Cake Asset
5
-
6
- // Enum for Cake Action - used in Cake tracking
7
- export type CakeAction =
8
- | "CREATE_CAKE"
9
- | "DELETE_CAKE"
10
- | "UPDATE_CAKE"
11
- | "SHARE_CAKE";
12
- export enum ICakeAction {
13
- // Ações principais sobre o asset
14
- Create_cake_asset = "CREATE_CAKE_ASSET",
15
- Delete_cake_asset = "DELETE_CAKE_ASSET",
16
- Update_cake_asset = "UPDATE_CAKE_ASSET",
17
- Share_cake_asset = "SHARE_CAKE",
18
- }
19
-
20
- // Enum for Cake Asset Action - used in Asset tracking
21
- export type CakeAssetAction =
22
- | "CREATE_CAKE_ASSET"
23
- | "DELETE_CAKE_ASSET"
24
- | "UPDATE_CAKE_ASSET"
25
- | "PROCESS_CAKE_ASSET"
26
- | "CLASSIFY_CAKE_ASSET"
27
- | "EXTRACT_TEXT_CAKE_ASSET"
28
- | "OCR_CAKE_ASSET"
29
- | "METADATA_EXTRACTION_CAKE_ASSET"
30
- | "PROCESS_CAKE_ASSET_DONE"
31
- | "UPDATE_RELEVANCE_SCORE_CAKE_ASSET"
32
- | "UPDATE_ASSET_STATUS_CAKE_ASSET"
33
- | "UPDATE_ASSET_TAGS_CAKE_ASSET"
34
- | "PROCESS_CAKE_ASSET_FAILED"
35
- | "CLASSIFY_CAKE_ASSET_FAILED"
36
- | "EXTRACT_TEXT_CAKE_ASSET_FAILED"
37
- | "STORE_CAKE_ASSET"
38
- | "RETRIEVE_CAKE_ASSET";
39
- export enum ICakeAssetAction {
40
- // Ações principais sobre o asset
41
- Create_cake_asset = "CREATE_CAKE_ASSET",
42
- Delete_cake_asset = "DELETE_CAKE_ASSET",
43
- Update_cake_asset = "UPDATE_CAKE_ASSET",
44
-
45
- // Ações de processamento
46
- Process_cake_asset = "PROCESS_CAKE_ASSET", // Ação geral de processamento iniciada
47
- Classify_cake_asset = "CLASSIFY_CAKE_ASSET", // Classificação do asset (ex: tipo de documento, linguagem)
48
- Extract_text_cake_asset = "EXTRACT_TEXT_CAKE_ASSET", // Extração de texto do asset
49
- Ocr_cake_asset = "OCR_CAKE_ASSET", // Processamento OCR se aplicável
50
- Metadata_extraction_cake_asset = "METADATA_EXTRACTION_CAKE_ASSET", // Extração de metadados
51
- Process_cake_asset_done = "PROCESS_CAKE_ASSET_DONE", // Ação geral de processamento finalizada
52
-
53
- // Ações de atualização de metadados
54
- Update_relevance_score_cake_asset = "UPDATE_RELEVANCE_SCORE_CAKE_ASSET",
55
- Update_asset_status_cake_asset = "UPDATE_ASSET_STATUS_CAKE_ASSET", // Ex: processando, processado, erro
56
- Update_asset_tags_cake_asset = "UPDATE_ASSET_TAGS_CAKE_ASSET",
57
-
58
- // Ações relacionadas a erros
59
- Process_cake_asset_failed = "PROCESS_CAKE_ASSET_FAILED",
60
- Classify_cake_asset_failed = "CLASSIFY_CAKE_ASSET_FAILED",
61
- Extract_text_cake_asset_failed = "EXTRACT_TEXT_CAKE_ASSET_FAILED",
62
-
63
- // Ações relacionadas a armazenamento
64
- Store_cake_asset = "STORE_CAKE_ASSET", // Armazenamento do asset (ex: nuvem, banco de dados)
65
- Retrieve_cake_asset = "RETRIEVE_CAKE_ASSET", // Recuperação do asset
66
- }
67
-
68
- //Cake
69
- export type CakePermission = "private" | "tenant" | "public";
70
- export enum ICakePermission {
71
- Private = "private",
72
- Tenant = "tenant",
73
- Public = "public",
74
- }
75
-
76
- export type CakeStatus = "active" | "archived";
77
- export enum ICakeStatus {
78
- Active = "active",
79
- Archived = "archived",
80
- }
81
-
82
- export interface ICake extends IFireDoc {
83
- name: string;
84
- description?: string;
85
- status?: CakeStatus;
86
- permission?: CakePermission;
87
- assets?: ICakeAsset[] | null;
88
- tags?: ITag[] | null;
89
- }
90
- // Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus -
91
- export interface ICakeDoc extends IFireDoc {
92
- name: string;
93
- description?: string;
94
- content?: string | null;
95
- tags?: ITag[] | null;
96
- }
97
-
98
- // Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset -----
99
- // Enum for Asset Type
100
- export type CakeAssetType = "file" | "event" | "meeting" | "note" | "data";
101
-
102
- // Enum for Asset Type
103
- export enum ICakeAssetType {
104
- File = "file",
105
- Event = "event",
106
- Meeting = "meeting",
107
- Note = "note",
108
- Data = "data",
109
- }
110
- // Enum for Processing status
111
- export type CakeAssetProcessingStatus =
112
- | "waiting"
113
- | "started"
114
- | "done"
115
- | "failed";
116
-
117
- // Enum for Asset Type
118
- export enum ICakeAssetProcessingStatus {
119
- Waiting = "waiting",
120
- Started = "started",
121
- Done = "done",
122
- Failed = "failed",
123
- }
124
-
125
- // Interface for structured data - allows nested objects and mixed types
126
- interface StructuredData {
127
- [key: string]: string | number | boolean | Date | StructuredData; // Permite tipos mistos
128
- }
129
-
130
- // Generic interface for any type of asset
131
- export type ICakeAsset =
132
- | IFileAsset
133
- | ICalendarEventAsset
134
- | IMeetingAsset
135
- | INoteAsset
136
- | IStructuredDataAsset;
137
-
138
- // Base interface for all assets - extends IFireDoc (assuming this is a common interface)
139
- export interface IBaseAsset extends IFireDoc {
140
- cakeId: string;
141
- type: CakeAssetType;
142
- relevance_score: number; // Relevance score (0-1, 1 being most relevant)
143
- structured_data?: StructuredData; // Optional structured data
144
- embeddings?: number[]; // Optional embedding vector for semantic search
145
- metadata?: Record<string, any>; // Optional additional metadata
146
- processing_status?: CakeAssetProcessingStatus; // Optional processing
147
- tags?: ITag[] | null;
148
- }
149
-
150
- // Interface for file assets
151
- export interface IFileAsset extends IBaseAsset {
152
- file_name: string; // File name
153
- file_type: string; // File type (e.g., "pdf", "txt", "jpg")
154
- storage_location: string; // Path in Firebase Storage
155
- download_url: string; // Firebase Storage download url
156
- extracted_text?: string; // Extracted text (optional, populated later)
157
- }
158
-
159
- // Interface for calendar event assets
160
- export interface ICalendarEventAsset extends IBaseAsset {
161
- title: string; // Event title
162
- date: Date; // Event date
163
- start_time?: Date; // Optional start time
164
- end_time?: Date; // Optional end time
165
- location?: string; // Optional location
166
- participants?: string[]; // Optional array of participants
167
- description?: string; // Optional description
168
- }
169
-
170
- // Interface for meeting assets (extends CalendarEventAsset)
171
- export interface IMeetingAsset extends ICalendarEventAsset {
172
- agenda?: string; // Meeting agenda
173
- notes?: string; // Meeting notes
174
- }
175
-
176
- // Interface for note assets
177
- export interface INoteAsset extends IBaseAsset {
178
- title?: string; // Optional title
179
- content: string; // Note content
180
- }
181
-
182
- // Interface for structured data (JSON) assets
183
- export interface IStructuredDataAsset extends IBaseAsset {
184
- data?: object; // JSON data
185
- schema?: string; // Optional schema description
186
- }
@@ -1,2 +0,0 @@
1
- export declare const EVO_MEETING_APP = "evo-meeting";
2
- export declare const MEETINGS_COLLECTION = "meetings";
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MEETINGS_COLLECTION = exports.EVO_MEETING_APP = void 0;
4
- //EVO Meeting Application Doc
5
- exports.EVO_MEETING_APP = "evo-meeting";
6
- //meetings collection
7
- exports.MEETINGS_COLLECTION = "meetings";
@@ -1,5 +0,0 @@
1
- //EVO Meeting Application Doc
2
- export const EVO_MEETING_APP = "evo-meeting";
3
-
4
- //meetings collection
5
- export const MEETINGS_COLLECTION = "meetings";
@@ -1,58 +0,0 @@
1
- export * from "./fb_collections";
2
- import type { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
- import type { TaskPriority, TaskStatus } from "../evo-task";
4
- export type MeetingAction = "CREATE_MEETING" | "DELETE_MEETING" | "UPDATE_MEETING";
5
- export declare enum IMeetingAction {
6
- Create_meeting = "CREATE_MEETING",
7
- Delete_meeting = "DELETE_MEETING",
8
- Update_meeting = "UPDATE_MEETING"
9
- }
10
- export type MeetingType = "regular" | "oneonone" | "feedback" | "presentation" | "other";
11
- export declare enum IMeetingType {
12
- Regular = "regular",// A regular meeting
13
- OneOnOne = "oneonone",// A one-on-one meeting
14
- Feedback = "feedback",// A feedback session
15
- Presentation = "presentation",// A presentation meeting
16
- Other = "other"
17
- }
18
- export interface IMeetingEvent {
19
- eventRef?: FirestoreDocumentReference;
20
- participantNames: string[];
21
- participantRefs?: FirestoreDocumentReference[];
22
- startDate: Date;
23
- endDate?: Date;
24
- }
25
- export interface IMeetingTask {
26
- taskRef?: FirestoreDocumentReference;
27
- title: string;
28
- status: TaskStatus;
29
- priority?: TaskPriority;
30
- assigneeName?: string;
31
- }
32
- export interface ITalkingPointTemplate extends IFireDoc {
33
- title: string;
34
- description?: string;
35
- tags?: ITag[] | null;
36
- }
37
- export interface IMeetingTalkingPoint {
38
- templateRef?: FirestoreDocumentReference;
39
- title: string;
40
- description?: string;
41
- tags?: ITag[] | null;
42
- discussed: boolean;
43
- notes?: string;
44
- assigneeName?: string;
45
- assigneeRef?: FirestoreDocumentReference;
46
- }
47
- export interface IMeeting extends IFireDoc {
48
- title: string;
49
- description?: string;
50
- creatorName: string;
51
- creatorRef?: FirestoreDocumentReference;
52
- event: IMeetingEvent;
53
- type: MeetingType;
54
- tasks?: IMeetingTask[];
55
- talkingPoints?: IMeetingTalkingPoint[];
56
- tags?: ITag[] | null;
57
- [key: string]: unknown;
58
- }
@@ -1,32 +0,0 @@
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.IMeetingType = exports.IMeetingAction = void 0;
18
- __exportStar(require("./fb_collections"), exports);
19
- var IMeetingAction;
20
- (function (IMeetingAction) {
21
- IMeetingAction["Create_meeting"] = "CREATE_MEETING";
22
- IMeetingAction["Delete_meeting"] = "DELETE_MEETING";
23
- IMeetingAction["Update_meeting"] = "UPDATE_MEETING";
24
- })(IMeetingAction || (exports.IMeetingAction = IMeetingAction = {}));
25
- var IMeetingType;
26
- (function (IMeetingType) {
27
- IMeetingType["Regular"] = "regular";
28
- IMeetingType["OneOnOne"] = "oneonone";
29
- IMeetingType["Feedback"] = "feedback";
30
- IMeetingType["Presentation"] = "presentation";
31
- IMeetingType["Other"] = "other";
32
- })(IMeetingType || (exports.IMeetingType = IMeetingType = {}));