@teemill/website 0.11.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 +250 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +148 -1
- package/dist/api.js +155 -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 +148 -1
- package/dist/esm/api.js +155 -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/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).
|
|
@@ -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
|
|
@@ -1136,6 +1213,45 @@ export const PagesApiAxiosParamCreator = function (configuration) {
|
|
|
1136
1213
|
options: localVarRequestOptions,
|
|
1137
1214
|
};
|
|
1138
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
|
+
}),
|
|
1139
1255
|
/**
|
|
1140
1256
|
*
|
|
1141
1257
|
* @summary Update website page
|
|
@@ -1258,6 +1374,23 @@ export const PagesApiFp = function (configuration) {
|
|
|
1258
1374
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1259
1375
|
});
|
|
1260
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
|
+
},
|
|
1261
1394
|
/**
|
|
1262
1395
|
*
|
|
1263
1396
|
* @summary Update website page
|
|
@@ -1315,6 +1448,16 @@ export const PagesApiFactory = function (configuration, basePath, axios) {
|
|
|
1315
1448
|
listPages(requestParameters, options) {
|
|
1316
1449
|
return localVarFp.listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
1317
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
|
+
},
|
|
1318
1461
|
/**
|
|
1319
1462
|
*
|
|
1320
1463
|
* @summary Update website page
|
|
@@ -1355,6 +1498,17 @@ export class PagesApi extends BaseAPI {
|
|
|
1355
1498
|
listPages(requestParameters, options) {
|
|
1356
1499
|
return PagesApiFp(this.configuration).listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
1357
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
|
+
}
|
|
1358
1512
|
/**
|
|
1359
1513
|
*
|
|
1360
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
|
@@ -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).
|
|
@@ -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