@in.pulse-crm/sdk 2.4.9 → 2.4.10
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/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -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:
|
|
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
|
|
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
|
|
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
|
|
76
|
+
export declare enum InternalChatType {
|
|
78
77
|
RECEPTIVE = "RECEPTIVE",
|
|
79
78
|
ACTIVE = "ACTIVE"
|
|
80
79
|
}
|
|
81
|
-
export declare enum
|
|
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
|
|
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.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
})(
|
|
9
|
-
var
|
|
10
|
-
(function (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
})(
|
|
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
package/src/types/index.ts
CHANGED
|
@@ -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:
|
|
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
|
|
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
|
|
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
|
|
92
|
+
export enum InternalChatType {
|
|
103
93
|
RECEPTIVE = "RECEPTIVE",
|
|
104
94
|
ACTIVE = "ACTIVE",
|
|
105
95
|
}
|
|
106
96
|
|
|
107
|
-
export enum
|
|
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
|
|
117
|
+
export interface InternalSendMessageData {
|
|
128
118
|
sendAsChatOwner?: boolean;
|
|
129
119
|
sendAsAudio?: boolean;
|
|
130
120
|
sendAsDocument?: boolean;
|