@teemill/website 0.10.0 → 0.12.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 +2 -2
- package/api.ts +132 -38
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +81 -38
- package/dist/api.js +78 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +2 -2
- 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 +81 -38
- package/dist/esm/api.js +78 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +2 -2
- 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/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.12.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.12.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your PodOS Website
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.12.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -504,12 +504,6 @@ export interface Page {
|
|
|
504
504
|
* @memberof Page
|
|
505
505
|
*/
|
|
506
506
|
'slug'?: string;
|
|
507
|
-
/**
|
|
508
|
-
*
|
|
509
|
-
* @type {SeoMetadata}
|
|
510
|
-
* @memberof Page
|
|
511
|
-
*/
|
|
512
|
-
'seoMetadata'?: SeoMetadata;
|
|
513
507
|
/**
|
|
514
508
|
*
|
|
515
509
|
* @type {TargetSearchPhraseData}
|
|
@@ -865,6 +859,32 @@ export interface SeoMetadata {
|
|
|
865
859
|
*/
|
|
866
860
|
'description'?: string | null;
|
|
867
861
|
}
|
|
862
|
+
/**
|
|
863
|
+
*
|
|
864
|
+
* @export
|
|
865
|
+
* @interface SeoOptimiseCollections202Response
|
|
866
|
+
*/
|
|
867
|
+
export interface SeoOptimiseCollections202Response {
|
|
868
|
+
/**
|
|
869
|
+
* A message describing the optimisation status
|
|
870
|
+
* @type {string}
|
|
871
|
+
* @memberof SeoOptimiseCollections202Response
|
|
872
|
+
*/
|
|
873
|
+
'message'?: string;
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
*
|
|
877
|
+
* @export
|
|
878
|
+
* @interface SeoOptimiseCollectionsRequest
|
|
879
|
+
*/
|
|
880
|
+
export interface SeoOptimiseCollectionsRequest {
|
|
881
|
+
/**
|
|
882
|
+
* A set of collection IDs to AI SEO optimise.
|
|
883
|
+
* @type {Array<string>}
|
|
884
|
+
* @memberof SeoOptimiseCollectionsRequest
|
|
885
|
+
*/
|
|
886
|
+
'ids'?: Array<string>;
|
|
887
|
+
}
|
|
868
888
|
/**
|
|
869
889
|
*
|
|
870
890
|
* @export
|
|
@@ -1729,12 +1749,6 @@ export interface UpdatePageRequest {
|
|
|
1729
1749
|
* @memberof UpdatePageRequest
|
|
1730
1750
|
*/
|
|
1731
1751
|
'slug'?: string;
|
|
1732
|
-
/**
|
|
1733
|
-
*
|
|
1734
|
-
* @type {UpdatePagesRequestPagesInnerSeoMetadata}
|
|
1735
|
-
* @memberof UpdatePageRequest
|
|
1736
|
-
*/
|
|
1737
|
-
'seoMetadata'?: UpdatePagesRequestPagesInnerSeoMetadata;
|
|
1738
1752
|
/**
|
|
1739
1753
|
* The primary target search phrase for the page that you wish to rank for in search engine results.
|
|
1740
1754
|
* @type {string}
|
|
@@ -1791,12 +1805,6 @@ export interface UpdatePagesRequestPagesInner {
|
|
|
1791
1805
|
* @memberof UpdatePagesRequestPagesInner
|
|
1792
1806
|
*/
|
|
1793
1807
|
'slug'?: string;
|
|
1794
|
-
/**
|
|
1795
|
-
*
|
|
1796
|
-
* @type {UpdatePagesRequestPagesInnerSeoMetadata}
|
|
1797
|
-
* @memberof UpdatePagesRequestPagesInner
|
|
1798
|
-
*/
|
|
1799
|
-
'seoMetadata'?: UpdatePagesRequestPagesInnerSeoMetadata;
|
|
1800
1808
|
/**
|
|
1801
1809
|
* The primary target search phrase for the page that you wish to rank for in search engine results.
|
|
1802
1810
|
* @type {string}
|
|
@@ -1810,25 +1818,6 @@ export interface UpdatePagesRequestPagesInner {
|
|
|
1810
1818
|
*/
|
|
1811
1819
|
'targetSearchPhraseSynonyms'?: Array<string>;
|
|
1812
1820
|
}
|
|
1813
|
-
/**
|
|
1814
|
-
*
|
|
1815
|
-
* @export
|
|
1816
|
-
* @interface UpdatePagesRequestPagesInnerSeoMetadata
|
|
1817
|
-
*/
|
|
1818
|
-
export interface UpdatePagesRequestPagesInnerSeoMetadata {
|
|
1819
|
-
/**
|
|
1820
|
-
* Meta title for the page. This appears in search engine results and social shares. If not provided, the page title will be used.
|
|
1821
|
-
* @type {string}
|
|
1822
|
-
* @memberof UpdatePagesRequestPagesInnerSeoMetadata
|
|
1823
|
-
*/
|
|
1824
|
-
'title'?: string | null;
|
|
1825
|
-
/**
|
|
1826
|
-
* Meta description for the page. This appears in search engine results and social shares. If not provided, the page description will be used.
|
|
1827
|
-
* @type {string}
|
|
1828
|
-
* @memberof UpdatePagesRequestPagesInnerSeoMetadata
|
|
1829
|
-
*/
|
|
1830
|
-
'description'?: string | null;
|
|
1831
|
-
}
|
|
1832
1821
|
/**
|
|
1833
1822
|
*
|
|
1834
1823
|
* @export
|
|
@@ -2498,6 +2487,54 @@ export const CollectionsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
2498
2487
|
options: localVarRequestOptions,
|
|
2499
2488
|
};
|
|
2500
2489
|
},
|
|
2490
|
+
/**
|
|
2491
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
2492
|
+
* @summary AI SEO optimise collections.
|
|
2493
|
+
* @param {string} project What project it is
|
|
2494
|
+
* @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
|
|
2495
|
+
* @param {*} [options] Override http request option.
|
|
2496
|
+
* @throws {RequiredError}
|
|
2497
|
+
*/
|
|
2498
|
+
seoOptimiseCollections: async (project: string, seoOptimiseCollectionsRequest?: SeoOptimiseCollectionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2499
|
+
// verify required parameter 'project' is not null or undefined
|
|
2500
|
+
assertParamExists('seoOptimiseCollections', 'project', project)
|
|
2501
|
+
const localVarPath = `/v1/website/collections/ai-seo-optimise`;
|
|
2502
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2503
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2504
|
+
let baseOptions;
|
|
2505
|
+
if (configuration) {
|
|
2506
|
+
baseOptions = configuration.baseOptions;
|
|
2507
|
+
}
|
|
2508
|
+
|
|
2509
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2510
|
+
const localVarHeaderParameter = {} as any;
|
|
2511
|
+
const localVarQueryParameter = {} as any;
|
|
2512
|
+
|
|
2513
|
+
// authentication session-oauth required
|
|
2514
|
+
// oauth required
|
|
2515
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
2516
|
+
|
|
2517
|
+
// authentication api-key required
|
|
2518
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2519
|
+
|
|
2520
|
+
if (project !== undefined) {
|
|
2521
|
+
localVarQueryParameter['project'] = project;
|
|
2522
|
+
}
|
|
2523
|
+
|
|
2524
|
+
|
|
2525
|
+
|
|
2526
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2527
|
+
|
|
2528
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2529
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2530
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2531
|
+
localVarRequestOptions.data = serializeDataIfNeeded(seoOptimiseCollectionsRequest, localVarRequestOptions, configuration)
|
|
2532
|
+
|
|
2533
|
+
return {
|
|
2534
|
+
url: toPathString(localVarUrlObj),
|
|
2535
|
+
options: localVarRequestOptions,
|
|
2536
|
+
};
|
|
2537
|
+
},
|
|
2501
2538
|
/**
|
|
2502
2539
|
*
|
|
2503
2540
|
* @summary Update website collection
|
|
@@ -2639,6 +2676,20 @@ export const CollectionsApiFp = function(configuration?: Configuration) {
|
|
|
2639
2676
|
const localVarOperationServerBasePath = operationServerMap['CollectionsApi.listCollections']?.[localVarOperationServerIndex]?.url;
|
|
2640
2677
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2641
2678
|
},
|
|
2679
|
+
/**
|
|
2680
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
2681
|
+
* @summary AI SEO optimise collections.
|
|
2682
|
+
* @param {string} project What project it is
|
|
2683
|
+
* @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
|
|
2684
|
+
* @param {*} [options] Override http request option.
|
|
2685
|
+
* @throws {RequiredError}
|
|
2686
|
+
*/
|
|
2687
|
+
async seoOptimiseCollections(project: string, seoOptimiseCollectionsRequest?: SeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SeoOptimiseCollections202Response>> {
|
|
2688
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.seoOptimiseCollections(project, seoOptimiseCollectionsRequest, options);
|
|
2689
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2690
|
+
const localVarOperationServerBasePath = operationServerMap['CollectionsApi.seoOptimiseCollections']?.[localVarOperationServerIndex]?.url;
|
|
2691
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2692
|
+
},
|
|
2642
2693
|
/**
|
|
2643
2694
|
*
|
|
2644
2695
|
* @summary Update website collection
|
|
@@ -2691,6 +2742,16 @@ export const CollectionsApiFactory = function (configuration?: Configuration, ba
|
|
|
2691
2742
|
listCollections(requestParameters: CollectionsApiListCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CollectionsResponse> {
|
|
2692
2743
|
return localVarFp.listCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
2693
2744
|
},
|
|
2745
|
+
/**
|
|
2746
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
2747
|
+
* @summary AI SEO optimise collections.
|
|
2748
|
+
* @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
|
|
2749
|
+
* @param {*} [options] Override http request option.
|
|
2750
|
+
* @throws {RequiredError}
|
|
2751
|
+
*/
|
|
2752
|
+
seoOptimiseCollections(requestParameters: CollectionsApiSeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SeoOptimiseCollections202Response> {
|
|
2753
|
+
return localVarFp.seoOptimiseCollections(requestParameters.project, requestParameters.seoOptimiseCollectionsRequest, options).then((request) => request(axios, basePath));
|
|
2754
|
+
},
|
|
2694
2755
|
/**
|
|
2695
2756
|
*
|
|
2696
2757
|
* @summary Update website collection
|
|
@@ -2749,6 +2810,27 @@ export interface CollectionsApiListCollectionsRequest {
|
|
|
2749
2810
|
readonly search?: string
|
|
2750
2811
|
}
|
|
2751
2812
|
|
|
2813
|
+
/**
|
|
2814
|
+
* Request parameters for seoOptimiseCollections operation in CollectionsApi.
|
|
2815
|
+
* @export
|
|
2816
|
+
* @interface CollectionsApiSeoOptimiseCollectionsRequest
|
|
2817
|
+
*/
|
|
2818
|
+
export interface CollectionsApiSeoOptimiseCollectionsRequest {
|
|
2819
|
+
/**
|
|
2820
|
+
* What project it is
|
|
2821
|
+
* @type {string}
|
|
2822
|
+
* @memberof CollectionsApiSeoOptimiseCollections
|
|
2823
|
+
*/
|
|
2824
|
+
readonly project: string
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* A set of collection IDs to AI SEO optimise.
|
|
2828
|
+
* @type {SeoOptimiseCollectionsRequest}
|
|
2829
|
+
* @memberof CollectionsApiSeoOptimiseCollections
|
|
2830
|
+
*/
|
|
2831
|
+
readonly seoOptimiseCollectionsRequest?: SeoOptimiseCollectionsRequest
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2752
2834
|
/**
|
|
2753
2835
|
* Request parameters for updateCollection operation in CollectionsApi.
|
|
2754
2836
|
* @export
|
|
@@ -2838,6 +2920,18 @@ export class CollectionsApi extends BaseAPI {
|
|
|
2838
2920
|
return CollectionsApiFp(this.configuration).listCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
2839
2921
|
}
|
|
2840
2922
|
|
|
2923
|
+
/**
|
|
2924
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
2925
|
+
* @summary AI SEO optimise collections.
|
|
2926
|
+
* @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
|
|
2927
|
+
* @param {*} [options] Override http request option.
|
|
2928
|
+
* @throws {RequiredError}
|
|
2929
|
+
* @memberof CollectionsApi
|
|
2930
|
+
*/
|
|
2931
|
+
public seoOptimiseCollections(requestParameters: CollectionsApiSeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig) {
|
|
2932
|
+
return CollectionsApiFp(this.configuration).seoOptimiseCollections(requestParameters.project, requestParameters.seoOptimiseCollectionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2933
|
+
}
|
|
2934
|
+
|
|
2841
2935
|
/**
|
|
2842
2936
|
*
|
|
2843
2937
|
* @summary Update website collection
|
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 API
|
|
3
3
|
* Manage your PodOS Website
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.12.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -487,12 +487,6 @@ export interface Page {
|
|
|
487
487
|
* @memberof Page
|
|
488
488
|
*/
|
|
489
489
|
'slug'?: string;
|
|
490
|
-
/**
|
|
491
|
-
*
|
|
492
|
-
* @type {SeoMetadata}
|
|
493
|
-
* @memberof Page
|
|
494
|
-
*/
|
|
495
|
-
'seoMetadata'?: SeoMetadata;
|
|
496
490
|
/**
|
|
497
491
|
*
|
|
498
492
|
* @type {TargetSearchPhraseData}
|
|
@@ -844,6 +838,32 @@ export interface SeoMetadata {
|
|
|
844
838
|
*/
|
|
845
839
|
'description'?: string | null;
|
|
846
840
|
}
|
|
841
|
+
/**
|
|
842
|
+
*
|
|
843
|
+
* @export
|
|
844
|
+
* @interface SeoOptimiseCollections202Response
|
|
845
|
+
*/
|
|
846
|
+
export interface SeoOptimiseCollections202Response {
|
|
847
|
+
/**
|
|
848
|
+
* A message describing the optimisation status
|
|
849
|
+
* @type {string}
|
|
850
|
+
* @memberof SeoOptimiseCollections202Response
|
|
851
|
+
*/
|
|
852
|
+
'message'?: string;
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
*
|
|
856
|
+
* @export
|
|
857
|
+
* @interface SeoOptimiseCollectionsRequest
|
|
858
|
+
*/
|
|
859
|
+
export interface SeoOptimiseCollectionsRequest {
|
|
860
|
+
/**
|
|
861
|
+
* A set of collection IDs to AI SEO optimise.
|
|
862
|
+
* @type {Array<string>}
|
|
863
|
+
* @memberof SeoOptimiseCollectionsRequest
|
|
864
|
+
*/
|
|
865
|
+
'ids'?: Array<string>;
|
|
866
|
+
}
|
|
847
867
|
/**
|
|
848
868
|
*
|
|
849
869
|
* @export
|
|
@@ -1683,12 +1703,6 @@ export interface UpdatePageRequest {
|
|
|
1683
1703
|
* @memberof UpdatePageRequest
|
|
1684
1704
|
*/
|
|
1685
1705
|
'slug'?: string;
|
|
1686
|
-
/**
|
|
1687
|
-
*
|
|
1688
|
-
* @type {UpdatePagesRequestPagesInnerSeoMetadata}
|
|
1689
|
-
* @memberof UpdatePageRequest
|
|
1690
|
-
*/
|
|
1691
|
-
'seoMetadata'?: UpdatePagesRequestPagesInnerSeoMetadata;
|
|
1692
1706
|
/**
|
|
1693
1707
|
* The primary target search phrase for the page that you wish to rank for in search engine results.
|
|
1694
1708
|
* @type {string}
|
|
@@ -1745,12 +1759,6 @@ export interface UpdatePagesRequestPagesInner {
|
|
|
1745
1759
|
* @memberof UpdatePagesRequestPagesInner
|
|
1746
1760
|
*/
|
|
1747
1761
|
'slug'?: string;
|
|
1748
|
-
/**
|
|
1749
|
-
*
|
|
1750
|
-
* @type {UpdatePagesRequestPagesInnerSeoMetadata}
|
|
1751
|
-
* @memberof UpdatePagesRequestPagesInner
|
|
1752
|
-
*/
|
|
1753
|
-
'seoMetadata'?: UpdatePagesRequestPagesInnerSeoMetadata;
|
|
1754
1762
|
/**
|
|
1755
1763
|
* The primary target search phrase for the page that you wish to rank for in search engine results.
|
|
1756
1764
|
* @type {string}
|
|
@@ -1764,25 +1772,6 @@ export interface UpdatePagesRequestPagesInner {
|
|
|
1764
1772
|
*/
|
|
1765
1773
|
'targetSearchPhraseSynonyms'?: Array<string>;
|
|
1766
1774
|
}
|
|
1767
|
-
/**
|
|
1768
|
-
*
|
|
1769
|
-
* @export
|
|
1770
|
-
* @interface UpdatePagesRequestPagesInnerSeoMetadata
|
|
1771
|
-
*/
|
|
1772
|
-
export interface UpdatePagesRequestPagesInnerSeoMetadata {
|
|
1773
|
-
/**
|
|
1774
|
-
* Meta title for the page. This appears in search engine results and social shares. If not provided, the page title will be used.
|
|
1775
|
-
* @type {string}
|
|
1776
|
-
* @memberof UpdatePagesRequestPagesInnerSeoMetadata
|
|
1777
|
-
*/
|
|
1778
|
-
'title'?: string | null;
|
|
1779
|
-
/**
|
|
1780
|
-
* Meta description for the page. This appears in search engine results and social shares. If not provided, the page description will be used.
|
|
1781
|
-
* @type {string}
|
|
1782
|
-
* @memberof UpdatePagesRequestPagesInnerSeoMetadata
|
|
1783
|
-
*/
|
|
1784
|
-
'description'?: string | null;
|
|
1785
|
-
}
|
|
1786
1775
|
/**
|
|
1787
1776
|
*
|
|
1788
1777
|
* @export
|
|
@@ -2206,6 +2195,15 @@ export declare const CollectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
2206
2195
|
* @throws {RequiredError}
|
|
2207
2196
|
*/
|
|
2208
2197
|
listCollections: (project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2198
|
+
/**
|
|
2199
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
2200
|
+
* @summary AI SEO optimise collections.
|
|
2201
|
+
* @param {string} project What project it is
|
|
2202
|
+
* @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
|
|
2203
|
+
* @param {*} [options] Override http request option.
|
|
2204
|
+
* @throws {RequiredError}
|
|
2205
|
+
*/
|
|
2206
|
+
seoOptimiseCollections: (project: string, seoOptimiseCollectionsRequest?: SeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2209
2207
|
/**
|
|
2210
2208
|
*
|
|
2211
2209
|
* @summary Update website collection
|
|
@@ -2245,6 +2243,15 @@ export declare const CollectionsApiFp: (configuration?: Configuration) => {
|
|
|
2245
2243
|
* @throws {RequiredError}
|
|
2246
2244
|
*/
|
|
2247
2245
|
listCollections(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CollectionsResponse>>;
|
|
2246
|
+
/**
|
|
2247
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
2248
|
+
* @summary AI SEO optimise collections.
|
|
2249
|
+
* @param {string} project What project it is
|
|
2250
|
+
* @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
|
|
2251
|
+
* @param {*} [options] Override http request option.
|
|
2252
|
+
* @throws {RequiredError}
|
|
2253
|
+
*/
|
|
2254
|
+
seoOptimiseCollections(project: string, seoOptimiseCollectionsRequest?: SeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SeoOptimiseCollections202Response>>;
|
|
2248
2255
|
/**
|
|
2249
2256
|
*
|
|
2250
2257
|
* @summary Update website collection
|
|
@@ -2281,6 +2288,14 @@ export declare const CollectionsApiFactory: (configuration?: Configuration, base
|
|
|
2281
2288
|
* @throws {RequiredError}
|
|
2282
2289
|
*/
|
|
2283
2290
|
listCollections(requestParameters: CollectionsApiListCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CollectionsResponse>;
|
|
2291
|
+
/**
|
|
2292
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
2293
|
+
* @summary AI SEO optimise collections.
|
|
2294
|
+
* @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
|
|
2295
|
+
* @param {*} [options] Override http request option.
|
|
2296
|
+
* @throws {RequiredError}
|
|
2297
|
+
*/
|
|
2298
|
+
seoOptimiseCollections(requestParameters: CollectionsApiSeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SeoOptimiseCollections202Response>;
|
|
2284
2299
|
/**
|
|
2285
2300
|
*
|
|
2286
2301
|
* @summary Update website collection
|
|
@@ -2329,6 +2344,25 @@ export interface CollectionsApiListCollectionsRequest {
|
|
|
2329
2344
|
*/
|
|
2330
2345
|
readonly search?: string;
|
|
2331
2346
|
}
|
|
2347
|
+
/**
|
|
2348
|
+
* Request parameters for seoOptimiseCollections operation in CollectionsApi.
|
|
2349
|
+
* @export
|
|
2350
|
+
* @interface CollectionsApiSeoOptimiseCollectionsRequest
|
|
2351
|
+
*/
|
|
2352
|
+
export interface CollectionsApiSeoOptimiseCollectionsRequest {
|
|
2353
|
+
/**
|
|
2354
|
+
* What project it is
|
|
2355
|
+
* @type {string}
|
|
2356
|
+
* @memberof CollectionsApiSeoOptimiseCollections
|
|
2357
|
+
*/
|
|
2358
|
+
readonly project: string;
|
|
2359
|
+
/**
|
|
2360
|
+
* A set of collection IDs to AI SEO optimise.
|
|
2361
|
+
* @type {SeoOptimiseCollectionsRequest}
|
|
2362
|
+
* @memberof CollectionsApiSeoOptimiseCollections
|
|
2363
|
+
*/
|
|
2364
|
+
readonly seoOptimiseCollectionsRequest?: SeoOptimiseCollectionsRequest;
|
|
2365
|
+
}
|
|
2332
2366
|
/**
|
|
2333
2367
|
* Request parameters for updateCollection operation in CollectionsApi.
|
|
2334
2368
|
* @export
|
|
@@ -2407,6 +2441,15 @@ export declare class CollectionsApi extends BaseAPI {
|
|
|
2407
2441
|
* @memberof CollectionsApi
|
|
2408
2442
|
*/
|
|
2409
2443
|
listCollections(requestParameters: CollectionsApiListCollectionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CollectionsResponse, any>>;
|
|
2444
|
+
/**
|
|
2445
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
2446
|
+
* @summary AI SEO optimise collections.
|
|
2447
|
+
* @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
|
|
2448
|
+
* @param {*} [options] Override http request option.
|
|
2449
|
+
* @throws {RequiredError}
|
|
2450
|
+
* @memberof CollectionsApi
|
|
2451
|
+
*/
|
|
2452
|
+
seoOptimiseCollections(requestParameters: CollectionsApiSeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SeoOptimiseCollections202Response, any>>;
|
|
2410
2453
|
/**
|
|
2411
2454
|
*
|
|
2412
2455
|
* @summary Update website collection
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Website API
|
|
6
6
|
* Manage your PodOS Website
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.12.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -469,6 +469,45 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
469
469
|
options: localVarRequestOptions,
|
|
470
470
|
};
|
|
471
471
|
}),
|
|
472
|
+
/**
|
|
473
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
474
|
+
* @summary AI SEO optimise collections.
|
|
475
|
+
* @param {string} project What project it is
|
|
476
|
+
* @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
|
|
477
|
+
* @param {*} [options] Override http request option.
|
|
478
|
+
* @throws {RequiredError}
|
|
479
|
+
*/
|
|
480
|
+
seoOptimiseCollections: (project_1, seoOptimiseCollectionsRequest_1, ...args_1) => __awaiter(this, [project_1, seoOptimiseCollectionsRequest_1, ...args_1], void 0, function* (project, seoOptimiseCollectionsRequest, options = {}) {
|
|
481
|
+
// verify required parameter 'project' is not null or undefined
|
|
482
|
+
(0, common_1.assertParamExists)('seoOptimiseCollections', 'project', project);
|
|
483
|
+
const localVarPath = `/v1/website/collections/ai-seo-optimise`;
|
|
484
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
485
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
486
|
+
let baseOptions;
|
|
487
|
+
if (configuration) {
|
|
488
|
+
baseOptions = configuration.baseOptions;
|
|
489
|
+
}
|
|
490
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
491
|
+
const localVarHeaderParameter = {};
|
|
492
|
+
const localVarQueryParameter = {};
|
|
493
|
+
// authentication session-oauth required
|
|
494
|
+
// oauth required
|
|
495
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
496
|
+
// authentication api-key required
|
|
497
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
498
|
+
if (project !== undefined) {
|
|
499
|
+
localVarQueryParameter['project'] = project;
|
|
500
|
+
}
|
|
501
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
502
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
503
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
504
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
505
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(seoOptimiseCollectionsRequest, localVarRequestOptions, configuration);
|
|
506
|
+
return {
|
|
507
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
508
|
+
options: localVarRequestOptions,
|
|
509
|
+
};
|
|
510
|
+
}),
|
|
472
511
|
/**
|
|
473
512
|
*
|
|
474
513
|
* @summary Update website collection
|
|
@@ -592,6 +631,23 @@ const CollectionsApiFp = function (configuration) {
|
|
|
592
631
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
593
632
|
});
|
|
594
633
|
},
|
|
634
|
+
/**
|
|
635
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
636
|
+
* @summary AI SEO optimise collections.
|
|
637
|
+
* @param {string} project What project it is
|
|
638
|
+
* @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
|
|
639
|
+
* @param {*} [options] Override http request option.
|
|
640
|
+
* @throws {RequiredError}
|
|
641
|
+
*/
|
|
642
|
+
seoOptimiseCollections(project, seoOptimiseCollectionsRequest, options) {
|
|
643
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
644
|
+
var _a, _b, _c;
|
|
645
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.seoOptimiseCollections(project, seoOptimiseCollectionsRequest, options);
|
|
646
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
647
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CollectionsApi.seoOptimiseCollections']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
648
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
649
|
+
});
|
|
650
|
+
},
|
|
595
651
|
/**
|
|
596
652
|
*
|
|
597
653
|
* @summary Update website collection
|
|
@@ -650,6 +706,16 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
650
706
|
listCollections(requestParameters, options) {
|
|
651
707
|
return localVarFp.listCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
652
708
|
},
|
|
709
|
+
/**
|
|
710
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
711
|
+
* @summary AI SEO optimise collections.
|
|
712
|
+
* @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
|
|
713
|
+
* @param {*} [options] Override http request option.
|
|
714
|
+
* @throws {RequiredError}
|
|
715
|
+
*/
|
|
716
|
+
seoOptimiseCollections(requestParameters, options) {
|
|
717
|
+
return localVarFp.seoOptimiseCollections(requestParameters.project, requestParameters.seoOptimiseCollectionsRequest, options).then((request) => request(axios, basePath));
|
|
718
|
+
},
|
|
653
719
|
/**
|
|
654
720
|
*
|
|
655
721
|
* @summary Update website collection
|
|
@@ -691,6 +757,17 @@ class CollectionsApi extends base_1.BaseAPI {
|
|
|
691
757
|
listCollections(requestParameters, options) {
|
|
692
758
|
return (0, exports.CollectionsApiFp)(this.configuration).listCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
693
759
|
}
|
|
760
|
+
/**
|
|
761
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
762
|
+
* @summary AI SEO optimise collections.
|
|
763
|
+
* @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
|
|
764
|
+
* @param {*} [options] Override http request option.
|
|
765
|
+
* @throws {RequiredError}
|
|
766
|
+
* @memberof CollectionsApi
|
|
767
|
+
*/
|
|
768
|
+
seoOptimiseCollections(requestParameters, options) {
|
|
769
|
+
return (0, exports.CollectionsApiFp)(this.configuration).seoOptimiseCollections(requestParameters.project, requestParameters.seoOptimiseCollectionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
770
|
+
}
|
|
694
771
|
/**
|
|
695
772
|
*
|
|
696
773
|
* @summary Update website collection
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* Manage your PodOS Website
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.12.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
62
62
|
*
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
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 API
|
|
3
3
|
* Manage your PodOS Website
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.12.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -487,12 +487,6 @@ export interface Page {
|
|
|
487
487
|
* @memberof Page
|
|
488
488
|
*/
|
|
489
489
|
'slug'?: string;
|
|
490
|
-
/**
|
|
491
|
-
*
|
|
492
|
-
* @type {SeoMetadata}
|
|
493
|
-
* @memberof Page
|
|
494
|
-
*/
|
|
495
|
-
'seoMetadata'?: SeoMetadata;
|
|
496
490
|
/**
|
|
497
491
|
*
|
|
498
492
|
* @type {TargetSearchPhraseData}
|
|
@@ -844,6 +838,32 @@ export interface SeoMetadata {
|
|
|
844
838
|
*/
|
|
845
839
|
'description'?: string | null;
|
|
846
840
|
}
|
|
841
|
+
/**
|
|
842
|
+
*
|
|
843
|
+
* @export
|
|
844
|
+
* @interface SeoOptimiseCollections202Response
|
|
845
|
+
*/
|
|
846
|
+
export interface SeoOptimiseCollections202Response {
|
|
847
|
+
/**
|
|
848
|
+
* A message describing the optimisation status
|
|
849
|
+
* @type {string}
|
|
850
|
+
* @memberof SeoOptimiseCollections202Response
|
|
851
|
+
*/
|
|
852
|
+
'message'?: string;
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
*
|
|
856
|
+
* @export
|
|
857
|
+
* @interface SeoOptimiseCollectionsRequest
|
|
858
|
+
*/
|
|
859
|
+
export interface SeoOptimiseCollectionsRequest {
|
|
860
|
+
/**
|
|
861
|
+
* A set of collection IDs to AI SEO optimise.
|
|
862
|
+
* @type {Array<string>}
|
|
863
|
+
* @memberof SeoOptimiseCollectionsRequest
|
|
864
|
+
*/
|
|
865
|
+
'ids'?: Array<string>;
|
|
866
|
+
}
|
|
847
867
|
/**
|
|
848
868
|
*
|
|
849
869
|
* @export
|
|
@@ -1683,12 +1703,6 @@ export interface UpdatePageRequest {
|
|
|
1683
1703
|
* @memberof UpdatePageRequest
|
|
1684
1704
|
*/
|
|
1685
1705
|
'slug'?: string;
|
|
1686
|
-
/**
|
|
1687
|
-
*
|
|
1688
|
-
* @type {UpdatePagesRequestPagesInnerSeoMetadata}
|
|
1689
|
-
* @memberof UpdatePageRequest
|
|
1690
|
-
*/
|
|
1691
|
-
'seoMetadata'?: UpdatePagesRequestPagesInnerSeoMetadata;
|
|
1692
1706
|
/**
|
|
1693
1707
|
* The primary target search phrase for the page that you wish to rank for in search engine results.
|
|
1694
1708
|
* @type {string}
|
|
@@ -1745,12 +1759,6 @@ export interface UpdatePagesRequestPagesInner {
|
|
|
1745
1759
|
* @memberof UpdatePagesRequestPagesInner
|
|
1746
1760
|
*/
|
|
1747
1761
|
'slug'?: string;
|
|
1748
|
-
/**
|
|
1749
|
-
*
|
|
1750
|
-
* @type {UpdatePagesRequestPagesInnerSeoMetadata}
|
|
1751
|
-
* @memberof UpdatePagesRequestPagesInner
|
|
1752
|
-
*/
|
|
1753
|
-
'seoMetadata'?: UpdatePagesRequestPagesInnerSeoMetadata;
|
|
1754
1762
|
/**
|
|
1755
1763
|
* The primary target search phrase for the page that you wish to rank for in search engine results.
|
|
1756
1764
|
* @type {string}
|
|
@@ -1764,25 +1772,6 @@ export interface UpdatePagesRequestPagesInner {
|
|
|
1764
1772
|
*/
|
|
1765
1773
|
'targetSearchPhraseSynonyms'?: Array<string>;
|
|
1766
1774
|
}
|
|
1767
|
-
/**
|
|
1768
|
-
*
|
|
1769
|
-
* @export
|
|
1770
|
-
* @interface UpdatePagesRequestPagesInnerSeoMetadata
|
|
1771
|
-
*/
|
|
1772
|
-
export interface UpdatePagesRequestPagesInnerSeoMetadata {
|
|
1773
|
-
/**
|
|
1774
|
-
* Meta title for the page. This appears in search engine results and social shares. If not provided, the page title will be used.
|
|
1775
|
-
* @type {string}
|
|
1776
|
-
* @memberof UpdatePagesRequestPagesInnerSeoMetadata
|
|
1777
|
-
*/
|
|
1778
|
-
'title'?: string | null;
|
|
1779
|
-
/**
|
|
1780
|
-
* Meta description for the page. This appears in search engine results and social shares. If not provided, the page description will be used.
|
|
1781
|
-
* @type {string}
|
|
1782
|
-
* @memberof UpdatePagesRequestPagesInnerSeoMetadata
|
|
1783
|
-
*/
|
|
1784
|
-
'description'?: string | null;
|
|
1785
|
-
}
|
|
1786
1775
|
/**
|
|
1787
1776
|
*
|
|
1788
1777
|
* @export
|
|
@@ -2206,6 +2195,15 @@ export declare const CollectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
2206
2195
|
* @throws {RequiredError}
|
|
2207
2196
|
*/
|
|
2208
2197
|
listCollections: (project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2198
|
+
/**
|
|
2199
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
2200
|
+
* @summary AI SEO optimise collections.
|
|
2201
|
+
* @param {string} project What project it is
|
|
2202
|
+
* @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
|
|
2203
|
+
* @param {*} [options] Override http request option.
|
|
2204
|
+
* @throws {RequiredError}
|
|
2205
|
+
*/
|
|
2206
|
+
seoOptimiseCollections: (project: string, seoOptimiseCollectionsRequest?: SeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2209
2207
|
/**
|
|
2210
2208
|
*
|
|
2211
2209
|
* @summary Update website collection
|
|
@@ -2245,6 +2243,15 @@ export declare const CollectionsApiFp: (configuration?: Configuration) => {
|
|
|
2245
2243
|
* @throws {RequiredError}
|
|
2246
2244
|
*/
|
|
2247
2245
|
listCollections(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CollectionsResponse>>;
|
|
2246
|
+
/**
|
|
2247
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
2248
|
+
* @summary AI SEO optimise collections.
|
|
2249
|
+
* @param {string} project What project it is
|
|
2250
|
+
* @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
|
|
2251
|
+
* @param {*} [options] Override http request option.
|
|
2252
|
+
* @throws {RequiredError}
|
|
2253
|
+
*/
|
|
2254
|
+
seoOptimiseCollections(project: string, seoOptimiseCollectionsRequest?: SeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SeoOptimiseCollections202Response>>;
|
|
2248
2255
|
/**
|
|
2249
2256
|
*
|
|
2250
2257
|
* @summary Update website collection
|
|
@@ -2281,6 +2288,14 @@ export declare const CollectionsApiFactory: (configuration?: Configuration, base
|
|
|
2281
2288
|
* @throws {RequiredError}
|
|
2282
2289
|
*/
|
|
2283
2290
|
listCollections(requestParameters: CollectionsApiListCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CollectionsResponse>;
|
|
2291
|
+
/**
|
|
2292
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
2293
|
+
* @summary AI SEO optimise collections.
|
|
2294
|
+
* @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
|
|
2295
|
+
* @param {*} [options] Override http request option.
|
|
2296
|
+
* @throws {RequiredError}
|
|
2297
|
+
*/
|
|
2298
|
+
seoOptimiseCollections(requestParameters: CollectionsApiSeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SeoOptimiseCollections202Response>;
|
|
2284
2299
|
/**
|
|
2285
2300
|
*
|
|
2286
2301
|
* @summary Update website collection
|
|
@@ -2329,6 +2344,25 @@ export interface CollectionsApiListCollectionsRequest {
|
|
|
2329
2344
|
*/
|
|
2330
2345
|
readonly search?: string;
|
|
2331
2346
|
}
|
|
2347
|
+
/**
|
|
2348
|
+
* Request parameters for seoOptimiseCollections operation in CollectionsApi.
|
|
2349
|
+
* @export
|
|
2350
|
+
* @interface CollectionsApiSeoOptimiseCollectionsRequest
|
|
2351
|
+
*/
|
|
2352
|
+
export interface CollectionsApiSeoOptimiseCollectionsRequest {
|
|
2353
|
+
/**
|
|
2354
|
+
* What project it is
|
|
2355
|
+
* @type {string}
|
|
2356
|
+
* @memberof CollectionsApiSeoOptimiseCollections
|
|
2357
|
+
*/
|
|
2358
|
+
readonly project: string;
|
|
2359
|
+
/**
|
|
2360
|
+
* A set of collection IDs to AI SEO optimise.
|
|
2361
|
+
* @type {SeoOptimiseCollectionsRequest}
|
|
2362
|
+
* @memberof CollectionsApiSeoOptimiseCollections
|
|
2363
|
+
*/
|
|
2364
|
+
readonly seoOptimiseCollectionsRequest?: SeoOptimiseCollectionsRequest;
|
|
2365
|
+
}
|
|
2332
2366
|
/**
|
|
2333
2367
|
* Request parameters for updateCollection operation in CollectionsApi.
|
|
2334
2368
|
* @export
|
|
@@ -2407,6 +2441,15 @@ export declare class CollectionsApi extends BaseAPI {
|
|
|
2407
2441
|
* @memberof CollectionsApi
|
|
2408
2442
|
*/
|
|
2409
2443
|
listCollections(requestParameters: CollectionsApiListCollectionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CollectionsResponse, any>>;
|
|
2444
|
+
/**
|
|
2445
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
2446
|
+
* @summary AI SEO optimise collections.
|
|
2447
|
+
* @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
|
|
2448
|
+
* @param {*} [options] Override http request option.
|
|
2449
|
+
* @throws {RequiredError}
|
|
2450
|
+
* @memberof CollectionsApi
|
|
2451
|
+
*/
|
|
2452
|
+
seoOptimiseCollections(requestParameters: CollectionsApiSeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SeoOptimiseCollections202Response, any>>;
|
|
2410
2453
|
/**
|
|
2411
2454
|
*
|
|
2412
2455
|
* @summary Update website collection
|
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your PodOS Website
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.12.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -462,6 +462,45 @@ export const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
462
462
|
options: localVarRequestOptions,
|
|
463
463
|
};
|
|
464
464
|
}),
|
|
465
|
+
/**
|
|
466
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
467
|
+
* @summary AI SEO optimise collections.
|
|
468
|
+
* @param {string} project What project it is
|
|
469
|
+
* @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
|
|
470
|
+
* @param {*} [options] Override http request option.
|
|
471
|
+
* @throws {RequiredError}
|
|
472
|
+
*/
|
|
473
|
+
seoOptimiseCollections: (project_1, seoOptimiseCollectionsRequest_1, ...args_1) => __awaiter(this, [project_1, seoOptimiseCollectionsRequest_1, ...args_1], void 0, function* (project, seoOptimiseCollectionsRequest, options = {}) {
|
|
474
|
+
// verify required parameter 'project' is not null or undefined
|
|
475
|
+
assertParamExists('seoOptimiseCollections', 'project', project);
|
|
476
|
+
const localVarPath = `/v1/website/collections/ai-seo-optimise`;
|
|
477
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
478
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
479
|
+
let baseOptions;
|
|
480
|
+
if (configuration) {
|
|
481
|
+
baseOptions = configuration.baseOptions;
|
|
482
|
+
}
|
|
483
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
484
|
+
const localVarHeaderParameter = {};
|
|
485
|
+
const localVarQueryParameter = {};
|
|
486
|
+
// authentication session-oauth required
|
|
487
|
+
// oauth required
|
|
488
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
489
|
+
// authentication api-key required
|
|
490
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
491
|
+
if (project !== undefined) {
|
|
492
|
+
localVarQueryParameter['project'] = project;
|
|
493
|
+
}
|
|
494
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
495
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
496
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
497
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
498
|
+
localVarRequestOptions.data = serializeDataIfNeeded(seoOptimiseCollectionsRequest, localVarRequestOptions, configuration);
|
|
499
|
+
return {
|
|
500
|
+
url: toPathString(localVarUrlObj),
|
|
501
|
+
options: localVarRequestOptions,
|
|
502
|
+
};
|
|
503
|
+
}),
|
|
465
504
|
/**
|
|
466
505
|
*
|
|
467
506
|
* @summary Update website collection
|
|
@@ -584,6 +623,23 @@ export const CollectionsApiFp = function (configuration) {
|
|
|
584
623
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
585
624
|
});
|
|
586
625
|
},
|
|
626
|
+
/**
|
|
627
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
628
|
+
* @summary AI SEO optimise collections.
|
|
629
|
+
* @param {string} project What project it is
|
|
630
|
+
* @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
|
|
631
|
+
* @param {*} [options] Override http request option.
|
|
632
|
+
* @throws {RequiredError}
|
|
633
|
+
*/
|
|
634
|
+
seoOptimiseCollections(project, seoOptimiseCollectionsRequest, options) {
|
|
635
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
636
|
+
var _a, _b, _c;
|
|
637
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.seoOptimiseCollections(project, seoOptimiseCollectionsRequest, options);
|
|
638
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
639
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollectionsApi.seoOptimiseCollections']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
640
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
641
|
+
});
|
|
642
|
+
},
|
|
587
643
|
/**
|
|
588
644
|
*
|
|
589
645
|
* @summary Update website collection
|
|
@@ -641,6 +697,16 @@ export const CollectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
641
697
|
listCollections(requestParameters, options) {
|
|
642
698
|
return localVarFp.listCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
643
699
|
},
|
|
700
|
+
/**
|
|
701
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
702
|
+
* @summary AI SEO optimise collections.
|
|
703
|
+
* @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
|
|
704
|
+
* @param {*} [options] Override http request option.
|
|
705
|
+
* @throws {RequiredError}
|
|
706
|
+
*/
|
|
707
|
+
seoOptimiseCollections(requestParameters, options) {
|
|
708
|
+
return localVarFp.seoOptimiseCollections(requestParameters.project, requestParameters.seoOptimiseCollectionsRequest, options).then((request) => request(axios, basePath));
|
|
709
|
+
},
|
|
644
710
|
/**
|
|
645
711
|
*
|
|
646
712
|
* @summary Update website collection
|
|
@@ -681,6 +747,17 @@ export class CollectionsApi extends BaseAPI {
|
|
|
681
747
|
listCollections(requestParameters, options) {
|
|
682
748
|
return CollectionsApiFp(this.configuration).listCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
683
749
|
}
|
|
750
|
+
/**
|
|
751
|
+
* AI SEO optimises collections by a set of given IDs.
|
|
752
|
+
* @summary AI SEO optimise collections.
|
|
753
|
+
* @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
|
|
754
|
+
* @param {*} [options] Override http request option.
|
|
755
|
+
* @throws {RequiredError}
|
|
756
|
+
* @memberof CollectionsApi
|
|
757
|
+
*/
|
|
758
|
+
seoOptimiseCollections(requestParameters, options) {
|
|
759
|
+
return CollectionsApiFp(this.configuration).seoOptimiseCollections(requestParameters.project, requestParameters.seoOptimiseCollectionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
760
|
+
}
|
|
684
761
|
/**
|
|
685
762
|
*
|
|
686
763
|
* @summary Update website collection
|
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 API
|
|
3
3
|
* Manage your PodOS Website
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.12.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
62
62
|
*
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
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
package/index.ts
CHANGED