@teemill/website 0.24.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 +9 -3
- package/api.ts +421 -16
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +260 -17
- package/dist/api.js +268 -2
- 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 +260 -17
- package/dist/esm/api.js +263 -1
- 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/CreateDomainRequest.md +20 -0
- package/docs/Domain.md +26 -0
- package/docs/InlineObject.md +22 -0
- package/docs/InlineObject1.md +20 -0
- package/docs/PaymentApi.md +2 -2
- package/docs/WebsiteApi.md +185 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/website@0.
|
|
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.
|
|
39
|
+
npm install @teemill/website@0.25.1 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -91,6 +91,9 @@ Class | Method | HTTP request | Description
|
|
|
91
91
|
*SearchApi* | [**getSearchRedirect**](docs/SearchApi.md#getsearchredirect) | **GET** /v1/website/search/redirects/{redirectId} | Get search redirect
|
|
92
92
|
*SearchApi* | [**listSearchRedirects**](docs/SearchApi.md#listsearchredirects) | **GET** /v1/website/search/redirects | List search redirects
|
|
93
93
|
*SearchApi* | [**updateSearchRedirect**](docs/SearchApi.md#updatesearchredirect) | **PATCH** /v1/website/search/redirects/{redirectId} | Update search redirect
|
|
94
|
+
*WebsiteApi* | [**createDomain**](docs/WebsiteApi.md#createdomain) | **POST** /v1/website/domains | Create a website domain
|
|
95
|
+
*WebsiteApi* | [**deleteDomain**](docs/WebsiteApi.md#deletedomain) | **DELETE** /v1/website/domains/{domain} | Delete a website domain
|
|
96
|
+
*WebsiteApi* | [**listDomains**](docs/WebsiteApi.md#listdomains) | **GET** /v1/website/domains | List website domains
|
|
94
97
|
|
|
95
98
|
|
|
96
99
|
### Documentation For Models
|
|
@@ -101,7 +104,6 @@ Class | Method | HTTP request | Description
|
|
|
101
104
|
- [AttachCrossSellProductsRequest](docs/AttachCrossSellProductsRequest.md)
|
|
102
105
|
- [Attribute](docs/Attribute.md)
|
|
103
106
|
- [AttributeThumbnail](docs/AttributeThumbnail.md)
|
|
104
|
-
- [AuthorizeStripe200Response](docs/AuthorizeStripe200Response.md)
|
|
105
107
|
- [Banner](docs/Banner.md)
|
|
106
108
|
- [BannerImage](docs/BannerImage.md)
|
|
107
109
|
- [Blog](docs/Blog.md)
|
|
@@ -117,11 +119,15 @@ Class | Method | HTTP request | Description
|
|
|
117
119
|
- [CreateCollectionRequestBannerOverlay](docs/CreateCollectionRequestBannerOverlay.md)
|
|
118
120
|
- [CreateCollectionRequestProductsInner](docs/CreateCollectionRequestProductsInner.md)
|
|
119
121
|
- [CreateCollectionRequestSeoMetadata](docs/CreateCollectionRequestSeoMetadata.md)
|
|
122
|
+
- [CreateDomainRequest](docs/CreateDomainRequest.md)
|
|
120
123
|
- [CreateSearchRedirectRequest](docs/CreateSearchRedirectRequest.md)
|
|
124
|
+
- [Domain](docs/Domain.md)
|
|
121
125
|
- [ExportPages202Response](docs/ExportPages202Response.md)
|
|
122
126
|
- [Footer](docs/Footer.md)
|
|
123
127
|
- [FooterItem](docs/FooterItem.md)
|
|
124
128
|
- [Image](docs/Image.md)
|
|
129
|
+
- [InlineObject](docs/InlineObject.md)
|
|
130
|
+
- [InlineObject1](docs/InlineObject1.md)
|
|
125
131
|
- [ListRoutesResponse](docs/ListRoutesResponse.md)
|
|
126
132
|
- [Menu](docs/Menu.md)
|
|
127
133
|
- [MenuItem](docs/MenuItem.md)
|
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.
|
|
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).
|
|
@@ -194,19 +194,6 @@ export const AttributeThumbnailTypeEnum = {
|
|
|
194
194
|
|
|
195
195
|
export type AttributeThumbnailTypeEnum = typeof AttributeThumbnailTypeEnum[keyof typeof AttributeThumbnailTypeEnum];
|
|
196
196
|
|
|
197
|
-
/**
|
|
198
|
-
*
|
|
199
|
-
* @export
|
|
200
|
-
* @interface AuthorizeStripe200Response
|
|
201
|
-
*/
|
|
202
|
-
export interface AuthorizeStripe200Response {
|
|
203
|
-
/**
|
|
204
|
-
* The URL to redirect to
|
|
205
|
-
* @type {string}
|
|
206
|
-
* @memberof AuthorizeStripe200Response
|
|
207
|
-
*/
|
|
208
|
-
'redirect_url': string;
|
|
209
|
-
}
|
|
210
197
|
/**
|
|
211
198
|
* The banner image that is used to display the collection
|
|
212
199
|
* @export
|
|
@@ -654,6 +641,19 @@ export interface CreateCollectionRequestSeoMetadata {
|
|
|
654
641
|
*/
|
|
655
642
|
'image'?: MetaImage | null;
|
|
656
643
|
}
|
|
644
|
+
/**
|
|
645
|
+
*
|
|
646
|
+
* @export
|
|
647
|
+
* @interface CreateDomainRequest
|
|
648
|
+
*/
|
|
649
|
+
export interface CreateDomainRequest {
|
|
650
|
+
/**
|
|
651
|
+
*
|
|
652
|
+
* @type {string}
|
|
653
|
+
* @memberof CreateDomainRequest
|
|
654
|
+
*/
|
|
655
|
+
'domain'?: string;
|
|
656
|
+
}
|
|
657
657
|
/**
|
|
658
658
|
*
|
|
659
659
|
* @export
|
|
@@ -673,6 +673,37 @@ export interface CreateSearchRedirectRequest {
|
|
|
673
673
|
*/
|
|
674
674
|
'destinationUrl': string;
|
|
675
675
|
}
|
|
676
|
+
/**
|
|
677
|
+
*
|
|
678
|
+
* @export
|
|
679
|
+
* @interface Domain
|
|
680
|
+
*/
|
|
681
|
+
export interface Domain {
|
|
682
|
+
/**
|
|
683
|
+
*
|
|
684
|
+
* @type {number}
|
|
685
|
+
* @memberof Domain
|
|
686
|
+
*/
|
|
687
|
+
'id'?: number;
|
|
688
|
+
/**
|
|
689
|
+
*
|
|
690
|
+
* @type {string}
|
|
691
|
+
* @memberof Domain
|
|
692
|
+
*/
|
|
693
|
+
'name': string;
|
|
694
|
+
/**
|
|
695
|
+
*
|
|
696
|
+
* @type {number}
|
|
697
|
+
* @memberof Domain
|
|
698
|
+
*/
|
|
699
|
+
'priority': number;
|
|
700
|
+
/**
|
|
701
|
+
*
|
|
702
|
+
* @type {string}
|
|
703
|
+
* @memberof Domain
|
|
704
|
+
*/
|
|
705
|
+
'enabledAt': string | null;
|
|
706
|
+
}
|
|
676
707
|
/**
|
|
677
708
|
*
|
|
678
709
|
* @export
|
|
@@ -785,6 +816,38 @@ export interface Image {
|
|
|
785
816
|
*/
|
|
786
817
|
'updatedAt'?: string;
|
|
787
818
|
}
|
|
819
|
+
/**
|
|
820
|
+
*
|
|
821
|
+
* @export
|
|
822
|
+
* @interface InlineObject
|
|
823
|
+
*/
|
|
824
|
+
export interface InlineObject {
|
|
825
|
+
/**
|
|
826
|
+
*
|
|
827
|
+
* @type {Array<Domain>}
|
|
828
|
+
* @memberof InlineObject
|
|
829
|
+
*/
|
|
830
|
+
'domains'?: Array<Domain>;
|
|
831
|
+
/**
|
|
832
|
+
*
|
|
833
|
+
* @type {number}
|
|
834
|
+
* @memberof InlineObject
|
|
835
|
+
*/
|
|
836
|
+
'nextPageToken'?: number;
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
*
|
|
840
|
+
* @export
|
|
841
|
+
* @interface InlineObject1
|
|
842
|
+
*/
|
|
843
|
+
export interface InlineObject1 {
|
|
844
|
+
/**
|
|
845
|
+
* The URL to redirect to
|
|
846
|
+
* @type {string}
|
|
847
|
+
* @memberof InlineObject1
|
|
848
|
+
*/
|
|
849
|
+
'redirect_url': string;
|
|
850
|
+
}
|
|
788
851
|
/**
|
|
789
852
|
*
|
|
790
853
|
* @export
|
|
@@ -6659,7 +6722,7 @@ export const PaymentApiFp = function(configuration?: Configuration) {
|
|
|
6659
6722
|
* @param {*} [options] Override http request option.
|
|
6660
6723
|
* @throws {RequiredError}
|
|
6661
6724
|
*/
|
|
6662
|
-
async authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
6725
|
+
async authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject1>> {
|
|
6663
6726
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeStripe(project, options);
|
|
6664
6727
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6665
6728
|
const localVarOperationServerBasePath = operationServerMap['PaymentApi.authorizeStripe']?.[localVarOperationServerIndex]?.url;
|
|
@@ -6708,7 +6771,7 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
|
|
|
6708
6771
|
* @param {*} [options] Override http request option.
|
|
6709
6772
|
* @throws {RequiredError}
|
|
6710
6773
|
*/
|
|
6711
|
-
authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
6774
|
+
authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject1> {
|
|
6712
6775
|
return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
6713
6776
|
},
|
|
6714
6777
|
/**
|
|
@@ -8194,3 +8257,345 @@ export class SearchApi extends BaseAPI {
|
|
|
8194
8257
|
|
|
8195
8258
|
|
|
8196
8259
|
|
|
8260
|
+
/**
|
|
8261
|
+
* WebsiteApi - axios parameter creator
|
|
8262
|
+
* @export
|
|
8263
|
+
*/
|
|
8264
|
+
export const WebsiteApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
8265
|
+
return {
|
|
8266
|
+
/**
|
|
8267
|
+
* Create a new website domain
|
|
8268
|
+
* @summary Create a website domain
|
|
8269
|
+
* @param {string} project What project it is
|
|
8270
|
+
* @param {CreateDomainRequest} [createDomainRequest]
|
|
8271
|
+
* @param {*} [options] Override http request option.
|
|
8272
|
+
* @throws {RequiredError}
|
|
8273
|
+
*/
|
|
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)
|
|
8277
|
+
const localVarPath = `/v1/website/domains`;
|
|
8278
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8279
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8280
|
+
let baseOptions;
|
|
8281
|
+
if (configuration) {
|
|
8282
|
+
baseOptions = configuration.baseOptions;
|
|
8283
|
+
}
|
|
8284
|
+
|
|
8285
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
8286
|
+
const localVarHeaderParameter = {} as any;
|
|
8287
|
+
const localVarQueryParameter = {} as any;
|
|
8288
|
+
|
|
8289
|
+
// authentication session-oauth required
|
|
8290
|
+
// oauth required
|
|
8291
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
8292
|
+
|
|
8293
|
+
// authentication api-key required
|
|
8294
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8295
|
+
|
|
8296
|
+
if (project !== undefined) {
|
|
8297
|
+
localVarQueryParameter['project'] = project;
|
|
8298
|
+
}
|
|
8299
|
+
|
|
8300
|
+
|
|
8301
|
+
|
|
8302
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8303
|
+
|
|
8304
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8305
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8306
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8307
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDomainRequest, localVarRequestOptions, configuration)
|
|
8308
|
+
|
|
8309
|
+
return {
|
|
8310
|
+
url: toPathString(localVarUrlObj),
|
|
8311
|
+
options: localVarRequestOptions,
|
|
8312
|
+
};
|
|
8313
|
+
},
|
|
8314
|
+
/**
|
|
8315
|
+
* Delete an existing website domain
|
|
8316
|
+
* @summary Delete a website domain
|
|
8317
|
+
* @param {string} project What project it is
|
|
8318
|
+
* @param {string} domain The domain identifier
|
|
8319
|
+
* @param {*} [options] Override http request option.
|
|
8320
|
+
* @throws {RequiredError}
|
|
8321
|
+
*/
|
|
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)
|
|
8325
|
+
// verify required parameter 'domain' is not null or undefined
|
|
8326
|
+
assertParamExists('deleteDomain', 'domain', domain)
|
|
8327
|
+
const localVarPath = `/v1/website/domains/{domain}`
|
|
8328
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
8329
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8330
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8331
|
+
let baseOptions;
|
|
8332
|
+
if (configuration) {
|
|
8333
|
+
baseOptions = configuration.baseOptions;
|
|
8334
|
+
}
|
|
8335
|
+
|
|
8336
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
8337
|
+
const localVarHeaderParameter = {} as any;
|
|
8338
|
+
const localVarQueryParameter = {} as any;
|
|
8339
|
+
|
|
8340
|
+
// authentication session-oauth required
|
|
8341
|
+
// oauth required
|
|
8342
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
8343
|
+
|
|
8344
|
+
// authentication api-key required
|
|
8345
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8346
|
+
|
|
8347
|
+
if (project !== undefined) {
|
|
8348
|
+
localVarQueryParameter['project'] = project;
|
|
8349
|
+
}
|
|
8350
|
+
|
|
8351
|
+
|
|
8352
|
+
|
|
8353
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8354
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8355
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8356
|
+
|
|
8357
|
+
return {
|
|
8358
|
+
url: toPathString(localVarUrlObj),
|
|
8359
|
+
options: localVarRequestOptions,
|
|
8360
|
+
};
|
|
8361
|
+
},
|
|
8362
|
+
/**
|
|
8363
|
+
* List the domains attached to a website
|
|
8364
|
+
* @summary List website domains
|
|
8365
|
+
* @param {string} project What project it is
|
|
8366
|
+
* @param {*} [options] Override http request option.
|
|
8367
|
+
* @throws {RequiredError}
|
|
8368
|
+
*/
|
|
8369
|
+
listDomains: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8370
|
+
// verify required parameter 'project' is not null or undefined
|
|
8371
|
+
assertParamExists('listDomains', 'project', project)
|
|
8372
|
+
const localVarPath = `/v1/website/domains`;
|
|
8373
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8374
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8375
|
+
let baseOptions;
|
|
8376
|
+
if (configuration) {
|
|
8377
|
+
baseOptions = configuration.baseOptions;
|
|
8378
|
+
}
|
|
8379
|
+
|
|
8380
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8381
|
+
const localVarHeaderParameter = {} as any;
|
|
8382
|
+
const localVarQueryParameter = {} as any;
|
|
8383
|
+
|
|
8384
|
+
// authentication session-oauth required
|
|
8385
|
+
// oauth required
|
|
8386
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
8387
|
+
|
|
8388
|
+
// authentication api-key required
|
|
8389
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8390
|
+
|
|
8391
|
+
if (project !== undefined) {
|
|
8392
|
+
localVarQueryParameter['project'] = project;
|
|
8393
|
+
}
|
|
8394
|
+
|
|
8395
|
+
|
|
8396
|
+
|
|
8397
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8398
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8399
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8400
|
+
|
|
8401
|
+
return {
|
|
8402
|
+
url: toPathString(localVarUrlObj),
|
|
8403
|
+
options: localVarRequestOptions,
|
|
8404
|
+
};
|
|
8405
|
+
},
|
|
8406
|
+
}
|
|
8407
|
+
};
|
|
8408
|
+
|
|
8409
|
+
/**
|
|
8410
|
+
* WebsiteApi - functional programming interface
|
|
8411
|
+
* @export
|
|
8412
|
+
*/
|
|
8413
|
+
export const WebsiteApiFp = function(configuration?: Configuration) {
|
|
8414
|
+
const localVarAxiosParamCreator = WebsiteApiAxiosParamCreator(configuration)
|
|
8415
|
+
return {
|
|
8416
|
+
/**
|
|
8417
|
+
* Create a new website domain
|
|
8418
|
+
* @summary Create a website domain
|
|
8419
|
+
* @param {string} project What project it is
|
|
8420
|
+
* @param {CreateDomainRequest} [createDomainRequest]
|
|
8421
|
+
* @param {*} [options] Override http request option.
|
|
8422
|
+
* @throws {RequiredError}
|
|
8423
|
+
*/
|
|
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);
|
|
8426
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8427
|
+
const localVarOperationServerBasePath = operationServerMap['WebsiteApi.createDomain']?.[localVarOperationServerIndex]?.url;
|
|
8428
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8429
|
+
},
|
|
8430
|
+
/**
|
|
8431
|
+
* Delete an existing website domain
|
|
8432
|
+
* @summary Delete a website domain
|
|
8433
|
+
* @param {string} project What project it is
|
|
8434
|
+
* @param {string} domain The domain identifier
|
|
8435
|
+
* @param {*} [options] Override http request option.
|
|
8436
|
+
* @throws {RequiredError}
|
|
8437
|
+
*/
|
|
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);
|
|
8440
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8441
|
+
const localVarOperationServerBasePath = operationServerMap['WebsiteApi.deleteDomain']?.[localVarOperationServerIndex]?.url;
|
|
8442
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8443
|
+
},
|
|
8444
|
+
/**
|
|
8445
|
+
* List the domains attached to a website
|
|
8446
|
+
* @summary List website domains
|
|
8447
|
+
* @param {string} project What project it is
|
|
8448
|
+
* @param {*} [options] Override http request option.
|
|
8449
|
+
* @throws {RequiredError}
|
|
8450
|
+
*/
|
|
8451
|
+
async listDomains(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>> {
|
|
8452
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDomains(project, options);
|
|
8453
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8454
|
+
const localVarOperationServerBasePath = operationServerMap['WebsiteApi.listDomains']?.[localVarOperationServerIndex]?.url;
|
|
8455
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8456
|
+
},
|
|
8457
|
+
}
|
|
8458
|
+
};
|
|
8459
|
+
|
|
8460
|
+
/**
|
|
8461
|
+
* WebsiteApi - factory interface
|
|
8462
|
+
* @export
|
|
8463
|
+
*/
|
|
8464
|
+
export const WebsiteApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
8465
|
+
const localVarFp = WebsiteApiFp(configuration)
|
|
8466
|
+
return {
|
|
8467
|
+
/**
|
|
8468
|
+
* Create a new website domain
|
|
8469
|
+
* @summary Create a website domain
|
|
8470
|
+
* @param {WebsiteApiCreateDomainRequest} requestParameters Request parameters.
|
|
8471
|
+
* @param {*} [options] Override http request option.
|
|
8472
|
+
* @throws {RequiredError}
|
|
8473
|
+
*/
|
|
8474
|
+
createDomain(requestParameters: WebsiteApiCreateDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<Domain> {
|
|
8475
|
+
return localVarFp.createDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
|
|
8476
|
+
},
|
|
8477
|
+
/**
|
|
8478
|
+
* Delete an existing website domain
|
|
8479
|
+
* @summary Delete a website domain
|
|
8480
|
+
* @param {WebsiteApiDeleteDomainRequest} requestParameters Request parameters.
|
|
8481
|
+
* @param {*} [options] Override http request option.
|
|
8482
|
+
* @throws {RequiredError}
|
|
8483
|
+
*/
|
|
8484
|
+
deleteDomain(requestParameters: WebsiteApiDeleteDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
8485
|
+
return localVarFp.deleteDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
8486
|
+
},
|
|
8487
|
+
/**
|
|
8488
|
+
* List the domains attached to a website
|
|
8489
|
+
* @summary List website domains
|
|
8490
|
+
* @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
|
|
8491
|
+
* @param {*} [options] Override http request option.
|
|
8492
|
+
* @throws {RequiredError}
|
|
8493
|
+
*/
|
|
8494
|
+
listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject> {
|
|
8495
|
+
return localVarFp.listDomains(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
8496
|
+
},
|
|
8497
|
+
};
|
|
8498
|
+
};
|
|
8499
|
+
|
|
8500
|
+
/**
|
|
8501
|
+
* Request parameters for createDomain operation in WebsiteApi.
|
|
8502
|
+
* @export
|
|
8503
|
+
* @interface WebsiteApiCreateDomainRequest
|
|
8504
|
+
*/
|
|
8505
|
+
export interface WebsiteApiCreateDomainRequest {
|
|
8506
|
+
/**
|
|
8507
|
+
* What project it is
|
|
8508
|
+
* @type {string}
|
|
8509
|
+
* @memberof WebsiteApiCreateDomain
|
|
8510
|
+
*/
|
|
8511
|
+
readonly project: string
|
|
8512
|
+
|
|
8513
|
+
/**
|
|
8514
|
+
*
|
|
8515
|
+
* @type {CreateDomainRequest}
|
|
8516
|
+
* @memberof WebsiteApiCreateDomain
|
|
8517
|
+
*/
|
|
8518
|
+
readonly createDomainRequest?: CreateDomainRequest
|
|
8519
|
+
}
|
|
8520
|
+
|
|
8521
|
+
/**
|
|
8522
|
+
* Request parameters for deleteDomain operation in WebsiteApi.
|
|
8523
|
+
* @export
|
|
8524
|
+
* @interface WebsiteApiDeleteDomainRequest
|
|
8525
|
+
*/
|
|
8526
|
+
export interface WebsiteApiDeleteDomainRequest {
|
|
8527
|
+
/**
|
|
8528
|
+
* What project it is
|
|
8529
|
+
* @type {string}
|
|
8530
|
+
* @memberof WebsiteApiDeleteDomain
|
|
8531
|
+
*/
|
|
8532
|
+
readonly project: string
|
|
8533
|
+
|
|
8534
|
+
/**
|
|
8535
|
+
* The domain identifier
|
|
8536
|
+
* @type {string}
|
|
8537
|
+
* @memberof WebsiteApiDeleteDomain
|
|
8538
|
+
*/
|
|
8539
|
+
readonly domain: string
|
|
8540
|
+
}
|
|
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
|
+
|
|
8556
|
+
/**
|
|
8557
|
+
* WebsiteApi - object-oriented interface
|
|
8558
|
+
* @export
|
|
8559
|
+
* @class WebsiteApi
|
|
8560
|
+
* @extends {BaseAPI}
|
|
8561
|
+
*/
|
|
8562
|
+
export class WebsiteApi extends BaseAPI {
|
|
8563
|
+
/**
|
|
8564
|
+
* Create a new website domain
|
|
8565
|
+
* @summary Create a website domain
|
|
8566
|
+
* @param {WebsiteApiCreateDomainRequest} requestParameters Request parameters.
|
|
8567
|
+
* @param {*} [options] Override http request option.
|
|
8568
|
+
* @throws {RequiredError}
|
|
8569
|
+
* @memberof WebsiteApi
|
|
8570
|
+
*/
|
|
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));
|
|
8573
|
+
}
|
|
8574
|
+
|
|
8575
|
+
/**
|
|
8576
|
+
* Delete an existing website domain
|
|
8577
|
+
* @summary Delete a website domain
|
|
8578
|
+
* @param {WebsiteApiDeleteDomainRequest} requestParameters Request parameters.
|
|
8579
|
+
* @param {*} [options] Override http request option.
|
|
8580
|
+
* @throws {RequiredError}
|
|
8581
|
+
* @memberof WebsiteApi
|
|
8582
|
+
*/
|
|
8583
|
+
public deleteDomain(requestParameters: WebsiteApiDeleteDomainRequest, options?: RawAxiosRequestConfig) {
|
|
8584
|
+
return WebsiteApiFp(this.configuration).deleteDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
8585
|
+
}
|
|
8586
|
+
|
|
8587
|
+
/**
|
|
8588
|
+
* List the domains attached to a website
|
|
8589
|
+
* @summary List website domains
|
|
8590
|
+
* @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
|
|
8591
|
+
* @param {*} [options] Override http request option.
|
|
8592
|
+
* @throws {RequiredError}
|
|
8593
|
+
* @memberof WebsiteApi
|
|
8594
|
+
*/
|
|
8595
|
+
public listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig) {
|
|
8596
|
+
return WebsiteApiFp(this.configuration).listDomains(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
8597
|
+
}
|
|
8598
|
+
}
|
|
8599
|
+
|
|
8600
|
+
|
|
8601
|
+
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED