evo360-types 1.1.21 → 1.1.22
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/apps/evo-activity/zod-schemas.d.ts +78 -0
- package/dist/apps/evo-activity/zod-schemas.js +39 -0
- package/dist/apps/evo-activity/zod-schemas.ts +42 -0
- package/dist/apps/evo-calendar/zod-schemas.d.ts +3 -2
- package/dist/apps/evo-calendar/zod-schemas.js +10 -5
- package/dist/apps/evo-calendar/zod-schemas.ts +10 -4
- package/dist/apps/evo-meeting/zod-schemas.d.ts +1 -0
- package/dist/apps/evo-meeting/zod-schemas.js +6 -1
- package/dist/apps/evo-meeting/zod-schemas.ts +6 -0
- package/dist/apps/evo-people/zod-schemas.d.ts +1 -0
- package/dist/apps/evo-people/zod-schemas.js +19 -1
- package/dist/apps/evo-people/zod-schemas.ts +19 -0
- package/dist/apps/evo-survey/zod-schemas.d.ts +2 -0
- package/dist/apps/evo-survey/zod-schemas.js +12 -1
- package/dist/apps/evo-survey/zod-schemas.ts +13 -0
- package/dist/apps/evo-task/zod-schemas.d.ts +1 -0
- package/dist/apps/evo-task/zod-schemas.js +6 -1
- package/dist/apps/evo-task/zod-schemas.ts +6 -0
- package/dist/apps/evo-tenant/zod-schemas.d.ts +1 -0
- package/dist/apps/evo-tenant/zod-schemas.js +6 -1
- package/dist/apps/evo-tenant/zod-schemas.ts +6 -0
- package/dist/apps/shared/zod-schemas.d.ts +1 -0
- package/dist/apps/shared/zod-schemas.js +12 -1
- package/dist/apps/shared/zod-schemas.ts +12 -0
- package/dist/types/evo-activity/fb_collections.d.ts +2 -0
- package/dist/types/evo-activity/fb_collections.js +7 -0
- package/dist/types/evo-activity/fb_collections.ts +5 -0
- package/dist/types/evo-activity/index.d.ts +28 -0
- package/dist/types/evo-activity/index.js +26 -0
- package/dist/types/evo-activity/index.ts +44 -0
- package/dist/types/evo-calendar/index.d.ts +10 -4
- package/dist/types/evo-calendar/index.js +14 -8
- package/dist/types/evo-calendar/index.ts +12 -4
- package/dist/types/evo-meeting/index.d.ts +6 -0
- package/dist/types/evo-meeting/index.js +7 -1
- package/dist/types/evo-meeting/index.ts +11 -0
- package/dist/types/evo-people/index.d.ts +19 -0
- package/dist/types/evo-people/index.js +20 -1
- package/dist/types/evo-people/index.ts +39 -0
- package/dist/types/evo-survey/index.d.ts +12 -0
- package/dist/types/evo-survey/index.js +13 -1
- package/dist/types/evo-survey/index.ts +19 -0
- package/dist/types/evo-task/index.d.ts +6 -0
- package/dist/types/evo-task/index.js +7 -1
- package/dist/types/evo-task/index.ts +9 -0
- package/dist/types/evo-tenant/index.d.ts +6 -0
- package/dist/types/evo-tenant/index.js +7 -1
- package/dist/types/evo-tenant/index.ts +8 -0
- package/dist/types/shared/index.d.ts +11 -0
- package/dist/types/shared/index.js +12 -0
- package/dist/types/shared/index.ts +22 -0
- package/package.json +1 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const zReadStatusSchema: z.ZodEnum<["unread", "read", "archived", "dismissed", "snoozed"]>;
|
|
3
|
+
export declare const zActivitySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
ref: z.ZodAny;
|
|
6
|
+
tenant: z.ZodString;
|
|
7
|
+
model_ver: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
9
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
10
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
11
|
+
}, {
|
|
12
|
+
created_by: z.ZodAny;
|
|
13
|
+
created_to: z.ZodAny;
|
|
14
|
+
creatorName: z.ZodOptional<z.ZodString>;
|
|
15
|
+
title: z.ZodOptional<z.ZodString>;
|
|
16
|
+
description: z.ZodOptional<z.ZodString>;
|
|
17
|
+
app: z.ZodEnum<["evo-activity", "evo-calendar", "evo-core", "evo-meeting", "evo-people", "evo-survey", "evo-task", "evo-tenant"]>;
|
|
18
|
+
type: z.ZodUnion<[z.ZodEnum<["CREATE_EVENT", "DELETE_EVENT", "UPDATE_EVENT"]>, z.ZodEnum<["CREATE_MEETING", "DELETE_MEETING", "UPDATE_MEETING"]>, z.ZodEnum<["CREATE_COMPANY", "DELETE_COMPANY", "UPDATE_COMPANY", "CREATE_OFFICE", "DELETE_OFFICE", "UPDATE_OFFICE", "CREATE_DEPARTMENT", "DELETE_DEPARTMENT", "UPDATE_DEPARTMENT", "CREATE_EMPLOYEE", "DELETE_EMPLOYEE", "UPDATE_EMPLOYEE", "UPDATE_EMPLOYEE_PHOTO", "UPDATE_MY_PROFILE", "UPDATE_MY_PHOTO", "UPDATE_MY_PASSWORD"]>, z.ZodEnum<["CREATE_SURVEY", "DELETE_SURVEY", "UPDATE_SURVEY"]>, z.ZodEnum<["CREATE_TASK", "DELETE_TASK", "UPDATE_TASK"]>, z.ZodEnum<["CREATE_TENANT", "DELETE_TENANT", "UPDATE_TENANT"]>]>;
|
|
19
|
+
readStatus: z.ZodEnum<["unread", "read", "archived", "dismissed", "snoozed"]>;
|
|
20
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
21
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
color: z.ZodOptional<z.ZodString>;
|
|
24
|
+
hidden: z.ZodBoolean;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
name: string;
|
|
27
|
+
hidden: boolean;
|
|
28
|
+
color?: string | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
name: string;
|
|
31
|
+
hidden: boolean;
|
|
32
|
+
color?: string | undefined;
|
|
33
|
+
}>, "many">>;
|
|
34
|
+
}>, "strip", z.ZodTypeAny, {
|
|
35
|
+
id: string;
|
|
36
|
+
tenant: string;
|
|
37
|
+
type: "CREATE_TENANT" | "DELETE_TENANT" | "UPDATE_TENANT" | "CREATE_COMPANY" | "DELETE_COMPANY" | "UPDATE_COMPANY" | "CREATE_OFFICE" | "DELETE_OFFICE" | "UPDATE_OFFICE" | "CREATE_DEPARTMENT" | "DELETE_DEPARTMENT" | "UPDATE_DEPARTMENT" | "CREATE_EMPLOYEE" | "DELETE_EMPLOYEE" | "UPDATE_EMPLOYEE" | "UPDATE_EMPLOYEE_PHOTO" | "UPDATE_MY_PROFILE" | "UPDATE_MY_PHOTO" | "UPDATE_MY_PASSWORD" | "CREATE_TASK" | "DELETE_TASK" | "UPDATE_TASK" | "CREATE_MEETING" | "DELETE_MEETING" | "UPDATE_MEETING" | "CREATE_EVENT" | "DELETE_EVENT" | "UPDATE_EVENT" | "CREATE_SURVEY" | "DELETE_SURVEY" | "UPDATE_SURVEY";
|
|
38
|
+
app: "evo-activity" | "evo-calendar" | "evo-core" | "evo-meeting" | "evo-people" | "evo-survey" | "evo-task" | "evo-tenant";
|
|
39
|
+
readStatus: "archived" | "unread" | "read" | "dismissed" | "snoozed";
|
|
40
|
+
ref?: any;
|
|
41
|
+
model_ver?: number | undefined;
|
|
42
|
+
created_at?: Date | null | undefined;
|
|
43
|
+
updated_at?: Date | null | undefined;
|
|
44
|
+
deleted_at?: Date | null | undefined;
|
|
45
|
+
created_by?: any;
|
|
46
|
+
tags?: {
|
|
47
|
+
name: string;
|
|
48
|
+
hidden: boolean;
|
|
49
|
+
color?: string | undefined;
|
|
50
|
+
}[] | undefined;
|
|
51
|
+
title?: string | undefined;
|
|
52
|
+
description?: string | undefined;
|
|
53
|
+
creatorName?: string | undefined;
|
|
54
|
+
created_to?: any;
|
|
55
|
+
metadata?: Record<string, any> | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
id: string;
|
|
58
|
+
tenant: string;
|
|
59
|
+
type: "CREATE_TENANT" | "DELETE_TENANT" | "UPDATE_TENANT" | "CREATE_COMPANY" | "DELETE_COMPANY" | "UPDATE_COMPANY" | "CREATE_OFFICE" | "DELETE_OFFICE" | "UPDATE_OFFICE" | "CREATE_DEPARTMENT" | "DELETE_DEPARTMENT" | "UPDATE_DEPARTMENT" | "CREATE_EMPLOYEE" | "DELETE_EMPLOYEE" | "UPDATE_EMPLOYEE" | "UPDATE_EMPLOYEE_PHOTO" | "UPDATE_MY_PROFILE" | "UPDATE_MY_PHOTO" | "UPDATE_MY_PASSWORD" | "CREATE_TASK" | "DELETE_TASK" | "UPDATE_TASK" | "CREATE_MEETING" | "DELETE_MEETING" | "UPDATE_MEETING" | "CREATE_EVENT" | "DELETE_EVENT" | "UPDATE_EVENT" | "CREATE_SURVEY" | "DELETE_SURVEY" | "UPDATE_SURVEY";
|
|
60
|
+
app: "evo-activity" | "evo-calendar" | "evo-core" | "evo-meeting" | "evo-people" | "evo-survey" | "evo-task" | "evo-tenant";
|
|
61
|
+
readStatus: "archived" | "unread" | "read" | "dismissed" | "snoozed";
|
|
62
|
+
ref?: any;
|
|
63
|
+
model_ver?: number | undefined;
|
|
64
|
+
created_at?: Date | null | undefined;
|
|
65
|
+
updated_at?: Date | null | undefined;
|
|
66
|
+
deleted_at?: Date | null | undefined;
|
|
67
|
+
created_by?: any;
|
|
68
|
+
tags?: {
|
|
69
|
+
name: string;
|
|
70
|
+
hidden: boolean;
|
|
71
|
+
color?: string | undefined;
|
|
72
|
+
}[] | undefined;
|
|
73
|
+
title?: string | undefined;
|
|
74
|
+
description?: string | undefined;
|
|
75
|
+
creatorName?: string | undefined;
|
|
76
|
+
created_to?: any;
|
|
77
|
+
metadata?: Record<string, any> | undefined;
|
|
78
|
+
}>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.zActivitySchema = exports.zReadStatusSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_schemas_1 = require("../shared/zod-schemas");
|
|
6
|
+
const zod_schemas_2 = require("../evo-calendar/zod-schemas");
|
|
7
|
+
const zod_schemas_3 = require("../evo-meeting/zod-schemas");
|
|
8
|
+
const zod_schemas_4 = require("../evo-people/zod-schemas");
|
|
9
|
+
const zod_schemas_5 = require("../evo-survey/zod-schemas");
|
|
10
|
+
const zod_schemas_6 = require("../evo-task/zod-schemas");
|
|
11
|
+
const zod_schemas_7 = require("../evo-tenant/zod-schemas");
|
|
12
|
+
// Enum for activity read status
|
|
13
|
+
exports.zReadStatusSchema = zod_1.z.enum([
|
|
14
|
+
"unread",
|
|
15
|
+
"read",
|
|
16
|
+
"archived",
|
|
17
|
+
"dismissed",
|
|
18
|
+
"snoozed",
|
|
19
|
+
]);
|
|
20
|
+
exports.zActivitySchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
|
|
21
|
+
.extend({
|
|
22
|
+
created_by: zod_1.z.any(),
|
|
23
|
+
created_to: zod_1.z.any(),
|
|
24
|
+
creatorName: zod_1.z.string().optional(),
|
|
25
|
+
title: zod_1.z.string().max(255).optional(),
|
|
26
|
+
description: zod_1.z.string().max(512).optional(),
|
|
27
|
+
app: zod_schemas_1.zEvoAppSchema,
|
|
28
|
+
type: zod_1.z.union([
|
|
29
|
+
zod_schemas_2.zCalendarActionSchema,
|
|
30
|
+
zod_schemas_3.zMeetingActionSchema,
|
|
31
|
+
zod_schemas_4.zPeopleActionSchema,
|
|
32
|
+
zod_schemas_5.zSurveyActionSchema,
|
|
33
|
+
zod_schemas_6.zTaskActionSchema,
|
|
34
|
+
zod_schemas_7.zTenantActionSchema,
|
|
35
|
+
]),
|
|
36
|
+
readStatus: exports.zReadStatusSchema,
|
|
37
|
+
metadata: zod_1.z.record(zod_1.z.any()).optional(),
|
|
38
|
+
tags: zod_1.z.array(zod_schemas_1.zTagSchema).optional(),
|
|
39
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import {
|
|
3
|
+
zEvoAppSchema,
|
|
4
|
+
zFireDocSchema,
|
|
5
|
+
zTagSchema,
|
|
6
|
+
} from "../shared/zod-schemas";
|
|
7
|
+
import { zCalendarActionSchema } from "../evo-calendar/zod-schemas";
|
|
8
|
+
import { zMeetingActionSchema } from "../evo-meeting/zod-schemas";
|
|
9
|
+
import { zPeopleActionSchema } from "../evo-people/zod-schemas";
|
|
10
|
+
import { zSurveyActionSchema } from "../evo-survey/zod-schemas";
|
|
11
|
+
import { zTaskActionSchema } from "../evo-task/zod-schemas";
|
|
12
|
+
import { zTenantActionSchema } from "../evo-tenant/zod-schemas";
|
|
13
|
+
|
|
14
|
+
// Enum for activity read status
|
|
15
|
+
export const zReadStatusSchema = z.enum([
|
|
16
|
+
"unread",
|
|
17
|
+
"read",
|
|
18
|
+
"archived",
|
|
19
|
+
"dismissed",
|
|
20
|
+
"snoozed",
|
|
21
|
+
]);
|
|
22
|
+
|
|
23
|
+
export const zActivitySchema = zFireDocSchema // Extend from FireDocSchema
|
|
24
|
+
.extend({
|
|
25
|
+
created_by: z.any(),
|
|
26
|
+
created_to: z.any(),
|
|
27
|
+
creatorName: z.string().optional(),
|
|
28
|
+
title: z.string().max(255).optional(),
|
|
29
|
+
description: z.string().max(512).optional(),
|
|
30
|
+
app: zEvoAppSchema,
|
|
31
|
+
type: z.union([
|
|
32
|
+
zCalendarActionSchema,
|
|
33
|
+
zMeetingActionSchema,
|
|
34
|
+
zPeopleActionSchema,
|
|
35
|
+
zSurveyActionSchema,
|
|
36
|
+
zTaskActionSchema,
|
|
37
|
+
zTenantActionSchema,
|
|
38
|
+
]),
|
|
39
|
+
readStatus: zReadStatusSchema,
|
|
40
|
+
metadata: z.record(z.any()).optional(),
|
|
41
|
+
tags: z.array(zTagSchema).optional(),
|
|
42
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const zCalendarActionSchema: z.ZodEnum<["CREATE_EVENT", "DELETE_EVENT", "UPDATE_EVENT"]>;
|
|
3
|
+
export declare const zCalendarEventStatusSchema: z.ZodEnum<["scheduled", "completed", "cancelled"]>;
|
|
4
|
+
export declare const zCalendarEventTypeSchema: z.ZodEnum<["event", "meeting", "workshop", "other"]>;
|
|
4
5
|
export declare const zEventSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
5
6
|
id: z.ZodString;
|
|
6
7
|
ref: z.ZodAny;
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zEventSchema = exports.
|
|
3
|
+
exports.zEventSchema = exports.zCalendarEventTypeSchema = exports.zCalendarEventStatusSchema = exports.zCalendarActionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../shared/zod-schemas");
|
|
6
|
+
exports.zCalendarActionSchema = zod_1.z.enum([
|
|
7
|
+
"CREATE_EVENT",
|
|
8
|
+
"DELETE_EVENT",
|
|
9
|
+
"UPDATE_EVENT",
|
|
10
|
+
]);
|
|
6
11
|
// Enum for Event Instance Status
|
|
7
|
-
exports.
|
|
12
|
+
exports.zCalendarEventStatusSchema = zod_1.z.enum([
|
|
8
13
|
"scheduled",
|
|
9
14
|
"completed",
|
|
10
15
|
"cancelled",
|
|
11
16
|
]);
|
|
12
|
-
exports.
|
|
17
|
+
exports.zCalendarEventTypeSchema = zod_1.z.enum([
|
|
13
18
|
"event",
|
|
14
19
|
"meeting",
|
|
15
20
|
"workshop",
|
|
@@ -21,7 +26,7 @@ exports.zEventSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
|
|
|
21
26
|
description: zod_1.z.string().optional(),
|
|
22
27
|
creatorName: zod_1.z.string(),
|
|
23
28
|
creatorRef: zod_1.z.any(),
|
|
24
|
-
eventType: exports.
|
|
25
|
-
eventStatus: exports.
|
|
29
|
+
eventType: exports.zCalendarEventTypeSchema,
|
|
30
|
+
eventStatus: exports.zCalendarEventStatusSchema,
|
|
26
31
|
tags: zod_1.z.array(zod_schemas_1.zTagSchema).optional(),
|
|
27
32
|
});
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zFireDocSchema, zTagSchema } from "../shared/zod-schemas";
|
|
3
3
|
|
|
4
|
+
export const zCalendarActionSchema = z.enum([
|
|
5
|
+
"CREATE_EVENT",
|
|
6
|
+
"DELETE_EVENT",
|
|
7
|
+
"UPDATE_EVENT",
|
|
8
|
+
]);
|
|
9
|
+
|
|
4
10
|
// Enum for Event Instance Status
|
|
5
|
-
export const
|
|
11
|
+
export const zCalendarEventStatusSchema = z.enum([
|
|
6
12
|
"scheduled",
|
|
7
13
|
"completed",
|
|
8
14
|
"cancelled",
|
|
9
15
|
]);
|
|
10
16
|
|
|
11
|
-
export const
|
|
17
|
+
export const zCalendarEventTypeSchema = z.enum([
|
|
12
18
|
"event",
|
|
13
19
|
"meeting",
|
|
14
20
|
"workshop",
|
|
@@ -21,7 +27,7 @@ export const zEventSchema = zFireDocSchema // Extend from FireDocSchema
|
|
|
21
27
|
description: z.string().optional(),
|
|
22
28
|
creatorName: z.string(),
|
|
23
29
|
creatorRef: z.any(),
|
|
24
|
-
eventType:
|
|
25
|
-
eventStatus:
|
|
30
|
+
eventType: zCalendarEventTypeSchema,
|
|
31
|
+
eventStatus: zCalendarEventStatusSchema,
|
|
26
32
|
tags: z.array(zTagSchema).optional(),
|
|
27
33
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const zMeetingActionSchema: z.ZodEnum<["CREATE_MEETING", "DELETE_MEETING", "UPDATE_MEETING"]>;
|
|
2
3
|
export declare const zMeetingTypeSchema: z.ZodEnum<["regular", "oneonone", "feedback", "presentation", "other"]>;
|
|
3
4
|
export declare const zMeetingEventSchema: z.ZodObject<{
|
|
4
5
|
eventRef: z.ZodAny;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zMeetingSchema = exports.zMeetingTalkingPointSchema = exports.zMeetingTaskSchema = exports.zMeetingEventSchema = exports.zMeetingTypeSchema = void 0;
|
|
3
|
+
exports.zMeetingSchema = exports.zMeetingTalkingPointSchema = exports.zMeetingTaskSchema = exports.zMeetingEventSchema = exports.zMeetingTypeSchema = exports.zMeetingActionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../evo-task/zod-schemas");
|
|
6
6
|
const zod_schemas_2 = require("../shared/zod-schemas");
|
|
7
|
+
exports.zMeetingActionSchema = zod_1.z.enum([
|
|
8
|
+
"CREATE_MEETING",
|
|
9
|
+
"DELETE_MEETING",
|
|
10
|
+
"UPDATE_MEETING",
|
|
11
|
+
]);
|
|
7
12
|
// Enum for Meeting Types
|
|
8
13
|
exports.zMeetingTypeSchema = zod_1.z.enum([
|
|
9
14
|
"regular",
|
|
@@ -5,6 +5,12 @@ import {
|
|
|
5
5
|
} from "../evo-task/zod-schemas";
|
|
6
6
|
import { zFireDocSchema, zTagSchema } from "../shared/zod-schemas";
|
|
7
7
|
|
|
8
|
+
export const zMeetingActionSchema = z.enum([
|
|
9
|
+
"CREATE_MEETING",
|
|
10
|
+
"DELETE_MEETING",
|
|
11
|
+
"UPDATE_MEETING",
|
|
12
|
+
]);
|
|
13
|
+
|
|
8
14
|
// Enum for Meeting Types
|
|
9
15
|
export const zMeetingTypeSchema = z.enum([
|
|
10
16
|
"regular",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const zPeopleActionSchema: z.ZodEnum<["CREATE_COMPANY", "DELETE_COMPANY", "UPDATE_COMPANY", "CREATE_OFFICE", "DELETE_OFFICE", "UPDATE_OFFICE", "CREATE_DEPARTMENT", "DELETE_DEPARTMENT", "UPDATE_DEPARTMENT", "CREATE_EMPLOYEE", "DELETE_EMPLOYEE", "UPDATE_EMPLOYEE", "UPDATE_EMPLOYEE_PHOTO", "UPDATE_MY_PROFILE", "UPDATE_MY_PHOTO", "UPDATE_MY_PASSWORD"]>;
|
|
2
3
|
export declare const zProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
4
|
id: z.ZodString;
|
|
4
5
|
ref: z.ZodAny;
|
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zCompanySchema = exports.zOfficeSchema = exports.zDepartmentSchema = exports.zEmployeeSchema = exports.zEmployeeStatusSchema = exports.zProfileSchema = void 0;
|
|
3
|
+
exports.zCompanySchema = exports.zOfficeSchema = exports.zDepartmentSchema = exports.zEmployeeSchema = exports.zEmployeeStatusSchema = exports.zProfileSchema = exports.zPeopleActionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../shared/zod-schemas");
|
|
6
|
+
exports.zPeopleActionSchema = zod_1.z.enum([
|
|
7
|
+
"CREATE_COMPANY",
|
|
8
|
+
"DELETE_COMPANY",
|
|
9
|
+
"UPDATE_COMPANY",
|
|
10
|
+
"CREATE_OFFICE",
|
|
11
|
+
"DELETE_OFFICE",
|
|
12
|
+
"UPDATE_OFFICE",
|
|
13
|
+
"CREATE_DEPARTMENT",
|
|
14
|
+
"DELETE_DEPARTMENT",
|
|
15
|
+
"UPDATE_DEPARTMENT",
|
|
16
|
+
"CREATE_EMPLOYEE",
|
|
17
|
+
"DELETE_EMPLOYEE",
|
|
18
|
+
"UPDATE_EMPLOYEE",
|
|
19
|
+
"UPDATE_EMPLOYEE_PHOTO",
|
|
20
|
+
"UPDATE_MY_PROFILE",
|
|
21
|
+
"UPDATE_MY_PHOTO",
|
|
22
|
+
"UPDATE_MY_PASSWORD",
|
|
23
|
+
]);
|
|
6
24
|
exports.zProfileSchema = zod_schemas_1.zFireDocSchema
|
|
7
25
|
.extend({
|
|
8
26
|
display_name: zod_1.z.string().min(1).max(255),
|
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zFireDocSchema, zTagSchema } from "../shared/zod-schemas";
|
|
3
3
|
|
|
4
|
+
export const zPeopleActionSchema = z.enum([
|
|
5
|
+
"CREATE_COMPANY",
|
|
6
|
+
"DELETE_COMPANY",
|
|
7
|
+
"UPDATE_COMPANY",
|
|
8
|
+
"CREATE_OFFICE",
|
|
9
|
+
"DELETE_OFFICE",
|
|
10
|
+
"UPDATE_OFFICE",
|
|
11
|
+
"CREATE_DEPARTMENT",
|
|
12
|
+
"DELETE_DEPARTMENT",
|
|
13
|
+
"UPDATE_DEPARTMENT",
|
|
14
|
+
"CREATE_EMPLOYEE",
|
|
15
|
+
"DELETE_EMPLOYEE",
|
|
16
|
+
"UPDATE_EMPLOYEE",
|
|
17
|
+
"UPDATE_EMPLOYEE_PHOTO",
|
|
18
|
+
"UPDATE_MY_PROFILE",
|
|
19
|
+
"UPDATE_MY_PHOTO",
|
|
20
|
+
"UPDATE_MY_PASSWORD",
|
|
21
|
+
]);
|
|
22
|
+
|
|
4
23
|
export const zProfileSchema = zFireDocSchema
|
|
5
24
|
.extend({
|
|
6
25
|
display_name: z.string().min(1).max(255),
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const zSurveyActionSchema: z.ZodEnum<["CREATE_SURVEY", "DELETE_SURVEY", "UPDATE_SURVEY"]>;
|
|
3
|
+
export declare const zSurveyDeploymentActionSchema: z.ZodEnum<["CREATE_SURVEY_DEPLOYMENT", "DELETE_SURVEY_DEPLOYMENT", "UPDATE_SURVEY_DEPLOYMENT"]>;
|
|
2
4
|
export declare const zSurveyPermissionSchema: z.ZodEnum<["private", "company", "public"]>;
|
|
3
5
|
export declare const zSurveyTypeSchema: z.ZodEnum<["360", "general"]>;
|
|
4
6
|
export declare const zSurveyStatusSchema: z.ZodEnum<["draft", "ready", "archived"]>;
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zSurveyDeploymentStatusSchema = exports.zSurveyStatusSchema = exports.zSurveyTypeSchema = exports.zSurveyPermissionSchema = void 0;
|
|
3
|
+
exports.zSurveyDeploymentStatusSchema = exports.zSurveyStatusSchema = exports.zSurveyTypeSchema = exports.zSurveyPermissionSchema = exports.zSurveyDeploymentActionSchema = exports.zSurveyActionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
exports.zSurveyActionSchema = zod_1.z.enum([
|
|
6
|
+
"CREATE_SURVEY",
|
|
7
|
+
"DELETE_SURVEY",
|
|
8
|
+
"UPDATE_SURVEY",
|
|
9
|
+
]);
|
|
10
|
+
// Enum for Survey Deployment Action - used in Activities tracking
|
|
11
|
+
exports.zSurveyDeploymentActionSchema = zod_1.z.enum([
|
|
12
|
+
"CREATE_SURVEY_DEPLOYMENT",
|
|
13
|
+
"DELETE_SURVEY_DEPLOYMENT",
|
|
14
|
+
"UPDATE_SURVEY_DEPLOYMENT",
|
|
15
|
+
]);
|
|
5
16
|
exports.zSurveyPermissionSchema = zod_1.z.enum(["private", "company", "public"]);
|
|
6
17
|
exports.zSurveyTypeSchema = zod_1.z.enum(["360", "general"]);
|
|
7
18
|
exports.zSurveyStatusSchema = zod_1.z.enum(["draft", "ready", "archived"]);
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
|
+
export const zSurveyActionSchema = z.enum([
|
|
4
|
+
"CREATE_SURVEY",
|
|
5
|
+
"DELETE_SURVEY",
|
|
6
|
+
"UPDATE_SURVEY",
|
|
7
|
+
]);
|
|
8
|
+
|
|
9
|
+
// Enum for Survey Deployment Action - used in Activities tracking
|
|
10
|
+
export const zSurveyDeploymentActionSchema = z.enum([
|
|
11
|
+
"CREATE_SURVEY_DEPLOYMENT",
|
|
12
|
+
"DELETE_SURVEY_DEPLOYMENT",
|
|
13
|
+
"UPDATE_SURVEY_DEPLOYMENT",
|
|
14
|
+
]);
|
|
15
|
+
|
|
3
16
|
export const zSurveyPermissionSchema = z.enum(["private", "company", "public"]);
|
|
4
17
|
|
|
5
18
|
export const zSurveyTypeSchema = z.enum(["360", "general"]);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const zTaskActionSchema: z.ZodEnum<["CREATE_TASK", "DELETE_TASK", "UPDATE_TASK"]>;
|
|
2
3
|
export declare const zTaskStatusSchema: z.ZodEnum<["not_started", "in_progress", "completed", "cancelled", "on_hold"]>;
|
|
3
4
|
export declare const zTaskPrioritySchema: z.ZodEnum<["low", "medium", "high"]>;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zTaskPrioritySchema = exports.zTaskStatusSchema = void 0;
|
|
3
|
+
exports.zTaskPrioritySchema = exports.zTaskStatusSchema = exports.zTaskActionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
exports.zTaskActionSchema = zod_1.z.enum([
|
|
6
|
+
"CREATE_TASK",
|
|
7
|
+
"DELETE_TASK",
|
|
8
|
+
"UPDATE_TASK",
|
|
9
|
+
]);
|
|
5
10
|
exports.zTaskStatusSchema = zod_1.z.enum([
|
|
6
11
|
"not_started",
|
|
7
12
|
"in_progress",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const zTenantActionSchema: z.ZodEnum<["CREATE_TENANT", "DELETE_TENANT", "UPDATE_TENANT"]>;
|
|
2
3
|
export declare const zTenantLanguageSchema: z.ZodEnum<["ptBR", "en"]>;
|
|
3
4
|
export declare const zTenantStatusSchema: z.ZodEnum<["draft", "published", "archived"]>;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zTenantStatusSchema = exports.zTenantLanguageSchema = void 0;
|
|
3
|
+
exports.zTenantStatusSchema = exports.zTenantLanguageSchema = exports.zTenantActionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
exports.zTenantActionSchema = zod_1.z.enum([
|
|
6
|
+
"CREATE_TENANT",
|
|
7
|
+
"DELETE_TENANT",
|
|
8
|
+
"UPDATE_TENANT",
|
|
9
|
+
]);
|
|
5
10
|
exports.zTenantLanguageSchema = zod_1.z.enum(["ptBR", "en"]);
|
|
6
11
|
exports.zTenantStatusSchema = zod_1.z.enum(["draft", "published", "archived"]);
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
|
+
export const zTenantActionSchema = z.enum([
|
|
4
|
+
"CREATE_TENANT",
|
|
5
|
+
"DELETE_TENANT",
|
|
6
|
+
"UPDATE_TENANT",
|
|
7
|
+
]);
|
|
8
|
+
|
|
3
9
|
export const zTenantLanguageSchema = z.enum(["ptBR", "en"]);
|
|
4
10
|
|
|
5
11
|
export const zTenantStatusSchema = z.enum(["draft", "published", "archived"]);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const zEvoAppSchema: z.ZodEnum<["evo-activity", "evo-calendar", "evo-core", "evo-meeting", "evo-people", "evo-survey", "evo-task", "evo-tenant"]>;
|
|
2
3
|
export declare const zFireDocSchema: z.ZodObject<{
|
|
3
4
|
id: z.ZodString;
|
|
4
5
|
ref: z.ZodAny;
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zTagSchema = exports.zFireDocSchema = void 0;
|
|
3
|
+
exports.zTagSchema = exports.zFireDocSchema = exports.zEvoAppSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
// Enum for activity read status
|
|
6
|
+
exports.zEvoAppSchema = zod_1.z.enum([
|
|
7
|
+
"evo-activity",
|
|
8
|
+
"evo-calendar",
|
|
9
|
+
"evo-core",
|
|
10
|
+
"evo-meeting",
|
|
11
|
+
"evo-people",
|
|
12
|
+
"evo-survey",
|
|
13
|
+
"evo-task",
|
|
14
|
+
"evo-tenant",
|
|
15
|
+
]);
|
|
5
16
|
// Custom validation for FirestoreDocumentReference
|
|
6
17
|
exports.zFireDocSchema = zod_1.z.object({
|
|
7
18
|
id: zod_1.z.string(),
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
|
+
// Enum for activity read status
|
|
4
|
+
export const zEvoAppSchema = z.enum([
|
|
5
|
+
"evo-activity",
|
|
6
|
+
"evo-calendar",
|
|
7
|
+
"evo-core",
|
|
8
|
+
"evo-meeting",
|
|
9
|
+
"evo-people",
|
|
10
|
+
"evo-survey",
|
|
11
|
+
"evo-task",
|
|
12
|
+
"evo-tenant",
|
|
13
|
+
]);
|
|
14
|
+
|
|
3
15
|
// Custom validation for FirestoreDocumentReference
|
|
4
16
|
export const zFireDocSchema = z.object({
|
|
5
17
|
id: z.string(),
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ACTIVITIES_COLLECTION = exports.EVO_ACTIVITY_APP = void 0;
|
|
4
|
+
//EVO Activity Application Doc
|
|
5
|
+
exports.EVO_ACTIVITY_APP = "evo-activity";
|
|
6
|
+
//Activities collection
|
|
7
|
+
exports.ACTIVITIES_COLLECTION = "activities";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from "./fb_collections";
|
|
2
|
+
import { CalendarAction } from "../evo-calendar";
|
|
3
|
+
import { MeetingAction } from "../evo-meeting";
|
|
4
|
+
import { PeopleAction } from "../evo-people";
|
|
5
|
+
import { SurveyAction, SurveyDeploymentAction } from "../evo-survey";
|
|
6
|
+
import { TaskAction } from "../evo-task";
|
|
7
|
+
import { TenantAction } from "../evo-tenant";
|
|
8
|
+
import { FirestoreDocumentReference, IEvoApp, IFireDoc, ITag } from "../shared";
|
|
9
|
+
export type ReadStatus = "unread" | "read" | "archived" | "dismissed" | "snoozed";
|
|
10
|
+
export declare enum IReadStatus {
|
|
11
|
+
Unread = "unread",
|
|
12
|
+
Read = "read",
|
|
13
|
+
Archived = "archived",
|
|
14
|
+
Dismissed = "dismissed",
|
|
15
|
+
Snoozed = "snoozed"
|
|
16
|
+
}
|
|
17
|
+
export interface IActivity extends IFireDoc {
|
|
18
|
+
created_by?: FirestoreDocumentReference;
|
|
19
|
+
created_to?: FirestoreDocumentReference;
|
|
20
|
+
creatorName?: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
app: IEvoApp;
|
|
24
|
+
type: CalendarAction | MeetingAction | PeopleAction | SurveyAction | SurveyDeploymentAction | TaskAction | TenantAction;
|
|
25
|
+
readStatus: ReadStatus;
|
|
26
|
+
metadata?: Record<string, any>;
|
|
27
|
+
tags?: ITag[];
|
|
28
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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.IReadStatus = void 0;
|
|
18
|
+
__exportStar(require("./fb_collections"), exports);
|
|
19
|
+
var IReadStatus;
|
|
20
|
+
(function (IReadStatus) {
|
|
21
|
+
IReadStatus["Unread"] = "unread";
|
|
22
|
+
IReadStatus["Read"] = "read";
|
|
23
|
+
IReadStatus["Archived"] = "archived";
|
|
24
|
+
IReadStatus["Dismissed"] = "dismissed";
|
|
25
|
+
IReadStatus["Snoozed"] = "snoozed";
|
|
26
|
+
})(IReadStatus = exports.IReadStatus || (exports.IReadStatus = {}));
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export * from "./fb_collections";
|
|
2
|
+
import { CalendarAction, ICalendarAction } from "../evo-calendar";
|
|
3
|
+
import { IMeetingAction, MeetingAction } from "../evo-meeting";
|
|
4
|
+
import { PeopleAction } from "../evo-people";
|
|
5
|
+
import { SurveyAction, SurveyDeploymentAction } from "../evo-survey";
|
|
6
|
+
import { TaskAction } from "../evo-task";
|
|
7
|
+
import { TenantAction } from "../evo-tenant";
|
|
8
|
+
import { FirestoreDocumentReference, IEvoApp, IFireDoc, ITag } from "../shared";
|
|
9
|
+
|
|
10
|
+
// Enum for Tenant Action - used in Activities tracking
|
|
11
|
+
export type ReadStatus =
|
|
12
|
+
| "unread"
|
|
13
|
+
| "read"
|
|
14
|
+
| "archived"
|
|
15
|
+
| "dismissed"
|
|
16
|
+
| "snoozed";
|
|
17
|
+
export enum IReadStatus {
|
|
18
|
+
Unread = "unread",
|
|
19
|
+
Read = "read",
|
|
20
|
+
Archived = "archived",
|
|
21
|
+
Dismissed = "dismissed",
|
|
22
|
+
Snoozed = "snoozed",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Interface for Event Instances (eventInstances)
|
|
26
|
+
export interface IActivity extends IFireDoc {
|
|
27
|
+
created_by?: FirestoreDocumentReference;
|
|
28
|
+
created_to?: FirestoreDocumentReference;
|
|
29
|
+
creatorName?: string;
|
|
30
|
+
title?: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
app: IEvoApp;
|
|
33
|
+
type:
|
|
34
|
+
| CalendarAction
|
|
35
|
+
| MeetingAction
|
|
36
|
+
| PeopleAction
|
|
37
|
+
| SurveyAction
|
|
38
|
+
| SurveyDeploymentAction
|
|
39
|
+
| TaskAction
|
|
40
|
+
| TenantAction;
|
|
41
|
+
readStatus: ReadStatus;
|
|
42
|
+
metadata?: Record<string, any>;
|
|
43
|
+
tags?: ITag[];
|
|
44
|
+
}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
export * from "./fb_collections";
|
|
2
2
|
import { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
|
|
3
3
|
import { 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
|
+
}
|
|
4
10
|
export type EventStatus = "scheduled" | "completed" | "cancelled";
|
|
5
11
|
export declare enum IEventStatus {
|
|
6
12
|
Scheduled = "scheduled",
|
|
7
13
|
Completed = "completed",
|
|
8
14
|
Cancelled = "cancelled"
|
|
9
15
|
}
|
|
10
|
-
export type
|
|
11
|
-
export declare enum
|
|
16
|
+
export type CalendarEventType = "event" | "meeting" | "workshop" | "other";
|
|
17
|
+
export declare enum ICalendarEventType {
|
|
12
18
|
Event = "event",
|
|
13
19
|
Meeting = "meeting",
|
|
14
20
|
Workshop = "workshop",
|
|
@@ -29,7 +35,7 @@ export interface IRecurringEvent extends IFireDoc {
|
|
|
29
35
|
participants: string[];
|
|
30
36
|
startDate: Date;
|
|
31
37
|
endDate?: Date;
|
|
32
|
-
type:
|
|
38
|
+
type: CalendarEventType;
|
|
33
39
|
rrule: string;
|
|
34
40
|
exceptions: string[];
|
|
35
41
|
}
|
|
@@ -43,7 +49,7 @@ export interface IEvent extends IFireDoc {
|
|
|
43
49
|
participantRefs?: FirestoreDocumentReference[];
|
|
44
50
|
startDate: Date;
|
|
45
51
|
endDate?: Date;
|
|
46
|
-
type:
|
|
52
|
+
type: CalendarEventType;
|
|
47
53
|
tags?: ITag[];
|
|
48
54
|
meeting?: IEventMeeting;
|
|
49
55
|
status: EventStatus;
|
|
@@ -14,18 +14,24 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.ICalendarEventType = exports.IEventStatus = exports.ICalendarAction = void 0;
|
|
18
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 || (exports.ICalendarAction = {}));
|
|
19
25
|
var IEventStatus;
|
|
20
26
|
(function (IEventStatus) {
|
|
21
27
|
IEventStatus["Scheduled"] = "scheduled";
|
|
22
28
|
IEventStatus["Completed"] = "completed";
|
|
23
29
|
IEventStatus["Cancelled"] = "cancelled";
|
|
24
30
|
})(IEventStatus = exports.IEventStatus || (exports.IEventStatus = {}));
|
|
25
|
-
var
|
|
26
|
-
(function (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
})(
|
|
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 || (exports.ICalendarEventType = {}));
|
|
@@ -3,6 +3,14 @@ import { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
|
|
|
3
3
|
import { MeetingType } from "../evo-meeting";
|
|
4
4
|
|
|
5
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
|
+
|
|
6
14
|
// Enum for Event Instance Status
|
|
7
15
|
export type EventStatus = "scheduled" | "completed" | "cancelled";
|
|
8
16
|
export enum IEventStatus {
|
|
@@ -12,8 +20,8 @@ export enum IEventStatus {
|
|
|
12
20
|
}
|
|
13
21
|
|
|
14
22
|
// Enum for Event Types
|
|
15
|
-
export type
|
|
16
|
-
export enum
|
|
23
|
+
export type CalendarEventType = "event" | "meeting" | "workshop" | "other";
|
|
24
|
+
export enum ICalendarEventType {
|
|
17
25
|
Event = "event", // A general event type
|
|
18
26
|
Meeting = "meeting", // A meeting event
|
|
19
27
|
Workshop = "workshop", // A workshop event
|
|
@@ -38,7 +46,7 @@ export interface IRecurringEvent extends IFireDoc {
|
|
|
38
46
|
participants: string[]; // List of participant IDs
|
|
39
47
|
startDate: Date; // Start date and time of the first meeting
|
|
40
48
|
endDate?: Date; // Optional end date and time of the recurring meeting
|
|
41
|
-
type:
|
|
49
|
+
type: CalendarEventType; // Type of event
|
|
42
50
|
rrule: string; // Recurrence rule in RRULE format
|
|
43
51
|
exceptions: string[]; // List of instance IDs that represent exceptions
|
|
44
52
|
}
|
|
@@ -54,7 +62,7 @@ export interface IEvent extends IFireDoc {
|
|
|
54
62
|
participantRefs?: FirestoreDocumentReference[]; // List of participant references
|
|
55
63
|
startDate: Date; // Start date and time of the event
|
|
56
64
|
endDate?: Date; // Optional end date and time of the event
|
|
57
|
-
type:
|
|
65
|
+
type: CalendarEventType; // Type of event
|
|
58
66
|
tags?: ITag[];
|
|
59
67
|
meeting?: IEventMeeting;
|
|
60
68
|
status: EventStatus; // Status of the event
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export * from "./fb_collections";
|
|
2
2
|
import { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
|
|
3
3
|
import { TaskPriority, TaskStatus } from "../evo-task";
|
|
4
|
+
export type MeetingAction = "CREATE_MEETING" | "DELETE_MEETING" | "UPDATE_MEETING";
|
|
5
|
+
export declare enum IMeetingAction {
|
|
6
|
+
Create_meeting = "CREATE_MEETING",
|
|
7
|
+
Delete_meeting = "DELETE_MEETING",
|
|
8
|
+
Update_meeting = "UPDATE_MEETING"
|
|
9
|
+
}
|
|
4
10
|
export type MeetingType = "regular" | "oneonone" | "feedback" | "presentation" | "other";
|
|
5
11
|
export declare enum IMeetingType {
|
|
6
12
|
Regular = "regular",
|
|
@@ -14,8 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.IMeetingType = void 0;
|
|
17
|
+
exports.IMeetingType = exports.IMeetingAction = void 0;
|
|
18
18
|
__exportStar(require("./fb_collections"), exports);
|
|
19
|
+
var IMeetingAction;
|
|
20
|
+
(function (IMeetingAction) {
|
|
21
|
+
IMeetingAction["Create_meeting"] = "CREATE_MEETING";
|
|
22
|
+
IMeetingAction["Delete_meeting"] = "DELETE_MEETING";
|
|
23
|
+
IMeetingAction["Update_meeting"] = "UPDATE_MEETING";
|
|
24
|
+
})(IMeetingAction = exports.IMeetingAction || (exports.IMeetingAction = {}));
|
|
19
25
|
var IMeetingType;
|
|
20
26
|
(function (IMeetingType) {
|
|
21
27
|
IMeetingType["Regular"] = "regular";
|
|
@@ -3,6 +3,17 @@ import { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
|
|
|
3
3
|
import { TaskPriority, TaskStatus } from "../evo-task";
|
|
4
4
|
|
|
5
5
|
// ----- MeetingTypes
|
|
6
|
+
// Enum for Meeting Action - used in Activities tracking
|
|
7
|
+
export type MeetingAction =
|
|
8
|
+
| "CREATE_MEETING"
|
|
9
|
+
| "DELETE_MEETING"
|
|
10
|
+
| "UPDATE_MEETING";
|
|
11
|
+
export enum IMeetingAction {
|
|
12
|
+
Create_meeting = "CREATE_MEETING",
|
|
13
|
+
Delete_meeting = "DELETE_MEETING",
|
|
14
|
+
Update_meeting = "UPDATE_MEETING",
|
|
15
|
+
}
|
|
16
|
+
|
|
6
17
|
export type MeetingType =
|
|
7
18
|
| "regular"
|
|
8
19
|
| "oneonone"
|
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
export * from "./fb_collections";
|
|
2
2
|
import { FirestoreDocumentReference, IFireDoc, IGeoPoint, ITag } from "../shared";
|
|
3
|
+
export type PeopleAction = "CREATE_COMPANY" | "DELETE_COMPANY" | "UPDATE_COMPANY" | "CREATE_OFFICE" | "DELETE_OFFICE" | "UPDATE_OFFICE" | "CREATE_DEPARTMENT" | "DELETE_DEPARTMENT" | "UPDATE_DEPARTMENT" | "CREATE_EMPLOYEE" | "DELETE_EMPLOYEE" | "UPDATE_EMPLOYEE" | "UPDATE_EMPLOYEE_PHOTO" | "UPDATE_MY_PROFILE" | "UPDATE_MY_PHOTO" | "UPDATE_MY_PASSWORD";
|
|
4
|
+
export declare enum IPeopleAction {
|
|
5
|
+
Create_company = "CREATE_COMPANY",
|
|
6
|
+
Delete_company = "DELETE_COMPANY",
|
|
7
|
+
Update_company = "UPDATE_COMPANY",
|
|
8
|
+
Create_office = "CREATE_OFFICE",
|
|
9
|
+
Delete_office = "DELETE_OFFICE",
|
|
10
|
+
Update_office = "UPDATE_OFFICE",
|
|
11
|
+
Create_department = "CREATE_DEPARTMENT",
|
|
12
|
+
Delete_department = "DELETE_DEPARTMENT",
|
|
13
|
+
Update_department = "UPDATE_DEPARTMENT",
|
|
14
|
+
Create_employee = "CREATE_EMPLOYEE",
|
|
15
|
+
Delete_employee = "DELETE_EMPLOYEE",
|
|
16
|
+
Update_employee = "UPDATE_EMPLOYEE",
|
|
17
|
+
Update_employee_photo = "UPDATE_EMPLOYEE_PHOTO",
|
|
18
|
+
Update_my_profile = "UPDATE_MY_PROFILE",
|
|
19
|
+
Update_my_photo = "UPDATE_MY_PHOTO",
|
|
20
|
+
Update_my_password = "UPDATE_MY_PASSWORD"
|
|
21
|
+
}
|
|
3
22
|
export type EmployeeStatus = "active" | "inactive" | "draft";
|
|
4
23
|
export declare enum IEmployeeStatus {
|
|
5
24
|
Active = "active",
|
|
@@ -14,8 +14,27 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.IEmployeeStatus = void 0;
|
|
17
|
+
exports.IEmployeeStatus = exports.IPeopleAction = void 0;
|
|
18
18
|
__exportStar(require("./fb_collections"), exports);
|
|
19
|
+
var IPeopleAction;
|
|
20
|
+
(function (IPeopleAction) {
|
|
21
|
+
IPeopleAction["Create_company"] = "CREATE_COMPANY";
|
|
22
|
+
IPeopleAction["Delete_company"] = "DELETE_COMPANY";
|
|
23
|
+
IPeopleAction["Update_company"] = "UPDATE_COMPANY";
|
|
24
|
+
IPeopleAction["Create_office"] = "CREATE_OFFICE";
|
|
25
|
+
IPeopleAction["Delete_office"] = "DELETE_OFFICE";
|
|
26
|
+
IPeopleAction["Update_office"] = "UPDATE_OFFICE";
|
|
27
|
+
IPeopleAction["Create_department"] = "CREATE_DEPARTMENT";
|
|
28
|
+
IPeopleAction["Delete_department"] = "DELETE_DEPARTMENT";
|
|
29
|
+
IPeopleAction["Update_department"] = "UPDATE_DEPARTMENT";
|
|
30
|
+
IPeopleAction["Create_employee"] = "CREATE_EMPLOYEE";
|
|
31
|
+
IPeopleAction["Delete_employee"] = "DELETE_EMPLOYEE";
|
|
32
|
+
IPeopleAction["Update_employee"] = "UPDATE_EMPLOYEE";
|
|
33
|
+
IPeopleAction["Update_employee_photo"] = "UPDATE_EMPLOYEE_PHOTO";
|
|
34
|
+
IPeopleAction["Update_my_profile"] = "UPDATE_MY_PROFILE";
|
|
35
|
+
IPeopleAction["Update_my_photo"] = "UPDATE_MY_PHOTO";
|
|
36
|
+
IPeopleAction["Update_my_password"] = "UPDATE_MY_PASSWORD";
|
|
37
|
+
})(IPeopleAction = exports.IPeopleAction || (exports.IPeopleAction = {}));
|
|
19
38
|
var IEmployeeStatus;
|
|
20
39
|
(function (IEmployeeStatus) {
|
|
21
40
|
IEmployeeStatus["Active"] = "active";
|
|
@@ -7,6 +7,45 @@ import {
|
|
|
7
7
|
} from "../shared";
|
|
8
8
|
|
|
9
9
|
// ----- PeopleTypes
|
|
10
|
+
|
|
11
|
+
// Enum for EvoPeople Action - used in Activities tracking
|
|
12
|
+
export type PeopleAction =
|
|
13
|
+
| "CREATE_COMPANY"
|
|
14
|
+
| "DELETE_COMPANY"
|
|
15
|
+
| "UPDATE_COMPANY"
|
|
16
|
+
| "CREATE_OFFICE"
|
|
17
|
+
| "DELETE_OFFICE"
|
|
18
|
+
| "UPDATE_OFFICE"
|
|
19
|
+
| "CREATE_DEPARTMENT"
|
|
20
|
+
| "DELETE_DEPARTMENT"
|
|
21
|
+
| "UPDATE_DEPARTMENT"
|
|
22
|
+
| "CREATE_EMPLOYEE"
|
|
23
|
+
| "DELETE_EMPLOYEE"
|
|
24
|
+
| "UPDATE_EMPLOYEE"
|
|
25
|
+
| "UPDATE_EMPLOYEE_PHOTO"
|
|
26
|
+
| "UPDATE_MY_PROFILE"
|
|
27
|
+
| "UPDATE_MY_PHOTO"
|
|
28
|
+
| "UPDATE_MY_PASSWORD";
|
|
29
|
+
|
|
30
|
+
export enum IPeopleAction {
|
|
31
|
+
Create_company = "CREATE_COMPANY",
|
|
32
|
+
Delete_company = "DELETE_COMPANY",
|
|
33
|
+
Update_company = "UPDATE_COMPANY",
|
|
34
|
+
Create_office = "CREATE_OFFICE",
|
|
35
|
+
Delete_office = "DELETE_OFFICE",
|
|
36
|
+
Update_office = "UPDATE_OFFICE",
|
|
37
|
+
Create_department = "CREATE_DEPARTMENT",
|
|
38
|
+
Delete_department = "DELETE_DEPARTMENT",
|
|
39
|
+
Update_department = "UPDATE_DEPARTMENT",
|
|
40
|
+
Create_employee = "CREATE_EMPLOYEE",
|
|
41
|
+
Delete_employee = "DELETE_EMPLOYEE",
|
|
42
|
+
Update_employee = "UPDATE_EMPLOYEE",
|
|
43
|
+
Update_employee_photo = "UPDATE_EMPLOYEE_PHOTO",
|
|
44
|
+
Update_my_profile = "UPDATE_MY_PROFILE",
|
|
45
|
+
Update_my_photo = "UPDATE_MY_PHOTO",
|
|
46
|
+
Update_my_password = "UPDATE_MY_PASSWORD",
|
|
47
|
+
}
|
|
48
|
+
|
|
10
49
|
// PeopleTypes
|
|
11
50
|
export type EmployeeStatus = "active" | "inactive" | "draft";
|
|
12
51
|
export enum IEmployeeStatus {
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
export * from "./fb_collections";
|
|
2
2
|
import { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
|
|
3
|
+
export type SurveyAction = "CREATE_SURVEY" | "DELETE_SURVEY" | "UPDATE_SURVEY";
|
|
4
|
+
export declare enum ISurveyAction {
|
|
5
|
+
Create_survey = "CREATE_SURVEY",
|
|
6
|
+
Delete_survey = "DELETE_SURVEY",
|
|
7
|
+
Update_survey = "UPDATE_SURVEY"
|
|
8
|
+
}
|
|
9
|
+
export type SurveyDeploymentAction = "CREATE_SURVEY_DEPLOYMENT" | "DELETE_SURVEY_DEPLOYMENT" | "UPDATE_SURVEY_DEPLOYMENT";
|
|
10
|
+
export declare enum ISurveyDeploymentAction {
|
|
11
|
+
Create_survey_deployment = "CREATE_SURVEY_DEPLOYMENT",
|
|
12
|
+
Delete_survey_deployment = "DELETE_SURVEY_DEPLOYMENT",
|
|
13
|
+
Update_survey_deployment = "UPDATE_SURVEY_DEPLOYMENT"
|
|
14
|
+
}
|
|
3
15
|
export type SurveyPermission = "private" | "company" | "public";
|
|
4
16
|
export declare enum ISurveyPermission {
|
|
5
17
|
Private = "private",
|
|
@@ -14,8 +14,20 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ISurveySubmissionStatus = exports.ISurveyDeploymentStatus = exports.IQuestionEssayDefaultsLength = exports.IQuestionScaleDefaultsScales = exports.ISurveyQuestionType = exports.ISurveyStatus = exports.ISurveyType = exports.ISurveyPermission = void 0;
|
|
17
|
+
exports.ISurveySubmissionStatus = exports.ISurveyDeploymentStatus = exports.IQuestionEssayDefaultsLength = exports.IQuestionScaleDefaultsScales = exports.ISurveyQuestionType = exports.ISurveyStatus = exports.ISurveyType = exports.ISurveyPermission = exports.ISurveyDeploymentAction = exports.ISurveyAction = void 0;
|
|
18
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 || (exports.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 || (exports.ISurveyDeploymentAction = {}));
|
|
19
31
|
var ISurveyPermission;
|
|
20
32
|
(function (ISurveyPermission) {
|
|
21
33
|
ISurveyPermission["Private"] = "private";
|
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
export * from "./fb_collections";
|
|
2
2
|
import { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
|
|
3
3
|
// ---- Survey
|
|
4
|
+
|
|
5
|
+
// Enum for Survey Action - used in Activities tracking
|
|
6
|
+
export type SurveyAction = "CREATE_SURVEY" | "DELETE_SURVEY" | "UPDATE_SURVEY";
|
|
7
|
+
export enum ISurveyAction {
|
|
8
|
+
Create_survey = "CREATE_SURVEY",
|
|
9
|
+
Delete_survey = "DELETE_SURVEY",
|
|
10
|
+
Update_survey = "UPDATE_SURVEY",
|
|
11
|
+
}
|
|
12
|
+
// Enum for Survey Deployment Action - used in Activities tracking
|
|
13
|
+
export type SurveyDeploymentAction =
|
|
14
|
+
| "CREATE_SURVEY_DEPLOYMENT"
|
|
15
|
+
| "DELETE_SURVEY_DEPLOYMENT"
|
|
16
|
+
| "UPDATE_SURVEY_DEPLOYMENT";
|
|
17
|
+
export enum ISurveyDeploymentAction {
|
|
18
|
+
Create_survey_deployment = "CREATE_SURVEY_DEPLOYMENT",
|
|
19
|
+
Delete_survey_deployment = "DELETE_SURVEY_DEPLOYMENT",
|
|
20
|
+
Update_survey_deployment = "UPDATE_SURVEY_DEPLOYMENT",
|
|
21
|
+
}
|
|
22
|
+
|
|
4
23
|
//Survey
|
|
5
24
|
export type SurveyPermission = "private" | "company" | "public";
|
|
6
25
|
export enum ISurveyPermission {
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export * from "./fb_collections";
|
|
2
2
|
import { 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
|
+
}
|
|
3
9
|
export type TaskStatus = "not_started" | "in_progress" | "completed" | "cancelled" | "on_hold";
|
|
4
10
|
export declare enum ITaskStatus {
|
|
5
11
|
NotStarted = "not_started",
|
|
@@ -14,8 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ITaskPriority = exports.ITaskStatus = void 0;
|
|
17
|
+
exports.ITaskPriority = exports.ITaskStatus = exports.ITaskAction = void 0;
|
|
18
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 || (exports.ITaskAction = {}));
|
|
19
25
|
var ITaskStatus;
|
|
20
26
|
(function (ITaskStatus) {
|
|
21
27
|
ITaskStatus["NotStarted"] = "not_started";
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
export * from "./fb_collections";
|
|
2
2
|
import { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
|
|
3
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
|
+
|
|
4
13
|
// Enum for Task Instance Status
|
|
5
14
|
|
|
6
15
|
export type TaskStatus =
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export * from "./fb_collections";
|
|
2
2
|
import { 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
|
+
}
|
|
3
9
|
export type TenantLanguage = "ptBR" | "en";
|
|
4
10
|
export declare enum ITenantLanguage {
|
|
5
11
|
ptBR = "ptBR",
|
|
@@ -14,8 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ITenantStatus = exports.ITenantLanguage = void 0;
|
|
17
|
+
exports.ITenantStatus = exports.ITenantLanguage = exports.ITenantAction = void 0;
|
|
18
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 || (exports.ITenantAction = {}));
|
|
19
25
|
var ITenantLanguage;
|
|
20
26
|
(function (ITenantLanguage) {
|
|
21
27
|
ITenantLanguage["ptBR"] = "ptBR";
|
|
@@ -2,6 +2,14 @@ export * from "./fb_collections";
|
|
|
2
2
|
import { FirestoreDocumentReference, IFireDoc } from "../shared";
|
|
3
3
|
|
|
4
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
|
+
|
|
5
13
|
//TenantTypes
|
|
6
14
|
export type TenantLanguage = "ptBR" | "en";
|
|
7
15
|
export enum ITenantLanguage {
|
|
@@ -22,3 +22,14 @@ export interface ITag {
|
|
|
22
22
|
color?: string;
|
|
23
23
|
hidden: boolean;
|
|
24
24
|
}
|
|
25
|
+
export type EvoApp = "evo-activity" | "evo-calendar" | "evo-core" | "evo-meeting" | "evo-people" | "evo-survey" | "evo-task" | "evo-tenant";
|
|
26
|
+
export declare enum IEvoApp {
|
|
27
|
+
EvoActivity = "evo-activity",
|
|
28
|
+
EvoCalendar = "evo-calendar",
|
|
29
|
+
EvoCore = "evo-core",
|
|
30
|
+
EvoMeeting = "evo-meeting",
|
|
31
|
+
EvoPeople = "evo-people",
|
|
32
|
+
EvoSurvey = "evo-survey",
|
|
33
|
+
EvoTask = "evo-task",
|
|
34
|
+
EvoTenant = "evo-tenant"
|
|
35
|
+
}
|
|
@@ -14,4 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.IEvoApp = void 0;
|
|
17
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["EvoSurvey"] = "evo-survey";
|
|
27
|
+
IEvoApp["EvoTask"] = "evo-task";
|
|
28
|
+
IEvoApp["EvoTenant"] = "evo-tenant";
|
|
29
|
+
})(IEvoApp = exports.IEvoApp || (exports.IEvoApp = {}));
|
|
@@ -31,3 +31,25 @@ export interface ITag {
|
|
|
31
31
|
color?: string;
|
|
32
32
|
hidden: boolean;
|
|
33
33
|
}
|
|
34
|
+
|
|
35
|
+
// ----- Apps
|
|
36
|
+
|
|
37
|
+
export type EvoApp =
|
|
38
|
+
| "evo-activity"
|
|
39
|
+
| "evo-calendar"
|
|
40
|
+
| "evo-core"
|
|
41
|
+
| "evo-meeting"
|
|
42
|
+
| "evo-people"
|
|
43
|
+
| "evo-survey"
|
|
44
|
+
| "evo-task"
|
|
45
|
+
| "evo-tenant";
|
|
46
|
+
export enum IEvoApp {
|
|
47
|
+
EvoActivity = "evo-activity",
|
|
48
|
+
EvoCalendar = "evo-calendar",
|
|
49
|
+
EvoCore = "evo-core",
|
|
50
|
+
EvoMeeting = "evo-meeting",
|
|
51
|
+
EvoPeople = "evo-people",
|
|
52
|
+
EvoSurvey = "evo-survey",
|
|
53
|
+
EvoTask = "evo-task",
|
|
54
|
+
EvoTenant = "evo-tenant",
|
|
55
|
+
}
|