@teemill/website 0.35.1 → 0.36.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/README.md +3 -2
- package/api.ts +99 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +48 -1
- package/dist/api.js +79 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +48 -1
- package/dist/esm/api.js +79 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- 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 +60 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/website@0.
|
|
1
|
+
## @teemill/website@0.36.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/website@0.
|
|
39
|
+
npm install @teemill/website@0.36.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -65,6 +65,7 @@ Class | Method | HTTP request | Description
|
|
|
65
65
|
*FooterApi* | [**updateFooter**](docs/FooterApi.md#updatefooter) | **PUT** /v1/website/footer | Update footer
|
|
66
66
|
*KeyphraseOpportunitiesApi* | [**deleteKeyphraseOpportunity**](docs/KeyphraseOpportunitiesApi.md#deletekeyphraseopportunity) | **DELETE** /v1/website/keyphrase-opportunities/{keyphraseOpportunityId} | Delete keyphrase opportunity
|
|
67
67
|
*KeyphraseOpportunitiesApi* | [**listKeyphraseOpportunities**](docs/KeyphraseOpportunitiesApi.md#listkeyphraseopportunities) | **GET** /v1/website/keyphrase-opportunities | List keyphrase opportunities
|
|
68
|
+
*KeyphraseOpportunitiesApi* | [**unassignKeyphraseOpportunity**](docs/KeyphraseOpportunitiesApi.md#unassignkeyphraseopportunity) | **POST** /v1/website/keyphrase-opportunities/{keyphraseOpportunityId}/unassign | Unassign keyphrase opportunity
|
|
68
69
|
*MenuApi* | [**getMenu**](docs/MenuApi.md#getmenu) | **GET** /v1/website/menu | Get menu
|
|
69
70
|
*MenuApi* | [**updateMenu**](docs/MenuApi.md#updatemenu) | **PUT** /v1/website/menu | Update menu
|
|
70
71
|
*PagesApi* | [**exportPages**](docs/PagesApi.md#exportpages) | **GET** /v1/website/pages/export | Export pages
|
package/api.ts
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.36.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2631,6 +2631,54 @@ export const KeyphraseOpportunitiesApiAxiosParamCreator = function (configuratio
|
|
|
2631
2631
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2632
2632
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2633
2633
|
|
|
2634
|
+
return {
|
|
2635
|
+
url: toPathString(localVarUrlObj),
|
|
2636
|
+
options: localVarRequestOptions,
|
|
2637
|
+
};
|
|
2638
|
+
},
|
|
2639
|
+
/**
|
|
2640
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
2641
|
+
* @summary Unassign keyphrase opportunity
|
|
2642
|
+
* @param {string} project What project it is
|
|
2643
|
+
* @param {string} keyphraseOpportunityId Keyphrase opportunity\'s unique identifier
|
|
2644
|
+
* @param {*} [options] Override http request option.
|
|
2645
|
+
* @throws {RequiredError}
|
|
2646
|
+
*/
|
|
2647
|
+
unassignKeyphraseOpportunity: async (project: string, keyphraseOpportunityId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2648
|
+
// verify required parameter 'project' is not null or undefined
|
|
2649
|
+
assertParamExists('unassignKeyphraseOpportunity', 'project', project)
|
|
2650
|
+
// verify required parameter 'keyphraseOpportunityId' is not null or undefined
|
|
2651
|
+
assertParamExists('unassignKeyphraseOpportunity', 'keyphraseOpportunityId', keyphraseOpportunityId)
|
|
2652
|
+
const localVarPath = `/v1/website/keyphrase-opportunities/{keyphraseOpportunityId}/unassign`
|
|
2653
|
+
.replace('{keyphraseOpportunityId}', encodeURIComponent(String(keyphraseOpportunityId)));
|
|
2654
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2655
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2656
|
+
let baseOptions;
|
|
2657
|
+
if (configuration) {
|
|
2658
|
+
baseOptions = configuration.baseOptions;
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2662
|
+
const localVarHeaderParameter = {} as any;
|
|
2663
|
+
const localVarQueryParameter = {} as any;
|
|
2664
|
+
|
|
2665
|
+
// authentication session-oauth required
|
|
2666
|
+
// oauth required
|
|
2667
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
2668
|
+
|
|
2669
|
+
// authentication api-key required
|
|
2670
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2671
|
+
|
|
2672
|
+
if (project !== undefined) {
|
|
2673
|
+
localVarQueryParameter['project'] = project;
|
|
2674
|
+
}
|
|
2675
|
+
|
|
2676
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2677
|
+
|
|
2678
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2679
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2680
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2681
|
+
|
|
2634
2682
|
return {
|
|
2635
2683
|
url: toPathString(localVarUrlObj),
|
|
2636
2684
|
options: localVarRequestOptions,
|
|
@@ -2675,6 +2723,20 @@ export const KeyphraseOpportunitiesApiFp = function(configuration?: Configuratio
|
|
|
2675
2723
|
const localVarOperationServerBasePath = operationServerMap['KeyphraseOpportunitiesApi.listKeyphraseOpportunities']?.[localVarOperationServerIndex]?.url;
|
|
2676
2724
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2677
2725
|
},
|
|
2726
|
+
/**
|
|
2727
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
2728
|
+
* @summary Unassign keyphrase opportunity
|
|
2729
|
+
* @param {string} project What project it is
|
|
2730
|
+
* @param {string} keyphraseOpportunityId Keyphrase opportunity\'s unique identifier
|
|
2731
|
+
* @param {*} [options] Override http request option.
|
|
2732
|
+
* @throws {RequiredError}
|
|
2733
|
+
*/
|
|
2734
|
+
async unassignKeyphraseOpportunity(project: string, keyphraseOpportunityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2735
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unassignKeyphraseOpportunity(project, keyphraseOpportunityId, options);
|
|
2736
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2737
|
+
const localVarOperationServerBasePath = operationServerMap['KeyphraseOpportunitiesApi.unassignKeyphraseOpportunity']?.[localVarOperationServerIndex]?.url;
|
|
2738
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2739
|
+
},
|
|
2678
2740
|
}
|
|
2679
2741
|
};
|
|
2680
2742
|
|
|
@@ -2704,6 +2766,16 @@ export const KeyphraseOpportunitiesApiFactory = function (configuration?: Config
|
|
|
2704
2766
|
listKeyphraseOpportunities(requestParameters: KeyphraseOpportunitiesApiListKeyphraseOpportunitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<KeyphraseOpportunitiesResponse> {
|
|
2705
2767
|
return localVarFp.listKeyphraseOpportunities(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
2706
2768
|
},
|
|
2769
|
+
/**
|
|
2770
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
2771
|
+
* @summary Unassign keyphrase opportunity
|
|
2772
|
+
* @param {KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest} requestParameters Request parameters.
|
|
2773
|
+
* @param {*} [options] Override http request option.
|
|
2774
|
+
* @throws {RequiredError}
|
|
2775
|
+
*/
|
|
2776
|
+
unassignKeyphraseOpportunity(requestParameters: KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2777
|
+
return localVarFp.unassignKeyphraseOpportunity(requestParameters.project, requestParameters.keyphraseOpportunityId, options).then((request) => request(axios, basePath));
|
|
2778
|
+
},
|
|
2707
2779
|
};
|
|
2708
2780
|
};
|
|
2709
2781
|
|
|
@@ -2747,6 +2819,21 @@ export interface KeyphraseOpportunitiesApiListKeyphraseOpportunitiesRequest {
|
|
|
2747
2819
|
readonly search?: string
|
|
2748
2820
|
}
|
|
2749
2821
|
|
|
2822
|
+
/**
|
|
2823
|
+
* Request parameters for unassignKeyphraseOpportunity operation in KeyphraseOpportunitiesApi.
|
|
2824
|
+
*/
|
|
2825
|
+
export interface KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest {
|
|
2826
|
+
/**
|
|
2827
|
+
* What project it is
|
|
2828
|
+
*/
|
|
2829
|
+
readonly project: string
|
|
2830
|
+
|
|
2831
|
+
/**
|
|
2832
|
+
* Keyphrase opportunity\'s unique identifier
|
|
2833
|
+
*/
|
|
2834
|
+
readonly keyphraseOpportunityId: string
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2750
2837
|
/**
|
|
2751
2838
|
* KeyphraseOpportunitiesApi - object-oriented interface
|
|
2752
2839
|
*/
|
|
@@ -2772,6 +2859,17 @@ export class KeyphraseOpportunitiesApi extends BaseAPI {
|
|
|
2772
2859
|
public listKeyphraseOpportunities(requestParameters: KeyphraseOpportunitiesApiListKeyphraseOpportunitiesRequest, options?: RawAxiosRequestConfig) {
|
|
2773
2860
|
return KeyphraseOpportunitiesApiFp(this.configuration).listKeyphraseOpportunities(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
2774
2861
|
}
|
|
2862
|
+
|
|
2863
|
+
/**
|
|
2864
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
2865
|
+
* @summary Unassign keyphrase opportunity
|
|
2866
|
+
* @param {KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest} requestParameters Request parameters.
|
|
2867
|
+
* @param {*} [options] Override http request option.
|
|
2868
|
+
* @throws {RequiredError}
|
|
2869
|
+
*/
|
|
2870
|
+
public unassignKeyphraseOpportunity(requestParameters: KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest, options?: RawAxiosRequestConfig) {
|
|
2871
|
+
return KeyphraseOpportunitiesApiFp(this.configuration).unassignKeyphraseOpportunity(requestParameters.project, requestParameters.keyphraseOpportunityId, options).then((request) => request(this.axios, this.basePath));
|
|
2872
|
+
}
|
|
2775
2873
|
}
|
|
2776
2874
|
|
|
2777
2875
|
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/api.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.36.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1793,6 +1793,15 @@ export declare const KeyphraseOpportunitiesApiAxiosParamCreator: (configuration?
|
|
|
1793
1793
|
* @throws {RequiredError}
|
|
1794
1794
|
*/
|
|
1795
1795
|
listKeyphraseOpportunities: (project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1796
|
+
/**
|
|
1797
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
1798
|
+
* @summary Unassign keyphrase opportunity
|
|
1799
|
+
* @param {string} project What project it is
|
|
1800
|
+
* @param {string} keyphraseOpportunityId Keyphrase opportunity\'s unique identifier
|
|
1801
|
+
* @param {*} [options] Override http request option.
|
|
1802
|
+
* @throws {RequiredError}
|
|
1803
|
+
*/
|
|
1804
|
+
unassignKeyphraseOpportunity: (project: string, keyphraseOpportunityId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1796
1805
|
};
|
|
1797
1806
|
/**
|
|
1798
1807
|
* KeyphraseOpportunitiesApi - functional programming interface
|
|
@@ -1818,6 +1827,15 @@ export declare const KeyphraseOpportunitiesApiFp: (configuration?: Configuration
|
|
|
1818
1827
|
* @throws {RequiredError}
|
|
1819
1828
|
*/
|
|
1820
1829
|
listKeyphraseOpportunities(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<KeyphraseOpportunitiesResponse>>;
|
|
1830
|
+
/**
|
|
1831
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
1832
|
+
* @summary Unassign keyphrase opportunity
|
|
1833
|
+
* @param {string} project What project it is
|
|
1834
|
+
* @param {string} keyphraseOpportunityId Keyphrase opportunity\'s unique identifier
|
|
1835
|
+
* @param {*} [options] Override http request option.
|
|
1836
|
+
* @throws {RequiredError}
|
|
1837
|
+
*/
|
|
1838
|
+
unassignKeyphraseOpportunity(project: string, keyphraseOpportunityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1821
1839
|
};
|
|
1822
1840
|
/**
|
|
1823
1841
|
* KeyphraseOpportunitiesApi - factory interface
|
|
@@ -1839,6 +1857,14 @@ export declare const KeyphraseOpportunitiesApiFactory: (configuration?: Configur
|
|
|
1839
1857
|
* @throws {RequiredError}
|
|
1840
1858
|
*/
|
|
1841
1859
|
listKeyphraseOpportunities(requestParameters: KeyphraseOpportunitiesApiListKeyphraseOpportunitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<KeyphraseOpportunitiesResponse>;
|
|
1860
|
+
/**
|
|
1861
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
1862
|
+
* @summary Unassign keyphrase opportunity
|
|
1863
|
+
* @param {KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest} requestParameters Request parameters.
|
|
1864
|
+
* @param {*} [options] Override http request option.
|
|
1865
|
+
* @throws {RequiredError}
|
|
1866
|
+
*/
|
|
1867
|
+
unassignKeyphraseOpportunity(requestParameters: KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1842
1868
|
};
|
|
1843
1869
|
/**
|
|
1844
1870
|
* Request parameters for deleteKeyphraseOpportunity operation in KeyphraseOpportunitiesApi.
|
|
@@ -1874,6 +1900,19 @@ export interface KeyphraseOpportunitiesApiListKeyphraseOpportunitiesRequest {
|
|
|
1874
1900
|
*/
|
|
1875
1901
|
readonly search?: string;
|
|
1876
1902
|
}
|
|
1903
|
+
/**
|
|
1904
|
+
* Request parameters for unassignKeyphraseOpportunity operation in KeyphraseOpportunitiesApi.
|
|
1905
|
+
*/
|
|
1906
|
+
export interface KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest {
|
|
1907
|
+
/**
|
|
1908
|
+
* What project it is
|
|
1909
|
+
*/
|
|
1910
|
+
readonly project: string;
|
|
1911
|
+
/**
|
|
1912
|
+
* Keyphrase opportunity\'s unique identifier
|
|
1913
|
+
*/
|
|
1914
|
+
readonly keyphraseOpportunityId: string;
|
|
1915
|
+
}
|
|
1877
1916
|
/**
|
|
1878
1917
|
* KeyphraseOpportunitiesApi - object-oriented interface
|
|
1879
1918
|
*/
|
|
@@ -1894,6 +1933,14 @@ export declare class KeyphraseOpportunitiesApi extends BaseAPI {
|
|
|
1894
1933
|
* @throws {RequiredError}
|
|
1895
1934
|
*/
|
|
1896
1935
|
listKeyphraseOpportunities(requestParameters: KeyphraseOpportunitiesApiListKeyphraseOpportunitiesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<KeyphraseOpportunitiesResponse, any, {}>>;
|
|
1936
|
+
/**
|
|
1937
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
1938
|
+
* @summary Unassign keyphrase opportunity
|
|
1939
|
+
* @param {KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest} requestParameters Request parameters.
|
|
1940
|
+
* @param {*} [options] Override http request option.
|
|
1941
|
+
* @throws {RequiredError}
|
|
1942
|
+
*/
|
|
1943
|
+
unassignKeyphraseOpportunity(requestParameters: KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1897
1944
|
}
|
|
1898
1945
|
/**
|
|
1899
1946
|
* MenuApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Website
|
|
6
6
|
* Manage your PodOS Website
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.36.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1360,6 +1360,47 @@ const KeyphraseOpportunitiesApiAxiosParamCreator = function (configuration) {
|
|
|
1360
1360
|
options: localVarRequestOptions,
|
|
1361
1361
|
};
|
|
1362
1362
|
}),
|
|
1363
|
+
/**
|
|
1364
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
1365
|
+
* @summary Unassign keyphrase opportunity
|
|
1366
|
+
* @param {string} project What project it is
|
|
1367
|
+
* @param {string} keyphraseOpportunityId Keyphrase opportunity\'s unique identifier
|
|
1368
|
+
* @param {*} [options] Override http request option.
|
|
1369
|
+
* @throws {RequiredError}
|
|
1370
|
+
*/
|
|
1371
|
+
unassignKeyphraseOpportunity: (project_1, keyphraseOpportunityId_1, ...args_1) => __awaiter(this, [project_1, keyphraseOpportunityId_1, ...args_1], void 0, function* (project, keyphraseOpportunityId, options = {}) {
|
|
1372
|
+
// verify required parameter 'project' is not null or undefined
|
|
1373
|
+
(0, common_1.assertParamExists)('unassignKeyphraseOpportunity', 'project', project);
|
|
1374
|
+
// verify required parameter 'keyphraseOpportunityId' is not null or undefined
|
|
1375
|
+
(0, common_1.assertParamExists)('unassignKeyphraseOpportunity', 'keyphraseOpportunityId', keyphraseOpportunityId);
|
|
1376
|
+
const localVarPath = `/v1/website/keyphrase-opportunities/{keyphraseOpportunityId}/unassign`
|
|
1377
|
+
.replace('{keyphraseOpportunityId}', encodeURIComponent(String(keyphraseOpportunityId)));
|
|
1378
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1379
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1380
|
+
let baseOptions;
|
|
1381
|
+
if (configuration) {
|
|
1382
|
+
baseOptions = configuration.baseOptions;
|
|
1383
|
+
}
|
|
1384
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1385
|
+
const localVarHeaderParameter = {};
|
|
1386
|
+
const localVarQueryParameter = {};
|
|
1387
|
+
// authentication session-oauth required
|
|
1388
|
+
// oauth required
|
|
1389
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1390
|
+
// authentication api-key required
|
|
1391
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1392
|
+
if (project !== undefined) {
|
|
1393
|
+
localVarQueryParameter['project'] = project;
|
|
1394
|
+
}
|
|
1395
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1396
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1397
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1398
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1399
|
+
return {
|
|
1400
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1401
|
+
options: localVarRequestOptions,
|
|
1402
|
+
};
|
|
1403
|
+
}),
|
|
1363
1404
|
};
|
|
1364
1405
|
};
|
|
1365
1406
|
exports.KeyphraseOpportunitiesApiAxiosParamCreator = KeyphraseOpportunitiesApiAxiosParamCreator;
|
|
@@ -1405,6 +1446,23 @@ const KeyphraseOpportunitiesApiFp = function (configuration) {
|
|
|
1405
1446
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1406
1447
|
});
|
|
1407
1448
|
},
|
|
1449
|
+
/**
|
|
1450
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
1451
|
+
* @summary Unassign keyphrase opportunity
|
|
1452
|
+
* @param {string} project What project it is
|
|
1453
|
+
* @param {string} keyphraseOpportunityId Keyphrase opportunity\'s unique identifier
|
|
1454
|
+
* @param {*} [options] Override http request option.
|
|
1455
|
+
* @throws {RequiredError}
|
|
1456
|
+
*/
|
|
1457
|
+
unassignKeyphraseOpportunity(project, keyphraseOpportunityId, options) {
|
|
1458
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1459
|
+
var _a, _b, _c;
|
|
1460
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.unassignKeyphraseOpportunity(project, keyphraseOpportunityId, options);
|
|
1461
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1462
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KeyphraseOpportunitiesApi.unassignKeyphraseOpportunity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1463
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1464
|
+
});
|
|
1465
|
+
},
|
|
1408
1466
|
};
|
|
1409
1467
|
};
|
|
1410
1468
|
exports.KeyphraseOpportunitiesApiFp = KeyphraseOpportunitiesApiFp;
|
|
@@ -1434,6 +1492,16 @@ const KeyphraseOpportunitiesApiFactory = function (configuration, basePath, axio
|
|
|
1434
1492
|
listKeyphraseOpportunities(requestParameters, options) {
|
|
1435
1493
|
return localVarFp.listKeyphraseOpportunities(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
1436
1494
|
},
|
|
1495
|
+
/**
|
|
1496
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
1497
|
+
* @summary Unassign keyphrase opportunity
|
|
1498
|
+
* @param {KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest} requestParameters Request parameters.
|
|
1499
|
+
* @param {*} [options] Override http request option.
|
|
1500
|
+
* @throws {RequiredError}
|
|
1501
|
+
*/
|
|
1502
|
+
unassignKeyphraseOpportunity(requestParameters, options) {
|
|
1503
|
+
return localVarFp.unassignKeyphraseOpportunity(requestParameters.project, requestParameters.keyphraseOpportunityId, options).then((request) => request(axios, basePath));
|
|
1504
|
+
},
|
|
1437
1505
|
};
|
|
1438
1506
|
};
|
|
1439
1507
|
exports.KeyphraseOpportunitiesApiFactory = KeyphraseOpportunitiesApiFactory;
|
|
@@ -1461,6 +1529,16 @@ class KeyphraseOpportunitiesApi extends base_1.BaseAPI {
|
|
|
1461
1529
|
listKeyphraseOpportunities(requestParameters, options) {
|
|
1462
1530
|
return (0, exports.KeyphraseOpportunitiesApiFp)(this.configuration).listKeyphraseOpportunities(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
1463
1531
|
}
|
|
1532
|
+
/**
|
|
1533
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
1534
|
+
* @summary Unassign keyphrase opportunity
|
|
1535
|
+
* @param {KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest} requestParameters Request parameters.
|
|
1536
|
+
* @param {*} [options] Override http request option.
|
|
1537
|
+
* @throws {RequiredError}
|
|
1538
|
+
*/
|
|
1539
|
+
unassignKeyphraseOpportunity(requestParameters, options) {
|
|
1540
|
+
return (0, exports.KeyphraseOpportunitiesApiFp)(this.configuration).unassignKeyphraseOpportunity(requestParameters.project, requestParameters.keyphraseOpportunityId, options).then((request) => request(this.axios, this.basePath));
|
|
1541
|
+
}
|
|
1464
1542
|
}
|
|
1465
1543
|
exports.KeyphraseOpportunitiesApi = KeyphraseOpportunitiesApi;
|
|
1466
1544
|
/**
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/esm/api.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.36.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1793,6 +1793,15 @@ export declare const KeyphraseOpportunitiesApiAxiosParamCreator: (configuration?
|
|
|
1793
1793
|
* @throws {RequiredError}
|
|
1794
1794
|
*/
|
|
1795
1795
|
listKeyphraseOpportunities: (project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1796
|
+
/**
|
|
1797
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
1798
|
+
* @summary Unassign keyphrase opportunity
|
|
1799
|
+
* @param {string} project What project it is
|
|
1800
|
+
* @param {string} keyphraseOpportunityId Keyphrase opportunity\'s unique identifier
|
|
1801
|
+
* @param {*} [options] Override http request option.
|
|
1802
|
+
* @throws {RequiredError}
|
|
1803
|
+
*/
|
|
1804
|
+
unassignKeyphraseOpportunity: (project: string, keyphraseOpportunityId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1796
1805
|
};
|
|
1797
1806
|
/**
|
|
1798
1807
|
* KeyphraseOpportunitiesApi - functional programming interface
|
|
@@ -1818,6 +1827,15 @@ export declare const KeyphraseOpportunitiesApiFp: (configuration?: Configuration
|
|
|
1818
1827
|
* @throws {RequiredError}
|
|
1819
1828
|
*/
|
|
1820
1829
|
listKeyphraseOpportunities(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<KeyphraseOpportunitiesResponse>>;
|
|
1830
|
+
/**
|
|
1831
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
1832
|
+
* @summary Unassign keyphrase opportunity
|
|
1833
|
+
* @param {string} project What project it is
|
|
1834
|
+
* @param {string} keyphraseOpportunityId Keyphrase opportunity\'s unique identifier
|
|
1835
|
+
* @param {*} [options] Override http request option.
|
|
1836
|
+
* @throws {RequiredError}
|
|
1837
|
+
*/
|
|
1838
|
+
unassignKeyphraseOpportunity(project: string, keyphraseOpportunityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1821
1839
|
};
|
|
1822
1840
|
/**
|
|
1823
1841
|
* KeyphraseOpportunitiesApi - factory interface
|
|
@@ -1839,6 +1857,14 @@ export declare const KeyphraseOpportunitiesApiFactory: (configuration?: Configur
|
|
|
1839
1857
|
* @throws {RequiredError}
|
|
1840
1858
|
*/
|
|
1841
1859
|
listKeyphraseOpportunities(requestParameters: KeyphraseOpportunitiesApiListKeyphraseOpportunitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<KeyphraseOpportunitiesResponse>;
|
|
1860
|
+
/**
|
|
1861
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
1862
|
+
* @summary Unassign keyphrase opportunity
|
|
1863
|
+
* @param {KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest} requestParameters Request parameters.
|
|
1864
|
+
* @param {*} [options] Override http request option.
|
|
1865
|
+
* @throws {RequiredError}
|
|
1866
|
+
*/
|
|
1867
|
+
unassignKeyphraseOpportunity(requestParameters: KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1842
1868
|
};
|
|
1843
1869
|
/**
|
|
1844
1870
|
* Request parameters for deleteKeyphraseOpportunity operation in KeyphraseOpportunitiesApi.
|
|
@@ -1874,6 +1900,19 @@ export interface KeyphraseOpportunitiesApiListKeyphraseOpportunitiesRequest {
|
|
|
1874
1900
|
*/
|
|
1875
1901
|
readonly search?: string;
|
|
1876
1902
|
}
|
|
1903
|
+
/**
|
|
1904
|
+
* Request parameters for unassignKeyphraseOpportunity operation in KeyphraseOpportunitiesApi.
|
|
1905
|
+
*/
|
|
1906
|
+
export interface KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest {
|
|
1907
|
+
/**
|
|
1908
|
+
* What project it is
|
|
1909
|
+
*/
|
|
1910
|
+
readonly project: string;
|
|
1911
|
+
/**
|
|
1912
|
+
* Keyphrase opportunity\'s unique identifier
|
|
1913
|
+
*/
|
|
1914
|
+
readonly keyphraseOpportunityId: string;
|
|
1915
|
+
}
|
|
1877
1916
|
/**
|
|
1878
1917
|
* KeyphraseOpportunitiesApi - object-oriented interface
|
|
1879
1918
|
*/
|
|
@@ -1894,6 +1933,14 @@ export declare class KeyphraseOpportunitiesApi extends BaseAPI {
|
|
|
1894
1933
|
* @throws {RequiredError}
|
|
1895
1934
|
*/
|
|
1896
1935
|
listKeyphraseOpportunities(requestParameters: KeyphraseOpportunitiesApiListKeyphraseOpportunitiesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<KeyphraseOpportunitiesResponse, any, {}>>;
|
|
1936
|
+
/**
|
|
1937
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
1938
|
+
* @summary Unassign keyphrase opportunity
|
|
1939
|
+
* @param {KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest} requestParameters Request parameters.
|
|
1940
|
+
* @param {*} [options] Override http request option.
|
|
1941
|
+
* @throws {RequiredError}
|
|
1942
|
+
*/
|
|
1943
|
+
unassignKeyphraseOpportunity(requestParameters: KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
1897
1944
|
}
|
|
1898
1945
|
/**
|
|
1899
1946
|
* MenuApi - axios parameter creator
|
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.36.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1336,6 +1336,47 @@ export const KeyphraseOpportunitiesApiAxiosParamCreator = function (configuratio
|
|
|
1336
1336
|
options: localVarRequestOptions,
|
|
1337
1337
|
};
|
|
1338
1338
|
}),
|
|
1339
|
+
/**
|
|
1340
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
1341
|
+
* @summary Unassign keyphrase opportunity
|
|
1342
|
+
* @param {string} project What project it is
|
|
1343
|
+
* @param {string} keyphraseOpportunityId Keyphrase opportunity\'s unique identifier
|
|
1344
|
+
* @param {*} [options] Override http request option.
|
|
1345
|
+
* @throws {RequiredError}
|
|
1346
|
+
*/
|
|
1347
|
+
unassignKeyphraseOpportunity: (project_1, keyphraseOpportunityId_1, ...args_1) => __awaiter(this, [project_1, keyphraseOpportunityId_1, ...args_1], void 0, function* (project, keyphraseOpportunityId, options = {}) {
|
|
1348
|
+
// verify required parameter 'project' is not null or undefined
|
|
1349
|
+
assertParamExists('unassignKeyphraseOpportunity', 'project', project);
|
|
1350
|
+
// verify required parameter 'keyphraseOpportunityId' is not null or undefined
|
|
1351
|
+
assertParamExists('unassignKeyphraseOpportunity', 'keyphraseOpportunityId', keyphraseOpportunityId);
|
|
1352
|
+
const localVarPath = `/v1/website/keyphrase-opportunities/{keyphraseOpportunityId}/unassign`
|
|
1353
|
+
.replace('{keyphraseOpportunityId}', encodeURIComponent(String(keyphraseOpportunityId)));
|
|
1354
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1355
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1356
|
+
let baseOptions;
|
|
1357
|
+
if (configuration) {
|
|
1358
|
+
baseOptions = configuration.baseOptions;
|
|
1359
|
+
}
|
|
1360
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1361
|
+
const localVarHeaderParameter = {};
|
|
1362
|
+
const localVarQueryParameter = {};
|
|
1363
|
+
// authentication session-oauth required
|
|
1364
|
+
// oauth required
|
|
1365
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1366
|
+
// authentication api-key required
|
|
1367
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1368
|
+
if (project !== undefined) {
|
|
1369
|
+
localVarQueryParameter['project'] = project;
|
|
1370
|
+
}
|
|
1371
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1372
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1373
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1374
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1375
|
+
return {
|
|
1376
|
+
url: toPathString(localVarUrlObj),
|
|
1377
|
+
options: localVarRequestOptions,
|
|
1378
|
+
};
|
|
1379
|
+
}),
|
|
1339
1380
|
};
|
|
1340
1381
|
};
|
|
1341
1382
|
/**
|
|
@@ -1380,6 +1421,23 @@ export const KeyphraseOpportunitiesApiFp = function (configuration) {
|
|
|
1380
1421
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1381
1422
|
});
|
|
1382
1423
|
},
|
|
1424
|
+
/**
|
|
1425
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
1426
|
+
* @summary Unassign keyphrase opportunity
|
|
1427
|
+
* @param {string} project What project it is
|
|
1428
|
+
* @param {string} keyphraseOpportunityId Keyphrase opportunity\'s unique identifier
|
|
1429
|
+
* @param {*} [options] Override http request option.
|
|
1430
|
+
* @throws {RequiredError}
|
|
1431
|
+
*/
|
|
1432
|
+
unassignKeyphraseOpportunity(project, keyphraseOpportunityId, options) {
|
|
1433
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1434
|
+
var _a, _b, _c;
|
|
1435
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.unassignKeyphraseOpportunity(project, keyphraseOpportunityId, options);
|
|
1436
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1437
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['KeyphraseOpportunitiesApi.unassignKeyphraseOpportunity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1438
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1439
|
+
});
|
|
1440
|
+
},
|
|
1383
1441
|
};
|
|
1384
1442
|
};
|
|
1385
1443
|
/**
|
|
@@ -1408,6 +1466,16 @@ export const KeyphraseOpportunitiesApiFactory = function (configuration, basePat
|
|
|
1408
1466
|
listKeyphraseOpportunities(requestParameters, options) {
|
|
1409
1467
|
return localVarFp.listKeyphraseOpportunities(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
1410
1468
|
},
|
|
1469
|
+
/**
|
|
1470
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
1471
|
+
* @summary Unassign keyphrase opportunity
|
|
1472
|
+
* @param {KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest} requestParameters Request parameters.
|
|
1473
|
+
* @param {*} [options] Override http request option.
|
|
1474
|
+
* @throws {RequiredError}
|
|
1475
|
+
*/
|
|
1476
|
+
unassignKeyphraseOpportunity(requestParameters, options) {
|
|
1477
|
+
return localVarFp.unassignKeyphraseOpportunity(requestParameters.project, requestParameters.keyphraseOpportunityId, options).then((request) => request(axios, basePath));
|
|
1478
|
+
},
|
|
1411
1479
|
};
|
|
1412
1480
|
};
|
|
1413
1481
|
/**
|
|
@@ -1434,6 +1502,16 @@ export class KeyphraseOpportunitiesApi extends BaseAPI {
|
|
|
1434
1502
|
listKeyphraseOpportunities(requestParameters, options) {
|
|
1435
1503
|
return KeyphraseOpportunitiesApiFp(this.configuration).listKeyphraseOpportunities(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
1436
1504
|
}
|
|
1505
|
+
/**
|
|
1506
|
+
* Detach the currently assigned content from a keyphrase opportunity.
|
|
1507
|
+
* @summary Unassign keyphrase opportunity
|
|
1508
|
+
* @param {KeyphraseOpportunitiesApiUnassignKeyphraseOpportunityRequest} requestParameters Request parameters.
|
|
1509
|
+
* @param {*} [options] Override http request option.
|
|
1510
|
+
* @throws {RequiredError}
|
|
1511
|
+
*/
|
|
1512
|
+
unassignKeyphraseOpportunity(requestParameters, options) {
|
|
1513
|
+
return KeyphraseOpportunitiesApiFp(this.configuration).unassignKeyphraseOpportunity(requestParameters.project, requestParameters.keyphraseOpportunityId, options).then((request) => request(this.axios, this.basePath));
|
|
1514
|
+
}
|
|
1437
1515
|
}
|
|
1438
1516
|
/**
|
|
1439
1517
|
* MenuApi - axios parameter creator
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ All URIs are relative to *https://api.localhost:8080*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**deleteKeyphraseOpportunity**](#deletekeyphraseopportunity) | **DELETE** /v1/website/keyphrase-opportunities/{keyphraseOpportunityId} | Delete keyphrase opportunity|
|
|
8
8
|
|[**listKeyphraseOpportunities**](#listkeyphraseopportunities) | **GET** /v1/website/keyphrase-opportunities | List keyphrase opportunities|
|
|
9
|
+
|[**unassignKeyphraseOpportunity**](#unassignkeyphraseopportunity) | **POST** /v1/website/keyphrase-opportunities/{keyphraseOpportunityId}/unassign | Unassign keyphrase opportunity|
|
|
9
10
|
|
|
10
11
|
# **deleteKeyphraseOpportunity**
|
|
11
12
|
> deleteKeyphraseOpportunity()
|
|
@@ -128,3 +129,62 @@ const { status, data } = await apiInstance.listKeyphraseOpportunities(
|
|
|
128
129
|
|
|
129
130
|
[[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
131
|
|
|
132
|
+
# **unassignKeyphraseOpportunity**
|
|
133
|
+
> unassignKeyphraseOpportunity()
|
|
134
|
+
|
|
135
|
+
Detach the currently assigned content from a keyphrase opportunity.
|
|
136
|
+
|
|
137
|
+
### Example
|
|
138
|
+
|
|
139
|
+
```typescript
|
|
140
|
+
import {
|
|
141
|
+
KeyphraseOpportunitiesApi,
|
|
142
|
+
Configuration
|
|
143
|
+
} from '@teemill/website';
|
|
144
|
+
|
|
145
|
+
const configuration = new Configuration();
|
|
146
|
+
const apiInstance = new KeyphraseOpportunitiesApi(configuration);
|
|
147
|
+
|
|
148
|
+
let project: string; //What project it is (default to undefined)
|
|
149
|
+
let keyphraseOpportunityId: string; //Keyphrase opportunity\'s unique identifier (default to undefined)
|
|
150
|
+
|
|
151
|
+
const { status, data } = await apiInstance.unassignKeyphraseOpportunity(
|
|
152
|
+
project,
|
|
153
|
+
keyphraseOpportunityId
|
|
154
|
+
);
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Parameters
|
|
158
|
+
|
|
159
|
+
|Name | Type | Description | Notes|
|
|
160
|
+
|------------- | ------------- | ------------- | -------------|
|
|
161
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
162
|
+
| **keyphraseOpportunityId** | [**string**] | Keyphrase opportunity\'s unique identifier | defaults to undefined|
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### Return type
|
|
166
|
+
|
|
167
|
+
void (empty response body)
|
|
168
|
+
|
|
169
|
+
### Authorization
|
|
170
|
+
|
|
171
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
172
|
+
|
|
173
|
+
### HTTP request headers
|
|
174
|
+
|
|
175
|
+
- **Content-Type**: Not defined
|
|
176
|
+
- **Accept**: application/json
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
### HTTP response details
|
|
180
|
+
| Status code | Description | Response headers |
|
|
181
|
+
|-------------|-------------|------------------|
|
|
182
|
+
|**204** | Keyphrase opportunity unassigned | - |
|
|
183
|
+
|**400** | Failed validation | - |
|
|
184
|
+
|**401** | Not authorised to access this resource | - |
|
|
185
|
+
|**403** | Refuse to authorize | - |
|
|
186
|
+
|**404** | Resource not found | - |
|
|
187
|
+
|**500** | Unknown server error | - |
|
|
188
|
+
|
|
189
|
+
[[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)
|
|
190
|
+
|
package/index.ts
CHANGED