Add pagination to resource report for Google Analytics (#1755)

This commit is contained in:
Ricardo Espinoza
2021-05-08 16:26:06 -04:00
committed by GitHub
parent 77da5b70bc
commit 3a1a5fd49c
3 changed files with 107 additions and 43 deletions

View File

@@ -49,6 +49,47 @@ export const reportFields = [
placeholder: '123456',
description: 'The View ID of Google Analytics',
},
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
operation: [
'get',
],
resource: [
'report',
],
},
},
default: false,
description: 'If all results should be returned or only up to a given limit.',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
operation: [
'get',
],
resource: [
'report',
],
returnAll: [
false,
],
},
},
typeOptions: {
minValue: 1,
maxValue: 1000,
},
default: 1000,
description: 'How many results to return.',
},
{
displayName: 'Simple',
name: 'simple',