n8n-nodes-fatture-in-cloud
Version:
n8n community node for Fatture in Cloud integration using the official TypeScript SDK
235 lines • 7.18 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SettingsResource = void 0;
exports.SettingsResource = {
name: 'settings',
displayName: 'Settings',
properties: [
{
displayName: 'Company ID',
name: 'companyId',
type: 'number',
required: true,
default: 0,
description: 'The company ID for the operation',
},
{
displayName: 'Settings Type',
name: 'settingsType',
type: 'options',
required: true,
options: [
{
name: 'Payment Accounts',
value: 'payment_accounts',
description: 'Manage payment accounts',
},
{
name: 'Payment Methods',
value: 'payment_methods',
description: 'Manage payment methods',
},
{
name: 'VAT Types',
value: 'vat_types',
description: 'Manage VAT types',
},
{
name: 'Tax Profile',
value: 'tax_profile',
description: 'Get tax profile',
},
],
default: 'payment_accounts',
description: 'The type of settings to manage',
},
{
displayName: 'Item ID',
name: 'itemId',
type: 'number',
displayOptions: {
show: {
operation: ['get', 'update', 'delete'],
settingsType: ['payment_accounts', 'payment_methods', 'vat_types'],
},
},
default: 0,
description: 'The ID of the item to manage',
},
{
displayName: 'Name',
name: 'name',
type: 'string',
required: true,
displayOptions: {
show: {
operation: ['create', 'update'],
settingsType: ['payment_accounts', 'payment_methods'],
},
},
default: '',
description: 'The name of the item',
},
{
displayName: 'Payment Account Type',
name: 'type',
type: 'options',
displayOptions: {
show: {
operation: ['create', 'update'],
settingsType: ['payment_accounts'],
},
},
options: [
{
name: 'Standard',
value: 'standard',
},
{
name: 'Bank',
value: 'bank',
},
{
name: 'Cash',
value: 'cash',
},
],
default: 'standard',
description: 'The type of payment account',
},
{
displayName: 'IBAN',
name: 'iban',
type: 'string',
displayOptions: {
show: {
operation: ['create', 'update'],
settingsType: ['payment_accounts'],
},
},
default: '',
description: 'The IBAN of the payment account',
},
{
displayName: 'VAT Value',
name: 'vatValue',
type: 'number',
required: true,
displayOptions: {
show: {
operation: ['create', 'update'],
settingsType: ['vat_types'],
},
},
default: 22,
description: 'The VAT percentage value',
},
{
displayName: 'VAT Description',
name: 'vatDescription',
type: 'string',
displayOptions: {
show: {
operation: ['create', 'update'],
settingsType: ['vat_types'],
},
},
default: '',
},
{
displayName: 'VAT Notes',
name: 'vatNotes',
type: 'string',
displayOptions: {
show: {
operation: ['create', 'update'],
settingsType: ['vat_types'],
},
},
default: '',
description: 'Additional VAT notes',
},
{
displayName: 'E-Invoice',
name: 'eInvoice',
type: 'boolean',
displayOptions: {
show: {
operation: ['create', 'update'],
settingsType: ['vat_types'],
},
},
default: true,
description: 'Whether this VAT type is for e-invoices',
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
displayOptions: {
show: {
operation: ['get'],
},
},
default: {},
options: [
{
displayName: 'Fields',
name: 'fields',
type: 'string',
default: '',
description: 'Comma-separated list of fields to include in the response',
},
{
displayName: 'Fieldset',
name: 'fieldset',
type: 'options',
options: [
{
name: 'Basic',
value: 'basic',
},
{
name: 'Detailed',
value: 'detailed',
},
],
default: 'basic',
description: 'The fieldset to use for the response',
},
],
},
],
operations: [
{
name: 'Create',
displayName: 'Create',
value: 'create',
description: 'Create a new settings item',
action: 'Create a settings item',
},
{
name: 'Delete',
displayName: 'Delete',
value: 'delete',
description: 'Delete a settings item',
action: 'Delete a settings item',
},
{
name: 'Get',
displayName: 'Get',
value: 'get',
description: 'Get settings or a specific item',
action: 'Get settings',
},
{
name: 'Update',
displayName: 'Update',
value: 'update',
description: 'Update settings or a specific item',
action: 'Update settings',
},
],
};
//# sourceMappingURL=SettingsResource.js.map