n8n-nodes-synca 1.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 (62) hide show
  1. package/dist/credentials/SyncaApi.credentials.d.ts +9 -0
  2. package/dist/credentials/SyncaApi.credentials.js +51 -0
  3. package/dist/credentials/SyncaApi.credentials.js.map +1 -0
  4. package/dist/nodes/Cashcow/SyncaCashcow.node.d.ts +10 -0
  5. package/dist/nodes/Cashcow/SyncaCashcow.node.js +185 -0
  6. package/dist/nodes/Cashcow/SyncaCashcow.node.js.map +1 -0
  7. package/dist/nodes/Cashcow/constants/cashcow-check-order-tracking.constant.d.ts +30 -0
  8. package/dist/nodes/Cashcow/constants/cashcow-check-order-tracking.constant.js +37 -0
  9. package/dist/nodes/Cashcow/constants/cashcow-check-order-tracking.constant.js.map +1 -0
  10. package/dist/nodes/Cashcow/constants/cashcow-create-or-update-product.constant.d.ts +117 -0
  11. package/dist/nodes/Cashcow/constants/cashcow-create-or-update-product.constant.js +290 -0
  12. package/dist/nodes/Cashcow/constants/cashcow-create-or-update-product.constant.js.map +1 -0
  13. package/dist/nodes/Cashcow/constants/cashcow-create-order.constant.d.ts +189 -0
  14. package/dist/nodes/Cashcow/constants/cashcow-create-order.constant.js +420 -0
  15. package/dist/nodes/Cashcow/constants/cashcow-create-order.constant.js.map +1 -0
  16. package/dist/nodes/Cashcow/constants/cashcow-get-store-mailbox.constant.d.ts +46 -0
  17. package/dist/nodes/Cashcow/constants/cashcow-get-store-mailbox.constant.js +166 -0
  18. package/dist/nodes/Cashcow/constants/cashcow-get-store-mailbox.constant.js.map +1 -0
  19. package/dist/nodes/Cashcow/icon copy 2.svg +53 -0
  20. package/dist/nodes/Cashcow/icon copy.svg +65 -0
  21. package/dist/nodes/Cashcow/icon.svg +1 -0
  22. package/dist/nodes/Cashcow/last-icon.svg +38 -0
  23. package/dist/nodes/Mirakl/SyncaMirakl.node.d.ts +0 -0
  24. package/dist/nodes/Mirakl/SyncaMirakl.node.js +2 -0
  25. package/dist/nodes/Mirakl/SyncaMirakl.node.js.map +1 -0
  26. package/dist/nodes/OLD_SyncaPriority.node.d.ts +10 -0
  27. package/dist/nodes/OLD_SyncaPriority.node.js +389 -0
  28. package/dist/nodes/OLD_SyncaPriority.node.js.map +1 -0
  29. package/dist/nodes/Priority/SyncaPriority.node.d.ts +18 -0
  30. package/dist/nodes/Priority/SyncaPriority.node.js +313 -0
  31. package/dist/nodes/Priority/SyncaPriority.node.js.map +1 -0
  32. package/dist/nodes/Priority/constants/methods.d.ts +15 -0
  33. package/dist/nodes/Priority/constants/methods.js +299 -0
  34. package/dist/nodes/Priority/constants/methods.js.map +1 -0
  35. package/dist/nodes/Priority/constants/priority-agents.constant.d.ts +39 -0
  36. package/dist/nodes/Priority/constants/priority-agents.constant.js +114 -0
  37. package/dist/nodes/Priority/constants/priority-agents.constant.js.map +1 -0
  38. package/dist/nodes/Priority/constants/priority-generic.constant.d.ts +158 -0
  39. package/dist/nodes/Priority/constants/priority-generic.constant.js +219 -0
  40. package/dist/nodes/Priority/constants/priority-generic.constant.js.map +1 -0
  41. package/dist/nodes/Priority/constants/priority-procedure.constant.d.ts +129 -0
  42. package/dist/nodes/Priority/constants/priority-procedure.constant.js +178 -0
  43. package/dist/nodes/Priority/constants/priority-procedure.constant.js.map +1 -0
  44. package/dist/nodes/Priority/constants/priority-products.constant.d.ts +158 -0
  45. package/dist/nodes/Priority/constants/priority-products.constant.js +209 -0
  46. package/dist/nodes/Priority/constants/priority-products.constant.js.map +1 -0
  47. package/dist/nodes/Priority/constants/priority-purchase-orders.constant.d.ts +158 -0
  48. package/dist/nodes/Priority/constants/priority-purchase-orders.constant.js +218 -0
  49. package/dist/nodes/Priority/constants/priority-purchase-orders.constant.js.map +1 -0
  50. package/dist/nodes/Priority/constants/priority-sales.constant.d.ts +158 -0
  51. package/dist/nodes/Priority/constants/priority-sales.constant.js +383 -0
  52. package/dist/nodes/Priority/constants/priority-sales.constant.js.map +1 -0
  53. package/dist/nodes/Priority/icon.png +0 -0
  54. package/dist/nodes/Priority/icon.svg +1 -0
  55. package/dist/nodes/Superpharm/SyncaSuperpharm.node.d.ts +10 -0
  56. package/dist/nodes/Superpharm/SyncaSuperpharm.node.js +1072 -0
  57. package/dist/nodes/Superpharm/SyncaSuperpharm.node.js.map +1 -0
  58. package/dist/nodes/Superpharm/icon.svg +1 -0
  59. package/dist/nodes/Superpharm/old-icon.svg +22 -0
  60. package/dist/package.json +55 -0
  61. package/dist/tsconfig.tsbuildinfo +1 -0
  62. package/package.json +55 -0
@@ -0,0 +1,38 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Cashcow – simplified vector icon -->
3
+ <svg
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ viewBox="40 25 160 160"
6
+ width="120"
7
+ height="120"
8
+ aria-labelledby="title desc"
9
+ >
10
+ <title id="title">Cashcow logo icon</title>
11
+ <desc id="desc">Cartoon cow mascot standing beside the text CA$HCOW</desc>
12
+
13
+ <!-- 1. Cow mascot -->
14
+ <g id="cow" transform="translate(35,15)">
15
+ <!-- Ears -->
16
+ <ellipse cx="47" cy="30" rx="15" ry="10" fill="#c8c8c8"/>
17
+ <ellipse cx="123" cy="30" rx="15" ry="10" fill="#c8c8c8"/>
18
+
19
+ <!-- Head -->
20
+ <circle cx="85" cy="55" r="40" fill="#fafafa" stroke="#666" stroke-width="2"/>
21
+
22
+ <!-- Face / muzzle -->
23
+ <ellipse cx="85" cy="80" rx="42" ry="28" fill="#f4d3c8" stroke="#666" stroke-width="2"/>
24
+ <circle cx="70" cy="78" r="4" fill="#754d3c"/>
25
+ <circle cx="99" cy="78" r="4" fill="#754d3c"/>
26
+ <circle cx="70" cy="50" r="5" fill="#333"/>
27
+ <circle cx="99" cy="50" r="5" fill="#333"/>
28
+
29
+ <!-- Body -->
30
+ <rect x="45" y="110" width="80" height="60" rx="6" fill="#1a2433"/>
31
+
32
+ <!-- WWW + globe -->
33
+ <circle cx="85" cy="140" r="16" fill="#1a2433" stroke="#3db4ff" stroke-width="2"/>
34
+ <text x="85" y="145" font-family="Arial,Helvetica,sans-serif"
35
+ font-size="12" text-anchor="middle" fill="#d9f2ff">WWW</text>
36
+
37
+ </g>
38
+ </svg>
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=SyncaMirakl.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SyncaMirakl.node.js","sourceRoot":"","sources":["../../../nodes/Mirakl/SyncaMirakl.node.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription, ILoadOptionsFunctions, INodePropertyOptions } from 'n8n-workflow';
2
+ export declare class SyncaPriority implements INodeType {
3
+ description: INodeTypeDescription;
4
+ methods: {
5
+ loadOptions: {
6
+ getCredentials(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
7
+ };
8
+ };
9
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
10
+ }
@@ -0,0 +1,389 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SyncaPriority = void 0;
4
+ class SyncaPriority {
5
+ constructor() {
6
+ this.description = {
7
+ displayName: 'Synca Priority',
8
+ name: 'customSyncaPriority',
9
+ icon: 'fa:api',
10
+ group: ['transform'],
11
+ version: 1,
12
+ description: 'Interact with Custom API for Orders, Items, Customers, and Purchase Orders',
13
+ defaults: {
14
+ name: 'Synca Priority',
15
+ },
16
+ inputs: ["main"],
17
+ outputs: ["main"],
18
+ credentials: [
19
+ {
20
+ name: 'customSyncaApiCredentials',
21
+ required: true,
22
+ },
23
+ ],
24
+ properties: [
25
+ {
26
+ displayName: 'Credentials',
27
+ name: 'credentials',
28
+ type: 'options',
29
+ typeOptions: {
30
+ loadOptionsMethod: 'getCredentials',
31
+ },
32
+ default: '',
33
+ required: true,
34
+ description: 'Select the credentials to use',
35
+ },
36
+ {
37
+ displayName: 'Resource',
38
+ name: 'resource',
39
+ type: 'options',
40
+ noDataExpression: true,
41
+ options: [
42
+ {
43
+ name: 'Order',
44
+ value: 'order',
45
+ },
46
+ {
47
+ name: 'Item',
48
+ value: 'item',
49
+ },
50
+ {
51
+ name: 'Customer',
52
+ value: 'customer',
53
+ },
54
+ {
55
+ name: 'Purchase Order',
56
+ value: 'purchaseOrder',
57
+ },
58
+ ],
59
+ default: 'order',
60
+ },
61
+ {
62
+ displayName: 'Operation',
63
+ name: 'operation',
64
+ type: 'options',
65
+ noDataExpression: true,
66
+ displayOptions: {
67
+ show: {
68
+ resource: ['order'],
69
+ },
70
+ },
71
+ options: [
72
+ {
73
+ name: 'Get Many',
74
+ value: 'getMany',
75
+ action: 'Get many orders',
76
+ },
77
+ {
78
+ name: 'Get',
79
+ value: 'get',
80
+ action: 'Get an order',
81
+ },
82
+ {
83
+ name: 'Create',
84
+ value: 'create',
85
+ action: 'Create an order',
86
+ },
87
+ {
88
+ name: 'Update',
89
+ value: 'update',
90
+ action: 'Update an order',
91
+ },
92
+ ],
93
+ default: 'getMany',
94
+ },
95
+ {
96
+ displayName: 'Operation',
97
+ name: 'operation',
98
+ type: 'options',
99
+ noDataExpression: true,
100
+ displayOptions: {
101
+ show: {
102
+ resource: ['item'],
103
+ },
104
+ },
105
+ options: [
106
+ {
107
+ name: 'Get Many',
108
+ value: 'getMany',
109
+ action: 'Get many items',
110
+ },
111
+ {
112
+ name: 'Get',
113
+ value: 'get',
114
+ action: 'Get a item',
115
+ },
116
+ {
117
+ name: 'Create',
118
+ value: 'create',
119
+ action: 'Create a item',
120
+ },
121
+ {
122
+ name: 'Update',
123
+ value: 'update',
124
+ action: 'Update a item',
125
+ },
126
+ ],
127
+ default: 'getMany',
128
+ },
129
+ {
130
+ displayName: 'Operation',
131
+ name: 'operation',
132
+ type: 'options',
133
+ noDataExpression: true,
134
+ displayOptions: {
135
+ show: {
136
+ resource: ['customer'],
137
+ },
138
+ },
139
+ options: [
140
+ {
141
+ name: 'Get Many',
142
+ value: 'getMany',
143
+ action: 'Get many customers',
144
+ },
145
+ {
146
+ name: 'Get',
147
+ value: 'get',
148
+ action: 'Get a customer',
149
+ },
150
+ {
151
+ name: 'Create',
152
+ value: 'create',
153
+ action: 'Create a customer',
154
+ },
155
+ {
156
+ name: 'Update',
157
+ value: 'update',
158
+ action: 'Update a customer',
159
+ },
160
+ ],
161
+ default: 'getMany',
162
+ },
163
+ {
164
+ displayName: 'Operation',
165
+ name: 'operation',
166
+ type: 'options',
167
+ noDataExpression: true,
168
+ displayOptions: {
169
+ show: {
170
+ resource: ['purchaseOrder'],
171
+ },
172
+ },
173
+ options: [
174
+ {
175
+ name: 'Get Many',
176
+ value: 'getMany',
177
+ action: 'Get many purchase orders',
178
+ },
179
+ {
180
+ name: 'Get',
181
+ value: 'get',
182
+ action: 'Get a purchase order',
183
+ },
184
+ {
185
+ name: 'Create',
186
+ value: 'create',
187
+ action: 'Create a purchase order',
188
+ },
189
+ {
190
+ name: 'Update',
191
+ value: 'update',
192
+ action: 'Update a purchase order',
193
+ },
194
+ ],
195
+ default: 'getMany',
196
+ },
197
+ {
198
+ displayName: 'Additional Fields',
199
+ name: 'additionalFields',
200
+ type: 'collection',
201
+ placeholder: 'Add Field',
202
+ default: {},
203
+ options: [
204
+ {
205
+ displayName: 'Top',
206
+ name: 'top',
207
+ type: 'number',
208
+ default: 100,
209
+ description: 'Number of records to return from the top',
210
+ },
211
+ {
212
+ displayName: 'Limit',
213
+ name: 'limit',
214
+ type: 'number',
215
+ default: 50,
216
+ description: 'Maximum number of records to return',
217
+ },
218
+ {
219
+ displayName: 'Filter',
220
+ name: 'filter',
221
+ type: 'string',
222
+ default: '',
223
+ description: 'Filter expression to apply to the results',
224
+ },
225
+ {
226
+ displayName: 'Select',
227
+ name: 'select',
228
+ type: 'string',
229
+ default: '',
230
+ description: 'Comma-separated list of fields to select',
231
+ },
232
+ ],
233
+ },
234
+ {
235
+ displayName: 'ID',
236
+ name: 'id',
237
+ type: 'string',
238
+ default: '',
239
+ required: true,
240
+ displayOptions: {
241
+ show: {
242
+ operation: ['get', 'update'],
243
+ },
244
+ },
245
+ description: 'ID of the record to get or update',
246
+ },
247
+ {
248
+ displayName: 'Data',
249
+ name: 'data',
250
+ type: 'json',
251
+ default: '{}',
252
+ displayOptions: {
253
+ show: {
254
+ operation: ['create', 'update'],
255
+ },
256
+ },
257
+ description: 'JSON data for creating or updating the record',
258
+ },
259
+ ],
260
+ };
261
+ this.methods = {
262
+ loadOptions: {
263
+ async getCredentials() {
264
+ try {
265
+ const credentials = await this.getCredentials('customSyncaApiCredentials');
266
+ const options = {
267
+ method: 'GET',
268
+ url: `${credentials.baseUrl}/v1/invoke/get-credentials`,
269
+ headers: {
270
+ 'x-api-token': credentials === null || credentials === void 0 ? void 0 : credentials.apiToken,
271
+ },
272
+ };
273
+ console.log({ options });
274
+ const response = await this.helpers.httpRequest(options);
275
+ if (Array.isArray(response)) {
276
+ return response.map((cred) => ({
277
+ name: cred.name || cred.id,
278
+ value: cred.id,
279
+ }));
280
+ }
281
+ return [];
282
+ }
283
+ catch (error) {
284
+ return [
285
+ {
286
+ name: 'Default Credentials',
287
+ value: 'default',
288
+ },
289
+ ];
290
+ }
291
+ },
292
+ },
293
+ };
294
+ }
295
+ async execute() {
296
+ const items = this.getInputData();
297
+ const returnData = [];
298
+ for (let i = 0; i < items.length; i++) {
299
+ try {
300
+ const resource = this.getNodeParameter('resource', i);
301
+ const operation = this.getNodeParameter('operation', i);
302
+ const credentialsId = this.getNodeParameter('credentials', i);
303
+ const additionalFields = this.getNodeParameter('additionalFields', i);
304
+ const credentials = await this.getCredentials('customSyncaApiCredentials');
305
+ const apiToken = credentials.apiToken;
306
+ const baseURL = credentials.baseUrl;
307
+ let actionName = '';
308
+ switch (operation) {
309
+ case 'getMany':
310
+ actionName = `get_${resource}s`;
311
+ break;
312
+ case 'get':
313
+ actionName = `get_${resource}`;
314
+ break;
315
+ case 'create':
316
+ actionName = `create_${resource}`;
317
+ break;
318
+ case 'update':
319
+ actionName = `update_${resource}`;
320
+ break;
321
+ }
322
+ const queryParams = {};
323
+ if (additionalFields.top !== undefined) {
324
+ queryParams.top = additionalFields.top.toString();
325
+ }
326
+ if (additionalFields.limit !== undefined) {
327
+ queryParams.limit = additionalFields.limit.toString();
328
+ }
329
+ if (additionalFields.filter) {
330
+ queryParams.filter = additionalFields.filter;
331
+ }
332
+ if (additionalFields.select) {
333
+ queryParams.select = additionalFields.select;
334
+ }
335
+ if (operation === 'get' || operation === 'update') {
336
+ const id = this.getNodeParameter('id', i);
337
+ queryParams.id = id;
338
+ }
339
+ if (operation === 'create' || operation === 'update') {
340
+ const data = this.getNodeParameter('data', i);
341
+ queryParams.data = data;
342
+ }
343
+ const baseUrl = `${baseURL}/v1/invoke/${credentialsId}/${actionName}`;
344
+ const queryString = new URLSearchParams(queryParams).toString();
345
+ const url = queryString ? `${baseUrl}?${queryString}` : baseUrl;
346
+ const options = {
347
+ method: 'POST',
348
+ url,
349
+ headers: {
350
+ 'x-api-token': apiToken,
351
+ 'Content-Type': 'application/json',
352
+ },
353
+ };
354
+ console.log({ executeOptions: options });
355
+ const responseData = await this.helpers.httpRequest(options);
356
+ if (Array.isArray(responseData)) {
357
+ responseData.forEach((item) => {
358
+ returnData.push({
359
+ json: item,
360
+ pairedItem: { item: i },
361
+ });
362
+ });
363
+ }
364
+ else {
365
+ returnData.push({
366
+ json: responseData,
367
+ pairedItem: { item: i },
368
+ });
369
+ }
370
+ }
371
+ catch (error) {
372
+ console.log({ error });
373
+ if (this.continueOnFail()) {
374
+ returnData.push({
375
+ json: {
376
+ error: error.message,
377
+ },
378
+ pairedItem: { item: i },
379
+ });
380
+ continue;
381
+ }
382
+ throw error;
383
+ }
384
+ }
385
+ return [returnData];
386
+ }
387
+ }
388
+ exports.SyncaPriority = SyncaPriority;
389
+ //# sourceMappingURL=OLD_SyncaPriority.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OLD_SyncaPriority.node.js","sourceRoot":"","sources":["../../nodes/OLD_SyncaPriority.node.ts"],"names":[],"mappings":";;;AAWA,MAAa,aAAa;IAA1B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,qBAAqB;YAC3B,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,4EAA4E;YACzF,QAAQ,EAAE;gBACT,IAAI,EAAE,gBAAgB;aACtB;YACD,MAAM,EAAE,QAAyB;YACjC,OAAO,EAAE,QAAyB;YAClC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,2BAA2B;oBACjC,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,aAAa;oBAC1B,IAAI,EAAE,aAAa;oBACnB,IAAI,EAAE,SAAS;oBACf,WAAW,EAAE;wBACZ,iBAAiB,EAAE,gBAAgB;qBACnC;oBACD,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,+BAA+B;iBAC5C;gBACD;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,OAAO;4BACb,KAAK,EAAE,OAAO;yBACd;wBACD;4BACC,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,MAAM;yBACb;wBACD;4BACC,IAAI,EAAE,UAAU;4BAChB,KAAK,EAAE,UAAU;yBACjB;wBACD;4BACC,IAAI,EAAE,gBAAgB;4BACtB,KAAK,EAAE,eAAe;yBACtB;qBACD;oBACD,OAAO,EAAE,OAAO;iBAChB;gBACD;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;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CAAC,CAAC;iBACH;qBAAM;oBACN,UAAU,CAAC,IAAI,CAAC;wBACf,IAAI,EAAE,YAAY;wBAClB,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;qBACvB,CAAC,CAAC;iBACH;aACD;YAAC,OAAO,KAAU,EAAE;gBACpB,OAAO,CAAC,GAAG,CAAC,EAAC,KAAK,EAAC,CAAC,CAAA;gBACpB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE;oBAC1B,UAAU,CAAC,IAAI,CAAC;wBACf,IAAI,EAAE;4BACL,KAAK,EAAE,KAAK,CAAC,OAAO;yBACpB;wBACD,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;qBACvB,CAAC,CAAC;oBACH,SAAS;iBACT;gBACD,MAAM,KAAK,CAAC;aACZ;SACD;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AAvZD,sCAuZC"}
@@ -0,0 +1,18 @@
1
+ import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class SyncaPriority implements INodeType {
3
+ description: INodeTypeDescription;
4
+ methods: {
5
+ loadOptions: {
6
+ getCredentials(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
7
+ getSubForms(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
8
+ getForms(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
9
+ getFormFields(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
10
+ getProcedures(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
11
+ };
12
+ resourceMapping: {
13
+ getMappingColumns(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").ResourceMapperFields>;
14
+ getFormFields(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").ResourceMapperFields>;
15
+ };
16
+ };
17
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
18
+ }