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,620 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.serviceInvoiceIssueDescription = void 0;
|
|
4
|
+
const showOnlyForServiceInvoiceIssue = {
|
|
5
|
+
operation: ['issue'],
|
|
6
|
+
resource: ['serviceInvoice'],
|
|
7
|
+
};
|
|
8
|
+
exports.serviceInvoiceIssueDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'City Service Code',
|
|
11
|
+
name: 'cityServiceCode',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
default: '',
|
|
15
|
+
displayOptions: {
|
|
16
|
+
show: showOnlyForServiceInvoiceIssue,
|
|
17
|
+
},
|
|
18
|
+
description: 'The service code registered in the municipality',
|
|
19
|
+
routing: {
|
|
20
|
+
send: {
|
|
21
|
+
type: 'body',
|
|
22
|
+
property: 'cityServiceCode',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
displayName: 'Description',
|
|
28
|
+
name: 'description',
|
|
29
|
+
type: 'string',
|
|
30
|
+
typeOptions: {
|
|
31
|
+
rows: 4,
|
|
32
|
+
},
|
|
33
|
+
required: true,
|
|
34
|
+
default: '',
|
|
35
|
+
displayOptions: {
|
|
36
|
+
show: showOnlyForServiceInvoiceIssue,
|
|
37
|
+
},
|
|
38
|
+
description: 'Description of the services provided',
|
|
39
|
+
routing: {
|
|
40
|
+
send: {
|
|
41
|
+
type: 'body',
|
|
42
|
+
property: 'description',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
displayName: 'Services Amount',
|
|
48
|
+
name: 'servicesAmount',
|
|
49
|
+
type: 'number',
|
|
50
|
+
typeOptions: {
|
|
51
|
+
numberPrecision: 2,
|
|
52
|
+
minValue: 0.01,
|
|
53
|
+
},
|
|
54
|
+
required: true,
|
|
55
|
+
default: 0,
|
|
56
|
+
displayOptions: {
|
|
57
|
+
show: showOnlyForServiceInvoiceIssue,
|
|
58
|
+
},
|
|
59
|
+
description: 'Total value of the services',
|
|
60
|
+
routing: {
|
|
61
|
+
send: {
|
|
62
|
+
type: 'body',
|
|
63
|
+
property: 'servicesAmount',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
displayName: 'Borrower Source',
|
|
69
|
+
name: 'borrowerSource',
|
|
70
|
+
type: 'options',
|
|
71
|
+
default: 'none',
|
|
72
|
+
displayOptions: {
|
|
73
|
+
show: showOnlyForServiceInvoiceIssue,
|
|
74
|
+
},
|
|
75
|
+
options: [
|
|
76
|
+
{
|
|
77
|
+
name: 'None (No Borrower)',
|
|
78
|
+
value: 'none',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'Define Inline',
|
|
82
|
+
value: 'inline',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'Enter as JSON',
|
|
86
|
+
value: 'json',
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
description: 'How to specify the borrower (tomador) information',
|
|
90
|
+
routing: {
|
|
91
|
+
send: {
|
|
92
|
+
preSend: [
|
|
93
|
+
async function (requestOptions) {
|
|
94
|
+
var _a, _b, _c, _d, _e;
|
|
95
|
+
const borrowerSource = this.getNodeParameter('borrowerSource');
|
|
96
|
+
const body = requestOptions.body;
|
|
97
|
+
if (borrowerSource === 'none') {
|
|
98
|
+
body.borrower = {};
|
|
99
|
+
}
|
|
100
|
+
else if (borrowerSource === 'inline') {
|
|
101
|
+
const borrowerData = this.getNodeParameter('borrowerData', {});
|
|
102
|
+
const borrower = {};
|
|
103
|
+
if ((_a = borrowerData.borrower) === null || _a === void 0 ? void 0 : _a.type)
|
|
104
|
+
borrower.type = borrowerData.borrower.type;
|
|
105
|
+
if ((_b = borrowerData.borrower) === null || _b === void 0 ? void 0 : _b.name)
|
|
106
|
+
borrower.name = borrowerData.borrower.name;
|
|
107
|
+
if ((_c = borrowerData.borrower) === null || _c === void 0 ? void 0 : _c.federalTaxNumber)
|
|
108
|
+
borrower.federalTaxNumber = borrowerData.borrower.federalTaxNumber;
|
|
109
|
+
if ((_d = borrowerData.borrower) === null || _d === void 0 ? void 0 : _d.email)
|
|
110
|
+
borrower.email = borrowerData.borrower.email;
|
|
111
|
+
if ((_e = borrowerData.borrower) === null || _e === void 0 ? void 0 : _e.phoneNumber)
|
|
112
|
+
borrower.phoneNumber = borrowerData.borrower.phoneNumber;
|
|
113
|
+
if (borrowerData.address) {
|
|
114
|
+
const address = {};
|
|
115
|
+
if (borrowerData.address.country)
|
|
116
|
+
address.country = borrowerData.address.country;
|
|
117
|
+
if (borrowerData.address.postalCode)
|
|
118
|
+
address.postalCode = borrowerData.address.postalCode;
|
|
119
|
+
if (borrowerData.address.street)
|
|
120
|
+
address.street = borrowerData.address.street;
|
|
121
|
+
if (borrowerData.address.number)
|
|
122
|
+
address.number = borrowerData.address.number;
|
|
123
|
+
if (borrowerData.address.additionalInformation)
|
|
124
|
+
address.additionalInformation = borrowerData.address.additionalInformation;
|
|
125
|
+
if (borrowerData.address.district)
|
|
126
|
+
address.district = borrowerData.address.district;
|
|
127
|
+
if (borrowerData.address.state)
|
|
128
|
+
address.state = borrowerData.address.state;
|
|
129
|
+
const cityCode = borrowerData.address.cityCode;
|
|
130
|
+
const cityName = borrowerData.address.cityName;
|
|
131
|
+
if (cityCode && cityName) {
|
|
132
|
+
address.city = {
|
|
133
|
+
code: cityCode,
|
|
134
|
+
name: cityName,
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
if (Object.keys(address).length > 0) {
|
|
138
|
+
borrower.address = address;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
body.borrower = borrower;
|
|
142
|
+
}
|
|
143
|
+
return requestOptions;
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
displayName: 'Borrower',
|
|
151
|
+
name: 'borrowerData',
|
|
152
|
+
type: 'fixedCollection',
|
|
153
|
+
default: {},
|
|
154
|
+
displayOptions: {
|
|
155
|
+
show: {
|
|
156
|
+
...showOnlyForServiceInvoiceIssue,
|
|
157
|
+
borrowerSource: ['inline'],
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
placeholder: 'Add Borrower Details',
|
|
161
|
+
options: [
|
|
162
|
+
{
|
|
163
|
+
name: 'borrower',
|
|
164
|
+
displayName: 'Borrower Details',
|
|
165
|
+
values: [
|
|
166
|
+
{
|
|
167
|
+
displayName: 'Email',
|
|
168
|
+
name: 'email',
|
|
169
|
+
type: 'string',
|
|
170
|
+
default: '',
|
|
171
|
+
placeholder: 'name@email.com',
|
|
172
|
+
description: 'Email address of the borrower',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
displayName: 'Federal Tax Number (CPF/CNPJ)',
|
|
176
|
+
name: 'federalTaxNumber',
|
|
177
|
+
type: 'string',
|
|
178
|
+
default: '',
|
|
179
|
+
placeholder: 'e.g., 12345678000199',
|
|
180
|
+
description: 'CPF (11 digits) or CNPJ (14 digits) without formatting',
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
displayName: 'Name',
|
|
184
|
+
name: 'name',
|
|
185
|
+
type: 'string',
|
|
186
|
+
default: '',
|
|
187
|
+
description: 'Name or company name of the borrower',
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
displayName: 'Phone Number',
|
|
191
|
+
name: 'phoneNumber',
|
|
192
|
+
type: 'string',
|
|
193
|
+
default: '',
|
|
194
|
+
description: 'Phone number of the borrower',
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
displayName: 'Type',
|
|
198
|
+
name: 'type',
|
|
199
|
+
type: 'options',
|
|
200
|
+
default: 'LegalEntity',
|
|
201
|
+
options: [
|
|
202
|
+
{
|
|
203
|
+
name: 'Legal Entity (PJ)',
|
|
204
|
+
value: 'LegalEntity',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: 'Natural Person (PF)',
|
|
208
|
+
value: 'NaturalPerson',
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
description: 'Type of borrower',
|
|
212
|
+
},
|
|
213
|
+
],
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: 'address',
|
|
217
|
+
displayName: 'Address',
|
|
218
|
+
values: [
|
|
219
|
+
{
|
|
220
|
+
displayName: 'Country',
|
|
221
|
+
name: 'country',
|
|
222
|
+
type: 'string',
|
|
223
|
+
default: 'BRA',
|
|
224
|
+
description: 'Country code (ISO 3166-1 alpha-3)',
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
displayName: 'Postal Code (CEP)',
|
|
228
|
+
name: 'postalCode',
|
|
229
|
+
type: 'string',
|
|
230
|
+
default: '',
|
|
231
|
+
placeholder: '01310-100',
|
|
232
|
+
description: 'Postal code',
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
displayName: 'Street',
|
|
236
|
+
name: 'street',
|
|
237
|
+
type: 'string',
|
|
238
|
+
default: '',
|
|
239
|
+
description: 'Street name',
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
displayName: 'Number',
|
|
243
|
+
name: 'number',
|
|
244
|
+
type: 'string',
|
|
245
|
+
default: '',
|
|
246
|
+
description: 'Street number or S/N',
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
displayName: 'Additional Information',
|
|
250
|
+
name: 'additionalInformation',
|
|
251
|
+
type: 'string',
|
|
252
|
+
default: '',
|
|
253
|
+
description: 'Complement (apartment, suite, etc.)',
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
displayName: 'District',
|
|
257
|
+
name: 'district',
|
|
258
|
+
type: 'string',
|
|
259
|
+
default: '',
|
|
260
|
+
description: 'Neighborhood/district name',
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
displayName: 'City Code (IBGE)',
|
|
264
|
+
name: 'cityCode',
|
|
265
|
+
type: 'string',
|
|
266
|
+
default: '',
|
|
267
|
+
description: 'IBGE city code (7 digits). Required if City Name is provided.',
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
displayName: 'City Name',
|
|
271
|
+
name: 'cityName',
|
|
272
|
+
type: 'string',
|
|
273
|
+
default: '',
|
|
274
|
+
description: 'City name. Required if City Code is provided.',
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
displayName: 'State',
|
|
278
|
+
name: 'state',
|
|
279
|
+
type: 'string',
|
|
280
|
+
default: '',
|
|
281
|
+
description: 'State abbreviation (2 letters)',
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
displayName: 'Borrower (JSON)',
|
|
289
|
+
name: 'borrowerJson',
|
|
290
|
+
type: 'json',
|
|
291
|
+
default: '{}',
|
|
292
|
+
displayOptions: {
|
|
293
|
+
show: {
|
|
294
|
+
...showOnlyForServiceInvoiceIssue,
|
|
295
|
+
borrowerSource: ['json'],
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
description: 'Borrower data as JSON object',
|
|
299
|
+
routing: {
|
|
300
|
+
send: {
|
|
301
|
+
type: 'body',
|
|
302
|
+
property: 'borrower',
|
|
303
|
+
value: '={{ JSON.parse($value) }}',
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
displayName: 'Taxation',
|
|
309
|
+
name: 'taxation',
|
|
310
|
+
type: 'fixedCollection',
|
|
311
|
+
default: {},
|
|
312
|
+
displayOptions: {
|
|
313
|
+
show: showOnlyForServiceInvoiceIssue,
|
|
314
|
+
},
|
|
315
|
+
placeholder: 'Add Taxation Options',
|
|
316
|
+
options: [
|
|
317
|
+
{
|
|
318
|
+
name: 'values',
|
|
319
|
+
displayName: 'Taxation Options',
|
|
320
|
+
values: [
|
|
321
|
+
{
|
|
322
|
+
displayName: 'Conditional Discount',
|
|
323
|
+
name: 'discountConditionedAmount',
|
|
324
|
+
type: 'number',
|
|
325
|
+
default: 0,
|
|
326
|
+
description: 'Conditional discount amount',
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
displayName: 'Deductions Amount',
|
|
330
|
+
name: 'deductionsAmount',
|
|
331
|
+
type: 'number',
|
|
332
|
+
default: 0,
|
|
333
|
+
description: 'Value of deductions',
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
displayName: 'ISS Rate (%)',
|
|
337
|
+
name: 'issRate',
|
|
338
|
+
type: 'number',
|
|
339
|
+
default: 0,
|
|
340
|
+
description: 'ISS tax rate as decimal (e.g., 0.05 for 5%)',
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
displayName: 'ISS Tax Amount',
|
|
344
|
+
name: 'issTaxAmount',
|
|
345
|
+
type: 'number',
|
|
346
|
+
default: 0,
|
|
347
|
+
description: 'Calculated ISS tax amount',
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
displayName: 'Taxation Type',
|
|
351
|
+
name: 'taxationType',
|
|
352
|
+
type: 'options',
|
|
353
|
+
default: 'WithinCity',
|
|
354
|
+
options: [
|
|
355
|
+
{
|
|
356
|
+
name: 'Export',
|
|
357
|
+
value: 'Export',
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
name: 'Free',
|
|
361
|
+
value: 'Free',
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
name: 'Immune',
|
|
365
|
+
value: 'Immune',
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
name: 'Outside City',
|
|
369
|
+
value: 'OutsideCity',
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
name: 'Suspended (Administrative)',
|
|
373
|
+
value: 'SuspendedAdministrativeProcedure',
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
name: 'Suspended (Court Decision)',
|
|
377
|
+
value: 'SuspendedCourtDecision',
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
name: 'Within City',
|
|
381
|
+
value: 'WithinCity',
|
|
382
|
+
},
|
|
383
|
+
],
|
|
384
|
+
description: 'Type of taxation for the service',
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
displayName: 'Unconditional Discount',
|
|
388
|
+
name: 'discountUnconditionedAmount',
|
|
389
|
+
type: 'number',
|
|
390
|
+
default: 0,
|
|
391
|
+
description: 'Unconditional discount amount',
|
|
392
|
+
},
|
|
393
|
+
],
|
|
394
|
+
},
|
|
395
|
+
],
|
|
396
|
+
routing: {
|
|
397
|
+
send: {
|
|
398
|
+
preSend: [
|
|
399
|
+
async function (requestOptions) {
|
|
400
|
+
const taxation = this.getNodeParameter('taxation');
|
|
401
|
+
if (taxation === null || taxation === void 0 ? void 0 : taxation.values) {
|
|
402
|
+
const body = requestOptions.body;
|
|
403
|
+
if (taxation.values.taxationType !== undefined)
|
|
404
|
+
body.taxationType = taxation.values.taxationType;
|
|
405
|
+
if (taxation.values.issRate !== undefined)
|
|
406
|
+
body.issRate = taxation.values.issRate;
|
|
407
|
+
if (taxation.values.issTaxAmount !== undefined)
|
|
408
|
+
body.issTaxAmount = taxation.values.issTaxAmount;
|
|
409
|
+
if (taxation.values.deductionsAmount !== undefined)
|
|
410
|
+
body.deductionsAmount = taxation.values.deductionsAmount;
|
|
411
|
+
if (taxation.values.discountUnconditionedAmount !== undefined)
|
|
412
|
+
body.discountUnconditionedAmount = taxation.values.discountUnconditionedAmount;
|
|
413
|
+
if (taxation.values.discountConditionedAmount !== undefined)
|
|
414
|
+
body.discountConditionedAmount = taxation.values.discountConditionedAmount;
|
|
415
|
+
}
|
|
416
|
+
return requestOptions;
|
|
417
|
+
},
|
|
418
|
+
],
|
|
419
|
+
},
|
|
420
|
+
},
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
displayName: 'Withholdings',
|
|
424
|
+
name: 'withholdings',
|
|
425
|
+
type: 'fixedCollection',
|
|
426
|
+
default: {},
|
|
427
|
+
displayOptions: {
|
|
428
|
+
show: showOnlyForServiceInvoiceIssue,
|
|
429
|
+
},
|
|
430
|
+
placeholder: 'Add Withholdings',
|
|
431
|
+
options: [
|
|
432
|
+
{
|
|
433
|
+
name: 'values',
|
|
434
|
+
displayName: 'Withholding Values',
|
|
435
|
+
values: [
|
|
436
|
+
{
|
|
437
|
+
displayName: 'COFINS',
|
|
438
|
+
name: 'cofinsAmountWithheld',
|
|
439
|
+
type: 'number',
|
|
440
|
+
default: 0,
|
|
441
|
+
description: 'Withheld COFINS amount',
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
displayName: 'CSLL',
|
|
445
|
+
name: 'csllAmountWithheld',
|
|
446
|
+
type: 'number',
|
|
447
|
+
default: 0,
|
|
448
|
+
description: 'Withheld CSLL amount',
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
displayName: 'INSS',
|
|
452
|
+
name: 'inssAmountWithheld',
|
|
453
|
+
type: 'number',
|
|
454
|
+
default: 0,
|
|
455
|
+
description: 'Withheld INSS amount',
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
displayName: 'IR (Income Tax)',
|
|
459
|
+
name: 'irAmountWithheld',
|
|
460
|
+
type: 'number',
|
|
461
|
+
default: 0,
|
|
462
|
+
description: 'Withheld income tax amount',
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
displayName: 'ISS',
|
|
466
|
+
name: 'issAmountWithheld',
|
|
467
|
+
type: 'number',
|
|
468
|
+
default: 0,
|
|
469
|
+
description: 'Withheld ISS amount',
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
displayName: 'Others',
|
|
473
|
+
name: 'othersAmountWithheld',
|
|
474
|
+
type: 'number',
|
|
475
|
+
default: 0,
|
|
476
|
+
description: 'Other withheld amounts',
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
displayName: 'PIS',
|
|
480
|
+
name: 'pisAmountWithheld',
|
|
481
|
+
type: 'number',
|
|
482
|
+
default: 0,
|
|
483
|
+
description: 'Withheld PIS amount',
|
|
484
|
+
},
|
|
485
|
+
],
|
|
486
|
+
},
|
|
487
|
+
],
|
|
488
|
+
routing: {
|
|
489
|
+
send: {
|
|
490
|
+
preSend: [
|
|
491
|
+
async function (requestOptions) {
|
|
492
|
+
const withholdings = this.getNodeParameter('withholdings');
|
|
493
|
+
if (withholdings === null || withholdings === void 0 ? void 0 : withholdings.values) {
|
|
494
|
+
const body = requestOptions.body;
|
|
495
|
+
if (withholdings.values.irAmountWithheld !== undefined)
|
|
496
|
+
body.irAmountWithheld = withholdings.values.irAmountWithheld;
|
|
497
|
+
if (withholdings.values.pisAmountWithheld !== undefined)
|
|
498
|
+
body.pisAmountWithheld = withholdings.values.pisAmountWithheld;
|
|
499
|
+
if (withholdings.values.cofinsAmountWithheld !== undefined)
|
|
500
|
+
body.cofinsAmountWithheld = withholdings.values.cofinsAmountWithheld;
|
|
501
|
+
if (withholdings.values.csllAmountWithheld !== undefined)
|
|
502
|
+
body.csllAmountWithheld = withholdings.values.csllAmountWithheld;
|
|
503
|
+
if (withholdings.values.inssAmountWithheld !== undefined)
|
|
504
|
+
body.inssAmountWithheld = withholdings.values.inssAmountWithheld;
|
|
505
|
+
if (withholdings.values.issAmountWithheld !== undefined)
|
|
506
|
+
body.issAmountWithheld = withholdings.values.issAmountWithheld;
|
|
507
|
+
if (withholdings.values.othersAmountWithheld !== undefined)
|
|
508
|
+
body.othersAmountWithheld = withholdings.values.othersAmountWithheld;
|
|
509
|
+
}
|
|
510
|
+
return requestOptions;
|
|
511
|
+
},
|
|
512
|
+
],
|
|
513
|
+
},
|
|
514
|
+
},
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
displayName: 'Advanced Options',
|
|
518
|
+
name: 'advancedOptions',
|
|
519
|
+
type: 'fixedCollection',
|
|
520
|
+
default: {},
|
|
521
|
+
displayOptions: {
|
|
522
|
+
show: showOnlyForServiceInvoiceIssue,
|
|
523
|
+
},
|
|
524
|
+
placeholder: 'Add Advanced Options',
|
|
525
|
+
options: [
|
|
526
|
+
{
|
|
527
|
+
name: 'values',
|
|
528
|
+
displayName: 'Advanced Options',
|
|
529
|
+
values: [
|
|
530
|
+
{
|
|
531
|
+
displayName: 'Additional Information',
|
|
532
|
+
name: 'additionalInformation',
|
|
533
|
+
type: 'string',
|
|
534
|
+
default: '',
|
|
535
|
+
description: 'Additional notes or observations',
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
displayName: 'CNAE Code',
|
|
539
|
+
name: 'cnaeCode',
|
|
540
|
+
type: 'string',
|
|
541
|
+
default: '',
|
|
542
|
+
description: 'CNAE code (required by some cities)',
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
displayName: 'External ID',
|
|
546
|
+
name: 'externalId',
|
|
547
|
+
type: 'string',
|
|
548
|
+
default: '',
|
|
549
|
+
description: 'Your custom identifier for this invoice',
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
displayName: 'Federal Service Code',
|
|
553
|
+
name: 'federalServiceCode',
|
|
554
|
+
type: 'string',
|
|
555
|
+
default: '',
|
|
556
|
+
description: 'Federal service code (LC 116 item)',
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
displayName: 'Issue Date',
|
|
560
|
+
name: 'issuedOn',
|
|
561
|
+
type: 'dateTime',
|
|
562
|
+
default: '',
|
|
563
|
+
description: 'Date of competência (defaults to current date)',
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
displayName: 'NBS Code',
|
|
567
|
+
name: 'nbsCode',
|
|
568
|
+
type: 'string',
|
|
569
|
+
default: '',
|
|
570
|
+
description: 'NBS code (required by some cities)',
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
displayName: 'RPS Number',
|
|
574
|
+
name: 'rpsNumber',
|
|
575
|
+
type: 'number',
|
|
576
|
+
default: 0,
|
|
577
|
+
description: 'RPS (Recibo Provisório de Serviço) number',
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
displayName: 'RPS Serial Number',
|
|
581
|
+
name: 'rpsSerialNumber',
|
|
582
|
+
type: 'string',
|
|
583
|
+
default: '',
|
|
584
|
+
description: 'RPS serial number identifier',
|
|
585
|
+
},
|
|
586
|
+
],
|
|
587
|
+
},
|
|
588
|
+
],
|
|
589
|
+
routing: {
|
|
590
|
+
send: {
|
|
591
|
+
preSend: [
|
|
592
|
+
async function (requestOptions) {
|
|
593
|
+
const advanced = this.getNodeParameter('advancedOptions');
|
|
594
|
+
if (advanced === null || advanced === void 0 ? void 0 : advanced.values) {
|
|
595
|
+
const body = requestOptions.body;
|
|
596
|
+
if (advanced.values.externalId)
|
|
597
|
+
body.externalId = advanced.values.externalId;
|
|
598
|
+
if (advanced.values.federalServiceCode)
|
|
599
|
+
body.federalServiceCode = advanced.values.federalServiceCode;
|
|
600
|
+
if (advanced.values.cnaeCode)
|
|
601
|
+
body.cnaeCode = advanced.values.cnaeCode;
|
|
602
|
+
if (advanced.values.nbsCode)
|
|
603
|
+
body.nbsCode = advanced.values.nbsCode;
|
|
604
|
+
if (advanced.values.rpsSerialNumber)
|
|
605
|
+
body.rpsSerialNumber = advanced.values.rpsSerialNumber;
|
|
606
|
+
if (advanced.values.rpsNumber !== undefined && advanced.values.rpsNumber !== 0)
|
|
607
|
+
body.rpsNumber = advanced.values.rpsNumber;
|
|
608
|
+
if (advanced.values.issuedOn)
|
|
609
|
+
body.issuedOn = advanced.values.issuedOn;
|
|
610
|
+
if (advanced.values.additionalInformation)
|
|
611
|
+
body.additionalInformation = advanced.values.additionalInformation;
|
|
612
|
+
}
|
|
613
|
+
return requestOptions;
|
|
614
|
+
},
|
|
615
|
+
],
|
|
616
|
+
},
|
|
617
|
+
},
|
|
618
|
+
},
|
|
619
|
+
];
|
|
620
|
+
//# sourceMappingURL=issue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issue.js","sourceRoot":"","sources":["../../../../../nodes/Nfe/resources/serviceInvoice/issue.ts"],"names":[],"mappings":";;;AAEA,MAAM,8BAA8B,GAAG;IACtC,SAAS,EAAE,CAAC,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,gBAAgB,CAAC;CAC5B,CAAC;AAEW,QAAA,8BAA8B,GAAsB;IAIhE;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,8BAA8B;SACpC;QACD,WAAW,EAAE,iDAAiD;QAC9D,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,iBAAiB;aAC3B;SACD;KACD;IACD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,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Description = void 0;
|
|
4
|
+
const showOnlyForServiceInvoiceSendEmail = {
|
|
5
|
+
operation: ['sendEmail'],
|
|
6
|
+
resource: ['serviceInvoice'],
|
|
7
|
+
};
|
|
8
|
+
exports.serviceInvoiceSendEmailDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Invoice ID',
|
|
11
|
+
name: 'invoiceId',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
default: '',
|
|
15
|
+
displayOptions: {
|
|
16
|
+
show: showOnlyForServiceInvoiceSendEmail,
|
|
17
|
+
},
|
|
18
|
+
description: 'The ID of the invoice to send by email',
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
//# sourceMappingURL=sendEmail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendEmail.js","sourceRoot":"","sources":["../../../../../nodes/Nfe/resources/serviceInvoice/sendEmail.ts"],"names":[],"mappings":";;;AAEA,MAAM,kCAAkC,GAAG;IAC1C,SAAS,EAAE,CAAC,WAAW,CAAC;IACxB,QAAQ,EAAE,CAAC,gBAAgB,CAAC;CAC5B,CAAC;AAEW,QAAA,kCAAkC,GAAsB;IACpE;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,kCAAkC;SACxC;QACD,WAAW,EAAE,wCAAwC;KACrD;CACD,CAAC"}
|