@limetech/n8n-nodes-lime 2.5.2 → 2.5.4
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/.releaserc.json +1 -0
- package/CHANGELOG.md +14 -0
- package/dist/credentials/FortnoxApi.credentials.d.ts +9 -0
- package/dist/credentials/FortnoxApi.credentials.js +57 -0
- package/dist/credentials/FortnoxApi.credentials.js.map +1 -0
- package/dist/credentials/LimeCrmApi.credentials.d.ts +9 -0
- package/dist/credentials/LimeCrmApi.credentials.js +70 -0
- package/dist/credentials/LimeCrmApi.credentials.js.map +1 -0
- package/dist/credentials/index.d.ts +2 -0
- package/dist/credentials/index.js +19 -0
- package/dist/credentials/index.js.map +1 -0
- package/dist/nodes/errorHandling.d.ts +11 -0
- package/dist/nodes/errorHandling.js +20 -0
- package/dist/nodes/errorHandling.js.map +1 -0
- package/dist/nodes/fortnox/Fortnox.node.d.ts +5 -0
- package/dist/nodes/fortnox/Fortnox.node.js +95 -0
- package/dist/nodes/fortnox/Fortnox.node.js.map +1 -0
- package/dist/nodes/fortnox/Fortnox.node.json +18 -0
- package/dist/nodes/fortnox/FortnoxTrigger.node.d.ts +5 -0
- package/dist/nodes/fortnox/FortnoxTrigger.node.js +155 -0
- package/dist/nodes/fortnox/FortnoxTrigger.node.js.map +1 -0
- package/dist/nodes/fortnox/FortnoxTrigger.node.json +18 -0
- package/dist/nodes/fortnox/commons.d.ts +25 -0
- package/dist/nodes/fortnox/commons.js +44 -0
- package/dist/nodes/fortnox/commons.js.map +1 -0
- package/dist/nodes/fortnox/fortnoxLogo.svg +15 -0
- package/dist/nodes/fortnox/index.d.ts +6 -0
- package/dist/nodes/fortnox/index.js +23 -0
- package/dist/nodes/fortnox/index.js.map +1 -0
- package/dist/nodes/fortnox/model.d.ts +20 -0
- package/dist/nodes/fortnox/model.js +3 -0
- package/dist/nodes/fortnox/model.js.map +1 -0
- package/dist/nodes/fortnox/resources/customers/filterParameters.d.ts +2 -0
- package/dist/nodes/fortnox/resources/customers/filterParameters.js +31 -0
- package/dist/nodes/fortnox/resources/customers/filterParameters.js.map +1 -0
- package/dist/nodes/fortnox/resources/customers/index.d.ts +7 -0
- package/dist/nodes/fortnox/resources/customers/index.js +85 -0
- package/dist/nodes/fortnox/resources/customers/index.js.map +1 -0
- package/dist/nodes/fortnox/resources/customers/model.d.ts +99 -0
- package/dist/nodes/fortnox/resources/customers/model.js +3 -0
- package/dist/nodes/fortnox/resources/customers/model.js.map +1 -0
- package/dist/nodes/fortnox/resources/customers/operations/create.operation.d.ts +10 -0
- package/dist/nodes/fortnox/resources/customers/operations/create.operation.js +281 -0
- package/dist/nodes/fortnox/resources/customers/operations/create.operation.js.map +1 -0
- package/dist/nodes/fortnox/resources/customers/operations/delete.operation.d.ts +9 -0
- package/dist/nodes/fortnox/resources/customers/operations/delete.operation.js +38 -0
- package/dist/nodes/fortnox/resources/customers/operations/delete.operation.js.map +1 -0
- package/dist/nodes/fortnox/resources/customers/operations/get.operation.d.ts +10 -0
- package/dist/nodes/fortnox/resources/customers/operations/get.operation.js +38 -0
- package/dist/nodes/fortnox/resources/customers/operations/get.operation.js.map +1 -0
- package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.d.ts +10 -0
- package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.js +68 -0
- package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.js.map +1 -0
- package/dist/nodes/fortnox/resources/customers/operations/index.d.ts +5 -0
- package/dist/nodes/fortnox/resources/customers/operations/index.js +42 -0
- package/dist/nodes/fortnox/resources/customers/operations/index.js.map +1 -0
- package/dist/nodes/fortnox/resources/customers/operations/update.operation.d.ts +10 -0
- package/dist/nodes/fortnox/resources/customers/operations/update.operation.js +261 -0
- package/dist/nodes/fortnox/resources/customers/operations/update.operation.js.map +1 -0
- package/dist/nodes/fortnox/resources/customers/sortParameters.d.ts +2 -0
- package/dist/nodes/fortnox/resources/customers/sortParameters.js +30 -0
- package/dist/nodes/fortnox/resources/customers/sortParameters.js.map +1 -0
- package/dist/nodes/fortnox/resources/invoice/filterParameters.d.ts +2 -0
- package/dist/nodes/fortnox/resources/invoice/filterParameters.js +72 -0
- package/dist/nodes/fortnox/resources/invoice/filterParameters.js.map +1 -0
- package/dist/nodes/fortnox/resources/invoice/index.d.ts +7 -0
- package/dist/nodes/fortnox/resources/invoice/index.js +81 -0
- package/dist/nodes/fortnox/resources/invoice/index.js.map +1 -0
- package/dist/nodes/fortnox/resources/invoice/invoiceParameters.d.ts +2 -0
- package/dist/nodes/fortnox/resources/invoice/invoiceParameters.js +193 -0
- package/dist/nodes/fortnox/resources/invoice/invoiceParameters.js.map +1 -0
- package/dist/nodes/fortnox/resources/invoice/model.d.ts +147 -0
- package/dist/nodes/fortnox/resources/invoice/model.js +3 -0
- package/dist/nodes/fortnox/resources/invoice/model.js.map +1 -0
- package/dist/nodes/fortnox/resources/invoice/operations/create.operation.d.ts +10 -0
- package/dist/nodes/fortnox/resources/invoice/operations/create.operation.js +64 -0
- package/dist/nodes/fortnox/resources/invoice/operations/create.operation.js.map +1 -0
- package/dist/nodes/fortnox/resources/invoice/operations/get.operation.d.ts +10 -0
- package/dist/nodes/fortnox/resources/invoice/operations/get.operation.js +37 -0
- package/dist/nodes/fortnox/resources/invoice/operations/get.operation.js.map +1 -0
- package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.d.ts +10 -0
- package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.js +92 -0
- package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.js.map +1 -0
- package/dist/nodes/fortnox/resources/invoice/operations/index.d.ts +4 -0
- package/dist/nodes/fortnox/resources/invoice/operations/index.js +41 -0
- package/dist/nodes/fortnox/resources/invoice/operations/index.js.map +1 -0
- package/dist/nodes/fortnox/resources/invoice/operations/update.operation.d.ts +10 -0
- package/dist/nodes/fortnox/resources/invoice/operations/update.operation.js +64 -0
- package/dist/nodes/fortnox/resources/invoice/operations/update.operation.js.map +1 -0
- package/dist/nodes/fortnox/transport/errorCodes.d.ts +1 -0
- package/dist/nodes/fortnox/transport/errorCodes.js +50 -0
- package/dist/nodes/fortnox/transport/errorCodes.js.map +1 -0
- package/dist/nodes/fortnox/transport/index.d.ts +3 -0
- package/dist/nodes/fortnox/transport/index.js +76 -0
- package/dist/nodes/fortnox/transport/index.js.map +1 -0
- package/dist/nodes/index.d.ts +4 -0
- package/dist/nodes/index.js +21 -0
- package/dist/nodes/index.js.map +1 -0
- package/dist/nodes/lime-crm/LimeCrm.node.json +18 -0
- package/dist/nodes/lime-crm/LimeCrmNode.node.d.ts +19 -0
- package/dist/nodes/lime-crm/LimeCrmNode.node.js +122 -0
- package/dist/nodes/lime-crm/LimeCrmNode.node.js.map +1 -0
- package/dist/nodes/lime-crm/LimeCrmTrigger.node.d.ts +18 -0
- package/dist/nodes/lime-crm/LimeCrmTrigger.node.js +215 -0
- package/dist/nodes/lime-crm/LimeCrmTrigger.node.js.map +1 -0
- package/dist/nodes/lime-crm/assets/lime-crm.svg +1 -0
- package/dist/nodes/lime-crm/index.d.ts +9 -0
- package/dist/nodes/lime-crm/index.js +26 -0
- package/dist/nodes/lime-crm/index.js.map +1 -0
- package/dist/nodes/lime-crm/methods/getLimetypeProperties.d.ts +5 -0
- package/dist/nodes/lime-crm/methods/getLimetypeProperties.js +47 -0
- package/dist/nodes/lime-crm/methods/getLimetypeProperties.js.map +1 -0
- package/dist/nodes/lime-crm/methods/getLimetypes.d.ts +2 -0
- package/dist/nodes/lime-crm/methods/getLimetypes.js +20 -0
- package/dist/nodes/lime-crm/methods/getLimetypes.js.map +1 -0
- package/dist/nodes/lime-crm/methods/index.d.ts +3 -0
- package/dist/nodes/lime-crm/methods/index.js +15 -0
- package/dist/nodes/lime-crm/methods/index.js.map +1 -0
- package/dist/nodes/lime-crm/methods/resourceMapping.d.ts +4 -0
- package/dist/nodes/lime-crm/methods/resourceMapping.js +71 -0
- package/dist/nodes/lime-crm/methods/resourceMapping.js.map +1 -0
- package/dist/nodes/lime-crm/models/constants.d.ts +9 -0
- package/dist/nodes/lime-crm/models/constants.js +10 -0
- package/dist/nodes/lime-crm/models/constants.js.map +1 -0
- package/dist/nodes/lime-crm/models/index.d.ts +6 -0
- package/dist/nodes/lime-crm/models/index.js +13 -0
- package/dist/nodes/lime-crm/models/index.js.map +1 -0
- package/dist/nodes/lime-crm/models/limeobject.d.ts +4 -0
- package/dist/nodes/lime-crm/models/limeobject.js +3 -0
- package/dist/nodes/lime-crm/models/limeobject.js.map +1 -0
- package/dist/nodes/lime-crm/models/limetype.d.ts +24 -0
- package/dist/nodes/lime-crm/models/limetype.js +3 -0
- package/dist/nodes/lime-crm/models/limetype.js.map +1 -0
- package/dist/nodes/lime-crm/models/propertyTypes.d.ts +4 -0
- package/dist/nodes/lime-crm/models/propertyTypes.js +5 -0
- package/dist/nodes/lime-crm/models/propertyTypes.js.map +1 -0
- package/dist/nodes/lime-crm/models/users.d.ts +13 -0
- package/dist/nodes/lime-crm/models/users.js +3 -0
- package/dist/nodes/lime-crm/models/users.js.map +1 -0
- package/dist/nodes/lime-crm/models/webhook.d.ts +18 -0
- package/dist/nodes/lime-crm/models/webhook.js +3 -0
- package/dist/nodes/lime-crm/models/webhook.js.map +1 -0
- package/dist/nodes/lime-crm/resources/admin/index.d.ts +7 -0
- package/dist/nodes/lime-crm/resources/admin/index.js +89 -0
- package/dist/nodes/lime-crm/resources/admin/index.js.map +1 -0
- package/dist/nodes/lime-crm/resources/admin/operations/getManyUsers.operation.d.ts +11 -0
- package/dist/nodes/lime-crm/resources/admin/operations/getManyUsers.operation.js +123 -0
- package/dist/nodes/lime-crm/resources/admin/operations/getManyUsers.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/admin/operations/getSingleUser.operation.d.ts +11 -0
- package/dist/nodes/lime-crm/resources/admin/operations/getSingleUser.operation.js +87 -0
- package/dist/nodes/lime-crm/resources/admin/operations/getSingleUser.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/admin/operations/index.d.ts +2 -0
- package/dist/nodes/lime-crm/resources/admin/operations/index.js +39 -0
- package/dist/nodes/lime-crm/resources/admin/operations/index.js.map +1 -0
- package/dist/nodes/lime-crm/resources/data/index.d.ts +7 -0
- package/dist/nodes/lime-crm/resources/data/index.js +108 -0
- package/dist/nodes/lime-crm/resources/data/index.js.map +1 -0
- package/dist/nodes/lime-crm/resources/data/operations/createSingleObject.operation.d.ts +11 -0
- package/dist/nodes/lime-crm/resources/data/operations/createSingleObject.operation.js +124 -0
- package/dist/nodes/lime-crm/resources/data/operations/createSingleObject.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/data/operations/deleteSingleObject.operation.d.ts +10 -0
- package/dist/nodes/lime-crm/resources/data/operations/deleteSingleObject.operation.js +52 -0
- package/dist/nodes/lime-crm/resources/data/operations/deleteSingleObject.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/data/operations/getManyObjects.operation.d.ts +11 -0
- package/dist/nodes/lime-crm/resources/data/operations/getManyObjects.operation.js +299 -0
- package/dist/nodes/lime-crm/resources/data/operations/getManyObjects.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/data/operations/getSingleFile.operation.d.ts +9 -0
- package/dist/nodes/lime-crm/resources/data/operations/getSingleFile.operation.js +125 -0
- package/dist/nodes/lime-crm/resources/data/operations/getSingleFile.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/data/operations/getSingleObject.operation.d.ts +11 -0
- package/dist/nodes/lime-crm/resources/data/operations/getSingleObject.operation.js +79 -0
- package/dist/nodes/lime-crm/resources/data/operations/getSingleObject.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/data/operations/index.d.ts +6 -0
- package/dist/nodes/lime-crm/resources/data/operations/index.js +43 -0
- package/dist/nodes/lime-crm/resources/data/operations/index.js.map +1 -0
- package/dist/nodes/lime-crm/resources/data/operations/updateSingleObject.operation.d.ts +11 -0
- package/dist/nodes/lime-crm/resources/data/operations/updateSingleObject.operation.js +146 -0
- package/dist/nodes/lime-crm/resources/data/operations/updateSingleObject.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/metadata/index.d.ts +7 -0
- package/dist/nodes/lime-crm/resources/metadata/index.js +93 -0
- package/dist/nodes/lime-crm/resources/metadata/index.js.map +1 -0
- package/dist/nodes/lime-crm/resources/metadata/operations/getAllLimetypes.operation.d.ts +10 -0
- package/dist/nodes/lime-crm/resources/metadata/operations/getAllLimetypes.operation.js +16 -0
- package/dist/nodes/lime-crm/resources/metadata/operations/getAllLimetypes.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/metadata/operations/getSingleFileMetadata.operation.d.ts +11 -0
- package/dist/nodes/lime-crm/resources/metadata/operations/getSingleFileMetadata.operation.js +113 -0
- package/dist/nodes/lime-crm/resources/metadata/operations/getSingleFileMetadata.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/metadata/operations/getSingleLimetype.operation.d.ts +11 -0
- package/dist/nodes/lime-crm/resources/metadata/operations/getSingleLimetype.operation.js +37 -0
- package/dist/nodes/lime-crm/resources/metadata/operations/getSingleLimetype.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/metadata/operations/index.d.ts +3 -0
- package/dist/nodes/lime-crm/resources/metadata/operations/index.js +40 -0
- package/dist/nodes/lime-crm/resources/metadata/operations/index.js.map +1 -0
- package/dist/nodes/lime-crm/transport/commons.d.ts +14 -0
- package/dist/nodes/lime-crm/transport/commons.js +52 -0
- package/dist/nodes/lime-crm/transport/commons.js.map +1 -0
- package/dist/nodes/lime-crm/transport/files.d.ts +26 -0
- package/dist/nodes/lime-crm/transport/files.js +96 -0
- package/dist/nodes/lime-crm/transport/files.js.map +1 -0
- package/dist/nodes/lime-crm/transport/index.d.ts +7 -0
- package/dist/nodes/lime-crm/transport/index.js +32 -0
- package/dist/nodes/lime-crm/transport/index.js.map +1 -0
- package/dist/nodes/lime-crm/transport/limeQuery.d.ts +10 -0
- package/dist/nodes/lime-crm/transport/limeQuery.js +18 -0
- package/dist/nodes/lime-crm/transport/limeQuery.js.map +1 -0
- package/dist/nodes/lime-crm/transport/limeobjects.d.ts +16 -0
- package/dist/nodes/lime-crm/transport/limeobjects.js +76 -0
- package/dist/nodes/lime-crm/transport/limeobjects.js.map +1 -0
- package/dist/nodes/lime-crm/transport/limetypes.d.ts +33 -0
- package/dist/nodes/lime-crm/transport/limetypes.js +85 -0
- package/dist/nodes/lime-crm/transport/limetypes.js.map +1 -0
- package/dist/nodes/lime-crm/transport/users.d.ts +6 -0
- package/dist/nodes/lime-crm/transport/users.js +159 -0
- package/dist/nodes/lime-crm/transport/users.js.map +1 -0
- package/dist/nodes/lime-crm/transport/webhooks.d.ts +14 -0
- package/dist/nodes/lime-crm/transport/webhooks.js +51 -0
- package/dist/nodes/lime-crm/transport/webhooks.js.map +1 -0
- package/dist/nodes/lime-crm/utils/files.d.ts +8 -0
- package/dist/nodes/lime-crm/utils/files.js +103 -0
- package/dist/nodes/lime-crm/utils/files.js.map +1 -0
- package/dist/nodes/lime-crm/utils/hmac.d.ts +1 -0
- package/dist/nodes/lime-crm/utils/hmac.js +11 -0
- package/dist/nodes/lime-crm/utils/hmac.js.map +1 -0
- package/dist/nodes/lime-crm/utils/index.d.ts +4 -0
- package/dist/nodes/lime-crm/utils/index.js +16 -0
- package/dist/nodes/lime-crm/utils/index.js.map +1 -0
- package/dist/nodes/lime-crm/utils/webhook.d.ts +2 -0
- package/dist/nodes/lime-crm/utils/webhook.js +34 -0
- package/dist/nodes/lime-crm/utils/webhook.js.map +1 -0
- package/dist/nodes/modules.d.ts +12 -0
- package/dist/nodes/modules.js +16 -0
- package/dist/nodes/modules.js.map +1 -0
- package/dist/nodes/response.d.ts +18 -0
- package/dist/nodes/response.js +3 -0
- package/dist/nodes/response.js.map +1 -0
- package/dist/package.json +70 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.invoiceProperties = void 0;
|
|
40
|
+
exports.invoiceOperations = invoiceOperations;
|
|
41
|
+
const operations = __importStar(require("./operations"));
|
|
42
|
+
const modules_1 = require("../../../modules");
|
|
43
|
+
const moduleHandler = new modules_1.N8NOperationModuleHandler([
|
|
44
|
+
operations.createSingleInvoice,
|
|
45
|
+
operations.getManyInvoices,
|
|
46
|
+
operations.getSingleInvoice,
|
|
47
|
+
operations.updateSingleInvoice,
|
|
48
|
+
]);
|
|
49
|
+
exports.invoiceProperties = [
|
|
50
|
+
{
|
|
51
|
+
displayName: 'Operation',
|
|
52
|
+
name: 'operation',
|
|
53
|
+
type: 'options',
|
|
54
|
+
noDataExpression: true,
|
|
55
|
+
displayOptions: {
|
|
56
|
+
show: {
|
|
57
|
+
resource: ['invoice'],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
options: moduleHandler.getDescriptions(),
|
|
61
|
+
default: 'getAll',
|
|
62
|
+
},
|
|
63
|
+
...moduleHandler.getProperties(),
|
|
64
|
+
];
|
|
65
|
+
async function invoiceOperations({ operation, i }) {
|
|
66
|
+
if (operation === 'create') {
|
|
67
|
+
return await operations.createSingleInvoice.execute.call(this, i);
|
|
68
|
+
}
|
|
69
|
+
else if (operation === 'get') {
|
|
70
|
+
return await operations.getSingleInvoice.execute.call(this, i);
|
|
71
|
+
}
|
|
72
|
+
else if (operation === 'getAll') {
|
|
73
|
+
return await operations.getManyInvoices.execute.call(this, i);
|
|
74
|
+
}
|
|
75
|
+
else if (operation === 'update') {
|
|
76
|
+
return await operations.updateSingleInvoice.execute.call(this, i);
|
|
77
|
+
}
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
__exportStar(require("./operations"), exports);
|
|
81
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/fortnox/resources/invoice/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAi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,OAAO,IAAI,CAAC;AAChB,CAAC;AACD,+CAA6B"}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.invoiceParameters = void 0;
|
|
4
|
+
const commons_1 = require("../../commons");
|
|
5
|
+
const optionParametersDefinitions = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Invoice Type',
|
|
8
|
+
name: 'InvoiceType',
|
|
9
|
+
parameters: [
|
|
10
|
+
['Invoice', 'INVOICE'],
|
|
11
|
+
['Agreement Invoice', 'AGREEMENTINVOICE'],
|
|
12
|
+
['Intrest Invoice', 'INTRESTINVOICE'],
|
|
13
|
+
['Summery Invoice', 'SUMMARYINVOICE'],
|
|
14
|
+
['Cash Invoice', 'CASHINVOICE'],
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
displayName: 'Language',
|
|
19
|
+
name: 'Language',
|
|
20
|
+
parameters: [
|
|
21
|
+
['Svenska', 'SV'],
|
|
22
|
+
['English', 'EN'],
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
displayName: 'Tax Reduction Type',
|
|
27
|
+
name: 'TaxReductionType',
|
|
28
|
+
parameters: [
|
|
29
|
+
['None', 'none'],
|
|
30
|
+
['Rot', 'rot'],
|
|
31
|
+
['Rut', 'rut'],
|
|
32
|
+
['Green', 'green'],
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
const collectionParametersDefinitions = [
|
|
37
|
+
{
|
|
38
|
+
displayName: 'EDI Information',
|
|
39
|
+
name: 'EDIInformation',
|
|
40
|
+
parameters: [
|
|
41
|
+
[
|
|
42
|
+
'EDI Global Location Number',
|
|
43
|
+
'EDIGlobalLocationNumber',
|
|
44
|
+
'string',
|
|
45
|
+
'',
|
|
46
|
+
{},
|
|
47
|
+
],
|
|
48
|
+
[
|
|
49
|
+
'EDI Global Location Number Delivery',
|
|
50
|
+
'EDIGlobalLocationNumberDelivery',
|
|
51
|
+
'string',
|
|
52
|
+
'',
|
|
53
|
+
{},
|
|
54
|
+
],
|
|
55
|
+
['EDI Invoice Extra1', 'EDIInvoiceExtra1', 'string', '', {}],
|
|
56
|
+
['EDI Invoice Extra2', 'EDIInvoiceExtra2', 'string', '', {}],
|
|
57
|
+
[
|
|
58
|
+
'EDI Our Electronic Reference',
|
|
59
|
+
'EDIOurElectronicReference',
|
|
60
|
+
'string',
|
|
61
|
+
'',
|
|
62
|
+
{},
|
|
63
|
+
],
|
|
64
|
+
[
|
|
65
|
+
'EDI Your Electronic Reference',
|
|
66
|
+
'EDIYourElectronicReference',
|
|
67
|
+
'string',
|
|
68
|
+
'',
|
|
69
|
+
{},
|
|
70
|
+
],
|
|
71
|
+
],
|
|
72
|
+
multipleValues: false,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
displayName: 'Email Information',
|
|
76
|
+
name: 'EmailInformation',
|
|
77
|
+
parameters: [
|
|
78
|
+
['Email Address BCC', 'EmailAddressBCC', 'string', '', {}],
|
|
79
|
+
['Email Address CC', 'EmailAddressCC', 'string', '', {}],
|
|
80
|
+
['Email Address From', 'EmailAddressFrom', 'string', '', {}],
|
|
81
|
+
['Email Address To', 'EmailAddressTo', 'string', '', {}],
|
|
82
|
+
['Email Body', 'EmailBody', 'string', '', {}],
|
|
83
|
+
['Email Subject', 'EmailSubject', 'string', '', {}],
|
|
84
|
+
],
|
|
85
|
+
multipleValues: false,
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
displayName: 'Invoice Rows',
|
|
89
|
+
name: 'InvoiceRows',
|
|
90
|
+
parameters: [
|
|
91
|
+
['Account Number', 'AccountNumber', 'number', 0, {}],
|
|
92
|
+
['Article Number', 'ArticleNumber', 'string', '', {}],
|
|
93
|
+
['Cost Center', 'CostCenter', 'string', '', {}],
|
|
94
|
+
['Delivered Quantity', 'DeliveredQuantity', 'string', '', {}],
|
|
95
|
+
['Description', 'Description', 'string', '', {}],
|
|
96
|
+
['Discount', 'Discount', 'number', 0, { numberPrecision: 2 }],
|
|
97
|
+
['Discount Type', 'DiscountType', 'string', '', {}],
|
|
98
|
+
['House Work', 'HouseWork', 'boolean', false, {}],
|
|
99
|
+
[
|
|
100
|
+
'House Work Hours To Report',
|
|
101
|
+
'HouseWorkHoursToReport',
|
|
102
|
+
'number',
|
|
103
|
+
0,
|
|
104
|
+
{},
|
|
105
|
+
],
|
|
106
|
+
['House Work Type', 'HouseWorkType', 'string', '', {}],
|
|
107
|
+
['Price', 'Price', 'number', 0, { numberPrecision: 2 }],
|
|
108
|
+
['Project', 'Project', 'string', '', {}],
|
|
109
|
+
['Row ID', 'RowId', 'number', 0, {}],
|
|
110
|
+
['Stock Point Code', 'StockPointCode', 'string', '', {}],
|
|
111
|
+
['Unit', 'Unit', 'string', '', {}],
|
|
112
|
+
['VAT', 'VAT', 'number', 0, {}],
|
|
113
|
+
['VAT Code', 'VATCode', 'string', '', {}],
|
|
114
|
+
],
|
|
115
|
+
multipleValues: true,
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
displayName: 'Labels',
|
|
119
|
+
name: 'Labels',
|
|
120
|
+
parameters: [['Label ID', 'Id', 'number', 0, {}]],
|
|
121
|
+
multipleValues: true,
|
|
122
|
+
},
|
|
123
|
+
];
|
|
124
|
+
const parametersDefinitions = [
|
|
125
|
+
['Address1', 'Address1', 'string', '', {}],
|
|
126
|
+
['Address2', 'Address2', 'string', '', {}],
|
|
127
|
+
[
|
|
128
|
+
'Administration Fee',
|
|
129
|
+
'AdministrationFee',
|
|
130
|
+
'number',
|
|
131
|
+
0,
|
|
132
|
+
{ numberPrecision: 2 },
|
|
133
|
+
],
|
|
134
|
+
['City', 'City', 'string', '', {}],
|
|
135
|
+
['Comments', 'Comments', 'string', '', {}],
|
|
136
|
+
['Cost Center', 'CostCenter', 'string', '', {}],
|
|
137
|
+
['Country', 'Country', 'string', '', {}],
|
|
138
|
+
['Credit Invoice Reference', 'CreditInvoiceReference', 'string', '', {}],
|
|
139
|
+
['Currency', 'Currency', 'string', '', {}],
|
|
140
|
+
['Currency Rate', 'CurrencyRate', 'number', 0, { numberPrecision: 2 }],
|
|
141
|
+
['Currency Unit', 'CurrencyUnit', 'number', 0, {}],
|
|
142
|
+
['Customer Name', 'CustomerName', 'string', '', {}],
|
|
143
|
+
['Delivery Address1', 'DeliveryAddress1', 'string', '', {}],
|
|
144
|
+
['Delivery Address2', 'DeliveryAddress2', 'string', '', {}],
|
|
145
|
+
['Delivery City', 'DeliveryCity', 'string', '', {}],
|
|
146
|
+
['Delivery Country', 'DeliveryCountry', 'string', '', {}],
|
|
147
|
+
['Delivery Date', 'DeliveryDate', 'string', '', {}],
|
|
148
|
+
['Delivery Name', 'DeliveryName', 'string', '', {}],
|
|
149
|
+
['Delivery Zip Code', 'DeliveryZipCode', 'string', '', {}],
|
|
150
|
+
['Document Number', 'DocumentNumber', 'string', '', {}],
|
|
151
|
+
['Due Date', 'DueDate', 'string', '', {}],
|
|
152
|
+
['EU Quarterly Report', 'EuQuarterlyReport', 'boolean', false, {}],
|
|
153
|
+
[
|
|
154
|
+
'External Invoice Reference1',
|
|
155
|
+
'ExternalInvoiceReference1',
|
|
156
|
+
'string',
|
|
157
|
+
'',
|
|
158
|
+
{},
|
|
159
|
+
],
|
|
160
|
+
[
|
|
161
|
+
'External Invoice Reference2',
|
|
162
|
+
'ExternalInvoiceReference2',
|
|
163
|
+
'string',
|
|
164
|
+
'',
|
|
165
|
+
{},
|
|
166
|
+
],
|
|
167
|
+
['Freight', 'Freight', 'number', 0, { numberPrecision: 2 }],
|
|
168
|
+
['Invoice Date', 'InvoiceDate', 'string', '', {}],
|
|
169
|
+
['Not Completed', 'NotCompleted', 'boolean', false, {}],
|
|
170
|
+
['OCR', 'OCR', 'string', '', {}],
|
|
171
|
+
['Our Reference', 'OurReference', 'string', '', {}],
|
|
172
|
+
['Outbound Date', 'OutboundDate', 'string', '', {}],
|
|
173
|
+
['Payment Way', 'PaymentWay', 'string', '', {}],
|
|
174
|
+
['Phone1', 'Phone1', 'string', '', {}],
|
|
175
|
+
['Phone2', 'Phone2', 'string', '', {}],
|
|
176
|
+
['Price List', 'PriceList', 'string', '', {}],
|
|
177
|
+
['Print Template', 'PrintTemplate', 'string', '', {}],
|
|
178
|
+
['Project', 'Project', 'string', '', {}],
|
|
179
|
+
['Remarks', 'Remarks', 'string', '', {}],
|
|
180
|
+
['Terms Of Delivery', 'TermsOfDelivery', 'string', '', {}],
|
|
181
|
+
['Terms Of Payment', 'TermsOfPayment', 'string', '', {}],
|
|
182
|
+
['VAT Included', 'VatIncluded', 'boolean', false, {}],
|
|
183
|
+
['Way Of Delivery', 'WayOfDelivery', 'string', '', {}],
|
|
184
|
+
['Your Order Number', 'YourOrderNumber', 'string', '', {}],
|
|
185
|
+
['Your Reference', 'YourReference', 'string', '', {}],
|
|
186
|
+
['Zip Code', 'ZipCode', 'string', '', {}],
|
|
187
|
+
];
|
|
188
|
+
exports.invoiceParameters = [
|
|
189
|
+
...parametersDefinitions.map(([displayName, name, parameterType, defaultValue, typeOptions]) => (0, commons_1.createParameter)(displayName, name, parameterType, defaultValue, typeOptions)),
|
|
190
|
+
...collectionParametersDefinitions.map((collection) => (0, commons_1.createCollectionParameter)(collection)),
|
|
191
|
+
...optionParametersDefinitions.map((option) => (0, commons_1.createOptionParameter)(option)),
|
|
192
|
+
];
|
|
193
|
+
//# sourceMappingURL=invoiceParameters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoiceParameters.js","sourceRoot":"","sources":["../../../../../nodes/fortnox/resources/invoice/invoiceParameters.ts"],"names":[],"mappings":";;;AACA,2CAOuB;AAEvB,MAAM,2BAA2B,GAAgC;IAC7D;QACI,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,aAAa;QACnB,UAAU,EAAE;YACR,CAAC,SAAS,EAAE,SAAS,CAAC;YACtB,CAAC,mBAAmB,EAA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cancelled: boolean;
|
|
7
|
+
CostCenter: string;
|
|
8
|
+
Currency: string;
|
|
9
|
+
CurrencyRate: string;
|
|
10
|
+
CurrencyUnit: number;
|
|
11
|
+
CustomerName: string;
|
|
12
|
+
CustomerNumber: string;
|
|
13
|
+
DocumentNumber: string;
|
|
14
|
+
DueDate: string;
|
|
15
|
+
ExternalInvoiceReference1: string;
|
|
16
|
+
ExternalInvoiceReference2: string;
|
|
17
|
+
InvoiceDate: string;
|
|
18
|
+
InvoiceType: string;
|
|
19
|
+
NoxFinans: boolean;
|
|
20
|
+
OCR: string;
|
|
21
|
+
VoucherNumber: number | string | null;
|
|
22
|
+
VoucherSeries: string | null;
|
|
23
|
+
VoucherYear: number | string | null;
|
|
24
|
+
WayOfDelivery: string;
|
|
25
|
+
TermsOfPayment: string;
|
|
26
|
+
Project: string;
|
|
27
|
+
Sent: boolean;
|
|
28
|
+
Total: number;
|
|
29
|
+
FinalPayDate: string | null;
|
|
30
|
+
}
|
|
31
|
+
export interface EDIInformation {
|
|
32
|
+
EDIGlobalLocationNumber: string | null;
|
|
33
|
+
EDIGlobalLocationNumberDelivery: string | null;
|
|
34
|
+
EDIInvoiceExtra1: string | null;
|
|
35
|
+
EDIInvoiceExtra2: string | null;
|
|
36
|
+
EDIOurElectronicReference: string | null;
|
|
37
|
+
EDIYourElectronicReference: string | null;
|
|
38
|
+
EDIStatus: string;
|
|
39
|
+
}
|
|
40
|
+
export interface EmailInformation {
|
|
41
|
+
EmailAddressFrom: string | null;
|
|
42
|
+
EmailAddressTo: string | null;
|
|
43
|
+
EmailAddressCC: string | null;
|
|
44
|
+
EmailAddressBCC: string | null;
|
|
45
|
+
EmailSubject: string;
|
|
46
|
+
EmailBody: string;
|
|
47
|
+
}
|
|
48
|
+
export interface InvoiceRow {
|
|
49
|
+
AccountNumber: number;
|
|
50
|
+
ArticleNumber: string;
|
|
51
|
+
ContributionPercent: string;
|
|
52
|
+
ContributionValue: string;
|
|
53
|
+
Cost: number;
|
|
54
|
+
CostCenter: string;
|
|
55
|
+
DeliveredQuantity: string;
|
|
56
|
+
Description: string;
|
|
57
|
+
Discount: number;
|
|
58
|
+
DiscountType: string;
|
|
59
|
+
HouseWork: boolean;
|
|
60
|
+
HouseWorkHoursToReport: number | null;
|
|
61
|
+
HouseWorkType: string | null;
|
|
62
|
+
Price: number;
|
|
63
|
+
PriceExcludingVAT: number;
|
|
64
|
+
Project: string;
|
|
65
|
+
RowId: number;
|
|
66
|
+
StockPointCode: string | null;
|
|
67
|
+
Total: number;
|
|
68
|
+
TotalExcludingVAT: number;
|
|
69
|
+
Unit: string;
|
|
70
|
+
VAT: number;
|
|
71
|
+
}
|
|
72
|
+
export interface Label {
|
|
73
|
+
Id: string;
|
|
74
|
+
}
|
|
75
|
+
export interface Invoice extends InvoiceBase {
|
|
76
|
+
'@urlTaxReductionList': string;
|
|
77
|
+
AccountingMethod: string;
|
|
78
|
+
Address1: string;
|
|
79
|
+
Address2: string;
|
|
80
|
+
AdministrationFee: number;
|
|
81
|
+
AdministrationFeeVAT: number;
|
|
82
|
+
BasisTaxReduction: number;
|
|
83
|
+
City: string;
|
|
84
|
+
Comments: string;
|
|
85
|
+
ContractReference: string;
|
|
86
|
+
ContributionPercent: number;
|
|
87
|
+
ContributionValue: string;
|
|
88
|
+
Country: string;
|
|
89
|
+
Credit: string;
|
|
90
|
+
CreditInvoiceReference: string;
|
|
91
|
+
DeliveryAddress1: string;
|
|
92
|
+
DeliveryAddress2: string;
|
|
93
|
+
DeliveryCity: string;
|
|
94
|
+
DeliveryCountry: string;
|
|
95
|
+
DeliveryDate: string | null;
|
|
96
|
+
DeliveryName: string;
|
|
97
|
+
DeliveryZipCode: string;
|
|
98
|
+
EDIInformation: EDIInformation;
|
|
99
|
+
EUQuarterlyReport: boolean;
|
|
100
|
+
EmailInformation: EmailInformation;
|
|
101
|
+
Freight: number;
|
|
102
|
+
FreightVAT: number;
|
|
103
|
+
Gross: number;
|
|
104
|
+
HouseWork: boolean;
|
|
105
|
+
InvoicePeriodEnd: string;
|
|
106
|
+
InvoicePeriodStart: string;
|
|
107
|
+
InvoiceReference: string;
|
|
108
|
+
InvoiceRows: InvoiceRow[];
|
|
109
|
+
Labels: Label[];
|
|
110
|
+
Language: string;
|
|
111
|
+
LastRemindDate: string | null;
|
|
112
|
+
Net: number;
|
|
113
|
+
NotCompleted: boolean;
|
|
114
|
+
OfferReference: string;
|
|
115
|
+
OrderReference: string;
|
|
116
|
+
OrganisationNumber: string;
|
|
117
|
+
OurReference: string;
|
|
118
|
+
OutboundDate: string;
|
|
119
|
+
PaymentWay: string;
|
|
120
|
+
Phone1: string;
|
|
121
|
+
Phone2: string;
|
|
122
|
+
PriceList: string;
|
|
123
|
+
PrintTemplate: string;
|
|
124
|
+
Remarks: string;
|
|
125
|
+
Reminders: number;
|
|
126
|
+
RoundOff: number;
|
|
127
|
+
TaxReduction: string | null;
|
|
128
|
+
TaxReductionType: string;
|
|
129
|
+
TermsOfDelivery: string;
|
|
130
|
+
TimeBasisReference: string | null;
|
|
131
|
+
TotalToPay: number;
|
|
132
|
+
TotalVAT: number;
|
|
133
|
+
VATIncluded: boolean;
|
|
134
|
+
WarehouseReady: boolean;
|
|
135
|
+
YourOrderNumber: string;
|
|
136
|
+
YourReference: string;
|
|
137
|
+
ZipCode: string;
|
|
138
|
+
}
|
|
139
|
+
export interface CreateInvoiceResponse {
|
|
140
|
+
Invoice: Invoice;
|
|
141
|
+
}
|
|
142
|
+
export interface GetInvoiceResponse extends ResponseModel {
|
|
143
|
+
Invoice: InvoiceBase;
|
|
144
|
+
}
|
|
145
|
+
export interface GetAllInvoicesResponse extends ResponseModel {
|
|
146
|
+
Invoices: InvoiceBase[];
|
|
147
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../../../nodes/fortnox/resources/invoice/model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
import { CreateInvoiceResponse } from '../model';
|
|
3
|
+
export declare const description: {
|
|
4
|
+
name: string;
|
|
5
|
+
value: string;
|
|
6
|
+
description: string;
|
|
7
|
+
action: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const properties: INodeProperties[];
|
|
10
|
+
export declare function execute(this: IExecuteFunctions, i: number): Promise<CreateInvoiceResponse>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.properties = exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const transport_1 = require("../../../transport");
|
|
6
|
+
const invoiceParameters_1 = require("../invoiceParameters");
|
|
7
|
+
exports.description = {
|
|
8
|
+
name: 'Create',
|
|
9
|
+
value: 'create',
|
|
10
|
+
description: 'Create an invoice',
|
|
11
|
+
action: 'Create a document',
|
|
12
|
+
};
|
|
13
|
+
exports.properties = [
|
|
14
|
+
{
|
|
15
|
+
displayName: 'Customer Number',
|
|
16
|
+
name: 'customerNumber',
|
|
17
|
+
type: 'string',
|
|
18
|
+
required: true,
|
|
19
|
+
default: '',
|
|
20
|
+
displayOptions: {
|
|
21
|
+
show: {
|
|
22
|
+
resource: ['invoice'],
|
|
23
|
+
operation: ['create'],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
displayName: 'Add Parameters',
|
|
29
|
+
name: 'createParameters',
|
|
30
|
+
type: 'collection',
|
|
31
|
+
placeholder: 'Add Parameter',
|
|
32
|
+
default: {},
|
|
33
|
+
displayOptions: {
|
|
34
|
+
show: {
|
|
35
|
+
resource: ['invoice'],
|
|
36
|
+
operation: ['create'],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
options: invoiceParameters_1.invoiceParameters,
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
async function execute(i) {
|
|
43
|
+
const customerNumber = this.getNodeParameter('customerNumber', i, {});
|
|
44
|
+
const createParameters = this.getNodeParameter('createParameters', i, {});
|
|
45
|
+
const body = {
|
|
46
|
+
Invoice: {
|
|
47
|
+
CustomerNumber: customerNumber,
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
if (createParameters) {
|
|
51
|
+
for (const [key, value] of Object.entries(createParameters)) {
|
|
52
|
+
if (value !== '' && value !== undefined && value !== null) {
|
|
53
|
+
body['Invoice'][key] = value;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
const endpoint = 'invoices';
|
|
58
|
+
return await (0, transport_1.apiRequest)(this, {
|
|
59
|
+
method: 'POST',
|
|
60
|
+
endpoint: endpoint,
|
|
61
|
+
body: body,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=create.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../../nodes/fortnox/resources/invoice/operations/create.operation.ts"],"names":[],"mappings":";;;AA0CA,0BA4BC;AArED,kDAAgD;AAEhD,4DAAyD;AAE5C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,mBAAmB;IAChC,MAAM,EAAE,mBAAmB;CAC9B,CAAC;AAEW,QAAA,UAAU,GAAsB;IACzC;QACI,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACxB;SACJ;KACJ;IACD;QACI,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,eAAe;QAC5B,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACxB;SACJ;QACD,OAAO,EAAE,qCAAiB;KAC7B;CACJ,CAAC;AAEK,KAAK,UAAU,OAAO,CAEzB,CAAS;IAET,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACtE,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAE1E,MAAM,IAAI,GAAgB;QACtB,OAAO,EAAE;YACL,cAAc,EAAE,cAAc;SACjC;KACJ,CAAC;IAEF,IAAI,gBAAgB,EAAE,CAAC;QACnB,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,CAAC;YAC1D,IAAI,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBACvD,IAAI,CAAC,SAAS,CAAiB,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;YAClD,CAAC;QACL,CAAC;IACL,CAAC;IAED,MAAM,QAAQ,GAAG,UAAU,CAAC;IAE5B,OAAO,MAAM,IAAA,sBAAU,EAAwB,IAAI,EAAE;QACjD,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,IAAI;KACb,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
import { GetInvoiceResponse } from '../model';
|
|
3
|
+
export declare const description: {
|
|
4
|
+
name: string;
|
|
5
|
+
value: string;
|
|
6
|
+
description: string;
|
|
7
|
+
action: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const properties: INodeProperties[];
|
|
10
|
+
export declare function execute(this: IExecuteFunctions, i: number): Promise<GetInvoiceResponse>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.properties = exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const transport_1 = require("../../../transport");
|
|
6
|
+
exports.description = {
|
|
7
|
+
name: 'Get',
|
|
8
|
+
value: 'get',
|
|
9
|
+
description: 'Retrieve the invoice',
|
|
10
|
+
action: 'Get single document',
|
|
11
|
+
};
|
|
12
|
+
exports.properties = [
|
|
13
|
+
{
|
|
14
|
+
displayName: 'Document Number',
|
|
15
|
+
name: 'documentNumber',
|
|
16
|
+
type: 'string',
|
|
17
|
+
required: true,
|
|
18
|
+
default: '',
|
|
19
|
+
displayOptions: {
|
|
20
|
+
show: {
|
|
21
|
+
resource: ['invoice'],
|
|
22
|
+
operation: ['get'],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
async function execute(i) {
|
|
28
|
+
const documentNumber = this.getNodeParameter('documentNumber', i, '');
|
|
29
|
+
const endpoint = `invoices/${encodeURIComponent(documentNumber)}`;
|
|
30
|
+
return await (0, transport_1.apiRequest)(this, {
|
|
31
|
+
method: 'GET',
|
|
32
|
+
endpoint: endpoint,
|
|
33
|
+
}, {
|
|
34
|
+
id: documentNumber,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=get.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../../nodes/fortnox/resources/invoice/operations/get.operation.ts"],"names":[],"mappings":";;;AA2BA,0BAsBC;AAhDD,kDAAgD;AAGnC,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,KAAK;IACZ,WAAW,EAAE,sBAAsB;IACnC,MAAM,EAAE,qBAAqB;CAChC,CAAC;AAEW,QAAA,UAAU,GAAsB;IACzC;QACI,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,KAAK,CAAC;aACrB;SACJ;KACJ;CACJ,CAAC;AAEK,KAAK,UAAU,OAAO,CAEzB,CAAS;IAET,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CACxC,gBAAgB,EAChB,CAAC,EACD,EAAE,CACK,CAAC;IAEZ,MAAM,QAAQ,GAAG,YAAY,kBAAkB,CAAC,cAAc,CAAC,EAAE,CAAC;IAElE,OAAO,MAAM,IAAA,sBAAU,EACnB,IAAI,EACJ;QACI,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,QAAQ;KACrB,EACD;QACI,EAAE,EAAE,cAAc;KACrB,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
import { GetAllInvoicesResponse } from '../model';
|
|
3
|
+
export declare const description: {
|
|
4
|
+
name: string;
|
|
5
|
+
value: string;
|
|
6
|
+
description: string;
|
|
7
|
+
action: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const properties: INodeProperties[];
|
|
10
|
+
export declare function execute(this: IExecuteFunctions, i: number): Promise<GetAllInvoicesResponse>;
|