UNPKG

n8n-nodes-powerbi

Version:
582 lines 18.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.reportFields = exports.reportOperations = void 0; exports.reportOperations = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: [ 'report', ], }, }, options: [ { name: 'List', value: 'list', description: 'List all reports', action: 'List a report', }, { name: 'Get', value: 'get', description: 'Get a specific report', action: 'Get a report', }, { name: 'Get Pages', value: 'getPages', description: 'Get pages from a report', action: 'Get pages from a report', }, { name: 'Export To File', value: 'exportToFile', description: 'Export report to various file formats', action: 'Export report to file', }, ], default: 'list', }, ]; exports.reportFields = [ { displayName: 'Group (Workspace) Name or ID', name: 'groupId', type: 'options', typeOptions: { loadOptionsMethod: 'getGroups', }, default: '', description: 'Power BI group (workspace) ID. Leave blank to use "My Workspace". Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.', displayOptions: { show: { resource: [ 'report', ], operation: [ 'list', 'get', 'getPages', ], }, }, }, { displayName: 'Report Name or ID', name: 'reportId', type: 'options', typeOptions: { loadOptionsMethod: 'getReports', loadOptionsDependsOn: ['groupId'], }, required: true, displayOptions: { show: { resource: [ 'report', ], operation: [ 'get', 'getPages', ], }, }, default: '', description: 'ID of the report to retrieve. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.', }, { displayName: 'Workspace Name or ID', name: 'groupId', type: 'options', typeOptions: { loadOptionsMethod: 'getGroups', }, default: '', required: true, displayOptions: { show: { resource: [ 'report', ], operation: [ 'exportToFile', ], }, }, description: 'The ID of the workspace. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.', }, { displayName: 'Report Name or ID', name: 'reportId', type: 'options', typeOptions: { loadOptionsMethod: 'getReports', loadOptionsDependsOn: [ 'groupId', ], }, default: '', required: true, displayOptions: { show: { resource: [ 'report', ], operation: [ 'exportToFile', ], }, }, description: 'The ID of the report. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.', }, { displayName: 'Report Type', name: 'reportType', type: 'options', options: [ { name: 'Power BI Report', value: 'powerBI', }, { name: 'Paginated Report', value: 'paginated', }, ], default: 'powerBI', displayOptions: { show: { resource: [ 'report', ], operation: [ 'exportToFile', ], }, }, description: 'Type of report to export', }, { displayName: 'Export Format', name: 'exportFormat', type: 'options', displayOptions: { show: { resource: [ 'report', ], operation: [ 'exportToFile', ], reportType: [ 'powerBI', ], }, }, options: [ { name: 'PDF', value: 'PDF', }, { name: 'PNG', value: 'PNG', }, { name: 'PowerPoint (PPTX)', value: 'PPTX', }, ], default: 'PDF', description: 'The format to export to', }, { displayName: 'Export Format', name: 'exportFormat', type: 'options', displayOptions: { show: { resource: [ 'report', ], operation: [ 'exportToFile', ], reportType: [ 'paginated', ], }, }, options: [ { name: 'Accessible PDF', value: 'ACCESSIBLEPDF', }, { name: 'CSV', value: 'CSV', }, { name: 'Image (BMP, EMF, GIF, JPEG, PNG, TIFF)', value: 'IMAGE', }, { name: 'MHTML (Web Archive)', value: 'MHTML', }, { name: 'Microsoft Excel (XLSX)', value: 'XLSX', }, { name: 'Microsoft Word (DOCX)', value: 'DOCX', }, { name: 'PDF', value: 'PDF', }, { name: 'XML', value: 'XML', }, ], default: 'PDF', description: 'The format to export to', }, { displayName: 'Wait For Completion', name: 'waitForCompletion', type: 'boolean', default: true, displayOptions: { show: { resource: [ 'report', ], operation: [ 'exportToFile', ], }, }, description: 'Whether to wait for the export to complete before returning the result', }, { displayName: 'Download File', name: 'downloadFile', type: 'boolean', default: false, displayOptions: { show: { resource: [ 'report', ], operation: [ 'exportToFile', ], waitForCompletion: [ true, ], }, }, description: 'Whether to make the file available as a binary file for download and also as base64 in the fileBase64 field for use in integrations such as WhatsApp', }, { displayName: 'Additional Fields', name: 'additionalFields', type: 'collection', placeholder: 'Add Field', default: {}, displayOptions: { show: { resource: [ 'report', ], operation: [ 'exportToFile', ], }, }, options: [ { displayName: 'Maximum Wait Time', name: 'maxWaitTime', type: 'number', default: 300, description: 'Maximum time to wait for export completion in seconds (default: 5 minutes)', }, { displayName: 'Polling Interval', name: 'pollingInterval', type: 'number', default: 20, description: 'Interval in seconds between status checks (default: 20 seconds to avoid rate limiting)', }, ], }, { displayName: 'Power BI Report Configuration', name: 'powerBIReportConfig', type: 'collection', placeholder: 'Add Configuration', default: {}, displayOptions: { show: { resource: [ 'report', ], operation: [ 'exportToFile', ], reportType: [ 'powerBI', ], }, }, options: [ { displayName: 'Dataset ID', name: 'datasetToBind', type: 'string', default: '', displayOptions: { show: { useAlternativeDataset: [ true, ], }, }, description: 'The ID of the dataset to bind to', }, { displayName: 'Default Bookmark Name', name: 'defaultBookmarkName', type: 'string', default: '', displayOptions: { show: { useDefaultBookmark: [ true, ], }, }, description: 'The name of the bookmark to apply', }, { displayName: 'Default Bookmark State', name: 'defaultBookmarkState', type: 'string', default: '', displayOptions: { show: { useDefaultBookmark: [ true, ], }, }, description: 'The state of the bookmark to apply', }, { displayName: 'Export Specific Pages', name: 'exportSpecificPages', type: 'boolean', default: false, description: 'Whether to export specific pages only', }, { displayName: 'Identities', name: 'identities', type: 'string', default: '[]', displayOptions: { show: { useIdentities: [ true, ], }, }, description: 'JSON array of identity configurations for RLS. Example: [{"username": "user1@contoso.com", "roles": ["Role1", "Role2"]}].', typeOptions: { alwaysOpenEditWindow: true, }, }, { displayName: 'Include Hidden Pages', name: 'includeHiddenPages', type: 'boolean', default: false, description: 'Whether to include hidden pages in the export', }, { displayName: 'Locale', name: 'locale', type: 'string', default: '', placeholder: 'e.g. en-US', description: 'Locale to use for the export', }, { displayName: 'Pages', name: 'pages', type: 'string', default: '[]', displayOptions: { show: { exportSpecificPages: [ true, ], }, }, description: 'JSON array of page configurations. Example: [{"pageName": "ReportSection1", "visualName": "VisualName1"}, {"pageName": "ReportSection2"}].', typeOptions: { alwaysOpenEditWindow: true, }, }, { displayName: 'Report Level Filters', name: 'reportLevelFilters', type: 'string', default: '[]', displayOptions: { show: { useReportLevelFilters: [ true, ], }, }, description: 'JSON array of filter configurations. Example: [{"filter": "Table1/Column1 eq \'value\'"}].', typeOptions: { alwaysOpenEditWindow: true, }, }, { displayName: 'Use Alternative Dataset', name: 'useAlternativeDataset', type: 'boolean', default: false, description: 'Whether to bind the report to a different dataset', }, { displayName: 'Use Default Bookmark', name: 'useDefaultBookmark', type: 'boolean', default: false, description: 'Whether to apply a default bookmark to all pages', }, { displayName: 'Use Identities (RLS)', name: 'useIdentities', type: 'boolean', default: false, description: 'Whether to apply Row-Level Security identities', }, { displayName: 'Use Report Level Filters', name: 'useReportLevelFilters', type: 'boolean', default: false, description: 'Whether to apply filters at the report level', }, ], }, { displayName: 'Paginated Report Configuration', name: 'paginatedReportConfig', type: 'collection', placeholder: 'Add Configuration', default: {}, displayOptions: { show: { resource: [ 'report', ], operation: [ 'exportToFile', ], reportType: [ 'paginated', ], }, }, options: [ { displayName: 'Format Settings', name: 'formatSettings', type: 'string', default: '{}', displayOptions: { show: { useFormatSettings: [ true, ], }, }, description: 'JSON object with format-specific settings. Example: {"PageWidth": "8.5in", "PageHeight": "11in"}.', typeOptions: { alwaysOpenEditWindow: true, }, }, { displayName: 'Identities', name: 'identities', type: 'string', default: '[]', displayOptions: { show: { useIdentities: [ true, ], }, }, description: 'JSON array of identity configurations for RLS. Example: [{"username": "user1@contoso.com", "roles": ["Role1", "Role2"]}].', typeOptions: { alwaysOpenEditWindow: true, }, }, { displayName: 'Locale', name: 'locale', type: 'string', default: '', placeholder: 'e.g. en-US', description: 'Locale to use for the export', }, { displayName: 'Parameter Values', name: 'parameterValues', type: 'string', default: '[]', displayOptions: { show: { useParameters: [ true, ], }, }, description: 'JSON array of parameter configurations. Example: [{"name": "Parameter1", "value": "Value1"}, {"name": "Parameter2", "value": "Value2"}].', typeOptions: { alwaysOpenEditWindow: true, }, }, { displayName: 'Use Format Settings', name: 'useFormatSettings', type: 'boolean', default: false, description: 'Whether to provide format-specific settings', }, { displayName: 'Use Identities (RLS)', name: 'useIdentities', type: 'boolean', default: false, description: 'Whether to apply Row-Level Security identities', }, { displayName: 'Use Parameters', name: 'useParameters', type: 'boolean', default: false, description: 'Whether to provide report parameters', }, ], }, ]; //# sourceMappingURL=ReportDescription.js.map