evo360-types 1.3.17 → 1.3.18

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.
@@ -0,0 +1,24 @@
1
+ export * from "../fb_collections";
2
+ import { FirestoreDocumentReference, ITag } from "../../shared";
3
+ export interface IChatbeeChannel {
4
+ id: string;
5
+ external_id: string;
6
+ name: string;
7
+ }
8
+ export interface IChatbeeContact {
9
+ id: string;
10
+ external_id: string;
11
+ name: string;
12
+ is_group: string;
13
+ address: string;
14
+ type: string;
15
+ }
16
+ export interface IChatContact {
17
+ channel: IChatbeeChannel;
18
+ contact: IChatbeeContact;
19
+ lead_id?: string;
20
+ lead_ref?: FirestoreDocumentReference;
21
+ tags?: ITag[] | null;
22
+ userRef?: FirestoreDocumentReference;
23
+ [key: string]: unknown;
24
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("../fb_collections"), exports);
@@ -0,0 +1,28 @@
1
+ export * from "../fb_collections";
2
+
3
+ import { FirestoreDocumentReference, ITag } from "../../shared";
4
+
5
+ export interface IChatbeeChannel {
6
+ id: string;
7
+ external_id: string;
8
+ name: string;
9
+ }
10
+
11
+ export interface IChatbeeContact {
12
+ id: string;
13
+ external_id: string;
14
+ name: string;
15
+ is_group: string;
16
+ address: string;
17
+ type: string;
18
+ }
19
+
20
+ export interface IChatContact {
21
+ channel: IChatbeeChannel;
22
+ contact: IChatbeeContact;
23
+ lead_id?: string;
24
+ lead_ref?: FirestoreDocumentReference;
25
+ tags?: ITag[] | null;
26
+ userRef?: FirestoreDocumentReference;
27
+ [key: string]: unknown; // index signature
28
+ }
@@ -1,3 +1,4 @@
1
1
  export declare const EVO_CHAT_APP = "evo-chat";
2
2
  export declare const CONTACTS_COLLECTION = "contacts";
3
3
  export declare const PROTOCOLS_COLLECTION = "protocols";
4
+ export declare const HSM_MESSAGES_COLLECTION = "hsm-messages";
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PROTOCOLS_COLLECTION = exports.CONTACTS_COLLECTION = exports.EVO_CHAT_APP = void 0;
3
+ exports.HSM_MESSAGES_COLLECTION = exports.PROTOCOLS_COLLECTION = exports.CONTACTS_COLLECTION = exports.EVO_CHAT_APP = void 0;
4
4
  //EVO Chat Application Doc
5
5
  exports.EVO_CHAT_APP = "evo-chat";
6
6
  //contacts collection
7
7
  exports.CONTACTS_COLLECTION = "contacts";
8
8
  //protocols collection
9
9
  exports.PROTOCOLS_COLLECTION = "protocols";
10
+ //protocols collection
11
+ exports.HSM_MESSAGES_COLLECTION = "hsm-messages";
@@ -6,3 +6,6 @@ export const CONTACTS_COLLECTION = "contacts";
6
6
 
7
7
  //protocols collection
8
8
  export const PROTOCOLS_COLLECTION = "protocols";
9
+
10
+ //protocols collection
11
+ export const HSM_MESSAGES_COLLECTION = "hsm-messages";
@@ -1 +1,3 @@
1
1
  export * from "./fb_collections";
2
+ export * from "./contact";
3
+ export * from "./message";
@@ -15,3 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./fb_collections"), exports);
18
+ __exportStar(require("./contact"), exports);
19
+ __exportStar(require("./message"), exports);
@@ -1 +1,3 @@
1
1
  export * from "./fb_collections";
2
+ export * from "./contact";
3
+ export * from "./message";
@@ -0,0 +1,8 @@
1
+ export interface IHSMMessage {
2
+ contact_address: string;
3
+ department_id: string;
4
+ channel_id: string;
5
+ type: string;
6
+ payload: Record<string, any>;
7
+ [key: string]: unknown;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export interface IHSMMessage {
2
+ contact_address: string;
3
+ department_id: string;
4
+ channel_id: string;
5
+ type: string;
6
+ payload: Record<string, any>; // Permite qualquer objeto JSON válido
7
+ [key: string]: unknown; // index signature
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.17",
3
+ "version": "1.3.18",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",