n8n-nodes-simple 0.4.0 → 0.4.2
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.
- package/dist/nodes/CoreAgent/description.js +0 -1
- package/dist/nodes/CoreAgent/description.js.map +1 -1
- package/dist/nodes/Subagent/description.js +1 -1
- package/dist/nodes/Subagent/description.js.map +1 -1
- package/dist/nodes/shared/actions/message.operation.js +59 -24
- package/dist/nodes/shared/actions/message.operation.js.map +1 -1
- package/dist/nodes/shared/actions/tool.js +2 -2
- package/dist/nodes/shared/actions/tool.js.map +1 -1
- package/dist/nodes/shared/descriptionGenerator.js +1 -0
- package/dist/nodes/shared/descriptionGenerator.js.map +1 -1
- package/dist/nodes/shared/properties.js +94 -110
- package/dist/nodes/shared/properties.js.map +1 -1
- package/dist/nodes/shared/tool/{customFields.d.ts → visualEditor.d.ts} +5 -5
- package/dist/nodes/shared/tool/visualEditor.js +61 -0
- package/dist/nodes/shared/tool/visualEditor.js.map +1 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/nodes/shared/tool/customFields.js +0 -63
- package/dist/nodes/shared/tool/customFields.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.convertCustomFieldsToSchema = convertCustomFieldsToSchema;
|
|
4
|
-
function convertCustomFieldsToSchema(visualProperties, structuredOutputName = '', structuredOutputIsArray = false, structuredOutputArrayItemName = '') {
|
|
5
|
-
const properties = {};
|
|
6
|
-
const required = [];
|
|
7
|
-
for (const field of visualProperties) {
|
|
8
|
-
const property = {};
|
|
9
|
-
if ((field.isArray || structuredOutputIsArray) && field.name.trim() !== "") {
|
|
10
|
-
property.name = field.name;
|
|
11
|
-
}
|
|
12
|
-
property.type = field.type;
|
|
13
|
-
if (field.description.trim() !== "") {
|
|
14
|
-
property.description = field.description;
|
|
15
|
-
}
|
|
16
|
-
if (field.isEnum) {
|
|
17
|
-
property.enum = field.enumValues;
|
|
18
|
-
}
|
|
19
|
-
var arrayProperty = undefined;
|
|
20
|
-
if (field.isArray && field.arrayName) {
|
|
21
|
-
arrayProperty = { type: "array" };
|
|
22
|
-
if (field.arrayDescription && field.arrayDescription.trim() !== "") {
|
|
23
|
-
arrayProperty.description = field.arrayDescription;
|
|
24
|
-
}
|
|
25
|
-
arrayProperty.items = property;
|
|
26
|
-
properties[field.arrayName] = arrayProperty;
|
|
27
|
-
required.push(field.arrayName);
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
properties[field.name] = property;
|
|
31
|
-
required.push(field.name);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
if (structuredOutputIsArray) {
|
|
35
|
-
return {
|
|
36
|
-
type: "object",
|
|
37
|
-
$defs: {
|
|
38
|
-
[structuredOutputArrayItemName]: {
|
|
39
|
-
type: "object",
|
|
40
|
-
properties,
|
|
41
|
-
required,
|
|
42
|
-
additionalProperties: false,
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
properties: {
|
|
46
|
-
[structuredOutputName]: {
|
|
47
|
-
type: "array",
|
|
48
|
-
items: { $ref: '#/$defs/' + structuredOutputArrayItemName }
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
required: [structuredOutputName],
|
|
52
|
-
additionalProperties: false,
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
;
|
|
56
|
-
return {
|
|
57
|
-
type: "object",
|
|
58
|
-
properties,
|
|
59
|
-
required,
|
|
60
|
-
additionalProperties: false,
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=customFields.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"customFields.js","sourceRoot":"","sources":["../../../../nodes/shared/tool/customFields.ts"],"names":[],"mappings":";;AAkCA,kEAgFC;AAhFD,SAAgB,2B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