evo360-types 1.1.16 → 1.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,11 +1,14 @@
1
- export * from "./types/shared/index";
2
- export * from "./types/evo-core/index";
3
- export * from "./types/evo-tenant/index";
4
- export * from "./types/evo-people/index";
5
- export * from "./types/evo-calendar/index";
6
- export * from "./types/evo-task/index";
7
- export * from "./types/evo-survey/index";
8
- export * from "./types/evo-meeting/index";
1
+ // @evo360/types/index.ts
2
+ export * from "./types/shared";
3
+ export * from "./types/evo-core";
4
+ export * from "./types/evo-tenant";
5
+ export * from "./types/evo-people";
6
+ export * from "./types/evo-calendar";
7
+ export * from "./types/evo-task";
8
+ export * from "./types/evo-survey";
9
+ export * from "./types/evo-meeting";
10
+
11
+ // zod schemas
9
12
  export * from "./apps/shared/zod-schemas";
10
13
  export * from "./apps/evo-core/zod-schemas";
11
14
  export * from "./apps/evo-tenant/zod-schemas";
package/dist/index.js CHANGED
@@ -15,14 +15,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  // @evo360/types/index.ts
18
- __exportStar(require("./types/shared/index"), exports);
19
- __exportStar(require("./types/evo-core/index"), exports);
20
- __exportStar(require("./types/evo-tenant/index"), exports);
21
- __exportStar(require("./types/evo-people/index"), exports);
22
- __exportStar(require("./types/evo-calendar/index"), exports);
23
- __exportStar(require("./types/evo-task/index"), exports);
24
- __exportStar(require("./types/evo-survey/index"), exports);
25
- __exportStar(require("./types/evo-meeting/index"), exports);
18
+ __exportStar(require("./types/shared"), exports);
19
+ __exportStar(require("./types/evo-core"), exports);
20
+ __exportStar(require("./types/evo-tenant"), exports);
21
+ __exportStar(require("./types/evo-people"), exports);
22
+ __exportStar(require("./types/evo-calendar"), exports);
23
+ __exportStar(require("./types/evo-task"), exports);
24
+ __exportStar(require("./types/evo-survey"), exports);
25
+ __exportStar(require("./types/evo-meeting"), exports);
26
26
  // zod schemas
27
27
  __exportStar(require("./apps/shared/zod-schemas"), exports);
28
28
  __exportStar(require("./apps/evo-core/zod-schemas"), exports);
package/dist/index.ts ADDED
@@ -0,0 +1,19 @@
1
+ // @evo360/types/index.ts
2
+ export * from "./types/shared";
3
+ export * from "./types/evo-core";
4
+ export * from "./types/evo-tenant";
5
+ export * from "./types/evo-people";
6
+ export * from "./types/evo-calendar";
7
+ export * from "./types/evo-task";
8
+ export * from "./types/evo-survey";
9
+ export * from "./types/evo-meeting";
10
+
11
+ // zod schemas
12
+ export * from "./apps/shared/zod-schemas";
13
+ export * from "./apps/evo-core/zod-schemas";
14
+ export * from "./apps/evo-tenant/zod-schemas";
15
+ export * from "./apps/evo-people/zod-schemas";
16
+ export * from "./apps/evo-calendar/zod-schemas";
17
+ export * from "./apps/evo-task/zod-schemas";
18
+ export * from "./apps/evo-survey/zod-schemas";
19
+ export * from "./apps/evo-meeting/zod-schemas";
@@ -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,61 @@
1
+ export * from "./fb_collections";
2
+ import { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
+ import { MeetingType } from "../evo-meeting";
4
+
5
+ // ----- CalendarTypes
6
+ // Enum for Event Instance Status
7
+ export type EventStatus = "scheduled" | "completed" | "cancelled";
8
+ export enum IEventStatus {
9
+ Scheduled = "scheduled", // The event is scheduled and upcoming
10
+ Completed = "completed", // The event has been completed
11
+ Cancelled = "cancelled", // The event has been cancelled
12
+ }
13
+
14
+ // Enum for Event Types
15
+ export type EventType = "event" | "meeting" | "workshop" | "other";
16
+ export enum IEventType {
17
+ Event = "event", // A general event type
18
+ Meeting = "meeting", // A meeting event
19
+ Workshop = "workshop", // A workshop event
20
+ Other = "other", // Any other type of event
21
+ }
22
+
23
+ // Interface for Meeting within a Event (meetingTasks)
24
+ export interface IEventMeeting {
25
+ meetingRef?: FirestoreDocumentReference; // Reference to the original task
26
+ type: MeetingType; // Type of meeting
27
+ readonly task_count?: number;
28
+ readonly talkingPoints_count?: number;
29
+ tags?: ITag[];
30
+ }
31
+
32
+ // Interface for Recurring Events (recurringEvents)
33
+ export interface IRecurringEvent extends IFireDoc {
34
+ title: string; // Title of the meeting
35
+ description?: string; // Optional description of the meeting
36
+ creatorName: string; // Name of the user who created the event
37
+ creatorRef?: FirestoreDocumentReference; // reference to the user who created the event
38
+ participants: string[]; // List of participant IDs
39
+ startDate: Date; // Start date and time of the first meeting
40
+ endDate?: Date; // Optional end date and time of the recurring meeting
41
+ type: EventType; // Type of event
42
+ rrule: string; // Recurrence rule in RRULE format
43
+ exceptions: string[]; // List of instance IDs that represent exceptions
44
+ }
45
+
46
+ // Interface for Event Instances (eventInstances)
47
+ export interface IEvent extends IFireDoc {
48
+ recurringRef?: FirestoreDocumentReference; // Reference to the recurring event rule (optional)
49
+ title: string; // Title of the event
50
+ description?: string; // Optional description of the event
51
+ creatorName: string; // Name of the user who created the event
52
+ creatorRef?: FirestoreDocumentReference; // reference to the user who created the event
53
+ participantNames?: string[]; // List of participant names
54
+ participantRefs?: FirestoreDocumentReference[]; // List of participant references
55
+ startDate: Date; // Start date and time of the event
56
+ endDate?: Date; // Optional end date and time of the event
57
+ type: EventType; // Type of event
58
+ tags?: ITag[];
59
+ meeting?: IEventMeeting;
60
+ status: EventStatus; // Status of the event
61
+ }
@@ -0,0 +1,48 @@
1
+ import { 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,5 @@
1
+ //EVO Meeting Application Doc
2
+ export const EVO_MEETING_APP = "evo-meeting";
3
+
4
+ //meetings collection
5
+ export const MEETINGS_COLLECTION = "meetings";
@@ -0,0 +1,69 @@
1
+ export * from "./fb_collections";
2
+ import { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
+ import { TaskPriority, TaskStatus } from "../evo-task";
4
+
5
+ // ----- MeetingTypes
6
+ export type MeetingType =
7
+ | "regular"
8
+ | "oneonone"
9
+ | "feedback"
10
+ | "presentation"
11
+ | "other";
12
+ export enum IMeetingType {
13
+ Regular = "regular", // A regular meeting
14
+ OneOnOne = "oneonone", // A one-on-one meeting
15
+ Feedback = "feedback", // A feedback session
16
+ Presentation = "presentation", // A presentation meeting
17
+ Other = "other", // Any other type of meeting
18
+ }
19
+
20
+ // Interface for Event within a Meeting (meetingEvent)
21
+ export interface IMeetingEvent {
22
+ eventRef?: FirestoreDocumentReference; // Reference to the original event
23
+ participantNames: string[]; // List of participant names
24
+ participantRefs?: FirestoreDocumentReference[]; // List of participant references
25
+ startDate: Date; // Start date and time of the event
26
+ endDate?: Date; // Optional end date and time of the event
27
+ }
28
+
29
+ // Interface for Tasks within a Meeting (meetingTasks)
30
+ export interface IMeetingTask {
31
+ taskRef?: FirestoreDocumentReference; // Reference to the original task
32
+ title: string; // Title (copied from the original task)
33
+ status: TaskStatus; // Status (can be updated independently from the original task)
34
+ priority?: TaskPriority; // Priority (copied from the original task)
35
+ assigneeName?: string; // Name of the assignee (copied from the original task)
36
+ }
37
+
38
+ // Interface for Talking Point Templates (talkingPointTemplates)
39
+ export interface ITalkingPointTemplate extends IFireDoc {
40
+ title: string; // Title of the talking point
41
+ description?: string; // Optional detailed description
42
+ tags?: ITag[]; // Optional tags for categorization
43
+ }
44
+
45
+ // Interface for Talking Points within a Meeting (meetingTalkingPoints)
46
+ export interface IMeetingTalkingPoint {
47
+ templateRef?: FirestoreDocumentReference; // Reference to the original template
48
+ title: string; // Title (can be copied from the template or edited)
49
+ description?: string; // Description (can be copied from the template or edited)
50
+ tags?: ITag[]; // Tags (can be copied from the template or edited)
51
+ discussed: boolean; // Flag to indicate if the talking point was discussed
52
+ notes?: string; // Optional field for notes taken during the discussion
53
+ assigneeName?: string; // Name of the assignee (optional)
54
+ assigneeRef?: FirestoreDocumentReference; // Reference to the assignee (optional)
55
+ }
56
+
57
+ // Interface for Meeting Instances (meetingInstances)
58
+ export interface IMeeting extends IFireDoc {
59
+ title: string; // Title of the meeting
60
+ description?: string; // Optional description of the meeting
61
+ creatorName: string; // Name of the user who created the meeting
62
+ creatorRef?: FirestoreDocumentReference; // reference to the user who created the meeting
63
+ event: IMeetingEvent;
64
+ type: MeetingType; // Type of meeting
65
+ tasks?: IMeetingTask[];
66
+ talkingPoints?: IMeetingTalkingPoint[];
67
+ tags?: ITag[];
68
+ [key: string]: unknown; // index signature
69
+ }
@@ -0,0 +1,8 @@
1
+ //EVO People Application Doc
2
+ export const EVO_PEOPLE_APP = "evo-people";
3
+
4
+ //people
5
+ export const COMPANIES_COLLECTION = "companies";
6
+ export const DEPARTMENTS_COLLECTION = "departments";
7
+ export const OFFICES_COLLECTION = "offices";
8
+ export const EMPLOYEES_COLLECTION = "employees";
@@ -0,0 +1,96 @@
1
+ export * from "./fb_collections";
2
+ import {
3
+ FirestoreDocumentReference,
4
+ IFireDoc,
5
+ IGeoPoint,
6
+ ITag,
7
+ } from "../shared";
8
+
9
+ // ----- PeopleTypes
10
+ // PeopleTypes
11
+ export type EmployeeStatus = "active" | "inactive" | "draft";
12
+ export enum IEmployeeStatus {
13
+ Active = "active",
14
+ Inactive = "inactive",
15
+ Draft = "draft",
16
+ }
17
+
18
+ export interface IEmployeeCounters {
19
+ active: number;
20
+ inactive: number;
21
+ draft: number;
22
+ deleted: number;
23
+ total: number;
24
+ }
25
+
26
+ export interface IProfile extends IFireDoc {
27
+ display_name: string;
28
+ last_name?: string | null;
29
+ first_name?: string | null;
30
+ gender?: string | null;
31
+ birthdate?: Date | null;
32
+ photo_ref?: string | null;
33
+ photo_url?: string | null;
34
+ }
35
+
36
+ export interface IEmployee extends IProfile {
37
+ employee_id?: string | null;
38
+ type?: string | null;
39
+ job_title?: string | null;
40
+ status?: EmployeeStatus;
41
+ company_name?: string | null;
42
+ companyRef?: FirestoreDocumentReference;
43
+ date_joining?: Date | null;
44
+ reporting_to_name?: string | null;
45
+ reporting_toRef?: FirestoreDocumentReference;
46
+ department_name?: string | null;
47
+ departmentRef?: FirestoreDocumentReference;
48
+ office_name?: string | null;
49
+ officeRef?: FirestoreDocumentReference;
50
+ work_email?: string | null;
51
+ work_phone?: string | null;
52
+ work_mobile?: string | null;
53
+ tags?: ITag[];
54
+ userRef?: FirestoreDocumentReference;
55
+ [key: string]: unknown; // index signature
56
+ }
57
+
58
+ export interface IDepartment extends IFireDoc {
59
+ code: string;
60
+ name: string;
61
+ lead_name?: string | null;
62
+ leadRef?: FirestoreDocumentReference;
63
+ parent_department_name?: string | null;
64
+ parent_departmentRef?: FirestoreDocumentReference | null;
65
+ readonly employee_counters?: IEmployeeCounters;
66
+ tags?: ITag[];
67
+ }
68
+
69
+ export interface IOffice extends IFireDoc {
70
+ code: string;
71
+ name: string;
72
+ timezone?: string | null;
73
+ company_name?: string | null;
74
+ companyRef?: FirestoreDocumentReference;
75
+ lead_name?: string | null;
76
+ leadRef?: FirestoreDocumentReference;
77
+ address_line1?: string;
78
+ address_line2?: string;
79
+ address_city?: string;
80
+ address_state?: string;
81
+ address_zip?: string;
82
+ address_country?: string;
83
+ address_geo?: IGeoPoint;
84
+ readonly employee_counters?: IEmployeeCounters;
85
+ tags?: ITag[];
86
+ }
87
+
88
+ export interface ICompany extends IFireDoc {
89
+ code: string;
90
+ name: string;
91
+ lead_name?: string | null;
92
+ leadRef?: FirestoreDocumentReference;
93
+ readonly employee_counters?: IEmployeeCounters;
94
+ tags?: ITag[];
95
+ [key: string]: unknown; // index signature
96
+ }
@@ -0,0 +1,12 @@
1
+ //EVO Surveys Application Doc
2
+ export const EVO_SURVEY_APP = "evo-survey";
3
+
4
+ //surveys
5
+ export const SURVEYS_COLLECTION = "surveys";
6
+ export const SURVEY_SECTIONS_COLLECTION = "sections";
7
+ export const SURVEY_QUESTIONS_COLLECTION = "questions";
8
+
9
+ //deployments
10
+ export const SURVEY_DEPLOYMENTS_COLLECTION = "deployments";
11
+ export const SURVEY_DEPLOYMENTS_INVITATIONS_COLLECTION = "invitations";
12
+ export const SURVEY_DEPLOYMENTS_SUBMISSIONS_COLLECTION = "submissions";
@@ -0,0 +1,156 @@
1
+ export * from "./fb_collections";
2
+ import { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
+ // ---- Survey
4
+ //Survey
5
+ export type SurveyPermission = "private" | "company" | "public";
6
+ export enum ISurveyPermission {
7
+ Private = "private",
8
+ Company = "company",
9
+ Public = "public",
10
+ }
11
+
12
+ export type SurveyType = "360" | "general";
13
+ export enum ISurveyType {
14
+ Review360 = "360",
15
+ General = "general",
16
+ }
17
+
18
+ export type SurveyStatus = "draft" | "ready" | "archived";
19
+ export enum ISurveyStatus {
20
+ Draft = "draft",
21
+ Ready = "ready",
22
+ Archived = "archived",
23
+ }
24
+
25
+ export type SurveyQuestionType = "scale" | "essay" | "options";
26
+ export enum ISurveyQuestionType {
27
+ Scale = "scale",
28
+ Essay = "essay",
29
+ Options = "options",
30
+ }
31
+
32
+ export interface IQuestion extends IFireDoc {
33
+ surveyId: string;
34
+ sectionId: string;
35
+ statement?: string;
36
+ description?: string;
37
+ description_text?: string;
38
+ order?: number;
39
+ required?: boolean;
40
+ tags?: ITag[];
41
+ type?: ISurveyQuestionType;
42
+ }
43
+
44
+ export interface IQuestionScale extends IQuestion {
45
+ type: ISurveyQuestionType.Scale;
46
+ scale_min?: number;
47
+ scale_max?: number;
48
+ }
49
+
50
+ export enum IQuestionScaleDefaultsScales {
51
+ Min = 0,
52
+ Max = 5,
53
+ }
54
+
55
+ export interface IQuestionEssay extends IQuestion {
56
+ type: ISurveyQuestionType.Essay;
57
+ length_min?: number;
58
+ length_max?: number;
59
+ }
60
+ export enum IQuestionEssayDefaultsLength {
61
+ Min = 0,
62
+ Max = 1024,
63
+ }
64
+
65
+ export interface IQuestionMultipleChoice extends IQuestion {
66
+ type: ISurveyQuestionType.Options;
67
+ options: string[];
68
+ allow_multiple_selections?: boolean;
69
+ }
70
+
71
+ export interface ISection extends IFireDoc {
72
+ surveyId: string;
73
+ name: string;
74
+ description: string;
75
+ order: number;
76
+ questions: (IQuestionEssay | IQuestionScale | IQuestionMultipleChoice)[];
77
+ readonly question_count?: number;
78
+ }
79
+
80
+ export interface ISurvey extends IFireDoc {
81
+ name: string;
82
+ description?: string;
83
+ status: SurveyStatus;
84
+ permission: SurveyPermission;
85
+ tags?: ITag[];
86
+ type: SurveyType;
87
+ sections?: ISection[];
88
+ readonly section_count?: number;
89
+ readonly question_count?: number;
90
+ }
91
+
92
+ export type SurveyDeploymentStatus =
93
+ | "draft"
94
+ | "open"
95
+ | "closed"
96
+ | "in_progress"
97
+ | "paused";
98
+ export enum ISurveyDeploymentStatus {
99
+ Draft = "draft", //A aplicação está sendo criada e ainda não foi aberta.
100
+ Open = "open", //A aplicação está aberta e disponível para submissões.
101
+ Closed = "closed", //A aplicação está fechada e não aceita mais submissões.
102
+ InProgress = "in_progress", // A aplicação está em andamento, mas ainda não foi fechada para novas
103
+ Paused = "paused", // A aplicação está pausada, está sem receber submissões temporariamente
104
+ }
105
+
106
+ export type SurveySubmissionStatus =
107
+ | "not_started"
108
+ | "in_progress"
109
+ | "completed";
110
+ export enum ISurveySubmissionStatus {
111
+ NotStarted = "not_started", //A submissão ainda não foi iniciada.
112
+ InProgress = "in_progress", //A submissão está em andamento.
113
+ Completed = "completed", //A submissão foi concluída.
114
+ }
115
+
116
+ export interface ISurveyResponse extends IFireDoc {
117
+ question_id: string;
118
+ answer: string | string[]; // String para resposta única, array de strings para múltipla escolha
119
+ date: Date;
120
+ }
121
+
122
+ export interface ISurveySubmission extends IFireDoc {
123
+ deploymentId?: string;
124
+ submission_date?: Date | null;
125
+ status: SurveySubmissionStatus;
126
+ modified_after_completion: boolean;
127
+ inviteeId?: string;
128
+ user_name?: string;
129
+ responses?: ISurveyResponse[];
130
+ }
131
+
132
+ export interface ISurveyInvitee extends IFireDoc {
133
+ name: string;
134
+ email?: string;
135
+ phone?: string;
136
+ responded: boolean;
137
+ }
138
+
139
+ export interface ISurveyDeployment extends IFireDoc {
140
+ name: string;
141
+ description?: string;
142
+ surveySourceRef?: FirestoreDocumentReference;
143
+ survey?: ISurvey | null;
144
+ start_date: Date | null;
145
+ end_date: Date | null;
146
+ status: SurveyDeploymentStatus;
147
+ allow_edit_answers: boolean;
148
+ allow_partial_submission: boolean;
149
+ invitees?: ISurveyInvitee[] | null;
150
+ readonly invitee_count?: number;
151
+ submissions?: ISurveySubmission[] | null;
152
+ readonly submission_count?: number;
153
+ readonly submission_not_started_count?: number;
154
+ readonly submission_in_progress_count?: number;
155
+ readonly submission_completed_count?: number;
156
+ }
@@ -0,0 +1,5 @@
1
+ //EVO Task Application Doc
2
+ export const EVO_TASK_APP = "evo-task";
3
+
4
+ //Tasks collection
5
+ export const TASKS_COLLECTION = "tasks";
@@ -0,0 +1,42 @@
1
+ export * from "./fb_collections";
2
+ import { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
+ // ----- TaskTypes
4
+ // Enum for Task Instance Status
5
+
6
+ export type TaskStatus =
7
+ | "not_started"
8
+ | "in_progress"
9
+ | "completed"
10
+ | "cancelled"
11
+ | "on_hold";
12
+
13
+ export enum ITaskStatus {
14
+ NotStarted = "not_started",
15
+ InProgress = "in_progress",
16
+ Completed = "completed",
17
+ Cancelled = "cancelled",
18
+ OnHold = "on_hold",
19
+ }
20
+
21
+ // Interface for Task Priority
22
+ export type TaskPriority = "low" | "medium" | "high";
23
+ export enum ITaskPriority {
24
+ Low = "low",
25
+ Medium = "medium",
26
+ High = "high",
27
+ }
28
+
29
+ // Interface for Task Instances (taskInstances)
30
+ export interface ITask extends IFireDoc {
31
+ title: string; // Title of the task
32
+ description?: string; // Optional description of the task
33
+ creatorName: string; // Name of the user who created the task
34
+ creatorRef?: FirestoreDocumentReference; // reference to the user who created the task
35
+ startDate: Date; // Start date and time of the task
36
+ dueDate?: Date; // Optional due date and time of the task
37
+ status: TaskStatus; // Status of the task
38
+ priority?: TaskPriority; // Priority of the task (optional)
39
+ assigneeName?: string; // Name of the assignee (optional)
40
+ assigneeRef?: FirestoreDocumentReference; // Reference to the assignee (optional)
41
+ tags?: ITag[];
42
+ }
@@ -0,0 +1,2 @@
1
+ //tenants
2
+ export const TENANTS_COLLECTION = "tenants";
@@ -0,0 +1,27 @@
1
+ export * from "./fb_collections";
2
+ import { FirestoreDocumentReference, IFireDoc } from "../shared";
3
+
4
+ // ----- TenantTypes
5
+ //TenantTypes
6
+ export type TenantLanguage = "ptBR" | "en";
7
+ export enum ITenantLanguage {
8
+ ptBR = "ptBR",
9
+ en = "en",
10
+ }
11
+
12
+ export type TenantStatus = "draft" | "published" | "archived";
13
+ export enum ITenantStatus {
14
+ Draft = "draft",
15
+ Published = "published",
16
+ Archived = "archived",
17
+ }
18
+
19
+ export interface ITenant extends IFireDoc {
20
+ name: string;
21
+ url_alias: string;
22
+ date_format: "DD/MM/YYYY hh:mm:ss" | string;
23
+ language: TenantLanguage | "ptBR";
24
+ status: TenantStatus | "draft";
25
+ timezone: "(GMT +00:00) Lisbon" | string;
26
+ created_by?: FirestoreDocumentReference;
27
+ }
@@ -0,0 +1,14 @@
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";
@@ -0,0 +1,32 @@
1
+ export * from "./fb_collections";
2
+
3
+ // ----- FirestoreTypes
4
+ // Definir o tipo unificado para DocumentReference
5
+ export interface FirestoreDocumentReference<> {
6
+ id: string;
7
+ path: string;
8
+ // Outros métodos comuns que você utiliza
9
+ }
10
+
11
+ export interface IGeoPoint {
12
+ latitude: number;
13
+ longitude: number;
14
+ }
15
+
16
+ //fsTypes
17
+ export interface IFireDoc extends Record<string, unknown> {
18
+ readonly id: string;
19
+ readonly ref?: FirestoreDocumentReference;
20
+ tenant: string;
21
+ model_ver?: number;
22
+ created_at?: Date | null;
23
+ updated_at?: Date | null;
24
+ deleted_at?: Date | null;
25
+ }
26
+
27
+ // ----- TagTypes
28
+ export interface ITag {
29
+ name: string;
30
+ color?: string;
31
+ hidden: boolean;
32
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.1.16",
3
+ "version": "1.1.18",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -8,8 +8,8 @@
8
8
  "dist"
9
9
  ],
10
10
  "scripts": {
11
- "build-bkp": "tsc && copyfiles -u 1 src/**/*.d.ts dist",
12
- "build": "tsc",
11
+ "build": "tsc && copyfiles -u 1 src/**/*.ts dist",
12
+ "build-bkp": "tsc",
13
13
  "compile": "tsc"
14
14
  },
15
15
  "homepage": "https://www.darvist.com",