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,70 +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.ISurveySubmissionStatus = exports.ISurveyDeploymentStatus = exports.ISurveyQuestionType = exports.ISurveyStatus = exports.ISurveyType = exports.ISurveyPermission = exports.ISurveyDeploymentAction = exports.ISurveyAction = void 0;
18
- __exportStar(require("./fb_collections"), exports);
19
- var ISurveyAction;
20
- (function (ISurveyAction) {
21
- ISurveyAction["Create_survey"] = "CREATE_SURVEY";
22
- ISurveyAction["Delete_survey"] = "DELETE_SURVEY";
23
- ISurveyAction["Update_survey"] = "UPDATE_SURVEY";
24
- })(ISurveyAction || (exports.ISurveyAction = ISurveyAction = {}));
25
- var ISurveyDeploymentAction;
26
- (function (ISurveyDeploymentAction) {
27
- ISurveyDeploymentAction["Create_survey_deployment"] = "CREATE_SURVEY_DEPLOYMENT";
28
- ISurveyDeploymentAction["Delete_survey_deployment"] = "DELETE_SURVEY_DEPLOYMENT";
29
- ISurveyDeploymentAction["Update_survey_deployment"] = "UPDATE_SURVEY_DEPLOYMENT";
30
- })(ISurveyDeploymentAction || (exports.ISurveyDeploymentAction = ISurveyDeploymentAction = {}));
31
- var ISurveyPermission;
32
- (function (ISurveyPermission) {
33
- ISurveyPermission["Private"] = "private";
34
- ISurveyPermission["Tenant"] = "tenant";
35
- ISurveyPermission["Public"] = "public";
36
- })(ISurveyPermission || (exports.ISurveyPermission = ISurveyPermission = {}));
37
- var ISurveyType;
38
- (function (ISurveyType) {
39
- ISurveyType["Review360"] = "360";
40
- ISurveyType["General"] = "general";
41
- })(ISurveyType || (exports.ISurveyType = ISurveyType = {}));
42
- var ISurveyStatus;
43
- (function (ISurveyStatus) {
44
- ISurveyStatus["Draft"] = "draft";
45
- ISurveyStatus["Ready"] = "ready";
46
- ISurveyStatus["Archived"] = "archived";
47
- })(ISurveyStatus || (exports.ISurveyStatus = ISurveyStatus = {}));
48
- var ISurveyQuestionType;
49
- (function (ISurveyQuestionType) {
50
- ISurveyQuestionType["Scale"] = "scale";
51
- ISurveyQuestionType["Essay"] = "essay";
52
- ISurveyQuestionType["Options"] = "options";
53
- ISurveyQuestionType["Date"] = "date";
54
- ISurveyQuestionType["Phone"] = "phone";
55
- ISurveyQuestionType["Mask"] = "mask";
56
- })(ISurveyQuestionType || (exports.ISurveyQuestionType = ISurveyQuestionType = {}));
57
- var ISurveyDeploymentStatus;
58
- (function (ISurveyDeploymentStatus) {
59
- ISurveyDeploymentStatus["Draft"] = "draft";
60
- ISurveyDeploymentStatus["Open"] = "open";
61
- ISurveyDeploymentStatus["Closed"] = "closed";
62
- ISurveyDeploymentStatus["InProgress"] = "in_progress";
63
- ISurveyDeploymentStatus["Paused"] = "paused";
64
- })(ISurveyDeploymentStatus || (exports.ISurveyDeploymentStatus = ISurveyDeploymentStatus = {}));
65
- var ISurveySubmissionStatus;
66
- (function (ISurveySubmissionStatus) {
67
- ISurveySubmissionStatus["NotStarted"] = "not_started";
68
- ISurveySubmissionStatus["InProgress"] = "in_progress";
69
- ISurveySubmissionStatus["Completed"] = "completed";
70
- })(ISurveySubmissionStatus || (exports.ISurveySubmissionStatus = ISurveySubmissionStatus = {}));
@@ -1,224 +0,0 @@
1
- export * from "./fb_collections";
2
-
3
- import type { IFireDoc, ITag } from "../shared";
4
- import type { MaskOptions } from "../shared/maska";
5
-
6
- // ---- Survey
7
-
8
- // Enum for Survey Action - used in Activities tracking
9
- export type SurveyAction = "CREATE_SURVEY" | "DELETE_SURVEY" | "UPDATE_SURVEY";
10
- export enum ISurveyAction {
11
- Create_survey = "CREATE_SURVEY",
12
- Delete_survey = "DELETE_SURVEY",
13
- Update_survey = "UPDATE_SURVEY",
14
- }
15
- // Enum for Survey Deployment Action - used in Activities tracking
16
- export type SurveyDeploymentAction =
17
- | "CREATE_SURVEY_DEPLOYMENT"
18
- | "DELETE_SURVEY_DEPLOYMENT"
19
- | "UPDATE_SURVEY_DEPLOYMENT";
20
- export enum ISurveyDeploymentAction {
21
- Create_survey_deployment = "CREATE_SURVEY_DEPLOYMENT",
22
- Delete_survey_deployment = "DELETE_SURVEY_DEPLOYMENT",
23
- Update_survey_deployment = "UPDATE_SURVEY_DEPLOYMENT",
24
- }
25
-
26
- //Survey
27
- export type SurveyPermission = "private" | "tenant" | "public";
28
- export enum ISurveyPermission {
29
- Private = "private",
30
- Tenant = "tenant",
31
- Public = "public",
32
- }
33
-
34
- export type SurveyType = "360" | "general";
35
- export enum ISurveyType {
36
- Review360 = "360",
37
- General = "general",
38
- }
39
-
40
- export type SurveyStatus = "draft" | "ready" | "archived";
41
- export enum ISurveyStatus {
42
- Draft = "draft",
43
- Ready = "ready",
44
- Archived = "archived",
45
- }
46
-
47
- export type SurveyQuestionType =
48
- | "scale"
49
- | "essay"
50
- | "options"
51
- | "date"
52
- | "phone"
53
- | "mask";
54
- export enum ISurveyQuestionType {
55
- Scale = "scale",
56
- Essay = "essay",
57
- Options = "options",
58
- Date = "date",
59
- Phone = "phone",
60
- Mask = "mask",
61
- }
62
-
63
- export interface ISectionCounters {
64
- deleted: number;
65
- total: number;
66
- }
67
-
68
- export interface IQuestionCounters {
69
- deleted: number;
70
- total: number;
71
- }
72
-
73
- export interface ISurveyQuestion extends IFireDoc {
74
- surveyId: string;
75
- sectionId: string;
76
- statement?: string;
77
- description?: string;
78
- description_text?: string;
79
- order?: number;
80
- required?: boolean;
81
- tags?: ITag[] | null;
82
- }
83
-
84
- export interface ISurveyQuestionScale extends ISurveyQuestion {
85
- type: "scale";
86
- template?: string;
87
- scale_min?: number;
88
- scale_max?: number;
89
- }
90
-
91
- export interface ISurveyQuestionEssay extends ISurveyQuestion {
92
- type: "essay";
93
- multiple_lines?: boolean;
94
- length_min?: number;
95
- length_max?: number;
96
- }
97
-
98
- export interface ISurveyQuestionMultipleChoice extends ISurveyQuestion {
99
- type: "options";
100
- options: string[];
101
- allow_multiple_selections?: boolean;
102
- }
103
-
104
- export interface ISurveyQuestionDate extends ISurveyQuestion {
105
- type: "date";
106
- date_min?: Date | null;
107
- date_max?: Date | null;
108
- }
109
- export interface ISurveyQuestionPhone extends ISurveyQuestion {
110
- type: "phone";
111
- maska?: MaskOptions;
112
- }
113
-
114
- export interface ISurveyQuestionMask extends ISurveyQuestion {
115
- type: "mask";
116
- maska?: MaskOptions;
117
- }
118
-
119
- export interface ISurveySection extends IFireDoc {
120
- surveyId: string;
121
- name: string;
122
- description?: string;
123
- order?: number;
124
- questions?: (
125
- | ISurveyQuestionEssay
126
- | ISurveyQuestionScale
127
- | ISurveyQuestionMultipleChoice
128
- | ISurveyQuestionDate
129
- | ISurveyQuestionPhone
130
- | ISurveyQuestionMask
131
- )[];
132
- readonly question_counters?: IQuestionCounters;
133
- }
134
-
135
- export interface ISurvey extends IFireDoc {
136
- name: string;
137
- description?: string;
138
- status?: SurveyStatus;
139
- permission?: SurveyPermission;
140
- type: SurveyType;
141
- sections?: ISurveySection[];
142
- tags?: ITag[] | null;
143
- readonly section_counters?: ISectionCounters;
144
- readonly question_counters?: IQuestionCounters;
145
- }
146
-
147
- export type SurveyDeploymentStatus =
148
- | "draft"
149
- | "open"
150
- | "closed"
151
- | "in_progress"
152
- | "paused";
153
- export enum ISurveyDeploymentStatus {
154
- Draft = "draft", //A aplicação está sendo criada e ainda não foi aberta.
155
- Open = "open", //A aplicação está aberta e disponível para submissões.
156
- Closed = "closed", //A aplicação está fechada e não aceita mais submissões.
157
- InProgress = "in_progress", // A aplicação está em andamento, mas ainda não foi fechada para novas
158
- Paused = "paused", // A aplicação está pausada, está sem receber submissões temporariamente
159
- }
160
-
161
- export type SurveySubmissionStatus =
162
- | "not_started"
163
- | "in_progress"
164
- | "completed";
165
- export enum ISurveySubmissionStatus {
166
- NotStarted = "not_started", //A submissão ainda não foi iniciada.
167
- InProgress = "in_progress", //A submissão está em andamento.
168
- Completed = "completed", //A submissão foi concluída.
169
- }
170
-
171
- export interface ISurveyResponse extends IFireDoc {
172
- surveyId: string;
173
- responses?: IQuestionResponse[];
174
- }
175
-
176
- export interface IQuestionResponse {
177
- questionId: string;
178
- answer: string | string[] | null;
179
- date?: Date;
180
- }
181
-
182
- export interface ISurveySubmission extends IFireDoc {
183
- deploymentId?: string;
184
- submission_date?: Date;
185
- status: SurveySubmissionStatus;
186
- inviteeId?: string;
187
- user_name?: string;
188
- survey_responses?: ISurveyResponse[];
189
- readonly modified_after_completion?: boolean;
190
- readonly answer_count?: number;
191
- readonly submission_count?: number;
192
- }
193
-
194
- export interface ISurveyInvitee extends IFireDoc {
195
- invitedUserId?: string;
196
- name: string;
197
- email?: string;
198
- phone?: string;
199
- photo_url?: string | null;
200
- description?: string;
201
- isAnonymous?: boolean;
202
- submissionId?: string;
203
- submission_status?: SurveySubmissionStatus;
204
- }
205
-
206
- export interface ISurveyDeployment extends IFireDoc {
207
- name: string;
208
- description?: string;
209
- surveys?: ISurvey[] | null;
210
- start_date: Date | null;
211
- end_date: Date | null;
212
- status: SurveyDeploymentStatus;
213
- allow_edit_answers: boolean;
214
- allow_partial_submission: boolean;
215
- readonly section_count?: number;
216
- readonly question_count?: number;
217
- invitees?: ISurveyInvitee[] | null;
218
- readonly invitee_count?: number;
219
- submissions?: ISurveySubmission[] | null;
220
- readonly submission_count?: number;
221
- readonly submission_not_started_count?: number;
222
- readonly submission_in_progress_count?: number;
223
- readonly submission_completed_count?: number;
224
- }
@@ -1,2 +0,0 @@
1
- export declare const EVO_TASK_APP = "evo-task";
2
- export declare const TASKS_COLLECTION = "tasks";
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TASKS_COLLECTION = exports.EVO_TASK_APP = void 0;
4
- //EVO Task Application Doc
5
- exports.EVO_TASK_APP = "evo-task";
6
- //Tasks collection
7
- exports.TASKS_COLLECTION = "tasks";
@@ -1,5 +0,0 @@
1
- //EVO Task Application Doc
2
- export const EVO_TASK_APP = "evo-task";
3
-
4
- //Tasks collection
5
- export const TASKS_COLLECTION = "tasks";
@@ -1,35 +0,0 @@
1
- export * from "./fb_collections";
2
- import type { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
- export type TaskAction = "CREATE_TASK" | "DELETE_TASK" | "UPDATE_TASK";
4
- export declare enum ITaskAction {
5
- Create_task = "CREATE_TASK",
6
- Delete_task = "DELETE_TASK",
7
- Update_task = "UPDATE_TASK"
8
- }
9
- export type TaskStatus = "not_started" | "in_progress" | "completed" | "cancelled" | "on_hold";
10
- export declare enum ITaskStatus {
11
- NotStarted = "not_started",
12
- InProgress = "in_progress",
13
- Completed = "completed",
14
- Cancelled = "cancelled",
15
- OnHold = "on_hold"
16
- }
17
- export type TaskPriority = "low" | "medium" | "high";
18
- export declare enum ITaskPriority {
19
- Low = "low",
20
- Medium = "medium",
21
- High = "high"
22
- }
23
- export interface ITask extends IFireDoc {
24
- title: string;
25
- description?: string;
26
- creatorName: string;
27
- creatorRef?: FirestoreDocumentReference;
28
- startDate: Date;
29
- dueDate?: Date;
30
- status: TaskStatus;
31
- priority?: TaskPriority;
32
- assigneeName?: string;
33
- assigneeRef?: FirestoreDocumentReference;
34
- tags?: ITag[] | null;
35
- }
@@ -1,38 +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.ITaskPriority = exports.ITaskStatus = exports.ITaskAction = void 0;
18
- __exportStar(require("./fb_collections"), exports);
19
- var ITaskAction;
20
- (function (ITaskAction) {
21
- ITaskAction["Create_task"] = "CREATE_TASK";
22
- ITaskAction["Delete_task"] = "DELETE_TASK";
23
- ITaskAction["Update_task"] = "UPDATE_TASK";
24
- })(ITaskAction || (exports.ITaskAction = ITaskAction = {}));
25
- var ITaskStatus;
26
- (function (ITaskStatus) {
27
- ITaskStatus["NotStarted"] = "not_started";
28
- ITaskStatus["InProgress"] = "in_progress";
29
- ITaskStatus["Completed"] = "completed";
30
- ITaskStatus["Cancelled"] = "cancelled";
31
- ITaskStatus["OnHold"] = "on_hold";
32
- })(ITaskStatus || (exports.ITaskStatus = ITaskStatus = {}));
33
- var ITaskPriority;
34
- (function (ITaskPriority) {
35
- ITaskPriority["Low"] = "low";
36
- ITaskPriority["Medium"] = "medium";
37
- ITaskPriority["High"] = "high";
38
- })(ITaskPriority || (exports.ITaskPriority = ITaskPriority = {}));
@@ -1,51 +0,0 @@
1
- export * from "./fb_collections";
2
- import type { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
- // ----- TaskTypes
4
-
5
- // Enum for Task Action - used in Activities tracking
6
- export type TaskAction = "CREATE_TASK" | "DELETE_TASK" | "UPDATE_TASK";
7
- export enum ITaskAction {
8
- Create_task = "CREATE_TASK",
9
- Delete_task = "DELETE_TASK",
10
- Update_task = "UPDATE_TASK",
11
- }
12
-
13
- // Enum for Task Instance Status
14
-
15
- export type TaskStatus =
16
- | "not_started"
17
- | "in_progress"
18
- | "completed"
19
- | "cancelled"
20
- | "on_hold";
21
-
22
- export enum ITaskStatus {
23
- NotStarted = "not_started",
24
- InProgress = "in_progress",
25
- Completed = "completed",
26
- Cancelled = "cancelled",
27
- OnHold = "on_hold",
28
- }
29
-
30
- // Interface for Task Priority
31
- export type TaskPriority = "low" | "medium" | "high";
32
- export enum ITaskPriority {
33
- Low = "low",
34
- Medium = "medium",
35
- High = "high",
36
- }
37
-
38
- // Interface for Task Instances (taskInstances)
39
- export interface ITask extends IFireDoc {
40
- title: string; // Title of the task
41
- description?: string; // Optional description of the task
42
- creatorName: string; // Name of the user who created the task
43
- creatorRef?: FirestoreDocumentReference; // reference to the user who created the task
44
- startDate: Date; // Start date and time of the task
45
- dueDate?: Date; // Optional due date and time of the task
46
- status: TaskStatus; // Status of the task
47
- priority?: TaskPriority; // Priority of the task (optional)
48
- assigneeName?: string; // Name of the assignee (optional)
49
- assigneeRef?: FirestoreDocumentReference; // Reference to the assignee (optional)
50
- tags?: ITag[] | null;
51
- }
@@ -1 +0,0 @@
1
- export declare const TENANTS_COLLECTION = "tenants";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TENANTS_COLLECTION = void 0;
4
- //tenants
5
- exports.TENANTS_COLLECTION = "tenants";
@@ -1,2 +0,0 @@
1
- //tenants
2
- export const TENANTS_COLLECTION = "tenants";
@@ -1,28 +0,0 @@
1
- export * from "./fb_collections";
2
- import type { FirestoreDocumentReference, IFireDoc } from "../shared";
3
- export type TenantAction = "CREATE_TENANT" | "DELETE_TENANT" | "UPDATE_TENANT";
4
- export declare enum ITenantAction {
5
- Create_tenant = "CREATE_TENANT",
6
- Delete_tenant = "DELETE_TENANT",
7
- Update_tenant = "UPDATE_TENANT"
8
- }
9
- export type TenantLanguage = "ptBR" | "en";
10
- export declare enum ITenantLanguage {
11
- ptBR = "ptBR",
12
- en = "en"
13
- }
14
- export type TenantStatus = "draft" | "published" | "archived";
15
- export declare enum ITenantStatus {
16
- Draft = "draft",
17
- Published = "published",
18
- Archived = "archived"
19
- }
20
- export interface ITenant extends IFireDoc {
21
- name: string;
22
- url_alias: string;
23
- date_format?: string;
24
- language?: TenantLanguage;
25
- status: TenantStatus;
26
- timezone?: string;
27
- created_by?: FirestoreDocumentReference;
28
- }
@@ -1,35 +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.ITenantStatus = exports.ITenantLanguage = exports.ITenantAction = void 0;
18
- __exportStar(require("./fb_collections"), exports);
19
- var ITenantAction;
20
- (function (ITenantAction) {
21
- ITenantAction["Create_tenant"] = "CREATE_TENANT";
22
- ITenantAction["Delete_tenant"] = "DELETE_TENANT";
23
- ITenantAction["Update_tenant"] = "UPDATE_TENANT";
24
- })(ITenantAction || (exports.ITenantAction = ITenantAction = {}));
25
- var ITenantLanguage;
26
- (function (ITenantLanguage) {
27
- ITenantLanguage["ptBR"] = "ptBR";
28
- ITenantLanguage["en"] = "en";
29
- })(ITenantLanguage || (exports.ITenantLanguage = ITenantLanguage = {}));
30
- var ITenantStatus;
31
- (function (ITenantStatus) {
32
- ITenantStatus["Draft"] = "draft";
33
- ITenantStatus["Published"] = "published";
34
- ITenantStatus["Archived"] = "archived";
35
- })(ITenantStatus || (exports.ITenantStatus = ITenantStatus = {}));
@@ -1,35 +0,0 @@
1
- export * from "./fb_collections";
2
- import type { FirestoreDocumentReference, IFireDoc } from "../shared";
3
-
4
- // ----- TenantTypes
5
- // Enum for Tenant Action - used in Activities tracking
6
- export type TenantAction = "CREATE_TENANT" | "DELETE_TENANT" | "UPDATE_TENANT";
7
- export enum ITenantAction {
8
- Create_tenant = "CREATE_TENANT",
9
- Delete_tenant = "DELETE_TENANT",
10
- Update_tenant = "UPDATE_TENANT",
11
- }
12
-
13
- //TenantTypes
14
- export type TenantLanguage = "ptBR" | "en";
15
- export enum ITenantLanguage {
16
- ptBR = "ptBR",
17
- en = "en",
18
- }
19
-
20
- export type TenantStatus = "draft" | "published" | "archived";
21
- export enum ITenantStatus {
22
- Draft = "draft",
23
- Published = "published",
24
- Archived = "archived",
25
- }
26
-
27
- export interface ITenant extends IFireDoc {
28
- name: string;
29
- url_alias: string;
30
- date_format?: string;
31
- language?: TenantLanguage;
32
- status: TenantStatus;
33
- timezone?: string;
34
- created_by?: FirestoreDocumentReference;
35
- }
@@ -1,5 +0,0 @@
1
- export declare const APPS_COLLECTION = "apps";
2
- export declare const LOGINS_COLLECTION = "logins";
3
- export declare const USERS_COLLECTION = "users";
4
- export declare const CONFIG_COLLECTION = "config";
5
- export declare const ACTIONS_COLLECTION = "actions";
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ACTIONS_COLLECTION = exports.CONFIG_COLLECTION = exports.USERS_COLLECTION = exports.LOGINS_COLLECTION = exports.APPS_COLLECTION = void 0;
4
- //Applications
5
- exports.APPS_COLLECTION = "apps";
6
- //logins
7
- exports.LOGINS_COLLECTION = "logins";
8
- //users
9
- exports.USERS_COLLECTION = "users";
10
- //config
11
- exports.CONFIG_COLLECTION = "config";
12
- //actions
13
- exports.ACTIONS_COLLECTION = "actions";
@@ -1,14 +0,0 @@
1
- //Applications
2
- export const APPS_COLLECTION = "apps";
3
-
4
- //logins
5
- export const LOGINS_COLLECTION = "logins";
6
-
7
- //users
8
- export const USERS_COLLECTION = "users";
9
-
10
- //config
11
- export const CONFIG_COLLECTION = "config";
12
-
13
- //actions
14
- export const ACTIONS_COLLECTION = "actions";
@@ -1,52 +0,0 @@
1
- export * from "./fb_collections";
2
- export interface FirestoreDocumentReference {
3
- id: string;
4
- path: string;
5
- }
6
- export interface IGeoPoint {
7
- latitude: number;
8
- longitude: number;
9
- }
10
- export interface IFireDoc extends Record<string, unknown> {
11
- readonly id: string;
12
- readonly ref?: FirestoreDocumentReference;
13
- tenant: string;
14
- model_ver?: number;
15
- version?: number;
16
- created_at?: Date | null;
17
- updated_at?: Date | null;
18
- deleted_at?: Date | null;
19
- }
20
- export interface ITag {
21
- name: string;
22
- color?: string;
23
- hidden: boolean;
24
- }
25
- export interface IContact {
26
- email?: string | null;
27
- phone?: string | null;
28
- mobile?: string | null;
29
- }
30
- export interface IAddress {
31
- name?: string;
32
- kind?: string;
33
- line1?: string;
34
- line2?: string;
35
- city?: string;
36
- state?: string;
37
- zip?: string;
38
- country?: string;
39
- geo?: IGeoPoint;
40
- }
41
- export type EvoApp = "evo-activity" | "evo-calendar" | "evo-core" | "evo-meeting" | "evo-people" | "evo-med" | "evo-survey" | "evo-task" | "evo-tenant";
42
- export declare enum IEvoApp {
43
- EvoActivity = "evo-activity",
44
- EvoCalendar = "evo-calendar",
45
- EvoCore = "evo-core",
46
- EvoMeeting = "evo-meeting",
47
- EvoPeople = "evo-people",
48
- EvoMed = "evo-med",
49
- EvoSurvey = "evo-survey",
50
- EvoTask = "evo-task",
51
- EvoTenant = "evo-tenant"
52
- }
@@ -1,30 +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.IEvoApp = void 0;
18
- __exportStar(require("./fb_collections"), exports);
19
- var IEvoApp;
20
- (function (IEvoApp) {
21
- IEvoApp["EvoActivity"] = "evo-activity";
22
- IEvoApp["EvoCalendar"] = "evo-calendar";
23
- IEvoApp["EvoCore"] = "evo-core";
24
- IEvoApp["EvoMeeting"] = "evo-meeting";
25
- IEvoApp["EvoPeople"] = "evo-people";
26
- IEvoApp["EvoMed"] = "evo-med";
27
- IEvoApp["EvoSurvey"] = "evo-survey";
28
- IEvoApp["EvoTask"] = "evo-task";
29
- IEvoApp["EvoTenant"] = "evo-tenant";
30
- })(IEvoApp || (exports.IEvoApp = IEvoApp = {}));