UNPKG

n8n-nodes-fatture-in-cloud

Version:

n8n community node for Fatture in Cloud integration using the official TypeScript SDK

286 lines 8.94 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ProductsResource = void 0; exports.ProductsResource = { name: 'product', displayName: 'Product', properties: [ { displayName: 'Company ID', name: 'companyId', type: 'number', required: true, default: 0, description: 'The company ID for the operation', }, { displayName: 'Product ID', name: 'productId', type: 'number', required: true, displayOptions: { show: { operation: ['get', 'update', 'delete'], }, }, default: 0, description: 'The ID of the product', }, { displayName: 'Product Name', name: 'name', type: 'string', required: true, displayOptions: { show: { operation: ['create', 'update'], }, }, default: '', description: 'The name of the product', }, { displayName: 'Product Code', name: 'code', type: 'string', displayOptions: { show: { operation: ['create', 'update'], }, }, default: '', description: 'The code of the product', }, { displayName: 'Net Price', name: 'netPrice', type: 'number', displayOptions: { show: { operation: ['create', 'update'], }, }, default: 0, description: 'The net price of the product', }, { displayName: 'Net Cost', name: 'netCost', type: 'number', displayOptions: { show: { operation: ['create', 'update'], }, }, default: 0, description: 'The net cost of the product', }, { displayName: 'Measure', name: 'measure', type: 'string', displayOptions: { show: { operation: ['create', 'update'], }, }, default: '', description: 'The unit of measure for the product', }, { displayName: 'Description', name: 'description', type: 'string', displayOptions: { show: { operation: ['create', 'update'], }, }, default: '', description: 'The description of the product', }, { displayName: 'Category', name: 'category', type: 'string', displayOptions: { show: { operation: ['create', 'update'], }, }, default: '', description: 'The category of the product', }, { displayName: 'In Stock', name: 'inStock', type: 'boolean', displayOptions: { show: { operation: ['create', 'update'], }, }, default: true, description: 'Whether the product is in stock', }, { displayName: 'Default VAT', name: 'defaultVat', type: 'fixedCollection', displayOptions: { show: { operation: ['create', 'update'], }, }, default: {}, placeholder: 'Add VAT', options: [ { displayName: 'VAT Details', name: 'vatDetails', values: [ { displayName: 'Is Disabled', name: 'isDisabled', type: 'boolean', default: false, description: 'Whether the VAT is disabled', }, { displayName: 'VAT Description', name: 'description', type: 'string', default: '', }, { displayName: 'VAT ID', name: 'id', type: 'number', default: 0, description: 'The VAT type ID', }, { displayName: 'VAT Notes', name: 'notes', type: 'string', default: '', description: 'Additional VAT notes', }, { displayName: 'VAT Value', name: 'value', type: 'number', default: 22, description: 'The VAT percentage value', }, ], }, ], description: 'Default VAT configuration for the product', }, { displayName: 'Additional Fields', name: 'additionalFields', type: 'collection', placeholder: 'Add Field', displayOptions: { show: { operation: ['list'], }, }, 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', }, { displayName: 'Page', name: 'page', type: 'number', default: 1, description: 'The page number for pagination', }, { displayName: 'Per Page', name: 'perPage', type: 'number', default: 50, description: 'The number of results per page', }, { displayName: 'Query', name: 'q', type: 'string', default: '', description: 'Search query for filtering results', }, { displayName: 'Sort', name: 'sort', type: 'string', default: '', description: 'The sort order for the results', }, ], }, ], operations: [ { name: 'Create', displayName: 'Create', value: 'create', description: 'Create a new product', action: 'Create a product', }, { name: 'Delete', displayName: 'Delete', value: 'delete', description: 'Delete a product', action: 'Delete a product', }, { name: 'Get', displayName: 'Get', value: 'get', description: 'Get a product by ID', action: 'Get a product', }, { name: 'List', displayName: 'List', value: 'list', description: 'List all products', action: 'List products', }, { name: 'Update', displayName: 'Update', value: 'update', description: 'Update a product', action: 'Update a product', }, ], }; //# sourceMappingURL=ProductsResource.js.map