@teemill/website 0.25.1 → 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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/website@0.25.1
1
+ ## @teemill/website@0.25.3
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/website@0.25.1 --save
39
+ npm install @teemill/website@0.25.3 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -94,6 +94,7 @@ Class | Method | HTTP request | Description
94
94
  *WebsiteApi* | [**createDomain**](docs/WebsiteApi.md#createdomain) | **POST** /v1/website/domains | Create a website domain
95
95
  *WebsiteApi* | [**deleteDomain**](docs/WebsiteApi.md#deletedomain) | **DELETE** /v1/website/domains/{domain} | Delete a website domain
96
96
  *WebsiteApi* | [**listDomains**](docs/WebsiteApi.md#listdomains) | **GET** /v1/website/domains | List website domains
97
+ *WebsiteApi* | [**updateBaseDomain**](docs/WebsiteApi.md#updatebasedomain) | **PUT** /v1/website/domains/base | Update base domain
97
98
 
98
99
 
99
100
  ### Documentation For Models
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.25.1
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).
@@ -827,13 +827,13 @@ export interface InlineObject {
827
827
  * @type {Array<Domain>}
828
828
  * @memberof InlineObject
829
829
  */
830
- 'domains'?: Array<Domain>;
830
+ 'domains': Array<Domain>;
831
831
  /**
832
832
  *
833
833
  * @type {number}
834
834
  * @memberof InlineObject
835
835
  */
836
- 'nextPageToken'?: number;
836
+ 'nextPageToken': number;
837
837
  }
838
838
  /**
839
839
  *
@@ -8398,6 +8398,54 @@ export const WebsiteApiAxiosParamCreator = function (configuration?: Configurati
8398
8398
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8399
8399
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8400
8400
 
8401
+ return {
8402
+ url: toPathString(localVarUrlObj),
8403
+ options: localVarRequestOptions,
8404
+ };
8405
+ },
8406
+ /**
8407
+ * Updated a websites base domain
8408
+ * @summary Update base domain
8409
+ * @param {string} project What project it is
8410
+ * @param {CreateDomainRequest} [createDomainRequest]
8411
+ * @param {*} [options] Override http request option.
8412
+ * @throws {RequiredError}
8413
+ */
8414
+ updateBaseDomain: async (project: string, createDomainRequest?: CreateDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8415
+ // verify required parameter 'project' is not null or undefined
8416
+ assertParamExists('updateBaseDomain', 'project', project)
8417
+ const localVarPath = `/v1/website/domains/base`;
8418
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8419
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8420
+ let baseOptions;
8421
+ if (configuration) {
8422
+ baseOptions = configuration.baseOptions;
8423
+ }
8424
+
8425
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
8426
+ const localVarHeaderParameter = {} as any;
8427
+ const localVarQueryParameter = {} as any;
8428
+
8429
+ // authentication session-oauth required
8430
+ // oauth required
8431
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
8432
+
8433
+ // authentication api-key required
8434
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
8435
+
8436
+ if (project !== undefined) {
8437
+ localVarQueryParameter['project'] = project;
8438
+ }
8439
+
8440
+
8441
+
8442
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8443
+
8444
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8445
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8446
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8447
+ localVarRequestOptions.data = serializeDataIfNeeded(createDomainRequest, localVarRequestOptions, configuration)
8448
+
8401
8449
  return {
8402
8450
  url: toPathString(localVarUrlObj),
8403
8451
  options: localVarRequestOptions,
@@ -8454,6 +8502,20 @@ export const WebsiteApiFp = function(configuration?: Configuration) {
8454
8502
  const localVarOperationServerBasePath = operationServerMap['WebsiteApi.listDomains']?.[localVarOperationServerIndex]?.url;
8455
8503
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8456
8504
  },
8505
+ /**
8506
+ * Updated a websites base domain
8507
+ * @summary Update base domain
8508
+ * @param {string} project What project it is
8509
+ * @param {CreateDomainRequest} [createDomainRequest]
8510
+ * @param {*} [options] Override http request option.
8511
+ * @throws {RequiredError}
8512
+ */
8513
+ async updateBaseDomain(project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
8514
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBaseDomain(project, createDomainRequest, options);
8515
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8516
+ const localVarOperationServerBasePath = operationServerMap['WebsiteApi.updateBaseDomain']?.[localVarOperationServerIndex]?.url;
8517
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8518
+ },
8457
8519
  }
8458
8520
  };
8459
8521
 
@@ -8494,6 +8556,16 @@ export const WebsiteApiFactory = function (configuration?: Configuration, basePa
8494
8556
  listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject> {
8495
8557
  return localVarFp.listDomains(requestParameters.project, options).then((request) => request(axios, basePath));
8496
8558
  },
8559
+ /**
8560
+ * Updated a websites base domain
8561
+ * @summary Update base domain
8562
+ * @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
8563
+ * @param {*} [options] Override http request option.
8564
+ * @throws {RequiredError}
8565
+ */
8566
+ updateBaseDomain(requestParameters: WebsiteApiUpdateBaseDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
8567
+ return localVarFp.updateBaseDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
8568
+ },
8497
8569
  };
8498
8570
  };
8499
8571
 
@@ -8553,6 +8625,27 @@ export interface WebsiteApiListDomainsRequest {
8553
8625
  readonly project: string
8554
8626
  }
8555
8627
 
8628
+ /**
8629
+ * Request parameters for updateBaseDomain operation in WebsiteApi.
8630
+ * @export
8631
+ * @interface WebsiteApiUpdateBaseDomainRequest
8632
+ */
8633
+ export interface WebsiteApiUpdateBaseDomainRequest {
8634
+ /**
8635
+ * What project it is
8636
+ * @type {string}
8637
+ * @memberof WebsiteApiUpdateBaseDomain
8638
+ */
8639
+ readonly project: string
8640
+
8641
+ /**
8642
+ *
8643
+ * @type {CreateDomainRequest}
8644
+ * @memberof WebsiteApiUpdateBaseDomain
8645
+ */
8646
+ readonly createDomainRequest?: CreateDomainRequest
8647
+ }
8648
+
8556
8649
  /**
8557
8650
  * WebsiteApi - object-oriented interface
8558
8651
  * @export
@@ -8595,6 +8688,18 @@ export class WebsiteApi extends BaseAPI {
8595
8688
  public listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig) {
8596
8689
  return WebsiteApiFp(this.configuration).listDomains(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
8597
8690
  }
8691
+
8692
+ /**
8693
+ * Updated a websites base domain
8694
+ * @summary Update base domain
8695
+ * @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
8696
+ * @param {*} [options] Override http request option.
8697
+ * @throws {RequiredError}
8698
+ * @memberof WebsiteApi
8699
+ */
8700
+ public updateBaseDomain(requestParameters: WebsiteApiUpdateBaseDomainRequest, options?: RawAxiosRequestConfig) {
8701
+ return WebsiteApiFp(this.configuration).updateBaseDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
8702
+ }
8598
8703
  }
8599
8704
 
8600
8705
 
package/base.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.1
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/common.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.1
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/configuration.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.1
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/api.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.1
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).
@@ -810,13 +810,13 @@ export interface InlineObject {
810
810
  * @type {Array<Domain>}
811
811
  * @memberof InlineObject
812
812
  */
813
- 'domains'?: Array<Domain>;
813
+ 'domains': Array<Domain>;
814
814
  /**
815
815
  *
816
816
  * @type {number}
817
817
  * @memberof InlineObject
818
818
  */
819
- 'nextPageToken'?: number;
819
+ 'nextPageToken': number;
820
820
  }
821
821
  /**
822
822
  *
@@ -5897,6 +5897,15 @@ export declare const WebsiteApiAxiosParamCreator: (configuration?: Configuration
5897
5897
  * @throws {RequiredError}
5898
5898
  */
5899
5899
  listDomains: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5900
+ /**
5901
+ * Updated a websites base domain
5902
+ * @summary Update base domain
5903
+ * @param {string} project What project it is
5904
+ * @param {CreateDomainRequest} [createDomainRequest]
5905
+ * @param {*} [options] Override http request option.
5906
+ * @throws {RequiredError}
5907
+ */
5908
+ updateBaseDomain: (project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5900
5909
  };
5901
5910
  /**
5902
5911
  * WebsiteApi - functional programming interface
@@ -5929,6 +5938,15 @@ export declare const WebsiteApiFp: (configuration?: Configuration) => {
5929
5938
  * @throws {RequiredError}
5930
5939
  */
5931
5940
  listDomains(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>>;
5941
+ /**
5942
+ * Updated a websites base domain
5943
+ * @summary Update base domain
5944
+ * @param {string} project What project it is
5945
+ * @param {CreateDomainRequest} [createDomainRequest]
5946
+ * @param {*} [options] Override http request option.
5947
+ * @throws {RequiredError}
5948
+ */
5949
+ updateBaseDomain(project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5932
5950
  };
5933
5951
  /**
5934
5952
  * WebsiteApi - factory interface
@@ -5959,6 +5977,14 @@ export declare const WebsiteApiFactory: (configuration?: Configuration, basePath
5959
5977
  * @throws {RequiredError}
5960
5978
  */
5961
5979
  listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject>;
5980
+ /**
5981
+ * Updated a websites base domain
5982
+ * @summary Update base domain
5983
+ * @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
5984
+ * @param {*} [options] Override http request option.
5985
+ * @throws {RequiredError}
5986
+ */
5987
+ updateBaseDomain(requestParameters: WebsiteApiUpdateBaseDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
5962
5988
  };
5963
5989
  /**
5964
5990
  * Request parameters for createDomain operation in WebsiteApi.
@@ -6011,6 +6037,25 @@ export interface WebsiteApiListDomainsRequest {
6011
6037
  */
6012
6038
  readonly project: string;
6013
6039
  }
6040
+ /**
6041
+ * Request parameters for updateBaseDomain operation in WebsiteApi.
6042
+ * @export
6043
+ * @interface WebsiteApiUpdateBaseDomainRequest
6044
+ */
6045
+ export interface WebsiteApiUpdateBaseDomainRequest {
6046
+ /**
6047
+ * What project it is
6048
+ * @type {string}
6049
+ * @memberof WebsiteApiUpdateBaseDomain
6050
+ */
6051
+ readonly project: string;
6052
+ /**
6053
+ *
6054
+ * @type {CreateDomainRequest}
6055
+ * @memberof WebsiteApiUpdateBaseDomain
6056
+ */
6057
+ readonly createDomainRequest?: CreateDomainRequest;
6058
+ }
6014
6059
  /**
6015
6060
  * WebsiteApi - object-oriented interface
6016
6061
  * @export
@@ -6045,4 +6090,13 @@ export declare class WebsiteApi extends BaseAPI {
6045
6090
  * @memberof WebsiteApi
6046
6091
  */
6047
6092
  listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineObject, any>>;
6093
+ /**
6094
+ * Updated a websites base domain
6095
+ * @summary Update base domain
6096
+ * @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
6097
+ * @param {*} [options] Override http request option.
6098
+ * @throws {RequiredError}
6099
+ * @memberof WebsiteApi
6100
+ */
6101
+ updateBaseDomain(requestParameters: WebsiteApiUpdateBaseDomainRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
6048
6102
  }
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.25.1
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).
@@ -3910,6 +3910,45 @@ const WebsiteApiAxiosParamCreator = function (configuration) {
3910
3910
  options: localVarRequestOptions,
3911
3911
  };
3912
3912
  }),
3913
+ /**
3914
+ * Updated a websites base domain
3915
+ * @summary Update base domain
3916
+ * @param {string} project What project it is
3917
+ * @param {CreateDomainRequest} [createDomainRequest]
3918
+ * @param {*} [options] Override http request option.
3919
+ * @throws {RequiredError}
3920
+ */
3921
+ updateBaseDomain: (project_1, createDomainRequest_1, ...args_1) => __awaiter(this, [project_1, createDomainRequest_1, ...args_1], void 0, function* (project, createDomainRequest, options = {}) {
3922
+ // verify required parameter 'project' is not null or undefined
3923
+ (0, common_1.assertParamExists)('updateBaseDomain', 'project', project);
3924
+ const localVarPath = `/v1/website/domains/base`;
3925
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3926
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3927
+ let baseOptions;
3928
+ if (configuration) {
3929
+ baseOptions = configuration.baseOptions;
3930
+ }
3931
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3932
+ const localVarHeaderParameter = {};
3933
+ const localVarQueryParameter = {};
3934
+ // authentication session-oauth required
3935
+ // oauth required
3936
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
3937
+ // authentication api-key required
3938
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
3939
+ if (project !== undefined) {
3940
+ localVarQueryParameter['project'] = project;
3941
+ }
3942
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3943
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3944
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3945
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3946
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDomainRequest, localVarRequestOptions, configuration);
3947
+ return {
3948
+ url: (0, common_1.toPathString)(localVarUrlObj),
3949
+ options: localVarRequestOptions,
3950
+ };
3951
+ }),
3913
3952
  };
3914
3953
  };
3915
3954
  exports.WebsiteApiAxiosParamCreator = WebsiteApiAxiosParamCreator;
@@ -3970,6 +4009,23 @@ const WebsiteApiFp = function (configuration) {
3970
4009
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3971
4010
  });
3972
4011
  },
4012
+ /**
4013
+ * Updated a websites base domain
4014
+ * @summary Update base domain
4015
+ * @param {string} project What project it is
4016
+ * @param {CreateDomainRequest} [createDomainRequest]
4017
+ * @param {*} [options] Override http request option.
4018
+ * @throws {RequiredError}
4019
+ */
4020
+ updateBaseDomain(project, createDomainRequest, options) {
4021
+ return __awaiter(this, void 0, void 0, function* () {
4022
+ var _a, _b, _c;
4023
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBaseDomain(project, createDomainRequest, options);
4024
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4025
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebsiteApi.updateBaseDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4026
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4027
+ });
4028
+ },
3973
4029
  };
3974
4030
  };
3975
4031
  exports.WebsiteApiFp = WebsiteApiFp;
@@ -4010,6 +4066,16 @@ const WebsiteApiFactory = function (configuration, basePath, axios) {
4010
4066
  listDomains(requestParameters, options) {
4011
4067
  return localVarFp.listDomains(requestParameters.project, options).then((request) => request(axios, basePath));
4012
4068
  },
4069
+ /**
4070
+ * Updated a websites base domain
4071
+ * @summary Update base domain
4072
+ * @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
4073
+ * @param {*} [options] Override http request option.
4074
+ * @throws {RequiredError}
4075
+ */
4076
+ updateBaseDomain(requestParameters, options) {
4077
+ return localVarFp.updateBaseDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
4078
+ },
4013
4079
  };
4014
4080
  };
4015
4081
  exports.WebsiteApiFactory = WebsiteApiFactory;
@@ -4053,5 +4119,16 @@ class WebsiteApi extends base_1.BaseAPI {
4053
4119
  listDomains(requestParameters, options) {
4054
4120
  return (0, exports.WebsiteApiFp)(this.configuration).listDomains(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
4055
4121
  }
4122
+ /**
4123
+ * Updated a websites base domain
4124
+ * @summary Update base domain
4125
+ * @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
4126
+ * @param {*} [options] Override http request option.
4127
+ * @throws {RequiredError}
4128
+ * @memberof WebsiteApi
4129
+ */
4130
+ updateBaseDomain(requestParameters, options) {
4131
+ return (0, exports.WebsiteApiFp)(this.configuration).updateBaseDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
4132
+ }
4056
4133
  }
4057
4134
  exports.WebsiteApi = WebsiteApi;
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.25.1
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/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.25.1
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).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.25.1
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/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.25.1
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).
@@ -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.1
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).
@@ -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.1
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).
package/dist/esm/api.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.1
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).
@@ -810,13 +810,13 @@ export interface InlineObject {
810
810
  * @type {Array<Domain>}
811
811
  * @memberof InlineObject
812
812
  */
813
- 'domains'?: Array<Domain>;
813
+ 'domains': Array<Domain>;
814
814
  /**
815
815
  *
816
816
  * @type {number}
817
817
  * @memberof InlineObject
818
818
  */
819
- 'nextPageToken'?: number;
819
+ 'nextPageToken': number;
820
820
  }
821
821
  /**
822
822
  *
@@ -5897,6 +5897,15 @@ export declare const WebsiteApiAxiosParamCreator: (configuration?: Configuration
5897
5897
  * @throws {RequiredError}
5898
5898
  */
5899
5899
  listDomains: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5900
+ /**
5901
+ * Updated a websites base domain
5902
+ * @summary Update base domain
5903
+ * @param {string} project What project it is
5904
+ * @param {CreateDomainRequest} [createDomainRequest]
5905
+ * @param {*} [options] Override http request option.
5906
+ * @throws {RequiredError}
5907
+ */
5908
+ updateBaseDomain: (project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5900
5909
  };
5901
5910
  /**
5902
5911
  * WebsiteApi - functional programming interface
@@ -5929,6 +5938,15 @@ export declare const WebsiteApiFp: (configuration?: Configuration) => {
5929
5938
  * @throws {RequiredError}
5930
5939
  */
5931
5940
  listDomains(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>>;
5941
+ /**
5942
+ * Updated a websites base domain
5943
+ * @summary Update base domain
5944
+ * @param {string} project What project it is
5945
+ * @param {CreateDomainRequest} [createDomainRequest]
5946
+ * @param {*} [options] Override http request option.
5947
+ * @throws {RequiredError}
5948
+ */
5949
+ updateBaseDomain(project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5932
5950
  };
5933
5951
  /**
5934
5952
  * WebsiteApi - factory interface
@@ -5959,6 +5977,14 @@ export declare const WebsiteApiFactory: (configuration?: Configuration, basePath
5959
5977
  * @throws {RequiredError}
5960
5978
  */
5961
5979
  listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject>;
5980
+ /**
5981
+ * Updated a websites base domain
5982
+ * @summary Update base domain
5983
+ * @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
5984
+ * @param {*} [options] Override http request option.
5985
+ * @throws {RequiredError}
5986
+ */
5987
+ updateBaseDomain(requestParameters: WebsiteApiUpdateBaseDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
5962
5988
  };
5963
5989
  /**
5964
5990
  * Request parameters for createDomain operation in WebsiteApi.
@@ -6011,6 +6037,25 @@ export interface WebsiteApiListDomainsRequest {
6011
6037
  */
6012
6038
  readonly project: string;
6013
6039
  }
6040
+ /**
6041
+ * Request parameters for updateBaseDomain operation in WebsiteApi.
6042
+ * @export
6043
+ * @interface WebsiteApiUpdateBaseDomainRequest
6044
+ */
6045
+ export interface WebsiteApiUpdateBaseDomainRequest {
6046
+ /**
6047
+ * What project it is
6048
+ * @type {string}
6049
+ * @memberof WebsiteApiUpdateBaseDomain
6050
+ */
6051
+ readonly project: string;
6052
+ /**
6053
+ *
6054
+ * @type {CreateDomainRequest}
6055
+ * @memberof WebsiteApiUpdateBaseDomain
6056
+ */
6057
+ readonly createDomainRequest?: CreateDomainRequest;
6058
+ }
6014
6059
  /**
6015
6060
  * WebsiteApi - object-oriented interface
6016
6061
  * @export
@@ -6045,4 +6090,13 @@ export declare class WebsiteApi extends BaseAPI {
6045
6090
  * @memberof WebsiteApi
6046
6091
  */
6047
6092
  listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineObject, any>>;
6093
+ /**
6094
+ * Updated a websites base domain
6095
+ * @summary Update base domain
6096
+ * @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
6097
+ * @param {*} [options] Override http request option.
6098
+ * @throws {RequiredError}
6099
+ * @memberof WebsiteApi
6100
+ */
6101
+ updateBaseDomain(requestParameters: WebsiteApiUpdateBaseDomainRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
6048
6102
  }
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.1
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).
@@ -3862,6 +3862,45 @@ export const WebsiteApiAxiosParamCreator = function (configuration) {
3862
3862
  options: localVarRequestOptions,
3863
3863
  };
3864
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
+ }),
3865
3904
  };
3866
3905
  };
3867
3906
  /**
@@ -3921,6 +3960,23 @@ export const WebsiteApiFp = function (configuration) {
3921
3960
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3922
3961
  });
3923
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
+ },
3924
3980
  };
3925
3981
  };
3926
3982
  /**
@@ -3960,6 +4016,16 @@ export const WebsiteApiFactory = function (configuration, basePath, axios) {
3960
4016
  listDomains(requestParameters, options) {
3961
4017
  return localVarFp.listDomains(requestParameters.project, options).then((request) => request(axios, basePath));
3962
4018
  },
4019
+ /**
4020
+ * Updated a websites base domain
4021
+ * @summary Update base domain
4022
+ * @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
4023
+ * @param {*} [options] Override http request option.
4024
+ * @throws {RequiredError}
4025
+ */
4026
+ updateBaseDomain(requestParameters, options) {
4027
+ return localVarFp.updateBaseDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
4028
+ },
3963
4029
  };
3964
4030
  };
3965
4031
  /**
@@ -4002,4 +4068,15 @@ export class WebsiteApi extends BaseAPI {
4002
4068
  listDomains(requestParameters, options) {
4003
4069
  return WebsiteApiFp(this.configuration).listDomains(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
4004
4070
  }
4071
+ /**
4072
+ * Updated a websites base domain
4073
+ * @summary Update base domain
4074
+ * @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
4075
+ * @param {*} [options] Override http request option.
4076
+ * @throws {RequiredError}
4077
+ * @memberof WebsiteApi
4078
+ */
4079
+ updateBaseDomain(requestParameters, options) {
4080
+ return WebsiteApiFp(this.configuration).updateBaseDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
4081
+ }
4005
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.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1
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&lt;Domain&gt;**](Domain.md) | | [optional] [default to undefined]
9
- **nextPageToken** | **number** | | [optional] [default to undefined]
8
+ **domains** | [**Array&lt;Domain&gt;**](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()
@@ -183,3 +184,63 @@ const { status, data } = await apiInstance.listDomains(
183
184
 
184
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)
185
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.1
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.1",
3
+ "version": "0.25.3",
4
4
  "description": "OpenAPI client for @teemill/website",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {