evo360-types 1.1.87 → 1.1.89
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 +3 -3
- package/dist/apps/evo-activity/zod-schemas.js +1 -1
- package/dist/apps/evo-activity/zod-schemas.ts +1 -1
- package/dist/apps/evo-cake/zod-schemas.d.ts +158 -0
- package/dist/apps/evo-cake/zod-schemas.js +29 -1
- package/dist/apps/evo-cake/zod-schemas.ts +33 -0
- package/dist/types/evo-activity/index.d.ts +4 -4
- package/dist/types/evo-activity/index.js +10 -10
- package/dist/types/evo-activity/index.ts +4 -4
- package/dist/types/evo-cake/index.d.ts +1 -1
- package/dist/types/evo-cake/index.ts +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ export declare const zIActivityEventSchema: 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
|
-
|
|
12
|
+
recipientIds: z.ZodArray<z.ZodString, "many">;
|
|
13
13
|
creatorName: z.ZodString;
|
|
14
14
|
creatorRef: z.ZodAny;
|
|
15
15
|
docRef: z.ZodAny;
|
|
@@ -39,7 +39,7 @@ export declare const zIActivityEventSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
39
39
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
40
40
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
41
41
|
}, {
|
|
42
|
-
|
|
42
|
+
recipientIds: z.ZodArray<z.ZodString, "many">;
|
|
43
43
|
creatorName: z.ZodString;
|
|
44
44
|
creatorRef: z.ZodAny;
|
|
45
45
|
docRef: z.ZodAny;
|
|
@@ -69,7 +69,7 @@ export declare const zIActivityEventSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
69
69
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
70
70
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
71
71
|
}, {
|
|
72
|
-
|
|
72
|
+
recipientIds: z.ZodArray<z.ZodString, "many">;
|
|
73
73
|
creatorName: z.ZodString;
|
|
74
74
|
creatorRef: z.ZodAny;
|
|
75
75
|
docRef: z.ZodAny;
|
|
@@ -20,7 +20,7 @@ exports.zReadStatusSchema = zod_1.z.enum([
|
|
|
20
20
|
]);
|
|
21
21
|
exports.zIActivityEventSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
|
|
22
22
|
.extend({
|
|
23
|
-
|
|
23
|
+
recipientIds: zod_1.z.array(zod_1.z.string()).min(1).max(500),
|
|
24
24
|
creatorName: zod_1.z.string(),
|
|
25
25
|
creatorRef: zod_1.z.any(),
|
|
26
26
|
docRef: zod_1.z.any(),
|
|
@@ -23,7 +23,7 @@ export const zReadStatusSchema = z.enum([
|
|
|
23
23
|
|
|
24
24
|
export const zIActivityEventSchema = zFireDocSchema // Extend from FireDocSchema
|
|
25
25
|
.extend({
|
|
26
|
-
|
|
26
|
+
recipientIds: z.array(z.string()).min(1).max(500),
|
|
27
27
|
creatorName: z.string(),
|
|
28
28
|
creatorRef: z.any(),
|
|
29
29
|
docRef: z.any(),
|
|
@@ -1,6 +1,164 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const zCakeActionSchema: z.ZodEnum<["CREATE_SURVEY", "DELETE_SURVEY", "UPDATE_SURVEY", "SHARE_SURVEY"]>;
|
|
2
3
|
export declare const zCakeAssetActionSchema: z.ZodEnum<["CREATE_CAKE_ASSET", "DELETE_CAKE_ASSET", "UPDATE_CAKE_ASSET", "PROCESS_CAKE_ASSET", "CLASSIFY_CAKE_ASSET", "EXTRACT_TEXT_CAKE_ASSET", "OCR_CAKE_ASSET", "METADATA_EXTRACTION_CAKE_ASSET", "UPDATE_RELEVANCE_SCORE_CAKE_ASSET", "UPDATE_ASSET_STATUS_CAKE_ASSET", "UPDATE_ASSET_TAGS_CAKE_ASSET", "PROCESS_CAKE_ASSET_FAILED", "CLASSIFY_CAKE_ASSET_FAILED", "EXTRACT_TEXT_CAKE_ASSET_FAILED", "STORE_CAKE_ASSET", "RETRIEVE_CAKE_ASSET"]>;
|
|
4
|
+
export declare const zCakePermissionSchema: z.ZodEnum<["private", "tenant", "public"]>;
|
|
5
|
+
export declare const zCakeStatusSchema: z.ZodEnum<["active", "archived"]>;
|
|
3
6
|
export declare const zAssetTypeSchema: z.ZodEnum<["file", "event", "meeting", "note", "data"]>;
|
|
7
|
+
export declare const zCakeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
ref: z.ZodAny;
|
|
10
|
+
tenant: z.ZodString;
|
|
11
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
12
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
13
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
14
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
15
|
+
}, {
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
description: z.ZodOptional<z.ZodString>;
|
|
18
|
+
status: z.ZodOptional<z.ZodEnum<["active", "archived"]>>;
|
|
19
|
+
permission: z.ZodOptional<z.ZodEnum<["private", "tenant", "public"]>>;
|
|
20
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
color: z.ZodOptional<z.ZodString>;
|
|
23
|
+
hidden: z.ZodBoolean;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
name: string;
|
|
26
|
+
hidden: boolean;
|
|
27
|
+
color?: string | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
name: string;
|
|
30
|
+
hidden: boolean;
|
|
31
|
+
color?: string | undefined;
|
|
32
|
+
}>, "many">>>;
|
|
33
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
34
|
+
id: z.ZodString;
|
|
35
|
+
ref: z.ZodAny;
|
|
36
|
+
tenant: z.ZodString;
|
|
37
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
38
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
39
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
40
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
41
|
+
}, {
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
description: z.ZodOptional<z.ZodString>;
|
|
44
|
+
status: z.ZodOptional<z.ZodEnum<["active", "archived"]>>;
|
|
45
|
+
permission: z.ZodOptional<z.ZodEnum<["private", "tenant", "public"]>>;
|
|
46
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
color: z.ZodOptional<z.ZodString>;
|
|
49
|
+
hidden: z.ZodBoolean;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
name: string;
|
|
52
|
+
hidden: boolean;
|
|
53
|
+
color?: string | undefined;
|
|
54
|
+
}, {
|
|
55
|
+
name: string;
|
|
56
|
+
hidden: boolean;
|
|
57
|
+
color?: string | undefined;
|
|
58
|
+
}>, "many">>>;
|
|
59
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
ref: z.ZodAny;
|
|
62
|
+
tenant: z.ZodString;
|
|
63
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
64
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
65
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
66
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
67
|
+
}, {
|
|
68
|
+
name: z.ZodString;
|
|
69
|
+
description: z.ZodOptional<z.ZodString>;
|
|
70
|
+
status: z.ZodOptional<z.ZodEnum<["active", "archived"]>>;
|
|
71
|
+
permission: z.ZodOptional<z.ZodEnum<["private", "tenant", "public"]>>;
|
|
72
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
color: z.ZodOptional<z.ZodString>;
|
|
75
|
+
hidden: z.ZodBoolean;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
name: string;
|
|
78
|
+
hidden: boolean;
|
|
79
|
+
color?: string | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
name: string;
|
|
82
|
+
hidden: boolean;
|
|
83
|
+
color?: string | undefined;
|
|
84
|
+
}>, "many">>>;
|
|
85
|
+
}>, z.ZodTypeAny, "passthrough">>;
|
|
86
|
+
export declare const zCakeDocSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
ref: z.ZodAny;
|
|
89
|
+
tenant: z.ZodString;
|
|
90
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
91
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
92
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
93
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
94
|
+
}, {
|
|
95
|
+
name: z.ZodString;
|
|
96
|
+
description: z.ZodOptional<z.ZodString>;
|
|
97
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
99
|
+
name: z.ZodString;
|
|
100
|
+
color: z.ZodOptional<z.ZodString>;
|
|
101
|
+
hidden: z.ZodBoolean;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
name: string;
|
|
104
|
+
hidden: boolean;
|
|
105
|
+
color?: string | undefined;
|
|
106
|
+
}, {
|
|
107
|
+
name: string;
|
|
108
|
+
hidden: boolean;
|
|
109
|
+
color?: string | undefined;
|
|
110
|
+
}>, "many">>>;
|
|
111
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
112
|
+
id: z.ZodString;
|
|
113
|
+
ref: z.ZodAny;
|
|
114
|
+
tenant: z.ZodString;
|
|
115
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
116
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
117
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
118
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
119
|
+
}, {
|
|
120
|
+
name: z.ZodString;
|
|
121
|
+
description: z.ZodOptional<z.ZodString>;
|
|
122
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
color: z.ZodOptional<z.ZodString>;
|
|
126
|
+
hidden: z.ZodBoolean;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
name: string;
|
|
129
|
+
hidden: boolean;
|
|
130
|
+
color?: string | undefined;
|
|
131
|
+
}, {
|
|
132
|
+
name: string;
|
|
133
|
+
hidden: boolean;
|
|
134
|
+
color?: string | undefined;
|
|
135
|
+
}>, "many">>>;
|
|
136
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
137
|
+
id: z.ZodString;
|
|
138
|
+
ref: z.ZodAny;
|
|
139
|
+
tenant: z.ZodString;
|
|
140
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
141
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
142
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
143
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
144
|
+
}, {
|
|
145
|
+
name: z.ZodString;
|
|
146
|
+
description: z.ZodOptional<z.ZodString>;
|
|
147
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
148
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
149
|
+
name: z.ZodString;
|
|
150
|
+
color: z.ZodOptional<z.ZodString>;
|
|
151
|
+
hidden: z.ZodBoolean;
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
name: string;
|
|
154
|
+
hidden: boolean;
|
|
155
|
+
color?: string | undefined;
|
|
156
|
+
}, {
|
|
157
|
+
name: string;
|
|
158
|
+
hidden: boolean;
|
|
159
|
+
color?: string | undefined;
|
|
160
|
+
}>, "many">>>;
|
|
161
|
+
}>, z.ZodTypeAny, "passthrough">>;
|
|
4
162
|
export declare const zBaseAssetSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
5
163
|
id: z.ZodString;
|
|
6
164
|
ref: z.ZodAny;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zStructuredDataAssetSchema = exports.zNoteAssetSchema = exports.zMeetingAssetSchema = exports.zCalendarEventAssetSchema = exports.zFileAssetSchema = exports.zBaseAssetSchema = exports.zAssetTypeSchema = exports.zCakeAssetActionSchema = void 0;
|
|
3
|
+
exports.zStructuredDataAssetSchema = exports.zNoteAssetSchema = exports.zMeetingAssetSchema = exports.zCalendarEventAssetSchema = exports.zFileAssetSchema = exports.zBaseAssetSchema = exports.zCakeDocSchema = exports.zCakeSchema = exports.zAssetTypeSchema = exports.zCakeStatusSchema = exports.zCakePermissionSchema = exports.zCakeAssetActionSchema = exports.zCakeActionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../shared/zod-schemas");
|
|
6
|
+
exports.zCakeActionSchema = zod_1.z.enum([
|
|
7
|
+
"CREATE_SURVEY",
|
|
8
|
+
"DELETE_SURVEY",
|
|
9
|
+
"UPDATE_SURVEY",
|
|
10
|
+
"SHARE_SURVEY",
|
|
11
|
+
]);
|
|
6
12
|
exports.zCakeAssetActionSchema = zod_1.z.enum([
|
|
7
13
|
"CREATE_CAKE_ASSET",
|
|
8
14
|
"DELETE_CAKE_ASSET",
|
|
@@ -21,6 +27,8 @@ exports.zCakeAssetActionSchema = zod_1.z.enum([
|
|
|
21
27
|
"STORE_CAKE_ASSET",
|
|
22
28
|
"RETRIEVE_CAKE_ASSET",
|
|
23
29
|
]);
|
|
30
|
+
exports.zCakePermissionSchema = zod_1.z.enum(["private", "tenant", "public"]);
|
|
31
|
+
exports.zCakeStatusSchema = zod_1.z.enum(["active", "archived"]);
|
|
24
32
|
exports.zAssetTypeSchema = zod_1.z.enum([
|
|
25
33
|
"file",
|
|
26
34
|
"event",
|
|
@@ -28,6 +36,26 @@ exports.zAssetTypeSchema = zod_1.z.enum([
|
|
|
28
36
|
"note",
|
|
29
37
|
"data",
|
|
30
38
|
]);
|
|
39
|
+
exports.zCakeSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
|
|
40
|
+
.extend({
|
|
41
|
+
name: zod_1.z.string().min(1).max(255),
|
|
42
|
+
description: zod_1.z.string().max(2048).optional(),
|
|
43
|
+
status: exports.zCakeStatusSchema.optional(),
|
|
44
|
+
permission: exports.zCakePermissionSchema.optional(),
|
|
45
|
+
//assets: z.array(zCakeAssetSchema).nullable().optional(),
|
|
46
|
+
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
47
|
+
})
|
|
48
|
+
.passthrough();
|
|
49
|
+
// Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus -
|
|
50
|
+
exports.zCakeDocSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
|
|
51
|
+
.extend({
|
|
52
|
+
name: zod_1.z.string(),
|
|
53
|
+
description: zod_1.z.string().max(2048).optional(),
|
|
54
|
+
content: zod_1.z.string().nullable().optional(),
|
|
55
|
+
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
56
|
+
})
|
|
57
|
+
.passthrough();
|
|
58
|
+
// Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset -----
|
|
31
59
|
// Base schema for all assets
|
|
32
60
|
exports.zBaseAssetSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
|
|
33
61
|
.extend({
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { any, z } from "zod";
|
|
2
2
|
import { zFireDocSchema, zTagSchema } from "../shared/zod-schemas";
|
|
3
3
|
|
|
4
|
+
export const zCakeActionSchema = z.enum([
|
|
5
|
+
"CREATE_SURVEY",
|
|
6
|
+
"DELETE_SURVEY",
|
|
7
|
+
"UPDATE_SURVEY",
|
|
8
|
+
"SHARE_SURVEY",
|
|
9
|
+
]);
|
|
10
|
+
|
|
4
11
|
export const zCakeAssetActionSchema = z.enum([
|
|
5
12
|
"CREATE_CAKE_ASSET",
|
|
6
13
|
"DELETE_CAKE_ASSET",
|
|
@@ -20,6 +27,10 @@ export const zCakeAssetActionSchema = z.enum([
|
|
|
20
27
|
"RETRIEVE_CAKE_ASSET",
|
|
21
28
|
]);
|
|
22
29
|
|
|
30
|
+
export const zCakePermissionSchema = z.enum(["private", "tenant", "public"]);
|
|
31
|
+
|
|
32
|
+
export const zCakeStatusSchema = z.enum(["active", "archived"]);
|
|
33
|
+
|
|
23
34
|
export const zAssetTypeSchema = z.enum([
|
|
24
35
|
"file",
|
|
25
36
|
"event",
|
|
@@ -28,6 +39,28 @@ export const zAssetTypeSchema = z.enum([
|
|
|
28
39
|
"data",
|
|
29
40
|
]);
|
|
30
41
|
|
|
42
|
+
export const zCakeSchema = zFireDocSchema // Extend from FireDocSchema
|
|
43
|
+
.extend({
|
|
44
|
+
name: z.string().min(1).max(255),
|
|
45
|
+
description: z.string().max(2048).optional(),
|
|
46
|
+
status: zCakeStatusSchema.optional(),
|
|
47
|
+
permission: zCakePermissionSchema.optional(),
|
|
48
|
+
//assets: z.array(zCakeAssetSchema).nullable().optional(),
|
|
49
|
+
tags: z.array(zTagSchema).nullable().optional(),
|
|
50
|
+
})
|
|
51
|
+
.passthrough();
|
|
52
|
+
|
|
53
|
+
// Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus -
|
|
54
|
+
export const zCakeDocSchema = zFireDocSchema // Extend from FireDocSchema
|
|
55
|
+
.extend({
|
|
56
|
+
name: z.string(),
|
|
57
|
+
description: z.string().max(2048).optional(),
|
|
58
|
+
content: z.string().nullable().optional(),
|
|
59
|
+
tags: z.array(zTagSchema).nullable().optional(),
|
|
60
|
+
})
|
|
61
|
+
.passthrough();
|
|
62
|
+
|
|
63
|
+
// Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset -----
|
|
31
64
|
// Base schema for all assets
|
|
32
65
|
export const zBaseAssetSchema = zFireDocSchema // Extend from FireDocSchema
|
|
33
66
|
.extend({
|
|
@@ -6,8 +6,8 @@ import type { SurveyAction, SurveyDeploymentAction } from "../evo-survey";
|
|
|
6
6
|
import type { TaskAction } from "../evo-task";
|
|
7
7
|
import type { TenantAction } from "../evo-tenant";
|
|
8
8
|
import type { EvoApp, IFireDoc, ITag } from "../shared";
|
|
9
|
-
export type
|
|
10
|
-
export declare enum
|
|
9
|
+
export type ActivityReadStatus = "new" | "unread" | "read" | "archived" | "dismissed" | "snoozed";
|
|
10
|
+
export declare enum IActivityReadStatus {
|
|
11
11
|
New = "new",
|
|
12
12
|
Unread = "unread",
|
|
13
13
|
Read = "read",
|
|
@@ -16,13 +16,13 @@ export declare enum IReadStatus {
|
|
|
16
16
|
Snoozed = "snoozed"
|
|
17
17
|
}
|
|
18
18
|
export interface IActivityEvent extends IFireDoc {
|
|
19
|
-
|
|
19
|
+
recipientIds: string[];
|
|
20
20
|
creatorName: string;
|
|
21
21
|
creatorPath?: string;
|
|
22
22
|
docPath?: string;
|
|
23
23
|
app: EvoApp;
|
|
24
24
|
type: CalendarAction | MeetingAction | PeopleAction | SurveyAction | SurveyDeploymentAction | TaskAction | TenantAction;
|
|
25
|
-
readStatus:
|
|
25
|
+
readStatus: ActivityReadStatus;
|
|
26
26
|
metadata?: Record<string, any>;
|
|
27
27
|
tags?: ITag[] | null;
|
|
28
28
|
}
|
|
@@ -14,14 +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.
|
|
17
|
+
exports.IActivityReadStatus = void 0;
|
|
18
18
|
__exportStar(require("./fb_collections"), exports);
|
|
19
|
-
var
|
|
20
|
-
(function (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
})(
|
|
19
|
+
var IActivityReadStatus;
|
|
20
|
+
(function (IActivityReadStatus) {
|
|
21
|
+
IActivityReadStatus["New"] = "new";
|
|
22
|
+
IActivityReadStatus["Unread"] = "unread";
|
|
23
|
+
IActivityReadStatus["Read"] = "read";
|
|
24
|
+
IActivityReadStatus["Archived"] = "archived";
|
|
25
|
+
IActivityReadStatus["Dismissed"] = "dismissed";
|
|
26
|
+
IActivityReadStatus["Snoozed"] = "snoozed";
|
|
27
|
+
})(IActivityReadStatus = exports.IActivityReadStatus || (exports.IActivityReadStatus = {}));
|
|
@@ -8,14 +8,14 @@ import type { TenantAction } from "../evo-tenant";
|
|
|
8
8
|
import type { EvoApp, IFireDoc, ITag } from "../shared";
|
|
9
9
|
|
|
10
10
|
// Enum for Tenant Action - used in Activities tracking
|
|
11
|
-
export type
|
|
11
|
+
export type ActivityReadStatus =
|
|
12
12
|
| "new"
|
|
13
13
|
| "unread"
|
|
14
14
|
| "read"
|
|
15
15
|
| "archived"
|
|
16
16
|
| "dismissed"
|
|
17
17
|
| "snoozed";
|
|
18
|
-
export enum
|
|
18
|
+
export enum IActivityReadStatus {
|
|
19
19
|
New = "new",
|
|
20
20
|
Unread = "unread",
|
|
21
21
|
Read = "read",
|
|
@@ -26,7 +26,7 @@ export enum IReadStatus {
|
|
|
26
26
|
|
|
27
27
|
// Interface for Event Instances (eventInstances)
|
|
28
28
|
export interface IActivityEvent extends IFireDoc {
|
|
29
|
-
|
|
29
|
+
recipientIds: string[]; // List of recipients ids
|
|
30
30
|
creatorName: string; // Name of the user who created the meeting
|
|
31
31
|
creatorPath?: string;
|
|
32
32
|
docPath?: string;
|
|
@@ -39,7 +39,7 @@ export interface IActivityEvent extends IFireDoc {
|
|
|
39
39
|
| SurveyDeploymentAction
|
|
40
40
|
| TaskAction
|
|
41
41
|
| TenantAction;
|
|
42
|
-
readStatus:
|
|
42
|
+
readStatus: ActivityReadStatus;
|
|
43
43
|
metadata?: Record<string, any>;
|
|
44
44
|
tags?: ITag[] | null;
|
|
45
45
|
}
|
|
@@ -48,7 +48,7 @@ export interface ICake extends IFireDoc {
|
|
|
48
48
|
export interface ICakeDoc extends IFireDoc {
|
|
49
49
|
name: string;
|
|
50
50
|
description?: string;
|
|
51
|
-
content?: string;
|
|
51
|
+
content?: string | null;
|
|
52
52
|
tags?: ITag[] | null;
|
|
53
53
|
}
|
|
54
54
|
export type CakeAssetType = "file" | "event" | "meeting" | "note" | "data";
|