evo360-types 1.3.6 → 1.3.9

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 (139) hide show
  1. package/dist/apps/evo-activity/zod-schemas.d.ts +93 -0
  2. package/dist/apps/evo-activity/zod-schemas.js +40 -0
  3. package/dist/apps/evo-activity/zod-schemas.ts +43 -0
  4. package/dist/apps/evo-cake/zod-schemas.d.ts +783 -0
  5. package/dist/apps/evo-cake/zod-schemas.js +110 -0
  6. package/dist/apps/evo-cake/zod-schemas.ts +121 -0
  7. package/dist/apps/evo-calendar/zod-schemas.d.ts +71 -0
  8. package/dist/apps/evo-calendar/zod-schemas.js +32 -0
  9. package/dist/apps/evo-calendar/zod-schemas.ts +33 -0
  10. package/dist/apps/evo-core/zod-schemas.d.ts +14 -0
  11. package/dist/apps/evo-core/zod-schemas.js +9 -0
  12. package/dist/apps/evo-core/zod-schemas.ts +7 -0
  13. package/dist/apps/evo-crm/dic/zod-schemas.d.ts +233 -0
  14. package/dist/apps/evo-crm/dic/zod-schemas.js +45 -0
  15. package/dist/apps/evo-crm/dic/zod-schemas.ts +46 -0
  16. package/dist/apps/evo-crm/lead/zod-schemas.d.ts +347 -0
  17. package/dist/apps/evo-crm/lead/zod-schemas.js +30 -0
  18. package/dist/apps/evo-crm/lead/zod-schemas.ts +35 -0
  19. package/dist/apps/evo-med/dic/zod-schemas.d.ts +501 -0
  20. package/dist/apps/evo-med/dic/zod-schemas.js +116 -0
  21. package/dist/apps/evo-med/dic/zod-schemas.ts +127 -0
  22. package/dist/apps/evo-med/insurance/zod-schemas.d.ts +421 -0
  23. package/dist/apps/evo-med/insurance/zod-schemas.js +33 -0
  24. package/dist/apps/evo-med/insurance/zod-schemas.ts +39 -0
  25. package/dist/apps/evo-med/people/zod-schemas.d.ts +955 -0
  26. package/dist/apps/evo-med/people/zod-schemas.js +100 -0
  27. package/dist/apps/evo-med/people/zod-schemas.ts +117 -0
  28. package/dist/apps/evo-med/procedure/zod-schemas.d.ts +141 -0
  29. package/dist/apps/evo-med/procedure/zod-schemas.js +26 -0
  30. package/dist/apps/evo-med/procedure/zod-schemas.ts +26 -0
  31. package/dist/apps/evo-meeting/zod-schemas.d.ts +429 -0
  32. package/dist/apps/evo-meeting/zod-schemas.js +56 -0
  33. package/dist/apps/evo-meeting/zod-schemas.ts +62 -0
  34. package/dist/apps/evo-people/zod-schemas.d.ts +476 -0
  35. package/dist/apps/evo-people/zod-schemas.js +120 -0
  36. package/dist/apps/evo-people/zod-schemas.ts +124 -0
  37. package/dist/apps/evo-survey/zod-schemas.d.ts +1579 -0
  38. package/dist/apps/evo-survey/zod-schemas.js +191 -0
  39. package/dist/apps/evo-survey/zod-schemas.ts +209 -0
  40. package/dist/apps/evo-task/zod-schemas.d.ts +4 -0
  41. package/dist/apps/evo-task/zod-schemas.js +17 -0
  42. package/dist/apps/evo-task/zod-schemas.ts +17 -0
  43. package/dist/apps/evo-tenant/zod-schemas.d.ts +51 -0
  44. package/dist/apps/evo-tenant/zod-schemas.js +22 -0
  45. package/dist/apps/evo-tenant/zod-schemas.ts +23 -0
  46. package/dist/apps/shared/zod-schemas.d.ts +84 -0
  47. package/dist/apps/shared/zod-schemas.js +49 -0
  48. package/dist/apps/shared/zod-schemas.ts +51 -0
  49. package/dist/index.d.ts +35 -0
  50. package/dist/index.js +50 -0
  51. package/dist/index.ts +35 -0
  52. package/dist/types/evo-activity/fb_collections.d.ts +4 -0
  53. package/dist/types/evo-activity/fb_collections.js +9 -0
  54. package/dist/types/evo-activity/fb_collections.ts +7 -0
  55. package/dist/types/evo-activity/index.d.ts +28 -0
  56. package/dist/types/evo-activity/index.js +27 -0
  57. package/dist/types/evo-activity/index.ts +45 -0
  58. package/dist/types/evo-cake/fb_collections.d.ts +4 -0
  59. package/dist/types/evo-cake/fb_collections.js +9 -0
  60. package/dist/types/evo-cake/fb_collections.ts +7 -0
  61. package/dist/types/evo-cake/index.d.ts +111 -0
  62. package/dist/types/evo-cake/index.js +79 -0
  63. package/dist/types/evo-cake/index.ts +186 -0
  64. package/dist/types/evo-calendar/fb_collections.d.ts +2 -0
  65. package/dist/types/evo-calendar/fb_collections.js +7 -0
  66. package/dist/types/evo-calendar/fb_collections.ts +5 -0
  67. package/dist/types/evo-calendar/index.d.ts +56 -0
  68. package/dist/types/evo-calendar/index.js +37 -0
  69. package/dist/types/evo-calendar/index.ts +69 -0
  70. package/dist/types/evo-core/index.d.ts +41 -0
  71. package/dist/types/evo-core/index.js +2 -0
  72. package/dist/types/evo-core/index.ts +48 -0
  73. package/dist/types/evo-crm/dic/index.d.ts +51 -0
  74. package/dist/types/evo-crm/dic/index.js +46 -0
  75. package/dist/types/evo-crm/dic/index.ts +86 -0
  76. package/dist/types/evo-crm/fb_collections.d.ts +7 -0
  77. package/dist/types/evo-crm/fb_collections.js +13 -0
  78. package/dist/types/evo-crm/fb_collections.ts +13 -0
  79. package/dist/types/evo-crm/lead/index.d.ts +31 -0
  80. package/dist/types/evo-crm/lead/index.js +24 -0
  81. package/dist/types/evo-crm/lead/index.ts +42 -0
  82. package/dist/types/evo-med/dic/index.d.ts +99 -0
  83. package/dist/types/evo-med/dic/index.js +52 -0
  84. package/dist/types/evo-med/dic/index.ts +131 -0
  85. package/dist/types/evo-med/fb_collections.d.ts +20 -0
  86. package/dist/types/evo-med/fb_collections.js +28 -0
  87. package/dist/types/evo-med/fb_collections.ts +31 -0
  88. package/dist/types/evo-med/insurance/index.d.ts +34 -0
  89. package/dist/types/evo-med/insurance/index.js +24 -0
  90. package/dist/types/evo-med/insurance/index.ts +45 -0
  91. package/dist/types/evo-med/people/index.d.ts +125 -0
  92. package/dist/types/evo-med/people/index.js +66 -0
  93. package/dist/types/evo-med/people/index.ts +188 -0
  94. package/dist/types/evo-med/procedure/index.d.ts +36 -0
  95. package/dist/types/evo-med/procedure/index.js +30 -0
  96. package/dist/types/evo-med/procedure/index.ts +48 -0
  97. package/dist/types/evo-meeting/fb_collections.d.ts +2 -0
  98. package/dist/types/evo-meeting/fb_collections.js +7 -0
  99. package/dist/types/evo-meeting/fb_collections.ts +5 -0
  100. package/dist/types/evo-meeting/index.d.ts +58 -0
  101. package/dist/types/evo-meeting/index.js +32 -0
  102. package/dist/types/evo-meeting/index.ts +80 -0
  103. package/dist/types/evo-messages/fb_collections.d.ts +1 -0
  104. package/dist/types/evo-messages/fb_collections.js +2 -0
  105. package/dist/types/evo-messages/fb_collections.ts +0 -0
  106. package/dist/types/evo-people/fb_collections.d.ts +5 -0
  107. package/dist/types/evo-people/fb_collections.js +10 -0
  108. package/dist/types/evo-people/fb_collections.ts +8 -0
  109. package/dist/types/evo-people/index.d.ts +117 -0
  110. package/dist/types/evo-people/index.js +59 -0
  111. package/dist/types/evo-people/index.ts +167 -0
  112. package/dist/types/evo-survey/fb_collections.d.ts +7 -0
  113. package/dist/types/evo-survey/fb_collections.js +13 -0
  114. package/dist/types/evo-survey/fb_collections.ts +12 -0
  115. package/dist/types/evo-survey/index.d.ts +172 -0
  116. package/dist/types/evo-survey/index.js +70 -0
  117. package/dist/types/evo-survey/index.ts +224 -0
  118. package/dist/types/evo-task/fb_collections.d.ts +2 -0
  119. package/dist/types/evo-task/fb_collections.js +7 -0
  120. package/dist/types/evo-task/fb_collections.ts +5 -0
  121. package/dist/types/evo-task/index.d.ts +35 -0
  122. package/dist/types/evo-task/index.js +38 -0
  123. package/dist/types/evo-task/index.ts +51 -0
  124. package/dist/types/evo-tenant/fb_collections.d.ts +1 -0
  125. package/dist/types/evo-tenant/fb_collections.js +5 -0
  126. package/dist/types/evo-tenant/fb_collections.ts +2 -0
  127. package/dist/types/evo-tenant/index.d.ts +28 -0
  128. package/dist/types/evo-tenant/index.js +35 -0
  129. package/dist/types/evo-tenant/index.ts +35 -0
  130. package/dist/types/shared/fb_collections.d.ts +5 -0
  131. package/dist/types/shared/fb_collections.js +13 -0
  132. package/dist/types/shared/fb_collections.ts +14 -0
  133. package/dist/types/shared/index.d.ts +52 -0
  134. package/dist/types/shared/index.js +30 -0
  135. package/dist/types/shared/index.ts +74 -0
  136. package/dist/types/shared/maska.d.ts +23 -0
  137. package/dist/types/shared/maska.js +2 -0
  138. package/dist/types/shared/maska.ts +26 -0
  139. package/package.json +1 -1
@@ -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 zQualificationFunnelLevelSchema = 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 zQualificationSchema = zFireDocSchema
40
+ .extend({
41
+ code: z.string().min(1).max(10),
42
+ name: z.string().min(1).max(255),
43
+ funnelLevel: zQualificationFunnelLevelSchema,
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 zLeadDistChannelSchema: 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.zLeadDistChannelSchema = 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.zQualificationFunnelLevelSchema,
13
+ ref: zod_1.z.any(),
14
+ });
15
+ exports.zLeadDistChannelSchema = 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.zLeadDistChannelSchema.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,35 @@
1
+ import { z } from "zod";
2
+ import {
3
+ zAddressSchema,
4
+ zContactSchema,
5
+ zTagSchema,
6
+ } from "../../shared/zod-schemas";
7
+ import { zProfileSchema } from "../../evo-people/zod-schemas";
8
+ import { zQualificationFunnelLevelSchema } from "../dic/zod-schemas";
9
+
10
+ export const zLeadStatusSchema = z.enum(["active", "inactive", "draft"]);
11
+
12
+ export const zLeadQualificationSchema = z.object({
13
+ code: z.string().min(1).max(10),
14
+ name: z.string().min(1).max(255),
15
+ funnelLevel: zQualificationFunnelLevelSchema,
16
+ ref: z.any(),
17
+ });
18
+
19
+ export const zLeadDistChannelSchema = z.object({
20
+ code: z.string().min(1).max(10),
21
+ name: z.string().min(1).max(255),
22
+ ref: z.any(),
23
+ });
24
+
25
+ export const zLeadSchema = zProfileSchema // Extend from ProfileSchema
26
+ .extend({
27
+ status: zLeadStatusSchema.optional(),
28
+ qualification: zLeadQualificationSchema.nullable().optional(),
29
+ distChannel: zLeadDistChannelSchema.nullable().optional(),
30
+ address: zAddressSchema.nullable().optional(),
31
+ contact: zContactSchema.nullable().optional(),
32
+ tags: z.array(zTagSchema).nullable().optional(),
33
+ userRef: z.any(),
34
+ })
35
+ .passthrough();