@limetech/n8n-nodes-lime 2.7.0-dev.1 → 3.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.
Files changed (196) hide show
  1. package/.devcontainer/devcontainer.json +44 -0
  2. package/.devcontainer/docker-compose.yml +27 -0
  3. package/.gitattributes +34 -0
  4. package/.nvmrc +1 -0
  5. package/CHANGELOG.md +17 -5
  6. package/README.md +40 -47
  7. package/credentials/index.ts +0 -1
  8. package/dist/credentials/index.d.ts +0 -1
  9. package/dist/credentials/index.js +0 -1
  10. package/dist/credentials/index.js.map +1 -1
  11. package/dist/nodes/index.d.ts +0 -1
  12. package/dist/nodes/index.js +0 -1
  13. package/dist/nodes/index.js.map +1 -1
  14. package/dist/nodes/lime-crm/LimeCrmNode.node.d.ts +1 -4
  15. package/dist/nodes/lime-crm/LimeCrmNode.node.js +0 -3
  16. package/dist/nodes/lime-crm/LimeCrmNode.node.js.map +1 -1
  17. package/dist/nodes/lime-crm/methods/getLimetypeProperties.d.ts +0 -2
  18. package/dist/nodes/lime-crm/methods/getLimetypeProperties.js +0 -43
  19. package/dist/nodes/lime-crm/methods/getLimetypeProperties.js.map +1 -1
  20. package/dist/nodes/lime-crm/methods/index.d.ts +2 -2
  21. package/dist/nodes/lime-crm/methods/index.js +1 -4
  22. package/dist/nodes/lime-crm/methods/index.js.map +1 -1
  23. package/dist/nodes/lime-crm/methods/resourceMapping.d.ts +0 -1
  24. package/dist/nodes/lime-crm/methods/resourceMapping.js +0 -46
  25. package/dist/nodes/lime-crm/methods/resourceMapping.js.map +1 -1
  26. package/dist/nodes/lime-crm/models/limetype.d.ts +0 -1
  27. package/dist/nodes/lime-crm/resources/data/index.d.ts +1 -1
  28. package/dist/nodes/lime-crm/resources/data/index.js +0 -20
  29. package/dist/nodes/lime-crm/resources/data/index.js.map +1 -1
  30. package/dist/nodes/lime-crm/resources/data/operations/index.d.ts +0 -4
  31. package/dist/nodes/lime-crm/resources/data/operations/index.js +1 -5
  32. package/dist/nodes/lime-crm/resources/data/operations/index.js.map +1 -1
  33. package/dist/nodes/lime-crm/transport/index.d.ts +0 -1
  34. package/dist/nodes/lime-crm/transport/index.js +1 -6
  35. package/dist/nodes/lime-crm/transport/index.js.map +1 -1
  36. package/dist/nodes/lime-crm/transport/limetypes.js +4 -15
  37. package/dist/nodes/lime-crm/transport/limetypes.js.map +1 -1
  38. package/dist/nodes/lime-forms/LimeFormsTrigger.node.js +3 -3
  39. package/dist/nodes/lime-forms/LimeFormsTrigger.node.js.map +1 -1
  40. package/dist/nodes/lime-forms/assets/lime-crm.svg +1 -0
  41. package/dist/package.json +5 -12
  42. package/dist/tsconfig.tsbuildinfo +1 -1
  43. package/nodes/index.ts +0 -1
  44. package/nodes/lime-crm/LimeCrmNode.node.ts +0 -6
  45. package/nodes/lime-crm/methods/getLimetypeProperties.ts +0 -84
  46. package/nodes/lime-crm/methods/index.ts +0 -3
  47. package/nodes/lime-crm/methods/resourceMapping.ts +0 -76
  48. package/nodes/lime-crm/models/limetype.ts +0 -1
  49. package/nodes/lime-crm/resources/data/index.ts +1 -34
  50. package/nodes/lime-crm/resources/data/operations/index.ts +0 -17
  51. package/nodes/lime-crm/transport/index.ts +0 -8
  52. package/nodes/lime-crm/transport/limetypes.ts +8 -26
  53. package/nodes/lime-forms/LimeFormsTrigger.node.ts +3 -3
  54. package/nodes/lime-forms/assets/lime-crm.svg +1 -0
  55. package/package.json +6 -13
  56. package/credentials/FortnoxApi.credentials.ts +0 -61
  57. package/dist/credentials/FortnoxApi.credentials.d.ts +0 -9
  58. package/dist/credentials/FortnoxApi.credentials.js +0 -57
  59. package/dist/credentials/FortnoxApi.credentials.js.map +0 -1
  60. package/dist/nodes/fortnox/Fortnox.node.d.ts +0 -5
  61. package/dist/nodes/fortnox/Fortnox.node.js +0 -95
  62. package/dist/nodes/fortnox/Fortnox.node.js.map +0 -1
  63. package/dist/nodes/fortnox/Fortnox.node.json +0 -18
  64. package/dist/nodes/fortnox/FortnoxTrigger.node.d.ts +0 -5
  65. package/dist/nodes/fortnox/FortnoxTrigger.node.js +0 -155
  66. package/dist/nodes/fortnox/FortnoxTrigger.node.js.map +0 -1
  67. package/dist/nodes/fortnox/FortnoxTrigger.node.json +0 -18
  68. package/dist/nodes/fortnox/commons.d.ts +0 -25
  69. package/dist/nodes/fortnox/commons.js +0 -44
  70. package/dist/nodes/fortnox/commons.js.map +0 -1
  71. package/dist/nodes/fortnox/fortnoxLogo.svg +0 -15
  72. package/dist/nodes/fortnox/index.d.ts +0 -6
  73. package/dist/nodes/fortnox/index.js +0 -23
  74. package/dist/nodes/fortnox/index.js.map +0 -1
  75. package/dist/nodes/fortnox/model.d.ts +0 -20
  76. package/dist/nodes/fortnox/model.js +0 -3
  77. package/dist/nodes/fortnox/model.js.map +0 -1
  78. package/dist/nodes/fortnox/resources/customers/filterParameters.d.ts +0 -2
  79. package/dist/nodes/fortnox/resources/customers/filterParameters.js +0 -31
  80. package/dist/nodes/fortnox/resources/customers/filterParameters.js.map +0 -1
  81. package/dist/nodes/fortnox/resources/customers/index.d.ts +0 -7
  82. package/dist/nodes/fortnox/resources/customers/index.js +0 -85
  83. package/dist/nodes/fortnox/resources/customers/index.js.map +0 -1
  84. package/dist/nodes/fortnox/resources/customers/model.d.ts +0 -99
  85. package/dist/nodes/fortnox/resources/customers/model.js +0 -3
  86. package/dist/nodes/fortnox/resources/customers/model.js.map +0 -1
  87. package/dist/nodes/fortnox/resources/customers/operations/create.operation.d.ts +0 -10
  88. package/dist/nodes/fortnox/resources/customers/operations/create.operation.js +0 -281
  89. package/dist/nodes/fortnox/resources/customers/operations/create.operation.js.map +0 -1
  90. package/dist/nodes/fortnox/resources/customers/operations/delete.operation.d.ts +0 -9
  91. package/dist/nodes/fortnox/resources/customers/operations/delete.operation.js +0 -38
  92. package/dist/nodes/fortnox/resources/customers/operations/delete.operation.js.map +0 -1
  93. package/dist/nodes/fortnox/resources/customers/operations/get.operation.d.ts +0 -10
  94. package/dist/nodes/fortnox/resources/customers/operations/get.operation.js +0 -38
  95. package/dist/nodes/fortnox/resources/customers/operations/get.operation.js.map +0 -1
  96. package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.d.ts +0 -10
  97. package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.js +0 -68
  98. package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.js.map +0 -1
  99. package/dist/nodes/fortnox/resources/customers/operations/index.d.ts +0 -5
  100. package/dist/nodes/fortnox/resources/customers/operations/index.js +0 -42
  101. package/dist/nodes/fortnox/resources/customers/operations/index.js.map +0 -1
  102. package/dist/nodes/fortnox/resources/customers/operations/update.operation.d.ts +0 -10
  103. package/dist/nodes/fortnox/resources/customers/operations/update.operation.js +0 -261
  104. package/dist/nodes/fortnox/resources/customers/operations/update.operation.js.map +0 -1
  105. package/dist/nodes/fortnox/resources/customers/sortParameters.d.ts +0 -2
  106. package/dist/nodes/fortnox/resources/customers/sortParameters.js +0 -30
  107. package/dist/nodes/fortnox/resources/customers/sortParameters.js.map +0 -1
  108. package/dist/nodes/fortnox/resources/invoice/filterParameters.d.ts +0 -2
  109. package/dist/nodes/fortnox/resources/invoice/filterParameters.js +0 -72
  110. package/dist/nodes/fortnox/resources/invoice/filterParameters.js.map +0 -1
  111. package/dist/nodes/fortnox/resources/invoice/index.d.ts +0 -7
  112. package/dist/nodes/fortnox/resources/invoice/index.js +0 -81
  113. package/dist/nodes/fortnox/resources/invoice/index.js.map +0 -1
  114. package/dist/nodes/fortnox/resources/invoice/invoiceParameters.d.ts +0 -2
  115. package/dist/nodes/fortnox/resources/invoice/invoiceParameters.js +0 -193
  116. package/dist/nodes/fortnox/resources/invoice/invoiceParameters.js.map +0 -1
  117. package/dist/nodes/fortnox/resources/invoice/model.d.ts +0 -147
  118. package/dist/nodes/fortnox/resources/invoice/model.js +0 -3
  119. package/dist/nodes/fortnox/resources/invoice/model.js.map +0 -1
  120. package/dist/nodes/fortnox/resources/invoice/operations/create.operation.d.ts +0 -10
  121. package/dist/nodes/fortnox/resources/invoice/operations/create.operation.js +0 -64
  122. package/dist/nodes/fortnox/resources/invoice/operations/create.operation.js.map +0 -1
  123. package/dist/nodes/fortnox/resources/invoice/operations/get.operation.d.ts +0 -10
  124. package/dist/nodes/fortnox/resources/invoice/operations/get.operation.js +0 -37
  125. package/dist/nodes/fortnox/resources/invoice/operations/get.operation.js.map +0 -1
  126. package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.d.ts +0 -10
  127. package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.js +0 -92
  128. package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.js.map +0 -1
  129. package/dist/nodes/fortnox/resources/invoice/operations/index.d.ts +0 -4
  130. package/dist/nodes/fortnox/resources/invoice/operations/index.js +0 -41
  131. package/dist/nodes/fortnox/resources/invoice/operations/index.js.map +0 -1
  132. package/dist/nodes/fortnox/resources/invoice/operations/update.operation.d.ts +0 -10
  133. package/dist/nodes/fortnox/resources/invoice/operations/update.operation.js +0 -64
  134. package/dist/nodes/fortnox/resources/invoice/operations/update.operation.js.map +0 -1
  135. package/dist/nodes/fortnox/transport/errorCodes.d.ts +0 -1
  136. package/dist/nodes/fortnox/transport/errorCodes.js +0 -50
  137. package/dist/nodes/fortnox/transport/errorCodes.js.map +0 -1
  138. package/dist/nodes/fortnox/transport/index.d.ts +0 -3
  139. package/dist/nodes/fortnox/transport/index.js +0 -76
  140. package/dist/nodes/fortnox/transport/index.js.map +0 -1
  141. package/dist/nodes/lime-crm/resources/data/operations/bulkImportCommons.d.ts +0 -5
  142. package/dist/nodes/lime-crm/resources/data/operations/bulkImportCommons.js +0 -230
  143. package/dist/nodes/lime-crm/resources/data/operations/bulkImportCommons.js.map +0 -1
  144. package/dist/nodes/lime-crm/resources/data/operations/createManyObjects.operation.d.ts +0 -9
  145. package/dist/nodes/lime-crm/resources/data/operations/createManyObjects.operation.js +0 -16
  146. package/dist/nodes/lime-crm/resources/data/operations/createManyObjects.operation.js.map +0 -1
  147. package/dist/nodes/lime-crm/resources/data/operations/createOrUpdateManyObjects.operation.d.ts +0 -9
  148. package/dist/nodes/lime-crm/resources/data/operations/createOrUpdateManyObjects.operation.js +0 -16
  149. package/dist/nodes/lime-crm/resources/data/operations/createOrUpdateManyObjects.operation.js.map +0 -1
  150. package/dist/nodes/lime-crm/resources/data/operations/deprecated-startBulkImport.operation.d.ts +0 -9
  151. package/dist/nodes/lime-crm/resources/data/operations/deprecated-startBulkImport.operation.js +0 -241
  152. package/dist/nodes/lime-crm/resources/data/operations/deprecated-startBulkImport.operation.js.map +0 -1
  153. package/dist/nodes/lime-crm/resources/data/operations/updateManyObjects.operation.d.ts +0 -9
  154. package/dist/nodes/lime-crm/resources/data/operations/updateManyObjects.operation.js +0 -16
  155. package/dist/nodes/lime-crm/resources/data/operations/updateManyObjects.operation.js.map +0 -1
  156. package/dist/nodes/lime-crm/transport/bulkimport.d.ts +0 -41
  157. package/dist/nodes/lime-crm/transport/bulkimport.js +0 -86
  158. package/dist/nodes/lime-crm/transport/bulkimport.js.map +0 -1
  159. package/dist/nodes/lime-forms/lime-forms.svg +0 -6
  160. package/docker-compose.yml +0 -0
  161. package/nodes/fortnox/Fortnox.node.json +0 -18
  162. package/nodes/fortnox/Fortnox.node.ts +0 -102
  163. package/nodes/fortnox/FortnoxTrigger.node.json +0 -18
  164. package/nodes/fortnox/FortnoxTrigger.node.ts +0 -196
  165. package/nodes/fortnox/commons.ts +0 -94
  166. package/nodes/fortnox/fortnoxLogo.svg +0 -15
  167. package/nodes/fortnox/index.ts +0 -6
  168. package/nodes/fortnox/model.ts +0 -25
  169. package/nodes/fortnox/resources/customers/filterParameters.ts +0 -47
  170. package/nodes/fortnox/resources/customers/index.ts +0 -53
  171. package/nodes/fortnox/resources/customers/model.ts +0 -107
  172. package/nodes/fortnox/resources/customers/operations/create.operation.ts +0 -307
  173. package/nodes/fortnox/resources/customers/operations/delete.operation.ts +0 -49
  174. package/nodes/fortnox/resources/customers/operations/get.operation.ts +0 -50
  175. package/nodes/fortnox/resources/customers/operations/getAll.operation.ts +0 -79
  176. package/nodes/fortnox/resources/customers/operations/index.ts +0 -5
  177. package/nodes/fortnox/resources/customers/operations/update.operation.ts +0 -288
  178. package/nodes/fortnox/resources/customers/sortParameters.ts +0 -32
  179. package/nodes/fortnox/resources/invoice/filterParameters.ts +0 -88
  180. package/nodes/fortnox/resources/invoice/index.ts +0 -49
  181. package/nodes/fortnox/resources/invoice/invoiceParameters.ts +0 -214
  182. package/nodes/fortnox/resources/invoice/model.ts +0 -156
  183. package/nodes/fortnox/resources/invoice/operations/create.operation.ts +0 -71
  184. package/nodes/fortnox/resources/invoice/operations/get.operation.ts +0 -50
  185. package/nodes/fortnox/resources/invoice/operations/getAll.operation.ts +0 -100
  186. package/nodes/fortnox/resources/invoice/operations/index.ts +0 -4
  187. package/nodes/fortnox/resources/invoice/operations/update.operation.ts +0 -79
  188. package/nodes/fortnox/transport/errorCodes.ts +0 -62
  189. package/nodes/fortnox/transport/index.ts +0 -106
  190. package/nodes/lime-crm/resources/data/operations/bulkImportCommons.ts +0 -323
  191. package/nodes/lime-crm/resources/data/operations/createManyObjects.operation.ts +0 -44
  192. package/nodes/lime-crm/resources/data/operations/createOrUpdateManyObjects.operation.ts +0 -44
  193. package/nodes/lime-crm/resources/data/operations/deprecated-startBulkImport.operation.ts +0 -364
  194. package/nodes/lime-crm/resources/data/operations/updateManyObjects.operation.ts +0 -44
  195. package/nodes/lime-crm/transport/bulkimport.ts +0 -271
  196. package/nodes/lime-forms/lime-forms.svg +0 -6
@@ -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: 'Update',
9
- value: 'update',
10
- description: 'Update the invoice',
11
- action: 'Update the document',
12
- };
13
- exports.properties = [
14
- {
15
- displayName: 'Document Number',
16
- name: 'documentNumber',
17
- type: 'string',
18
- required: true,
19
- default: '',
20
- displayOptions: {
21
- show: {
22
- resource: ['invoice'],
23
- operation: ['update'],
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: ['update'],
37
- },
38
- },
39
- options: invoiceParameters_1.invoiceParameters,
40
- },
41
- ];
42
- async function execute(i) {
43
- const documentNumber = this.getNodeParameter('documentNumber', i, {});
44
- const updateParameters = this.getNodeParameter('invoiceParameters', i, {});
45
- const body = {
46
- Invoice: {},
47
- };
48
- if (updateParameters) {
49
- for (const [key, value] of Object.entries(updateParameters)) {
50
- if (value !== '' && value !== undefined && value !== null) {
51
- body['Invoice'][key] = value;
52
- }
53
- }
54
- }
55
- const endpoint = `invoices/${encodeURIComponent(documentNumber)}`;
56
- return await (0, transport_1.apiRequest)(this, {
57
- method: 'PUT',
58
- endpoint: endpoint,
59
- body: body,
60
- }, {
61
- id: documentNumber,
62
- });
63
- }
64
- //# sourceMappingURL=update.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../../nodes/fortnox/resources/invoice/operations/update.operation.ts"],"names":[],"mappings":";;;AA0CA,0BAoCC;AA7ED,kDAAgD;AAEhD,4DAAyD;AAE5C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,oBAAoB;IACjC,MAAM,EAAE,qB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AAQ,GAAG,YAAY,kBAAkB,CAAC,cAAc,CAAC,EAAE,CAAC;IAElE,OAAO,MAAM,IAAA,sBAAU,EACnB,IAAI,EACJ;QACI,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,IAAI;KACb,EACD;QACI,EAAE,EAAE,cAAc;KACrB,CACJ,CAAC;AACN,CAAC"}
@@ -1 +0,0 @@
1
- export declare function translateErrorCode(errorCode: number): string;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.translateErrorCode = translateErrorCode;
4
- const errorMessages = {
5
- 1000003: 'System exception: Something went wrong on our end, please contact our support',
6
- 1000030: 'Invalid response type: The provided response type(Accept) was invalid.',
7
- 1000031: 'Invalid content type: The provided content type was invalid.',
8
- 2000106: 'The value needs to be alphanumeric.',
9
- 2000108: 'The value needs to be numeric.',
10
- 2000134: 'The value needs to be boolean',
11
- 2000310: 'The Client-Secret or the Access-Token is either missing or is incorrect.',
12
- 2000311: 'The Client-Secret or the Access-Token is either missing or is incorrect.',
13
- 2000359: 'The value contains invalid characters.',
14
- 2000588: 'A parameter is invalid. Read more about parameters in the Parameters page.',
15
- 2000637: 'Customer number 1 is/has already been used and is reserved even if it has been deleted.',
16
- 2000729: 'A valid identifier was not provided.',
17
- 2001103: 'The requested Fortnox account does not have a license to use the API.',
18
- 2001392: 'The request body was empty or contained incorrect data.',
19
- 2001740: 'The XML object contained an error.',
20
- 2002115: 'The JSON object contained an error.',
21
- 2001304: 'Could not find Account used in the request/attached to an element.',
22
- 2001399: 'Invalid Field name',
23
- 2001101: 'There is no active licens for the desired scope.',
24
- 2000663: 'No access to the current scope.',
25
- 2003095: 'Account is missing for Purchase SE reversed tax liability, in predefined accounts.',
26
- 2000755: 'Supplier invoice debit and credit does not balance',
27
- 2003115: 'Tax Rows for VAT type REVERSE must be marked with CODE',
28
- 2003124: 'Only order that has been delivered can be marked as warehouseready',
29
- 2003125: 'A document that has been set to warehouseready can not be modified.',
30
- 2003126: 'Delviered date can not be later than todays date.',
31
- 2003241: 'Migration has allready been started or finished.',
32
- 2003275: 'Not authorized',
33
- 2003277: 'Was not found in the warehouse module.',
34
- 2003399: 'The document is voided in the warehouse module',
35
- 2003127: 'An error has occured in the warehouse module',
36
- 2000204: 'The customer in the request is not available in the customer resource.',
37
- 2000433: 'The customer in the request is not available in the customer resource.',
38
- 2001302: 'Could not find article used in request',
39
- 2000428: 'Could not find article used in request',
40
- 2000865: 'An incorrect sort field has been used.',
41
- 2000587: 'An invalid filter has been used.',
42
- 2001422: 'Invalid currency.',
43
- 2004195: 'VAT number must be entered for selected VAT type.',
44
- 2004194: 'Invalid VAT number.',
45
- 2001314: 'Invalid cost center.',
46
- };
47
- function translateErrorCode(errorCode) {
48
- return errorMessages[errorCode] || 'Unknown error code';
49
- }
50
- //# sourceMappingURL=errorCodes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errorCodes.js","sourceRoot":"","sources":["../../../../nodes/fortnox/transport/errorCodes.ts"],"names":[],"mappings":";;AA2DA,gDAEC;AA3DD,MAAM,aAAa,GAA8B;IAC7C,OAAO,EACH,+EAA+E;IACnF,OAAO,EACH,wEAAwE;IAC5E,OAAO,EAAE,8DAA8D;IACvE,OAAO,EAAE,qCAAqC;IAC9C,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,+BAA+B;IACxC,OAAO,EACH,0EAA0E;IAC9E,OAAO,EACH,0EAA0E;IAC9E,OAAO,EAAE,wCAAwC;IACjD,OAAO,EACH,4EAA4E;IAChF,OAAO,EACH,yFAAyF;IAC7F,OAAO,EAAE,sCAAsC;IAC/C,OAAO,EACH,uEAAuE;IAC3E,OAAO,EAAE,yDAAyD;IAClE,OAAO,EAAE,oCAAoC;IAC7C,OAAO,EAAE,qCAAqC;IAC9C,OAAO,EACH,oEAAoE;IACxE,OAAO,EAAE,oBAAoB;IAC7B,OAAO,EAAE,kDAAkD;IAC3D,OAAO,EAAE,iCAAiC;IAC1C,OAAO,EACH,oFAAoF;IACxF,OAAO,EAAE,oDAAoD;IAC7D,OAAO,EAAE,wDAAwD;IACjE,OAAO,EACH,oEAAoE;IACxE,OAAO,EACH,qEAAqE;IACzE,OAAO,EAAE,mDAAmD;IAC5D,OAAO,EAAE,kDAAkD;IAC3D,OAAO,EAAE,gBAAgB;IACzB,OAAO,EAAE,wCAAwC;IACjD,OAAO,EAAE,gDAAgD;IACzD,OAAO,EAAE,8CAA8C;IACvD,OAAO,EACH,wEAAwE;IAC5E,OAAO,EACH,wEAAwE;IAC5E,OAAO,EAAE,wCAAwC;IACjD,OAAO,EAAE,wCAAwC;IACjD,OAAO,EAAE,wCAAwC;IACjD,OAAO,EAAE,kCAAkC;IAC3C,OAAO,EAAE,mBAAmB;IAC5B,OAAO,EAAE,mDAAmD;IAC5D,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,sBAAsB;CAClC,CAAC;AAEF,SAAgB,kBAAkB,CAAC,SAAiB;IAChD,OAAO,aAAa,CAAC,SAAS,CAAC,IAAI,oBAAoB,CAAC;AAC5D,CAAC"}
@@ -1,3 +0,0 @@
1
- import { IExecuteFunctions, ILoadOptionsFunctions, IDataObject } from 'n8n-workflow';
2
- export declare const FORTNOX_BASE_URL = "https://api.fortnox.se/3/";
3
- export declare function apiRequest<T>(nodeContext: IExecuteFunctions | ILoadOptionsFunctions, options: IDataObject, errorMetadata?: Record<string, unknown>): Promise<T>;
@@ -1,76 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FORTNOX_BASE_URL = void 0;
4
- exports.apiRequest = apiRequest;
5
- const n8n_workflow_1 = require("n8n-workflow");
6
- const errorCodes_1 = require("./errorCodes");
7
- const commons_1 = require("../commons");
8
- exports.FORTNOX_BASE_URL = 'https://api.fortnox.se/3/';
9
- async function apiRequest(nodeContext, options, errorMetadata) {
10
- var _a;
11
- const endpoint = options.endpoint;
12
- const method = options.method;
13
- const credentials = await nodeContext.getCredentials(commons_1.FORTNOX_API_CREDENTIAL_KEY);
14
- const requestOptions = {
15
- method: method,
16
- uri: `${exports.FORTNOX_BASE_URL}${endpoint}`,
17
- json: true,
18
- headers: {
19
- Authorization: `Bearer ${credentials.token}`,
20
- Accept: 'application/json',
21
- 'Content-Type': 'application/json',
22
- },
23
- };
24
- if (options.qs && Object.keys(options.qs).length > 0) {
25
- requestOptions.qs = options.qs;
26
- }
27
- if (options.body) {
28
- requestOptions.body = options.body;
29
- }
30
- if (options.timeout) {
31
- requestOptions.timeout = options.timeout;
32
- }
33
- const fullUrl = `${requestOptions.uri}${requestOptions.qs ? '?' + new URLSearchParams(requestOptions.qs).toString() : ''}`;
34
- n8n_workflow_1.LoggerProxy.info(`URL: ${fullUrl}`);
35
- try {
36
- return await nodeContext.helpers.request.call(nodeContext, commons_1.FORTNOX_API_CREDENTIAL_KEY, requestOptions);
37
- }
38
- catch (error) {
39
- const errorResponse = error.error || {
40
- ErrorInformation: {},
41
- };
42
- const errorInformation = (errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.ErrorInformation) && {
43
- error: errorResponse.ErrorInformation.error ||
44
- errorResponse.ErrorInformation.Error,
45
- message: errorResponse.ErrorInformation.message ||
46
- errorResponse.ErrorInformation.Message,
47
- code: errorResponse.ErrorInformation.code ||
48
- errorResponse.ErrorInformation.Code,
49
- };
50
- let message;
51
- if (errorInformation) {
52
- message = `API request failed [URL: ${fullUrl}][Method: ${method}]\n
53
- [Error Information:\n
54
- - Error: ${errorInformation.error || 'Unknown error'}\n
55
- - Message: ${errorInformation.message || 'No message provided'}\n
56
- - Code: ${errorInformation.code || 'No code provided'}\n
57
- - Code Translation: ${(0, errorCodes_1.translateErrorCode)(errorInformation.code) || 'No translation available'}\n
58
- ]`;
59
- }
60
- else {
61
- message = `API request failed [URL: ${fullUrl}][Method: ${method}]: ${error.message}`;
62
- }
63
- const errorContext = {
64
- error: message,
65
- status: (_a = error === null || error === void 0 ? void 0 : error.cause) === null || _a === void 0 ? void 0 : _a.status,
66
- metadata: {
67
- qs: options === null || options === void 0 ? void 0 : options.qs,
68
- body: options === null || options === void 0 ? void 0 : options.body,
69
- timeout: options === null || options === void 0 ? void 0 : options.timeout,
70
- ...errorMetadata,
71
- },
72
- };
73
- throw new n8n_workflow_1.NodeOperationError(nodeContext.getNode(), JSON.stringify(errorContext));
74
- }
75
- }
76
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/fortnox/transport/index.ts"],"names":[],"mappings":";;;AAeA,gCA0FC;AAzGD,+CAQsB;AACtB,6CAAkD;AAElD,wCAAwD;AAE3C,QAAA,gBAAgB,GAAG,2BAA2B,CAAC;AAErD,KAAK,UAAU,UAAU,CAC5B,WAAsD,EACtD,OAAoB,EACpB,aAAuC;;IAEvC,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IAClC,MAAM,MAAM,GAAG,OAAO,CAAC,MAA6B,CAAC;IACrD,MAAM,WAAW,GAAG,MAAM,WAAW,CAAC,cAAc,CAChD,oCAA0B,CAC7B,CAAC;IAEF,MAAM,cAAc,GAAoB;QACpC,MAAM,EAAE,MAAM;QACd,GAAG,EAAE,GAAG,wBAAgB,GAAG,QAAQ,EAAE;QACrC,IAAI,EAAE,IAAI;QACV,OAAO,EAAE;YACL,aAAa,EAAE,UAAU,WAAW,CAAC,KAAK,EAAE;YAC5C,MAAM,EAAE,kBAAkB;YAC1B,cAAc,EAAE,kBAAkB;SACrC;KACJ,CAAC;IAEF,IAAI,OAAO,CAAC,EAAE,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACnD,cAAc,CAAC,EAAE,GAAG,OAAO,CAAC,EAAiB,CAAC;IAClD,CAAC;IAED,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;QACf,cAAc,CAAC,IAAI,GAAG,OAAO,CAAC,I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AI,kBAAkB;0CAC/B,IAAA,+BAAkB,EAAC,gBAAgB,CAAC,IAAc,CAAC,IAAI,0BAA0B;kBACzG,CAAC;QACX,CAAC;aAAM,CAAC;YACJ,OAAO,GAAG,4BAA4B,OAAO,aAAa,MAAM,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;QAC1F,CAAC;QACD,MAAM,YAAY,GAAG;YACjB,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,0CAAE,MAAM;YAC5B,QAAQ,EAAE;gBACN,EAAE,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,EAAE;gBACf,IAAI,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI;gBACnB,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;gBACzB,GAAG,aAAa;aACnB;SACJ,CAAC;QACF,MAAM,IAAI,iCAAkB,CACxB,WAAW,CAAC,OAAO,EAAE,EACrB,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAC/B,CAAC;IACN,CAAC;AACL,CAAC"}
@@ -1,5 +0,0 @@
1
- import { IDataObject, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
- import { BulkImportMode } from '../../../transport/bulkimport';
3
- export type BulkImportOperationName = 'createManyObjects' | 'createOrUpdateManyObjects' | 'updateManyObjects';
4
- export declare function getBulkImportProperties(operationName: BulkImportOperationName, matchingPropertyRequired: boolean): INodeProperties[];
5
- export declare function executeBulkImport(context: IExecuteFunctions, i: number, mode: BulkImportMode): Promise<IDataObject | undefined>;
@@ -1,230 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBulkImportProperties = getBulkImportProperties;
4
- exports.executeBulkImport = executeBulkImport;
5
- const n8n_workflow_1 = require("n8n-workflow");
6
- const models_1 = require("../../../models");
7
- const bulkimport_1 = require("../../../transport/bulkimport");
8
- const methods_1 = require("../../../methods");
9
- function getBulkImportProperties(operationName, matchingPropertyRequired) {
10
- return [
11
- {
12
- displayName: '<h1>Alpha</h1>' +
13
- 'This feature is in alpha and will eventually change and require manual fixes to this node.<br>' +
14
- '<br>' +
15
- 'The package <b>limepkg-mbeku-bulk-import >=1.4.1,<2.0.</b> must be installed in the solution.<br>' +
16
- '<br>' +
17
- '⚠️ Skips business logic such as automations, custom lime objects, webhooks and sql-on-update.',
18
- name: 'alphaNotice',
19
- type: 'notice',
20
- displayOptions: {
21
- show: {
22
- resource: [models_1.DATA_RESOURCE],
23
- operation: [operationName],
24
- },
25
- },
26
- default: '',
27
- },
28
- {
29
- displayName: 'Limetype',
30
- name: 'limetype',
31
- type: 'options',
32
- typeOptions: {
33
- loadOptionsMethod: 'getLimetypes',
34
- },
35
- required: true,
36
- default: '',
37
- description: 'The type of object to import',
38
- displayOptions: {
39
- show: {
40
- resource: [models_1.DATA_RESOURCE],
41
- operation: [operationName],
42
- },
43
- },
44
- },
45
- {
46
- displayName: 'Matching Property',
47
- name: 'matchingProperty',
48
- type: 'options',
49
- typeOptions: {
50
- loadOptionsMethod: 'getNoHasManyProperties',
51
- loadOptionsDependsOn: ['limetype'],
52
- },
53
- required: matchingPropertyRequired,
54
- default: '',
55
- description: matchingPropertyRequired
56
- ? 'The property to use to match existing objects. Must be a unique property.'
57
- : 'Optional: The property to use to match existing objects. If set, objects matching an existing record will be skipped.',
58
- displayOptions: {
59
- show: {
60
- resource: [models_1.DATA_RESOURCE],
61
- operation: [operationName],
62
- },
63
- },
64
- },
65
- {
66
- displayName: 'Input Method',
67
- name: 'inputMethod',
68
- type: 'options',
69
- options: [
70
- {
71
- name: 'Form Fields',
72
- value: 'fields',
73
- description: 'Define fields using the UI',
74
- },
75
- {
76
- name: 'JSON',
77
- value: 'json',
78
- description: 'Define fields using JSON',
79
- },
80
- ],
81
- default: 'fields',
82
- description: 'How to input the data',
83
- displayOptions: {
84
- show: {
85
- resource: [models_1.DATA_RESOURCE],
86
- operation: [operationName],
87
- },
88
- },
89
- },
90
- {
91
- displayName: 'Object (JSON)',
92
- name: 'objectJson',
93
- type: 'json',
94
- default: '{\n "name": "Company Name",\n "phone": "+987654321"\n}',
95
- description: 'Object data in JSON format. Property names must match the Lime CRM field names.',
96
- typeOptions: {
97
- alwaysOpenEditWindow: true,
98
- },
99
- displayOptions: {
100
- show: {
101
- resource: [models_1.DATA_RESOURCE],
102
- operation: [operationName],
103
- inputMethod: ['json'],
104
- },
105
- },
106
- },
107
- {
108
- displayName: 'Properties',
109
- name: 'properties',
110
- type: 'resourceMapper',
111
- placeholder: 'Add Property',
112
- typeOptions: {
113
- resourceMapper: {
114
- resourceMapperMethod: 'getCreateMappingColumns',
115
- mode: 'add',
116
- addAllFields: false,
117
- supportAutoMap: false,
118
- },
119
- loadOptionsDependsOn: ['limetype'],
120
- },
121
- default: {
122
- value: null,
123
- },
124
- displayOptions: {
125
- show: {
126
- resource: [models_1.DATA_RESOURCE],
127
- operation: [operationName],
128
- inputMethod: ['fields'],
129
- },
130
- },
131
- },
132
- {
133
- displayName: 'Relation Lookups',
134
- name: 'relationLookups',
135
- type: 'resourceMapper',
136
- placeholder: 'Add Relation Lookup',
137
- description: 'For relation fields (belongsto/hasone), specify which property on the related object to use for matching.',
138
- typeOptions: {
139
- resourceMapper: {
140
- resourceMapperMethod: 'getRelationLookupMappingColumns',
141
- mode: 'add',
142
- addAllFields: true,
143
- supportAutoMap: false,
144
- valuesLabel: 'Relation Lookups',
145
- },
146
- loadOptionsDependsOn: ['limetype'],
147
- },
148
- default: {
149
- value: null,
150
- },
151
- displayOptions: {
152
- show: {
153
- resource: [models_1.DATA_RESOURCE],
154
- operation: [operationName],
155
- inputMethod: ['fields'],
156
- },
157
- },
158
- },
159
- ];
160
- }
161
- function getPropertiesFromJson(jsonData) {
162
- const parsed = JSON.parse(jsonData);
163
- return Object.keys(parsed);
164
- }
165
- async function executeBulkImport(context, i, mode) {
166
- var _a, _b;
167
- if (i > 0) {
168
- return undefined;
169
- }
170
- const limetype = context.getNodeParameter('limetype', i);
171
- const inputMethod = context.getNodeParameter('inputMethod', i);
172
- const items = context.getInputData();
173
- const matchingProperty = context.getNodeParameter('matchingProperty', i, '');
174
- n8n_workflow_1.LoggerProxy.info(`Preparing bulk import (${mode}) of ${items.length} objects for limetype: ${limetype}`);
175
- let propertiesToImport;
176
- if (inputMethod === 'json') {
177
- propertiesToImport = getPropertiesFromJson(context.getNodeParameter('objectJson', 0));
178
- }
179
- else {
180
- const firstItemData = (0, methods_1.parseResourceMapperFields)(context, 0, 'properties');
181
- propertiesToImport = Object.keys(firstItemData);
182
- const relationLookupsData = (0, methods_1.parseResourceMapperFields)(context, 0, 'relationLookups');
183
- const lookupMap = new Map();
184
- for (const [relationProp, lookupProp] of Object.entries(relationLookupsData)) {
185
- if (lookupProp && typeof lookupProp === 'string') {
186
- lookupMap.set(relationProp, `${relationProp}.${lookupProp}`);
187
- }
188
- }
189
- propertiesToImport = propertiesToImport.map((prop) => lookupMap.get(prop) || prop);
190
- }
191
- n8n_workflow_1.LoggerProxy.info(`Properties to import: ${propertiesToImport.join(', ')}`);
192
- const body = items.map((_, idx) => {
193
- if (inputMethod === 'json') {
194
- return JSON.parse(context.getNodeParameter('objectJson', idx));
195
- }
196
- const data = (0, methods_1.parseResourceMapperFields)(context, idx, 'properties');
197
- return { values: data };
198
- });
199
- const jobPayload = {
200
- mode,
201
- limetype,
202
- ...(matchingProperty && { matchingProperty }),
203
- properties: propertiesToImport,
204
- };
205
- const jobResponse = await (0, bulkimport_1.createBulkImportJob)(context, jobPayload);
206
- const jobId = jobResponse.id;
207
- await (0, bulkimport_1.uploadBulkImportData)(context, jobId, body);
208
- const finalStatus = await (0, bulkimport_1.waitForBulkImportJob)(context, jobId, 2500);
209
- if (finalStatus.status === 'failed') {
210
- throw new n8n_workflow_1.NodeOperationError(context.getNode(), 'The bulk import job failed', {
211
- message: 'The bulk import job failed due to a server error.',
212
- description: `Bulk import job with ID ${jobId} has failed. Check the Lime CRM server for more details.`,
213
- });
214
- }
215
- return {
216
- jobId,
217
- status: finalStatus.status,
218
- startedAt: finalStatus.startedAt,
219
- finishedAt: finalStatus.endedAt,
220
- summary: finalStatus.result || {
221
- total: 0,
222
- created: 0,
223
- updated: 0,
224
- skipped: 0,
225
- failed: 0,
226
- },
227
- taskId: ((_a = finalStatus.extras) === null || _a === void 0 ? void 0 : _a.task_id) || ((_b = finalStatus.extras) === null || _b === void 0 ? void 0 : _b.taskId),
228
- };
229
- }
230
- //# sourceMappingURL=bulkImportCommons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bulkImportCommons.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/data/operations/bulkImportCommons.ts"],"names":[],"mappings":";;AA4BA,0DA6JC;AAoBD,8CAqHC;AAlUD,+CAMsB;AACtB,4CAAgD;AAChD,8DAOuC;AACvC,8CAA6D;AAY7D,SAAgB,uBAAuB,CACnC,aAAsC,EACtC,wBAAiC;IAEjC,OAAO;QACH;YACI,WAAW,EACP,gBAAgB;gBAChB,gGAAgG;gBAChG,MAAM;gBACN,mGAAmG;gBACnG,MAAM;gBACN,+FAA+F;YACnG,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,cAAc,EAAE;gBACZ,IAAI,EAAE;oBACF,QAAQ,EAAE,CAAC,sBAAa,CAAC;oBACzB,SAAS,EAAE,CAAC,aAAa,CAAC;iBAC7B;aACJ;YACD,OAAO,EAAE,EAAE;SACd;QACD;YACI,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,SAAS;YACf,WAAW,EAAE;gBACT,iBAAiB,EAAE,cAAc;aACpC;YACD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,8BAA8B;YAC3C,cAAc,EAAE;gBACZ,IAAI,EAAE;oBACF,QAAQ,EAAE,CAAC,sBAAa,CAAC;oBACzB,SAAS,EAAE,CAAC,aAAa,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E,KAAK,EAAE,IAAI,CAAC,CAAC;IAErE,IAAI,WAAW,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;QAClC,MAAM,IAAI,iCAAkB,CACxB,OAAO,CAAC,OAAO,EAAE,EACjB,4BAA4B,EAC5B;YACI,OAAO,EAAE,mDAAmD;YAC5D,WAAW,EAAE,2BAA2B,KAAK,0DAA0D;SAC1G,CACJ,CAAC;IACN,CAAC;IAGD,OAAO;QACH,KAAK;QACL,MAAM,EAAE,WAAW,CAAC,MAAM;QAC1B,SAAS,EAAE,WAAW,CAAC,SAAS;QAChC,UAAU,EAAE,WAAW,CAAC,OAAO;QAC/B,OAAO,EAAE,WAAW,CAAC,MAAM,IAAI;YAC3B,KAAK,EAAE,CAAC;YACR,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;YACV,MAAM,EAAE,CAAC;SACZ;QACD,MAAM,EAAE,CAAA,MAAA,WAAW,CAAC,MAAM,0CAAE,OAAO,MAAI,MAAA,WAAW,CAAC,MAAM,0CAAE,MAAM,CAAA;KACpE,CAAC;AACN,CAAC"}
@@ -1,9 +0,0 @@
1
- import { IDataObject, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
- export declare const description: {
3
- name: string;
4
- value: string;
5
- description: string;
6
- action: string;
7
- };
8
- export declare const properties: INodeProperties[];
9
- export declare function execute(this: IExecuteFunctions, i: number): Promise<IDataObject | undefined>;
@@ -1,16 +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 bulkImportCommons_1 = require("./bulkImportCommons");
6
- exports.description = {
7
- name: 'Create Many Objects (Alpha)',
8
- value: 'createManyObjects',
9
- description: 'Create multiple objects via bulk import. Skips business logic.',
10
- action: 'Create many objects (alpha)',
11
- };
12
- exports.properties = (0, bulkImportCommons_1.getBulkImportProperties)('createManyObjects', false);
13
- async function execute(i) {
14
- return (0, bulkImportCommons_1.executeBulkImport)(this, i, 'create');
15
- }
16
- //# sourceMappingURL=createManyObjects.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createManyObjects.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/data/operations/createManyObjects.operation.ts"],"names":[],"mappings":";;;AAsCA,0BAKC;AA1CD,2DAG6B;AAOhB,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,6BAA6B;IACnC,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EACP,gEAAgE;IACpE,MAAM,EAAE,6BAA6B;CACxC,CAAC;AAOW,QAAA,UAAU,GAAsB,IAAA,2CAAuB,EAChE,mBAAmB,EACnB,KAAK,CACR,CAAC;AAWK,KAAK,UAAU,OAAO,CAEzB,CAAS;IAET,OAAO,IAAA,qCAAiB,EAAC,IAAI,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC;AAChD,CAAC"}
@@ -1,9 +0,0 @@
1
- import { IDataObject, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
- export declare const description: {
3
- name: string;
4
- value: string;
5
- description: string;
6
- action: string;
7
- };
8
- export declare const properties: INodeProperties[];
9
- export declare function execute(this: IExecuteFunctions, i: number): Promise<IDataObject | undefined>;
@@ -1,16 +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 bulkImportCommons_1 = require("./bulkImportCommons");
6
- exports.description = {
7
- name: 'Create or Update Many Objects (Alpha)',
8
- value: 'createOrUpdateManyObjects',
9
- description: 'Create or update multiple objects via bulk import. Skips business logic.',
10
- action: 'Create or update many objects (alpha)',
11
- };
12
- exports.properties = (0, bulkImportCommons_1.getBulkImportProperties)('createOrUpdateManyObjects', true);
13
- async function execute(i) {
14
- return (0, bulkImportCommons_1.executeBulkImport)(this, i, 'create_or_update');
15
- }
16
- //# sourceMappingURL=createOrUpdateManyObjects.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createOrUpdateManyObjects.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/data/operations/createOrUpdateManyObjects.operation.ts"],"names":[],"mappings":";;;AAsCA,0BAKC;AA1CD,2DAG6B;AAOhB,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,uCAAuC;IAC7C,KAAK,EAAE,2BAA2B;IAClC,WAAW,EACP,0EAA0E;IAC9E,MAAM,EAAE,uCAAuC;CAClD,CAAC;AAOW,QAAA,UAAU,GAAsB,IAAA,2CAAuB,EAChE,2BAA2B,EAC3B,IAAI,CACP,CAAC;AAWK,KAAK,UAAU,OAAO,CAEzB,CAAS;IAET,OAAO,IAAA,qCAAiB,EAAC,IAAI,EAAE,CAAC,EAAE,kBAAkB,CAAC,CAAC;AAC1D,CAAC"}
@@ -1,9 +0,0 @@
1
- import { IDataObject, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
- export declare const description: {
3
- name: string;
4
- value: string;
5
- description: string;
6
- action: string;
7
- };
8
- export declare const properties: INodeProperties[];
9
- export declare function execute(this: IExecuteFunctions, i: number): Promise<IDataObject | undefined>;