@teemill/website 0.23.0 → 0.25.0
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 +10 -3
- package/api.ts +395 -18
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +252 -19
- package/dist/api.js +249 -3
- 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 +252 -19
- package/dist/esm/api.js +243 -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/SalePrice.md +23 -0
- package/docs/Variant.md +1 -1
- package/docs/WebsiteApi.md +172 -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.0
|
|
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.0 --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)
|
|
@@ -148,6 +154,7 @@ Class | Method | HTTP request | Description
|
|
|
148
154
|
- [ReviewReplyAuthor](docs/ReviewReplyAuthor.md)
|
|
149
155
|
- [ReviewsResponse](docs/ReviewsResponse.md)
|
|
150
156
|
- [Route](docs/Route.md)
|
|
157
|
+
- [SalePrice](docs/SalePrice.md)
|
|
151
158
|
- [SearchRedirect](docs/SearchRedirect.md)
|
|
152
159
|
- [SearchRedirectsResponse](docs/SearchRedirectsResponse.md)
|
|
153
160
|
- [SeoMetadata](docs/SeoMetadata.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.0
|
|
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
|
|
@@ -1596,6 +1659,32 @@ export interface Route {
|
|
|
1596
1659
|
*/
|
|
1597
1660
|
'published': boolean;
|
|
1598
1661
|
}
|
|
1662
|
+
/**
|
|
1663
|
+
* Discounted price including tax.
|
|
1664
|
+
* @export
|
|
1665
|
+
* @interface SalePrice
|
|
1666
|
+
*/
|
|
1667
|
+
export interface SalePrice {
|
|
1668
|
+
/**
|
|
1669
|
+
* Discounted price including tax in the specified currency.
|
|
1670
|
+
* @type {number}
|
|
1671
|
+
* @memberof SalePrice
|
|
1672
|
+
*/
|
|
1673
|
+
'amount': number;
|
|
1674
|
+
/**
|
|
1675
|
+
* Currency code for the currency the sale price is valued in.
|
|
1676
|
+
* @type {string}
|
|
1677
|
+
* @memberof SalePrice
|
|
1678
|
+
*/
|
|
1679
|
+
'currencyCode': SalePriceCurrencyCodeEnum;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
export const SalePriceCurrencyCodeEnum = {
|
|
1683
|
+
Gbp: 'GBP'
|
|
1684
|
+
} as const;
|
|
1685
|
+
|
|
1686
|
+
export type SalePriceCurrencyCodeEnum = typeof SalePriceCurrencyCodeEnum[keyof typeof SalePriceCurrencyCodeEnum];
|
|
1687
|
+
|
|
1599
1688
|
/**
|
|
1600
1689
|
*
|
|
1601
1690
|
* @export
|
|
@@ -3035,10 +3124,10 @@ export interface Variant {
|
|
|
3035
3124
|
'retailPrice'?: Price;
|
|
3036
3125
|
/**
|
|
3037
3126
|
*
|
|
3038
|
-
* @type {
|
|
3127
|
+
* @type {SalePrice}
|
|
3039
3128
|
* @memberof Variant
|
|
3040
3129
|
*/
|
|
3041
|
-
'salePrice'?:
|
|
3130
|
+
'salePrice'?: SalePrice | null;
|
|
3042
3131
|
/**
|
|
3043
3132
|
*
|
|
3044
3133
|
* @type {Price}
|
|
@@ -6633,7 +6722,7 @@ export const PaymentApiFp = function(configuration?: Configuration) {
|
|
|
6633
6722
|
* @param {*} [options] Override http request option.
|
|
6634
6723
|
* @throws {RequiredError}
|
|
6635
6724
|
*/
|
|
6636
|
-
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>> {
|
|
6637
6726
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeStripe(project, options);
|
|
6638
6727
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6639
6728
|
const localVarOperationServerBasePath = operationServerMap['PaymentApi.authorizeStripe']?.[localVarOperationServerIndex]?.url;
|
|
@@ -6682,7 +6771,7 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
|
|
|
6682
6771
|
* @param {*} [options] Override http request option.
|
|
6683
6772
|
* @throws {RequiredError}
|
|
6684
6773
|
*/
|
|
6685
|
-
authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
6774
|
+
authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject1> {
|
|
6686
6775
|
return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
6687
6776
|
},
|
|
6688
6777
|
/**
|
|
@@ -8168,3 +8257,291 @@ export class SearchApi extends BaseAPI {
|
|
|
8168
8257
|
|
|
8169
8258
|
|
|
8170
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 {CreateDomainRequest} [createDomainRequest]
|
|
8270
|
+
* @param {*} [options] Override http request option.
|
|
8271
|
+
* @throws {RequiredError}
|
|
8272
|
+
*/
|
|
8273
|
+
createDomain: async (createDomainRequest?: CreateDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8274
|
+
const localVarPath = `/v1/website/domains`;
|
|
8275
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8276
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8277
|
+
let baseOptions;
|
|
8278
|
+
if (configuration) {
|
|
8279
|
+
baseOptions = configuration.baseOptions;
|
|
8280
|
+
}
|
|
8281
|
+
|
|
8282
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
8283
|
+
const localVarHeaderParameter = {} as any;
|
|
8284
|
+
const localVarQueryParameter = {} as any;
|
|
8285
|
+
|
|
8286
|
+
// authentication session-oauth required
|
|
8287
|
+
// oauth required
|
|
8288
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
8289
|
+
|
|
8290
|
+
// authentication api-key required
|
|
8291
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8292
|
+
|
|
8293
|
+
|
|
8294
|
+
|
|
8295
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8296
|
+
|
|
8297
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8298
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8299
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8300
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDomainRequest, localVarRequestOptions, configuration)
|
|
8301
|
+
|
|
8302
|
+
return {
|
|
8303
|
+
url: toPathString(localVarUrlObj),
|
|
8304
|
+
options: localVarRequestOptions,
|
|
8305
|
+
};
|
|
8306
|
+
},
|
|
8307
|
+
/**
|
|
8308
|
+
* Delete an existing website domain
|
|
8309
|
+
* @summary Delete a website domain
|
|
8310
|
+
* @param {string} domain The domain identifier
|
|
8311
|
+
* @param {*} [options] Override http request option.
|
|
8312
|
+
* @throws {RequiredError}
|
|
8313
|
+
*/
|
|
8314
|
+
deleteDomain: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8315
|
+
// verify required parameter 'domain' is not null or undefined
|
|
8316
|
+
assertParamExists('deleteDomain', 'domain', domain)
|
|
8317
|
+
const localVarPath = `/v1/website/domains/{domain}`
|
|
8318
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
8319
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8320
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8321
|
+
let baseOptions;
|
|
8322
|
+
if (configuration) {
|
|
8323
|
+
baseOptions = configuration.baseOptions;
|
|
8324
|
+
}
|
|
8325
|
+
|
|
8326
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
8327
|
+
const localVarHeaderParameter = {} as any;
|
|
8328
|
+
const localVarQueryParameter = {} as any;
|
|
8329
|
+
|
|
8330
|
+
// authentication session-oauth required
|
|
8331
|
+
// oauth required
|
|
8332
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
8333
|
+
|
|
8334
|
+
// authentication api-key required
|
|
8335
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8336
|
+
|
|
8337
|
+
|
|
8338
|
+
|
|
8339
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8340
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8341
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8342
|
+
|
|
8343
|
+
return {
|
|
8344
|
+
url: toPathString(localVarUrlObj),
|
|
8345
|
+
options: localVarRequestOptions,
|
|
8346
|
+
};
|
|
8347
|
+
},
|
|
8348
|
+
/**
|
|
8349
|
+
* List the domains attached to a website
|
|
8350
|
+
* @summary List website domains
|
|
8351
|
+
* @param {*} [options] Override http request option.
|
|
8352
|
+
* @throws {RequiredError}
|
|
8353
|
+
*/
|
|
8354
|
+
listDomains: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8355
|
+
const localVarPath = `/v1/website/domains`;
|
|
8356
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8357
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8358
|
+
let baseOptions;
|
|
8359
|
+
if (configuration) {
|
|
8360
|
+
baseOptions = configuration.baseOptions;
|
|
8361
|
+
}
|
|
8362
|
+
|
|
8363
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8364
|
+
const localVarHeaderParameter = {} as any;
|
|
8365
|
+
const localVarQueryParameter = {} as any;
|
|
8366
|
+
|
|
8367
|
+
// authentication session-oauth required
|
|
8368
|
+
// oauth required
|
|
8369
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
8370
|
+
|
|
8371
|
+
// authentication api-key required
|
|
8372
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8373
|
+
|
|
8374
|
+
|
|
8375
|
+
|
|
8376
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8377
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8378
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8379
|
+
|
|
8380
|
+
return {
|
|
8381
|
+
url: toPathString(localVarUrlObj),
|
|
8382
|
+
options: localVarRequestOptions,
|
|
8383
|
+
};
|
|
8384
|
+
},
|
|
8385
|
+
}
|
|
8386
|
+
};
|
|
8387
|
+
|
|
8388
|
+
/**
|
|
8389
|
+
* WebsiteApi - functional programming interface
|
|
8390
|
+
* @export
|
|
8391
|
+
*/
|
|
8392
|
+
export const WebsiteApiFp = function(configuration?: Configuration) {
|
|
8393
|
+
const localVarAxiosParamCreator = WebsiteApiAxiosParamCreator(configuration)
|
|
8394
|
+
return {
|
|
8395
|
+
/**
|
|
8396
|
+
* Create a new website domain
|
|
8397
|
+
* @summary Create a website domain
|
|
8398
|
+
* @param {CreateDomainRequest} [createDomainRequest]
|
|
8399
|
+
* @param {*} [options] Override http request option.
|
|
8400
|
+
* @throws {RequiredError}
|
|
8401
|
+
*/
|
|
8402
|
+
async createDomain(createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Domain>> {
|
|
8403
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createDomain(createDomainRequest, options);
|
|
8404
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8405
|
+
const localVarOperationServerBasePath = operationServerMap['WebsiteApi.createDomain']?.[localVarOperationServerIndex]?.url;
|
|
8406
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8407
|
+
},
|
|
8408
|
+
/**
|
|
8409
|
+
* Delete an existing website domain
|
|
8410
|
+
* @summary Delete a website domain
|
|
8411
|
+
* @param {string} domain The domain identifier
|
|
8412
|
+
* @param {*} [options] Override http request option.
|
|
8413
|
+
* @throws {RequiredError}
|
|
8414
|
+
*/
|
|
8415
|
+
async deleteDomain(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
8416
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDomain(domain, options);
|
|
8417
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8418
|
+
const localVarOperationServerBasePath = operationServerMap['WebsiteApi.deleteDomain']?.[localVarOperationServerIndex]?.url;
|
|
8419
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8420
|
+
},
|
|
8421
|
+
/**
|
|
8422
|
+
* List the domains attached to a website
|
|
8423
|
+
* @summary List website domains
|
|
8424
|
+
* @param {*} [options] Override http request option.
|
|
8425
|
+
* @throws {RequiredError}
|
|
8426
|
+
*/
|
|
8427
|
+
async listDomains(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>> {
|
|
8428
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDomains(options);
|
|
8429
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8430
|
+
const localVarOperationServerBasePath = operationServerMap['WebsiteApi.listDomains']?.[localVarOperationServerIndex]?.url;
|
|
8431
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8432
|
+
},
|
|
8433
|
+
}
|
|
8434
|
+
};
|
|
8435
|
+
|
|
8436
|
+
/**
|
|
8437
|
+
* WebsiteApi - factory interface
|
|
8438
|
+
* @export
|
|
8439
|
+
*/
|
|
8440
|
+
export const WebsiteApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
8441
|
+
const localVarFp = WebsiteApiFp(configuration)
|
|
8442
|
+
return {
|
|
8443
|
+
/**
|
|
8444
|
+
* Create a new website domain
|
|
8445
|
+
* @summary Create a website domain
|
|
8446
|
+
* @param {WebsiteApiCreateDomainRequest} requestParameters Request parameters.
|
|
8447
|
+
* @param {*} [options] Override http request option.
|
|
8448
|
+
* @throws {RequiredError}
|
|
8449
|
+
*/
|
|
8450
|
+
createDomain(requestParameters: WebsiteApiCreateDomainRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Domain> {
|
|
8451
|
+
return localVarFp.createDomain(requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
|
|
8452
|
+
},
|
|
8453
|
+
/**
|
|
8454
|
+
* Delete an existing website domain
|
|
8455
|
+
* @summary Delete a website domain
|
|
8456
|
+
* @param {WebsiteApiDeleteDomainRequest} requestParameters Request parameters.
|
|
8457
|
+
* @param {*} [options] Override http request option.
|
|
8458
|
+
* @throws {RequiredError}
|
|
8459
|
+
*/
|
|
8460
|
+
deleteDomain(requestParameters: WebsiteApiDeleteDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
8461
|
+
return localVarFp.deleteDomain(requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
8462
|
+
},
|
|
8463
|
+
/**
|
|
8464
|
+
* List the domains attached to a website
|
|
8465
|
+
* @summary List website domains
|
|
8466
|
+
* @param {*} [options] Override http request option.
|
|
8467
|
+
* @throws {RequiredError}
|
|
8468
|
+
*/
|
|
8469
|
+
listDomains(options?: RawAxiosRequestConfig): AxiosPromise<InlineObject> {
|
|
8470
|
+
return localVarFp.listDomains(options).then((request) => request(axios, basePath));
|
|
8471
|
+
},
|
|
8472
|
+
};
|
|
8473
|
+
};
|
|
8474
|
+
|
|
8475
|
+
/**
|
|
8476
|
+
* Request parameters for createDomain operation in WebsiteApi.
|
|
8477
|
+
* @export
|
|
8478
|
+
* @interface WebsiteApiCreateDomainRequest
|
|
8479
|
+
*/
|
|
8480
|
+
export interface WebsiteApiCreateDomainRequest {
|
|
8481
|
+
/**
|
|
8482
|
+
*
|
|
8483
|
+
* @type {CreateDomainRequest}
|
|
8484
|
+
* @memberof WebsiteApiCreateDomain
|
|
8485
|
+
*/
|
|
8486
|
+
readonly createDomainRequest?: CreateDomainRequest
|
|
8487
|
+
}
|
|
8488
|
+
|
|
8489
|
+
/**
|
|
8490
|
+
* Request parameters for deleteDomain operation in WebsiteApi.
|
|
8491
|
+
* @export
|
|
8492
|
+
* @interface WebsiteApiDeleteDomainRequest
|
|
8493
|
+
*/
|
|
8494
|
+
export interface WebsiteApiDeleteDomainRequest {
|
|
8495
|
+
/**
|
|
8496
|
+
* The domain identifier
|
|
8497
|
+
* @type {string}
|
|
8498
|
+
* @memberof WebsiteApiDeleteDomain
|
|
8499
|
+
*/
|
|
8500
|
+
readonly domain: string
|
|
8501
|
+
}
|
|
8502
|
+
|
|
8503
|
+
/**
|
|
8504
|
+
* WebsiteApi - object-oriented interface
|
|
8505
|
+
* @export
|
|
8506
|
+
* @class WebsiteApi
|
|
8507
|
+
* @extends {BaseAPI}
|
|
8508
|
+
*/
|
|
8509
|
+
export class WebsiteApi extends BaseAPI {
|
|
8510
|
+
/**
|
|
8511
|
+
* Create a new website domain
|
|
8512
|
+
* @summary Create a website domain
|
|
8513
|
+
* @param {WebsiteApiCreateDomainRequest} requestParameters Request parameters.
|
|
8514
|
+
* @param {*} [options] Override http request option.
|
|
8515
|
+
* @throws {RequiredError}
|
|
8516
|
+
* @memberof WebsiteApi
|
|
8517
|
+
*/
|
|
8518
|
+
public createDomain(requestParameters: WebsiteApiCreateDomainRequest = {}, options?: RawAxiosRequestConfig) {
|
|
8519
|
+
return WebsiteApiFp(this.configuration).createDomain(requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8520
|
+
}
|
|
8521
|
+
|
|
8522
|
+
/**
|
|
8523
|
+
* Delete an existing website domain
|
|
8524
|
+
* @summary Delete a website domain
|
|
8525
|
+
* @param {WebsiteApiDeleteDomainRequest} requestParameters Request parameters.
|
|
8526
|
+
* @param {*} [options] Override http request option.
|
|
8527
|
+
* @throws {RequiredError}
|
|
8528
|
+
* @memberof WebsiteApi
|
|
8529
|
+
*/
|
|
8530
|
+
public deleteDomain(requestParameters: WebsiteApiDeleteDomainRequest, options?: RawAxiosRequestConfig) {
|
|
8531
|
+
return WebsiteApiFp(this.configuration).deleteDomain(requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
8532
|
+
}
|
|
8533
|
+
|
|
8534
|
+
/**
|
|
8535
|
+
* List the domains attached to a website
|
|
8536
|
+
* @summary List website domains
|
|
8537
|
+
* @param {*} [options] Override http request option.
|
|
8538
|
+
* @throws {RequiredError}
|
|
8539
|
+
* @memberof WebsiteApi
|
|
8540
|
+
*/
|
|
8541
|
+
public listDomains(options?: RawAxiosRequestConfig) {
|
|
8542
|
+
return WebsiteApiFp(this.configuration).listDomains(options).then((request) => request(this.axios, this.basePath));
|
|
8543
|
+
}
|
|
8544
|
+
}
|
|
8545
|
+
|
|
8546
|
+
|
|
8547
|
+
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED