@in.pulse-crm/sdk 2.7.4 → 2.7.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
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ApiClient from "./api-client";
|
|
2
2
|
import { ReadyMessage } from "./types/ready-messages.types";
|
|
3
3
|
export default class ReadyMessageClient extends ApiClient {
|
|
4
|
-
createReadyMessage(File?: File | null, TITULO?: string | null, TEXTO_MENSAGEM?: string | null): Promise<ReadyMessage>;
|
|
4
|
+
createReadyMessage(File?: File | null, TITULO?: string | null, TEXTO_MENSAGEM?: string | null, SETOR?: number | null): Promise<ReadyMessage>;
|
|
5
5
|
deleteReadyMessage(chatId: number): Promise<void>;
|
|
6
6
|
getReadyMessages(): Promise<ReadyMessage[]>;
|
|
7
7
|
updateReadyMessage(id: number, ReadyMessage: ReadyMessage, file: File): Promise<ReadyMessage>;
|
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const api_client_1 = __importDefault(require("./api-client"));
|
|
7
7
|
const form_data_1 = __importDefault(require("form-data"));
|
|
8
8
|
class ReadyMessageClient extends api_client_1.default {
|
|
9
|
-
async createReadyMessage(File = null, TITULO = null, TEXTO_MENSAGEM = null) {
|
|
9
|
+
async createReadyMessage(File = null, TITULO = null, TEXTO_MENSAGEM = null, SETOR = null) {
|
|
10
10
|
const form = new form_data_1.default();
|
|
11
11
|
if (File) {
|
|
12
12
|
form.append("file", File);
|
|
13
13
|
}
|
|
14
|
-
form.append("data", JSON.stringify({ TITULO, TEXTO_MENSAGEM }));
|
|
14
|
+
form.append("data", JSON.stringify({ TITULO, TEXTO_MENSAGEM, SETOR }));
|
|
15
15
|
const { data: res } = await this.httpClient.post(`/api/ready-messages`, form, {
|
|
16
16
|
headers: {
|
|
17
17
|
"Content-Type": "multipart/form-data",
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ export default class ReadyMessageClient extends ApiClient {
|
|
|
10
10
|
File: File | null = null,
|
|
11
11
|
TITULO: string| null = null,
|
|
12
12
|
TEXTO_MENSAGEM: string| null = null,
|
|
13
|
+
SETOR: number | null = null,
|
|
13
14
|
) {
|
|
14
15
|
const form = new FormData();
|
|
15
16
|
|
|
@@ -19,7 +20,7 @@ export default class ReadyMessageClient extends ApiClient {
|
|
|
19
20
|
|
|
20
21
|
form.append(
|
|
21
22
|
"data",
|
|
22
|
-
JSON.stringify({ TITULO, TEXTO_MENSAGEM }),
|
|
23
|
+
JSON.stringify({ TITULO, TEXTO_MENSAGEM,SETOR }),
|
|
23
24
|
);
|
|
24
25
|
|
|
25
26
|
const { data: res } = await this.httpClient.post<
|
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
|
}
|