@limetech/n8n-nodes-lime 2.6.0 → 3.0.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.
Files changed (133) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/credentials/index.ts +0 -1
  3. package/dist/credentials/index.d.ts +0 -1
  4. package/dist/credentials/index.js +0 -1
  5. package/dist/credentials/index.js.map +1 -1
  6. package/dist/nodes/index.d.ts +0 -1
  7. package/dist/nodes/index.js +0 -1
  8. package/dist/nodes/index.js.map +1 -1
  9. package/dist/nodes/lime-forms/LimeFormsTrigger.node.js +3 -3
  10. package/dist/nodes/lime-forms/LimeFormsTrigger.node.js.map +1 -1
  11. package/dist/nodes/lime-forms/assets/lime-crm.svg +1 -0
  12. package/dist/package.json +0 -8
  13. package/dist/tsconfig.tsbuildinfo +1 -1
  14. package/nodes/index.ts +0 -1
  15. package/nodes/lime-forms/LimeFormsTrigger.node.ts +3 -3
  16. package/nodes/lime-forms/assets/lime-crm.svg +1 -0
  17. package/package.json +1 -9
  18. package/credentials/FortnoxApi.credentials.ts +0 -61
  19. package/dist/credentials/FortnoxApi.credentials.d.ts +0 -9
  20. package/dist/credentials/FortnoxApi.credentials.js +0 -57
  21. package/dist/credentials/FortnoxApi.credentials.js.map +0 -1
  22. package/dist/nodes/fortnox/Fortnox.node.d.ts +0 -5
  23. package/dist/nodes/fortnox/Fortnox.node.js +0 -95
  24. package/dist/nodes/fortnox/Fortnox.node.js.map +0 -1
  25. package/dist/nodes/fortnox/Fortnox.node.json +0 -18
  26. package/dist/nodes/fortnox/FortnoxTrigger.node.d.ts +0 -5
  27. package/dist/nodes/fortnox/FortnoxTrigger.node.js +0 -155
  28. package/dist/nodes/fortnox/FortnoxTrigger.node.js.map +0 -1
  29. package/dist/nodes/fortnox/FortnoxTrigger.node.json +0 -18
  30. package/dist/nodes/fortnox/commons.d.ts +0 -25
  31. package/dist/nodes/fortnox/commons.js +0 -44
  32. package/dist/nodes/fortnox/commons.js.map +0 -1
  33. package/dist/nodes/fortnox/fortnoxLogo.svg +0 -15
  34. package/dist/nodes/fortnox/index.d.ts +0 -6
  35. package/dist/nodes/fortnox/index.js +0 -23
  36. package/dist/nodes/fortnox/index.js.map +0 -1
  37. package/dist/nodes/fortnox/model.d.ts +0 -20
  38. package/dist/nodes/fortnox/model.js +0 -3
  39. package/dist/nodes/fortnox/model.js.map +0 -1
  40. package/dist/nodes/fortnox/resources/customers/filterParameters.d.ts +0 -2
  41. package/dist/nodes/fortnox/resources/customers/filterParameters.js +0 -31
  42. package/dist/nodes/fortnox/resources/customers/filterParameters.js.map +0 -1
  43. package/dist/nodes/fortnox/resources/customers/index.d.ts +0 -7
  44. package/dist/nodes/fortnox/resources/customers/index.js +0 -85
  45. package/dist/nodes/fortnox/resources/customers/index.js.map +0 -1
  46. package/dist/nodes/fortnox/resources/customers/model.d.ts +0 -99
  47. package/dist/nodes/fortnox/resources/customers/model.js +0 -3
  48. package/dist/nodes/fortnox/resources/customers/model.js.map +0 -1
  49. package/dist/nodes/fortnox/resources/customers/operations/create.operation.d.ts +0 -10
  50. package/dist/nodes/fortnox/resources/customers/operations/create.operation.js +0 -281
  51. package/dist/nodes/fortnox/resources/customers/operations/create.operation.js.map +0 -1
  52. package/dist/nodes/fortnox/resources/customers/operations/delete.operation.d.ts +0 -9
  53. package/dist/nodes/fortnox/resources/customers/operations/delete.operation.js +0 -38
  54. package/dist/nodes/fortnox/resources/customers/operations/delete.operation.js.map +0 -1
  55. package/dist/nodes/fortnox/resources/customers/operations/get.operation.d.ts +0 -10
  56. package/dist/nodes/fortnox/resources/customers/operations/get.operation.js +0 -38
  57. package/dist/nodes/fortnox/resources/customers/operations/get.operation.js.map +0 -1
  58. package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.d.ts +0 -10
  59. package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.js +0 -68
  60. package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.js.map +0 -1
  61. package/dist/nodes/fortnox/resources/customers/operations/index.d.ts +0 -5
  62. package/dist/nodes/fortnox/resources/customers/operations/index.js +0 -42
  63. package/dist/nodes/fortnox/resources/customers/operations/index.js.map +0 -1
  64. package/dist/nodes/fortnox/resources/customers/operations/update.operation.d.ts +0 -10
  65. package/dist/nodes/fortnox/resources/customers/operations/update.operation.js +0 -261
  66. package/dist/nodes/fortnox/resources/customers/operations/update.operation.js.map +0 -1
  67. package/dist/nodes/fortnox/resources/customers/sortParameters.d.ts +0 -2
  68. package/dist/nodes/fortnox/resources/customers/sortParameters.js +0 -30
  69. package/dist/nodes/fortnox/resources/customers/sortParameters.js.map +0 -1
  70. package/dist/nodes/fortnox/resources/invoice/filterParameters.d.ts +0 -2
  71. package/dist/nodes/fortnox/resources/invoice/filterParameters.js +0 -72
  72. package/dist/nodes/fortnox/resources/invoice/filterParameters.js.map +0 -1
  73. package/dist/nodes/fortnox/resources/invoice/index.d.ts +0 -7
  74. package/dist/nodes/fortnox/resources/invoice/index.js +0 -81
  75. package/dist/nodes/fortnox/resources/invoice/index.js.map +0 -1
  76. package/dist/nodes/fortnox/resources/invoice/invoiceParameters.d.ts +0 -2
  77. package/dist/nodes/fortnox/resources/invoice/invoiceParameters.js +0 -193
  78. package/dist/nodes/fortnox/resources/invoice/invoiceParameters.js.map +0 -1
  79. package/dist/nodes/fortnox/resources/invoice/model.d.ts +0 -147
  80. package/dist/nodes/fortnox/resources/invoice/model.js +0 -3
  81. package/dist/nodes/fortnox/resources/invoice/model.js.map +0 -1
  82. package/dist/nodes/fortnox/resources/invoice/operations/create.operation.d.ts +0 -10
  83. package/dist/nodes/fortnox/resources/invoice/operations/create.operation.js +0 -64
  84. package/dist/nodes/fortnox/resources/invoice/operations/create.operation.js.map +0 -1
  85. package/dist/nodes/fortnox/resources/invoice/operations/get.operation.d.ts +0 -10
  86. package/dist/nodes/fortnox/resources/invoice/operations/get.operation.js +0 -37
  87. package/dist/nodes/fortnox/resources/invoice/operations/get.operation.js.map +0 -1
  88. package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.d.ts +0 -10
  89. package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.js +0 -92
  90. package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.js.map +0 -1
  91. package/dist/nodes/fortnox/resources/invoice/operations/index.d.ts +0 -4
  92. package/dist/nodes/fortnox/resources/invoice/operations/index.js +0 -41
  93. package/dist/nodes/fortnox/resources/invoice/operations/index.js.map +0 -1
  94. package/dist/nodes/fortnox/resources/invoice/operations/update.operation.d.ts +0 -10
  95. package/dist/nodes/fortnox/resources/invoice/operations/update.operation.js +0 -64
  96. package/dist/nodes/fortnox/resources/invoice/operations/update.operation.js.map +0 -1
  97. package/dist/nodes/fortnox/transport/errorCodes.d.ts +0 -1
  98. package/dist/nodes/fortnox/transport/errorCodes.js +0 -50
  99. package/dist/nodes/fortnox/transport/errorCodes.js.map +0 -1
  100. package/dist/nodes/fortnox/transport/index.d.ts +0 -3
  101. package/dist/nodes/fortnox/transport/index.js +0 -76
  102. package/dist/nodes/fortnox/transport/index.js.map +0 -1
  103. package/dist/nodes/lime-forms/lime-forms.svg +0 -6
  104. package/nodes/fortnox/Fortnox.node.json +0 -18
  105. package/nodes/fortnox/Fortnox.node.ts +0 -102
  106. package/nodes/fortnox/FortnoxTrigger.node.json +0 -18
  107. package/nodes/fortnox/FortnoxTrigger.node.ts +0 -196
  108. package/nodes/fortnox/commons.ts +0 -94
  109. package/nodes/fortnox/fortnoxLogo.svg +0 -15
  110. package/nodes/fortnox/index.ts +0 -6
  111. package/nodes/fortnox/model.ts +0 -25
  112. package/nodes/fortnox/resources/customers/filterParameters.ts +0 -47
  113. package/nodes/fortnox/resources/customers/index.ts +0 -53
  114. package/nodes/fortnox/resources/customers/model.ts +0 -107
  115. package/nodes/fortnox/resources/customers/operations/create.operation.ts +0 -307
  116. package/nodes/fortnox/resources/customers/operations/delete.operation.ts +0 -49
  117. package/nodes/fortnox/resources/customers/operations/get.operation.ts +0 -50
  118. package/nodes/fortnox/resources/customers/operations/getAll.operation.ts +0 -79
  119. package/nodes/fortnox/resources/customers/operations/index.ts +0 -5
  120. package/nodes/fortnox/resources/customers/operations/update.operation.ts +0 -288
  121. package/nodes/fortnox/resources/customers/sortParameters.ts +0 -32
  122. package/nodes/fortnox/resources/invoice/filterParameters.ts +0 -88
  123. package/nodes/fortnox/resources/invoice/index.ts +0 -49
  124. package/nodes/fortnox/resources/invoice/invoiceParameters.ts +0 -214
  125. package/nodes/fortnox/resources/invoice/model.ts +0 -156
  126. package/nodes/fortnox/resources/invoice/operations/create.operation.ts +0 -71
  127. package/nodes/fortnox/resources/invoice/operations/get.operation.ts +0 -50
  128. package/nodes/fortnox/resources/invoice/operations/getAll.operation.ts +0 -100
  129. package/nodes/fortnox/resources/invoice/operations/index.ts +0 -4
  130. package/nodes/fortnox/resources/invoice/operations/update.operation.ts +0 -79
  131. package/nodes/fortnox/transport/errorCodes.ts +0 -62
  132. package/nodes/fortnox/transport/index.ts +0 -106
  133. package/nodes/lime-forms/lime-forms.svg +0 -6
@@ -1,81 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/fortnox/resources/invoice/index.ts"],"names":[],"mappings":";;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C,IAAI,EAAE,CAAC,CAAC,CAAC;IACtE,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AACD,+CAA6B"}
@@ -1,2 +0,0 @@
1
- import { INodeProperties } from 'n8n-workflow';
2
- export declare const invoiceParameters: INodeProperties[];
@@ -1,193 +0,0 @@
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
@@ -1 +0,0 @@
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,EAAE,kBAAkB,CAAC;YACzC,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;YACrC,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;YACrC,CAAC,cAAc,EAAE,aAAa,CAAC;SAClC;KACJ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CAAC,kBAAkB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC;IACxD,CAAC,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,CAAC;IACrD,CAAC,iBAAiB,EAAE,eAAe,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC;IACtD,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC;IAC1D,CAAC,gBAAgB,EAAE,eAAe,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC;IACrD,CAAC,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC;CAC5C,CAAC;AAEW,QAAA,iBAAiB,GAAsB;IAChD,GAAG,qBAAqB,CAAC,GAAG,CACxB,CAAC,CAAC,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,CAAC,EAAE,EAAE,CAC9D,IAAA,yBAAe,EACX,WAAW,EACX,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,WAAW,CACd,CACR;IACD,GAAG,+BAA+B,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAClD,IAAA,mCAAyB,EAAC,UAAU,CAAC,CACxC;IACD,GAAG,2BAA2B,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAC1C,IAAA,+BAAqB,EAAC,MAAM,CAAC,CAChC;CACJ,CAAC"}
@@ -1,147 +0,0 @@
1
- import { ResponseModel } from '../../model';
2
- export interface InvoiceBase {
3
- '@url': string;
4
- Balance: number;
5
- Booked: boolean;
6
- 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
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../../../nodes/fortnox/resources/invoice/model.ts"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
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>;
@@ -1,64 +0,0 @@
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
@@ -1 +0,0 @@
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;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E,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"}
@@ -1,10 +0,0 @@
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>;
@@ -1,37 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,10 +0,0 @@
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>;