@seranking/n8n-nodes-seranking 1.4.0 → 1.5.7
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/README.md +198 -5
- package/dist/nodes/SeRanking/SeRanking.node.js +200 -1
- package/dist/nodes/SeRanking/projectApi/descriptions/AccountSystemDescription.d.ts +3 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/AccountSystemDescription.js +38 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/AiResultTrackerDescription.d.ts +3 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/AiResultTrackerDescription.js +389 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/AnalyticsTrafficDescription.d.ts +3 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/AnalyticsTrafficDescription.js +84 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/BacklinkCheckerDescription.d.ts +3 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/BacklinkCheckerDescription.js +541 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/CompetitorsDescription.d.ts +3 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/CompetitorsDescription.js +283 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/GeneralDataDescription.d.ts +3 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/GeneralDataDescription.js +74 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/KeywordGroupsDescription.d.ts +3 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/KeywordGroupsDescription.js +124 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/MarketingPlanDescription.d.ts +3 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/MarketingPlanDescription.js +186 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/ProjectGroupsDescription.d.ts +3 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/ProjectGroupsDescription.js +110 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/ProjectManagementDescription.d.ts +3 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/ProjectManagementDescription.js +810 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/SearchVolumeDescription.d.ts +3 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/SearchVolumeDescription.js +74 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/SubAccountDescription.d.ts +3 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/SubAccountDescription.js +329 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/UrlTagsDescription.d.ts +3 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/UrlTagsDescription.js +164 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/WebsiteAuditDescription.d.ts +3 -0
- package/dist/nodes/SeRanking/projectApi/descriptions/WebsiteAuditDescription.js +379 -0
- package/dist/nodes/SeRanking/projectApi/operations/AccountSystemOperations.d.ts +2 -0
- package/dist/nodes/SeRanking/projectApi/operations/AccountSystemOperations.js +20 -0
- package/dist/nodes/SeRanking/projectApi/operations/AiResultTrackerOperations.d.ts +2 -0
- package/dist/nodes/SeRanking/projectApi/operations/AiResultTrackerOperations.js +114 -0
- package/dist/nodes/SeRanking/projectApi/operations/AnalyticsTrafficOperations.d.ts +2 -0
- package/dist/nodes/SeRanking/projectApi/operations/AnalyticsTrafficOperations.js +26 -0
- package/dist/nodes/SeRanking/projectApi/operations/BacklinkCheckerOperations.d.ts +2 -0
- package/dist/nodes/SeRanking/projectApi/operations/BacklinkCheckerOperations.js +134 -0
- package/dist/nodes/SeRanking/projectApi/operations/CompetitorsOperations.d.ts +2 -0
- package/dist/nodes/SeRanking/projectApi/operations/CompetitorsOperations.js +94 -0
- package/dist/nodes/SeRanking/projectApi/operations/GeneralDataOperations.d.ts +2 -0
- package/dist/nodes/SeRanking/projectApi/operations/GeneralDataOperations.js +27 -0
- package/dist/nodes/SeRanking/projectApi/operations/KeywordGroupsOperations.d.ts +2 -0
- package/dist/nodes/SeRanking/projectApi/operations/KeywordGroupsOperations.js +51 -0
- package/dist/nodes/SeRanking/projectApi/operations/MarketingPlanOperations.d.ts +2 -0
- package/dist/nodes/SeRanking/projectApi/operations/MarketingPlanOperations.js +49 -0
- package/dist/nodes/SeRanking/projectApi/operations/ProjectGroupsOperations.d.ts +2 -0
- package/dist/nodes/SeRanking/projectApi/operations/ProjectGroupsOperations.js +44 -0
- package/dist/nodes/SeRanking/projectApi/operations/ProjectManagementOperations.d.ts +2 -0
- package/dist/nodes/SeRanking/projectApi/operations/ProjectManagementOperations.js +228 -0
- package/dist/nodes/SeRanking/projectApi/operations/SearchVolumeOperations.d.ts +2 -0
- package/dist/nodes/SeRanking/projectApi/operations/SearchVolumeOperations.js +28 -0
- package/dist/nodes/SeRanking/projectApi/operations/SubAccountOperations.d.ts +2 -0
- package/dist/nodes/SeRanking/projectApi/operations/SubAccountOperations.js +98 -0
- package/dist/nodes/SeRanking/projectApi/operations/UrlTagsOperations.d.ts +2 -0
- package/dist/nodes/SeRanking/projectApi/operations/UrlTagsOperations.js +49 -0
- package/dist/nodes/SeRanking/projectApi/operations/WebsiteAuditOperations.d.ts +2 -0
- package/dist/nodes/SeRanking/projectApi/operations/WebsiteAuditOperations.js +127 -0
- package/dist/nodes/SeRanking/utils/apiRequest.js +14 -2
- package/package.json +18 -3
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.searchVolumeFields = exports.searchVolumeOperations = void 0;
|
|
4
|
+
exports.searchVolumeOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['searchVolume'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Create Volume Check',
|
|
18
|
+
value: 'createVolumeCheck',
|
|
19
|
+
description: 'Submit a request to check keyword search volume',
|
|
20
|
+
action: 'Create volume check',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Delete Volume Check',
|
|
24
|
+
value: 'deleteVolumeCheck',
|
|
25
|
+
description: 'Delete a search volume check request',
|
|
26
|
+
action: 'Delete volume check',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get Volume Check Results',
|
|
30
|
+
value: 'getVolumeResults',
|
|
31
|
+
description: 'Get results of a search volume check',
|
|
32
|
+
action: 'Get volume check results',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'List Volume Checks',
|
|
36
|
+
value: 'listVolumeChecks',
|
|
37
|
+
description: 'Get all search volume check requests',
|
|
38
|
+
action: 'List volume checks',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
default: 'listVolumeChecks',
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
exports.searchVolumeFields = [
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Keywords',
|
|
47
|
+
name: 'keywords',
|
|
48
|
+
type: 'string',
|
|
49
|
+
required: true,
|
|
50
|
+
displayOptions: {
|
|
51
|
+
show: {
|
|
52
|
+
resource: ['searchVolume'],
|
|
53
|
+
operation: ['createVolumeCheck'],
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
default: '',
|
|
57
|
+
placeholder: 'keyword1,keyword2',
|
|
58
|
+
description: 'Comma-separated keywords to check search volume for (1 keyword = $0.005, 2-700 = $0.2)',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Task ID',
|
|
62
|
+
name: 'taskId',
|
|
63
|
+
type: 'number',
|
|
64
|
+
required: true,
|
|
65
|
+
displayOptions: {
|
|
66
|
+
show: {
|
|
67
|
+
resource: ['searchVolume'],
|
|
68
|
+
operation: ['getVolumeResults', 'deleteVolumeCheck'],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
default: 0,
|
|
72
|
+
description: 'Unique search volume check request ID',
|
|
73
|
+
},
|
|
74
|
+
];
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subAccountFields = exports.subAccountOperations = void 0;
|
|
4
|
+
exports.subAccountOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['subAccount'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Create Sub-Account',
|
|
18
|
+
value: 'createSubAccount',
|
|
19
|
+
description: 'Create a new sub-account',
|
|
20
|
+
action: 'Create sub-account',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Delete Sub-Account',
|
|
24
|
+
value: 'deleteSubAccount',
|
|
25
|
+
description: 'Delete a sub-account',
|
|
26
|
+
action: 'Delete sub-account',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get Sub-Account Details',
|
|
30
|
+
value: 'getSubAccount',
|
|
31
|
+
description: 'Get extended information about a sub-account',
|
|
32
|
+
action: 'Get sub-account details',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'List Owned Projects',
|
|
36
|
+
value: 'listOwnedSites',
|
|
37
|
+
description: 'Get website IDs owned by a sub-account',
|
|
38
|
+
action: 'List owned projects',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'List Shared Projects',
|
|
42
|
+
value: 'listSharedSites',
|
|
43
|
+
description: 'Get website IDs shared with a sub-account',
|
|
44
|
+
action: 'List shared projects',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'List Sub-Accounts',
|
|
48
|
+
value: 'listSubAccounts',
|
|
49
|
+
description: 'Get all sub-accounts',
|
|
50
|
+
action: 'List sub-accounts',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Share Projects',
|
|
54
|
+
value: 'shareProjects',
|
|
55
|
+
description: 'Share websites with a sub-account',
|
|
56
|
+
action: 'Share projects',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Update Sub-Account',
|
|
60
|
+
value: 'updateSubAccount',
|
|
61
|
+
description: 'Update an existing sub-account',
|
|
62
|
+
action: 'Update sub-account',
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
default: 'listSubAccounts',
|
|
66
|
+
},
|
|
67
|
+
];
|
|
68
|
+
exports.subAccountFields = [
|
|
69
|
+
{
|
|
70
|
+
displayName: 'Sub-Account ID',
|
|
71
|
+
name: 'subAccountId',
|
|
72
|
+
type: 'number',
|
|
73
|
+
required: true,
|
|
74
|
+
displayOptions: {
|
|
75
|
+
show: {
|
|
76
|
+
resource: ['subAccount'],
|
|
77
|
+
operation: ['getSubAccount', 'deleteSubAccount', 'updateSubAccount', 'listSharedSites', 'listOwnedSites', 'shareProjects'],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
default: 0,
|
|
81
|
+
description: 'Unique sub-account ID',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
displayName: 'Additional Fields',
|
|
85
|
+
name: 'additionalFields',
|
|
86
|
+
type: 'collection',
|
|
87
|
+
placeholder: 'Add Field',
|
|
88
|
+
default: {},
|
|
89
|
+
displayOptions: {
|
|
90
|
+
show: {
|
|
91
|
+
resource: ['subAccount'],
|
|
92
|
+
operation: ['listSubAccounts'],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
options: [
|
|
96
|
+
{
|
|
97
|
+
displayName: 'Limit',
|
|
98
|
+
name: 'limit',
|
|
99
|
+
type: 'number',
|
|
100
|
+
default: 100,
|
|
101
|
+
description: 'Number of records per page',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
displayName: 'Offset',
|
|
105
|
+
name: 'offset',
|
|
106
|
+
type: 'number',
|
|
107
|
+
default: 0,
|
|
108
|
+
description: 'Number of records to skip for pagination',
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
displayName: 'Email',
|
|
114
|
+
name: 'accountEmail',
|
|
115
|
+
type: 'string',
|
|
116
|
+
required: true,
|
|
117
|
+
displayOptions: {
|
|
118
|
+
show: {
|
|
119
|
+
resource: ['subAccount'],
|
|
120
|
+
operation: ['createSubAccount'],
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
default: '',
|
|
124
|
+
placeholder: 'user@example.com',
|
|
125
|
+
description: 'Sub-account email address',
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
displayName: 'First Name',
|
|
129
|
+
name: 'accountFirstName',
|
|
130
|
+
type: 'string',
|
|
131
|
+
required: true,
|
|
132
|
+
displayOptions: {
|
|
133
|
+
show: {
|
|
134
|
+
resource: ['subAccount'],
|
|
135
|
+
operation: ['createSubAccount'],
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
default: '',
|
|
139
|
+
description: 'Sub-account first name',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
displayName: 'Password',
|
|
143
|
+
name: 'accountPassword',
|
|
144
|
+
type: 'string',
|
|
145
|
+
typeOptions: { password: true },
|
|
146
|
+
required: true,
|
|
147
|
+
displayOptions: {
|
|
148
|
+
show: {
|
|
149
|
+
resource: ['subAccount'],
|
|
150
|
+
operation: ['createSubAccount'],
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
default: '',
|
|
154
|
+
description: 'Sub-account password',
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
displayName: 'Additional Fields',
|
|
158
|
+
name: 'additionalFields',
|
|
159
|
+
type: 'collection',
|
|
160
|
+
placeholder: 'Add Field',
|
|
161
|
+
default: {},
|
|
162
|
+
displayOptions: {
|
|
163
|
+
show: {
|
|
164
|
+
resource: ['subAccount'],
|
|
165
|
+
operation: ['createSubAccount'],
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
options: [
|
|
169
|
+
{
|
|
170
|
+
displayName: 'Last Name',
|
|
171
|
+
name: 'accountLastName',
|
|
172
|
+
type: 'string',
|
|
173
|
+
default: '',
|
|
174
|
+
description: 'Sub-account last name',
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
displayName: 'Language',
|
|
178
|
+
name: 'accountLang',
|
|
179
|
+
type: 'string',
|
|
180
|
+
default: '',
|
|
181
|
+
placeholder: 'en',
|
|
182
|
+
description: 'Account language (ISO 639-1 alpha-2)',
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
displayName: 'Account Type',
|
|
186
|
+
name: 'accountType',
|
|
187
|
+
type: 'options',
|
|
188
|
+
options: [
|
|
189
|
+
{ name: 'User', value: 'user' },
|
|
190
|
+
{ name: 'Client', value: 'client' },
|
|
191
|
+
],
|
|
192
|
+
default: 'user',
|
|
193
|
+
description: 'Sub-account type',
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
displayName: 'Balance Limit Period',
|
|
197
|
+
name: 'balancePeriod',
|
|
198
|
+
type: 'options',
|
|
199
|
+
options: [
|
|
200
|
+
{ name: 'Day', value: 'day' },
|
|
201
|
+
{ name: 'Week', value: 'week' },
|
|
202
|
+
{ name: 'Month', value: 'month' },
|
|
203
|
+
],
|
|
204
|
+
default: 'day',
|
|
205
|
+
description: 'Limit period for balance',
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
displayName: 'Balance Limit Amount',
|
|
209
|
+
name: 'balanceAmount',
|
|
210
|
+
type: 'number',
|
|
211
|
+
default: 0,
|
|
212
|
+
description: 'Monetary limit value',
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
displayName: 'Access Permissions',
|
|
216
|
+
name: 'access',
|
|
217
|
+
type: 'string',
|
|
218
|
+
default: '',
|
|
219
|
+
placeholder: 'add_website,audit_settings,report_manual',
|
|
220
|
+
description: 'Comma-separated permission codes',
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
displayName: 'Update Fields',
|
|
226
|
+
name: 'updateFields',
|
|
227
|
+
type: 'collection',
|
|
228
|
+
placeholder: 'Add Field',
|
|
229
|
+
default: {},
|
|
230
|
+
displayOptions: {
|
|
231
|
+
show: {
|
|
232
|
+
resource: ['subAccount'],
|
|
233
|
+
operation: ['updateSubAccount'],
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
options: [
|
|
237
|
+
{
|
|
238
|
+
displayName: 'Email',
|
|
239
|
+
name: 'accountEmail',
|
|
240
|
+
type: 'string',
|
|
241
|
+
default: '',
|
|
242
|
+
description: 'Sub-account email',
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
displayName: 'First Name',
|
|
246
|
+
name: 'accountFirstName',
|
|
247
|
+
type: 'string',
|
|
248
|
+
default: '',
|
|
249
|
+
description: 'Sub-account first name',
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
displayName: 'Last Name',
|
|
253
|
+
name: 'accountLastName',
|
|
254
|
+
type: 'string',
|
|
255
|
+
default: '',
|
|
256
|
+
description: 'Sub-account last name',
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
displayName: 'Password',
|
|
260
|
+
name: 'accountPassword',
|
|
261
|
+
type: 'string',
|
|
262
|
+
typeOptions: { password: true },
|
|
263
|
+
default: '',
|
|
264
|
+
description: 'Sub-account password',
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
displayName: 'Language',
|
|
268
|
+
name: 'accountLang',
|
|
269
|
+
type: 'string',
|
|
270
|
+
default: '',
|
|
271
|
+
placeholder: 'en',
|
|
272
|
+
description: 'Account language (ISO 639-1 alpha-2)',
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
displayName: 'Account Type',
|
|
276
|
+
name: 'accountType',
|
|
277
|
+
type: 'options',
|
|
278
|
+
options: [
|
|
279
|
+
{ name: 'User', value: 'user' },
|
|
280
|
+
{ name: 'Client', value: 'client' },
|
|
281
|
+
],
|
|
282
|
+
default: 'user',
|
|
283
|
+
description: 'Sub-account type',
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
displayName: 'Balance Limit Period',
|
|
287
|
+
name: 'balancePeriod',
|
|
288
|
+
type: 'options',
|
|
289
|
+
options: [
|
|
290
|
+
{ name: 'Day', value: 'day' },
|
|
291
|
+
{ name: 'Week', value: 'week' },
|
|
292
|
+
{ name: 'Month', value: 'month' },
|
|
293
|
+
],
|
|
294
|
+
default: 'day',
|
|
295
|
+
description: 'Limit period for balance',
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
displayName: 'Balance Limit Amount',
|
|
299
|
+
name: 'balanceAmount',
|
|
300
|
+
type: 'number',
|
|
301
|
+
default: 0,
|
|
302
|
+
description: 'Monetary limit value',
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
displayName: 'Access Permissions',
|
|
306
|
+
name: 'access',
|
|
307
|
+
type: 'string',
|
|
308
|
+
default: '',
|
|
309
|
+
placeholder: 'add_website,audit_settings,report_manual',
|
|
310
|
+
description: 'Comma-separated permission codes (replaces existing permissions)',
|
|
311
|
+
},
|
|
312
|
+
],
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
displayName: 'Site IDs',
|
|
316
|
+
name: 'siteIds',
|
|
317
|
+
type: 'string',
|
|
318
|
+
required: true,
|
|
319
|
+
displayOptions: {
|
|
320
|
+
show: {
|
|
321
|
+
resource: ['subAccount'],
|
|
322
|
+
operation: ['shareProjects'],
|
|
323
|
+
},
|
|
324
|
+
},
|
|
325
|
+
default: '',
|
|
326
|
+
placeholder: '39,42,55',
|
|
327
|
+
description: 'Comma-separated website IDs to share with the sub-account',
|
|
328
|
+
},
|
|
329
|
+
];
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.urlTagsFields = exports.urlTagsOperations = void 0;
|
|
4
|
+
exports.urlTagsOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['urlTags'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Add Tag',
|
|
18
|
+
value: 'addTag',
|
|
19
|
+
description: 'Create a tag and optionally attach to URLs/domains',
|
|
20
|
+
action: 'Add tag',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Delete Tag',
|
|
24
|
+
value: 'deleteTag',
|
|
25
|
+
description: 'Delete a tag from a site',
|
|
26
|
+
action: 'Delete tag',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'List Tags',
|
|
30
|
+
value: 'listTags',
|
|
31
|
+
description: 'List all landing page tags for a site',
|
|
32
|
+
action: 'List tags',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Update Tag Assignment',
|
|
36
|
+
value: 'updateAssignment',
|
|
37
|
+
description: 'Assign tags to URLs and/or domains (replaces existing assignments)',
|
|
38
|
+
action: 'Update tag assignment',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
default: 'listTags',
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
exports.urlTagsFields = [
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Site ID',
|
|
47
|
+
name: 'siteId',
|
|
48
|
+
type: 'number',
|
|
49
|
+
required: true,
|
|
50
|
+
displayOptions: {
|
|
51
|
+
show: {
|
|
52
|
+
resource: ['urlTags'],
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
default: 0,
|
|
56
|
+
description: 'Unique project (site) ID',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
displayName: 'Tag ID',
|
|
60
|
+
name: 'tagId',
|
|
61
|
+
type: 'number',
|
|
62
|
+
required: true,
|
|
63
|
+
displayOptions: {
|
|
64
|
+
show: {
|
|
65
|
+
resource: ['urlTags'],
|
|
66
|
+
operation: ['deleteTag'],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
default: 0,
|
|
70
|
+
description: 'Tag ID to delete',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
displayName: 'Tag Name',
|
|
74
|
+
name: 'tagName',
|
|
75
|
+
type: 'string',
|
|
76
|
+
required: true,
|
|
77
|
+
displayOptions: {
|
|
78
|
+
show: {
|
|
79
|
+
resource: ['urlTags'],
|
|
80
|
+
operation: ['addTag'],
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
default: '',
|
|
84
|
+
placeholder: 'my-tag',
|
|
85
|
+
description: 'Name of the tag to create',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
displayName: 'Additional Fields',
|
|
89
|
+
name: 'additionalFields',
|
|
90
|
+
type: 'collection',
|
|
91
|
+
placeholder: 'Add Field',
|
|
92
|
+
default: {},
|
|
93
|
+
displayOptions: {
|
|
94
|
+
show: {
|
|
95
|
+
resource: ['urlTags'],
|
|
96
|
+
operation: ['addTag'],
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
options: [
|
|
100
|
+
{
|
|
101
|
+
displayName: 'URLs',
|
|
102
|
+
name: 'urls',
|
|
103
|
+
type: 'string',
|
|
104
|
+
default: '',
|
|
105
|
+
placeholder: 'https://example.com/page1,https://example.com/page2',
|
|
106
|
+
description: 'Comma-separated list of URLs to attach the tag to',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
displayName: 'Domains',
|
|
110
|
+
name: 'domains',
|
|
111
|
+
type: 'string',
|
|
112
|
+
default: '',
|
|
113
|
+
placeholder: 'example.com,test.com',
|
|
114
|
+
description: 'Comma-separated list of domains to attach the tag to',
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
displayName: 'Tag IDs',
|
|
120
|
+
name: 'tagIds',
|
|
121
|
+
type: 'string',
|
|
122
|
+
required: true,
|
|
123
|
+
displayOptions: {
|
|
124
|
+
show: {
|
|
125
|
+
resource: ['urlTags'],
|
|
126
|
+
operation: ['updateAssignment'],
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
default: '',
|
|
130
|
+
placeholder: '1,2,3',
|
|
131
|
+
description: 'Comma-separated tag IDs to assign',
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
displayName: 'Additional Fields',
|
|
135
|
+
name: 'additionalFields',
|
|
136
|
+
type: 'collection',
|
|
137
|
+
placeholder: 'Add Field',
|
|
138
|
+
default: {},
|
|
139
|
+
displayOptions: {
|
|
140
|
+
show: {
|
|
141
|
+
resource: ['urlTags'],
|
|
142
|
+
operation: ['updateAssignment'],
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
options: [
|
|
146
|
+
{
|
|
147
|
+
displayName: 'URLs',
|
|
148
|
+
name: 'urls',
|
|
149
|
+
type: 'string',
|
|
150
|
+
default: '',
|
|
151
|
+
placeholder: 'https://example.com/page1,https://example.com/page2',
|
|
152
|
+
description: 'Comma-separated list of URLs to update',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
displayName: 'Domains',
|
|
156
|
+
name: 'domains',
|
|
157
|
+
type: 'string',
|
|
158
|
+
default: '',
|
|
159
|
+
placeholder: 'example.com,test.com',
|
|
160
|
+
description: 'Comma-separated list of domains to update',
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
},
|
|
164
|
+
];
|