evo360-types 1.3.39 → 1.3.40

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.
@@ -13,8 +13,8 @@ export declare const zIActivityEventSchema: z.ZodObject<z.objectUtil.extendShape
13
13
  creatorName: z.ZodString;
14
14
  creatorRef: z.ZodAny;
15
15
  docRef: z.ZodAny;
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_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"]>]>;
16
+ app: z.ZodEnum<["evo-activity", "evo-core", "evo-crm", "evo-med", "evo-messages", "evo-people", "evo-survey", "evo-tags", "evo-task", "evo-tenant"]>;
17
+ type: z.ZodUnion<[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<{
@@ -43,8 +43,8 @@ export declare const zIActivityEventSchema: z.ZodObject<z.objectUtil.extendShape
43
43
  creatorName: z.ZodString;
44
44
  creatorRef: z.ZodAny;
45
45
  docRef: z.ZodAny;
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_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"]>]>;
46
+ app: z.ZodEnum<["evo-activity", "evo-core", "evo-crm", "evo-med", "evo-messages", "evo-people", "evo-survey", "evo-tags", "evo-task", "evo-tenant"]>;
47
+ type: z.ZodUnion<[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<{
@@ -73,8 +73,8 @@ export declare const zIActivityEventSchema: z.ZodObject<z.objectUtil.extendShape
73
73
  creatorName: z.ZodString;
74
74
  creatorRef: z.ZodAny;
75
75
  docRef: z.ZodAny;
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_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"]>]>;
76
+ app: z.ZodEnum<["evo-activity", "evo-core", "evo-crm", "evo-med", "evo-messages", "evo-people", "evo-survey", "evo-tags", "evo-task", "evo-tenant"]>;
77
+ type: z.ZodUnion<[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<{
@@ -3,11 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
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
- const zod_schemas_2 = require("../evo-calendar/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");
6
+ const zod_schemas_2 = require("../evo-people/zod-schemas");
7
+ const zod_schemas_3 = require("../evo-survey/zod-schemas");
8
+ const zod_schemas_4 = require("../evo-task/zod-schemas");
9
+ const zod_schemas_5 = require("../evo-tenant/zod-schemas");
11
10
  // Enum for activity read status
12
11
  exports.zReadStatusSchema = zod_1.z.enum([
13
12
  "new",
@@ -25,11 +24,10 @@ exports.zIActivityEventSchema = zod_schemas_1.zFireDocSchema // Extend from Fire
25
24
  docRef: zod_1.z.any(),
26
25
  app: zod_schemas_1.zEvoAppSchema,
27
26
  type: zod_1.z.union([
28
- zod_schemas_2.zCalendarActionSchema,
29
- zod_schemas_3.zPeopleActionSchema,
30
- zod_schemas_4.zSurveyActionSchema,
31
- zod_schemas_5.zTaskActionSchema,
32
- zod_schemas_6.zTenantActionSchema,
27
+ zod_schemas_2.zPeopleActionSchema,
28
+ zod_schemas_3.zSurveyActionSchema,
29
+ zod_schemas_4.zTaskActionSchema,
30
+ zod_schemas_5.zTenantActionSchema,
33
31
  ]),
34
32
  readStatus: exports.zReadStatusSchema,
35
33
  metadata: zod_1.z.record(zod_1.z.any()).optional(),
@@ -4,7 +4,7 @@ import {
4
4
  zFireDocSchema,
5
5
  zTagSchema,
6
6
  } from "../shared/zod-schemas";
7
- import { zCalendarActionSchema } from "../evo-calendar/zod-schemas";
7
+
8
8
  import { zPeopleActionSchema } from "../evo-people/zod-schemas";
9
9
  import { zSurveyActionSchema } from "../evo-survey/zod-schemas";
10
10
  import { zTaskActionSchema } from "../evo-task/zod-schemas";
@@ -28,7 +28,6 @@ export const zIActivityEventSchema = zFireDocSchema // Extend from FireDocSchema
28
28
  docRef: z.any(),
29
29
  app: zEvoAppSchema,
30
30
  type: z.union([
31
- zCalendarActionSchema,
32
31
  zPeopleActionSchema,
33
32
  zSurveyActionSchema,
34
33
  zTaskActionSchema,
@@ -95,10 +95,10 @@ export declare const ProcedureSchema: z.ZodObject<z.objectUtil.extendShape<{
95
95
  tenant: string;
96
96
  model_ver: number;
97
97
  status: "draft" | "active" | "inactive";
98
- description: string | null;
99
98
  type_code: string | null;
100
99
  type_name: string | null;
101
100
  acronym: string | null;
101
+ description: string | null;
102
102
  color: string | null;
103
103
  technical_name: string;
104
104
  duration: number | null;
@@ -125,7 +125,6 @@ export declare const ProcedureSchema: z.ZodObject<z.objectUtil.extendShape<{
125
125
  created_at?: Date | null | undefined;
126
126
  updated_at?: Date | null | undefined;
127
127
  deleted_at?: Date | null | undefined;
128
- description?: string | null | undefined;
129
128
  tags?: {
130
129
  name: string;
131
130
  hidden: boolean;
@@ -135,6 +134,7 @@ export declare const ProcedureSchema: z.ZodObject<z.objectUtil.extendShape<{
135
134
  type_name?: string | null | undefined;
136
135
  typeRef?: any;
137
136
  acronym?: string | null | undefined;
137
+ description?: string | null | undefined;
138
138
  color?: string | null | undefined;
139
139
  duration?: number | null | undefined;
140
140
  tuss?: string | 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: "completed" | "in_progress" | "not_started";
967
+ status: "in_progress" | "not_started" | "completed";
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: "completed" | "in_progress" | "not_started";
997
+ status: "in_progress" | "not_started" | "completed";
998
998
  ref?: any;
999
999
  model_ver?: number | undefined;
1000
1000
  created_at?: Date | null | undefined;
@@ -1048,14 +1048,14 @@ 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: "completed" | "in_progress" | "not_started";
1051
+ submission_status: "in_progress" | "not_started" | "completed";
1052
1052
  ref?: any;
1053
1053
  created_at?: Date | null | undefined;
1054
1054
  updated_at?: Date | null | undefined;
1055
1055
  deleted_at?: Date | null | undefined;
1056
1056
  email?: string | undefined;
1057
- description?: string | undefined;
1058
1057
  photo_url?: string | null | undefined;
1058
+ description?: string | undefined;
1059
1059
  invitedUserId?: string | undefined;
1060
1060
  submissionId?: string | undefined;
1061
1061
  }, {
@@ -1068,13 +1068,13 @@ export declare const zSurveyInviteeSchema: z.ZodObject<z.objectUtil.extendShape<
1068
1068
  updated_at?: Date | null | undefined;
1069
1069
  deleted_at?: Date | null | undefined;
1070
1070
  email?: string | undefined;
1071
- description?: string | undefined;
1072
1071
  photo_url?: string | null | undefined;
1073
1072
  phone?: string | undefined;
1073
+ description?: string | undefined;
1074
1074
  invitedUserId?: string | undefined;
1075
1075
  isAnonymous?: boolean | undefined;
1076
1076
  submissionId?: string | undefined;
1077
- submission_status?: "completed" | "in_progress" | "not_started" | undefined;
1077
+ submission_status?: "in_progress" | "not_started" | "completed" | undefined;
1078
1078
  }>;
1079
1079
  export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendShape<{
1080
1080
  id: z.ZodString;
@@ -1207,14 +1207,14 @@ 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: "completed" | "in_progress" | "not_started";
1210
+ submission_status: "in_progress" | "not_started" | "completed";
1211
1211
  ref?: any;
1212
1212
  created_at?: Date | null | undefined;
1213
1213
  updated_at?: Date | null | undefined;
1214
1214
  deleted_at?: Date | null | undefined;
1215
1215
  email?: string | undefined;
1216
- description?: string | undefined;
1217
1216
  photo_url?: string | null | undefined;
1217
+ description?: string | undefined;
1218
1218
  invitedUserId?: string | undefined;
1219
1219
  submissionId?: string | undefined;
1220
1220
  }, {
@@ -1227,13 +1227,13 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1227
1227
  updated_at?: Date | null | undefined;
1228
1228
  deleted_at?: Date | null | undefined;
1229
1229
  email?: string | undefined;
1230
- description?: string | undefined;
1231
1230
  photo_url?: string | null | undefined;
1232
1231
  phone?: string | undefined;
1232
+ description?: string | undefined;
1233
1233
  invitedUserId?: string | undefined;
1234
1234
  isAnonymous?: boolean | undefined;
1235
1235
  submissionId?: string | undefined;
1236
- submission_status?: "completed" | "in_progress" | "not_started" | undefined;
1236
+ submission_status?: "in_progress" | "not_started" | "completed" | 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: "completed" | "in_progress" | "not_started";
1312
+ status: "in_progress" | "not_started" | "completed";
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: "completed" | "in_progress" | "not_started";
1342
+ status: "in_progress" | "not_started" | "completed";
1343
1343
  ref?: any;
1344
1344
  model_ver?: number | undefined;
1345
1345
  created_at?: Date | null | undefined;
@@ -1378,9 +1378,9 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1378
1378
  tenant: string;
1379
1379
  model_ver: number;
1380
1380
  status: "draft" | "open" | "closed" | "in_progress" | "paused";
1381
+ submission_count: number;
1381
1382
  start_date: Date | null;
1382
1383
  end_date: Date | null;
1383
- submission_count: number;
1384
1384
  allow_edit_answers: boolean;
1385
1385
  allow_partial_submission: boolean;
1386
1386
  section_count: number;
@@ -1393,7 +1393,6 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1393
1393
  created_at?: Date | null | undefined;
1394
1394
  updated_at?: Date | null | undefined;
1395
1395
  deleted_at?: Date | null | undefined;
1396
- description?: string | undefined;
1397
1396
  surveys?: z.objectOutputType<z.objectUtil.extendShape<{
1398
1397
  id: z.ZodString;
1399
1398
  ref: z.ZodAny;
@@ -1428,7 +1427,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1428
1427
  id: string;
1429
1428
  tenant: string;
1430
1429
  model_ver: number;
1431
- status: "completed" | "in_progress" | "not_started";
1430
+ status: "in_progress" | "not_started" | "completed";
1432
1431
  user_name: string;
1433
1432
  modified_after_completion: boolean;
1434
1433
  answer_count: number;
@@ -1456,6 +1455,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1456
1455
  submission_date?: Date | undefined;
1457
1456
  inviteeId?: string | undefined;
1458
1457
  }[] | null | undefined;
1458
+ description?: string | undefined;
1459
1459
  invitees?: {
1460
1460
  name: string;
1461
1461
  id: string;
@@ -1463,14 +1463,14 @@ 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: "completed" | "in_progress" | "not_started";
1466
+ submission_status: "in_progress" | "not_started" | "completed";
1467
1467
  ref?: any;
1468
1468
  created_at?: Date | null | undefined;
1469
1469
  updated_at?: Date | null | undefined;
1470
1470
  deleted_at?: Date | null | undefined;
1471
1471
  email?: string | undefined;
1472
- description?: string | undefined;
1473
1472
  photo_url?: string | null | undefined;
1473
+ description?: string | undefined;
1474
1474
  invitedUserId?: string | undefined;
1475
1475
  submissionId?: string | undefined;
1476
1476
  }[] | null | undefined;
@@ -1488,7 +1488,6 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1488
1488
  created_at?: Date | null | undefined;
1489
1489
  updated_at?: Date | null | undefined;
1490
1490
  deleted_at?: Date | null | undefined;
1491
- description?: string | undefined;
1492
1491
  surveys?: z.objectInputType<z.objectUtil.extendShape<{
1493
1492
  id: z.ZodString;
1494
1493
  ref: z.ZodAny;
@@ -1522,7 +1521,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1522
1521
  submissions?: {
1523
1522
  id: string;
1524
1523
  tenant: string;
1525
- status: "completed" | "in_progress" | "not_started";
1524
+ status: "in_progress" | "not_started" | "completed";
1526
1525
  ref?: any;
1527
1526
  model_ver?: number | undefined;
1528
1527
  created_at?: Date | null | undefined;
@@ -1551,6 +1550,7 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1551
1550
  answer_count?: number | undefined;
1552
1551
  submission_count?: number | undefined;
1553
1552
  }[] | null | undefined;
1553
+ description?: string | undefined;
1554
1554
  submission_count?: number | undefined;
1555
1555
  section_count?: number | undefined;
1556
1556
  question_count?: number | undefined;
@@ -1564,13 +1564,13 @@ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendSha
1564
1564
  updated_at?: Date | null | undefined;
1565
1565
  deleted_at?: Date | null | undefined;
1566
1566
  email?: string | undefined;
1567
- description?: string | undefined;
1568
1567
  photo_url?: string | null | undefined;
1569
1568
  phone?: string | undefined;
1569
+ description?: string | undefined;
1570
1570
  invitedUserId?: string | undefined;
1571
1571
  isAnonymous?: boolean | undefined;
1572
1572
  submissionId?: string | undefined;
1573
- submission_status?: "completed" | "in_progress" | "not_started" | undefined;
1573
+ submission_status?: "in_progress" | "not_started" | "completed" | undefined;
1574
1574
  }[] | null | undefined;
1575
1575
  invitee_count?: number | undefined;
1576
1576
  submission_not_started_count?: number | undefined;
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- export declare const zEvoAppSchema: z.ZodEnum<["evo-activity", "evo-calendar", "evo-core", "evo-crm", "evo-meeting", "evo-messages", "evo-people", "evo-survey", "evo-task", "evo-tenant"]>;
2
+ export declare const zEvoAppSchema: z.ZodEnum<["evo-activity", "evo-core", "evo-crm", "evo-med", "evo-messages", "evo-people", "evo-survey", "evo-tags", "evo-task", "evo-tenant"]>;
3
3
  export declare const zFireDocSchema: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  ref: z.ZodAny;
@@ -5,13 +5,13 @@ const zod_1 = require("zod");
5
5
  // Enum for activity read status
6
6
  exports.zEvoAppSchema = zod_1.z.enum([
7
7
  "evo-activity",
8
- "evo-calendar",
9
8
  "evo-core",
10
9
  "evo-crm",
11
- "evo-meeting",
10
+ "evo-med",
12
11
  "evo-messages",
13
12
  "evo-people",
14
13
  "evo-survey",
14
+ "evo-tags",
15
15
  "evo-task",
16
16
  "evo-tenant",
17
17
  ]);
@@ -3,13 +3,13 @@ import { z } from "zod";
3
3
  // Enum for activity read status
4
4
  export const zEvoAppSchema = z.enum([
5
5
  "evo-activity",
6
- "evo-calendar",
7
6
  "evo-core",
8
7
  "evo-crm",
9
- "evo-meeting",
8
+ "evo-med",
10
9
  "evo-messages",
11
10
  "evo-people",
12
11
  "evo-survey",
12
+ "evo-tags",
13
13
  "evo-task",
14
14
  "evo-tenant",
15
15
  ]);
package/dist/index.d.ts CHANGED
@@ -13,7 +13,6 @@ export * from "./types/evo-med/dic";
13
13
  export * from "./types/evo-med/insurance";
14
14
  export * from "./types/evo-med/people";
15
15
  export * from "./types/evo-med/procedure";
16
- export * from "./types/evo-calendar";
17
16
  export * from "./types/evo-task";
18
17
  export * from "./types/evo-tags";
19
18
  export * from "./types/evo-survey";
@@ -33,7 +32,6 @@ export * from "./apps/evo-med/dic/zod-schemas";
33
32
  export * from "./apps/evo-med/insurance/zod-schemas";
34
33
  export * from "./apps/evo-med/people/zod-schemas";
35
34
  export * from "./apps/evo-med/procedure/zod-schemas";
36
- export * from "./apps/evo-calendar/zod-schemas";
37
35
  export * from "./apps/evo-tags/zod-schemas";
38
36
  export * from "./apps/evo-task/zod-schemas";
39
37
  export * from "./apps/evo-survey/zod-schemas";
package/dist/index.js CHANGED
@@ -29,7 +29,6 @@ __exportStar(require("./types/evo-med/dic"), exports);
29
29
  __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
- __exportStar(require("./types/evo-calendar"), exports);
33
32
  __exportStar(require("./types/evo-tags"), exports);
34
33
  __exportStar(require("./types/evo-task"), exports);
35
34
  __exportStar(require("./types/evo-survey"), exports);
@@ -48,7 +47,6 @@ __exportStar(require("./apps/evo-med/dic/zod-schemas"), exports);
48
47
  __exportStar(require("./apps/evo-med/insurance/zod-schemas"), exports);
49
48
  __exportStar(require("./apps/evo-med/people/zod-schemas"), exports);
50
49
  __exportStar(require("./apps/evo-med/procedure/zod-schemas"), exports);
51
- __exportStar(require("./apps/evo-calendar/zod-schemas"), exports);
52
50
  __exportStar(require("./apps/evo-tags/zod-schemas"), exports);
53
51
  __exportStar(require("./apps/evo-task/zod-schemas"), exports);
54
52
  __exportStar(require("./apps/evo-survey/zod-schemas"), exports);
package/dist/index.ts CHANGED
@@ -13,7 +13,6 @@ export * from "./types/evo-med/dic";
13
13
  export * from "./types/evo-med/insurance";
14
14
  export * from "./types/evo-med/people";
15
15
  export * from "./types/evo-med/procedure";
16
- export * from "./types/evo-calendar";
17
16
  export * from "./types/evo-tags";
18
17
  export * from "./types/evo-task";
19
18
  export * from "./types/evo-survey";
@@ -33,7 +32,6 @@ export * from "./apps/evo-med/dic/zod-schemas";
33
32
  export * from "./apps/evo-med/insurance/zod-schemas";
34
33
  export * from "./apps/evo-med/people/zod-schemas";
35
34
  export * from "./apps/evo-med/procedure/zod-schemas";
36
- export * from "./apps/evo-calendar/zod-schemas";
37
35
  export * from "./apps/evo-tags/zod-schemas";
38
36
  export * from "./apps/evo-task/zod-schemas";
39
37
  export * from "./apps/evo-survey/zod-schemas";
@@ -1,5 +1,4 @@
1
1
  export * from "./fb_collections";
2
- import type { CalendarAction } from "../evo-calendar";
3
2
  import type { MedPeopleAction } from "../evo-med/people";
4
3
  import type { SurveyAction, SurveyDeploymentAction } from "../evo-survey";
5
4
  import type { TaskAction } from "../evo-task";
@@ -20,7 +19,7 @@ export interface IActivityEvent extends IFireDoc {
20
19
  creatorPath?: string;
21
20
  docPath?: string;
22
21
  app: EvoApp;
23
- type: CalendarAction | MedPeopleAction | SurveyAction | SurveyDeploymentAction | TaskAction | TenantAction;
22
+ type: MedPeopleAction | SurveyAction | SurveyDeploymentAction | TaskAction | TenantAction;
24
23
  readStatus: ActivityReadStatus;
25
24
  metadata?: Record<string, any>;
26
25
  tags?: ITag[] | null;
@@ -1,5 +1,4 @@
1
1
  export * from "./fb_collections";
2
- import type { CalendarAction } from "../evo-calendar";
3
2
  import type { MedPeopleAction } from "../evo-med/people";
4
3
  import type { SurveyAction, SurveyDeploymentAction } from "../evo-survey";
5
4
  import type { TaskAction } from "../evo-task";
@@ -27,12 +26,11 @@ export enum IActivityReadStatus {
27
26
  // Interface for Event Instances (eventInstances)
28
27
  export interface IActivityEvent extends IFireDoc {
29
28
  recipientIds: string[]; // List of recipients ids
30
- creatorName: string; // Name of the user who created the meeting
29
+ creatorName: string; // Name of the user who created the event
31
30
  creatorPath?: string;
32
31
  docPath?: string;
33
32
  app: EvoApp;
34
33
  type:
35
- | CalendarAction
36
34
  | MedPeopleAction
37
35
  | SurveyAction
38
36
  | SurveyDeploymentAction
@@ -38,16 +38,15 @@ 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" | "evo-tags";
41
+ export type EvoApp = "evo-activity" | "evo-core" | "evo-crm" | "evo-people" | "evo-med" | "evo-survey" | "evo-tags" | "evo-task" | "evo-tenant";
42
42
  export declare enum IEvoApp {
43
43
  EvoActivity = "evo-activity",
44
- EvoCalendar = "evo-calendar",
45
44
  EvoCore = "evo-core",
46
- EvoMeeting = "evo-meeting",
45
+ EvoCrm = "evo-crm",
47
46
  EvoPeople = "evo-people",
48
47
  EvoMed = "evo-med",
49
48
  EvoSurvey = "evo-survey",
49
+ EvoTags = "evo-tags",
50
50
  EvoTask = "evo-task",
51
- EvoTenant = "evo-tenant",
52
- EvoTags = "evo-tags"
51
+ EvoTenant = "evo-tenant"
53
52
  }
@@ -19,13 +19,12 @@ __exportStar(require("./fb_collections"), exports);
19
19
  var IEvoApp;
20
20
  (function (IEvoApp) {
21
21
  IEvoApp["EvoActivity"] = "evo-activity";
22
- IEvoApp["EvoCalendar"] = "evo-calendar";
23
22
  IEvoApp["EvoCore"] = "evo-core";
24
- IEvoApp["EvoMeeting"] = "evo-meeting";
23
+ IEvoApp["EvoCrm"] = "evo-crm";
25
24
  IEvoApp["EvoPeople"] = "evo-people";
26
25
  IEvoApp["EvoMed"] = "evo-med";
27
26
  IEvoApp["EvoSurvey"] = "evo-survey";
27
+ IEvoApp["EvoTags"] = "evo-tags";
28
28
  IEvoApp["EvoTask"] = "evo-task";
29
29
  IEvoApp["EvoTenant"] = "evo-tenant";
30
- IEvoApp["EvoTags"] = "evo-tags";
31
30
  })(IEvoApp || (exports.IEvoApp = IEvoApp = {}));
@@ -53,24 +53,23 @@ export interface IAddress {
53
53
 
54
54
  export type EvoApp =
55
55
  | "evo-activity"
56
- | "evo-calendar"
57
56
  | "evo-core"
58
- | "evo-meeting"
57
+ | "evo-crm"
59
58
  | "evo-people"
60
59
  | "evo-med"
61
60
  | "evo-survey"
61
+ | "evo-tags"
62
62
  | "evo-task"
63
- | "evo-tenant"
64
- | "evo-tags";
63
+ | "evo-tenant";
64
+
65
65
  export enum IEvoApp {
66
66
  EvoActivity = "evo-activity",
67
- EvoCalendar = "evo-calendar",
68
67
  EvoCore = "evo-core",
69
- EvoMeeting = "evo-meeting",
68
+ EvoCrm = "evo-crm",
70
69
  EvoPeople = "evo-people",
71
70
  EvoMed = "evo-med",
72
71
  EvoSurvey = "evo-survey",
72
+ EvoTags = "evo-tags",
73
73
  EvoTask = "evo-task",
74
74
  EvoTenant = "evo-tenant",
75
- EvoTags = "evo-tags",
76
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.39",
3
+ "version": "1.3.40",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,71 +0,0 @@
1
- import { z } from "zod";
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"]>;
5
- export declare const zEventSchema: z.ZodObject<z.objectUtil.extendShape<{
6
- id: z.ZodString;
7
- ref: z.ZodAny;
8
- tenant: z.ZodString;
9
- model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10
- created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
11
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
12
- deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
13
- }, {
14
- title: z.ZodString;
15
- description: z.ZodOptional<z.ZodString>;
16
- creatorName: z.ZodString;
17
- creatorRef: z.ZodAny;
18
- eventType: z.ZodEnum<["event", "meeting", "workshop", "other"]>;
19
- eventStatus: z.ZodEnum<["scheduled", "completed", "cancelled"]>;
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
- }>, "strip", z.ZodTypeAny, {
34
- id: string;
35
- tenant: string;
36
- model_ver: number;
37
- title: string;
38
- creatorName: string;
39
- eventType: "event" | "meeting" | "workshop" | "other";
40
- eventStatus: "scheduled" | "completed" | "cancelled";
41
- ref?: any;
42
- created_at?: Date | null | undefined;
43
- updated_at?: Date | null | undefined;
44
- deleted_at?: Date | null | undefined;
45
- description?: string | undefined;
46
- creatorRef?: any;
47
- tags?: {
48
- name: string;
49
- hidden: boolean;
50
- color?: string | undefined;
51
- }[] | null | undefined;
52
- }, {
53
- id: string;
54
- tenant: string;
55
- title: string;
56
- creatorName: string;
57
- eventType: "event" | "meeting" | "workshop" | "other";
58
- eventStatus: "scheduled" | "completed" | "cancelled";
59
- ref?: any;
60
- model_ver?: number | undefined;
61
- created_at?: Date | null | undefined;
62
- updated_at?: Date | null | undefined;
63
- deleted_at?: Date | null | undefined;
64
- description?: string | undefined;
65
- creatorRef?: any;
66
- tags?: {
67
- name: string;
68
- hidden: boolean;
69
- color?: string | undefined;
70
- }[] | null | undefined;
71
- }>;
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zEventSchema = exports.zCalendarEventTypeSchema = exports.zCalendarEventStatusSchema = exports.zCalendarActionSchema = void 0;
4
- const zod_1 = require("zod");
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
- ]);
11
- // Enum for Event Instance Status
12
- exports.zCalendarEventStatusSchema = zod_1.z.enum([
13
- "scheduled",
14
- "completed",
15
- "cancelled",
16
- ]);
17
- exports.zCalendarEventTypeSchema = zod_1.z.enum([
18
- "event",
19
- "meeting",
20
- "workshop",
21
- "other",
22
- ]);
23
- exports.zEventSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
24
- .extend({
25
- title: zod_1.z.string(),
26
- description: zod_1.z.string().optional(),
27
- creatorName: zod_1.z.string(),
28
- creatorRef: zod_1.z.any(),
29
- eventType: exports.zCalendarEventTypeSchema,
30
- eventStatus: exports.zCalendarEventStatusSchema,
31
- tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
32
- });
@@ -1,33 +0,0 @@
1
- import { z } from "zod";
2
- import { zFireDocSchema, zTagSchema } from "../shared/zod-schemas";
3
-
4
- export const zCalendarActionSchema = z.enum([
5
- "CREATE_EVENT",
6
- "DELETE_EVENT",
7
- "UPDATE_EVENT",
8
- ]);
9
-
10
- // Enum for Event Instance Status
11
- export const zCalendarEventStatusSchema = z.enum([
12
- "scheduled",
13
- "completed",
14
- "cancelled",
15
- ]);
16
-
17
- export const zCalendarEventTypeSchema = z.enum([
18
- "event",
19
- "meeting",
20
- "workshop",
21
- "other",
22
- ]);
23
-
24
- export const zEventSchema = zFireDocSchema // Extend from FireDocSchema
25
- .extend({
26
- title: z.string(),
27
- description: z.string().optional(),
28
- creatorName: z.string(),
29
- creatorRef: z.any(),
30
- eventType: zCalendarEventTypeSchema,
31
- eventStatus: zCalendarEventStatusSchema,
32
- tags: z.array(zTagSchema).nullable().optional(),
33
- });
@@ -1,2 +0,0 @@
1
- export declare const EVO_CALENDAR_APP = "evo-calendar";
2
- export declare const EVENTS_COLLECTION = "events";
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EVENTS_COLLECTION = exports.EVO_CALENDAR_APP = void 0;
4
- //EVO Calendar Application Doc
5
- exports.EVO_CALENDAR_APP = "evo-calendar";
6
- //Calendar collection
7
- exports.EVENTS_COLLECTION = "events";
@@ -1,5 +0,0 @@
1
- //EVO Calendar Application Doc
2
- export const EVO_CALENDAR_APP = "evo-calendar";
3
-
4
- //Calendar collection
5
- export const EVENTS_COLLECTION = "events";
@@ -1,54 +0,0 @@
1
- export * from "./fb_collections";
2
- import type { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
- export type CalendarAction = "CREATE_EVENT" | "DELETE_EVENT" | "UPDATE_EVENT";
4
- export declare enum ICalendarAction {
5
- Create_event = "CREATE_EVENT",
6
- Delete_event = "DELETE_EVENT",
7
- Update_event = "UPDATE_EVENT"
8
- }
9
- export type EventStatus = "scheduled" | "completed" | "cancelled";
10
- export declare enum IEventStatus {
11
- Scheduled = "scheduled",// The event is scheduled and upcoming
12
- Completed = "completed",// The event has been completed
13
- Cancelled = "cancelled"
14
- }
15
- export type CalendarEventType = "event" | "meeting" | "workshop" | "other";
16
- export declare enum ICalendarEventType {
17
- Event = "event",// A general event type
18
- Meeting = "meeting",// A meeting event
19
- Workshop = "workshop",// A workshop event
20
- Other = "other"
21
- }
22
- export interface IEventMeeting {
23
- meetingRef?: FirestoreDocumentReference;
24
- readonly task_count?: number;
25
- readonly talkingPoints_count?: number;
26
- tags?: ITag[] | null;
27
- }
28
- export interface IRecurringEvent extends IFireDoc {
29
- title: string;
30
- description?: string;
31
- creatorName: string;
32
- creatorRef?: FirestoreDocumentReference;
33
- participants: string[];
34
- start_date: Date;
35
- end_date?: Date;
36
- type: CalendarEventType;
37
- rrule: string;
38
- exceptions: string[];
39
- }
40
- export interface IEvent extends IFireDoc {
41
- recurringRef?: FirestoreDocumentReference;
42
- title: string;
43
- description?: string;
44
- creatorName: string;
45
- creatorRef?: FirestoreDocumentReference;
46
- participantNames?: string[];
47
- participantRefs?: FirestoreDocumentReference[];
48
- start_date: Date;
49
- end_date?: Date;
50
- type: CalendarEventType;
51
- tags?: ITag[] | null;
52
- meeting?: IEventMeeting;
53
- status: EventStatus;
54
- }
@@ -1,37 +0,0 @@
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.ICalendarEventType = exports.IEventStatus = exports.ICalendarAction = void 0;
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 = ICalendarAction = {}));
25
- var IEventStatus;
26
- (function (IEventStatus) {
27
- IEventStatus["Scheduled"] = "scheduled";
28
- IEventStatus["Completed"] = "completed";
29
- IEventStatus["Cancelled"] = "cancelled";
30
- })(IEventStatus || (exports.IEventStatus = IEventStatus = {}));
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 = ICalendarEventType = {}));
@@ -1,67 +0,0 @@
1
- export * from "./fb_collections";
2
- import type { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
-
4
- // ----- CalendarTypes
5
- // Enum for Calendar Action - used in Activities tracking
6
- export type CalendarAction = "CREATE_EVENT" | "DELETE_EVENT" | "UPDATE_EVENT";
7
- export enum ICalendarAction {
8
- Create_event = "CREATE_EVENT",
9
- Delete_event = "DELETE_EVENT",
10
- Update_event = "UPDATE_EVENT",
11
- }
12
-
13
- // Enum for Event Instance Status
14
- export type EventStatus = "scheduled" | "completed" | "cancelled";
15
- export enum IEventStatus {
16
- Scheduled = "scheduled", // The event is scheduled and upcoming
17
- Completed = "completed", // The event has been completed
18
- Cancelled = "cancelled", // The event has been cancelled
19
- }
20
-
21
- // Enum for Event Types
22
- export type CalendarEventType = "event" | "meeting" | "workshop" | "other";
23
- export enum ICalendarEventType {
24
- Event = "event", // A general event type
25
- Meeting = "meeting", // A meeting event
26
- Workshop = "workshop", // A workshop event
27
- Other = "other", // Any other type of event
28
- }
29
-
30
- // Interface for Meeting within a Event (meetingTasks)
31
- export interface IEventMeeting {
32
- meetingRef?: FirestoreDocumentReference; // Reference to the original task
33
- readonly task_count?: number;
34
- readonly talkingPoints_count?: number;
35
- tags?: ITag[] | null;
36
- }
37
-
38
- // Interface for Recurring Events (recurringEvents)
39
- export interface IRecurringEvent extends IFireDoc {
40
- title: string; // Title of the meeting
41
- description?: string; // Optional description of the meeting
42
- creatorName: string; // Name of the user who created the event
43
- creatorRef?: FirestoreDocumentReference; // reference to the user who created the event
44
- participants: string[]; // List of participant IDs
45
- start_date: Date; // Start date and time of the first meeting
46
- end_date?: Date; // Optional end date and time of the recurring meeting
47
- type: CalendarEventType; // Type of event
48
- rrule: string; // Recurrence rule in RRULE format
49
- exceptions: string[]; // List of instance IDs that represent exceptions
50
- }
51
-
52
- // Interface for Event Instances (eventInstances)
53
- export interface IEvent extends IFireDoc {
54
- recurringRef?: FirestoreDocumentReference; // Reference to the recurring event rule (optional)
55
- title: string; // Title of the event
56
- description?: string; // Optional description of the event
57
- creatorName: string; // Name of the user who created the event
58
- creatorRef?: FirestoreDocumentReference; // reference to the user who created the event
59
- participantNames?: string[]; // List of participant names
60
- participantRefs?: FirestoreDocumentReference[]; // List of participant references
61
- start_date: Date; // Start date and time of the event
62
- end_date?: Date; // Optional end date and time of the event
63
- type: CalendarEventType; // Type of event
64
- tags?: ITag[] | null;
65
- meeting?: IEventMeeting;
66
- status: EventStatus; // Status of the event
67
- }