@in.pulse-crm/sdk 2.4.9 → 2.4.11

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.
package/dist/index.d.ts CHANGED
@@ -9,4 +9,4 @@ export { default as SocketClient } from "./socket.client";
9
9
  export { default as UsersClient } from "./users.client";
10
10
  export { default as WhatsappClient } from "./whatsapp.client";
11
11
  export { default as WalletsClient } from "./wallets.client";
12
- export { default as InternalChat } from "./internal.client";
12
+ export { default as InternalChatClient } from "./internal.client";
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.InternalChat = exports.WalletsClient = exports.WhatsappClient = exports.UsersClient = exports.SocketClient = exports.SocketServerClient = exports.ReportsClient = exports.InstancesClient = exports.FilesClient = exports.CustomersClient = exports.AuthClient = void 0;
20
+ exports.InternalChatClient = exports.WalletsClient = exports.WhatsappClient = exports.UsersClient = exports.SocketClient = exports.SocketServerClient = exports.ReportsClient = exports.InstancesClient = exports.FilesClient = exports.CustomersClient = exports.AuthClient = void 0;
21
21
  __exportStar(require("./types"), exports);
22
22
  var auth_client_1 = require("./auth.client");
23
23
  Object.defineProperty(exports, "AuthClient", { enumerable: true, get: function () { return __importDefault(auth_client_1).default; } });
@@ -40,4 +40,4 @@ Object.defineProperty(exports, "WhatsappClient", { enumerable: true, get: functi
40
40
  var wallets_client_1 = require("./wallets.client");
41
41
  Object.defineProperty(exports, "WalletsClient", { enumerable: true, get: function () { return __importDefault(wallets_client_1).default; } });
42
42
  var internal_client_1 = require("./internal.client");
43
- Object.defineProperty(exports, "InternalChat", { enumerable: true, get: function () { return __importDefault(internal_client_1).default; } });
43
+ Object.defineProperty(exports, "InternalChatClient", { enumerable: true, get: function () { return __importDefault(internal_client_1).default; } });
@@ -8,3 +8,4 @@ export * from "./socket-events.types";
8
8
  export * from "./socket-rooms.types";
9
9
  export * from "./user.types";
10
10
  export * from "./whatsapp.types";
11
+ export * from "./internal.types";
@@ -24,3 +24,4 @@ __exportStar(require("./socket-events.types"), exports);
24
24
  __exportStar(require("./socket-rooms.types"), exports);
25
25
  __exportStar(require("./user.types"), exports);
26
26
  __exportStar(require("./whatsapp.types"), exports);
27
+ __exportStar(require("./internal.types"), exports);
@@ -20,7 +20,7 @@ export interface InternalMessage {
20
20
  internalcontactId?: number | null;
21
21
  body: string;
22
22
  timestamp: string;
23
- status: WppMessageStatus;
23
+ status: InternalMessageStatus;
24
24
  fileId?: number | null;
25
25
  fileName?: string | null;
26
26
  fileType?: string | null;
@@ -53,7 +53,7 @@ export interface InternalChatTag {
53
53
  internalchatId: number;
54
54
  tagId: number;
55
55
  }
56
- export interface WppContactWithCustomer {
56
+ export interface InternalContactWithCustomer {
57
57
  id: number;
58
58
  name: string;
59
59
  phone: string;
@@ -64,7 +64,7 @@ export interface WppContactWithCustomer {
64
64
  customer: Customer | null;
65
65
  chatingWith: string | null;
66
66
  }
67
- export interface WppSector {
67
+ export interface Sector {
68
68
  id: number;
69
69
  name: string;
70
70
  instanceName: string;
@@ -72,13 +72,12 @@ export interface WppSector {
72
72
  startChats: boolean;
73
73
  receiveChats: boolean;
74
74
  }
75
- export type WppMessageStatus = "PENDING" | "SENT" | "RECEIVED" | "READ" | "DOWNLOADED" | "ERROR" | "REVOKED";
76
75
  export type InternalMessageStatus = "PENDING" | "SENT" | "RECEIVED" | "READ" | "DOWNLOADED" | "ERROR" | "REVOKED";
77
- export declare enum WppChatType {
76
+ export declare enum InternalChatType {
78
77
  RECEPTIVE = "RECEPTIVE",
79
78
  ACTIVE = "ACTIVE"
80
79
  }
81
- export declare enum WppChatPriority {
80
+ export declare enum IntenalChatPriority {
82
81
  LOW = "LOW",
83
82
  NORMAL = "NORMAL",
84
83
  HIGH = "HIGH",
@@ -96,7 +95,7 @@ export type InternalChatsAndMessages = {
96
95
  export type InternalChatWithDetailsAndMessages = InternalChatWithDetails & {
97
96
  messages: InternalMessage[];
98
97
  };
99
- export interface SendMessageData {
98
+ export interface InternalSendMessageData {
100
99
  sendAsChatOwner?: boolean;
101
100
  sendAsAudio?: boolean;
102
101
  sendAsDocument?: boolean;
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WppChatPriority = exports.WppChatType = void 0;
4
- var WppChatType;
5
- (function (WppChatType) {
6
- WppChatType["RECEPTIVE"] = "RECEPTIVE";
7
- WppChatType["ACTIVE"] = "ACTIVE";
8
- })(WppChatType || (exports.WppChatType = WppChatType = {}));
9
- var WppChatPriority;
10
- (function (WppChatPriority) {
11
- WppChatPriority["LOW"] = "LOW";
12
- WppChatPriority["NORMAL"] = "NORMAL";
13
- WppChatPriority["HIGH"] = "HIGH";
14
- WppChatPriority["VERY_HIGH"] = "VERY_HIGH";
15
- WppChatPriority["URGENCY"] = "URGENCY";
16
- })(WppChatPriority || (exports.WppChatPriority = WppChatPriority = {}));
3
+ exports.IntenalChatPriority = exports.InternalChatType = void 0;
4
+ var InternalChatType;
5
+ (function (InternalChatType) {
6
+ InternalChatType["RECEPTIVE"] = "RECEPTIVE";
7
+ InternalChatType["ACTIVE"] = "ACTIVE";
8
+ })(InternalChatType || (exports.InternalChatType = InternalChatType = {}));
9
+ var IntenalChatPriority;
10
+ (function (IntenalChatPriority) {
11
+ IntenalChatPriority["LOW"] = "LOW";
12
+ IntenalChatPriority["NORMAL"] = "NORMAL";
13
+ IntenalChatPriority["HIGH"] = "HIGH";
14
+ IntenalChatPriority["VERY_HIGH"] = "VERY_HIGH";
15
+ IntenalChatPriority["URGENCY"] = "URGENCY";
16
+ })(IntenalChatPriority || (exports.IntenalChatPriority = IntenalChatPriority = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in.pulse-crm/sdk",
3
- "version": "2.4.9",
3
+ "version": "2.4.11",
4
4
  "description": "SDKs for abstraction of api consumption of in.pulse-crm application",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/src/index.ts CHANGED
@@ -10,4 +10,4 @@ export { default as SocketClient } from "./socket.client";
10
10
  export { default as UsersClient } from "./users.client";
11
11
  export { default as WhatsappClient } from "./whatsapp.client";
12
12
  export { default as WalletsClient } from "./wallets.client";
13
- export { default as InternalChat } from "./internal.client";
13
+ export { default as InternalChatClient } from "./internal.client";
@@ -8,3 +8,4 @@ export * from "./socket-events.types";
8
8
  export * from "./socket-rooms.types";
9
9
  export * from "./user.types";
10
10
  export * from "./whatsapp.types";
11
+ export * from "./internal.types";
@@ -22,7 +22,7 @@ export interface InternalMessage {
22
22
  internalcontactId?: number | null;
23
23
  body: string;
24
24
  timestamp: string; // DateTime como ISO
25
- status: WppMessageStatus;
25
+ status: InternalMessageStatus;
26
26
  fileId?: number | null;
27
27
  fileName?: string | null;
28
28
  fileType?: string | null;
@@ -59,7 +59,7 @@ export interface InternalChatTag {
59
59
  tagId: number;
60
60
  }
61
61
 
62
- export interface WppContactWithCustomer {
62
+ export interface InternalContactWithCustomer {
63
63
  id: number;
64
64
  name: string;
65
65
  phone: string;
@@ -71,7 +71,7 @@ export interface WppContactWithCustomer {
71
71
  chatingWith: string | null;
72
72
  }
73
73
 
74
- export interface WppSector {
74
+ export interface Sector {
75
75
  id: number;
76
76
  name: string;
77
77
  instanceName: string;
@@ -80,16 +80,6 @@ export interface WppSector {
80
80
  receiveChats: boolean;
81
81
  }
82
82
 
83
- // Enums
84
- export type WppMessageStatus =
85
- | "PENDING"
86
- | "SENT"
87
- | "RECEIVED"
88
- | "READ"
89
- | "DOWNLOADED"
90
- | "ERROR"
91
- | "REVOKED";
92
-
93
83
  export type InternalMessageStatus =
94
84
  | "PENDING"
95
85
  | "SENT"
@@ -99,12 +89,12 @@ export type WppMessageStatus =
99
89
  | "ERROR"
100
90
  | "REVOKED";
101
91
 
102
- export enum WppChatType {
92
+ export enum InternalChatType {
103
93
  RECEPTIVE = "RECEPTIVE",
104
94
  ACTIVE = "ACTIVE",
105
95
  }
106
96
 
107
- export enum WppChatPriority {
97
+ export enum IntenalChatPriority {
108
98
  LOW = "LOW",
109
99
  NORMAL = "NORMAL",
110
100
  HIGH = "HIGH",
@@ -124,7 +114,7 @@ export type InternalChatWithDetailsAndMessages = InternalChatWithDetails & {
124
114
  messages: InternalMessage[];
125
115
  };
126
116
 
127
- export interface SendMessageData {
117
+ export interface InternalSendMessageData {
128
118
  sendAsChatOwner?: boolean;
129
119
  sendAsAudio?: boolean;
130
120
  sendAsDocument?: boolean;