n8n-nodes-hopchat 1.0.1
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/LICENSE.md +19 -0
- package/README.md +47 -0
- package/dist/credentials/IXCSoftApi.credentials.d.ts +8 -0
- package/dist/credentials/IXCSoftApi.credentials.js +66 -0
- package/dist/credentials/IXCSoftApi.credentials.js.map +1 -0
- package/dist/credentials/MkAuthCredentialsApi.credentials.d.ts +8 -0
- package/dist/credentials/MkAuthCredentialsApi.credentials.js +80 -0
- package/dist/credentials/MkAuthCredentialsApi.credentials.js.map +1 -0
- package/dist/nodes/IXCSoft/IXCSoft.node.json +18 -0
- package/dist/nodes/IXCSoft/IXCSoftApi.node.d.ts +5 -0
- package/dist/nodes/IXCSoft/IXCSoftApi.node.js +50 -0
- package/dist/nodes/IXCSoft/IXCSoftApi.node.js.map +1 -0
- package/dist/nodes/IXCSoft/execute/client/buscarArquivoBoleto.d.ts +37 -0
- package/dist/nodes/IXCSoft/execute/client/buscarArquivoBoleto.js +71 -0
- package/dist/nodes/IXCSoft/execute/client/buscarArquivoBoleto.js.map +1 -0
- package/dist/nodes/IXCSoft/execute/client/buscarBoletos.d.ts +37 -0
- package/dist/nodes/IXCSoft/execute/client/buscarBoletos.js +87 -0
- package/dist/nodes/IXCSoft/execute/client/buscarBoletos.js.map +1 -0
- package/dist/nodes/IXCSoft/execute/client/buscarClientes.d.ts +37 -0
- package/dist/nodes/IXCSoft/execute/client/buscarClientes.js +74 -0
- package/dist/nodes/IXCSoft/execute/client/buscarClientes.js.map +1 -0
- package/dist/nodes/IXCSoft/execute/client/buscarPixBoleto.d.ts +37 -0
- package/dist/nodes/IXCSoft/execute/client/buscarPixBoleto.js +65 -0
- package/dist/nodes/IXCSoft/execute/client/buscarPixBoleto.js.map +1 -0
- package/dist/nodes/IXCSoft/execute/client/contratosPendentesFiltro.d.ts +5 -0
- package/dist/nodes/IXCSoft/execute/client/contratosPendentesFiltro.js +26 -0
- package/dist/nodes/IXCSoft/execute/client/contratosPendentesFiltro.js.map +1 -0
- package/dist/nodes/IXCSoft/execute/client/desbloqueioConfianca.d.ts +37 -0
- package/dist/nodes/IXCSoft/execute/client/desbloqueioConfianca.js +67 -0
- package/dist/nodes/IXCSoft/execute/client/desbloqueioConfianca.js.map +1 -0
- package/dist/nodes/IXCSoft/execute/client/listarContratos.d.ts +37 -0
- package/dist/nodes/IXCSoft/execute/client/listarContratos.js +83 -0
- package/dist/nodes/IXCSoft/execute/client/listarContratos.js.map +1 -0
- package/dist/nodes/IXCSoft/execute/index.d.ts +8 -0
- package/dist/nodes/IXCSoft/execute/index.js +22 -0
- package/dist/nodes/IXCSoft/execute/index.js.map +1 -0
- package/dist/nodes/IXCSoft/execute/ixcSoftRequest.d.ts +2 -0
- package/dist/nodes/IXCSoft/execute/ixcSoftRequest.js +23 -0
- package/dist/nodes/IXCSoft/execute/ixcSoftRequest.js.map +1 -0
- package/dist/nodes/IXCSoft/ixcsoft.svg +75 -0
- package/dist/nodes/IXCSoft/properties/cliente.fields.d.ts +2 -0
- package/dist/nodes/IXCSoft/properties/cliente.fields.js +59 -0
- package/dist/nodes/IXCSoft/properties/cliente.fields.js.map +1 -0
- package/dist/nodes/IXCSoft/properties/cliente.operations.d.ts +2 -0
- package/dist/nodes/IXCSoft/properties/cliente.operations.js +30 -0
- package/dist/nodes/IXCSoft/properties/cliente.operations.js.map +1 -0
- package/dist/nodes/IXCSoft/properties/financeiro.fields.d.ts +2 -0
- package/dist/nodes/IXCSoft/properties/financeiro.fields.js +46 -0
- package/dist/nodes/IXCSoft/properties/financeiro.fields.js.map +1 -0
- package/dist/nodes/IXCSoft/properties/financeiro.operations.d.ts +2 -0
- package/dist/nodes/IXCSoft/properties/financeiro.operations.js +42 -0
- package/dist/nodes/IXCSoft/properties/financeiro.operations.js.map +1 -0
- package/dist/nodes/IXCSoft/properties/index.d.ts +1 -0
- package/dist/nodes/IXCSoft/properties/index.js +16 -0
- package/dist/nodes/IXCSoft/properties/index.js.map +1 -0
- package/dist/nodes/IXCSoft/properties/resources.d.ts +2 -0
- package/dist/nodes/IXCSoft/properties/resources.js +21 -0
- package/dist/nodes/IXCSoft/properties/resources.js.map +1 -0
- package/dist/nodes/MkAuthApi/MKAuth.node.json +18 -0
- package/dist/nodes/MkAuthApi/MkauthApi.node.d.ts +5 -0
- package/dist/nodes/MkAuthApi/MkauthApi.node.js +50 -0
- package/dist/nodes/MkAuthApi/MkauthApi.node.js.map +1 -0
- package/dist/nodes/MkAuthApi/execute/client/abrirChamadoPorCnpj.d.ts +37 -0
- package/dist/nodes/MkAuthApi/execute/client/abrirChamadoPorCnpj.js +71 -0
- package/dist/nodes/MkAuthApi/execute/client/abrirChamadoPorCnpj.js.map +1 -0
- package/dist/nodes/MkAuthApi/execute/client/buscarClientes.d.ts +37 -0
- package/dist/nodes/MkAuthApi/execute/client/buscarClientes.js +63 -0
- package/dist/nodes/MkAuthApi/execute/client/buscarClientes.js.map +1 -0
- package/dist/nodes/MkAuthApi/execute/client/desbloqueioConfianca.d.ts +37 -0
- package/dist/nodes/MkAuthApi/execute/client/desbloqueioConfianca.js +69 -0
- package/dist/nodes/MkAuthApi/execute/client/desbloqueioConfianca.js.map +1 -0
- package/dist/nodes/MkAuthApi/execute/client/gerarUrlGnFortunus.d.ts +2 -0
- package/dist/nodes/MkAuthApi/execute/client/gerarUrlGnFortunus.js +24 -0
- package/dist/nodes/MkAuthApi/execute/client/gerarUrlGnFortunus.js.map +1 -0
- package/dist/nodes/MkAuthApi/execute/client/getTituloPorCpfCnpj.d.ts +37 -0
- package/dist/nodes/MkAuthApi/execute/client/getTituloPorCpfCnpj.js +102 -0
- package/dist/nodes/MkAuthApi/execute/client/getTituloPorCpfCnpj.js.map +1 -0
- package/dist/nodes/MkAuthApi/execute/client/getTituloVencido.d.ts +37 -0
- package/dist/nodes/MkAuthApi/execute/client/getTituloVencido.js +63 -0
- package/dist/nodes/MkAuthApi/execute/client/getTituloVencido.js.map +1 -0
- package/dist/nodes/MkAuthApi/execute/index.d.ts +8 -0
- package/dist/nodes/MkAuthApi/execute/index.js +22 -0
- package/dist/nodes/MkAuthApi/execute/index.js.map +1 -0
- package/dist/nodes/MkAuthApi/execute/mkauthnRequest.d.ts +2 -0
- package/dist/nodes/MkAuthApi/execute/mkauthnRequest.js +18 -0
- package/dist/nodes/MkAuthApi/execute/mkauthnRequest.js.map +1 -0
- package/dist/nodes/MkAuthApi/mkauth.png +0 -0
- package/dist/nodes/MkAuthApi/mkauth.svg +135 -0
- package/dist/nodes/MkAuthApi/properties/call.fields.d.ts +2 -0
- package/dist/nodes/MkAuthApi/properties/call.fields.js +34 -0
- package/dist/nodes/MkAuthApi/properties/call.fields.js.map +1 -0
- package/dist/nodes/MkAuthApi/properties/call.operations.d.ts +2 -0
- package/dist/nodes/MkAuthApi/properties/call.operations.js +24 -0
- package/dist/nodes/MkAuthApi/properties/call.operations.js.map +1 -0
- package/dist/nodes/MkAuthApi/properties/client.fields.d.ts +2 -0
- package/dist/nodes/MkAuthApi/properties/client.fields.js +48 -0
- package/dist/nodes/MkAuthApi/properties/client.fields.js.map +1 -0
- package/dist/nodes/MkAuthApi/properties/client.operations.d.ts +2 -0
- package/dist/nodes/MkAuthApi/properties/client.operations.js +36 -0
- package/dist/nodes/MkAuthApi/properties/client.operations.js.map +1 -0
- package/dist/nodes/MkAuthApi/properties/index.d.ts +1 -0
- package/dist/nodes/MkAuthApi/properties/index.js +20 -0
- package/dist/nodes/MkAuthApi/properties/index.js.map +1 -0
- package/dist/nodes/MkAuthApi/properties/payment.fields.d.ts +2 -0
- package/dist/nodes/MkAuthApi/properties/payment.fields.js +34 -0
- package/dist/nodes/MkAuthApi/properties/payment.fields.js.map +1 -0
- package/dist/nodes/MkAuthApi/properties/payment.operations.d.ts +2 -0
- package/dist/nodes/MkAuthApi/properties/payment.operations.js +24 -0
- package/dist/nodes/MkAuthApi/properties/payment.operations.js.map +1 -0
- package/dist/nodes/MkAuthApi/properties/resources.d.ts +2 -0
- package/dist/nodes/MkAuthApi/properties/resources.js +25 -0
- package/dist/nodes/MkAuthApi/properties/resources.js.map +1 -0
- package/dist/package.json +67 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/index.js +0 -0
- package/package.json +67 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright 2026 Clebson Santos
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
+
so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# n8n-nodes-hopchat
|
|
2
|
+
|
|
3
|
+
Node N8N para integração com clientes Hopchat
|
|
4
|
+
|
|
5
|
+
## Integrações disponíveis nesse projeto;
|
|
6
|
+
|
|
7
|
+
- Evolution API
|
|
8
|
+
- MKAuth
|
|
9
|
+
|
|
10
|
+
## Para rodar em DEV
|
|
11
|
+
|
|
12
|
+
Execute:
|
|
13
|
+
```
|
|
14
|
+
pnpm run build
|
|
15
|
+
```
|
|
16
|
+
depois referencie o diretório `dist` no seu compose.yml através dos volumes enviando para o dir `/home/node/.n8n/custom/`
|
|
17
|
+
|
|
18
|
+
```yml
|
|
19
|
+
services:
|
|
20
|
+
n8n:
|
|
21
|
+
image: n8nio/n8n:1.95.3
|
|
22
|
+
restart: always
|
|
23
|
+
volumes:
|
|
24
|
+
- ./backup:/home/backup
|
|
25
|
+
- ./dist/:/home/node/.n8n/custom/
|
|
26
|
+
# ... rest
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Para Deploy
|
|
30
|
+
|
|
31
|
+
Execute:
|
|
32
|
+
```
|
|
33
|
+
docker build -t customName-<version-n8n> .
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Agora basta usar em seu compose.yml de prod:
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
```yml
|
|
40
|
+
services:
|
|
41
|
+
n8n:
|
|
42
|
+
image: customName-<version-n8n>
|
|
43
|
+
restart: always
|
|
44
|
+
volumes:
|
|
45
|
+
- ./backup:/home/backup
|
|
46
|
+
# ... rest
|
|
47
|
+
```
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class IXCSoftApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
properties: INodeProperties[];
|
|
6
|
+
authenticate: IAuthenticateGeneric;
|
|
7
|
+
test: ICredentialTestRequest;
|
|
8
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IXCSoftApi = void 0;
|
|
4
|
+
class IXCSoftApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'ixcSoftApi';
|
|
7
|
+
this.displayName = 'IXCSoft API';
|
|
8
|
+
this.properties = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'URL',
|
|
11
|
+
name: 'api-url',
|
|
12
|
+
type: 'string',
|
|
13
|
+
default: '',
|
|
14
|
+
placeholder: 'https://exemplo.ixc.com',
|
|
15
|
+
description: 'URL completa da API principal (ex: https://api.exemplo.com)',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
displayName: 'Username',
|
|
19
|
+
name: 'username',
|
|
20
|
+
type: 'string',
|
|
21
|
+
default: '',
|
|
22
|
+
placeholder: 'Id do usuário da API',
|
|
23
|
+
description: 'Id do usuário da API',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
displayName: 'Token',
|
|
27
|
+
name: 'token',
|
|
28
|
+
type: 'string',
|
|
29
|
+
default: '',
|
|
30
|
+
typeOptions: {
|
|
31
|
+
password: true,
|
|
32
|
+
},
|
|
33
|
+
placeholder: 'Token de autenticação da API',
|
|
34
|
+
description: 'Token de autenticação da API',
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
this.authenticate = {
|
|
38
|
+
type: 'generic',
|
|
39
|
+
properties: {
|
|
40
|
+
headers: {
|
|
41
|
+
'Content-Type': 'application/json',
|
|
42
|
+
},
|
|
43
|
+
auth: {
|
|
44
|
+
username: '={{$credentials.username}}',
|
|
45
|
+
password: '={{$credentials.token}}',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
this.test = {
|
|
50
|
+
request: {
|
|
51
|
+
baseURL: '={{$credentials["api-url"]}}',
|
|
52
|
+
url: '/webservice/v1/configuracao_geral',
|
|
53
|
+
method: 'POST',
|
|
54
|
+
headers: {
|
|
55
|
+
'Content-Type': 'application/json',
|
|
56
|
+
},
|
|
57
|
+
auth: {
|
|
58
|
+
username: '={{$credentials.username}}',
|
|
59
|
+
password: '={{$credentials.token}}',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.IXCSoftApi = IXCSoftApi;
|
|
66
|
+
//# sourceMappingURL=IXCSoftApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IXCSoftApi.credentials.js","sourceRoot":"","sources":["../../credentials/IXCSoftApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,YAAY,CAAC;QACpB,gBAAW,GAAG,aAAa,CAAC;QAC5B,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,KAAK;gBAClB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,yBAAyB;gBACtC,WAAW,EAAE,6DAA6D;aAC1E;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sBAAsB;gBACnC,WAAW,EAAE,sBAAsB;aACnC;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,WAAW,EAAE,8BAA8B;gBAC3C,WAAW,EAAE,8BAA8B;aAC3C;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,cAAc,EAAE,kBAAkB;iBAClC;gBACD,IAAI,EAAE;oBACL,QAAQ,EAAE,4BAA4B;oBACtC,QAAQ,EAAE,yBAAyB;iBACnC;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,8BAA8B;gBACvC,GAAG,EAAE,mCAAmC;gBACxC,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE;oBACR,cAAc,EAAE,kBAAkB;iBAClC;gBACD,IAAI,EAAE;oBACL,QAAQ,EAAE,4BAA4B;oBACtC,QAAQ,EAAE,yBAAyB;iBACnC;aACD;SACD,CAAC;IACH,CAAC;CAAA;AA5DD,gCA4DC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class MkAuthCredentialsApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
properties: INodeProperties[];
|
|
6
|
+
authenticate: IAuthenticateGeneric;
|
|
7
|
+
test: ICredentialTestRequest;
|
|
8
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MkAuthCredentialsApi = void 0;
|
|
4
|
+
class MkAuthCredentialsApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'mkauthApi';
|
|
7
|
+
this.displayName = 'MKAuth API';
|
|
8
|
+
this.properties = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Endpoint API',
|
|
11
|
+
name: 'endpoint-api',
|
|
12
|
+
type: 'string',
|
|
13
|
+
default: '',
|
|
14
|
+
placeholder: 'https://exemplo.com',
|
|
15
|
+
description: 'URL completa da API principal (ex: https://api.exemplo.com)',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
displayName: 'Endpoint MK',
|
|
19
|
+
name: 'endpoint-mk',
|
|
20
|
+
type: 'string',
|
|
21
|
+
default: '',
|
|
22
|
+
placeholder: 'https://mk.exemplo.com',
|
|
23
|
+
description: 'URL base do MK para geração de boletos',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
displayName: 'Token',
|
|
27
|
+
name: 'token',
|
|
28
|
+
type: 'string',
|
|
29
|
+
default: '',
|
|
30
|
+
typeOptions: {
|
|
31
|
+
password: true,
|
|
32
|
+
},
|
|
33
|
+
description: 'Token de autenticação da API',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'PHP Boleto Script',
|
|
37
|
+
name: 'php_boleto',
|
|
38
|
+
type: 'string',
|
|
39
|
+
default: '19boleto',
|
|
40
|
+
description: 'Nome do script PHP para geração de boletos (sem extensão .php)',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
displayName: 'MK Layout',
|
|
44
|
+
name: 'mk_layout',
|
|
45
|
+
type: 'string',
|
|
46
|
+
default: 'normal',
|
|
47
|
+
description: 'Layout padrão para geração de boletos',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Usar Bolix',
|
|
51
|
+
name: 'bolix',
|
|
52
|
+
type: 'boolean',
|
|
53
|
+
default: false,
|
|
54
|
+
description: 'Habilita integração com o sistema Bolix',
|
|
55
|
+
},
|
|
56
|
+
];
|
|
57
|
+
this.authenticate = {
|
|
58
|
+
type: 'generic',
|
|
59
|
+
properties: {
|
|
60
|
+
headers: {
|
|
61
|
+
token: '={{$credentials.token}}',
|
|
62
|
+
'Content-Type': 'application/json',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
this.test = {
|
|
67
|
+
request: {
|
|
68
|
+
baseURL: '={{$credentials["endpoint-api"]}}',
|
|
69
|
+
url: '/',
|
|
70
|
+
method: 'GET',
|
|
71
|
+
headers: {
|
|
72
|
+
token: '={{$credentials.token}}',
|
|
73
|
+
'Content-Type': 'application/json',
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.MkAuthCredentialsApi = MkAuthCredentialsApi;
|
|
80
|
+
//# sourceMappingURL=MkAuthCredentialsApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MkAuthCredentialsApi.credentials.js","sourceRoot":"","sources":["../../credentials/MkAuthCredentialsApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,oBAAoB;IAAjC;QACC,SAAI,GAAG,WAAW,CAAC;QACnB,gBAAW,GAAG,YAAY,CAAC;QAC3B,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,qBAAqB;gBAClC,WAAW,EAAE,6DAA6D;aAC1E;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,wBAAwB;gBACrC,WAAW,EAAE,wCAAwC;aACrD;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,WAAW,EAAE,8BAA8B;aAC3C;YACD;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,UAAU;gBACnB,WAAW,EAAE,gEAAgE;aAC7E;YACD;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,QAAQ;gBACjB,WAAW,EAAE,uCAAuC;aACpD;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,yCAAyC;aACtD;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,KAAK,EAAE,yBAAyB;oBAChC,cAAc,EAAE,kBAAkB;iBAClC;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,mCAAmC;gBAC5C,GAAG,EAAE,GAAG;gBACR,MAAM,EAAE,KAAK;gBACb,OAAO,EAAE;oBACR,KAAK,EAAE,yBAAyB;oBAChC,cAAc,EAAE,kBAAkB;iBAClC;aACD;SACD,CAAC;IACH,CAAC;CAAA;AA1ED,oDA0EC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-hopchat.ixcSoftApi",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["Development", "Developer Tools"],
|
|
6
|
+
"resources": {
|
|
7
|
+
"credentialDocumentation": [
|
|
8
|
+
{
|
|
9
|
+
"url": "https://wikiapiprovedor.ixcsoft.com.br"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"primaryDocumentation": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://wikiapiprovedor.ixcsoft.com.br"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IXCSoftApi = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const execute_1 = require("./execute");
|
|
6
|
+
const properties_1 = require("./properties");
|
|
7
|
+
class IXCSoftApi {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.description = {
|
|
10
|
+
displayName: 'IXCSoft Api',
|
|
11
|
+
name: 'ixcSoftApi',
|
|
12
|
+
icon: 'file:ixcsoft.svg',
|
|
13
|
+
group: ['transform'],
|
|
14
|
+
version: 1,
|
|
15
|
+
subtitle: '={{$parameter["operation"]}}',
|
|
16
|
+
description: 'Interact with IXCSoft',
|
|
17
|
+
defaults: {
|
|
18
|
+
name: 'IXCSoftApi',
|
|
19
|
+
},
|
|
20
|
+
inputs: ['main'],
|
|
21
|
+
outputs: ['main'],
|
|
22
|
+
credentials: [
|
|
23
|
+
{
|
|
24
|
+
name: 'ixcSoftApi',
|
|
25
|
+
required: true,
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
requestDefaults: {
|
|
29
|
+
baseURL: 'https://wikiapiprovedor.ixcsoft.com.br',
|
|
30
|
+
url: '',
|
|
31
|
+
},
|
|
32
|
+
properties: properties_1.NodeProperties,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
async execute() {
|
|
36
|
+
const resource = this.getNodeParameter('resource', 0);
|
|
37
|
+
const operation = this.getNodeParameter('operation', 0);
|
|
38
|
+
const fn = execute_1.resourceOperationsFunctions[resource][operation];
|
|
39
|
+
if (!fn) {
|
|
40
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), {
|
|
41
|
+
message: 'Operação não suportada.',
|
|
42
|
+
description: `A função "${operation}" para o recurso "${resource}" não é suportada!`,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const responseData = await fn(this);
|
|
46
|
+
return [this.helpers.returnJsonArray(responseData)];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.IXCSoftApi = IXCSoftApi;
|
|
50
|
+
//# sourceMappingURL=IXCSoftApi.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IXCSoftApi.node.js","sourceRoot":"","sources":["../../../nodes/IXCSoft/IXCSoftApi.node.ts"],"names":[],"mappings":";;;AAAA,+CAMsB;AACtB,uCAAwD;AACxD,6CAA8C;AAE9C,MAAa,UAAU;IAAvB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8BAA8B;YACxC,WAAW,EAAE,uBAAuB;YACpC,QAAQ,EAAE;gBACT,IAAI,EAAE,YAAY;aAClB;YAED,MAAM,EAAE,CAAC,MAAM,CAAC;YAEhB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,YAAY;oBAClB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,eAAe,EAAE;gBAChB,OAAO,EAAE,wCAAwC;gBACjD,GAAG,EAAE,EAAE;aACP;YACD,UAAU,EAAE,2BAAc;SAC1B,CAAC;IAkBH,CAAC;IAhBA,KAAK,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;QAChE,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;QAElE,MAAM,EAAE,GAAG,qCAA2B,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;QAE5D,IAAI,CAAC,EAAE,EAAE,CAAC;YACT,MAAM,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE;gBACtC,OAAO,EAAE,yBAAyB;gBAClC,WAAW,EAAE,aAAa,SAAS,qBAAqB,QAAQ,oBAAoB;aACpF,CAAC,CAAC;QACJ,CAAC;QAED,MAAM,YAAY,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC;QACpC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC;IACrD,CAAC;CACD;AA7CD,gCA6CC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IExecuteFunctions } from 'n8n-workflow';
|
|
2
|
+
export declare function buscarArquivoBoleto(ef: IExecuteFunctions): Promise<{
|
|
3
|
+
json: {
|
|
4
|
+
success: boolean;
|
|
5
|
+
data: any;
|
|
6
|
+
details?: undefined;
|
|
7
|
+
timestamp?: undefined;
|
|
8
|
+
};
|
|
9
|
+
error?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
json: {
|
|
12
|
+
success: boolean;
|
|
13
|
+
details: any;
|
|
14
|
+
timestamp: string;
|
|
15
|
+
data?: undefined;
|
|
16
|
+
};
|
|
17
|
+
error?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
json: {
|
|
20
|
+
success: boolean;
|
|
21
|
+
error: {
|
|
22
|
+
message: string;
|
|
23
|
+
details: any;
|
|
24
|
+
code: any;
|
|
25
|
+
timestamp: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
error: {
|
|
29
|
+
success: boolean;
|
|
30
|
+
error: {
|
|
31
|
+
message: string;
|
|
32
|
+
details: any;
|
|
33
|
+
code: any;
|
|
34
|
+
timestamp: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buscarArquivoBoleto = buscarArquivoBoleto;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const ixcSoftRequest_1 = require("../ixcSoftRequest");
|
|
6
|
+
async function buscarArquivoBoleto(ef) {
|
|
7
|
+
try {
|
|
8
|
+
const BOLETO_ID = ef.getNodeParameter('BOLETO_ID', 0);
|
|
9
|
+
if (!BOLETO_ID) {
|
|
10
|
+
throw new Error('Invalid param');
|
|
11
|
+
}
|
|
12
|
+
const options = {
|
|
13
|
+
method: 'POST',
|
|
14
|
+
uri: `webservice/v1/get_boleto`,
|
|
15
|
+
headers: {
|
|
16
|
+
ixcsoft: "listar",
|
|
17
|
+
"Content-Type": "application/json",
|
|
18
|
+
},
|
|
19
|
+
body: {
|
|
20
|
+
boletos: `${BOLETO_ID}`,
|
|
21
|
+
juro: 'N',
|
|
22
|
+
multa: 'N',
|
|
23
|
+
atualiza_boleto: 'N',
|
|
24
|
+
tipo_boleto: 'arquivo',
|
|
25
|
+
base64: 'S'
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const response = await (0, ixcSoftRequest_1.ixcSoftRequest)(ef, options);
|
|
29
|
+
return {
|
|
30
|
+
json: {
|
|
31
|
+
success: true,
|
|
32
|
+
data: response,
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
if (error && error.error) {
|
|
38
|
+
return {
|
|
39
|
+
json: {
|
|
40
|
+
success: false,
|
|
41
|
+
details: error.error,
|
|
42
|
+
timestamp: new Date().toISOString(),
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
const errorData = {
|
|
47
|
+
success: false,
|
|
48
|
+
error: {
|
|
49
|
+
message: error.message.includes('Could not get parameter')
|
|
50
|
+
? 'Parâmetros inválidos ou ausentes'
|
|
51
|
+
: 'Erro ao buscar arquivo do boleto',
|
|
52
|
+
details: error.message.includes('Could not get parameter')
|
|
53
|
+
? 'Verifique se todos os campos obrigatórios foram preenchidos corretamente'
|
|
54
|
+
: error.message,
|
|
55
|
+
code: error.code || 'UNKNOWN_ERROR',
|
|
56
|
+
timestamp: new Date().toISOString(),
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
if (!ef.continueOnFail()) {
|
|
60
|
+
throw new n8n_workflow_1.NodeOperationError(ef.getNode(), error.message, {
|
|
61
|
+
message: errorData.error.message,
|
|
62
|
+
description: errorData.error.details,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
json: errorData,
|
|
67
|
+
error: errorData,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=buscarArquivoBoleto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buscarArquivoBoleto.js","sourceRoot":"","sources":["../../../../../nodes/IXCSoft/execute/client/buscarArquivoBoleto.ts"],"names":[],"mappings":";;AAGA,kDAoEC;AAvED,+CAAsF;AACtF,sDAAmD;AAE5C,KAAK,UAAU,mBAAmB,CAAC,EAAqB;IAC9D,IAAI,CAAC;QACJ,MAAM,SAAS,GAAG,EAAE,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QACtD,IAAI,CAAC,SAAS,EAAE,CAAC;YAChB,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;QAClC,CAAC;QAED,MAAM,OAAO,GAAoB;YAChC,MAAM,EAAE,MAAM;YACd,GAAG,EAAG,0BAA0B;YAChC,OAAO,EAAE;gBACR,OAAO,EAAE,QAAQ;gBACb,cAAc,EAAE,kBAAkB;aACtC;YACD,IAAI,EAAE;gBACG,OAAO,EAAE,GAAG,SAAS,EAAE;gBACvB,IAAI,EAAE,GAAG;gBACT,KAAK,EAAE,GAAG;gBACV,eAAe,EAAE,GAAG;gBACpB,WAAW,EAAE,SAAS;gBACtB,MAAM,EAAE,GAAG;aACd;SACN,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,IAAA,+BAAc,EAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QAEnD,OAAO;YACN,IAAI,EAAE;gBACL,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,QAAQ;aACd;SACD,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,IAAI,KAAK,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;YAC1B,OAAO;gBACN,IAAI,EAAE;oBACL,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,KAAK,CAAC,KAAK;oBACpB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;iBACnC;aACD,CAAC;QACH,CAAC;QAED,MAAM,SAAS,GAAG;YACjB,OAAO,EAAE,KAAK;YACd,KAAK,EAAE;gBACN,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;oBACzD,CAAC,CAAC,kCAAkC;oBACpC,CAAC,CAAC,kCAAkC;gBACrC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;oBACzD,CAAC,CAAC,0EAA0E;oBAC5E,CAAC,CAAC,KAAK,CAAC,OAAO;gBAChB,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,eAAe;gBACnC,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;aACnC;SACD,CAAC;QAEF,IAAI,CAAC,EAAE,CAAC,cAAc,EAAE,EAAE,CAAC;YAC1B,MAAM,IAAI,iCAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC,OAAO,EAAE;gBACzD,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO;gBAChC,WAAW,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO;aACpC,CAAC,CAAC;QACJ,CAAC;QAED,OAAO;YACN,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;SAChB,CAAC;IACH,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IExecuteFunctions } from 'n8n-workflow';
|
|
2
|
+
export declare function buscarBoletos(ef: IExecuteFunctions): Promise<{
|
|
3
|
+
json: {
|
|
4
|
+
success: boolean;
|
|
5
|
+
data: any;
|
|
6
|
+
details?: undefined;
|
|
7
|
+
timestamp?: undefined;
|
|
8
|
+
};
|
|
9
|
+
error?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
json: {
|
|
12
|
+
success: boolean;
|
|
13
|
+
details: any;
|
|
14
|
+
timestamp: string;
|
|
15
|
+
data?: undefined;
|
|
16
|
+
};
|
|
17
|
+
error?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
json: {
|
|
20
|
+
success: boolean;
|
|
21
|
+
error: {
|
|
22
|
+
message: string;
|
|
23
|
+
details: any;
|
|
24
|
+
code: any;
|
|
25
|
+
timestamp: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
error: {
|
|
29
|
+
success: boolean;
|
|
30
|
+
error: {
|
|
31
|
+
message: string;
|
|
32
|
+
details: any;
|
|
33
|
+
code: any;
|
|
34
|
+
timestamp: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buscarBoletos = buscarBoletos;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const ixcSoftRequest_1 = require("../ixcSoftRequest");
|
|
6
|
+
async function buscarBoletos(ef) {
|
|
7
|
+
try {
|
|
8
|
+
const CONTRACT_ID = ef.getNodeParameter('CONTRACT_ID', 0);
|
|
9
|
+
const SOMAR_RENEGOCIADOS = ef.getNodeParameter('SOMAR_RENEGOCIADOS', 0);
|
|
10
|
+
if (!CONTRACT_ID) {
|
|
11
|
+
throw new Error('Invalid param');
|
|
12
|
+
}
|
|
13
|
+
const options = {
|
|
14
|
+
method: 'POST',
|
|
15
|
+
uri: `webservice/v1/fn_areceber`,
|
|
16
|
+
headers: {
|
|
17
|
+
ixcsoft: "listar",
|
|
18
|
+
"Content-Type": "application/json",
|
|
19
|
+
},
|
|
20
|
+
body: {
|
|
21
|
+
qtype: `fn_areceber.id_contrato`,
|
|
22
|
+
oper: "=",
|
|
23
|
+
query: CONTRACT_ID,
|
|
24
|
+
sortname: 'fn_areceber.data_vencimento',
|
|
25
|
+
sortorder: 'asc',
|
|
26
|
+
grid_param: JSON.stringify([{ TB: 'fn_areceber.liberado', OP: '=', P: 'S' },
|
|
27
|
+
{ TB: 'fn_areceber.status', OP: '!=', P: 'C' },
|
|
28
|
+
{ TB: 'fn_areceber.status', OP: '!=', P: 'R' }])
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const response = await (0, ixcSoftRequest_1.ixcSoftRequest)(ef, options);
|
|
32
|
+
if (SOMAR_RENEGOCIADOS) {
|
|
33
|
+
options.body.qtype = `fn_areceber.id_contrato_avulso`;
|
|
34
|
+
const renegociados = await (0, ixcSoftRequest_1.ixcSoftRequest)(ef, options);
|
|
35
|
+
return {
|
|
36
|
+
json: {
|
|
37
|
+
success: true,
|
|
38
|
+
data: {
|
|
39
|
+
boletos: response,
|
|
40
|
+
renegociados
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
json: {
|
|
47
|
+
success: true,
|
|
48
|
+
data: response,
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
if (error && error.error) {
|
|
54
|
+
return {
|
|
55
|
+
json: {
|
|
56
|
+
success: false,
|
|
57
|
+
details: error.error,
|
|
58
|
+
timestamp: new Date().toISOString(),
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
const errorData = {
|
|
63
|
+
success: false,
|
|
64
|
+
error: {
|
|
65
|
+
message: error.message.includes('Could not get parameter')
|
|
66
|
+
? 'Parâmetros inválidos ou ausentes'
|
|
67
|
+
: 'Erro ao buscar boletos',
|
|
68
|
+
details: error.message.includes('Could not get parameter')
|
|
69
|
+
? 'Verifique se todos os campos obrigatórios foram preenchidos corretamente'
|
|
70
|
+
: error.message,
|
|
71
|
+
code: error.code || 'UNKNOWN_ERROR',
|
|
72
|
+
timestamp: new Date().toISOString(),
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
if (!ef.continueOnFail()) {
|
|
76
|
+
throw new n8n_workflow_1.NodeOperationError(ef.getNode(), error.message, {
|
|
77
|
+
message: errorData.error.message,
|
|
78
|
+
description: errorData.error.details,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
json: errorData,
|
|
83
|
+
error: errorData,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=buscarBoletos.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buscarBoletos.js","sourceRoot":"","sources":["../../../../../nodes/IXCSoft/execute/client/buscarBoletos.ts"],"names":[],"mappings":";;AAGA,sCAqFC;AAxFD,+CAAsF;AACtF,sDAAmD;AAE5C,KAAK,UAAU,aAAa,CAAC,EAAqB;IACxD,IAAI,CAAC;QACJ,MAAM,WAAW,GAAG,EAAE,CAAC,gBAAgB,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;QAC1D,MAAM,kBAAkB,GAAG,EAAE,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC;QACxE,IAAI,CAAC,WAAW,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;QAClC,CAAC;QAED,MAAM,OAAO,GAAoB;YAChC,MAAM,EAAE,MAAM;YACd,GAAG,EAAG,2BAA2B;YACjC,OAAO,EAAE;gBACR,OAAO,EAAE,QAAQ;gBACb,cAAc,EAAE,kBAAkB;aACtC;YACD,IAAI,EAAE;gBACG,KAAK,EAAE,yBAAyB;gBAChC,IAAI,EAAE,GAAG;gBACT,KAAK,EAAE,WAAW;gBAClB,QAAQ,EAAE,6BAA6B;gBACvC,SAAS,EAAE,KAAK;gBAChB,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,EAAE,sBAAsB,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE;oBAC3E,EAAE,EAAE,EAAE,oBAAoB,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE;oBAC9C,EAAE,EAAE,EAAE,oBAAoB,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;aACnD;SACN,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,IAAA,+BAAc,EAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QAEnD,IAAI,kBAAkB,EAAE,CAAC;YACxB,OAAO,CAAC,IAAI,CAAC,KAAK,GAAI,gCAAgC,CAAA;YACtD,MAAM,YAAY,GAAG,MAAM,IAAA,+BAAc,EAAC,EAAE,EAAE,OAAO,CAAC,CAAC;YACvD,OAAO;gBACN,IAAI,EAAE;oBACL,OAAO,EAAE,IAAI;oBACb,IAAI,EAAE;wBACL,OAAO,EAAE,QAAQ;wBACjB,YAAY;qBACZ;iBACD;aACD,CAAC;QACH,CAAC;QAED,OAAO;YACN,IAAI,EAAE;gBACL,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,QAAQ;aACd;SACD,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,IAAI,KAAK,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;YAC1B,OAAO;gBACN,IAAI,EAAE;oBACL,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,KAAK,CAAC,KAAK;oBACpB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;iBACnC;aACD,CAAC;QACH,CAAC;QAED,MAAM,SAAS,GAAG;YACjB,OAAO,EAAE,KAAK;YACd,KAAK,EAAE;gBACN,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;oBACzD,CAAC,CAAC,kCAAkC;oBACpC,CAAC,CAAC,wBAAwB;gBAC3B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;oBACzD,CAAC,CAAC,0EAA0E;oBAC5E,CAAC,CAAC,KAAK,CAAC,OAAO;gBAChB,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,eAAe;gBACnC,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;aACnC;SACD,CAAC;QAEF,IAAI,CAAC,EAAE,CAAC,cAAc,EAAE,EAAE,CAAC;YAC1B,MAAM,IAAI,iCAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC,OAAO,EAAE;gBACzD,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO;gBAChC,WAAW,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO;aACpC,CAAC,CAAC;QACJ,CAAC;QAED,OAAO;YACN,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;SAChB,CAAC;IACH,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IExecuteFunctions } from 'n8n-workflow';
|
|
2
|
+
export declare function buscarClientes(ef: IExecuteFunctions): Promise<{
|
|
3
|
+
json: {
|
|
4
|
+
success: boolean;
|
|
5
|
+
data: any;
|
|
6
|
+
details?: undefined;
|
|
7
|
+
timestamp?: undefined;
|
|
8
|
+
};
|
|
9
|
+
error?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
json: {
|
|
12
|
+
success: boolean;
|
|
13
|
+
details: any;
|
|
14
|
+
timestamp: string;
|
|
15
|
+
data?: undefined;
|
|
16
|
+
};
|
|
17
|
+
error?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
json: {
|
|
20
|
+
success: boolean;
|
|
21
|
+
error: {
|
|
22
|
+
message: string;
|
|
23
|
+
details: any;
|
|
24
|
+
code: any;
|
|
25
|
+
timestamp: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
error: {
|
|
29
|
+
success: boolean;
|
|
30
|
+
error: {
|
|
31
|
+
message: string;
|
|
32
|
+
details: any;
|
|
33
|
+
code: any;
|
|
34
|
+
timestamp: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}>;
|