@teemill/website 0.17.0 → 0.19.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/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.17.0
7
+ * The version of the OpenAPI document: 0.19.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -380,6 +380,19 @@ export interface CreateSearchRedirectRequest {
380
380
  */
381
381
  'destinationUrl': string;
382
382
  }
383
+ /**
384
+ *
385
+ * @export
386
+ * @interface ExportPages202Response
387
+ */
388
+ export interface ExportPages202Response {
389
+ /**
390
+ * A message describing the export status
391
+ * @type {string}
392
+ * @memberof ExportPages202Response
393
+ */
394
+ 'message'?: string;
395
+ }
383
396
  /**
384
397
  * Image description
385
398
  * @export
@@ -554,6 +567,19 @@ export interface MetaImage {
554
567
  */
555
568
  'alt'?: string;
556
569
  }
570
+ /**
571
+ *
572
+ * @export
573
+ * @interface ModerateReviewRequest
574
+ */
575
+ export interface ModerateReviewRequest {
576
+ /**
577
+ * Whether the review has been approved or not. If the review is not enabled, it will not be visible to the public.
578
+ * @type {boolean}
579
+ * @memberof ModerateReviewRequest
580
+ */
581
+ 'enabled'?: boolean;
582
+ }
557
583
  /**
558
584
  *
559
585
  * @export
@@ -920,6 +946,168 @@ export interface ProductWarehouseProduct {
920
946
  */
921
947
  'gfnProductRef'?: string;
922
948
  }
949
+ /**
950
+ *
951
+ * @export
952
+ * @interface Review
953
+ */
954
+ export interface Review {
955
+ /**
956
+ * Unique object identifier
957
+ * @type {string}
958
+ * @memberof Review
959
+ */
960
+ 'id': string;
961
+ /**
962
+ * Text content of the review
963
+ * @type {string}
964
+ * @memberof Review
965
+ */
966
+ 'text': string;
967
+ /**
968
+ *
969
+ * @type {ReviewAuthor}
970
+ * @memberof Review
971
+ */
972
+ 'author'?: ReviewAuthor;
973
+ /**
974
+ * Rating of the review
975
+ * @type {number}
976
+ * @memberof Review
977
+ */
978
+ 'rating'?: number;
979
+ /**
980
+ * Google\'s sentiment analysis score
981
+ * @type {number}
982
+ * @memberof Review
983
+ */
984
+ 'sentiment'?: number;
985
+ /**
986
+ * Whether the review has been approved or not. If the review is not enabled, it will not be visible to the public.
987
+ * @type {boolean}
988
+ * @memberof Review
989
+ */
990
+ 'enabled': boolean;
991
+ /**
992
+ *
993
+ * @type {string}
994
+ * @memberof Review
995
+ */
996
+ 'createdAt'?: string;
997
+ /**
998
+ *
999
+ * @type {Array<ReviewImagesInner>}
1000
+ * @memberof Review
1001
+ */
1002
+ 'images'?: Array<ReviewImagesInner>;
1003
+ /**
1004
+ *
1005
+ * @type {Array<ReviewReply>}
1006
+ * @memberof Review
1007
+ */
1008
+ 'replies'?: Array<ReviewReply>;
1009
+ }
1010
+ /**
1011
+ *
1012
+ * @export
1013
+ * @interface ReviewAuthor
1014
+ */
1015
+ export interface ReviewAuthor {
1016
+ /**
1017
+ * Name of the review\'s author
1018
+ * @type {string}
1019
+ * @memberof ReviewAuthor
1020
+ */
1021
+ 'name'?: string;
1022
+ /**
1023
+ * Email of the review\'s author
1024
+ * @type {string}
1025
+ * @memberof ReviewAuthor
1026
+ */
1027
+ 'email'?: string;
1028
+ }
1029
+ /**
1030
+ *
1031
+ * @export
1032
+ * @interface ReviewImagesInner
1033
+ */
1034
+ export interface ReviewImagesInner {
1035
+ /**
1036
+ * URL of the image
1037
+ * @type {string}
1038
+ * @memberof ReviewImagesInner
1039
+ */
1040
+ 'src'?: string;
1041
+ /**
1042
+ * Alternative text for the image
1043
+ * @type {string}
1044
+ * @memberof ReviewImagesInner
1045
+ */
1046
+ 'alt'?: string;
1047
+ }
1048
+ /**
1049
+ *
1050
+ * @export
1051
+ * @interface ReviewReply
1052
+ */
1053
+ export interface ReviewReply {
1054
+ /**
1055
+ * Unique object identifier
1056
+ * @type {string}
1057
+ * @memberof ReviewReply
1058
+ */
1059
+ 'id': string;
1060
+ /**
1061
+ * Text content of the reply
1062
+ * @type {string}
1063
+ * @memberof ReviewReply
1064
+ */
1065
+ 'text': string;
1066
+ /**
1067
+ *
1068
+ * @type {ReviewReplyAuthor}
1069
+ * @memberof ReviewReply
1070
+ */
1071
+ 'author'?: ReviewReplyAuthor;
1072
+ /**
1073
+ *
1074
+ * @type {string}
1075
+ * @memberof ReviewReply
1076
+ */
1077
+ 'createdAt'?: string;
1078
+ }
1079
+ /**
1080
+ *
1081
+ * @export
1082
+ * @interface ReviewReplyAuthor
1083
+ */
1084
+ export interface ReviewReplyAuthor {
1085
+ /**
1086
+ * Name of the reply\'s author
1087
+ * @type {string}
1088
+ * @memberof ReviewReplyAuthor
1089
+ */
1090
+ 'name'?: string;
1091
+ }
1092
+ /**
1093
+ *
1094
+ * @export
1095
+ * @interface ReviewsResponse
1096
+ */
1097
+ export interface ReviewsResponse {
1098
+ /**
1099
+ *
1100
+ * @type {Array<Review>}
1101
+ * @memberof ReviewsResponse
1102
+ */
1103
+ 'reviews'?: Array<Review>;
1104
+ /**
1105
+ * The token referencing the next page number
1106
+ * @type {number}
1107
+ * @memberof ReviewsResponse
1108
+ */
1109
+ 'nextPageToken'?: number | null;
1110
+ }
923
1111
  /**
924
1112
  *
925
1113
  * @export
@@ -2243,6 +2431,50 @@ export interface Video {
2243
2431
  */
2244
2432
  export const BlogsApiAxiosParamCreator = function (configuration?: Configuration) {
2245
2433
  return {
2434
+ /**
2435
+ * Export blogs as a CSV file.
2436
+ * @summary Export blogs
2437
+ * @param {string} project What project it is
2438
+ * @param {*} [options] Override http request option.
2439
+ * @throws {RequiredError}
2440
+ */
2441
+ exportBlogs: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2442
+ // verify required parameter 'project' is not null or undefined
2443
+ assertParamExists('exportBlogs', 'project', project)
2444
+ const localVarPath = `/v1/website/blogs/export`;
2445
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2446
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2447
+ let baseOptions;
2448
+ if (configuration) {
2449
+ baseOptions = configuration.baseOptions;
2450
+ }
2451
+
2452
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2453
+ const localVarHeaderParameter = {} as any;
2454
+ const localVarQueryParameter = {} as any;
2455
+
2456
+ // authentication session-oauth required
2457
+ // oauth required
2458
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
2459
+
2460
+ // authentication api-key required
2461
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2462
+
2463
+ if (project !== undefined) {
2464
+ localVarQueryParameter['project'] = project;
2465
+ }
2466
+
2467
+
2468
+
2469
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2470
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2471
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2472
+
2473
+ return {
2474
+ url: toPathString(localVarUrlObj),
2475
+ options: localVarRequestOptions,
2476
+ };
2477
+ },
2246
2478
  /**
2247
2479
  *
2248
2480
  * @summary Get website blog post
@@ -2475,6 +2707,19 @@ export const BlogsApiAxiosParamCreator = function (configuration?: Configuration
2475
2707
  export const BlogsApiFp = function(configuration?: Configuration) {
2476
2708
  const localVarAxiosParamCreator = BlogsApiAxiosParamCreator(configuration)
2477
2709
  return {
2710
+ /**
2711
+ * Export blogs as a CSV file.
2712
+ * @summary Export blogs
2713
+ * @param {string} project What project it is
2714
+ * @param {*} [options] Override http request option.
2715
+ * @throws {RequiredError}
2716
+ */
2717
+ async exportBlogs(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
2718
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportBlogs(project, options);
2719
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2720
+ const localVarOperationServerBasePath = operationServerMap['BlogsApi.exportBlogs']?.[localVarOperationServerIndex]?.url;
2721
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2722
+ },
2478
2723
  /**
2479
2724
  *
2480
2725
  * @summary Get website blog post
@@ -2547,6 +2792,16 @@ export const BlogsApiFp = function(configuration?: Configuration) {
2547
2792
  export const BlogsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2548
2793
  const localVarFp = BlogsApiFp(configuration)
2549
2794
  return {
2795
+ /**
2796
+ * Export blogs as a CSV file.
2797
+ * @summary Export blogs
2798
+ * @param {BlogsApiExportBlogsRequest} requestParameters Request parameters.
2799
+ * @param {*} [options] Override http request option.
2800
+ * @throws {RequiredError}
2801
+ */
2802
+ exportBlogs(requestParameters: BlogsApiExportBlogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
2803
+ return localVarFp.exportBlogs(requestParameters.project, options).then((request) => request(axios, basePath));
2804
+ },
2550
2805
  /**
2551
2806
  *
2552
2807
  * @summary Get website blog post
@@ -2590,6 +2845,20 @@ export const BlogsApiFactory = function (configuration?: Configuration, basePath
2590
2845
  };
2591
2846
  };
2592
2847
 
2848
+ /**
2849
+ * Request parameters for exportBlogs operation in BlogsApi.
2850
+ * @export
2851
+ * @interface BlogsApiExportBlogsRequest
2852
+ */
2853
+ export interface BlogsApiExportBlogsRequest {
2854
+ /**
2855
+ * What project it is
2856
+ * @type {string}
2857
+ * @memberof BlogsApiExportBlogs
2858
+ */
2859
+ readonly project: string
2860
+ }
2861
+
2593
2862
  /**
2594
2863
  * Request parameters for getBlog operation in BlogsApi.
2595
2864
  * @export
@@ -2723,6 +2992,18 @@ export interface BlogsApiUpdateBlogsRequest {
2723
2992
  * @extends {BaseAPI}
2724
2993
  */
2725
2994
  export class BlogsApi extends BaseAPI {
2995
+ /**
2996
+ * Export blogs as a CSV file.
2997
+ * @summary Export blogs
2998
+ * @param {BlogsApiExportBlogsRequest} requestParameters Request parameters.
2999
+ * @param {*} [options] Override http request option.
3000
+ * @throws {RequiredError}
3001
+ * @memberof BlogsApi
3002
+ */
3003
+ public exportBlogs(requestParameters: BlogsApiExportBlogsRequest, options?: RawAxiosRequestConfig) {
3004
+ return BlogsApiFp(this.configuration).exportBlogs(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
3005
+ }
3006
+
2726
3007
  /**
2727
3008
  *
2728
3009
  * @summary Get website blog post
@@ -2780,6 +3061,50 @@ export class BlogsApi extends BaseAPI {
2780
3061
  */
2781
3062
  export const CollectionsApiAxiosParamCreator = function (configuration?: Configuration) {
2782
3063
  return {
3064
+ /**
3065
+ * Export collections as a CSV file.
3066
+ * @summary Export collections
3067
+ * @param {string} project What project it is
3068
+ * @param {*} [options] Override http request option.
3069
+ * @throws {RequiredError}
3070
+ */
3071
+ exportCollections: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3072
+ // verify required parameter 'project' is not null or undefined
3073
+ assertParamExists('exportCollections', 'project', project)
3074
+ const localVarPath = `/v1/website/collections/export`;
3075
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3076
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3077
+ let baseOptions;
3078
+ if (configuration) {
3079
+ baseOptions = configuration.baseOptions;
3080
+ }
3081
+
3082
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3083
+ const localVarHeaderParameter = {} as any;
3084
+ const localVarQueryParameter = {} as any;
3085
+
3086
+ // authentication session-oauth required
3087
+ // oauth required
3088
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3089
+
3090
+ // authentication api-key required
3091
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3092
+
3093
+ if (project !== undefined) {
3094
+ localVarQueryParameter['project'] = project;
3095
+ }
3096
+
3097
+
3098
+
3099
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3100
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3101
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3102
+
3103
+ return {
3104
+ url: toPathString(localVarUrlObj),
3105
+ options: localVarRequestOptions,
3106
+ };
3107
+ },
2783
3108
  /**
2784
3109
  *
2785
3110
  * @summary Get website collection
@@ -2889,7 +3214,7 @@ export const CollectionsApiAxiosParamCreator = function (configuration?: Configu
2889
3214
  },
2890
3215
  /**
2891
3216
  * AI SEO optimises collections by a set of given IDs.
2892
- * @summary AI SEO optimise collections.
3217
+ * @summary AI SEO optimise collections
2893
3218
  * @param {string} project What project it is
2894
3219
  * @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
2895
3220
  * @param {*} [options] Override http request option.
@@ -3060,6 +3385,19 @@ export const CollectionsApiAxiosParamCreator = function (configuration?: Configu
3060
3385
  export const CollectionsApiFp = function(configuration?: Configuration) {
3061
3386
  const localVarAxiosParamCreator = CollectionsApiAxiosParamCreator(configuration)
3062
3387
  return {
3388
+ /**
3389
+ * Export collections as a CSV file.
3390
+ * @summary Export collections
3391
+ * @param {string} project What project it is
3392
+ * @param {*} [options] Override http request option.
3393
+ * @throws {RequiredError}
3394
+ */
3395
+ async exportCollections(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
3396
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportCollections(project, options);
3397
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3398
+ const localVarOperationServerBasePath = operationServerMap['CollectionsApi.exportCollections']?.[localVarOperationServerIndex]?.url;
3399
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3400
+ },
3063
3401
  /**
3064
3402
  *
3065
3403
  * @summary Get website collection
@@ -3092,7 +3430,7 @@ export const CollectionsApiFp = function(configuration?: Configuration) {
3092
3430
  },
3093
3431
  /**
3094
3432
  * AI SEO optimises collections by a set of given IDs.
3095
- * @summary AI SEO optimise collections.
3433
+ * @summary AI SEO optimise collections
3096
3434
  * @param {string} project What project it is
3097
3435
  * @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
3098
3436
  * @param {*} [options] Override http request option.
@@ -3146,6 +3484,16 @@ export const CollectionsApiFp = function(configuration?: Configuration) {
3146
3484
  export const CollectionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3147
3485
  const localVarFp = CollectionsApiFp(configuration)
3148
3486
  return {
3487
+ /**
3488
+ * Export collections as a CSV file.
3489
+ * @summary Export collections
3490
+ * @param {CollectionsApiExportCollectionsRequest} requestParameters Request parameters.
3491
+ * @param {*} [options] Override http request option.
3492
+ * @throws {RequiredError}
3493
+ */
3494
+ exportCollections(requestParameters: CollectionsApiExportCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
3495
+ return localVarFp.exportCollections(requestParameters.project, options).then((request) => request(axios, basePath));
3496
+ },
3149
3497
  /**
3150
3498
  *
3151
3499
  * @summary Get website collection
@@ -3168,7 +3516,7 @@ export const CollectionsApiFactory = function (configuration?: Configuration, ba
3168
3516
  },
3169
3517
  /**
3170
3518
  * AI SEO optimises collections by a set of given IDs.
3171
- * @summary AI SEO optimise collections.
3519
+ * @summary AI SEO optimise collections
3172
3520
  * @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
3173
3521
  * @param {*} [options] Override http request option.
3174
3522
  * @throws {RequiredError}
@@ -3199,6 +3547,20 @@ export const CollectionsApiFactory = function (configuration?: Configuration, ba
3199
3547
  };
3200
3548
  };
3201
3549
 
3550
+ /**
3551
+ * Request parameters for exportCollections operation in CollectionsApi.
3552
+ * @export
3553
+ * @interface CollectionsApiExportCollectionsRequest
3554
+ */
3555
+ export interface CollectionsApiExportCollectionsRequest {
3556
+ /**
3557
+ * What project it is
3558
+ * @type {string}
3559
+ * @memberof CollectionsApiExportCollections
3560
+ */
3561
+ readonly project: string
3562
+ }
3563
+
3202
3564
  /**
3203
3565
  * Request parameters for getCollection operation in CollectionsApi.
3204
3566
  * @export
@@ -3354,7 +3716,19 @@ export interface CollectionsApiUpdateCollectionsRequest {
3354
3716
  */
3355
3717
  export class CollectionsApi extends BaseAPI {
3356
3718
  /**
3357
- *
3719
+ * Export collections as a CSV file.
3720
+ * @summary Export collections
3721
+ * @param {CollectionsApiExportCollectionsRequest} requestParameters Request parameters.
3722
+ * @param {*} [options] Override http request option.
3723
+ * @throws {RequiredError}
3724
+ * @memberof CollectionsApi
3725
+ */
3726
+ public exportCollections(requestParameters: CollectionsApiExportCollectionsRequest, options?: RawAxiosRequestConfig) {
3727
+ return CollectionsApiFp(this.configuration).exportCollections(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
3728
+ }
3729
+
3730
+ /**
3731
+ *
3358
3732
  * @summary Get website collection
3359
3733
  * @param {CollectionsApiGetCollectionRequest} requestParameters Request parameters.
3360
3734
  * @param {*} [options] Override http request option.
@@ -3379,7 +3753,7 @@ export class CollectionsApi extends BaseAPI {
3379
3753
 
3380
3754
  /**
3381
3755
  * AI SEO optimises collections by a set of given IDs.
3382
- * @summary AI SEO optimise collections.
3756
+ * @summary AI SEO optimise collections
3383
3757
  * @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
3384
3758
  * @param {*} [options] Override http request option.
3385
3759
  * @throws {RequiredError}
@@ -3920,6 +4294,50 @@ export class MenuApi extends BaseAPI {
3920
4294
  */
3921
4295
  export const PagesApiAxiosParamCreator = function (configuration?: Configuration) {
3922
4296
  return {
4297
+ /**
4298
+ * Export pages as a CSV file.
4299
+ * @summary Export pages
4300
+ * @param {string} project What project it is
4301
+ * @param {*} [options] Override http request option.
4302
+ * @throws {RequiredError}
4303
+ */
4304
+ exportPages: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4305
+ // verify required parameter 'project' is not null or undefined
4306
+ assertParamExists('exportPages', 'project', project)
4307
+ const localVarPath = `/v1/website/pages/export`;
4308
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4309
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4310
+ let baseOptions;
4311
+ if (configuration) {
4312
+ baseOptions = configuration.baseOptions;
4313
+ }
4314
+
4315
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4316
+ const localVarHeaderParameter = {} as any;
4317
+ const localVarQueryParameter = {} as any;
4318
+
4319
+ // authentication session-oauth required
4320
+ // oauth required
4321
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
4322
+
4323
+ // authentication api-key required
4324
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4325
+
4326
+ if (project !== undefined) {
4327
+ localVarQueryParameter['project'] = project;
4328
+ }
4329
+
4330
+
4331
+
4332
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4333
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4334
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4335
+
4336
+ return {
4337
+ url: toPathString(localVarUrlObj),
4338
+ options: localVarRequestOptions,
4339
+ };
4340
+ },
3923
4341
  /**
3924
4342
  *
3925
4343
  * @summary Get website page
@@ -4029,7 +4447,7 @@ export const PagesApiAxiosParamCreator = function (configuration?: Configuration
4029
4447
  },
4030
4448
  /**
4031
4449
  * AI SEO optimises pages by a set of given IDs.
4032
- * @summary AI SEO optimise pages.
4450
+ * @summary AI SEO optimise pages
4033
4451
  * @param {string} project What project it is
4034
4452
  * @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
4035
4453
  * @param {*} [options] Override http request option.
@@ -4200,6 +4618,19 @@ export const PagesApiAxiosParamCreator = function (configuration?: Configuration
4200
4618
  export const PagesApiFp = function(configuration?: Configuration) {
4201
4619
  const localVarAxiosParamCreator = PagesApiAxiosParamCreator(configuration)
4202
4620
  return {
4621
+ /**
4622
+ * Export pages as a CSV file.
4623
+ * @summary Export pages
4624
+ * @param {string} project What project it is
4625
+ * @param {*} [options] Override http request option.
4626
+ * @throws {RequiredError}
4627
+ */
4628
+ async exportPages(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
4629
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportPages(project, options);
4630
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4631
+ const localVarOperationServerBasePath = operationServerMap['PagesApi.exportPages']?.[localVarOperationServerIndex]?.url;
4632
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4633
+ },
4203
4634
  /**
4204
4635
  *
4205
4636
  * @summary Get website page
@@ -4232,7 +4663,7 @@ export const PagesApiFp = function(configuration?: Configuration) {
4232
4663
  },
4233
4664
  /**
4234
4665
  * AI SEO optimises pages by a set of given IDs.
4235
- * @summary AI SEO optimise pages.
4666
+ * @summary AI SEO optimise pages
4236
4667
  * @param {string} project What project it is
4237
4668
  * @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
4238
4669
  * @param {*} [options] Override http request option.
@@ -4286,6 +4717,16 @@ export const PagesApiFp = function(configuration?: Configuration) {
4286
4717
  export const PagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4287
4718
  const localVarFp = PagesApiFp(configuration)
4288
4719
  return {
4720
+ /**
4721
+ * Export pages as a CSV file.
4722
+ * @summary Export pages
4723
+ * @param {PagesApiExportPagesRequest} requestParameters Request parameters.
4724
+ * @param {*} [options] Override http request option.
4725
+ * @throws {RequiredError}
4726
+ */
4727
+ exportPages(requestParameters: PagesApiExportPagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
4728
+ return localVarFp.exportPages(requestParameters.project, options).then((request) => request(axios, basePath));
4729
+ },
4289
4730
  /**
4290
4731
  *
4291
4732
  * @summary Get website page
@@ -4308,7 +4749,7 @@ export const PagesApiFactory = function (configuration?: Configuration, basePath
4308
4749
  },
4309
4750
  /**
4310
4751
  * AI SEO optimises pages by a set of given IDs.
4311
- * @summary AI SEO optimise pages.
4752
+ * @summary AI SEO optimise pages
4312
4753
  * @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
4313
4754
  * @param {*} [options] Override http request option.
4314
4755
  * @throws {RequiredError}
@@ -4339,6 +4780,20 @@ export const PagesApiFactory = function (configuration?: Configuration, basePath
4339
4780
  };
4340
4781
  };
4341
4782
 
4783
+ /**
4784
+ * Request parameters for exportPages operation in PagesApi.
4785
+ * @export
4786
+ * @interface PagesApiExportPagesRequest
4787
+ */
4788
+ export interface PagesApiExportPagesRequest {
4789
+ /**
4790
+ * What project it is
4791
+ * @type {string}
4792
+ * @memberof PagesApiExportPages
4793
+ */
4794
+ readonly project: string
4795
+ }
4796
+
4342
4797
  /**
4343
4798
  * Request parameters for getPage operation in PagesApi.
4344
4799
  * @export
@@ -4493,6 +4948,18 @@ export interface PagesApiUpdatePagesRequest {
4493
4948
  * @extends {BaseAPI}
4494
4949
  */
4495
4950
  export class PagesApi extends BaseAPI {
4951
+ /**
4952
+ * Export pages as a CSV file.
4953
+ * @summary Export pages
4954
+ * @param {PagesApiExportPagesRequest} requestParameters Request parameters.
4955
+ * @param {*} [options] Override http request option.
4956
+ * @throws {RequiredError}
4957
+ * @memberof PagesApi
4958
+ */
4959
+ public exportPages(requestParameters: PagesApiExportPagesRequest, options?: RawAxiosRequestConfig) {
4960
+ return PagesApiFp(this.configuration).exportPages(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
4961
+ }
4962
+
4496
4963
  /**
4497
4964
  *
4498
4965
  * @summary Get website page
@@ -4519,7 +4986,7 @@ export class PagesApi extends BaseAPI {
4519
4986
 
4520
4987
  /**
4521
4988
  * AI SEO optimises pages by a set of given IDs.
4522
- * @summary AI SEO optimise pages.
4989
+ * @summary AI SEO optimise pages
4523
4990
  * @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
4524
4991
  * @param {*} [options] Override http request option.
4525
4992
  * @throws {RequiredError}
@@ -4874,6 +5341,399 @@ export class PaymentApi extends BaseAPI {
4874
5341
 
4875
5342
 
4876
5343
 
5344
+ /**
5345
+ * ReviewsApi - axios parameter creator
5346
+ * @export
5347
+ */
5348
+ export const ReviewsApiAxiosParamCreator = function (configuration?: Configuration) {
5349
+ return {
5350
+ /**
5351
+ *
5352
+ * @summary Get review
5353
+ * @param {string} project What project it is
5354
+ * @param {string} reviewId Review\&#39;s unique identifier
5355
+ * @param {*} [options] Override http request option.
5356
+ * @throws {RequiredError}
5357
+ */
5358
+ getReview: async (project: string, reviewId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5359
+ // verify required parameter 'project' is not null or undefined
5360
+ assertParamExists('getReview', 'project', project)
5361
+ // verify required parameter 'reviewId' is not null or undefined
5362
+ assertParamExists('getReview', 'reviewId', reviewId)
5363
+ const localVarPath = `/v1/website/reviews/{reviewId}`
5364
+ .replace(`{${"reviewId"}}`, encodeURIComponent(String(reviewId)));
5365
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5366
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5367
+ let baseOptions;
5368
+ if (configuration) {
5369
+ baseOptions = configuration.baseOptions;
5370
+ }
5371
+
5372
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5373
+ const localVarHeaderParameter = {} as any;
5374
+ const localVarQueryParameter = {} as any;
5375
+
5376
+ // authentication session-oauth required
5377
+ // oauth required
5378
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
5379
+
5380
+ // authentication api-key required
5381
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5382
+
5383
+ if (project !== undefined) {
5384
+ localVarQueryParameter['project'] = project;
5385
+ }
5386
+
5387
+
5388
+
5389
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5390
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5391
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5392
+
5393
+ return {
5394
+ url: toPathString(localVarUrlObj),
5395
+ options: localVarRequestOptions,
5396
+ };
5397
+ },
5398
+ /**
5399
+ *
5400
+ * @summary List Reviews
5401
+ * @param {string} project What project it is
5402
+ * @param {number} [pageToken] Page reference token
5403
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
5404
+ * @param {string} [search] Search term to filter results
5405
+ * @param {*} [options] Override http request option.
5406
+ * @throws {RequiredError}
5407
+ */
5408
+ listReviews: async (project: string, pageToken?: number, pageSize?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5409
+ // verify required parameter 'project' is not null or undefined
5410
+ assertParamExists('listReviews', 'project', project)
5411
+ const localVarPath = `/v1/website/reviews`;
5412
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5413
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5414
+ let baseOptions;
5415
+ if (configuration) {
5416
+ baseOptions = configuration.baseOptions;
5417
+ }
5418
+
5419
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5420
+ const localVarHeaderParameter = {} as any;
5421
+ const localVarQueryParameter = {} as any;
5422
+
5423
+ // authentication session-oauth required
5424
+ // oauth required
5425
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
5426
+
5427
+ // authentication api-key required
5428
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5429
+
5430
+ if (project !== undefined) {
5431
+ localVarQueryParameter['project'] = project;
5432
+ }
5433
+
5434
+ if (pageToken !== undefined) {
5435
+ localVarQueryParameter['pageToken'] = pageToken;
5436
+ }
5437
+
5438
+ if (pageSize !== undefined) {
5439
+ localVarQueryParameter['pageSize'] = pageSize;
5440
+ }
5441
+
5442
+ if (search !== undefined) {
5443
+ localVarQueryParameter['search'] = search;
5444
+ }
5445
+
5446
+
5447
+
5448
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5449
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5450
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5451
+
5452
+ return {
5453
+ url: toPathString(localVarUrlObj),
5454
+ options: localVarRequestOptions,
5455
+ };
5456
+ },
5457
+ /**
5458
+ *
5459
+ * @summary Moderate review
5460
+ * @param {string} project What project it is
5461
+ * @param {string} reviewId Review\&#39;s unique identifier
5462
+ * @param {ModerateReviewRequest} [moderateReviewRequest]
5463
+ * @param {*} [options] Override http request option.
5464
+ * @throws {RequiredError}
5465
+ */
5466
+ moderateReview: async (project: string, reviewId: string, moderateReviewRequest?: ModerateReviewRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5467
+ // verify required parameter 'project' is not null or undefined
5468
+ assertParamExists('moderateReview', 'project', project)
5469
+ // verify required parameter 'reviewId' is not null or undefined
5470
+ assertParamExists('moderateReview', 'reviewId', reviewId)
5471
+ const localVarPath = `/v1/website/reviews/{reviewId}/moderate`
5472
+ .replace(`{${"reviewId"}}`, encodeURIComponent(String(reviewId)));
5473
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5474
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5475
+ let baseOptions;
5476
+ if (configuration) {
5477
+ baseOptions = configuration.baseOptions;
5478
+ }
5479
+
5480
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
5481
+ const localVarHeaderParameter = {} as any;
5482
+ const localVarQueryParameter = {} as any;
5483
+
5484
+ // authentication session-oauth required
5485
+ // oauth required
5486
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
5487
+
5488
+ // authentication api-key required
5489
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5490
+
5491
+ if (project !== undefined) {
5492
+ localVarQueryParameter['project'] = project;
5493
+ }
5494
+
5495
+
5496
+
5497
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5498
+
5499
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5500
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5501
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5502
+ localVarRequestOptions.data = serializeDataIfNeeded(moderateReviewRequest, localVarRequestOptions, configuration)
5503
+
5504
+ return {
5505
+ url: toPathString(localVarUrlObj),
5506
+ options: localVarRequestOptions,
5507
+ };
5508
+ },
5509
+ }
5510
+ };
5511
+
5512
+ /**
5513
+ * ReviewsApi - functional programming interface
5514
+ * @export
5515
+ */
5516
+ export const ReviewsApiFp = function(configuration?: Configuration) {
5517
+ const localVarAxiosParamCreator = ReviewsApiAxiosParamCreator(configuration)
5518
+ return {
5519
+ /**
5520
+ *
5521
+ * @summary Get review
5522
+ * @param {string} project What project it is
5523
+ * @param {string} reviewId Review\&#39;s unique identifier
5524
+ * @param {*} [options] Override http request option.
5525
+ * @throws {RequiredError}
5526
+ */
5527
+ async getReview(project: string, reviewId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Review>> {
5528
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReview(project, reviewId, options);
5529
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5530
+ const localVarOperationServerBasePath = operationServerMap['ReviewsApi.getReview']?.[localVarOperationServerIndex]?.url;
5531
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5532
+ },
5533
+ /**
5534
+ *
5535
+ * @summary List Reviews
5536
+ * @param {string} project What project it is
5537
+ * @param {number} [pageToken] Page reference token
5538
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
5539
+ * @param {string} [search] Search term to filter results
5540
+ * @param {*} [options] Override http request option.
5541
+ * @throws {RequiredError}
5542
+ */
5543
+ async listReviews(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReviewsResponse>> {
5544
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listReviews(project, pageToken, pageSize, search, options);
5545
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5546
+ const localVarOperationServerBasePath = operationServerMap['ReviewsApi.listReviews']?.[localVarOperationServerIndex]?.url;
5547
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5548
+ },
5549
+ /**
5550
+ *
5551
+ * @summary Moderate review
5552
+ * @param {string} project What project it is
5553
+ * @param {string} reviewId Review\&#39;s unique identifier
5554
+ * @param {ModerateReviewRequest} [moderateReviewRequest]
5555
+ * @param {*} [options] Override http request option.
5556
+ * @throws {RequiredError}
5557
+ */
5558
+ async moderateReview(project: string, reviewId: string, moderateReviewRequest?: ModerateReviewRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Review>> {
5559
+ const localVarAxiosArgs = await localVarAxiosParamCreator.moderateReview(project, reviewId, moderateReviewRequest, options);
5560
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5561
+ const localVarOperationServerBasePath = operationServerMap['ReviewsApi.moderateReview']?.[localVarOperationServerIndex]?.url;
5562
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5563
+ },
5564
+ }
5565
+ };
5566
+
5567
+ /**
5568
+ * ReviewsApi - factory interface
5569
+ * @export
5570
+ */
5571
+ export const ReviewsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
5572
+ const localVarFp = ReviewsApiFp(configuration)
5573
+ return {
5574
+ /**
5575
+ *
5576
+ * @summary Get review
5577
+ * @param {ReviewsApiGetReviewRequest} requestParameters Request parameters.
5578
+ * @param {*} [options] Override http request option.
5579
+ * @throws {RequiredError}
5580
+ */
5581
+ getReview(requestParameters: ReviewsApiGetReviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<Review> {
5582
+ return localVarFp.getReview(requestParameters.project, requestParameters.reviewId, options).then((request) => request(axios, basePath));
5583
+ },
5584
+ /**
5585
+ *
5586
+ * @summary List Reviews
5587
+ * @param {ReviewsApiListReviewsRequest} requestParameters Request parameters.
5588
+ * @param {*} [options] Override http request option.
5589
+ * @throws {RequiredError}
5590
+ */
5591
+ listReviews(requestParameters: ReviewsApiListReviewsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReviewsResponse> {
5592
+ return localVarFp.listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
5593
+ },
5594
+ /**
5595
+ *
5596
+ * @summary Moderate review
5597
+ * @param {ReviewsApiModerateReviewRequest} requestParameters Request parameters.
5598
+ * @param {*} [options] Override http request option.
5599
+ * @throws {RequiredError}
5600
+ */
5601
+ moderateReview(requestParameters: ReviewsApiModerateReviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<Review> {
5602
+ return localVarFp.moderateReview(requestParameters.project, requestParameters.reviewId, requestParameters.moderateReviewRequest, options).then((request) => request(axios, basePath));
5603
+ },
5604
+ };
5605
+ };
5606
+
5607
+ /**
5608
+ * Request parameters for getReview operation in ReviewsApi.
5609
+ * @export
5610
+ * @interface ReviewsApiGetReviewRequest
5611
+ */
5612
+ export interface ReviewsApiGetReviewRequest {
5613
+ /**
5614
+ * What project it is
5615
+ * @type {string}
5616
+ * @memberof ReviewsApiGetReview
5617
+ */
5618
+ readonly project: string
5619
+
5620
+ /**
5621
+ * Review\&#39;s unique identifier
5622
+ * @type {string}
5623
+ * @memberof ReviewsApiGetReview
5624
+ */
5625
+ readonly reviewId: string
5626
+ }
5627
+
5628
+ /**
5629
+ * Request parameters for listReviews operation in ReviewsApi.
5630
+ * @export
5631
+ * @interface ReviewsApiListReviewsRequest
5632
+ */
5633
+ export interface ReviewsApiListReviewsRequest {
5634
+ /**
5635
+ * What project it is
5636
+ * @type {string}
5637
+ * @memberof ReviewsApiListReviews
5638
+ */
5639
+ readonly project: string
5640
+
5641
+ /**
5642
+ * Page reference token
5643
+ * @type {number}
5644
+ * @memberof ReviewsApiListReviews
5645
+ */
5646
+ readonly pageToken?: number
5647
+
5648
+ /**
5649
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
5650
+ * @type {number}
5651
+ * @memberof ReviewsApiListReviews
5652
+ */
5653
+ readonly pageSize?: number
5654
+
5655
+ /**
5656
+ * Search term to filter results
5657
+ * @type {string}
5658
+ * @memberof ReviewsApiListReviews
5659
+ */
5660
+ readonly search?: string
5661
+ }
5662
+
5663
+ /**
5664
+ * Request parameters for moderateReview operation in ReviewsApi.
5665
+ * @export
5666
+ * @interface ReviewsApiModerateReviewRequest
5667
+ */
5668
+ export interface ReviewsApiModerateReviewRequest {
5669
+ /**
5670
+ * What project it is
5671
+ * @type {string}
5672
+ * @memberof ReviewsApiModerateReview
5673
+ */
5674
+ readonly project: string
5675
+
5676
+ /**
5677
+ * Review\&#39;s unique identifier
5678
+ * @type {string}
5679
+ * @memberof ReviewsApiModerateReview
5680
+ */
5681
+ readonly reviewId: string
5682
+
5683
+ /**
5684
+ *
5685
+ * @type {ModerateReviewRequest}
5686
+ * @memberof ReviewsApiModerateReview
5687
+ */
5688
+ readonly moderateReviewRequest?: ModerateReviewRequest
5689
+ }
5690
+
5691
+ /**
5692
+ * ReviewsApi - object-oriented interface
5693
+ * @export
5694
+ * @class ReviewsApi
5695
+ * @extends {BaseAPI}
5696
+ */
5697
+ export class ReviewsApi extends BaseAPI {
5698
+ /**
5699
+ *
5700
+ * @summary Get review
5701
+ * @param {ReviewsApiGetReviewRequest} requestParameters Request parameters.
5702
+ * @param {*} [options] Override http request option.
5703
+ * @throws {RequiredError}
5704
+ * @memberof ReviewsApi
5705
+ */
5706
+ public getReview(requestParameters: ReviewsApiGetReviewRequest, options?: RawAxiosRequestConfig) {
5707
+ return ReviewsApiFp(this.configuration).getReview(requestParameters.project, requestParameters.reviewId, options).then((request) => request(this.axios, this.basePath));
5708
+ }
5709
+
5710
+ /**
5711
+ *
5712
+ * @summary List Reviews
5713
+ * @param {ReviewsApiListReviewsRequest} requestParameters Request parameters.
5714
+ * @param {*} [options] Override http request option.
5715
+ * @throws {RequiredError}
5716
+ * @memberof ReviewsApi
5717
+ */
5718
+ public listReviews(requestParameters: ReviewsApiListReviewsRequest, options?: RawAxiosRequestConfig) {
5719
+ return ReviewsApiFp(this.configuration).listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
5720
+ }
5721
+
5722
+ /**
5723
+ *
5724
+ * @summary Moderate review
5725
+ * @param {ReviewsApiModerateReviewRequest} requestParameters Request parameters.
5726
+ * @param {*} [options] Override http request option.
5727
+ * @throws {RequiredError}
5728
+ * @memberof ReviewsApi
5729
+ */
5730
+ public moderateReview(requestParameters: ReviewsApiModerateReviewRequest, options?: RawAxiosRequestConfig) {
5731
+ return ReviewsApiFp(this.configuration).moderateReview(requestParameters.project, requestParameters.reviewId, requestParameters.moderateReviewRequest, options).then((request) => request(this.axios, this.basePath));
5732
+ }
5733
+ }
5734
+
5735
+
5736
+
4877
5737
  /**
4878
5738
  * RoutesApi - axios parameter creator
4879
5739
  * @export