@wix/auto_sdk_seo_keyword-research 1.0.0
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/build/cjs/index.d.ts +101 -0
- package/build/cjs/index.js +372 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +672 -0
- package/build/cjs/index.typings.js +340 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +527 -0
- package/build/cjs/meta.js +301 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +101 -0
- package/build/es/index.mjs +346 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +672 -0
- package/build/es/index.typings.mjs +314 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +527 -0
- package/build/es/meta.mjs +272 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +101 -0
- package/build/internal/cjs/index.typings.d.ts +684 -0
- package/build/internal/cjs/meta.d.ts +539 -0
- package/build/internal/es/index.d.mts +101 -0
- package/build/internal/es/index.typings.d.mts +684 -0
- package/build/internal/es/meta.d.mts +539 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,539 @@
|
|
|
1
|
+
import { ListKeywordResearchItemsRequest as ListKeywordResearchItemsRequest$1, ListKeywordResearchItemsResponse as ListKeywordResearchItemsResponse$1, UpdateKeywordResearchItemRequest as UpdateKeywordResearchItemRequest$1, UpdateKeywordResearchItemResponse as UpdateKeywordResearchItemResponse$1, BulkUpdateKeywordResearchItemsRequest as BulkUpdateKeywordResearchItemsRequest$1, BulkUpdateKeywordResearchItemsResponse as BulkUpdateKeywordResearchItemsResponse$1 } from './index.typings.mjs';
|
|
2
|
+
import '@wix/sdk-types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A keyword research item is one target keyword in a site's content plan,
|
|
6
|
+
* together with the search data behind it and the page it belongs to.
|
|
7
|
+
*
|
|
8
|
+
* The content plan pipeline generates a set of these for a site. A site owner
|
|
9
|
+
* can then refine them, and the blog post briefs are built from the result.
|
|
10
|
+
*
|
|
11
|
+
* Items are grouped into clusters. Each site page has one main keyword, marked
|
|
12
|
+
* by `primary`, and the other keywords in that cluster support it.
|
|
13
|
+
*/
|
|
14
|
+
interface KeywordResearch {
|
|
15
|
+
/**
|
|
16
|
+
* Keyword research item ID.
|
|
17
|
+
* @format GUID
|
|
18
|
+
* @readonly
|
|
19
|
+
*/
|
|
20
|
+
id?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* The keyword itself.
|
|
23
|
+
*
|
|
24
|
+
* An update is rejected if the new keyword is longer than 80 characters, or
|
|
25
|
+
* if it duplicates another keyword in the same research.
|
|
26
|
+
* @maxLength 1000
|
|
27
|
+
*/
|
|
28
|
+
keyword?: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* ID of the site page the keyword is assigned to.
|
|
31
|
+
* @maxLength 1000
|
|
32
|
+
*/
|
|
33
|
+
pageId?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Type of the site page the keyword is assigned to, such as a static
|
|
36
|
+
* page or a blog post.
|
|
37
|
+
* @maxLength 1000
|
|
38
|
+
*/
|
|
39
|
+
itemType?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* URL of the site page the keyword is assigned to.
|
|
42
|
+
* @maxLength 1000
|
|
43
|
+
*/
|
|
44
|
+
pageUrl?: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* How hard it is to rank for the keyword, on a scale where a higher
|
|
47
|
+
* number means more competition.
|
|
48
|
+
*
|
|
49
|
+
* Recalculated when `keyword` changes, even if you don't name this field
|
|
50
|
+
* in the field mask.
|
|
51
|
+
*/
|
|
52
|
+
competition?: number | null;
|
|
53
|
+
/**
|
|
54
|
+
* Estimated number of searches for the keyword per month.
|
|
55
|
+
*
|
|
56
|
+
* Recalculated when `keyword` changes, even if you don't name this field
|
|
57
|
+
* in the field mask.
|
|
58
|
+
*/
|
|
59
|
+
searchVolume?: number | null;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the site page this keyword is assigned to has been deleted.
|
|
62
|
+
*
|
|
63
|
+
* A keyword assigned to a deleted page stays in the research.
|
|
64
|
+
*/
|
|
65
|
+
pageDeleted?: boolean | null;
|
|
66
|
+
/**
|
|
67
|
+
* Name of the page the keyword relates to. No reader populates it today.
|
|
68
|
+
* No removal owner is assigned yet. See
|
|
69
|
+
* docs/api-exposure/content-plan-exposure-brief.md.
|
|
70
|
+
* @internal
|
|
71
|
+
* @maxLength 1000
|
|
72
|
+
* @deprecated Name of the page the keyword relates to. No reader populates it today.
|
|
73
|
+
* No removal owner is assigned yet. See
|
|
74
|
+
* docs/api-exposure/content-plan-exposure-brief.md.
|
|
75
|
+
* @targetRemovalDate 2026-01-31
|
|
76
|
+
*/
|
|
77
|
+
pageName?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Whether this keyword is the main keyword for its page.
|
|
80
|
+
*
|
|
81
|
+
* A page has a single main keyword, and the other keywords in its cluster
|
|
82
|
+
* support it.
|
|
83
|
+
*/
|
|
84
|
+
primary?: boolean | null;
|
|
85
|
+
/**
|
|
86
|
+
* Name of the cluster that groups this keyword with the others covering
|
|
87
|
+
* the same topic.
|
|
88
|
+
* @maxLength 1000
|
|
89
|
+
*/
|
|
90
|
+
clusterName?: string | null;
|
|
91
|
+
}
|
|
92
|
+
interface GetKeywordResearchItemsByPageIdRequest {
|
|
93
|
+
/**
|
|
94
|
+
* ID of the page to retrieve keywords for. Required.
|
|
95
|
+
* @maxLength 1000
|
|
96
|
+
*/
|
|
97
|
+
pageId?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Type of the page. Required. Must match a stored item type.
|
|
100
|
+
* Unmatched value returns NOT_FOUND unless a main keyword was already set.
|
|
101
|
+
* @maxLength 1000
|
|
102
|
+
*/
|
|
103
|
+
itemType?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Optional. The handler currently resolves the site's latest keyword
|
|
106
|
+
* research and does not read this field. Kept for future use: when the
|
|
107
|
+
* handler is updated to support per-flow lookups, callers will be able to
|
|
108
|
+
* target a specific flow's research instead of always getting the latest.
|
|
109
|
+
* @format GUID
|
|
110
|
+
*/
|
|
111
|
+
contentPlanFlowId?: string | null;
|
|
112
|
+
}
|
|
113
|
+
interface GetKeywordResearchItemsByPageIdResponse {
|
|
114
|
+
/**
|
|
115
|
+
* keywords related to the page
|
|
116
|
+
* @maxSize 1000
|
|
117
|
+
*/
|
|
118
|
+
keywordResearchItems?: KeywordResearch[];
|
|
119
|
+
/**
|
|
120
|
+
* id of the main keyword for this page
|
|
121
|
+
* @format GUID
|
|
122
|
+
*/
|
|
123
|
+
mainKeywordId?: string | null;
|
|
124
|
+
}
|
|
125
|
+
interface ListKeywordResearchItemsRequest {
|
|
126
|
+
/**
|
|
127
|
+
* Reserved for future use.
|
|
128
|
+
*
|
|
129
|
+
* This method currently resolves the site's most recent keyword research,
|
|
130
|
+
* and this field is ignored.
|
|
131
|
+
* @format GUID
|
|
132
|
+
*/
|
|
133
|
+
contentPlanFlowId?: string | null;
|
|
134
|
+
/**
|
|
135
|
+
* Cursor paging. Omit for the first page.
|
|
136
|
+
*
|
|
137
|
+
* Omit this object entirely to return every item in a single response.
|
|
138
|
+
*/
|
|
139
|
+
paging?: CursorPaging;
|
|
140
|
+
}
|
|
141
|
+
interface CursorPaging {
|
|
142
|
+
/**
|
|
143
|
+
* Max items per page. Default 50, max 100.
|
|
144
|
+
* @max 100
|
|
145
|
+
*/
|
|
146
|
+
limit?: number | null;
|
|
147
|
+
/**
|
|
148
|
+
* Cursor from a previous response. Omit for the first page.
|
|
149
|
+
* @maxLength 16000
|
|
150
|
+
*/
|
|
151
|
+
cursor?: string | null;
|
|
152
|
+
}
|
|
153
|
+
interface ListKeywordResearchItemsResponse {
|
|
154
|
+
/**
|
|
155
|
+
* Retrieved keyword research items.
|
|
156
|
+
* @maxSize 1000
|
|
157
|
+
*/
|
|
158
|
+
keywordResearchItems?: KeywordResearch[];
|
|
159
|
+
/**
|
|
160
|
+
* ID of the keyword research these items belong to.
|
|
161
|
+
*
|
|
162
|
+
* Send this ID when you update an item. Compare it across reads to detect
|
|
163
|
+
* that a newer generation replaced the research.
|
|
164
|
+
* @format GUID
|
|
165
|
+
*/
|
|
166
|
+
keywordResearchId?: string | null;
|
|
167
|
+
/**
|
|
168
|
+
* Whether this research has been edited.
|
|
169
|
+
*
|
|
170
|
+
* `false` means the research is exactly as the content plan generated it,
|
|
171
|
+
* so the next edit copies it onto a new `keywordResearchId`.
|
|
172
|
+
*/
|
|
173
|
+
createdByUser?: boolean | null;
|
|
174
|
+
/**
|
|
175
|
+
* ID of the main keyword for each page, keyed by page ID.
|
|
176
|
+
*
|
|
177
|
+
* Built from the site's full item set, so on a paged response it can name
|
|
178
|
+
* items that aren't in `keywordResearchItems`.
|
|
179
|
+
*/
|
|
180
|
+
mainKeywordMap?: Record<string, string>;
|
|
181
|
+
/** Paging metadata. */
|
|
182
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
183
|
+
}
|
|
184
|
+
interface CursorPagingMetadata {
|
|
185
|
+
/** Items returned in this page. */
|
|
186
|
+
count?: number | null;
|
|
187
|
+
/** Cursors for next/previous page. */
|
|
188
|
+
cursors?: Cursors;
|
|
189
|
+
/** Whether there are more pages. */
|
|
190
|
+
hasNext?: boolean | null;
|
|
191
|
+
}
|
|
192
|
+
interface Cursors {
|
|
193
|
+
/**
|
|
194
|
+
* Cursor for the next page.
|
|
195
|
+
* @maxLength 16000
|
|
196
|
+
*/
|
|
197
|
+
next?: string | null;
|
|
198
|
+
/**
|
|
199
|
+
* Cursor for the previous page.
|
|
200
|
+
* @maxLength 16000
|
|
201
|
+
*/
|
|
202
|
+
prev?: string | null;
|
|
203
|
+
}
|
|
204
|
+
/** Deprecated alias request. Same fields as ListKeywordResearchItemsRequest. */
|
|
205
|
+
interface GetKeywordResearchItemsRequest {
|
|
206
|
+
/**
|
|
207
|
+
* Deprecated. Ignored by the handler.
|
|
208
|
+
* @format GUID
|
|
209
|
+
*/
|
|
210
|
+
contentPlanFlowId?: string | null;
|
|
211
|
+
/** Cursor paging. */
|
|
212
|
+
paging?: CursorPaging;
|
|
213
|
+
}
|
|
214
|
+
/** Deprecated alias response. Same fields as ListKeywordResearchItemsResponse. */
|
|
215
|
+
interface GetKeywordResearchItemsResponse {
|
|
216
|
+
/**
|
|
217
|
+
* Keyword research items.
|
|
218
|
+
* @maxSize 1000
|
|
219
|
+
*/
|
|
220
|
+
keywordResearchItems?: KeywordResearch[];
|
|
221
|
+
/**
|
|
222
|
+
* ID of the keyword research.
|
|
223
|
+
* @format GUID
|
|
224
|
+
*/
|
|
225
|
+
keywordResearchId?: string | null;
|
|
226
|
+
/** Whether the research was user-created. */
|
|
227
|
+
createdByUser?: boolean | null;
|
|
228
|
+
/** Main keyword IDs by page ID. */
|
|
229
|
+
mainKeywordMap?: Record<string, string>;
|
|
230
|
+
/** Paging metadata. */
|
|
231
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
232
|
+
}
|
|
233
|
+
interface GetDraftKeywordResearchItemsRequest {
|
|
234
|
+
/**
|
|
235
|
+
* id of the content plan flow this keyword research belongs to
|
|
236
|
+
* @format GUID
|
|
237
|
+
*/
|
|
238
|
+
contentPlanFlowId?: string | null;
|
|
239
|
+
}
|
|
240
|
+
interface GetDraftKeywordResearchItemsResponse {
|
|
241
|
+
/**
|
|
242
|
+
* keyword research items
|
|
243
|
+
* @maxSize 1000
|
|
244
|
+
*/
|
|
245
|
+
keywordResearchItems?: KeywordResearch[];
|
|
246
|
+
/**
|
|
247
|
+
* id of the keyword research that was returned
|
|
248
|
+
* @format GUID
|
|
249
|
+
*/
|
|
250
|
+
keywordResearchId?: string | null;
|
|
251
|
+
/** whether the keyword research was created by the user */
|
|
252
|
+
createdByUser?: boolean | null;
|
|
253
|
+
/** map of ids of the main keywords by page id */
|
|
254
|
+
mainKeywordMap?: Record<string, string>;
|
|
255
|
+
}
|
|
256
|
+
interface UpdateKeywordResearchItemsRequest {
|
|
257
|
+
/**
|
|
258
|
+
* updated keyword research items
|
|
259
|
+
* @maxSize 1000
|
|
260
|
+
*/
|
|
261
|
+
updatedItems?: UpdatedKeywordResearch[];
|
|
262
|
+
/**
|
|
263
|
+
* deleted keyword research items
|
|
264
|
+
* @maxSize 1000
|
|
265
|
+
*/
|
|
266
|
+
deletedItems?: DeletedKeywordResearch[];
|
|
267
|
+
/**
|
|
268
|
+
* added keyword research items
|
|
269
|
+
* @maxSize 1000
|
|
270
|
+
*/
|
|
271
|
+
addedItems?: AddedKeywordResearch[];
|
|
272
|
+
/**
|
|
273
|
+
* id of the keyword research to be updated
|
|
274
|
+
* @format GUID
|
|
275
|
+
*/
|
|
276
|
+
keywordResearchId?: string | null;
|
|
277
|
+
}
|
|
278
|
+
interface UpdatedKeywordResearch {
|
|
279
|
+
/**
|
|
280
|
+
* ID of the keyword research item to update.
|
|
281
|
+
* @format GUID
|
|
282
|
+
*/
|
|
283
|
+
id?: string | null;
|
|
284
|
+
/**
|
|
285
|
+
* New keyword.
|
|
286
|
+
*
|
|
287
|
+
* Rejected if it's longer than 80 characters, or if it duplicates another
|
|
288
|
+
* keyword in the same research. Changing it also refreshes the item's
|
|
289
|
+
* `searchVolume` and `competition`.
|
|
290
|
+
* @maxLength 1000
|
|
291
|
+
*/
|
|
292
|
+
keyword?: string | null;
|
|
293
|
+
/**
|
|
294
|
+
* Whether to make this item its page's main keyword.
|
|
295
|
+
*
|
|
296
|
+
* Set to `true` to promote it. `false` and omitting the field both leave
|
|
297
|
+
* the current main keyword unchanged, so this field can't demote one.
|
|
298
|
+
*/
|
|
299
|
+
mainKeyword?: boolean | null;
|
|
300
|
+
}
|
|
301
|
+
interface DeletedKeywordResearch {
|
|
302
|
+
/**
|
|
303
|
+
* ID of the keyword research item to delete.
|
|
304
|
+
* @format GUID
|
|
305
|
+
*/
|
|
306
|
+
id?: string | null;
|
|
307
|
+
}
|
|
308
|
+
interface AddedKeywordResearch {
|
|
309
|
+
/**
|
|
310
|
+
* keyword of the keyword research item
|
|
311
|
+
* @maxLength 1000
|
|
312
|
+
*/
|
|
313
|
+
keyword?: string | null;
|
|
314
|
+
/**
|
|
315
|
+
* page id the keyword relates to
|
|
316
|
+
* @maxLength 1000
|
|
317
|
+
*/
|
|
318
|
+
pageId?: string | null;
|
|
319
|
+
/** is the keyword the main keyword for it's page */
|
|
320
|
+
mainKeyword?: boolean | null;
|
|
321
|
+
}
|
|
322
|
+
interface UpdateKeywordResearchItemsResponse {
|
|
323
|
+
/**
|
|
324
|
+
* keyword research items
|
|
325
|
+
* @maxSize 1000
|
|
326
|
+
*/
|
|
327
|
+
keywordResearchItems?: KeywordResearch[];
|
|
328
|
+
/**
|
|
329
|
+
* id of the keyword research that was returned
|
|
330
|
+
* @format GUID
|
|
331
|
+
*/
|
|
332
|
+
keywordResearchId?: string | null;
|
|
333
|
+
/** whether the keyword research was created by the user */
|
|
334
|
+
createdByUser?: boolean | null;
|
|
335
|
+
/** map of ids of the main keywords by page id */
|
|
336
|
+
mainKeywordMap?: Record<string, string>;
|
|
337
|
+
}
|
|
338
|
+
interface UpdateKeywordResearchItemRequest {
|
|
339
|
+
/**
|
|
340
|
+
* ID of the keyword research the item belongs to.
|
|
341
|
+
*
|
|
342
|
+
* Use the `keywordResearchId` from your most recent read or write.
|
|
343
|
+
* @format GUID
|
|
344
|
+
*/
|
|
345
|
+
keywordResearchId: string | null;
|
|
346
|
+
/** Keyword research item to update. */
|
|
347
|
+
item: UpdatedKeywordResearch;
|
|
348
|
+
/**
|
|
349
|
+
* Fields to update.
|
|
350
|
+
*
|
|
351
|
+
* Must name at least one of `keyword` or `mainKeyword`, the only writable
|
|
352
|
+
* fields. An omitted or empty mask is rejected.
|
|
353
|
+
*/
|
|
354
|
+
fieldMask: string[];
|
|
355
|
+
}
|
|
356
|
+
interface UpdateKeywordResearchItemResponse {
|
|
357
|
+
/** Updated keyword research item. */
|
|
358
|
+
keywordResearchItem?: KeywordResearch;
|
|
359
|
+
/**
|
|
360
|
+
* ID of the keyword research holding the updated item.
|
|
361
|
+
*
|
|
362
|
+
* This can differ from the ID you sent, because the first edit to
|
|
363
|
+
* generated research copies it. Use this value for your next write.
|
|
364
|
+
* @format GUID
|
|
365
|
+
*/
|
|
366
|
+
keywordResearchId?: string | null;
|
|
367
|
+
}
|
|
368
|
+
interface BulkUpdateKeywordResearchItemsRequest {
|
|
369
|
+
/**
|
|
370
|
+
* ID of the keyword research the items belong to.
|
|
371
|
+
*
|
|
372
|
+
* Use the `keywordResearchId` from your most recent read or write.
|
|
373
|
+
* @format GUID
|
|
374
|
+
*/
|
|
375
|
+
keywordResearchId: string | null;
|
|
376
|
+
/**
|
|
377
|
+
* Keyword research items to update.
|
|
378
|
+
*
|
|
379
|
+
* Each item ID must appear at most once. The research holds at most 30
|
|
380
|
+
* keywords once the update is applied.
|
|
381
|
+
* @minSize 1
|
|
382
|
+
* @maxSize 1000
|
|
383
|
+
*/
|
|
384
|
+
items?: UpdatedKeywordResearch[];
|
|
385
|
+
}
|
|
386
|
+
interface BulkUpdateKeywordResearchItemsResponse {
|
|
387
|
+
/**
|
|
388
|
+
* Result for each entry, correlated by `itemMetadata.originalIndex`.
|
|
389
|
+
* @maxSize 1000
|
|
390
|
+
*/
|
|
391
|
+
results?: BulkKeywordResearchItemResult[];
|
|
392
|
+
/** How many entries succeeded and how many failed. */
|
|
393
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
394
|
+
/**
|
|
395
|
+
* The full set of keyword research items after the update.
|
|
396
|
+
* @maxSize 1000
|
|
397
|
+
*/
|
|
398
|
+
keywordResearchItems?: KeywordResearch[];
|
|
399
|
+
/**
|
|
400
|
+
* ID of the keyword research holding the updated items.
|
|
401
|
+
*
|
|
402
|
+
* This can differ from the ID you sent, because the first edit to
|
|
403
|
+
* generated research copies it. Use this value for your next write.
|
|
404
|
+
* @format GUID
|
|
405
|
+
*/
|
|
406
|
+
keywordResearchId?: string | null;
|
|
407
|
+
/** ID of the main keyword for each page, keyed by page ID. */
|
|
408
|
+
mainKeywordMap?: Record<string, string>;
|
|
409
|
+
}
|
|
410
|
+
interface ItemMetadata {
|
|
411
|
+
/**
|
|
412
|
+
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
413
|
+
* @maxLength 100
|
|
414
|
+
*/
|
|
415
|
+
id?: string | null;
|
|
416
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
417
|
+
originalIndex?: number;
|
|
418
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
419
|
+
success?: boolean;
|
|
420
|
+
/** Details about the error in case of failure. */
|
|
421
|
+
error?: ApplicationError;
|
|
422
|
+
}
|
|
423
|
+
interface ApplicationError {
|
|
424
|
+
/** Error code. */
|
|
425
|
+
code?: string;
|
|
426
|
+
/** Description of the error. */
|
|
427
|
+
description?: string;
|
|
428
|
+
/** Data related to the error. */
|
|
429
|
+
data?: Record<string, any> | null;
|
|
430
|
+
}
|
|
431
|
+
interface BulkKeywordResearchItemResult {
|
|
432
|
+
/** Success/failure and error detail for this entry. */
|
|
433
|
+
itemMetadata?: ItemMetadata;
|
|
434
|
+
}
|
|
435
|
+
interface BulkActionMetadata {
|
|
436
|
+
/** Number of items that were successfully processed. */
|
|
437
|
+
totalSuccesses?: number;
|
|
438
|
+
/** Number of items that couldn't be processed. */
|
|
439
|
+
totalFailures?: number;
|
|
440
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
441
|
+
undetailedFailures?: number;
|
|
442
|
+
}
|
|
443
|
+
interface RevertKeywordResearchRequest {
|
|
444
|
+
/**
|
|
445
|
+
* id of the keyword research to revert
|
|
446
|
+
* @format GUID
|
|
447
|
+
*/
|
|
448
|
+
keywordResearchId?: string | null;
|
|
449
|
+
}
|
|
450
|
+
interface RevertKeywordResearchResponse {
|
|
451
|
+
/**
|
|
452
|
+
* keyword research items
|
|
453
|
+
* @maxSize 1000
|
|
454
|
+
*/
|
|
455
|
+
keywordResearchItems?: KeywordResearch[];
|
|
456
|
+
/**
|
|
457
|
+
* id of the keyword research that was returned
|
|
458
|
+
* @format GUID
|
|
459
|
+
*/
|
|
460
|
+
keywordResearchId?: string | null;
|
|
461
|
+
}
|
|
462
|
+
interface DistributeKeywordsToPagesRequest {
|
|
463
|
+
/**
|
|
464
|
+
* Keywords to distribute
|
|
465
|
+
* @maxSize 1000
|
|
466
|
+
* @maxLength 1000
|
|
467
|
+
*/
|
|
468
|
+
keywords?: string[];
|
|
469
|
+
/**
|
|
470
|
+
* Page essences to match keywords to
|
|
471
|
+
* @maxSize 1000
|
|
472
|
+
*/
|
|
473
|
+
pageEssences?: PageEssenceInput[];
|
|
474
|
+
/**
|
|
475
|
+
* Embedding dimensions (e.g., "256", "512", "1024", "3072")
|
|
476
|
+
* @maxLength 4
|
|
477
|
+
*/
|
|
478
|
+
dimensions?: string | null;
|
|
479
|
+
/** Similarity threshold (default 0.5) */
|
|
480
|
+
similarityThreshold?: number | null;
|
|
481
|
+
}
|
|
482
|
+
interface PageEssenceInput {
|
|
483
|
+
/**
|
|
484
|
+
* Page name
|
|
485
|
+
* @maxLength 1000
|
|
486
|
+
*/
|
|
487
|
+
pageName?: string;
|
|
488
|
+
/**
|
|
489
|
+
* Page ID
|
|
490
|
+
* @maxLength 1000
|
|
491
|
+
*/
|
|
492
|
+
pageId?: string;
|
|
493
|
+
/**
|
|
494
|
+
* Page essence (semantic summary)
|
|
495
|
+
* @maxLength 1000
|
|
496
|
+
*/
|
|
497
|
+
pageEssence?: string;
|
|
498
|
+
/** Is homepage */
|
|
499
|
+
homepage?: boolean;
|
|
500
|
+
}
|
|
501
|
+
interface DistributeKeywordsToPagesResponse {
|
|
502
|
+
/**
|
|
503
|
+
* Distributed keywords with their assigned pages
|
|
504
|
+
* @maxSize 1000
|
|
505
|
+
*/
|
|
506
|
+
distributedKeywords?: DistributedKeyword[];
|
|
507
|
+
}
|
|
508
|
+
interface DistributedKeyword {
|
|
509
|
+
/**
|
|
510
|
+
* The keyword
|
|
511
|
+
* @maxLength 1000
|
|
512
|
+
*/
|
|
513
|
+
keyword?: string;
|
|
514
|
+
/**
|
|
515
|
+
* The assigned page ID
|
|
516
|
+
* @maxLength 1000
|
|
517
|
+
*/
|
|
518
|
+
pageId?: string;
|
|
519
|
+
/** The similarity score */
|
|
520
|
+
score?: number;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
524
|
+
getUrl: (context: any) => string;
|
|
525
|
+
httpMethod: K;
|
|
526
|
+
path: string;
|
|
527
|
+
pathParams: M;
|
|
528
|
+
__requestType: T;
|
|
529
|
+
__originalRequestType: S;
|
|
530
|
+
__responseType: Q;
|
|
531
|
+
__originalResponseType: R;
|
|
532
|
+
};
|
|
533
|
+
declare function listKeywordResearchItems(): __PublicMethodMetaInfo<'GET', {}, ListKeywordResearchItemsRequest$1, ListKeywordResearchItemsRequest, ListKeywordResearchItemsResponse$1, ListKeywordResearchItemsResponse>;
|
|
534
|
+
declare function updateKeywordResearchItem(): __PublicMethodMetaInfo<'PATCH', {
|
|
535
|
+
itemId: string;
|
|
536
|
+
}, UpdateKeywordResearchItemRequest$1, UpdateKeywordResearchItemRequest, UpdateKeywordResearchItemResponse$1, UpdateKeywordResearchItemResponse>;
|
|
537
|
+
declare function bulkUpdateKeywordResearchItems(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateKeywordResearchItemsRequest$1, BulkUpdateKeywordResearchItemsRequest, BulkUpdateKeywordResearchItemsResponse$1, BulkUpdateKeywordResearchItemsResponse>;
|
|
538
|
+
|
|
539
|
+
export { type AddedKeywordResearch as AddedKeywordResearchOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkKeywordResearchItemResult as BulkKeywordResearchItemResultOriginal, type BulkUpdateKeywordResearchItemsRequest as BulkUpdateKeywordResearchItemsRequestOriginal, type BulkUpdateKeywordResearchItemsResponse as BulkUpdateKeywordResearchItemsResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DeletedKeywordResearch as DeletedKeywordResearchOriginal, type DistributeKeywordsToPagesRequest as DistributeKeywordsToPagesRequestOriginal, type DistributeKeywordsToPagesResponse as DistributeKeywordsToPagesResponseOriginal, type DistributedKeyword as DistributedKeywordOriginal, type GetDraftKeywordResearchItemsRequest as GetDraftKeywordResearchItemsRequestOriginal, type GetDraftKeywordResearchItemsResponse as GetDraftKeywordResearchItemsResponseOriginal, type GetKeywordResearchItemsByPageIdRequest as GetKeywordResearchItemsByPageIdRequestOriginal, type GetKeywordResearchItemsByPageIdResponse as GetKeywordResearchItemsByPageIdResponseOriginal, type GetKeywordResearchItemsRequest as GetKeywordResearchItemsRequestOriginal, type GetKeywordResearchItemsResponse as GetKeywordResearchItemsResponseOriginal, type ItemMetadata as ItemMetadataOriginal, type KeywordResearch as KeywordResearchOriginal, type ListKeywordResearchItemsRequest as ListKeywordResearchItemsRequestOriginal, type ListKeywordResearchItemsResponse as ListKeywordResearchItemsResponseOriginal, type PageEssenceInput as PageEssenceInputOriginal, type RevertKeywordResearchRequest as RevertKeywordResearchRequestOriginal, type RevertKeywordResearchResponse as RevertKeywordResearchResponseOriginal, type UpdateKeywordResearchItemRequest as UpdateKeywordResearchItemRequestOriginal, type UpdateKeywordResearchItemResponse as UpdateKeywordResearchItemResponseOriginal, type UpdateKeywordResearchItemsRequest as UpdateKeywordResearchItemsRequestOriginal, type UpdateKeywordResearchItemsResponse as UpdateKeywordResearchItemsResponseOriginal, type UpdatedKeywordResearch as UpdatedKeywordResearchOriginal, type __PublicMethodMetaInfo, bulkUpdateKeywordResearchItems, listKeywordResearchItems, updateKeywordResearchItem };
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wix/auto_sdk_seo_keyword-research",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/",
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [],
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"main": "./build/cjs/index.js",
|
|
12
|
+
"types": "./build/cjs/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./build/es/index.mjs",
|
|
16
|
+
"require": "./build/cjs/index.js",
|
|
17
|
+
"types": "./build/es/index.d.mts"
|
|
18
|
+
},
|
|
19
|
+
"./package.json": "./package.json",
|
|
20
|
+
"./meta": {
|
|
21
|
+
"import": "./build/es/meta.mjs",
|
|
22
|
+
"require": "./build/cjs/meta.js",
|
|
23
|
+
"types": "./build/es/meta.d.mts"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"build",
|
|
28
|
+
"meta",
|
|
29
|
+
"service-plugins"
|
|
30
|
+
],
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@wix/sdk-runtime": "^1.0.24",
|
|
33
|
+
"@wix/sdk-types": "^1.17.11"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"tsup": "^8.4.0",
|
|
37
|
+
"typescript": "^5.3.2"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsup",
|
|
41
|
+
"test": ":"
|
|
42
|
+
},
|
|
43
|
+
"wix": {
|
|
44
|
+
"artifact": {
|
|
45
|
+
"artifactId": "auto-sdk-seo-keyword-research",
|
|
46
|
+
"groupId": "com.wixpress.public-sdk-dependencies"
|
|
47
|
+
},
|
|
48
|
+
"sdkDependency": {
|
|
49
|
+
"fqdnNamespace": "keywordResearch",
|
|
50
|
+
"fqdn": "wix.promote.seo.v1.content_plan_keyword_research"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"falconPackageHash": "b9b635589a811c53890f1bf4f261915fea75d726c357a32f0883e7c5"
|
|
54
|
+
}
|