@teemill/website 0.12.0 → 0.13.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 +128 -10
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +78 -11
- package/dist/api.js +78 -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 +78 -11
- 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 +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/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.13.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.13.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.13.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -862,26 +862,39 @@ export interface SeoMetadata {
|
|
|
862
862
|
/**
|
|
863
863
|
*
|
|
864
864
|
* @export
|
|
865
|
-
* @interface
|
|
865
|
+
* @interface SeoOptimiseCollectionsRequest
|
|
866
866
|
*/
|
|
867
|
-
export interface
|
|
867
|
+
export interface SeoOptimiseCollectionsRequest {
|
|
868
|
+
/**
|
|
869
|
+
* A set of collection IDs to AI SEO optimise.
|
|
870
|
+
* @type {Array<string>}
|
|
871
|
+
* @memberof SeoOptimiseCollectionsRequest
|
|
872
|
+
*/
|
|
873
|
+
'ids'?: Array<string>;
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
*
|
|
877
|
+
* @export
|
|
878
|
+
* @interface SeoOptimisePages202Response
|
|
879
|
+
*/
|
|
880
|
+
export interface SeoOptimisePages202Response {
|
|
868
881
|
/**
|
|
869
882
|
* A message describing the optimisation status
|
|
870
883
|
* @type {string}
|
|
871
|
-
* @memberof
|
|
884
|
+
* @memberof SeoOptimisePages202Response
|
|
872
885
|
*/
|
|
873
886
|
'message'?: string;
|
|
874
887
|
}
|
|
875
888
|
/**
|
|
876
889
|
*
|
|
877
890
|
* @export
|
|
878
|
-
* @interface
|
|
891
|
+
* @interface SeoOptimisePagesRequest
|
|
879
892
|
*/
|
|
880
|
-
export interface
|
|
893
|
+
export interface SeoOptimisePagesRequest {
|
|
881
894
|
/**
|
|
882
|
-
* A set of
|
|
895
|
+
* A set of page IDs to AI SEO optimise.
|
|
883
896
|
* @type {Array<string>}
|
|
884
|
-
* @memberof
|
|
897
|
+
* @memberof SeoOptimisePagesRequest
|
|
885
898
|
*/
|
|
886
899
|
'ids'?: Array<string>;
|
|
887
900
|
}
|
|
@@ -2684,7 +2697,7 @@ export const CollectionsApiFp = function(configuration?: Configuration) {
|
|
|
2684
2697
|
* @param {*} [options] Override http request option.
|
|
2685
2698
|
* @throws {RequiredError}
|
|
2686
2699
|
*/
|
|
2687
|
-
async seoOptimiseCollections(project: string, seoOptimiseCollectionsRequest?: SeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2700
|
+
async seoOptimiseCollections(project: string, seoOptimiseCollectionsRequest?: SeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SeoOptimisePages202Response>> {
|
|
2688
2701
|
const localVarAxiosArgs = await localVarAxiosParamCreator.seoOptimiseCollections(project, seoOptimiseCollectionsRequest, options);
|
|
2689
2702
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2690
2703
|
const localVarOperationServerBasePath = operationServerMap['CollectionsApi.seoOptimiseCollections']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2749,7 +2762,7 @@ export const CollectionsApiFactory = function (configuration?: Configuration, ba
|
|
|
2749
2762
|
* @param {*} [options] Override http request option.
|
|
2750
2763
|
* @throws {RequiredError}
|
|
2751
2764
|
*/
|
|
2752
|
-
seoOptimiseCollections(requestParameters: CollectionsApiSeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2765
|
+
seoOptimiseCollections(requestParameters: CollectionsApiSeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SeoOptimisePages202Response> {
|
|
2753
2766
|
return localVarFp.seoOptimiseCollections(requestParameters.project, requestParameters.seoOptimiseCollectionsRequest, options).then((request) => request(axios, basePath));
|
|
2754
2767
|
},
|
|
2755
2768
|
/**
|
|
@@ -3522,6 +3535,54 @@ export const PagesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3522
3535
|
options: localVarRequestOptions,
|
|
3523
3536
|
};
|
|
3524
3537
|
},
|
|
3538
|
+
/**
|
|
3539
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
3540
|
+
* @summary AI SEO optimise pages.
|
|
3541
|
+
* @param {string} project What project it is
|
|
3542
|
+
* @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
|
|
3543
|
+
* @param {*} [options] Override http request option.
|
|
3544
|
+
* @throws {RequiredError}
|
|
3545
|
+
*/
|
|
3546
|
+
seoOptimisePages: async (project: string, seoOptimisePagesRequest?: SeoOptimisePagesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3547
|
+
// verify required parameter 'project' is not null or undefined
|
|
3548
|
+
assertParamExists('seoOptimisePages', 'project', project)
|
|
3549
|
+
const localVarPath = `/v1/website/pages/ai-seo-optimise`;
|
|
3550
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3551
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3552
|
+
let baseOptions;
|
|
3553
|
+
if (configuration) {
|
|
3554
|
+
baseOptions = configuration.baseOptions;
|
|
3555
|
+
}
|
|
3556
|
+
|
|
3557
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3558
|
+
const localVarHeaderParameter = {} as any;
|
|
3559
|
+
const localVarQueryParameter = {} as any;
|
|
3560
|
+
|
|
3561
|
+
// authentication session-oauth required
|
|
3562
|
+
// oauth required
|
|
3563
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
3564
|
+
|
|
3565
|
+
// authentication api-key required
|
|
3566
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3567
|
+
|
|
3568
|
+
if (project !== undefined) {
|
|
3569
|
+
localVarQueryParameter['project'] = project;
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
|
|
3573
|
+
|
|
3574
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3575
|
+
|
|
3576
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3577
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3578
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3579
|
+
localVarRequestOptions.data = serializeDataIfNeeded(seoOptimisePagesRequest, localVarRequestOptions, configuration)
|
|
3580
|
+
|
|
3581
|
+
return {
|
|
3582
|
+
url: toPathString(localVarUrlObj),
|
|
3583
|
+
options: localVarRequestOptions,
|
|
3584
|
+
};
|
|
3585
|
+
},
|
|
3525
3586
|
/**
|
|
3526
3587
|
*
|
|
3527
3588
|
* @summary Update website page
|
|
@@ -3663,6 +3724,20 @@ export const PagesApiFp = function(configuration?: Configuration) {
|
|
|
3663
3724
|
const localVarOperationServerBasePath = operationServerMap['PagesApi.listPages']?.[localVarOperationServerIndex]?.url;
|
|
3664
3725
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3665
3726
|
},
|
|
3727
|
+
/**
|
|
3728
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
3729
|
+
* @summary AI SEO optimise pages.
|
|
3730
|
+
* @param {string} project What project it is
|
|
3731
|
+
* @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
|
|
3732
|
+
* @param {*} [options] Override http request option.
|
|
3733
|
+
* @throws {RequiredError}
|
|
3734
|
+
*/
|
|
3735
|
+
async seoOptimisePages(project: string, seoOptimisePagesRequest?: SeoOptimisePagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SeoOptimisePages202Response>> {
|
|
3736
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.seoOptimisePages(project, seoOptimisePagesRequest, options);
|
|
3737
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3738
|
+
const localVarOperationServerBasePath = operationServerMap['PagesApi.seoOptimisePages']?.[localVarOperationServerIndex]?.url;
|
|
3739
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3740
|
+
},
|
|
3666
3741
|
/**
|
|
3667
3742
|
*
|
|
3668
3743
|
* @summary Update website page
|
|
@@ -3715,6 +3790,16 @@ export const PagesApiFactory = function (configuration?: Configuration, basePath
|
|
|
3715
3790
|
listPages(requestParameters: PagesApiListPagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<PagesResponse> {
|
|
3716
3791
|
return localVarFp.listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
3717
3792
|
},
|
|
3793
|
+
/**
|
|
3794
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
3795
|
+
* @summary AI SEO optimise pages.
|
|
3796
|
+
* @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
|
|
3797
|
+
* @param {*} [options] Override http request option.
|
|
3798
|
+
* @throws {RequiredError}
|
|
3799
|
+
*/
|
|
3800
|
+
seoOptimisePages(requestParameters: PagesApiSeoOptimisePagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<SeoOptimisePages202Response> {
|
|
3801
|
+
return localVarFp.seoOptimisePages(requestParameters.project, requestParameters.seoOptimisePagesRequest, options).then((request) => request(axios, basePath));
|
|
3802
|
+
},
|
|
3718
3803
|
/**
|
|
3719
3804
|
*
|
|
3720
3805
|
* @summary Update website page
|
|
@@ -3773,6 +3858,27 @@ export interface PagesApiListPagesRequest {
|
|
|
3773
3858
|
readonly search?: string
|
|
3774
3859
|
}
|
|
3775
3860
|
|
|
3861
|
+
/**
|
|
3862
|
+
* Request parameters for seoOptimisePages operation in PagesApi.
|
|
3863
|
+
* @export
|
|
3864
|
+
* @interface PagesApiSeoOptimisePagesRequest
|
|
3865
|
+
*/
|
|
3866
|
+
export interface PagesApiSeoOptimisePagesRequest {
|
|
3867
|
+
/**
|
|
3868
|
+
* What project it is
|
|
3869
|
+
* @type {string}
|
|
3870
|
+
* @memberof PagesApiSeoOptimisePages
|
|
3871
|
+
*/
|
|
3872
|
+
readonly project: string
|
|
3873
|
+
|
|
3874
|
+
/**
|
|
3875
|
+
* A set of page IDs to AI SEO optimise.
|
|
3876
|
+
* @type {SeoOptimisePagesRequest}
|
|
3877
|
+
* @memberof PagesApiSeoOptimisePages
|
|
3878
|
+
*/
|
|
3879
|
+
readonly seoOptimisePagesRequest?: SeoOptimisePagesRequest
|
|
3880
|
+
}
|
|
3881
|
+
|
|
3776
3882
|
/**
|
|
3777
3883
|
* Request parameters for updatePage operation in PagesApi.
|
|
3778
3884
|
* @export
|
|
@@ -3862,6 +3968,18 @@ export class PagesApi extends BaseAPI {
|
|
|
3862
3968
|
return PagesApiFp(this.configuration).listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
3863
3969
|
}
|
|
3864
3970
|
|
|
3971
|
+
/**
|
|
3972
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
3973
|
+
* @summary AI SEO optimise pages.
|
|
3974
|
+
* @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
|
|
3975
|
+
* @param {*} [options] Override http request option.
|
|
3976
|
+
* @throws {RequiredError}
|
|
3977
|
+
* @memberof PagesApi
|
|
3978
|
+
*/
|
|
3979
|
+
public seoOptimisePages(requestParameters: PagesApiSeoOptimisePagesRequest, options?: RawAxiosRequestConfig) {
|
|
3980
|
+
return PagesApiFp(this.configuration).seoOptimisePages(requestParameters.project, requestParameters.seoOptimisePagesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3981
|
+
}
|
|
3982
|
+
|
|
3865
3983
|
/**
|
|
3866
3984
|
*
|
|
3867
3985
|
* @summary Update website page
|
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.13.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -841,26 +841,39 @@ export interface SeoMetadata {
|
|
|
841
841
|
/**
|
|
842
842
|
*
|
|
843
843
|
* @export
|
|
844
|
-
* @interface
|
|
844
|
+
* @interface SeoOptimiseCollectionsRequest
|
|
845
|
+
*/
|
|
846
|
+
export interface SeoOptimiseCollectionsRequest {
|
|
847
|
+
/**
|
|
848
|
+
* A set of collection IDs to AI SEO optimise.
|
|
849
|
+
* @type {Array<string>}
|
|
850
|
+
* @memberof SeoOptimiseCollectionsRequest
|
|
851
|
+
*/
|
|
852
|
+
'ids'?: Array<string>;
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
*
|
|
856
|
+
* @export
|
|
857
|
+
* @interface SeoOptimisePages202Response
|
|
845
858
|
*/
|
|
846
|
-
export interface
|
|
859
|
+
export interface SeoOptimisePages202Response {
|
|
847
860
|
/**
|
|
848
861
|
* A message describing the optimisation status
|
|
849
862
|
* @type {string}
|
|
850
|
-
* @memberof
|
|
863
|
+
* @memberof SeoOptimisePages202Response
|
|
851
864
|
*/
|
|
852
865
|
'message'?: string;
|
|
853
866
|
}
|
|
854
867
|
/**
|
|
855
868
|
*
|
|
856
869
|
* @export
|
|
857
|
-
* @interface
|
|
870
|
+
* @interface SeoOptimisePagesRequest
|
|
858
871
|
*/
|
|
859
|
-
export interface
|
|
872
|
+
export interface SeoOptimisePagesRequest {
|
|
860
873
|
/**
|
|
861
|
-
* A set of
|
|
874
|
+
* A set of page IDs to AI SEO optimise.
|
|
862
875
|
* @type {Array<string>}
|
|
863
|
-
* @memberof
|
|
876
|
+
* @memberof SeoOptimisePagesRequest
|
|
864
877
|
*/
|
|
865
878
|
'ids'?: Array<string>;
|
|
866
879
|
}
|
|
@@ -2251,7 +2264,7 @@ export declare const CollectionsApiFp: (configuration?: Configuration) => {
|
|
|
2251
2264
|
* @param {*} [options] Override http request option.
|
|
2252
2265
|
* @throws {RequiredError}
|
|
2253
2266
|
*/
|
|
2254
|
-
seoOptimiseCollections(project: string, seoOptimiseCollectionsRequest?: SeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2267
|
+
seoOptimiseCollections(project: string, seoOptimiseCollectionsRequest?: SeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SeoOptimisePages202Response>>;
|
|
2255
2268
|
/**
|
|
2256
2269
|
*
|
|
2257
2270
|
* @summary Update website collection
|
|
@@ -2295,7 +2308,7 @@ export declare const CollectionsApiFactory: (configuration?: Configuration, base
|
|
|
2295
2308
|
* @param {*} [options] Override http request option.
|
|
2296
2309
|
* @throws {RequiredError}
|
|
2297
2310
|
*/
|
|
2298
|
-
seoOptimiseCollections(requestParameters: CollectionsApiSeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2311
|
+
seoOptimiseCollections(requestParameters: CollectionsApiSeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SeoOptimisePages202Response>;
|
|
2299
2312
|
/**
|
|
2300
2313
|
*
|
|
2301
2314
|
* @summary Update website collection
|
|
@@ -2449,7 +2462,7 @@ export declare class CollectionsApi extends BaseAPI {
|
|
|
2449
2462
|
* @throws {RequiredError}
|
|
2450
2463
|
* @memberof CollectionsApi
|
|
2451
2464
|
*/
|
|
2452
|
-
seoOptimiseCollections(requestParameters: CollectionsApiSeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
2465
|
+
seoOptimiseCollections(requestParameters: CollectionsApiSeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SeoOptimisePages202Response, any>>;
|
|
2453
2466
|
/**
|
|
2454
2467
|
*
|
|
2455
2468
|
* @summary Update website collection
|
|
@@ -2753,6 +2766,15 @@ export declare const PagesApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2753
2766
|
* @throws {RequiredError}
|
|
2754
2767
|
*/
|
|
2755
2768
|
listPages: (project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2769
|
+
/**
|
|
2770
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
2771
|
+
* @summary AI SEO optimise pages.
|
|
2772
|
+
* @param {string} project What project it is
|
|
2773
|
+
* @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
|
|
2774
|
+
* @param {*} [options] Override http request option.
|
|
2775
|
+
* @throws {RequiredError}
|
|
2776
|
+
*/
|
|
2777
|
+
seoOptimisePages: (project: string, seoOptimisePagesRequest?: SeoOptimisePagesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2756
2778
|
/**
|
|
2757
2779
|
*
|
|
2758
2780
|
* @summary Update website page
|
|
@@ -2792,6 +2814,15 @@ export declare const PagesApiFp: (configuration?: Configuration) => {
|
|
|
2792
2814
|
* @throws {RequiredError}
|
|
2793
2815
|
*/
|
|
2794
2816
|
listPages(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PagesResponse>>;
|
|
2817
|
+
/**
|
|
2818
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
2819
|
+
* @summary AI SEO optimise pages.
|
|
2820
|
+
* @param {string} project What project it is
|
|
2821
|
+
* @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
|
|
2822
|
+
* @param {*} [options] Override http request option.
|
|
2823
|
+
* @throws {RequiredError}
|
|
2824
|
+
*/
|
|
2825
|
+
seoOptimisePages(project: string, seoOptimisePagesRequest?: SeoOptimisePagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SeoOptimisePages202Response>>;
|
|
2795
2826
|
/**
|
|
2796
2827
|
*
|
|
2797
2828
|
* @summary Update website page
|
|
@@ -2828,6 +2859,14 @@ export declare const PagesApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2828
2859
|
* @throws {RequiredError}
|
|
2829
2860
|
*/
|
|
2830
2861
|
listPages(requestParameters: PagesApiListPagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<PagesResponse>;
|
|
2862
|
+
/**
|
|
2863
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
2864
|
+
* @summary AI SEO optimise pages.
|
|
2865
|
+
* @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
|
|
2866
|
+
* @param {*} [options] Override http request option.
|
|
2867
|
+
* @throws {RequiredError}
|
|
2868
|
+
*/
|
|
2869
|
+
seoOptimisePages(requestParameters: PagesApiSeoOptimisePagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<SeoOptimisePages202Response>;
|
|
2831
2870
|
/**
|
|
2832
2871
|
*
|
|
2833
2872
|
* @summary Update website page
|
|
@@ -2876,6 +2915,25 @@ export interface PagesApiListPagesRequest {
|
|
|
2876
2915
|
*/
|
|
2877
2916
|
readonly search?: string;
|
|
2878
2917
|
}
|
|
2918
|
+
/**
|
|
2919
|
+
* Request parameters for seoOptimisePages operation in PagesApi.
|
|
2920
|
+
* @export
|
|
2921
|
+
* @interface PagesApiSeoOptimisePagesRequest
|
|
2922
|
+
*/
|
|
2923
|
+
export interface PagesApiSeoOptimisePagesRequest {
|
|
2924
|
+
/**
|
|
2925
|
+
* What project it is
|
|
2926
|
+
* @type {string}
|
|
2927
|
+
* @memberof PagesApiSeoOptimisePages
|
|
2928
|
+
*/
|
|
2929
|
+
readonly project: string;
|
|
2930
|
+
/**
|
|
2931
|
+
* A set of page IDs to AI SEO optimise.
|
|
2932
|
+
* @type {SeoOptimisePagesRequest}
|
|
2933
|
+
* @memberof PagesApiSeoOptimisePages
|
|
2934
|
+
*/
|
|
2935
|
+
readonly seoOptimisePagesRequest?: SeoOptimisePagesRequest;
|
|
2936
|
+
}
|
|
2879
2937
|
/**
|
|
2880
2938
|
* Request parameters for updatePage operation in PagesApi.
|
|
2881
2939
|
* @export
|
|
@@ -2954,6 +3012,15 @@ export declare class PagesApi extends BaseAPI {
|
|
|
2954
3012
|
* @memberof PagesApi
|
|
2955
3013
|
*/
|
|
2956
3014
|
listPages(requestParameters: PagesApiListPagesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PagesResponse, any>>;
|
|
3015
|
+
/**
|
|
3016
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
3017
|
+
* @summary AI SEO optimise pages.
|
|
3018
|
+
* @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
|
|
3019
|
+
* @param {*} [options] Override http request option.
|
|
3020
|
+
* @throws {RequiredError}
|
|
3021
|
+
* @memberof PagesApi
|
|
3022
|
+
*/
|
|
3023
|
+
seoOptimisePages(requestParameters: PagesApiSeoOptimisePagesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SeoOptimisePages202Response, any>>;
|
|
2957
3024
|
/**
|
|
2958
3025
|
*
|
|
2959
3026
|
* @summary Update website page
|
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.13.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1232,6 +1232,45 @@ const PagesApiAxiosParamCreator = function (configuration) {
|
|
|
1232
1232
|
options: localVarRequestOptions,
|
|
1233
1233
|
};
|
|
1234
1234
|
}),
|
|
1235
|
+
/**
|
|
1236
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
1237
|
+
* @summary AI SEO optimise pages.
|
|
1238
|
+
* @param {string} project What project it is
|
|
1239
|
+
* @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
|
|
1240
|
+
* @param {*} [options] Override http request option.
|
|
1241
|
+
* @throws {RequiredError}
|
|
1242
|
+
*/
|
|
1243
|
+
seoOptimisePages: (project_1, seoOptimisePagesRequest_1, ...args_1) => __awaiter(this, [project_1, seoOptimisePagesRequest_1, ...args_1], void 0, function* (project, seoOptimisePagesRequest, options = {}) {
|
|
1244
|
+
// verify required parameter 'project' is not null or undefined
|
|
1245
|
+
(0, common_1.assertParamExists)('seoOptimisePages', 'project', project);
|
|
1246
|
+
const localVarPath = `/v1/website/pages/ai-seo-optimise`;
|
|
1247
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1248
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1249
|
+
let baseOptions;
|
|
1250
|
+
if (configuration) {
|
|
1251
|
+
baseOptions = configuration.baseOptions;
|
|
1252
|
+
}
|
|
1253
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1254
|
+
const localVarHeaderParameter = {};
|
|
1255
|
+
const localVarQueryParameter = {};
|
|
1256
|
+
// authentication session-oauth required
|
|
1257
|
+
// oauth required
|
|
1258
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1259
|
+
// authentication api-key required
|
|
1260
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1261
|
+
if (project !== undefined) {
|
|
1262
|
+
localVarQueryParameter['project'] = project;
|
|
1263
|
+
}
|
|
1264
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1265
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1266
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1267
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1268
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(seoOptimisePagesRequest, localVarRequestOptions, configuration);
|
|
1269
|
+
return {
|
|
1270
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1271
|
+
options: localVarRequestOptions,
|
|
1272
|
+
};
|
|
1273
|
+
}),
|
|
1235
1274
|
/**
|
|
1236
1275
|
*
|
|
1237
1276
|
* @summary Update website page
|
|
@@ -1355,6 +1394,23 @@ const PagesApiFp = function (configuration) {
|
|
|
1355
1394
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1356
1395
|
});
|
|
1357
1396
|
},
|
|
1397
|
+
/**
|
|
1398
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
1399
|
+
* @summary AI SEO optimise pages.
|
|
1400
|
+
* @param {string} project What project it is
|
|
1401
|
+
* @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
|
|
1402
|
+
* @param {*} [options] Override http request option.
|
|
1403
|
+
* @throws {RequiredError}
|
|
1404
|
+
*/
|
|
1405
|
+
seoOptimisePages(project, seoOptimisePagesRequest, options) {
|
|
1406
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1407
|
+
var _a, _b, _c;
|
|
1408
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.seoOptimisePages(project, seoOptimisePagesRequest, options);
|
|
1409
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1410
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PagesApi.seoOptimisePages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1411
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1412
|
+
});
|
|
1413
|
+
},
|
|
1358
1414
|
/**
|
|
1359
1415
|
*
|
|
1360
1416
|
* @summary Update website page
|
|
@@ -1413,6 +1469,16 @@ const PagesApiFactory = function (configuration, basePath, axios) {
|
|
|
1413
1469
|
listPages(requestParameters, options) {
|
|
1414
1470
|
return localVarFp.listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
1415
1471
|
},
|
|
1472
|
+
/**
|
|
1473
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
1474
|
+
* @summary AI SEO optimise pages.
|
|
1475
|
+
* @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
|
|
1476
|
+
* @param {*} [options] Override http request option.
|
|
1477
|
+
* @throws {RequiredError}
|
|
1478
|
+
*/
|
|
1479
|
+
seoOptimisePages(requestParameters, options) {
|
|
1480
|
+
return localVarFp.seoOptimisePages(requestParameters.project, requestParameters.seoOptimisePagesRequest, options).then((request) => request(axios, basePath));
|
|
1481
|
+
},
|
|
1416
1482
|
/**
|
|
1417
1483
|
*
|
|
1418
1484
|
* @summary Update website page
|
|
@@ -1454,6 +1520,17 @@ class PagesApi extends base_1.BaseAPI {
|
|
|
1454
1520
|
listPages(requestParameters, options) {
|
|
1455
1521
|
return (0, exports.PagesApiFp)(this.configuration).listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
1456
1522
|
}
|
|
1523
|
+
/**
|
|
1524
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
1525
|
+
* @summary AI SEO optimise pages.
|
|
1526
|
+
* @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
|
|
1527
|
+
* @param {*} [options] Override http request option.
|
|
1528
|
+
* @throws {RequiredError}
|
|
1529
|
+
* @memberof PagesApi
|
|
1530
|
+
*/
|
|
1531
|
+
seoOptimisePages(requestParameters, options) {
|
|
1532
|
+
return (0, exports.PagesApiFp)(this.configuration).seoOptimisePages(requestParameters.project, requestParameters.seoOptimisePagesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1533
|
+
}
|
|
1457
1534
|
/**
|
|
1458
1535
|
*
|
|
1459
1536
|
* @summary Update website page
|
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 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.13.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -841,26 +841,39 @@ export interface SeoMetadata {
|
|
|
841
841
|
/**
|
|
842
842
|
*
|
|
843
843
|
* @export
|
|
844
|
-
* @interface
|
|
844
|
+
* @interface SeoOptimiseCollectionsRequest
|
|
845
|
+
*/
|
|
846
|
+
export interface SeoOptimiseCollectionsRequest {
|
|
847
|
+
/**
|
|
848
|
+
* A set of collection IDs to AI SEO optimise.
|
|
849
|
+
* @type {Array<string>}
|
|
850
|
+
* @memberof SeoOptimiseCollectionsRequest
|
|
851
|
+
*/
|
|
852
|
+
'ids'?: Array<string>;
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
*
|
|
856
|
+
* @export
|
|
857
|
+
* @interface SeoOptimisePages202Response
|
|
845
858
|
*/
|
|
846
|
-
export interface
|
|
859
|
+
export interface SeoOptimisePages202Response {
|
|
847
860
|
/**
|
|
848
861
|
* A message describing the optimisation status
|
|
849
862
|
* @type {string}
|
|
850
|
-
* @memberof
|
|
863
|
+
* @memberof SeoOptimisePages202Response
|
|
851
864
|
*/
|
|
852
865
|
'message'?: string;
|
|
853
866
|
}
|
|
854
867
|
/**
|
|
855
868
|
*
|
|
856
869
|
* @export
|
|
857
|
-
* @interface
|
|
870
|
+
* @interface SeoOptimisePagesRequest
|
|
858
871
|
*/
|
|
859
|
-
export interface
|
|
872
|
+
export interface SeoOptimisePagesRequest {
|
|
860
873
|
/**
|
|
861
|
-
* A set of
|
|
874
|
+
* A set of page IDs to AI SEO optimise.
|
|
862
875
|
* @type {Array<string>}
|
|
863
|
-
* @memberof
|
|
876
|
+
* @memberof SeoOptimisePagesRequest
|
|
864
877
|
*/
|
|
865
878
|
'ids'?: Array<string>;
|
|
866
879
|
}
|
|
@@ -2251,7 +2264,7 @@ export declare const CollectionsApiFp: (configuration?: Configuration) => {
|
|
|
2251
2264
|
* @param {*} [options] Override http request option.
|
|
2252
2265
|
* @throws {RequiredError}
|
|
2253
2266
|
*/
|
|
2254
|
-
seoOptimiseCollections(project: string, seoOptimiseCollectionsRequest?: SeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2267
|
+
seoOptimiseCollections(project: string, seoOptimiseCollectionsRequest?: SeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SeoOptimisePages202Response>>;
|
|
2255
2268
|
/**
|
|
2256
2269
|
*
|
|
2257
2270
|
* @summary Update website collection
|
|
@@ -2295,7 +2308,7 @@ export declare const CollectionsApiFactory: (configuration?: Configuration, base
|
|
|
2295
2308
|
* @param {*} [options] Override http request option.
|
|
2296
2309
|
* @throws {RequiredError}
|
|
2297
2310
|
*/
|
|
2298
|
-
seoOptimiseCollections(requestParameters: CollectionsApiSeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2311
|
+
seoOptimiseCollections(requestParameters: CollectionsApiSeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SeoOptimisePages202Response>;
|
|
2299
2312
|
/**
|
|
2300
2313
|
*
|
|
2301
2314
|
* @summary Update website collection
|
|
@@ -2449,7 +2462,7 @@ export declare class CollectionsApi extends BaseAPI {
|
|
|
2449
2462
|
* @throws {RequiredError}
|
|
2450
2463
|
* @memberof CollectionsApi
|
|
2451
2464
|
*/
|
|
2452
|
-
seoOptimiseCollections(requestParameters: CollectionsApiSeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
2465
|
+
seoOptimiseCollections(requestParameters: CollectionsApiSeoOptimiseCollectionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SeoOptimisePages202Response, any>>;
|
|
2453
2466
|
/**
|
|
2454
2467
|
*
|
|
2455
2468
|
* @summary Update website collection
|
|
@@ -2753,6 +2766,15 @@ export declare const PagesApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2753
2766
|
* @throws {RequiredError}
|
|
2754
2767
|
*/
|
|
2755
2768
|
listPages: (project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2769
|
+
/**
|
|
2770
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
2771
|
+
* @summary AI SEO optimise pages.
|
|
2772
|
+
* @param {string} project What project it is
|
|
2773
|
+
* @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
|
|
2774
|
+
* @param {*} [options] Override http request option.
|
|
2775
|
+
* @throws {RequiredError}
|
|
2776
|
+
*/
|
|
2777
|
+
seoOptimisePages: (project: string, seoOptimisePagesRequest?: SeoOptimisePagesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2756
2778
|
/**
|
|
2757
2779
|
*
|
|
2758
2780
|
* @summary Update website page
|
|
@@ -2792,6 +2814,15 @@ export declare const PagesApiFp: (configuration?: Configuration) => {
|
|
|
2792
2814
|
* @throws {RequiredError}
|
|
2793
2815
|
*/
|
|
2794
2816
|
listPages(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PagesResponse>>;
|
|
2817
|
+
/**
|
|
2818
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
2819
|
+
* @summary AI SEO optimise pages.
|
|
2820
|
+
* @param {string} project What project it is
|
|
2821
|
+
* @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
|
|
2822
|
+
* @param {*} [options] Override http request option.
|
|
2823
|
+
* @throws {RequiredError}
|
|
2824
|
+
*/
|
|
2825
|
+
seoOptimisePages(project: string, seoOptimisePagesRequest?: SeoOptimisePagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SeoOptimisePages202Response>>;
|
|
2795
2826
|
/**
|
|
2796
2827
|
*
|
|
2797
2828
|
* @summary Update website page
|
|
@@ -2828,6 +2859,14 @@ export declare const PagesApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2828
2859
|
* @throws {RequiredError}
|
|
2829
2860
|
*/
|
|
2830
2861
|
listPages(requestParameters: PagesApiListPagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<PagesResponse>;
|
|
2862
|
+
/**
|
|
2863
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
2864
|
+
* @summary AI SEO optimise pages.
|
|
2865
|
+
* @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
|
|
2866
|
+
* @param {*} [options] Override http request option.
|
|
2867
|
+
* @throws {RequiredError}
|
|
2868
|
+
*/
|
|
2869
|
+
seoOptimisePages(requestParameters: PagesApiSeoOptimisePagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<SeoOptimisePages202Response>;
|
|
2831
2870
|
/**
|
|
2832
2871
|
*
|
|
2833
2872
|
* @summary Update website page
|
|
@@ -2876,6 +2915,25 @@ export interface PagesApiListPagesRequest {
|
|
|
2876
2915
|
*/
|
|
2877
2916
|
readonly search?: string;
|
|
2878
2917
|
}
|
|
2918
|
+
/**
|
|
2919
|
+
* Request parameters for seoOptimisePages operation in PagesApi.
|
|
2920
|
+
* @export
|
|
2921
|
+
* @interface PagesApiSeoOptimisePagesRequest
|
|
2922
|
+
*/
|
|
2923
|
+
export interface PagesApiSeoOptimisePagesRequest {
|
|
2924
|
+
/**
|
|
2925
|
+
* What project it is
|
|
2926
|
+
* @type {string}
|
|
2927
|
+
* @memberof PagesApiSeoOptimisePages
|
|
2928
|
+
*/
|
|
2929
|
+
readonly project: string;
|
|
2930
|
+
/**
|
|
2931
|
+
* A set of page IDs to AI SEO optimise.
|
|
2932
|
+
* @type {SeoOptimisePagesRequest}
|
|
2933
|
+
* @memberof PagesApiSeoOptimisePages
|
|
2934
|
+
*/
|
|
2935
|
+
readonly seoOptimisePagesRequest?: SeoOptimisePagesRequest;
|
|
2936
|
+
}
|
|
2879
2937
|
/**
|
|
2880
2938
|
* Request parameters for updatePage operation in PagesApi.
|
|
2881
2939
|
* @export
|
|
@@ -2954,6 +3012,15 @@ export declare class PagesApi extends BaseAPI {
|
|
|
2954
3012
|
* @memberof PagesApi
|
|
2955
3013
|
*/
|
|
2956
3014
|
listPages(requestParameters: PagesApiListPagesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PagesResponse, any>>;
|
|
3015
|
+
/**
|
|
3016
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
3017
|
+
* @summary AI SEO optimise pages.
|
|
3018
|
+
* @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
|
|
3019
|
+
* @param {*} [options] Override http request option.
|
|
3020
|
+
* @throws {RequiredError}
|
|
3021
|
+
* @memberof PagesApi
|
|
3022
|
+
*/
|
|
3023
|
+
seoOptimisePages(requestParameters: PagesApiSeoOptimisePagesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SeoOptimisePages202Response, any>>;
|
|
2957
3024
|
/**
|
|
2958
3025
|
*
|
|
2959
3026
|
* @summary Update website page
|
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.13.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1213,6 +1213,45 @@ export const PagesApiAxiosParamCreator = function (configuration) {
|
|
|
1213
1213
|
options: localVarRequestOptions,
|
|
1214
1214
|
};
|
|
1215
1215
|
}),
|
|
1216
|
+
/**
|
|
1217
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
1218
|
+
* @summary AI SEO optimise pages.
|
|
1219
|
+
* @param {string} project What project it is
|
|
1220
|
+
* @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
|
|
1221
|
+
* @param {*} [options] Override http request option.
|
|
1222
|
+
* @throws {RequiredError}
|
|
1223
|
+
*/
|
|
1224
|
+
seoOptimisePages: (project_1, seoOptimisePagesRequest_1, ...args_1) => __awaiter(this, [project_1, seoOptimisePagesRequest_1, ...args_1], void 0, function* (project, seoOptimisePagesRequest, options = {}) {
|
|
1225
|
+
// verify required parameter 'project' is not null or undefined
|
|
1226
|
+
assertParamExists('seoOptimisePages', 'project', project);
|
|
1227
|
+
const localVarPath = `/v1/website/pages/ai-seo-optimise`;
|
|
1228
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1229
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1230
|
+
let baseOptions;
|
|
1231
|
+
if (configuration) {
|
|
1232
|
+
baseOptions = configuration.baseOptions;
|
|
1233
|
+
}
|
|
1234
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1235
|
+
const localVarHeaderParameter = {};
|
|
1236
|
+
const localVarQueryParameter = {};
|
|
1237
|
+
// authentication session-oauth required
|
|
1238
|
+
// oauth required
|
|
1239
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1240
|
+
// authentication api-key required
|
|
1241
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1242
|
+
if (project !== undefined) {
|
|
1243
|
+
localVarQueryParameter['project'] = project;
|
|
1244
|
+
}
|
|
1245
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1246
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1247
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1248
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1249
|
+
localVarRequestOptions.data = serializeDataIfNeeded(seoOptimisePagesRequest, localVarRequestOptions, configuration);
|
|
1250
|
+
return {
|
|
1251
|
+
url: toPathString(localVarUrlObj),
|
|
1252
|
+
options: localVarRequestOptions,
|
|
1253
|
+
};
|
|
1254
|
+
}),
|
|
1216
1255
|
/**
|
|
1217
1256
|
*
|
|
1218
1257
|
* @summary Update website page
|
|
@@ -1335,6 +1374,23 @@ export const PagesApiFp = function (configuration) {
|
|
|
1335
1374
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1336
1375
|
});
|
|
1337
1376
|
},
|
|
1377
|
+
/**
|
|
1378
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
1379
|
+
* @summary AI SEO optimise pages.
|
|
1380
|
+
* @param {string} project What project it is
|
|
1381
|
+
* @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
|
|
1382
|
+
* @param {*} [options] Override http request option.
|
|
1383
|
+
* @throws {RequiredError}
|
|
1384
|
+
*/
|
|
1385
|
+
seoOptimisePages(project, seoOptimisePagesRequest, options) {
|
|
1386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1387
|
+
var _a, _b, _c;
|
|
1388
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.seoOptimisePages(project, seoOptimisePagesRequest, options);
|
|
1389
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1390
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PagesApi.seoOptimisePages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1391
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1392
|
+
});
|
|
1393
|
+
},
|
|
1338
1394
|
/**
|
|
1339
1395
|
*
|
|
1340
1396
|
* @summary Update website page
|
|
@@ -1392,6 +1448,16 @@ export const PagesApiFactory = function (configuration, basePath, axios) {
|
|
|
1392
1448
|
listPages(requestParameters, options) {
|
|
1393
1449
|
return localVarFp.listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
1394
1450
|
},
|
|
1451
|
+
/**
|
|
1452
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
1453
|
+
* @summary AI SEO optimise pages.
|
|
1454
|
+
* @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
|
|
1455
|
+
* @param {*} [options] Override http request option.
|
|
1456
|
+
* @throws {RequiredError}
|
|
1457
|
+
*/
|
|
1458
|
+
seoOptimisePages(requestParameters, options) {
|
|
1459
|
+
return localVarFp.seoOptimisePages(requestParameters.project, requestParameters.seoOptimisePagesRequest, options).then((request) => request(axios, basePath));
|
|
1460
|
+
},
|
|
1395
1461
|
/**
|
|
1396
1462
|
*
|
|
1397
1463
|
* @summary Update website page
|
|
@@ -1432,6 +1498,17 @@ export class PagesApi extends BaseAPI {
|
|
|
1432
1498
|
listPages(requestParameters, options) {
|
|
1433
1499
|
return PagesApiFp(this.configuration).listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
1434
1500
|
}
|
|
1501
|
+
/**
|
|
1502
|
+
* AI SEO optimises pages by a set of given IDs.
|
|
1503
|
+
* @summary AI SEO optimise pages.
|
|
1504
|
+
* @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
|
|
1505
|
+
* @param {*} [options] Override http request option.
|
|
1506
|
+
* @throws {RequiredError}
|
|
1507
|
+
* @memberof PagesApi
|
|
1508
|
+
*/
|
|
1509
|
+
seoOptimisePages(requestParameters, options) {
|
|
1510
|
+
return PagesApiFp(this.configuration).seoOptimisePages(requestParameters.project, requestParameters.seoOptimisePagesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1511
|
+
}
|
|
1435
1512
|
/**
|
|
1436
1513
|
*
|
|
1437
1514
|
* @summary Update website page
|
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
package/index.ts
CHANGED