evo360-types 1.1.24 → 1.1.25
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 +13 -10
- package/dist/apps/evo-activity/zod-schemas.js +6 -5
- package/dist/apps/evo-activity/zod-schemas.ts +5 -4
- package/dist/apps/evo-meeting/zod-schemas.js +2 -2
- package/dist/apps/evo-meeting/zod-schemas.ts +2 -2
- package/dist/types/evo-activity/index.d.ts +5 -4
- package/dist/types/evo-activity/index.ts +5 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const zReadStatusSchema: z.ZodEnum<["unread", "read", "archived", "dismissed", "snoozed"]>;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const zIActivityEventSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
ref: z.ZodAny;
|
|
6
6
|
tenant: z.ZodString;
|
|
@@ -9,9 +9,10 @@ export declare const zActivitySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9
9
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
10
10
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
11
11
|
}, {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
creatorName: z.ZodString;
|
|
13
|
+
creatorRef: z.ZodAny;
|
|
14
|
+
participantNames: z.ZodArray<z.ZodString, "many">;
|
|
15
|
+
participantRefs: z.ZodArray<z.ZodAny, "many">;
|
|
15
16
|
title: z.ZodOptional<z.ZodString>;
|
|
16
17
|
description: z.ZodOptional<z.ZodString>;
|
|
17
18
|
app: z.ZodEnum<["evo-activity", "evo-calendar", "evo-core", "evo-meeting", "evo-people", "evo-survey", "evo-task", "evo-tenant"]>;
|
|
@@ -34,7 +35,10 @@ export declare const zActivitySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
34
35
|
}>, "strip", z.ZodTypeAny, {
|
|
35
36
|
id: string;
|
|
36
37
|
tenant: string;
|
|
38
|
+
creatorName: string;
|
|
37
39
|
type: "CREATE_TENANT" | "DELETE_TENANT" | "UPDATE_TENANT" | "CREATE_TASK" | "DELETE_TASK" | "UPDATE_TASK" | "CREATE_MEETING" | "DELETE_MEETING" | "UPDATE_MEETING" | "CREATE_EVENT" | "DELETE_EVENT" | "UPDATE_EVENT" | "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_SURVEY" | "DELETE_SURVEY" | "UPDATE_SURVEY";
|
|
40
|
+
participantNames: string[];
|
|
41
|
+
participantRefs: any[];
|
|
38
42
|
app: "evo-activity" | "evo-calendar" | "evo-core" | "evo-meeting" | "evo-people" | "evo-survey" | "evo-task" | "evo-tenant";
|
|
39
43
|
readStatus: "archived" | "unread" | "read" | "dismissed" | "snoozed";
|
|
40
44
|
ref?: any;
|
|
@@ -42,21 +46,22 @@ export declare const zActivitySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
42
46
|
created_at?: Date | null | undefined;
|
|
43
47
|
updated_at?: Date | null | undefined;
|
|
44
48
|
deleted_at?: Date | null | undefined;
|
|
45
|
-
created_by?: any;
|
|
46
49
|
title?: string | undefined;
|
|
47
50
|
description?: string | undefined;
|
|
48
|
-
|
|
51
|
+
creatorRef?: any;
|
|
49
52
|
tags?: {
|
|
50
53
|
name: string;
|
|
51
54
|
hidden: boolean;
|
|
52
55
|
color?: string | undefined;
|
|
53
56
|
}[] | undefined;
|
|
54
|
-
created_to?: any;
|
|
55
57
|
metadata?: Record<string, any> | undefined;
|
|
56
58
|
}, {
|
|
57
59
|
id: string;
|
|
58
60
|
tenant: string;
|
|
61
|
+
creatorName: string;
|
|
59
62
|
type: "CREATE_TENANT" | "DELETE_TENANT" | "UPDATE_TENANT" | "CREATE_TASK" | "DELETE_TASK" | "UPDATE_TASK" | "CREATE_MEETING" | "DELETE_MEETING" | "UPDATE_MEETING" | "CREATE_EVENT" | "DELETE_EVENT" | "UPDATE_EVENT" | "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_SURVEY" | "DELETE_SURVEY" | "UPDATE_SURVEY";
|
|
63
|
+
participantNames: string[];
|
|
64
|
+
participantRefs: any[];
|
|
60
65
|
app: "evo-activity" | "evo-calendar" | "evo-core" | "evo-meeting" | "evo-people" | "evo-survey" | "evo-task" | "evo-tenant";
|
|
61
66
|
readStatus: "archived" | "unread" | "read" | "dismissed" | "snoozed";
|
|
62
67
|
ref?: any;
|
|
@@ -64,15 +69,13 @@ export declare const zActivitySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
64
69
|
created_at?: Date | null | undefined;
|
|
65
70
|
updated_at?: Date | null | undefined;
|
|
66
71
|
deleted_at?: Date | null | undefined;
|
|
67
|
-
created_by?: any;
|
|
68
72
|
title?: string | undefined;
|
|
69
73
|
description?: string | undefined;
|
|
70
|
-
|
|
74
|
+
creatorRef?: any;
|
|
71
75
|
tags?: {
|
|
72
76
|
name: string;
|
|
73
77
|
hidden: boolean;
|
|
74
78
|
color?: string | undefined;
|
|
75
79
|
}[] | undefined;
|
|
76
|
-
created_to?: any;
|
|
77
80
|
metadata?: Record<string, any> | undefined;
|
|
78
81
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.zIActivityEventSchema = exports.zReadStatusSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../shared/zod-schemas");
|
|
6
6
|
const zod_schemas_2 = require("../evo-calendar/zod-schemas");
|
|
@@ -17,11 +17,12 @@ exports.zReadStatusSchema = zod_1.z.enum([
|
|
|
17
17
|
"dismissed",
|
|
18
18
|
"snoozed",
|
|
19
19
|
]);
|
|
20
|
-
exports.
|
|
20
|
+
exports.zIActivityEventSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
|
|
21
21
|
.extend({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
creatorName: zod_1.z.string(),
|
|
23
|
+
creatorRef: zod_1.z.any(),
|
|
24
|
+
participantNames: zod_1.z.array(zod_1.z.string()).min(1).max(100),
|
|
25
|
+
participantRefs: zod_1.z.array(zod_1.z.any()).min(1).max(100),
|
|
25
26
|
title: zod_1.z.string().max(255).optional(),
|
|
26
27
|
description: zod_1.z.string().max(512).optional(),
|
|
27
28
|
app: zod_schemas_1.zEvoAppSchema,
|
|
@@ -20,11 +20,12 @@ export const zReadStatusSchema = z.enum([
|
|
|
20
20
|
"snoozed",
|
|
21
21
|
]);
|
|
22
22
|
|
|
23
|
-
export const
|
|
23
|
+
export const zIActivityEventSchema = zFireDocSchema // Extend from FireDocSchema
|
|
24
24
|
.extend({
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
creatorName: z.string(),
|
|
26
|
+
creatorRef: z.any(),
|
|
27
|
+
participantNames: z.array(z.string()).min(1).max(100),
|
|
28
|
+
participantRefs: z.array(z.any()).min(1).max(100),
|
|
28
29
|
title: z.string().max(255).optional(),
|
|
29
30
|
description: z.string().max(512).optional(),
|
|
30
31
|
app: zEvoAppSchema,
|
|
@@ -19,8 +19,8 @@ exports.zMeetingTypeSchema = zod_1.z.enum([
|
|
|
19
19
|
]);
|
|
20
20
|
exports.zMeetingEventSchema = zod_1.z.object({
|
|
21
21
|
eventRef: zod_1.z.any(),
|
|
22
|
-
participantNames: zod_1.z.array(zod_1.z.string()).min(1).max(
|
|
23
|
-
participantRefs: zod_1.z.array(zod_1.z.any()).min(1).max(
|
|
22
|
+
participantNames: zod_1.z.array(zod_1.z.string()).min(1).max(100),
|
|
23
|
+
participantRefs: zod_1.z.array(zod_1.z.any()).min(1).max(100),
|
|
24
24
|
startDate: zod_1.z.date(),
|
|
25
25
|
endDate: zod_1.z.date().optional(),
|
|
26
26
|
});
|
|
@@ -22,8 +22,8 @@ export const zMeetingTypeSchema = z.enum([
|
|
|
22
22
|
|
|
23
23
|
export const zMeetingEventSchema = z.object({
|
|
24
24
|
eventRef: z.any(),
|
|
25
|
-
participantNames: z.array(z.string()).min(1).max(
|
|
26
|
-
participantRefs: z.array(z.any()).min(1).max(
|
|
25
|
+
participantNames: z.array(z.string()).min(1).max(100),
|
|
26
|
+
participantRefs: z.array(z.any()).min(1).max(100),
|
|
27
27
|
startDate: z.date(),
|
|
28
28
|
endDate: z.date().optional(),
|
|
29
29
|
});
|
|
@@ -14,10 +14,11 @@ export declare enum IReadStatus {
|
|
|
14
14
|
Dismissed = "dismissed",
|
|
15
15
|
Snoozed = "snoozed"
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
export interface IActivityEvent extends IFireDoc {
|
|
18
|
+
creatorName: string;
|
|
19
|
+
creatorRef?: FirestoreDocumentReference;
|
|
20
|
+
participantNames: string[];
|
|
21
|
+
participantRefs?: FirestoreDocumentReference[];
|
|
21
22
|
title?: string;
|
|
22
23
|
description?: string;
|
|
23
24
|
app: IEvoApp;
|
|
@@ -23,10 +23,11 @@ export enum IReadStatus {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
// Interface for Event Instances (eventInstances)
|
|
26
|
-
export interface
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
export interface IActivityEvent extends IFireDoc {
|
|
27
|
+
creatorName: string; // Name of the user who created the meeting
|
|
28
|
+
creatorRef?: FirestoreDocumentReference; // reference to the user who created the meeting
|
|
29
|
+
participantNames: string[]; // List of participant names
|
|
30
|
+
participantRefs?: FirestoreDocumentReference[]; // List of participant references
|
|
30
31
|
title?: string;
|
|
31
32
|
description?: string;
|
|
32
33
|
app: IEvoApp;
|