evo360-types 1.3.103 → 1.3.108

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.
@@ -2,3 +2,118 @@ import { z } from "zod";
2
2
  export declare const zTaskActionSchema: z.ZodEnum<["CREATE_TASK", "DELETE_TASK", "UPDATE_TASK"]>;
3
3
  export declare const zTaskStatusSchema: z.ZodEnum<["not_started", "in_progress", "completed", "cancelled", "on_hold"]>;
4
4
  export declare const zTaskPrioritySchema: z.ZodEnum<["low", "medium", "high"]>;
5
+ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
6
+ id: z.ZodString;
7
+ ref: z.ZodAny;
8
+ tenant: z.ZodString;
9
+ model_ver: z.ZodDefault<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.ZodOptional<z.ZodAny>;
18
+ startDate: z.ZodDate;
19
+ dueDate: z.ZodOptional<z.ZodDate>;
20
+ status: z.ZodEnum<["not_started", "in_progress", "completed", "cancelled", "on_hold"]>;
21
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
22
+ assigneeName: z.ZodOptional<z.ZodString>;
23
+ assigneeRef: z.ZodOptional<z.ZodAny>;
24
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
25
+ name: z.ZodString;
26
+ color: z.ZodOptional<z.ZodString>;
27
+ hidden: z.ZodBoolean;
28
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ name: string;
32
+ hidden: boolean;
33
+ base?: boolean | undefined;
34
+ color?: string | undefined;
35
+ category?: string | null | undefined;
36
+ }, {
37
+ name: string;
38
+ hidden: boolean;
39
+ base?: boolean | undefined;
40
+ color?: string | undefined;
41
+ category?: string | null | undefined;
42
+ }>, "many">>>;
43
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
44
+ id: z.ZodString;
45
+ ref: z.ZodAny;
46
+ tenant: z.ZodString;
47
+ model_ver: z.ZodDefault<z.ZodNumber>;
48
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
49
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
50
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
51
+ }, {
52
+ title: z.ZodString;
53
+ description: z.ZodOptional<z.ZodString>;
54
+ creatorName: z.ZodString;
55
+ creatorRef: z.ZodOptional<z.ZodAny>;
56
+ startDate: z.ZodDate;
57
+ dueDate: z.ZodOptional<z.ZodDate>;
58
+ status: z.ZodEnum<["not_started", "in_progress", "completed", "cancelled", "on_hold"]>;
59
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
60
+ assigneeName: z.ZodOptional<z.ZodString>;
61
+ assigneeRef: z.ZodOptional<z.ZodAny>;
62
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
63
+ name: z.ZodString;
64
+ color: z.ZodOptional<z.ZodString>;
65
+ hidden: z.ZodBoolean;
66
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ name: string;
70
+ hidden: boolean;
71
+ base?: boolean | undefined;
72
+ color?: string | undefined;
73
+ category?: string | null | undefined;
74
+ }, {
75
+ name: string;
76
+ hidden: boolean;
77
+ base?: boolean | undefined;
78
+ color?: string | undefined;
79
+ category?: string | null | undefined;
80
+ }>, "many">>>;
81
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
82
+ id: z.ZodString;
83
+ ref: z.ZodAny;
84
+ tenant: z.ZodString;
85
+ model_ver: z.ZodDefault<z.ZodNumber>;
86
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
87
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
88
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
89
+ }, {
90
+ title: z.ZodString;
91
+ description: z.ZodOptional<z.ZodString>;
92
+ creatorName: z.ZodString;
93
+ creatorRef: z.ZodOptional<z.ZodAny>;
94
+ startDate: z.ZodDate;
95
+ dueDate: z.ZodOptional<z.ZodDate>;
96
+ status: z.ZodEnum<["not_started", "in_progress", "completed", "cancelled", "on_hold"]>;
97
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
98
+ assigneeName: z.ZodOptional<z.ZodString>;
99
+ assigneeRef: z.ZodOptional<z.ZodAny>;
100
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
101
+ name: z.ZodString;
102
+ color: z.ZodOptional<z.ZodString>;
103
+ hidden: z.ZodBoolean;
104
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ name: string;
108
+ hidden: boolean;
109
+ base?: boolean | undefined;
110
+ color?: string | undefined;
111
+ category?: string | null | undefined;
112
+ }, {
113
+ name: string;
114
+ hidden: boolean;
115
+ base?: boolean | undefined;
116
+ color?: string | undefined;
117
+ category?: string | null | undefined;
118
+ }>, "many">>>;
119
+ }>, z.ZodTypeAny, "passthrough">>;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zTaskPrioritySchema = exports.zTaskStatusSchema = exports.zTaskActionSchema = void 0;
3
+ exports.zTaskSchema = exports.zTaskPrioritySchema = exports.zTaskStatusSchema = exports.zTaskActionSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const zod_schemas_1 = require("../shared/zod-schemas");
5
6
  exports.zTaskActionSchema = zod_1.z.enum([
6
7
  "CREATE_TASK",
7
8
  "DELETE_TASK",
@@ -15,3 +16,19 @@ exports.zTaskStatusSchema = zod_1.z.enum([
15
16
  "on_hold",
16
17
  ]);
17
18
  exports.zTaskPrioritySchema = zod_1.z.enum(["low", "medium", "high"]);
19
+ // Schema para a interface ITask
20
+ exports.zTaskSchema = zod_schemas_1.zFireDocSchema
21
+ .extend({
22
+ title: zod_1.z.string(),
23
+ description: zod_1.z.string().optional(),
24
+ creatorName: zod_1.z.string(),
25
+ creatorRef: zod_1.z.any().optional(),
26
+ startDate: zod_1.z.coerce.date(),
27
+ dueDate: zod_1.z.coerce.date().optional(),
28
+ status: exports.zTaskStatusSchema,
29
+ priority: exports.zTaskPrioritySchema.optional(),
30
+ assigneeName: zod_1.z.string().optional(),
31
+ assigneeRef: zod_1.z.any().optional(),
32
+ tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
33
+ })
34
+ .passthrough();
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { zFireDocSchema, zTagSchema } from "../shared/zod-schemas";
2
3
 
3
4
  export const zTaskActionSchema = z.enum([
4
5
  "CREATE_TASK",
@@ -15,3 +16,20 @@ export const zTaskStatusSchema = z.enum([
15
16
  ]);
16
17
 
17
18
  export const zTaskPrioritySchema = z.enum(["low", "medium", "high"]);
19
+
20
+ // Schema para a interface ITask
21
+ export const zTaskSchema = zFireDocSchema
22
+ .extend({
23
+ title: z.string(),
24
+ description: z.string().optional(),
25
+ creatorName: z.string(),
26
+ creatorRef: z.any().optional(),
27
+ startDate: z.coerce.date(),
28
+ dueDate: z.coerce.date().optional(),
29
+ status: zTaskStatusSchema,
30
+ priority: zTaskPrioritySchema.optional(),
31
+ assigneeName: z.string().optional(),
32
+ assigneeRef: z.any().optional(),
33
+ tags: z.array(zTagSchema).nullable().optional(),
34
+ })
35
+ .passthrough();
package/dist/index.d.ts CHANGED
@@ -28,6 +28,8 @@ export * from "./apps/evo-crm/dic/zod-schemas";
28
28
  export * from "./apps/evo-crm/lead/zod-schemas";
29
29
  export * from "./apps/evo-chat/contact/zod-schemas";
30
30
  export * from "./apps/evo-chat/message/zod-schemas";
31
+ export * from "./apps/evo-chat/chatbee/zod-schemas";
32
+ export * from "./apps/evo-hub-ia/channel/zod-schemas";
31
33
  export * from "./apps/evo-med/calendar/zod-schemas";
32
34
  export * from "./apps/evo-med/appointment/zod-schemas";
33
35
  export * from "./apps/evo-med/dic/zod-schemas";
@@ -32,4 +32,5 @@ export interface ITask extends IFireDoc {
32
32
  assigneeName?: string;
33
33
  assigneeRef?: FirestoreDocumentReference;
34
34
  tags?: ITag[] | null;
35
+ [key: string]: unknown;
35
36
  }
@@ -48,4 +48,5 @@ export interface ITask extends IFireDoc {
48
48
  assigneeName?: string; // Name of the assignee (optional)
49
49
  assigneeRef?: FirestoreDocumentReference; // Reference to the assignee (optional)
50
50
  tags?: ITag[] | null;
51
+ [key: string]: unknown; // index signature
51
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.103",
3
+ "version": "1.3.108",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",