@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/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.12.0
7
+ * The version of the OpenAPI document: 0.14.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1213,6 +1213,45 @@ export const PagesApiAxiosParamCreator = function (configuration) {
1213
1213
  options: localVarRequestOptions,
1214
1214
  };
1215
1215
  }),
1216
+ /**
1217
+ * AI SEO optimises pages by a set of given IDs.
1218
+ * @summary AI SEO optimise pages.
1219
+ * @param {string} project What project it is
1220
+ * @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
1221
+ * @param {*} [options] Override http request option.
1222
+ * @throws {RequiredError}
1223
+ */
1224
+ seoOptimisePages: (project_1, seoOptimisePagesRequest_1, ...args_1) => __awaiter(this, [project_1, seoOptimisePagesRequest_1, ...args_1], void 0, function* (project, seoOptimisePagesRequest, options = {}) {
1225
+ // verify required parameter 'project' is not null or undefined
1226
+ assertParamExists('seoOptimisePages', 'project', project);
1227
+ const localVarPath = `/v1/website/pages/ai-seo-optimise`;
1228
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1229
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1230
+ let baseOptions;
1231
+ if (configuration) {
1232
+ baseOptions = configuration.baseOptions;
1233
+ }
1234
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1235
+ const localVarHeaderParameter = {};
1236
+ const localVarQueryParameter = {};
1237
+ // authentication session-oauth required
1238
+ // oauth required
1239
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1240
+ // authentication api-key required
1241
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1242
+ if (project !== undefined) {
1243
+ localVarQueryParameter['project'] = project;
1244
+ }
1245
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1246
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1247
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1248
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1249
+ localVarRequestOptions.data = serializeDataIfNeeded(seoOptimisePagesRequest, localVarRequestOptions, configuration);
1250
+ return {
1251
+ url: toPathString(localVarUrlObj),
1252
+ options: localVarRequestOptions,
1253
+ };
1254
+ }),
1216
1255
  /**
1217
1256
  *
1218
1257
  * @summary Update website page
@@ -1335,6 +1374,23 @@ export const PagesApiFp = function (configuration) {
1335
1374
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1336
1375
  });
1337
1376
  },
1377
+ /**
1378
+ * AI SEO optimises pages by a set of given IDs.
1379
+ * @summary AI SEO optimise pages.
1380
+ * @param {string} project What project it is
1381
+ * @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
1382
+ * @param {*} [options] Override http request option.
1383
+ * @throws {RequiredError}
1384
+ */
1385
+ seoOptimisePages(project, seoOptimisePagesRequest, options) {
1386
+ return __awaiter(this, void 0, void 0, function* () {
1387
+ var _a, _b, _c;
1388
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.seoOptimisePages(project, seoOptimisePagesRequest, options);
1389
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1390
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PagesApi.seoOptimisePages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1391
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1392
+ });
1393
+ },
1338
1394
  /**
1339
1395
  *
1340
1396
  * @summary Update website page
@@ -1392,6 +1448,16 @@ export const PagesApiFactory = function (configuration, basePath, axios) {
1392
1448
  listPages(requestParameters, options) {
1393
1449
  return localVarFp.listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
1394
1450
  },
1451
+ /**
1452
+ * AI SEO optimises pages by a set of given IDs.
1453
+ * @summary AI SEO optimise pages.
1454
+ * @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
1455
+ * @param {*} [options] Override http request option.
1456
+ * @throws {RequiredError}
1457
+ */
1458
+ seoOptimisePages(requestParameters, options) {
1459
+ return localVarFp.seoOptimisePages(requestParameters.project, requestParameters.seoOptimisePagesRequest, options).then((request) => request(axios, basePath));
1460
+ },
1395
1461
  /**
1396
1462
  *
1397
1463
  * @summary Update website page
@@ -1432,6 +1498,17 @@ export class PagesApi extends BaseAPI {
1432
1498
  listPages(requestParameters, options) {
1433
1499
  return PagesApiFp(this.configuration).listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
1434
1500
  }
1501
+ /**
1502
+ * AI SEO optimises pages by a set of given IDs.
1503
+ * @summary AI SEO optimise pages.
1504
+ * @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
1505
+ * @param {*} [options] Override http request option.
1506
+ * @throws {RequiredError}
1507
+ * @memberof PagesApi
1508
+ */
1509
+ seoOptimisePages(requestParameters, options) {
1510
+ return PagesApiFp(this.configuration).seoOptimisePages(requestParameters.project, requestParameters.seoOptimisePagesRequest, options).then((request) => request(this.axios, this.basePath));
1511
+ }
1435
1512
  /**
1436
1513
  *
1437
1514
  * @summary Update website page
@@ -1830,3 +1907,455 @@ export class RoutesApi extends BaseAPI {
1830
1907
  return RoutesApiFp(this.configuration).listRoutes(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
1831
1908
  }
1832
1909
  }
1910
+ /**
1911
+ * SearchApi - axios parameter creator
1912
+ * @export
1913
+ */
1914
+ export const SearchApiAxiosParamCreator = function (configuration) {
1915
+ return {
1916
+ /**
1917
+ *
1918
+ * @summary Create search redirect
1919
+ * @param {string} project What project it is
1920
+ * @param {number} [pageToken] Page reference token
1921
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1922
+ * @param {string} [search] Search term to filter results
1923
+ * @param {CreateSearchRedirectRequest} [createSearchRedirectRequest] Create search redirect
1924
+ * @param {*} [options] Override http request option.
1925
+ * @throws {RequiredError}
1926
+ */
1927
+ 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 = {}) {
1928
+ // verify required parameter 'project' is not null or undefined
1929
+ assertParamExists('createSearchRedirect', 'project', project);
1930
+ const localVarPath = `/v1/website/search/redirects`;
1931
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1932
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1933
+ let baseOptions;
1934
+ if (configuration) {
1935
+ baseOptions = configuration.baseOptions;
1936
+ }
1937
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1938
+ const localVarHeaderParameter = {};
1939
+ const localVarQueryParameter = {};
1940
+ // authentication session-oauth required
1941
+ // oauth required
1942
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1943
+ // authentication api-key required
1944
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1945
+ if (project !== undefined) {
1946
+ localVarQueryParameter['project'] = project;
1947
+ }
1948
+ if (pageToken !== undefined) {
1949
+ localVarQueryParameter['pageToken'] = pageToken;
1950
+ }
1951
+ if (pageSize !== undefined) {
1952
+ localVarQueryParameter['pageSize'] = pageSize;
1953
+ }
1954
+ if (search !== undefined) {
1955
+ localVarQueryParameter['search'] = search;
1956
+ }
1957
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1958
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1959
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1960
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1961
+ localVarRequestOptions.data = serializeDataIfNeeded(createSearchRedirectRequest, localVarRequestOptions, configuration);
1962
+ return {
1963
+ url: toPathString(localVarUrlObj),
1964
+ options: localVarRequestOptions,
1965
+ };
1966
+ }),
1967
+ /**
1968
+ *
1969
+ * @summary Delete search redirect
1970
+ * @param {string} project What project it is
1971
+ * @param {string} redirectId Redirect\'s unique identifier
1972
+ * @param {*} [options] Override http request option.
1973
+ * @throws {RequiredError}
1974
+ */
1975
+ deleteSearchRedirect: (project_1, redirectId_1, ...args_1) => __awaiter(this, [project_1, redirectId_1, ...args_1], void 0, function* (project, redirectId, options = {}) {
1976
+ // verify required parameter 'project' is not null or undefined
1977
+ assertParamExists('deleteSearchRedirect', 'project', project);
1978
+ // verify required parameter 'redirectId' is not null or undefined
1979
+ assertParamExists('deleteSearchRedirect', 'redirectId', redirectId);
1980
+ const localVarPath = `/v1/website/search/redirects/{redirectId}`
1981
+ .replace(`{${"redirectId"}}`, encodeURIComponent(String(redirectId)));
1982
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1983
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1984
+ let baseOptions;
1985
+ if (configuration) {
1986
+ baseOptions = configuration.baseOptions;
1987
+ }
1988
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1989
+ const localVarHeaderParameter = {};
1990
+ const localVarQueryParameter = {};
1991
+ // authentication session-oauth required
1992
+ // oauth required
1993
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1994
+ // authentication api-key required
1995
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1996
+ if (project !== undefined) {
1997
+ localVarQueryParameter['project'] = project;
1998
+ }
1999
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2000
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2001
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2002
+ return {
2003
+ url: toPathString(localVarUrlObj),
2004
+ options: localVarRequestOptions,
2005
+ };
2006
+ }),
2007
+ /**
2008
+ *
2009
+ * @summary Get search redirect
2010
+ * @param {string} project What project it is
2011
+ * @param {string} redirectId Redirect\'s unique identifier
2012
+ * @param {*} [options] Override http request option.
2013
+ * @throws {RequiredError}
2014
+ */
2015
+ getSearchRedirect: (project_1, redirectId_1, ...args_1) => __awaiter(this, [project_1, redirectId_1, ...args_1], void 0, function* (project, redirectId, options = {}) {
2016
+ // verify required parameter 'project' is not null or undefined
2017
+ assertParamExists('getSearchRedirect', 'project', project);
2018
+ // verify required parameter 'redirectId' is not null or undefined
2019
+ assertParamExists('getSearchRedirect', 'redirectId', redirectId);
2020
+ const localVarPath = `/v1/website/search/redirects/{redirectId}`
2021
+ .replace(`{${"redirectId"}}`, encodeURIComponent(String(redirectId)));
2022
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2023
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2024
+ let baseOptions;
2025
+ if (configuration) {
2026
+ baseOptions = configuration.baseOptions;
2027
+ }
2028
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2029
+ const localVarHeaderParameter = {};
2030
+ const localVarQueryParameter = {};
2031
+ // authentication session-oauth required
2032
+ // oauth required
2033
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
2034
+ // authentication api-key required
2035
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2036
+ if (project !== undefined) {
2037
+ localVarQueryParameter['project'] = project;
2038
+ }
2039
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2040
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2041
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2042
+ return {
2043
+ url: toPathString(localVarUrlObj),
2044
+ options: localVarRequestOptions,
2045
+ };
2046
+ }),
2047
+ /**
2048
+ *
2049
+ * @summary List search redirects
2050
+ * @param {string} project What project it is
2051
+ * @param {number} [pageToken] Page reference token
2052
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2053
+ * @param {string} [search] Search term to filter results
2054
+ * @param {*} [options] Override http request option.
2055
+ * @throws {RequiredError}
2056
+ */
2057
+ 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 = {}) {
2058
+ // verify required parameter 'project' is not null or undefined
2059
+ assertParamExists('listSearchRedirects', 'project', project);
2060
+ const localVarPath = `/v1/website/search/redirects`;
2061
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2062
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2063
+ let baseOptions;
2064
+ if (configuration) {
2065
+ baseOptions = configuration.baseOptions;
2066
+ }
2067
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2068
+ const localVarHeaderParameter = {};
2069
+ const localVarQueryParameter = {};
2070
+ // authentication session-oauth required
2071
+ // oauth required
2072
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
2073
+ // authentication api-key required
2074
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2075
+ if (project !== undefined) {
2076
+ localVarQueryParameter['project'] = project;
2077
+ }
2078
+ if (pageToken !== undefined) {
2079
+ localVarQueryParameter['pageToken'] = pageToken;
2080
+ }
2081
+ if (pageSize !== undefined) {
2082
+ localVarQueryParameter['pageSize'] = pageSize;
2083
+ }
2084
+ if (search !== undefined) {
2085
+ localVarQueryParameter['search'] = search;
2086
+ }
2087
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2088
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2089
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2090
+ return {
2091
+ url: toPathString(localVarUrlObj),
2092
+ options: localVarRequestOptions,
2093
+ };
2094
+ }),
2095
+ /**
2096
+ *
2097
+ * @summary Update search redirect
2098
+ * @param {string} project What project it is
2099
+ * @param {string} redirectId Redirect\'s unique identifier
2100
+ * @param {UpdateSearchRedirectRequest} [updateSearchRedirectRequest] Update search redirect
2101
+ * @param {*} [options] Override http request option.
2102
+ * @throws {RequiredError}
2103
+ */
2104
+ 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 = {}) {
2105
+ // verify required parameter 'project' is not null or undefined
2106
+ assertParamExists('updateSearchRedirect', 'project', project);
2107
+ // verify required parameter 'redirectId' is not null or undefined
2108
+ assertParamExists('updateSearchRedirect', 'redirectId', redirectId);
2109
+ const localVarPath = `/v1/website/search/redirects/{redirectId}`
2110
+ .replace(`{${"redirectId"}}`, encodeURIComponent(String(redirectId)));
2111
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2112
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2113
+ let baseOptions;
2114
+ if (configuration) {
2115
+ baseOptions = configuration.baseOptions;
2116
+ }
2117
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
2118
+ const localVarHeaderParameter = {};
2119
+ const localVarQueryParameter = {};
2120
+ // authentication session-oauth required
2121
+ // oauth required
2122
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
2123
+ // authentication api-key required
2124
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2125
+ if (project !== undefined) {
2126
+ localVarQueryParameter['project'] = project;
2127
+ }
2128
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2129
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2131
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2132
+ localVarRequestOptions.data = serializeDataIfNeeded(updateSearchRedirectRequest, localVarRequestOptions, configuration);
2133
+ return {
2134
+ url: toPathString(localVarUrlObj),
2135
+ options: localVarRequestOptions,
2136
+ };
2137
+ }),
2138
+ };
2139
+ };
2140
+ /**
2141
+ * SearchApi - functional programming interface
2142
+ * @export
2143
+ */
2144
+ export const SearchApiFp = function (configuration) {
2145
+ const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration);
2146
+ return {
2147
+ /**
2148
+ *
2149
+ * @summary Create search redirect
2150
+ * @param {string} project What project it is
2151
+ * @param {number} [pageToken] Page reference token
2152
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2153
+ * @param {string} [search] Search term to filter results
2154
+ * @param {CreateSearchRedirectRequest} [createSearchRedirectRequest] Create search redirect
2155
+ * @param {*} [options] Override http request option.
2156
+ * @throws {RequiredError}
2157
+ */
2158
+ createSearchRedirect(project, pageToken, pageSize, search, createSearchRedirectRequest, options) {
2159
+ return __awaiter(this, void 0, void 0, function* () {
2160
+ var _a, _b, _c;
2161
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSearchRedirect(project, pageToken, pageSize, search, createSearchRedirectRequest, options);
2162
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2163
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.createSearchRedirect']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2164
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2165
+ });
2166
+ },
2167
+ /**
2168
+ *
2169
+ * @summary Delete search redirect
2170
+ * @param {string} project What project it is
2171
+ * @param {string} redirectId Redirect\'s unique identifier
2172
+ * @param {*} [options] Override http request option.
2173
+ * @throws {RequiredError}
2174
+ */
2175
+ deleteSearchRedirect(project, redirectId, options) {
2176
+ return __awaiter(this, void 0, void 0, function* () {
2177
+ var _a, _b, _c;
2178
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSearchRedirect(project, redirectId, options);
2179
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2180
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.deleteSearchRedirect']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2181
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2182
+ });
2183
+ },
2184
+ /**
2185
+ *
2186
+ * @summary Get search redirect
2187
+ * @param {string} project What project it is
2188
+ * @param {string} redirectId Redirect\'s unique identifier
2189
+ * @param {*} [options] Override http request option.
2190
+ * @throws {RequiredError}
2191
+ */
2192
+ getSearchRedirect(project, redirectId, options) {
2193
+ return __awaiter(this, void 0, void 0, function* () {
2194
+ var _a, _b, _c;
2195
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSearchRedirect(project, redirectId, options);
2196
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2197
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.getSearchRedirect']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2198
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2199
+ });
2200
+ },
2201
+ /**
2202
+ *
2203
+ * @summary List search redirects
2204
+ * @param {string} project What project it is
2205
+ * @param {number} [pageToken] Page reference token
2206
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2207
+ * @param {string} [search] Search term to filter results
2208
+ * @param {*} [options] Override http request option.
2209
+ * @throws {RequiredError}
2210
+ */
2211
+ listSearchRedirects(project, pageToken, pageSize, search, options) {
2212
+ return __awaiter(this, void 0, void 0, function* () {
2213
+ var _a, _b, _c;
2214
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSearchRedirects(project, pageToken, pageSize, search, options);
2215
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2216
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.listSearchRedirects']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2217
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2218
+ });
2219
+ },
2220
+ /**
2221
+ *
2222
+ * @summary Update search redirect
2223
+ * @param {string} project What project it is
2224
+ * @param {string} redirectId Redirect\'s unique identifier
2225
+ * @param {UpdateSearchRedirectRequest} [updateSearchRedirectRequest] Update search redirect
2226
+ * @param {*} [options] Override http request option.
2227
+ * @throws {RequiredError}
2228
+ */
2229
+ updateSearchRedirect(project, redirectId, updateSearchRedirectRequest, options) {
2230
+ return __awaiter(this, void 0, void 0, function* () {
2231
+ var _a, _b, _c;
2232
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSearchRedirect(project, redirectId, updateSearchRedirectRequest, options);
2233
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2234
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.updateSearchRedirect']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2235
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2236
+ });
2237
+ },
2238
+ };
2239
+ };
2240
+ /**
2241
+ * SearchApi - factory interface
2242
+ * @export
2243
+ */
2244
+ export const SearchApiFactory = function (configuration, basePath, axios) {
2245
+ const localVarFp = SearchApiFp(configuration);
2246
+ return {
2247
+ /**
2248
+ *
2249
+ * @summary Create search redirect
2250
+ * @param {SearchApiCreateSearchRedirectRequest} requestParameters Request parameters.
2251
+ * @param {*} [options] Override http request option.
2252
+ * @throws {RequiredError}
2253
+ */
2254
+ createSearchRedirect(requestParameters, options) {
2255
+ return localVarFp.createSearchRedirect(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.createSearchRedirectRequest, options).then((request) => request(axios, basePath));
2256
+ },
2257
+ /**
2258
+ *
2259
+ * @summary Delete search redirect
2260
+ * @param {SearchApiDeleteSearchRedirectRequest} requestParameters Request parameters.
2261
+ * @param {*} [options] Override http request option.
2262
+ * @throws {RequiredError}
2263
+ */
2264
+ deleteSearchRedirect(requestParameters, options) {
2265
+ return localVarFp.deleteSearchRedirect(requestParameters.project, requestParameters.redirectId, options).then((request) => request(axios, basePath));
2266
+ },
2267
+ /**
2268
+ *
2269
+ * @summary Get search redirect
2270
+ * @param {SearchApiGetSearchRedirectRequest} requestParameters Request parameters.
2271
+ * @param {*} [options] Override http request option.
2272
+ * @throws {RequiredError}
2273
+ */
2274
+ getSearchRedirect(requestParameters, options) {
2275
+ return localVarFp.getSearchRedirect(requestParameters.project, requestParameters.redirectId, options).then((request) => request(axios, basePath));
2276
+ },
2277
+ /**
2278
+ *
2279
+ * @summary List search redirects
2280
+ * @param {SearchApiListSearchRedirectsRequest} requestParameters Request parameters.
2281
+ * @param {*} [options] Override http request option.
2282
+ * @throws {RequiredError}
2283
+ */
2284
+ listSearchRedirects(requestParameters, options) {
2285
+ return localVarFp.listSearchRedirects(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
2286
+ },
2287
+ /**
2288
+ *
2289
+ * @summary Update search redirect
2290
+ * @param {SearchApiUpdateSearchRedirectRequest} requestParameters Request parameters.
2291
+ * @param {*} [options] Override http request option.
2292
+ * @throws {RequiredError}
2293
+ */
2294
+ updateSearchRedirect(requestParameters, options) {
2295
+ return localVarFp.updateSearchRedirect(requestParameters.project, requestParameters.redirectId, requestParameters.updateSearchRedirectRequest, options).then((request) => request(axios, basePath));
2296
+ },
2297
+ };
2298
+ };
2299
+ /**
2300
+ * SearchApi - object-oriented interface
2301
+ * @export
2302
+ * @class SearchApi
2303
+ * @extends {BaseAPI}
2304
+ */
2305
+ export class SearchApi extends BaseAPI {
2306
+ /**
2307
+ *
2308
+ * @summary Create search redirect
2309
+ * @param {SearchApiCreateSearchRedirectRequest} requestParameters Request parameters.
2310
+ * @param {*} [options] Override http request option.
2311
+ * @throws {RequiredError}
2312
+ * @memberof SearchApi
2313
+ */
2314
+ createSearchRedirect(requestParameters, options) {
2315
+ return SearchApiFp(this.configuration).createSearchRedirect(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.createSearchRedirectRequest, options).then((request) => request(this.axios, this.basePath));
2316
+ }
2317
+ /**
2318
+ *
2319
+ * @summary Delete search redirect
2320
+ * @param {SearchApiDeleteSearchRedirectRequest} requestParameters Request parameters.
2321
+ * @param {*} [options] Override http request option.
2322
+ * @throws {RequiredError}
2323
+ * @memberof SearchApi
2324
+ */
2325
+ deleteSearchRedirect(requestParameters, options) {
2326
+ return SearchApiFp(this.configuration).deleteSearchRedirect(requestParameters.project, requestParameters.redirectId, options).then((request) => request(this.axios, this.basePath));
2327
+ }
2328
+ /**
2329
+ *
2330
+ * @summary Get search redirect
2331
+ * @param {SearchApiGetSearchRedirectRequest} requestParameters Request parameters.
2332
+ * @param {*} [options] Override http request option.
2333
+ * @throws {RequiredError}
2334
+ * @memberof SearchApi
2335
+ */
2336
+ getSearchRedirect(requestParameters, options) {
2337
+ return SearchApiFp(this.configuration).getSearchRedirect(requestParameters.project, requestParameters.redirectId, options).then((request) => request(this.axios, this.basePath));
2338
+ }
2339
+ /**
2340
+ *
2341
+ * @summary List search redirects
2342
+ * @param {SearchApiListSearchRedirectsRequest} requestParameters Request parameters.
2343
+ * @param {*} [options] Override http request option.
2344
+ * @throws {RequiredError}
2345
+ * @memberof SearchApi
2346
+ */
2347
+ listSearchRedirects(requestParameters, options) {
2348
+ return SearchApiFp(this.configuration).listSearchRedirects(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
2349
+ }
2350
+ /**
2351
+ *
2352
+ * @summary Update search redirect
2353
+ * @param {SearchApiUpdateSearchRedirectRequest} requestParameters Request parameters.
2354
+ * @param {*} [options] Override http request option.
2355
+ * @throws {RequiredError}
2356
+ * @memberof SearchApi
2357
+ */
2358
+ updateSearchRedirect(requestParameters, options) {
2359
+ return SearchApiFp(this.configuration).updateSearchRedirect(requestParameters.project, requestParameters.redirectId, requestParameters.updateSearchRedirectRequest, options).then((request) => request(this.axios, this.basePath));
2360
+ }
2361
+ }
@@ -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/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.12.0
7
+ * The version of the OpenAPI document: 0.14.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.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).
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.12.0
7
+ * The version of the OpenAPI document: 0.14.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.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).
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.12.0
7
+ * The version of the OpenAPI document: 0.14.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.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/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.12.0
7
+ * The version of the OpenAPI document: 0.14.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.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).