@teemill/platform 0.20.0 → 0.22.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
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.20.0
8
+ * The version of the OpenAPI document: 0.22.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.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = void 0;
25
+ exports.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -1680,6 +1680,140 @@ exports.PaymentApi = PaymentApi;
1680
1680
  */
1681
1681
  const PlatformApiAxiosParamCreator = function (configuration) {
1682
1682
  return {
1683
+ /**
1684
+ * Create a new client platform domain
1685
+ * @summary Create a platform client domain
1686
+ * @param {CreateDomainRequest} [createDomainRequest]
1687
+ * @param {*} [options] Override http request option.
1688
+ * @throws {RequiredError}
1689
+ */
1690
+ createClientDomain: (createDomainRequest_1, ...args_1) => __awaiter(this, [createDomainRequest_1, ...args_1], void 0, function* (createDomainRequest, options = {}) {
1691
+ const localVarPath = `/v1/platform/clients/domains`;
1692
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1693
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1694
+ let baseOptions;
1695
+ if (configuration) {
1696
+ baseOptions = configuration.baseOptions;
1697
+ }
1698
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1699
+ const localVarHeaderParameter = {};
1700
+ const localVarQueryParameter = {};
1701
+ // authentication session-oauth required
1702
+ // oauth required
1703
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1704
+ // authentication api-key required
1705
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1706
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1707
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1708
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1709
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1710
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDomainRequest, localVarRequestOptions, configuration);
1711
+ return {
1712
+ url: (0, common_1.toPathString)(localVarUrlObj),
1713
+ options: localVarRequestOptions,
1714
+ };
1715
+ }),
1716
+ /**
1717
+ * Create a new platform domain
1718
+ * @summary Create a platform domain
1719
+ * @param {CreateDomainRequest} [createDomainRequest]
1720
+ * @param {*} [options] Override http request option.
1721
+ * @throws {RequiredError}
1722
+ */
1723
+ createDomain: (createDomainRequest_1, ...args_1) => __awaiter(this, [createDomainRequest_1, ...args_1], void 0, function* (createDomainRequest, options = {}) {
1724
+ const localVarPath = `/v1/platform/domains`;
1725
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1726
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1727
+ let baseOptions;
1728
+ if (configuration) {
1729
+ baseOptions = configuration.baseOptions;
1730
+ }
1731
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1732
+ const localVarHeaderParameter = {};
1733
+ const localVarQueryParameter = {};
1734
+ // authentication session-oauth required
1735
+ // oauth required
1736
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1737
+ // authentication api-key required
1738
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1739
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1740
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1741
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1742
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1743
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDomainRequest, localVarRequestOptions, configuration);
1744
+ return {
1745
+ url: (0, common_1.toPathString)(localVarUrlObj),
1746
+ options: localVarRequestOptions,
1747
+ };
1748
+ }),
1749
+ /**
1750
+ * Delete an existing client platform domain
1751
+ * @summary Delete a platform client domain
1752
+ * @param {string} domain The domain identifier
1753
+ * @param {*} [options] Override http request option.
1754
+ * @throws {RequiredError}
1755
+ */
1756
+ deleteClientDomain: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
1757
+ // verify required parameter 'domain' is not null or undefined
1758
+ (0, common_1.assertParamExists)('deleteClientDomain', 'domain', domain);
1759
+ const localVarPath = `/v1/platform/clients/domains/{domain}`
1760
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
1761
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1762
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1763
+ let baseOptions;
1764
+ if (configuration) {
1765
+ baseOptions = configuration.baseOptions;
1766
+ }
1767
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1768
+ const localVarHeaderParameter = {};
1769
+ const localVarQueryParameter = {};
1770
+ // authentication session-oauth required
1771
+ // oauth required
1772
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1773
+ // authentication api-key required
1774
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1775
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1776
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1777
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1778
+ return {
1779
+ url: (0, common_1.toPathString)(localVarUrlObj),
1780
+ options: localVarRequestOptions,
1781
+ };
1782
+ }),
1783
+ /**
1784
+ * Delete an existing platform domain
1785
+ * @summary Delete a platform domain
1786
+ * @param {string} domain The domain identifier
1787
+ * @param {*} [options] Override http request option.
1788
+ * @throws {RequiredError}
1789
+ */
1790
+ deleteDomain: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
1791
+ // verify required parameter 'domain' is not null or undefined
1792
+ (0, common_1.assertParamExists)('deleteDomain', 'domain', domain);
1793
+ const localVarPath = `/v1/platform/domains/{domain}`
1794
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
1795
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1796
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1797
+ let baseOptions;
1798
+ if (configuration) {
1799
+ baseOptions = configuration.baseOptions;
1800
+ }
1801
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1802
+ const localVarHeaderParameter = {};
1803
+ const localVarQueryParameter = {};
1804
+ // authentication session-oauth required
1805
+ // oauth required
1806
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1807
+ // authentication api-key required
1808
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1809
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1810
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1811
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1812
+ return {
1813
+ url: (0, common_1.toPathString)(localVarUrlObj),
1814
+ options: localVarRequestOptions,
1815
+ };
1816
+ }),
1683
1817
  /**
1684
1818
  *
1685
1819
  * @summary Get platform details
@@ -1716,6 +1850,66 @@ const PlatformApiAxiosParamCreator = function (configuration) {
1716
1850
  options: localVarRequestOptions,
1717
1851
  };
1718
1852
  }),
1853
+ /**
1854
+ * List the client domains attached to a platform
1855
+ * @summary List platform client domains
1856
+ * @param {*} [options] Override http request option.
1857
+ * @throws {RequiredError}
1858
+ */
1859
+ listClientDomains: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1860
+ const localVarPath = `/v1/platform/clients/domains`;
1861
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1862
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1863
+ let baseOptions;
1864
+ if (configuration) {
1865
+ baseOptions = configuration.baseOptions;
1866
+ }
1867
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1868
+ const localVarHeaderParameter = {};
1869
+ const localVarQueryParameter = {};
1870
+ // authentication session-oauth required
1871
+ // oauth required
1872
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1873
+ // authentication api-key required
1874
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1875
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1876
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1877
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1878
+ return {
1879
+ url: (0, common_1.toPathString)(localVarUrlObj),
1880
+ options: localVarRequestOptions,
1881
+ };
1882
+ }),
1883
+ /**
1884
+ * List the domains attached to a platform
1885
+ * @summary List platform domains
1886
+ * @param {*} [options] Override http request option.
1887
+ * @throws {RequiredError}
1888
+ */
1889
+ listDomains: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1890
+ const localVarPath = `/v1/platform/domains`;
1891
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1892
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1893
+ let baseOptions;
1894
+ if (configuration) {
1895
+ baseOptions = configuration.baseOptions;
1896
+ }
1897
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1898
+ const localVarHeaderParameter = {};
1899
+ const localVarQueryParameter = {};
1900
+ // authentication session-oauth required
1901
+ // oauth required
1902
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1903
+ // authentication api-key required
1904
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1905
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1906
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1907
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1908
+ return {
1909
+ url: (0, common_1.toPathString)(localVarUrlObj),
1910
+ options: localVarRequestOptions,
1911
+ };
1912
+ }),
1719
1913
  /**
1720
1914
  *
1721
1915
  * @summary Update platform
@@ -1767,6 +1961,70 @@ exports.PlatformApiAxiosParamCreator = PlatformApiAxiosParamCreator;
1767
1961
  const PlatformApiFp = function (configuration) {
1768
1962
  const localVarAxiosParamCreator = (0, exports.PlatformApiAxiosParamCreator)(configuration);
1769
1963
  return {
1964
+ /**
1965
+ * Create a new client platform domain
1966
+ * @summary Create a platform client domain
1967
+ * @param {CreateDomainRequest} [createDomainRequest]
1968
+ * @param {*} [options] Override http request option.
1969
+ * @throws {RequiredError}
1970
+ */
1971
+ createClientDomain(createDomainRequest, options) {
1972
+ return __awaiter(this, void 0, void 0, function* () {
1973
+ var _a, _b, _c;
1974
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createClientDomain(createDomainRequest, options);
1975
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1976
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.createClientDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1977
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1978
+ });
1979
+ },
1980
+ /**
1981
+ * Create a new platform domain
1982
+ * @summary Create a platform domain
1983
+ * @param {CreateDomainRequest} [createDomainRequest]
1984
+ * @param {*} [options] Override http request option.
1985
+ * @throws {RequiredError}
1986
+ */
1987
+ createDomain(createDomainRequest, options) {
1988
+ return __awaiter(this, void 0, void 0, function* () {
1989
+ var _a, _b, _c;
1990
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createDomain(createDomainRequest, options);
1991
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1992
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.createDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1993
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1994
+ });
1995
+ },
1996
+ /**
1997
+ * Delete an existing client platform domain
1998
+ * @summary Delete a platform client domain
1999
+ * @param {string} domain The domain identifier
2000
+ * @param {*} [options] Override http request option.
2001
+ * @throws {RequiredError}
2002
+ */
2003
+ deleteClientDomain(domain, options) {
2004
+ return __awaiter(this, void 0, void 0, function* () {
2005
+ var _a, _b, _c;
2006
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClientDomain(domain, options);
2007
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2008
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.deleteClientDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2009
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2010
+ });
2011
+ },
2012
+ /**
2013
+ * Delete an existing platform domain
2014
+ * @summary Delete a platform domain
2015
+ * @param {string} domain The domain identifier
2016
+ * @param {*} [options] Override http request option.
2017
+ * @throws {RequiredError}
2018
+ */
2019
+ deleteDomain(domain, options) {
2020
+ return __awaiter(this, void 0, void 0, function* () {
2021
+ var _a, _b, _c;
2022
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDomain(domain, options);
2023
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2024
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.deleteDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2025
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2026
+ });
2027
+ },
1770
2028
  /**
1771
2029
  *
1772
2030
  * @summary Get platform details
@@ -1783,6 +2041,36 @@ const PlatformApiFp = function (configuration) {
1783
2041
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1784
2042
  });
1785
2043
  },
2044
+ /**
2045
+ * List the client domains attached to a platform
2046
+ * @summary List platform client domains
2047
+ * @param {*} [options] Override http request option.
2048
+ * @throws {RequiredError}
2049
+ */
2050
+ listClientDomains(options) {
2051
+ return __awaiter(this, void 0, void 0, function* () {
2052
+ var _a, _b, _c;
2053
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listClientDomains(options);
2054
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2055
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.listClientDomains']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2056
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2057
+ });
2058
+ },
2059
+ /**
2060
+ * List the domains attached to a platform
2061
+ * @summary List platform domains
2062
+ * @param {*} [options] Override http request option.
2063
+ * @throws {RequiredError}
2064
+ */
2065
+ listDomains(options) {
2066
+ return __awaiter(this, void 0, void 0, function* () {
2067
+ var _a, _b, _c;
2068
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listDomains(options);
2069
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2070
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.listDomains']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2071
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2072
+ });
2073
+ },
1786
2074
  /**
1787
2075
  *
1788
2076
  * @summary Update platform
@@ -1810,6 +2098,46 @@ exports.PlatformApiFp = PlatformApiFp;
1810
2098
  const PlatformApiFactory = function (configuration, basePath, axios) {
1811
2099
  const localVarFp = (0, exports.PlatformApiFp)(configuration);
1812
2100
  return {
2101
+ /**
2102
+ * Create a new client platform domain
2103
+ * @summary Create a platform client domain
2104
+ * @param {PlatformApiCreateClientDomainRequest} requestParameters Request parameters.
2105
+ * @param {*} [options] Override http request option.
2106
+ * @throws {RequiredError}
2107
+ */
2108
+ createClientDomain(requestParameters = {}, options) {
2109
+ return localVarFp.createClientDomain(requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
2110
+ },
2111
+ /**
2112
+ * Create a new platform domain
2113
+ * @summary Create a platform domain
2114
+ * @param {PlatformApiCreateDomainRequest} requestParameters Request parameters.
2115
+ * @param {*} [options] Override http request option.
2116
+ * @throws {RequiredError}
2117
+ */
2118
+ createDomain(requestParameters = {}, options) {
2119
+ return localVarFp.createDomain(requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
2120
+ },
2121
+ /**
2122
+ * Delete an existing client platform domain
2123
+ * @summary Delete a platform client domain
2124
+ * @param {PlatformApiDeleteClientDomainRequest} requestParameters Request parameters.
2125
+ * @param {*} [options] Override http request option.
2126
+ * @throws {RequiredError}
2127
+ */
2128
+ deleteClientDomain(requestParameters, options) {
2129
+ return localVarFp.deleteClientDomain(requestParameters.domain, options).then((request) => request(axios, basePath));
2130
+ },
2131
+ /**
2132
+ * Delete an existing platform domain
2133
+ * @summary Delete a platform domain
2134
+ * @param {PlatformApiDeleteDomainRequest} requestParameters Request parameters.
2135
+ * @param {*} [options] Override http request option.
2136
+ * @throws {RequiredError}
2137
+ */
2138
+ deleteDomain(requestParameters, options) {
2139
+ return localVarFp.deleteDomain(requestParameters.domain, options).then((request) => request(axios, basePath));
2140
+ },
1813
2141
  /**
1814
2142
  *
1815
2143
  * @summary Get platform details
@@ -1820,6 +2148,24 @@ const PlatformApiFactory = function (configuration, basePath, axios) {
1820
2148
  getPlatform(requestParameters, options) {
1821
2149
  return localVarFp.getPlatform(requestParameters.project, options).then((request) => request(axios, basePath));
1822
2150
  },
2151
+ /**
2152
+ * List the client domains attached to a platform
2153
+ * @summary List platform client domains
2154
+ * @param {*} [options] Override http request option.
2155
+ * @throws {RequiredError}
2156
+ */
2157
+ listClientDomains(options) {
2158
+ return localVarFp.listClientDomains(options).then((request) => request(axios, basePath));
2159
+ },
2160
+ /**
2161
+ * List the domains attached to a platform
2162
+ * @summary List platform domains
2163
+ * @param {*} [options] Override http request option.
2164
+ * @throws {RequiredError}
2165
+ */
2166
+ listDomains(options) {
2167
+ return localVarFp.listDomains(options).then((request) => request(axios, basePath));
2168
+ },
1823
2169
  /**
1824
2170
  *
1825
2171
  * @summary Update platform
@@ -1840,6 +2186,50 @@ exports.PlatformApiFactory = PlatformApiFactory;
1840
2186
  * @extends {BaseAPI}
1841
2187
  */
1842
2188
  class PlatformApi extends base_1.BaseAPI {
2189
+ /**
2190
+ * Create a new client platform domain
2191
+ * @summary Create a platform client domain
2192
+ * @param {PlatformApiCreateClientDomainRequest} requestParameters Request parameters.
2193
+ * @param {*} [options] Override http request option.
2194
+ * @throws {RequiredError}
2195
+ * @memberof PlatformApi
2196
+ */
2197
+ createClientDomain(requestParameters = {}, options) {
2198
+ return (0, exports.PlatformApiFp)(this.configuration).createClientDomain(requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
2199
+ }
2200
+ /**
2201
+ * Create a new platform domain
2202
+ * @summary Create a platform domain
2203
+ * @param {PlatformApiCreateDomainRequest} requestParameters Request parameters.
2204
+ * @param {*} [options] Override http request option.
2205
+ * @throws {RequiredError}
2206
+ * @memberof PlatformApi
2207
+ */
2208
+ createDomain(requestParameters = {}, options) {
2209
+ return (0, exports.PlatformApiFp)(this.configuration).createDomain(requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
2210
+ }
2211
+ /**
2212
+ * Delete an existing client platform domain
2213
+ * @summary Delete a platform client domain
2214
+ * @param {PlatformApiDeleteClientDomainRequest} requestParameters Request parameters.
2215
+ * @param {*} [options] Override http request option.
2216
+ * @throws {RequiredError}
2217
+ * @memberof PlatformApi
2218
+ */
2219
+ deleteClientDomain(requestParameters, options) {
2220
+ return (0, exports.PlatformApiFp)(this.configuration).deleteClientDomain(requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
2221
+ }
2222
+ /**
2223
+ * Delete an existing platform domain
2224
+ * @summary Delete a platform domain
2225
+ * @param {PlatformApiDeleteDomainRequest} requestParameters Request parameters.
2226
+ * @param {*} [options] Override http request option.
2227
+ * @throws {RequiredError}
2228
+ * @memberof PlatformApi
2229
+ */
2230
+ deleteDomain(requestParameters, options) {
2231
+ return (0, exports.PlatformApiFp)(this.configuration).deleteDomain(requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
2232
+ }
1843
2233
  /**
1844
2234
  *
1845
2235
  * @summary Get platform details
@@ -1851,6 +2241,26 @@ class PlatformApi extends base_1.BaseAPI {
1851
2241
  getPlatform(requestParameters, options) {
1852
2242
  return (0, exports.PlatformApiFp)(this.configuration).getPlatform(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1853
2243
  }
2244
+ /**
2245
+ * List the client domains attached to a platform
2246
+ * @summary List platform client domains
2247
+ * @param {*} [options] Override http request option.
2248
+ * @throws {RequiredError}
2249
+ * @memberof PlatformApi
2250
+ */
2251
+ listClientDomains(options) {
2252
+ return (0, exports.PlatformApiFp)(this.configuration).listClientDomains(options).then((request) => request(this.axios, this.basePath));
2253
+ }
2254
+ /**
2255
+ * List the domains attached to a platform
2256
+ * @summary List platform domains
2257
+ * @param {*} [options] Override http request option.
2258
+ * @throws {RequiredError}
2259
+ * @memberof PlatformApi
2260
+ */
2261
+ listDomains(options) {
2262
+ return (0, exports.PlatformApiFp)(this.configuration).listDomains(options).then((request) => request(this.axios, this.basePath));
2263
+ }
1854
2264
  /**
1855
2265
  *
1856
2266
  * @summary Update platform
@@ -2278,3 +2688,203 @@ class ReviewsApi extends base_1.BaseAPI {
2278
2688
  }
2279
2689
  }
2280
2690
  exports.ReviewsApi = ReviewsApi;
2691
+ /**
2692
+ * TermsApi - axios parameter creator
2693
+ * @export
2694
+ */
2695
+ const TermsApiAxiosParamCreator = function (configuration) {
2696
+ return {
2697
+ /**
2698
+ *
2699
+ * @summary Get the platform\'s terms
2700
+ * @param {string} project Project unique identifier
2701
+ * @param {string} platformId The platform identifier
2702
+ * @param {*} [options] Override http request option.
2703
+ * @throws {RequiredError}
2704
+ */
2705
+ getTerms: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
2706
+ // verify required parameter 'project' is not null or undefined
2707
+ (0, common_1.assertParamExists)('getTerms', 'project', project);
2708
+ // verify required parameter 'platformId' is not null or undefined
2709
+ (0, common_1.assertParamExists)('getTerms', 'platformId', platformId);
2710
+ const localVarPath = `/v1/platform/{platformId}/terms`
2711
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
2712
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2713
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2714
+ let baseOptions;
2715
+ if (configuration) {
2716
+ baseOptions = configuration.baseOptions;
2717
+ }
2718
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2719
+ const localVarHeaderParameter = {};
2720
+ const localVarQueryParameter = {};
2721
+ // authentication session-oauth required
2722
+ // oauth required
2723
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
2724
+ // authentication api-key required
2725
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2726
+ if (project !== undefined) {
2727
+ localVarQueryParameter['project'] = project;
2728
+ }
2729
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2730
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2731
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2732
+ return {
2733
+ url: (0, common_1.toPathString)(localVarUrlObj),
2734
+ options: localVarRequestOptions,
2735
+ };
2736
+ }),
2737
+ /**
2738
+ *
2739
+ * @summary Save the platform\'s terms
2740
+ * @param {string} project Project unique identifier
2741
+ * @param {string} platformId The platform identifier
2742
+ * @param {SaveTermsRequest} saveTermsRequest Save terms
2743
+ * @param {*} [options] Override http request option.
2744
+ * @throws {RequiredError}
2745
+ */
2746
+ saveTerms: (project_1, platformId_1, saveTermsRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, saveTermsRequest_1, ...args_1], void 0, function* (project, platformId, saveTermsRequest, options = {}) {
2747
+ // verify required parameter 'project' is not null or undefined
2748
+ (0, common_1.assertParamExists)('saveTerms', 'project', project);
2749
+ // verify required parameter 'platformId' is not null or undefined
2750
+ (0, common_1.assertParamExists)('saveTerms', 'platformId', platformId);
2751
+ // verify required parameter 'saveTermsRequest' is not null or undefined
2752
+ (0, common_1.assertParamExists)('saveTerms', 'saveTermsRequest', saveTermsRequest);
2753
+ const localVarPath = `/v1/platform/{platformId}/terms`
2754
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
2755
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2756
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2757
+ let baseOptions;
2758
+ if (configuration) {
2759
+ baseOptions = configuration.baseOptions;
2760
+ }
2761
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2762
+ const localVarHeaderParameter = {};
2763
+ const localVarQueryParameter = {};
2764
+ // authentication session-oauth required
2765
+ // oauth required
2766
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
2767
+ // authentication api-key required
2768
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2769
+ if (project !== undefined) {
2770
+ localVarQueryParameter['project'] = project;
2771
+ }
2772
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2773
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2774
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2775
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2776
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveTermsRequest, localVarRequestOptions, configuration);
2777
+ return {
2778
+ url: (0, common_1.toPathString)(localVarUrlObj),
2779
+ options: localVarRequestOptions,
2780
+ };
2781
+ }),
2782
+ };
2783
+ };
2784
+ exports.TermsApiAxiosParamCreator = TermsApiAxiosParamCreator;
2785
+ /**
2786
+ * TermsApi - functional programming interface
2787
+ * @export
2788
+ */
2789
+ const TermsApiFp = function (configuration) {
2790
+ const localVarAxiosParamCreator = (0, exports.TermsApiAxiosParamCreator)(configuration);
2791
+ return {
2792
+ /**
2793
+ *
2794
+ * @summary Get the platform\'s terms
2795
+ * @param {string} project Project unique identifier
2796
+ * @param {string} platformId The platform identifier
2797
+ * @param {*} [options] Override http request option.
2798
+ * @throws {RequiredError}
2799
+ */
2800
+ getTerms(project, platformId, options) {
2801
+ return __awaiter(this, void 0, void 0, function* () {
2802
+ var _a, _b, _c;
2803
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTerms(project, platformId, options);
2804
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2805
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TermsApi.getTerms']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2806
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2807
+ });
2808
+ },
2809
+ /**
2810
+ *
2811
+ * @summary Save the platform\'s terms
2812
+ * @param {string} project Project unique identifier
2813
+ * @param {string} platformId The platform identifier
2814
+ * @param {SaveTermsRequest} saveTermsRequest Save terms
2815
+ * @param {*} [options] Override http request option.
2816
+ * @throws {RequiredError}
2817
+ */
2818
+ saveTerms(project, platformId, saveTermsRequest, options) {
2819
+ return __awaiter(this, void 0, void 0, function* () {
2820
+ var _a, _b, _c;
2821
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.saveTerms(project, platformId, saveTermsRequest, options);
2822
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2823
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TermsApi.saveTerms']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2824
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2825
+ });
2826
+ },
2827
+ };
2828
+ };
2829
+ exports.TermsApiFp = TermsApiFp;
2830
+ /**
2831
+ * TermsApi - factory interface
2832
+ * @export
2833
+ */
2834
+ const TermsApiFactory = function (configuration, basePath, axios) {
2835
+ const localVarFp = (0, exports.TermsApiFp)(configuration);
2836
+ return {
2837
+ /**
2838
+ *
2839
+ * @summary Get the platform\'s terms
2840
+ * @param {TermsApiGetTermsRequest} requestParameters Request parameters.
2841
+ * @param {*} [options] Override http request option.
2842
+ * @throws {RequiredError}
2843
+ */
2844
+ getTerms(requestParameters, options) {
2845
+ return localVarFp.getTerms(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
2846
+ },
2847
+ /**
2848
+ *
2849
+ * @summary Save the platform\'s terms
2850
+ * @param {TermsApiSaveTermsRequest} requestParameters Request parameters.
2851
+ * @param {*} [options] Override http request option.
2852
+ * @throws {RequiredError}
2853
+ */
2854
+ saveTerms(requestParameters, options) {
2855
+ return localVarFp.saveTerms(requestParameters.project, requestParameters.platformId, requestParameters.saveTermsRequest, options).then((request) => request(axios, basePath));
2856
+ },
2857
+ };
2858
+ };
2859
+ exports.TermsApiFactory = TermsApiFactory;
2860
+ /**
2861
+ * TermsApi - object-oriented interface
2862
+ * @export
2863
+ * @class TermsApi
2864
+ * @extends {BaseAPI}
2865
+ */
2866
+ class TermsApi extends base_1.BaseAPI {
2867
+ /**
2868
+ *
2869
+ * @summary Get the platform\'s terms
2870
+ * @param {TermsApiGetTermsRequest} requestParameters Request parameters.
2871
+ * @param {*} [options] Override http request option.
2872
+ * @throws {RequiredError}
2873
+ * @memberof TermsApi
2874
+ */
2875
+ getTerms(requestParameters, options) {
2876
+ return (0, exports.TermsApiFp)(this.configuration).getTerms(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
2877
+ }
2878
+ /**
2879
+ *
2880
+ * @summary Save the platform\'s terms
2881
+ * @param {TermsApiSaveTermsRequest} requestParameters Request parameters.
2882
+ * @param {*} [options] Override http request option.
2883
+ * @throws {RequiredError}
2884
+ * @memberof TermsApi
2885
+ */
2886
+ saveTerms(requestParameters, options) {
2887
+ return (0, exports.TermsApiFp)(this.configuration).saveTerms(requestParameters.project, requestParameters.platformId, requestParameters.saveTermsRequest, options).then((request) => request(this.axios, this.basePath));
2888
+ }
2889
+ }
2890
+ exports.TermsApi = TermsApi;