evo360-types 1.2.30 → 1.3.1

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.
Files changed (30) hide show
  1. package/dist/apps/evo-activity/zod-schemas.d.ts +3 -3
  2. package/dist/apps/evo-crm/dic/zod-schemas.d.ts +233 -0
  3. package/dist/apps/evo-crm/dic/zod-schemas.js +45 -0
  4. package/dist/apps/evo-crm/dic/zod-schemas.ts +46 -0
  5. package/dist/apps/evo-crm/lead/zod-schemas.d.ts +347 -0
  6. package/dist/apps/evo-crm/lead/zod-schemas.js +30 -0
  7. package/dist/apps/evo-crm/lead/zod-schemas.ts +36 -0
  8. package/dist/apps/evo-med/dic/zod-schemas.js +1 -1
  9. package/dist/apps/evo-med/dic/zod-schemas.ts +1 -1
  10. package/dist/apps/shared/zod-schemas.d.ts +1 -1
  11. package/dist/apps/shared/zod-schemas.js +2 -0
  12. package/dist/apps/shared/zod-schemas.ts +2 -0
  13. package/dist/types/evo-crm/dic/index.d.ts +38 -0
  14. package/dist/types/evo-crm/dic/index.js +19 -0
  15. package/dist/types/evo-crm/dic/index.ts +58 -0
  16. package/dist/types/evo-crm/fb_collections.d.ts +8 -0
  17. package/dist/types/evo-crm/fb_collections.js +14 -0
  18. package/dist/types/evo-crm/fb_collections.ts +15 -0
  19. package/dist/types/evo-crm/lead/index.d.ts +30 -0
  20. package/dist/types/evo-crm/lead/index.js +9 -0
  21. package/dist/types/evo-crm/lead/index.ts +40 -0
  22. package/dist/types/evo-med/dic/index.d.ts +0 -15
  23. package/dist/types/evo-med/dic/index.ts +0 -17
  24. package/dist/types/evo-med/fb_collections.d.ts +0 -3
  25. package/dist/types/evo-med/fb_collections.js +1 -4
  26. package/dist/types/evo-med/fb_collections.ts +0 -4
  27. package/dist/types/evo-messages/fb_collections.d.ts +1 -0
  28. package/dist/types/evo-messages/fb_collections.js +2 -0
  29. package/dist/types/evo-messages/fb_collections.ts +0 -0
  30. package/package.json +1 -1
@@ -13,7 +13,7 @@ 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-meeting", "evo-people", "evo-survey", "evo-task", "evo-tenant"]>;
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
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"]>]>;
18
18
  readStatus: z.ZodEnum<["new", "unread", "read", "archived", "dismissed", "snoozed"]>;
19
19
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -43,7 +43,7 @@ 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-meeting", "evo-people", "evo-survey", "evo-task", "evo-tenant"]>;
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
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"]>]>;
48
48
  readStatus: z.ZodEnum<["new", "unread", "read", "archived", "dismissed", "snoozed"]>;
49
49
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -73,7 +73,7 @@ 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-meeting", "evo-people", "evo-survey", "evo-task", "evo-tenant"]>;
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
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"]>]>;
78
78
  readStatus: z.ZodEnum<["new", "unread", "read", "archived", "dismissed", "snoozed"]>;
79
79
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -0,0 +1,233 @@
1
+ import { z } from "zod";
2
+ export declare const zDistChannelTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
3
+ id: z.ZodString;
4
+ ref: z.ZodAny;
5
+ tenant: z.ZodString;
6
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
8
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
10
+ }, {
11
+ code: z.ZodString;
12
+ name: z.ZodString;
13
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
14
+ name: z.ZodString;
15
+ color: z.ZodOptional<z.ZodString>;
16
+ hidden: z.ZodBoolean;
17
+ }, "strip", z.ZodTypeAny, {
18
+ name: string;
19
+ hidden: boolean;
20
+ color?: string | undefined;
21
+ }, {
22
+ name: string;
23
+ hidden: boolean;
24
+ color?: string | undefined;
25
+ }>, "many">>>;
26
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
27
+ id: z.ZodString;
28
+ ref: z.ZodAny;
29
+ tenant: z.ZodString;
30
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
31
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
32
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
33
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
34
+ }, {
35
+ code: z.ZodString;
36
+ name: z.ZodString;
37
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
38
+ name: z.ZodString;
39
+ color: z.ZodOptional<z.ZodString>;
40
+ hidden: z.ZodBoolean;
41
+ }, "strip", z.ZodTypeAny, {
42
+ name: string;
43
+ hidden: boolean;
44
+ color?: string | undefined;
45
+ }, {
46
+ name: string;
47
+ hidden: boolean;
48
+ color?: string | undefined;
49
+ }>, "many">>>;
50
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
51
+ id: z.ZodString;
52
+ ref: z.ZodAny;
53
+ tenant: z.ZodString;
54
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
55
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
56
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
57
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
58
+ }, {
59
+ code: z.ZodString;
60
+ name: z.ZodString;
61
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
62
+ name: z.ZodString;
63
+ color: z.ZodOptional<z.ZodString>;
64
+ hidden: z.ZodBoolean;
65
+ }, "strip", z.ZodTypeAny, {
66
+ name: string;
67
+ hidden: boolean;
68
+ color?: string | undefined;
69
+ }, {
70
+ name: string;
71
+ hidden: boolean;
72
+ color?: string | undefined;
73
+ }>, "many">>>;
74
+ }>, z.ZodTypeAny, "passthrough">>;
75
+ export declare const zDistChannelSchema: z.ZodObject<z.objectUtil.extendShape<{
76
+ id: z.ZodString;
77
+ ref: z.ZodAny;
78
+ tenant: z.ZodString;
79
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
80
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
81
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
82
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
83
+ }, {
84
+ code: z.ZodString;
85
+ name: z.ZodString;
86
+ type_code: z.ZodString;
87
+ type_name: z.ZodString;
88
+ typeRef: z.ZodAny;
89
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
90
+ name: z.ZodString;
91
+ color: z.ZodOptional<z.ZodString>;
92
+ hidden: z.ZodBoolean;
93
+ }, "strip", z.ZodTypeAny, {
94
+ name: string;
95
+ hidden: boolean;
96
+ color?: string | undefined;
97
+ }, {
98
+ name: string;
99
+ hidden: boolean;
100
+ color?: string | undefined;
101
+ }>, "many">>>;
102
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
103
+ id: z.ZodString;
104
+ ref: z.ZodAny;
105
+ tenant: z.ZodString;
106
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
107
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
108
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
109
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
110
+ }, {
111
+ code: z.ZodString;
112
+ name: z.ZodString;
113
+ type_code: z.ZodString;
114
+ type_name: z.ZodString;
115
+ typeRef: z.ZodAny;
116
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
117
+ name: z.ZodString;
118
+ color: z.ZodOptional<z.ZodString>;
119
+ hidden: z.ZodBoolean;
120
+ }, "strip", z.ZodTypeAny, {
121
+ name: string;
122
+ hidden: boolean;
123
+ color?: string | undefined;
124
+ }, {
125
+ name: string;
126
+ hidden: boolean;
127
+ color?: string | undefined;
128
+ }>, "many">>>;
129
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
130
+ id: z.ZodString;
131
+ ref: z.ZodAny;
132
+ tenant: z.ZodString;
133
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
134
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
135
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
136
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
137
+ }, {
138
+ code: z.ZodString;
139
+ name: z.ZodString;
140
+ type_code: z.ZodString;
141
+ type_name: z.ZodString;
142
+ typeRef: z.ZodAny;
143
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
144
+ name: z.ZodString;
145
+ color: z.ZodOptional<z.ZodString>;
146
+ hidden: z.ZodBoolean;
147
+ }, "strip", z.ZodTypeAny, {
148
+ name: string;
149
+ hidden: boolean;
150
+ color?: string | undefined;
151
+ }, {
152
+ name: string;
153
+ hidden: boolean;
154
+ color?: string | undefined;
155
+ }>, "many">>>;
156
+ }>, z.ZodTypeAny, "passthrough">>;
157
+ export declare const zLeadQualificationFunnelLevelSchema: z.ZodEnum<["new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
158
+ export declare const zLeadQualificationSchema: z.ZodObject<z.objectUtil.extendShape<{
159
+ id: z.ZodString;
160
+ ref: z.ZodAny;
161
+ tenant: z.ZodString;
162
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
163
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
164
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
165
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
166
+ }, {
167
+ code: z.ZodString;
168
+ name: z.ZodString;
169
+ funnelLevel: z.ZodEnum<["new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
170
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
171
+ name: z.ZodString;
172
+ color: z.ZodOptional<z.ZodString>;
173
+ hidden: z.ZodBoolean;
174
+ }, "strip", z.ZodTypeAny, {
175
+ name: string;
176
+ hidden: boolean;
177
+ color?: string | undefined;
178
+ }, {
179
+ name: string;
180
+ hidden: boolean;
181
+ color?: string | undefined;
182
+ }>, "many">>>;
183
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
184
+ id: z.ZodString;
185
+ ref: z.ZodAny;
186
+ tenant: z.ZodString;
187
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
188
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
189
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
190
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
191
+ }, {
192
+ code: z.ZodString;
193
+ name: z.ZodString;
194
+ funnelLevel: z.ZodEnum<["new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
195
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
196
+ name: z.ZodString;
197
+ color: z.ZodOptional<z.ZodString>;
198
+ hidden: z.ZodBoolean;
199
+ }, "strip", z.ZodTypeAny, {
200
+ name: string;
201
+ hidden: boolean;
202
+ color?: string | undefined;
203
+ }, {
204
+ name: string;
205
+ hidden: boolean;
206
+ color?: string | undefined;
207
+ }>, "many">>>;
208
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
209
+ id: z.ZodString;
210
+ ref: z.ZodAny;
211
+ tenant: z.ZodString;
212
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
213
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
214
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
215
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
216
+ }, {
217
+ code: z.ZodString;
218
+ name: z.ZodString;
219
+ funnelLevel: z.ZodEnum<["new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
220
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
221
+ name: z.ZodString;
222
+ color: z.ZodOptional<z.ZodString>;
223
+ hidden: z.ZodBoolean;
224
+ }, "strip", z.ZodTypeAny, {
225
+ name: string;
226
+ hidden: boolean;
227
+ color?: string | undefined;
228
+ }, {
229
+ name: string;
230
+ hidden: boolean;
231
+ color?: string | undefined;
232
+ }>, "many">>>;
233
+ }>, z.ZodTypeAny, "passthrough">>;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zLeadQualificationSchema = exports.zLeadQualificationFunnelLevelSchema = exports.zDistChannelSchema = exports.zDistChannelTypeSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_schemas_1 = require("../../shared/zod-schemas");
6
+ exports.zDistChannelTypeSchema = zod_schemas_1.zFireDocSchema
7
+ .extend({
8
+ code: zod_1.z.string().min(1).max(10),
9
+ name: zod_1.z.string().min(1).max(255),
10
+ tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
11
+ })
12
+ .passthrough();
13
+ exports.zDistChannelSchema = zod_schemas_1.zFireDocSchema
14
+ .extend({
15
+ code: zod_1.z.string().min(1).max(10),
16
+ name: zod_1.z.string().min(1).max(255),
17
+ type_code: zod_1.z.string().min(1).max(10),
18
+ type_name: zod_1.z.string().min(1).max(255),
19
+ typeRef: zod_1.z.any(),
20
+ tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
21
+ })
22
+ .passthrough();
23
+ exports.zLeadQualificationFunnelLevelSchema = zod_1.z.enum([
24
+ "new",
25
+ "trying_contact",
26
+ "contacted",
27
+ "qualifying",
28
+ "qualified",
29
+ "disqualified",
30
+ "presented",
31
+ "proposal_sent",
32
+ "negotiating",
33
+ "won",
34
+ "lost",
35
+ "waiting_reply",
36
+ "follow_up_later",
37
+ ]);
38
+ exports.zLeadQualificationSchema = zod_schemas_1.zFireDocSchema
39
+ .extend({
40
+ code: zod_1.z.string().min(1).max(10),
41
+ name: zod_1.z.string().min(1).max(255),
42
+ funnelLevel: exports.zLeadQualificationFunnelLevelSchema,
43
+ tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
44
+ })
45
+ .passthrough();
@@ -0,0 +1,46 @@
1
+ import { z } from "zod";
2
+ import { zFireDocSchema, zTagSchema } from "../../shared/zod-schemas";
3
+
4
+ export const zDistChannelTypeSchema = zFireDocSchema
5
+ .extend({
6
+ code: z.string().min(1).max(10),
7
+ name: z.string().min(1).max(255),
8
+ tags: z.array(zTagSchema).nullable().optional(),
9
+ })
10
+ .passthrough();
11
+
12
+ export const zDistChannelSchema = zFireDocSchema
13
+ .extend({
14
+ code: z.string().min(1).max(10),
15
+ name: z.string().min(1).max(255),
16
+ type_code: z.string().min(1).max(10),
17
+ type_name: z.string().min(1).max(255),
18
+ typeRef: z.any(),
19
+ tags: z.array(zTagSchema).nullable().optional(),
20
+ })
21
+ .passthrough();
22
+
23
+ export const zLeadQualificationFunnelLevelSchema = z.enum([
24
+ "new",
25
+ "trying_contact",
26
+ "contacted",
27
+ "qualifying",
28
+ "qualified",
29
+ "disqualified",
30
+ "presented",
31
+ "proposal_sent",
32
+ "negotiating",
33
+ "won",
34
+ "lost",
35
+ "waiting_reply",
36
+ "follow_up_later",
37
+ ]);
38
+
39
+ export const zLeadQualificationSchema = zFireDocSchema
40
+ .extend({
41
+ code: z.string().min(1).max(10),
42
+ name: z.string().min(1).max(255),
43
+ funnelLevel: zLeadQualificationFunnelLevelSchema,
44
+ tags: z.array(zTagSchema).nullable().optional(),
45
+ })
46
+ .passthrough();
@@ -0,0 +1,347 @@
1
+ import { z } from "zod";
2
+ export declare const zLeadStatusSchema: z.ZodEnum<["active", "inactive", "draft"]>;
3
+ export declare const zLeadQualificationSchema: z.ZodObject<{
4
+ code: z.ZodString;
5
+ name: z.ZodString;
6
+ funnelLevel: z.ZodEnum<["new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
7
+ ref: z.ZodAny;
8
+ }, "strip", z.ZodTypeAny, {
9
+ code: string;
10
+ name: string;
11
+ funnelLevel: "new" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
12
+ ref?: any;
13
+ }, {
14
+ code: string;
15
+ name: string;
16
+ funnelLevel: "new" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
17
+ ref?: any;
18
+ }>;
19
+ export declare const zDistChannelSchema: z.ZodObject<{
20
+ code: z.ZodString;
21
+ name: z.ZodString;
22
+ ref: z.ZodAny;
23
+ }, "strip", z.ZodTypeAny, {
24
+ code: string;
25
+ name: string;
26
+ ref?: any;
27
+ }, {
28
+ code: string;
29
+ name: string;
30
+ ref?: any;
31
+ }>;
32
+ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
33
+ id: z.ZodString;
34
+ ref: z.ZodAny;
35
+ tenant: z.ZodString;
36
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
37
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
38
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
39
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
40
+ }, {
41
+ display_name: z.ZodString;
42
+ last_name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
43
+ first_name: z.ZodNullable<z.ZodString>;
44
+ gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ birthdate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
46
+ photo_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ photo_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ }>, {
49
+ status: z.ZodOptional<z.ZodEnum<["active", "inactive", "draft"]>>;
50
+ qualification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
51
+ code: z.ZodString;
52
+ name: z.ZodString;
53
+ funnelLevel: z.ZodEnum<["new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
54
+ ref: z.ZodAny;
55
+ }, "strip", z.ZodTypeAny, {
56
+ code: string;
57
+ name: string;
58
+ funnelLevel: "new" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
59
+ ref?: any;
60
+ }, {
61
+ code: string;
62
+ name: string;
63
+ funnelLevel: "new" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
64
+ ref?: any;
65
+ }>>>;
66
+ distChannel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
67
+ code: z.ZodString;
68
+ name: z.ZodString;
69
+ ref: z.ZodAny;
70
+ }, "strip", z.ZodTypeAny, {
71
+ code: string;
72
+ name: string;
73
+ ref?: any;
74
+ }, {
75
+ code: string;
76
+ name: string;
77
+ ref?: any;
78
+ }>>>;
79
+ address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
80
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
81
+ kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
82
+ line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
83
+ line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
84
+ city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
85
+ state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
86
+ zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
87
+ country: z.ZodDefault<z.ZodOptional<z.ZodString>>;
88
+ geo: z.ZodOptional<z.ZodAny>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ name: string;
91
+ kind: string;
92
+ country: string;
93
+ line1: string;
94
+ line2: string;
95
+ city: string;
96
+ state: string;
97
+ zip: string;
98
+ geo?: any;
99
+ }, {
100
+ name?: string | undefined;
101
+ kind?: string | undefined;
102
+ country?: string | undefined;
103
+ line1?: string | undefined;
104
+ line2?: string | undefined;
105
+ city?: string | undefined;
106
+ state?: string | undefined;
107
+ zip?: string | undefined;
108
+ geo?: any;
109
+ }>>>;
110
+ contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
111
+ email: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
112
+ phone: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
113
+ mobile: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ email: string | null;
116
+ phone: string | null;
117
+ mobile: string | null;
118
+ }, {
119
+ email?: string | null | undefined;
120
+ phone?: string | null | undefined;
121
+ mobile?: string | null | undefined;
122
+ }>>>;
123
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
124
+ name: z.ZodString;
125
+ color: z.ZodOptional<z.ZodString>;
126
+ hidden: z.ZodBoolean;
127
+ }, "strip", z.ZodTypeAny, {
128
+ name: string;
129
+ hidden: boolean;
130
+ color?: string | undefined;
131
+ }, {
132
+ name: string;
133
+ hidden: boolean;
134
+ color?: string | undefined;
135
+ }>, "many">>>;
136
+ userRef: z.ZodAny;
137
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
138
+ id: z.ZodString;
139
+ ref: z.ZodAny;
140
+ tenant: z.ZodString;
141
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
142
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
143
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
144
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
145
+ }, {
146
+ display_name: z.ZodString;
147
+ last_name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
148
+ first_name: z.ZodNullable<z.ZodString>;
149
+ gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
+ birthdate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
151
+ photo_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
152
+ photo_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
+ }>, {
154
+ status: z.ZodOptional<z.ZodEnum<["active", "inactive", "draft"]>>;
155
+ qualification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
156
+ code: z.ZodString;
157
+ name: z.ZodString;
158
+ funnelLevel: z.ZodEnum<["new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
159
+ ref: z.ZodAny;
160
+ }, "strip", z.ZodTypeAny, {
161
+ code: string;
162
+ name: string;
163
+ funnelLevel: "new" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
164
+ ref?: any;
165
+ }, {
166
+ code: string;
167
+ name: string;
168
+ funnelLevel: "new" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
169
+ ref?: any;
170
+ }>>>;
171
+ distChannel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
172
+ code: z.ZodString;
173
+ name: z.ZodString;
174
+ ref: z.ZodAny;
175
+ }, "strip", z.ZodTypeAny, {
176
+ code: string;
177
+ name: string;
178
+ ref?: any;
179
+ }, {
180
+ code: string;
181
+ name: string;
182
+ ref?: any;
183
+ }>>>;
184
+ address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
185
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
186
+ kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
187
+ line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
188
+ line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
189
+ city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
190
+ state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
191
+ zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
192
+ country: z.ZodDefault<z.ZodOptional<z.ZodString>>;
193
+ geo: z.ZodOptional<z.ZodAny>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ name: string;
196
+ kind: string;
197
+ country: string;
198
+ line1: string;
199
+ line2: string;
200
+ city: string;
201
+ state: string;
202
+ zip: string;
203
+ geo?: any;
204
+ }, {
205
+ name?: string | undefined;
206
+ kind?: string | undefined;
207
+ country?: string | undefined;
208
+ line1?: string | undefined;
209
+ line2?: string | undefined;
210
+ city?: string | undefined;
211
+ state?: string | undefined;
212
+ zip?: string | undefined;
213
+ geo?: any;
214
+ }>>>;
215
+ contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
216
+ email: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
217
+ phone: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
218
+ mobile: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
219
+ }, "strip", z.ZodTypeAny, {
220
+ email: string | null;
221
+ phone: string | null;
222
+ mobile: string | null;
223
+ }, {
224
+ email?: string | null | undefined;
225
+ phone?: string | null | undefined;
226
+ mobile?: string | null | undefined;
227
+ }>>>;
228
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
229
+ name: z.ZodString;
230
+ color: z.ZodOptional<z.ZodString>;
231
+ hidden: z.ZodBoolean;
232
+ }, "strip", z.ZodTypeAny, {
233
+ name: string;
234
+ hidden: boolean;
235
+ color?: string | undefined;
236
+ }, {
237
+ name: string;
238
+ hidden: boolean;
239
+ color?: string | undefined;
240
+ }>, "many">>>;
241
+ userRef: z.ZodAny;
242
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
243
+ id: z.ZodString;
244
+ ref: z.ZodAny;
245
+ tenant: z.ZodString;
246
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
247
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
248
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
249
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
250
+ }, {
251
+ display_name: z.ZodString;
252
+ last_name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
253
+ first_name: z.ZodNullable<z.ZodString>;
254
+ gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
255
+ birthdate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
256
+ photo_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
+ photo_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
258
+ }>, {
259
+ status: z.ZodOptional<z.ZodEnum<["active", "inactive", "draft"]>>;
260
+ qualification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
261
+ code: z.ZodString;
262
+ name: z.ZodString;
263
+ funnelLevel: z.ZodEnum<["new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
264
+ ref: z.ZodAny;
265
+ }, "strip", z.ZodTypeAny, {
266
+ code: string;
267
+ name: string;
268
+ funnelLevel: "new" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
269
+ ref?: any;
270
+ }, {
271
+ code: string;
272
+ name: string;
273
+ funnelLevel: "new" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
274
+ ref?: any;
275
+ }>>>;
276
+ distChannel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
277
+ code: z.ZodString;
278
+ name: z.ZodString;
279
+ ref: z.ZodAny;
280
+ }, "strip", z.ZodTypeAny, {
281
+ code: string;
282
+ name: string;
283
+ ref?: any;
284
+ }, {
285
+ code: string;
286
+ name: string;
287
+ ref?: any;
288
+ }>>>;
289
+ address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
290
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
291
+ kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
292
+ line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
293
+ line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
294
+ city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
295
+ state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
296
+ zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
297
+ country: z.ZodDefault<z.ZodOptional<z.ZodString>>;
298
+ geo: z.ZodOptional<z.ZodAny>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ name: string;
301
+ kind: string;
302
+ country: string;
303
+ line1: string;
304
+ line2: string;
305
+ city: string;
306
+ state: string;
307
+ zip: string;
308
+ geo?: any;
309
+ }, {
310
+ name?: string | undefined;
311
+ kind?: string | undefined;
312
+ country?: string | undefined;
313
+ line1?: string | undefined;
314
+ line2?: string | undefined;
315
+ city?: string | undefined;
316
+ state?: string | undefined;
317
+ zip?: string | undefined;
318
+ geo?: any;
319
+ }>>>;
320
+ contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
321
+ email: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
322
+ phone: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
323
+ mobile: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
324
+ }, "strip", z.ZodTypeAny, {
325
+ email: string | null;
326
+ phone: string | null;
327
+ mobile: string | null;
328
+ }, {
329
+ email?: string | null | undefined;
330
+ phone?: string | null | undefined;
331
+ mobile?: string | null | undefined;
332
+ }>>>;
333
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
334
+ name: z.ZodString;
335
+ color: z.ZodOptional<z.ZodString>;
336
+ hidden: z.ZodBoolean;
337
+ }, "strip", z.ZodTypeAny, {
338
+ name: string;
339
+ hidden: boolean;
340
+ color?: string | undefined;
341
+ }, {
342
+ name: string;
343
+ hidden: boolean;
344
+ color?: string | undefined;
345
+ }>, "many">>>;
346
+ userRef: z.ZodAny;
347
+ }>, z.ZodTypeAny, "passthrough">>;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zLeadSchema = exports.zDistChannelSchema = exports.zLeadQualificationSchema = exports.zLeadStatusSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_schemas_1 = require("../../shared/zod-schemas");
6
+ const zod_schemas_2 = require("../../evo-people/zod-schemas");
7
+ const zod_schemas_3 = require("../dic/zod-schemas");
8
+ exports.zLeadStatusSchema = zod_1.z.enum(["active", "inactive", "draft"]);
9
+ exports.zLeadQualificationSchema = zod_1.z.object({
10
+ code: zod_1.z.string().min(1).max(10),
11
+ name: zod_1.z.string().min(1).max(255),
12
+ funnelLevel: zod_schemas_3.zLeadQualificationFunnelLevelSchema,
13
+ ref: zod_1.z.any(),
14
+ });
15
+ exports.zDistChannelSchema = zod_1.z.object({
16
+ code: zod_1.z.string().min(1).max(10),
17
+ name: zod_1.z.string().min(1).max(255),
18
+ ref: zod_1.z.any(),
19
+ });
20
+ exports.zLeadSchema = zod_schemas_2.zProfileSchema // Extend from ProfileSchema
21
+ .extend({
22
+ status: exports.zLeadStatusSchema.optional(),
23
+ qualification: exports.zLeadQualificationSchema.nullable().optional(),
24
+ distChannel: exports.zDistChannelSchema.nullable().optional(),
25
+ address: zod_schemas_1.zAddressSchema.nullable().optional(),
26
+ contact: zod_schemas_1.zContactSchema.nullable().optional(),
27
+ tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
28
+ userRef: zod_1.z.any(),
29
+ })
30
+ .passthrough();
@@ -0,0 +1,36 @@
1
+ import { z } from "zod";
2
+ import {
3
+ zAddressSchema,
4
+ zContactSchema,
5
+ zFireDocSchema,
6
+ zTagSchema,
7
+ } from "../../shared/zod-schemas";
8
+ import { zProfileSchema } from "../../evo-people/zod-schemas";
9
+ import { zLeadQualificationFunnelLevelSchema } from "../dic/zod-schemas";
10
+
11
+ export const zLeadStatusSchema = z.enum(["active", "inactive", "draft"]);
12
+
13
+ export const zLeadQualificationSchema = z.object({
14
+ code: z.string().min(1).max(10),
15
+ name: z.string().min(1).max(255),
16
+ funnelLevel: zLeadQualificationFunnelLevelSchema,
17
+ ref: z.any(),
18
+ });
19
+
20
+ export const zDistChannelSchema = z.object({
21
+ code: z.string().min(1).max(10),
22
+ name: z.string().min(1).max(255),
23
+ ref: z.any(),
24
+ });
25
+
26
+ export const zLeadSchema = zProfileSchema // Extend from ProfileSchema
27
+ .extend({
28
+ status: zLeadStatusSchema.optional(),
29
+ qualification: zLeadQualificationSchema.nullable().optional(),
30
+ distChannel: zDistChannelSchema.nullable().optional(),
31
+ address: zAddressSchema.nullable().optional(),
32
+ contact: zContactSchema.nullable().optional(),
33
+ tags: z.array(zTagSchema).nullable().optional(),
34
+ userRef: z.any(),
35
+ })
36
+ .passthrough();
@@ -13,7 +13,7 @@ exports.zSpecialtySchema = zod_schemas_1.zFireDocSchema
13
13
  .extend({
14
14
  code: zod_1.z.string().min(1).max(10),
15
15
  name: zod_1.z.string().min(1).max(255),
16
- tiss: zod_1.z.string().min(1).max(255).optional().default(""),
16
+ tiss: zod_1.z.string().max(255).optional().default(""),
17
17
  type_code: zod_1.z.string().min(1).max(10),
18
18
  type_name: zod_1.z.string().min(1).max(255),
19
19
  typeRef: zod_1.z.any(),
@@ -12,7 +12,7 @@ export const zSpecialtySchema = zFireDocSchema
12
12
  .extend({
13
13
  code: z.string().min(1).max(10),
14
14
  name: z.string().min(1).max(255),
15
- tiss: z.string().min(1).max(255).optional().default(""),
15
+ tiss: z.string().max(255).optional().default(""),
16
16
  type_code: z.string().min(1).max(10),
17
17
  type_name: z.string().min(1).max(255),
18
18
  typeRef: z.any(),
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- export declare const zEvoAppSchema: z.ZodEnum<["evo-activity", "evo-calendar", "evo-core", "evo-meeting", "evo-people", "evo-survey", "evo-task", "evo-tenant"]>;
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"]>;
3
3
  export declare const zFireDocSchema: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  ref: z.ZodAny;
@@ -7,7 +7,9 @@ exports.zEvoAppSchema = zod_1.z.enum([
7
7
  "evo-activity",
8
8
  "evo-calendar",
9
9
  "evo-core",
10
+ "evo-crm",
10
11
  "evo-meeting",
12
+ "evo-messages",
11
13
  "evo-people",
12
14
  "evo-survey",
13
15
  "evo-task",
@@ -5,7 +5,9 @@ export const zEvoAppSchema = z.enum([
5
5
  "evo-activity",
6
6
  "evo-calendar",
7
7
  "evo-core",
8
+ "evo-crm",
8
9
  "evo-meeting",
10
+ "evo-messages",
9
11
  "evo-people",
10
12
  "evo-survey",
11
13
  "evo-task",
@@ -0,0 +1,38 @@
1
+ import { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
2
+ export interface IDistChannelType extends IFireDoc {
3
+ code: string;
4
+ name: string;
5
+ tags?: ITag[] | null;
6
+ [key: string]: unknown;
7
+ }
8
+ export interface IDistChannel extends IFireDoc {
9
+ code: string;
10
+ name: string;
11
+ type_code?: string;
12
+ type_name?: string;
13
+ typeRef?: FirestoreDocumentReference;
14
+ tags?: ITag[] | null;
15
+ [key: string]: unknown;
16
+ }
17
+ export type LeadQualificationFunnelLevel = "new" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
18
+ export declare enum ILeadQualificationFunnelLevel {
19
+ New = "new",// Lead recém-captado
20
+ TryingContact = "trying_contact",// Tentando contato inicial
21
+ Contacted = "contacted",// Contato estabelecido
22
+ Qualifying = "qualifying",// Em processo de qualificação
23
+ Qualified = "qualified",// Lead com fit
24
+ Disqualified = "disqualified",// Lead sem fit/interesse
25
+ Presented = "presented",// Apresentação realizada
26
+ ProposalSent = "proposal_sent",// Proposta enviada
27
+ Negotiating = "negotiating",// Em negociação
28
+ Won = "won",// Venda fechada
29
+ Lost = "lost",// Venda perdida
30
+ WaitingReply = "waiting_reply",// Aguardando retorno do lead
31
+ FollowUpLater = "follow_up_later"
32
+ }
33
+ export interface ILeadQualification extends IFireDoc {
34
+ code: string;
35
+ name: string;
36
+ funnelLevel: LeadQualificationFunnelLevel;
37
+ [key: string]: unknown;
38
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ILeadQualificationFunnelLevel = void 0;
4
+ var ILeadQualificationFunnelLevel;
5
+ (function (ILeadQualificationFunnelLevel) {
6
+ ILeadQualificationFunnelLevel["New"] = "new";
7
+ ILeadQualificationFunnelLevel["TryingContact"] = "trying_contact";
8
+ ILeadQualificationFunnelLevel["Contacted"] = "contacted";
9
+ ILeadQualificationFunnelLevel["Qualifying"] = "qualifying";
10
+ ILeadQualificationFunnelLevel["Qualified"] = "qualified";
11
+ ILeadQualificationFunnelLevel["Disqualified"] = "disqualified";
12
+ ILeadQualificationFunnelLevel["Presented"] = "presented";
13
+ ILeadQualificationFunnelLevel["ProposalSent"] = "proposal_sent";
14
+ ILeadQualificationFunnelLevel["Negotiating"] = "negotiating";
15
+ ILeadQualificationFunnelLevel["Won"] = "won";
16
+ ILeadQualificationFunnelLevel["Lost"] = "lost";
17
+ ILeadQualificationFunnelLevel["WaitingReply"] = "waiting_reply";
18
+ ILeadQualificationFunnelLevel["FollowUpLater"] = "follow_up_later";
19
+ })(ILeadQualificationFunnelLevel || (exports.ILeadQualificationFunnelLevel = ILeadQualificationFunnelLevel = {}));
@@ -0,0 +1,58 @@
1
+ import { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
2
+
3
+ export interface IDistChannelType extends IFireDoc {
4
+ code: string;
5
+ name: string;
6
+ tags?: ITag[] | null;
7
+ [key: string]: unknown; // index signature
8
+ }
9
+
10
+ export interface IDistChannel extends IFireDoc {
11
+ code: string;
12
+ name: string;
13
+ type_code?: string;
14
+ type_name?: string;
15
+ typeRef?: FirestoreDocumentReference;
16
+ tags?: ITag[] | null;
17
+ [key: string]: unknown; // index signature
18
+ }
19
+
20
+ // Funnel levels
21
+ export type LeadQualificationFunnelLevel =
22
+ | "new"
23
+ | "trying_contact"
24
+ | "contacted"
25
+ | "qualifying"
26
+ | "qualified"
27
+ | "disqualified"
28
+ | "presented"
29
+ | "proposal_sent"
30
+ | "negotiating"
31
+ | "won"
32
+ | "lost"
33
+ | "waiting_reply"
34
+ | "follow_up_later";
35
+
36
+ export enum ILeadQualificationFunnelLevel {
37
+ New = "new", // Lead recém-captado
38
+ TryingContact = "trying_contact", // Tentando contato inicial
39
+ Contacted = "contacted", // Contato estabelecido
40
+ Qualifying = "qualifying", // Em processo de qualificação
41
+ Qualified = "qualified", // Lead com fit
42
+ Disqualified = "disqualified", // Lead sem fit/interesse
43
+ Presented = "presented", // Apresentação realizada
44
+ ProposalSent = "proposal_sent", // Proposta enviada
45
+ Negotiating = "negotiating", // Em negociação
46
+ Won = "won", // Venda fechada
47
+ Lost = "lost", // Venda perdida
48
+ WaitingReply = "waiting_reply", // Aguardando retorno do lead
49
+ FollowUpLater = "follow_up_later", // Contato agendado para o futuro
50
+ }
51
+
52
+ // Lead qualification status
53
+ export interface ILeadQualification extends IFireDoc {
54
+ code: string;
55
+ name: string;
56
+ funnelLevel: LeadQualificationFunnelLevel;
57
+ [key: string]: unknown; // index signature
58
+ }
@@ -0,0 +1,8 @@
1
+ export declare const EVO_CRM_APP = "evo-crm";
2
+ export declare const DICS_COLLECTION = "dics";
3
+ export declare const LEADS = "leads";
4
+ export declare const LEAD_QUALIFICATION = "qualification";
5
+ export declare const CHANNELS = "channels";
6
+ export declare const DIST_CHANNEL_TYPES_COLLECTION = "dist-channel-types";
7
+ export declare const DIST_CHANNELS_COLLECTION = "dist-channels";
8
+ export declare const LEADS_COLLECTION = "leads";
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LEADS_COLLECTION = exports.DIST_CHANNELS_COLLECTION = exports.DIST_CHANNEL_TYPES_COLLECTION = exports.CHANNELS = exports.LEAD_QUALIFICATION = exports.LEADS = exports.DICS_COLLECTION = exports.EVO_CRM_APP = void 0;
4
+ //EVO CRM Application Doc
5
+ exports.EVO_CRM_APP = "evo-crm";
6
+ //dictionaries
7
+ exports.DICS_COLLECTION = "dics";
8
+ exports.LEADS = "leads";
9
+ exports.LEAD_QUALIFICATION = "qualification";
10
+ exports.CHANNELS = "channels";
11
+ exports.DIST_CHANNEL_TYPES_COLLECTION = "dist-channel-types";
12
+ exports.DIST_CHANNELS_COLLECTION = "dist-channels";
13
+ // Leads
14
+ exports.LEADS_COLLECTION = "leads";
@@ -0,0 +1,15 @@
1
+ //EVO CRM Application Doc
2
+ export const EVO_CRM_APP = "evo-crm";
3
+
4
+ //dictionaries
5
+ export const DICS_COLLECTION = "dics";
6
+
7
+ export const LEADS = "leads";
8
+ export const LEAD_QUALIFICATION = "qualification";
9
+
10
+ export const CHANNELS = "channels";
11
+ export const DIST_CHANNEL_TYPES_COLLECTION = "dist-channel-types";
12
+ export const DIST_CHANNELS_COLLECTION = "dist-channels";
13
+
14
+ // Leads
15
+ export const LEADS_COLLECTION = "leads";
@@ -0,0 +1,30 @@
1
+ import { FirestoreDocumentReference, IAddress, IContact, ITag } from "../../shared";
2
+ import { IProfile } from "../../evo-people";
3
+ import { LeadQualificationFunnelLevel } from "../dic";
4
+ export type LeadStatus = "active" | "inactive" | "draft";
5
+ export declare enum ILeadStatus {
6
+ Active = "active",
7
+ Inactive = "inactive",
8
+ Draft = "draft"
9
+ }
10
+ export interface ILeadQualification {
11
+ code: string;
12
+ name: string;
13
+ funnelLevel: LeadQualificationFunnelLevel;
14
+ ref?: FirestoreDocumentReference;
15
+ }
16
+ export interface IDistChannel {
17
+ code: string;
18
+ name: string;
19
+ ref?: FirestoreDocumentReference;
20
+ }
21
+ export interface ILead extends IProfile {
22
+ status?: LeadStatus;
23
+ qualification?: ILeadQualification | null;
24
+ distChannel?: IDistChannel | null;
25
+ address?: IAddress | null;
26
+ contact?: IContact | null;
27
+ tags?: ITag[] | null;
28
+ userRef?: FirestoreDocumentReference;
29
+ [key: string]: unknown;
30
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ILeadStatus = void 0;
4
+ var ILeadStatus;
5
+ (function (ILeadStatus) {
6
+ ILeadStatus["Active"] = "active";
7
+ ILeadStatus["Inactive"] = "inactive";
8
+ ILeadStatus["Draft"] = "draft";
9
+ })(ILeadStatus || (exports.ILeadStatus = ILeadStatus = {}));
@@ -0,0 +1,40 @@
1
+ import {
2
+ FirestoreDocumentReference,
3
+ IAddress,
4
+ IContact,
5
+ ITag,
6
+ } from "../../shared";
7
+ import { IProfile } from "../../evo-people";
8
+ import { LeadQualificationFunnelLevel } from "../dic";
9
+
10
+ // Lead status
11
+ export type LeadStatus = "active" | "inactive" | "draft";
12
+ export enum ILeadStatus {
13
+ Active = "active",
14
+ Inactive = "inactive",
15
+ Draft = "draft",
16
+ }
17
+
18
+ export interface ILeadQualification {
19
+ code: string;
20
+ name: string;
21
+ funnelLevel: LeadQualificationFunnelLevel;
22
+ ref?: FirestoreDocumentReference;
23
+ }
24
+
25
+ export interface IDistChannel {
26
+ code: string;
27
+ name: string;
28
+ ref?: FirestoreDocumentReference;
29
+ }
30
+
31
+ export interface ILead extends IProfile {
32
+ status?: LeadStatus;
33
+ qualification?: ILeadQualification | null;
34
+ distChannel?: IDistChannel | null;
35
+ address?: IAddress | null;
36
+ contact?: IContact | null;
37
+ tags?: ITag[] | null;
38
+ userRef?: FirestoreDocumentReference;
39
+ [key: string]: unknown; // index signature
40
+ }
@@ -38,21 +38,6 @@ export interface ISpecialty extends IFireDoc {
38
38
  tags?: ITag[] | null;
39
39
  [key: string]: unknown;
40
40
  }
41
- export interface IDistChannelType extends IFireDoc {
42
- code: string;
43
- name: string;
44
- tags?: ITag[] | null;
45
- [key: string]: unknown;
46
- }
47
- export interface IDistChannel extends IFireDoc {
48
- code: string;
49
- name: string;
50
- type_code?: string;
51
- type_name?: string;
52
- typeRef?: FirestoreDocumentReference;
53
- tags?: ITag[] | null;
54
- [key: string]: unknown;
55
- }
56
41
  export interface IPatientSource extends IFireDoc {
57
42
  code: string;
58
43
  name: string;
@@ -67,23 +67,6 @@ export interface ISpecialty extends IFireDoc {
67
67
  [key: string]: unknown; // index signature
68
68
  }
69
69
 
70
- export interface IDistChannelType extends IFireDoc {
71
- code: string;
72
- name: string;
73
- tags?: ITag[] | null;
74
- [key: string]: unknown; // index signature
75
- }
76
-
77
- export interface IDistChannel extends IFireDoc {
78
- code: string;
79
- name: string;
80
- type_code?: string;
81
- type_name?: string;
82
- typeRef?: FirestoreDocumentReference;
83
- tags?: ITag[] | null;
84
- [key: string]: unknown; // index signature
85
- }
86
-
87
70
  export interface IPatientSource extends IFireDoc {
88
71
  code: string;
89
72
  name: string;
@@ -7,9 +7,6 @@ export declare const DICS_COLLECTION = "dics";
7
7
  export declare const SPECIALTIES = "specialties";
8
8
  export declare const SPECIALTIES_TYPES_COLLECTION = "specialties-types";
9
9
  export declare const SPECIALTIES_COLLECTION = "specialties";
10
- export declare const CHANNELS = "channels";
11
- export declare const DIST_CHANNEL_TYPES_COLLECTION = "dist-channel-types";
12
- export declare const DIST_CHANNELS_COLLECTION = "dist-channels";
13
10
  export declare const COUNCILS = "councils";
14
11
  export declare const MEDICAL_COUNCILS_COLLECTION = "medical-councils";
15
12
  export declare const SOURCES = "sources";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CHRONIC_CONDITIONS_COLLECTION = exports.ALLERGIES_COLLECTION = exports.DISEASES = exports.APPOINTMENT_REQUEST_TYPES_COLLECTION = exports.APPOINTMENT_STATUSES_COLLECTION = exports.APPOINTMENT_SOURCES_COLLECTION = exports.APPOINTMENTS = exports.PATIENT_SOURCES_COLLECTION = exports.SOURCES = exports.MEDICAL_COUNCILS_COLLECTION = exports.COUNCILS = exports.DIST_CHANNELS_COLLECTION = exports.DIST_CHANNEL_TYPES_COLLECTION = exports.CHANNELS = exports.SPECIALTIES_COLLECTION = exports.SPECIALTIES_TYPES_COLLECTION = exports.SPECIALTIES = exports.DICS_COLLECTION = exports.PROCEDURES_COLLECTION = exports.INSURANCES_COLLECTION = exports.PATIENTS_COLLECTION = exports.PROFESSIONALS_COLLECTION = exports.EVO_MED_APP = void 0;
3
+ exports.CHRONIC_CONDITIONS_COLLECTION = exports.ALLERGIES_COLLECTION = exports.DISEASES = exports.APPOINTMENT_REQUEST_TYPES_COLLECTION = exports.APPOINTMENT_STATUSES_COLLECTION = exports.APPOINTMENT_SOURCES_COLLECTION = exports.APPOINTMENTS = exports.PATIENT_SOURCES_COLLECTION = exports.SOURCES = exports.MEDICAL_COUNCILS_COLLECTION = exports.COUNCILS = exports.SPECIALTIES_COLLECTION = exports.SPECIALTIES_TYPES_COLLECTION = exports.SPECIALTIES = exports.DICS_COLLECTION = exports.PROCEDURES_COLLECTION = exports.INSURANCES_COLLECTION = exports.PATIENTS_COLLECTION = exports.PROFESSIONALS_COLLECTION = exports.EVO_MED_APP = void 0;
4
4
  //EVO Med Application Doc
5
5
  exports.EVO_MED_APP = "evo-med";
6
6
  //people
@@ -15,9 +15,6 @@ exports.DICS_COLLECTION = "dics";
15
15
  exports.SPECIALTIES = "specialties";
16
16
  exports.SPECIALTIES_TYPES_COLLECTION = "specialties-types";
17
17
  exports.SPECIALTIES_COLLECTION = "specialties";
18
- exports.CHANNELS = "channels";
19
- exports.DIST_CHANNEL_TYPES_COLLECTION = "dist-channel-types";
20
- exports.DIST_CHANNELS_COLLECTION = "dist-channels";
21
18
  exports.COUNCILS = "councils";
22
19
  exports.MEDICAL_COUNCILS_COLLECTION = "medical-councils";
23
20
  exports.SOURCES = "sources";
@@ -15,10 +15,6 @@ export const SPECIALTIES = "specialties";
15
15
  export const SPECIALTIES_TYPES_COLLECTION = "specialties-types";
16
16
  export const SPECIALTIES_COLLECTION = "specialties";
17
17
 
18
- export const CHANNELS = "channels";
19
- export const DIST_CHANNEL_TYPES_COLLECTION = "dist-channel-types";
20
- export const DIST_CHANNELS_COLLECTION = "dist-channels";
21
-
22
18
  export const COUNCILS = "councils";
23
19
  export const MEDICAL_COUNCILS_COLLECTION = "medical-councils";
24
20
 
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.2.30",
3
+ "version": "1.3.1",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",