@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/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.24.0
5
+ * The version of the OpenAPI document: 0.25.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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
@@ -4943,7 +5006,7 @@ export declare const PaymentApiFp: (configuration?: Configuration) => {
4943
5006
  * @param {*} [options] Override http request option.
4944
5007
  * @throws {RequiredError}
4945
5008
  */
4946
- 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>>;
4947
5010
  /**
4948
5011
  * Deauthorize a Stripe payment account
4949
5012
  * @summary Deauthorize Stripe
@@ -4973,7 +5036,7 @@ export declare const PaymentApiFactory: (configuration?: Configuration, basePath
4973
5036
  * @param {*} [options] Override http request option.
4974
5037
  * @throws {RequiredError}
4975
5038
  */
4976
- authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthorizeStripe200Response>;
5039
+ authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject1>;
4977
5040
  /**
4978
5041
  * Deauthorize a Stripe payment account
4979
5042
  * @summary Deauthorize Stripe
@@ -5045,7 +5108,7 @@ export declare class PaymentApi extends BaseAPI {
5045
5108
  * @throws {RequiredError}
5046
5109
  * @memberof PaymentApi
5047
5110
  */
5048
- authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthorizeStripe200Response, any>>;
5111
+ authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineObject1, any>>;
5049
5112
  /**
5050
5113
  * Deauthorize a Stripe payment account
5051
5114
  * @summary Deauthorize Stripe
@@ -5803,3 +5866,183 @@ export declare class SearchApi extends BaseAPI {
5803
5866
  */
5804
5867
  updateSearchRedirect(requestParameters: SearchApiUpdateSearchRedirectRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SearchRedirect, any>>;
5805
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 {string} project What project it is
5878
+ * @param {CreateDomainRequest} [createDomainRequest]
5879
+ * @param {*} [options] Override http request option.
5880
+ * @throws {RequiredError}
5881
+ */
5882
+ createDomain: (project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5883
+ /**
5884
+ * Delete an existing website domain
5885
+ * @summary Delete a website domain
5886
+ * @param {string} project What project it is
5887
+ * @param {string} domain The domain identifier
5888
+ * @param {*} [options] Override http request option.
5889
+ * @throws {RequiredError}
5890
+ */
5891
+ deleteDomain: (project: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5892
+ /**
5893
+ * List the domains attached to a website
5894
+ * @summary List website domains
5895
+ * @param {string} project What project it is
5896
+ * @param {*} [options] Override http request option.
5897
+ * @throws {RequiredError}
5898
+ */
5899
+ listDomains: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5900
+ };
5901
+ /**
5902
+ * WebsiteApi - functional programming interface
5903
+ * @export
5904
+ */
5905
+ export declare const WebsiteApiFp: (configuration?: Configuration) => {
5906
+ /**
5907
+ * Create a new website domain
5908
+ * @summary Create a website domain
5909
+ * @param {string} project What project it is
5910
+ * @param {CreateDomainRequest} [createDomainRequest]
5911
+ * @param {*} [options] Override http request option.
5912
+ * @throws {RequiredError}
5913
+ */
5914
+ createDomain(project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Domain>>;
5915
+ /**
5916
+ * Delete an existing website domain
5917
+ * @summary Delete a website domain
5918
+ * @param {string} project What project it is
5919
+ * @param {string} domain The domain identifier
5920
+ * @param {*} [options] Override http request option.
5921
+ * @throws {RequiredError}
5922
+ */
5923
+ deleteDomain(project: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5924
+ /**
5925
+ * List the domains attached to a website
5926
+ * @summary List website domains
5927
+ * @param {string} project What project it is
5928
+ * @param {*} [options] Override http request option.
5929
+ * @throws {RequiredError}
5930
+ */
5931
+ listDomains(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>>;
5932
+ };
5933
+ /**
5934
+ * WebsiteApi - factory interface
5935
+ * @export
5936
+ */
5937
+ export declare const WebsiteApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5938
+ /**
5939
+ * Create a new website domain
5940
+ * @summary Create a website domain
5941
+ * @param {WebsiteApiCreateDomainRequest} requestParameters Request parameters.
5942
+ * @param {*} [options] Override http request option.
5943
+ * @throws {RequiredError}
5944
+ */
5945
+ createDomain(requestParameters: WebsiteApiCreateDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<Domain>;
5946
+ /**
5947
+ * Delete an existing website domain
5948
+ * @summary Delete a website domain
5949
+ * @param {WebsiteApiDeleteDomainRequest} requestParameters Request parameters.
5950
+ * @param {*} [options] Override http request option.
5951
+ * @throws {RequiredError}
5952
+ */
5953
+ deleteDomain(requestParameters: WebsiteApiDeleteDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
5954
+ /**
5955
+ * List the domains attached to a website
5956
+ * @summary List website domains
5957
+ * @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
5958
+ * @param {*} [options] Override http request option.
5959
+ * @throws {RequiredError}
5960
+ */
5961
+ listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject>;
5962
+ };
5963
+ /**
5964
+ * Request parameters for createDomain operation in WebsiteApi.
5965
+ * @export
5966
+ * @interface WebsiteApiCreateDomainRequest
5967
+ */
5968
+ export interface WebsiteApiCreateDomainRequest {
5969
+ /**
5970
+ * What project it is
5971
+ * @type {string}
5972
+ * @memberof WebsiteApiCreateDomain
5973
+ */
5974
+ readonly project: string;
5975
+ /**
5976
+ *
5977
+ * @type {CreateDomainRequest}
5978
+ * @memberof WebsiteApiCreateDomain
5979
+ */
5980
+ readonly createDomainRequest?: CreateDomainRequest;
5981
+ }
5982
+ /**
5983
+ * Request parameters for deleteDomain operation in WebsiteApi.
5984
+ * @export
5985
+ * @interface WebsiteApiDeleteDomainRequest
5986
+ */
5987
+ export interface WebsiteApiDeleteDomainRequest {
5988
+ /**
5989
+ * What project it is
5990
+ * @type {string}
5991
+ * @memberof WebsiteApiDeleteDomain
5992
+ */
5993
+ readonly project: string;
5994
+ /**
5995
+ * The domain identifier
5996
+ * @type {string}
5997
+ * @memberof WebsiteApiDeleteDomain
5998
+ */
5999
+ readonly domain: string;
6000
+ }
6001
+ /**
6002
+ * Request parameters for listDomains operation in WebsiteApi.
6003
+ * @export
6004
+ * @interface WebsiteApiListDomainsRequest
6005
+ */
6006
+ export interface WebsiteApiListDomainsRequest {
6007
+ /**
6008
+ * What project it is
6009
+ * @type {string}
6010
+ * @memberof WebsiteApiListDomains
6011
+ */
6012
+ readonly project: string;
6013
+ }
6014
+ /**
6015
+ * WebsiteApi - object-oriented interface
6016
+ * @export
6017
+ * @class WebsiteApi
6018
+ * @extends {BaseAPI}
6019
+ */
6020
+ export declare class WebsiteApi extends BaseAPI {
6021
+ /**
6022
+ * Create a new website domain
6023
+ * @summary Create a website domain
6024
+ * @param {WebsiteApiCreateDomainRequest} requestParameters Request parameters.
6025
+ * @param {*} [options] Override http request option.
6026
+ * @throws {RequiredError}
6027
+ * @memberof WebsiteApi
6028
+ */
6029
+ createDomain(requestParameters: WebsiteApiCreateDomainRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Domain, any>>;
6030
+ /**
6031
+ * Delete an existing website domain
6032
+ * @summary Delete a website domain
6033
+ * @param {WebsiteApiDeleteDomainRequest} requestParameters Request parameters.
6034
+ * @param {*} [options] Override http request option.
6035
+ * @throws {RequiredError}
6036
+ * @memberof WebsiteApi
6037
+ */
6038
+ deleteDomain(requestParameters: WebsiteApiDeleteDomainRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
6039
+ /**
6040
+ * List the domains attached to a website
6041
+ * @summary List website domains
6042
+ * @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
6043
+ * @param {*} [options] Override http request option.
6044
+ * @throws {RequiredError}
6045
+ * @memberof WebsiteApi
6046
+ */
6047
+ listDomains(requestParameters: WebsiteApiListDomainsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineObject, any>>;
6048
+ }
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.24.0
8
+ * The version of the OpenAPI document: 0.25.1
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,7 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
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.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RoutesApi = exports.RoutesApiFactory = exports.RoutesApiFp = exports.RoutesApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = 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
@@ -3789,3 +3789,269 @@ class SearchApi extends base_1.BaseAPI {
3789
3789
  }
3790
3790
  }
3791
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 {string} project What project it is
3802
+ * @param {CreateDomainRequest} [createDomainRequest]
3803
+ * @param {*} [options] Override http request option.
3804
+ * @throws {RequiredError}
3805
+ */
3806
+ createDomain: (project_1, createDomainRequest_1, ...args_1) => __awaiter(this, [project_1, createDomainRequest_1, ...args_1], void 0, function* (project, createDomainRequest, options = {}) {
3807
+ // verify required parameter 'project' is not null or undefined
3808
+ (0, common_1.assertParamExists)('createDomain', 'project', project);
3809
+ const localVarPath = `/v1/website/domains`;
3810
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3811
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3812
+ let baseOptions;
3813
+ if (configuration) {
3814
+ baseOptions = configuration.baseOptions;
3815
+ }
3816
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3817
+ const localVarHeaderParameter = {};
3818
+ const localVarQueryParameter = {};
3819
+ // authentication session-oauth required
3820
+ // oauth required
3821
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
3822
+ // authentication api-key required
3823
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
3824
+ if (project !== undefined) {
3825
+ localVarQueryParameter['project'] = project;
3826
+ }
3827
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3828
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3829
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3830
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3831
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDomainRequest, localVarRequestOptions, configuration);
3832
+ return {
3833
+ url: (0, common_1.toPathString)(localVarUrlObj),
3834
+ options: localVarRequestOptions,
3835
+ };
3836
+ }),
3837
+ /**
3838
+ * Delete an existing website domain
3839
+ * @summary Delete a website domain
3840
+ * @param {string} project What project it is
3841
+ * @param {string} domain The domain identifier
3842
+ * @param {*} [options] Override http request option.
3843
+ * @throws {RequiredError}
3844
+ */
3845
+ deleteDomain: (project_1, domain_1, ...args_1) => __awaiter(this, [project_1, domain_1, ...args_1], void 0, function* (project, domain, options = {}) {
3846
+ // verify required parameter 'project' is not null or undefined
3847
+ (0, common_1.assertParamExists)('deleteDomain', 'project', project);
3848
+ // verify required parameter 'domain' is not null or undefined
3849
+ (0, common_1.assertParamExists)('deleteDomain', 'domain', domain);
3850
+ const localVarPath = `/v1/website/domains/{domain}`
3851
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
3852
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3853
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3854
+ let baseOptions;
3855
+ if (configuration) {
3856
+ baseOptions = configuration.baseOptions;
3857
+ }
3858
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3859
+ const localVarHeaderParameter = {};
3860
+ const localVarQueryParameter = {};
3861
+ // authentication session-oauth required
3862
+ // oauth required
3863
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
3864
+ // authentication api-key required
3865
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
3866
+ if (project !== undefined) {
3867
+ localVarQueryParameter['project'] = project;
3868
+ }
3869
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3870
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3871
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3872
+ return {
3873
+ url: (0, common_1.toPathString)(localVarUrlObj),
3874
+ options: localVarRequestOptions,
3875
+ };
3876
+ }),
3877
+ /**
3878
+ * List the domains attached to a website
3879
+ * @summary List website domains
3880
+ * @param {string} project What project it is
3881
+ * @param {*} [options] Override http request option.
3882
+ * @throws {RequiredError}
3883
+ */
3884
+ listDomains: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
3885
+ // verify required parameter 'project' is not null or undefined
3886
+ (0, common_1.assertParamExists)('listDomains', 'project', project);
3887
+ const localVarPath = `/v1/website/domains`;
3888
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3889
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3890
+ let baseOptions;
3891
+ if (configuration) {
3892
+ baseOptions = configuration.baseOptions;
3893
+ }
3894
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3895
+ const localVarHeaderParameter = {};
3896
+ const localVarQueryParameter = {};
3897
+ // authentication session-oauth required
3898
+ // oauth required
3899
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
3900
+ // authentication api-key required
3901
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
3902
+ if (project !== undefined) {
3903
+ localVarQueryParameter['project'] = project;
3904
+ }
3905
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3906
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3907
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3908
+ return {
3909
+ url: (0, common_1.toPathString)(localVarUrlObj),
3910
+ options: localVarRequestOptions,
3911
+ };
3912
+ }),
3913
+ };
3914
+ };
3915
+ exports.WebsiteApiAxiosParamCreator = WebsiteApiAxiosParamCreator;
3916
+ /**
3917
+ * WebsiteApi - functional programming interface
3918
+ * @export
3919
+ */
3920
+ const WebsiteApiFp = function (configuration) {
3921
+ const localVarAxiosParamCreator = (0, exports.WebsiteApiAxiosParamCreator)(configuration);
3922
+ return {
3923
+ /**
3924
+ * Create a new website domain
3925
+ * @summary Create a website domain
3926
+ * @param {string} project What project it is
3927
+ * @param {CreateDomainRequest} [createDomainRequest]
3928
+ * @param {*} [options] Override http request option.
3929
+ * @throws {RequiredError}
3930
+ */
3931
+ createDomain(project, createDomainRequest, options) {
3932
+ return __awaiter(this, void 0, void 0, function* () {
3933
+ var _a, _b, _c;
3934
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createDomain(project, createDomainRequest, options);
3935
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3936
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebsiteApi.createDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3937
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3938
+ });
3939
+ },
3940
+ /**
3941
+ * Delete an existing website domain
3942
+ * @summary Delete a website domain
3943
+ * @param {string} project What project it is
3944
+ * @param {string} domain The domain identifier
3945
+ * @param {*} [options] Override http request option.
3946
+ * @throws {RequiredError}
3947
+ */
3948
+ deleteDomain(project, domain, options) {
3949
+ return __awaiter(this, void 0, void 0, function* () {
3950
+ var _a, _b, _c;
3951
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDomain(project, domain, options);
3952
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3953
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebsiteApi.deleteDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3954
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3955
+ });
3956
+ },
3957
+ /**
3958
+ * List the domains attached to a website
3959
+ * @summary List website domains
3960
+ * @param {string} project What project it is
3961
+ * @param {*} [options] Override http request option.
3962
+ * @throws {RequiredError}
3963
+ */
3964
+ listDomains(project, options) {
3965
+ return __awaiter(this, void 0, void 0, function* () {
3966
+ var _a, _b, _c;
3967
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listDomains(project, options);
3968
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3969
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebsiteApi.listDomains']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3970
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3971
+ });
3972
+ },
3973
+ };
3974
+ };
3975
+ exports.WebsiteApiFp = WebsiteApiFp;
3976
+ /**
3977
+ * WebsiteApi - factory interface
3978
+ * @export
3979
+ */
3980
+ const WebsiteApiFactory = function (configuration, basePath, axios) {
3981
+ const localVarFp = (0, exports.WebsiteApiFp)(configuration);
3982
+ return {
3983
+ /**
3984
+ * Create a new website domain
3985
+ * @summary Create a website domain
3986
+ * @param {WebsiteApiCreateDomainRequest} requestParameters Request parameters.
3987
+ * @param {*} [options] Override http request option.
3988
+ * @throws {RequiredError}
3989
+ */
3990
+ createDomain(requestParameters, options) {
3991
+ return localVarFp.createDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
3992
+ },
3993
+ /**
3994
+ * Delete an existing website domain
3995
+ * @summary Delete a website domain
3996
+ * @param {WebsiteApiDeleteDomainRequest} requestParameters Request parameters.
3997
+ * @param {*} [options] Override http request option.
3998
+ * @throws {RequiredError}
3999
+ */
4000
+ deleteDomain(requestParameters, options) {
4001
+ return localVarFp.deleteDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(axios, basePath));
4002
+ },
4003
+ /**
4004
+ * List the domains attached to a website
4005
+ * @summary List website domains
4006
+ * @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
4007
+ * @param {*} [options] Override http request option.
4008
+ * @throws {RequiredError}
4009
+ */
4010
+ listDomains(requestParameters, options) {
4011
+ return localVarFp.listDomains(requestParameters.project, options).then((request) => request(axios, basePath));
4012
+ },
4013
+ };
4014
+ };
4015
+ exports.WebsiteApiFactory = WebsiteApiFactory;
4016
+ /**
4017
+ * WebsiteApi - object-oriented interface
4018
+ * @export
4019
+ * @class WebsiteApi
4020
+ * @extends {BaseAPI}
4021
+ */
4022
+ class WebsiteApi extends base_1.BaseAPI {
4023
+ /**
4024
+ * Create a new website domain
4025
+ * @summary Create a website domain
4026
+ * @param {WebsiteApiCreateDomainRequest} requestParameters Request parameters.
4027
+ * @param {*} [options] Override http request option.
4028
+ * @throws {RequiredError}
4029
+ * @memberof WebsiteApi
4030
+ */
4031
+ createDomain(requestParameters, options) {
4032
+ return (0, exports.WebsiteApiFp)(this.configuration).createDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
4033
+ }
4034
+ /**
4035
+ * Delete an existing website domain
4036
+ * @summary Delete a website domain
4037
+ * @param {WebsiteApiDeleteDomainRequest} requestParameters Request parameters.
4038
+ * @param {*} [options] Override http request option.
4039
+ * @throws {RequiredError}
4040
+ * @memberof WebsiteApi
4041
+ */
4042
+ deleteDomain(requestParameters, options) {
4043
+ return (0, exports.WebsiteApiFp)(this.configuration).deleteDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
4044
+ }
4045
+ /**
4046
+ * List the domains attached to a website
4047
+ * @summary List website domains
4048
+ * @param {WebsiteApiListDomainsRequest} requestParameters Request parameters.
4049
+ * @param {*} [options] Override http request option.
4050
+ * @throws {RequiredError}
4051
+ * @memberof WebsiteApi
4052
+ */
4053
+ listDomains(requestParameters, options) {
4054
+ return (0, exports.WebsiteApiFp)(this.configuration).listDomains(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
4055
+ }
4056
+ }
4057
+ exports.WebsiteApi = WebsiteApi;
package/dist/base.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.24.0
5
+ * The version of the OpenAPI document: 0.25.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.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.24.0
8
+ * The version of the OpenAPI document: 0.25.1
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.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.24.0
5
+ * The version of the OpenAPI document: 0.25.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.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.24.0
8
+ * The version of the OpenAPI document: 0.25.1
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.24.0
5
+ * The version of the OpenAPI document: 0.25.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.24.0
8
+ * The version of the OpenAPI document: 0.25.1
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).