evo360-types 1.3.135 → 1.3.137

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.
@@ -5,29 +5,35 @@ export declare const zLeadQualificationSchema: z.ZodObject<{
5
5
  name: z.ZodString;
6
6
  funnelLevel: z.ZodEnum<["invalid", "new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
7
7
  ref: z.ZodAny;
8
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
8
9
  }, "strip", z.ZodTypeAny, {
9
10
  code: string;
10
11
  name: string;
11
12
  funnelLevel: "new" | "invalid" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
12
13
  ref?: any;
14
+ updatedAt?: Date | null | undefined;
13
15
  }, {
14
16
  code: string;
15
17
  name: string;
16
18
  funnelLevel: "new" | "invalid" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
17
19
  ref?: any;
20
+ updatedAt?: Date | null | undefined;
18
21
  }>;
19
22
  export declare const zLeadDistChannelSchema: z.ZodObject<{
20
23
  code: z.ZodString;
21
24
  name: z.ZodString;
22
25
  ref: z.ZodAny;
26
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
23
27
  }, "strip", z.ZodTypeAny, {
24
28
  code: string;
25
29
  name: string;
26
30
  ref?: any;
31
+ updatedAt?: Date | null | undefined;
27
32
  }, {
28
33
  code: string;
29
34
  name: string;
30
35
  ref?: any;
36
+ updatedAt?: Date | null | undefined;
31
37
  }>;
32
38
  export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
33
39
  id: z.ZodString;
@@ -54,29 +60,35 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
54
60
  name: z.ZodString;
55
61
  funnelLevel: z.ZodEnum<["invalid", "new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
56
62
  ref: z.ZodAny;
63
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
57
64
  }, "strip", z.ZodTypeAny, {
58
65
  code: string;
59
66
  name: string;
60
67
  funnelLevel: "new" | "invalid" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
61
68
  ref?: any;
69
+ updatedAt?: Date | null | undefined;
62
70
  }, {
63
71
  code: string;
64
72
  name: string;
65
73
  funnelLevel: "new" | "invalid" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
66
74
  ref?: any;
75
+ updatedAt?: Date | null | undefined;
67
76
  }>>>;
68
77
  distChannel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
69
78
  code: z.ZodString;
70
79
  name: z.ZodString;
71
80
  ref: z.ZodAny;
81
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
72
82
  }, "strip", z.ZodTypeAny, {
73
83
  code: string;
74
84
  name: string;
75
85
  ref?: any;
86
+ updatedAt?: Date | null | undefined;
76
87
  }, {
77
88
  code: string;
78
89
  name: string;
79
90
  ref?: any;
91
+ updatedAt?: Date | null | undefined;
80
92
  }>>>;
81
93
  address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
82
94
  name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -171,29 +183,35 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
171
183
  name: z.ZodString;
172
184
  funnelLevel: z.ZodEnum<["invalid", "new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
173
185
  ref: z.ZodAny;
186
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
174
187
  }, "strip", z.ZodTypeAny, {
175
188
  code: string;
176
189
  name: string;
177
190
  funnelLevel: "new" | "invalid" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
178
191
  ref?: any;
192
+ updatedAt?: Date | null | undefined;
179
193
  }, {
180
194
  code: string;
181
195
  name: string;
182
196
  funnelLevel: "new" | "invalid" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
183
197
  ref?: any;
198
+ updatedAt?: Date | null | undefined;
184
199
  }>>>;
185
200
  distChannel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
186
201
  code: z.ZodString;
187
202
  name: z.ZodString;
188
203
  ref: z.ZodAny;
204
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
189
205
  }, "strip", z.ZodTypeAny, {
190
206
  code: string;
191
207
  name: string;
192
208
  ref?: any;
209
+ updatedAt?: Date | null | undefined;
193
210
  }, {
194
211
  code: string;
195
212
  name: string;
196
213
  ref?: any;
214
+ updatedAt?: Date | null | undefined;
197
215
  }>>>;
198
216
  address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
199
217
  name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -288,29 +306,35 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
288
306
  name: z.ZodString;
289
307
  funnelLevel: z.ZodEnum<["invalid", "new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
290
308
  ref: z.ZodAny;
309
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
291
310
  }, "strip", z.ZodTypeAny, {
292
311
  code: string;
293
312
  name: string;
294
313
  funnelLevel: "new" | "invalid" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
295
314
  ref?: any;
315
+ updatedAt?: Date | null | undefined;
296
316
  }, {
297
317
  code: string;
298
318
  name: string;
299
319
  funnelLevel: "new" | "invalid" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
300
320
  ref?: any;
321
+ updatedAt?: Date | null | undefined;
301
322
  }>>>;
302
323
  distChannel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
303
324
  code: z.ZodString;
304
325
  name: z.ZodString;
305
326
  ref: z.ZodAny;
327
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
306
328
  }, "strip", z.ZodTypeAny, {
307
329
  code: string;
308
330
  name: string;
309
331
  ref?: any;
332
+ updatedAt?: Date | null | undefined;
310
333
  }, {
311
334
  code: string;
312
335
  name: string;
313
336
  ref?: any;
337
+ updatedAt?: Date | null | undefined;
314
338
  }>>>;
315
339
  address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
316
340
  name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -11,11 +11,13 @@ exports.zLeadQualificationSchema = zod_1.z.object({
11
11
  name: zod_1.z.string().min(1).max(255),
12
12
  funnelLevel: zod_schemas_3.zQualificationFunnelLevelSchema,
13
13
  ref: zod_1.z.any(),
14
+ updatedAt: zod_1.z.date().nullable().optional(),
14
15
  });
15
16
  exports.zLeadDistChannelSchema = zod_1.z.object({
16
17
  code: zod_1.z.string().min(1).max(20),
17
18
  name: zod_1.z.string().min(1).max(255),
18
19
  ref: zod_1.z.any(),
20
+ updatedAt: zod_1.z.date().nullable().optional(),
19
21
  });
20
22
  exports.zLeadSchema = zod_schemas_2.zProfileSchema // Extend from ProfileSchema
21
23
  .extend({
@@ -14,12 +14,14 @@ export const zLeadQualificationSchema = z.object({
14
14
  name: z.string().min(1).max(255),
15
15
  funnelLevel: zQualificationFunnelLevelSchema,
16
16
  ref: z.any(),
17
+ updatedAt: z.date().nullable().optional(),
17
18
  });
18
19
 
19
20
  export const zLeadDistChannelSchema = z.object({
20
21
  code: z.string().min(1).max(20),
21
22
  name: z.string().min(1).max(255),
22
23
  ref: z.any(),
24
+ updatedAt: z.date().nullable().optional(),
23
25
  });
24
26
 
25
27
  export const zLeadSchema = zProfileSchema // Extend from ProfileSchema
@@ -14,6 +14,8 @@ export declare const zTenantSchema: z.ZodObject<z.objectUtil.extendShape<{
14
14
  name: z.ZodString;
15
15
  url_alias: z.ZodString;
16
16
  base_tenant: z.ZodOptional<z.ZodString>;
17
+ hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
18
+ readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
17
19
  date_format: z.ZodOptional<z.ZodString>;
18
20
  language: z.ZodOptional<z.ZodEnum<["ptBR", "en"]>>;
19
21
  status: z.ZodEnum<["draft", "published", "archived"]>;
@@ -31,6 +33,8 @@ export declare const zTenantSchema: z.ZodObject<z.objectUtil.extendShape<{
31
33
  updated_at?: Date | null | undefined;
32
34
  deleted_at?: Date | null | undefined;
33
35
  base_tenant?: string | undefined;
36
+ hidden?: boolean | undefined;
37
+ readonly?: boolean | undefined;
34
38
  date_format?: string | undefined;
35
39
  language?: "ptBR" | "en" | undefined;
36
40
  timezone?: string | undefined;
@@ -47,6 +51,8 @@ export declare const zTenantSchema: z.ZodObject<z.objectUtil.extendShape<{
47
51
  updated_at?: Date | null | undefined;
48
52
  deleted_at?: Date | null | undefined;
49
53
  base_tenant?: string | undefined;
54
+ hidden?: boolean | undefined;
55
+ readonly?: boolean | undefined;
50
56
  date_format?: string | undefined;
51
57
  language?: "ptBR" | "en" | undefined;
52
58
  timezone?: string | undefined;
@@ -15,6 +15,8 @@ exports.zTenantSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchem
15
15
  name: zod_1.z.string().min(1).max(255),
16
16
  url_alias: zod_1.z.string().min(1).max(255),
17
17
  base_tenant: zod_1.z.string().optional(),
18
+ hidden: zod_1.z.boolean().default(false).optional(),
19
+ readonly: zod_1.z.boolean().default(false).optional(),
18
20
  date_format: zod_1.z.string().optional(),
19
21
  language: exports.zTenantLanguageSchema.optional(),
20
22
  status: exports.zTenantStatusSchema,
@@ -16,6 +16,8 @@ export const zTenantSchema = zFireDocSchema // Extend from FireDocSchema
16
16
  name: z.string().min(1).max(255),
17
17
  url_alias: z.string().min(1).max(255),
18
18
  base_tenant: z.string().optional(),
19
+ hidden: z.boolean().default(false).optional(),
20
+ readonly: z.boolean().default(false).optional(),
19
21
  date_format: z.string().optional(),
20
22
  language: zTenantLanguageSchema.optional(),
21
23
  status: zTenantStatusSchema,
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- // @evo360/types/index.ts
2
1
  export * from "./types/shared";
3
2
  export * from "./types/firebase/pubsub-sync";
4
3
  export * from "./types/evo-core";
@@ -14,11 +13,9 @@ export * from "./types/evo-med/dic";
14
13
  export * from "./types/evo-med/insurance";
15
14
  export * from "./types/evo-med/people";
16
15
  export * from "./types/evo-med/procedure";
17
- export * from "./types/evo-task";
18
16
  export * from "./types/evo-tags";
17
+ export * from "./types/evo-task";
19
18
  export * from "./types/evo-survey";
20
-
21
- // zod schemas
22
19
  export * from "./apps/shared/zod-schemas";
23
20
  export * from "./apps/evo-core/zod-schemas";
24
21
  export * from "./apps/evo-tenant/zod-schemas";
@@ -13,11 +13,13 @@ export interface ILeadQualification {
13
13
  name: string;
14
14
  funnelLevel: QualificationFunnelLevel;
15
15
  ref?: FirestoreDocumentReference;
16
+ updatedAt?: Date;
16
17
  }
17
18
  export interface ILeadDistChannel {
18
19
  code: string;
19
20
  name: string;
20
21
  ref?: FirestoreDocumentReference;
22
+ updatedAt?: Date;
21
23
  }
22
24
  export interface ILead extends IProfile {
23
25
  external_id?: string | null;
@@ -22,12 +22,14 @@ export interface ILeadQualification {
22
22
  name: string;
23
23
  funnelLevel: QualificationFunnelLevel;
24
24
  ref?: FirestoreDocumentReference;
25
+ updatedAt?: Date;
25
26
  }
26
27
 
27
28
  export interface ILeadDistChannel {
28
29
  code: string;
29
30
  name: string;
30
31
  ref?: FirestoreDocumentReference;
32
+ updatedAt?: Date;
31
33
  }
32
34
 
33
35
  export interface ILead extends IProfile {
@@ -20,6 +20,8 @@ export declare enum ITenantStatus {
20
20
  export interface ITenant extends IFireDoc {
21
21
  name: string;
22
22
  base_tenant?: string;
23
+ hidden?: boolean;
24
+ readonly?: boolean;
23
25
  url_alias: string;
24
26
  date_format?: string;
25
27
  language?: TenantLanguage;
@@ -27,6 +27,8 @@ export enum ITenantStatus {
27
27
  export interface ITenant extends IFireDoc {
28
28
  name: string;
29
29
  base_tenant?: string;
30
+ hidden?: boolean;
31
+ readonly?: boolean;
30
32
  url_alias: string;
31
33
  date_format?: string;
32
34
  language?: TenantLanguage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.135",
3
+ "version": "1.3.137",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",