@kaia-team/n8n-nodes-kaia
Version:
n8n nodes for Kaia LLM integration
74 lines • 2.37 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.bodyProperty = exports.additionalFieldsProperty = void 0;
/**
* Shared Properties
* Properties that are used across multiple API resources
*/
/**
* Additional Fields - used by most APIs
*/
exports.additionalFieldsProperty = {
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['widget', 'systemWebhook', 'widgets', 'assistants', 'statistics', 'chatHistories', 'userAccounts', 'answerRatings', 'answerReportings', 'summaryConfig', 'userFiles', 'apiConfigs', 'documents', 'documentImports', 'adminTokens', 'vecDbs', 'documentShards', 'crawls', 'feeds', 'contents', 'linkPackages', 'shop'],
},
},
options: [
{
displayName: 'Headers',
name: 'headers',
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
},
placeholder: 'Add Header',
default: {},
options: [
{
name: 'headerParameters',
displayName: 'Headers',
values: [
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Name of the header',
},
{
displayName: 'Value',
name: 'value',
type: 'string',
default: '',
description: 'Value of the header',
},
],
},
],
},
],
};
/**
* Body parameter for POST/PUT operations
*/
exports.bodyProperty = {
displayName: 'Body',
name: 'body',
type: 'string',
typeOptions: { rows: 4 },
default: '',
displayOptions: {
show: {
resource: ['admin'],
operation: ['post', 'put', 'patch'],
},
},
description: 'Request body for POST/PUT operations',
};
//# sourceMappingURL=sharedProperties.js.map