n8n-nodes-redmine
Version:
Redmine node for n8n
120 lines • 3.12 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateFields = exports.createFields = exports.commonFields = void 0;
const constants_1 = require("./constants");
exports.commonFields = [
{
displayName: 'Issue ID',
name: 'issueId',
type: 'string',
required: true,
displayOptions: {
show: {
resource: ['issue'],
operation: ['get', 'delete', 'update', 'addWatcher'],
},
},
default: '',
description: 'The ID of the issue to get',
},
{
displayName: 'User ID',
name: 'userId',
type: 'string',
required: true,
displayOptions: {
show: {
resource: ['issue'],
operation: ['addWatcher'],
},
},
default: '',
description: 'The ID of the user to add as a watcher',
},
{
displayName: 'Include',
name: 'include',
type: 'multiOptions',
displayOptions: {
show: {
resource: ['issue'],
operation: ['get'],
},
},
options: constants_1.ISSUE_INCLUDE_OPTIONS,
default: [],
description: 'Associated data to include in the response',
},
];
exports.createFields = [
{
displayName: 'Project ID',
name: 'projectId',
type: 'string',
required: true,
displayOptions: {
show: {
resource: ['issue'],
operation: ['create'],
},
},
default: '',
description: 'The ID of the project the issue belongs to',
},
{
displayName: 'Subject',
name: 'subject',
type: 'string',
required: true,
displayOptions: {
show: {
resource: ['issue'],
operation: ['create'],
},
},
default: '',
description: 'The subject of the issue',
},
];
exports.updateFields = [
{
displayName: 'Subject',
name: 'subject',
type: 'string',
displayOptions: {
show: {
resource: ['issue'],
operation: ['update'],
},
},
default: '',
description: 'The new subject of the issue. If blank, the subject will not be changed.',
},
{
displayName: 'Notes',
name: 'notes',
type: 'string',
displayOptions: {
show: {
resource: ['issue'],
operation: ['update'],
},
},
default: '',
description: 'Comments about the update',
},
{
displayName: 'Private Notes',
name: 'private_notes',
type: 'boolean',
displayOptions: {
show: {
resource: ['issue'],
operation: ['update'],
},
},
default: false,
description: 'Whether to create private notes',
},
];
//# sourceMappingURL=fields.js.map