@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/README.md +3 -2
- package/api.ts +181 -22
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +100 -13
- package/dist/api.js +120 -20
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +100 -13
- package/dist/esm/api.js +120 -20
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/InlineObject.md +2 -2
- package/docs/WebsiteApi.md +76 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/website@0.25.
|
|
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.
|
|
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.
|
|
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'
|
|
830
|
+
'domains': Array<Domain>;
|
|
831
831
|
/**
|
|
832
832
|
*
|
|
833
833
|
* @type {number}
|
|
834
834
|
* @memberof InlineObject
|
|
835
835
|
*/
|
|
836
|
-
'nextPageToken'
|
|
836
|
+
'nextPageToken': number;
|
|
837
837
|
}
|
|
838
838
|
/**
|
|
839
839
|
*
|
|
@@ -8266,11 +8266,14 @@ export const WebsiteApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
8266
8266
|
/**
|
|
8267
8267
|
* Create a new website domain
|
|
8268
8268
|
* @summary Create a website domain
|
|
8269
|
+
* @param {string} project What project it is
|
|
8269
8270
|
* @param {CreateDomainRequest} [createDomainRequest]
|
|
8270
8271
|
* @param {*} [options] Override http request option.
|
|
8271
8272
|
* @throws {RequiredError}
|
|
8272
8273
|
*/
|
|
8273
|
-
createDomain: async (createDomainRequest?: CreateDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8274
|
+
createDomain: async (project: string, createDomainRequest?: CreateDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8275
|
+
// verify required parameter 'project' is not null or undefined
|
|
8276
|
+
assertParamExists('createDomain', 'project', project)
|
|
8274
8277
|
const localVarPath = `/v1/website/domains`;
|
|
8275
8278
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8276
8279
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8290,6 +8293,10 @@ export const WebsiteApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
8290
8293
|
// authentication api-key required
|
|
8291
8294
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8292
8295
|
|
|
8296
|
+
if (project !== undefined) {
|
|
8297
|
+
localVarQueryParameter['project'] = project;
|
|
8298
|
+
}
|
|
8299
|
+
|
|
8293
8300
|
|
|
8294
8301
|
|
|
8295
8302
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -8307,11 +8314,14 @@ export const WebsiteApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
8307
8314
|
/**
|
|
8308
8315
|
* Delete an existing website domain
|
|
8309
8316
|
* @summary Delete a website domain
|
|
8317
|
+
* @param {string} project What project it is
|
|
8310
8318
|
* @param {string} domain The domain identifier
|
|
8311
8319
|
* @param {*} [options] Override http request option.
|
|
8312
8320
|
* @throws {RequiredError}
|
|
8313
8321
|
*/
|
|
8314
|
-
deleteDomain: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8322
|
+
deleteDomain: async (project: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8323
|
+
// verify required parameter 'project' is not null or undefined
|
|
8324
|
+
assertParamExists('deleteDomain', 'project', project)
|
|
8315
8325
|
// verify required parameter 'domain' is not null or undefined
|
|
8316
8326
|
assertParamExists('deleteDomain', 'domain', domain)
|
|
8317
8327
|
const localVarPath = `/v1/website/domains/{domain}`
|
|
@@ -8334,6 +8344,10 @@ export const WebsiteApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
8334
8344
|
// authentication api-key required
|
|
8335
8345
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8336
8346
|
|
|
8347
|
+
if (project !== undefined) {
|
|
8348
|
+
localVarQueryParameter['project'] = project;
|
|
8349
|
+
}
|
|
8350
|
+
|
|
8337
8351
|
|
|
8338
8352
|
|
|
8339
8353
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -8348,10 +8362,13 @@ export const WebsiteApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
8348
8362
|
/**
|
|
8349
8363
|
* List the domains attached to a website
|
|
8350
8364
|
* @summary List website domains
|
|
8365
|
+
* @param {string} project What project it is
|
|
8351
8366
|
* @param {*} [options] Override http request option.
|
|
8352
8367
|
* @throws {RequiredError}
|
|
8353
8368
|
*/
|
|
8354
|
-
listDomains: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8369
|
+
listDomains: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8370
|
+
// verify required parameter 'project' is not null or undefined
|
|
8371
|
+
assertParamExists('listDomains', 'project', project)
|
|
8355
8372
|
const localVarPath = `/v1/website/domains`;
|
|
8356
8373
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8357
8374
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8371,12 +8388,64 @@ export const WebsiteApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
8371
8388
|
// authentication api-key required
|
|
8372
8389
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8373
8390
|
|
|
8391
|
+
if (project !== undefined) {
|
|
8392
|
+
localVarQueryParameter['project'] = project;
|
|
8393
|
+
}
|
|
8394
|
+
|
|
8374
8395
|
|
|
8375
8396
|
|
|
8376
8397
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8377
8398
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8378
8399
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8379
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
|
+
|
|
8380
8449
|
return {
|
|
8381
8450
|
url: toPathString(localVarUrlObj),
|
|
8382
8451
|
options: localVarRequestOptions,
|
|
@@ -8395,12 +8464,13 @@ export const WebsiteApiFp = function(configuration?: Configuration) {
|
|
|
8395
8464
|
/**
|
|
8396
8465
|
* Create a new website domain
|
|
8397
8466
|
* @summary Create a website domain
|
|
8467
|
+
* @param {string} project What project it is
|
|
8398
8468
|
* @param {CreateDomainRequest} [createDomainRequest]
|
|
8399
8469
|
* @param {*} [options] Override http request option.
|
|
8400
8470
|
* @throws {RequiredError}
|
|
8401
8471
|
*/
|
|
8402
|
-
async createDomain(createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Domain>> {
|
|
8403
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createDomain(createDomainRequest, options);
|
|
8472
|
+
async createDomain(project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Domain>> {
|
|
8473
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createDomain(project, createDomainRequest, options);
|
|
8404
8474
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8405
8475
|
const localVarOperationServerBasePath = operationServerMap['WebsiteApi.createDomain']?.[localVarOperationServerIndex]?.url;
|
|
8406
8476
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -8408,12 +8478,13 @@ export const WebsiteApiFp = function(configuration?: Configuration) {
|
|
|
8408
8478
|
/**
|
|
8409
8479
|
* Delete an existing website domain
|
|
8410
8480
|
* @summary Delete a website domain
|
|
8481
|
+
* @param {string} project What project it is
|
|
8411
8482
|
* @param {string} domain The domain identifier
|
|
8412
8483
|
* @param {*} [options] Override http request option.
|
|
8413
8484
|
* @throws {RequiredError}
|
|
8414
8485
|
*/
|
|
8415
|
-
async deleteDomain(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
8416
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDomain(domain, options);
|
|
8486
|
+
async deleteDomain(project: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
8487
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDomain(project, domain, options);
|
|
8417
8488
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8418
8489
|
const localVarOperationServerBasePath = operationServerMap['WebsiteApi.deleteDomain']?.[localVarOperationServerIndex]?.url;
|
|
8419
8490
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -8421,15 +8492,30 @@ export const WebsiteApiFp = function(configuration?: Configuration) {
|
|
|
8421
8492
|
/**
|
|
8422
8493
|
* List the domains attached to a website
|
|
8423
8494
|
* @summary List website domains
|
|
8495
|
+
* @param {string} project What project it is
|
|
8424
8496
|
* @param {*} [options] Override http request option.
|
|
8425
8497
|
* @throws {RequiredError}
|
|
8426
8498
|
*/
|
|
8427
|
-
async listDomains(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>> {
|
|
8428
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listDomains(options);
|
|
8499
|
+
async listDomains(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>> {
|
|
8500
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDomains(project, options);
|
|
8429
8501
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8430
8502
|
const localVarOperationServerBasePath = operationServerMap['WebsiteApi.listDomains']?.[localVarOperationServerIndex]?.url;
|
|
8431
8503
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8432
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
|
+
},
|
|
8433
8519
|
}
|
|
8434
8520
|
};
|
|
8435
8521
|
|
|
@@ -8447,8 +8533,8 @@ export const WebsiteApiFactory = function (configuration?: Configuration, basePa
|
|
|
8447
8533
|
* @param {*} [options] Override http request option.
|
|
8448
8534
|
* @throws {RequiredError}
|
|
8449
8535
|
*/
|
|
8450
|
-
createDomain(requestParameters: WebsiteApiCreateDomainRequest
|
|
8451
|
-
return localVarFp.createDomain(requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
|
|
8536
|
+
createDomain(requestParameters: WebsiteApiCreateDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<Domain> {
|
|
8537
|
+
return localVarFp.createDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
|
|
8452
8538
|
},
|
|
8453
8539
|
/**
|
|
8454
8540
|
* Delete an existing website domain
|
|
@@ -8458,16 +8544,27 @@ export const WebsiteApiFactory = function (configuration?: Configuration, basePa
|
|
|
8458
8544
|
* @throws {RequiredError}
|
|
8459
8545
|
*/
|
|
8460
8546
|
deleteDomain(requestParameters: WebsiteApiDeleteDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
8461
|
-
return localVarFp.deleteDomain(requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
8547
|
+
return localVarFp.deleteDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
8462
8548
|
},
|
|
8463
8549
|
/**
|
|
8464
8550
|
* List the domains attached to a website
|
|
8465
8551
|
* @summary List website domains
|
|
8552
|
+
* @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
|
|
8553
|
+
* @param {*} [options] Override http request option.
|
|
8554
|
+
* @throws {RequiredError}
|
|
8555
|
+
*/
|
|
8556
|
+
listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject> {
|
|
8557
|
+
return localVarFp.listDomains(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
8558
|
+
},
|
|
8559
|
+
/**
|
|
8560
|
+
* Updated a websites base domain
|
|
8561
|
+
* @summary Update base domain
|
|
8562
|
+
* @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
|
|
8466
8563
|
* @param {*} [options] Override http request option.
|
|
8467
8564
|
* @throws {RequiredError}
|
|
8468
8565
|
*/
|
|
8469
|
-
|
|
8470
|
-
return localVarFp.
|
|
8566
|
+
updateBaseDomain(requestParameters: WebsiteApiUpdateBaseDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
8567
|
+
return localVarFp.updateBaseDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
|
|
8471
8568
|
},
|
|
8472
8569
|
};
|
|
8473
8570
|
};
|
|
@@ -8478,6 +8575,13 @@ export const WebsiteApiFactory = function (configuration?: Configuration, basePa
|
|
|
8478
8575
|
* @interface WebsiteApiCreateDomainRequest
|
|
8479
8576
|
*/
|
|
8480
8577
|
export interface WebsiteApiCreateDomainRequest {
|
|
8578
|
+
/**
|
|
8579
|
+
* What project it is
|
|
8580
|
+
* @type {string}
|
|
8581
|
+
* @memberof WebsiteApiCreateDomain
|
|
8582
|
+
*/
|
|
8583
|
+
readonly project: string
|
|
8584
|
+
|
|
8481
8585
|
/**
|
|
8482
8586
|
*
|
|
8483
8587
|
* @type {CreateDomainRequest}
|
|
@@ -8492,6 +8596,13 @@ export interface WebsiteApiCreateDomainRequest {
|
|
|
8492
8596
|
* @interface WebsiteApiDeleteDomainRequest
|
|
8493
8597
|
*/
|
|
8494
8598
|
export interface WebsiteApiDeleteDomainRequest {
|
|
8599
|
+
/**
|
|
8600
|
+
* What project it is
|
|
8601
|
+
* @type {string}
|
|
8602
|
+
* @memberof WebsiteApiDeleteDomain
|
|
8603
|
+
*/
|
|
8604
|
+
readonly project: string
|
|
8605
|
+
|
|
8495
8606
|
/**
|
|
8496
8607
|
* The domain identifier
|
|
8497
8608
|
* @type {string}
|
|
@@ -8500,6 +8611,41 @@ export interface WebsiteApiDeleteDomainRequest {
|
|
|
8500
8611
|
readonly domain: string
|
|
8501
8612
|
}
|
|
8502
8613
|
|
|
8614
|
+
/**
|
|
8615
|
+
* Request parameters for listDomains operation in WebsiteApi.
|
|
8616
|
+
* @export
|
|
8617
|
+
* @interface WebsiteApiListDomainsRequest
|
|
8618
|
+
*/
|
|
8619
|
+
export interface WebsiteApiListDomainsRequest {
|
|
8620
|
+
/**
|
|
8621
|
+
* What project it is
|
|
8622
|
+
* @type {string}
|
|
8623
|
+
* @memberof WebsiteApiListDomains
|
|
8624
|
+
*/
|
|
8625
|
+
readonly project: string
|
|
8626
|
+
}
|
|
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
|
+
|
|
8503
8649
|
/**
|
|
8504
8650
|
* WebsiteApi - object-oriented interface
|
|
8505
8651
|
* @export
|
|
@@ -8515,8 +8661,8 @@ export class WebsiteApi extends BaseAPI {
|
|
|
8515
8661
|
* @throws {RequiredError}
|
|
8516
8662
|
* @memberof WebsiteApi
|
|
8517
8663
|
*/
|
|
8518
|
-
public createDomain(requestParameters: WebsiteApiCreateDomainRequest
|
|
8519
|
-
return WebsiteApiFp(this.configuration).createDomain(requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8664
|
+
public createDomain(requestParameters: WebsiteApiCreateDomainRequest, options?: RawAxiosRequestConfig) {
|
|
8665
|
+
return WebsiteApiFp(this.configuration).createDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8520
8666
|
}
|
|
8521
8667
|
|
|
8522
8668
|
/**
|
|
@@ -8528,18 +8674,31 @@ export class WebsiteApi extends BaseAPI {
|
|
|
8528
8674
|
* @memberof WebsiteApi
|
|
8529
8675
|
*/
|
|
8530
8676
|
public deleteDomain(requestParameters: WebsiteApiDeleteDomainRequest, options?: RawAxiosRequestConfig) {
|
|
8531
|
-
return WebsiteApiFp(this.configuration).deleteDomain(requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
8677
|
+
return WebsiteApiFp(this.configuration).deleteDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
8532
8678
|
}
|
|
8533
8679
|
|
|
8534
8680
|
/**
|
|
8535
8681
|
* List the domains attached to a website
|
|
8536
8682
|
* @summary List website domains
|
|
8683
|
+
* @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
|
|
8684
|
+
* @param {*} [options] Override http request option.
|
|
8685
|
+
* @throws {RequiredError}
|
|
8686
|
+
* @memberof WebsiteApi
|
|
8687
|
+
*/
|
|
8688
|
+
public listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig) {
|
|
8689
|
+
return WebsiteApiFp(this.configuration).listDomains(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
8690
|
+
}
|
|
8691
|
+
|
|
8692
|
+
/**
|
|
8693
|
+
* Updated a websites base domain
|
|
8694
|
+
* @summary Update base domain
|
|
8695
|
+
* @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
|
|
8537
8696
|
* @param {*} [options] Override http request option.
|
|
8538
8697
|
* @throws {RequiredError}
|
|
8539
8698
|
* @memberof WebsiteApi
|
|
8540
8699
|
*/
|
|
8541
|
-
public
|
|
8542
|
-
return WebsiteApiFp(this.configuration).
|
|
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));
|
|
8543
8702
|
}
|
|
8544
8703
|
}
|
|
8545
8704
|
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
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.
|
|
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'
|
|
813
|
+
'domains': Array<Domain>;
|
|
814
814
|
/**
|
|
815
815
|
*
|
|
816
816
|
* @type {number}
|
|
817
817
|
* @memberof InlineObject
|
|
818
818
|
*/
|
|
819
|
-
'nextPageToken'
|
|
819
|
+
'nextPageToken': number;
|
|
820
820
|
}
|
|
821
821
|
/**
|
|
822
822
|
*
|
|
@@ -5874,26 +5874,38 @@ export declare const WebsiteApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5874
5874
|
/**
|
|
5875
5875
|
* Create a new website domain
|
|
5876
5876
|
* @summary Create a website domain
|
|
5877
|
+
* @param {string} project What project it is
|
|
5877
5878
|
* @param {CreateDomainRequest} [createDomainRequest]
|
|
5878
5879
|
* @param {*} [options] Override http request option.
|
|
5879
5880
|
* @throws {RequiredError}
|
|
5880
5881
|
*/
|
|
5881
|
-
createDomain: (createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5882
|
+
createDomain: (project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5882
5883
|
/**
|
|
5883
5884
|
* Delete an existing website domain
|
|
5884
5885
|
* @summary Delete a website domain
|
|
5886
|
+
* @param {string} project What project it is
|
|
5885
5887
|
* @param {string} domain The domain identifier
|
|
5886
5888
|
* @param {*} [options] Override http request option.
|
|
5887
5889
|
* @throws {RequiredError}
|
|
5888
5890
|
*/
|
|
5889
|
-
deleteDomain: (domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5891
|
+
deleteDomain: (project: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5890
5892
|
/**
|
|
5891
5893
|
* List the domains attached to a website
|
|
5892
5894
|
* @summary List website domains
|
|
5895
|
+
* @param {string} project What project it is
|
|
5896
|
+
* @param {*} [options] Override http request option.
|
|
5897
|
+
* @throws {RequiredError}
|
|
5898
|
+
*/
|
|
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]
|
|
5893
5905
|
* @param {*} [options] Override http request option.
|
|
5894
5906
|
* @throws {RequiredError}
|
|
5895
5907
|
*/
|
|
5896
|
-
|
|
5908
|
+
updateBaseDomain: (project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5897
5909
|
};
|
|
5898
5910
|
/**
|
|
5899
5911
|
* WebsiteApi - functional programming interface
|
|
@@ -5903,26 +5915,38 @@ export declare const WebsiteApiFp: (configuration?: Configuration) => {
|
|
|
5903
5915
|
/**
|
|
5904
5916
|
* Create a new website domain
|
|
5905
5917
|
* @summary Create a website domain
|
|
5918
|
+
* @param {string} project What project it is
|
|
5906
5919
|
* @param {CreateDomainRequest} [createDomainRequest]
|
|
5907
5920
|
* @param {*} [options] Override http request option.
|
|
5908
5921
|
* @throws {RequiredError}
|
|
5909
5922
|
*/
|
|
5910
|
-
createDomain(createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Domain>>;
|
|
5923
|
+
createDomain(project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Domain>>;
|
|
5911
5924
|
/**
|
|
5912
5925
|
* Delete an existing website domain
|
|
5913
5926
|
* @summary Delete a website domain
|
|
5927
|
+
* @param {string} project What project it is
|
|
5914
5928
|
* @param {string} domain The domain identifier
|
|
5915
5929
|
* @param {*} [options] Override http request option.
|
|
5916
5930
|
* @throws {RequiredError}
|
|
5917
5931
|
*/
|
|
5918
|
-
deleteDomain(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
5932
|
+
deleteDomain(project: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
5919
5933
|
/**
|
|
5920
5934
|
* List the domains attached to a website
|
|
5921
5935
|
* @summary List website domains
|
|
5936
|
+
* @param {string} project What project it is
|
|
5937
|
+
* @param {*} [options] Override http request option.
|
|
5938
|
+
* @throws {RequiredError}
|
|
5939
|
+
*/
|
|
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]
|
|
5922
5946
|
* @param {*} [options] Override http request option.
|
|
5923
5947
|
* @throws {RequiredError}
|
|
5924
5948
|
*/
|
|
5925
|
-
|
|
5949
|
+
updateBaseDomain(project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
5926
5950
|
};
|
|
5927
5951
|
/**
|
|
5928
5952
|
* WebsiteApi - factory interface
|
|
@@ -5936,7 +5960,7 @@ export declare const WebsiteApiFactory: (configuration?: Configuration, basePath
|
|
|
5936
5960
|
* @param {*} [options] Override http request option.
|
|
5937
5961
|
* @throws {RequiredError}
|
|
5938
5962
|
*/
|
|
5939
|
-
createDomain(requestParameters
|
|
5963
|
+
createDomain(requestParameters: WebsiteApiCreateDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<Domain>;
|
|
5940
5964
|
/**
|
|
5941
5965
|
* Delete an existing website domain
|
|
5942
5966
|
* @summary Delete a website domain
|
|
@@ -5948,10 +5972,19 @@ export declare const WebsiteApiFactory: (configuration?: Configuration, basePath
|
|
|
5948
5972
|
/**
|
|
5949
5973
|
* List the domains attached to a website
|
|
5950
5974
|
* @summary List website domains
|
|
5975
|
+
* @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
|
|
5976
|
+
* @param {*} [options] Override http request option.
|
|
5977
|
+
* @throws {RequiredError}
|
|
5978
|
+
*/
|
|
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.
|
|
5951
5984
|
* @param {*} [options] Override http request option.
|
|
5952
5985
|
* @throws {RequiredError}
|
|
5953
5986
|
*/
|
|
5954
|
-
|
|
5987
|
+
updateBaseDomain(requestParameters: WebsiteApiUpdateBaseDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
5955
5988
|
};
|
|
5956
5989
|
/**
|
|
5957
5990
|
* Request parameters for createDomain operation in WebsiteApi.
|
|
@@ -5959,6 +5992,12 @@ export declare const WebsiteApiFactory: (configuration?: Configuration, basePath
|
|
|
5959
5992
|
* @interface WebsiteApiCreateDomainRequest
|
|
5960
5993
|
*/
|
|
5961
5994
|
export interface WebsiteApiCreateDomainRequest {
|
|
5995
|
+
/**
|
|
5996
|
+
* What project it is
|
|
5997
|
+
* @type {string}
|
|
5998
|
+
* @memberof WebsiteApiCreateDomain
|
|
5999
|
+
*/
|
|
6000
|
+
readonly project: string;
|
|
5962
6001
|
/**
|
|
5963
6002
|
*
|
|
5964
6003
|
* @type {CreateDomainRequest}
|
|
@@ -5972,6 +6011,12 @@ export interface WebsiteApiCreateDomainRequest {
|
|
|
5972
6011
|
* @interface WebsiteApiDeleteDomainRequest
|
|
5973
6012
|
*/
|
|
5974
6013
|
export interface WebsiteApiDeleteDomainRequest {
|
|
6014
|
+
/**
|
|
6015
|
+
* What project it is
|
|
6016
|
+
* @type {string}
|
|
6017
|
+
* @memberof WebsiteApiDeleteDomain
|
|
6018
|
+
*/
|
|
6019
|
+
readonly project: string;
|
|
5975
6020
|
/**
|
|
5976
6021
|
* The domain identifier
|
|
5977
6022
|
* @type {string}
|
|
@@ -5979,6 +6024,38 @@ export interface WebsiteApiDeleteDomainRequest {
|
|
|
5979
6024
|
*/
|
|
5980
6025
|
readonly domain: string;
|
|
5981
6026
|
}
|
|
6027
|
+
/**
|
|
6028
|
+
* Request parameters for listDomains operation in WebsiteApi.
|
|
6029
|
+
* @export
|
|
6030
|
+
* @interface WebsiteApiListDomainsRequest
|
|
6031
|
+
*/
|
|
6032
|
+
export interface WebsiteApiListDomainsRequest {
|
|
6033
|
+
/**
|
|
6034
|
+
* What project it is
|
|
6035
|
+
* @type {string}
|
|
6036
|
+
* @memberof WebsiteApiListDomains
|
|
6037
|
+
*/
|
|
6038
|
+
readonly project: string;
|
|
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
|
+
}
|
|
5982
6059
|
/**
|
|
5983
6060
|
* WebsiteApi - object-oriented interface
|
|
5984
6061
|
* @export
|
|
@@ -5994,7 +6071,7 @@ export declare class WebsiteApi extends BaseAPI {
|
|
|
5994
6071
|
* @throws {RequiredError}
|
|
5995
6072
|
* @memberof WebsiteApi
|
|
5996
6073
|
*/
|
|
5997
|
-
createDomain(requestParameters
|
|
6074
|
+
createDomain(requestParameters: WebsiteApiCreateDomainRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Domain, any>>;
|
|
5998
6075
|
/**
|
|
5999
6076
|
* Delete an existing website domain
|
|
6000
6077
|
* @summary Delete a website domain
|
|
@@ -6007,9 +6084,19 @@ export declare class WebsiteApi extends BaseAPI {
|
|
|
6007
6084
|
/**
|
|
6008
6085
|
* List the domains attached to a website
|
|
6009
6086
|
* @summary List website domains
|
|
6087
|
+
* @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
|
|
6088
|
+
* @param {*} [options] Override http request option.
|
|
6089
|
+
* @throws {RequiredError}
|
|
6090
|
+
* @memberof WebsiteApi
|
|
6091
|
+
*/
|
|
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.
|
|
6010
6097
|
* @param {*} [options] Override http request option.
|
|
6011
6098
|
* @throws {RequiredError}
|
|
6012
6099
|
* @memberof WebsiteApi
|
|
6013
6100
|
*/
|
|
6014
|
-
|
|
6101
|
+
updateBaseDomain(requestParameters: WebsiteApiUpdateBaseDomainRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
6015
6102
|
}
|