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,562 @@
|
|
|
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 FiltersDescription_1 = require("./FiltersDescription");
|
|
7
|
+
exports.description = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Property',
|
|
10
|
+
name: 'propertyId',
|
|
11
|
+
type: 'resourceLocator',
|
|
12
|
+
default: { mode: 'list', value: '' },
|
|
13
|
+
required: true,
|
|
14
|
+
description: 'The Property of Google Analytics',
|
|
15
|
+
hint: "If this doesn't work, try changing the 'Property Type' field above",
|
|
16
|
+
modes: [
|
|
17
|
+
{
|
|
18
|
+
displayName: 'From List',
|
|
19
|
+
name: 'list',
|
|
20
|
+
type: 'list',
|
|
21
|
+
placeholder: 'Select a property...',
|
|
22
|
+
typeOptions: {
|
|
23
|
+
searchListMethod: 'searchProperties',
|
|
24
|
+
searchFilterRequired: false,
|
|
25
|
+
searchable: false,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
displayName: 'By URL',
|
|
30
|
+
name: 'url',
|
|
31
|
+
type: 'string',
|
|
32
|
+
placeholder: 'https://analytics.google.com/analytics/...',
|
|
33
|
+
validation: [
|
|
34
|
+
{
|
|
35
|
+
type: 'regex',
|
|
36
|
+
properties: {
|
|
37
|
+
regex: '.*analytics\\.google\\.com\\/analytics.*\\/p([0-9]{1,})(?:\\/.*|)*',
|
|
38
|
+
errorMessage: 'Not a valid Google Analytics URL',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
extractValue: {
|
|
43
|
+
type: 'regex',
|
|
44
|
+
regex: '.*analytics\\.google\\.com\\/analytics.*\\/p([0-9]{1,})(?:\\/.*|)',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'By ID',
|
|
49
|
+
name: 'id',
|
|
50
|
+
type: 'string',
|
|
51
|
+
placeholder: '123456',
|
|
52
|
+
validation: [
|
|
53
|
+
{
|
|
54
|
+
type: 'regex',
|
|
55
|
+
properties: {
|
|
56
|
+
regex: '[0-9]{1,}',
|
|
57
|
+
errorMessage: 'Not a valid Google Analytics Property ID',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
url: '=https://analytics.google.com/analytics/web/#/p{{$value}}/',
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
displayOptions: {
|
|
65
|
+
show: {
|
|
66
|
+
resource: ['report'],
|
|
67
|
+
operation: ['get'],
|
|
68
|
+
propertyType: ['ga4'],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
displayName: 'Date Range',
|
|
74
|
+
name: 'dateRange',
|
|
75
|
+
type: 'options',
|
|
76
|
+
required: true,
|
|
77
|
+
options: [
|
|
78
|
+
{
|
|
79
|
+
name: 'Last 7 Days',
|
|
80
|
+
value: 'last7days',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'Last 30 Days',
|
|
84
|
+
value: 'last30days',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'Today',
|
|
88
|
+
value: 'today',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'Yesterday',
|
|
92
|
+
value: 'yesterday',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'Last Complete Calendar Week',
|
|
96
|
+
value: 'lastCalendarWeek',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'Last Complete Calendar Month',
|
|
100
|
+
value: 'lastCalendarMonth',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'Custom',
|
|
104
|
+
value: 'custom',
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
default: 'last7days',
|
|
108
|
+
displayOptions: {
|
|
109
|
+
show: {
|
|
110
|
+
resource: ['report'],
|
|
111
|
+
operation: ['get'],
|
|
112
|
+
propertyType: ['ga4'],
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
displayName: 'Start',
|
|
118
|
+
name: 'startDate',
|
|
119
|
+
type: 'dateTime',
|
|
120
|
+
required: true,
|
|
121
|
+
default: (0, utils_1.defaultStartDate)(),
|
|
122
|
+
displayOptions: {
|
|
123
|
+
show: {
|
|
124
|
+
resource: ['report'],
|
|
125
|
+
operation: ['get'],
|
|
126
|
+
dateRange: ['custom'],
|
|
127
|
+
propertyType: ['ga4'],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
displayName: 'End',
|
|
133
|
+
name: 'endDate',
|
|
134
|
+
type: 'dateTime',
|
|
135
|
+
required: true,
|
|
136
|
+
default: (0, utils_1.defaultEndDate)(),
|
|
137
|
+
displayOptions: {
|
|
138
|
+
show: {
|
|
139
|
+
resource: ['report'],
|
|
140
|
+
operation: ['get'],
|
|
141
|
+
dateRange: ['custom'],
|
|
142
|
+
propertyType: ['ga4'],
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
displayName: 'Metrics',
|
|
148
|
+
name: 'metricsGA4',
|
|
149
|
+
type: 'fixedCollection',
|
|
150
|
+
default: { metricValues: [{ listName: 'totalUsers' }] },
|
|
151
|
+
typeOptions: {
|
|
152
|
+
multipleValues: true,
|
|
153
|
+
},
|
|
154
|
+
placeholder: 'Add Metric',
|
|
155
|
+
description: 'The quantitative measurements of a report. For example, the metric eventCount is the total number of events. Requests are allowed up to 10 metrics.',
|
|
156
|
+
options: [
|
|
157
|
+
{
|
|
158
|
+
displayName: 'Values',
|
|
159
|
+
name: 'metricValues',
|
|
160
|
+
values: [
|
|
161
|
+
...FiltersDescription_1.metricDropdown,
|
|
162
|
+
{
|
|
163
|
+
displayName: 'Expression',
|
|
164
|
+
name: 'expression',
|
|
165
|
+
type: 'string',
|
|
166
|
+
default: '',
|
|
167
|
+
description: 'A mathematical expression for derived metrics. For example, the metric Event count per user is eventCount/totalUsers.',
|
|
168
|
+
placeholder: 'e.g. eventCount/totalUsers',
|
|
169
|
+
displayOptions: {
|
|
170
|
+
show: {
|
|
171
|
+
listName: ['custom'],
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
displayName: 'Invisible',
|
|
177
|
+
name: 'invisible',
|
|
178
|
+
type: 'boolean',
|
|
179
|
+
default: false,
|
|
180
|
+
displayOptions: {
|
|
181
|
+
show: {
|
|
182
|
+
listName: ['custom'],
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
description: 'Whether a metric is invisible in the report response. If a metric is invisible, the metric will not produce a column in the response, but can be used in metricFilter, orderBys, or a metric expression.',
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
displayOptions: {
|
|
191
|
+
show: {
|
|
192
|
+
resource: ['report'],
|
|
193
|
+
operation: ['get'],
|
|
194
|
+
propertyType: ['ga4'],
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
displayName: 'Dimensions to split by',
|
|
200
|
+
name: 'dimensionsGA4',
|
|
201
|
+
type: 'fixedCollection',
|
|
202
|
+
default: { dimensionValues: [{ listName: 'date' }] },
|
|
203
|
+
typeOptions: {
|
|
204
|
+
multipleValues: true,
|
|
205
|
+
},
|
|
206
|
+
placeholder: 'Add Dimension',
|
|
207
|
+
description: 'Dimensions are attributes of your data. For example, the dimension city indicates the city from which an event originates. Dimension values in report responses are strings; for example, the city could be "Paris" or "New York". Requests are allowed up to 9 dimensions.',
|
|
208
|
+
options: [
|
|
209
|
+
{
|
|
210
|
+
displayName: 'Values',
|
|
211
|
+
name: 'dimensionValues',
|
|
212
|
+
values: [...FiltersDescription_1.dimensionDropdown],
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
displayOptions: {
|
|
216
|
+
show: {
|
|
217
|
+
resource: ['report'],
|
|
218
|
+
operation: ['get'],
|
|
219
|
+
propertyType: ['ga4'],
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
displayName: 'Return All',
|
|
225
|
+
name: 'returnAll',
|
|
226
|
+
type: 'boolean',
|
|
227
|
+
displayOptions: {
|
|
228
|
+
show: {
|
|
229
|
+
operation: ['get'],
|
|
230
|
+
resource: ['report'],
|
|
231
|
+
propertyType: ['ga4'],
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
default: false,
|
|
235
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
displayName: 'Limit',
|
|
239
|
+
name: 'limit',
|
|
240
|
+
type: 'number',
|
|
241
|
+
displayOptions: {
|
|
242
|
+
show: {
|
|
243
|
+
operation: ['get'],
|
|
244
|
+
resource: ['report'],
|
|
245
|
+
propertyType: ['ga4'],
|
|
246
|
+
returnAll: [false],
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
typeOptions: {
|
|
250
|
+
minValue: 1,
|
|
251
|
+
maxValue: 1000,
|
|
252
|
+
},
|
|
253
|
+
default: 50,
|
|
254
|
+
description: 'Max number of results to return',
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
displayName: 'Simplify Output',
|
|
258
|
+
name: 'simple',
|
|
259
|
+
type: 'boolean',
|
|
260
|
+
displayOptions: {
|
|
261
|
+
show: {
|
|
262
|
+
operation: ['get'],
|
|
263
|
+
resource: ['report'],
|
|
264
|
+
propertyType: ['ga4'],
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
default: true,
|
|
268
|
+
description: 'Whether to return a simplified version of the response instead of the raw data',
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
displayName: 'Additional Fields',
|
|
272
|
+
name: 'additionalFields',
|
|
273
|
+
type: 'collection',
|
|
274
|
+
placeholder: 'Add Field',
|
|
275
|
+
default: {},
|
|
276
|
+
displayOptions: {
|
|
277
|
+
show: {
|
|
278
|
+
resource: ['report'],
|
|
279
|
+
operation: ['get'],
|
|
280
|
+
propertyType: ['ga4'],
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
|
+
options: [
|
|
284
|
+
{
|
|
285
|
+
displayName: 'Currency Code',
|
|
286
|
+
name: 'currencyCode',
|
|
287
|
+
type: 'string',
|
|
288
|
+
default: '',
|
|
289
|
+
description: 'A currency code in ISO4217 format, such as "AED", "USD", "JPY". If the field is empty, the report uses the property\'s default currency.',
|
|
290
|
+
},
|
|
291
|
+
...FiltersDescription_1.dimensionFilterField,
|
|
292
|
+
{
|
|
293
|
+
displayName: 'Metric Aggregation',
|
|
294
|
+
name: 'metricAggregations',
|
|
295
|
+
type: 'multiOptions',
|
|
296
|
+
default: [],
|
|
297
|
+
options: [
|
|
298
|
+
{
|
|
299
|
+
name: 'MAXIMUM',
|
|
300
|
+
value: 'MAXIMUM',
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
name: 'MINIMUM',
|
|
304
|
+
value: 'MINIMUM',
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
name: 'TOTAL',
|
|
308
|
+
value: 'TOTAL',
|
|
309
|
+
},
|
|
310
|
+
],
|
|
311
|
+
displayOptions: {
|
|
312
|
+
show: {
|
|
313
|
+
'/simple': [false],
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
...FiltersDescription_1.metricsFilterField,
|
|
318
|
+
{
|
|
319
|
+
displayName: 'Keep Empty Rows',
|
|
320
|
+
name: 'keepEmptyRows',
|
|
321
|
+
type: 'boolean',
|
|
322
|
+
default: false,
|
|
323
|
+
description: 'Whether false or unspecified, each row with all metrics equal to 0 will not be returned. If true, these rows will be returned if they are not separately removed by a filter.',
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
displayName: 'Order By',
|
|
327
|
+
name: 'orderByUI',
|
|
328
|
+
type: 'fixedCollection',
|
|
329
|
+
default: {},
|
|
330
|
+
typeOptions: {
|
|
331
|
+
multipleValues: true,
|
|
332
|
+
},
|
|
333
|
+
placeholder: 'Add Order',
|
|
334
|
+
description: 'Specifies how rows are ordered in the response',
|
|
335
|
+
options: [
|
|
336
|
+
{
|
|
337
|
+
displayName: 'Metric Order By',
|
|
338
|
+
name: 'metricOrderBy',
|
|
339
|
+
values: [
|
|
340
|
+
{
|
|
341
|
+
displayName: 'Descending',
|
|
342
|
+
name: 'desc',
|
|
343
|
+
type: 'boolean',
|
|
344
|
+
default: false,
|
|
345
|
+
description: 'Whether true, sorts by descending order',
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
displayName: 'Metric Name or ID',
|
|
349
|
+
name: 'metricName',
|
|
350
|
+
type: 'options',
|
|
351
|
+
typeOptions: {
|
|
352
|
+
loadOptionsMethod: 'getMetricsGA4',
|
|
353
|
+
loadOptionsDependsOn: ['propertyId.value'],
|
|
354
|
+
},
|
|
355
|
+
default: '',
|
|
356
|
+
description: 'Sorts by metric values. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
displayName: 'Dimmension Order By',
|
|
362
|
+
name: 'dimmensionOrderBy',
|
|
363
|
+
values: [
|
|
364
|
+
{
|
|
365
|
+
displayName: 'Descending',
|
|
366
|
+
name: 'desc',
|
|
367
|
+
type: 'boolean',
|
|
368
|
+
default: false,
|
|
369
|
+
description: 'Whether true, sorts by descending order',
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
displayName: 'Dimmension Name or ID',
|
|
373
|
+
name: 'dimensionName',
|
|
374
|
+
type: 'options',
|
|
375
|
+
typeOptions: {
|
|
376
|
+
loadOptionsMethod: 'getDimensionsGA4',
|
|
377
|
+
loadOptionsDependsOn: ['propertyId.value'],
|
|
378
|
+
},
|
|
379
|
+
default: '',
|
|
380
|
+
description: 'Sorts by metric values. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
displayName: 'Order Type',
|
|
384
|
+
name: 'orderType',
|
|
385
|
+
type: 'options',
|
|
386
|
+
default: 'ORDER_TYPE_UNSPECIFIED',
|
|
387
|
+
options: [
|
|
388
|
+
{
|
|
389
|
+
name: 'Alphanumeric',
|
|
390
|
+
value: 'ALPHANUMERIC',
|
|
391
|
+
description: 'Alphanumeric sort by Unicode code point',
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
name: 'Case Insensitive Alphanumeric',
|
|
395
|
+
value: 'CASE_INSENSITIVE_ALPHANUMERIC',
|
|
396
|
+
description: 'Case insensitive alphanumeric sort by lower case Unicode code point',
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
name: 'Numeric',
|
|
400
|
+
value: 'NUMERIC',
|
|
401
|
+
description: 'Dimension values are converted to numbers before sorting',
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
name: 'Unspecified',
|
|
405
|
+
value: 'ORDER_TYPE_UNSPECIFIED',
|
|
406
|
+
},
|
|
407
|
+
],
|
|
408
|
+
},
|
|
409
|
+
],
|
|
410
|
+
},
|
|
411
|
+
],
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
displayName: 'Return Property Quota',
|
|
415
|
+
name: 'returnPropertyQuota',
|
|
416
|
+
type: 'boolean',
|
|
417
|
+
default: false,
|
|
418
|
+
description: "Whether to return the current state of this Analytics Property's quota. Quota is returned in PropertyQuota.",
|
|
419
|
+
displayOptions: {
|
|
420
|
+
show: {
|
|
421
|
+
'/simple': [false],
|
|
422
|
+
},
|
|
423
|
+
},
|
|
424
|
+
},
|
|
425
|
+
],
|
|
426
|
+
},
|
|
427
|
+
];
|
|
428
|
+
async function execute(index) {
|
|
429
|
+
const propertyId = this.getNodeParameter('propertyId', index, undefined, {
|
|
430
|
+
extractValue: true,
|
|
431
|
+
});
|
|
432
|
+
const returnAll = this.getNodeParameter('returnAll', 0);
|
|
433
|
+
const additionalFields = this.getNodeParameter('additionalFields', index);
|
|
434
|
+
const dateRange = this.getNodeParameter('dateRange', index);
|
|
435
|
+
const metricsGA4 = this.getNodeParameter('metricsGA4', index, {});
|
|
436
|
+
const dimensionsGA4 = this.getNodeParameter('dimensionsGA4', index, {});
|
|
437
|
+
const simple = this.getNodeParameter('simple', index);
|
|
438
|
+
let responseData = [];
|
|
439
|
+
const qs = {};
|
|
440
|
+
const body = {
|
|
441
|
+
dateRanges: utils_1.prepareDateRange.call(this, dateRange, index),
|
|
442
|
+
};
|
|
443
|
+
if (metricsGA4.metricValues) {
|
|
444
|
+
const metrics = metricsGA4.metricValues.map((metric) => {
|
|
445
|
+
switch (metric.listName) {
|
|
446
|
+
case 'other':
|
|
447
|
+
return { name: metric.name };
|
|
448
|
+
case 'custom':
|
|
449
|
+
const newMetric = {
|
|
450
|
+
name: metric.name,
|
|
451
|
+
expression: metric.expression,
|
|
452
|
+
invisible: metric.invisible,
|
|
453
|
+
};
|
|
454
|
+
if (newMetric.invisible === false) {
|
|
455
|
+
delete newMetric.invisible;
|
|
456
|
+
}
|
|
457
|
+
if (newMetric.expression === '') {
|
|
458
|
+
delete newMetric.expression;
|
|
459
|
+
}
|
|
460
|
+
return newMetric;
|
|
461
|
+
default:
|
|
462
|
+
return { name: metric.listName };
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
if (metrics.length) {
|
|
466
|
+
utils_1.checkDuplicates.call(this, metrics, 'name', 'metrics');
|
|
467
|
+
body.metrics = metrics;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
if (dimensionsGA4.dimensionValues) {
|
|
471
|
+
const dimensions = dimensionsGA4.dimensionValues.map((dimension) => {
|
|
472
|
+
switch (dimension.listName) {
|
|
473
|
+
case 'other':
|
|
474
|
+
return { name: dimension.name };
|
|
475
|
+
default:
|
|
476
|
+
return { name: dimension.listName };
|
|
477
|
+
}
|
|
478
|
+
});
|
|
479
|
+
if (dimensions.length) {
|
|
480
|
+
utils_1.checkDuplicates.call(this, dimensions, 'name', 'dimensions');
|
|
481
|
+
body.dimensions = dimensions;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
if (additionalFields.currencyCode) {
|
|
485
|
+
body.currencyCode = additionalFields.currencyCode;
|
|
486
|
+
}
|
|
487
|
+
if (additionalFields.dimensionFiltersUI) {
|
|
488
|
+
const { filterExpressionType, expression } = additionalFields.dimensionFiltersUI.filterExpressions;
|
|
489
|
+
if (expression) {
|
|
490
|
+
body.dimensionFilter = {
|
|
491
|
+
[filterExpressionType]: {
|
|
492
|
+
expressions: (0, utils_1.processFilters)(expression),
|
|
493
|
+
},
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
if (additionalFields.metricsFiltersUI) {
|
|
498
|
+
const { filterExpressionType, expression } = additionalFields.metricsFiltersUI
|
|
499
|
+
.filterExpressions;
|
|
500
|
+
if (expression) {
|
|
501
|
+
body.metricFilter = {
|
|
502
|
+
[filterExpressionType]: {
|
|
503
|
+
expressions: (0, utils_1.processFilters)(expression),
|
|
504
|
+
},
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
if (additionalFields.metricAggregations) {
|
|
509
|
+
body.metricAggregations = additionalFields.metricAggregations;
|
|
510
|
+
}
|
|
511
|
+
if (additionalFields.keepEmptyRows) {
|
|
512
|
+
body.keepEmptyRows = additionalFields.keepEmptyRows;
|
|
513
|
+
}
|
|
514
|
+
if (additionalFields.orderByUI) {
|
|
515
|
+
let orderBys = [];
|
|
516
|
+
const metricOrderBy = additionalFields.orderByUI
|
|
517
|
+
.metricOrderBy;
|
|
518
|
+
const dimmensionOrderBy = additionalFields.orderByUI
|
|
519
|
+
.dimmensionOrderBy;
|
|
520
|
+
if (metricOrderBy) {
|
|
521
|
+
orderBys = orderBys.concat(metricOrderBy.map((order) => {
|
|
522
|
+
return {
|
|
523
|
+
desc: order.desc,
|
|
524
|
+
metric: {
|
|
525
|
+
metricName: order.metricName,
|
|
526
|
+
},
|
|
527
|
+
};
|
|
528
|
+
}));
|
|
529
|
+
}
|
|
530
|
+
if (dimmensionOrderBy) {
|
|
531
|
+
orderBys = orderBys.concat(dimmensionOrderBy.map((order) => {
|
|
532
|
+
return {
|
|
533
|
+
desc: order.desc,
|
|
534
|
+
dimension: {
|
|
535
|
+
dimensionName: order.dimensionName,
|
|
536
|
+
orderType: order.orderType,
|
|
537
|
+
},
|
|
538
|
+
};
|
|
539
|
+
}));
|
|
540
|
+
}
|
|
541
|
+
body.orderBys = orderBys;
|
|
542
|
+
}
|
|
543
|
+
if (additionalFields.returnPropertyQuota) {
|
|
544
|
+
body.returnPropertyQuota = additionalFields.returnPropertyQuota;
|
|
545
|
+
}
|
|
546
|
+
const method = 'POST';
|
|
547
|
+
const endpoint = `/v1beta/properties/${propertyId}:runReport`;
|
|
548
|
+
if (returnAll) {
|
|
549
|
+
responseData = await transport_1.googleApiRequestAllItems.call(this, '', method, endpoint, body, qs);
|
|
550
|
+
}
|
|
551
|
+
else {
|
|
552
|
+
body.limit = this.getNodeParameter('limit', 0);
|
|
553
|
+
responseData = [await transport_1.googleApiRequest.call(this, method, endpoint, body, qs)];
|
|
554
|
+
}
|
|
555
|
+
if ((responseData === null || responseData === void 0 ? void 0 : responseData.length) && simple) {
|
|
556
|
+
responseData = (0, utils_1.simplifyGA4)(responseData[0]);
|
|
557
|
+
}
|
|
558
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: index } });
|
|
559
|
+
return executionData;
|
|
560
|
+
}
|
|
561
|
+
exports.execute = execute;
|
|
562
|
+
//# sourceMappingURL=get.ga4.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.ga4.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Analytics/v2/actions/report/get.ga4.operation.ts"],"names":[],"mappings":";;;AAEA,+CAO6B;AAC7B,+CAA6E;AAC7E,6DAK8B;AAEjB,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EA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;IACtB,MAAM,QAAQ,GAAG,sBAAsB,UAAU,YAAY,CAAC;IAE9D,IAAI,SAAS,EAAE;QACd,YAAY,GAAG,MAAM,oCAAwB,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;KACzF;SAAM;QACN,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QAC/C,YAAY,GAAG,CAAC,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;KAC/E;IAED,IAAI,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,MAAM,KAAI,MAAM,EAAE;QACnC,YAAY,GAAG,IAAA,mBAAW,EAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;KAC5C;IAED,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC5D,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,EAC1C,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,CAC7B,CAAC;IAEF,OAAO,aAAa,CAAC;AACtB,CAAC;AApKD,0BAoKC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IExecuteFunctions } from 'n8n-core';
|
|
2
|
+
import { INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
|
3
|
+
export declare const description: INodeProperties[];
|
|
4
|
+
export declare function execute(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]>;
|