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.
- package/dist/apps/evo-activity/zod-schemas.d.ts +93 -0
- package/dist/apps/evo-activity/zod-schemas.js +40 -0
- package/dist/apps/evo-activity/zod-schemas.ts +43 -0
- package/dist/apps/evo-cake/zod-schemas.d.ts +783 -0
- package/dist/apps/evo-cake/zod-schemas.js +110 -0
- package/dist/apps/evo-cake/zod-schemas.ts +121 -0
- package/dist/apps/evo-calendar/zod-schemas.d.ts +71 -0
- package/dist/apps/evo-calendar/zod-schemas.js +32 -0
- package/dist/apps/evo-calendar/zod-schemas.ts +33 -0
- package/dist/apps/evo-core/zod-schemas.d.ts +14 -0
- package/dist/apps/evo-core/zod-schemas.js +9 -0
- package/dist/apps/evo-core/zod-schemas.ts +7 -0
- package/dist/apps/evo-crm/dic/zod-schemas.d.ts +233 -0
- package/dist/apps/evo-crm/dic/zod-schemas.js +45 -0
- package/dist/apps/evo-crm/dic/zod-schemas.ts +46 -0
- package/dist/apps/evo-crm/lead/zod-schemas.d.ts +347 -0
- package/dist/apps/evo-crm/lead/zod-schemas.js +30 -0
- package/dist/apps/evo-crm/lead/zod-schemas.ts +35 -0
- package/dist/apps/evo-med/dic/zod-schemas.d.ts +501 -0
- package/dist/apps/evo-med/dic/zod-schemas.js +116 -0
- package/dist/apps/evo-med/dic/zod-schemas.ts +127 -0
- package/dist/apps/evo-med/insurance/zod-schemas.d.ts +421 -0
- package/dist/apps/evo-med/insurance/zod-schemas.js +33 -0
- package/dist/apps/evo-med/insurance/zod-schemas.ts +39 -0
- package/dist/apps/evo-med/people/zod-schemas.d.ts +955 -0
- package/dist/apps/evo-med/people/zod-schemas.js +100 -0
- package/dist/apps/evo-med/people/zod-schemas.ts +117 -0
- package/dist/apps/evo-med/procedure/zod-schemas.d.ts +141 -0
- package/dist/apps/evo-med/procedure/zod-schemas.js +26 -0
- package/dist/apps/evo-med/procedure/zod-schemas.ts +26 -0
- package/dist/apps/evo-meeting/zod-schemas.d.ts +429 -0
- package/dist/apps/evo-meeting/zod-schemas.js +56 -0
- package/dist/apps/evo-meeting/zod-schemas.ts +62 -0
- package/dist/apps/evo-people/zod-schemas.d.ts +476 -0
- package/dist/apps/evo-people/zod-schemas.js +120 -0
- package/dist/apps/evo-people/zod-schemas.ts +124 -0
- package/dist/apps/evo-survey/zod-schemas.d.ts +1579 -0
- package/dist/apps/evo-survey/zod-schemas.js +191 -0
- package/dist/apps/evo-survey/zod-schemas.ts +209 -0
- package/dist/apps/evo-task/zod-schemas.d.ts +4 -0
- package/dist/apps/evo-task/zod-schemas.js +17 -0
- package/dist/apps/evo-task/zod-schemas.ts +17 -0
- package/dist/apps/evo-tenant/zod-schemas.d.ts +51 -0
- package/dist/apps/evo-tenant/zod-schemas.js +22 -0
- package/dist/apps/evo-tenant/zod-schemas.ts +23 -0
- package/dist/apps/shared/zod-schemas.d.ts +84 -0
- package/dist/apps/shared/zod-schemas.js +49 -0
- package/dist/apps/shared/zod-schemas.ts +51 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +50 -0
- package/dist/index.ts +35 -0
- package/dist/types/evo-activity/fb_collections.d.ts +4 -0
- package/dist/types/evo-activity/fb_collections.js +9 -0
- package/dist/types/evo-activity/fb_collections.ts +7 -0
- package/dist/types/evo-activity/index.d.ts +28 -0
- package/dist/types/evo-activity/index.js +27 -0
- package/dist/types/evo-activity/index.ts +45 -0
- package/dist/types/evo-cake/fb_collections.d.ts +4 -0
- package/dist/types/evo-cake/fb_collections.js +9 -0
- package/dist/types/evo-cake/fb_collections.ts +7 -0
- package/dist/types/evo-cake/index.d.ts +111 -0
- package/dist/types/evo-cake/index.js +79 -0
- package/dist/types/evo-cake/index.ts +186 -0
- package/dist/types/evo-calendar/fb_collections.d.ts +2 -0
- package/dist/types/evo-calendar/fb_collections.js +7 -0
- package/dist/types/evo-calendar/fb_collections.ts +5 -0
- package/dist/types/evo-calendar/index.d.ts +56 -0
- package/dist/types/evo-calendar/index.js +37 -0
- package/dist/types/evo-calendar/index.ts +69 -0
- package/dist/types/evo-core/index.d.ts +41 -0
- package/dist/types/evo-core/index.js +2 -0
- package/dist/types/evo-core/index.ts +48 -0
- package/dist/types/evo-crm/dic/index.d.ts +51 -0
- package/dist/types/evo-crm/dic/index.js +46 -0
- package/dist/types/evo-crm/dic/index.ts +86 -0
- package/dist/types/evo-crm/fb_collections.d.ts +7 -0
- package/dist/types/evo-crm/fb_collections.js +13 -0
- package/dist/types/evo-crm/fb_collections.ts +13 -0
- package/dist/types/evo-crm/lead/index.d.ts +31 -0
- package/dist/types/evo-crm/lead/index.js +24 -0
- package/dist/types/evo-crm/lead/index.ts +42 -0
- package/dist/types/evo-med/dic/index.d.ts +99 -0
- package/dist/types/evo-med/dic/index.js +52 -0
- package/dist/types/evo-med/dic/index.ts +131 -0
- package/dist/types/evo-med/fb_collections.d.ts +20 -0
- package/dist/types/evo-med/fb_collections.js +28 -0
- package/dist/types/evo-med/fb_collections.ts +31 -0
- package/dist/types/evo-med/insurance/index.d.ts +34 -0
- package/dist/types/evo-med/insurance/index.js +24 -0
- package/dist/types/evo-med/insurance/index.ts +45 -0
- package/dist/types/evo-med/people/index.d.ts +125 -0
- package/dist/types/evo-med/people/index.js +66 -0
- package/dist/types/evo-med/people/index.ts +188 -0
- package/dist/types/evo-med/procedure/index.d.ts +36 -0
- package/dist/types/evo-med/procedure/index.js +30 -0
- package/dist/types/evo-med/procedure/index.ts +48 -0
- package/dist/types/evo-meeting/fb_collections.d.ts +2 -0
- package/dist/types/evo-meeting/fb_collections.js +7 -0
- package/dist/types/evo-meeting/fb_collections.ts +5 -0
- package/dist/types/evo-meeting/index.d.ts +58 -0
- package/dist/types/evo-meeting/index.js +32 -0
- package/dist/types/evo-meeting/index.ts +80 -0
- package/dist/types/evo-messages/fb_collections.d.ts +1 -0
- package/dist/types/evo-messages/fb_collections.js +2 -0
- package/dist/types/evo-messages/fb_collections.ts +0 -0
- package/dist/types/evo-people/fb_collections.d.ts +5 -0
- package/dist/types/evo-people/fb_collections.js +10 -0
- package/dist/types/evo-people/fb_collections.ts +8 -0
- package/dist/types/evo-people/index.d.ts +117 -0
- package/dist/types/evo-people/index.js +59 -0
- package/dist/types/evo-people/index.ts +167 -0
- package/dist/types/evo-survey/fb_collections.d.ts +7 -0
- package/dist/types/evo-survey/fb_collections.js +13 -0
- package/dist/types/evo-survey/fb_collections.ts +12 -0
- package/dist/types/evo-survey/index.d.ts +172 -0
- package/dist/types/evo-survey/index.js +70 -0
- package/dist/types/evo-survey/index.ts +224 -0
- package/dist/types/evo-task/fb_collections.d.ts +2 -0
- package/dist/types/evo-task/fb_collections.js +7 -0
- package/dist/types/evo-task/fb_collections.ts +5 -0
- package/dist/types/evo-task/index.d.ts +35 -0
- package/dist/types/evo-task/index.js +38 -0
- package/dist/types/evo-task/index.ts +51 -0
- package/dist/types/evo-tenant/fb_collections.d.ts +1 -0
- package/dist/types/evo-tenant/fb_collections.js +5 -0
- package/dist/types/evo-tenant/fb_collections.ts +2 -0
- package/dist/types/evo-tenant/index.d.ts +28 -0
- package/dist/types/evo-tenant/index.js +35 -0
- package/dist/types/evo-tenant/index.ts +35 -0
- package/dist/types/shared/fb_collections.d.ts +5 -0
- package/dist/types/shared/fb_collections.js +13 -0
- package/dist/types/shared/fb_collections.ts +14 -0
- package/dist/types/shared/index.d.ts +52 -0
- package/dist/types/shared/index.js +30 -0
- package/dist/types/shared/index.ts +74 -0
- package/dist/types/shared/maska.d.ts +23 -0
- package/dist/types/shared/maska.js +2 -0
- package/dist/types/shared/maska.ts +26 -0
- package/package.json +1 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.zPatientSchema = exports.zPatientChronicConditionSchema = exports.zPatientAllergySchema = exports.zBloodTypeSchema = exports.zPatientStatusSchema = exports.zProfessionalSchema = exports.zProfessionalOfficeSchema = exports.zProfessionalSpecialtySchema = exports.zProfessionalCouncilSchema = exports.zProfessionalStatusSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_schemas_1 = require("../dic/zod-schemas");
|
|
6
|
+
const zod_schemas_2 = require("../../shared/zod-schemas");
|
|
7
|
+
const zod_schemas_3 = require("../../evo-people/zod-schemas");
|
|
8
|
+
// Define Zod schemas for IProfessionalSpecialty, IProfessional, and IPatient
|
|
9
|
+
exports.zProfessionalStatusSchema = zod_1.z.enum([
|
|
10
|
+
"active",
|
|
11
|
+
"inactive",
|
|
12
|
+
"draft",
|
|
13
|
+
]);
|
|
14
|
+
exports.zProfessionalCouncilSchema = zod_1.z.object({
|
|
15
|
+
doc: zod_1.z.string().min(1).max(255),
|
|
16
|
+
name: zod_1.z.string().min(1).max(255),
|
|
17
|
+
acronym: zod_1.z.string().min(1).max(60),
|
|
18
|
+
uf: zod_schemas_1.zMedicalCouncilUFSchema.nullable().optional().default("SP"),
|
|
19
|
+
ref: zod_1.z.any(),
|
|
20
|
+
});
|
|
21
|
+
exports.zProfessionalSpecialtySchema = zod_1.z.object({
|
|
22
|
+
code: zod_1.z.string().min(1).max(10),
|
|
23
|
+
name: zod_1.z.string().min(1).max(255),
|
|
24
|
+
ref: zod_1.z.any(),
|
|
25
|
+
});
|
|
26
|
+
exports.zProfessionalOfficeSchema = zod_1.z.object({
|
|
27
|
+
code: zod_1.z.string().min(1).max(10),
|
|
28
|
+
name: zod_1.z.string().min(1).max(255),
|
|
29
|
+
ref: zod_1.z.any(),
|
|
30
|
+
});
|
|
31
|
+
exports.zProfessionalSchema = zod_schemas_3.zProfileSchema // Extend from ProfileSchema
|
|
32
|
+
.extend({
|
|
33
|
+
status: exports.zProfessionalStatusSchema.default("draft"),
|
|
34
|
+
professionalId: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
35
|
+
title: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
36
|
+
type: zod_1.z.string().max(255).nullable().optional().default("doctor"),
|
|
37
|
+
job_title: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
38
|
+
councils: zod_1.z.array(exports.zProfessionalCouncilSchema).nullable().optional(),
|
|
39
|
+
specialties: zod_1.z.array(exports.zProfessionalSpecialtySchema).nullable().optional(),
|
|
40
|
+
offices: zod_1.z.array(exports.zProfessionalOfficeSchema).nullable().optional(),
|
|
41
|
+
date_joining: zod_1.z.date().nullable().optional(),
|
|
42
|
+
company_code: zod_1.z.string().min(1).max(10),
|
|
43
|
+
company_name: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
44
|
+
companyRef: zod_1.z.any(),
|
|
45
|
+
department_code: zod_1.z.string().min(1).max(10),
|
|
46
|
+
department_name: zod_1.z.string().max(255).nullable().optional(),
|
|
47
|
+
departmentRef: zod_1.z.any(),
|
|
48
|
+
address: zod_schemas_2.zAddressSchema.nullable().optional(),
|
|
49
|
+
contact: zod_schemas_2.zContactSchema.nullable().optional(),
|
|
50
|
+
tags: zod_1.z.array(zod_schemas_2.zTagSchema).nullable().optional(),
|
|
51
|
+
userRef: zod_1.z.any(),
|
|
52
|
+
})
|
|
53
|
+
.passthrough();
|
|
54
|
+
exports.zPatientStatusSchema = zod_1.z.enum(["active", "inactive", "draft"]);
|
|
55
|
+
exports.zBloodTypeSchema = zod_1.z.enum([
|
|
56
|
+
"A+",
|
|
57
|
+
"A-",
|
|
58
|
+
"B+",
|
|
59
|
+
"B-",
|
|
60
|
+
"AB+",
|
|
61
|
+
"AB-",
|
|
62
|
+
"O+",
|
|
63
|
+
"O-",
|
|
64
|
+
"Unknown",
|
|
65
|
+
]);
|
|
66
|
+
exports.zPatientAllergySchema = zod_1.z.object({
|
|
67
|
+
code: zod_1.z.string().min(1).max(10),
|
|
68
|
+
name: zod_1.z.string().min(1).max(255),
|
|
69
|
+
ref: zod_1.z.any(),
|
|
70
|
+
kind: zod_schemas_1.zAllergyKindSchema.nullable().optional().default("Other"),
|
|
71
|
+
severity: zod_schemas_1.zSeveritySchema.nullable().optional().default("Unknown"),
|
|
72
|
+
});
|
|
73
|
+
exports.zPatientChronicConditionSchema = zod_1.z.object({
|
|
74
|
+
code: zod_1.z.string().min(1).max(10),
|
|
75
|
+
name: zod_1.z.string().min(1).max(255),
|
|
76
|
+
ref: zod_1.z.any(),
|
|
77
|
+
diagnosis_date: zod_1.z.date().nullable().optional(),
|
|
78
|
+
severity: zod_schemas_1.zSeveritySchema.nullable().optional().default("Unknown"),
|
|
79
|
+
controlled: zod_1.z.boolean().optional().default(false),
|
|
80
|
+
medications: zod_1.z.array(zod_schemas_1.zMedicationSchema).nullable().optional(),
|
|
81
|
+
notes: zod_1.z.string().max(2048).optional().default(""),
|
|
82
|
+
});
|
|
83
|
+
exports.zPatientSchema = zod_schemas_3.zProfileSchema // Extend from ProfileSchema
|
|
84
|
+
.extend({
|
|
85
|
+
social_id: zod_1.z.string().nullable().optional(),
|
|
86
|
+
status: exports.zPatientStatusSchema.default("draft"),
|
|
87
|
+
address: zod_schemas_2.zAddressSchema.nullable().optional(),
|
|
88
|
+
contact: zod_schemas_2.zContactSchema.nullable().optional(),
|
|
89
|
+
height_cm: zod_1.z.number().nullable().optional(),
|
|
90
|
+
weight_kg: zod_1.z.number().nullable().optional(),
|
|
91
|
+
blood_type: exports.zBloodTypeSchema.nullable().optional().default("Unknown"),
|
|
92
|
+
allergies: zod_1.z.array(exports.zPatientAllergySchema).nullable().optional(),
|
|
93
|
+
chronic_conditions: zod_1.z
|
|
94
|
+
.array(exports.zPatientChronicConditionSchema)
|
|
95
|
+
.nullable()
|
|
96
|
+
.optional(),
|
|
97
|
+
tags: zod_1.z.array(zod_schemas_2.zTagSchema).nullable().optional(),
|
|
98
|
+
userRef: zod_1.z.any(),
|
|
99
|
+
})
|
|
100
|
+
.passthrough();
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import {
|
|
3
|
+
zAllergyKindSchema,
|
|
4
|
+
zMedicalCouncilUFSchema,
|
|
5
|
+
zMedicationSchema,
|
|
6
|
+
zSeveritySchema,
|
|
7
|
+
} from "../dic/zod-schemas";
|
|
8
|
+
import {
|
|
9
|
+
zAddressSchema,
|
|
10
|
+
zContactSchema,
|
|
11
|
+
zTagSchema,
|
|
12
|
+
} from "../../shared/zod-schemas";
|
|
13
|
+
import { zProfileSchema } from "../../evo-people/zod-schemas";
|
|
14
|
+
|
|
15
|
+
// Define Zod schemas for IProfessionalSpecialty, IProfessional, and IPatient
|
|
16
|
+
|
|
17
|
+
export const zProfessionalStatusSchema = z.enum([
|
|
18
|
+
"active",
|
|
19
|
+
"inactive",
|
|
20
|
+
"draft",
|
|
21
|
+
]);
|
|
22
|
+
|
|
23
|
+
export const zProfessionalCouncilSchema = z.object({
|
|
24
|
+
doc: z.string().min(1).max(255),
|
|
25
|
+
name: z.string().min(1).max(255),
|
|
26
|
+
acronym: z.string().min(1).max(60),
|
|
27
|
+
uf: zMedicalCouncilUFSchema.nullable().optional().default("SP"),
|
|
28
|
+
ref: z.any(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export const zProfessionalSpecialtySchema = z.object({
|
|
32
|
+
code: z.string().min(1).max(10),
|
|
33
|
+
name: z.string().min(1).max(255),
|
|
34
|
+
ref: z.any(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export const zProfessionalOfficeSchema = z.object({
|
|
38
|
+
code: z.string().min(1).max(10),
|
|
39
|
+
name: z.string().min(1).max(255),
|
|
40
|
+
ref: z.any(),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export const zProfessionalSchema = zProfileSchema // Extend from ProfileSchema
|
|
44
|
+
.extend({
|
|
45
|
+
status: zProfessionalStatusSchema.default("draft"),
|
|
46
|
+
professionalId: z.string().max(255).nullable().optional().default(""),
|
|
47
|
+
title: z.string().max(255).nullable().optional().default(""),
|
|
48
|
+
type: z.string().max(255).nullable().optional().default("doctor"),
|
|
49
|
+
job_title: z.string().max(255).nullable().optional().default(""),
|
|
50
|
+
councils: z.array(zProfessionalCouncilSchema).nullable().optional(),
|
|
51
|
+
specialties: z.array(zProfessionalSpecialtySchema).nullable().optional(),
|
|
52
|
+
offices: z.array(zProfessionalOfficeSchema).nullable().optional(),
|
|
53
|
+
date_joining: z.date().nullable().optional(),
|
|
54
|
+
company_code: z.string().min(1).max(10),
|
|
55
|
+
company_name: z.string().max(255).nullable().optional().default(""),
|
|
56
|
+
companyRef: z.any(),
|
|
57
|
+
department_code: z.string().min(1).max(10),
|
|
58
|
+
department_name: z.string().max(255).nullable().optional(),
|
|
59
|
+
departmentRef: z.any(),
|
|
60
|
+
address: zAddressSchema.nullable().optional(),
|
|
61
|
+
contact: zContactSchema.nullable().optional(),
|
|
62
|
+
tags: z.array(zTagSchema).nullable().optional(),
|
|
63
|
+
userRef: z.any(),
|
|
64
|
+
})
|
|
65
|
+
.passthrough();
|
|
66
|
+
|
|
67
|
+
export const zPatientStatusSchema = z.enum(["active", "inactive", "draft"]);
|
|
68
|
+
|
|
69
|
+
export const zBloodTypeSchema = z.enum([
|
|
70
|
+
"A+",
|
|
71
|
+
"A-",
|
|
72
|
+
"B+",
|
|
73
|
+
"B-",
|
|
74
|
+
"AB+",
|
|
75
|
+
"AB-",
|
|
76
|
+
"O+",
|
|
77
|
+
"O-",
|
|
78
|
+
"Unknown",
|
|
79
|
+
]);
|
|
80
|
+
|
|
81
|
+
export const zPatientAllergySchema = z.object({
|
|
82
|
+
code: z.string().min(1).max(10),
|
|
83
|
+
name: z.string().min(1).max(255),
|
|
84
|
+
ref: z.any(),
|
|
85
|
+
kind: zAllergyKindSchema.nullable().optional().default("Other"),
|
|
86
|
+
severity: zSeveritySchema.nullable().optional().default("Unknown"),
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
export const zPatientChronicConditionSchema = z.object({
|
|
90
|
+
code: z.string().min(1).max(10),
|
|
91
|
+
name: z.string().min(1).max(255),
|
|
92
|
+
ref: z.any(),
|
|
93
|
+
diagnosis_date: z.date().nullable().optional(),
|
|
94
|
+
severity: zSeveritySchema.nullable().optional().default("Unknown"),
|
|
95
|
+
controlled: z.boolean().optional().default(false),
|
|
96
|
+
medications: z.array(zMedicationSchema).nullable().optional(),
|
|
97
|
+
notes: z.string().max(2048).optional().default(""),
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
export const zPatientSchema = zProfileSchema // Extend from ProfileSchema
|
|
101
|
+
.extend({
|
|
102
|
+
social_id: z.string().nullable().optional(),
|
|
103
|
+
status: zPatientStatusSchema.default("draft"),
|
|
104
|
+
address: zAddressSchema.nullable().optional(),
|
|
105
|
+
contact: zContactSchema.nullable().optional(),
|
|
106
|
+
height_cm: z.number().nullable().optional(),
|
|
107
|
+
weight_kg: z.number().nullable().optional(),
|
|
108
|
+
blood_type: zBloodTypeSchema.nullable().optional().default("Unknown"),
|
|
109
|
+
allergies: z.array(zPatientAllergySchema).nullable().optional(),
|
|
110
|
+
chronic_conditions: z
|
|
111
|
+
.array(zPatientChronicConditionSchema)
|
|
112
|
+
.nullable()
|
|
113
|
+
.optional(),
|
|
114
|
+
tags: z.array(zTagSchema).nullable().optional(),
|
|
115
|
+
userRef: z.any(),
|
|
116
|
+
})
|
|
117
|
+
.passthrough();
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ProcedureTypeSchema: 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
|
+
}>, "strip", z.ZodTypeAny, {
|
|
27
|
+
code: string;
|
|
28
|
+
name: string;
|
|
29
|
+
id: string;
|
|
30
|
+
tenant: string;
|
|
31
|
+
model_ver: number;
|
|
32
|
+
ref?: any;
|
|
33
|
+
created_at?: Date | null | undefined;
|
|
34
|
+
updated_at?: Date | null | undefined;
|
|
35
|
+
deleted_at?: Date | null | undefined;
|
|
36
|
+
tags?: {
|
|
37
|
+
name: string;
|
|
38
|
+
hidden: boolean;
|
|
39
|
+
color?: string | undefined;
|
|
40
|
+
}[] | null | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
code: string;
|
|
43
|
+
name: string;
|
|
44
|
+
id: string;
|
|
45
|
+
tenant: string;
|
|
46
|
+
ref?: any;
|
|
47
|
+
model_ver?: number | undefined;
|
|
48
|
+
created_at?: Date | null | undefined;
|
|
49
|
+
updated_at?: Date | null | undefined;
|
|
50
|
+
deleted_at?: Date | null | undefined;
|
|
51
|
+
tags?: {
|
|
52
|
+
name: string;
|
|
53
|
+
hidden: boolean;
|
|
54
|
+
color?: string | undefined;
|
|
55
|
+
}[] | null | undefined;
|
|
56
|
+
}>;
|
|
57
|
+
export declare const ProcedureSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
58
|
+
id: z.ZodString;
|
|
59
|
+
ref: z.ZodAny;
|
|
60
|
+
tenant: z.ZodString;
|
|
61
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
62
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
63
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
64
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
65
|
+
}, {
|
|
66
|
+
code: z.ZodString;
|
|
67
|
+
name: z.ZodString;
|
|
68
|
+
technical_name: z.ZodString;
|
|
69
|
+
status: z.ZodEnum<["active", "inactive", "draft"]>;
|
|
70
|
+
type_code: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
71
|
+
type_name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
72
|
+
typeRef: z.ZodAny;
|
|
73
|
+
duration: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
74
|
+
color: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
75
|
+
acronym: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
76
|
+
description: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
77
|
+
tuss: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
78
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
79
|
+
name: z.ZodString;
|
|
80
|
+
color: z.ZodOptional<z.ZodString>;
|
|
81
|
+
hidden: z.ZodBoolean;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
name: string;
|
|
84
|
+
hidden: boolean;
|
|
85
|
+
color?: string | undefined;
|
|
86
|
+
}, {
|
|
87
|
+
name: string;
|
|
88
|
+
hidden: boolean;
|
|
89
|
+
color?: string | undefined;
|
|
90
|
+
}>, "many">>>;
|
|
91
|
+
}>, "strip", z.ZodTypeAny, {
|
|
92
|
+
code: string;
|
|
93
|
+
name: string;
|
|
94
|
+
id: string;
|
|
95
|
+
tenant: string;
|
|
96
|
+
model_ver: number;
|
|
97
|
+
status: "draft" | "active" | "inactive";
|
|
98
|
+
description: string | null;
|
|
99
|
+
type_code: string | null;
|
|
100
|
+
type_name: string | null;
|
|
101
|
+
acronym: string | null;
|
|
102
|
+
technical_name: string;
|
|
103
|
+
duration: number | null;
|
|
104
|
+
color: string | null;
|
|
105
|
+
tuss: string | null;
|
|
106
|
+
ref?: any;
|
|
107
|
+
created_at?: Date | null | undefined;
|
|
108
|
+
updated_at?: Date | null | undefined;
|
|
109
|
+
deleted_at?: Date | null | undefined;
|
|
110
|
+
tags?: {
|
|
111
|
+
name: string;
|
|
112
|
+
hidden: boolean;
|
|
113
|
+
color?: string | undefined;
|
|
114
|
+
}[] | null | undefined;
|
|
115
|
+
typeRef?: any;
|
|
116
|
+
}, {
|
|
117
|
+
code: string;
|
|
118
|
+
name: string;
|
|
119
|
+
id: string;
|
|
120
|
+
tenant: string;
|
|
121
|
+
status: "draft" | "active" | "inactive";
|
|
122
|
+
technical_name: string;
|
|
123
|
+
ref?: any;
|
|
124
|
+
model_ver?: number | undefined;
|
|
125
|
+
created_at?: Date | null | undefined;
|
|
126
|
+
updated_at?: Date | null | undefined;
|
|
127
|
+
deleted_at?: Date | null | undefined;
|
|
128
|
+
description?: string | null | undefined;
|
|
129
|
+
tags?: {
|
|
130
|
+
name: string;
|
|
131
|
+
hidden: boolean;
|
|
132
|
+
color?: string | undefined;
|
|
133
|
+
}[] | null | undefined;
|
|
134
|
+
type_code?: string | null | undefined;
|
|
135
|
+
type_name?: string | null | undefined;
|
|
136
|
+
typeRef?: any;
|
|
137
|
+
acronym?: string | null | undefined;
|
|
138
|
+
duration?: number | null | undefined;
|
|
139
|
+
color?: string | null | undefined;
|
|
140
|
+
tuss?: string | null | undefined;
|
|
141
|
+
}>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProcedureSchema = exports.ProcedureTypeSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_schemas_1 = require("../../shared/zod-schemas");
|
|
6
|
+
// Define Zod schemas for IProcedureType and IProcedure
|
|
7
|
+
exports.ProcedureTypeSchema = zod_schemas_1.zFireDocSchema.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
|
+
exports.ProcedureSchema = zod_schemas_1.zFireDocSchema.extend({
|
|
13
|
+
code: zod_1.z.string().min(1).max(10),
|
|
14
|
+
name: zod_1.z.string().min(1).max(255),
|
|
15
|
+
technical_name: zod_1.z.string(),
|
|
16
|
+
status: zod_1.z.enum(["active", "inactive", "draft"]),
|
|
17
|
+
type_code: zod_1.z.string().max(10).nullable().optional().default(""),
|
|
18
|
+
type_name: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
19
|
+
typeRef: zod_1.z.any(),
|
|
20
|
+
duration: zod_1.z.number().nullable().optional().default(0),
|
|
21
|
+
color: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
22
|
+
acronym: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
23
|
+
description: zod_1.z.string().max(1024).nullable().optional().default(""),
|
|
24
|
+
tuss: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
25
|
+
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
26
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { zFireDocSchema, zTagSchema } from "../../shared/zod-schemas";
|
|
3
|
+
|
|
4
|
+
// Define Zod schemas for IProcedureType and IProcedure
|
|
5
|
+
|
|
6
|
+
export const ProcedureTypeSchema = zFireDocSchema.extend({
|
|
7
|
+
code: z.string().min(1).max(10),
|
|
8
|
+
name: z.string().min(1).max(255),
|
|
9
|
+
tags: z.array(zTagSchema).nullable().optional(),
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export const ProcedureSchema = zFireDocSchema.extend({
|
|
13
|
+
code: z.string().min(1).max(10),
|
|
14
|
+
name: z.string().min(1).max(255),
|
|
15
|
+
technical_name: z.string(),
|
|
16
|
+
status: z.enum(["active", "inactive", "draft"]),
|
|
17
|
+
type_code: z.string().max(10).nullable().optional().default(""),
|
|
18
|
+
type_name: z.string().max(255).nullable().optional().default(""),
|
|
19
|
+
typeRef: z.any(),
|
|
20
|
+
duration: z.number().nullable().optional().default(0),
|
|
21
|
+
color: z.string().max(255).nullable().optional().default(""),
|
|
22
|
+
acronym: z.string().max(255).nullable().optional().default(""),
|
|
23
|
+
description: z.string().max(1024).nullable().optional().default(""),
|
|
24
|
+
tuss: z.string().max(255).nullable().optional().default(""),
|
|
25
|
+
tags: z.array(zTagSchema).nullable().optional(),
|
|
26
|
+
});
|