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.
Files changed (139) hide show
  1. package/dist/apps/evo-activity/zod-schemas.d.ts +93 -0
  2. package/dist/apps/evo-activity/zod-schemas.js +40 -0
  3. package/dist/apps/evo-activity/zod-schemas.ts +43 -0
  4. package/dist/apps/evo-cake/zod-schemas.d.ts +783 -0
  5. package/dist/apps/evo-cake/zod-schemas.js +110 -0
  6. package/dist/apps/evo-cake/zod-schemas.ts +121 -0
  7. package/dist/apps/evo-calendar/zod-schemas.d.ts +71 -0
  8. package/dist/apps/evo-calendar/zod-schemas.js +32 -0
  9. package/dist/apps/evo-calendar/zod-schemas.ts +33 -0
  10. package/dist/apps/evo-core/zod-schemas.d.ts +14 -0
  11. package/dist/apps/evo-core/zod-schemas.js +9 -0
  12. package/dist/apps/evo-core/zod-schemas.ts +7 -0
  13. package/dist/apps/evo-crm/dic/zod-schemas.d.ts +233 -0
  14. package/dist/apps/evo-crm/dic/zod-schemas.js +45 -0
  15. package/dist/apps/evo-crm/dic/zod-schemas.ts +46 -0
  16. package/dist/apps/evo-crm/lead/zod-schemas.d.ts +347 -0
  17. package/dist/apps/evo-crm/lead/zod-schemas.js +30 -0
  18. package/dist/apps/evo-crm/lead/zod-schemas.ts +35 -0
  19. package/dist/apps/evo-med/dic/zod-schemas.d.ts +501 -0
  20. package/dist/apps/evo-med/dic/zod-schemas.js +116 -0
  21. package/dist/apps/evo-med/dic/zod-schemas.ts +127 -0
  22. package/dist/apps/evo-med/insurance/zod-schemas.d.ts +421 -0
  23. package/dist/apps/evo-med/insurance/zod-schemas.js +33 -0
  24. package/dist/apps/evo-med/insurance/zod-schemas.ts +39 -0
  25. package/dist/apps/evo-med/people/zod-schemas.d.ts +955 -0
  26. package/dist/apps/evo-med/people/zod-schemas.js +100 -0
  27. package/dist/apps/evo-med/people/zod-schemas.ts +117 -0
  28. package/dist/apps/evo-med/procedure/zod-schemas.d.ts +141 -0
  29. package/dist/apps/evo-med/procedure/zod-schemas.js +26 -0
  30. package/dist/apps/evo-med/procedure/zod-schemas.ts +26 -0
  31. package/dist/apps/evo-meeting/zod-schemas.d.ts +429 -0
  32. package/dist/apps/evo-meeting/zod-schemas.js +56 -0
  33. package/dist/apps/evo-meeting/zod-schemas.ts +62 -0
  34. package/dist/apps/evo-people/zod-schemas.d.ts +476 -0
  35. package/dist/apps/evo-people/zod-schemas.js +120 -0
  36. package/dist/apps/evo-people/zod-schemas.ts +124 -0
  37. package/dist/apps/evo-survey/zod-schemas.d.ts +1579 -0
  38. package/dist/apps/evo-survey/zod-schemas.js +191 -0
  39. package/dist/apps/evo-survey/zod-schemas.ts +209 -0
  40. package/dist/apps/evo-task/zod-schemas.d.ts +4 -0
  41. package/dist/apps/evo-task/zod-schemas.js +17 -0
  42. package/dist/apps/evo-task/zod-schemas.ts +17 -0
  43. package/dist/apps/evo-tenant/zod-schemas.d.ts +51 -0
  44. package/dist/apps/evo-tenant/zod-schemas.js +22 -0
  45. package/dist/apps/evo-tenant/zod-schemas.ts +23 -0
  46. package/dist/apps/shared/zod-schemas.d.ts +84 -0
  47. package/dist/apps/shared/zod-schemas.js +49 -0
  48. package/dist/apps/shared/zod-schemas.ts +51 -0
  49. package/dist/index.d.ts +35 -0
  50. package/dist/index.js +50 -0
  51. package/dist/index.ts +35 -0
  52. package/dist/types/evo-activity/fb_collections.d.ts +4 -0
  53. package/dist/types/evo-activity/fb_collections.js +9 -0
  54. package/dist/types/evo-activity/fb_collections.ts +7 -0
  55. package/dist/types/evo-activity/index.d.ts +28 -0
  56. package/dist/types/evo-activity/index.js +27 -0
  57. package/dist/types/evo-activity/index.ts +45 -0
  58. package/dist/types/evo-cake/fb_collections.d.ts +4 -0
  59. package/dist/types/evo-cake/fb_collections.js +9 -0
  60. package/dist/types/evo-cake/fb_collections.ts +7 -0
  61. package/dist/types/evo-cake/index.d.ts +111 -0
  62. package/dist/types/evo-cake/index.js +79 -0
  63. package/dist/types/evo-cake/index.ts +186 -0
  64. package/dist/types/evo-calendar/fb_collections.d.ts +2 -0
  65. package/dist/types/evo-calendar/fb_collections.js +7 -0
  66. package/dist/types/evo-calendar/fb_collections.ts +5 -0
  67. package/dist/types/evo-calendar/index.d.ts +56 -0
  68. package/dist/types/evo-calendar/index.js +37 -0
  69. package/dist/types/evo-calendar/index.ts +69 -0
  70. package/dist/types/evo-core/index.d.ts +41 -0
  71. package/dist/types/evo-core/index.js +2 -0
  72. package/dist/types/evo-core/index.ts +48 -0
  73. package/dist/types/evo-crm/dic/index.d.ts +51 -0
  74. package/dist/types/evo-crm/dic/index.js +46 -0
  75. package/dist/types/evo-crm/dic/index.ts +86 -0
  76. package/dist/types/evo-crm/fb_collections.d.ts +7 -0
  77. package/dist/types/evo-crm/fb_collections.js +13 -0
  78. package/dist/types/evo-crm/fb_collections.ts +13 -0
  79. package/dist/types/evo-crm/lead/index.d.ts +31 -0
  80. package/dist/types/evo-crm/lead/index.js +24 -0
  81. package/dist/types/evo-crm/lead/index.ts +42 -0
  82. package/dist/types/evo-med/dic/index.d.ts +99 -0
  83. package/dist/types/evo-med/dic/index.js +52 -0
  84. package/dist/types/evo-med/dic/index.ts +131 -0
  85. package/dist/types/evo-med/fb_collections.d.ts +20 -0
  86. package/dist/types/evo-med/fb_collections.js +28 -0
  87. package/dist/types/evo-med/fb_collections.ts +31 -0
  88. package/dist/types/evo-med/insurance/index.d.ts +34 -0
  89. package/dist/types/evo-med/insurance/index.js +24 -0
  90. package/dist/types/evo-med/insurance/index.ts +45 -0
  91. package/dist/types/evo-med/people/index.d.ts +125 -0
  92. package/dist/types/evo-med/people/index.js +66 -0
  93. package/dist/types/evo-med/people/index.ts +188 -0
  94. package/dist/types/evo-med/procedure/index.d.ts +36 -0
  95. package/dist/types/evo-med/procedure/index.js +30 -0
  96. package/dist/types/evo-med/procedure/index.ts +48 -0
  97. package/dist/types/evo-meeting/fb_collections.d.ts +2 -0
  98. package/dist/types/evo-meeting/fb_collections.js +7 -0
  99. package/dist/types/evo-meeting/fb_collections.ts +5 -0
  100. package/dist/types/evo-meeting/index.d.ts +58 -0
  101. package/dist/types/evo-meeting/index.js +32 -0
  102. package/dist/types/evo-meeting/index.ts +80 -0
  103. package/dist/types/evo-messages/fb_collections.d.ts +1 -0
  104. package/dist/types/evo-messages/fb_collections.js +2 -0
  105. package/dist/types/evo-messages/fb_collections.ts +0 -0
  106. package/dist/types/evo-people/fb_collections.d.ts +5 -0
  107. package/dist/types/evo-people/fb_collections.js +10 -0
  108. package/dist/types/evo-people/fb_collections.ts +8 -0
  109. package/dist/types/evo-people/index.d.ts +117 -0
  110. package/dist/types/evo-people/index.js +59 -0
  111. package/dist/types/evo-people/index.ts +167 -0
  112. package/dist/types/evo-survey/fb_collections.d.ts +7 -0
  113. package/dist/types/evo-survey/fb_collections.js +13 -0
  114. package/dist/types/evo-survey/fb_collections.ts +12 -0
  115. package/dist/types/evo-survey/index.d.ts +172 -0
  116. package/dist/types/evo-survey/index.js +70 -0
  117. package/dist/types/evo-survey/index.ts +224 -0
  118. package/dist/types/evo-task/fb_collections.d.ts +2 -0
  119. package/dist/types/evo-task/fb_collections.js +7 -0
  120. package/dist/types/evo-task/fb_collections.ts +5 -0
  121. package/dist/types/evo-task/index.d.ts +35 -0
  122. package/dist/types/evo-task/index.js +38 -0
  123. package/dist/types/evo-task/index.ts +51 -0
  124. package/dist/types/evo-tenant/fb_collections.d.ts +1 -0
  125. package/dist/types/evo-tenant/fb_collections.js +5 -0
  126. package/dist/types/evo-tenant/fb_collections.ts +2 -0
  127. package/dist/types/evo-tenant/index.d.ts +28 -0
  128. package/dist/types/evo-tenant/index.js +35 -0
  129. package/dist/types/evo-tenant/index.ts +35 -0
  130. package/dist/types/shared/fb_collections.d.ts +5 -0
  131. package/dist/types/shared/fb_collections.js +13 -0
  132. package/dist/types/shared/fb_collections.ts +14 -0
  133. package/dist/types/shared/index.d.ts +52 -0
  134. package/dist/types/shared/index.js +30 -0
  135. package/dist/types/shared/index.ts +74 -0
  136. package/dist/types/shared/maska.d.ts +23 -0
  137. package/dist/types/shared/maska.js +2 -0
  138. package/dist/types/shared/maska.ts +26 -0
  139. package/package.json +1 -1
@@ -0,0 +1,186 @@
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
+ }
@@ -0,0 +1,2 @@
1
+ export declare const EVO_CALENDAR_APP = "evo-calendar";
2
+ export declare const EVENTS_COLLECTION = "events";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EVENTS_COLLECTION = exports.EVO_CALENDAR_APP = void 0;
4
+ //EVO Calendar Application Doc
5
+ exports.EVO_CALENDAR_APP = "evo-calendar";
6
+ //Calendar collection
7
+ exports.EVENTS_COLLECTION = "events";
@@ -0,0 +1,5 @@
1
+ //EVO Calendar Application Doc
2
+ export const EVO_CALENDAR_APP = "evo-calendar";
3
+
4
+ //Calendar collection
5
+ export const EVENTS_COLLECTION = "events";
@@ -0,0 +1,56 @@
1
+ export * from "./fb_collections";
2
+ import type { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
+ import type { MeetingType } from "../evo-meeting";
4
+ export type CalendarAction = "CREATE_EVENT" | "DELETE_EVENT" | "UPDATE_EVENT";
5
+ export declare enum ICalendarAction {
6
+ Create_event = "CREATE_EVENT",
7
+ Delete_event = "DELETE_EVENT",
8
+ Update_event = "UPDATE_EVENT"
9
+ }
10
+ export type EventStatus = "scheduled" | "completed" | "cancelled";
11
+ export declare enum IEventStatus {
12
+ Scheduled = "scheduled",// The event is scheduled and upcoming
13
+ Completed = "completed",// The event has been completed
14
+ Cancelled = "cancelled"
15
+ }
16
+ export type CalendarEventType = "event" | "meeting" | "workshop" | "other";
17
+ export declare enum ICalendarEventType {
18
+ Event = "event",// A general event type
19
+ Meeting = "meeting",// A meeting event
20
+ Workshop = "workshop",// A workshop event
21
+ Other = "other"
22
+ }
23
+ export interface IEventMeeting {
24
+ meetingRef?: FirestoreDocumentReference;
25
+ type: MeetingType;
26
+ readonly task_count?: number;
27
+ readonly talkingPoints_count?: number;
28
+ tags?: ITag[] | null;
29
+ }
30
+ export interface IRecurringEvent extends IFireDoc {
31
+ title: string;
32
+ description?: string;
33
+ creatorName: string;
34
+ creatorRef?: FirestoreDocumentReference;
35
+ participants: string[];
36
+ start_date: Date;
37
+ end_date?: Date;
38
+ type: CalendarEventType;
39
+ rrule: string;
40
+ exceptions: string[];
41
+ }
42
+ export interface IEvent extends IFireDoc {
43
+ recurringRef?: FirestoreDocumentReference;
44
+ title: string;
45
+ description?: string;
46
+ creatorName: string;
47
+ creatorRef?: FirestoreDocumentReference;
48
+ participantNames?: string[];
49
+ participantRefs?: FirestoreDocumentReference[];
50
+ start_date: Date;
51
+ end_date?: Date;
52
+ type: CalendarEventType;
53
+ tags?: ITag[] | null;
54
+ meeting?: IEventMeeting;
55
+ status: EventStatus;
56
+ }
@@ -0,0 +1,37 @@
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.ICalendarEventType = exports.IEventStatus = exports.ICalendarAction = void 0;
18
+ __exportStar(require("./fb_collections"), exports);
19
+ var ICalendarAction;
20
+ (function (ICalendarAction) {
21
+ ICalendarAction["Create_event"] = "CREATE_EVENT";
22
+ ICalendarAction["Delete_event"] = "DELETE_EVENT";
23
+ ICalendarAction["Update_event"] = "UPDATE_EVENT";
24
+ })(ICalendarAction || (exports.ICalendarAction = ICalendarAction = {}));
25
+ var IEventStatus;
26
+ (function (IEventStatus) {
27
+ IEventStatus["Scheduled"] = "scheduled";
28
+ IEventStatus["Completed"] = "completed";
29
+ IEventStatus["Cancelled"] = "cancelled";
30
+ })(IEventStatus || (exports.IEventStatus = IEventStatus = {}));
31
+ var ICalendarEventType;
32
+ (function (ICalendarEventType) {
33
+ ICalendarEventType["Event"] = "event";
34
+ ICalendarEventType["Meeting"] = "meeting";
35
+ ICalendarEventType["Workshop"] = "workshop";
36
+ ICalendarEventType["Other"] = "other";
37
+ })(ICalendarEventType || (exports.ICalendarEventType = ICalendarEventType = {}));
@@ -0,0 +1,69 @@
1
+ export * from "./fb_collections";
2
+ import type { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
+ import type { MeetingType } from "../evo-meeting";
4
+
5
+ // ----- CalendarTypes
6
+ // Enum for Calendar Action - used in Activities tracking
7
+ export type CalendarAction = "CREATE_EVENT" | "DELETE_EVENT" | "UPDATE_EVENT";
8
+ export enum ICalendarAction {
9
+ Create_event = "CREATE_EVENT",
10
+ Delete_event = "DELETE_EVENT",
11
+ Update_event = "UPDATE_EVENT",
12
+ }
13
+
14
+ // Enum for Event Instance Status
15
+ export type EventStatus = "scheduled" | "completed" | "cancelled";
16
+ export enum IEventStatus {
17
+ Scheduled = "scheduled", // The event is scheduled and upcoming
18
+ Completed = "completed", // The event has been completed
19
+ Cancelled = "cancelled", // The event has been cancelled
20
+ }
21
+
22
+ // Enum for Event Types
23
+ export type CalendarEventType = "event" | "meeting" | "workshop" | "other";
24
+ export enum ICalendarEventType {
25
+ Event = "event", // A general event type
26
+ Meeting = "meeting", // A meeting event
27
+ Workshop = "workshop", // A workshop event
28
+ Other = "other", // Any other type of event
29
+ }
30
+
31
+ // Interface for Meeting within a Event (meetingTasks)
32
+ export interface IEventMeeting {
33
+ meetingRef?: FirestoreDocumentReference; // Reference to the original task
34
+ type: MeetingType; // Type of meeting
35
+ readonly task_count?: number;
36
+ readonly talkingPoints_count?: number;
37
+ tags?: ITag[] | null;
38
+ }
39
+
40
+ // Interface for Recurring Events (recurringEvents)
41
+ export interface IRecurringEvent extends IFireDoc {
42
+ title: string; // Title of the meeting
43
+ description?: string; // Optional description of the meeting
44
+ creatorName: string; // Name of the user who created the event
45
+ creatorRef?: FirestoreDocumentReference; // reference to the user who created the event
46
+ participants: string[]; // List of participant IDs
47
+ start_date: Date; // Start date and time of the first meeting
48
+ end_date?: Date; // Optional end date and time of the recurring meeting
49
+ type: CalendarEventType; // Type of event
50
+ rrule: string; // Recurrence rule in RRULE format
51
+ exceptions: string[]; // List of instance IDs that represent exceptions
52
+ }
53
+
54
+ // Interface for Event Instances (eventInstances)
55
+ export interface IEvent extends IFireDoc {
56
+ recurringRef?: FirestoreDocumentReference; // Reference to the recurring event rule (optional)
57
+ title: string; // Title of the event
58
+ description?: string; // Optional description of the event
59
+ creatorName: string; // Name of the user who created the event
60
+ creatorRef?: FirestoreDocumentReference; // reference to the user who created the event
61
+ participantNames?: string[]; // List of participant names
62
+ participantRefs?: FirestoreDocumentReference[]; // List of participant references
63
+ start_date: Date; // Start date and time of the event
64
+ end_date?: Date; // Optional end date and time of the event
65
+ type: CalendarEventType; // Type of event
66
+ tags?: ITag[] | null;
67
+ meeting?: IEventMeeting;
68
+ status: EventStatus; // Status of the event
69
+ }
@@ -0,0 +1,41 @@
1
+ import type { FirestoreDocumentReference, IFireDoc } from "../shared";
2
+ export interface IUserSpecialRoles {
3
+ is_admin: boolean;
4
+ is_sys_admin: boolean;
5
+ }
6
+ export interface IUser extends IUserSpecialRoles, IFireDoc {
7
+ display_name: string;
8
+ email: string;
9
+ email_verified?: string;
10
+ full_name: string;
11
+ last_access: Date;
12
+ member_since: Date;
13
+ mobile_number?: string;
14
+ mobile_number_verified?: boolean;
15
+ phone_number?: null | string;
16
+ picture_url?: null | string;
17
+ role: number;
18
+ tenantRef?: FirestoreDocumentReference | null;
19
+ tenants?: string[];
20
+ sid?: null | string;
21
+ }
22
+ export interface ILogin {
23
+ id: string;
24
+ user?: FirestoreDocumentReference;
25
+ displayname?: string | null;
26
+ email?: string | null;
27
+ emailverif?: false | boolean;
28
+ providerId?: string | null;
29
+ }
30
+ export interface IAction {
31
+ code: number;
32
+ action: string;
33
+ created_at: Date;
34
+ args?: IActionArgs | string | unknown | null;
35
+ user?: FirestoreDocumentReference;
36
+ }
37
+ export interface IActionArgs {
38
+ old_values?: Record<string, any>;
39
+ new_values?: Record<string, any>;
40
+ deleted_at?: Date;
41
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,48 @@
1
+ import type { FirestoreDocumentReference, IFireDoc } from "../shared";
2
+
3
+ //UserTypes
4
+ export interface IUserSpecialRoles {
5
+ is_admin: boolean;
6
+ is_sys_admin: boolean;
7
+ }
8
+
9
+ export interface IUser extends IUserSpecialRoles, IFireDoc {
10
+ display_name: string;
11
+ email: string;
12
+ email_verified?: string;
13
+ full_name: string;
14
+ last_access: Date;
15
+ member_since: Date;
16
+ mobile_number?: string;
17
+ mobile_number_verified?: boolean;
18
+ phone_number?: null | string;
19
+ picture_url?: null | string;
20
+ role: number;
21
+ tenantRef?: FirestoreDocumentReference | null;
22
+ tenants?: string[];
23
+ sid?: null | string;
24
+ }
25
+
26
+ //AuthTypes
27
+ export interface ILogin {
28
+ id: string;
29
+ user?: FirestoreDocumentReference;
30
+ displayname?: string | null;
31
+ email?: string | null;
32
+ emailverif?: false | boolean;
33
+ providerId?: string | null;
34
+ }
35
+
36
+ export interface IAction {
37
+ code: number;
38
+ action: string;
39
+ created_at: Date;
40
+ args?: IActionArgs | string | unknown | null;
41
+ user?: FirestoreDocumentReference;
42
+ }
43
+
44
+ export interface IActionArgs {
45
+ old_values?: Record<string, any>;
46
+ new_values?: Record<string, any>;
47
+ deleted_at?: Date;
48
+ }
@@ -0,0 +1,51 @@
1
+ export * from "../fb_collections";
2
+ import { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
3
+ export type CRMDicAction = "CREATE_DIST_CHANNEL_TYPE" | "DELETE_DIST_CHANNEL_TYPE" | "UPDATE_DIST_CHANNEL_TYPE" | "CREATE_DIST_CHANNEL" | "DELETE_DIST_CHANNEL" | "UPDATE_DIST_CHANNEL" | "CREATE_LEADQUALIFICATION" | "DELETE_LEADQUALIFICATION" | "UPDATE_LEADQUALIFICATION";
4
+ export declare enum ICRMDicAction {
5
+ Create_dist_channel_type = "CREATE_DIST_CHANNEL_TYPE",
6
+ Delete_dist_channel_type = "DELETE_DIST_CHANNEL_TYPE",
7
+ Update_dist_channel_type = "UPDATE_DIST_CHANNEL_TYPE",
8
+ Create_dist_channel = "CREATE_DIST_CHANNEL",
9
+ Delete_dist_channel = "DELETE_DIST_CHANNEL",
10
+ Update_dist_channel = "UPDATE_DIST_CHANNEL",
11
+ Create_patient_source = "CREATE_LEADQUALIFICATION",
12
+ Delete_patient_source = "DELETE_LEADQUALIFICATION",
13
+ Update_patient_source = "UPDATE_LEADQUALIFICATION"
14
+ }
15
+ export interface IDistChannelType extends IFireDoc {
16
+ code: string;
17
+ name: string;
18
+ tags?: ITag[] | null;
19
+ [key: string]: unknown;
20
+ }
21
+ export interface IDistChannel extends IFireDoc {
22
+ code: string;
23
+ name: string;
24
+ type_code?: string;
25
+ type_name?: string;
26
+ typeRef?: FirestoreDocumentReference;
27
+ tags?: ITag[] | null;
28
+ [key: string]: unknown;
29
+ }
30
+ export type QualificationFunnelLevel = "new" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
31
+ export declare enum IQualificationFunnelLevel {
32
+ New = "new",// Lead recém-captado
33
+ TryingContact = "trying_contact",// Tentando contato inicial
34
+ Contacted = "contacted",// Contato estabelecido
35
+ Qualifying = "qualifying",// Em processo de qualificação
36
+ Qualified = "qualified",// Lead com fit
37
+ Disqualified = "disqualified",// Lead sem fit/interesse
38
+ Presented = "presented",// Apresentação realizada
39
+ ProposalSent = "proposal_sent",// Proposta enviada
40
+ Negotiating = "negotiating",// Em negociação
41
+ Won = "won",// Venda fechada
42
+ Lost = "lost",// Venda perdida
43
+ WaitingReply = "waiting_reply",// Aguardando retorno do lead
44
+ FollowUpLater = "follow_up_later"
45
+ }
46
+ export interface IQualification extends IFireDoc {
47
+ code: string;
48
+ name: string;
49
+ funnelLevel: QualificationFunnelLevel;
50
+ [key: string]: unknown;
51
+ }
@@ -0,0 +1,46 @@
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.IQualificationFunnelLevel = exports.ICRMDicAction = void 0;
18
+ __exportStar(require("../fb_collections"), exports);
19
+ var ICRMDicAction;
20
+ (function (ICRMDicAction) {
21
+ ICRMDicAction["Create_dist_channel_type"] = "CREATE_DIST_CHANNEL_TYPE";
22
+ ICRMDicAction["Delete_dist_channel_type"] = "DELETE_DIST_CHANNEL_TYPE";
23
+ ICRMDicAction["Update_dist_channel_type"] = "UPDATE_DIST_CHANNEL_TYPE";
24
+ ICRMDicAction["Create_dist_channel"] = "CREATE_DIST_CHANNEL";
25
+ ICRMDicAction["Delete_dist_channel"] = "DELETE_DIST_CHANNEL";
26
+ ICRMDicAction["Update_dist_channel"] = "UPDATE_DIST_CHANNEL";
27
+ ICRMDicAction["Create_patient_source"] = "CREATE_LEADQUALIFICATION";
28
+ ICRMDicAction["Delete_patient_source"] = "DELETE_LEADQUALIFICATION";
29
+ ICRMDicAction["Update_patient_source"] = "UPDATE_LEADQUALIFICATION";
30
+ })(ICRMDicAction || (exports.ICRMDicAction = ICRMDicAction = {}));
31
+ var IQualificationFunnelLevel;
32
+ (function (IQualificationFunnelLevel) {
33
+ IQualificationFunnelLevel["New"] = "new";
34
+ IQualificationFunnelLevel["TryingContact"] = "trying_contact";
35
+ IQualificationFunnelLevel["Contacted"] = "contacted";
36
+ IQualificationFunnelLevel["Qualifying"] = "qualifying";
37
+ IQualificationFunnelLevel["Qualified"] = "qualified";
38
+ IQualificationFunnelLevel["Disqualified"] = "disqualified";
39
+ IQualificationFunnelLevel["Presented"] = "presented";
40
+ IQualificationFunnelLevel["ProposalSent"] = "proposal_sent";
41
+ IQualificationFunnelLevel["Negotiating"] = "negotiating";
42
+ IQualificationFunnelLevel["Won"] = "won";
43
+ IQualificationFunnelLevel["Lost"] = "lost";
44
+ IQualificationFunnelLevel["WaitingReply"] = "waiting_reply";
45
+ IQualificationFunnelLevel["FollowUpLater"] = "follow_up_later";
46
+ })(IQualificationFunnelLevel || (exports.IQualificationFunnelLevel = IQualificationFunnelLevel = {}));
@@ -0,0 +1,86 @@
1
+ export * from "../fb_collections";
2
+
3
+ import { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
4
+
5
+ // ----- CRMDicTypes
6
+
7
+ // Enum for EvoCRM Dic Action - used in Dictionaries tracking
8
+ export type CRMDicAction =
9
+ | "CREATE_DIST_CHANNEL_TYPE"
10
+ | "DELETE_DIST_CHANNEL_TYPE"
11
+ | "UPDATE_DIST_CHANNEL_TYPE"
12
+ | "CREATE_DIST_CHANNEL"
13
+ | "DELETE_DIST_CHANNEL"
14
+ | "UPDATE_DIST_CHANNEL"
15
+ | "CREATE_LEADQUALIFICATION"
16
+ | "DELETE_LEADQUALIFICATION"
17
+ | "UPDATE_LEADQUALIFICATION";
18
+
19
+ export enum ICRMDicAction {
20
+ Create_dist_channel_type = "CREATE_DIST_CHANNEL_TYPE",
21
+ Delete_dist_channel_type = "DELETE_DIST_CHANNEL_TYPE",
22
+ Update_dist_channel_type = "UPDATE_DIST_CHANNEL_TYPE",
23
+ Create_dist_channel = "CREATE_DIST_CHANNEL",
24
+ Delete_dist_channel = "DELETE_DIST_CHANNEL",
25
+ Update_dist_channel = "UPDATE_DIST_CHANNEL",
26
+ Create_patient_source = "CREATE_LEADQUALIFICATION",
27
+ Delete_patient_source = "DELETE_LEADQUALIFICATION",
28
+ Update_patient_source = "UPDATE_LEADQUALIFICATION",
29
+ }
30
+
31
+ export interface IDistChannelType extends IFireDoc {
32
+ code: string;
33
+ name: string;
34
+ tags?: ITag[] | null;
35
+ [key: string]: unknown; // index signature
36
+ }
37
+
38
+ export interface IDistChannel extends IFireDoc {
39
+ code: string;
40
+ name: string;
41
+ type_code?: string;
42
+ type_name?: string;
43
+ typeRef?: FirestoreDocumentReference;
44
+ tags?: ITag[] | null;
45
+ [key: string]: unknown; // index signature
46
+ }
47
+
48
+ // Funnel levels
49
+ export type QualificationFunnelLevel =
50
+ | "new"
51
+ | "trying_contact"
52
+ | "contacted"
53
+ | "qualifying"
54
+ | "qualified"
55
+ | "disqualified"
56
+ | "presented"
57
+ | "proposal_sent"
58
+ | "negotiating"
59
+ | "won"
60
+ | "lost"
61
+ | "waiting_reply"
62
+ | "follow_up_later";
63
+
64
+ export enum IQualificationFunnelLevel {
65
+ New = "new", // Lead recém-captado
66
+ TryingContact = "trying_contact", // Tentando contato inicial
67
+ Contacted = "contacted", // Contato estabelecido
68
+ Qualifying = "qualifying", // Em processo de qualificação
69
+ Qualified = "qualified", // Lead com fit
70
+ Disqualified = "disqualified", // Lead sem fit/interesse
71
+ Presented = "presented", // Apresentação realizada
72
+ ProposalSent = "proposal_sent", // Proposta enviada
73
+ Negotiating = "negotiating", // Em negociação
74
+ Won = "won", // Venda fechada
75
+ Lost = "lost", // Venda perdida
76
+ WaitingReply = "waiting_reply", // Aguardando retorno do lead
77
+ FollowUpLater = "follow_up_later", // Contato agendado para o futuro
78
+ }
79
+
80
+ // Lead qualification status
81
+ export interface IQualification extends IFireDoc {
82
+ code: string;
83
+ name: string;
84
+ funnelLevel: QualificationFunnelLevel;
85
+ [key: string]: unknown; // index signature
86
+ }
@@ -0,0 +1,7 @@
1
+ export declare const EVO_CRM_APP = "evo-crm";
2
+ export declare const LEADS = "leads";
3
+ export declare const LEAD_QUALIFICATION_COLLECTION = "qualification";
4
+ export declare const CHANNELS = "channels";
5
+ export declare const DIST_CHANNEL_TYPES_COLLECTION = "dist-channel-types";
6
+ export declare const DIST_CHANNELS_COLLECTION = "dist-channels";
7
+ export declare const LEADS_COLLECTION = "leads";
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LEADS_COLLECTION = exports.DIST_CHANNELS_COLLECTION = exports.DIST_CHANNEL_TYPES_COLLECTION = exports.CHANNELS = exports.LEAD_QUALIFICATION_COLLECTION = exports.LEADS = exports.EVO_CRM_APP = void 0;
4
+ //EVO CRM Application Doc
5
+ exports.EVO_CRM_APP = "evo-crm";
6
+ //dictionaries
7
+ exports.LEADS = "leads";
8
+ exports.LEAD_QUALIFICATION_COLLECTION = "qualification";
9
+ exports.CHANNELS = "channels";
10
+ exports.DIST_CHANNEL_TYPES_COLLECTION = "dist-channel-types";
11
+ exports.DIST_CHANNELS_COLLECTION = "dist-channels";
12
+ // Leads
13
+ exports.LEADS_COLLECTION = "leads";