evo360-types 1.3.151 → 1.3.153

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,13 +14,16 @@ export declare const zTaskExternalLinkSchema: z.ZodObject<{
14
14
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
15
15
  id: z.ZodString;
16
16
  label: z.ZodOptional<z.ZodString>;
17
+ ref: z.ZodOptional<z.ZodAny>;
17
18
  }, "strip", z.ZodTypeAny, {
18
19
  id: string;
19
20
  type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
21
+ ref?: any;
20
22
  label?: string | undefined;
21
23
  }, {
22
24
  id: string;
23
25
  type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
26
+ ref?: any;
24
27
  label?: string | undefined;
25
28
  }>;
26
29
  export declare const zTaskScheduleSchema: z.ZodObject<{
@@ -336,13 +339,16 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
336
339
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
337
340
  id: z.ZodString;
338
341
  label: z.ZodOptional<z.ZodString>;
342
+ ref: z.ZodOptional<z.ZodAny>;
339
343
  }, "strip", z.ZodTypeAny, {
340
344
  id: string;
341
345
  type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
346
+ ref?: any;
342
347
  label?: string | undefined;
343
348
  }, {
344
349
  id: string;
345
350
  type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
351
+ ref?: any;
346
352
  label?: string | undefined;
347
353
  }>, "many">>;
348
354
  idempotency_key: z.ZodOptional<z.ZodString>;
@@ -638,13 +644,16 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
638
644
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
639
645
  id: z.ZodString;
640
646
  label: z.ZodOptional<z.ZodString>;
647
+ ref: z.ZodOptional<z.ZodAny>;
641
648
  }, "strip", z.ZodTypeAny, {
642
649
  id: string;
643
650
  type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
651
+ ref?: any;
644
652
  label?: string | undefined;
645
653
  }, {
646
654
  id: string;
647
655
  type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
656
+ ref?: any;
648
657
  label?: string | undefined;
649
658
  }>, "many">>;
650
659
  idempotency_key: z.ZodOptional<z.ZodString>;
@@ -940,13 +949,16 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
940
949
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
941
950
  id: z.ZodString;
942
951
  label: z.ZodOptional<z.ZodString>;
952
+ ref: z.ZodOptional<z.ZodAny>;
943
953
  }, "strip", z.ZodTypeAny, {
944
954
  id: string;
945
955
  type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
956
+ ref?: any;
946
957
  label?: string | undefined;
947
958
  }, {
948
959
  id: string;
949
960
  type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
961
+ ref?: any;
950
962
  label?: string | undefined;
951
963
  }>, "many">>;
952
964
  idempotency_key: z.ZodOptional<z.ZodString>;
@@ -47,6 +47,7 @@ exports.zTaskExternalLinkSchema = zod_1.z.object({
47
47
  type: exports.zTaskExternalObjectTypeSchema,
48
48
  id: zod_1.z.string(),
49
49
  label: zod_1.z.string().optional(),
50
+ ref: zod_1.z.any().optional(), // FirestoreDocumentReference
50
51
  });
51
52
  // Schema para ITaskSchedule
52
53
  exports.zTaskScheduleSchema = zod_1.z.object({
@@ -56,6 +56,7 @@ export const zTaskExternalLinkSchema = z.object({
56
56
  type: zTaskExternalObjectTypeSchema,
57
57
  id: z.string(),
58
58
  label: z.string().optional(),
59
+ ref: z.any().optional(), // FirestoreDocumentReference
59
60
  });
60
61
 
61
62
  // Schema para ITaskSchedule
@@ -15,7 +15,7 @@ export interface IMedCalendar extends IFireDoc {
15
15
  url?: string | null;
16
16
  default_channel_id?: string | null;
17
17
  params?: Record<string, string | number> | null;
18
- ext_urls?: Record<string, string | number | any> | null;
18
+ ext_urls?: Record<string, string | number> | null;
19
19
  hidden?: boolean;
20
20
  external?: boolean;
21
21
  tags?: ITag[] | null;
@@ -18,7 +18,7 @@ export interface IMedCalendar extends IFireDoc {
18
18
  url?: string | null;
19
19
  default_channel_id?: string | null;
20
20
  params?: Record<string, string | number> | null;
21
- ext_urls?: Record<string, string | number | any> | null;
21
+ ext_urls?: Record<string, string | number> | null;
22
22
  hidden?: boolean;
23
23
  external?: boolean;
24
24
  tags?: ITag[] | null;
@@ -1,2 +1,5 @@
1
1
  export declare const EVO_TASK_APP = "evo-task";
2
2
  export declare const TASKS_COLLECTION = "tasks";
3
+ export declare const TASK_COMMENTS_COLLECTION = "comments";
4
+ export declare const TASK_LOGS_COLLECTION = "logs";
5
+ export declare const TASK_EXECUTIONS_COLLECTION = "executions";
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TASKS_COLLECTION = exports.EVO_TASK_APP = void 0;
3
+ exports.TASK_EXECUTIONS_COLLECTION = exports.TASK_LOGS_COLLECTION = exports.TASK_COMMENTS_COLLECTION = exports.TASKS_COLLECTION = exports.EVO_TASK_APP = void 0;
4
4
  //EVO Task Application Doc
5
5
  exports.EVO_TASK_APP = "evo-task";
6
6
  //Tasks collection
7
7
  exports.TASKS_COLLECTION = "tasks";
8
+ //Comments collection
9
+ exports.TASK_COMMENTS_COLLECTION = "comments";
10
+ //Logs collection
11
+ exports.TASK_LOGS_COLLECTION = "logs";
12
+ //Executions collection
13
+ exports.TASK_EXECUTIONS_COLLECTION = "executions";
@@ -3,3 +3,12 @@ export const EVO_TASK_APP = "evo-task";
3
3
 
4
4
  //Tasks collection
5
5
  export const TASKS_COLLECTION = "tasks";
6
+
7
+ //Comments collection
8
+ export const TASK_COMMENTS_COLLECTION = "comments";
9
+
10
+ //Logs collection
11
+ export const TASK_LOGS_COLLECTION = "logs";
12
+
13
+ //Executions collection
14
+ export const TASK_EXECUTIONS_COLLECTION = "executions";
@@ -1,12 +1,5 @@
1
1
  export * from "./fb_collections";
2
2
  import type { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
- export declare const EvoTaskCollections: {
4
- readonly Tasks: "tasks";
5
- readonly Executions: "executions";
6
- readonly Comments: "comments";
7
- readonly Logs: "logs";
8
- };
9
- export type EvoTaskCollectionName = (typeof EvoTaskCollections)[keyof typeof EvoTaskCollections];
10
3
  export declare const TaskActionEnum: {
11
4
  readonly CreateTask: "CREATE_TASK";
12
5
  readonly DeleteTask: "DELETE_TASK";
@@ -106,6 +99,7 @@ export interface ITaskExternalLink {
106
99
  type: TaskExternalObjectType;
107
100
  id: string;
108
101
  label?: string;
102
+ ref?: FirestoreDocumentReference;
109
103
  [key: string]: unknown;
110
104
  }
111
105
  export interface ITaskUserAssignee {
@@ -14,7 +14,7 @@ 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.TaskExecutionStatusEnum = exports.TaskExternalObjectTypeEnum = exports.TaskDedupWindowEnum = exports.TaskDedupScopeEnum = exports.TaskRetryStrategyEnum = exports.TaskAutoHandlerEnum = exports.TaskModeEnum = exports.TaskSourceEnum = exports.TaskPriorityEnum = exports.TaskStatusEnum = exports.TaskActionEnum = exports.EvoTaskCollections = void 0;
17
+ exports.TaskExecutionStatusEnum = exports.TaskExternalObjectTypeEnum = exports.TaskDedupWindowEnum = exports.TaskDedupScopeEnum = exports.TaskRetryStrategyEnum = exports.TaskAutoHandlerEnum = exports.TaskModeEnum = exports.TaskSourceEnum = exports.TaskPriorityEnum = exports.TaskStatusEnum = exports.TaskActionEnum = void 0;
18
18
  __exportStar(require("./fb_collections"), exports);
19
19
  // ======================================================
20
20
  // evo-task (Tasks)
@@ -26,14 +26,6 @@ __exportStar(require("./fb_collections"), exports);
26
26
  // live in their own modules; here we keep the contract generic
27
27
  // - Sub-collections (executions/comments/logs) keep lists fast
28
28
  // ======================================================
29
- // ----- Firestore collection conventions (per tenant)
30
- // Root: /tenants/{tenant}/apps/evo-task/tasks/{taskId}
31
- exports.EvoTaskCollections = {
32
- Tasks: "tasks",
33
- Executions: "executions",
34
- Comments: "comments",
35
- Logs: "logs",
36
- };
37
29
  // ----- Activities tracking
38
30
  exports.TaskActionEnum = {
39
31
  CreateTask: "CREATE_TASK",
@@ -12,18 +12,6 @@ import type { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
12
12
  // - Sub-collections (executions/comments/logs) keep lists fast
13
13
  // ======================================================
14
14
 
15
- // ----- Firestore collection conventions (per tenant)
16
- // Root: /tenants/{tenant}/apps/evo-task/tasks/{taskId}
17
- export const EvoTaskCollections = {
18
- Tasks: "tasks",
19
- Executions: "executions",
20
- Comments: "comments",
21
- Logs: "logs",
22
- } as const;
23
-
24
- export type EvoTaskCollectionName =
25
- (typeof EvoTaskCollections)[keyof typeof EvoTaskCollections];
26
-
27
15
  // ----- Activities tracking
28
16
  export const TaskActionEnum = {
29
17
  CreateTask: "CREATE_TASK",
@@ -164,6 +152,7 @@ export interface ITaskExternalLink {
164
152
  type: TaskExternalObjectType;
165
153
  id: string;
166
154
  label?: string;
155
+ ref?: FirestoreDocumentReference;
167
156
  [key: string]: unknown;
168
157
  }
169
158
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.151",
3
+ "version": "1.3.153",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",