@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/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.
|
|
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 {
|
|
3078
|
+
* @type {SalePrice}
|
|
2993
3079
|
* @memberof Variant
|
|
2994
3080
|
*/
|
|
2995
|
-
'salePrice'?:
|
|
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<
|
|
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<
|
|
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<
|
|
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/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.
|
|
8
|
+
* The version of the OpenAPI document: 0.25.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RoutesApi = exports.RoutesApiFactory = exports.RoutesApiFp = exports.RoutesApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = void 0;
|
|
25
|
+
exports.ReviewsApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.PagesApi = exports.PagesApiFactory = exports.PagesApiFp = exports.PagesApiAxiosParamCreator = exports.MenuApi = exports.MenuApiFactory = exports.MenuApiFp = exports.MenuApiAxiosParamCreator = exports.FooterApi = exports.FooterApiFactory = exports.FooterApiFp = exports.FooterApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CrossSellApi = exports.CrossSellApiFactory = exports.CrossSellApiFp = exports.CrossSellApiAxiosParamCreator = exports.CollectionsApi = exports.CollectionsApiFactory = exports.CollectionsApiFp = exports.CollectionsApiAxiosParamCreator = exports.BlogsApi = exports.BlogsApiFactory = exports.BlogsApiFp = exports.BlogsApiAxiosParamCreator = exports.UpdateMenuRequestItemSubmenuInnerImageTextShadowEnum = exports.UpdateMenuRequestItemSubmenuInnerImageTextAlignmentEnum = exports.UpdateMenuRequestItemSubmenuInnerImageButtonWidthEnum = exports.UpdateMenuRequestItemSubmenuInnerImageButtonBorderRadiusEnum = exports.UpdateMenuRequestItemSubmenuInnerModeEnum = exports.SubmenuInnerImageTextShadowEnum = exports.SubmenuInnerImageTextAlignmentEnum = exports.SubmenuInnerImageButtonWidthEnum = exports.SubmenuInnerImageButtonBorderRadiusEnum = exports.SubmenuInnerImageBorderRadiusEnum = exports.SubmenuInnerModeEnum = exports.SalePriceCurrencyCodeEnum = exports.PriceCurrencyCodeEnum = exports.PaymentAccountMethodEnum = exports.AttributeThumbnailTypeEnum = exports.ApplicationPlacementEnum = exports.ApplicationTechnologyEnum = void 0;
|
|
26
|
+
exports.WebsiteApi = exports.WebsiteApiFactory = exports.WebsiteApiFp = exports.WebsiteApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RoutesApi = exports.RoutesApiFactory = exports.RoutesApiFp = exports.RoutesApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = void 0;
|
|
27
27
|
const axios_1 = require("axios");
|
|
28
28
|
// Some imports not used depending on template conditions
|
|
29
29
|
// @ts-ignore
|
|
@@ -60,6 +60,9 @@ exports.PaymentAccountMethodEnum = {
|
|
|
60
60
|
exports.PriceCurrencyCodeEnum = {
|
|
61
61
|
Gbp: 'GBP'
|
|
62
62
|
};
|
|
63
|
+
exports.SalePriceCurrencyCodeEnum = {
|
|
64
|
+
Gbp: 'GBP'
|
|
65
|
+
};
|
|
63
66
|
exports.SubmenuInnerModeEnum = {
|
|
64
67
|
Image: 'image',
|
|
65
68
|
List: 'list'
|
|
@@ -3786,3 +3789,246 @@ class SearchApi extends base_1.BaseAPI {
|
|
|
3786
3789
|
}
|
|
3787
3790
|
}
|
|
3788
3791
|
exports.SearchApi = SearchApi;
|
|
3792
|
+
/**
|
|
3793
|
+
* WebsiteApi - axios parameter creator
|
|
3794
|
+
* @export
|
|
3795
|
+
*/
|
|
3796
|
+
const WebsiteApiAxiosParamCreator = function (configuration) {
|
|
3797
|
+
return {
|
|
3798
|
+
/**
|
|
3799
|
+
* Create a new website domain
|
|
3800
|
+
* @summary Create a website domain
|
|
3801
|
+
* @param {CreateDomainRequest} [createDomainRequest]
|
|
3802
|
+
* @param {*} [options] Override http request option.
|
|
3803
|
+
* @throws {RequiredError}
|
|
3804
|
+
*/
|
|
3805
|
+
createDomain: (createDomainRequest_1, ...args_1) => __awaiter(this, [createDomainRequest_1, ...args_1], void 0, function* (createDomainRequest, options = {}) {
|
|
3806
|
+
const localVarPath = `/v1/website/domains`;
|
|
3807
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3808
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3809
|
+
let baseOptions;
|
|
3810
|
+
if (configuration) {
|
|
3811
|
+
baseOptions = configuration.baseOptions;
|
|
3812
|
+
}
|
|
3813
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3814
|
+
const localVarHeaderParameter = {};
|
|
3815
|
+
const localVarQueryParameter = {};
|
|
3816
|
+
// authentication session-oauth required
|
|
3817
|
+
// oauth required
|
|
3818
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
3819
|
+
// authentication api-key required
|
|
3820
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
3821
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3822
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3823
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3824
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3825
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDomainRequest, localVarRequestOptions, configuration);
|
|
3826
|
+
return {
|
|
3827
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3828
|
+
options: localVarRequestOptions,
|
|
3829
|
+
};
|
|
3830
|
+
}),
|
|
3831
|
+
/**
|
|
3832
|
+
* Delete an existing website domain
|
|
3833
|
+
* @summary Delete a website domain
|
|
3834
|
+
* @param {string} domain The domain identifier
|
|
3835
|
+
* @param {*} [options] Override http request option.
|
|
3836
|
+
* @throws {RequiredError}
|
|
3837
|
+
*/
|
|
3838
|
+
deleteDomain: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
3839
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3840
|
+
(0, common_1.assertParamExists)('deleteDomain', 'domain', domain);
|
|
3841
|
+
const localVarPath = `/v1/website/domains/{domain}`
|
|
3842
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
3843
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3844
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3845
|
+
let baseOptions;
|
|
3846
|
+
if (configuration) {
|
|
3847
|
+
baseOptions = configuration.baseOptions;
|
|
3848
|
+
}
|
|
3849
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3850
|
+
const localVarHeaderParameter = {};
|
|
3851
|
+
const localVarQueryParameter = {};
|
|
3852
|
+
// authentication session-oauth required
|
|
3853
|
+
// oauth required
|
|
3854
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
3855
|
+
// authentication api-key required
|
|
3856
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
3857
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3858
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3859
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3860
|
+
return {
|
|
3861
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3862
|
+
options: localVarRequestOptions,
|
|
3863
|
+
};
|
|
3864
|
+
}),
|
|
3865
|
+
/**
|
|
3866
|
+
* List the domains attached to a website
|
|
3867
|
+
* @summary List website domains
|
|
3868
|
+
* @param {*} [options] Override http request option.
|
|
3869
|
+
* @throws {RequiredError}
|
|
3870
|
+
*/
|
|
3871
|
+
listDomains: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3872
|
+
const localVarPath = `/v1/website/domains`;
|
|
3873
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3874
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3875
|
+
let baseOptions;
|
|
3876
|
+
if (configuration) {
|
|
3877
|
+
baseOptions = configuration.baseOptions;
|
|
3878
|
+
}
|
|
3879
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3880
|
+
const localVarHeaderParameter = {};
|
|
3881
|
+
const localVarQueryParameter = {};
|
|
3882
|
+
// authentication session-oauth required
|
|
3883
|
+
// oauth required
|
|
3884
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
3885
|
+
// authentication api-key required
|
|
3886
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
3887
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3888
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3889
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3890
|
+
return {
|
|
3891
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3892
|
+
options: localVarRequestOptions,
|
|
3893
|
+
};
|
|
3894
|
+
}),
|
|
3895
|
+
};
|
|
3896
|
+
};
|
|
3897
|
+
exports.WebsiteApiAxiosParamCreator = WebsiteApiAxiosParamCreator;
|
|
3898
|
+
/**
|
|
3899
|
+
* WebsiteApi - functional programming interface
|
|
3900
|
+
* @export
|
|
3901
|
+
*/
|
|
3902
|
+
const WebsiteApiFp = function (configuration) {
|
|
3903
|
+
const localVarAxiosParamCreator = (0, exports.WebsiteApiAxiosParamCreator)(configuration);
|
|
3904
|
+
return {
|
|
3905
|
+
/**
|
|
3906
|
+
* Create a new website domain
|
|
3907
|
+
* @summary Create a website domain
|
|
3908
|
+
* @param {CreateDomainRequest} [createDomainRequest]
|
|
3909
|
+
* @param {*} [options] Override http request option.
|
|
3910
|
+
* @throws {RequiredError}
|
|
3911
|
+
*/
|
|
3912
|
+
createDomain(createDomainRequest, options) {
|
|
3913
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3914
|
+
var _a, _b, _c;
|
|
3915
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createDomain(createDomainRequest, options);
|
|
3916
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3917
|
+
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
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3919
|
+
});
|
|
3920
|
+
},
|
|
3921
|
+
/**
|
|
3922
|
+
* Delete an existing website domain
|
|
3923
|
+
* @summary Delete a website domain
|
|
3924
|
+
* @param {string} domain The domain identifier
|
|
3925
|
+
* @param {*} [options] Override http request option.
|
|
3926
|
+
* @throws {RequiredError}
|
|
3927
|
+
*/
|
|
3928
|
+
deleteDomain(domain, options) {
|
|
3929
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3930
|
+
var _a, _b, _c;
|
|
3931
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDomain(domain, options);
|
|
3932
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3933
|
+
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
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3935
|
+
});
|
|
3936
|
+
},
|
|
3937
|
+
/**
|
|
3938
|
+
* List the domains attached to a website
|
|
3939
|
+
* @summary List website domains
|
|
3940
|
+
* @param {*} [options] Override http request option.
|
|
3941
|
+
* @throws {RequiredError}
|
|
3942
|
+
*/
|
|
3943
|
+
listDomains(options) {
|
|
3944
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3945
|
+
var _a, _b, _c;
|
|
3946
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listDomains(options);
|
|
3947
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3948
|
+
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
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3950
|
+
});
|
|
3951
|
+
},
|
|
3952
|
+
};
|
|
3953
|
+
};
|
|
3954
|
+
exports.WebsiteApiFp = WebsiteApiFp;
|
|
3955
|
+
/**
|
|
3956
|
+
* WebsiteApi - factory interface
|
|
3957
|
+
* @export
|
|
3958
|
+
*/
|
|
3959
|
+
const WebsiteApiFactory = function (configuration, basePath, axios) {
|
|
3960
|
+
const localVarFp = (0, exports.WebsiteApiFp)(configuration);
|
|
3961
|
+
return {
|
|
3962
|
+
/**
|
|
3963
|
+
* Create a new website domain
|
|
3964
|
+
* @summary Create a website domain
|
|
3965
|
+
* @param {WebsiteApiCreateDomainRequest} requestParameters Request parameters.
|
|
3966
|
+
* @param {*} [options] Override http request option.
|
|
3967
|
+
* @throws {RequiredError}
|
|
3968
|
+
*/
|
|
3969
|
+
createDomain(requestParameters = {}, options) {
|
|
3970
|
+
return localVarFp.createDomain(requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
|
|
3971
|
+
},
|
|
3972
|
+
/**
|
|
3973
|
+
* Delete an existing website domain
|
|
3974
|
+
* @summary Delete a website domain
|
|
3975
|
+
* @param {WebsiteApiDeleteDomainRequest} requestParameters Request parameters.
|
|
3976
|
+
* @param {*} [options] Override http request option.
|
|
3977
|
+
* @throws {RequiredError}
|
|
3978
|
+
*/
|
|
3979
|
+
deleteDomain(requestParameters, options) {
|
|
3980
|
+
return localVarFp.deleteDomain(requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
3981
|
+
},
|
|
3982
|
+
/**
|
|
3983
|
+
* List the domains attached to a website
|
|
3984
|
+
* @summary List website domains
|
|
3985
|
+
* @param {*} [options] Override http request option.
|
|
3986
|
+
* @throws {RequiredError}
|
|
3987
|
+
*/
|
|
3988
|
+
listDomains(options) {
|
|
3989
|
+
return localVarFp.listDomains(options).then((request) => request(axios, basePath));
|
|
3990
|
+
},
|
|
3991
|
+
};
|
|
3992
|
+
};
|
|
3993
|
+
exports.WebsiteApiFactory = WebsiteApiFactory;
|
|
3994
|
+
/**
|
|
3995
|
+
* WebsiteApi - object-oriented interface
|
|
3996
|
+
* @export
|
|
3997
|
+
* @class WebsiteApi
|
|
3998
|
+
* @extends {BaseAPI}
|
|
3999
|
+
*/
|
|
4000
|
+
class WebsiteApi extends base_1.BaseAPI {
|
|
4001
|
+
/**
|
|
4002
|
+
* Create a new website domain
|
|
4003
|
+
* @summary Create a website domain
|
|
4004
|
+
* @param {WebsiteApiCreateDomainRequest} requestParameters Request parameters.
|
|
4005
|
+
* @param {*} [options] Override http request option.
|
|
4006
|
+
* @throws {RequiredError}
|
|
4007
|
+
* @memberof WebsiteApi
|
|
4008
|
+
*/
|
|
4009
|
+
createDomain(requestParameters = {}, options) {
|
|
4010
|
+
return (0, exports.WebsiteApiFp)(this.configuration).createDomain(requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4011
|
+
}
|
|
4012
|
+
/**
|
|
4013
|
+
* Delete an existing website domain
|
|
4014
|
+
* @summary Delete a website domain
|
|
4015
|
+
* @param {WebsiteApiDeleteDomainRequest} requestParameters Request parameters.
|
|
4016
|
+
* @param {*} [options] Override http request option.
|
|
4017
|
+
* @throws {RequiredError}
|
|
4018
|
+
* @memberof WebsiteApi
|
|
4019
|
+
*/
|
|
4020
|
+
deleteDomain(requestParameters, options) {
|
|
4021
|
+
return (0, exports.WebsiteApiFp)(this.configuration).deleteDomain(requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
4022
|
+
}
|
|
4023
|
+
/**
|
|
4024
|
+
* List the domains attached to a website
|
|
4025
|
+
* @summary List website domains
|
|
4026
|
+
* @param {*} [options] Override http request option.
|
|
4027
|
+
* @throws {RequiredError}
|
|
4028
|
+
* @memberof WebsiteApi
|
|
4029
|
+
*/
|
|
4030
|
+
listDomains(options) {
|
|
4031
|
+
return (0, exports.WebsiteApiFp)(this.configuration).listDomains(options).then((request) => request(this.axios, this.basePath));
|
|
4032
|
+
}
|
|
4033
|
+
}
|
|
4034
|
+
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