@in.pulse-crm/sdk 2.8.3 → 2.8.5
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/.prettierrc +4 -4
- package/dist/files.client.d.ts +0 -2
- package/dist/internal.client.js +3 -0
- package/dist/types/files.types.d.ts +0 -2
- package/dist/types/internal.types.d.ts +6 -0
- package/dist/types/whatsapp.types.d.ts +4 -0
- package/package.json +1 -1
- package/src/internal.client.ts +3 -1
- package/src/types/internal.types.ts +6 -0
- package/src/types/whatsapp.types.ts +5 -1
- package/tsconfig.json +16 -16
package/.prettierrc
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"tabWidth": 4,
|
|
3
|
-
"useTabs": true
|
|
4
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"tabWidth": 4,
|
|
3
|
+
"useTabs": true
|
|
4
|
+
}
|
package/dist/files.client.d.ts
CHANGED
package/dist/internal.client.js
CHANGED
|
@@ -48,6 +48,9 @@ class InternalChatClient extends api_client_1.default {
|
|
|
48
48
|
data.sendAsDocument && formData.append("sendAsDocument", "true");
|
|
49
49
|
data.file && formData.append("file", data.file);
|
|
50
50
|
data.fileId && formData.append("fileId", data.fileId.toString());
|
|
51
|
+
if (data.mentions && data.mentions.length > 0) {
|
|
52
|
+
formData.append("mentions", JSON.stringify(data.mentions));
|
|
53
|
+
}
|
|
51
54
|
await this.ax.post(url, formData, {
|
|
52
55
|
headers: {
|
|
53
56
|
"Content-Type": "multipart/form-data",
|
|
@@ -59,6 +59,10 @@ export interface WppChat {
|
|
|
59
59
|
priority: WppChatPriority;
|
|
60
60
|
avatarUrl?: string;
|
|
61
61
|
isFinished: boolean;
|
|
62
|
+
startedAt: Date;
|
|
63
|
+
finishedAt?: Date | null;
|
|
64
|
+
finishedBy?: number | null;
|
|
65
|
+
isSchedule: boolean;
|
|
62
66
|
}
|
|
63
67
|
export interface WppSector {
|
|
64
68
|
id: number;
|
package/package.json
CHANGED
package/src/internal.client.ts
CHANGED
|
@@ -81,7 +81,9 @@ export default class InternalChatClient extends ApiClient {
|
|
|
81
81
|
data.sendAsDocument && formData.append("sendAsDocument", "true");
|
|
82
82
|
data.file && formData.append("file", data.file);
|
|
83
83
|
data.fileId && formData.append("fileId", data.fileId.toString());
|
|
84
|
-
|
|
84
|
+
if (data.mentions && data.mentions.length > 0) {
|
|
85
|
+
formData.append("mentions", JSON.stringify(data.mentions));
|
|
86
|
+
}
|
|
85
87
|
await this.ax.post<DataResponse<InternalMessage>>(
|
|
86
88
|
url,
|
|
87
89
|
formData,
|
|
@@ -64,6 +64,10 @@ export interface WppChat {
|
|
|
64
64
|
priority: WppChatPriority;
|
|
65
65
|
avatarUrl?: string;
|
|
66
66
|
isFinished: boolean;
|
|
67
|
+
startedAt: Date;
|
|
68
|
+
finishedAt?: Date | null;
|
|
69
|
+
finishedBy?: number | null;
|
|
70
|
+
isSchedule: boolean;
|
|
67
71
|
}
|
|
68
72
|
|
|
69
73
|
export interface WppSector {
|
|
@@ -158,4 +162,4 @@ export interface Schedule {
|
|
|
158
162
|
scheduledBy: number;
|
|
159
163
|
scheduledFor: number;
|
|
160
164
|
contact: WppContact;
|
|
161
|
-
}
|
|
165
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2022" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
|
4
|
-
"module": "commonjs" /* Specify what module code is generated. */,
|
|
5
|
-
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
|
|
6
|
-
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
|
7
|
-
"strict": true /* Enable all strict type-checking options. */,
|
|
8
|
-
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
|
|
9
|
-
"noUnusedLocals": false,
|
|
10
|
-
"outDir": "./dist", /* Redirect output structure to the directory. */
|
|
11
|
-
"declaration": true
|
|
12
|
-
},
|
|
13
|
-
"include": [
|
|
14
|
-
"src/index.ts",
|
|
15
|
-
"src/**/*.{ts}"
|
|
16
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es2022" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
|
4
|
+
"module": "commonjs" /* Specify what module code is generated. */,
|
|
5
|
+
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
|
|
6
|
+
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
|
7
|
+
"strict": true /* Enable all strict type-checking options. */,
|
|
8
|
+
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
|
|
9
|
+
"noUnusedLocals": false,
|
|
10
|
+
"outDir": "./dist", /* Redirect output structure to the directory. */
|
|
11
|
+
"declaration": true
|
|
12
|
+
},
|
|
13
|
+
"include": [
|
|
14
|
+
"src/index.ts",
|
|
15
|
+
"src/**/*.{ts}"
|
|
16
|
+
]
|
|
17
17
|
}
|