@teemill/website 0.25.0 → 0.25.3

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.25.0
7
+ * The version of the OpenAPI document: 0.25.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3750,11 +3750,14 @@ export const WebsiteApiAxiosParamCreator = function (configuration) {
3750
3750
  /**
3751
3751
  * Create a new website domain
3752
3752
  * @summary Create a website domain
3753
+ * @param {string} project What project it is
3753
3754
  * @param {CreateDomainRequest} [createDomainRequest]
3754
3755
  * @param {*} [options] Override http request option.
3755
3756
  * @throws {RequiredError}
3756
3757
  */
3757
- createDomain: (createDomainRequest_1, ...args_1) => __awaiter(this, [createDomainRequest_1, ...args_1], void 0, function* (createDomainRequest, options = {}) {
3758
+ createDomain: (project_1, createDomainRequest_1, ...args_1) => __awaiter(this, [project_1, createDomainRequest_1, ...args_1], void 0, function* (project, createDomainRequest, options = {}) {
3759
+ // verify required parameter 'project' is not null or undefined
3760
+ assertParamExists('createDomain', 'project', project);
3758
3761
  const localVarPath = `/v1/website/domains`;
3759
3762
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3760
3763
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3770,6 +3773,9 @@ export const WebsiteApiAxiosParamCreator = function (configuration) {
3770
3773
  yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
3771
3774
  // authentication api-key required
3772
3775
  yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
3776
+ if (project !== undefined) {
3777
+ localVarQueryParameter['project'] = project;
3778
+ }
3773
3779
  localVarHeaderParameter['Content-Type'] = 'application/json';
3774
3780
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3775
3781
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -3783,11 +3789,14 @@ export const WebsiteApiAxiosParamCreator = function (configuration) {
3783
3789
  /**
3784
3790
  * Delete an existing website domain
3785
3791
  * @summary Delete a website domain
3792
+ * @param {string} project What project it is
3786
3793
  * @param {string} domain The domain identifier
3787
3794
  * @param {*} [options] Override http request option.
3788
3795
  * @throws {RequiredError}
3789
3796
  */
3790
- deleteDomain: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
3797
+ deleteDomain: (project_1, domain_1, ...args_1) => __awaiter(this, [project_1, domain_1, ...args_1], void 0, function* (project, domain, options = {}) {
3798
+ // verify required parameter 'project' is not null or undefined
3799
+ assertParamExists('deleteDomain', 'project', project);
3791
3800
  // verify required parameter 'domain' is not null or undefined
3792
3801
  assertParamExists('deleteDomain', 'domain', domain);
3793
3802
  const localVarPath = `/v1/website/domains/{domain}`
@@ -3806,6 +3815,9 @@ export const WebsiteApiAxiosParamCreator = function (configuration) {
3806
3815
  yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
3807
3816
  // authentication api-key required
3808
3817
  yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
3818
+ if (project !== undefined) {
3819
+ localVarQueryParameter['project'] = project;
3820
+ }
3809
3821
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3810
3822
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3811
3823
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3817,10 +3829,13 @@ export const WebsiteApiAxiosParamCreator = function (configuration) {
3817
3829
  /**
3818
3830
  * List the domains attached to a website
3819
3831
  * @summary List website domains
3832
+ * @param {string} project What project it is
3820
3833
  * @param {*} [options] Override http request option.
3821
3834
  * @throws {RequiredError}
3822
3835
  */
3823
- listDomains: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3836
+ listDomains: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
3837
+ // verify required parameter 'project' is not null or undefined
3838
+ assertParamExists('listDomains', 'project', project);
3824
3839
  const localVarPath = `/v1/website/domains`;
3825
3840
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3826
3841
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3836,6 +3851,9 @@ export const WebsiteApiAxiosParamCreator = function (configuration) {
3836
3851
  yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
3837
3852
  // authentication api-key required
3838
3853
  yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
3854
+ if (project !== undefined) {
3855
+ localVarQueryParameter['project'] = project;
3856
+ }
3839
3857
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3840
3858
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3841
3859
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3844,6 +3862,45 @@ export const WebsiteApiAxiosParamCreator = function (configuration) {
3844
3862
  options: localVarRequestOptions,
3845
3863
  };
3846
3864
  }),
3865
+ /**
3866
+ * Updated a websites base domain
3867
+ * @summary Update base domain
3868
+ * @param {string} project What project it is
3869
+ * @param {CreateDomainRequest} [createDomainRequest]
3870
+ * @param {*} [options] Override http request option.
3871
+ * @throws {RequiredError}
3872
+ */
3873
+ updateBaseDomain: (project_1, createDomainRequest_1, ...args_1) => __awaiter(this, [project_1, createDomainRequest_1, ...args_1], void 0, function* (project, createDomainRequest, options = {}) {
3874
+ // verify required parameter 'project' is not null or undefined
3875
+ assertParamExists('updateBaseDomain', 'project', project);
3876
+ const localVarPath = `/v1/website/domains/base`;
3877
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3878
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3879
+ let baseOptions;
3880
+ if (configuration) {
3881
+ baseOptions = configuration.baseOptions;
3882
+ }
3883
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3884
+ const localVarHeaderParameter = {};
3885
+ const localVarQueryParameter = {};
3886
+ // authentication session-oauth required
3887
+ // oauth required
3888
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
3889
+ // authentication api-key required
3890
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
3891
+ if (project !== undefined) {
3892
+ localVarQueryParameter['project'] = project;
3893
+ }
3894
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3895
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3896
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3897
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3898
+ localVarRequestOptions.data = serializeDataIfNeeded(createDomainRequest, localVarRequestOptions, configuration);
3899
+ return {
3900
+ url: toPathString(localVarUrlObj),
3901
+ options: localVarRequestOptions,
3902
+ };
3903
+ }),
3847
3904
  };
3848
3905
  };
3849
3906
  /**
@@ -3856,14 +3913,15 @@ export const WebsiteApiFp = function (configuration) {
3856
3913
  /**
3857
3914
  * Create a new website domain
3858
3915
  * @summary Create a website domain
3916
+ * @param {string} project What project it is
3859
3917
  * @param {CreateDomainRequest} [createDomainRequest]
3860
3918
  * @param {*} [options] Override http request option.
3861
3919
  * @throws {RequiredError}
3862
3920
  */
3863
- createDomain(createDomainRequest, options) {
3921
+ createDomain(project, createDomainRequest, options) {
3864
3922
  return __awaiter(this, void 0, void 0, function* () {
3865
3923
  var _a, _b, _c;
3866
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createDomain(createDomainRequest, options);
3924
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createDomain(project, createDomainRequest, options);
3867
3925
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3868
3926
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebsiteApi.createDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3869
3927
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3872,14 +3930,15 @@ export const WebsiteApiFp = function (configuration) {
3872
3930
  /**
3873
3931
  * Delete an existing website domain
3874
3932
  * @summary Delete a website domain
3933
+ * @param {string} project What project it is
3875
3934
  * @param {string} domain The domain identifier
3876
3935
  * @param {*} [options] Override http request option.
3877
3936
  * @throws {RequiredError}
3878
3937
  */
3879
- deleteDomain(domain, options) {
3938
+ deleteDomain(project, domain, options) {
3880
3939
  return __awaiter(this, void 0, void 0, function* () {
3881
3940
  var _a, _b, _c;
3882
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDomain(domain, options);
3941
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDomain(project, domain, options);
3883
3942
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3884
3943
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebsiteApi.deleteDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3885
3944
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3888,18 +3947,36 @@ export const WebsiteApiFp = function (configuration) {
3888
3947
  /**
3889
3948
  * List the domains attached to a website
3890
3949
  * @summary List website domains
3950
+ * @param {string} project What project it is
3891
3951
  * @param {*} [options] Override http request option.
3892
3952
  * @throws {RequiredError}
3893
3953
  */
3894
- listDomains(options) {
3954
+ listDomains(project, options) {
3895
3955
  return __awaiter(this, void 0, void 0, function* () {
3896
3956
  var _a, _b, _c;
3897
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listDomains(options);
3957
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listDomains(project, options);
3898
3958
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3899
3959
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebsiteApi.listDomains']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3900
3960
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3901
3961
  });
3902
3962
  },
3963
+ /**
3964
+ * Updated a websites base domain
3965
+ * @summary Update base domain
3966
+ * @param {string} project What project it is
3967
+ * @param {CreateDomainRequest} [createDomainRequest]
3968
+ * @param {*} [options] Override http request option.
3969
+ * @throws {RequiredError}
3970
+ */
3971
+ updateBaseDomain(project, createDomainRequest, options) {
3972
+ return __awaiter(this, void 0, void 0, function* () {
3973
+ var _a, _b, _c;
3974
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBaseDomain(project, createDomainRequest, options);
3975
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3976
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebsiteApi.updateBaseDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3977
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3978
+ });
3979
+ },
3903
3980
  };
3904
3981
  };
3905
3982
  /**
@@ -3916,8 +3993,8 @@ export const WebsiteApiFactory = function (configuration, basePath, axios) {
3916
3993
  * @param {*} [options] Override http request option.
3917
3994
  * @throws {RequiredError}
3918
3995
  */
3919
- createDomain(requestParameters = {}, options) {
3920
- return localVarFp.createDomain(requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
3996
+ createDomain(requestParameters, options) {
3997
+ return localVarFp.createDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
3921
3998
  },
3922
3999
  /**
3923
4000
  * Delete an existing website domain
@@ -3927,16 +4004,27 @@ export const WebsiteApiFactory = function (configuration, basePath, axios) {
3927
4004
  * @throws {RequiredError}
3928
4005
  */
3929
4006
  deleteDomain(requestParameters, options) {
3930
- return localVarFp.deleteDomain(requestParameters.domain, options).then((request) => request(axios, basePath));
4007
+ return localVarFp.deleteDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(axios, basePath));
3931
4008
  },
3932
4009
  /**
3933
4010
  * List the domains attached to a website
3934
4011
  * @summary List website domains
4012
+ * @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
4013
+ * @param {*} [options] Override http request option.
4014
+ * @throws {RequiredError}
4015
+ */
4016
+ listDomains(requestParameters, options) {
4017
+ return localVarFp.listDomains(requestParameters.project, options).then((request) => request(axios, basePath));
4018
+ },
4019
+ /**
4020
+ * Updated a websites base domain
4021
+ * @summary Update base domain
4022
+ * @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
3935
4023
  * @param {*} [options] Override http request option.
3936
4024
  * @throws {RequiredError}
3937
4025
  */
3938
- listDomains(options) {
3939
- return localVarFp.listDomains(options).then((request) => request(axios, basePath));
4026
+ updateBaseDomain(requestParameters, options) {
4027
+ return localVarFp.updateBaseDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
3940
4028
  },
3941
4029
  };
3942
4030
  };
@@ -3955,8 +4043,8 @@ export class WebsiteApi extends BaseAPI {
3955
4043
  * @throws {RequiredError}
3956
4044
  * @memberof WebsiteApi
3957
4045
  */
3958
- createDomain(requestParameters = {}, options) {
3959
- return WebsiteApiFp(this.configuration).createDomain(requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
4046
+ createDomain(requestParameters, options) {
4047
+ return WebsiteApiFp(this.configuration).createDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
3960
4048
  }
3961
4049
  /**
3962
4050
  * Delete an existing website domain
@@ -3967,16 +4055,28 @@ export class WebsiteApi extends BaseAPI {
3967
4055
  * @memberof WebsiteApi
3968
4056
  */
3969
4057
  deleteDomain(requestParameters, options) {
3970
- return WebsiteApiFp(this.configuration).deleteDomain(requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
4058
+ return WebsiteApiFp(this.configuration).deleteDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
3971
4059
  }
3972
4060
  /**
3973
4061
  * List the domains attached to a website
3974
4062
  * @summary List website domains
4063
+ * @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
4064
+ * @param {*} [options] Override http request option.
4065
+ * @throws {RequiredError}
4066
+ * @memberof WebsiteApi
4067
+ */
4068
+ listDomains(requestParameters, options) {
4069
+ return WebsiteApiFp(this.configuration).listDomains(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
4070
+ }
4071
+ /**
4072
+ * Updated a websites base domain
4073
+ * @summary Update base domain
4074
+ * @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
3975
4075
  * @param {*} [options] Override http request option.
3976
4076
  * @throws {RequiredError}
3977
4077
  * @memberof WebsiteApi
3978
4078
  */
3979
- listDomains(options) {
3980
- return WebsiteApiFp(this.configuration).listDomains(options).then((request) => request(this.axios, this.basePath));
4079
+ updateBaseDomain(requestParameters, options) {
4080
+ return WebsiteApiFp(this.configuration).updateBaseDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
3981
4081
  }
3982
4082
  }
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.25.0
5
+ * The version of the OpenAPI document: 0.25.3
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.25.0
7
+ * The version of the OpenAPI document: 0.25.3
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.25.0
5
+ * The version of the OpenAPI document: 0.25.3
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.25.0
7
+ * The version of the OpenAPI document: 0.25.3
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.25.0
5
+ * The version of the OpenAPI document: 0.25.3
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.25.0
7
+ * The version of the OpenAPI document: 0.25.3
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.25.0
5
+ * The version of the OpenAPI document: 0.25.3
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.25.0
7
+ * The version of the OpenAPI document: 0.25.3
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.25.0
5
+ * The version of the OpenAPI document: 0.25.3
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.25.0
8
+ * The version of the OpenAPI document: 0.25.3
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,8 +5,8 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **domains** | [**Array<Domain>**](Domain.md) | | [optional] [default to undefined]
9
- **nextPageToken** | **number** | | [optional] [default to undefined]
8
+ **domains** | [**Array<Domain>**](Domain.md) | | [default to undefined]
9
+ **nextPageToken** | **number** | | [default to undefined]
10
10
 
11
11
  ## Example
12
12
 
@@ -7,6 +7,7 @@ All URIs are relative to *https://api.localhost:8080*
7
7
  |[**createDomain**](#createdomain) | **POST** /v1/website/domains | Create a website domain|
8
8
  |[**deleteDomain**](#deletedomain) | **DELETE** /v1/website/domains/{domain} | Delete a website domain|
9
9
  |[**listDomains**](#listdomains) | **GET** /v1/website/domains | List website domains|
10
+ |[**updateBaseDomain**](#updatebasedomain) | **PUT** /v1/website/domains/base | Update base domain|
10
11
 
11
12
  # **createDomain**
12
13
  > Domain createDomain()
@@ -25,9 +26,11 @@ import {
25
26
  const configuration = new Configuration();
26
27
  const apiInstance = new WebsiteApi(configuration);
27
28
 
29
+ let project: string; //What project it is (default to undefined)
28
30
  let createDomainRequest: CreateDomainRequest; // (optional)
29
31
 
30
32
  const { status, data } = await apiInstance.createDomain(
33
+ project,
31
34
  createDomainRequest
32
35
  );
33
36
  ```
@@ -37,6 +40,7 @@ const { status, data } = await apiInstance.createDomain(
37
40
  |Name | Type | Description | Notes|
38
41
  |------------- | ------------- | ------------- | -------------|
39
42
  | **createDomainRequest** | **CreateDomainRequest**| | |
43
+ | **project** | [**string**] | What project it is | defaults to undefined|
40
44
 
41
45
 
42
46
  ### Return type
@@ -81,9 +85,11 @@ import {
81
85
  const configuration = new Configuration();
82
86
  const apiInstance = new WebsiteApi(configuration);
83
87
 
88
+ let project: string; //What project it is (default to undefined)
84
89
  let domain: string; //The domain identifier (default to undefined)
85
90
 
86
91
  const { status, data } = await apiInstance.deleteDomain(
92
+ project,
87
93
  domain
88
94
  );
89
95
  ```
@@ -92,6 +98,7 @@ const { status, data } = await apiInstance.deleteDomain(
92
98
 
93
99
  |Name | Type | Description | Notes|
94
100
  |------------- | ------------- | ------------- | -------------|
101
+ | **project** | [**string**] | What project it is | defaults to undefined|
95
102
  | **domain** | [**string**] | The domain identifier | defaults to undefined|
96
103
 
97
104
 
@@ -137,11 +144,18 @@ import {
137
144
  const configuration = new Configuration();
138
145
  const apiInstance = new WebsiteApi(configuration);
139
146
 
140
- const { status, data } = await apiInstance.listDomains();
147
+ let project: string; //What project it is (default to undefined)
148
+
149
+ const { status, data } = await apiInstance.listDomains(
150
+ project
151
+ );
141
152
  ```
142
153
 
143
154
  ### Parameters
144
- This endpoint does not have any parameters.
155
+
156
+ |Name | Type | Description | Notes|
157
+ |------------- | ------------- | ------------- | -------------|
158
+ | **project** | [**string**] | What project it is | defaults to undefined|
145
159
 
146
160
 
147
161
  ### Return type
@@ -170,3 +184,63 @@ This endpoint does not have any parameters.
170
184
 
171
185
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
172
186
 
187
+ # **updateBaseDomain**
188
+ > updateBaseDomain()
189
+
190
+ Updated a websites base domain
191
+
192
+ ### Example
193
+
194
+ ```typescript
195
+ import {
196
+ WebsiteApi,
197
+ Configuration,
198
+ CreateDomainRequest
199
+ } from '@teemill/website';
200
+
201
+ const configuration = new Configuration();
202
+ const apiInstance = new WebsiteApi(configuration);
203
+
204
+ let project: string; //What project it is (default to undefined)
205
+ let createDomainRequest: CreateDomainRequest; // (optional)
206
+
207
+ const { status, data } = await apiInstance.updateBaseDomain(
208
+ project,
209
+ createDomainRequest
210
+ );
211
+ ```
212
+
213
+ ### Parameters
214
+
215
+ |Name | Type | Description | Notes|
216
+ |------------- | ------------- | ------------- | -------------|
217
+ | **createDomainRequest** | **CreateDomainRequest**| | |
218
+ | **project** | [**string**] | What project it is | defaults to undefined|
219
+
220
+
221
+ ### Return type
222
+
223
+ void (empty response body)
224
+
225
+ ### Authorization
226
+
227
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
228
+
229
+ ### HTTP request headers
230
+
231
+ - **Content-Type**: application/json
232
+ - **Accept**: application/json
233
+
234
+
235
+ ### HTTP response details
236
+ | Status code | Description | Response headers |
237
+ |-------------|-------------|------------------|
238
+ |**204** | Base domain successfully updated | - |
239
+ |**400** | Failed validation | - |
240
+ |**401** | Not authorised to access this resource | - |
241
+ |**403** | Refuse to authorize | - |
242
+ |**404** | Resource not found | - |
243
+ |**500** | Unknown server error | - |
244
+
245
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
246
+
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.25.0
7
+ * The version of the OpenAPI document: 0.25.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/website",
3
- "version": "0.25.0",
3
+ "version": "0.25.3",
4
4
  "description": "OpenAPI client for @teemill/website",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {