n8n-nodes-powerbi
Version:
n8n nodes for integration with Power BI APIs
257 lines • 8.36 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.dataflowFields = exports.dataflowOperations = void 0;
exports.dataflowOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: [
'dataflow',
],
},
},
options: [
{
name: 'Get Dataflow',
value: 'get',
description: 'Exports the specified dataflow definition to a JSON file',
action: 'Get dataflow',
},
{
name: 'Get Dataflow Data Sources',
value: 'getDatasources',
description: 'Returns a list of data sources for the specified dataflow',
action: 'Get dataflow data sources',
},
{
name: 'Get Dataflow Transactions',
value: 'getTransactions',
description: 'Returns a list of transactions for the specified dataflow',
action: 'Get dataflow transactions',
},
{
name: 'Get Dataflows',
value: 'list',
description: 'Returns a list of all dataflows from the specified workspace',
action: 'Get dataflows',
},
{
name: 'Refresh Dataflow',
value: 'refresh',
description: 'Triggers a refresh for the specified dataflow',
action: 'Refresh dataflow',
},
],
default: 'list',
},
];
exports.dataflowFields = [
{
displayName: 'Workspace Name or ID',
name: 'groupId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getGroups',
},
displayOptions: {
show: {
resource: ['dataflow'],
operation: ['list'],
},
},
default: '',
required: true,
description: 'The workspace to get dataflows from. 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',
},
displayOptions: {
show: {
resource: ['dataflow'],
operation: ['get'],
},
},
default: '',
required: true,
description: 'The workspace that contains the dataflow. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
},
{
displayName: 'Dataflow Name or ID',
name: 'dataflowId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getDataflows',
loadOptionsDependsOn: ['groupId'],
},
displayOptions: {
show: {
resource: ['dataflow'],
operation: ['get'],
},
},
default: '',
required: true,
description: 'The dataflow to get the definition for. 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',
},
displayOptions: {
show: {
resource: ['dataflow'],
operation: ['getDatasources'],
},
},
default: '',
required: true,
description: 'The workspace that contains the dataflow. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
},
{
displayName: 'Dataflow Name or ID',
name: 'dataflowId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getDataflows',
loadOptionsDependsOn: ['groupId'],
},
displayOptions: {
show: {
resource: ['dataflow'],
operation: ['getDatasources'],
},
},
default: '',
required: true,
description: 'The dataflow to get data sources for. 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',
},
displayOptions: {
show: {
resource: ['dataflow'],
operation: ['getTransactions'],
},
},
default: '',
required: true,
description: 'The workspace that contains the dataflow. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
},
{
displayName: 'Dataflow Name or ID',
name: 'dataflowId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getDataflows',
loadOptionsDependsOn: ['groupId'],
},
displayOptions: {
show: {
resource: ['dataflow'],
operation: ['getTransactions'],
},
},
default: '',
required: true,
description: 'The dataflow to get transactions for. 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',
},
displayOptions: {
show: {
resource: ['dataflow'],
operation: ['refresh'],
},
},
default: '',
required: true,
description: 'The workspace that contains the dataflow. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
},
{
displayName: 'Dataflow Name or ID',
name: 'dataflowId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getDataflows',
loadOptionsDependsOn: ['groupId'],
},
displayOptions: {
show: {
resource: ['dataflow'],
operation: ['refresh'],
},
},
default: '',
required: true,
description: 'The dataflow to refresh. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
},
{
displayName: 'Notification Option',
name: 'notifyOption',
type: 'options',
options: [
{
name: 'No Notification',
value: 'NoNotification',
description: 'No notification will be sent',
},
{
name: 'Mail on Failure',
value: 'MailOnFailure',
description: 'An email notification will be sent on refresh failure',
},
],
displayOptions: {
show: {
resource: ['dataflow'],
operation: ['refresh'],
},
},
default: 'NoNotification',
required: true,
description: 'Email notification options',
},
{
displayName: 'Process Type',
name: 'processType',
type: 'options',
options: [
{
name: 'Default',
value: 'default',
description: 'Default refresh process type',
},
],
displayOptions: {
show: {
resource: ['dataflow'],
operation: ['refresh'],
},
},
default: 'default',
description: 'The type of refresh process to use (optional)',
},
];
//# sourceMappingURL=DataflowDescription.js.map