@teemill/website 0.11.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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/website@0.11.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.11.0 --save
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.11.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).
@@ -859,6 +859,32 @@ export interface SeoMetadata {
859
859
  */
860
860
  'description'?: string | null;
861
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
+ }
862
888
  /**
863
889
  *
864
890
  * @export
@@ -2461,6 +2487,54 @@ export const CollectionsApiAxiosParamCreator = function (configuration?: Configu
2461
2487
  options: localVarRequestOptions,
2462
2488
  };
2463
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
+ },
2464
2538
  /**
2465
2539
  *
2466
2540
  * @summary Update website collection
@@ -2602,6 +2676,20 @@ export const CollectionsApiFp = function(configuration?: Configuration) {
2602
2676
  const localVarOperationServerBasePath = operationServerMap['CollectionsApi.listCollections']?.[localVarOperationServerIndex]?.url;
2603
2677
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2604
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
+ },
2605
2693
  /**
2606
2694
  *
2607
2695
  * @summary Update website collection
@@ -2654,6 +2742,16 @@ export const CollectionsApiFactory = function (configuration?: Configuration, ba
2654
2742
  listCollections(requestParameters: CollectionsApiListCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CollectionsResponse> {
2655
2743
  return localVarFp.listCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
2656
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
+ },
2657
2755
  /**
2658
2756
  *
2659
2757
  * @summary Update website collection
@@ -2712,6 +2810,27 @@ export interface CollectionsApiListCollectionsRequest {
2712
2810
  readonly search?: string
2713
2811
  }
2714
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
+
2715
2834
  /**
2716
2835
  * Request parameters for updateCollection operation in CollectionsApi.
2717
2836
  * @export
@@ -2801,6 +2920,18 @@ export class CollectionsApi extends BaseAPI {
2801
2920
  return CollectionsApiFp(this.configuration).listCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
2802
2921
  }
2803
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
+
2804
2935
  /**
2805
2936
  *
2806
2937
  * @summary Update website collection
package/base.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.11.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).
package/common.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.11.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).
package/configuration.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.11.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).
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.11.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).
@@ -838,6 +838,32 @@ export interface SeoMetadata {
838
838
  */
839
839
  'description'?: string | null;
840
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
+ }
841
867
  /**
842
868
  *
843
869
  * @export
@@ -2169,6 +2195,15 @@ export declare const CollectionsApiAxiosParamCreator: (configuration?: Configura
2169
2195
  * @throws {RequiredError}
2170
2196
  */
2171
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>;
2172
2207
  /**
2173
2208
  *
2174
2209
  * @summary Update website collection
@@ -2208,6 +2243,15 @@ export declare const CollectionsApiFp: (configuration?: Configuration) => {
2208
2243
  * @throws {RequiredError}
2209
2244
  */
2210
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>>;
2211
2255
  /**
2212
2256
  *
2213
2257
  * @summary Update website collection
@@ -2244,6 +2288,14 @@ export declare const CollectionsApiFactory: (configuration?: Configuration, base
2244
2288
  * @throws {RequiredError}
2245
2289
  */
2246
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>;
2247
2299
  /**
2248
2300
  *
2249
2301
  * @summary Update website collection
@@ -2292,6 +2344,25 @@ export interface CollectionsApiListCollectionsRequest {
2292
2344
  */
2293
2345
  readonly search?: string;
2294
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
+ }
2295
2366
  /**
2296
2367
  * Request parameters for updateCollection operation in CollectionsApi.
2297
2368
  * @export
@@ -2370,6 +2441,15 @@ export declare class CollectionsApi extends BaseAPI {
2370
2441
  * @memberof CollectionsApi
2371
2442
  */
2372
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>>;
2373
2453
  /**
2374
2454
  *
2375
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.11.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
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.11.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).
package/dist/base.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.11.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).
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.11.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, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
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
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.11.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).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.11.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).
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.11.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).
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.11.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).
@@ -838,6 +838,32 @@ export interface SeoMetadata {
838
838
  */
839
839
  'description'?: string | null;
840
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
+ }
841
867
  /**
842
868
  *
843
869
  * @export
@@ -2169,6 +2195,15 @@ export declare const CollectionsApiAxiosParamCreator: (configuration?: Configura
2169
2195
  * @throws {RequiredError}
2170
2196
  */
2171
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>;
2172
2207
  /**
2173
2208
  *
2174
2209
  * @summary Update website collection
@@ -2208,6 +2243,15 @@ export declare const CollectionsApiFp: (configuration?: Configuration) => {
2208
2243
  * @throws {RequiredError}
2209
2244
  */
2210
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>>;
2211
2255
  /**
2212
2256
  *
2213
2257
  * @summary Update website collection
@@ -2244,6 +2288,14 @@ export declare const CollectionsApiFactory: (configuration?: Configuration, base
2244
2288
  * @throws {RequiredError}
2245
2289
  */
2246
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>;
2247
2299
  /**
2248
2300
  *
2249
2301
  * @summary Update website collection
@@ -2292,6 +2344,25 @@ export interface CollectionsApiListCollectionsRequest {
2292
2344
  */
2293
2345
  readonly search?: string;
2294
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
+ }
2295
2366
  /**
2296
2367
  * Request parameters for updateCollection operation in CollectionsApi.
2297
2368
  * @export
@@ -2370,6 +2441,15 @@ export declare class CollectionsApi extends BaseAPI {
2370
2441
  * @memberof CollectionsApi
2371
2442
  */
2372
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>>;
2373
2453
  /**
2374
2454
  *
2375
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.11.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
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.11.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).
package/dist/esm/base.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.11.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).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.11.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, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
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>;
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.11.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).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.11.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).
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.11.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).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.11.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).
package/dist/esm/index.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.11.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).
package/dist/index.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.11.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).
package/dist/index.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.11.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).
package/index.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.11.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).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/website",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "OpenAPI client for @teemill/website",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {