@teemill/website 0.31.5 → 0.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -0
- package/README.md +7 -2
- package/api.ts +285 -1
- package/base.ts +1 -1
- package/common.ts +15 -3
- package/configuration.ts +1 -1
- package/dist/api.d.ts +159 -1
- package/dist/api.js +201 -3
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +6 -1
- package/dist/common.js +15 -4
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +159 -1
- package/dist/esm/api.js +195 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +6 -1
- package/dist/esm/common.js +13 -3
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/KeyphraseOpportunitiesApi.md +130 -0
- package/docs/KeyphraseOpportunitiesResponse.md +24 -0
- package/docs/KeyphraseOpportunitiesResponseMeta.md +23 -0
- package/docs/KeyphraseOpportunity.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website
|
|
5
5
|
* Manage your PodOS Website
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.33.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1223,6 +1223,200 @@ export class FooterApi extends BaseAPI {
|
|
|
1223
1223
|
return FooterApiFp(this.configuration).updateFooter(requestParameters.project, requestParameters.updateFooterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
|
+
/**
|
|
1227
|
+
* KeyphraseOpportunitiesApi - axios parameter creator
|
|
1228
|
+
*/
|
|
1229
|
+
export const KeyphraseOpportunitiesApiAxiosParamCreator = function (configuration) {
|
|
1230
|
+
return {
|
|
1231
|
+
/**
|
|
1232
|
+
* Remove a key phrase opportunity from the store.
|
|
1233
|
+
* @summary Delete key phrase opportunity
|
|
1234
|
+
* @param {string} project What project it is
|
|
1235
|
+
* @param {string} keyphraseOpportunityId Key phrase opportunity\'s unique identifier
|
|
1236
|
+
* @param {*} [options] Override http request option.
|
|
1237
|
+
* @throws {RequiredError}
|
|
1238
|
+
*/
|
|
1239
|
+
deleteKeyphraseOpportunity: (project_1, keyphraseOpportunityId_1, ...args_1) => __awaiter(this, [project_1, keyphraseOpportunityId_1, ...args_1], void 0, function* (project, keyphraseOpportunityId, options = {}) {
|
|
1240
|
+
// verify required parameter 'project' is not null or undefined
|
|
1241
|
+
assertParamExists('deleteKeyphraseOpportunity', 'project', project);
|
|
1242
|
+
// verify required parameter 'keyphraseOpportunityId' is not null or undefined
|
|
1243
|
+
assertParamExists('deleteKeyphraseOpportunity', 'keyphraseOpportunityId', keyphraseOpportunityId);
|
|
1244
|
+
const localVarPath = `/v1/website/keyphrase-opportunities/{keyphraseOpportunityId}`
|
|
1245
|
+
.replace('{keyphraseOpportunityId}', encodeURIComponent(String(keyphraseOpportunityId)));
|
|
1246
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1247
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1248
|
+
let baseOptions;
|
|
1249
|
+
if (configuration) {
|
|
1250
|
+
baseOptions = configuration.baseOptions;
|
|
1251
|
+
}
|
|
1252
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1253
|
+
const localVarHeaderParameter = {};
|
|
1254
|
+
const localVarQueryParameter = {};
|
|
1255
|
+
// authentication session-oauth required
|
|
1256
|
+
// oauth required
|
|
1257
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1258
|
+
// authentication api-key required
|
|
1259
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1260
|
+
if (project !== undefined) {
|
|
1261
|
+
localVarQueryParameter['project'] = project;
|
|
1262
|
+
}
|
|
1263
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1264
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1265
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1266
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1267
|
+
return {
|
|
1268
|
+
url: toPathString(localVarUrlObj),
|
|
1269
|
+
options: localVarRequestOptions,
|
|
1270
|
+
};
|
|
1271
|
+
}),
|
|
1272
|
+
/**
|
|
1273
|
+
* List the key phrases saved as opportunities for a store that are not attached to content.
|
|
1274
|
+
* @summary List key phrase opportunities
|
|
1275
|
+
* @param {string} project What project it is
|
|
1276
|
+
* @param {number} [pageToken] Page reference token
|
|
1277
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1278
|
+
* @param {string} [search] Search term to filter results
|
|
1279
|
+
* @param {*} [options] Override http request option.
|
|
1280
|
+
* @throws {RequiredError}
|
|
1281
|
+
*/
|
|
1282
|
+
listKeyphraseOpportunities: (project_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, options = {}) {
|
|
1283
|
+
// verify required parameter 'project' is not null or undefined
|
|
1284
|
+
assertParamExists('listKeyphraseOpportunities', 'project', project);
|
|
1285
|
+
const localVarPath = `/v1/website/keyphrase-opportunities`;
|
|
1286
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1287
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1288
|
+
let baseOptions;
|
|
1289
|
+
if (configuration) {
|
|
1290
|
+
baseOptions = configuration.baseOptions;
|
|
1291
|
+
}
|
|
1292
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1293
|
+
const localVarHeaderParameter = {};
|
|
1294
|
+
const localVarQueryParameter = {};
|
|
1295
|
+
// authentication session-oauth required
|
|
1296
|
+
// oauth required
|
|
1297
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1298
|
+
// authentication api-key required
|
|
1299
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1300
|
+
if (project !== undefined) {
|
|
1301
|
+
localVarQueryParameter['project'] = project;
|
|
1302
|
+
}
|
|
1303
|
+
if (pageToken !== undefined) {
|
|
1304
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
1305
|
+
}
|
|
1306
|
+
if (pageSize !== undefined) {
|
|
1307
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
1308
|
+
}
|
|
1309
|
+
if (search !== undefined) {
|
|
1310
|
+
localVarQueryParameter['search'] = search;
|
|
1311
|
+
}
|
|
1312
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1313
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1314
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1315
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1316
|
+
return {
|
|
1317
|
+
url: toPathString(localVarUrlObj),
|
|
1318
|
+
options: localVarRequestOptions,
|
|
1319
|
+
};
|
|
1320
|
+
}),
|
|
1321
|
+
};
|
|
1322
|
+
};
|
|
1323
|
+
/**
|
|
1324
|
+
* KeyphraseOpportunitiesApi - functional programming interface
|
|
1325
|
+
*/
|
|
1326
|
+
export const KeyphraseOpportunitiesApiFp = function (configuration) {
|
|
1327
|
+
const localVarAxiosParamCreator = KeyphraseOpportunitiesApiAxiosParamCreator(configuration);
|
|
1328
|
+
return {
|
|
1329
|
+
/**
|
|
1330
|
+
* Remove a key phrase opportunity from the store.
|
|
1331
|
+
* @summary Delete key phrase opportunity
|
|
1332
|
+
* @param {string} project What project it is
|
|
1333
|
+
* @param {string} keyphraseOpportunityId Key phrase opportunity\'s unique identifier
|
|
1334
|
+
* @param {*} [options] Override http request option.
|
|
1335
|
+
* @throws {RequiredError}
|
|
1336
|
+
*/
|
|
1337
|
+
deleteKeyphraseOpportunity(project, keyphraseOpportunityId, options) {
|
|
1338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1339
|
+
var _a, _b, _c;
|
|
1340
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteKeyphraseOpportunity(project, keyphraseOpportunityId, options);
|
|
1341
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1342
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['KeyphraseOpportunitiesApi.deleteKeyphraseOpportunity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1343
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1344
|
+
});
|
|
1345
|
+
},
|
|
1346
|
+
/**
|
|
1347
|
+
* List the key phrases saved as opportunities for a store that are not attached to content.
|
|
1348
|
+
* @summary List key phrase opportunities
|
|
1349
|
+
* @param {string} project What project it is
|
|
1350
|
+
* @param {number} [pageToken] Page reference token
|
|
1351
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1352
|
+
* @param {string} [search] Search term to filter results
|
|
1353
|
+
* @param {*} [options] Override http request option.
|
|
1354
|
+
* @throws {RequiredError}
|
|
1355
|
+
*/
|
|
1356
|
+
listKeyphraseOpportunities(project, pageToken, pageSize, search, options) {
|
|
1357
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1358
|
+
var _a, _b, _c;
|
|
1359
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listKeyphraseOpportunities(project, pageToken, pageSize, search, options);
|
|
1360
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1361
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['KeyphraseOpportunitiesApi.listKeyphraseOpportunities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1362
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1363
|
+
});
|
|
1364
|
+
},
|
|
1365
|
+
};
|
|
1366
|
+
};
|
|
1367
|
+
/**
|
|
1368
|
+
* KeyphraseOpportunitiesApi - factory interface
|
|
1369
|
+
*/
|
|
1370
|
+
export const KeyphraseOpportunitiesApiFactory = function (configuration, basePath, axios) {
|
|
1371
|
+
const localVarFp = KeyphraseOpportunitiesApiFp(configuration);
|
|
1372
|
+
return {
|
|
1373
|
+
/**
|
|
1374
|
+
* Remove a key phrase opportunity from the store.
|
|
1375
|
+
* @summary Delete key phrase opportunity
|
|
1376
|
+
* @param {KeyphraseOpportunitiesApiDeleteKeyphraseOpportunityRequest} requestParameters Request parameters.
|
|
1377
|
+
* @param {*} [options] Override http request option.
|
|
1378
|
+
* @throws {RequiredError}
|
|
1379
|
+
*/
|
|
1380
|
+
deleteKeyphraseOpportunity(requestParameters, options) {
|
|
1381
|
+
return localVarFp.deleteKeyphraseOpportunity(requestParameters.project, requestParameters.keyphraseOpportunityId, options).then((request) => request(axios, basePath));
|
|
1382
|
+
},
|
|
1383
|
+
/**
|
|
1384
|
+
* List the key phrases saved as opportunities for a store that are not attached to content.
|
|
1385
|
+
* @summary List key phrase opportunities
|
|
1386
|
+
* @param {KeyphraseOpportunitiesApiListKeyphraseOpportunitiesRequest} requestParameters Request parameters.
|
|
1387
|
+
* @param {*} [options] Override http request option.
|
|
1388
|
+
* @throws {RequiredError}
|
|
1389
|
+
*/
|
|
1390
|
+
listKeyphraseOpportunities(requestParameters, options) {
|
|
1391
|
+
return localVarFp.listKeyphraseOpportunities(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
1392
|
+
},
|
|
1393
|
+
};
|
|
1394
|
+
};
|
|
1395
|
+
/**
|
|
1396
|
+
* KeyphraseOpportunitiesApi - object-oriented interface
|
|
1397
|
+
*/
|
|
1398
|
+
export class KeyphraseOpportunitiesApi extends BaseAPI {
|
|
1399
|
+
/**
|
|
1400
|
+
* Remove a key phrase opportunity from the store.
|
|
1401
|
+
* @summary Delete key phrase opportunity
|
|
1402
|
+
* @param {KeyphraseOpportunitiesApiDeleteKeyphraseOpportunityRequest} requestParameters Request parameters.
|
|
1403
|
+
* @param {*} [options] Override http request option.
|
|
1404
|
+
* @throws {RequiredError}
|
|
1405
|
+
*/
|
|
1406
|
+
deleteKeyphraseOpportunity(requestParameters, options) {
|
|
1407
|
+
return KeyphraseOpportunitiesApiFp(this.configuration).deleteKeyphraseOpportunity(requestParameters.project, requestParameters.keyphraseOpportunityId, options).then((request) => request(this.axios, this.basePath));
|
|
1408
|
+
}
|
|
1409
|
+
/**
|
|
1410
|
+
* List the key phrases saved as opportunities for a store that are not attached to content.
|
|
1411
|
+
* @summary List key phrase opportunities
|
|
1412
|
+
* @param {KeyphraseOpportunitiesApiListKeyphraseOpportunitiesRequest} requestParameters Request parameters.
|
|
1413
|
+
* @param {*} [options] Override http request option.
|
|
1414
|
+
* @throws {RequiredError}
|
|
1415
|
+
*/
|
|
1416
|
+
listKeyphraseOpportunities(requestParameters, options) {
|
|
1417
|
+
return KeyphraseOpportunitiesApiFp(this.configuration).listKeyphraseOpportunities(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1226
1420
|
/**
|
|
1227
1421
|
* MenuApi - axios parameter creator
|
|
1228
1422
|
*/
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website
|
|
3
3
|
* Manage your PodOS Website
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.33.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -48,6 +48,11 @@ export declare const setOAuthToObject: (object: any, name: string, scopes: strin
|
|
|
48
48
|
* @export
|
|
49
49
|
*/
|
|
50
50
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const replaceWithSerializableTypeIfNeeded: (_key: string, value: unknown) => unknown;
|
|
51
56
|
/**
|
|
52
57
|
*
|
|
53
58
|
* @export
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website
|
|
5
5
|
* Manage your PodOS Website
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.33.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -91,7 +91,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
91
91
|
if (parameter == null)
|
|
92
92
|
return;
|
|
93
93
|
if (typeof parameter === "object") {
|
|
94
|
-
if (Array.isArray(parameter)) {
|
|
94
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
95
95
|
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key !== '' ? `${key}[]` : key));
|
|
96
96
|
}
|
|
97
97
|
else {
|
|
@@ -116,6 +116,16 @@ export const setSearchParams = function (url, ...objects) {
|
|
|
116
116
|
setFlattenedQueryParams(searchParams, objects);
|
|
117
117
|
url.search = searchParams.toString();
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* JSON.stringify replacer used by generated API code (e.g. serializes Set as Array).
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
123
|
+
export const replaceWithSerializableTypeIfNeeded = function (_key, value) {
|
|
124
|
+
if (value instanceof Set) {
|
|
125
|
+
return Array.from(value);
|
|
126
|
+
}
|
|
127
|
+
return value;
|
|
128
|
+
};
|
|
119
129
|
/**
|
|
120
130
|
*
|
|
121
131
|
* @export
|
|
@@ -126,7 +136,7 @@ export const serializeDataIfNeeded = function (value, requestOptions, configurat
|
|
|
126
136
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
127
137
|
: nonString;
|
|
128
138
|
return needsSerialization
|
|
129
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
139
|
+
? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
|
|
130
140
|
: (value || "");
|
|
131
141
|
};
|
|
132
142
|
/**
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# KeyphraseOpportunitiesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.localhost:8080*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**deleteKeyphraseOpportunity**](#deletekeyphraseopportunity) | **DELETE** /v1/website/keyphrase-opportunities/{keyphraseOpportunityId} | Delete key phrase opportunity|
|
|
8
|
+
|[**listKeyphraseOpportunities**](#listkeyphraseopportunities) | **GET** /v1/website/keyphrase-opportunities | List key phrase opportunities|
|
|
9
|
+
|
|
10
|
+
# **deleteKeyphraseOpportunity**
|
|
11
|
+
> deleteKeyphraseOpportunity()
|
|
12
|
+
|
|
13
|
+
Remove a key phrase opportunity from the store.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
KeyphraseOpportunitiesApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from '@teemill/website';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new KeyphraseOpportunitiesApi(configuration);
|
|
25
|
+
|
|
26
|
+
let project: string; //What project it is (default to undefined)
|
|
27
|
+
let keyphraseOpportunityId: string; //Key phrase opportunity\'s unique identifier (default to undefined)
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.deleteKeyphraseOpportunity(
|
|
30
|
+
project,
|
|
31
|
+
keyphraseOpportunityId
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
40
|
+
| **keyphraseOpportunityId** | [**string**] | Key phrase opportunity\'s unique identifier | defaults to undefined|
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
void (empty response body)
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: Not defined
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**204** | Key phrase opportunity deleted | - |
|
|
61
|
+
|**401** | Not authorised to access this resource | - |
|
|
62
|
+
|**403** | Refuse to authorize | - |
|
|
63
|
+
|**404** | Resource not found | - |
|
|
64
|
+
|**500** | Unknown server error | - |
|
|
65
|
+
|
|
66
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
67
|
+
|
|
68
|
+
# **listKeyphraseOpportunities**
|
|
69
|
+
> KeyphraseOpportunitiesResponse listKeyphraseOpportunities()
|
|
70
|
+
|
|
71
|
+
List the key phrases saved as opportunities for a store that are not attached to content.
|
|
72
|
+
|
|
73
|
+
### Example
|
|
74
|
+
|
|
75
|
+
```typescript
|
|
76
|
+
import {
|
|
77
|
+
KeyphraseOpportunitiesApi,
|
|
78
|
+
Configuration
|
|
79
|
+
} from '@teemill/website';
|
|
80
|
+
|
|
81
|
+
const configuration = new Configuration();
|
|
82
|
+
const apiInstance = new KeyphraseOpportunitiesApi(configuration);
|
|
83
|
+
|
|
84
|
+
let project: string; //What project it is (default to undefined)
|
|
85
|
+
let pageToken: number; //Page reference token (optional) (default to 1)
|
|
86
|
+
let pageSize: number; //Max page size. This is the maximum page size that will be returned, but it might be smaller. (optional) (default to 100)
|
|
87
|
+
let search: string; //Search term to filter results (optional) (default to undefined)
|
|
88
|
+
|
|
89
|
+
const { status, data } = await apiInstance.listKeyphraseOpportunities(
|
|
90
|
+
project,
|
|
91
|
+
pageToken,
|
|
92
|
+
pageSize,
|
|
93
|
+
search
|
|
94
|
+
);
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Parameters
|
|
98
|
+
|
|
99
|
+
|Name | Type | Description | Notes|
|
|
100
|
+
|------------- | ------------- | ------------- | -------------|
|
|
101
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
102
|
+
| **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
|
|
103
|
+
| **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
|
|
104
|
+
| **search** | [**string**] | Search term to filter results | (optional) defaults to undefined|
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### Return type
|
|
108
|
+
|
|
109
|
+
**KeyphraseOpportunitiesResponse**
|
|
110
|
+
|
|
111
|
+
### Authorization
|
|
112
|
+
|
|
113
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
114
|
+
|
|
115
|
+
### HTTP request headers
|
|
116
|
+
|
|
117
|
+
- **Content-Type**: Not defined
|
|
118
|
+
- **Accept**: application/json
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
### HTTP response details
|
|
122
|
+
| Status code | Description | Response headers |
|
|
123
|
+
|-------------|-------------|------------------|
|
|
124
|
+
|**200** | A list of key phrase opportunities saved for the store that are not attached to content. | - |
|
|
125
|
+
|**401** | Not authorised to access this resource | - |
|
|
126
|
+
|**403** | Refuse to authorize | - |
|
|
127
|
+
|**500** | Unknown server error | - |
|
|
128
|
+
|
|
129
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
130
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# KeyphraseOpportunitiesResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**keyphraseOpportunities** | [**Array<KeyphraseOpportunity>**](KeyphraseOpportunity.md) | | [default to undefined]
|
|
9
|
+
**meta** | [**KeyphraseOpportunitiesResponseMeta**](KeyphraseOpportunitiesResponseMeta.md) | | [default to undefined]
|
|
10
|
+
**nextPageToken** | **number** | The token referencing the next page number | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { KeyphraseOpportunitiesResponse } from '@teemill/website';
|
|
16
|
+
|
|
17
|
+
const instance: KeyphraseOpportunitiesResponse = {
|
|
18
|
+
keyphraseOpportunities,
|
|
19
|
+
meta,
|
|
20
|
+
nextPageToken,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# KeyphraseOpportunitiesResponseMeta
|
|
2
|
+
|
|
3
|
+
Object containing metadata about the keyphrase opportunities list.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**totalPhrases** | **number** | Total number of unique keyphrases stored against the project. | [default to undefined]
|
|
10
|
+
**totalMonthlyVolume** | **number** | Combined monthly volume of all keyphrases stored against the project. | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { KeyphraseOpportunitiesResponseMeta } from '@teemill/website';
|
|
16
|
+
|
|
17
|
+
const instance: KeyphraseOpportunitiesResponseMeta = {
|
|
18
|
+
totalPhrases,
|
|
19
|
+
totalMonthlyVolume,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# KeyphraseOpportunity
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**phrase** | **string** | The keyphrase that has been identified as an opportunity | [default to undefined]
|
|
10
|
+
**monthlyVolume** | **number** | Monthly search volume for the keyphrase | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { KeyphraseOpportunity } from '@teemill/website';
|
|
16
|
+
|
|
17
|
+
const instance: KeyphraseOpportunity = {
|
|
18
|
+
id,
|
|
19
|
+
phrase,
|
|
20
|
+
monthlyVolume,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/index.ts
CHANGED