@teemill/website 0.25.0 → 0.25.1
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 +2 -2
- package/api.ts +74 -20
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +44 -11
- package/dist/api.js +43 -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 +44 -11
- package/dist/esm/api.js +43 -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/WebsiteApi.md +15 -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.1
|
|
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.1 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
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.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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,6 +8388,10 @@ 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);
|
|
@@ -8395,12 +8416,13 @@ export const WebsiteApiFp = function(configuration?: Configuration) {
|
|
|
8395
8416
|
/**
|
|
8396
8417
|
* Create a new website domain
|
|
8397
8418
|
* @summary Create a website domain
|
|
8419
|
+
* @param {string} project What project it is
|
|
8398
8420
|
* @param {CreateDomainRequest} [createDomainRequest]
|
|
8399
8421
|
* @param {*} [options] Override http request option.
|
|
8400
8422
|
* @throws {RequiredError}
|
|
8401
8423
|
*/
|
|
8402
|
-
async createDomain(createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Domain>> {
|
|
8403
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createDomain(createDomainRequest, options);
|
|
8424
|
+
async createDomain(project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Domain>> {
|
|
8425
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createDomain(project, createDomainRequest, options);
|
|
8404
8426
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8405
8427
|
const localVarOperationServerBasePath = operationServerMap['WebsiteApi.createDomain']?.[localVarOperationServerIndex]?.url;
|
|
8406
8428
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -8408,12 +8430,13 @@ export const WebsiteApiFp = function(configuration?: Configuration) {
|
|
|
8408
8430
|
/**
|
|
8409
8431
|
* Delete an existing website domain
|
|
8410
8432
|
* @summary Delete a website domain
|
|
8433
|
+
* @param {string} project What project it is
|
|
8411
8434
|
* @param {string} domain The domain identifier
|
|
8412
8435
|
* @param {*} [options] Override http request option.
|
|
8413
8436
|
* @throws {RequiredError}
|
|
8414
8437
|
*/
|
|
8415
|
-
async deleteDomain(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
8416
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDomain(domain, options);
|
|
8438
|
+
async deleteDomain(project: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
8439
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDomain(project, domain, options);
|
|
8417
8440
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8418
8441
|
const localVarOperationServerBasePath = operationServerMap['WebsiteApi.deleteDomain']?.[localVarOperationServerIndex]?.url;
|
|
8419
8442
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -8421,11 +8444,12 @@ export const WebsiteApiFp = function(configuration?: Configuration) {
|
|
|
8421
8444
|
/**
|
|
8422
8445
|
* List the domains attached to a website
|
|
8423
8446
|
* @summary List website domains
|
|
8447
|
+
* @param {string} project What project it is
|
|
8424
8448
|
* @param {*} [options] Override http request option.
|
|
8425
8449
|
* @throws {RequiredError}
|
|
8426
8450
|
*/
|
|
8427
|
-
async listDomains(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>> {
|
|
8428
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listDomains(options);
|
|
8451
|
+
async listDomains(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>> {
|
|
8452
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDomains(project, options);
|
|
8429
8453
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8430
8454
|
const localVarOperationServerBasePath = operationServerMap['WebsiteApi.listDomains']?.[localVarOperationServerIndex]?.url;
|
|
8431
8455
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -8447,8 +8471,8 @@ export const WebsiteApiFactory = function (configuration?: Configuration, basePa
|
|
|
8447
8471
|
* @param {*} [options] Override http request option.
|
|
8448
8472
|
* @throws {RequiredError}
|
|
8449
8473
|
*/
|
|
8450
|
-
createDomain(requestParameters: WebsiteApiCreateDomainRequest
|
|
8451
|
-
return localVarFp.createDomain(requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
|
|
8474
|
+
createDomain(requestParameters: WebsiteApiCreateDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<Domain> {
|
|
8475
|
+
return localVarFp.createDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
|
|
8452
8476
|
},
|
|
8453
8477
|
/**
|
|
8454
8478
|
* Delete an existing website domain
|
|
@@ -8458,16 +8482,17 @@ export const WebsiteApiFactory = function (configuration?: Configuration, basePa
|
|
|
8458
8482
|
* @throws {RequiredError}
|
|
8459
8483
|
*/
|
|
8460
8484
|
deleteDomain(requestParameters: WebsiteApiDeleteDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
8461
|
-
return localVarFp.deleteDomain(requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
8485
|
+
return localVarFp.deleteDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
8462
8486
|
},
|
|
8463
8487
|
/**
|
|
8464
8488
|
* List the domains attached to a website
|
|
8465
8489
|
* @summary List website domains
|
|
8490
|
+
* @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
|
|
8466
8491
|
* @param {*} [options] Override http request option.
|
|
8467
8492
|
* @throws {RequiredError}
|
|
8468
8493
|
*/
|
|
8469
|
-
listDomains(options?: RawAxiosRequestConfig): AxiosPromise<InlineObject> {
|
|
8470
|
-
return localVarFp.listDomains(options).then((request) => request(axios, basePath));
|
|
8494
|
+
listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject> {
|
|
8495
|
+
return localVarFp.listDomains(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
8471
8496
|
},
|
|
8472
8497
|
};
|
|
8473
8498
|
};
|
|
@@ -8478,6 +8503,13 @@ export const WebsiteApiFactory = function (configuration?: Configuration, basePa
|
|
|
8478
8503
|
* @interface WebsiteApiCreateDomainRequest
|
|
8479
8504
|
*/
|
|
8480
8505
|
export interface WebsiteApiCreateDomainRequest {
|
|
8506
|
+
/**
|
|
8507
|
+
* What project it is
|
|
8508
|
+
* @type {string}
|
|
8509
|
+
* @memberof WebsiteApiCreateDomain
|
|
8510
|
+
*/
|
|
8511
|
+
readonly project: string
|
|
8512
|
+
|
|
8481
8513
|
/**
|
|
8482
8514
|
*
|
|
8483
8515
|
* @type {CreateDomainRequest}
|
|
@@ -8492,6 +8524,13 @@ export interface WebsiteApiCreateDomainRequest {
|
|
|
8492
8524
|
* @interface WebsiteApiDeleteDomainRequest
|
|
8493
8525
|
*/
|
|
8494
8526
|
export interface WebsiteApiDeleteDomainRequest {
|
|
8527
|
+
/**
|
|
8528
|
+
* What project it is
|
|
8529
|
+
* @type {string}
|
|
8530
|
+
* @memberof WebsiteApiDeleteDomain
|
|
8531
|
+
*/
|
|
8532
|
+
readonly project: string
|
|
8533
|
+
|
|
8495
8534
|
/**
|
|
8496
8535
|
* The domain identifier
|
|
8497
8536
|
* @type {string}
|
|
@@ -8500,6 +8539,20 @@ export interface WebsiteApiDeleteDomainRequest {
|
|
|
8500
8539
|
readonly domain: string
|
|
8501
8540
|
}
|
|
8502
8541
|
|
|
8542
|
+
/**
|
|
8543
|
+
* Request parameters for listDomains operation in WebsiteApi.
|
|
8544
|
+
* @export
|
|
8545
|
+
* @interface WebsiteApiListDomainsRequest
|
|
8546
|
+
*/
|
|
8547
|
+
export interface WebsiteApiListDomainsRequest {
|
|
8548
|
+
/**
|
|
8549
|
+
* What project it is
|
|
8550
|
+
* @type {string}
|
|
8551
|
+
* @memberof WebsiteApiListDomains
|
|
8552
|
+
*/
|
|
8553
|
+
readonly project: string
|
|
8554
|
+
}
|
|
8555
|
+
|
|
8503
8556
|
/**
|
|
8504
8557
|
* WebsiteApi - object-oriented interface
|
|
8505
8558
|
* @export
|
|
@@ -8515,8 +8568,8 @@ export class WebsiteApi extends BaseAPI {
|
|
|
8515
8568
|
* @throws {RequiredError}
|
|
8516
8569
|
* @memberof WebsiteApi
|
|
8517
8570
|
*/
|
|
8518
|
-
public createDomain(requestParameters: WebsiteApiCreateDomainRequest
|
|
8519
|
-
return WebsiteApiFp(this.configuration).createDomain(requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8571
|
+
public createDomain(requestParameters: WebsiteApiCreateDomainRequest, options?: RawAxiosRequestConfig) {
|
|
8572
|
+
return WebsiteApiFp(this.configuration).createDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8520
8573
|
}
|
|
8521
8574
|
|
|
8522
8575
|
/**
|
|
@@ -8528,18 +8581,19 @@ export class WebsiteApi extends BaseAPI {
|
|
|
8528
8581
|
* @memberof WebsiteApi
|
|
8529
8582
|
*/
|
|
8530
8583
|
public deleteDomain(requestParameters: WebsiteApiDeleteDomainRequest, options?: RawAxiosRequestConfig) {
|
|
8531
|
-
return WebsiteApiFp(this.configuration).deleteDomain(requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
8584
|
+
return WebsiteApiFp(this.configuration).deleteDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
8532
8585
|
}
|
|
8533
8586
|
|
|
8534
8587
|
/**
|
|
8535
8588
|
* List the domains attached to a website
|
|
8536
8589
|
* @summary List website domains
|
|
8590
|
+
* @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
|
|
8537
8591
|
* @param {*} [options] Override http request option.
|
|
8538
8592
|
* @throws {RequiredError}
|
|
8539
8593
|
* @memberof WebsiteApi
|
|
8540
8594
|
*/
|
|
8541
|
-
public listDomains(options?: RawAxiosRequestConfig) {
|
|
8542
|
-
return WebsiteApiFp(this.configuration).listDomains(options).then((request) => request(this.axios, this.basePath));
|
|
8595
|
+
public listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig) {
|
|
8596
|
+
return WebsiteApiFp(this.configuration).listDomains(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
8543
8597
|
}
|
|
8544
8598
|
}
|
|
8545
8599
|
|
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.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5874,26 +5874,29 @@ 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
|
|
5893
5896
|
* @param {*} [options] Override http request option.
|
|
5894
5897
|
* @throws {RequiredError}
|
|
5895
5898
|
*/
|
|
5896
|
-
listDomains: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5899
|
+
listDomains: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5897
5900
|
};
|
|
5898
5901
|
/**
|
|
5899
5902
|
* WebsiteApi - functional programming interface
|
|
@@ -5903,26 +5906,29 @@ export declare const WebsiteApiFp: (configuration?: Configuration) => {
|
|
|
5903
5906
|
/**
|
|
5904
5907
|
* Create a new website domain
|
|
5905
5908
|
* @summary Create a website domain
|
|
5909
|
+
* @param {string} project What project it is
|
|
5906
5910
|
* @param {CreateDomainRequest} [createDomainRequest]
|
|
5907
5911
|
* @param {*} [options] Override http request option.
|
|
5908
5912
|
* @throws {RequiredError}
|
|
5909
5913
|
*/
|
|
5910
|
-
createDomain(createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Domain>>;
|
|
5914
|
+
createDomain(project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Domain>>;
|
|
5911
5915
|
/**
|
|
5912
5916
|
* Delete an existing website domain
|
|
5913
5917
|
* @summary Delete a website domain
|
|
5918
|
+
* @param {string} project What project it is
|
|
5914
5919
|
* @param {string} domain The domain identifier
|
|
5915
5920
|
* @param {*} [options] Override http request option.
|
|
5916
5921
|
* @throws {RequiredError}
|
|
5917
5922
|
*/
|
|
5918
|
-
deleteDomain(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
5923
|
+
deleteDomain(project: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
5919
5924
|
/**
|
|
5920
5925
|
* List the domains attached to a website
|
|
5921
5926
|
* @summary List website domains
|
|
5927
|
+
* @param {string} project What project it is
|
|
5922
5928
|
* @param {*} [options] Override http request option.
|
|
5923
5929
|
* @throws {RequiredError}
|
|
5924
5930
|
*/
|
|
5925
|
-
listDomains(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>>;
|
|
5931
|
+
listDomains(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>>;
|
|
5926
5932
|
};
|
|
5927
5933
|
/**
|
|
5928
5934
|
* WebsiteApi - factory interface
|
|
@@ -5936,7 +5942,7 @@ export declare const WebsiteApiFactory: (configuration?: Configuration, basePath
|
|
|
5936
5942
|
* @param {*} [options] Override http request option.
|
|
5937
5943
|
* @throws {RequiredError}
|
|
5938
5944
|
*/
|
|
5939
|
-
createDomain(requestParameters
|
|
5945
|
+
createDomain(requestParameters: WebsiteApiCreateDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<Domain>;
|
|
5940
5946
|
/**
|
|
5941
5947
|
* Delete an existing website domain
|
|
5942
5948
|
* @summary Delete a website domain
|
|
@@ -5948,10 +5954,11 @@ export declare const WebsiteApiFactory: (configuration?: Configuration, basePath
|
|
|
5948
5954
|
/**
|
|
5949
5955
|
* List the domains attached to a website
|
|
5950
5956
|
* @summary List website domains
|
|
5957
|
+
* @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
|
|
5951
5958
|
* @param {*} [options] Override http request option.
|
|
5952
5959
|
* @throws {RequiredError}
|
|
5953
5960
|
*/
|
|
5954
|
-
listDomains(options?: RawAxiosRequestConfig): AxiosPromise<InlineObject>;
|
|
5961
|
+
listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject>;
|
|
5955
5962
|
};
|
|
5956
5963
|
/**
|
|
5957
5964
|
* Request parameters for createDomain operation in WebsiteApi.
|
|
@@ -5959,6 +5966,12 @@ export declare const WebsiteApiFactory: (configuration?: Configuration, basePath
|
|
|
5959
5966
|
* @interface WebsiteApiCreateDomainRequest
|
|
5960
5967
|
*/
|
|
5961
5968
|
export interface WebsiteApiCreateDomainRequest {
|
|
5969
|
+
/**
|
|
5970
|
+
* What project it is
|
|
5971
|
+
* @type {string}
|
|
5972
|
+
* @memberof WebsiteApiCreateDomain
|
|
5973
|
+
*/
|
|
5974
|
+
readonly project: string;
|
|
5962
5975
|
/**
|
|
5963
5976
|
*
|
|
5964
5977
|
* @type {CreateDomainRequest}
|
|
@@ -5972,6 +5985,12 @@ export interface WebsiteApiCreateDomainRequest {
|
|
|
5972
5985
|
* @interface WebsiteApiDeleteDomainRequest
|
|
5973
5986
|
*/
|
|
5974
5987
|
export interface WebsiteApiDeleteDomainRequest {
|
|
5988
|
+
/**
|
|
5989
|
+
* What project it is
|
|
5990
|
+
* @type {string}
|
|
5991
|
+
* @memberof WebsiteApiDeleteDomain
|
|
5992
|
+
*/
|
|
5993
|
+
readonly project: string;
|
|
5975
5994
|
/**
|
|
5976
5995
|
* The domain identifier
|
|
5977
5996
|
* @type {string}
|
|
@@ -5979,6 +5998,19 @@ export interface WebsiteApiDeleteDomainRequest {
|
|
|
5979
5998
|
*/
|
|
5980
5999
|
readonly domain: string;
|
|
5981
6000
|
}
|
|
6001
|
+
/**
|
|
6002
|
+
* Request parameters for listDomains operation in WebsiteApi.
|
|
6003
|
+
* @export
|
|
6004
|
+
* @interface WebsiteApiListDomainsRequest
|
|
6005
|
+
*/
|
|
6006
|
+
export interface WebsiteApiListDomainsRequest {
|
|
6007
|
+
/**
|
|
6008
|
+
* What project it is
|
|
6009
|
+
* @type {string}
|
|
6010
|
+
* @memberof WebsiteApiListDomains
|
|
6011
|
+
*/
|
|
6012
|
+
readonly project: string;
|
|
6013
|
+
}
|
|
5982
6014
|
/**
|
|
5983
6015
|
* WebsiteApi - object-oriented interface
|
|
5984
6016
|
* @export
|
|
@@ -5994,7 +6026,7 @@ export declare class WebsiteApi extends BaseAPI {
|
|
|
5994
6026
|
* @throws {RequiredError}
|
|
5995
6027
|
* @memberof WebsiteApi
|
|
5996
6028
|
*/
|
|
5997
|
-
createDomain(requestParameters
|
|
6029
|
+
createDomain(requestParameters: WebsiteApiCreateDomainRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Domain, any>>;
|
|
5998
6030
|
/**
|
|
5999
6031
|
* Delete an existing website domain
|
|
6000
6032
|
* @summary Delete a website domain
|
|
@@ -6007,9 +6039,10 @@ export declare class WebsiteApi extends BaseAPI {
|
|
|
6007
6039
|
/**
|
|
6008
6040
|
* List the domains attached to a website
|
|
6009
6041
|
* @summary List website domains
|
|
6042
|
+
* @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
|
|
6010
6043
|
* @param {*} [options] Override http request option.
|
|
6011
6044
|
* @throws {RequiredError}
|
|
6012
6045
|
* @memberof WebsiteApi
|
|
6013
6046
|
*/
|
|
6014
|
-
listDomains(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineObject, any>>;
|
|
6047
|
+
listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineObject, any>>;
|
|
6015
6048
|
}
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 0.25.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3798,11 +3798,14 @@ const WebsiteApiAxiosParamCreator = function (configuration) {
|
|
|
3798
3798
|
/**
|
|
3799
3799
|
* Create a new website domain
|
|
3800
3800
|
* @summary Create a website domain
|
|
3801
|
+
* @param {string} project What project it is
|
|
3801
3802
|
* @param {CreateDomainRequest} [createDomainRequest]
|
|
3802
3803
|
* @param {*} [options] Override http request option.
|
|
3803
3804
|
* @throws {RequiredError}
|
|
3804
3805
|
*/
|
|
3805
|
-
createDomain: (createDomainRequest_1, ...args_1) => __awaiter(this, [createDomainRequest_1, ...args_1], void 0, function* (createDomainRequest, options = {}) {
|
|
3806
|
+
createDomain: (project_1, createDomainRequest_1, ...args_1) => __awaiter(this, [project_1, createDomainRequest_1, ...args_1], void 0, function* (project, createDomainRequest, options = {}) {
|
|
3807
|
+
// verify required parameter 'project' is not null or undefined
|
|
3808
|
+
(0, common_1.assertParamExists)('createDomain', 'project', project);
|
|
3806
3809
|
const localVarPath = `/v1/website/domains`;
|
|
3807
3810
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3808
3811
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -3818,6 +3821,9 @@ const WebsiteApiAxiosParamCreator = function (configuration) {
|
|
|
3818
3821
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
3819
3822
|
// authentication api-key required
|
|
3820
3823
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
3824
|
+
if (project !== undefined) {
|
|
3825
|
+
localVarQueryParameter['project'] = project;
|
|
3826
|
+
}
|
|
3821
3827
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3822
3828
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3823
3829
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -3831,11 +3837,14 @@ const WebsiteApiAxiosParamCreator = function (configuration) {
|
|
|
3831
3837
|
/**
|
|
3832
3838
|
* Delete an existing website domain
|
|
3833
3839
|
* @summary Delete a website domain
|
|
3840
|
+
* @param {string} project What project it is
|
|
3834
3841
|
* @param {string} domain The domain identifier
|
|
3835
3842
|
* @param {*} [options] Override http request option.
|
|
3836
3843
|
* @throws {RequiredError}
|
|
3837
3844
|
*/
|
|
3838
|
-
deleteDomain: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
3845
|
+
deleteDomain: (project_1, domain_1, ...args_1) => __awaiter(this, [project_1, domain_1, ...args_1], void 0, function* (project, domain, options = {}) {
|
|
3846
|
+
// verify required parameter 'project' is not null or undefined
|
|
3847
|
+
(0, common_1.assertParamExists)('deleteDomain', 'project', project);
|
|
3839
3848
|
// verify required parameter 'domain' is not null or undefined
|
|
3840
3849
|
(0, common_1.assertParamExists)('deleteDomain', 'domain', domain);
|
|
3841
3850
|
const localVarPath = `/v1/website/domains/{domain}`
|
|
@@ -3854,6 +3863,9 @@ const WebsiteApiAxiosParamCreator = function (configuration) {
|
|
|
3854
3863
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
3855
3864
|
// authentication api-key required
|
|
3856
3865
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
3866
|
+
if (project !== undefined) {
|
|
3867
|
+
localVarQueryParameter['project'] = project;
|
|
3868
|
+
}
|
|
3857
3869
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3858
3870
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3859
3871
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3865,10 +3877,13 @@ const WebsiteApiAxiosParamCreator = function (configuration) {
|
|
|
3865
3877
|
/**
|
|
3866
3878
|
* List the domains attached to a website
|
|
3867
3879
|
* @summary List website domains
|
|
3880
|
+
* @param {string} project What project it is
|
|
3868
3881
|
* @param {*} [options] Override http request option.
|
|
3869
3882
|
* @throws {RequiredError}
|
|
3870
3883
|
*/
|
|
3871
|
-
listDomains: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3884
|
+
listDomains: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
3885
|
+
// verify required parameter 'project' is not null or undefined
|
|
3886
|
+
(0, common_1.assertParamExists)('listDomains', 'project', project);
|
|
3872
3887
|
const localVarPath = `/v1/website/domains`;
|
|
3873
3888
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3874
3889
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -3884,6 +3899,9 @@ const WebsiteApiAxiosParamCreator = function (configuration) {
|
|
|
3884
3899
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
3885
3900
|
// authentication api-key required
|
|
3886
3901
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
3902
|
+
if (project !== undefined) {
|
|
3903
|
+
localVarQueryParameter['project'] = project;
|
|
3904
|
+
}
|
|
3887
3905
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3888
3906
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3889
3907
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3905,14 +3923,15 @@ const WebsiteApiFp = function (configuration) {
|
|
|
3905
3923
|
/**
|
|
3906
3924
|
* Create a new website domain
|
|
3907
3925
|
* @summary Create a website domain
|
|
3926
|
+
* @param {string} project What project it is
|
|
3908
3927
|
* @param {CreateDomainRequest} [createDomainRequest]
|
|
3909
3928
|
* @param {*} [options] Override http request option.
|
|
3910
3929
|
* @throws {RequiredError}
|
|
3911
3930
|
*/
|
|
3912
|
-
createDomain(createDomainRequest, options) {
|
|
3931
|
+
createDomain(project, createDomainRequest, options) {
|
|
3913
3932
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3914
3933
|
var _a, _b, _c;
|
|
3915
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createDomain(createDomainRequest, options);
|
|
3934
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createDomain(project, createDomainRequest, options);
|
|
3916
3935
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3917
3936
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebsiteApi.createDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3918
3937
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3921,14 +3940,15 @@ const WebsiteApiFp = function (configuration) {
|
|
|
3921
3940
|
/**
|
|
3922
3941
|
* Delete an existing website domain
|
|
3923
3942
|
* @summary Delete a website domain
|
|
3943
|
+
* @param {string} project What project it is
|
|
3924
3944
|
* @param {string} domain The domain identifier
|
|
3925
3945
|
* @param {*} [options] Override http request option.
|
|
3926
3946
|
* @throws {RequiredError}
|
|
3927
3947
|
*/
|
|
3928
|
-
deleteDomain(domain, options) {
|
|
3948
|
+
deleteDomain(project, domain, options) {
|
|
3929
3949
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3930
3950
|
var _a, _b, _c;
|
|
3931
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDomain(domain, options);
|
|
3951
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDomain(project, domain, options);
|
|
3932
3952
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3933
3953
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebsiteApi.deleteDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3934
3954
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3937,13 +3957,14 @@ const WebsiteApiFp = function (configuration) {
|
|
|
3937
3957
|
/**
|
|
3938
3958
|
* List the domains attached to a website
|
|
3939
3959
|
* @summary List website domains
|
|
3960
|
+
* @param {string} project What project it is
|
|
3940
3961
|
* @param {*} [options] Override http request option.
|
|
3941
3962
|
* @throws {RequiredError}
|
|
3942
3963
|
*/
|
|
3943
|
-
listDomains(options) {
|
|
3964
|
+
listDomains(project, options) {
|
|
3944
3965
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3945
3966
|
var _a, _b, _c;
|
|
3946
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listDomains(options);
|
|
3967
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listDomains(project, options);
|
|
3947
3968
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3948
3969
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebsiteApi.listDomains']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3949
3970
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3966,8 +3987,8 @@ const WebsiteApiFactory = function (configuration, basePath, axios) {
|
|
|
3966
3987
|
* @param {*} [options] Override http request option.
|
|
3967
3988
|
* @throws {RequiredError}
|
|
3968
3989
|
*/
|
|
3969
|
-
createDomain(requestParameters
|
|
3970
|
-
return localVarFp.createDomain(requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
|
|
3990
|
+
createDomain(requestParameters, options) {
|
|
3991
|
+
return localVarFp.createDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
|
|
3971
3992
|
},
|
|
3972
3993
|
/**
|
|
3973
3994
|
* Delete an existing website domain
|
|
@@ -3977,16 +3998,17 @@ const WebsiteApiFactory = function (configuration, basePath, axios) {
|
|
|
3977
3998
|
* @throws {RequiredError}
|
|
3978
3999
|
*/
|
|
3979
4000
|
deleteDomain(requestParameters, options) {
|
|
3980
|
-
return localVarFp.deleteDomain(requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
4001
|
+
return localVarFp.deleteDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
3981
4002
|
},
|
|
3982
4003
|
/**
|
|
3983
4004
|
* List the domains attached to a website
|
|
3984
4005
|
* @summary List website domains
|
|
4006
|
+
* @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
|
|
3985
4007
|
* @param {*} [options] Override http request option.
|
|
3986
4008
|
* @throws {RequiredError}
|
|
3987
4009
|
*/
|
|
3988
|
-
listDomains(options) {
|
|
3989
|
-
return localVarFp.listDomains(options).then((request) => request(axios, basePath));
|
|
4010
|
+
listDomains(requestParameters, options) {
|
|
4011
|
+
return localVarFp.listDomains(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
3990
4012
|
},
|
|
3991
4013
|
};
|
|
3992
4014
|
};
|
|
@@ -4006,8 +4028,8 @@ class WebsiteApi extends base_1.BaseAPI {
|
|
|
4006
4028
|
* @throws {RequiredError}
|
|
4007
4029
|
* @memberof WebsiteApi
|
|
4008
4030
|
*/
|
|
4009
|
-
createDomain(requestParameters
|
|
4010
|
-
return (0, exports.WebsiteApiFp)(this.configuration).createDomain(requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4031
|
+
createDomain(requestParameters, options) {
|
|
4032
|
+
return (0, exports.WebsiteApiFp)(this.configuration).createDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4011
4033
|
}
|
|
4012
4034
|
/**
|
|
4013
4035
|
* Delete an existing website domain
|
|
@@ -4018,17 +4040,18 @@ class WebsiteApi extends base_1.BaseAPI {
|
|
|
4018
4040
|
* @memberof WebsiteApi
|
|
4019
4041
|
*/
|
|
4020
4042
|
deleteDomain(requestParameters, options) {
|
|
4021
|
-
return (0, exports.WebsiteApiFp)(this.configuration).deleteDomain(requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
4043
|
+
return (0, exports.WebsiteApiFp)(this.configuration).deleteDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
4022
4044
|
}
|
|
4023
4045
|
/**
|
|
4024
4046
|
* List the domains attached to a website
|
|
4025
4047
|
* @summary List website domains
|
|
4048
|
+
* @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
|
|
4026
4049
|
* @param {*} [options] Override http request option.
|
|
4027
4050
|
* @throws {RequiredError}
|
|
4028
4051
|
* @memberof WebsiteApi
|
|
4029
4052
|
*/
|
|
4030
|
-
listDomains(options) {
|
|
4031
|
-
return (0, exports.WebsiteApiFp)(this.configuration).listDomains(options).then((request) => request(this.axios, this.basePath));
|
|
4053
|
+
listDomains(requestParameters, options) {
|
|
4054
|
+
return (0, exports.WebsiteApiFp)(this.configuration).listDomains(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
4032
4055
|
}
|
|
4033
4056
|
}
|
|
4034
4057
|
exports.WebsiteApi = WebsiteApi;
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
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.
|
|
5
|
+
* The version of the OpenAPI document: 0.25.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5874,26 +5874,29 @@ 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
|
|
5893
5896
|
* @param {*} [options] Override http request option.
|
|
5894
5897
|
* @throws {RequiredError}
|
|
5895
5898
|
*/
|
|
5896
|
-
listDomains: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5899
|
+
listDomains: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5897
5900
|
};
|
|
5898
5901
|
/**
|
|
5899
5902
|
* WebsiteApi - functional programming interface
|
|
@@ -5903,26 +5906,29 @@ export declare const WebsiteApiFp: (configuration?: Configuration) => {
|
|
|
5903
5906
|
/**
|
|
5904
5907
|
* Create a new website domain
|
|
5905
5908
|
* @summary Create a website domain
|
|
5909
|
+
* @param {string} project What project it is
|
|
5906
5910
|
* @param {CreateDomainRequest} [createDomainRequest]
|
|
5907
5911
|
* @param {*} [options] Override http request option.
|
|
5908
5912
|
* @throws {RequiredError}
|
|
5909
5913
|
*/
|
|
5910
|
-
createDomain(createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Domain>>;
|
|
5914
|
+
createDomain(project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Domain>>;
|
|
5911
5915
|
/**
|
|
5912
5916
|
* Delete an existing website domain
|
|
5913
5917
|
* @summary Delete a website domain
|
|
5918
|
+
* @param {string} project What project it is
|
|
5914
5919
|
* @param {string} domain The domain identifier
|
|
5915
5920
|
* @param {*} [options] Override http request option.
|
|
5916
5921
|
* @throws {RequiredError}
|
|
5917
5922
|
*/
|
|
5918
|
-
deleteDomain(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
5923
|
+
deleteDomain(project: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
5919
5924
|
/**
|
|
5920
5925
|
* List the domains attached to a website
|
|
5921
5926
|
* @summary List website domains
|
|
5927
|
+
* @param {string} project What project it is
|
|
5922
5928
|
* @param {*} [options] Override http request option.
|
|
5923
5929
|
* @throws {RequiredError}
|
|
5924
5930
|
*/
|
|
5925
|
-
listDomains(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>>;
|
|
5931
|
+
listDomains(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>>;
|
|
5926
5932
|
};
|
|
5927
5933
|
/**
|
|
5928
5934
|
* WebsiteApi - factory interface
|
|
@@ -5936,7 +5942,7 @@ export declare const WebsiteApiFactory: (configuration?: Configuration, basePath
|
|
|
5936
5942
|
* @param {*} [options] Override http request option.
|
|
5937
5943
|
* @throws {RequiredError}
|
|
5938
5944
|
*/
|
|
5939
|
-
createDomain(requestParameters
|
|
5945
|
+
createDomain(requestParameters: WebsiteApiCreateDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<Domain>;
|
|
5940
5946
|
/**
|
|
5941
5947
|
* Delete an existing website domain
|
|
5942
5948
|
* @summary Delete a website domain
|
|
@@ -5948,10 +5954,11 @@ export declare const WebsiteApiFactory: (configuration?: Configuration, basePath
|
|
|
5948
5954
|
/**
|
|
5949
5955
|
* List the domains attached to a website
|
|
5950
5956
|
* @summary List website domains
|
|
5957
|
+
* @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
|
|
5951
5958
|
* @param {*} [options] Override http request option.
|
|
5952
5959
|
* @throws {RequiredError}
|
|
5953
5960
|
*/
|
|
5954
|
-
listDomains(options?: RawAxiosRequestConfig): AxiosPromise<InlineObject>;
|
|
5961
|
+
listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject>;
|
|
5955
5962
|
};
|
|
5956
5963
|
/**
|
|
5957
5964
|
* Request parameters for createDomain operation in WebsiteApi.
|
|
@@ -5959,6 +5966,12 @@ export declare const WebsiteApiFactory: (configuration?: Configuration, basePath
|
|
|
5959
5966
|
* @interface WebsiteApiCreateDomainRequest
|
|
5960
5967
|
*/
|
|
5961
5968
|
export interface WebsiteApiCreateDomainRequest {
|
|
5969
|
+
/**
|
|
5970
|
+
* What project it is
|
|
5971
|
+
* @type {string}
|
|
5972
|
+
* @memberof WebsiteApiCreateDomain
|
|
5973
|
+
*/
|
|
5974
|
+
readonly project: string;
|
|
5962
5975
|
/**
|
|
5963
5976
|
*
|
|
5964
5977
|
* @type {CreateDomainRequest}
|
|
@@ -5972,6 +5985,12 @@ export interface WebsiteApiCreateDomainRequest {
|
|
|
5972
5985
|
* @interface WebsiteApiDeleteDomainRequest
|
|
5973
5986
|
*/
|
|
5974
5987
|
export interface WebsiteApiDeleteDomainRequest {
|
|
5988
|
+
/**
|
|
5989
|
+
* What project it is
|
|
5990
|
+
* @type {string}
|
|
5991
|
+
* @memberof WebsiteApiDeleteDomain
|
|
5992
|
+
*/
|
|
5993
|
+
readonly project: string;
|
|
5975
5994
|
/**
|
|
5976
5995
|
* The domain identifier
|
|
5977
5996
|
* @type {string}
|
|
@@ -5979,6 +5998,19 @@ export interface WebsiteApiDeleteDomainRequest {
|
|
|
5979
5998
|
*/
|
|
5980
5999
|
readonly domain: string;
|
|
5981
6000
|
}
|
|
6001
|
+
/**
|
|
6002
|
+
* Request parameters for listDomains operation in WebsiteApi.
|
|
6003
|
+
* @export
|
|
6004
|
+
* @interface WebsiteApiListDomainsRequest
|
|
6005
|
+
*/
|
|
6006
|
+
export interface WebsiteApiListDomainsRequest {
|
|
6007
|
+
/**
|
|
6008
|
+
* What project it is
|
|
6009
|
+
* @type {string}
|
|
6010
|
+
* @memberof WebsiteApiListDomains
|
|
6011
|
+
*/
|
|
6012
|
+
readonly project: string;
|
|
6013
|
+
}
|
|
5982
6014
|
/**
|
|
5983
6015
|
* WebsiteApi - object-oriented interface
|
|
5984
6016
|
* @export
|
|
@@ -5994,7 +6026,7 @@ export declare class WebsiteApi extends BaseAPI {
|
|
|
5994
6026
|
* @throws {RequiredError}
|
|
5995
6027
|
* @memberof WebsiteApi
|
|
5996
6028
|
*/
|
|
5997
|
-
createDomain(requestParameters
|
|
6029
|
+
createDomain(requestParameters: WebsiteApiCreateDomainRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Domain, any>>;
|
|
5998
6030
|
/**
|
|
5999
6031
|
* Delete an existing website domain
|
|
6000
6032
|
* @summary Delete a website domain
|
|
@@ -6007,9 +6039,10 @@ export declare class WebsiteApi extends BaseAPI {
|
|
|
6007
6039
|
/**
|
|
6008
6040
|
* List the domains attached to a website
|
|
6009
6041
|
* @summary List website domains
|
|
6042
|
+
* @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
|
|
6010
6043
|
* @param {*} [options] Override http request option.
|
|
6011
6044
|
* @throws {RequiredError}
|
|
6012
6045
|
* @memberof WebsiteApi
|
|
6013
6046
|
*/
|
|
6014
|
-
listDomains(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineObject, any>>;
|
|
6047
|
+
listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineObject, any>>;
|
|
6015
6048
|
}
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 0.25.1
|
|
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);
|
|
@@ -3856,14 +3874,15 @@ export const WebsiteApiFp = function (configuration) {
|
|
|
3856
3874
|
/**
|
|
3857
3875
|
* Create a new website domain
|
|
3858
3876
|
* @summary Create a website domain
|
|
3877
|
+
* @param {string} project What project it is
|
|
3859
3878
|
* @param {CreateDomainRequest} [createDomainRequest]
|
|
3860
3879
|
* @param {*} [options] Override http request option.
|
|
3861
3880
|
* @throws {RequiredError}
|
|
3862
3881
|
*/
|
|
3863
|
-
createDomain(createDomainRequest, options) {
|
|
3882
|
+
createDomain(project, createDomainRequest, options) {
|
|
3864
3883
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3865
3884
|
var _a, _b, _c;
|
|
3866
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createDomain(createDomainRequest, options);
|
|
3885
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createDomain(project, createDomainRequest, options);
|
|
3867
3886
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3868
3887
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebsiteApi.createDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3869
3888
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3872,14 +3891,15 @@ export const WebsiteApiFp = function (configuration) {
|
|
|
3872
3891
|
/**
|
|
3873
3892
|
* Delete an existing website domain
|
|
3874
3893
|
* @summary Delete a website domain
|
|
3894
|
+
* @param {string} project What project it is
|
|
3875
3895
|
* @param {string} domain The domain identifier
|
|
3876
3896
|
* @param {*} [options] Override http request option.
|
|
3877
3897
|
* @throws {RequiredError}
|
|
3878
3898
|
*/
|
|
3879
|
-
deleteDomain(domain, options) {
|
|
3899
|
+
deleteDomain(project, domain, options) {
|
|
3880
3900
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3881
3901
|
var _a, _b, _c;
|
|
3882
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDomain(domain, options);
|
|
3902
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDomain(project, domain, options);
|
|
3883
3903
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3884
3904
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebsiteApi.deleteDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3885
3905
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3888,13 +3908,14 @@ export const WebsiteApiFp = function (configuration) {
|
|
|
3888
3908
|
/**
|
|
3889
3909
|
* List the domains attached to a website
|
|
3890
3910
|
* @summary List website domains
|
|
3911
|
+
* @param {string} project What project it is
|
|
3891
3912
|
* @param {*} [options] Override http request option.
|
|
3892
3913
|
* @throws {RequiredError}
|
|
3893
3914
|
*/
|
|
3894
|
-
listDomains(options) {
|
|
3915
|
+
listDomains(project, options) {
|
|
3895
3916
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3896
3917
|
var _a, _b, _c;
|
|
3897
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listDomains(options);
|
|
3918
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listDomains(project, options);
|
|
3898
3919
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3899
3920
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebsiteApi.listDomains']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3900
3921
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3916,8 +3937,8 @@ export const WebsiteApiFactory = function (configuration, basePath, axios) {
|
|
|
3916
3937
|
* @param {*} [options] Override http request option.
|
|
3917
3938
|
* @throws {RequiredError}
|
|
3918
3939
|
*/
|
|
3919
|
-
createDomain(requestParameters
|
|
3920
|
-
return localVarFp.createDomain(requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
|
|
3940
|
+
createDomain(requestParameters, options) {
|
|
3941
|
+
return localVarFp.createDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
|
|
3921
3942
|
},
|
|
3922
3943
|
/**
|
|
3923
3944
|
* Delete an existing website domain
|
|
@@ -3927,16 +3948,17 @@ export const WebsiteApiFactory = function (configuration, basePath, axios) {
|
|
|
3927
3948
|
* @throws {RequiredError}
|
|
3928
3949
|
*/
|
|
3929
3950
|
deleteDomain(requestParameters, options) {
|
|
3930
|
-
return localVarFp.deleteDomain(requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
3951
|
+
return localVarFp.deleteDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
3931
3952
|
},
|
|
3932
3953
|
/**
|
|
3933
3954
|
* List the domains attached to a website
|
|
3934
3955
|
* @summary List website domains
|
|
3956
|
+
* @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
|
|
3935
3957
|
* @param {*} [options] Override http request option.
|
|
3936
3958
|
* @throws {RequiredError}
|
|
3937
3959
|
*/
|
|
3938
|
-
listDomains(options) {
|
|
3939
|
-
return localVarFp.listDomains(options).then((request) => request(axios, basePath));
|
|
3960
|
+
listDomains(requestParameters, options) {
|
|
3961
|
+
return localVarFp.listDomains(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
3940
3962
|
},
|
|
3941
3963
|
};
|
|
3942
3964
|
};
|
|
@@ -3955,8 +3977,8 @@ export class WebsiteApi extends BaseAPI {
|
|
|
3955
3977
|
* @throws {RequiredError}
|
|
3956
3978
|
* @memberof WebsiteApi
|
|
3957
3979
|
*/
|
|
3958
|
-
createDomain(requestParameters
|
|
3959
|
-
return WebsiteApiFp(this.configuration).createDomain(requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3980
|
+
createDomain(requestParameters, options) {
|
|
3981
|
+
return WebsiteApiFp(this.configuration).createDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3960
3982
|
}
|
|
3961
3983
|
/**
|
|
3962
3984
|
* Delete an existing website domain
|
|
@@ -3967,16 +3989,17 @@ export class WebsiteApi extends BaseAPI {
|
|
|
3967
3989
|
* @memberof WebsiteApi
|
|
3968
3990
|
*/
|
|
3969
3991
|
deleteDomain(requestParameters, options) {
|
|
3970
|
-
return WebsiteApiFp(this.configuration).deleteDomain(requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
3992
|
+
return WebsiteApiFp(this.configuration).deleteDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
3971
3993
|
}
|
|
3972
3994
|
/**
|
|
3973
3995
|
* List the domains attached to a website
|
|
3974
3996
|
* @summary List website domains
|
|
3997
|
+
* @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
|
|
3975
3998
|
* @param {*} [options] Override http request option.
|
|
3976
3999
|
* @throws {RequiredError}
|
|
3977
4000
|
* @memberof WebsiteApi
|
|
3978
4001
|
*/
|
|
3979
|
-
listDomains(options) {
|
|
3980
|
-
return WebsiteApiFp(this.configuration).listDomains(options).then((request) => request(this.axios, this.basePath));
|
|
4002
|
+
listDomains(requestParameters, options) {
|
|
4003
|
+
return WebsiteApiFp(this.configuration).listDomains(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
3981
4004
|
}
|
|
3982
4005
|
}
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/WebsiteApi.md
CHANGED
|
@@ -25,9 +25,11 @@ import {
|
|
|
25
25
|
const configuration = new Configuration();
|
|
26
26
|
const apiInstance = new WebsiteApi(configuration);
|
|
27
27
|
|
|
28
|
+
let project: string; //What project it is (default to undefined)
|
|
28
29
|
let createDomainRequest: CreateDomainRequest; // (optional)
|
|
29
30
|
|
|
30
31
|
const { status, data } = await apiInstance.createDomain(
|
|
32
|
+
project,
|
|
31
33
|
createDomainRequest
|
|
32
34
|
);
|
|
33
35
|
```
|
|
@@ -37,6 +39,7 @@ const { status, data } = await apiInstance.createDomain(
|
|
|
37
39
|
|Name | Type | Description | Notes|
|
|
38
40
|
|------------- | ------------- | ------------- | -------------|
|
|
39
41
|
| **createDomainRequest** | **CreateDomainRequest**| | |
|
|
42
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
40
43
|
|
|
41
44
|
|
|
42
45
|
### Return type
|
|
@@ -81,9 +84,11 @@ import {
|
|
|
81
84
|
const configuration = new Configuration();
|
|
82
85
|
const apiInstance = new WebsiteApi(configuration);
|
|
83
86
|
|
|
87
|
+
let project: string; //What project it is (default to undefined)
|
|
84
88
|
let domain: string; //The domain identifier (default to undefined)
|
|
85
89
|
|
|
86
90
|
const { status, data } = await apiInstance.deleteDomain(
|
|
91
|
+
project,
|
|
87
92
|
domain
|
|
88
93
|
);
|
|
89
94
|
```
|
|
@@ -92,6 +97,7 @@ const { status, data } = await apiInstance.deleteDomain(
|
|
|
92
97
|
|
|
93
98
|
|Name | Type | Description | Notes|
|
|
94
99
|
|------------- | ------------- | ------------- | -------------|
|
|
100
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
95
101
|
| **domain** | [**string**] | The domain identifier | defaults to undefined|
|
|
96
102
|
|
|
97
103
|
|
|
@@ -137,11 +143,18 @@ import {
|
|
|
137
143
|
const configuration = new Configuration();
|
|
138
144
|
const apiInstance = new WebsiteApi(configuration);
|
|
139
145
|
|
|
140
|
-
|
|
146
|
+
let project: string; //What project it is (default to undefined)
|
|
147
|
+
|
|
148
|
+
const { status, data } = await apiInstance.listDomains(
|
|
149
|
+
project
|
|
150
|
+
);
|
|
141
151
|
```
|
|
142
152
|
|
|
143
153
|
### Parameters
|
|
144
|
-
|
|
154
|
+
|
|
155
|
+
|Name | Type | Description | Notes|
|
|
156
|
+
|------------- | ------------- | ------------- | -------------|
|
|
157
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
145
158
|
|
|
146
159
|
|
|
147
160
|
### Return type
|
package/index.ts
CHANGED