n8n-nodes-base 0.210.0 → 0.210.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/credentials/LinearApi.credentials.d.ts +2 -1
- package/dist/credentials/LinearApi.credentials.js +8 -0
- package/dist/credentials/LinearApi.credentials.js.map +1 -1
- package/dist/known/credentials.json +1 -0
- package/dist/nodes/ErrorTrigger/ErrorTrigger.node.js +1 -1
- package/dist/nodes/ErrorTrigger/ErrorTrigger.node.js.map +1 -1
- package/dist/nodes/Google/Analytics/GoogleAnalytics.node.d.ts +3 -11
- package/dist/nodes/Google/Analytics/GoogleAnalytics.node.js +10 -211
- package/dist/nodes/Google/Analytics/GoogleAnalytics.node.js.map +1 -1
- package/dist/nodes/Google/Analytics/{GenericFunctions.d.ts → v1/GenericFunctions.d.ts} +2 -2
- package/dist/nodes/Google/Analytics/{GenericFunctions.js → v1/GenericFunctions.js} +21 -6
- package/dist/nodes/Google/Analytics/v1/GenericFunctions.js.map +1 -0
- package/dist/nodes/Google/Analytics/v1/GoogleAnalyticsV1.node.d.ts +13 -0
- package/dist/nodes/Google/Analytics/v1/GoogleAnalyticsV1.node.js +231 -0
- package/dist/nodes/Google/Analytics/v1/GoogleAnalyticsV1.node.js.map +1 -0
- package/dist/nodes/Google/Analytics/{Interfaces.d.ts → v1/Interfaces.d.ts} +2 -0
- package/dist/nodes/Google/Analytics/{Interfaces.js → v1/Interfaces.js} +0 -0
- package/dist/nodes/Google/Analytics/v1/Interfaces.js.map +1 -0
- package/dist/nodes/Google/Analytics/{ReportDescription.d.ts → v1/ReportDescription.d.ts} +0 -0
- package/dist/nodes/Google/Analytics/{ReportDescription.js → v1/ReportDescription.js} +0 -0
- package/dist/nodes/Google/Analytics/v1/ReportDescription.js.map +1 -0
- package/dist/nodes/Google/Analytics/{UserActivityDescription.d.ts → v1/UserActivityDescription.d.ts} +0 -0
- package/dist/nodes/Google/Analytics/{UserActivityDescription.js → v1/UserActivityDescription.js} +0 -0
- package/dist/nodes/Google/Analytics/v1/UserActivityDescription.js.map +1 -0
- package/dist/nodes/Google/Analytics/v2/GoogleAnalyticsV2.node.d.ts +12 -0
- package/dist/nodes/Google/Analytics/v2/GoogleAnalyticsV2.node.js +20 -0
- package/dist/nodes/Google/Analytics/v2/GoogleAnalyticsV2.node.js.map +1 -0
- package/dist/nodes/Google/Analytics/v2/actions/node.type.d.ts +10 -0
- package/dist/nodes/Google/Analytics/v2/actions/node.type.js +3 -0
- package/dist/nodes/Google/Analytics/v2/actions/node.type.js.map +1 -0
- package/dist/nodes/Google/Analytics/v2/actions/report/FiltersDescription.d.ts +5 -0
- package/dist/nodes/Google/Analytics/v2/actions/report/FiltersDescription.js +478 -0
- package/dist/nodes/Google/Analytics/v2/actions/report/FiltersDescription.js.map +1 -0
- package/dist/nodes/Google/Analytics/v2/actions/report/Report.resource.d.ts +5 -0
- package/dist/nodes/Google/Analytics/v2/actions/report/Report.resource.js +79 -0
- package/dist/nodes/Google/Analytics/v2/actions/report/Report.resource.js.map +1 -0
- package/dist/nodes/Google/Analytics/v2/actions/report/get.ga4.operation.d.ts +4 -0
- package/dist/nodes/Google/Analytics/v2/actions/report/get.ga4.operation.js +562 -0
- package/dist/nodes/Google/Analytics/v2/actions/report/get.ga4.operation.js.map +1 -0
- package/dist/nodes/Google/Analytics/v2/actions/report/get.universal.operation.d.ts +4 -0
- package/dist/nodes/Google/Analytics/v2/actions/report/get.universal.operation.js +669 -0
- package/dist/nodes/Google/Analytics/v2/actions/report/get.universal.operation.js.map +1 -0
- package/dist/nodes/Google/Analytics/v2/actions/router.d.ts +3 -0
- package/dist/nodes/Google/Analytics/v2/actions/router.js +68 -0
- package/dist/nodes/Google/Analytics/v2/actions/router.js.map +1 -0
- package/dist/nodes/Google/Analytics/v2/actions/userActivity/UserActivity.resource.d.ts +4 -0
- package/dist/nodes/Google/Analytics/v2/actions/userActivity/UserActivity.resource.js +52 -0
- package/dist/nodes/Google/Analytics/v2/actions/userActivity/UserActivity.resource.js.map +1 -0
- package/dist/nodes/Google/Analytics/v2/actions/userActivity/search.operation.d.ts +4 -0
- package/dist/nodes/Google/Analytics/v2/actions/userActivity/search.operation.js +145 -0
- package/dist/nodes/Google/Analytics/v2/actions/userActivity/search.operation.js.map +1 -0
- package/dist/nodes/Google/Analytics/v2/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/Google/Analytics/v2/actions/versionDescription.js +70 -0
- package/dist/nodes/Google/Analytics/v2/actions/versionDescription.js.map +1 -0
- package/dist/nodes/Google/Analytics/v2/helpers/Interfaces.d.ts +25 -0
- package/dist/nodes/Google/Analytics/v2/helpers/Interfaces.js +3 -0
- package/dist/nodes/Google/Analytics/v2/helpers/Interfaces.js.map +1 -0
- package/dist/nodes/Google/Analytics/v2/helpers/utils.d.ts +18 -0
- package/dist/nodes/Google/Analytics/v2/helpers/utils.js +210 -0
- package/dist/nodes/Google/Analytics/v2/helpers/utils.js.map +1 -0
- package/dist/nodes/Google/Analytics/v2/methods/index.d.ts +2 -0
- package/dist/nodes/Google/Analytics/v2/methods/index.js +29 -0
- package/dist/nodes/Google/Analytics/v2/methods/index.js.map +1 -0
- package/dist/nodes/Google/Analytics/v2/methods/listSearch.d.ts +3 -0
- package/dist/nodes/Google/Analytics/v2/methods/listSearch.js +40 -0
- package/dist/nodes/Google/Analytics/v2/methods/listSearch.js.map +1 -0
- package/dist/nodes/Google/Analytics/v2/methods/loadOptions.d.ts +7 -0
- package/dist/nodes/Google/Analytics/v2/methods/loadOptions.js +97 -0
- package/dist/nodes/Google/Analytics/v2/methods/loadOptions.js.map +1 -0
- package/dist/nodes/Google/Analytics/v2/transport/index.d.ts +4 -0
- package/dist/nodes/Google/Analytics/v2/transport/index.js +84 -0
- package/dist/nodes/Google/Analytics/v2/transport/index.js.map +1 -0
- package/dist/nodes/Linear/GenericFunctions.js +1 -3
- package/dist/nodes/Linear/GenericFunctions.js.map +1 -1
- package/dist/nodes/Linear/Linear.node.js +3 -3
- package/dist/nodes/Linear/Linear.node.js.map +1 -1
- package/dist/nodes/Linear/Queries.js +24 -28
- package/dist/nodes/Linear/Queries.js.map +1 -1
- package/dist/nodes/Notion/DatabaseDescription.js +0 -12
- package/dist/nodes/Notion/DatabaseDescription.js.map +1 -1
- package/dist/nodes/Notion/GenericFunctions.d.ts +8 -7
- package/dist/nodes/Notion/GenericFunctions.js +18 -2
- package/dist/nodes/Notion/GenericFunctions.js.map +1 -1
- package/dist/nodes/Notion/Notion.node.js +2 -2
- package/dist/nodes/Notion/Notion.node.js.map +1 -1
- package/dist/nodes/Notion/NotionTrigger.node.js +2 -2
- package/dist/nodes/Notion/NotionTrigger.node.js.map +1 -1
- package/dist/nodes/Notion/v1/NotionV1.node.js +2 -2
- package/dist/nodes/Notion/v1/NotionV1.node.js.map +1 -1
- package/dist/nodes/Notion/v1/VersionDescription.js +3 -3
- package/dist/nodes/Notion/v1/VersionDescription.js.map +1 -1
- package/dist/nodes/Notion/v2/NotionV2.node.js +2 -2
- package/dist/nodes/Notion/v2/NotionV2.node.js.map +1 -1
- package/dist/nodes/Notion/v2/VersionDescription.js +3 -3
- package/dist/nodes/Notion/v2/VersionDescription.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/credentials.json +1 -1
- package/dist/types/nodes.json +5 -4
- package/package.json +3 -3
- package/dist/nodes/Google/Analytics/GenericFunctions.js.map +0 -1
- package/dist/nodes/Google/Analytics/Interfaces.js.map +0 -1
- package/dist/nodes/Google/Analytics/ReportDescription.js.map +0 -1
- package/dist/nodes/Google/Analytics/UserActivityDescription.js.map +0 -1
|
@@ -0,0 +1,669 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.execute = exports.description = void 0;
|
|
4
|
+
const utils_1 = require("../../helpers/utils");
|
|
5
|
+
const transport_1 = require("../../transport");
|
|
6
|
+
const dimensionDropdown = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Dimension',
|
|
9
|
+
name: 'listName',
|
|
10
|
+
type: 'options',
|
|
11
|
+
default: 'ga:date',
|
|
12
|
+
options: [
|
|
13
|
+
{
|
|
14
|
+
name: 'Browser',
|
|
15
|
+
value: 'ga:browser',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: 'Campaign',
|
|
19
|
+
value: 'ga:campaign',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'City',
|
|
23
|
+
value: 'ga:city',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'Country',
|
|
27
|
+
value: 'ga:country',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'Date',
|
|
31
|
+
value: 'ga:date',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Device Category',
|
|
35
|
+
value: 'ga:deviceCategory',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'Item Name',
|
|
39
|
+
value: 'ga:productName',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'Language',
|
|
43
|
+
value: 'ga:language',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'Page',
|
|
47
|
+
value: 'ga:pagePath',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'Source / Medium',
|
|
51
|
+
value: 'ga:sourceMedium',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'Other dimensions…',
|
|
55
|
+
value: 'other',
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
displayName: 'Name or ID',
|
|
61
|
+
name: 'name',
|
|
62
|
+
type: 'options',
|
|
63
|
+
typeOptions: {
|
|
64
|
+
loadOptionsMethod: 'getDimensions',
|
|
65
|
+
loadOptionsDependsOn: ['viewId.value'],
|
|
66
|
+
},
|
|
67
|
+
default: 'ga:date',
|
|
68
|
+
description: 'Name of the dimension to fetch, for example ga:browser. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
|
69
|
+
displayOptions: {
|
|
70
|
+
show: {
|
|
71
|
+
listName: ['other'],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
exports.description = [
|
|
77
|
+
{
|
|
78
|
+
displayName: 'View',
|
|
79
|
+
name: 'viewId',
|
|
80
|
+
type: 'resourceLocator',
|
|
81
|
+
default: { mode: 'list', value: '' },
|
|
82
|
+
required: true,
|
|
83
|
+
description: 'The View of Google Analytics',
|
|
84
|
+
hint: "If this doesn't work, try changing the 'Property Type' field above",
|
|
85
|
+
modes: [
|
|
86
|
+
{
|
|
87
|
+
displayName: 'From List',
|
|
88
|
+
name: 'list',
|
|
89
|
+
type: 'list',
|
|
90
|
+
placeholder: 'Select a view...',
|
|
91
|
+
typeOptions: {
|
|
92
|
+
searchListMethod: 'searchViews',
|
|
93
|
+
searchFilterRequired: false,
|
|
94
|
+
searchable: false,
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
displayName: 'By URL',
|
|
99
|
+
name: 'url',
|
|
100
|
+
type: 'string',
|
|
101
|
+
placeholder: 'https://analytics.google.com/analytics/...',
|
|
102
|
+
validation: [
|
|
103
|
+
{
|
|
104
|
+
type: 'regex',
|
|
105
|
+
properties: {
|
|
106
|
+
regex: '.*analytics.google.com/analytics.*p[0-9]{1,}.*',
|
|
107
|
+
errorMessage: 'Not a valid Google Analytics URL',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
extractValue: {
|
|
112
|
+
type: 'regex',
|
|
113
|
+
regex: '.*analytics.google.com/analytics.*p([0-9]{1,})',
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
displayName: 'By ID',
|
|
118
|
+
name: 'id',
|
|
119
|
+
type: 'string',
|
|
120
|
+
placeholder: '123456',
|
|
121
|
+
validation: [
|
|
122
|
+
{
|
|
123
|
+
type: 'regex',
|
|
124
|
+
properties: {
|
|
125
|
+
regex: '[0-9]{1,}',
|
|
126
|
+
errorMessage: 'Not a valid Google Analytics View ID',
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
displayOptions: {
|
|
133
|
+
show: {
|
|
134
|
+
resource: ['report'],
|
|
135
|
+
operation: ['get'],
|
|
136
|
+
propertyType: ['universal'],
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
displayName: 'Date Range',
|
|
142
|
+
name: 'dateRange',
|
|
143
|
+
type: 'options',
|
|
144
|
+
required: true,
|
|
145
|
+
options: [
|
|
146
|
+
{
|
|
147
|
+
name: 'Last 7 Days',
|
|
148
|
+
value: 'last7days',
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: 'Last 30 Days',
|
|
152
|
+
value: 'last30days',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: 'Today',
|
|
156
|
+
value: 'today',
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: 'Yesterday',
|
|
160
|
+
value: 'yesterday',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: 'Last Complete Calendar Week',
|
|
164
|
+
value: 'lastCalendarWeek',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
name: 'Last Complete Calendar Month',
|
|
168
|
+
value: 'lastCalendarMonth',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: 'Custom',
|
|
172
|
+
value: 'custom',
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
default: 'last7days',
|
|
176
|
+
displayOptions: {
|
|
177
|
+
show: {
|
|
178
|
+
resource: ['report'],
|
|
179
|
+
operation: ['get'],
|
|
180
|
+
propertyType: ['universal'],
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
displayName: 'Start',
|
|
186
|
+
name: 'startDate',
|
|
187
|
+
type: 'dateTime',
|
|
188
|
+
required: true,
|
|
189
|
+
default: (0, utils_1.defaultStartDate)(),
|
|
190
|
+
displayOptions: {
|
|
191
|
+
show: {
|
|
192
|
+
resource: ['report'],
|
|
193
|
+
operation: ['get'],
|
|
194
|
+
propertyType: ['universal'],
|
|
195
|
+
dateRange: ['custom'],
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
displayName: 'End',
|
|
201
|
+
name: 'endDate',
|
|
202
|
+
type: 'dateTime',
|
|
203
|
+
required: true,
|
|
204
|
+
default: (0, utils_1.defaultEndDate)(),
|
|
205
|
+
displayOptions: {
|
|
206
|
+
show: {
|
|
207
|
+
resource: ['report'],
|
|
208
|
+
operation: ['get'],
|
|
209
|
+
propertyType: ['universal'],
|
|
210
|
+
dateRange: ['custom'],
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
displayName: 'Metrics',
|
|
216
|
+
name: 'metricsUA',
|
|
217
|
+
type: 'fixedCollection',
|
|
218
|
+
default: { metricValues: [{ listName: 'ga:users' }] },
|
|
219
|
+
typeOptions: {
|
|
220
|
+
multipleValues: true,
|
|
221
|
+
},
|
|
222
|
+
placeholder: 'Add metric',
|
|
223
|
+
description: 'Metrics in the request',
|
|
224
|
+
options: [
|
|
225
|
+
{
|
|
226
|
+
displayName: 'Metric',
|
|
227
|
+
name: 'metricValues',
|
|
228
|
+
values: [
|
|
229
|
+
{
|
|
230
|
+
displayName: 'Metric',
|
|
231
|
+
name: 'listName',
|
|
232
|
+
type: 'options',
|
|
233
|
+
default: 'ga:users',
|
|
234
|
+
options: [
|
|
235
|
+
{
|
|
236
|
+
name: 'Checkouts',
|
|
237
|
+
value: 'ga:productCheckouts',
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
name: 'Events',
|
|
241
|
+
value: 'ga:totalEvents',
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
name: 'Page Views',
|
|
245
|
+
value: 'ga:pageviews',
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
name: 'Session Duration',
|
|
249
|
+
value: 'ga:sessionDuration',
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
name: 'Sessions',
|
|
253
|
+
value: 'ga:sessions',
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: 'Sessions per User',
|
|
257
|
+
value: 'ga:sessionsPerUser',
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
name: 'Total Users',
|
|
261
|
+
value: 'ga:users',
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: 'Other metrics…',
|
|
265
|
+
value: 'other',
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
name: 'Custom metric…',
|
|
269
|
+
value: 'custom',
|
|
270
|
+
},
|
|
271
|
+
],
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
displayName: 'Name or ID',
|
|
275
|
+
name: 'name',
|
|
276
|
+
type: 'options',
|
|
277
|
+
typeOptions: {
|
|
278
|
+
loadOptionsMethod: 'getMetrics',
|
|
279
|
+
loadOptionsDependsOn: ['viewId.value'],
|
|
280
|
+
},
|
|
281
|
+
default: 'ga:users',
|
|
282
|
+
hint: 'If expression is specified, name can be any string that you would like',
|
|
283
|
+
description: 'The name of the metric. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
|
284
|
+
displayOptions: {
|
|
285
|
+
show: {
|
|
286
|
+
listName: ['other'],
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
displayName: 'Name',
|
|
292
|
+
name: 'name',
|
|
293
|
+
type: 'string',
|
|
294
|
+
default: 'custom_metric',
|
|
295
|
+
displayOptions: {
|
|
296
|
+
show: {
|
|
297
|
+
listName: ['custom'],
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
displayName: 'Expression',
|
|
303
|
+
name: 'expression',
|
|
304
|
+
type: 'string',
|
|
305
|
+
default: '',
|
|
306
|
+
placeholder: 'e.g. ga:totalRefunds/ga:users',
|
|
307
|
+
description: 'Learn more about Google Analytics <a href="https://developers.google.com/analytics/devguides/reporting/core/v4/rest/v4/reports/batchGet#Metric">metric expressions</a>',
|
|
308
|
+
displayOptions: {
|
|
309
|
+
show: {
|
|
310
|
+
listName: ['custom'],
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
displayName: 'Formatting Type',
|
|
316
|
+
name: 'formattingType',
|
|
317
|
+
type: 'options',
|
|
318
|
+
default: 'INTEGER',
|
|
319
|
+
description: 'Specifies how the metric expression should be formatted',
|
|
320
|
+
options: [
|
|
321
|
+
{
|
|
322
|
+
name: 'Currency',
|
|
323
|
+
value: 'CURRENCY',
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
name: 'Float',
|
|
327
|
+
value: 'FLOAT',
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
name: 'Integer',
|
|
331
|
+
value: 'INTEGER',
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
name: 'Percent',
|
|
335
|
+
value: 'PERCENT',
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
name: 'Time',
|
|
339
|
+
value: 'TIME',
|
|
340
|
+
},
|
|
341
|
+
],
|
|
342
|
+
displayOptions: {
|
|
343
|
+
show: {
|
|
344
|
+
listName: ['custom'],
|
|
345
|
+
},
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
],
|
|
349
|
+
},
|
|
350
|
+
],
|
|
351
|
+
displayOptions: {
|
|
352
|
+
show: {
|
|
353
|
+
resource: ['report'],
|
|
354
|
+
operation: ['get'],
|
|
355
|
+
propertyType: ['universal'],
|
|
356
|
+
},
|
|
357
|
+
},
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
displayName: 'Dimensions to split by',
|
|
361
|
+
name: 'dimensionsUA',
|
|
362
|
+
type: 'fixedCollection',
|
|
363
|
+
default: { dimensionValues: [{ listName: 'ga:date' }] },
|
|
364
|
+
typeOptions: {
|
|
365
|
+
multipleValues: true,
|
|
366
|
+
},
|
|
367
|
+
placeholder: 'Add Dimension',
|
|
368
|
+
description: 'Dimensions are attributes of your data. For example, the dimension ga:city indicates the city, for example, "Paris" or "New York", from which a session originates.',
|
|
369
|
+
options: [
|
|
370
|
+
{
|
|
371
|
+
displayName: 'Values',
|
|
372
|
+
name: 'dimensionValues',
|
|
373
|
+
values: [...dimensionDropdown],
|
|
374
|
+
},
|
|
375
|
+
],
|
|
376
|
+
displayOptions: {
|
|
377
|
+
show: {
|
|
378
|
+
resource: ['report'],
|
|
379
|
+
operation: ['get'],
|
|
380
|
+
propertyType: ['universal'],
|
|
381
|
+
},
|
|
382
|
+
},
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
displayName: 'Return All',
|
|
386
|
+
name: 'returnAll',
|
|
387
|
+
type: 'boolean',
|
|
388
|
+
displayOptions: {
|
|
389
|
+
show: {
|
|
390
|
+
operation: ['get'],
|
|
391
|
+
resource: ['report'],
|
|
392
|
+
propertyType: ['universal'],
|
|
393
|
+
},
|
|
394
|
+
},
|
|
395
|
+
default: false,
|
|
396
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
displayName: 'Limit',
|
|
400
|
+
name: 'limit',
|
|
401
|
+
type: 'number',
|
|
402
|
+
displayOptions: {
|
|
403
|
+
show: {
|
|
404
|
+
operation: ['get'],
|
|
405
|
+
resource: ['report'],
|
|
406
|
+
propertyType: ['universal'],
|
|
407
|
+
returnAll: [false],
|
|
408
|
+
},
|
|
409
|
+
},
|
|
410
|
+
typeOptions: {
|
|
411
|
+
minValue: 1,
|
|
412
|
+
maxValue: 1000,
|
|
413
|
+
},
|
|
414
|
+
default: 50,
|
|
415
|
+
description: 'Max number of results to return',
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
displayName: 'Simplify Output',
|
|
419
|
+
name: 'simple',
|
|
420
|
+
type: 'boolean',
|
|
421
|
+
displayOptions: {
|
|
422
|
+
show: {
|
|
423
|
+
operation: ['get'],
|
|
424
|
+
resource: ['report'],
|
|
425
|
+
propertyType: ['universal'],
|
|
426
|
+
},
|
|
427
|
+
},
|
|
428
|
+
default: true,
|
|
429
|
+
description: 'Whether to return a simplified version of the response instead of the raw data',
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
displayName: 'Additional Fields',
|
|
433
|
+
name: 'additionalFields',
|
|
434
|
+
type: 'collection',
|
|
435
|
+
placeholder: 'Add Field',
|
|
436
|
+
default: {},
|
|
437
|
+
displayOptions: {
|
|
438
|
+
show: {
|
|
439
|
+
resource: ['report'],
|
|
440
|
+
operation: ['get'],
|
|
441
|
+
propertyType: ['universal'],
|
|
442
|
+
},
|
|
443
|
+
},
|
|
444
|
+
options: [
|
|
445
|
+
{
|
|
446
|
+
displayName: 'Dimension Filters',
|
|
447
|
+
name: 'dimensionFiltersUi',
|
|
448
|
+
type: 'fixedCollection',
|
|
449
|
+
default: {},
|
|
450
|
+
typeOptions: {
|
|
451
|
+
multipleValues: true,
|
|
452
|
+
},
|
|
453
|
+
placeholder: 'Add Dimension Filter',
|
|
454
|
+
description: 'Dimension Filters in the request',
|
|
455
|
+
options: [
|
|
456
|
+
{
|
|
457
|
+
displayName: 'Filters',
|
|
458
|
+
name: 'filterValues',
|
|
459
|
+
values: [
|
|
460
|
+
...dimensionDropdown,
|
|
461
|
+
{
|
|
462
|
+
displayName: 'Operator',
|
|
463
|
+
name: 'operator',
|
|
464
|
+
type: 'options',
|
|
465
|
+
default: 'EXACT',
|
|
466
|
+
description: 'Operator to use in combination with value',
|
|
467
|
+
options: [
|
|
468
|
+
{
|
|
469
|
+
name: 'Begins With',
|
|
470
|
+
value: 'BEGINS_WITH',
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
name: 'Ends With',
|
|
474
|
+
value: 'ENDS_WITH',
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
name: 'Equals (Number)',
|
|
478
|
+
value: 'NUMERIC_EQUAL',
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
name: 'Exactly Matches',
|
|
482
|
+
value: 'EXACT',
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
name: 'Greater Than (Number)',
|
|
486
|
+
value: 'NUMERIC_GREATER_THAN',
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
name: 'Less Than (Number)',
|
|
490
|
+
value: 'NUMERIC_LESS_THAN',
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
name: 'Partly Matches',
|
|
494
|
+
value: 'PARTIAL',
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
name: 'Regular Expression',
|
|
498
|
+
value: 'REGEXP',
|
|
499
|
+
},
|
|
500
|
+
],
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
displayName: 'Value',
|
|
504
|
+
name: 'expressions',
|
|
505
|
+
type: 'string',
|
|
506
|
+
default: '',
|
|
507
|
+
placeholder: '',
|
|
508
|
+
description: 'String or <a href="https://support.google.com/analytics/answer/1034324?hl=en">regular expression</a> to match against',
|
|
509
|
+
},
|
|
510
|
+
],
|
|
511
|
+
},
|
|
512
|
+
],
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
displayName: 'Hide Totals',
|
|
516
|
+
name: 'hideTotals',
|
|
517
|
+
type: 'boolean',
|
|
518
|
+
default: false,
|
|
519
|
+
description: 'Whether to hide the total of all metrics for all the matching rows, for every date range',
|
|
520
|
+
displayOptions: {
|
|
521
|
+
show: {
|
|
522
|
+
'/simple': [false],
|
|
523
|
+
},
|
|
524
|
+
},
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
displayName: 'Hide Value Ranges',
|
|
528
|
+
name: 'hideValueRanges',
|
|
529
|
+
type: 'boolean',
|
|
530
|
+
default: false,
|
|
531
|
+
description: 'Whether to hide the minimum and maximum across all matching rows',
|
|
532
|
+
displayOptions: {
|
|
533
|
+
show: {
|
|
534
|
+
'/simple': [false],
|
|
535
|
+
},
|
|
536
|
+
},
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
displayName: 'Include Empty Rows',
|
|
540
|
+
name: 'includeEmptyRows',
|
|
541
|
+
type: 'boolean',
|
|
542
|
+
default: false,
|
|
543
|
+
description: 'Whether the response exclude rows if all the retrieved metrics are equal to zero',
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
displayName: 'Use Resource Quotas',
|
|
547
|
+
name: 'useResourceQuotas',
|
|
548
|
+
type: 'boolean',
|
|
549
|
+
default: false,
|
|
550
|
+
description: 'Whether to enable resource based quotas',
|
|
551
|
+
displayOptions: {
|
|
552
|
+
show: {
|
|
553
|
+
'/simple': [false],
|
|
554
|
+
},
|
|
555
|
+
},
|
|
556
|
+
},
|
|
557
|
+
],
|
|
558
|
+
},
|
|
559
|
+
];
|
|
560
|
+
async function execute(index) {
|
|
561
|
+
const viewId = this.getNodeParameter('viewId', index, undefined, {
|
|
562
|
+
extractValue: true,
|
|
563
|
+
});
|
|
564
|
+
const returnAll = this.getNodeParameter('returnAll', 0);
|
|
565
|
+
const dateRange = this.getNodeParameter('dateRange', index);
|
|
566
|
+
const metricsUA = this.getNodeParameter('metricsUA', index);
|
|
567
|
+
const dimensionsUA = this.getNodeParameter('dimensionsUA', index);
|
|
568
|
+
const additionalFields = this.getNodeParameter('additionalFields', index);
|
|
569
|
+
const simple = this.getNodeParameter('simple', index);
|
|
570
|
+
let responseData;
|
|
571
|
+
const qs = {};
|
|
572
|
+
const body = {
|
|
573
|
+
viewId,
|
|
574
|
+
dateRanges: utils_1.prepareDateRange.call(this, dateRange, index),
|
|
575
|
+
};
|
|
576
|
+
if (metricsUA.metricValues) {
|
|
577
|
+
const metrics = metricsUA.metricValues.map((metric) => {
|
|
578
|
+
switch (metric.listName) {
|
|
579
|
+
case 'other':
|
|
580
|
+
return {
|
|
581
|
+
alias: metric.name,
|
|
582
|
+
expression: metric.name,
|
|
583
|
+
};
|
|
584
|
+
case 'custom':
|
|
585
|
+
const newMetric = {
|
|
586
|
+
alias: metric.name,
|
|
587
|
+
expression: metric.expression,
|
|
588
|
+
formattingType: metric.formattingType,
|
|
589
|
+
};
|
|
590
|
+
return newMetric;
|
|
591
|
+
default:
|
|
592
|
+
return {
|
|
593
|
+
alias: metric.listName,
|
|
594
|
+
expression: metric.listName,
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
});
|
|
598
|
+
if (metrics.length) {
|
|
599
|
+
utils_1.checkDuplicates.call(this, metrics, 'alias', 'metrics');
|
|
600
|
+
body.metrics = metrics;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
if (dimensionsUA.dimensionValues) {
|
|
604
|
+
const dimensions = dimensionsUA.dimensionValues.map((dimension) => {
|
|
605
|
+
switch (dimension.listName) {
|
|
606
|
+
case 'other':
|
|
607
|
+
return { name: dimension.name };
|
|
608
|
+
default:
|
|
609
|
+
return { name: dimension.listName };
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
if (dimensions.length) {
|
|
613
|
+
utils_1.checkDuplicates.call(this, dimensions, 'name', 'dimensions');
|
|
614
|
+
body.dimensions = dimensions;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
if (additionalFields.useResourceQuotas) {
|
|
618
|
+
qs.useResourceQuotas = additionalFields.useResourceQuotas;
|
|
619
|
+
}
|
|
620
|
+
if (additionalFields.dimensionFiltersUi) {
|
|
621
|
+
const dimensionFilters = additionalFields.dimensionFiltersUi
|
|
622
|
+
.filterValues;
|
|
623
|
+
if (dimensionFilters) {
|
|
624
|
+
dimensionFilters.forEach((filter) => {
|
|
625
|
+
filter.expressions = [filter.expressions];
|
|
626
|
+
switch (filter.listName) {
|
|
627
|
+
case 'other':
|
|
628
|
+
filter.dimensionName = filter.name;
|
|
629
|
+
delete filter.name;
|
|
630
|
+
delete filter.listName;
|
|
631
|
+
break;
|
|
632
|
+
default:
|
|
633
|
+
filter.dimensionName = filter.listName;
|
|
634
|
+
delete filter.listName;
|
|
635
|
+
}
|
|
636
|
+
});
|
|
637
|
+
body.dimensionFilterClauses = { filters: dimensionFilters };
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
if (additionalFields.includeEmptyRows) {
|
|
641
|
+
Object.assign(body, { includeEmptyRows: additionalFields.includeEmptyRows });
|
|
642
|
+
}
|
|
643
|
+
if (additionalFields.hideTotals) {
|
|
644
|
+
Object.assign(body, { hideTotals: additionalFields.hideTotals });
|
|
645
|
+
}
|
|
646
|
+
if (additionalFields.hideValueRanges) {
|
|
647
|
+
Object.assign(body, { hideTotals: additionalFields.hideTotals });
|
|
648
|
+
}
|
|
649
|
+
const method = 'POST';
|
|
650
|
+
const endpoint = '/v4/reports:batchGet';
|
|
651
|
+
if (returnAll) {
|
|
652
|
+
responseData = await transport_1.googleApiRequestAllItems.call(this, 'reports', method, endpoint, { reportRequests: [body] }, qs);
|
|
653
|
+
}
|
|
654
|
+
else {
|
|
655
|
+
body.pageSize = this.getNodeParameter('limit', 0);
|
|
656
|
+
responseData = await transport_1.googleApiRequest.call(this, method, endpoint, { reportRequests: [body] }, qs);
|
|
657
|
+
responseData = responseData.reports;
|
|
658
|
+
}
|
|
659
|
+
if (simple) {
|
|
660
|
+
responseData = (0, utils_1.simplify)(responseData);
|
|
661
|
+
}
|
|
662
|
+
else if (returnAll && responseData.length > 1) {
|
|
663
|
+
responseData = (0, utils_1.merge)(responseData);
|
|
664
|
+
}
|
|
665
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: index } });
|
|
666
|
+
return executionData;
|
|
667
|
+
}
|
|
668
|
+
exports.execute = execute;
|
|
669
|
+
//# sourceMappingURL=get.universal.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.universal.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Analytics/v2/actions/report/get.universal.operation.ts"],"names":[],"mappings":";;;AAGA,+CAO6B;AAC7B,+CAA6E;AAE7E,MAAM,iBAAiB,GAAsB;IAC5C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,SAAS;QAElB,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,YAAY;aACnB;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,aAAa;aACpB;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,SAAS;aAChB;YACD;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,YAAY;aACnB;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,SAAS;aAChB;YACD;gBACC,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,mBAAmB;aAC1B;YACD;gBACC,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,gBAAgB;aACvB;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,aAAa;aACpB;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,aAAa;aACpB;YACD;gBACC,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,iBAAiB;aACxB;YACD;gBAEC,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,OAAO;aACd;SACD;KACD;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACZ,iBAAiB,EAAE,eAAe;YAClC,oBAAoB,EAAE,CAAC,cAAc,CAAC;SACtC;QACD,OAAO,EAAE,SAAS;QAClB,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