@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/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.23.0
5
+ * The version of the OpenAPI document: 0.25.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -177,19 +177,6 @@ export declare const AttributeThumbnailTypeEnum: {
177
177
  readonly Image: "image";
178
178
  };
179
179
  export type AttributeThumbnailTypeEnum = typeof AttributeThumbnailTypeEnum[keyof typeof AttributeThumbnailTypeEnum];
180
- /**
181
- *
182
- * @export
183
- * @interface AuthorizeStripe200Response
184
- */
185
- export interface AuthorizeStripe200Response {
186
- /**
187
- * The URL to redirect to
188
- * @type {string}
189
- * @memberof AuthorizeStripe200Response
190
- */
191
- 'redirect_url': string;
192
- }
193
180
  /**
194
181
  * The banner image that is used to display the collection
195
182
  * @export
@@ -637,6 +624,19 @@ export interface CreateCollectionRequestSeoMetadata {
637
624
  */
638
625
  'image'?: MetaImage | null;
639
626
  }
627
+ /**
628
+ *
629
+ * @export
630
+ * @interface CreateDomainRequest
631
+ */
632
+ export interface CreateDomainRequest {
633
+ /**
634
+ *
635
+ * @type {string}
636
+ * @memberof CreateDomainRequest
637
+ */
638
+ 'domain'?: string;
639
+ }
640
640
  /**
641
641
  *
642
642
  * @export
@@ -656,6 +656,37 @@ export interface CreateSearchRedirectRequest {
656
656
  */
657
657
  'destinationUrl': string;
658
658
  }
659
+ /**
660
+ *
661
+ * @export
662
+ * @interface Domain
663
+ */
664
+ export interface Domain {
665
+ /**
666
+ *
667
+ * @type {number}
668
+ * @memberof Domain
669
+ */
670
+ 'id'?: number;
671
+ /**
672
+ *
673
+ * @type {string}
674
+ * @memberof Domain
675
+ */
676
+ 'name': string;
677
+ /**
678
+ *
679
+ * @type {number}
680
+ * @memberof Domain
681
+ */
682
+ 'priority': number;
683
+ /**
684
+ *
685
+ * @type {string}
686
+ * @memberof Domain
687
+ */
688
+ 'enabledAt': string | null;
689
+ }
659
690
  /**
660
691
  *
661
692
  * @export
@@ -768,6 +799,38 @@ export interface Image {
768
799
  */
769
800
  'updatedAt'?: string;
770
801
  }
802
+ /**
803
+ *
804
+ * @export
805
+ * @interface InlineObject
806
+ */
807
+ export interface InlineObject {
808
+ /**
809
+ *
810
+ * @type {Array<Domain>}
811
+ * @memberof InlineObject
812
+ */
813
+ 'domains'?: Array<Domain>;
814
+ /**
815
+ *
816
+ * @type {number}
817
+ * @memberof InlineObject
818
+ */
819
+ 'nextPageToken'?: number;
820
+ }
821
+ /**
822
+ *
823
+ * @export
824
+ * @interface InlineObject1
825
+ */
826
+ export interface InlineObject1 {
827
+ /**
828
+ * The URL to redirect to
829
+ * @type {string}
830
+ * @memberof InlineObject1
831
+ */
832
+ 'redirect_url': string;
833
+ }
771
834
  /**
772
835
  *
773
836
  * @export
@@ -1575,6 +1638,29 @@ export interface Route {
1575
1638
  */
1576
1639
  'published': boolean;
1577
1640
  }
1641
+ /**
1642
+ * Discounted price including tax.
1643
+ * @export
1644
+ * @interface SalePrice
1645
+ */
1646
+ export interface SalePrice {
1647
+ /**
1648
+ * Discounted price including tax in the specified currency.
1649
+ * @type {number}
1650
+ * @memberof SalePrice
1651
+ */
1652
+ 'amount': number;
1653
+ /**
1654
+ * Currency code for the currency the sale price is valued in.
1655
+ * @type {string}
1656
+ * @memberof SalePrice
1657
+ */
1658
+ 'currencyCode': SalePriceCurrencyCodeEnum;
1659
+ }
1660
+ export declare const SalePriceCurrencyCodeEnum: {
1661
+ readonly Gbp: "GBP";
1662
+ };
1663
+ export type SalePriceCurrencyCodeEnum = typeof SalePriceCurrencyCodeEnum[keyof typeof SalePriceCurrencyCodeEnum];
1578
1664
  /**
1579
1665
  *
1580
1666
  * @export
@@ -2989,10 +3075,10 @@ export interface Variant {
2989
3075
  'retailPrice'?: Price;
2990
3076
  /**
2991
3077
  *
2992
- * @type {Price}
3078
+ * @type {SalePrice}
2993
3079
  * @memberof Variant
2994
3080
  */
2995
- 'salePrice'?: Price;
3081
+ 'salePrice'?: SalePrice | null;
2996
3082
  /**
2997
3083
  *
2998
3084
  * @type {Price}
@@ -4920,7 +5006,7 @@ export declare const PaymentApiFp: (configuration?: Configuration) => {
4920
5006
  * @param {*} [options] Override http request option.
4921
5007
  * @throws {RequiredError}
4922
5008
  */
4923
- authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthorizeStripe200Response>>;
5009
+ authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject1>>;
4924
5010
  /**
4925
5011
  * Deauthorize a Stripe payment account
4926
5012
  * @summary Deauthorize Stripe
@@ -4950,7 +5036,7 @@ export declare const PaymentApiFactory: (configuration?: Configuration, basePath
4950
5036
  * @param {*} [options] Override http request option.
4951
5037
  * @throws {RequiredError}
4952
5038
  */
4953
- authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthorizeStripe200Response>;
5039
+ authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject1>;
4954
5040
  /**
4955
5041
  * Deauthorize a Stripe payment account
4956
5042
  * @summary Deauthorize Stripe
@@ -5022,7 +5108,7 @@ export declare class PaymentApi extends BaseAPI {
5022
5108
  * @throws {RequiredError}
5023
5109
  * @memberof PaymentApi
5024
5110
  */
5025
- authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthorizeStripe200Response, any>>;
5111
+ authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineObject1, any>>;
5026
5112
  /**
5027
5113
  * Deauthorize a Stripe payment account
5028
5114
  * @summary Deauthorize Stripe
@@ -5780,3 +5866,150 @@ export declare class SearchApi extends BaseAPI {
5780
5866
  */
5781
5867
  updateSearchRedirect(requestParameters: SearchApiUpdateSearchRedirectRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SearchRedirect, any>>;
5782
5868
  }
5869
+ /**
5870
+ * WebsiteApi - axios parameter creator
5871
+ * @export
5872
+ */
5873
+ export declare const WebsiteApiAxiosParamCreator: (configuration?: Configuration) => {
5874
+ /**
5875
+ * Create a new website domain
5876
+ * @summary Create a website domain
5877
+ * @param {CreateDomainRequest} [createDomainRequest]
5878
+ * @param {*} [options] Override http request option.
5879
+ * @throws {RequiredError}
5880
+ */
5881
+ createDomain: (createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5882
+ /**
5883
+ * Delete an existing website domain
5884
+ * @summary Delete a website domain
5885
+ * @param {string} domain The domain identifier
5886
+ * @param {*} [options] Override http request option.
5887
+ * @throws {RequiredError}
5888
+ */
5889
+ deleteDomain: (domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5890
+ /**
5891
+ * List the domains attached to a website
5892
+ * @summary List website domains
5893
+ * @param {*} [options] Override http request option.
5894
+ * @throws {RequiredError}
5895
+ */
5896
+ listDomains: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5897
+ };
5898
+ /**
5899
+ * WebsiteApi - functional programming interface
5900
+ * @export
5901
+ */
5902
+ export declare const WebsiteApiFp: (configuration?: Configuration) => {
5903
+ /**
5904
+ * Create a new website domain
5905
+ * @summary Create a website domain
5906
+ * @param {CreateDomainRequest} [createDomainRequest]
5907
+ * @param {*} [options] Override http request option.
5908
+ * @throws {RequiredError}
5909
+ */
5910
+ createDomain(createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Domain>>;
5911
+ /**
5912
+ * Delete an existing website domain
5913
+ * @summary Delete a website domain
5914
+ * @param {string} domain The domain identifier
5915
+ * @param {*} [options] Override http request option.
5916
+ * @throws {RequiredError}
5917
+ */
5918
+ deleteDomain(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5919
+ /**
5920
+ * List the domains attached to a website
5921
+ * @summary List website domains
5922
+ * @param {*} [options] Override http request option.
5923
+ * @throws {RequiredError}
5924
+ */
5925
+ listDomains(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>>;
5926
+ };
5927
+ /**
5928
+ * WebsiteApi - factory interface
5929
+ * @export
5930
+ */
5931
+ export declare const WebsiteApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5932
+ /**
5933
+ * Create a new website domain
5934
+ * @summary Create a website domain
5935
+ * @param {WebsiteApiCreateDomainRequest} requestParameters Request parameters.
5936
+ * @param {*} [options] Override http request option.
5937
+ * @throws {RequiredError}
5938
+ */
5939
+ createDomain(requestParameters?: WebsiteApiCreateDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<Domain>;
5940
+ /**
5941
+ * Delete an existing website domain
5942
+ * @summary Delete a website domain
5943
+ * @param {WebsiteApiDeleteDomainRequest} requestParameters Request parameters.
5944
+ * @param {*} [options] Override http request option.
5945
+ * @throws {RequiredError}
5946
+ */
5947
+ deleteDomain(requestParameters: WebsiteApiDeleteDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
5948
+ /**
5949
+ * List the domains attached to a website
5950
+ * @summary List website domains
5951
+ * @param {*} [options] Override http request option.
5952
+ * @throws {RequiredError}
5953
+ */
5954
+ listDomains(options?: RawAxiosRequestConfig): AxiosPromise<InlineObject>;
5955
+ };
5956
+ /**
5957
+ * Request parameters for createDomain operation in WebsiteApi.
5958
+ * @export
5959
+ * @interface WebsiteApiCreateDomainRequest
5960
+ */
5961
+ export interface WebsiteApiCreateDomainRequest {
5962
+ /**
5963
+ *
5964
+ * @type {CreateDomainRequest}
5965
+ * @memberof WebsiteApiCreateDomain
5966
+ */
5967
+ readonly createDomainRequest?: CreateDomainRequest;
5968
+ }
5969
+ /**
5970
+ * Request parameters for deleteDomain operation in WebsiteApi.
5971
+ * @export
5972
+ * @interface WebsiteApiDeleteDomainRequest
5973
+ */
5974
+ export interface WebsiteApiDeleteDomainRequest {
5975
+ /**
5976
+ * The domain identifier
5977
+ * @type {string}
5978
+ * @memberof WebsiteApiDeleteDomain
5979
+ */
5980
+ readonly domain: string;
5981
+ }
5982
+ /**
5983
+ * WebsiteApi - object-oriented interface
5984
+ * @export
5985
+ * @class WebsiteApi
5986
+ * @extends {BaseAPI}
5987
+ */
5988
+ export declare class WebsiteApi extends BaseAPI {
5989
+ /**
5990
+ * Create a new website domain
5991
+ * @summary Create a website domain
5992
+ * @param {WebsiteApiCreateDomainRequest} requestParameters Request parameters.
5993
+ * @param {*} [options] Override http request option.
5994
+ * @throws {RequiredError}
5995
+ * @memberof WebsiteApi
5996
+ */
5997
+ createDomain(requestParameters?: WebsiteApiCreateDomainRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Domain, any>>;
5998
+ /**
5999
+ * Delete an existing website domain
6000
+ * @summary Delete a website domain
6001
+ * @param {WebsiteApiDeleteDomainRequest} requestParameters Request parameters.
6002
+ * @param {*} [options] Override http request option.
6003
+ * @throws {RequiredError}
6004
+ * @memberof WebsiteApi
6005
+ */
6006
+ deleteDomain(requestParameters: WebsiteApiDeleteDomainRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
6007
+ /**
6008
+ * List the domains attached to a website
6009
+ * @summary List website domains
6010
+ * @param {*} [options] Override http request option.
6011
+ * @throws {RequiredError}
6012
+ * @memberof WebsiteApi
6013
+ */
6014
+ listDomains(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineObject, any>>;
6015
+ }
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.23.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).
@@ -56,6 +56,9 @@ export const PaymentAccountMethodEnum = {
56
56
  export const PriceCurrencyCodeEnum = {
57
57
  Gbp: 'GBP'
58
58
  };
59
+ export const SalePriceCurrencyCodeEnum = {
60
+ Gbp: 'GBP'
61
+ };
59
62
  export const SubmenuInnerModeEnum = {
60
63
  Image: 'image',
61
64
  List: 'list'
@@ -3738,3 +3741,242 @@ export class SearchApi extends BaseAPI {
3738
3741
  return SearchApiFp(this.configuration).updateSearchRedirect(requestParameters.project, requestParameters.redirectId, requestParameters.updateSearchRedirectRequest, options).then((request) => request(this.axios, this.basePath));
3739
3742
  }
3740
3743
  }
3744
+ /**
3745
+ * WebsiteApi - axios parameter creator
3746
+ * @export
3747
+ */
3748
+ export const WebsiteApiAxiosParamCreator = function (configuration) {
3749
+ return {
3750
+ /**
3751
+ * Create a new website domain
3752
+ * @summary Create a website domain
3753
+ * @param {CreateDomainRequest} [createDomainRequest]
3754
+ * @param {*} [options] Override http request option.
3755
+ * @throws {RequiredError}
3756
+ */
3757
+ createDomain: (createDomainRequest_1, ...args_1) => __awaiter(this, [createDomainRequest_1, ...args_1], void 0, function* (createDomainRequest, options = {}) {
3758
+ const localVarPath = `/v1/website/domains`;
3759
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3760
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3761
+ let baseOptions;
3762
+ if (configuration) {
3763
+ baseOptions = configuration.baseOptions;
3764
+ }
3765
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3766
+ const localVarHeaderParameter = {};
3767
+ const localVarQueryParameter = {};
3768
+ // authentication session-oauth required
3769
+ // oauth required
3770
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
3771
+ // authentication api-key required
3772
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
3773
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3774
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3775
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3776
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3777
+ localVarRequestOptions.data = serializeDataIfNeeded(createDomainRequest, localVarRequestOptions, configuration);
3778
+ return {
3779
+ url: toPathString(localVarUrlObj),
3780
+ options: localVarRequestOptions,
3781
+ };
3782
+ }),
3783
+ /**
3784
+ * Delete an existing website domain
3785
+ * @summary Delete a website domain
3786
+ * @param {string} domain The domain identifier
3787
+ * @param {*} [options] Override http request option.
3788
+ * @throws {RequiredError}
3789
+ */
3790
+ deleteDomain: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
3791
+ // verify required parameter 'domain' is not null or undefined
3792
+ assertParamExists('deleteDomain', 'domain', domain);
3793
+ const localVarPath = `/v1/website/domains/{domain}`
3794
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
3795
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3796
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3797
+ let baseOptions;
3798
+ if (configuration) {
3799
+ baseOptions = configuration.baseOptions;
3800
+ }
3801
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3802
+ const localVarHeaderParameter = {};
3803
+ const localVarQueryParameter = {};
3804
+ // authentication session-oauth required
3805
+ // oauth required
3806
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
3807
+ // authentication api-key required
3808
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
3809
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3810
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3811
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3812
+ return {
3813
+ url: toPathString(localVarUrlObj),
3814
+ options: localVarRequestOptions,
3815
+ };
3816
+ }),
3817
+ /**
3818
+ * List the domains attached to a website
3819
+ * @summary List website domains
3820
+ * @param {*} [options] Override http request option.
3821
+ * @throws {RequiredError}
3822
+ */
3823
+ listDomains: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3824
+ const localVarPath = `/v1/website/domains`;
3825
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3826
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3827
+ let baseOptions;
3828
+ if (configuration) {
3829
+ baseOptions = configuration.baseOptions;
3830
+ }
3831
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3832
+ const localVarHeaderParameter = {};
3833
+ const localVarQueryParameter = {};
3834
+ // authentication session-oauth required
3835
+ // oauth required
3836
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
3837
+ // authentication api-key required
3838
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
3839
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3840
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3841
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3842
+ return {
3843
+ url: toPathString(localVarUrlObj),
3844
+ options: localVarRequestOptions,
3845
+ };
3846
+ }),
3847
+ };
3848
+ };
3849
+ /**
3850
+ * WebsiteApi - functional programming interface
3851
+ * @export
3852
+ */
3853
+ export const WebsiteApiFp = function (configuration) {
3854
+ const localVarAxiosParamCreator = WebsiteApiAxiosParamCreator(configuration);
3855
+ return {
3856
+ /**
3857
+ * Create a new website domain
3858
+ * @summary Create a website domain
3859
+ * @param {CreateDomainRequest} [createDomainRequest]
3860
+ * @param {*} [options] Override http request option.
3861
+ * @throws {RequiredError}
3862
+ */
3863
+ createDomain(createDomainRequest, options) {
3864
+ return __awaiter(this, void 0, void 0, function* () {
3865
+ var _a, _b, _c;
3866
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createDomain(createDomainRequest, options);
3867
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3868
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebsiteApi.createDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3869
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3870
+ });
3871
+ },
3872
+ /**
3873
+ * Delete an existing website domain
3874
+ * @summary Delete a website domain
3875
+ * @param {string} domain The domain identifier
3876
+ * @param {*} [options] Override http request option.
3877
+ * @throws {RequiredError}
3878
+ */
3879
+ deleteDomain(domain, options) {
3880
+ return __awaiter(this, void 0, void 0, function* () {
3881
+ var _a, _b, _c;
3882
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDomain(domain, options);
3883
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3884
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebsiteApi.deleteDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3885
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3886
+ });
3887
+ },
3888
+ /**
3889
+ * List the domains attached to a website
3890
+ * @summary List website domains
3891
+ * @param {*} [options] Override http request option.
3892
+ * @throws {RequiredError}
3893
+ */
3894
+ listDomains(options) {
3895
+ return __awaiter(this, void 0, void 0, function* () {
3896
+ var _a, _b, _c;
3897
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listDomains(options);
3898
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3899
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebsiteApi.listDomains']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3900
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3901
+ });
3902
+ },
3903
+ };
3904
+ };
3905
+ /**
3906
+ * WebsiteApi - factory interface
3907
+ * @export
3908
+ */
3909
+ export const WebsiteApiFactory = function (configuration, basePath, axios) {
3910
+ const localVarFp = WebsiteApiFp(configuration);
3911
+ return {
3912
+ /**
3913
+ * Create a new website domain
3914
+ * @summary Create a website domain
3915
+ * @param {WebsiteApiCreateDomainRequest} requestParameters Request parameters.
3916
+ * @param {*} [options] Override http request option.
3917
+ * @throws {RequiredError}
3918
+ */
3919
+ createDomain(requestParameters = {}, options) {
3920
+ return localVarFp.createDomain(requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
3921
+ },
3922
+ /**
3923
+ * Delete an existing website domain
3924
+ * @summary Delete a website domain
3925
+ * @param {WebsiteApiDeleteDomainRequest} requestParameters Request parameters.
3926
+ * @param {*} [options] Override http request option.
3927
+ * @throws {RequiredError}
3928
+ */
3929
+ deleteDomain(requestParameters, options) {
3930
+ return localVarFp.deleteDomain(requestParameters.domain, options).then((request) => request(axios, basePath));
3931
+ },
3932
+ /**
3933
+ * List the domains attached to a website
3934
+ * @summary List website domains
3935
+ * @param {*} [options] Override http request option.
3936
+ * @throws {RequiredError}
3937
+ */
3938
+ listDomains(options) {
3939
+ return localVarFp.listDomains(options).then((request) => request(axios, basePath));
3940
+ },
3941
+ };
3942
+ };
3943
+ /**
3944
+ * WebsiteApi - object-oriented interface
3945
+ * @export
3946
+ * @class WebsiteApi
3947
+ * @extends {BaseAPI}
3948
+ */
3949
+ export class WebsiteApi extends BaseAPI {
3950
+ /**
3951
+ * Create a new website domain
3952
+ * @summary Create a website domain
3953
+ * @param {WebsiteApiCreateDomainRequest} requestParameters Request parameters.
3954
+ * @param {*} [options] Override http request option.
3955
+ * @throws {RequiredError}
3956
+ * @memberof WebsiteApi
3957
+ */
3958
+ createDomain(requestParameters = {}, options) {
3959
+ return WebsiteApiFp(this.configuration).createDomain(requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
3960
+ }
3961
+ /**
3962
+ * Delete an existing website domain
3963
+ * @summary Delete a website domain
3964
+ * @param {WebsiteApiDeleteDomainRequest} requestParameters Request parameters.
3965
+ * @param {*} [options] Override http request option.
3966
+ * @throws {RequiredError}
3967
+ * @memberof WebsiteApi
3968
+ */
3969
+ deleteDomain(requestParameters, options) {
3970
+ return WebsiteApiFp(this.configuration).deleteDomain(requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
3971
+ }
3972
+ /**
3973
+ * List the domains attached to a website
3974
+ * @summary List website domains
3975
+ * @param {*} [options] Override http request option.
3976
+ * @throws {RequiredError}
3977
+ * @memberof WebsiteApi
3978
+ */
3979
+ listDomains(options) {
3980
+ return WebsiteApiFp(this.configuration).listDomains(options).then((request) => request(this.axios, this.basePath));
3981
+ }
3982
+ }
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.23.0
5
+ * The version of the OpenAPI document: 0.25.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.23.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).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.23.0
5
+ * The version of the OpenAPI document: 0.25.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.23.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).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.23.0
5
+ * The version of the OpenAPI document: 0.25.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.23.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).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.23.0
5
+ * The version of the OpenAPI document: 0.25.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.23.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).