evo360-types 1.3.176 → 1.3.178

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.
@@ -137,7 +137,7 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
137
137
  phone?: string | null | undefined;
138
138
  mobile?: string | null | undefined;
139
139
  }>>>;
140
- chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
+ chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
141
141
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
142
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
143
143
  name: z.ZodString;
@@ -261,7 +261,7 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
261
261
  phone?: string | null | undefined;
262
262
  mobile?: string | null | undefined;
263
263
  }>>>;
264
- chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
264
+ chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
265
265
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
266
266
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
267
267
  name: z.ZodString;
@@ -385,7 +385,7 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
385
385
  phone?: string | null | undefined;
386
386
  mobile?: string | null | undefined;
387
387
  }>>>;
388
- chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
388
+ chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
389
389
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
390
390
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
391
391
  name: z.ZodString;
@@ -28,7 +28,7 @@ exports.zLeadSchema = zod_schemas_2.zProfileSchema // Extend from ProfileSchema
28
28
  distChannel: exports.zLeadDistChannelSchema.nullable().optional(),
29
29
  address: zod_schemas_1.zAddressSchema.nullable().optional(),
30
30
  contact: zod_schemas_1.zContactSchema.nullable().optional(),
31
- chat_contact_id: zod_1.z.string().nullable().optional(),
31
+ chat_contact_id: zod_1.z.string().or(zod_1.z.number()).nullable().optional(),
32
32
  notes: zod_1.z.string().nullable().optional(),
33
33
  tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
34
34
  userRef: zod_1.z.any(),
@@ -33,7 +33,7 @@ export const zLeadSchema = zProfileSchema // Extend from ProfileSchema
33
33
  distChannel: zLeadDistChannelSchema.nullable().optional(),
34
34
  address: zAddressSchema.nullable().optional(),
35
35
  contact: zContactSchema.nullable().optional(),
36
- chat_contact_id: z.string().nullable().optional(),
36
+ chat_contact_id: z.string().or(z.number()).nullable().optional(),
37
37
  notes: z.string().nullable().optional(),
38
38
  tags: z.array(zTagSchema).nullable().optional(),
39
39
  userRef: z.any(),
@@ -628,7 +628,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
628
628
  mobile?: string | null | undefined;
629
629
  }>>>;
630
630
  lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
631
- chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
631
+ chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
632
632
  height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
633
633
  weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
634
634
  blood_type: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Unknown"]>, z.ZodEffects<z.ZodLiteral<"unknown">, string, "unknown">]>>>;
@@ -807,7 +807,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
807
807
  mobile?: string | null | undefined;
808
808
  }>>>;
809
809
  lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
810
- chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
810
+ chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
811
811
  height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
812
812
  weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
813
813
  blood_type: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Unknown"]>, z.ZodEffects<z.ZodLiteral<"unknown">, string, "unknown">]>>>;
@@ -986,7 +986,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
986
986
  mobile?: string | null | undefined;
987
987
  }>>>;
988
988
  lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
989
- chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
989
+ chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
990
990
  height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
991
991
  weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
992
992
  blood_type: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Unknown"]>, z.ZodEffects<z.ZodLiteral<"unknown">, string, "unknown">]>>>;
@@ -98,7 +98,7 @@ exports.zPatientSchema = zod_schemas_3.zProfileSchema // Extend from ProfileSche
98
98
  address: zod_schemas_2.zAddressSchema.nullable().optional(),
99
99
  contact: zod_schemas_2.zContactSchema.nullable().optional(),
100
100
  lead_id: zod_1.z.string().nullable().optional(),
101
- chat_contact_id: zod_1.z.string().nullable().optional(),
101
+ chat_contact_id: zod_1.z.string().or(zod_1.z.number()).nullable().optional(),
102
102
  height_cm: zod_1.z.number().nullable().optional(),
103
103
  weight_kg: zod_1.z.number().nullable().optional(),
104
104
  blood_type: exports.zBloodTypeSchema.nullable().optional(),
@@ -116,7 +116,7 @@ export const zPatientSchema = zProfileSchema // Extend from ProfileSchema
116
116
  address: zAddressSchema.nullable().optional(),
117
117
  contact: zContactSchema.nullable().optional(),
118
118
  lead_id: z.string().nullable().optional(),
119
- chat_contact_id: z.string().nullable().optional(),
119
+ chat_contact_id: z.string().or(z.number()).nullable().optional(),
120
120
  height_cm: z.number().nullable().optional(),
121
121
  weight_kg: z.number().nullable().optional(),
122
122
  blood_type: zBloodTypeSchema.nullable().optional(),
@@ -379,7 +379,7 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
379
379
  }>>;
380
380
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
381
381
  mode: z.ZodEnum<["human", "auto"]>;
382
- assignee: z.ZodOptional<z.ZodObject<{
382
+ assignee: z.ZodOptional<z.ZodArray<z.ZodObject<{
383
383
  kind: z.ZodLiteral<"user">;
384
384
  name: z.ZodOptional<z.ZodString>;
385
385
  ref: z.ZodOptional<z.ZodAny>;
@@ -391,7 +391,7 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
391
391
  kind: "user";
392
392
  name?: string | undefined;
393
393
  ref?: any;
394
- }>>;
394
+ }>, "many">>;
395
395
  lock: z.ZodOptional<z.ZodObject<{
396
396
  locked_by: z.ZodString;
397
397
  lock_until: z.ZodDate;
@@ -684,7 +684,7 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
684
684
  }>>;
685
685
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
686
686
  mode: z.ZodEnum<["human", "auto"]>;
687
- assignee: z.ZodOptional<z.ZodObject<{
687
+ assignee: z.ZodOptional<z.ZodArray<z.ZodObject<{
688
688
  kind: z.ZodLiteral<"user">;
689
689
  name: z.ZodOptional<z.ZodString>;
690
690
  ref: z.ZodOptional<z.ZodAny>;
@@ -696,7 +696,7 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
696
696
  kind: "user";
697
697
  name?: string | undefined;
698
698
  ref?: any;
699
- }>>;
699
+ }>, "many">>;
700
700
  lock: z.ZodOptional<z.ZodObject<{
701
701
  locked_by: z.ZodString;
702
702
  lock_until: z.ZodDate;
@@ -989,7 +989,7 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
989
989
  }>>;
990
990
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
991
991
  mode: z.ZodEnum<["human", "auto"]>;
992
- assignee: z.ZodOptional<z.ZodObject<{
992
+ assignee: z.ZodOptional<z.ZodArray<z.ZodObject<{
993
993
  kind: z.ZodLiteral<"user">;
994
994
  name: z.ZodOptional<z.ZodString>;
995
995
  ref: z.ZodOptional<z.ZodAny>;
@@ -1001,7 +1001,7 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
1001
1001
  kind: "user";
1002
1002
  name?: string | undefined;
1003
1003
  ref?: any;
1004
- }>>;
1004
+ }>, "many">>;
1005
1005
  lock: z.ZodOptional<z.ZodObject<{
1006
1006
  locked_by: z.ZodString;
1007
1007
  lock_until: z.ZodDate;
@@ -147,7 +147,7 @@ exports.zTaskSchema = zod_schemas_1.zFireDocSchema
147
147
  metadata: zod_1.z.record(zod_1.z.unknown()).optional(),
148
148
  // Mode-specific fields
149
149
  mode: exports.zTaskModeSchema,
150
- assignee: exports.zTaskUserAssigneeSchema.optional(), // for human tasks
150
+ assignee: zod_1.z.array(exports.zTaskUserAssigneeSchema).optional(), // for human tasks
151
151
  lock: exports.zTaskLockSchema.optional(), // for auto tasks
152
152
  retry: exports.zTaskRetryPolicySchema.optional(), // for auto tasks
153
153
  on_failure: exports.zTaskOnFailureSchema.optional(), // for auto tasks
@@ -167,7 +167,7 @@ export const zTaskSchema = zFireDocSchema
167
167
  metadata: z.record(z.unknown()).optional(),
168
168
  // Mode-specific fields
169
169
  mode: zTaskModeSchema,
170
- assignee: zTaskUserAssigneeSchema.optional(), // for human tasks
170
+ assignee: z.array(zTaskUserAssigneeSchema).optional(), // for human tasks
171
171
  lock: zTaskLockSchema.optional(), // for auto tasks
172
172
  retry: zTaskRetryPolicySchema.optional(), // for auto tasks
173
173
  on_failure: zTaskOnFailureSchema.optional(), // for auto tasks
@@ -37,7 +37,7 @@ export interface ILead extends IProfile {
37
37
  distChannel?: ILeadDistChannel | null;
38
38
  address?: IAddress | null;
39
39
  contact?: IContact | null;
40
- chat_contact_id?: string | null;
40
+ chat_contact_id?: string | number | null;
41
41
  notes?: string | null;
42
42
  tags?: ITag[] | null;
43
43
  userRef?: FirestoreDocumentReference;
@@ -52,7 +52,7 @@ export interface ILead extends IProfile {
52
52
  distChannel?: ILeadDistChannel | null;
53
53
  address?: IAddress | null;
54
54
  contact?: IContact | null;
55
- chat_contact_id?: string | null;
55
+ chat_contact_id?: string | number | null;
56
56
  notes?: string | null; // Anotações sobre o lead
57
57
  tags?: ITag[] | null;
58
58
  userRef?: FirestoreDocumentReference;
@@ -139,7 +139,7 @@ export interface IPatient extends IProfile {
139
139
  address?: IAddress | null;
140
140
  contact?: IContact | null;
141
141
  lead_id?: string | null;
142
- chat_contact_id?: string | null;
142
+ chat_contact_id?: string | number | null;
143
143
  height_cm?: number | null;
144
144
  weight_kg?: number | null;
145
145
  blood_type?: BloodType | null;
@@ -203,7 +203,7 @@ export interface IPatient extends IProfile {
203
203
  address?: IAddress | null;
204
204
  contact?: IContact | null;
205
205
  lead_id?: string | null;
206
- chat_contact_id?: string | null;
206
+ chat_contact_id?: string | number | null;
207
207
  //informações médicas
208
208
  height_cm?: number | null; // Altura em centímetros
209
209
  weight_kg?: number | null; // Peso em kg
@@ -169,7 +169,7 @@ export interface ITaskBase extends IFireDoc {
169
169
  }
170
170
  export interface IHumanTask extends ITaskBase {
171
171
  mode: "human";
172
- assignee?: ITaskUserAssignee;
172
+ assignee?: ITaskUserAssignee[];
173
173
  }
174
174
  export interface IAutoTask extends ITaskBase {
175
175
  mode: "auto";
@@ -259,7 +259,7 @@ export interface ITaskBase extends IFireDoc {
259
259
  // ----- HUMAN task
260
260
  export interface IHumanTask extends ITaskBase {
261
261
  mode: "human";
262
- assignee?: ITaskUserAssignee;
262
+ assignee?: ITaskUserAssignee[];
263
263
  }
264
264
 
265
265
  // ----- AUTO task
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.176",
3
+ "version": "1.3.178",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",