evo360-types 1.3.4 → 1.3.6

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/package.json +1 -1
  2. package/dist/apps/evo-activity/zod-schemas.d.ts +0 -93
  3. package/dist/apps/evo-activity/zod-schemas.js +0 -40
  4. package/dist/apps/evo-activity/zod-schemas.ts +0 -43
  5. package/dist/apps/evo-cake/zod-schemas.d.ts +0 -783
  6. package/dist/apps/evo-cake/zod-schemas.js +0 -110
  7. package/dist/apps/evo-cake/zod-schemas.ts +0 -121
  8. package/dist/apps/evo-calendar/zod-schemas.d.ts +0 -71
  9. package/dist/apps/evo-calendar/zod-schemas.js +0 -32
  10. package/dist/apps/evo-calendar/zod-schemas.ts +0 -33
  11. package/dist/apps/evo-core/zod-schemas.d.ts +0 -14
  12. package/dist/apps/evo-core/zod-schemas.js +0 -9
  13. package/dist/apps/evo-core/zod-schemas.ts +0 -7
  14. package/dist/apps/evo-crm/dic/zod-schemas.d.ts +0 -233
  15. package/dist/apps/evo-crm/dic/zod-schemas.js +0 -45
  16. package/dist/apps/evo-crm/dic/zod-schemas.ts +0 -46
  17. package/dist/apps/evo-crm/lead/zod-schemas.d.ts +0 -347
  18. package/dist/apps/evo-crm/lead/zod-schemas.js +0 -30
  19. package/dist/apps/evo-crm/lead/zod-schemas.ts +0 -35
  20. package/dist/apps/evo-med/dic/zod-schemas.d.ts +0 -501
  21. package/dist/apps/evo-med/dic/zod-schemas.js +0 -116
  22. package/dist/apps/evo-med/dic/zod-schemas.ts +0 -127
  23. package/dist/apps/evo-med/insurance/zod-schemas.d.ts +0 -421
  24. package/dist/apps/evo-med/insurance/zod-schemas.js +0 -33
  25. package/dist/apps/evo-med/insurance/zod-schemas.ts +0 -39
  26. package/dist/apps/evo-med/people/zod-schemas.d.ts +0 -955
  27. package/dist/apps/evo-med/people/zod-schemas.js +0 -100
  28. package/dist/apps/evo-med/people/zod-schemas.ts +0 -117
  29. package/dist/apps/evo-med/procedure/zod-schemas.d.ts +0 -141
  30. package/dist/apps/evo-med/procedure/zod-schemas.js +0 -26
  31. package/dist/apps/evo-med/procedure/zod-schemas.ts +0 -26
  32. package/dist/apps/evo-meeting/zod-schemas.d.ts +0 -429
  33. package/dist/apps/evo-meeting/zod-schemas.js +0 -56
  34. package/dist/apps/evo-meeting/zod-schemas.ts +0 -62
  35. package/dist/apps/evo-people/zod-schemas.d.ts +0 -476
  36. package/dist/apps/evo-people/zod-schemas.js +0 -120
  37. package/dist/apps/evo-people/zod-schemas.ts +0 -124
  38. package/dist/apps/evo-survey/zod-schemas.d.ts +0 -1579
  39. package/dist/apps/evo-survey/zod-schemas.js +0 -191
  40. package/dist/apps/evo-survey/zod-schemas.ts +0 -209
  41. package/dist/apps/evo-task/zod-schemas.d.ts +0 -4
  42. package/dist/apps/evo-task/zod-schemas.js +0 -17
  43. package/dist/apps/evo-task/zod-schemas.ts +0 -17
  44. package/dist/apps/evo-tenant/zod-schemas.d.ts +0 -51
  45. package/dist/apps/evo-tenant/zod-schemas.js +0 -22
  46. package/dist/apps/evo-tenant/zod-schemas.ts +0 -23
  47. package/dist/apps/shared/zod-schemas.d.ts +0 -84
  48. package/dist/apps/shared/zod-schemas.js +0 -49
  49. package/dist/apps/shared/zod-schemas.ts +0 -51
  50. package/dist/index.d.ts +0 -35
  51. package/dist/index.js +0 -50
  52. package/dist/index.ts +0 -35
  53. package/dist/types/evo-activity/fb_collections.d.ts +0 -4
  54. package/dist/types/evo-activity/fb_collections.js +0 -9
  55. package/dist/types/evo-activity/fb_collections.ts +0 -7
  56. package/dist/types/evo-activity/index.d.ts +0 -28
  57. package/dist/types/evo-activity/index.js +0 -27
  58. package/dist/types/evo-activity/index.ts +0 -45
  59. package/dist/types/evo-cake/fb_collections.d.ts +0 -4
  60. package/dist/types/evo-cake/fb_collections.js +0 -9
  61. package/dist/types/evo-cake/fb_collections.ts +0 -7
  62. package/dist/types/evo-cake/index.d.ts +0 -111
  63. package/dist/types/evo-cake/index.js +0 -79
  64. package/dist/types/evo-cake/index.ts +0 -186
  65. package/dist/types/evo-calendar/fb_collections.d.ts +0 -2
  66. package/dist/types/evo-calendar/fb_collections.js +0 -7
  67. package/dist/types/evo-calendar/fb_collections.ts +0 -5
  68. package/dist/types/evo-calendar/index.d.ts +0 -56
  69. package/dist/types/evo-calendar/index.js +0 -37
  70. package/dist/types/evo-calendar/index.ts +0 -69
  71. package/dist/types/evo-core/index.d.ts +0 -41
  72. package/dist/types/evo-core/index.js +0 -2
  73. package/dist/types/evo-core/index.ts +0 -48
  74. package/dist/types/evo-crm/dic/index.d.ts +0 -50
  75. package/dist/types/evo-crm/dic/index.js +0 -31
  76. package/dist/types/evo-crm/dic/index.ts +0 -84
  77. package/dist/types/evo-crm/fb_collections.d.ts +0 -7
  78. package/dist/types/evo-crm/fb_collections.js +0 -13
  79. package/dist/types/evo-crm/fb_collections.ts +0 -13
  80. package/dist/types/evo-crm/lead/index.d.ts +0 -30
  81. package/dist/types/evo-crm/lead/index.js +0 -9
  82. package/dist/types/evo-crm/lead/index.ts +0 -40
  83. package/dist/types/evo-med/dic/index.d.ts +0 -99
  84. package/dist/types/evo-med/dic/index.js +0 -52
  85. package/dist/types/evo-med/dic/index.ts +0 -131
  86. package/dist/types/evo-med/fb_collections.d.ts +0 -20
  87. package/dist/types/evo-med/fb_collections.js +0 -28
  88. package/dist/types/evo-med/fb_collections.ts +0 -31
  89. package/dist/types/evo-med/insurance/index.d.ts +0 -34
  90. package/dist/types/evo-med/insurance/index.js +0 -24
  91. package/dist/types/evo-med/insurance/index.ts +0 -45
  92. package/dist/types/evo-med/people/index.d.ts +0 -125
  93. package/dist/types/evo-med/people/index.js +0 -66
  94. package/dist/types/evo-med/people/index.ts +0 -188
  95. package/dist/types/evo-med/procedure/index.d.ts +0 -36
  96. package/dist/types/evo-med/procedure/index.js +0 -30
  97. package/dist/types/evo-med/procedure/index.ts +0 -48
  98. package/dist/types/evo-meeting/fb_collections.d.ts +0 -2
  99. package/dist/types/evo-meeting/fb_collections.js +0 -7
  100. package/dist/types/evo-meeting/fb_collections.ts +0 -5
  101. package/dist/types/evo-meeting/index.d.ts +0 -58
  102. package/dist/types/evo-meeting/index.js +0 -32
  103. package/dist/types/evo-meeting/index.ts +0 -80
  104. package/dist/types/evo-messages/fb_collections.d.ts +0 -1
  105. package/dist/types/evo-messages/fb_collections.js +0 -2
  106. package/dist/types/evo-messages/fb_collections.ts +0 -0
  107. package/dist/types/evo-people/fb_collections.d.ts +0 -5
  108. package/dist/types/evo-people/fb_collections.js +0 -10
  109. package/dist/types/evo-people/fb_collections.ts +0 -8
  110. package/dist/types/evo-people/index.d.ts +0 -117
  111. package/dist/types/evo-people/index.js +0 -59
  112. package/dist/types/evo-people/index.ts +0 -167
  113. package/dist/types/evo-survey/fb_collections.d.ts +0 -7
  114. package/dist/types/evo-survey/fb_collections.js +0 -13
  115. package/dist/types/evo-survey/fb_collections.ts +0 -12
  116. package/dist/types/evo-survey/index.d.ts +0 -172
  117. package/dist/types/evo-survey/index.js +0 -70
  118. package/dist/types/evo-survey/index.ts +0 -224
  119. package/dist/types/evo-task/fb_collections.d.ts +0 -2
  120. package/dist/types/evo-task/fb_collections.js +0 -7
  121. package/dist/types/evo-task/fb_collections.ts +0 -5
  122. package/dist/types/evo-task/index.d.ts +0 -35
  123. package/dist/types/evo-task/index.js +0 -38
  124. package/dist/types/evo-task/index.ts +0 -51
  125. package/dist/types/evo-tenant/fb_collections.d.ts +0 -1
  126. package/dist/types/evo-tenant/fb_collections.js +0 -5
  127. package/dist/types/evo-tenant/fb_collections.ts +0 -2
  128. package/dist/types/evo-tenant/index.d.ts +0 -28
  129. package/dist/types/evo-tenant/index.js +0 -35
  130. package/dist/types/evo-tenant/index.ts +0 -35
  131. package/dist/types/shared/fb_collections.d.ts +0 -5
  132. package/dist/types/shared/fb_collections.js +0 -13
  133. package/dist/types/shared/fb_collections.ts +0 -14
  134. package/dist/types/shared/index.d.ts +0 -52
  135. package/dist/types/shared/index.js +0 -30
  136. package/dist/types/shared/index.ts +0 -74
  137. package/dist/types/shared/maska.d.ts +0 -23
  138. package/dist/types/shared/maska.js +0 -2
  139. package/dist/types/shared/maska.ts +0 -26
@@ -1,46 +0,0 @@
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();
@@ -1,347 +0,0 @@
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">>;
@@ -1,30 +0,0 @@
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();
@@ -1,35 +0,0 @@
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();