@teemill/website 0.12.0 → 0.14.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/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.12.0
8
+ * The version of the OpenAPI document: 0.14.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.RoutesApi = exports.RoutesApiFactory = exports.RoutesApiFp = exports.RoutesApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.PagesApi = exports.PagesApiFactory = exports.PagesApiFp = exports.PagesApiAxiosParamCreator = exports.MenuApi = exports.MenuApiFactory = exports.MenuApiFp = exports.MenuApiAxiosParamCreator = exports.CrossSellApi = exports.CrossSellApiFactory = exports.CrossSellApiFp = exports.CrossSellApiAxiosParamCreator = exports.CollectionsApi = exports.CollectionsApiFactory = exports.CollectionsApiFp = exports.CollectionsApiAxiosParamCreator = exports.BlogsApi = exports.BlogsApiFactory = exports.BlogsApiFp = exports.BlogsApiAxiosParamCreator = exports.UpdateMenuRequestItemSubmenuInnerImageTextShadowEnum = exports.UpdateMenuRequestItemSubmenuInnerImageTextAlignmentEnum = exports.UpdateMenuRequestItemSubmenuInnerImageButtonWidthEnum = exports.UpdateMenuRequestItemSubmenuInnerImageButtonBorderRadiusEnum = exports.UpdateMenuRequestItemSubmenuInnerModeEnum = exports.SubmenuInnerImageTextShadowEnum = exports.SubmenuInnerImageTextAlignmentEnum = exports.SubmenuInnerImageButtonWidthEnum = exports.SubmenuInnerImageButtonBorderRadiusEnum = exports.SubmenuInnerImageBorderRadiusEnum = exports.SubmenuInnerModeEnum = exports.PriceCurrencyCodeEnum = exports.PaymentAccountMethodEnum = exports.AttributeThumbnailTypeEnum = exports.ApplicationPlacementEnum = exports.ApplicationTechnologyEnum = void 0;
25
+ exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RoutesApi = exports.RoutesApiFactory = exports.RoutesApiFp = exports.RoutesApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.PagesApi = exports.PagesApiFactory = exports.PagesApiFp = exports.PagesApiAxiosParamCreator = exports.MenuApi = exports.MenuApiFactory = exports.MenuApiFp = exports.MenuApiAxiosParamCreator = exports.CrossSellApi = exports.CrossSellApiFactory = exports.CrossSellApiFp = exports.CrossSellApiAxiosParamCreator = exports.CollectionsApi = exports.CollectionsApiFactory = exports.CollectionsApiFp = exports.CollectionsApiAxiosParamCreator = exports.BlogsApi = exports.BlogsApiFactory = exports.BlogsApiFp = exports.BlogsApiAxiosParamCreator = exports.UpdateMenuRequestItemSubmenuInnerImageTextShadowEnum = exports.UpdateMenuRequestItemSubmenuInnerImageTextAlignmentEnum = exports.UpdateMenuRequestItemSubmenuInnerImageButtonWidthEnum = exports.UpdateMenuRequestItemSubmenuInnerImageButtonBorderRadiusEnum = exports.UpdateMenuRequestItemSubmenuInnerModeEnum = exports.SubmenuInnerImageTextShadowEnum = exports.SubmenuInnerImageTextAlignmentEnum = exports.SubmenuInnerImageButtonWidthEnum = exports.SubmenuInnerImageButtonBorderRadiusEnum = exports.SubmenuInnerImageBorderRadiusEnum = exports.SubmenuInnerModeEnum = exports.PriceCurrencyCodeEnum = exports.PaymentAccountMethodEnum = exports.AttributeThumbnailTypeEnum = exports.ApplicationPlacementEnum = exports.ApplicationTechnologyEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -1232,6 +1232,45 @@ const PagesApiAxiosParamCreator = function (configuration) {
1232
1232
  options: localVarRequestOptions,
1233
1233
  };
1234
1234
  }),
1235
+ /**
1236
+ * AI SEO optimises pages by a set of given IDs.
1237
+ * @summary AI SEO optimise pages.
1238
+ * @param {string} project What project it is
1239
+ * @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
1240
+ * @param {*} [options] Override http request option.
1241
+ * @throws {RequiredError}
1242
+ */
1243
+ seoOptimisePages: (project_1, seoOptimisePagesRequest_1, ...args_1) => __awaiter(this, [project_1, seoOptimisePagesRequest_1, ...args_1], void 0, function* (project, seoOptimisePagesRequest, options = {}) {
1244
+ // verify required parameter 'project' is not null or undefined
1245
+ (0, common_1.assertParamExists)('seoOptimisePages', 'project', project);
1246
+ const localVarPath = `/v1/website/pages/ai-seo-optimise`;
1247
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1248
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1249
+ let baseOptions;
1250
+ if (configuration) {
1251
+ baseOptions = configuration.baseOptions;
1252
+ }
1253
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1254
+ const localVarHeaderParameter = {};
1255
+ const localVarQueryParameter = {};
1256
+ // authentication session-oauth required
1257
+ // oauth required
1258
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1259
+ // authentication api-key required
1260
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1261
+ if (project !== undefined) {
1262
+ localVarQueryParameter['project'] = project;
1263
+ }
1264
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1265
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1266
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1267
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1268
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(seoOptimisePagesRequest, localVarRequestOptions, configuration);
1269
+ return {
1270
+ url: (0, common_1.toPathString)(localVarUrlObj),
1271
+ options: localVarRequestOptions,
1272
+ };
1273
+ }),
1235
1274
  /**
1236
1275
  *
1237
1276
  * @summary Update website page
@@ -1355,6 +1394,23 @@ const PagesApiFp = function (configuration) {
1355
1394
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1356
1395
  });
1357
1396
  },
1397
+ /**
1398
+ * AI SEO optimises pages by a set of given IDs.
1399
+ * @summary AI SEO optimise pages.
1400
+ * @param {string} project What project it is
1401
+ * @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
1402
+ * @param {*} [options] Override http request option.
1403
+ * @throws {RequiredError}
1404
+ */
1405
+ seoOptimisePages(project, seoOptimisePagesRequest, options) {
1406
+ return __awaiter(this, void 0, void 0, function* () {
1407
+ var _a, _b, _c;
1408
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.seoOptimisePages(project, seoOptimisePagesRequest, options);
1409
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1410
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PagesApi.seoOptimisePages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1411
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1412
+ });
1413
+ },
1358
1414
  /**
1359
1415
  *
1360
1416
  * @summary Update website page
@@ -1413,6 +1469,16 @@ const PagesApiFactory = function (configuration, basePath, axios) {
1413
1469
  listPages(requestParameters, options) {
1414
1470
  return localVarFp.listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
1415
1471
  },
1472
+ /**
1473
+ * AI SEO optimises pages by a set of given IDs.
1474
+ * @summary AI SEO optimise pages.
1475
+ * @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
1476
+ * @param {*} [options] Override http request option.
1477
+ * @throws {RequiredError}
1478
+ */
1479
+ seoOptimisePages(requestParameters, options) {
1480
+ return localVarFp.seoOptimisePages(requestParameters.project, requestParameters.seoOptimisePagesRequest, options).then((request) => request(axios, basePath));
1481
+ },
1416
1482
  /**
1417
1483
  *
1418
1484
  * @summary Update website page
@@ -1454,6 +1520,17 @@ class PagesApi extends base_1.BaseAPI {
1454
1520
  listPages(requestParameters, options) {
1455
1521
  return (0, exports.PagesApiFp)(this.configuration).listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
1456
1522
  }
1523
+ /**
1524
+ * AI SEO optimises pages by a set of given IDs.
1525
+ * @summary AI SEO optimise pages.
1526
+ * @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
1527
+ * @param {*} [options] Override http request option.
1528
+ * @throws {RequiredError}
1529
+ * @memberof PagesApi
1530
+ */
1531
+ seoOptimisePages(requestParameters, options) {
1532
+ return (0, exports.PagesApiFp)(this.configuration).seoOptimisePages(requestParameters.project, requestParameters.seoOptimisePagesRequest, options).then((request) => request(this.axios, this.basePath));
1533
+ }
1457
1534
  /**
1458
1535
  *
1459
1536
  * @summary Update website page
@@ -1861,3 +1938,459 @@ class RoutesApi extends base_1.BaseAPI {
1861
1938
  }
1862
1939
  }
1863
1940
  exports.RoutesApi = RoutesApi;
1941
+ /**
1942
+ * SearchApi - axios parameter creator
1943
+ * @export
1944
+ */
1945
+ const SearchApiAxiosParamCreator = function (configuration) {
1946
+ return {
1947
+ /**
1948
+ *
1949
+ * @summary Create search redirect
1950
+ * @param {string} project What project it is
1951
+ * @param {number} [pageToken] Page reference token
1952
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1953
+ * @param {string} [search] Search term to filter results
1954
+ * @param {CreateSearchRedirectRequest} [createSearchRedirectRequest] Create search redirect
1955
+ * @param {*} [options] Override http request option.
1956
+ * @throws {RequiredError}
1957
+ */
1958
+ createSearchRedirect: (project_1, pageToken_1, pageSize_1, search_1, createSearchRedirectRequest_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, createSearchRedirectRequest_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, createSearchRedirectRequest, options = {}) {
1959
+ // verify required parameter 'project' is not null or undefined
1960
+ (0, common_1.assertParamExists)('createSearchRedirect', 'project', project);
1961
+ const localVarPath = `/v1/website/search/redirects`;
1962
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1963
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1964
+ let baseOptions;
1965
+ if (configuration) {
1966
+ baseOptions = configuration.baseOptions;
1967
+ }
1968
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1969
+ const localVarHeaderParameter = {};
1970
+ const localVarQueryParameter = {};
1971
+ // authentication session-oauth required
1972
+ // oauth required
1973
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1974
+ // authentication api-key required
1975
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1976
+ if (project !== undefined) {
1977
+ localVarQueryParameter['project'] = project;
1978
+ }
1979
+ if (pageToken !== undefined) {
1980
+ localVarQueryParameter['pageToken'] = pageToken;
1981
+ }
1982
+ if (pageSize !== undefined) {
1983
+ localVarQueryParameter['pageSize'] = pageSize;
1984
+ }
1985
+ if (search !== undefined) {
1986
+ localVarQueryParameter['search'] = search;
1987
+ }
1988
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1989
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1990
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1991
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1992
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSearchRedirectRequest, localVarRequestOptions, configuration);
1993
+ return {
1994
+ url: (0, common_1.toPathString)(localVarUrlObj),
1995
+ options: localVarRequestOptions,
1996
+ };
1997
+ }),
1998
+ /**
1999
+ *
2000
+ * @summary Delete search redirect
2001
+ * @param {string} project What project it is
2002
+ * @param {string} redirectId Redirect\'s unique identifier
2003
+ * @param {*} [options] Override http request option.
2004
+ * @throws {RequiredError}
2005
+ */
2006
+ deleteSearchRedirect: (project_1, redirectId_1, ...args_1) => __awaiter(this, [project_1, redirectId_1, ...args_1], void 0, function* (project, redirectId, options = {}) {
2007
+ // verify required parameter 'project' is not null or undefined
2008
+ (0, common_1.assertParamExists)('deleteSearchRedirect', 'project', project);
2009
+ // verify required parameter 'redirectId' is not null or undefined
2010
+ (0, common_1.assertParamExists)('deleteSearchRedirect', 'redirectId', redirectId);
2011
+ const localVarPath = `/v1/website/search/redirects/{redirectId}`
2012
+ .replace(`{${"redirectId"}}`, encodeURIComponent(String(redirectId)));
2013
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2014
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2015
+ let baseOptions;
2016
+ if (configuration) {
2017
+ baseOptions = configuration.baseOptions;
2018
+ }
2019
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2020
+ const localVarHeaderParameter = {};
2021
+ const localVarQueryParameter = {};
2022
+ // authentication session-oauth required
2023
+ // oauth required
2024
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
2025
+ // authentication api-key required
2026
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2027
+ if (project !== undefined) {
2028
+ localVarQueryParameter['project'] = project;
2029
+ }
2030
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2031
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2032
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2033
+ return {
2034
+ url: (0, common_1.toPathString)(localVarUrlObj),
2035
+ options: localVarRequestOptions,
2036
+ };
2037
+ }),
2038
+ /**
2039
+ *
2040
+ * @summary Get search redirect
2041
+ * @param {string} project What project it is
2042
+ * @param {string} redirectId Redirect\'s unique identifier
2043
+ * @param {*} [options] Override http request option.
2044
+ * @throws {RequiredError}
2045
+ */
2046
+ getSearchRedirect: (project_1, redirectId_1, ...args_1) => __awaiter(this, [project_1, redirectId_1, ...args_1], void 0, function* (project, redirectId, options = {}) {
2047
+ // verify required parameter 'project' is not null or undefined
2048
+ (0, common_1.assertParamExists)('getSearchRedirect', 'project', project);
2049
+ // verify required parameter 'redirectId' is not null or undefined
2050
+ (0, common_1.assertParamExists)('getSearchRedirect', 'redirectId', redirectId);
2051
+ const localVarPath = `/v1/website/search/redirects/{redirectId}`
2052
+ .replace(`{${"redirectId"}}`, encodeURIComponent(String(redirectId)));
2053
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2054
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2055
+ let baseOptions;
2056
+ if (configuration) {
2057
+ baseOptions = configuration.baseOptions;
2058
+ }
2059
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2060
+ const localVarHeaderParameter = {};
2061
+ const localVarQueryParameter = {};
2062
+ // authentication session-oauth required
2063
+ // oauth required
2064
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
2065
+ // authentication api-key required
2066
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2067
+ if (project !== undefined) {
2068
+ localVarQueryParameter['project'] = project;
2069
+ }
2070
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2071
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2072
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2073
+ return {
2074
+ url: (0, common_1.toPathString)(localVarUrlObj),
2075
+ options: localVarRequestOptions,
2076
+ };
2077
+ }),
2078
+ /**
2079
+ *
2080
+ * @summary List search redirects
2081
+ * @param {string} project What project it is
2082
+ * @param {number} [pageToken] Page reference token
2083
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2084
+ * @param {string} [search] Search term to filter results
2085
+ * @param {*} [options] Override http request option.
2086
+ * @throws {RequiredError}
2087
+ */
2088
+ listSearchRedirects: (project_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, options = {}) {
2089
+ // verify required parameter 'project' is not null or undefined
2090
+ (0, common_1.assertParamExists)('listSearchRedirects', 'project', project);
2091
+ const localVarPath = `/v1/website/search/redirects`;
2092
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2093
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2094
+ let baseOptions;
2095
+ if (configuration) {
2096
+ baseOptions = configuration.baseOptions;
2097
+ }
2098
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2099
+ const localVarHeaderParameter = {};
2100
+ const localVarQueryParameter = {};
2101
+ // authentication session-oauth required
2102
+ // oauth required
2103
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
2104
+ // authentication api-key required
2105
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2106
+ if (project !== undefined) {
2107
+ localVarQueryParameter['project'] = project;
2108
+ }
2109
+ if (pageToken !== undefined) {
2110
+ localVarQueryParameter['pageToken'] = pageToken;
2111
+ }
2112
+ if (pageSize !== undefined) {
2113
+ localVarQueryParameter['pageSize'] = pageSize;
2114
+ }
2115
+ if (search !== undefined) {
2116
+ localVarQueryParameter['search'] = search;
2117
+ }
2118
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2119
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2120
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2121
+ return {
2122
+ url: (0, common_1.toPathString)(localVarUrlObj),
2123
+ options: localVarRequestOptions,
2124
+ };
2125
+ }),
2126
+ /**
2127
+ *
2128
+ * @summary Update search redirect
2129
+ * @param {string} project What project it is
2130
+ * @param {string} redirectId Redirect\'s unique identifier
2131
+ * @param {UpdateSearchRedirectRequest} [updateSearchRedirectRequest] Update search redirect
2132
+ * @param {*} [options] Override http request option.
2133
+ * @throws {RequiredError}
2134
+ */
2135
+ updateSearchRedirect: (project_1, redirectId_1, updateSearchRedirectRequest_1, ...args_1) => __awaiter(this, [project_1, redirectId_1, updateSearchRedirectRequest_1, ...args_1], void 0, function* (project, redirectId, updateSearchRedirectRequest, options = {}) {
2136
+ // verify required parameter 'project' is not null or undefined
2137
+ (0, common_1.assertParamExists)('updateSearchRedirect', 'project', project);
2138
+ // verify required parameter 'redirectId' is not null or undefined
2139
+ (0, common_1.assertParamExists)('updateSearchRedirect', 'redirectId', redirectId);
2140
+ const localVarPath = `/v1/website/search/redirects/{redirectId}`
2141
+ .replace(`{${"redirectId"}}`, encodeURIComponent(String(redirectId)));
2142
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2143
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2144
+ let baseOptions;
2145
+ if (configuration) {
2146
+ baseOptions = configuration.baseOptions;
2147
+ }
2148
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
2149
+ const localVarHeaderParameter = {};
2150
+ const localVarQueryParameter = {};
2151
+ // authentication session-oauth required
2152
+ // oauth required
2153
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
2154
+ // authentication api-key required
2155
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2156
+ if (project !== undefined) {
2157
+ localVarQueryParameter['project'] = project;
2158
+ }
2159
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2160
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2161
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2162
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2163
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSearchRedirectRequest, localVarRequestOptions, configuration);
2164
+ return {
2165
+ url: (0, common_1.toPathString)(localVarUrlObj),
2166
+ options: localVarRequestOptions,
2167
+ };
2168
+ }),
2169
+ };
2170
+ };
2171
+ exports.SearchApiAxiosParamCreator = SearchApiAxiosParamCreator;
2172
+ /**
2173
+ * SearchApi - functional programming interface
2174
+ * @export
2175
+ */
2176
+ const SearchApiFp = function (configuration) {
2177
+ const localVarAxiosParamCreator = (0, exports.SearchApiAxiosParamCreator)(configuration);
2178
+ return {
2179
+ /**
2180
+ *
2181
+ * @summary Create search redirect
2182
+ * @param {string} project What project it is
2183
+ * @param {number} [pageToken] Page reference token
2184
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2185
+ * @param {string} [search] Search term to filter results
2186
+ * @param {CreateSearchRedirectRequest} [createSearchRedirectRequest] Create search redirect
2187
+ * @param {*} [options] Override http request option.
2188
+ * @throws {RequiredError}
2189
+ */
2190
+ createSearchRedirect(project, pageToken, pageSize, search, createSearchRedirectRequest, options) {
2191
+ return __awaiter(this, void 0, void 0, function* () {
2192
+ var _a, _b, _c;
2193
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSearchRedirect(project, pageToken, pageSize, search, createSearchRedirectRequest, options);
2194
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2195
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.createSearchRedirect']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2196
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2197
+ });
2198
+ },
2199
+ /**
2200
+ *
2201
+ * @summary Delete search redirect
2202
+ * @param {string} project What project it is
2203
+ * @param {string} redirectId Redirect\'s unique identifier
2204
+ * @param {*} [options] Override http request option.
2205
+ * @throws {RequiredError}
2206
+ */
2207
+ deleteSearchRedirect(project, redirectId, options) {
2208
+ return __awaiter(this, void 0, void 0, function* () {
2209
+ var _a, _b, _c;
2210
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSearchRedirect(project, redirectId, options);
2211
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2212
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.deleteSearchRedirect']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2213
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2214
+ });
2215
+ },
2216
+ /**
2217
+ *
2218
+ * @summary Get search redirect
2219
+ * @param {string} project What project it is
2220
+ * @param {string} redirectId Redirect\'s unique identifier
2221
+ * @param {*} [options] Override http request option.
2222
+ * @throws {RequiredError}
2223
+ */
2224
+ getSearchRedirect(project, redirectId, options) {
2225
+ return __awaiter(this, void 0, void 0, function* () {
2226
+ var _a, _b, _c;
2227
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSearchRedirect(project, redirectId, options);
2228
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2229
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.getSearchRedirect']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2230
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2231
+ });
2232
+ },
2233
+ /**
2234
+ *
2235
+ * @summary List search redirects
2236
+ * @param {string} project What project it is
2237
+ * @param {number} [pageToken] Page reference token
2238
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2239
+ * @param {string} [search] Search term to filter results
2240
+ * @param {*} [options] Override http request option.
2241
+ * @throws {RequiredError}
2242
+ */
2243
+ listSearchRedirects(project, pageToken, pageSize, search, options) {
2244
+ return __awaiter(this, void 0, void 0, function* () {
2245
+ var _a, _b, _c;
2246
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSearchRedirects(project, pageToken, pageSize, search, options);
2247
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2248
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.listSearchRedirects']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2249
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2250
+ });
2251
+ },
2252
+ /**
2253
+ *
2254
+ * @summary Update search redirect
2255
+ * @param {string} project What project it is
2256
+ * @param {string} redirectId Redirect\'s unique identifier
2257
+ * @param {UpdateSearchRedirectRequest} [updateSearchRedirectRequest] Update search redirect
2258
+ * @param {*} [options] Override http request option.
2259
+ * @throws {RequiredError}
2260
+ */
2261
+ updateSearchRedirect(project, redirectId, updateSearchRedirectRequest, options) {
2262
+ return __awaiter(this, void 0, void 0, function* () {
2263
+ var _a, _b, _c;
2264
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSearchRedirect(project, redirectId, updateSearchRedirectRequest, options);
2265
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2266
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.updateSearchRedirect']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2267
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2268
+ });
2269
+ },
2270
+ };
2271
+ };
2272
+ exports.SearchApiFp = SearchApiFp;
2273
+ /**
2274
+ * SearchApi - factory interface
2275
+ * @export
2276
+ */
2277
+ const SearchApiFactory = function (configuration, basePath, axios) {
2278
+ const localVarFp = (0, exports.SearchApiFp)(configuration);
2279
+ return {
2280
+ /**
2281
+ *
2282
+ * @summary Create search redirect
2283
+ * @param {SearchApiCreateSearchRedirectRequest} requestParameters Request parameters.
2284
+ * @param {*} [options] Override http request option.
2285
+ * @throws {RequiredError}
2286
+ */
2287
+ createSearchRedirect(requestParameters, options) {
2288
+ return localVarFp.createSearchRedirect(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.createSearchRedirectRequest, options).then((request) => request(axios, basePath));
2289
+ },
2290
+ /**
2291
+ *
2292
+ * @summary Delete search redirect
2293
+ * @param {SearchApiDeleteSearchRedirectRequest} requestParameters Request parameters.
2294
+ * @param {*} [options] Override http request option.
2295
+ * @throws {RequiredError}
2296
+ */
2297
+ deleteSearchRedirect(requestParameters, options) {
2298
+ return localVarFp.deleteSearchRedirect(requestParameters.project, requestParameters.redirectId, options).then((request) => request(axios, basePath));
2299
+ },
2300
+ /**
2301
+ *
2302
+ * @summary Get search redirect
2303
+ * @param {SearchApiGetSearchRedirectRequest} requestParameters Request parameters.
2304
+ * @param {*} [options] Override http request option.
2305
+ * @throws {RequiredError}
2306
+ */
2307
+ getSearchRedirect(requestParameters, options) {
2308
+ return localVarFp.getSearchRedirect(requestParameters.project, requestParameters.redirectId, options).then((request) => request(axios, basePath));
2309
+ },
2310
+ /**
2311
+ *
2312
+ * @summary List search redirects
2313
+ * @param {SearchApiListSearchRedirectsRequest} requestParameters Request parameters.
2314
+ * @param {*} [options] Override http request option.
2315
+ * @throws {RequiredError}
2316
+ */
2317
+ listSearchRedirects(requestParameters, options) {
2318
+ return localVarFp.listSearchRedirects(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
2319
+ },
2320
+ /**
2321
+ *
2322
+ * @summary Update search redirect
2323
+ * @param {SearchApiUpdateSearchRedirectRequest} requestParameters Request parameters.
2324
+ * @param {*} [options] Override http request option.
2325
+ * @throws {RequiredError}
2326
+ */
2327
+ updateSearchRedirect(requestParameters, options) {
2328
+ return localVarFp.updateSearchRedirect(requestParameters.project, requestParameters.redirectId, requestParameters.updateSearchRedirectRequest, options).then((request) => request(axios, basePath));
2329
+ },
2330
+ };
2331
+ };
2332
+ exports.SearchApiFactory = SearchApiFactory;
2333
+ /**
2334
+ * SearchApi - object-oriented interface
2335
+ * @export
2336
+ * @class SearchApi
2337
+ * @extends {BaseAPI}
2338
+ */
2339
+ class SearchApi extends base_1.BaseAPI {
2340
+ /**
2341
+ *
2342
+ * @summary Create search redirect
2343
+ * @param {SearchApiCreateSearchRedirectRequest} requestParameters Request parameters.
2344
+ * @param {*} [options] Override http request option.
2345
+ * @throws {RequiredError}
2346
+ * @memberof SearchApi
2347
+ */
2348
+ createSearchRedirect(requestParameters, options) {
2349
+ return (0, exports.SearchApiFp)(this.configuration).createSearchRedirect(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.createSearchRedirectRequest, options).then((request) => request(this.axios, this.basePath));
2350
+ }
2351
+ /**
2352
+ *
2353
+ * @summary Delete search redirect
2354
+ * @param {SearchApiDeleteSearchRedirectRequest} requestParameters Request parameters.
2355
+ * @param {*} [options] Override http request option.
2356
+ * @throws {RequiredError}
2357
+ * @memberof SearchApi
2358
+ */
2359
+ deleteSearchRedirect(requestParameters, options) {
2360
+ return (0, exports.SearchApiFp)(this.configuration).deleteSearchRedirect(requestParameters.project, requestParameters.redirectId, options).then((request) => request(this.axios, this.basePath));
2361
+ }
2362
+ /**
2363
+ *
2364
+ * @summary Get search redirect
2365
+ * @param {SearchApiGetSearchRedirectRequest} requestParameters Request parameters.
2366
+ * @param {*} [options] Override http request option.
2367
+ * @throws {RequiredError}
2368
+ * @memberof SearchApi
2369
+ */
2370
+ getSearchRedirect(requestParameters, options) {
2371
+ return (0, exports.SearchApiFp)(this.configuration).getSearchRedirect(requestParameters.project, requestParameters.redirectId, options).then((request) => request(this.axios, this.basePath));
2372
+ }
2373
+ /**
2374
+ *
2375
+ * @summary List search redirects
2376
+ * @param {SearchApiListSearchRedirectsRequest} requestParameters Request parameters.
2377
+ * @param {*} [options] Override http request option.
2378
+ * @throws {RequiredError}
2379
+ * @memberof SearchApi
2380
+ */
2381
+ listSearchRedirects(requestParameters, options) {
2382
+ return (0, exports.SearchApiFp)(this.configuration).listSearchRedirects(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
2383
+ }
2384
+ /**
2385
+ *
2386
+ * @summary Update search redirect
2387
+ * @param {SearchApiUpdateSearchRedirectRequest} requestParameters Request parameters.
2388
+ * @param {*} [options] Override http request option.
2389
+ * @throws {RequiredError}
2390
+ * @memberof SearchApi
2391
+ */
2392
+ updateSearchRedirect(requestParameters, options) {
2393
+ return (0, exports.SearchApiFp)(this.configuration).updateSearchRedirect(requestParameters.project, requestParameters.redirectId, requestParameters.updateSearchRedirectRequest, options).then((request) => request(this.axios, this.basePath));
2394
+ }
2395
+ }
2396
+ exports.SearchApi = SearchApi;
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.12.0
5
+ * The version of the OpenAPI document: 0.14.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.12.0
8
+ * The version of the OpenAPI document: 0.14.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.12.0
5
+ * The version of the OpenAPI document: 0.14.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.12.0
8
+ * The version of the OpenAPI document: 0.14.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.12.0
5
+ * The version of the OpenAPI document: 0.14.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.12.0
8
+ * The version of the OpenAPI document: 0.14.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).