@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,283 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.competitorsFields = exports.competitorsOperations = void 0;
|
|
4
|
+
exports.competitorsOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['competitors'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Add Competitor',
|
|
18
|
+
value: 'addCompetitor',
|
|
19
|
+
description: 'Add a competitor website to a project',
|
|
20
|
+
action: 'Add competitor',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Delete Competitor',
|
|
24
|
+
value: 'deleteCompetitor',
|
|
25
|
+
description: 'Remove a competitor from a project',
|
|
26
|
+
action: 'Delete competitor',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get All Competitors',
|
|
30
|
+
value: 'getAllCompetitors',
|
|
31
|
+
description: 'Get domains ranked in TOP 10 for tracked keywords',
|
|
32
|
+
action: 'Get all competitors',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Get Keyword Positions',
|
|
36
|
+
value: 'getPositions',
|
|
37
|
+
description: 'Get ranking statistics for competitor keywords',
|
|
38
|
+
action: 'Get competitor keyword positions',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Get TOP 10 Results',
|
|
42
|
+
value: 'getTop10',
|
|
43
|
+
description: 'Get TOP 10 ranking results for a keyword',
|
|
44
|
+
action: 'Get TOP 10 results',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Get TOP 100 Results',
|
|
48
|
+
value: 'getTop100',
|
|
49
|
+
description: 'Get up to TOP 100 results for a keyword',
|
|
50
|
+
action: 'Get TOP 100 results',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'List Competitors',
|
|
54
|
+
value: 'listCompetitors',
|
|
55
|
+
description: 'List competitors added to a project',
|
|
56
|
+
action: 'List competitors',
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
default: 'listCompetitors',
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
exports.competitorsFields = [
|
|
63
|
+
{
|
|
64
|
+
displayName: 'Site ID',
|
|
65
|
+
name: 'siteId',
|
|
66
|
+
type: 'number',
|
|
67
|
+
required: true,
|
|
68
|
+
displayOptions: {
|
|
69
|
+
show: {
|
|
70
|
+
resource: ['competitors'],
|
|
71
|
+
operation: ['addCompetitor', 'listCompetitors', 'getTop10', 'getTop100', 'getAllCompetitors'],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
default: 0,
|
|
75
|
+
description: 'Unique project (site) ID',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
displayName: 'Competitor ID',
|
|
79
|
+
name: 'competitorId',
|
|
80
|
+
type: 'number',
|
|
81
|
+
required: true,
|
|
82
|
+
displayOptions: {
|
|
83
|
+
show: {
|
|
84
|
+
resource: ['competitors'],
|
|
85
|
+
operation: ['getPositions', 'deleteCompetitor'],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
default: 0,
|
|
89
|
+
description: 'Competitor ID',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
displayName: 'URL',
|
|
93
|
+
name: 'competitorUrl',
|
|
94
|
+
type: 'string',
|
|
95
|
+
required: true,
|
|
96
|
+
displayOptions: {
|
|
97
|
+
show: {
|
|
98
|
+
resource: ['competitors'],
|
|
99
|
+
operation: ['addCompetitor'],
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
default: '',
|
|
103
|
+
placeholder: 'https://competitor.com',
|
|
104
|
+
description: 'Competitor website URL',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
displayName: 'Additional Fields',
|
|
108
|
+
name: 'additionalFields',
|
|
109
|
+
type: 'collection',
|
|
110
|
+
placeholder: 'Add Field',
|
|
111
|
+
default: {},
|
|
112
|
+
displayOptions: {
|
|
113
|
+
show: {
|
|
114
|
+
resource: ['competitors'],
|
|
115
|
+
operation: ['addCompetitor'],
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
options: [
|
|
119
|
+
{
|
|
120
|
+
displayName: 'Name',
|
|
121
|
+
name: 'name',
|
|
122
|
+
type: 'string',
|
|
123
|
+
default: '',
|
|
124
|
+
description: 'Competitor website name. If not specified, the URL is used.',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
displayName: 'Include Subdomains',
|
|
128
|
+
name: 'subdomainMatch',
|
|
129
|
+
type: 'options',
|
|
130
|
+
options: [
|
|
131
|
+
{ name: 'No', value: 0 },
|
|
132
|
+
{ name: 'Yes', value: 1 },
|
|
133
|
+
],
|
|
134
|
+
default: 0,
|
|
135
|
+
description: 'Whether to include subdomains',
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
displayName: 'Additional Fields',
|
|
141
|
+
name: 'additionalFields',
|
|
142
|
+
type: 'collection',
|
|
143
|
+
placeholder: 'Add Field',
|
|
144
|
+
default: {},
|
|
145
|
+
displayOptions: {
|
|
146
|
+
show: {
|
|
147
|
+
resource: ['competitors'],
|
|
148
|
+
operation: ['getPositions'],
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
options: [
|
|
152
|
+
{
|
|
153
|
+
displayName: 'Date From',
|
|
154
|
+
name: 'dateFrom',
|
|
155
|
+
type: 'string',
|
|
156
|
+
default: '',
|
|
157
|
+
placeholder: '2024-01-01',
|
|
158
|
+
description: 'Start date (YYYY-MM-DD). Defaults to one week before today.',
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
displayName: 'Date To',
|
|
162
|
+
name: 'dateTo',
|
|
163
|
+
type: 'string',
|
|
164
|
+
default: '',
|
|
165
|
+
placeholder: '2024-01-07',
|
|
166
|
+
description: 'End date (YYYY-MM-DD). Defaults to today.',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
displayName: 'Site Engine ID',
|
|
170
|
+
name: 'siteEngineId',
|
|
171
|
+
type: 'number',
|
|
172
|
+
default: 0,
|
|
173
|
+
description: 'Search engine configuration ID. If not specified, all engines are included.',
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
displayName: 'With SERP Features',
|
|
177
|
+
name: 'withSerpFeatures',
|
|
178
|
+
type: 'options',
|
|
179
|
+
options: [
|
|
180
|
+
{ name: 'No', value: 0 },
|
|
181
|
+
{ name: 'Yes', value: 1 },
|
|
182
|
+
],
|
|
183
|
+
default: 0,
|
|
184
|
+
description: 'Whether to include SERP features',
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
displayName: 'Date',
|
|
190
|
+
name: 'date',
|
|
191
|
+
type: 'string',
|
|
192
|
+
required: true,
|
|
193
|
+
displayOptions: {
|
|
194
|
+
show: {
|
|
195
|
+
resource: ['competitors'],
|
|
196
|
+
operation: ['getTop10', 'getTop100', 'getAllCompetitors'],
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
default: '',
|
|
200
|
+
placeholder: '2024-01-01',
|
|
201
|
+
description: 'Date for results (YYYY-MM-DD)',
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
displayName: 'Site Engine ID',
|
|
205
|
+
name: 'siteEngineId',
|
|
206
|
+
type: 'number',
|
|
207
|
+
required: true,
|
|
208
|
+
displayOptions: {
|
|
209
|
+
show: {
|
|
210
|
+
resource: ['competitors'],
|
|
211
|
+
operation: ['getTop10', 'getTop100', 'getAllCompetitors'],
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
default: 0,
|
|
215
|
+
description: 'Search engine configuration ID',
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
displayName: 'Keyword ID',
|
|
219
|
+
name: 'keywordId',
|
|
220
|
+
type: 'number',
|
|
221
|
+
required: true,
|
|
222
|
+
displayOptions: {
|
|
223
|
+
show: {
|
|
224
|
+
resource: ['competitors'],
|
|
225
|
+
operation: ['getTop10', 'getTop100'],
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
default: 0,
|
|
229
|
+
description: 'Unique keyword ID',
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
displayName: 'Additional Fields',
|
|
233
|
+
name: 'additionalFields',
|
|
234
|
+
type: 'collection',
|
|
235
|
+
placeholder: 'Add Field',
|
|
236
|
+
default: {},
|
|
237
|
+
displayOptions: {
|
|
238
|
+
show: {
|
|
239
|
+
resource: ['competitors'],
|
|
240
|
+
operation: ['getTop100'],
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
options: [
|
|
244
|
+
{
|
|
245
|
+
displayName: 'Top',
|
|
246
|
+
name: 'top',
|
|
247
|
+
type: 'number',
|
|
248
|
+
default: 100,
|
|
249
|
+
description: 'Maximum position (0–100)',
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
displayName: 'Additional Fields',
|
|
255
|
+
name: 'additionalFields',
|
|
256
|
+
type: 'collection',
|
|
257
|
+
placeholder: 'Add Field',
|
|
258
|
+
default: {},
|
|
259
|
+
displayOptions: {
|
|
260
|
+
show: {
|
|
261
|
+
resource: ['competitors'],
|
|
262
|
+
operation: ['getAllCompetitors'],
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
options: [
|
|
266
|
+
{
|
|
267
|
+
displayName: 'Group ID',
|
|
268
|
+
name: 'groupId',
|
|
269
|
+
type: 'number',
|
|
270
|
+
default: 0,
|
|
271
|
+
description: 'Keyword group ID',
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
displayName: 'Tag IDs',
|
|
275
|
+
name: 'tags',
|
|
276
|
+
type: 'string',
|
|
277
|
+
default: '',
|
|
278
|
+
placeholder: '1,2,3',
|
|
279
|
+
description: 'Comma-separated keyword tag IDs',
|
|
280
|
+
},
|
|
281
|
+
],
|
|
282
|
+
},
|
|
283
|
+
];
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generalDataFields = exports.generalDataOperations = void 0;
|
|
4
|
+
exports.generalDataOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['generalData'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get Keyword Search Volume',
|
|
18
|
+
value: 'getKeywordVolume',
|
|
19
|
+
description: 'Get search volume data for keywords in a specific region',
|
|
20
|
+
action: 'Get keyword search volume',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'List Languages for Google',
|
|
24
|
+
value: 'listGoogleLangs',
|
|
25
|
+
description: 'Get a list of supported languages for Google',
|
|
26
|
+
action: 'List languages for Google',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'List Search Engines',
|
|
30
|
+
value: 'listSearchEngines',
|
|
31
|
+
description: 'Get a list of available search engines with regions',
|
|
32
|
+
action: 'List search engines',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'List Volume Regions',
|
|
36
|
+
value: 'listVolumeRegions',
|
|
37
|
+
description: 'Get all regions where keyword search volume checks are available',
|
|
38
|
+
action: 'List volume regions',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
default: 'listSearchEngines',
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
exports.generalDataFields = [
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Region ID',
|
|
47
|
+
name: 'regionId',
|
|
48
|
+
type: 'number',
|
|
49
|
+
required: true,
|
|
50
|
+
displayOptions: {
|
|
51
|
+
show: {
|
|
52
|
+
resource: ['generalData'],
|
|
53
|
+
operation: ['getKeywordVolume'],
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
default: 0,
|
|
57
|
+
description: 'Region ID (use "List Volume Regions" to get available IDs)',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
displayName: 'Keywords',
|
|
61
|
+
name: 'keywords',
|
|
62
|
+
type: 'string',
|
|
63
|
+
required: true,
|
|
64
|
+
displayOptions: {
|
|
65
|
+
show: {
|
|
66
|
+
resource: ['generalData'],
|
|
67
|
+
operation: ['getKeywordVolume'],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
default: '',
|
|
71
|
+
placeholder: 'keyword1,keyword2,keyword3',
|
|
72
|
+
description: 'Comma-separated list of keywords (max 10)',
|
|
73
|
+
},
|
|
74
|
+
];
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.keywordGroupsFields = exports.keywordGroupsOperations = void 0;
|
|
4
|
+
exports.keywordGroupsOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['keywordGroups'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Add Group',
|
|
18
|
+
value: 'addGroup',
|
|
19
|
+
description: 'Create a new keyword group for a project',
|
|
20
|
+
action: 'Add keyword group',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Delete Group',
|
|
24
|
+
value: 'deleteGroup',
|
|
25
|
+
description: 'Delete a keyword group',
|
|
26
|
+
action: 'Delete keyword group',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'List Groups',
|
|
30
|
+
value: 'listGroups',
|
|
31
|
+
description: 'List all keyword groups for a project',
|
|
32
|
+
action: 'List keyword groups',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Move Keywords',
|
|
36
|
+
value: 'moveKeywords',
|
|
37
|
+
description: 'Move keywords to another group',
|
|
38
|
+
action: 'Move keywords to group',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Rename Group',
|
|
42
|
+
value: 'renameGroup',
|
|
43
|
+
description: 'Rename an existing keyword group',
|
|
44
|
+
action: 'Rename keyword group',
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
default: 'listGroups',
|
|
48
|
+
},
|
|
49
|
+
];
|
|
50
|
+
exports.keywordGroupsFields = [
|
|
51
|
+
{
|
|
52
|
+
displayName: 'Site ID',
|
|
53
|
+
name: 'siteId',
|
|
54
|
+
type: 'number',
|
|
55
|
+
required: true,
|
|
56
|
+
displayOptions: {
|
|
57
|
+
show: {
|
|
58
|
+
resource: ['keywordGroups'],
|
|
59
|
+
operation: ['addGroup', 'listGroups'],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
default: 0,
|
|
63
|
+
description: 'Unique project (site) ID',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
displayName: 'Group ID',
|
|
67
|
+
name: 'groupId',
|
|
68
|
+
type: 'number',
|
|
69
|
+
required: true,
|
|
70
|
+
displayOptions: {
|
|
71
|
+
show: {
|
|
72
|
+
resource: ['keywordGroups'],
|
|
73
|
+
operation: ['moveKeywords', 'renameGroup', 'deleteGroup'],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
default: 0,
|
|
77
|
+
description: 'Keyword group ID',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
displayName: 'Group Name',
|
|
81
|
+
name: 'groupName',
|
|
82
|
+
type: 'string',
|
|
83
|
+
required: true,
|
|
84
|
+
displayOptions: {
|
|
85
|
+
show: {
|
|
86
|
+
resource: ['keywordGroups'],
|
|
87
|
+
operation: ['addGroup'],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
default: '',
|
|
91
|
+
placeholder: 'My Keyword Group',
|
|
92
|
+
description: 'Name of the keyword group to create',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
displayName: 'New Group Name',
|
|
96
|
+
name: 'groupName',
|
|
97
|
+
type: 'string',
|
|
98
|
+
required: true,
|
|
99
|
+
displayOptions: {
|
|
100
|
+
show: {
|
|
101
|
+
resource: ['keywordGroups'],
|
|
102
|
+
operation: ['renameGroup'],
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
default: '',
|
|
106
|
+
placeholder: 'Updated Group Name',
|
|
107
|
+
description: 'New name for the keyword group',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
displayName: 'Keyword IDs',
|
|
111
|
+
name: 'keywordIds',
|
|
112
|
+
type: 'string',
|
|
113
|
+
required: true,
|
|
114
|
+
displayOptions: {
|
|
115
|
+
show: {
|
|
116
|
+
resource: ['keywordGroups'],
|
|
117
|
+
operation: ['moveKeywords'],
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
default: '',
|
|
121
|
+
placeholder: '1,2,3,4,5',
|
|
122
|
+
description: 'Comma-separated list of keyword IDs to move',
|
|
123
|
+
},
|
|
124
|
+
];
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.marketingPlanFields = exports.marketingPlanOperations = void 0;
|
|
4
|
+
exports.marketingPlanOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['marketingPlan'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Add Task',
|
|
18
|
+
value: 'addTask',
|
|
19
|
+
description: 'Create a new custom task in the marketing plan',
|
|
20
|
+
action: 'Add task',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Delete Task',
|
|
24
|
+
value: 'deleteTask',
|
|
25
|
+
description: 'Delete a custom task from the marketing plan',
|
|
26
|
+
action: 'Delete task',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'List Plan Items',
|
|
30
|
+
value: 'listPlanItems',
|
|
31
|
+
description: 'Get marketing plan sections, items, and notes',
|
|
32
|
+
action: 'List plan items',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Set Task Status',
|
|
36
|
+
value: 'setTaskStatus',
|
|
37
|
+
description: 'Update the completion status of a task',
|
|
38
|
+
action: 'Set task status',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Update Task',
|
|
42
|
+
value: 'updateTask',
|
|
43
|
+
description: 'Update the name and description of a task',
|
|
44
|
+
action: 'Update task',
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
default: 'listPlanItems',
|
|
48
|
+
},
|
|
49
|
+
];
|
|
50
|
+
exports.marketingPlanFields = [
|
|
51
|
+
{
|
|
52
|
+
displayName: 'Site ID',
|
|
53
|
+
name: 'siteId',
|
|
54
|
+
type: 'number',
|
|
55
|
+
required: true,
|
|
56
|
+
displayOptions: {
|
|
57
|
+
show: {
|
|
58
|
+
resource: ['marketingPlan'],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
default: 0,
|
|
62
|
+
description: 'Unique site ID',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: 'Task Title',
|
|
66
|
+
name: 'taskTitle',
|
|
67
|
+
type: 'string',
|
|
68
|
+
required: true,
|
|
69
|
+
displayOptions: {
|
|
70
|
+
show: {
|
|
71
|
+
resource: ['marketingPlan'],
|
|
72
|
+
operation: ['addTask'],
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
default: '',
|
|
76
|
+
description: 'Name of the task',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
displayName: 'Task Description',
|
|
80
|
+
name: 'taskText',
|
|
81
|
+
type: 'string',
|
|
82
|
+
required: true,
|
|
83
|
+
typeOptions: { rows: 4 },
|
|
84
|
+
displayOptions: {
|
|
85
|
+
show: {
|
|
86
|
+
resource: ['marketingPlan'],
|
|
87
|
+
operation: ['addTask'],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
default: '',
|
|
91
|
+
description: 'Description of the task',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
displayName: 'Additional Fields',
|
|
95
|
+
name: 'additionalFields',
|
|
96
|
+
type: 'collection',
|
|
97
|
+
placeholder: 'Add Field',
|
|
98
|
+
default: {},
|
|
99
|
+
displayOptions: {
|
|
100
|
+
show: {
|
|
101
|
+
resource: ['marketingPlan'],
|
|
102
|
+
operation: ['addTask'],
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
options: [
|
|
106
|
+
{
|
|
107
|
+
displayName: 'For All Projects',
|
|
108
|
+
name: 'forAll',
|
|
109
|
+
type: 'boolean',
|
|
110
|
+
default: false,
|
|
111
|
+
description: 'Whether the task applies to all projects',
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
displayName: 'Task ID',
|
|
117
|
+
name: 'taskId',
|
|
118
|
+
type: 'string',
|
|
119
|
+
required: true,
|
|
120
|
+
displayOptions: {
|
|
121
|
+
show: {
|
|
122
|
+
resource: ['marketingPlan'],
|
|
123
|
+
operation: ['updateTask', 'setTaskStatus'],
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
default: '',
|
|
127
|
+
description: 'Unique task ID',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
displayName: 'Task Title',
|
|
131
|
+
name: 'taskTitle',
|
|
132
|
+
type: 'string',
|
|
133
|
+
required: true,
|
|
134
|
+
displayOptions: {
|
|
135
|
+
show: {
|
|
136
|
+
resource: ['marketingPlan'],
|
|
137
|
+
operation: ['updateTask'],
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
default: '',
|
|
141
|
+
description: 'Updated task name',
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
displayName: 'Task Description',
|
|
145
|
+
name: 'taskText',
|
|
146
|
+
type: 'string',
|
|
147
|
+
required: true,
|
|
148
|
+
typeOptions: { rows: 4 },
|
|
149
|
+
displayOptions: {
|
|
150
|
+
show: {
|
|
151
|
+
resource: ['marketingPlan'],
|
|
152
|
+
operation: ['updateTask'],
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
default: '',
|
|
156
|
+
description: 'Updated task description',
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
displayName: 'Checked',
|
|
160
|
+
name: 'checked',
|
|
161
|
+
type: 'boolean',
|
|
162
|
+
required: true,
|
|
163
|
+
displayOptions: {
|
|
164
|
+
show: {
|
|
165
|
+
resource: ['marketingPlan'],
|
|
166
|
+
operation: ['setTaskStatus'],
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
default: false,
|
|
170
|
+
description: 'Whether the task is completed',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
displayName: 'Task ID',
|
|
174
|
+
name: 'deleteTaskId',
|
|
175
|
+
type: 'number',
|
|
176
|
+
required: true,
|
|
177
|
+
displayOptions: {
|
|
178
|
+
show: {
|
|
179
|
+
resource: ['marketingPlan'],
|
|
180
|
+
operation: ['deleteTask'],
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
default: 0,
|
|
184
|
+
description: 'ID of the custom task to delete (only tasks created via Add Task can be deleted)',
|
|
185
|
+
},
|
|
186
|
+
];
|