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,127 @@
1
+ import { z } from "zod";
2
+ import { zFireDocSchema, zTagSchema } from "../../shared/zod-schemas";
3
+
4
+ export const zSpecialtyTypeSchema = zFireDocSchema
5
+ .extend({
6
+ code: z.string().min(1).max(10),
7
+ name: z.string().min(1).max(255),
8
+ })
9
+ .passthrough();
10
+
11
+ export const zSpecialtySchema = zFireDocSchema
12
+ .extend({
13
+ code: z.string().min(1).max(10),
14
+ name: z.string().min(1).max(255),
15
+ tiss: z.string().max(255).optional().default(""),
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 zPatientSourceSchema = zFireDocSchema
24
+ .extend({
25
+ code: z.string().min(1).max(10),
26
+ name: z.string().min(1).max(255),
27
+ tags: z.array(zTagSchema).nullable().optional(),
28
+ })
29
+ .passthrough();
30
+
31
+ export const zAppointmentSourceSchema = zFireDocSchema
32
+ .extend({
33
+ code: z.string().min(1).max(10),
34
+ name: z.string().min(1).max(255),
35
+ tags: z.array(zTagSchema).nullable().optional(),
36
+ })
37
+ .passthrough();
38
+
39
+ export const zAppointmentRequestTypeSchema = zFireDocSchema
40
+ .extend({
41
+ code: z.string().min(1).max(10),
42
+ name: z.string().min(1).max(255),
43
+ tags: z.array(zTagSchema).nullable().optional(),
44
+ })
45
+ .passthrough();
46
+
47
+ export const zAppointmentStatusTypeSchema = z.enum([
48
+ "rs",
49
+ "cf",
50
+ "ci",
51
+ "co",
52
+ "cx",
53
+ "ns",
54
+ ]);
55
+
56
+ export const zAppointmentStatusSchema = zFireDocSchema.extend({
57
+ code: z.string().min(1).max(10),
58
+ name: z.string().min(1).max(255),
59
+ type: zAppointmentStatusTypeSchema.default("rs"),
60
+ });
61
+
62
+ export const zMedicationSchema = z.object({
63
+ name: z.string().min(1).max(255),
64
+ dosage: z.string().max(255).nullable().optional().default(""),
65
+ frequency: z.string().max(255).nullable().optional().default(""),
66
+ });
67
+
68
+ export const zSeveritySchema = z.enum([
69
+ "Mild",
70
+ "Moderate",
71
+ "Severe",
72
+ "Unknown",
73
+ ]);
74
+
75
+ export const zChronicConditionSchema = zFireDocSchema.extend({
76
+ code: z.string().min(1).max(10),
77
+ name: z.string().min(1).max(255),
78
+ });
79
+
80
+ export const zAllergyKindSchema = z.enum(["Food", "Drug", "Insect", "Other"]);
81
+
82
+ export const zAllergySchema = zFireDocSchema.extend({
83
+ code: z.string().min(1).max(10),
84
+ name: z.string().min(1).max(255),
85
+ kind: zAllergyKindSchema.nullable().optional().default("Other"),
86
+ severity: zSeveritySchema.nullable().optional().default("Unknown"),
87
+ });
88
+
89
+ export const zMedicalCouncilUFSchema = z.enum([
90
+ "AC",
91
+ "AL",
92
+ "AP",
93
+ "AM",
94
+ "BA",
95
+ "CE",
96
+ "ES",
97
+ "GO",
98
+ "MA",
99
+ "MT",
100
+ "MS",
101
+ "MG",
102
+ "PA",
103
+ "PB",
104
+ "PR",
105
+ "PE",
106
+ "PI",
107
+ "RJ",
108
+ "RN",
109
+ "RS",
110
+ "RO",
111
+ "RR",
112
+ "SC",
113
+ "SP",
114
+ "SE",
115
+ "TO",
116
+ "DF",
117
+ "BR", //nacional
118
+ ]);
119
+
120
+ export const zMedicalCouncilSchema = zFireDocSchema
121
+ .extend({
122
+ name: z.string().min(1).max(255),
123
+ acronym: z.string().min(1).max(60),
124
+ uf: zMedicalCouncilUFSchema.nullable().optional().default("SP"),
125
+ country: z.string().min(1).max(255).nullable().optional().default("Brasil"),
126
+ })
127
+ .passthrough();
@@ -0,0 +1,421 @@
1
+ import { z } from "zod";
2
+ export declare const zTissContractSchema: z.ZodObject<{
3
+ type: z.ZodEnum<["PJ", "PF"]>;
4
+ operatorcode: z.ZodString;
5
+ taxId: z.ZodString;
6
+ name: z.ZodString;
7
+ cnes: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ name: string;
10
+ type: "PJ" | "PF";
11
+ operatorcode: string;
12
+ taxId: string;
13
+ cnes: string;
14
+ }, {
15
+ name: string;
16
+ type: "PJ" | "PF";
17
+ operatorcode: string;
18
+ taxId: string;
19
+ cnes: string;
20
+ }>;
21
+ export declare const zTissConfigSchema: z.ZodObject<{
22
+ active: z.ZodBoolean;
23
+ version: z.ZodString;
24
+ currentBatch: z.ZodNumber;
25
+ contract: z.ZodObject<{
26
+ type: z.ZodEnum<["PJ", "PF"]>;
27
+ operatorcode: z.ZodString;
28
+ taxId: z.ZodString;
29
+ name: z.ZodString;
30
+ cnes: z.ZodString;
31
+ }, "strip", z.ZodTypeAny, {
32
+ name: string;
33
+ type: "PJ" | "PF";
34
+ operatorcode: string;
35
+ taxId: string;
36
+ cnes: string;
37
+ }, {
38
+ name: string;
39
+ type: "PJ" | "PF";
40
+ operatorcode: string;
41
+ taxId: string;
42
+ cnes: string;
43
+ }>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ version: string;
46
+ active: boolean;
47
+ currentBatch: number;
48
+ contract: {
49
+ name: string;
50
+ type: "PJ" | "PF";
51
+ operatorcode: string;
52
+ taxId: string;
53
+ cnes: string;
54
+ };
55
+ }, {
56
+ version: string;
57
+ active: boolean;
58
+ currentBatch: number;
59
+ contract: {
60
+ name: string;
61
+ type: "PJ" | "PF";
62
+ operatorcode: string;
63
+ taxId: string;
64
+ cnes: string;
65
+ };
66
+ }>;
67
+ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendShape<{
68
+ id: z.ZodString;
69
+ ref: z.ZodAny;
70
+ tenant: z.ZodString;
71
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
72
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
73
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
74
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
75
+ }, {
76
+ code: z.ZodString;
77
+ name: z.ZodString;
78
+ corporate_name: z.ZodOptional<z.ZodString>;
79
+ tax_id: z.ZodOptional<z.ZodString>;
80
+ active: z.ZodBoolean;
81
+ ans: z.ZodOptional<z.ZodString>;
82
+ tiss: z.ZodOptional<z.ZodObject<{
83
+ active: z.ZodBoolean;
84
+ version: z.ZodString;
85
+ currentBatch: z.ZodNumber;
86
+ contract: z.ZodObject<{
87
+ type: z.ZodEnum<["PJ", "PF"]>;
88
+ operatorcode: z.ZodString;
89
+ taxId: z.ZodString;
90
+ name: z.ZodString;
91
+ cnes: z.ZodString;
92
+ }, "strip", z.ZodTypeAny, {
93
+ name: string;
94
+ type: "PJ" | "PF";
95
+ operatorcode: string;
96
+ taxId: string;
97
+ cnes: string;
98
+ }, {
99
+ name: string;
100
+ type: "PJ" | "PF";
101
+ operatorcode: string;
102
+ taxId: string;
103
+ cnes: string;
104
+ }>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ version: string;
107
+ active: boolean;
108
+ currentBatch: number;
109
+ contract: {
110
+ name: string;
111
+ type: "PJ" | "PF";
112
+ operatorcode: string;
113
+ taxId: string;
114
+ cnes: string;
115
+ };
116
+ }, {
117
+ version: string;
118
+ active: boolean;
119
+ currentBatch: number;
120
+ contract: {
121
+ name: string;
122
+ type: "PJ" | "PF";
123
+ operatorcode: string;
124
+ taxId: string;
125
+ cnes: string;
126
+ };
127
+ }>>;
128
+ address: z.ZodObject<{
129
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
130
+ kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
131
+ line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
132
+ line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
133
+ city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
134
+ state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
135
+ zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
136
+ country: z.ZodDefault<z.ZodOptional<z.ZodString>>;
137
+ geo: z.ZodOptional<z.ZodAny>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ name: string;
140
+ kind: string;
141
+ country: string;
142
+ line1: string;
143
+ line2: string;
144
+ city: string;
145
+ state: string;
146
+ zip: string;
147
+ geo?: any;
148
+ }, {
149
+ name?: string | undefined;
150
+ kind?: string | undefined;
151
+ country?: string | undefined;
152
+ line1?: string | undefined;
153
+ line2?: string | undefined;
154
+ city?: string | undefined;
155
+ state?: string | undefined;
156
+ zip?: string | undefined;
157
+ geo?: any;
158
+ }>;
159
+ contact: z.ZodObject<{
160
+ email: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
161
+ phone: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
162
+ mobile: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ email: string | null;
165
+ phone: string | null;
166
+ mobile: string | null;
167
+ }, {
168
+ email?: string | null | undefined;
169
+ phone?: string | null | undefined;
170
+ mobile?: string | null | undefined;
171
+ }>;
172
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
173
+ name: z.ZodString;
174
+ color: z.ZodOptional<z.ZodString>;
175
+ hidden: z.ZodBoolean;
176
+ }, "strip", z.ZodTypeAny, {
177
+ name: string;
178
+ hidden: boolean;
179
+ color?: string | undefined;
180
+ }, {
181
+ name: string;
182
+ hidden: boolean;
183
+ color?: string | undefined;
184
+ }>, "many">>>;
185
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
186
+ id: z.ZodString;
187
+ ref: z.ZodAny;
188
+ tenant: z.ZodString;
189
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
190
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
191
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
192
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
193
+ }, {
194
+ code: z.ZodString;
195
+ name: z.ZodString;
196
+ corporate_name: z.ZodOptional<z.ZodString>;
197
+ tax_id: z.ZodOptional<z.ZodString>;
198
+ active: z.ZodBoolean;
199
+ ans: z.ZodOptional<z.ZodString>;
200
+ tiss: z.ZodOptional<z.ZodObject<{
201
+ active: z.ZodBoolean;
202
+ version: z.ZodString;
203
+ currentBatch: z.ZodNumber;
204
+ contract: z.ZodObject<{
205
+ type: z.ZodEnum<["PJ", "PF"]>;
206
+ operatorcode: z.ZodString;
207
+ taxId: z.ZodString;
208
+ name: z.ZodString;
209
+ cnes: z.ZodString;
210
+ }, "strip", z.ZodTypeAny, {
211
+ name: string;
212
+ type: "PJ" | "PF";
213
+ operatorcode: string;
214
+ taxId: string;
215
+ cnes: string;
216
+ }, {
217
+ name: string;
218
+ type: "PJ" | "PF";
219
+ operatorcode: string;
220
+ taxId: string;
221
+ cnes: string;
222
+ }>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ version: string;
225
+ active: boolean;
226
+ currentBatch: number;
227
+ contract: {
228
+ name: string;
229
+ type: "PJ" | "PF";
230
+ operatorcode: string;
231
+ taxId: string;
232
+ cnes: string;
233
+ };
234
+ }, {
235
+ version: string;
236
+ active: boolean;
237
+ currentBatch: number;
238
+ contract: {
239
+ name: string;
240
+ type: "PJ" | "PF";
241
+ operatorcode: string;
242
+ taxId: string;
243
+ cnes: string;
244
+ };
245
+ }>>;
246
+ address: z.ZodObject<{
247
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
248
+ kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
249
+ line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
250
+ line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
251
+ city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
252
+ state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
253
+ zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
254
+ country: z.ZodDefault<z.ZodOptional<z.ZodString>>;
255
+ geo: z.ZodOptional<z.ZodAny>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ name: string;
258
+ kind: string;
259
+ country: string;
260
+ line1: string;
261
+ line2: string;
262
+ city: string;
263
+ state: string;
264
+ zip: string;
265
+ geo?: any;
266
+ }, {
267
+ name?: string | undefined;
268
+ kind?: string | undefined;
269
+ country?: string | undefined;
270
+ line1?: string | undefined;
271
+ line2?: string | undefined;
272
+ city?: string | undefined;
273
+ state?: string | undefined;
274
+ zip?: string | undefined;
275
+ geo?: any;
276
+ }>;
277
+ contact: z.ZodObject<{
278
+ email: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
279
+ phone: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
280
+ mobile: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ email: string | null;
283
+ phone: string | null;
284
+ mobile: string | null;
285
+ }, {
286
+ email?: string | null | undefined;
287
+ phone?: string | null | undefined;
288
+ mobile?: string | null | undefined;
289
+ }>;
290
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
291
+ name: z.ZodString;
292
+ color: z.ZodOptional<z.ZodString>;
293
+ hidden: z.ZodBoolean;
294
+ }, "strip", z.ZodTypeAny, {
295
+ name: string;
296
+ hidden: boolean;
297
+ color?: string | undefined;
298
+ }, {
299
+ name: string;
300
+ hidden: boolean;
301
+ color?: string | undefined;
302
+ }>, "many">>>;
303
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
304
+ id: z.ZodString;
305
+ ref: z.ZodAny;
306
+ tenant: z.ZodString;
307
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
308
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
309
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
310
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
311
+ }, {
312
+ code: z.ZodString;
313
+ name: z.ZodString;
314
+ corporate_name: z.ZodOptional<z.ZodString>;
315
+ tax_id: z.ZodOptional<z.ZodString>;
316
+ active: z.ZodBoolean;
317
+ ans: z.ZodOptional<z.ZodString>;
318
+ tiss: z.ZodOptional<z.ZodObject<{
319
+ active: z.ZodBoolean;
320
+ version: z.ZodString;
321
+ currentBatch: z.ZodNumber;
322
+ contract: z.ZodObject<{
323
+ type: z.ZodEnum<["PJ", "PF"]>;
324
+ operatorcode: z.ZodString;
325
+ taxId: z.ZodString;
326
+ name: z.ZodString;
327
+ cnes: z.ZodString;
328
+ }, "strip", z.ZodTypeAny, {
329
+ name: string;
330
+ type: "PJ" | "PF";
331
+ operatorcode: string;
332
+ taxId: string;
333
+ cnes: string;
334
+ }, {
335
+ name: string;
336
+ type: "PJ" | "PF";
337
+ operatorcode: string;
338
+ taxId: string;
339
+ cnes: string;
340
+ }>;
341
+ }, "strip", z.ZodTypeAny, {
342
+ version: string;
343
+ active: boolean;
344
+ currentBatch: number;
345
+ contract: {
346
+ name: string;
347
+ type: "PJ" | "PF";
348
+ operatorcode: string;
349
+ taxId: string;
350
+ cnes: string;
351
+ };
352
+ }, {
353
+ version: string;
354
+ active: boolean;
355
+ currentBatch: number;
356
+ contract: {
357
+ name: string;
358
+ type: "PJ" | "PF";
359
+ operatorcode: string;
360
+ taxId: string;
361
+ cnes: string;
362
+ };
363
+ }>>;
364
+ address: z.ZodObject<{
365
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
366
+ kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
367
+ line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
368
+ line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
369
+ city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
370
+ state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
371
+ zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
372
+ country: z.ZodDefault<z.ZodOptional<z.ZodString>>;
373
+ geo: z.ZodOptional<z.ZodAny>;
374
+ }, "strip", z.ZodTypeAny, {
375
+ name: string;
376
+ kind: string;
377
+ country: string;
378
+ line1: string;
379
+ line2: string;
380
+ city: string;
381
+ state: string;
382
+ zip: string;
383
+ geo?: any;
384
+ }, {
385
+ name?: string | undefined;
386
+ kind?: string | undefined;
387
+ country?: string | undefined;
388
+ line1?: string | undefined;
389
+ line2?: string | undefined;
390
+ city?: string | undefined;
391
+ state?: string | undefined;
392
+ zip?: string | undefined;
393
+ geo?: any;
394
+ }>;
395
+ contact: z.ZodObject<{
396
+ email: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
397
+ phone: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
398
+ mobile: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
399
+ }, "strip", z.ZodTypeAny, {
400
+ email: string | null;
401
+ phone: string | null;
402
+ mobile: string | null;
403
+ }, {
404
+ email?: string | null | undefined;
405
+ phone?: string | null | undefined;
406
+ mobile?: string | null | undefined;
407
+ }>;
408
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
409
+ name: z.ZodString;
410
+ color: z.ZodOptional<z.ZodString>;
411
+ hidden: z.ZodBoolean;
412
+ }, "strip", z.ZodTypeAny, {
413
+ name: string;
414
+ hidden: boolean;
415
+ color?: string | undefined;
416
+ }, {
417
+ name: string;
418
+ hidden: boolean;
419
+ color?: string | undefined;
420
+ }>, "many">>>;
421
+ }>, z.ZodTypeAny, "passthrough">>;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zInsuranceCompanySchema = exports.zTissConfigSchema = exports.zTissContractSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_schemas_1 = require("../../shared/zod-schemas");
6
+ // Define Zod schemas for each interface
7
+ exports.zTissContractSchema = zod_1.z.object({
8
+ type: zod_1.z.enum(["PJ", "PF"]),
9
+ operatorcode: zod_1.z.string().min(1).max(10),
10
+ taxId: zod_1.z.string().min(1).max(255),
11
+ name: zod_1.z.string().min(1).max(255),
12
+ cnes: zod_1.z.string().min(1).max(255),
13
+ });
14
+ exports.zTissConfigSchema = zod_1.z.object({
15
+ active: zod_1.z.boolean(),
16
+ version: zod_1.z.string().min(1).max(20),
17
+ currentBatch: zod_1.z.number(),
18
+ contract: exports.zTissContractSchema,
19
+ });
20
+ exports.zInsuranceCompanySchema = zod_schemas_1.zFireDocSchema
21
+ .extend({
22
+ code: zod_1.z.string().min(1).max(10),
23
+ name: zod_1.z.string().min(1).max(255),
24
+ corporate_name: zod_1.z.string().optional(),
25
+ tax_id: zod_1.z.string().optional(),
26
+ active: zod_1.z.boolean(),
27
+ ans: zod_1.z.string().min(1).max(255).optional(),
28
+ tiss: exports.zTissConfigSchema.optional(),
29
+ address: zod_schemas_1.zAddressSchema,
30
+ contact: zod_schemas_1.zContactSchema,
31
+ tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
32
+ })
33
+ .passthrough();
@@ -0,0 +1,39 @@
1
+ import { z } from "zod";
2
+ import {
3
+ zAddressSchema,
4
+ zContactSchema,
5
+ zFireDocSchema,
6
+ zTagSchema,
7
+ } from "../../shared/zod-schemas";
8
+
9
+ // Define Zod schemas for each interface
10
+
11
+ export const zTissContractSchema = z.object({
12
+ type: z.enum(["PJ", "PF"]),
13
+ operatorcode: z.string().min(1).max(10),
14
+ taxId: z.string().min(1).max(255),
15
+ name: z.string().min(1).max(255),
16
+ cnes: z.string().min(1).max(255),
17
+ });
18
+
19
+ export const zTissConfigSchema = z.object({
20
+ active: z.boolean(),
21
+ version: z.string().min(1).max(20),
22
+ currentBatch: z.number(),
23
+ contract: zTissContractSchema,
24
+ });
25
+
26
+ export const zInsuranceCompanySchema = zFireDocSchema
27
+ .extend({
28
+ code: z.string().min(1).max(10),
29
+ name: z.string().min(1).max(255),
30
+ corporate_name: z.string().optional(),
31
+ tax_id: z.string().optional(),
32
+ active: z.boolean(),
33
+ ans: z.string().min(1).max(255).optional(),
34
+ tiss: zTissConfigSchema.optional(),
35
+ address: zAddressSchema,
36
+ contact: zContactSchema,
37
+ tags: z.array(zTagSchema).nullable().optional(),
38
+ })
39
+ .passthrough();