evo360-types 1.2.23 → 1.2.24

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.
@@ -64,9 +64,9 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
64
64
  }>, {
65
65
  status: z.ZodDefault<z.ZodEnum<["active", "inactive", "draft"]>>;
66
66
  professionalId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
67
- title: z.ZodDefault<z.ZodString>;
68
- type: z.ZodDefault<z.ZodString>;
69
- job_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ title: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
68
+ type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
69
+ job_title: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
70
70
  councils: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
71
71
  doc: z.ZodString;
72
72
  name: z.ZodString;
@@ -192,9 +192,9 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
192
192
  }>, {
193
193
  status: z.ZodDefault<z.ZodEnum<["active", "inactive", "draft"]>>;
194
194
  professionalId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
195
- title: z.ZodDefault<z.ZodString>;
196
- type: z.ZodDefault<z.ZodString>;
197
- job_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
195
+ title: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
196
+ type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
197
+ job_title: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
198
198
  councils: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
199
199
  doc: z.ZodString;
200
200
  name: z.ZodString;
@@ -320,9 +320,9 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
320
320
  }>, {
321
321
  status: z.ZodDefault<z.ZodEnum<["active", "inactive", "draft"]>>;
322
322
  professionalId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
323
- title: z.ZodDefault<z.ZodString>;
324
- type: z.ZodDefault<z.ZodString>;
325
- job_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
323
+ title: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
324
+ type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
325
+ job_title: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
326
326
  councils: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
327
327
  doc: z.ZodString;
328
328
  name: z.ZodString;
@@ -431,6 +431,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
431
431
  userRef: z.ZodAny;
432
432
  }>, z.ZodTypeAny, "passthrough">>;
433
433
  export declare const zPatientStatusSchema: z.ZodEnum<["active", "inactive", "draft"]>;
434
+ export declare const zBloodTypeSchema: z.ZodEnum<["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Unknown"]>;
434
435
  export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
435
436
  id: z.ZodString;
436
437
  ref: z.ZodAny;
@@ -496,7 +497,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
496
497
  }>>>;
497
498
  height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
498
499
  weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
499
- blood_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
500
+ blood_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Unknown"]>>>>;
500
501
  allergies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
501
502
  id: z.ZodString;
502
503
  ref: z.ZodAny;
@@ -681,7 +682,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
681
682
  }>>>;
682
683
  height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
683
684
  weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
684
- blood_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
685
+ blood_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Unknown"]>>>>;
685
686
  allergies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
686
687
  id: z.ZodString;
687
688
  ref: z.ZodAny;
@@ -866,7 +867,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
866
867
  }>>>;
867
868
  height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
868
869
  weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
869
- blood_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
870
+ blood_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Unknown"]>>>>;
870
871
  allergies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
871
872
  id: z.ZodString;
872
873
  ref: z.ZodAny;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zPatientSchema = exports.zPatientStatusSchema = exports.zProfessionalSchema = exports.zProfessionalOfficeSchema = exports.zProfessionalSpecialtySchema = exports.zProfessionalCouncilSchema = exports.zProfessionalStatusSchema = void 0;
3
+ exports.zPatientSchema = exports.zBloodTypeSchema = exports.zPatientStatusSchema = exports.zProfessionalSchema = exports.zProfessionalOfficeSchema = exports.zProfessionalSpecialtySchema = exports.zProfessionalCouncilSchema = exports.zProfessionalStatusSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_schemas_1 = require("../dic/zod-schemas");
6
6
  const zod_schemas_2 = require("../../shared/zod-schemas");
@@ -32,9 +32,9 @@ exports.zProfessionalSchema = zod_schemas_3.zProfileSchema // Extend from Profil
32
32
  .extend({
33
33
  status: exports.zProfessionalStatusSchema.default("draft"),
34
34
  professionalId: zod_1.z.string().max(255).nullable().optional().default(""),
35
- title: zod_1.z.string().max(255).default(""),
36
- type: zod_1.z.string().max(255).default("doctor"),
37
- job_title: zod_1.z.string().nullable().optional(),
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
38
  councils: zod_1.z.array(exports.zProfessionalCouncilSchema).nullable().optional(),
39
39
  specialties: zod_1.z.array(exports.zProfessionalSpecialtySchema).nullable().optional(),
40
40
  offices: zod_1.z.array(exports.zProfessionalOfficeSchema).nullable().optional(),
@@ -48,6 +48,17 @@ exports.zProfessionalSchema = zod_schemas_3.zProfileSchema // Extend from Profil
48
48
  })
49
49
  .passthrough();
50
50
  exports.zPatientStatusSchema = zod_1.z.enum(["active", "inactive", "draft"]);
51
+ exports.zBloodTypeSchema = zod_1.z.enum([
52
+ "A+",
53
+ "A-",
54
+ "B+",
55
+ "B-",
56
+ "AB+",
57
+ "AB-",
58
+ "O+",
59
+ "O-",
60
+ "Unknown",
61
+ ]);
51
62
  exports.zPatientSchema = zod_schemas_3.zProfileSchema // Extend from ProfileSchema
52
63
  .extend({
53
64
  social_id: zod_1.z.string().nullable().optional(),
@@ -56,13 +67,7 @@ exports.zPatientSchema = zod_schemas_3.zProfileSchema // Extend from ProfileSche
56
67
  contact: zod_schemas_2.zContactSchema.nullable().optional(),
57
68
  height_cm: zod_1.z.number().nullable().optional(),
58
69
  weight_kg: zod_1.z.number().nullable().optional(),
59
- blood_type: zod_1.z
60
- .string()
61
- .min(2)
62
- .max(10)
63
- .nullable()
64
- .optional()
65
- .default("Unknown"),
70
+ blood_type: exports.zBloodTypeSchema.nullable().optional().default("Unknown"),
66
71
  allergies: zod_1.z.array(zod_schemas_1.zAllergySchema).nullable().optional(),
67
72
  chronic_conditions: zod_1.z.array(zod_schemas_1.zChronicConditionSchema).nullable().optional(),
68
73
  tags: zod_1.z.array(zod_schemas_2.zTagSchema).nullable().optional(),
@@ -39,9 +39,9 @@ export const zProfessionalSchema = zProfileSchema // Extend from ProfileSchema
39
39
  .extend({
40
40
  status: zProfessionalStatusSchema.default("draft"),
41
41
  professionalId: z.string().max(255).nullable().optional().default(""),
42
- title: z.string().max(255).default(""),
43
- type: z.string().max(255).default("doctor"),
44
- job_title: z.string().nullable().optional(),
42
+ title: z.string().max(255).nullable().optional().default(""),
43
+ type: z.string().max(255).nullable().optional().default("doctor"),
44
+ job_title: z.string().max(255).nullable().optional().default(""),
45
45
  councils: z.array(zProfessionalCouncilSchema).nullable().optional(),
46
46
  specialties: z.array(zProfessionalSpecialtySchema).nullable().optional(),
47
47
  offices: z.array(zProfessionalOfficeSchema).nullable().optional(),
@@ -57,6 +57,18 @@ export const zProfessionalSchema = zProfileSchema // Extend from ProfileSchema
57
57
 
58
58
  export const zPatientStatusSchema = z.enum(["active", "inactive", "draft"]);
59
59
 
60
+ export const zBloodTypeSchema = z.enum([
61
+ "A+",
62
+ "A-",
63
+ "B+",
64
+ "B-",
65
+ "AB+",
66
+ "AB-",
67
+ "O+",
68
+ "O-",
69
+ "Unknown",
70
+ ]);
71
+
60
72
  export const zPatientSchema = zProfileSchema // Extend from ProfileSchema
61
73
  .extend({
62
74
  social_id: z.string().nullable().optional(),
@@ -65,13 +77,7 @@ export const zPatientSchema = zProfileSchema // Extend from ProfileSchema
65
77
  contact: zContactSchema.nullable().optional(),
66
78
  height_cm: z.number().nullable().optional(),
67
79
  weight_kg: z.number().nullable().optional(),
68
- blood_type: z
69
- .string()
70
- .min(2)
71
- .max(10)
72
- .nullable()
73
- .optional()
74
- .default("Unknown"),
80
+ blood_type: zBloodTypeSchema.nullable().optional().default("Unknown"),
75
81
  allergies: z.array(zAllergySchema).nullable().optional(),
76
82
  chronic_conditions: z.array(zChronicConditionSchema).nullable().optional(),
77
83
  tags: z.array(zTagSchema).nullable().optional(),
@@ -44,8 +44,8 @@ export interface IProfessionalOffice {
44
44
  export interface IProfessional extends IProfile {
45
45
  status?: ProfessionalStatus;
46
46
  professionalId?: string | null;
47
- title: string;
48
- type: string | null;
47
+ title?: string | null;
48
+ type?: string | null;
49
49
  job_title?: string | null;
50
50
  councils?: IProfessionalCouncil[] | null;
51
51
  specialties?: IProfessionalSpecialty[] | null;
@@ -81,8 +81,8 @@ export interface IProfessionalOffice {
81
81
  export interface IProfessional extends IProfile {
82
82
  status?: ProfessionalStatus;
83
83
  professionalId?: string | null;
84
- title: string;
85
- type: string | null;
84
+ title?: string | null;
85
+ type?: string | null;
86
86
  job_title?: string | null;
87
87
  councils?: IProfessionalCouncil[] | null;
88
88
  specialties?: IProfessionalSpecialty[] | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.2.23",
3
+ "version": "1.2.24",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",