evo360-types 1.3.34 → 1.3.38

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.
@@ -14,7 +14,7 @@ export declare const zIActivityEventSchema: z.ZodObject<z.objectUtil.extendShape
14
14
  creatorRef: z.ZodAny;
15
15
  docRef: z.ZodAny;
16
16
  app: z.ZodEnum<["evo-activity", "evo-calendar", "evo-core", "evo-crm", "evo-meeting", "evo-messages", "evo-people", "evo-survey", "evo-task", "evo-tenant"]>;
17
- 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", "UPDATE_COMPANY_LEAD", "UPDATE_COMPANY_NAME", "CREATE_OFFICE", "DELETE_OFFICE", "UPDATE_OFFICE", "UPDATE_OFFICE_NAME", "UPDATE_OFFICE_TIMEZONE", "UPDATE_OFFICE_COMPANY", "UPDATE_OFFICE_LEAD", "CREATE_DEPARTMENT", "DELETE_DEPARTMENT", "UPDATE_DEPARTMENT", "UPDATE_DEPARTMENT_PARENT_DEPARTMENT", "UPDATE_DEPARTMENT_LEAD", "UPDATE_DEPARTMENT_NAME", "CREATE_EMPLOYEE", "DELETE_EMPLOYEE", "UPDATE_EMPLOYEE", "UPDATE_EMPLOYEE_PHOTO", "UPDATE_PROFILE", "UPDATE_PHOTO", "UPDATE_PASSWORD", "UPDATE_EMPLOYEE_REPORT_TO", "UPDATE_EMPLOYEE_DEPARTMENT", "UPDATE_EMPLOYEE_OFFICE", "UPDATE_EMPLOYEE_COMPANY", "UPDATE_EMPLOYEE_JOB_TITLE", "UPDATE_EMPLOYEE_WORK_EMAIL", "UPDATE_EMPLOYEE_STATUS"]>, z.ZodEnum<["CREATE_SURVEY", "DELETE_SURVEY", "UPDATE_SURVEY"]>, z.ZodEnum<["CREATE_TASK", "DELETE_TASK", "UPDATE_TASK"]>, z.ZodEnum<["CREATE_TENANT", "DELETE_TENANT", "UPDATE_TENANT"]>]>;
17
+ type: z.ZodUnion<[z.ZodEnum<["CREATE_EVENT", "DELETE_EVENT", "UPDATE_EVENT"]>, z.ZodEnum<["CREATE_COMPANY", "DELETE_COMPANY", "UPDATE_COMPANY", "UPDATE_COMPANY_LEAD", "UPDATE_COMPANY_NAME", "CREATE_OFFICE", "DELETE_OFFICE", "UPDATE_OFFICE", "UPDATE_OFFICE_NAME", "UPDATE_OFFICE_TIMEZONE", "UPDATE_OFFICE_COMPANY", "UPDATE_OFFICE_LEAD", "CREATE_DEPARTMENT", "DELETE_DEPARTMENT", "UPDATE_DEPARTMENT", "UPDATE_DEPARTMENT_PARENT_DEPARTMENT", "UPDATE_DEPARTMENT_LEAD", "UPDATE_DEPARTMENT_NAME", "CREATE_EMPLOYEE", "DELETE_EMPLOYEE", "UPDATE_EMPLOYEE", "UPDATE_EMPLOYEE_PHOTO", "UPDATE_PROFILE", "UPDATE_PHOTO", "UPDATE_PASSWORD", "UPDATE_EMPLOYEE_REPORT_TO", "UPDATE_EMPLOYEE_DEPARTMENT", "UPDATE_EMPLOYEE_OFFICE", "UPDATE_EMPLOYEE_COMPANY", "UPDATE_EMPLOYEE_JOB_TITLE", "UPDATE_EMPLOYEE_WORK_EMAIL", "UPDATE_EMPLOYEE_STATUS"]>, z.ZodEnum<["CREATE_SURVEY", "DELETE_SURVEY", "UPDATE_SURVEY"]>, z.ZodEnum<["CREATE_TASK", "DELETE_TASK", "UPDATE_TASK"]>, z.ZodEnum<["CREATE_TENANT", "DELETE_TENANT", "UPDATE_TENANT"]>]>;
18
18
  readStatus: z.ZodEnum<["new", "unread", "read", "archived", "dismissed", "snoozed"]>;
19
19
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
20
20
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -44,7 +44,7 @@ export declare const zIActivityEventSchema: z.ZodObject<z.objectUtil.extendShape
44
44
  creatorRef: z.ZodAny;
45
45
  docRef: z.ZodAny;
46
46
  app: z.ZodEnum<["evo-activity", "evo-calendar", "evo-core", "evo-crm", "evo-meeting", "evo-messages", "evo-people", "evo-survey", "evo-task", "evo-tenant"]>;
47
- 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", "UPDATE_COMPANY_LEAD", "UPDATE_COMPANY_NAME", "CREATE_OFFICE", "DELETE_OFFICE", "UPDATE_OFFICE", "UPDATE_OFFICE_NAME", "UPDATE_OFFICE_TIMEZONE", "UPDATE_OFFICE_COMPANY", "UPDATE_OFFICE_LEAD", "CREATE_DEPARTMENT", "DELETE_DEPARTMENT", "UPDATE_DEPARTMENT", "UPDATE_DEPARTMENT_PARENT_DEPARTMENT", "UPDATE_DEPARTMENT_LEAD", "UPDATE_DEPARTMENT_NAME", "CREATE_EMPLOYEE", "DELETE_EMPLOYEE", "UPDATE_EMPLOYEE", "UPDATE_EMPLOYEE_PHOTO", "UPDATE_PROFILE", "UPDATE_PHOTO", "UPDATE_PASSWORD", "UPDATE_EMPLOYEE_REPORT_TO", "UPDATE_EMPLOYEE_DEPARTMENT", "UPDATE_EMPLOYEE_OFFICE", "UPDATE_EMPLOYEE_COMPANY", "UPDATE_EMPLOYEE_JOB_TITLE", "UPDATE_EMPLOYEE_WORK_EMAIL", "UPDATE_EMPLOYEE_STATUS"]>, z.ZodEnum<["CREATE_SURVEY", "DELETE_SURVEY", "UPDATE_SURVEY"]>, z.ZodEnum<["CREATE_TASK", "DELETE_TASK", "UPDATE_TASK"]>, z.ZodEnum<["CREATE_TENANT", "DELETE_TENANT", "UPDATE_TENANT"]>]>;
47
+ type: z.ZodUnion<[z.ZodEnum<["CREATE_EVENT", "DELETE_EVENT", "UPDATE_EVENT"]>, z.ZodEnum<["CREATE_COMPANY", "DELETE_COMPANY", "UPDATE_COMPANY", "UPDATE_COMPANY_LEAD", "UPDATE_COMPANY_NAME", "CREATE_OFFICE", "DELETE_OFFICE", "UPDATE_OFFICE", "UPDATE_OFFICE_NAME", "UPDATE_OFFICE_TIMEZONE", "UPDATE_OFFICE_COMPANY", "UPDATE_OFFICE_LEAD", "CREATE_DEPARTMENT", "DELETE_DEPARTMENT", "UPDATE_DEPARTMENT", "UPDATE_DEPARTMENT_PARENT_DEPARTMENT", "UPDATE_DEPARTMENT_LEAD", "UPDATE_DEPARTMENT_NAME", "CREATE_EMPLOYEE", "DELETE_EMPLOYEE", "UPDATE_EMPLOYEE", "UPDATE_EMPLOYEE_PHOTO", "UPDATE_PROFILE", "UPDATE_PHOTO", "UPDATE_PASSWORD", "UPDATE_EMPLOYEE_REPORT_TO", "UPDATE_EMPLOYEE_DEPARTMENT", "UPDATE_EMPLOYEE_OFFICE", "UPDATE_EMPLOYEE_COMPANY", "UPDATE_EMPLOYEE_JOB_TITLE", "UPDATE_EMPLOYEE_WORK_EMAIL", "UPDATE_EMPLOYEE_STATUS"]>, z.ZodEnum<["CREATE_SURVEY", "DELETE_SURVEY", "UPDATE_SURVEY"]>, z.ZodEnum<["CREATE_TASK", "DELETE_TASK", "UPDATE_TASK"]>, z.ZodEnum<["CREATE_TENANT", "DELETE_TENANT", "UPDATE_TENANT"]>]>;
48
48
  readStatus: z.ZodEnum<["new", "unread", "read", "archived", "dismissed", "snoozed"]>;
49
49
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
50
50
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -74,7 +74,7 @@ export declare const zIActivityEventSchema: z.ZodObject<z.objectUtil.extendShape
74
74
  creatorRef: z.ZodAny;
75
75
  docRef: z.ZodAny;
76
76
  app: z.ZodEnum<["evo-activity", "evo-calendar", "evo-core", "evo-crm", "evo-meeting", "evo-messages", "evo-people", "evo-survey", "evo-task", "evo-tenant"]>;
77
- 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", "UPDATE_COMPANY_LEAD", "UPDATE_COMPANY_NAME", "CREATE_OFFICE", "DELETE_OFFICE", "UPDATE_OFFICE", "UPDATE_OFFICE_NAME", "UPDATE_OFFICE_TIMEZONE", "UPDATE_OFFICE_COMPANY", "UPDATE_OFFICE_LEAD", "CREATE_DEPARTMENT", "DELETE_DEPARTMENT", "UPDATE_DEPARTMENT", "UPDATE_DEPARTMENT_PARENT_DEPARTMENT", "UPDATE_DEPARTMENT_LEAD", "UPDATE_DEPARTMENT_NAME", "CREATE_EMPLOYEE", "DELETE_EMPLOYEE", "UPDATE_EMPLOYEE", "UPDATE_EMPLOYEE_PHOTO", "UPDATE_PROFILE", "UPDATE_PHOTO", "UPDATE_PASSWORD", "UPDATE_EMPLOYEE_REPORT_TO", "UPDATE_EMPLOYEE_DEPARTMENT", "UPDATE_EMPLOYEE_OFFICE", "UPDATE_EMPLOYEE_COMPANY", "UPDATE_EMPLOYEE_JOB_TITLE", "UPDATE_EMPLOYEE_WORK_EMAIL", "UPDATE_EMPLOYEE_STATUS"]>, z.ZodEnum<["CREATE_SURVEY", "DELETE_SURVEY", "UPDATE_SURVEY"]>, z.ZodEnum<["CREATE_TASK", "DELETE_TASK", "UPDATE_TASK"]>, z.ZodEnum<["CREATE_TENANT", "DELETE_TENANT", "UPDATE_TENANT"]>]>;
77
+ type: z.ZodUnion<[z.ZodEnum<["CREATE_EVENT", "DELETE_EVENT", "UPDATE_EVENT"]>, z.ZodEnum<["CREATE_COMPANY", "DELETE_COMPANY", "UPDATE_COMPANY", "UPDATE_COMPANY_LEAD", "UPDATE_COMPANY_NAME", "CREATE_OFFICE", "DELETE_OFFICE", "UPDATE_OFFICE", "UPDATE_OFFICE_NAME", "UPDATE_OFFICE_TIMEZONE", "UPDATE_OFFICE_COMPANY", "UPDATE_OFFICE_LEAD", "CREATE_DEPARTMENT", "DELETE_DEPARTMENT", "UPDATE_DEPARTMENT", "UPDATE_DEPARTMENT_PARENT_DEPARTMENT", "UPDATE_DEPARTMENT_LEAD", "UPDATE_DEPARTMENT_NAME", "CREATE_EMPLOYEE", "DELETE_EMPLOYEE", "UPDATE_EMPLOYEE", "UPDATE_EMPLOYEE_PHOTO", "UPDATE_PROFILE", "UPDATE_PHOTO", "UPDATE_PASSWORD", "UPDATE_EMPLOYEE_REPORT_TO", "UPDATE_EMPLOYEE_DEPARTMENT", "UPDATE_EMPLOYEE_OFFICE", "UPDATE_EMPLOYEE_COMPANY", "UPDATE_EMPLOYEE_JOB_TITLE", "UPDATE_EMPLOYEE_WORK_EMAIL", "UPDATE_EMPLOYEE_STATUS"]>, z.ZodEnum<["CREATE_SURVEY", "DELETE_SURVEY", "UPDATE_SURVEY"]>, z.ZodEnum<["CREATE_TASK", "DELETE_TASK", "UPDATE_TASK"]>, z.ZodEnum<["CREATE_TENANT", "DELETE_TENANT", "UPDATE_TENANT"]>]>;
78
78
  readStatus: z.ZodEnum<["new", "unread", "read", "archived", "dismissed", "snoozed"]>;
79
79
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
80
80
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -4,11 +4,10 @@ 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");
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");
7
+ const zod_schemas_3 = require("../evo-people/zod-schemas");
8
+ const zod_schemas_4 = require("../evo-survey/zod-schemas");
9
+ const zod_schemas_5 = require("../evo-task/zod-schemas");
10
+ const zod_schemas_6 = require("../evo-tenant/zod-schemas");
12
11
  // Enum for activity read status
13
12
  exports.zReadStatusSchema = zod_1.z.enum([
14
13
  "new",
@@ -27,11 +26,10 @@ exports.zIActivityEventSchema = zod_schemas_1.zFireDocSchema // Extend from Fire
27
26
  app: zod_schemas_1.zEvoAppSchema,
28
27
  type: zod_1.z.union([
29
28
  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,
29
+ zod_schemas_3.zPeopleActionSchema,
30
+ zod_schemas_4.zSurveyActionSchema,
31
+ zod_schemas_5.zTaskActionSchema,
32
+ zod_schemas_6.zTenantActionSchema,
35
33
  ]),
36
34
  readStatus: exports.zReadStatusSchema,
37
35
  metadata: zod_1.z.record(zod_1.z.any()).optional(),
@@ -5,7 +5,6 @@ import {
5
5
  zTagSchema,
6
6
  } from "../shared/zod-schemas";
7
7
  import { zCalendarActionSchema } from "../evo-calendar/zod-schemas";
8
- import { zMeetingActionSchema } from "../evo-meeting/zod-schemas";
9
8
  import { zPeopleActionSchema } from "../evo-people/zod-schemas";
10
9
  import { zSurveyActionSchema } from "../evo-survey/zod-schemas";
11
10
  import { zTaskActionSchema } from "../evo-task/zod-schemas";
@@ -30,7 +29,6 @@ export const zIActivityEventSchema = zFireDocSchema // Extend from FireDocSchema
30
29
  app: zEvoAppSchema,
31
30
  type: z.union([
32
31
  zCalendarActionSchema,
33
- zMeetingActionSchema,
34
32
  zPeopleActionSchema,
35
33
  zSurveyActionSchema,
36
34
  zTaskActionSchema,
@@ -36,8 +36,8 @@ export declare const zEventSchema: z.ZodObject<z.objectUtil.extendShape<{
36
36
  model_ver: number;
37
37
  title: string;
38
38
  creatorName: string;
39
- eventType: "other" | "event" | "meeting" | "workshop";
40
- eventStatus: "completed" | "cancelled" | "scheduled";
39
+ eventType: "event" | "meeting" | "workshop" | "other";
40
+ eventStatus: "scheduled" | "completed" | "cancelled";
41
41
  ref?: any;
42
42
  created_at?: Date | null | undefined;
43
43
  updated_at?: Date | null | undefined;
@@ -54,8 +54,8 @@ export declare const zEventSchema: z.ZodObject<z.objectUtil.extendShape<{
54
54
  tenant: string;
55
55
  title: string;
56
56
  creatorName: string;
57
- eventType: "other" | "event" | "meeting" | "workshop";
58
- eventStatus: "completed" | "cancelled" | "scheduled";
57
+ eventType: "event" | "meeting" | "workshop" | "other";
58
+ eventStatus: "scheduled" | "completed" | "cancelled";
59
59
  ref?: any;
60
60
  model_ver?: number | undefined;
61
61
  created_at?: Date | null | undefined;
@@ -964,7 +964,7 @@ export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendSha
964
964
  id: string;
965
965
  tenant: string;
966
966
  model_ver: number;
967
- status: "not_started" | "in_progress" | "completed";
967
+ status: "completed" | "in_progress" | "not_started";
968
968
  user_name: string;
969
969
  modified_after_completion: boolean;
970
970
  answer_count: number;
@@ -994,7 +994,7 @@ export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendSha
994
994
  }, {
995
995
  id: string;
996
996
  tenant: string;
997
- status: "not_started" | "in_progress" | "completed";
997
+ status: "completed" | "in_progress" | "not_started";
998
998
  ref?: any;
999
999
  model_ver?: number | undefined;
1000
1000
  created_at?: Date | null | undefined;
@@ -1048,7 +1048,7 @@ export declare const zSurveyInviteeSchema: z.ZodObject<z.objectUtil.extendShape<
1048
1048
  model_ver: number;
1049
1049
  phone: string;
1050
1050
  isAnonymous: boolean;
1051
- submission_status: "not_started" | "in_progress" | "completed";
1051
+ submission_status: "completed" | "in_progress" | "not_started";
1052
1052
  ref?: any;
1053
1053
  created_at?: Date | null | undefined;
1054
1054
  updated_at?: Date | null | undefined;
@@ -1074,7 +1074,7 @@ export declare const zSurveyInviteeSchema: z.ZodObject<z.objectUtil.extendShape<
1074
1074
  invitedUserId?: string | undefined;
1075
1075
  isAnonymous?: boolean | undefined;
1076
1076
  submissionId?: string | undefined;
1077
- submission_status?: "not_started" | "in_progress" | "completed" | undefined;
1077
+ submission_status?: "completed" | "in_progress" | "not_started" | undefined;
1078
1078
  }>;
1079
1079
  export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendShape<{
1080
1080
  id: z.ZodString;
@@ -1207,7 +1207,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1207
1207
  model_ver: number;
1208
1208
  phone: string;
1209
1209
  isAnonymous: boolean;
1210
- submission_status: "not_started" | "in_progress" | "completed";
1210
+ submission_status: "completed" | "in_progress" | "not_started";
1211
1211
  ref?: any;
1212
1212
  created_at?: Date | null | undefined;
1213
1213
  updated_at?: Date | null | undefined;
@@ -1233,7 +1233,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1233
1233
  invitedUserId?: string | undefined;
1234
1234
  isAnonymous?: boolean | undefined;
1235
1235
  submissionId?: string | undefined;
1236
- submission_status?: "not_started" | "in_progress" | "completed" | undefined;
1236
+ submission_status?: "completed" | "in_progress" | "not_started" | undefined;
1237
1237
  }>, "many">>>;
1238
1238
  invitee_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1239
1239
  submissions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
@@ -1309,7 +1309,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1309
1309
  id: string;
1310
1310
  tenant: string;
1311
1311
  model_ver: number;
1312
- status: "not_started" | "in_progress" | "completed";
1312
+ status: "completed" | "in_progress" | "not_started";
1313
1313
  user_name: string;
1314
1314
  modified_after_completion: boolean;
1315
1315
  answer_count: number;
@@ -1339,7 +1339,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1339
1339
  }, {
1340
1340
  id: string;
1341
1341
  tenant: string;
1342
- status: "not_started" | "in_progress" | "completed";
1342
+ status: "completed" | "in_progress" | "not_started";
1343
1343
  ref?: any;
1344
1344
  model_ver?: number | undefined;
1345
1345
  created_at?: Date | null | undefined;
@@ -1377,7 +1377,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1377
1377
  id: string;
1378
1378
  tenant: string;
1379
1379
  model_ver: number;
1380
- status: "draft" | "in_progress" | "open" | "closed" | "paused";
1380
+ status: "draft" | "open" | "closed" | "in_progress" | "paused";
1381
1381
  start_date: Date | null;
1382
1382
  end_date: Date | null;
1383
1383
  submission_count: number;
@@ -1428,7 +1428,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1428
1428
  id: string;
1429
1429
  tenant: string;
1430
1430
  model_ver: number;
1431
- status: "not_started" | "in_progress" | "completed";
1431
+ status: "completed" | "in_progress" | "not_started";
1432
1432
  user_name: string;
1433
1433
  modified_after_completion: boolean;
1434
1434
  answer_count: number;
@@ -1463,7 +1463,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1463
1463
  model_ver: number;
1464
1464
  phone: string;
1465
1465
  isAnonymous: boolean;
1466
- submission_status: "not_started" | "in_progress" | "completed";
1466
+ submission_status: "completed" | "in_progress" | "not_started";
1467
1467
  ref?: any;
1468
1468
  created_at?: Date | null | undefined;
1469
1469
  updated_at?: Date | null | undefined;
@@ -1478,7 +1478,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1478
1478
  name: string;
1479
1479
  id: string;
1480
1480
  tenant: string;
1481
- status: "draft" | "in_progress" | "open" | "closed" | "paused";
1481
+ status: "draft" | "open" | "closed" | "in_progress" | "paused";
1482
1482
  start_date: Date | null;
1483
1483
  end_date: Date | null;
1484
1484
  allow_edit_answers: boolean;
@@ -1522,7 +1522,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1522
1522
  submissions?: {
1523
1523
  id: string;
1524
1524
  tenant: string;
1525
- status: "not_started" | "in_progress" | "completed";
1525
+ status: "completed" | "in_progress" | "not_started";
1526
1526
  ref?: any;
1527
1527
  model_ver?: number | undefined;
1528
1528
  created_at?: Date | null | undefined;
@@ -1570,7 +1570,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1570
1570
  invitedUserId?: string | undefined;
1571
1571
  isAnonymous?: boolean | undefined;
1572
1572
  submissionId?: string | undefined;
1573
- submission_status?: "not_started" | "in_progress" | "completed" | undefined;
1573
+ submission_status?: "completed" | "in_progress" | "not_started" | undefined;
1574
1574
  }[] | null | undefined;
1575
1575
  invitee_count?: number | undefined;
1576
1576
  submission_not_started_count?: number | undefined;
@@ -0,0 +1,52 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Schema para validação de IDocumentTag
4
+ */
5
+ export declare const zDocumentTagSchema: z.ZodObject<{
6
+ name: z.ZodString;
7
+ ref: z.ZodAny;
8
+ collection: z.ZodString;
9
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ name: string;
12
+ collection: string;
13
+ ref?: any;
14
+ category?: string | null | undefined;
15
+ }, {
16
+ name: string;
17
+ collection: string;
18
+ ref?: any;
19
+ category?: string | null | undefined;
20
+ }>;
21
+ /**
22
+ * Schema para validação de ITagCounter
23
+ */
24
+ export declare const zTagCounterSchema: z.ZodObject<{
25
+ name: z.ZodString;
26
+ total_documents: z.ZodNumber;
27
+ collections: z.ZodRecord<z.ZodString, z.ZodNumber>;
28
+ categories: z.ZodRecord<z.ZodString, z.ZodNumber>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ name: string;
31
+ total_documents: number;
32
+ collections: Record<string, number>;
33
+ categories: Record<string, number>;
34
+ }, {
35
+ name: string;
36
+ total_documents: number;
37
+ collections: Record<string, number>;
38
+ categories: Record<string, number>;
39
+ }>;
40
+ /**
41
+ * Schema para validação de ITagCollectionIndex
42
+ */
43
+ export declare const zTagCollectionIndexSchema: z.ZodObject<{
44
+ collection: z.ZodString;
45
+ tags: z.ZodArray<z.ZodString, "many">;
46
+ }, "strip", z.ZodTypeAny, {
47
+ tags: string[];
48
+ collection: string;
49
+ }, {
50
+ tags: string[];
51
+ collection: string;
52
+ }>;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zTagCollectionIndexSchema = exports.zTagCounterSchema = exports.zDocumentTagSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ // ----- TagIndex Zod Schemas
6
+ /**
7
+ * Schema para validação de IDocumentTag
8
+ */
9
+ exports.zDocumentTagSchema = zod_1.z.object({
10
+ name: zod_1.z.string().min(1).max(100), // Nome da tag (obrigatório, 1-100 caracteres)
11
+ ref: zod_1.z.any(), // FirestoreDocumentReference
12
+ collection: zod_1.z.string().min(1).max(50), // Nome da coleção (obrigatório, 1-50 caracteres)
13
+ category: zod_1.z.string().max(50).nullable().optional(), // Categoria da tag (opcional, até 50 caracteres)
14
+ });
15
+ /**
16
+ * Schema para validação de ITagCounter
17
+ */
18
+ exports.zTagCounterSchema = zod_1.z.object({
19
+ name: zod_1.z.string().min(1).max(100), // Nome da tag (obrigatório, 1-100 caracteres)
20
+ total_documents: zod_1.z.number().int().min(0), // Total de documentos (inteiro não negativo)
21
+ collections: zod_1.z.record(zod_1.z.string(), zod_1.z.number().int().min(0)), // Contagem por coleção
22
+ categories: zod_1.z.record(zod_1.z.string(), zod_1.z.number().int().min(0)), // Contagem por categoria
23
+ });
24
+ /**
25
+ * Schema para validação de ITagCollectionIndex
26
+ */
27
+ exports.zTagCollectionIndexSchema = zod_1.z.object({
28
+ collection: zod_1.z.string().min(1).max(50), // Nome da coleção (obrigatório, 1-50 caracteres)
29
+ tags: zod_1.z.array(zod_1.z.string().min(1).max(100)).max(1000), // Array de tags (máximo 1000 tags por coleção)
30
+ });
@@ -0,0 +1,31 @@
1
+ import { z } from "zod";
2
+
3
+ // ----- TagIndex Zod Schemas
4
+
5
+ /**
6
+ * Schema para validação de IDocumentTag
7
+ */
8
+ export const zDocumentTagSchema = z.object({
9
+ name: z.string().min(1).max(100), // Nome da tag (obrigatório, 1-100 caracteres)
10
+ ref: z.any(), // FirestoreDocumentReference
11
+ collection: z.string().min(1).max(50), // Nome da coleção (obrigatório, 1-50 caracteres)
12
+ category: z.string().max(50).nullable().optional(), // Categoria da tag (opcional, até 50 caracteres)
13
+ });
14
+
15
+ /**
16
+ * Schema para validação de ITagCounter
17
+ */
18
+ export const zTagCounterSchema = z.object({
19
+ name: z.string().min(1).max(100), // Nome da tag (obrigatório, 1-100 caracteres)
20
+ total_documents: z.number().int().min(0), // Total de documentos (inteiro não negativo)
21
+ collections: z.record(z.string(), z.number().int().min(0)), // Contagem por coleção
22
+ categories: z.record(z.string(), z.number().int().min(0)), // Contagem por categoria
23
+ });
24
+
25
+ /**
26
+ * Schema para validação de ITagCollectionIndex
27
+ */
28
+ export const zTagCollectionIndexSchema = z.object({
29
+ collection: z.string().min(1).max(50), // Nome da coleção (obrigatório, 1-50 caracteres)
30
+ tags: z.array(z.string().min(1).max(100)).max(1000), // Array de tags (máximo 1000 tags por coleção)
31
+ });
package/dist/index.d.ts CHANGED
@@ -15,9 +15,8 @@ export * from "./types/evo-med/people";
15
15
  export * from "./types/evo-med/procedure";
16
16
  export * from "./types/evo-calendar";
17
17
  export * from "./types/evo-task";
18
+ export * from "./types/evo-tags";
18
19
  export * from "./types/evo-survey";
19
- export * from "./types/evo-cake";
20
- export * from "./types/evo-meeting";
21
20
 
22
21
  // zod schemas
23
22
  export * from "./apps/shared/zod-schemas";
@@ -35,7 +34,6 @@ export * from "./apps/evo-med/insurance/zod-schemas";
35
34
  export * from "./apps/evo-med/people/zod-schemas";
36
35
  export * from "./apps/evo-med/procedure/zod-schemas";
37
36
  export * from "./apps/evo-calendar/zod-schemas";
37
+ export * from "./apps/evo-tags/zod-schemas";
38
38
  export * from "./apps/evo-task/zod-schemas";
39
39
  export * from "./apps/evo-survey/zod-schemas";
40
- export * from "./apps/evo-cake/zod-schemas";
41
- export * from "./apps/evo-meeting/zod-schemas";
package/dist/index.js CHANGED
@@ -30,10 +30,9 @@ __exportStar(require("./types/evo-med/insurance"), exports);
30
30
  __exportStar(require("./types/evo-med/people"), exports);
31
31
  __exportStar(require("./types/evo-med/procedure"), exports);
32
32
  __exportStar(require("./types/evo-calendar"), exports);
33
+ __exportStar(require("./types/evo-tags"), exports);
33
34
  __exportStar(require("./types/evo-task"), exports);
34
35
  __exportStar(require("./types/evo-survey"), exports);
35
- __exportStar(require("./types/evo-cake"), exports);
36
- __exportStar(require("./types/evo-meeting"), exports);
37
36
  // zod schemas
38
37
  __exportStar(require("./apps/shared/zod-schemas"), exports);
39
38
  __exportStar(require("./apps/evo-core/zod-schemas"), exports);
@@ -50,7 +49,6 @@ __exportStar(require("./apps/evo-med/insurance/zod-schemas"), exports);
50
49
  __exportStar(require("./apps/evo-med/people/zod-schemas"), exports);
51
50
  __exportStar(require("./apps/evo-med/procedure/zod-schemas"), exports);
52
51
  __exportStar(require("./apps/evo-calendar/zod-schemas"), exports);
52
+ __exportStar(require("./apps/evo-tags/zod-schemas"), exports);
53
53
  __exportStar(require("./apps/evo-task/zod-schemas"), exports);
54
54
  __exportStar(require("./apps/evo-survey/zod-schemas"), exports);
55
- __exportStar(require("./apps/evo-cake/zod-schemas"), exports);
56
- __exportStar(require("./apps/evo-meeting/zod-schemas"), exports);
package/dist/index.ts CHANGED
@@ -14,10 +14,9 @@ export * from "./types/evo-med/insurance";
14
14
  export * from "./types/evo-med/people";
15
15
  export * from "./types/evo-med/procedure";
16
16
  export * from "./types/evo-calendar";
17
+ export * from "./types/evo-tags";
17
18
  export * from "./types/evo-task";
18
19
  export * from "./types/evo-survey";
19
- export * from "./types/evo-cake";
20
- export * from "./types/evo-meeting";
21
20
 
22
21
  // zod schemas
23
22
  export * from "./apps/shared/zod-schemas";
@@ -35,7 +34,6 @@ export * from "./apps/evo-med/insurance/zod-schemas";
35
34
  export * from "./apps/evo-med/people/zod-schemas";
36
35
  export * from "./apps/evo-med/procedure/zod-schemas";
37
36
  export * from "./apps/evo-calendar/zod-schemas";
37
+ export * from "./apps/evo-tags/zod-schemas";
38
38
  export * from "./apps/evo-task/zod-schemas";
39
39
  export * from "./apps/evo-survey/zod-schemas";
40
- export * from "./apps/evo-cake/zod-schemas";
41
- export * from "./apps/evo-meeting/zod-schemas";
@@ -1,6 +1,5 @@
1
1
  export * from "./fb_collections";
2
2
  import type { CalendarAction } from "../evo-calendar";
3
- import type { MeetingAction } from "../evo-meeting";
4
3
  import type { MedPeopleAction } from "../evo-med/people";
5
4
  import type { SurveyAction, SurveyDeploymentAction } from "../evo-survey";
6
5
  import type { TaskAction } from "../evo-task";
@@ -21,7 +20,7 @@ export interface IActivityEvent extends IFireDoc {
21
20
  creatorPath?: string;
22
21
  docPath?: string;
23
22
  app: EvoApp;
24
- type: CalendarAction | MeetingAction | MedPeopleAction | SurveyAction | SurveyDeploymentAction | TaskAction | TenantAction;
23
+ type: CalendarAction | MedPeopleAction | SurveyAction | SurveyDeploymentAction | TaskAction | TenantAction;
25
24
  readStatus: ActivityReadStatus;
26
25
  metadata?: Record<string, any>;
27
26
  tags?: ITag[] | null;
@@ -1,6 +1,5 @@
1
1
  export * from "./fb_collections";
2
2
  import type { CalendarAction } from "../evo-calendar";
3
- import type { MeetingAction } from "../evo-meeting";
4
3
  import type { MedPeopleAction } from "../evo-med/people";
5
4
  import type { SurveyAction, SurveyDeploymentAction } from "../evo-survey";
6
5
  import type { TaskAction } from "../evo-task";
@@ -15,6 +14,7 @@ export type ActivityReadStatus =
15
14
  | "archived"
16
15
  | "dismissed"
17
16
  | "snoozed";
17
+
18
18
  export enum IActivityReadStatus {
19
19
  New = "new",
20
20
  Unread = "unread",
@@ -33,7 +33,6 @@ export interface IActivityEvent extends IFireDoc {
33
33
  app: EvoApp;
34
34
  type:
35
35
  | CalendarAction
36
- | MeetingAction
37
36
  | MedPeopleAction
38
37
  | SurveyAction
39
38
  | SurveyDeploymentAction
@@ -1,6 +1,5 @@
1
1
  export * from "./fb_collections";
2
2
  import type { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
- import type { MeetingType } from "../evo-meeting";
4
3
  export type CalendarAction = "CREATE_EVENT" | "DELETE_EVENT" | "UPDATE_EVENT";
5
4
  export declare enum ICalendarAction {
6
5
  Create_event = "CREATE_EVENT",
@@ -22,7 +21,6 @@ export declare enum ICalendarEventType {
22
21
  }
23
22
  export interface IEventMeeting {
24
23
  meetingRef?: FirestoreDocumentReference;
25
- type: MeetingType;
26
24
  readonly task_count?: number;
27
25
  readonly talkingPoints_count?: number;
28
26
  tags?: ITag[] | null;
@@ -1,6 +1,5 @@
1
1
  export * from "./fb_collections";
2
2
  import type { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
- import type { MeetingType } from "../evo-meeting";
4
3
 
5
4
  // ----- CalendarTypes
6
5
  // Enum for Calendar Action - used in Activities tracking
@@ -31,7 +30,6 @@ export enum ICalendarEventType {
31
30
  // Interface for Meeting within a Event (meetingTasks)
32
31
  export interface IEventMeeting {
33
32
  meetingRef?: FirestoreDocumentReference; // Reference to the original task
34
- type: MeetingType; // Type of meeting
35
33
  readonly task_count?: number;
36
34
  readonly talkingPoints_count?: number;
37
35
  tags?: ITag[] | null;
@@ -0,0 +1,4 @@
1
+ export declare const EVO_TAGS_APP = "evo-tags";
2
+ export declare const DOCUMENT_TAGS_COLLECTION = "document-tags";
3
+ export declare const TAG_COUNTERS_COLLECTION = "tag-counters";
4
+ export declare const TAG_COLLECTION_INDEX_COLLECTION = "tag-collection-index";
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TAG_COLLECTION_INDEX_COLLECTION = exports.TAG_COUNTERS_COLLECTION = exports.DOCUMENT_TAGS_COLLECTION = exports.EVO_TAGS_APP = void 0;
4
+ //EVO Tags Application Doc
5
+ exports.EVO_TAGS_APP = "evo-tags";
6
+ // Tag indexes collections
7
+ exports.DOCUMENT_TAGS_COLLECTION = "document-tags";
8
+ exports.TAG_COUNTERS_COLLECTION = "tag-counters";
9
+ exports.TAG_COLLECTION_INDEX_COLLECTION = "tag-collection-index";
@@ -0,0 +1,7 @@
1
+ //EVO Tags Application Doc
2
+ export const EVO_TAGS_APP = "evo-tags";
3
+
4
+ // Tag indexes collections
5
+ export const DOCUMENT_TAGS_COLLECTION = "document-tags";
6
+ export const TAG_COUNTERS_COLLECTION = "tag-counters";
7
+ export const TAG_COLLECTION_INDEX_COLLECTION = "tag-collection-index";
@@ -0,0 +1,30 @@
1
+ export * from "./fb_collections";
2
+ import type { FirestoreDocumentReference, IFireDoc } from "../shared";
3
+ /**
4
+ * Interface para o índice de documentos com tags
5
+ * Armazena cada tag adicionada a cada documento
6
+ */
7
+ export interface IDocumentTag extends IFireDoc {
8
+ name: string;
9
+ ref: FirestoreDocumentReference;
10
+ collection: string;
11
+ category: string | null;
12
+ }
13
+ /**
14
+ * Interface para o contador de tags
15
+ * Sumariza todas as tags criadas com quantidade total de documentos
16
+ */
17
+ export interface ITagCounter extends IFireDoc {
18
+ name: string;
19
+ total_documents: number;
20
+ collections: Record<string, number>;
21
+ categories: Record<string, number>;
22
+ }
23
+ /**
24
+ * Interface para o índice de tags por coleção
25
+ * Lista simples das tags associadas a documentos de uma determinada coleção
26
+ */
27
+ export interface ITagCollectionIndex extends IFireDoc {
28
+ collection: string;
29
+ tags: string[];
30
+ }
@@ -0,0 +1,17 @@
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
+ __exportStar(require("./fb_collections"), exports);
@@ -0,0 +1,35 @@
1
+ export * from "./fb_collections";
2
+ import type { FirestoreDocumentReference, IFireDoc } from "../shared";
3
+
4
+ // ----- TagIndexTypes
5
+
6
+ /**
7
+ * Interface para o índice de documentos com tags
8
+ * Armazena cada tag adicionada a cada documento
9
+ */
10
+ export interface IDocumentTag extends IFireDoc {
11
+ name: string; // Nome da tag
12
+ ref: FirestoreDocumentReference; // Referência do documento etiquetado
13
+ collection: string; // Nome da coleção do documento
14
+ category: string | null; // Categoria da tag (opcional)
15
+ }
16
+
17
+ /**
18
+ * Interface para o contador de tags
19
+ * Sumariza todas as tags criadas com quantidade total de documentos
20
+ */
21
+ export interface ITagCounter extends IFireDoc {
22
+ name: string; // Nome da tag
23
+ total_documents: number; // Total de documentos associados à tag
24
+ collections: Record<string, number>; // Contagem por coleção { "patients": 5, "leads": 2 }
25
+ categories: Record<string, number>; // Contagem por categoria { "medical": 3, "urgent": 2 }
26
+ }
27
+
28
+ /**
29
+ * Interface para o índice de tags por coleção
30
+ * Lista simples das tags associadas a documentos de uma determinada coleção
31
+ */
32
+ export interface ITagCollectionIndex extends IFireDoc {
33
+ collection: string; // Nome da coleção
34
+ tags: string[]; // Array com as tags já utilizadas nesta coleção
35
+ }
@@ -38,7 +38,7 @@ export interface IAddress {
38
38
  country?: string;
39
39
  geo?: IGeoPoint;
40
40
  }
41
- export type EvoApp = "evo-activity" | "evo-calendar" | "evo-core" | "evo-meeting" | "evo-people" | "evo-med" | "evo-survey" | "evo-task" | "evo-tenant";
41
+ export type EvoApp = "evo-activity" | "evo-calendar" | "evo-core" | "evo-meeting" | "evo-people" | "evo-med" | "evo-survey" | "evo-task" | "evo-tenant" | "evo-tags";
42
42
  export declare enum IEvoApp {
43
43
  EvoActivity = "evo-activity",
44
44
  EvoCalendar = "evo-calendar",
@@ -48,5 +48,6 @@ export declare enum IEvoApp {
48
48
  EvoMed = "evo-med",
49
49
  EvoSurvey = "evo-survey",
50
50
  EvoTask = "evo-task",
51
- EvoTenant = "evo-tenant"
51
+ EvoTenant = "evo-tenant",
52
+ EvoTags = "evo-tags"
52
53
  }
@@ -27,4 +27,5 @@ var IEvoApp;
27
27
  IEvoApp["EvoSurvey"] = "evo-survey";
28
28
  IEvoApp["EvoTask"] = "evo-task";
29
29
  IEvoApp["EvoTenant"] = "evo-tenant";
30
+ IEvoApp["EvoTags"] = "evo-tags";
30
31
  })(IEvoApp || (exports.IEvoApp = IEvoApp = {}));
@@ -60,7 +60,8 @@ export type EvoApp =
60
60
  | "evo-med"
61
61
  | "evo-survey"
62
62
  | "evo-task"
63
- | "evo-tenant";
63
+ | "evo-tenant"
64
+ | "evo-tags";
64
65
  export enum IEvoApp {
65
66
  EvoActivity = "evo-activity",
66
67
  EvoCalendar = "evo-calendar",
@@ -71,4 +72,5 @@ export enum IEvoApp {
71
72
  EvoSurvey = "evo-survey",
72
73
  EvoTask = "evo-task",
73
74
  EvoTenant = "evo-tenant",
75
+ EvoTags = "evo-tags",
74
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.34",
3
+ "version": "1.3.38",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",