evo360-types 1.3.82 → 1.3.84
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.
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const zTissContractSchema: z.ZodObject<{
|
|
3
3
|
type: z.ZodEnum<["PJ", "PF"]>;
|
|
4
|
-
|
|
4
|
+
operator_code: z.ZodString;
|
|
5
5
|
taxId: z.ZodString;
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
cnes: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
name: string;
|
|
10
10
|
type: "PJ" | "PF";
|
|
11
|
-
|
|
11
|
+
operator_code: string;
|
|
12
12
|
taxId: string;
|
|
13
13
|
cnes: string;
|
|
14
14
|
}, {
|
|
15
15
|
name: string;
|
|
16
16
|
type: "PJ" | "PF";
|
|
17
|
-
|
|
17
|
+
operator_code: string;
|
|
18
18
|
taxId: string;
|
|
19
19
|
cnes: string;
|
|
20
20
|
}>;
|
|
21
21
|
export declare const zTissConfigSchema: z.ZodObject<{
|
|
22
22
|
active: z.ZodBoolean;
|
|
23
23
|
version: z.ZodString;
|
|
24
|
-
|
|
24
|
+
current_batch: z.ZodNumber;
|
|
25
25
|
contract: z.ZodObject<{
|
|
26
26
|
type: z.ZodEnum<["PJ", "PF"]>;
|
|
27
|
-
|
|
27
|
+
operator_code: z.ZodString;
|
|
28
28
|
taxId: z.ZodString;
|
|
29
29
|
name: z.ZodString;
|
|
30
30
|
cnes: z.ZodString;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
name: string;
|
|
33
33
|
type: "PJ" | "PF";
|
|
34
|
-
|
|
34
|
+
operator_code: string;
|
|
35
35
|
taxId: string;
|
|
36
36
|
cnes: string;
|
|
37
37
|
}, {
|
|
38
38
|
name: string;
|
|
39
39
|
type: "PJ" | "PF";
|
|
40
|
-
|
|
40
|
+
operator_code: string;
|
|
41
41
|
taxId: string;
|
|
42
42
|
cnes: string;
|
|
43
43
|
}>;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
45
|
version: string;
|
|
46
46
|
active: boolean;
|
|
47
|
-
|
|
47
|
+
current_batch: number;
|
|
48
48
|
contract: {
|
|
49
49
|
name: string;
|
|
50
50
|
type: "PJ" | "PF";
|
|
51
|
-
|
|
51
|
+
operator_code: string;
|
|
52
52
|
taxId: string;
|
|
53
53
|
cnes: string;
|
|
54
54
|
};
|
|
55
55
|
}, {
|
|
56
56
|
version: string;
|
|
57
57
|
active: boolean;
|
|
58
|
-
|
|
58
|
+
current_batch: number;
|
|
59
59
|
contract: {
|
|
60
60
|
name: string;
|
|
61
61
|
type: "PJ" | "PF";
|
|
62
|
-
|
|
62
|
+
operator_code: string;
|
|
63
63
|
taxId: string;
|
|
64
64
|
cnes: string;
|
|
65
65
|
};
|
|
@@ -77,50 +77,50 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
77
77
|
name: z.ZodString;
|
|
78
78
|
corporate_name: z.ZodOptional<z.ZodString>;
|
|
79
79
|
tax_id: z.ZodOptional<z.ZodString>;
|
|
80
|
-
active: z.ZodBoolean
|
|
80
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
81
81
|
ans: z.ZodOptional<z.ZodString>;
|
|
82
82
|
tiss: z.ZodOptional<z.ZodObject<{
|
|
83
83
|
active: z.ZodBoolean;
|
|
84
84
|
version: z.ZodString;
|
|
85
|
-
|
|
85
|
+
current_batch: z.ZodNumber;
|
|
86
86
|
contract: z.ZodObject<{
|
|
87
87
|
type: z.ZodEnum<["PJ", "PF"]>;
|
|
88
|
-
|
|
88
|
+
operator_code: z.ZodString;
|
|
89
89
|
taxId: z.ZodString;
|
|
90
90
|
name: z.ZodString;
|
|
91
91
|
cnes: z.ZodString;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
93
|
name: string;
|
|
94
94
|
type: "PJ" | "PF";
|
|
95
|
-
|
|
95
|
+
operator_code: string;
|
|
96
96
|
taxId: string;
|
|
97
97
|
cnes: string;
|
|
98
98
|
}, {
|
|
99
99
|
name: string;
|
|
100
100
|
type: "PJ" | "PF";
|
|
101
|
-
|
|
101
|
+
operator_code: string;
|
|
102
102
|
taxId: string;
|
|
103
103
|
cnes: string;
|
|
104
104
|
}>;
|
|
105
105
|
}, "strip", z.ZodTypeAny, {
|
|
106
106
|
version: string;
|
|
107
107
|
active: boolean;
|
|
108
|
-
|
|
108
|
+
current_batch: number;
|
|
109
109
|
contract: {
|
|
110
110
|
name: string;
|
|
111
111
|
type: "PJ" | "PF";
|
|
112
|
-
|
|
112
|
+
operator_code: string;
|
|
113
113
|
taxId: string;
|
|
114
114
|
cnes: string;
|
|
115
115
|
};
|
|
116
116
|
}, {
|
|
117
117
|
version: string;
|
|
118
118
|
active: boolean;
|
|
119
|
-
|
|
119
|
+
current_batch: number;
|
|
120
120
|
contract: {
|
|
121
121
|
name: string;
|
|
122
122
|
type: "PJ" | "PF";
|
|
123
|
-
|
|
123
|
+
operator_code: string;
|
|
124
124
|
taxId: string;
|
|
125
125
|
cnes: string;
|
|
126
126
|
};
|
|
@@ -201,50 +201,50 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
201
201
|
name: z.ZodString;
|
|
202
202
|
corporate_name: z.ZodOptional<z.ZodString>;
|
|
203
203
|
tax_id: z.ZodOptional<z.ZodString>;
|
|
204
|
-
active: z.ZodBoolean
|
|
204
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
205
205
|
ans: z.ZodOptional<z.ZodString>;
|
|
206
206
|
tiss: z.ZodOptional<z.ZodObject<{
|
|
207
207
|
active: z.ZodBoolean;
|
|
208
208
|
version: z.ZodString;
|
|
209
|
-
|
|
209
|
+
current_batch: z.ZodNumber;
|
|
210
210
|
contract: z.ZodObject<{
|
|
211
211
|
type: z.ZodEnum<["PJ", "PF"]>;
|
|
212
|
-
|
|
212
|
+
operator_code: z.ZodString;
|
|
213
213
|
taxId: z.ZodString;
|
|
214
214
|
name: z.ZodString;
|
|
215
215
|
cnes: z.ZodString;
|
|
216
216
|
}, "strip", z.ZodTypeAny, {
|
|
217
217
|
name: string;
|
|
218
218
|
type: "PJ" | "PF";
|
|
219
|
-
|
|
219
|
+
operator_code: string;
|
|
220
220
|
taxId: string;
|
|
221
221
|
cnes: string;
|
|
222
222
|
}, {
|
|
223
223
|
name: string;
|
|
224
224
|
type: "PJ" | "PF";
|
|
225
|
-
|
|
225
|
+
operator_code: string;
|
|
226
226
|
taxId: string;
|
|
227
227
|
cnes: string;
|
|
228
228
|
}>;
|
|
229
229
|
}, "strip", z.ZodTypeAny, {
|
|
230
230
|
version: string;
|
|
231
231
|
active: boolean;
|
|
232
|
-
|
|
232
|
+
current_batch: number;
|
|
233
233
|
contract: {
|
|
234
234
|
name: string;
|
|
235
235
|
type: "PJ" | "PF";
|
|
236
|
-
|
|
236
|
+
operator_code: string;
|
|
237
237
|
taxId: string;
|
|
238
238
|
cnes: string;
|
|
239
239
|
};
|
|
240
240
|
}, {
|
|
241
241
|
version: string;
|
|
242
242
|
active: boolean;
|
|
243
|
-
|
|
243
|
+
current_batch: number;
|
|
244
244
|
contract: {
|
|
245
245
|
name: string;
|
|
246
246
|
type: "PJ" | "PF";
|
|
247
|
-
|
|
247
|
+
operator_code: string;
|
|
248
248
|
taxId: string;
|
|
249
249
|
cnes: string;
|
|
250
250
|
};
|
|
@@ -325,50 +325,50 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
325
325
|
name: z.ZodString;
|
|
326
326
|
corporate_name: z.ZodOptional<z.ZodString>;
|
|
327
327
|
tax_id: z.ZodOptional<z.ZodString>;
|
|
328
|
-
active: z.ZodBoolean
|
|
328
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
329
329
|
ans: z.ZodOptional<z.ZodString>;
|
|
330
330
|
tiss: z.ZodOptional<z.ZodObject<{
|
|
331
331
|
active: z.ZodBoolean;
|
|
332
332
|
version: z.ZodString;
|
|
333
|
-
|
|
333
|
+
current_batch: z.ZodNumber;
|
|
334
334
|
contract: z.ZodObject<{
|
|
335
335
|
type: z.ZodEnum<["PJ", "PF"]>;
|
|
336
|
-
|
|
336
|
+
operator_code: z.ZodString;
|
|
337
337
|
taxId: z.ZodString;
|
|
338
338
|
name: z.ZodString;
|
|
339
339
|
cnes: z.ZodString;
|
|
340
340
|
}, "strip", z.ZodTypeAny, {
|
|
341
341
|
name: string;
|
|
342
342
|
type: "PJ" | "PF";
|
|
343
|
-
|
|
343
|
+
operator_code: string;
|
|
344
344
|
taxId: string;
|
|
345
345
|
cnes: string;
|
|
346
346
|
}, {
|
|
347
347
|
name: string;
|
|
348
348
|
type: "PJ" | "PF";
|
|
349
|
-
|
|
349
|
+
operator_code: string;
|
|
350
350
|
taxId: string;
|
|
351
351
|
cnes: string;
|
|
352
352
|
}>;
|
|
353
353
|
}, "strip", z.ZodTypeAny, {
|
|
354
354
|
version: string;
|
|
355
355
|
active: boolean;
|
|
356
|
-
|
|
356
|
+
current_batch: number;
|
|
357
357
|
contract: {
|
|
358
358
|
name: string;
|
|
359
359
|
type: "PJ" | "PF";
|
|
360
|
-
|
|
360
|
+
operator_code: string;
|
|
361
361
|
taxId: string;
|
|
362
362
|
cnes: string;
|
|
363
363
|
};
|
|
364
364
|
}, {
|
|
365
365
|
version: string;
|
|
366
366
|
active: boolean;
|
|
367
|
-
|
|
367
|
+
current_batch: number;
|
|
368
368
|
contract: {
|
|
369
369
|
name: string;
|
|
370
370
|
type: "PJ" | "PF";
|
|
371
|
-
|
|
371
|
+
operator_code: string;
|
|
372
372
|
taxId: string;
|
|
373
373
|
cnes: string;
|
|
374
374
|
};
|
|
@@ -6,15 +6,15 @@ const zod_schemas_1 = require("../../shared/zod-schemas");
|
|
|
6
6
|
// Define Zod schemas for each interface
|
|
7
7
|
exports.zTissContractSchema = zod_1.z.object({
|
|
8
8
|
type: zod_1.z.enum(["PJ", "PF"]),
|
|
9
|
-
|
|
10
|
-
taxId: zod_1.z.string().
|
|
11
|
-
name: zod_1.z.string().
|
|
12
|
-
cnes: zod_1.z.string().
|
|
9
|
+
operator_code: zod_1.z.string().max(20),
|
|
10
|
+
taxId: zod_1.z.string().max(255),
|
|
11
|
+
name: zod_1.z.string().max(255),
|
|
12
|
+
cnes: zod_1.z.string().max(255),
|
|
13
13
|
});
|
|
14
14
|
exports.zTissConfigSchema = zod_1.z.object({
|
|
15
15
|
active: zod_1.z.boolean(),
|
|
16
|
-
version: zod_1.z.string().
|
|
17
|
-
|
|
16
|
+
version: zod_1.z.string().max(20),
|
|
17
|
+
current_batch: zod_1.z.number(),
|
|
18
18
|
contract: exports.zTissContractSchema,
|
|
19
19
|
});
|
|
20
20
|
exports.zInsuranceCompanySchema = zod_schemas_1.zFireDocSchema
|
|
@@ -22,9 +22,9 @@ exports.zInsuranceCompanySchema = zod_schemas_1.zFireDocSchema
|
|
|
22
22
|
code: zod_1.z.string().min(1).max(20),
|
|
23
23
|
name: zod_1.z.string().min(1).max(255),
|
|
24
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().
|
|
25
|
+
tax_id: zod_1.z.string().max(60).optional(),
|
|
26
|
+
active: zod_1.z.boolean().default(true),
|
|
27
|
+
ans: zod_1.z.string().max(255).optional(),
|
|
28
28
|
tiss: exports.zTissConfigSchema.optional(),
|
|
29
29
|
address: zod_schemas_1.zAddressSchema,
|
|
30
30
|
contact: zod_schemas_1.zContactSchema,
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
|
|
11
11
|
export const zTissContractSchema = z.object({
|
|
12
12
|
type: z.enum(["PJ", "PF"]),
|
|
13
|
-
|
|
14
|
-
taxId: z.string().
|
|
15
|
-
name: z.string().
|
|
16
|
-
cnes: z.string().
|
|
13
|
+
operator_code: z.string().max(20),
|
|
14
|
+
taxId: z.string().max(255),
|
|
15
|
+
name: z.string().max(255),
|
|
16
|
+
cnes: z.string().max(255),
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
export const zTissConfigSchema = z.object({
|
|
20
20
|
active: z.boolean(),
|
|
21
|
-
version: z.string().
|
|
22
|
-
|
|
21
|
+
version: z.string().max(20),
|
|
22
|
+
current_batch: z.number(),
|
|
23
23
|
contract: zTissContractSchema,
|
|
24
24
|
});
|
|
25
25
|
|
|
@@ -28,9 +28,9 @@ export const zInsuranceCompanySchema = zFireDocSchema
|
|
|
28
28
|
code: z.string().min(1).max(20),
|
|
29
29
|
name: z.string().min(1).max(255),
|
|
30
30
|
corporate_name: z.string().optional(),
|
|
31
|
-
tax_id: z.string().optional(),
|
|
32
|
-
active: z.boolean(),
|
|
33
|
-
ans: z.string().
|
|
31
|
+
tax_id: z.string().max(60).optional(),
|
|
32
|
+
active: z.boolean().default(true),
|
|
33
|
+
ans: z.string().max(255).optional(),
|
|
34
34
|
tiss: zTissConfigSchema.optional(),
|
|
35
35
|
address: zAddressSchema,
|
|
36
36
|
contact: zContactSchema,
|