@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,272 @@
|
|
|
1
|
+
// src/promote-seo-v1-content-plan-keyword-research-keyword-research.http.ts
|
|
2
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
3
|
+
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
4
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
5
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
6
|
+
function resolveWixPromoteSeoContentPlanV1KeywordResearchServiceV1Url(opts) {
|
|
7
|
+
const domainToMappings = {
|
|
8
|
+
"bo._base_domain_": [
|
|
9
|
+
{
|
|
10
|
+
srcPath: "/_serverless/seo-content-plan-service",
|
|
11
|
+
destPath: ""
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"wixbo.ai": [
|
|
15
|
+
{
|
|
16
|
+
srcPath: "/_serverless/seo-content-plan-service",
|
|
17
|
+
destPath: ""
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"wix-bo.com": [
|
|
21
|
+
{
|
|
22
|
+
srcPath: "/_serverless/seo-content-plan-service",
|
|
23
|
+
destPath: ""
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"api._api_base_domain_": [
|
|
27
|
+
{
|
|
28
|
+
srcPath: "/seo-content-plan-service",
|
|
29
|
+
destPath: ""
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"manage._base_domain_": [
|
|
33
|
+
{
|
|
34
|
+
srcPath: "/_api/seo-content-plan-service",
|
|
35
|
+
destPath: ""
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"editor._base_domain_": [
|
|
39
|
+
{
|
|
40
|
+
srcPath: "/_api/seo-content-plan-service",
|
|
41
|
+
destPath: ""
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"blocks._base_domain_": [
|
|
45
|
+
{
|
|
46
|
+
srcPath: "/_api/seo-content-plan-service",
|
|
47
|
+
destPath: ""
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"create.editorx": [
|
|
51
|
+
{
|
|
52
|
+
srcPath: "/_api/seo-content-plan-service",
|
|
53
|
+
destPath: ""
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"www.wixapis.com": [
|
|
57
|
+
{
|
|
58
|
+
srcPath: "/seo-content-plan-service",
|
|
59
|
+
destPath: ""
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
srcPath: "/promote/seo/v1/content-plan-flows",
|
|
63
|
+
destPath: "/v1/content-plan-flows"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
srcPath: "/promote/seo/v1/content-plan-flow",
|
|
67
|
+
destPath: "/v1/content-plan-flow"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
srcPath: "/promote/seo/v1/content-plan-keyword-research-items",
|
|
71
|
+
destPath: "/v1/content-plan-keyword-research-items"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
srcPath: "/promote/seo/v1/keyword-research-items",
|
|
75
|
+
destPath: "/v1/keyword-research-items"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
srcPath: "/promote/seo/v1/bulk/keyword-research-items",
|
|
79
|
+
destPath: "/v1/bulk/keyword-research-items"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
srcPath: "/promote/seo/v1/create-content-plan",
|
|
83
|
+
destPath: "/v1/create-content-plan"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
srcPath: "/promote/seo/v1/trigger-content-plan-generation-flow",
|
|
87
|
+
destPath: "/v1/trigger-content-plan-generation-flow"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
srcPath: "/promote/seo/v1/cancel-content-plan-flow",
|
|
91
|
+
destPath: "/v1/cancel-content-plan-flow"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
_: [
|
|
95
|
+
{
|
|
96
|
+
srcPath: "/seo-content-plan-service",
|
|
97
|
+
destPath: ""
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
srcPath: "/promote/seo/v1/content-plan-flows",
|
|
101
|
+
destPath: "/v1/content-plan-flows"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
srcPath: "/promote/seo/v1/content-plan-flow",
|
|
105
|
+
destPath: "/v1/content-plan-flow"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
srcPath: "/promote/seo/v1/content-plan-keyword-research-items",
|
|
109
|
+
destPath: "/v1/content-plan-keyword-research-items"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
srcPath: "/promote/seo/v1/keyword-research-items",
|
|
113
|
+
destPath: "/v1/keyword-research-items"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
srcPath: "/promote/seo/v1/bulk/keyword-research-items",
|
|
117
|
+
destPath: "/v1/bulk/keyword-research-items"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
srcPath: "/promote/seo/v1/create-content-plan",
|
|
121
|
+
destPath: "/v1/create-content-plan"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
srcPath: "/promote/seo/v1/trigger-content-plan-generation-flow",
|
|
125
|
+
destPath: "/v1/trigger-content-plan-generation-flow"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
srcPath: "/promote/seo/v1/cancel-content-plan-flow",
|
|
129
|
+
destPath: "/v1/cancel-content-plan-flow"
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
};
|
|
133
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
134
|
+
}
|
|
135
|
+
var PACKAGE_NAME = "@wix/auto_sdk_seo_keyword-research";
|
|
136
|
+
function listKeywordResearchItems(payload) {
|
|
137
|
+
function __listKeywordResearchItems({ host }) {
|
|
138
|
+
const metadata = {
|
|
139
|
+
entityFqdn: "wix.promote.seo.v1.content_plan_keyword_research",
|
|
140
|
+
method: "GET",
|
|
141
|
+
methodFqn: "wix.promote.seo.content.plan.v1.KeywordResearchServiceV1.ListKeywordResearchItems",
|
|
142
|
+
packageName: PACKAGE_NAME,
|
|
143
|
+
migrationOptions: {
|
|
144
|
+
optInTransformResponse: true
|
|
145
|
+
},
|
|
146
|
+
url: resolveWixPromoteSeoContentPlanV1KeywordResearchServiceV1Url({
|
|
147
|
+
protoPath: "/v1/content-plan-keyword-research-items",
|
|
148
|
+
data: payload,
|
|
149
|
+
host
|
|
150
|
+
}),
|
|
151
|
+
params: toURLSearchParams(payload)
|
|
152
|
+
};
|
|
153
|
+
return metadata;
|
|
154
|
+
}
|
|
155
|
+
return __listKeywordResearchItems;
|
|
156
|
+
}
|
|
157
|
+
function updateKeywordResearchItem(payload) {
|
|
158
|
+
function __updateKeywordResearchItem({ host }) {
|
|
159
|
+
const serializedData = transformPaths(payload, [
|
|
160
|
+
{
|
|
161
|
+
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
162
|
+
paths: [{ path: "fieldMask" }]
|
|
163
|
+
}
|
|
164
|
+
]);
|
|
165
|
+
const metadata = {
|
|
166
|
+
entityFqdn: "wix.promote.seo.v1.content_plan_keyword_research",
|
|
167
|
+
method: "PATCH",
|
|
168
|
+
methodFqn: "wix.promote.seo.content.plan.v1.KeywordResearchServiceV1.UpdateKeywordResearchItem",
|
|
169
|
+
packageName: PACKAGE_NAME,
|
|
170
|
+
migrationOptions: {
|
|
171
|
+
optInTransformResponse: true
|
|
172
|
+
},
|
|
173
|
+
url: resolveWixPromoteSeoContentPlanV1KeywordResearchServiceV1Url({
|
|
174
|
+
protoPath: "/v1/keyword-research-items/{item.id}",
|
|
175
|
+
data: serializedData,
|
|
176
|
+
host
|
|
177
|
+
}),
|
|
178
|
+
data: serializedData
|
|
179
|
+
};
|
|
180
|
+
return metadata;
|
|
181
|
+
}
|
|
182
|
+
return __updateKeywordResearchItem;
|
|
183
|
+
}
|
|
184
|
+
function bulkUpdateKeywordResearchItems(payload) {
|
|
185
|
+
function __bulkUpdateKeywordResearchItems({ host }) {
|
|
186
|
+
const metadata = {
|
|
187
|
+
entityFqdn: "wix.promote.seo.v1.content_plan_keyword_research",
|
|
188
|
+
method: "POST",
|
|
189
|
+
methodFqn: "wix.promote.seo.content.plan.v1.KeywordResearchServiceV1.BulkUpdateKeywordResearchItems",
|
|
190
|
+
packageName: PACKAGE_NAME,
|
|
191
|
+
migrationOptions: {
|
|
192
|
+
optInTransformResponse: true
|
|
193
|
+
},
|
|
194
|
+
url: resolveWixPromoteSeoContentPlanV1KeywordResearchServiceV1Url({
|
|
195
|
+
protoPath: "/v1/bulk/keyword-research-items/update",
|
|
196
|
+
data: payload,
|
|
197
|
+
host
|
|
198
|
+
}),
|
|
199
|
+
data: payload
|
|
200
|
+
};
|
|
201
|
+
return metadata;
|
|
202
|
+
}
|
|
203
|
+
return __bulkUpdateKeywordResearchItems;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
// src/promote-seo-v1-content-plan-keyword-research-keyword-research.meta.ts
|
|
207
|
+
function listKeywordResearchItems2() {
|
|
208
|
+
const payload = {};
|
|
209
|
+
const getRequestOptions = listKeywordResearchItems(
|
|
210
|
+
payload
|
|
211
|
+
);
|
|
212
|
+
const getUrl = (context) => {
|
|
213
|
+
const { url } = getRequestOptions(context);
|
|
214
|
+
return url;
|
|
215
|
+
};
|
|
216
|
+
return {
|
|
217
|
+
getUrl,
|
|
218
|
+
httpMethod: "GET",
|
|
219
|
+
path: "/v1/content-plan-keyword-research-items",
|
|
220
|
+
pathParams: {},
|
|
221
|
+
__requestType: null,
|
|
222
|
+
__originalRequestType: null,
|
|
223
|
+
__responseType: null,
|
|
224
|
+
__originalResponseType: null
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
function updateKeywordResearchItem2() {
|
|
228
|
+
const payload = { item: { id: ":itemId" } };
|
|
229
|
+
const getRequestOptions = updateKeywordResearchItem(
|
|
230
|
+
payload
|
|
231
|
+
);
|
|
232
|
+
const getUrl = (context) => {
|
|
233
|
+
const { url } = getRequestOptions(context);
|
|
234
|
+
return url;
|
|
235
|
+
};
|
|
236
|
+
return {
|
|
237
|
+
getUrl,
|
|
238
|
+
httpMethod: "PATCH",
|
|
239
|
+
path: "/v1/keyword-research-items/{item.id}",
|
|
240
|
+
pathParams: { itemId: "itemId" },
|
|
241
|
+
__requestType: null,
|
|
242
|
+
__originalRequestType: null,
|
|
243
|
+
__responseType: null,
|
|
244
|
+
__originalResponseType: null
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
function bulkUpdateKeywordResearchItems2() {
|
|
248
|
+
const payload = {};
|
|
249
|
+
const getRequestOptions = bulkUpdateKeywordResearchItems(
|
|
250
|
+
payload
|
|
251
|
+
);
|
|
252
|
+
const getUrl = (context) => {
|
|
253
|
+
const { url } = getRequestOptions(context);
|
|
254
|
+
return url;
|
|
255
|
+
};
|
|
256
|
+
return {
|
|
257
|
+
getUrl,
|
|
258
|
+
httpMethod: "POST",
|
|
259
|
+
path: "/v1/bulk/keyword-research-items/update",
|
|
260
|
+
pathParams: {},
|
|
261
|
+
__requestType: null,
|
|
262
|
+
__originalRequestType: null,
|
|
263
|
+
__responseType: null,
|
|
264
|
+
__originalResponseType: null
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
export {
|
|
268
|
+
bulkUpdateKeywordResearchItems2 as bulkUpdateKeywordResearchItems,
|
|
269
|
+
listKeywordResearchItems2 as listKeywordResearchItems,
|
|
270
|
+
updateKeywordResearchItem2 as updateKeywordResearchItem
|
|
271
|
+
};
|
|
272
|
+
//# sourceMappingURL=meta.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/promote-seo-v1-content-plan-keyword-research-keyword-research.http.ts","../../src/promote-seo-v1-content-plan-keyword-research-keyword-research.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPromoteSeoContentPlanV1KeywordResearchServiceV1Url(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/_serverless/seo-content-plan-service',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_serverless/seo-content-plan-service',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_serverless/seo-content-plan-service',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/seo-content-plan-service',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/seo-content-plan-service',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/seo-content-plan-service',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/seo-content-plan-service',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/seo-content-plan-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/seo-content-plan-service',\n destPath: '',\n },\n {\n srcPath: '/promote/seo/v1/content-plan-flows',\n destPath: '/v1/content-plan-flows',\n },\n {\n srcPath: '/promote/seo/v1/content-plan-flow',\n destPath: '/v1/content-plan-flow',\n },\n {\n srcPath: '/promote/seo/v1/content-plan-keyword-research-items',\n destPath: '/v1/content-plan-keyword-research-items',\n },\n {\n srcPath: '/promote/seo/v1/keyword-research-items',\n destPath: '/v1/keyword-research-items',\n },\n {\n srcPath: '/promote/seo/v1/bulk/keyword-research-items',\n destPath: '/v1/bulk/keyword-research-items',\n },\n {\n srcPath: '/promote/seo/v1/create-content-plan',\n destPath: '/v1/create-content-plan',\n },\n {\n srcPath: '/promote/seo/v1/trigger-content-plan-generation-flow',\n destPath: '/v1/trigger-content-plan-generation-flow',\n },\n {\n srcPath: '/promote/seo/v1/cancel-content-plan-flow',\n destPath: '/v1/cancel-content-plan-flow',\n },\n ],\n _: [\n {\n srcPath: '/seo-content-plan-service',\n destPath: '',\n },\n {\n srcPath: '/promote/seo/v1/content-plan-flows',\n destPath: '/v1/content-plan-flows',\n },\n {\n srcPath: '/promote/seo/v1/content-plan-flow',\n destPath: '/v1/content-plan-flow',\n },\n {\n srcPath: '/promote/seo/v1/content-plan-keyword-research-items',\n destPath: '/v1/content-plan-keyword-research-items',\n },\n {\n srcPath: '/promote/seo/v1/keyword-research-items',\n destPath: '/v1/keyword-research-items',\n },\n {\n srcPath: '/promote/seo/v1/bulk/keyword-research-items',\n destPath: '/v1/bulk/keyword-research-items',\n },\n {\n srcPath: '/promote/seo/v1/create-content-plan',\n destPath: '/v1/create-content-plan',\n },\n {\n srcPath: '/promote/seo/v1/trigger-content-plan-generation-flow',\n destPath: '/v1/trigger-content-plan-generation-flow',\n },\n {\n srcPath: '/promote/seo/v1/cancel-content-plan-flow',\n destPath: '/v1/cancel-content-plan-flow',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_seo_keyword-research';\n\n/**\n * Retrieves the keyword research behind the site's current content plan.\n *\n * Returns the research produced by the last completed generation. Research\n * from a generation that's still running, or that failed, isn't readable.\n * Poll Get Content Plan Flow until its status is `SUCCESS`, then call this\n * method.\n *\n * The result is scoped to the site rather than to a flow. This method\n * always returns the site's most recent research and can't target an\n * earlier one. If another generation finishes between your trigger and this\n * read, you receive the newer research instead. Compare `keywordResearchId`\n * across reads to detect that the research was replaced.\n *\n * Omit `paging` to return every item in a single response. When `paging` is\n * present, `limit` accepts 1 to 100 and defaults to 50.\n *\n * A site with no keyword research returns a not found error rather than an\n * empty list.\n */\nexport function listKeywordResearchItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __listKeywordResearchItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.content_plan_keyword_research',\n method: 'GET' as any,\n methodFqn:\n 'wix.promote.seo.content.plan.v1.KeywordResearchServiceV1.ListKeywordResearchItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoContentPlanV1KeywordResearchServiceV1Url({\n protoPath: '/v1/content-plan-keyword-research-items',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listKeywordResearchItems;\n}\n\n/**\n * Updates a keyword research item.\n *\n * `fieldMask` is required and must name at least one of `keyword` or\n * `mainKeyword`. Those are the only writable fields, and an omitted or\n * empty mask is rejected rather than treated as a request to write\n * everything.\n *\n * `mainKeyword` only promotes. Set it to `true` to make the item its page's\n * main keyword. Setting it to `false`, or leaving it out, changes nothing,\n * so a main keyword can't be demoted with this method.\n *\n * This method updates an item that already exists. It can't add or delete a\n * keyword.\n *\n * The first write to AI-generated research copies that research instead of\n * changing it, so the response can carry a different `keywordResearchId`.\n * Always send the ID from the most recent response on your next write.\n * Sending the original ID again copies the research again.\n *\n * Changing `keyword` also refreshes that item's `searchVolume` and\n * `competition`, even though the mask doesn't name them.\n *\n * Edits don't survive a later generation. A generation that completes after\n * your edit produces fresh research that replaces the edited copy in every\n * read.\n *\n * To update multiple keyword research items in a single API call, call\n * [Bulk Update Keyword Research Items](https://dev.wix.com/docs/api-reference/business-management/seo/content-plan-keyword-research-v1/bulk-update-keyword-research-items).\n */\nexport function updateKeywordResearchItem(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateKeywordResearchItem({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.content_plan_keyword_research',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.promote.seo.content.plan.v1.KeywordResearchServiceV1.UpdateKeywordResearchItem',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoContentPlanV1KeywordResearchServiceV1Url({\n protoPath: '/v1/keyword-research-items/{item.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __updateKeywordResearchItem;\n}\n\n/**\n * Updates multiple keyword research items.\n *\n * This method has no field mask and writes every field present on each\n * entry. `keyword` and `mainKeyword` remain the only writable fields, and\n * `mainKeyword` only promotes, as it does for a single item. Repeating an\n * item ID within one call is rejected.\n *\n * Validation runs across the whole request before anything is written, so a\n * problem rejects the entire call rather than failing one entry. Every\n * returned entry therefore reports success.\n *\n * A keyword research holds at most 30 keywords, counted after the update.\n * That limit is reached well before the request's own item limit.\n *\n * This method copies AI-generated research the same way a single-item\n * update does, so send the `keywordResearchId` from the response on your\n * next write. Edits don't survive a later generation.\n *\n * To update a single keyword research item, call\n * [Update Keyword Research Item](https://dev.wix.com/docs/api-reference/business-management/seo/content-plan-keyword-research-v1/update-keyword-research-item).\n */\nexport function bulkUpdateKeywordResearchItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateKeywordResearchItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.promote.seo.v1.content_plan_keyword_research',\n method: 'POST' as any,\n methodFqn:\n 'wix.promote.seo.content.plan.v1.KeywordResearchServiceV1.BulkUpdateKeywordResearchItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPromoteSeoContentPlanV1KeywordResearchServiceV1Url({\n protoPath: '/v1/bulk/keyword-research-items/update',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateKeywordResearchItems;\n}\n","import * as ambassadorWixPromoteSeoV1ContentPlanKeywordResearch from './promote-seo-v1-content-plan-keyword-research-keyword-research.http.js';\nimport * as ambassadorWixPromoteSeoV1ContentPlanKeywordResearchTypes from './promote-seo-v1-content-plan-keyword-research-keyword-research.types.js';\nimport * as ambassadorWixPromoteSeoV1ContentPlanKeywordResearchUniversalTypes from './promote-seo-v1-content-plan-keyword-research-keyword-research.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function listKeywordResearchItems(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPromoteSeoV1ContentPlanKeywordResearchUniversalTypes.ListKeywordResearchItemsRequest,\n ambassadorWixPromoteSeoV1ContentPlanKeywordResearchTypes.ListKeywordResearchItemsRequest,\n ambassadorWixPromoteSeoV1ContentPlanKeywordResearchUniversalTypes.ListKeywordResearchItemsResponse,\n ambassadorWixPromoteSeoV1ContentPlanKeywordResearchTypes.ListKeywordResearchItemsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPromoteSeoV1ContentPlanKeywordResearch.listKeywordResearchItems(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/content-plan-keyword-research-items',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateKeywordResearchItem(): __PublicMethodMetaInfo<\n 'PATCH',\n { itemId: string },\n ambassadorWixPromoteSeoV1ContentPlanKeywordResearchUniversalTypes.UpdateKeywordResearchItemRequest,\n ambassadorWixPromoteSeoV1ContentPlanKeywordResearchTypes.UpdateKeywordResearchItemRequest,\n ambassadorWixPromoteSeoV1ContentPlanKeywordResearchUniversalTypes.UpdateKeywordResearchItemResponse,\n ambassadorWixPromoteSeoV1ContentPlanKeywordResearchTypes.UpdateKeywordResearchItemResponse\n> {\n const payload = { item: { id: ':itemId' } } as any;\n\n const getRequestOptions =\n ambassadorWixPromoteSeoV1ContentPlanKeywordResearch.updateKeywordResearchItem(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/keyword-research-items/{item.id}',\n pathParams: { itemId: 'itemId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateKeywordResearchItems(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPromoteSeoV1ContentPlanKeywordResearchUniversalTypes.BulkUpdateKeywordResearchItemsRequest,\n ambassadorWixPromoteSeoV1ContentPlanKeywordResearchTypes.BulkUpdateKeywordResearchItemsRequest,\n ambassadorWixPromoteSeoV1ContentPlanKeywordResearchUniversalTypes.BulkUpdateKeywordResearchItemsResponse,\n ambassadorWixPromoteSeoV1ContentPlanKeywordResearchTypes.BulkUpdateKeywordResearchItemsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPromoteSeoV1ContentPlanKeywordResearch.bulkUpdateKeywordResearchItems(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/keyword-research-items/update',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n KeywordResearch as KeywordResearchOriginal,\n GetKeywordResearchItemsByPageIdRequest as GetKeywordResearchItemsByPageIdRequestOriginal,\n GetKeywordResearchItemsByPageIdResponse as GetKeywordResearchItemsByPageIdResponseOriginal,\n ListKeywordResearchItemsRequest as ListKeywordResearchItemsRequestOriginal,\n CursorPaging as CursorPagingOriginal,\n ListKeywordResearchItemsResponse as ListKeywordResearchItemsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n GetKeywordResearchItemsRequest as GetKeywordResearchItemsRequestOriginal,\n GetKeywordResearchItemsResponse as GetKeywordResearchItemsResponseOriginal,\n GetDraftKeywordResearchItemsRequest as GetDraftKeywordResearchItemsRequestOriginal,\n GetDraftKeywordResearchItemsResponse as GetDraftKeywordResearchItemsResponseOriginal,\n UpdateKeywordResearchItemsRequest as UpdateKeywordResearchItemsRequestOriginal,\n UpdatedKeywordResearch as UpdatedKeywordResearchOriginal,\n DeletedKeywordResearch as DeletedKeywordResearchOriginal,\n AddedKeywordResearch as AddedKeywordResearchOriginal,\n UpdateKeywordResearchItemsResponse as UpdateKeywordResearchItemsResponseOriginal,\n UpdateKeywordResearchItemRequest as UpdateKeywordResearchItemRequestOriginal,\n UpdateKeywordResearchItemResponse as UpdateKeywordResearchItemResponseOriginal,\n BulkUpdateKeywordResearchItemsRequest as BulkUpdateKeywordResearchItemsRequestOriginal,\n BulkUpdateKeywordResearchItemsResponse as BulkUpdateKeywordResearchItemsResponseOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkKeywordResearchItemResult as BulkKeywordResearchItemResultOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n RevertKeywordResearchRequest as RevertKeywordResearchRequestOriginal,\n RevertKeywordResearchResponse as RevertKeywordResearchResponseOriginal,\n DistributeKeywordsToPagesRequest as DistributeKeywordsToPagesRequestOriginal,\n PageEssenceInput as PageEssenceInputOriginal,\n DistributeKeywordsToPagesResponse as DistributeKeywordsToPagesResponseOriginal,\n DistributedKeyword as DistributedKeywordOriginal,\n} from './promote-seo-v1-content-plan-keyword-research-keyword-research.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,6DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACt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eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["listKeywordResearchItems","updateKeywordResearchItem","bulkUpdateKeywordResearchItems"]}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { ListKeywordResearchItemsOptions, ListKeywordResearchItemsResponse, UpdateKeywordResearchItemOptions, UpdateKeywordResearchItemResponse, BulkUpdateKeywordResearchItemsOptions, BulkUpdateKeywordResearchItemsResponse } from './index.typings.js';
|
|
3
|
+
export { AddedKeywordResearch, ApplicationError, BulkActionMetadata, BulkKeywordResearchItemResult, BulkUpdateKeywordResearchItemsRequest, CursorPaging, CursorPagingMetadata, Cursors, DeletedKeywordResearch, DistributeKeywordsToPagesRequest, DistributeKeywordsToPagesResponse, DistributedKeyword, GetDraftKeywordResearchItemsRequest, GetDraftKeywordResearchItemsResponse, GetKeywordResearchItemsByPageIdRequest, GetKeywordResearchItemsByPageIdResponse, GetKeywordResearchItemsRequest, GetKeywordResearchItemsResponse, ItemMetadata, KeywordResearch, ListKeywordResearchItemsRequest, PageEssenceInput, RevertKeywordResearchRequest, RevertKeywordResearchResponse, UpdateKeywordResearchItemRequest, UpdateKeywordResearchItemsRequest, UpdateKeywordResearchItemsResponse, UpdatedKeywordResearch } from './index.typings.js';
|
|
4
|
+
|
|
5
|
+
declare function listKeywordResearchItems$1(httpClient: HttpClient): ListKeywordResearchItemsSignature;
|
|
6
|
+
interface ListKeywordResearchItemsSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the keyword research behind the site's current content plan.
|
|
9
|
+
*
|
|
10
|
+
* Returns the research produced by the last completed generation. Research
|
|
11
|
+
* from a generation that's still running, or that failed, isn't readable.
|
|
12
|
+
* Poll Get Content Plan Flow until its status is `SUCCESS`, then call this
|
|
13
|
+
* method.
|
|
14
|
+
*
|
|
15
|
+
* The result is scoped to the site rather than to a flow. This method
|
|
16
|
+
* always returns the site's most recent research and can't target an
|
|
17
|
+
* earlier one. If another generation finishes between your trigger and this
|
|
18
|
+
* read, you receive the newer research instead. Compare `keywordResearchId`
|
|
19
|
+
* across reads to detect that the research was replaced.
|
|
20
|
+
*
|
|
21
|
+
* Omit `paging` to return every item in a single response. When `paging` is
|
|
22
|
+
* present, `limit` accepts 1 to 100 and defaults to 50.
|
|
23
|
+
*
|
|
24
|
+
* A site with no keyword research returns a not found error rather than an
|
|
25
|
+
* empty list.
|
|
26
|
+
*/
|
|
27
|
+
(options?: ListKeywordResearchItemsOptions): Promise<NonNullablePaths<ListKeywordResearchItemsResponse, `keywordResearchItems`, 2>>;
|
|
28
|
+
}
|
|
29
|
+
declare function updateKeywordResearchItem$1(httpClient: HttpClient): UpdateKeywordResearchItemSignature;
|
|
30
|
+
interface UpdateKeywordResearchItemSignature {
|
|
31
|
+
/**
|
|
32
|
+
* Updates a keyword research item.
|
|
33
|
+
*
|
|
34
|
+
* `fieldMask` is required and must name at least one of `keyword` or
|
|
35
|
+
* `mainKeyword`. Those are the only writable fields, and an omitted or
|
|
36
|
+
* empty mask is rejected rather than treated as a request to write
|
|
37
|
+
* everything.
|
|
38
|
+
*
|
|
39
|
+
* `mainKeyword` only promotes. Set it to `true` to make the item its page's
|
|
40
|
+
* main keyword. Setting it to `false`, or leaving it out, changes nothing,
|
|
41
|
+
* so a main keyword can't be demoted with this method.
|
|
42
|
+
*
|
|
43
|
+
* This method updates an item that already exists. It can't add or delete a
|
|
44
|
+
* keyword.
|
|
45
|
+
*
|
|
46
|
+
* The first write to AI-generated research copies that research instead of
|
|
47
|
+
* changing it, so the response can carry a different `keywordResearchId`.
|
|
48
|
+
* Always send the ID from the most recent response on your next write.
|
|
49
|
+
* Sending the original ID again copies the research again.
|
|
50
|
+
*
|
|
51
|
+
* Changing `keyword` also refreshes that item's `searchVolume` and
|
|
52
|
+
* `competition`, even though the mask doesn't name them.
|
|
53
|
+
*
|
|
54
|
+
* Edits don't survive a later generation. A generation that completes after
|
|
55
|
+
* your edit produces fresh research that replaces the edited copy in every
|
|
56
|
+
* read.
|
|
57
|
+
*
|
|
58
|
+
* To update multiple keyword research items in a single API call, call
|
|
59
|
+
* [Bulk Update Keyword Research Items](https://dev.wix.com/docs/api-reference/business-management/seo/content-plan-keyword-research-v1/bulk-update-keyword-research-items).
|
|
60
|
+
* @param - ID of the keyword research item to update.
|
|
61
|
+
* @param - ID of the keyword research the item belongs to.
|
|
62
|
+
*
|
|
63
|
+
* Use the `keywordResearchId` from your most recent read or write.
|
|
64
|
+
*/
|
|
65
|
+
(_id: string, keywordResearchId: string, options: NonNullablePaths<UpdateKeywordResearchItemOptions, `fieldMask` | `item`, 2>): Promise<UpdateKeywordResearchItemResponse>;
|
|
66
|
+
}
|
|
67
|
+
declare function bulkUpdateKeywordResearchItems$1(httpClient: HttpClient): BulkUpdateKeywordResearchItemsSignature;
|
|
68
|
+
interface BulkUpdateKeywordResearchItemsSignature {
|
|
69
|
+
/**
|
|
70
|
+
* Updates multiple keyword research items.
|
|
71
|
+
*
|
|
72
|
+
* This method has no field mask and writes every field present on each
|
|
73
|
+
* entry. `keyword` and `mainKeyword` remain the only writable fields, and
|
|
74
|
+
* `mainKeyword` only promotes, as it does for a single item. Repeating an
|
|
75
|
+
* item ID within one call is rejected.
|
|
76
|
+
*
|
|
77
|
+
* Validation runs across the whole request before anything is written, so a
|
|
78
|
+
* problem rejects the entire call rather than failing one entry. Every
|
|
79
|
+
* returned entry therefore reports success.
|
|
80
|
+
*
|
|
81
|
+
* A keyword research holds at most 30 keywords, counted after the update.
|
|
82
|
+
* That limit is reached well before the request's own item limit.
|
|
83
|
+
*
|
|
84
|
+
* This method copies AI-generated research the same way a single-item
|
|
85
|
+
* update does, so send the `keywordResearchId` from the response on your
|
|
86
|
+
* next write. Edits don't survive a later generation.
|
|
87
|
+
*
|
|
88
|
+
* To update a single keyword research item, call
|
|
89
|
+
* [Update Keyword Research Item](https://dev.wix.com/docs/api-reference/business-management/seo/content-plan-keyword-research-v1/update-keyword-research-item).
|
|
90
|
+
* @param - ID of the keyword research the items belong to.
|
|
91
|
+
*
|
|
92
|
+
* Use the `keywordResearchId` from your most recent read or write.
|
|
93
|
+
*/
|
|
94
|
+
(keywordResearchId: string, options?: BulkUpdateKeywordResearchItemsOptions): Promise<NonNullablePaths<BulkUpdateKeywordResearchItemsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures` | `keywordResearchItems`, 6>>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
declare const listKeywordResearchItems: MaybeContext<BuildRESTFunction<typeof listKeywordResearchItems$1> & typeof listKeywordResearchItems$1>;
|
|
98
|
+
declare const updateKeywordResearchItem: MaybeContext<BuildRESTFunction<typeof updateKeywordResearchItem$1> & typeof updateKeywordResearchItem$1>;
|
|
99
|
+
declare const bulkUpdateKeywordResearchItems: MaybeContext<BuildRESTFunction<typeof bulkUpdateKeywordResearchItems$1> & typeof bulkUpdateKeywordResearchItems$1>;
|
|
100
|
+
|
|
101
|
+
export { BulkUpdateKeywordResearchItemsOptions, BulkUpdateKeywordResearchItemsResponse, ListKeywordResearchItemsOptions, ListKeywordResearchItemsResponse, UpdateKeywordResearchItemOptions, UpdateKeywordResearchItemResponse, bulkUpdateKeywordResearchItems, listKeywordResearchItems, updateKeywordResearchItem };
|