n8n-nodes-nfe 0.1.0
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 +21 -0
- package/README.md +229 -0
- package/dist/credentials/NfeApi.credentials.d.ts +13 -0
- package/dist/credentials/NfeApi.credentials.js +37 -0
- package/dist/credentials/NfeApi.credentials.js.map +1 -0
- package/dist/credentials/nfe.svg +2 -0
- package/dist/nodes/Nfe/Nfe.node.d.ts +4 -0
- package/dist/nodes/Nfe/Nfe.node.js +51 -0
- package/dist/nodes/Nfe/Nfe.node.js.map +1 -0
- package/dist/nodes/Nfe/Nfe.node.json +18 -0
- package/dist/nodes/Nfe/nfe.dark.svg +2 -0
- package/dist/nodes/Nfe/nfe.svg +2 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/cancel.d.ts +2 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/cancel.js +21 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/cancel.js.map +1 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/downloadPdf.d.ts +2 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/downloadPdf.js +21 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/downloadPdf.js.map +1 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/downloadXml.d.ts +2 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/downloadXml.js +21 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/downloadXml.js.map +1 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/get.d.ts +2 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/get.js +21 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/get.js.map +1 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/getAll.d.ts +2 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/getAll.js +127 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/getAll.js.map +1 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/getByExternalId.d.ts +2 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/getByExternalId.js +21 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/getByExternalId.js.map +1 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/index.d.ts +5 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/index.js +170 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/index.js.map +1 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/issue.d.ts +2 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/issue.js +620 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/issue.js.map +1 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/sendEmail.d.ts +2 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/sendEmail.js +21 -0
- package/dist/nodes/Nfe/resources/serviceInvoice/sendEmail.js.map +1 -0
- package/dist/nodes/Nfe/utils/errorParser.d.ts +22 -0
- package/dist/nodes/Nfe/utils/errorParser.js +144 -0
- package/dist/nodes/Nfe/utils/errorParser.js.map +1 -0
- package/dist/package.json +56 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +56 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.serviceInvoiceGetDescription = void 0;
|
|
4
|
+
const showOnlyForServiceInvoiceGet = {
|
|
5
|
+
operation: ['get'],
|
|
6
|
+
resource: ['serviceInvoice'],
|
|
7
|
+
};
|
|
8
|
+
exports.serviceInvoiceGetDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Invoice ID',
|
|
11
|
+
name: 'invoiceId',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
default: '',
|
|
15
|
+
displayOptions: {
|
|
16
|
+
show: showOnlyForServiceInvoiceGet,
|
|
17
|
+
},
|
|
18
|
+
description: 'The ID of the service invoice to retrieve',
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/Nfe/resources/serviceInvoice/get.ts"],"names":[],"mappings":";;;AAEA,MAAM,4BAA4B,GAAG;IACpC,SAAS,EAAE,CAAC,KAAK,CAAC;IAClB,QAAQ,EAAE,CAAC,gBAAgB,CAAC;CAC5B,CAAC;AAEW,QAAA,4BAA4B,GAAsB;IAC9D;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,4BAA4B;SAClC;QACD,WAAW,EAAE,2CAA2C;KACxD;CACD,CAAC"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.serviceInvoiceGetAllDescription = void 0;
|
|
4
|
+
const showOnlyForServiceInvoiceGetAll = {
|
|
5
|
+
operation: ['getAll'],
|
|
6
|
+
resource: ['serviceInvoice'],
|
|
7
|
+
};
|
|
8
|
+
exports.serviceInvoiceGetAllDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Return All',
|
|
11
|
+
name: 'returnAll',
|
|
12
|
+
type: 'boolean',
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: showOnlyForServiceInvoiceGetAll,
|
|
15
|
+
},
|
|
16
|
+
default: false,
|
|
17
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Limit',
|
|
21
|
+
name: 'limit',
|
|
22
|
+
type: 'number',
|
|
23
|
+
displayOptions: {
|
|
24
|
+
show: {
|
|
25
|
+
...showOnlyForServiceInvoiceGetAll,
|
|
26
|
+
returnAll: [false],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
typeOptions: {
|
|
30
|
+
minValue: 1,
|
|
31
|
+
maxValue: 100,
|
|
32
|
+
},
|
|
33
|
+
default: 50,
|
|
34
|
+
description: 'Max number of results to return',
|
|
35
|
+
routing: {
|
|
36
|
+
send: {
|
|
37
|
+
type: 'query',
|
|
38
|
+
property: 'pageCount',
|
|
39
|
+
},
|
|
40
|
+
output: {
|
|
41
|
+
maxResults: '={{$value}}',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Filters',
|
|
47
|
+
name: 'filters',
|
|
48
|
+
type: 'collection',
|
|
49
|
+
placeholder: 'Add Filter',
|
|
50
|
+
default: {},
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: showOnlyForServiceInvoiceGetAll,
|
|
53
|
+
},
|
|
54
|
+
options: [
|
|
55
|
+
{
|
|
56
|
+
displayName: 'Created Date End',
|
|
57
|
+
name: 'createdEnd',
|
|
58
|
+
type: 'dateTime',
|
|
59
|
+
default: '',
|
|
60
|
+
description: 'Filter invoices created until this date',
|
|
61
|
+
routing: {
|
|
62
|
+
send: {
|
|
63
|
+
type: 'query',
|
|
64
|
+
property: 'createdEnd',
|
|
65
|
+
value: '={{ $value ? new Date($value).toISOString().split("T")[0] : undefined }}',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
displayName: 'Created Date Start',
|
|
71
|
+
name: 'createdBegin',
|
|
72
|
+
type: 'dateTime',
|
|
73
|
+
default: '',
|
|
74
|
+
description: 'Filter invoices created from this date',
|
|
75
|
+
routing: {
|
|
76
|
+
send: {
|
|
77
|
+
type: 'query',
|
|
78
|
+
property: 'createdBegin',
|
|
79
|
+
value: '={{ $value ? new Date($value).toISOString().split("T")[0] : undefined }}',
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
displayName: 'Include Totals',
|
|
85
|
+
name: 'hasTotals',
|
|
86
|
+
type: 'boolean',
|
|
87
|
+
default: false,
|
|
88
|
+
description: 'Whether to include totals in the response',
|
|
89
|
+
routing: {
|
|
90
|
+
send: {
|
|
91
|
+
type: 'query',
|
|
92
|
+
property: 'hasTotals',
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
displayName: 'Issued Date End',
|
|
98
|
+
name: 'issuedEnd',
|
|
99
|
+
type: 'dateTime',
|
|
100
|
+
default: '',
|
|
101
|
+
description: 'Filter invoices issued until this date (competência)',
|
|
102
|
+
routing: {
|
|
103
|
+
send: {
|
|
104
|
+
type: 'query',
|
|
105
|
+
property: 'issuedEnd',
|
|
106
|
+
value: '={{ $value ? new Date($value).toISOString().split("T")[0] : undefined }}',
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
displayName: 'Issued Date Start',
|
|
112
|
+
name: 'issuedBegin',
|
|
113
|
+
type: 'dateTime',
|
|
114
|
+
default: '',
|
|
115
|
+
description: 'Filter invoices issued from this date (competência)',
|
|
116
|
+
routing: {
|
|
117
|
+
send: {
|
|
118
|
+
type: 'query',
|
|
119
|
+
property: 'issuedBegin',
|
|
120
|
+
value: '={{ $value ? new Date($value).toISOString().split("T")[0] : undefined }}',
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
];
|
|
127
|
+
//# sourceMappingURL=getAll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/Nfe/resources/serviceInvoice/getAll.ts"],"names":[],"mappings":";;;AAEA,MAAM,+BAA+B,GAAG;IACvC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,gBAAgB,CAAC;CAC5B,CAAC;AAEW,QAAA,+BAA+B,GAAsB;IAEjE;QACC,WAAW,EAAE,YAAY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I,EAAE,OAAO;wBACb,QAAQ,EAAE,cAAc;wBACxB,KAAK,EAAE,0EAA0E;qBACjF;iBACD;aACD;YACD;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,2CAA2C;gBACxD,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,WAAW;qBACrB;iBACD;aACD;YACD;gBACC,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sDAAsD;gBACnE,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,WAAW;wBACrB,KAAK,EAAE,0EAA0E;qBACjF;iBACD;aACD;YACD;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,qDAAqD;gBAClE,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,aAAa;wBACvB,KAAK,EAAE,0EAA0E;qBACjF;iBACD;aACD;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.serviceInvoiceGetByExternalIdDescription = void 0;
|
|
4
|
+
const showOnlyForServiceInvoiceGetByExternalId = {
|
|
5
|
+
operation: ['getByExternalId'],
|
|
6
|
+
resource: ['serviceInvoice'],
|
|
7
|
+
};
|
|
8
|
+
exports.serviceInvoiceGetByExternalIdDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'External ID',
|
|
11
|
+
name: 'externalId',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
default: '',
|
|
15
|
+
displayOptions: {
|
|
16
|
+
show: showOnlyForServiceInvoiceGetByExternalId,
|
|
17
|
+
},
|
|
18
|
+
description: 'Your custom identifier for the invoice',
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
//# sourceMappingURL=getByExternalId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getByExternalId.js","sourceRoot":"","sources":["../../../../../nodes/Nfe/resources/serviceInvoice/getByExternalId.ts"],"names":[],"mappings":";;;AAEA,MAAM,wCAAwC,GAAG;IAChD,SAAS,EAAE,CAAC,iBAAiB,CAAC;IAC9B,QAAQ,EAAE,CAAC,gBAAgB,CAAC;CAC5B,CAAC;AAEW,QAAA,wCAAwC,GAAsB;IAC1E;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,wCAAwC;SAC9C;QACD,WAAW,EAAE,wCAAwC;KACrD;CACD,CAAC"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.serviceInvoiceDescription = exports.showOnlyForServiceInvoice = void 0;
|
|
4
|
+
const getAll_1 = require("./getAll");
|
|
5
|
+
const get_1 = require("./get");
|
|
6
|
+
const issue_1 = require("./issue");
|
|
7
|
+
const cancel_1 = require("./cancel");
|
|
8
|
+
const getByExternalId_1 = require("./getByExternalId");
|
|
9
|
+
const downloadPdf_1 = require("./downloadPdf");
|
|
10
|
+
const downloadXml_1 = require("./downloadXml");
|
|
11
|
+
const sendEmail_1 = require("./sendEmail");
|
|
12
|
+
const errorParser_1 = require("../../utils/errorParser");
|
|
13
|
+
exports.showOnlyForServiceInvoice = {
|
|
14
|
+
resource: ['serviceInvoice'],
|
|
15
|
+
};
|
|
16
|
+
exports.serviceInvoiceDescription = [
|
|
17
|
+
{
|
|
18
|
+
displayName: 'Company ID',
|
|
19
|
+
name: 'companyId',
|
|
20
|
+
type: 'string',
|
|
21
|
+
required: true,
|
|
22
|
+
default: '',
|
|
23
|
+
placeholder: 'e.g., 507f1f77bcf86cd799439011',
|
|
24
|
+
description: 'The ID of the company',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: exports.showOnlyForServiceInvoice,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
displayName: 'Operation',
|
|
31
|
+
name: 'operation',
|
|
32
|
+
type: 'options',
|
|
33
|
+
noDataExpression: true,
|
|
34
|
+
displayOptions: {
|
|
35
|
+
show: exports.showOnlyForServiceInvoice,
|
|
36
|
+
},
|
|
37
|
+
options: [
|
|
38
|
+
{
|
|
39
|
+
name: 'Cancel',
|
|
40
|
+
value: 'cancel',
|
|
41
|
+
action: 'Cancel a service invoice',
|
|
42
|
+
description: 'Cancel an issued service invoice',
|
|
43
|
+
routing: {
|
|
44
|
+
request: {
|
|
45
|
+
method: 'DELETE',
|
|
46
|
+
url: '=/v1/companies/{{$parameter.companyId}}/serviceinvoices/{{$parameter.invoiceId}}',
|
|
47
|
+
},
|
|
48
|
+
output: {
|
|
49
|
+
postReceive: [errorParser_1.handleNfeApiError],
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'Download PDF',
|
|
55
|
+
value: 'downloadPdf',
|
|
56
|
+
action: 'Download invoice PDF',
|
|
57
|
+
description: 'Download the PDF of a service invoice',
|
|
58
|
+
routing: {
|
|
59
|
+
request: {
|
|
60
|
+
method: 'GET',
|
|
61
|
+
url: '=/v1/companies/{{$parameter.companyId}}/serviceinvoices/{{$parameter.invoiceId}}/pdf',
|
|
62
|
+
},
|
|
63
|
+
output: {
|
|
64
|
+
postReceive: [errorParser_1.handleNfeApiError],
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'Download XML',
|
|
70
|
+
value: 'downloadXml',
|
|
71
|
+
action: 'Download invoice XML',
|
|
72
|
+
description: 'Download the XML of a service invoice',
|
|
73
|
+
routing: {
|
|
74
|
+
request: {
|
|
75
|
+
method: 'GET',
|
|
76
|
+
url: '=/v1/companies/{{$parameter.companyId}}/serviceinvoices/{{$parameter.invoiceId}}/xml',
|
|
77
|
+
},
|
|
78
|
+
output: {
|
|
79
|
+
postReceive: [errorParser_1.handleNfeApiError],
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'Get',
|
|
85
|
+
value: 'get',
|
|
86
|
+
action: 'Get a service invoice',
|
|
87
|
+
description: 'Get details of a specific service invoice',
|
|
88
|
+
routing: {
|
|
89
|
+
request: {
|
|
90
|
+
method: 'GET',
|
|
91
|
+
url: '=/v1/companies/{{$parameter.companyId}}/serviceinvoices/{{$parameter.invoiceId}}',
|
|
92
|
+
},
|
|
93
|
+
output: {
|
|
94
|
+
postReceive: [errorParser_1.handleNfeApiError],
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'Get by External ID',
|
|
100
|
+
value: 'getByExternalId',
|
|
101
|
+
action: 'Get invoice by external ID',
|
|
102
|
+
description: 'Get a service invoice by your custom external ID',
|
|
103
|
+
routing: {
|
|
104
|
+
request: {
|
|
105
|
+
method: 'GET',
|
|
106
|
+
url: '=/v1/companies/{{$parameter.companyId}}/serviceinvoices/externalId/{{$parameter.externalId}}',
|
|
107
|
+
},
|
|
108
|
+
output: {
|
|
109
|
+
postReceive: [errorParser_1.handleNfeApiError],
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'Get Many',
|
|
115
|
+
value: 'getAll',
|
|
116
|
+
action: 'List service invoices',
|
|
117
|
+
description: 'List many service invoices from a company',
|
|
118
|
+
routing: {
|
|
119
|
+
request: {
|
|
120
|
+
method: 'GET',
|
|
121
|
+
url: '=/v1/companies/{{$parameter.companyId}}/serviceinvoices',
|
|
122
|
+
},
|
|
123
|
+
output: {
|
|
124
|
+
postReceive: [errorParser_1.handleNfeApiError],
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'Issue',
|
|
130
|
+
value: 'issue',
|
|
131
|
+
action: 'Issue a service invoice',
|
|
132
|
+
description: 'Issue a new service invoice (NFS-e)',
|
|
133
|
+
routing: {
|
|
134
|
+
request: {
|
|
135
|
+
method: 'POST',
|
|
136
|
+
url: '=/v1/companies/{{$parameter.companyId}}/serviceinvoices',
|
|
137
|
+
},
|
|
138
|
+
output: {
|
|
139
|
+
postReceive: [errorParser_1.handleNfeApiError],
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'Send Email',
|
|
145
|
+
value: 'sendEmail',
|
|
146
|
+
action: 'Send invoice by email',
|
|
147
|
+
description: 'Send the invoice to the borrower by email',
|
|
148
|
+
routing: {
|
|
149
|
+
request: {
|
|
150
|
+
method: 'PUT',
|
|
151
|
+
url: '=/v1/companies/{{$parameter.companyId}}/serviceinvoices/{{$parameter.invoiceId}}/sendemail',
|
|
152
|
+
},
|
|
153
|
+
output: {
|
|
154
|
+
postReceive: [errorParser_1.handleNfeApiError],
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
default: 'getAll',
|
|
160
|
+
},
|
|
161
|
+
...getAll_1.serviceInvoiceGetAllDescription,
|
|
162
|
+
...get_1.serviceInvoiceGetDescription,
|
|
163
|
+
...issue_1.serviceInvoiceIssueDescription,
|
|
164
|
+
...cancel_1.serviceInvoiceCancelDescription,
|
|
165
|
+
...getByExternalId_1.serviceInvoiceGetByExternalIdDescription,
|
|
166
|
+
...downloadPdf_1.serviceInvoiceDownloadPdfDescription,
|
|
167
|
+
...downloadXml_1.serviceInvoiceDownloadXmlDescription,
|
|
168
|
+
...sendEmail_1.serviceInvoiceSendEmailDescription,
|
|
169
|
+
];
|
|
170
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Nfe/resources/serviceInvoice/index.ts"],"names":[],"mappings":";;;AACA,qCAA2D;AAC3D,+BAAqD;AACrD,mCAAyD;AACzD,qCAA2D;AAC3D,uDAA6E;AAC7E,+CAAqE;AACrE,+CAAqE;AACrE,2CAAiE;AACjE,yDAA4D;AAK/C,QAAA,yBAAyB,GAAG;IACxC,QAAQ,EAAE,CAAC,gBAAgB,CAAC;CAC5B,CAAC;AAKW,QAAA,yBAAyB,GAAsB;IAE3D;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gCAAgC;QAC7C,WAAW,EAAE,uBAAuB;QACpC,cAAc,EAAE;YACf,IAAI,EAAE,iCAAyB;SAC/B;KACD;IAED;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,iCAAyB;SAC/B;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,0BAA0B;gBAClC,WAAW,EAAE,kCAAkC;gBAC/C,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,QAAQ;wBAChB,GAAG,EAAE,kFAAkF;qBACvF;oBACD,MAAM,EAAE;wBACP,WAAW,EAAE,CAAC,+BAAiB,CAAC;qBAChC;iB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