evo360-types 1.3.4 → 1.3.6

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/package.json +1 -1
  2. package/dist/apps/evo-activity/zod-schemas.d.ts +0 -93
  3. package/dist/apps/evo-activity/zod-schemas.js +0 -40
  4. package/dist/apps/evo-activity/zod-schemas.ts +0 -43
  5. package/dist/apps/evo-cake/zod-schemas.d.ts +0 -783
  6. package/dist/apps/evo-cake/zod-schemas.js +0 -110
  7. package/dist/apps/evo-cake/zod-schemas.ts +0 -121
  8. package/dist/apps/evo-calendar/zod-schemas.d.ts +0 -71
  9. package/dist/apps/evo-calendar/zod-schemas.js +0 -32
  10. package/dist/apps/evo-calendar/zod-schemas.ts +0 -33
  11. package/dist/apps/evo-core/zod-schemas.d.ts +0 -14
  12. package/dist/apps/evo-core/zod-schemas.js +0 -9
  13. package/dist/apps/evo-core/zod-schemas.ts +0 -7
  14. package/dist/apps/evo-crm/dic/zod-schemas.d.ts +0 -233
  15. package/dist/apps/evo-crm/dic/zod-schemas.js +0 -45
  16. package/dist/apps/evo-crm/dic/zod-schemas.ts +0 -46
  17. package/dist/apps/evo-crm/lead/zod-schemas.d.ts +0 -347
  18. package/dist/apps/evo-crm/lead/zod-schemas.js +0 -30
  19. package/dist/apps/evo-crm/lead/zod-schemas.ts +0 -35
  20. package/dist/apps/evo-med/dic/zod-schemas.d.ts +0 -501
  21. package/dist/apps/evo-med/dic/zod-schemas.js +0 -116
  22. package/dist/apps/evo-med/dic/zod-schemas.ts +0 -127
  23. package/dist/apps/evo-med/insurance/zod-schemas.d.ts +0 -421
  24. package/dist/apps/evo-med/insurance/zod-schemas.js +0 -33
  25. package/dist/apps/evo-med/insurance/zod-schemas.ts +0 -39
  26. package/dist/apps/evo-med/people/zod-schemas.d.ts +0 -955
  27. package/dist/apps/evo-med/people/zod-schemas.js +0 -100
  28. package/dist/apps/evo-med/people/zod-schemas.ts +0 -117
  29. package/dist/apps/evo-med/procedure/zod-schemas.d.ts +0 -141
  30. package/dist/apps/evo-med/procedure/zod-schemas.js +0 -26
  31. package/dist/apps/evo-med/procedure/zod-schemas.ts +0 -26
  32. package/dist/apps/evo-meeting/zod-schemas.d.ts +0 -429
  33. package/dist/apps/evo-meeting/zod-schemas.js +0 -56
  34. package/dist/apps/evo-meeting/zod-schemas.ts +0 -62
  35. package/dist/apps/evo-people/zod-schemas.d.ts +0 -476
  36. package/dist/apps/evo-people/zod-schemas.js +0 -120
  37. package/dist/apps/evo-people/zod-schemas.ts +0 -124
  38. package/dist/apps/evo-survey/zod-schemas.d.ts +0 -1579
  39. package/dist/apps/evo-survey/zod-schemas.js +0 -191
  40. package/dist/apps/evo-survey/zod-schemas.ts +0 -209
  41. package/dist/apps/evo-task/zod-schemas.d.ts +0 -4
  42. package/dist/apps/evo-task/zod-schemas.js +0 -17
  43. package/dist/apps/evo-task/zod-schemas.ts +0 -17
  44. package/dist/apps/evo-tenant/zod-schemas.d.ts +0 -51
  45. package/dist/apps/evo-tenant/zod-schemas.js +0 -22
  46. package/dist/apps/evo-tenant/zod-schemas.ts +0 -23
  47. package/dist/apps/shared/zod-schemas.d.ts +0 -84
  48. package/dist/apps/shared/zod-schemas.js +0 -49
  49. package/dist/apps/shared/zod-schemas.ts +0 -51
  50. package/dist/index.d.ts +0 -35
  51. package/dist/index.js +0 -50
  52. package/dist/index.ts +0 -35
  53. package/dist/types/evo-activity/fb_collections.d.ts +0 -4
  54. package/dist/types/evo-activity/fb_collections.js +0 -9
  55. package/dist/types/evo-activity/fb_collections.ts +0 -7
  56. package/dist/types/evo-activity/index.d.ts +0 -28
  57. package/dist/types/evo-activity/index.js +0 -27
  58. package/dist/types/evo-activity/index.ts +0 -45
  59. package/dist/types/evo-cake/fb_collections.d.ts +0 -4
  60. package/dist/types/evo-cake/fb_collections.js +0 -9
  61. package/dist/types/evo-cake/fb_collections.ts +0 -7
  62. package/dist/types/evo-cake/index.d.ts +0 -111
  63. package/dist/types/evo-cake/index.js +0 -79
  64. package/dist/types/evo-cake/index.ts +0 -186
  65. package/dist/types/evo-calendar/fb_collections.d.ts +0 -2
  66. package/dist/types/evo-calendar/fb_collections.js +0 -7
  67. package/dist/types/evo-calendar/fb_collections.ts +0 -5
  68. package/dist/types/evo-calendar/index.d.ts +0 -56
  69. package/dist/types/evo-calendar/index.js +0 -37
  70. package/dist/types/evo-calendar/index.ts +0 -69
  71. package/dist/types/evo-core/index.d.ts +0 -41
  72. package/dist/types/evo-core/index.js +0 -2
  73. package/dist/types/evo-core/index.ts +0 -48
  74. package/dist/types/evo-crm/dic/index.d.ts +0 -50
  75. package/dist/types/evo-crm/dic/index.js +0 -31
  76. package/dist/types/evo-crm/dic/index.ts +0 -84
  77. package/dist/types/evo-crm/fb_collections.d.ts +0 -7
  78. package/dist/types/evo-crm/fb_collections.js +0 -13
  79. package/dist/types/evo-crm/fb_collections.ts +0 -13
  80. package/dist/types/evo-crm/lead/index.d.ts +0 -30
  81. package/dist/types/evo-crm/lead/index.js +0 -9
  82. package/dist/types/evo-crm/lead/index.ts +0 -40
  83. package/dist/types/evo-med/dic/index.d.ts +0 -99
  84. package/dist/types/evo-med/dic/index.js +0 -52
  85. package/dist/types/evo-med/dic/index.ts +0 -131
  86. package/dist/types/evo-med/fb_collections.d.ts +0 -20
  87. package/dist/types/evo-med/fb_collections.js +0 -28
  88. package/dist/types/evo-med/fb_collections.ts +0 -31
  89. package/dist/types/evo-med/insurance/index.d.ts +0 -34
  90. package/dist/types/evo-med/insurance/index.js +0 -24
  91. package/dist/types/evo-med/insurance/index.ts +0 -45
  92. package/dist/types/evo-med/people/index.d.ts +0 -125
  93. package/dist/types/evo-med/people/index.js +0 -66
  94. package/dist/types/evo-med/people/index.ts +0 -188
  95. package/dist/types/evo-med/procedure/index.d.ts +0 -36
  96. package/dist/types/evo-med/procedure/index.js +0 -30
  97. package/dist/types/evo-med/procedure/index.ts +0 -48
  98. package/dist/types/evo-meeting/fb_collections.d.ts +0 -2
  99. package/dist/types/evo-meeting/fb_collections.js +0 -7
  100. package/dist/types/evo-meeting/fb_collections.ts +0 -5
  101. package/dist/types/evo-meeting/index.d.ts +0 -58
  102. package/dist/types/evo-meeting/index.js +0 -32
  103. package/dist/types/evo-meeting/index.ts +0 -80
  104. package/dist/types/evo-messages/fb_collections.d.ts +0 -1
  105. package/dist/types/evo-messages/fb_collections.js +0 -2
  106. package/dist/types/evo-messages/fb_collections.ts +0 -0
  107. package/dist/types/evo-people/fb_collections.d.ts +0 -5
  108. package/dist/types/evo-people/fb_collections.js +0 -10
  109. package/dist/types/evo-people/fb_collections.ts +0 -8
  110. package/dist/types/evo-people/index.d.ts +0 -117
  111. package/dist/types/evo-people/index.js +0 -59
  112. package/dist/types/evo-people/index.ts +0 -167
  113. package/dist/types/evo-survey/fb_collections.d.ts +0 -7
  114. package/dist/types/evo-survey/fb_collections.js +0 -13
  115. package/dist/types/evo-survey/fb_collections.ts +0 -12
  116. package/dist/types/evo-survey/index.d.ts +0 -172
  117. package/dist/types/evo-survey/index.js +0 -70
  118. package/dist/types/evo-survey/index.ts +0 -224
  119. package/dist/types/evo-task/fb_collections.d.ts +0 -2
  120. package/dist/types/evo-task/fb_collections.js +0 -7
  121. package/dist/types/evo-task/fb_collections.ts +0 -5
  122. package/dist/types/evo-task/index.d.ts +0 -35
  123. package/dist/types/evo-task/index.js +0 -38
  124. package/dist/types/evo-task/index.ts +0 -51
  125. package/dist/types/evo-tenant/fb_collections.d.ts +0 -1
  126. package/dist/types/evo-tenant/fb_collections.js +0 -5
  127. package/dist/types/evo-tenant/fb_collections.ts +0 -2
  128. package/dist/types/evo-tenant/index.d.ts +0 -28
  129. package/dist/types/evo-tenant/index.js +0 -35
  130. package/dist/types/evo-tenant/index.ts +0 -35
  131. package/dist/types/shared/fb_collections.d.ts +0 -5
  132. package/dist/types/shared/fb_collections.js +0 -13
  133. package/dist/types/shared/fb_collections.ts +0 -14
  134. package/dist/types/shared/index.d.ts +0 -52
  135. package/dist/types/shared/index.js +0 -30
  136. package/dist/types/shared/index.ts +0 -74
  137. package/dist/types/shared/maska.d.ts +0 -23
  138. package/dist/types/shared/maska.js +0 -2
  139. package/dist/types/shared/maska.ts +0 -26
@@ -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_CALENDAR_APP = "evo-calendar";
2
- export declare const EVENTS_COLLECTION = "events";
@@ -1,7 +0,0 @@
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";
@@ -1,5 +0,0 @@
1
- //EVO Calendar Application Doc
2
- export const EVO_CALENDAR_APP = "evo-calendar";
3
-
4
- //Calendar collection
5
- export const EVENTS_COLLECTION = "events";
@@ -1,56 +0,0 @@
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
- }
@@ -1,37 +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.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 = {}));
@@ -1,69 +0,0 @@
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
- }
@@ -1,41 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,48 +0,0 @@
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
- }
@@ -1,50 +0,0 @@
1
- import { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
2
- 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";
3
- export declare enum ICRMDicAction {
4
- Create_dist_channel_type = "CREATE_DIST_CHANNEL_TYPE",
5
- Delete_dist_channel_type = "DELETE_DIST_CHANNEL_TYPE",
6
- Update_dist_channel_type = "UPDATE_DIST_CHANNEL_TYPE",
7
- Create_dist_channel = "CREATE_DIST_CHANNEL",
8
- Delete_dist_channel = "DELETE_DIST_CHANNEL",
9
- Update_dist_channel = "UPDATE_DIST_CHANNEL",
10
- Create_patient_source = "CREATE_LEADQUALIFICATION",
11
- Delete_patient_source = "DELETE_LEADQUALIFICATION",
12
- Update_patient_source = "UPDATE_LEADQUALIFICATION"
13
- }
14
- export interface IDistChannelType extends IFireDoc {
15
- code: string;
16
- name: string;
17
- tags?: ITag[] | null;
18
- [key: string]: unknown;
19
- }
20
- export interface IDistChannel extends IFireDoc {
21
- code: string;
22
- name: string;
23
- type_code?: string;
24
- type_name?: string;
25
- typeRef?: FirestoreDocumentReference;
26
- tags?: ITag[] | null;
27
- [key: string]: unknown;
28
- }
29
- export type QualificationFunnelLevel = "new" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
30
- export declare enum IQualificationFunnelLevel {
31
- New = "new",// Lead recém-captado
32
- TryingContact = "trying_contact",// Tentando contato inicial
33
- Contacted = "contacted",// Contato estabelecido
34
- Qualifying = "qualifying",// Em processo de qualificação
35
- Qualified = "qualified",// Lead com fit
36
- Disqualified = "disqualified",// Lead sem fit/interesse
37
- Presented = "presented",// Apresentação realizada
38
- ProposalSent = "proposal_sent",// Proposta enviada
39
- Negotiating = "negotiating",// Em negociação
40
- Won = "won",// Venda fechada
41
- Lost = "lost",// Venda perdida
42
- WaitingReply = "waiting_reply",// Aguardando retorno do lead
43
- FollowUpLater = "follow_up_later"
44
- }
45
- export interface IQualification extends IFireDoc {
46
- code: string;
47
- name: string;
48
- funnelLevel: QualificationFunnelLevel;
49
- [key: string]: unknown;
50
- }
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IQualificationFunnelLevel = exports.ICRMDicAction = void 0;
4
- var ICRMDicAction;
5
- (function (ICRMDicAction) {
6
- ICRMDicAction["Create_dist_channel_type"] = "CREATE_DIST_CHANNEL_TYPE";
7
- ICRMDicAction["Delete_dist_channel_type"] = "DELETE_DIST_CHANNEL_TYPE";
8
- ICRMDicAction["Update_dist_channel_type"] = "UPDATE_DIST_CHANNEL_TYPE";
9
- ICRMDicAction["Create_dist_channel"] = "CREATE_DIST_CHANNEL";
10
- ICRMDicAction["Delete_dist_channel"] = "DELETE_DIST_CHANNEL";
11
- ICRMDicAction["Update_dist_channel"] = "UPDATE_DIST_CHANNEL";
12
- ICRMDicAction["Create_patient_source"] = "CREATE_LEADQUALIFICATION";
13
- ICRMDicAction["Delete_patient_source"] = "DELETE_LEADQUALIFICATION";
14
- ICRMDicAction["Update_patient_source"] = "UPDATE_LEADQUALIFICATION";
15
- })(ICRMDicAction || (exports.ICRMDicAction = ICRMDicAction = {}));
16
- var IQualificationFunnelLevel;
17
- (function (IQualificationFunnelLevel) {
18
- IQualificationFunnelLevel["New"] = "new";
19
- IQualificationFunnelLevel["TryingContact"] = "trying_contact";
20
- IQualificationFunnelLevel["Contacted"] = "contacted";
21
- IQualificationFunnelLevel["Qualifying"] = "qualifying";
22
- IQualificationFunnelLevel["Qualified"] = "qualified";
23
- IQualificationFunnelLevel["Disqualified"] = "disqualified";
24
- IQualificationFunnelLevel["Presented"] = "presented";
25
- IQualificationFunnelLevel["ProposalSent"] = "proposal_sent";
26
- IQualificationFunnelLevel["Negotiating"] = "negotiating";
27
- IQualificationFunnelLevel["Won"] = "won";
28
- IQualificationFunnelLevel["Lost"] = "lost";
29
- IQualificationFunnelLevel["WaitingReply"] = "waiting_reply";
30
- IQualificationFunnelLevel["FollowUpLater"] = "follow_up_later";
31
- })(IQualificationFunnelLevel || (exports.IQualificationFunnelLevel = IQualificationFunnelLevel = {}));
@@ -1,84 +0,0 @@
1
- import { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
2
-
3
- // ----- CRMDicTypes
4
-
5
- // Enum for EvoCRM Dic Action - used in Dictionaries tracking
6
- export type CRMDicAction =
7
- | "CREATE_DIST_CHANNEL_TYPE"
8
- | "DELETE_DIST_CHANNEL_TYPE"
9
- | "UPDATE_DIST_CHANNEL_TYPE"
10
- | "CREATE_DIST_CHANNEL"
11
- | "DELETE_DIST_CHANNEL"
12
- | "UPDATE_DIST_CHANNEL"
13
- | "CREATE_LEADQUALIFICATION"
14
- | "DELETE_LEADQUALIFICATION"
15
- | "UPDATE_LEADQUALIFICATION";
16
-
17
- export enum ICRMDicAction {
18
- Create_dist_channel_type = "CREATE_DIST_CHANNEL_TYPE",
19
- Delete_dist_channel_type = "DELETE_DIST_CHANNEL_TYPE",
20
- Update_dist_channel_type = "UPDATE_DIST_CHANNEL_TYPE",
21
- Create_dist_channel = "CREATE_DIST_CHANNEL",
22
- Delete_dist_channel = "DELETE_DIST_CHANNEL",
23
- Update_dist_channel = "UPDATE_DIST_CHANNEL",
24
- Create_patient_source = "CREATE_LEADQUALIFICATION",
25
- Delete_patient_source = "DELETE_LEADQUALIFICATION",
26
- Update_patient_source = "UPDATE_LEADQUALIFICATION",
27
- }
28
-
29
- export interface IDistChannelType extends IFireDoc {
30
- code: string;
31
- name: string;
32
- tags?: ITag[] | null;
33
- [key: string]: unknown; // index signature
34
- }
35
-
36
- export interface IDistChannel extends IFireDoc {
37
- code: string;
38
- name: string;
39
- type_code?: string;
40
- type_name?: string;
41
- typeRef?: FirestoreDocumentReference;
42
- tags?: ITag[] | null;
43
- [key: string]: unknown; // index signature
44
- }
45
-
46
- // Funnel levels
47
- export type QualificationFunnelLevel =
48
- | "new"
49
- | "trying_contact"
50
- | "contacted"
51
- | "qualifying"
52
- | "qualified"
53
- | "disqualified"
54
- | "presented"
55
- | "proposal_sent"
56
- | "negotiating"
57
- | "won"
58
- | "lost"
59
- | "waiting_reply"
60
- | "follow_up_later";
61
-
62
- export enum IQualificationFunnelLevel {
63
- New = "new", // Lead recém-captado
64
- TryingContact = "trying_contact", // Tentando contato inicial
65
- Contacted = "contacted", // Contato estabelecido
66
- Qualifying = "qualifying", // Em processo de qualificação
67
- Qualified = "qualified", // Lead com fit
68
- Disqualified = "disqualified", // Lead sem fit/interesse
69
- Presented = "presented", // Apresentação realizada
70
- ProposalSent = "proposal_sent", // Proposta enviada
71
- Negotiating = "negotiating", // Em negociação
72
- Won = "won", // Venda fechada
73
- Lost = "lost", // Venda perdida
74
- WaitingReply = "waiting_reply", // Aguardando retorno do lead
75
- FollowUpLater = "follow_up_later", // Contato agendado para o futuro
76
- }
77
-
78
- // Lead qualification status
79
- export interface IQualification extends IFireDoc {
80
- code: string;
81
- name: string;
82
- funnelLevel: QualificationFunnelLevel;
83
- [key: string]: unknown; // index signature
84
- }
@@ -1,7 +0,0 @@
1
- export declare const EVO_CRM_APP = "evo-crm";
2
- export declare const LEADS = "leads";
3
- export declare const LEAD_QUALIFICATION = "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";
@@ -1,13 +0,0 @@
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 = 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 = "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";
@@ -1,13 +0,0 @@
1
- //EVO CRM Application Doc
2
- export const EVO_CRM_APP = "evo-crm";
3
-
4
- //dictionaries
5
- export const LEADS = "leads";
6
- export const LEAD_QUALIFICATION = "qualification";
7
-
8
- export const CHANNELS = "channels";
9
- export const DIST_CHANNEL_TYPES_COLLECTION = "dist-channel-types";
10
- export const DIST_CHANNELS_COLLECTION = "dist-channels";
11
-
12
- // Leads
13
- export const LEADS_COLLECTION = "leads";