evo360-types 1.3.111 → 1.3.112

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.
@@ -8,12 +8,12 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
8
8
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9
9
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
10
10
  }, {
11
- name: z.ZodString;
12
- channel_id: z.ZodString;
13
- number: z.ZodString;
14
- type: z.ZodString;
15
- channel_uuid: z.ZodString;
16
- hub_ia: z.ZodObject<{
11
+ name: z.ZodOptional<z.ZodString>;
12
+ channel_id: z.ZodOptional<z.ZodString>;
13
+ number: z.ZodOptional<z.ZodString>;
14
+ type: z.ZodOptional<z.ZodString>;
15
+ channel_uuid: z.ZodOptional<z.ZodString>;
16
+ hub_ia: z.ZodOptional<z.ZodObject<{
17
17
  default_operation_mode: z.ZodEnum<["reply", "suggestion"]>;
18
18
  active: z.ZodDefault<z.ZodBoolean>;
19
19
  enabled_for_new_contacts: z.ZodDefault<z.ZodBoolean>;
@@ -49,7 +49,7 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
49
49
  allow_reply_mode?: boolean | undefined;
50
50
  transcribe_audio_when_ai_disabled?: boolean | undefined;
51
51
  suggest_agenda_action?: boolean | undefined;
52
- }>;
52
+ }>>;
53
53
  }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
54
54
  id: z.ZodString;
55
55
  ref: z.ZodAny;
@@ -59,12 +59,12 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
59
59
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
60
60
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
61
61
  }, {
62
- name: z.ZodString;
63
- channel_id: z.ZodString;
64
- number: z.ZodString;
65
- type: z.ZodString;
66
- channel_uuid: z.ZodString;
67
- hub_ia: z.ZodObject<{
62
+ name: z.ZodOptional<z.ZodString>;
63
+ channel_id: z.ZodOptional<z.ZodString>;
64
+ number: z.ZodOptional<z.ZodString>;
65
+ type: z.ZodOptional<z.ZodString>;
66
+ channel_uuid: z.ZodOptional<z.ZodString>;
67
+ hub_ia: z.ZodOptional<z.ZodObject<{
68
68
  default_operation_mode: z.ZodEnum<["reply", "suggestion"]>;
69
69
  active: z.ZodDefault<z.ZodBoolean>;
70
70
  enabled_for_new_contacts: z.ZodDefault<z.ZodBoolean>;
@@ -100,7 +100,7 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
100
100
  allow_reply_mode?: boolean | undefined;
101
101
  transcribe_audio_when_ai_disabled?: boolean | undefined;
102
102
  suggest_agenda_action?: boolean | undefined;
103
- }>;
103
+ }>>;
104
104
  }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
105
105
  id: z.ZodString;
106
106
  ref: z.ZodAny;
@@ -110,12 +110,12 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
110
110
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
111
111
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
112
112
  }, {
113
- name: z.ZodString;
114
- channel_id: z.ZodString;
115
- number: z.ZodString;
116
- type: z.ZodString;
117
- channel_uuid: z.ZodString;
118
- hub_ia: z.ZodObject<{
113
+ name: z.ZodOptional<z.ZodString>;
114
+ channel_id: z.ZodOptional<z.ZodString>;
115
+ number: z.ZodOptional<z.ZodString>;
116
+ type: z.ZodOptional<z.ZodString>;
117
+ channel_uuid: z.ZodOptional<z.ZodString>;
118
+ hub_ia: z.ZodOptional<z.ZodObject<{
119
119
  default_operation_mode: z.ZodEnum<["reply", "suggestion"]>;
120
120
  active: z.ZodDefault<z.ZodBoolean>;
121
121
  enabled_for_new_contacts: z.ZodDefault<z.ZodBoolean>;
@@ -151,20 +151,20 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
151
151
  allow_reply_mode?: boolean | undefined;
152
152
  transcribe_audio_when_ai_disabled?: boolean | undefined;
153
153
  suggest_agenda_action?: boolean | undefined;
154
- }>;
154
+ }>>;
155
155
  }>, z.ZodTypeAny, "passthrough">>;
156
156
  export declare const zChatbeeChannelSchema: z.ZodObject<{
157
- id: z.ZodString;
158
- external_id: z.ZodString;
159
- name: z.ZodString;
157
+ id: z.ZodOptional<z.ZodString>;
158
+ external_id: z.ZodOptional<z.ZodString>;
159
+ name: z.ZodOptional<z.ZodString>;
160
160
  }, "strip", z.ZodTypeAny, {
161
- name: string;
162
- id: string;
163
- external_id: string;
161
+ name?: string | undefined;
162
+ id?: string | undefined;
163
+ external_id?: string | undefined;
164
164
  }, {
165
- name: string;
166
- id: string;
167
- external_id: string;
165
+ name?: string | undefined;
166
+ id?: string | undefined;
167
+ external_id?: string | undefined;
168
168
  }>;
169
169
  export declare const zChatbeeDepartmentSchema: z.ZodObject<{
170
170
  external_id: z.ZodOptional<z.ZodString>;
@@ -193,26 +193,26 @@ export declare const zChatbeeStatusSchema: z.ZodObject<{
193
193
  external_id?: string | undefined;
194
194
  }>;
195
195
  export declare const zChatbeeContactSchema: z.ZodObject<{
196
- id: z.ZodString;
197
- external_id: z.ZodString;
198
- name: z.ZodString;
199
- is_group: z.ZodString;
200
- address: z.ZodString;
201
- type: z.ZodString;
196
+ id: z.ZodOptional<z.ZodString>;
197
+ external_id: z.ZodOptional<z.ZodString>;
198
+ name: z.ZodOptional<z.ZodString>;
199
+ is_group: z.ZodOptional<z.ZodString>;
200
+ address: z.ZodOptional<z.ZodString>;
201
+ type: z.ZodOptional<z.ZodString>;
202
202
  }, "strip", z.ZodTypeAny, {
203
- name: string;
204
- id: string;
205
- type: string;
206
- external_id: string;
207
- address: string;
208
- is_group: string;
203
+ name?: string | undefined;
204
+ id?: string | undefined;
205
+ type?: string | undefined;
206
+ external_id?: string | undefined;
207
+ address?: string | undefined;
208
+ is_group?: string | undefined;
209
209
  }, {
210
- name: string;
211
- id: string;
212
- type: string;
213
- external_id: string;
214
- address: string;
215
- is_group: string;
210
+ name?: string | undefined;
211
+ id?: string | undefined;
212
+ type?: string | undefined;
213
+ external_id?: string | undefined;
214
+ address?: string | undefined;
215
+ is_group?: string | undefined;
216
216
  }>;
217
217
  export declare const zChatbeeContactHistoryPayloadCreatedSchema: z.ZodObject<{
218
218
  department: z.ZodOptional<z.ZodObject<{
@@ -7,19 +7,19 @@ const zod_schemas_2 = require("../../evo-hub-ia/channel/zod-schemas");
7
7
  // ───────── ChatBee Channel Config ─────────
8
8
  exports.zChatBeeChannelConfigSchema = zod_schemas_1.zFireDocSchema
9
9
  .extend({
10
- name: zod_1.z.string(), // Nome do canal
11
- channel_id: zod_1.z.string(), // ID do canal
12
- number: zod_1.z.string(), // Número do canal
13
- type: zod_1.z.string(), // Tipo do canal
14
- channel_uuid: zod_1.z.string(), // UUID do canal
15
- hub_ia: zod_schemas_2.zHubIAConfigSchema, // Configurações da HubIA para este canal
10
+ name: zod_1.z.string().optional(), // Nome do canal
11
+ channel_id: zod_1.z.string().optional(), // ID do canal
12
+ number: zod_1.z.string().optional(), // Número do canal
13
+ type: zod_1.z.string().optional(), // Tipo do canal
14
+ channel_uuid: zod_1.z.string().optional(), // UUID do canal
15
+ hub_ia: zod_schemas_2.zHubIAConfigSchema.optional(), // Configurações da HubIA para este canal
16
16
  })
17
17
  .passthrough();
18
18
  // ───────── ChatBee Channel ─────────
19
19
  exports.zChatbeeChannelSchema = zod_1.z.object({
20
- id: zod_1.z.string(),
21
- external_id: zod_1.z.string(),
22
- name: zod_1.z.string(),
20
+ id: zod_1.z.string().optional(),
21
+ external_id: zod_1.z.string().optional(),
22
+ name: zod_1.z.string().optional(),
23
23
  });
24
24
  // ───────── ChatBee Department ─────────
25
25
  exports.zChatbeeDepartmentSchema = zod_1.z.object({
@@ -35,12 +35,12 @@ exports.zChatbeeStatusSchema = zod_1.z.object({
35
35
  });
36
36
  // ───────── ChatBee Contact ─────────
37
37
  exports.zChatbeeContactSchema = zod_1.z.object({
38
- id: zod_1.z.string(),
39
- external_id: zod_1.z.string(),
40
- name: zod_1.z.string(),
41
- is_group: zod_1.z.string(),
42
- address: zod_1.z.string(),
43
- type: zod_1.z.string(),
38
+ id: zod_1.z.string().optional(),
39
+ external_id: zod_1.z.string().optional(),
40
+ name: zod_1.z.string().optional(),
41
+ is_group: zod_1.z.string().optional(),
42
+ address: zod_1.z.string().optional(),
43
+ type: zod_1.z.string().optional(),
44
44
  });
45
45
  // ───────── ChatBee Contact History Payload Created ─────────
46
46
  exports.zChatbeeContactHistoryPayloadCreatedSchema = zod_1.z.object({
@@ -5,20 +5,20 @@ import { zHubIAConfigSchema } from "../../evo-hub-ia/channel/zod-schemas";
5
5
  // ───────── ChatBee Channel Config ─────────
6
6
  export const zChatBeeChannelConfigSchema = zFireDocSchema
7
7
  .extend({
8
- name: z.string(), // Nome do canal
9
- channel_id: z.string(), // ID do canal
10
- number: z.string(), // Número do canal
11
- type: z.string(), // Tipo do canal
12
- channel_uuid: z.string(), // UUID do canal
13
- hub_ia: zHubIAConfigSchema, // Configurações da HubIA para este canal
8
+ name: z.string().optional(), // Nome do canal
9
+ channel_id: z.string().optional(), // ID do canal
10
+ number: z.string().optional(), // Número do canal
11
+ type: z.string().optional(), // Tipo do canal
12
+ channel_uuid: z.string().optional(), // UUID do canal
13
+ hub_ia: zHubIAConfigSchema.optional(), // Configurações da HubIA para este canal
14
14
  })
15
15
  .passthrough();
16
16
 
17
17
  // ───────── ChatBee Channel ─────────
18
18
  export const zChatbeeChannelSchema = z.object({
19
- id: z.string(),
20
- external_id: z.string(),
21
- name: z.string(),
19
+ id: z.string().optional(),
20
+ external_id: z.string().optional(),
21
+ name: z.string().optional(),
22
22
  });
23
23
 
24
24
  // ───────── ChatBee Department ─────────
@@ -37,12 +37,12 @@ export const zChatbeeStatusSchema = z.object({
37
37
 
38
38
  // ───────── ChatBee Contact ─────────
39
39
  export const zChatbeeContactSchema = z.object({
40
- id: z.string(),
41
- external_id: z.string(),
42
- name: z.string(),
43
- is_group: z.string(),
44
- address: z.string(),
45
- type: z.string(),
40
+ id: z.string().optional(),
41
+ external_id: z.string().optional(),
42
+ name: z.string().optional(),
43
+ is_group: z.string().optional(),
44
+ address: z.string().optional(),
45
+ type: z.string().optional(),
46
46
  });
47
47
 
48
48
  // ───────── ChatBee Contact History Payload Created ─────────
@@ -9,39 +9,39 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
9
9
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
10
10
  }, {
11
11
  channel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12
- id: z.ZodString;
13
- external_id: z.ZodString;
14
- name: z.ZodString;
12
+ id: z.ZodOptional<z.ZodString>;
13
+ external_id: z.ZodOptional<z.ZodString>;
14
+ name: z.ZodOptional<z.ZodString>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- name: string;
17
- id: string;
18
- external_id: string;
16
+ name?: string | undefined;
17
+ id?: string | undefined;
18
+ external_id?: string | undefined;
19
19
  }, {
20
- name: string;
21
- id: string;
22
- external_id: string;
20
+ name?: string | undefined;
21
+ id?: string | undefined;
22
+ external_id?: string | undefined;
23
23
  }>>>;
24
24
  contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
25
- id: z.ZodString;
26
- external_id: z.ZodString;
27
- name: z.ZodString;
28
- is_group: z.ZodString;
29
- address: z.ZodString;
30
- type: z.ZodString;
25
+ id: z.ZodOptional<z.ZodString>;
26
+ external_id: z.ZodOptional<z.ZodString>;
27
+ name: z.ZodOptional<z.ZodString>;
28
+ is_group: z.ZodOptional<z.ZodString>;
29
+ address: z.ZodOptional<z.ZodString>;
30
+ type: z.ZodOptional<z.ZodString>;
31
31
  }, "strip", z.ZodTypeAny, {
32
- name: string;
33
- id: string;
34
- type: string;
35
- external_id: string;
36
- address: string;
37
- is_group: string;
32
+ name?: string | undefined;
33
+ id?: string | undefined;
34
+ type?: string | undefined;
35
+ external_id?: string | undefined;
36
+ address?: string | undefined;
37
+ is_group?: string | undefined;
38
38
  }, {
39
- name: string;
40
- id: string;
41
- type: string;
42
- external_id: string;
43
- address: string;
44
- is_group: string;
39
+ name?: string | undefined;
40
+ id?: string | undefined;
41
+ type?: string | undefined;
42
+ external_id?: string | undefined;
43
+ address?: string | undefined;
44
+ is_group?: string | undefined;
45
45
  }>>>;
46
46
  lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
47
  lead_ref: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
@@ -227,39 +227,39 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
227
227
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
228
228
  }, {
229
229
  channel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
230
- id: z.ZodString;
231
- external_id: z.ZodString;
232
- name: z.ZodString;
230
+ id: z.ZodOptional<z.ZodString>;
231
+ external_id: z.ZodOptional<z.ZodString>;
232
+ name: z.ZodOptional<z.ZodString>;
233
233
  }, "strip", z.ZodTypeAny, {
234
- name: string;
235
- id: string;
236
- external_id: string;
234
+ name?: string | undefined;
235
+ id?: string | undefined;
236
+ external_id?: string | undefined;
237
237
  }, {
238
- name: string;
239
- id: string;
240
- external_id: string;
238
+ name?: string | undefined;
239
+ id?: string | undefined;
240
+ external_id?: string | undefined;
241
241
  }>>>;
242
242
  contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
243
- id: z.ZodString;
244
- external_id: z.ZodString;
245
- name: z.ZodString;
246
- is_group: z.ZodString;
247
- address: z.ZodString;
248
- type: z.ZodString;
243
+ id: z.ZodOptional<z.ZodString>;
244
+ external_id: z.ZodOptional<z.ZodString>;
245
+ name: z.ZodOptional<z.ZodString>;
246
+ is_group: z.ZodOptional<z.ZodString>;
247
+ address: z.ZodOptional<z.ZodString>;
248
+ type: z.ZodOptional<z.ZodString>;
249
249
  }, "strip", z.ZodTypeAny, {
250
- name: string;
251
- id: string;
252
- type: string;
253
- external_id: string;
254
- address: string;
255
- is_group: string;
250
+ name?: string | undefined;
251
+ id?: string | undefined;
252
+ type?: string | undefined;
253
+ external_id?: string | undefined;
254
+ address?: string | undefined;
255
+ is_group?: string | undefined;
256
256
  }, {
257
- name: string;
258
- id: string;
259
- type: string;
260
- external_id: string;
261
- address: string;
262
- is_group: string;
257
+ name?: string | undefined;
258
+ id?: string | undefined;
259
+ type?: string | undefined;
260
+ external_id?: string | undefined;
261
+ address?: string | undefined;
262
+ is_group?: string | undefined;
263
263
  }>>>;
264
264
  lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
265
265
  lead_ref: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
@@ -445,39 +445,39 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
445
445
  deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
446
446
  }, {
447
447
  channel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
448
- id: z.ZodString;
449
- external_id: z.ZodString;
450
- name: z.ZodString;
448
+ id: z.ZodOptional<z.ZodString>;
449
+ external_id: z.ZodOptional<z.ZodString>;
450
+ name: z.ZodOptional<z.ZodString>;
451
451
  }, "strip", z.ZodTypeAny, {
452
- name: string;
453
- id: string;
454
- external_id: string;
452
+ name?: string | undefined;
453
+ id?: string | undefined;
454
+ external_id?: string | undefined;
455
455
  }, {
456
- name: string;
457
- id: string;
458
- external_id: string;
456
+ name?: string | undefined;
457
+ id?: string | undefined;
458
+ external_id?: string | undefined;
459
459
  }>>>;
460
460
  contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
461
- id: z.ZodString;
462
- external_id: z.ZodString;
463
- name: z.ZodString;
464
- is_group: z.ZodString;
465
- address: z.ZodString;
466
- type: z.ZodString;
461
+ id: z.ZodOptional<z.ZodString>;
462
+ external_id: z.ZodOptional<z.ZodString>;
463
+ name: z.ZodOptional<z.ZodString>;
464
+ is_group: z.ZodOptional<z.ZodString>;
465
+ address: z.ZodOptional<z.ZodString>;
466
+ type: z.ZodOptional<z.ZodString>;
467
467
  }, "strip", z.ZodTypeAny, {
468
- name: string;
469
- id: string;
470
- type: string;
471
- external_id: string;
472
- address: string;
473
- is_group: string;
468
+ name?: string | undefined;
469
+ id?: string | undefined;
470
+ type?: string | undefined;
471
+ external_id?: string | undefined;
472
+ address?: string | undefined;
473
+ is_group?: string | undefined;
474
474
  }, {
475
- name: string;
476
- id: string;
477
- type: string;
478
- external_id: string;
479
- address: string;
480
- is_group: string;
475
+ name?: string | undefined;
476
+ id?: string | undefined;
477
+ type?: string | undefined;
478
+ external_id?: string | undefined;
479
+ address?: string | undefined;
480
+ is_group?: string | undefined;
481
481
  }>>>;
482
482
  lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
483
483
  lead_ref: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
@@ -1,18 +1,18 @@
1
1
  import type { IHubIAConfig } from "../../evo-hub-ia/channel";
2
2
  import { IFireDoc } from "../../shared";
3
3
  export interface IChatBeeChannelConfig extends IFireDoc {
4
- name: string;
5
- channel_id: string;
6
- number: string;
7
- type: string;
8
- channel_uuid: string;
9
- hub_ia: IHubIAConfig;
4
+ name?: string;
5
+ channel_id?: string;
6
+ number?: string;
7
+ type?: string;
8
+ channel_uuid?: string;
9
+ hub_ia?: IHubIAConfig;
10
10
  [key: string]: unknown;
11
11
  }
12
12
  export interface IChatbeeChannel {
13
- id: string;
14
- external_id: string;
15
- name: string;
13
+ id?: string;
14
+ external_id?: string;
15
+ name?: string;
16
16
  }
17
17
  export interface IChatbeeDepartment {
18
18
  external_id?: string;
@@ -25,12 +25,12 @@ export interface IChatbeeStatus {
25
25
  name?: string;
26
26
  }
27
27
  export interface IChatbeeContact {
28
- id: string;
29
- external_id: string;
30
- name: string;
31
- is_group: string;
32
- address: string;
33
- type: string;
28
+ id?: string;
29
+ external_id?: string;
30
+ name?: string;
31
+ is_group?: string;
32
+ address?: string;
33
+ type?: string;
34
34
  }
35
35
  export interface IChatbeeContactHistoryPayloadCreated {
36
36
  department?: IChatbeeDepartment;
@@ -3,20 +3,20 @@ import { IFireDoc } from "../../shared";
3
3
 
4
4
  // ───────── ChatBee Channel Config ─────────
5
5
  export interface IChatBeeChannelConfig extends IFireDoc {
6
- name: string; // Nome do canal
7
- channel_id: string; // ID do canal
8
- number: string; // Número do canal
9
- type: string; // Tipo do canal
10
- channel_uuid: string; // UUID do canal
11
- hub_ia: IHubIAConfig; // Configurações da HubIA para este canal
6
+ name?: string; // Nome do canal
7
+ channel_id?: string; // ID do canal
8
+ number?: string; // Número do canal
9
+ type?: string; // Tipo do canal
10
+ channel_uuid?: string; // UUID do canal
11
+ hub_ia?: IHubIAConfig; // Configurações da HubIA para este canal
12
12
  [key: string]: unknown; // index signature
13
13
  }
14
14
 
15
15
  // ───────── ChatBee Channel ─────────
16
16
  export interface IChatbeeChannel {
17
- id: string;
18
- external_id: string;
19
- name: string;
17
+ id?: string;
18
+ external_id?: string;
19
+ name?: string;
20
20
  }
21
21
 
22
22
  // ───────── ChatBee Department ─────────
@@ -35,12 +35,12 @@ export interface IChatbeeStatus {
35
35
 
36
36
  // ───────── ChatBee Contact ─────────
37
37
  export interface IChatbeeContact {
38
- id: string;
39
- external_id: string;
40
- name: string;
41
- is_group: string;
42
- address: string;
43
- type: string;
38
+ id?: string;
39
+ external_id?: string;
40
+ name?: string;
41
+ is_group?: string;
42
+ address?: string;
43
+ type?: string;
44
44
  }
45
45
 
46
46
  // Interface para payload_created
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.111",
3
+ "version": "1.3.112",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",