evo360-types 1.3.338 → 1.3.339

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.
@@ -33,7 +33,7 @@ export declare const zChannelSchema: z.ZodObject<{
33
33
  number: z.ZodOptional<z.ZodString>;
34
34
  company_id: z.ZodOptional<z.ZodString>;
35
35
  default_department_id: z.ZodString;
36
- status: z.ZodEnum<["active", "paused", "disabled"]>;
36
+ status: z.ZodEnum<["active", "paused", "disabled", "pending"]>;
37
37
  provider_ref: z.ZodObject<{
38
38
  channel_id: z.ZodOptional<z.ZodString>;
39
39
  channel_uuid: z.ZodOptional<z.ZodString>;
@@ -69,7 +69,7 @@ export declare const zChannelSchema: z.ZodObject<{
69
69
  number: z.ZodOptional<z.ZodString>;
70
70
  company_id: z.ZodOptional<z.ZodString>;
71
71
  default_department_id: z.ZodString;
72
- status: z.ZodEnum<["active", "paused", "disabled"]>;
72
+ status: z.ZodEnum<["active", "paused", "disabled", "pending"]>;
73
73
  provider_ref: z.ZodObject<{
74
74
  channel_id: z.ZodOptional<z.ZodString>;
75
75
  channel_uuid: z.ZodOptional<z.ZodString>;
@@ -105,7 +105,7 @@ export declare const zChannelSchema: z.ZodObject<{
105
105
  number: z.ZodOptional<z.ZodString>;
106
106
  company_id: z.ZodOptional<z.ZodString>;
107
107
  default_department_id: z.ZodString;
108
- status: z.ZodEnum<["active", "paused", "disabled"]>;
108
+ status: z.ZodEnum<["active", "paused", "disabled", "pending"]>;
109
109
  provider_ref: z.ZodObject<{
110
110
  channel_id: z.ZodOptional<z.ZodString>;
111
111
  channel_uuid: z.ZodOptional<z.ZodString>;
@@ -19,7 +19,7 @@ exports.zChannelSchema = zod_schemas_1.zFireDocSchema
19
19
  number: zod_1.z.string().optional(),
20
20
  company_id: zod_1.z.string().optional(),
21
21
  default_department_id: zod_1.z.string(),
22
- status: zod_1.z.enum(['active', 'paused', 'disabled']),
22
+ status: zod_1.z.enum(['active', 'paused', 'disabled', 'pending']),
23
23
  provider_ref: exports.zChannelProviderRefSchema,
24
24
  hub_ia: zod_1.z.any().optional(),
25
25
  })
@@ -18,7 +18,7 @@ export const zChannelSchema = zFireDocSchema
18
18
  number: z.string().optional(),
19
19
  company_id: z.string().optional(),
20
20
  default_department_id: z.string(),
21
- status: z.enum(['active', 'paused', 'disabled']),
21
+ status: z.enum(['active', 'paused', 'disabled', 'pending']),
22
22
  provider_ref: zChannelProviderRefSchema,
23
23
  hub_ia: z.any().optional(),
24
24
  })
@@ -0,0 +1,115 @@
1
+ import { z } from "zod";
2
+ export declare const zWabaSetupStatusSchema: z.ZodEnum<["pending", "connected", "orphan", "error"]>;
3
+ export declare const zWabaSetupStepsSchema: z.ZodObject<{
4
+ subscribed: z.ZodOptional<z.ZodBoolean>;
5
+ registered: z.ZodOptional<z.ZodBoolean>;
6
+ indexed: z.ZodOptional<z.ZodBoolean>;
7
+ channel_updated: z.ZodOptional<z.ZodBoolean>;
8
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9
+ subscribed: z.ZodOptional<z.ZodBoolean>;
10
+ registered: z.ZodOptional<z.ZodBoolean>;
11
+ indexed: z.ZodOptional<z.ZodBoolean>;
12
+ channel_updated: z.ZodOptional<z.ZodBoolean>;
13
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
14
+ subscribed: z.ZodOptional<z.ZodBoolean>;
15
+ registered: z.ZodOptional<z.ZodBoolean>;
16
+ indexed: z.ZodOptional<z.ZodBoolean>;
17
+ channel_updated: z.ZodOptional<z.ZodBoolean>;
18
+ }, z.ZodTypeAny, "passthrough">>;
19
+ export declare const zWabaSetupSchema: z.ZodObject<{
20
+ number: z.ZodString;
21
+ tenant_id: z.ZodOptional<z.ZodString>;
22
+ channel_id: z.ZodOptional<z.ZodString>;
23
+ status: z.ZodEnum<["pending", "connected", "orphan", "error"]>;
24
+ pin_2fa: z.ZodOptional<z.ZodString>;
25
+ last_error: z.ZodOptional<z.ZodString>;
26
+ steps_completed: z.ZodOptional<z.ZodObject<{
27
+ subscribed: z.ZodOptional<z.ZodBoolean>;
28
+ registered: z.ZodOptional<z.ZodBoolean>;
29
+ indexed: z.ZodOptional<z.ZodBoolean>;
30
+ channel_updated: z.ZodOptional<z.ZodBoolean>;
31
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
32
+ subscribed: z.ZodOptional<z.ZodBoolean>;
33
+ registered: z.ZodOptional<z.ZodBoolean>;
34
+ indexed: z.ZodOptional<z.ZodBoolean>;
35
+ channel_updated: z.ZodOptional<z.ZodBoolean>;
36
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
37
+ subscribed: z.ZodOptional<z.ZodBoolean>;
38
+ registered: z.ZodOptional<z.ZodBoolean>;
39
+ indexed: z.ZodOptional<z.ZodBoolean>;
40
+ channel_updated: z.ZodOptional<z.ZodBoolean>;
41
+ }, z.ZodTypeAny, "passthrough">>>;
42
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
43
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
44
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
45
+ connected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
46
+ received_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
47
+ waba_id: z.ZodOptional<z.ZodString>;
48
+ phone_number_id: z.ZodOptional<z.ZodString>;
49
+ business_id: z.ZodOptional<z.ZodString>;
50
+ display_phone_number: z.ZodOptional<z.ZodString>;
51
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
52
+ number: z.ZodString;
53
+ tenant_id: z.ZodOptional<z.ZodString>;
54
+ channel_id: z.ZodOptional<z.ZodString>;
55
+ status: z.ZodEnum<["pending", "connected", "orphan", "error"]>;
56
+ pin_2fa: z.ZodOptional<z.ZodString>;
57
+ last_error: z.ZodOptional<z.ZodString>;
58
+ steps_completed: z.ZodOptional<z.ZodObject<{
59
+ subscribed: z.ZodOptional<z.ZodBoolean>;
60
+ registered: z.ZodOptional<z.ZodBoolean>;
61
+ indexed: z.ZodOptional<z.ZodBoolean>;
62
+ channel_updated: z.ZodOptional<z.ZodBoolean>;
63
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
64
+ subscribed: z.ZodOptional<z.ZodBoolean>;
65
+ registered: z.ZodOptional<z.ZodBoolean>;
66
+ indexed: z.ZodOptional<z.ZodBoolean>;
67
+ channel_updated: z.ZodOptional<z.ZodBoolean>;
68
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
69
+ subscribed: z.ZodOptional<z.ZodBoolean>;
70
+ registered: z.ZodOptional<z.ZodBoolean>;
71
+ indexed: z.ZodOptional<z.ZodBoolean>;
72
+ channel_updated: z.ZodOptional<z.ZodBoolean>;
73
+ }, z.ZodTypeAny, "passthrough">>>;
74
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
75
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
76
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
77
+ connected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
78
+ received_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
79
+ waba_id: z.ZodOptional<z.ZodString>;
80
+ phone_number_id: z.ZodOptional<z.ZodString>;
81
+ business_id: z.ZodOptional<z.ZodString>;
82
+ display_phone_number: z.ZodOptional<z.ZodString>;
83
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
84
+ number: z.ZodString;
85
+ tenant_id: z.ZodOptional<z.ZodString>;
86
+ channel_id: z.ZodOptional<z.ZodString>;
87
+ status: z.ZodEnum<["pending", "connected", "orphan", "error"]>;
88
+ pin_2fa: z.ZodOptional<z.ZodString>;
89
+ last_error: z.ZodOptional<z.ZodString>;
90
+ steps_completed: z.ZodOptional<z.ZodObject<{
91
+ subscribed: z.ZodOptional<z.ZodBoolean>;
92
+ registered: z.ZodOptional<z.ZodBoolean>;
93
+ indexed: z.ZodOptional<z.ZodBoolean>;
94
+ channel_updated: z.ZodOptional<z.ZodBoolean>;
95
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
96
+ subscribed: z.ZodOptional<z.ZodBoolean>;
97
+ registered: z.ZodOptional<z.ZodBoolean>;
98
+ indexed: z.ZodOptional<z.ZodBoolean>;
99
+ channel_updated: z.ZodOptional<z.ZodBoolean>;
100
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
101
+ subscribed: z.ZodOptional<z.ZodBoolean>;
102
+ registered: z.ZodOptional<z.ZodBoolean>;
103
+ indexed: z.ZodOptional<z.ZodBoolean>;
104
+ channel_updated: z.ZodOptional<z.ZodBoolean>;
105
+ }, z.ZodTypeAny, "passthrough">>>;
106
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
107
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
108
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
109
+ connected_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
110
+ received_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
111
+ waba_id: z.ZodOptional<z.ZodString>;
112
+ phone_number_id: z.ZodOptional<z.ZodString>;
113
+ business_id: z.ZodOptional<z.ZodString>;
114
+ display_phone_number: z.ZodOptional<z.ZodString>;
115
+ }, z.ZodTypeAny, "passthrough">>;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zWabaSetupSchema = exports.zWabaSetupStepsSchema = exports.zWabaSetupStatusSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.zWabaSetupStatusSchema = zod_1.z.enum([
6
+ 'pending',
7
+ 'connected',
8
+ 'orphan',
9
+ 'error',
10
+ ]);
11
+ exports.zWabaSetupStepsSchema = zod_1.z.object({
12
+ subscribed: zod_1.z.boolean().optional(),
13
+ registered: zod_1.z.boolean().optional(),
14
+ indexed: zod_1.z.boolean().optional(),
15
+ channel_updated: zod_1.z.boolean().optional(),
16
+ }).passthrough();
17
+ exports.zWabaSetupSchema = zod_1.z.object({
18
+ number: zod_1.z.string(),
19
+ tenant_id: zod_1.z.string().optional(),
20
+ channel_id: zod_1.z.string().optional(),
21
+ status: exports.zWabaSetupStatusSchema,
22
+ pin_2fa: zod_1.z.string().optional(),
23
+ last_error: zod_1.z.string().optional(),
24
+ steps_completed: exports.zWabaSetupStepsSchema.optional(),
25
+ created_at: zod_1.z.coerce.date().nullable().optional(),
26
+ updated_at: zod_1.z.coerce.date().nullable().optional(),
27
+ expires_at: zod_1.z.coerce.date().nullable().optional(),
28
+ connected_at: zod_1.z.coerce.date().nullable().optional(),
29
+ received_at: zod_1.z.coerce.date().nullable().optional(),
30
+ waba_id: zod_1.z.string().optional(),
31
+ phone_number_id: zod_1.z.string().optional(),
32
+ business_id: zod_1.z.string().optional(),
33
+ display_phone_number: zod_1.z.string().optional(),
34
+ }).passthrough();
@@ -0,0 +1,37 @@
1
+ import { z } from "zod";
2
+
3
+ export const zWabaSetupStatusSchema = z.enum([
4
+ 'pending',
5
+ 'connected',
6
+ 'orphan',
7
+ 'error',
8
+ ]);
9
+
10
+ export const zWabaSetupStepsSchema = z.object({
11
+ subscribed: z.boolean().optional(),
12
+ registered: z.boolean().optional(),
13
+ indexed: z.boolean().optional(),
14
+ channel_updated: z.boolean().optional(),
15
+ }).passthrough();
16
+
17
+ export const zWabaSetupSchema = z.object({
18
+ number: z.string(),
19
+ tenant_id: z.string().optional(),
20
+ channel_id: z.string().optional(),
21
+
22
+ status: zWabaSetupStatusSchema,
23
+ pin_2fa: z.string().optional(),
24
+ last_error: z.string().optional(),
25
+ steps_completed: zWabaSetupStepsSchema.optional(),
26
+
27
+ created_at: z.coerce.date().nullable().optional(),
28
+ updated_at: z.coerce.date().nullable().optional(),
29
+ expires_at: z.coerce.date().nullable().optional(),
30
+ connected_at: z.coerce.date().nullable().optional(),
31
+ received_at: z.coerce.date().nullable().optional(),
32
+
33
+ waba_id: z.string().optional(),
34
+ phone_number_id: z.string().optional(),
35
+ business_id: z.string().optional(),
36
+ display_phone_number: z.string().optional(),
37
+ }).passthrough();
package/dist/index.d.ts CHANGED
@@ -41,6 +41,7 @@ export * from "./apps/evo-chat/thread-message/zod-schemas";
41
41
  export * from "./apps/evo-chat/ticket/zod-schemas";
42
42
  export * from "./apps/evo-chat/inbox/zod-schemas";
43
43
  export * from "./apps/evo-chat/waba-template/zod-schemas";
44
+ export * from "./apps/evo-chat/waba-setup/zod-schemas";
44
45
  export * from "./apps/evo-chat/quick-reply/zod-schemas";
45
46
  export * from "./apps/evo-hub-ia/channel/zod-schemas";
46
47
  export * from "./apps/evo-hub-ia/v1/zod-schemas";
package/dist/index.js CHANGED
@@ -59,6 +59,7 @@ __exportStar(require("./apps/evo-chat/thread-message/zod-schemas"), exports);
59
59
  __exportStar(require("./apps/evo-chat/ticket/zod-schemas"), exports);
60
60
  __exportStar(require("./apps/evo-chat/inbox/zod-schemas"), exports);
61
61
  __exportStar(require("./apps/evo-chat/waba-template/zod-schemas"), exports);
62
+ __exportStar(require("./apps/evo-chat/waba-setup/zod-schemas"), exports);
62
63
  __exportStar(require("./apps/evo-chat/quick-reply/zod-schemas"), exports);
63
64
  __exportStar(require("./apps/evo-hub-ia/channel/zod-schemas"), exports);
64
65
  __exportStar(require("./apps/evo-hub-ia/v1/zod-schemas"), exports);
package/dist/index.ts CHANGED
@@ -44,6 +44,7 @@ export * from "./apps/evo-chat/thread-message/zod-schemas";
44
44
  export * from "./apps/evo-chat/ticket/zod-schemas";
45
45
  export * from "./apps/evo-chat/inbox/zod-schemas";
46
46
  export * from "./apps/evo-chat/waba-template/zod-schemas";
47
+ export * from "./apps/evo-chat/waba-setup/zod-schemas";
47
48
  export * from "./apps/evo-chat/quick-reply/zod-schemas";
48
49
  export * from "./apps/evo-hub-ia/channel/zod-schemas";
49
50
  export * from "./apps/evo-hub-ia/v1/zod-schemas";
@@ -2,7 +2,7 @@ import type { IHubIAConfig } from "../../evo-hub-ia/channel";
2
2
  import { IFireDoc } from "../../shared";
3
3
  export type ChannelProvider = 'chatbee' | 'hub-waba';
4
4
  export type ChannelType = 'waba' | 'instagram' | 'telegram' | 'email' | 'sms';
5
- export type ChannelStatus = 'active' | 'paused' | 'disabled';
5
+ export type ChannelStatus = 'active' | 'paused' | 'disabled' | 'pending';
6
6
  export interface IChannelProviderRef {
7
7
  channel_id?: string;
8
8
  channel_uuid?: string;
@@ -5,7 +5,7 @@ import { IFireDoc } from "../../shared";
5
5
 
6
6
  export type ChannelProvider = 'chatbee' | 'hub-waba';
7
7
  export type ChannelType = 'waba' | 'instagram' | 'telegram' | 'email' | 'sms';
8
- export type ChannelStatus = 'active' | 'paused' | 'disabled';
8
+ export type ChannelStatus = 'active' | 'paused' | 'disabled' | 'pending';
9
9
 
10
10
  // ── Provider-specific references ──
11
11
 
@@ -16,3 +16,5 @@ export declare const HubWabaCollections: {
16
16
  readonly TEMPLATES: "waba-templates";
17
17
  readonly QUICK_REPLIES: "quick-replies";
18
18
  };
19
+ export declare const WABA_SETUP_PATH = "platform/evo-chat/waba-setup";
20
+ export declare const WABA_CHANNEL_INDEX_PATH = "platform/evo-chat/waba-channel-index";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HubWabaCollections = exports.INBOXES_COLLECTION = exports.TICKETS_COLLECTION = exports.THREAD_MESSAGES_COLLECTION = exports.THREADS_COLLECTION = exports.CHANNELS_COLLECTION = exports.CHATBEE_CHANNELS_COLLECTION = exports.HSM_MESSAGES_COLLECTION = exports.PROTOCOLS_COLLECTION = exports.CONTACTS_COLLECTION = exports.TICKET_CLOSE_TYPES_COLLECTION = exports.TICKET_CLOSES_COLLECTION = exports.TICKET_CLOSES = exports.CHAT_DICS_COLLECTION = exports.EVO_CHAT_APP = void 0;
3
+ exports.WABA_CHANNEL_INDEX_PATH = exports.WABA_SETUP_PATH = exports.HubWabaCollections = exports.INBOXES_COLLECTION = exports.TICKETS_COLLECTION = exports.THREAD_MESSAGES_COLLECTION = exports.THREADS_COLLECTION = exports.CHANNELS_COLLECTION = exports.CHATBEE_CHANNELS_COLLECTION = exports.HSM_MESSAGES_COLLECTION = exports.PROTOCOLS_COLLECTION = exports.CONTACTS_COLLECTION = exports.TICKET_CLOSE_TYPES_COLLECTION = exports.TICKET_CLOSES_COLLECTION = exports.TICKET_CLOSES = exports.CHAT_DICS_COLLECTION = exports.EVO_CHAT_APP = void 0;
4
4
  //EVO Chat Application Doc
5
5
  exports.EVO_CHAT_APP = "evo-chat";
6
6
  //dictionaries
@@ -27,3 +27,6 @@ exports.HubWabaCollections = {
27
27
  TEMPLATES: 'waba-templates',
28
28
  QUICK_REPLIES: 'quick-replies',
29
29
  };
30
+ // hub-waba cross-tenant platform paths
31
+ exports.WABA_SETUP_PATH = "platform/evo-chat/waba-setup";
32
+ exports.WABA_CHANNEL_INDEX_PATH = "platform/evo-chat/waba-channel-index";
@@ -31,3 +31,7 @@ export const HubWabaCollections = {
31
31
  TEMPLATES: 'waba-templates',
32
32
  QUICK_REPLIES: 'quick-replies',
33
33
  } as const;
34
+
35
+ // hub-waba cross-tenant platform paths
36
+ export const WABA_SETUP_PATH = "platform/evo-chat/waba-setup";
37
+ export const WABA_CHANNEL_INDEX_PATH = "platform/evo-chat/waba-channel-index";
@@ -8,6 +8,7 @@ export * from "./thread-message";
8
8
  export * from "./ticket";
9
9
  export * from "./inbox";
10
10
  export * from "./waba-template";
11
+ export * from "./waba-setup";
11
12
  export * from "./quick-reply";
12
13
  export * from "./search";
13
14
  export declare const EvoChatPermissions: {
@@ -25,6 +25,7 @@ __exportStar(require("./thread-message"), exports);
25
25
  __exportStar(require("./ticket"), exports);
26
26
  __exportStar(require("./inbox"), exports);
27
27
  __exportStar(require("./waba-template"), exports);
28
+ __exportStar(require("./waba-setup"), exports);
28
29
  __exportStar(require("./quick-reply"), exports);
29
30
  __exportStar(require("./search"), exports);
30
31
  // Permissões para o evo-chat
@@ -8,6 +8,7 @@ export * from "./thread-message";
8
8
  export * from "./ticket";
9
9
  export * from "./inbox";
10
10
  export * from "./waba-template";
11
+ export * from "./waba-setup";
11
12
  export * from "./quick-reply";
12
13
  export * from "./search";
13
14
 
@@ -0,0 +1,25 @@
1
+ export type WabaSetupStatus = 'pending' | 'connected' | 'orphan' | 'error';
2
+ export interface IWabaSetupSteps {
3
+ subscribed?: boolean;
4
+ registered?: boolean;
5
+ indexed?: boolean;
6
+ channel_updated?: boolean;
7
+ }
8
+ export interface IWabaSetup {
9
+ number: string;
10
+ tenant_id?: string;
11
+ channel_id?: string;
12
+ status: WabaSetupStatus;
13
+ pin_2fa?: string;
14
+ last_error?: string;
15
+ steps_completed?: IWabaSetupSteps;
16
+ created_at: Date | null;
17
+ updated_at?: Date | null;
18
+ expires_at?: Date | null;
19
+ connected_at?: Date | null;
20
+ received_at?: Date | null;
21
+ waba_id?: string;
22
+ phone_number_id?: string;
23
+ business_id?: string;
24
+ display_phone_number?: string;
25
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // Bridging doc cross-tenant entre número de telefone WhatsApp e canal/tenant.
3
+ // Path: platform/evo-chat/waba-setup/{number} (number = E.164 digits-only).
4
+ // Criado/atualizado pelo backend hub-waba durante o fluxo Zero Integration.
5
+ // Frontend NUNCA lê este doc diretamente.
6
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,39 @@
1
+ // Bridging doc cross-tenant entre número de telefone WhatsApp e canal/tenant.
2
+ // Path: platform/evo-chat/waba-setup/{number} (number = E.164 digits-only).
3
+ // Criado/atualizado pelo backend hub-waba durante o fluxo Zero Integration.
4
+ // Frontend NUNCA lê este doc diretamente.
5
+
6
+ export type WabaSetupStatus = 'pending' | 'connected' | 'orphan' | 'error';
7
+
8
+ export interface IWabaSetupSteps {
9
+ subscribed?: boolean;
10
+ registered?: boolean;
11
+ indexed?: boolean;
12
+ channel_updated?: boolean;
13
+ }
14
+
15
+ export interface IWabaSetup {
16
+ // Identificação
17
+ number: string; // E.164 digits-only (também é o document ID)
18
+ tenant_id?: string; // null em status='orphan'
19
+ channel_id?: string; // null em status='orphan'
20
+
21
+ // Estado
22
+ status: WabaSetupStatus;
23
+ pin_2fa?: string; // 6 dígitos — backlog: mover para Secret Manager
24
+ last_error?: string;
25
+ steps_completed?: IWabaSetupSteps;
26
+
27
+ // Timestamps
28
+ created_at: Date | null;
29
+ updated_at?: Date | null;
30
+ expires_at?: Date | null; // 30 dias após created_at — informativo (sem cron no MVP)
31
+ connected_at?: Date | null;
32
+ received_at?: Date | null; // para orphan: timestamp do webhook
33
+
34
+ // Dados Meta (preenchidos pelo pipeline ou no orphan)
35
+ waba_id?: string;
36
+ phone_number_id?: string;
37
+ business_id?: string;
38
+ display_phone_number?: string;
39
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.338",
3
+ "version": "1.3.339",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",