juneezee-testtest 0.1.14

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 (31) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +55 -0
  3. package/dist/credentials/CraftMyPdfApi.credentials.d.ts +10 -0
  4. package/dist/credentials/CraftMyPdfApi.credentials.js +36 -0
  5. package/dist/credentials/CraftMyPdfApi.credentials.js.map +1 -0
  6. package/dist/icons/craftmypdf.svg +1 -0
  7. package/dist/nodes/CraftMyPdf/CraftMyPdf.node.d.ts +5 -0
  8. package/dist/nodes/CraftMyPdf/CraftMyPdf.node.js +231 -0
  9. package/dist/nodes/CraftMyPdf/CraftMyPdf.node.js.map +1 -0
  10. package/dist/nodes/CraftMyPdf/CraftMyPdf.node.json +18 -0
  11. package/dist/nodes/CraftMyPdf/GenericFunctions.d.ts +4 -0
  12. package/dist/nodes/CraftMyPdf/GenericFunctions.js +62 -0
  13. package/dist/nodes/CraftMyPdf/GenericFunctions.js.map +1 -0
  14. package/dist/nodes/CraftMyPdf/descriptions/AccountDescription.d.ts +2 -0
  15. package/dist/nodes/CraftMyPdf/descriptions/AccountDescription.js +26 -0
  16. package/dist/nodes/CraftMyPdf/descriptions/AccountDescription.js.map +1 -0
  17. package/dist/nodes/CraftMyPdf/descriptions/ImageDescription.d.ts +3 -0
  18. package/dist/nodes/CraftMyPdf/descriptions/ImageDescription.js +148 -0
  19. package/dist/nodes/CraftMyPdf/descriptions/ImageDescription.js.map +1 -0
  20. package/dist/nodes/CraftMyPdf/descriptions/PdfDescription.d.ts +3 -0
  21. package/dist/nodes/CraftMyPdf/descriptions/PdfDescription.js +400 -0
  22. package/dist/nodes/CraftMyPdf/descriptions/PdfDescription.js.map +1 -0
  23. package/dist/nodes/CraftMyPdf/descriptions/SharedFields.d.ts +2 -0
  24. package/dist/nodes/CraftMyPdf/descriptions/SharedFields.js +54 -0
  25. package/dist/nodes/CraftMyPdf/descriptions/SharedFields.js.map +1 -0
  26. package/dist/nodes/CraftMyPdf/descriptions/TransactionDescription.d.ts +3 -0
  27. package/dist/nodes/CraftMyPdf/descriptions/TransactionDescription.js +60 -0
  28. package/dist/nodes/CraftMyPdf/descriptions/TransactionDescription.js.map +1 -0
  29. package/dist/package.json +60 -0
  30. package/dist/tsconfig.tsbuildinfo +1 -0
  31. package/package.json +60 -0
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.imageFields = exports.imageOperations = void 0;
4
+ exports.imageOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['image'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Create',
18
+ value: 'create',
19
+ description: 'Creates an image file with JSON data and your template',
20
+ action: 'Create an image',
21
+ },
22
+ ],
23
+ default: 'create',
24
+ },
25
+ ];
26
+ exports.imageFields = [
27
+ {
28
+ displayName: 'Template ID',
29
+ name: 'templateId',
30
+ type: 'string',
31
+ default: '',
32
+ required: true,
33
+ displayOptions: {
34
+ show: {
35
+ resource: ['image'],
36
+ operation: ['create'],
37
+ },
38
+ },
39
+ },
40
+ {
41
+ displayName: 'Data',
42
+ name: 'data',
43
+ type: 'json',
44
+ default: '{}',
45
+ description: 'JSON data, it supports stringified JSON string or an JSON object',
46
+ required: true,
47
+ displayOptions: {
48
+ show: {
49
+ resource: ['image'],
50
+ operation: ['create'],
51
+ },
52
+ },
53
+ },
54
+ {
55
+ displayName: 'Version',
56
+ name: 'version',
57
+ type: 'string',
58
+ default: '0',
59
+ description: 'To generate an image using a specific version of the template. We use the latest template version unless you specify otherwise.',
60
+ displayOptions: {
61
+ show: {
62
+ resource: ['image'],
63
+ operation: ['create'],
64
+ },
65
+ },
66
+ },
67
+ {
68
+ displayName: 'Export Type',
69
+ name: 'export_type',
70
+ type: 'options',
71
+ default: 'json',
72
+ description: 'Export type of the image',
73
+ required: true,
74
+ options: [
75
+ {
76
+ name: 'JSON',
77
+ value: 'json',
78
+ description: 'Returns a JSON object, and the output image is stored on a CDN (until expiration)',
79
+ },
80
+ {
81
+ name: 'File',
82
+ value: 'file',
83
+ description: 'Returns binary data of the generated image (More secure and completely private) and the response HTTP header Content-Disposition is set to attachment',
84
+ },
85
+ ],
86
+ displayOptions: {
87
+ show: {
88
+ resource: ['image'],
89
+ operation: ['create'],
90
+ },
91
+ },
92
+ },
93
+ {
94
+ displayName: 'Expiration',
95
+ name: 'expiration',
96
+ type: 'number',
97
+ typeOptions: {
98
+ minValue: 1,
99
+ maxValue: 10080,
100
+ },
101
+ default: 5,
102
+ description: 'Expiration of the generated image in minutes',
103
+ displayOptions: {
104
+ show: {
105
+ resource: ['image'],
106
+ operation: ['create'],
107
+ },
108
+ },
109
+ },
110
+ {
111
+ displayName: 'Output File',
112
+ name: 'output_file',
113
+ type: 'string',
114
+ default: 'output.jpg',
115
+ required: true,
116
+ displayOptions: {
117
+ show: {
118
+ resource: ['image'],
119
+ operation: ['create'],
120
+ },
121
+ },
122
+ },
123
+ {
124
+ displayName: 'Output Type',
125
+ name: 'output_type',
126
+ type: 'options',
127
+ default: 'jpeg',
128
+ description: 'Image output file type',
129
+ required: true,
130
+ options: [
131
+ {
132
+ name: 'JPEG',
133
+ value: 'jpeg',
134
+ },
135
+ {
136
+ name: 'PNG',
137
+ value: 'png',
138
+ },
139
+ ],
140
+ displayOptions: {
141
+ show: {
142
+ resource: ['image'],
143
+ operation: ['create'],
144
+ },
145
+ },
146
+ },
147
+ ];
148
+ //# sourceMappingURL=ImageDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageDescription.js","sourceRoot":"","sources":["../../../../nodes/CraftMyPdf/descriptions/ImageDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IACjD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,S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;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const pdfOperations: INodeProperties[];
3
+ export declare const pdfFields: INodeProperties[];
@@ -0,0 +1,400 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pdfFields = exports.pdfOperations = void 0;
4
+ exports.pdfOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['pdf'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Create',
18
+ value: 'create',
19
+ description: 'Creates a PDF file with JSON data and your template',
20
+ action: 'Create a PDF',
21
+ },
22
+ {
23
+ name: 'Create Async',
24
+ value: 'createAsync',
25
+ description: 'Creates a PDF file asynchronously with JSON data and your template. The API returns immediately and once the PDF document is generated, it will make a HTTP/HTTPS GET to your URL (will retry for 3 times before giving up).',
26
+ action: 'Create a PDF asynchronously',
27
+ },
28
+ {
29
+ name: 'Merge',
30
+ value: 'merge',
31
+ description: 'Merges multiple PDF URLs',
32
+ action: 'Merge multiple PDF files',
33
+ },
34
+ {
35
+ name: 'Add Watermark',
36
+ value: 'addWatermark',
37
+ description: 'Add watermark to a PDF',
38
+ action: 'Add watermark',
39
+ },
40
+ ],
41
+ default: 'create',
42
+ },
43
+ ];
44
+ exports.pdfFields = [
45
+ {
46
+ displayName: 'Template ID',
47
+ name: 'templateId',
48
+ type: 'string',
49
+ default: '',
50
+ required: true,
51
+ displayOptions: {
52
+ show: {
53
+ resource: ['pdf'],
54
+ operation: ['create', 'createAsync'],
55
+ },
56
+ },
57
+ },
58
+ {
59
+ displayName: 'Data',
60
+ name: 'data',
61
+ type: 'json',
62
+ default: '{}',
63
+ description: 'JSON data, it supports stringified JSON string or an JSON object',
64
+ required: true,
65
+ displayOptions: {
66
+ show: {
67
+ resource: ['pdf'],
68
+ operation: ['create', 'createAsync'],
69
+ },
70
+ },
71
+ },
72
+ {
73
+ displayName: 'Version',
74
+ name: 'version',
75
+ type: 'string',
76
+ default: '0',
77
+ description: 'To generate a PDF using a specific version of the template. We use the latest template version unless you specify otherwise.',
78
+ displayOptions: {
79
+ show: {
80
+ resource: ['pdf'],
81
+ operation: ['create', 'createAsync'],
82
+ },
83
+ },
84
+ },
85
+ {
86
+ displayName: 'Export Type',
87
+ name: 'export_type',
88
+ type: 'options',
89
+ default: 'json',
90
+ description: 'Export type of the PDF',
91
+ required: true,
92
+ options: [
93
+ {
94
+ name: 'JSON',
95
+ value: 'json',
96
+ description: 'Returns a JSON object, and the output PDF is stored on a CDN (until expiration)',
97
+ },
98
+ {
99
+ name: 'File',
100
+ value: 'file',
101
+ description: 'Returns binary data of the generated PDF (More secure and completely private) and the response HTTP header Content-Disposition is set to attachment',
102
+ },
103
+ ],
104
+ displayOptions: {
105
+ show: {
106
+ resource: ['pdf'],
107
+ operation: ['create'],
108
+ },
109
+ },
110
+ },
111
+ {
112
+ displayName: 'Webhook URL',
113
+ name: 'webhook_url',
114
+ type: 'string',
115
+ default: '',
116
+ description: 'Callback URL to your server. It starts with http:// or https:// and has to be urlencoded.',
117
+ placeholder: 'https://myserver.com/pdfhandler',
118
+ required: true,
119
+ displayOptions: {
120
+ show: {
121
+ resource: ['pdf'],
122
+ operation: ['createAsync'],
123
+ },
124
+ },
125
+ },
126
+ {
127
+ displayName: 'Expiration',
128
+ name: 'expiration',
129
+ type: 'number',
130
+ typeOptions: {
131
+ minValue: 1,
132
+ maxValue: 10080,
133
+ },
134
+ default: 5,
135
+ description: 'Expiration of the generated PDF in minutes',
136
+ required: true,
137
+ displayOptions: {
138
+ show: {
139
+ resource: ['pdf'],
140
+ operation: ['create', 'createAsync', 'merge', 'addWatermark'],
141
+ },
142
+ },
143
+ },
144
+ {
145
+ displayName: 'Output File',
146
+ name: 'output_file',
147
+ type: 'string',
148
+ default: 'output.pdf',
149
+ required: true,
150
+ displayOptions: {
151
+ show: {
152
+ resource: ['pdf'],
153
+ operation: ['create', 'merge', 'addWatermark'],
154
+ },
155
+ },
156
+ },
157
+ {
158
+ displayName: 'Password Protected',
159
+ name: 'password_protected',
160
+ type: 'boolean',
161
+ default: false,
162
+ description: 'Whether to enable password protection (Available on professional subscription and above only)',
163
+ displayOptions: {
164
+ show: {
165
+ resource: ['pdf'],
166
+ operation: ['create'],
167
+ },
168
+ },
169
+ },
170
+ {
171
+ displayName: 'Password',
172
+ name: 'password',
173
+ type: 'string',
174
+ typeOptions: {
175
+ password: true,
176
+ },
177
+ default: '',
178
+ description: 'Set a password to protect your PDF file (Available on professional subscription and above only)',
179
+ displayOptions: {
180
+ show: {
181
+ resource: ['pdf'],
182
+ operation: ['create'],
183
+ password_protected: [true],
184
+ },
185
+ },
186
+ },
187
+ {
188
+ displayName: 'Image Resample Resolution',
189
+ name: 'image_resample_res',
190
+ type: 'number',
191
+ default: 0,
192
+ description: 'Optimize/downsample images of current PDF to a resolution(in DPI). This helps to reduce the PDF file size. Suggested values are 1200, 600, 300, 150 or 72. Set to 0 to disable',
193
+ displayOptions: {
194
+ show: {
195
+ resource: ['pdf'],
196
+ operation: ['create', 'createAsync'],
197
+ },
198
+ },
199
+ },
200
+ {
201
+ displayName: 'Resize Images',
202
+ name: 'resize_images',
203
+ type: 'boolean',
204
+ default: false,
205
+ description: 'Whether to resize all the images in the PDF to help reduce its size, especially if the template contains multiple or large images',
206
+ displayOptions: {
207
+ show: {
208
+ resource: ['pdf'],
209
+ operation: ['create', 'createAsync'],
210
+ },
211
+ },
212
+ },
213
+ {
214
+ displayName: 'Resize Max Width',
215
+ name: 'resize_max_width',
216
+ type: 'number',
217
+ default: 1000,
218
+ description: 'Specify the maximum width in pixels for the images',
219
+ displayOptions: {
220
+ show: {
221
+ resource: ['pdf'],
222
+ operation: ['create', 'createAsync'],
223
+ resize_images: [true],
224
+ },
225
+ },
226
+ },
227
+ {
228
+ displayName: 'Resize Max Height',
229
+ name: 'resize_max_height',
230
+ type: 'number',
231
+ default: 1000,
232
+ description: 'Specify the maximum height in pixels for the images',
233
+ displayOptions: {
234
+ show: {
235
+ resource: ['pdf'],
236
+ operation: ['create', 'createAsync'],
237
+ resize_images: [true],
238
+ },
239
+ },
240
+ },
241
+ {
242
+ displayName: 'Resize Format',
243
+ name: 'resize_format',
244
+ type: 'options',
245
+ default: 'jpeg',
246
+ description: 'Specify the format of the image',
247
+ options: [
248
+ {
249
+ name: 'JPEG',
250
+ value: 'jpeg',
251
+ },
252
+ {
253
+ name: 'PNG',
254
+ value: 'png',
255
+ },
256
+ ],
257
+ displayOptions: {
258
+ show: {
259
+ resource: ['pdf'],
260
+ operation: ['create', 'createAsync'],
261
+ resize_images: [true],
262
+ },
263
+ },
264
+ },
265
+ {
266
+ displayName: 'URL Array',
267
+ name: 'urls',
268
+ type: 'collection',
269
+ typeOptions: {
270
+ multipleValues: true,
271
+ multipleValueButtonText: 'Add URL',
272
+ },
273
+ default: { url: '' },
274
+ required: true,
275
+ displayOptions: {
276
+ show: {
277
+ resource: ['pdf'],
278
+ operation: ['merge'],
279
+ },
280
+ },
281
+ options: [
282
+ {
283
+ displayName: 'URL',
284
+ name: 'url',
285
+ type: 'string',
286
+ default: '',
287
+ description: 'URL of a PDF to be merged',
288
+ },
289
+ ],
290
+ },
291
+ {
292
+ displayName: 'URL',
293
+ name: 'url',
294
+ type: 'string',
295
+ default: '',
296
+ description: 'URL of the source PDF',
297
+ required: true,
298
+ displayOptions: {
299
+ show: {
300
+ resource: ['pdf'],
301
+ operation: ['addWatermark'],
302
+ },
303
+ },
304
+ },
305
+ {
306
+ displayName: 'Watermark Text',
307
+ name: 'text',
308
+ type: 'string',
309
+ default: '',
310
+ required: true,
311
+ displayOptions: {
312
+ show: {
313
+ resource: ['pdf'],
314
+ operation: ['addWatermark'],
315
+ },
316
+ },
317
+ },
318
+ {
319
+ displayName: 'Font Size',
320
+ name: 'font_size',
321
+ type: 'number',
322
+ default: 40,
323
+ description: 'Font size of the watermark',
324
+ displayOptions: {
325
+ show: {
326
+ resource: ['pdf'],
327
+ operation: ['addWatermark'],
328
+ },
329
+ },
330
+ },
331
+ {
332
+ displayName: 'Opacity',
333
+ name: 'opacity',
334
+ type: 'number',
335
+ default: 0.5,
336
+ description: 'Opacity of the watermark',
337
+ displayOptions: {
338
+ show: {
339
+ resource: ['pdf'],
340
+ operation: ['addWatermark'],
341
+ },
342
+ },
343
+ },
344
+ {
345
+ displayName: 'Rotation',
346
+ name: 'rotation',
347
+ type: 'number',
348
+ default: 45,
349
+ description: 'Rotation of the watermark',
350
+ displayOptions: {
351
+ show: {
352
+ resource: ['pdf'],
353
+ operation: ['addWatermark'],
354
+ },
355
+ },
356
+ },
357
+ {
358
+ displayName: 'Hex Color',
359
+ name: 'hex_color',
360
+ type: 'color',
361
+ default: '#c7c7c7',
362
+ description: 'Color of the watermark',
363
+ displayOptions: {
364
+ show: {
365
+ resource: ['pdf'],
366
+ operation: ['addWatermark'],
367
+ },
368
+ },
369
+ },
370
+ {
371
+ displayName: 'Font Family',
372
+ name: 'font_family',
373
+ type: 'options',
374
+ default: 'Helvetica',
375
+ description: 'Font family of the watermark',
376
+ options: [
377
+ { name: 'Courier', value: 'Courier' },
378
+ { name: 'Courier-Bold', value: 'Courier-Bold' },
379
+ { name: 'Courier-BoldOblique', value: 'Courier-BoldOblique' },
380
+ { name: 'Courier-Oblique', value: 'Courier-Oblique' },
381
+ { name: 'Helvetica', value: 'Helvetica' },
382
+ { name: 'Helvetica-Bold', value: 'Helvetica-Bold' },
383
+ { name: 'Helvetica-BoldOblique', value: 'Helvetica-BoldOblique' },
384
+ { name: 'Helvetica-Oblique', value: 'Helvetica-Oblique' },
385
+ { name: 'Symbol', value: 'Symbol' },
386
+ { name: 'Times-Bold', value: 'Times-Bold' },
387
+ { name: 'Times-BoldItalic', value: 'Times-BoldItalic' },
388
+ { name: 'Times-Italic', value: 'Times-Italic' },
389
+ { name: 'Times-Roman', value: 'Times-Roman' },
390
+ { name: 'ZapfDingbats', value: 'ZapfDingbats' },
391
+ ],
392
+ displayOptions: {
393
+ show: {
394
+ resource: ['pdf'],
395
+ operation: ['addWatermark'],
396
+ },
397
+ },
398
+ },
399
+ ];
400
+ //# sourceMappingURL=PdfDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PdfDescription.js","sourceRoot":"","sources":["../../../../nodes/CraftMyPdf/descriptions/PdfDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAAsB;IAC/C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,KAAK,CAAC;aACjB;SACD;QACD,OAAO,EAAE;YAER;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,qDAAqD;gBAClE,MAAM,EAAE,cAAc;aACtB;YAGD;gBACC,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,aAAa;gBACpB,WAAW,EACV,8NAA8N;gBAC/N,MAAM,EAAE,6BAA6B;aACrC;YAGD;gBACC,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,0BAA0B;gBACvC,MAAM,EAAE,0BAA0B;aAClC;YAGD;gBACC,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,cAAc;gBACrB,WAAW,EAAE,wBAAwB;gBACrC,MAAM,EAAE,eAAe;aACvB;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;CACD,CAAC;AAEW,QAAA,SAAS,GAAsB;IAC3C;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ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c,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,KAAK,CAAC;gBACjB,SAAS,EAAE,CAAC,cAAc,CAAC;aAC3B;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const regionField: INodeProperties;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.regionField = void 0;
4
+ exports.regionField = {
5
+ displayName: 'Region',
6
+ name: 'region',
7
+ type: 'options',
8
+ default: 'api',
9
+ description: 'Region of the endpoint',
10
+ required: true,
11
+ options: [
12
+ {
13
+ name: 'Default Endpoint',
14
+ value: 'api',
15
+ description: 'Default endpoint for the API',
16
+ },
17
+ {
18
+ name: 'Endpoint: Australia',
19
+ value: 'api-au',
20
+ description: 'Endpoint for Australia',
21
+ },
22
+ {
23
+ name: 'Endpoint: Europe (Frankfurt)',
24
+ value: 'api-de',
25
+ description: 'Endpoint for Europe (Frankfurt)',
26
+ },
27
+ {
28
+ name: 'Endpoint: US East (N. Virginia)',
29
+ value: 'api-us',
30
+ description: 'Endpoint for US East (N Virginia)',
31
+ },
32
+ {
33
+ name: 'Other: Alternative - Europe (Frankfurt)',
34
+ value: 'api-alt-de',
35
+ description: 'Alternative endpoint for Europe (Frankfurt)',
36
+ },
37
+ {
38
+ name: 'Other: Alternative - Singapore',
39
+ value: 'api-alt',
40
+ description: 'Alternative endpoint for Australia',
41
+ },
42
+ {
43
+ name: 'Other: Alternative - US East (N. Virginia)',
44
+ value: 'api-alt-us',
45
+ description: 'Alternative endpoint for US East (N Virginia)',
46
+ },
47
+ {
48
+ name: 'Other: Staging',
49
+ value: 'api-staging',
50
+ description: 'Staging endpoint',
51
+ },
52
+ ],
53
+ };
54
+ //# sourceMappingURL=SharedFields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SharedFields.js","sourceRoot":"","sources":["../../../../nodes/CraftMyPdf/descriptions/SharedFields.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAoB;IAC3C,WAAW,EAAE,QAAQ;IACrB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,KAAK;IACd,WAAW,EAAE,wBAAwB;IACrC,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACR;YACC,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,8BAA8B;SAC3C;QACD;YACC,IAAI,EAAE,qBAAqB;YAC3B,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,wBAAwB;SACrC;QACD;YACC,IAAI,EAAE,8BAA8B;YACpC,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,iCAAiC;SAC9C;QACD;YACC,IAAI,EAAE,iCAAiC;YACvC,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,mCAAmC;SAChD;QACD;YACC,IAAI,EAAE,yCAAyC;YAC/C,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,6CAA6C;SAC1D;QACD;YACC,IAAI,EAAE,gCAAgC;YACtC,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,oCAAoC;SACjD;QACD;YACC,IAAI,EAAE,4CAA4C;YAClD,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,+CAA+C;SAC5D;QACD;YACC,IAAI,EAAE,gBAAgB;YACtB,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,kBAAkB;SAC/B;KACD;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const transactionOperations: INodeProperties[];
3
+ export declare const transactionFields: INodeProperties[];