n8n-nodes-trustmarkt 0.2.0 → 0.3.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 (50) hide show
  1. package/README.md +44 -1
  2. package/dist/credentials/TrustmarktApi.credentials.js +1 -1
  3. package/dist/credentials/TrustmarktApi.credentials.js.map +1 -1
  4. package/dist/credentials/trustmarkt-dark.svg +35 -0
  5. package/dist/icons/trustmarkt-dark.svg +35 -0
  6. package/dist/nodes/Trustmarkt/Trustmarkt.node.d.ts +7 -0
  7. package/dist/nodes/Trustmarkt/Trustmarkt.node.js +9 -2
  8. package/dist/nodes/Trustmarkt/Trustmarkt.node.js.map +1 -1
  9. package/dist/nodes/Trustmarkt/Trustmarkt.node.json +1 -1
  10. package/dist/nodes/Trustmarkt/TrustmarktTrigger.node.js +3 -3
  11. package/dist/nodes/Trustmarkt/TrustmarktTrigger.node.js.map +1 -1
  12. package/dist/nodes/Trustmarkt/TrustmarktTrigger.node.json +1 -1
  13. package/dist/nodes/Trustmarkt/resources/article/index.js +9 -0
  14. package/dist/nodes/Trustmarkt/resources/article/index.js.map +1 -1
  15. package/dist/nodes/Trustmarkt/resources/article/operations/create.d.ts +3 -0
  16. package/dist/nodes/Trustmarkt/resources/article/operations/create.js +57 -0
  17. package/dist/nodes/Trustmarkt/resources/article/operations/create.js.map +1 -0
  18. package/dist/nodes/Trustmarkt/resources/article/operations/fields.d.ts +2 -0
  19. package/dist/nodes/Trustmarkt/resources/article/operations/fields.js +61 -0
  20. package/dist/nodes/Trustmarkt/resources/article/operations/fields.js.map +1 -0
  21. package/dist/nodes/Trustmarkt/resources/article/operations/startAiGeneration.d.ts +3 -0
  22. package/dist/nodes/Trustmarkt/resources/article/operations/startAiGeneration.js +40 -0
  23. package/dist/nodes/Trustmarkt/resources/article/operations/startAiGeneration.js.map +1 -0
  24. package/dist/nodes/Trustmarkt/resources/article/operations/update.d.ts +3 -0
  25. package/dist/nodes/Trustmarkt/resources/article/operations/update.js +66 -0
  26. package/dist/nodes/Trustmarkt/resources/article/operations/update.js.map +1 -0
  27. package/dist/nodes/Trustmarkt/resources/caseStudy/index.js +9 -0
  28. package/dist/nodes/Trustmarkt/resources/caseStudy/index.js.map +1 -1
  29. package/dist/nodes/Trustmarkt/resources/caseStudy/operations/create.d.ts +3 -0
  30. package/dist/nodes/Trustmarkt/resources/caseStudy/operations/create.js +71 -0
  31. package/dist/nodes/Trustmarkt/resources/caseStudy/operations/create.js.map +1 -0
  32. package/dist/nodes/Trustmarkt/resources/caseStudy/operations/startAiGeneration.d.ts +3 -0
  33. package/dist/nodes/Trustmarkt/resources/caseStudy/operations/startAiGeneration.js +40 -0
  34. package/dist/nodes/Trustmarkt/resources/caseStudy/operations/startAiGeneration.js.map +1 -0
  35. package/dist/nodes/Trustmarkt/resources/caseStudy/operations/update.d.ts +3 -0
  36. package/dist/nodes/Trustmarkt/resources/caseStudy/operations/update.js +414 -0
  37. package/dist/nodes/Trustmarkt/resources/caseStudy/operations/update.js.map +1 -0
  38. package/dist/nodes/Trustmarkt/shared/aiGeneration.d.ts +2 -0
  39. package/dist/nodes/Trustmarkt/shared/aiGeneration.js +98 -0
  40. package/dist/nodes/Trustmarkt/shared/aiGeneration.js.map +1 -0
  41. package/dist/nodes/Trustmarkt/shared/listSearch.d.ts +11 -0
  42. package/dist/nodes/Trustmarkt/shared/listSearch.js +72 -0
  43. package/dist/nodes/Trustmarkt/shared/listSearch.js.map +1 -0
  44. package/dist/nodes/Trustmarkt/shared/transport.d.ts +4 -0
  45. package/dist/nodes/Trustmarkt/shared/transport.js +123 -1
  46. package/dist/nodes/Trustmarkt/shared/transport.js.map +1 -1
  47. package/dist/nodes/Trustmarkt/trustmarkt-dark.svg +35 -0
  48. package/dist/package.json +4 -4
  49. package/dist/tsconfig.tsbuildinfo +1 -1
  50. package/package.json +4 -4
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties, INodePropertyOptions } from 'n8n-workflow';
2
+ export declare const createCaseStudyOperation: INodePropertyOptions;
3
+ export declare const createCaseStudyFields: INodeProperties[];
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createCaseStudyFields = exports.createCaseStudyOperation = void 0;
4
+ const transport_1 = require("../../../shared/transport");
5
+ const showForCreate = {
6
+ resource: ['caseStudy'],
7
+ operation: ['create'],
8
+ };
9
+ exports.createCaseStudyOperation = {
10
+ name: 'Create',
11
+ value: 'create',
12
+ action: 'Create a case study',
13
+ description: 'Create a new case study draft',
14
+ routing: {
15
+ request: {
16
+ method: 'POST',
17
+ url: '/case-studies',
18
+ ignoreHttpStatusErrors: true,
19
+ },
20
+ output: {
21
+ postReceive: [transport_1.handleTrustmarktApiError],
22
+ },
23
+ },
24
+ };
25
+ exports.createCaseStudyFields = [
26
+ {
27
+ displayName: 'Title',
28
+ name: 'title',
29
+ type: 'string',
30
+ required: true,
31
+ default: '',
32
+ placeholder: 'e.g. Rebranding for Bäckerei Schmidt',
33
+ description: 'The internal title of the case study (3–100 characters). The AI generation may replace it.',
34
+ displayOptions: {
35
+ show: showForCreate,
36
+ },
37
+ routing: {
38
+ send: {
39
+ type: 'body',
40
+ property: 'title',
41
+ },
42
+ },
43
+ },
44
+ {
45
+ displayName: 'Additional Fields',
46
+ name: 'additionalFields',
47
+ type: 'collection',
48
+ placeholder: 'Add Field',
49
+ default: {},
50
+ displayOptions: {
51
+ show: showForCreate,
52
+ },
53
+ options: [
54
+ {
55
+ displayName: 'Customer Name',
56
+ name: 'customerName',
57
+ type: 'string',
58
+ default: '',
59
+ placeholder: 'e.g. Bäckerei Schmidt',
60
+ description: 'The name of the customer the case study is about (3–100 characters). The AI generation fills it in when empty.',
61
+ routing: {
62
+ send: {
63
+ type: 'body',
64
+ property: 'customer_name',
65
+ },
66
+ },
67
+ },
68
+ ],
69
+ },
70
+ ];
71
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceR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ACpH,OAAO,EAAE;oBACL,IAAI,EAAE;wBACF,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,eAAe;qBAC5B;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties, INodePropertyOptions } from 'n8n-workflow';
2
+ export declare const startAiGenerationCaseStudyOperation: INodePropertyOptions;
3
+ export declare const startAiGenerationCaseStudyFields: INodeProperties[];
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.startAiGenerationCaseStudyFields = exports.startAiGenerationCaseStudyOperation = void 0;
4
+ const aiGeneration_1 = require("../../../shared/aiGeneration");
5
+ const transport_1 = require("../../../shared/transport");
6
+ const showForStart = {
7
+ resource: ['caseStudy'],
8
+ operation: ['startAiGeneration'],
9
+ };
10
+ exports.startAiGenerationCaseStudyOperation = {
11
+ name: 'Start AI Generation',
12
+ value: 'startAiGeneration',
13
+ action: 'Start AI generation for a case study',
14
+ description: 'Let the Trustmarkt AI write a case study draft from a YouTube video or a text',
15
+ routing: {
16
+ request: {
17
+ method: 'POST',
18
+ url: '=/case-studies/{{ $parameter.caseStudyId }}/ai-generation',
19
+ ignoreHttpStatusErrors: true,
20
+ },
21
+ output: {
22
+ postReceive: [transport_1.handleTrustmarktApiError],
23
+ },
24
+ },
25
+ };
26
+ exports.startAiGenerationCaseStudyFields = [
27
+ {
28
+ displayName: 'Case Study ID',
29
+ name: 'caseStudyId',
30
+ type: 'string',
31
+ required: true,
32
+ default: '',
33
+ description: 'The unique identifier of the case study draft the AI should write',
34
+ displayOptions: {
35
+ show: showForStart,
36
+ },
37
+ },
38
+ ...(0, aiGeneration_1.getAiGenerationFields)('caseStudy', 'case study', 'the texts, the metrics and the customer name'),
39
+ ];
40
+ //# sourceMappingURL=startAiGeneration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"startAiGeneration.js","sourceRoot":"","sources":["../../../../../../nodes/Trustmarkt/resources/caseStudy/operations/startAiGeneration.ts"],"names":[],"mappings":";;;AAgBA,+DAAqE;AACrE,yDAAqE;AAKrE,MAAM,YAAY,GAAG;IACjB,QAAQ,EAAE,CAAC,WAAW,CAAC;IACvB,SAAS,EAAE,CAAC,mBAAmB,CAAC;CACnC,CAAC;AAKW,QAAA,mCAAmC,GAAyB;IACrE,IAAI,EAAE,qBAAqB;IAC3B,KAAK,EAAE,mBAAmB;IAC1B,MAAM,EAAE,sCAAsC;IAC9C,WAAW,EAAE,+EAA+E;IAC5F,OAAO,EAAE;QACL,OAAO,EAAE;YACL,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,2DAA2D;YAChE,sBAAsB,EAAE,IAAI;SAC/B;QACD,MAAM,EAAE;YACJ,WAAW,EAAE,CAAC,oCAAwB,CAAC;SAC1C;KACJ;CACJ,CAAC;AAKW,QAAA,gCAAgC,GAAsB;IAI/D;QACI,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,mEAAmE;QAChF,cAAc,EAAE;YACZ,IAAI,EAAE,YAAY;SACrB;KACJ;IACD,GAAG,IAAA,oCAAqB,EAAC,WAAW,EAAE,YAAY,EAAE,8CAA8C,CAAC;CACtG,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties, INodePropertyOptions } from 'n8n-workflow';
2
+ export declare const updateCaseStudyOperation: INodePropertyOptions;
3
+ export declare const updateCaseStudyFields: INodeProperties[];
@@ -0,0 +1,414 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateCaseStudyFields = exports.updateCaseStudyOperation = void 0;
4
+ const listSearch_1 = require("../../../shared/listSearch");
5
+ const transport_1 = require("../../../shared/transport");
6
+ const showForUpdate = {
7
+ resource: ['caseStudy'],
8
+ operation: ['update'],
9
+ };
10
+ const DATE_VALUE = '={{ $value ? String($value).slice(0, 10) : null }}';
11
+ const MARKDOWN_NOTE = 'Markdown (headings H2–H4, bold, italic, links, lists, dividers), max 50,000 characters. Replaces the whole section; HTML tags are removed.';
12
+ exports.updateCaseStudyOperation = {
13
+ name: 'Update',
14
+ value: 'update',
15
+ action: 'Update a case study',
16
+ description: 'Change the texts, details and settings of a case study',
17
+ routing: {
18
+ request: {
19
+ method: 'PUT',
20
+ url: '=/case-studies/{{ $parameter.caseStudyId }}',
21
+ ignoreHttpStatusErrors: true,
22
+ },
23
+ output: {
24
+ postReceive: [transport_1.handleTrustmarktApiError],
25
+ },
26
+ },
27
+ };
28
+ exports.updateCaseStudyFields = [
29
+ {
30
+ displayName: 'Case Study ID',
31
+ name: 'caseStudyId',
32
+ type: 'string',
33
+ required: true,
34
+ default: '',
35
+ description: 'The unique identifier of the case study to update',
36
+ displayOptions: {
37
+ show: showForUpdate,
38
+ },
39
+ },
40
+ {
41
+ displayName: 'Images, metrics and the linked review can only be changed in the Trustmarkt web app. A published case study needs a summary, customer website, customer industry, start date and an end date (or \'Is Ongoing\').',
42
+ name: 'updateNotice',
43
+ type: 'notice',
44
+ default: '',
45
+ displayOptions: {
46
+ show: showForUpdate,
47
+ },
48
+ },
49
+ {
50
+ displayName: 'Update Fields',
51
+ name: 'updateFields',
52
+ type: 'collection',
53
+ placeholder: 'Add Field',
54
+ default: {},
55
+ displayOptions: {
56
+ show: showForUpdate,
57
+ },
58
+ options: [
59
+ {
60
+ displayName: 'About Section Text',
61
+ name: 'aboutSectionText',
62
+ type: 'string',
63
+ default: '',
64
+ typeOptions: {
65
+ rows: 4,
66
+ },
67
+ description: 'The text of the section about your company (150–500 characters)',
68
+ routing: {
69
+ send: {
70
+ type: 'body',
71
+ property: 'about_section_text',
72
+ },
73
+ },
74
+ },
75
+ {
76
+ displayName: 'Call to Action Text',
77
+ name: 'ctaText',
78
+ type: 'string',
79
+ default: '',
80
+ placeholder: 'e.g. Tell us about your project, we answer within a day.',
81
+ description: 'The text of the call to action at the end of the page (max 255 characters)',
82
+ routing: {
83
+ send: {
84
+ type: 'body',
85
+ property: 'cta_text',
86
+ },
87
+ },
88
+ },
89
+ {
90
+ displayName: 'Call to Action Title',
91
+ name: 'ctaTitle',
92
+ type: 'string',
93
+ default: '',
94
+ placeholder: 'e.g. Want the same for your business?',
95
+ description: 'The heading of the call to action at the end of the page (max 100 characters)',
96
+ routing: {
97
+ send: {
98
+ type: 'body',
99
+ property: 'cta_title',
100
+ },
101
+ },
102
+ },
103
+ (0, listSearch_1.getListResourceLocator)({
104
+ displayName: 'Customer Industry',
105
+ name: 'customerIndustryId',
106
+ description: 'The industry of the customer. Choose one from the list or enter its ID; leave empty to remove it.',
107
+ searchListMethod: 'searchIndustries',
108
+ placeholder: 'e.g. jKEvY5y1rbklGqJ9knoa',
109
+ bodyProperty: 'customer_industry_id',
110
+ }),
111
+ {
112
+ displayName: 'Customer Name',
113
+ name: 'customerName',
114
+ type: 'string',
115
+ default: '',
116
+ placeholder: 'e.g. Bäckerei Schmidt',
117
+ description: 'The name of the customer (3–100 characters)',
118
+ routing: {
119
+ send: {
120
+ type: 'body',
121
+ property: 'customer_name',
122
+ },
123
+ },
124
+ },
125
+ {
126
+ displayName: 'Customer Website',
127
+ name: 'customerWebsite',
128
+ type: 'string',
129
+ default: '',
130
+ placeholder: 'e.g. https://www.baeckerei-schmidt.de',
131
+ description: 'The website of the customer (max 255 characters)',
132
+ routing: {
133
+ send: {
134
+ type: 'body',
135
+ property: 'customer_website',
136
+ },
137
+ },
138
+ },
139
+ {
140
+ displayName: 'Display Title',
141
+ name: 'displayTitle',
142
+ type: 'string',
143
+ default: '',
144
+ placeholder: 'e.g. How Bäckerei Schmidt doubled its orders',
145
+ description: "The title shown on the public page (3–75 characters). Falls back to 'Title' when empty.",
146
+ routing: {
147
+ send: {
148
+ type: 'body',
149
+ property: 'display_title',
150
+ },
151
+ },
152
+ },
153
+ {
154
+ displayName: 'End Date',
155
+ name: 'endDate',
156
+ type: 'dateTime',
157
+ default: '',
158
+ description: "When the project ended, not in the future. Leave out when 'Is Ongoing' is on.",
159
+ routing: {
160
+ send: {
161
+ type: 'body',
162
+ property: 'end_date',
163
+ value: DATE_VALUE,
164
+ },
165
+ },
166
+ },
167
+ {
168
+ displayName: 'Goals Content',
169
+ name: 'goalsContent',
170
+ type: 'string',
171
+ default: '',
172
+ typeOptions: {
173
+ rows: 5,
174
+ },
175
+ description: `The section about the goals as ${MARKDOWN_NOTE}`,
176
+ routing: {
177
+ send: {
178
+ type: 'body',
179
+ property: 'goals_content',
180
+ },
181
+ },
182
+ },
183
+ {
184
+ displayName: 'Goals Title',
185
+ name: 'goalsTitle',
186
+ type: 'string',
187
+ default: '',
188
+ placeholder: 'e.g. What we wanted to reach',
189
+ description: 'The heading of the section about the goals (max 100 characters)',
190
+ routing: {
191
+ send: {
192
+ type: 'body',
193
+ property: 'goals_title',
194
+ },
195
+ },
196
+ },
197
+ {
198
+ displayName: 'Is Ongoing',
199
+ name: 'isOngoing',
200
+ type: 'boolean',
201
+ default: false,
202
+ description: 'Whether the collaboration with the customer still runs. When on, the end date is removed.',
203
+ routing: {
204
+ send: {
205
+ type: 'body',
206
+ property: 'is_ongoing',
207
+ },
208
+ },
209
+ },
210
+ {
211
+ displayName: 'Metrics Summary',
212
+ name: 'metricsSummary',
213
+ type: 'string',
214
+ default: '',
215
+ placeholder: 'e.g. Six months after the launch.',
216
+ description: 'A short text below the metrics heading (max 255 characters)',
217
+ routing: {
218
+ send: {
219
+ type: 'body',
220
+ property: 'metrics_summary',
221
+ },
222
+ },
223
+ },
224
+ {
225
+ displayName: 'Metrics Title',
226
+ name: 'metricsTitle',
227
+ type: 'string',
228
+ default: '',
229
+ placeholder: 'e.g. Results in numbers',
230
+ description: 'The heading above the metrics (max 80 characters)',
231
+ routing: {
232
+ send: {
233
+ type: 'body',
234
+ property: 'metrics_title',
235
+ },
236
+ },
237
+ },
238
+ {
239
+ displayName: 'Problems Content',
240
+ name: 'problemsContent',
241
+ type: 'string',
242
+ default: '',
243
+ typeOptions: {
244
+ rows: 5,
245
+ },
246
+ description: `The section about the starting situation as ${MARKDOWN_NOTE}`,
247
+ routing: {
248
+ send: {
249
+ type: 'body',
250
+ property: 'problems_content',
251
+ },
252
+ },
253
+ },
254
+ {
255
+ displayName: 'Problems Title',
256
+ name: 'problemsTitle',
257
+ type: 'string',
258
+ default: '',
259
+ placeholder: 'e.g. Where the bakery stood',
260
+ description: 'The heading of the section about the starting situation (max 100 characters)',
261
+ routing: {
262
+ send: {
263
+ type: 'body',
264
+ property: 'problems_title',
265
+ },
266
+ },
267
+ },
268
+ {
269
+ displayName: 'Results Content',
270
+ name: 'resultsContent',
271
+ type: 'string',
272
+ default: '',
273
+ typeOptions: {
274
+ rows: 5,
275
+ },
276
+ description: `The section about the results as ${MARKDOWN_NOTE}`,
277
+ routing: {
278
+ send: {
279
+ type: 'body',
280
+ property: 'results_content',
281
+ },
282
+ },
283
+ },
284
+ {
285
+ displayName: 'Results Title',
286
+ name: 'resultsTitle',
287
+ type: 'string',
288
+ default: '',
289
+ placeholder: 'e.g. What came out of it',
290
+ description: 'The heading of the section about the results (max 100 characters)',
291
+ routing: {
292
+ send: {
293
+ type: 'body',
294
+ property: 'results_title',
295
+ },
296
+ },
297
+ },
298
+ {
299
+ displayName: 'Show About Section',
300
+ name: 'showAboutSection',
301
+ type: 'boolean',
302
+ default: false,
303
+ description: 'Whether the page shows the section about your company',
304
+ routing: {
305
+ send: {
306
+ type: 'body',
307
+ property: 'show_about_section',
308
+ },
309
+ },
310
+ },
311
+ {
312
+ displayName: 'Show Video Section',
313
+ name: 'showVideoSection',
314
+ type: 'boolean',
315
+ default: false,
316
+ description: 'Whether the page shows the video section',
317
+ routing: {
318
+ send: {
319
+ type: 'body',
320
+ property: 'show_video_section',
321
+ },
322
+ },
323
+ },
324
+ {
325
+ displayName: 'Start Date',
326
+ name: 'startDate',
327
+ type: 'dateTime',
328
+ default: '',
329
+ description: 'When the project started',
330
+ routing: {
331
+ send: {
332
+ type: 'body',
333
+ property: 'start_date',
334
+ value: DATE_VALUE,
335
+ },
336
+ },
337
+ },
338
+ {
339
+ displayName: 'Summary',
340
+ name: 'summary',
341
+ type: 'string',
342
+ default: '',
343
+ typeOptions: {
344
+ rows: 3,
345
+ },
346
+ description: 'A short summary of the project (10–300 characters)',
347
+ routing: {
348
+ send: {
349
+ type: 'body',
350
+ property: 'summary',
351
+ },
352
+ },
353
+ },
354
+ {
355
+ displayName: 'Tags',
356
+ name: 'tags',
357
+ type: 'string',
358
+ default: '',
359
+ placeholder: 'e.g. Branding, Online Shop',
360
+ description: 'Comma-separated tags to group your case studies, e.g. for widgets (max 10 tags, 30 characters each). Replaces the current tags; leave empty to remove them all.',
361
+ routing: {
362
+ send: {
363
+ type: 'body',
364
+ property: 'tags',
365
+ value: '={{ (Array.isArray($value) ? $value : String($value ?? "").split(",")).map(tag => String(tag).trim()).filter(tag => tag !== "") }}',
366
+ },
367
+ },
368
+ },
369
+ {
370
+ displayName: 'Title',
371
+ name: 'title',
372
+ type: 'string',
373
+ default: '',
374
+ placeholder: 'e.g. Rebranding for Bäckerei Schmidt',
375
+ description: 'The internal title of the case study (3–100 characters)',
376
+ routing: {
377
+ send: {
378
+ type: 'body',
379
+ property: 'title',
380
+ },
381
+ },
382
+ },
383
+ {
384
+ displayName: 'Video Link',
385
+ name: 'videoLink',
386
+ type: 'string',
387
+ default: '',
388
+ placeholder: 'e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ',
389
+ description: 'A link to a video on YouTube, Vimeo or Wistia (max 255 characters). Leave empty to remove the video.',
390
+ routing: {
391
+ send: {
392
+ type: 'body',
393
+ property: 'video_link',
394
+ },
395
+ },
396
+ },
397
+ {
398
+ displayName: 'Video Section Title',
399
+ name: 'videoSectionTitle',
400
+ type: 'string',
401
+ default: '',
402
+ placeholder: 'e.g. The project in two minutes',
403
+ description: 'The heading of the video section (max 85 characters)',
404
+ routing: {
405
+ send: {
406
+ type: 'body',
407
+ property: 'video_section_title',
408
+ },
409
+ },
410
+ },
411
+ ],
412
+ },
413
+ ];
414
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../../nodes/Trustmarkt/resources/caseStudy/operations/update.ts"],"names":[],"mappings":";;;AAoBA,2DAAoE;AACpE,yDAAqE;AAKrE,MAAM,aAAa,GAAG;IAClB,QAAQ,EAAE,CAAC,WAAW,CAAC;IACvB,SAAS,EAAE,CAAC,QAAQ,CAAC;CACxB,CAAC;AAKF,MAAM,UAAU,GAAG,oDAAoD,CAAC;AAKxE,MAAM,aAAa,GACf,4IAA4I,CAAC;AAKpI,QAAA,wBAAwB,GAAyB;IAC1D,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,qBAAqB;IAC7B,WAAW,EAAE,wDAAwD;IACrE,OAAO,EAAE;QACL,OAAO,EAAE;YACL,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,6CAA6C;YAClD,sBAAsB,EAAE,IAAI;SAC/B;QACD,MAAM,EAAE;YACJ,WAAW,EAAE,CAAC,oCAAwB,CAAC;SAC1C;KACJ;CACJ,CAAC;AAKW,QAAA,qBAAqB,GAAsB;IAIpD;QACI,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,mDAAmD;QAChE,cAAc,EAAE;YACZ,IAAI,EAAE,aAAa;SACtB;KACJ;IACD;QACI,WAAW,EACP,mNAAmN;QACvN,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACZ,IAAI,EAAE,aAAa;SACtB;KACJ;IAKD;QACI,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAA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d,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sCAAsC;gBACnD,WAAW,EAAE,yDAAyD;gBACtE,OAAO,EAAE;oBACL,IAAI,EAAE;wBACF,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,OAAO;qBACpB;iBACJ;aACJ;YACD;gBACI,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,kDAAkD;gBAC/D,WAAW,EAAE,sGAAsG;gBACnH,OAAO,EAAE;oBACL,IAAI,EAAE;wBACF,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,YAAY;qBACzB;iBACJ;aACJ;YACD;gBACI,WAAW,EAAE,qBAAqB;gBAClC,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,iCAAiC;gBAC9C,WAAW,EAAE,sDAAsD;gBACnE,OAAO,EAAE;oBACL,IAAI,EAAE;wBACF,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,qBAAqB;qBAClC;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare function getAiGenerationFields(resource: string, itemName: string, replacedContent: string): INodeProperties[];
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAiGenerationFields = getAiGenerationFields;
4
+ const transport_1 = require("./transport");
5
+ function getAiGenerationFields(resource, itemName, replacedContent) {
6
+ const showForStart = {
7
+ resource: [resource],
8
+ operation: ['startAiGeneration'],
9
+ };
10
+ return [
11
+ {
12
+ displayName: `The AI writes in the background, usually in 2–3 minutes, and replaces ${replacedContent} of the ${itemName}. Add a Wait node (about 3 minutes), then use 'Get' and check 'ai_generation.status': 'completed' when done, 'failed' (with 'ai_generation.error') when it should be started again.`,
13
+ name: 'aiGenerationNotice',
14
+ type: 'notice',
15
+ default: '',
16
+ displayOptions: {
17
+ show: showForStart,
18
+ },
19
+ },
20
+ {
21
+ displayName: 'Source',
22
+ name: 'source',
23
+ type: 'options',
24
+ required: true,
25
+ default: 'youtube',
26
+ description: `What the Trustmarkt AI writes the ${itemName} from`,
27
+ displayOptions: {
28
+ show: showForStart,
29
+ },
30
+ options: [
31
+ {
32
+ name: 'Text',
33
+ value: 'text',
34
+ description: 'A text such as an interview, notes or a transcript',
35
+ },
36
+ {
37
+ name: 'YouTube Video',
38
+ value: 'youtube',
39
+ description: 'A video on YouTube',
40
+ },
41
+ ],
42
+ routing: {
43
+ send: {
44
+ type: 'body',
45
+ property: 'source',
46
+ },
47
+ },
48
+ },
49
+ {
50
+ displayName: 'YouTube URL',
51
+ name: 'youtubeUrl',
52
+ type: 'string',
53
+ required: true,
54
+ default: '',
55
+ placeholder: 'e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ',
56
+ description: 'The link to the YouTube video (max 2,048 characters)',
57
+ displayOptions: {
58
+ show: {
59
+ ...showForStart,
60
+ source: ['youtube'],
61
+ },
62
+ },
63
+ routing: {
64
+ send: {
65
+ type: 'body',
66
+ property: 'youtube_url',
67
+ },
68
+ },
69
+ },
70
+ {
71
+ displayName: 'Text',
72
+ name: 'text',
73
+ type: 'string',
74
+ required: true,
75
+ default: '',
76
+ typeOptions: {
77
+ rows: 8,
78
+ },
79
+ placeholder: 'e.g. Interview with Anna from Bäckerei Schmidt: before the project they had 10 orders a week ...',
80
+ description: `The text the AI writes the ${itemName} from, e.g. an interview, notes or a transcript`,
81
+ hint: 'At least 100 words and at most 50,000 characters, so the AI does not have to invent content',
82
+ displayOptions: {
83
+ show: {
84
+ ...showForStart,
85
+ source: ['text'],
86
+ },
87
+ },
88
+ routing: {
89
+ send: {
90
+ type: 'body',
91
+ property: 'text',
92
+ preSend: [transport_1.validateAiGenerationText],
93
+ },
94
+ },
95
+ },
96
+ ];
97
+ }
98
+ //# sourceMappingURL=aiGeneration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aiGeneration.js","sourceRoot":"","sources":["../../../../nodes/Trustmarkt/shared/aiGeneration.ts"],"names":[],"mappings":";;AA0BA,sDAiGC;AA1GD,2CAAuD;AASvD,SAAgB,qBAAqB,CACjC,QAAgB,EAChB,QAAgB,EAChB,eAAuB;IAEvB,MAAM,YAAY,GAAG;QACjB,QAAQ,EAAE,CAAC,QAAQ,CAAC;QACpB,SAAS,EAAE,CAAC,mBAAmB,CAAC;KACnC,CAAC;IAEF,OAAO;QACH;YACI,WAAW,EAAE,yEAAyE,eAAe,WAAW,QAAQ,qLAAqL;YAC7S,IAAI,EAAE,oBAAoB;YAC1B,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,cAAc,EAAE;gBACZ,IAAI,EAAE,YAAY;aACrB;SACJ;QACD;YACI,WAAW,EAAE,QAAQ;YACrB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,qCAAqC,QAAQ,OAAO;YACjE,cAAc,EAAE;gBACZ,IAAI,EAAE,YAAY;aACrB;YACD,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,MAAM;oBACb,WAAW,EAAE,oDAAoD;iBACpE;gBACD;oBACI,IAAI,EAAE,eAAe;oBACrB,KAAK,EAAE,SAAS;oBAChB,WAAW,EAAE,oBAAoB;iBACpC;aACJ;YACD,OAAO,EAAE;gBACL,IAAI,EAAE;oBACF,IAAI,EAAE,MAAM;oBACZ,QAAQ,EAAE,QAAQ;iBACrB;aACJ;SACJ;QACD;YACI,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,kDAAkD;YAC/D,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