hostinger-api-sdk 0.0.19 → 0.0.21

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.
Files changed (54) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1464 -145
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +900 -23
  7. package/dist/api.js +956 -130
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +900 -23
  15. package/dist/esm/api.js +926 -117
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/EcommercePaymentsApi.md +66 -0
  27. package/docs/EcommerceProductsApi.md +125 -0
  28. package/docs/EcommerceShippingApi.md +66 -0
  29. package/docs/EcommerceStoresApi.md +54 -0
  30. package/docs/EcommerceV1PaymentEnableManualPaymentRequest.md +20 -0
  31. package/docs/EcommerceV1PaymentManualPaymentResource.md +22 -0
  32. package/docs/EcommerceV1PaymentManualPaymentResourcePaymentMethod.md +26 -0
  33. package/docs/EcommerceV1ProductCreateDigitalProductRequest.md +28 -0
  34. package/docs/EcommerceV1ProductCreatePhysicalProductRequest.md +26 -0
  35. package/docs/EcommerceV1ProductProductCreationResource.md +22 -0
  36. package/docs/EcommerceV1ProductProductCreationResourceProduct.md +30 -0
  37. package/docs/EcommerceV1ShippingSetShippingRequest.md +20 -0
  38. package/docs/EcommerceV1ShippingShippingResource.md +22 -0
  39. package/docs/EcommerceV1ShippingShippingResourceShippingOption.md +24 -0
  40. package/docs/EcommerceV1StoreStoreDeleteResource.md +22 -0
  41. package/docs/HorizonsV1WebsitesCreateWebsiteRequest.md +20 -0
  42. package/docs/HorizonsV1WebsitesCreateWebsiteRequestMessageInner.md +22 -0
  43. package/docs/HorizonsV1WebsitesCreatedWebsiteResource.md +22 -0
  44. package/docs/HorizonsV1WebsitesWebsiteUrlResource.md +20 -0
  45. package/docs/HorizonsWebsitesApi.md +117 -0
  46. package/docs/{ReachListSegmentContactsV1200Response.md → ReachListProfileSegmentContactsV1200Response.md} +3 -3
  47. package/docs/ReachProfilesApi.md +54 -0
  48. package/docs/ReachSegmentsApi.md +65 -2
  49. package/docs/ReachV1ProfilesDomainsDnsRecordStatus.md +24 -0
  50. package/docs/ReachV1ProfilesDomainsDnsRecordStatusActualInner.md +22 -0
  51. package/docs/ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner.md +24 -0
  52. package/docs/ReachV1ProfilesDomainsDnsStatusResource.md +28 -0
  53. package/index.ts +1 -1
  54. package/package.json +1 -1
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 0.18.2
7
+ * API Version: 0.19.3
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -19,10 +19,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
19
19
  });
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.HostingV1WordpressInstallWordpressRequestAutoUpdatesEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = void 0;
23
- exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = void 0;
24
- exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.HostingWordpressApi = exports.HostingWordpressApiFactory = exports.HostingWordpressApiFp = exports.HostingWordpressApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = void 0;
25
- exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = void 0;
22
+ exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.HostingV1WordpressInstallWordpressRequestAutoUpdatesEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = void 0;
23
+ exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = void 0;
24
+ exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.HostingWordpressApi = exports.HostingWordpressApiFactory = exports.HostingWordpressApiFp = exports.HostingWordpressApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = void 0;
25
+ exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = void 0;
26
+ exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = void 0;
26
27
  const axios_1 = require("axios");
27
28
  // Some imports not used depending on template conditions
28
29
  // @ts-ignore
@@ -140,6 +141,10 @@ exports.DomainsV1WHOISStoreRequestEntityTypeEnum = {
140
141
  Individual: 'individual',
141
142
  Organization: 'organization'
142
143
  };
144
+ exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = {
145
+ Physical: 'physical',
146
+ Digital: 'digital'
147
+ };
143
148
  exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = {
144
149
  Builder: 'builder',
145
150
  Horizons: 'horizons',
@@ -151,6 +156,9 @@ exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = {
151
156
  exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = {
152
157
  Custom: 'custom'
153
158
  };
159
+ exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = {
160
+ Text: 'text'
161
+ };
154
162
  exports.HostingV1DomainsParkedDomainResourceTypeEnum = {
155
163
  Domain: 'domain',
156
164
  Ip: 'ip'
@@ -3056,22 +3064,26 @@ class DomainsWHOISApi extends base_1.BaseAPI {
3056
3064
  }
3057
3065
  exports.DomainsWHOISApi = DomainsWHOISApi;
3058
3066
  /**
3059
- * EcommerceStoresApi - axios parameter creator
3067
+ * EcommercePaymentsApi - axios parameter creator
3060
3068
  * @export
3061
3069
  */
3062
- const EcommerceStoresApiAxiosParamCreator = function (configuration) {
3070
+ const EcommercePaymentsApiAxiosParamCreator = function (configuration) {
3063
3071
  return {
3064
3072
  /**
3065
- * Create a new store for your account. A primary sales channel is created alongside the store.
3066
- * @summary Create store
3067
- * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
3073
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
3074
+ * @summary Enable manual payment method
3075
+ * @param {string} storeId The ID of the store to enable manual payment for.
3076
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
3068
3077
  * @param {*} [options] Override http request option.
3069
3078
  * @throws {RequiredError}
3070
3079
  */
3071
- createStoreV1: (ecommerceV1StoreStoreRequest_1, ...args_1) => __awaiter(this, [ecommerceV1StoreStoreRequest_1, ...args_1], void 0, function* (ecommerceV1StoreStoreRequest, options = {}) {
3072
- // verify required parameter 'ecommerceV1StoreStoreRequest' is not null or undefined
3073
- (0, common_1.assertParamExists)('createStoreV1', 'ecommerceV1StoreStoreRequest', ecommerceV1StoreStoreRequest);
3074
- const localVarPath = `/api/ecommerce/v1/stores`;
3080
+ enableManualPaymentMethodV1: (storeId_1, ecommerceV1PaymentEnableManualPaymentRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1PaymentEnableManualPaymentRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1PaymentEnableManualPaymentRequest, options = {}) {
3081
+ // verify required parameter 'storeId' is not null or undefined
3082
+ (0, common_1.assertParamExists)('enableManualPaymentMethodV1', 'storeId', storeId);
3083
+ // verify required parameter 'ecommerceV1PaymentEnableManualPaymentRequest' is not null or undefined
3084
+ (0, common_1.assertParamExists)('enableManualPaymentMethodV1', 'ecommerceV1PaymentEnableManualPaymentRequest', ecommerceV1PaymentEnableManualPaymentRequest);
3085
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/payment-methods/manual`
3086
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3075
3087
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3076
3088
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3077
3089
  let baseOptions;
@@ -3088,39 +3100,158 @@ const EcommerceStoresApiAxiosParamCreator = function (configuration) {
3088
3100
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3089
3101
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3090
3102
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3091
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ecommerceV1StoreStoreRequest, localVarRequestOptions, configuration);
3103
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ecommerceV1PaymentEnableManualPaymentRequest, localVarRequestOptions, configuration);
3092
3104
  return {
3093
3105
  url: (0, common_1.toPathString)(localVarUrlObj),
3094
3106
  options: localVarRequestOptions,
3095
3107
  };
3096
3108
  }),
3109
+ };
3110
+ };
3111
+ exports.EcommercePaymentsApiAxiosParamCreator = EcommercePaymentsApiAxiosParamCreator;
3112
+ /**
3113
+ * EcommercePaymentsApi - functional programming interface
3114
+ * @export
3115
+ */
3116
+ const EcommercePaymentsApiFp = function (configuration) {
3117
+ const localVarAxiosParamCreator = (0, exports.EcommercePaymentsApiAxiosParamCreator)(configuration);
3118
+ return {
3097
3119
  /**
3098
- * Retrieve the stores associated with your account.
3099
- * @summary Get stores
3100
- * @param {number} [page] Page number
3120
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
3121
+ * @summary Enable manual payment method
3122
+ * @param {string} storeId The ID of the store to enable manual payment for.
3123
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
3101
3124
  * @param {*} [options] Override http request option.
3102
3125
  * @throws {RequiredError}
3103
3126
  */
3104
- getStoresV1: (page_1, ...args_1) => __awaiter(this, [page_1, ...args_1], void 0, function* (page, options = {}) {
3105
- const localVarPath = `/api/ecommerce/v1/stores`;
3127
+ enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options) {
3128
+ return __awaiter(this, void 0, void 0, function* () {
3129
+ var _a, _b;
3130
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options);
3131
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommercePaymentsApi.enableManualPaymentMethodV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3132
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3133
+ });
3134
+ },
3135
+ };
3136
+ };
3137
+ exports.EcommercePaymentsApiFp = EcommercePaymentsApiFp;
3138
+ /**
3139
+ * EcommercePaymentsApi - factory interface
3140
+ * @export
3141
+ */
3142
+ const EcommercePaymentsApiFactory = function (configuration, basePath, axios) {
3143
+ const localVarFp = (0, exports.EcommercePaymentsApiFp)(configuration);
3144
+ return {
3145
+ /**
3146
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
3147
+ * @summary Enable manual payment method
3148
+ * @param {string} storeId The ID of the store to enable manual payment for.
3149
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
3150
+ * @param {*} [options] Override http request option.
3151
+ * @throws {RequiredError}
3152
+ */
3153
+ enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options) {
3154
+ return localVarFp.enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options).then((request) => request(axios, basePath));
3155
+ },
3156
+ };
3157
+ };
3158
+ exports.EcommercePaymentsApiFactory = EcommercePaymentsApiFactory;
3159
+ /**
3160
+ * EcommercePaymentsApi - object-oriented interface
3161
+ * @export
3162
+ * @class EcommercePaymentsApi
3163
+ * @extends {BaseAPI}
3164
+ */
3165
+ class EcommercePaymentsApi extends base_1.BaseAPI {
3166
+ /**
3167
+ * Enable a manual payment method so the store can accept orders without an online payment provider.
3168
+ * @summary Enable manual payment method
3169
+ * @param {string} storeId The ID of the store to enable manual payment for.
3170
+ * @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
3171
+ * @param {*} [options] Override http request option.
3172
+ * @throws {RequiredError}
3173
+ * @memberof EcommercePaymentsApi
3174
+ */
3175
+ enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options) {
3176
+ return (0, exports.EcommercePaymentsApiFp)(this.configuration).enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options).then((request) => request(this.axios, this.basePath));
3177
+ }
3178
+ }
3179
+ exports.EcommercePaymentsApi = EcommercePaymentsApi;
3180
+ /**
3181
+ * EcommerceProductsApi - axios parameter creator
3182
+ * @export
3183
+ */
3184
+ const EcommerceProductsApiAxiosParamCreator = function (configuration) {
3185
+ return {
3186
+ /**
3187
+ * Create a published digital product with a single variant and an optional external download link.
3188
+ * @summary Create digital product
3189
+ * @param {string} storeId The ID of the store to create the product in.
3190
+ * @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
3191
+ * @param {*} [options] Override http request option.
3192
+ * @throws {RequiredError}
3193
+ */
3194
+ createDigitalProductV1: (storeId_1, ecommerceV1ProductCreateDigitalProductRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1ProductCreateDigitalProductRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1ProductCreateDigitalProductRequest, options = {}) {
3195
+ // verify required parameter 'storeId' is not null or undefined
3196
+ (0, common_1.assertParamExists)('createDigitalProductV1', 'storeId', storeId);
3197
+ // verify required parameter 'ecommerceV1ProductCreateDigitalProductRequest' is not null or undefined
3198
+ (0, common_1.assertParamExists)('createDigitalProductV1', 'ecommerceV1ProductCreateDigitalProductRequest', ecommerceV1ProductCreateDigitalProductRequest);
3199
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/products/digital`
3200
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3106
3201
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3107
3202
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3108
3203
  let baseOptions;
3109
3204
  if (configuration) {
3110
3205
  baseOptions = configuration.baseOptions;
3111
3206
  }
3112
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3207
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3113
3208
  const localVarHeaderParameter = {};
3114
3209
  const localVarQueryParameter = {};
3115
3210
  // authentication apiToken required
3116
3211
  // http bearer authentication required
3117
3212
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3118
- if (page !== undefined) {
3119
- localVarQueryParameter['page'] = page;
3213
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3214
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3215
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3216
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3217
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ecommerceV1ProductCreateDigitalProductRequest, localVarRequestOptions, configuration);
3218
+ return {
3219
+ url: (0, common_1.toPathString)(localVarUrlObj),
3220
+ options: localVarRequestOptions,
3221
+ };
3222
+ }),
3223
+ /**
3224
+ * Create a published physical product with a single variant priced in the store currency.
3225
+ * @summary Create physical product
3226
+ * @param {string} storeId The ID of the store to create the product in.
3227
+ * @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
3228
+ * @param {*} [options] Override http request option.
3229
+ * @throws {RequiredError}
3230
+ */
3231
+ createPhysicalProductV1: (storeId_1, ecommerceV1ProductCreatePhysicalProductRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1ProductCreatePhysicalProductRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1ProductCreatePhysicalProductRequest, options = {}) {
3232
+ // verify required parameter 'storeId' is not null or undefined
3233
+ (0, common_1.assertParamExists)('createPhysicalProductV1', 'storeId', storeId);
3234
+ // verify required parameter 'ecommerceV1ProductCreatePhysicalProductRequest' is not null or undefined
3235
+ (0, common_1.assertParamExists)('createPhysicalProductV1', 'ecommerceV1ProductCreatePhysicalProductRequest', ecommerceV1ProductCreatePhysicalProductRequest);
3236
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/products/physical`
3237
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3238
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3239
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3240
+ let baseOptions;
3241
+ if (configuration) {
3242
+ baseOptions = configuration.baseOptions;
3120
3243
  }
3244
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3245
+ const localVarHeaderParameter = {};
3246
+ const localVarQueryParameter = {};
3247
+ // authentication apiToken required
3248
+ // http bearer authentication required
3249
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3250
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3121
3251
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3122
3252
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3123
3253
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3254
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ecommerceV1ProductCreatePhysicalProductRequest, localVarRequestOptions, configuration);
3124
3255
  return {
3125
3256
  url: (0, common_1.toPathString)(localVarUrlObj),
3126
3257
  options: localVarRequestOptions,
@@ -3128,140 +3259,142 @@ const EcommerceStoresApiAxiosParamCreator = function (configuration) {
3128
3259
  }),
3129
3260
  };
3130
3261
  };
3131
- exports.EcommerceStoresApiAxiosParamCreator = EcommerceStoresApiAxiosParamCreator;
3262
+ exports.EcommerceProductsApiAxiosParamCreator = EcommerceProductsApiAxiosParamCreator;
3132
3263
  /**
3133
- * EcommerceStoresApi - functional programming interface
3264
+ * EcommerceProductsApi - functional programming interface
3134
3265
  * @export
3135
3266
  */
3136
- const EcommerceStoresApiFp = function (configuration) {
3137
- const localVarAxiosParamCreator = (0, exports.EcommerceStoresApiAxiosParamCreator)(configuration);
3267
+ const EcommerceProductsApiFp = function (configuration) {
3268
+ const localVarAxiosParamCreator = (0, exports.EcommerceProductsApiAxiosParamCreator)(configuration);
3138
3269
  return {
3139
3270
  /**
3140
- * Create a new store for your account. A primary sales channel is created alongside the store.
3141
- * @summary Create store
3142
- * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
3271
+ * Create a published digital product with a single variant and an optional external download link.
3272
+ * @summary Create digital product
3273
+ * @param {string} storeId The ID of the store to create the product in.
3274
+ * @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
3143
3275
  * @param {*} [options] Override http request option.
3144
3276
  * @throws {RequiredError}
3145
3277
  */
3146
- createStoreV1(ecommerceV1StoreStoreRequest, options) {
3278
+ createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options) {
3147
3279
  return __awaiter(this, void 0, void 0, function* () {
3148
3280
  var _a, _b;
3149
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createStoreV1(ecommerceV1StoreStoreRequest, options);
3150
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceStoresApi.createStoreV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3281
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options);
3282
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceProductsApi.createDigitalProductV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3151
3283
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3152
3284
  });
3153
3285
  },
3154
3286
  /**
3155
- * Retrieve the stores associated with your account.
3156
- * @summary Get stores
3157
- * @param {number} [page] Page number
3287
+ * Create a published physical product with a single variant priced in the store currency.
3288
+ * @summary Create physical product
3289
+ * @param {string} storeId The ID of the store to create the product in.
3290
+ * @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
3158
3291
  * @param {*} [options] Override http request option.
3159
3292
  * @throws {RequiredError}
3160
3293
  */
3161
- getStoresV1(page, options) {
3294
+ createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options) {
3162
3295
  return __awaiter(this, void 0, void 0, function* () {
3163
3296
  var _a, _b;
3164
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getStoresV1(page, options);
3165
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceStoresApi.getStoresV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3297
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options);
3298
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceProductsApi.createPhysicalProductV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3166
3299
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3167
3300
  });
3168
3301
  },
3169
3302
  };
3170
3303
  };
3171
- exports.EcommerceStoresApiFp = EcommerceStoresApiFp;
3304
+ exports.EcommerceProductsApiFp = EcommerceProductsApiFp;
3172
3305
  /**
3173
- * EcommerceStoresApi - factory interface
3306
+ * EcommerceProductsApi - factory interface
3174
3307
  * @export
3175
3308
  */
3176
- const EcommerceStoresApiFactory = function (configuration, basePath, axios) {
3177
- const localVarFp = (0, exports.EcommerceStoresApiFp)(configuration);
3309
+ const EcommerceProductsApiFactory = function (configuration, basePath, axios) {
3310
+ const localVarFp = (0, exports.EcommerceProductsApiFp)(configuration);
3178
3311
  return {
3179
3312
  /**
3180
- * Create a new store for your account. A primary sales channel is created alongside the store.
3181
- * @summary Create store
3182
- * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
3313
+ * Create a published digital product with a single variant and an optional external download link.
3314
+ * @summary Create digital product
3315
+ * @param {string} storeId The ID of the store to create the product in.
3316
+ * @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
3183
3317
  * @param {*} [options] Override http request option.
3184
3318
  * @throws {RequiredError}
3185
3319
  */
3186
- createStoreV1(ecommerceV1StoreStoreRequest, options) {
3187
- return localVarFp.createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(axios, basePath));
3320
+ createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options) {
3321
+ return localVarFp.createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options).then((request) => request(axios, basePath));
3188
3322
  },
3189
3323
  /**
3190
- * Retrieve the stores associated with your account.
3191
- * @summary Get stores
3192
- * @param {number} [page] Page number
3324
+ * Create a published physical product with a single variant priced in the store currency.
3325
+ * @summary Create physical product
3326
+ * @param {string} storeId The ID of the store to create the product in.
3327
+ * @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
3193
3328
  * @param {*} [options] Override http request option.
3194
3329
  * @throws {RequiredError}
3195
3330
  */
3196
- getStoresV1(page, options) {
3197
- return localVarFp.getStoresV1(page, options).then((request) => request(axios, basePath));
3331
+ createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options) {
3332
+ return localVarFp.createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(axios, basePath));
3198
3333
  },
3199
3334
  };
3200
3335
  };
3201
- exports.EcommerceStoresApiFactory = EcommerceStoresApiFactory;
3336
+ exports.EcommerceProductsApiFactory = EcommerceProductsApiFactory;
3202
3337
  /**
3203
- * EcommerceStoresApi - object-oriented interface
3338
+ * EcommerceProductsApi - object-oriented interface
3204
3339
  * @export
3205
- * @class EcommerceStoresApi
3340
+ * @class EcommerceProductsApi
3206
3341
  * @extends {BaseAPI}
3207
3342
  */
3208
- class EcommerceStoresApi extends base_1.BaseAPI {
3343
+ class EcommerceProductsApi extends base_1.BaseAPI {
3209
3344
  /**
3210
- * Create a new store for your account. A primary sales channel is created alongside the store.
3211
- * @summary Create store
3212
- * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
3345
+ * Create a published digital product with a single variant and an optional external download link.
3346
+ * @summary Create digital product
3347
+ * @param {string} storeId The ID of the store to create the product in.
3348
+ * @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
3213
3349
  * @param {*} [options] Override http request option.
3214
3350
  * @throws {RequiredError}
3215
- * @memberof EcommerceStoresApi
3351
+ * @memberof EcommerceProductsApi
3216
3352
  */
3217
- createStoreV1(ecommerceV1StoreStoreRequest, options) {
3218
- return (0, exports.EcommerceStoresApiFp)(this.configuration).createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(this.axios, this.basePath));
3353
+ createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options) {
3354
+ return (0, exports.EcommerceProductsApiFp)(this.configuration).createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options).then((request) => request(this.axios, this.basePath));
3219
3355
  }
3220
3356
  /**
3221
- * Retrieve the stores associated with your account.
3222
- * @summary Get stores
3223
- * @param {number} [page] Page number
3357
+ * Create a published physical product with a single variant priced in the store currency.
3358
+ * @summary Create physical product
3359
+ * @param {string} storeId The ID of the store to create the product in.
3360
+ * @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
3224
3361
  * @param {*} [options] Override http request option.
3225
3362
  * @throws {RequiredError}
3226
- * @memberof EcommerceStoresApi
3363
+ * @memberof EcommerceProductsApi
3227
3364
  */
3228
- getStoresV1(page, options) {
3229
- return (0, exports.EcommerceStoresApiFp)(this.configuration).getStoresV1(page, options).then((request) => request(this.axios, this.basePath));
3365
+ createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options) {
3366
+ return (0, exports.EcommerceProductsApiFp)(this.configuration).createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(this.axios, this.basePath));
3230
3367
  }
3231
3368
  }
3232
- exports.EcommerceStoresApi = EcommerceStoresApi;
3369
+ exports.EcommerceProductsApi = EcommerceProductsApi;
3233
3370
  /**
3234
- * HostingDatabasesApi - axios parameter creator
3371
+ * EcommerceShippingApi - axios parameter creator
3235
3372
  * @export
3236
3373
  */
3237
- const HostingDatabasesApiAxiosParamCreator = function (configuration) {
3374
+ const EcommerceShippingApiAxiosParamCreator = function (configuration) {
3238
3375
  return {
3239
3376
  /**
3240
- * Changes the password for the specified database user. The database name must be the full name returned by the list databases endpoint. The password must also be updated in any website configuration that uses this database.
3241
- * @summary Change database password
3242
- * @param {string} username
3243
- * @param {string} name Full database name as returned by the list databases endpoint.
3244
- * @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
3377
+ * Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
3378
+ * @summary Set store shipping
3379
+ * @param {string} storeId The ID of the store to configure shipping for.
3380
+ * @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
3245
3381
  * @param {*} [options] Override http request option.
3246
3382
  * @throws {RequiredError}
3247
3383
  */
3248
- changeDatabasePasswordV1: (username_1, name_1, hostingV1DatabasesChangeDatabasePasswordRequest_1, ...args_1) => __awaiter(this, [username_1, name_1, hostingV1DatabasesChangeDatabasePasswordRequest_1, ...args_1], void 0, function* (username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options = {}) {
3249
- // verify required parameter 'username' is not null or undefined
3250
- (0, common_1.assertParamExists)('changeDatabasePasswordV1', 'username', username);
3251
- // verify required parameter 'name' is not null or undefined
3252
- (0, common_1.assertParamExists)('changeDatabasePasswordV1', 'name', name);
3253
- // verify required parameter 'hostingV1DatabasesChangeDatabasePasswordRequest' is not null or undefined
3254
- (0, common_1.assertParamExists)('changeDatabasePasswordV1', 'hostingV1DatabasesChangeDatabasePasswordRequest', hostingV1DatabasesChangeDatabasePasswordRequest);
3255
- const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/change-password`
3256
- .replace(`{${"username"}}`, encodeURIComponent(String(username)))
3257
- .replace(`{${"name"}}`, encodeURIComponent(String(name)));
3384
+ setStoreShippingV1: (storeId_1, ecommerceV1ShippingSetShippingRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1ShippingSetShippingRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1ShippingSetShippingRequest, options = {}) {
3385
+ // verify required parameter 'storeId' is not null or undefined
3386
+ (0, common_1.assertParamExists)('setStoreShippingV1', 'storeId', storeId);
3387
+ // verify required parameter 'ecommerceV1ShippingSetShippingRequest' is not null or undefined
3388
+ (0, common_1.assertParamExists)('setStoreShippingV1', 'ecommerceV1ShippingSetShippingRequest', ecommerceV1ShippingSetShippingRequest);
3389
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}/shipping`
3390
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3258
3391
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3259
3392
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3260
3393
  let baseOptions;
3261
3394
  if (configuration) {
3262
3395
  baseOptions = configuration.baseOptions;
3263
3396
  }
3264
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
3397
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3265
3398
  const localVarHeaderParameter = {};
3266
3399
  const localVarQueryParameter = {};
3267
3400
  // authentication apiToken required
@@ -3271,27 +3404,100 @@ const HostingDatabasesApiAxiosParamCreator = function (configuration) {
3271
3404
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3272
3405
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3273
3406
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3274
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1DatabasesChangeDatabasePasswordRequest, localVarRequestOptions, configuration);
3407
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ecommerceV1ShippingSetShippingRequest, localVarRequestOptions, configuration);
3275
3408
  return {
3276
3409
  url: (0, common_1.toPathString)(localVarUrlObj),
3277
3410
  options: localVarRequestOptions,
3278
3411
  };
3279
3412
  }),
3413
+ };
3414
+ };
3415
+ exports.EcommerceShippingApiAxiosParamCreator = EcommerceShippingApiAxiosParamCreator;
3416
+ /**
3417
+ * EcommerceShippingApi - functional programming interface
3418
+ * @export
3419
+ */
3420
+ const EcommerceShippingApiFp = function (configuration) {
3421
+ const localVarAxiosParamCreator = (0, exports.EcommerceShippingApiAxiosParamCreator)(configuration);
3422
+ return {
3280
3423
  /**
3281
- * Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
3282
- * @summary Create account database
3283
- * @param {string} username
3284
- * @param {HostingV1DatabasesCreateDatabaseRequest} hostingV1DatabasesCreateDatabaseRequest
3424
+ * Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
3425
+ * @summary Set store shipping
3426
+ * @param {string} storeId The ID of the store to configure shipping for.
3427
+ * @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
3285
3428
  * @param {*} [options] Override http request option.
3286
3429
  * @throws {RequiredError}
3287
3430
  */
3288
- createAccountDatabaseV1: (username_1, hostingV1DatabasesCreateDatabaseRequest_1, ...args_1) => __awaiter(this, [username_1, hostingV1DatabasesCreateDatabaseRequest_1, ...args_1], void 0, function* (username, hostingV1DatabasesCreateDatabaseRequest, options = {}) {
3289
- // verify required parameter 'username' is not null or undefined
3290
- (0, common_1.assertParamExists)('createAccountDatabaseV1', 'username', username);
3291
- // verify required parameter 'hostingV1DatabasesCreateDatabaseRequest' is not null or undefined
3292
- (0, common_1.assertParamExists)('createAccountDatabaseV1', 'hostingV1DatabasesCreateDatabaseRequest', hostingV1DatabasesCreateDatabaseRequest);
3293
- const localVarPath = `/api/hosting/v1/accounts/{username}/databases`
3294
- .replace(`{${"username"}}`, encodeURIComponent(String(username)));
3431
+ setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options) {
3432
+ return __awaiter(this, void 0, void 0, function* () {
3433
+ var _a, _b;
3434
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options);
3435
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceShippingApi.setStoreShippingV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3436
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3437
+ });
3438
+ },
3439
+ };
3440
+ };
3441
+ exports.EcommerceShippingApiFp = EcommerceShippingApiFp;
3442
+ /**
3443
+ * EcommerceShippingApi - factory interface
3444
+ * @export
3445
+ */
3446
+ const EcommerceShippingApiFactory = function (configuration, basePath, axios) {
3447
+ const localVarFp = (0, exports.EcommerceShippingApiFp)(configuration);
3448
+ return {
3449
+ /**
3450
+ * Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
3451
+ * @summary Set store shipping
3452
+ * @param {string} storeId The ID of the store to configure shipping for.
3453
+ * @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
3454
+ * @param {*} [options] Override http request option.
3455
+ * @throws {RequiredError}
3456
+ */
3457
+ setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options) {
3458
+ return localVarFp.setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options).then((request) => request(axios, basePath));
3459
+ },
3460
+ };
3461
+ };
3462
+ exports.EcommerceShippingApiFactory = EcommerceShippingApiFactory;
3463
+ /**
3464
+ * EcommerceShippingApi - object-oriented interface
3465
+ * @export
3466
+ * @class EcommerceShippingApi
3467
+ * @extends {BaseAPI}
3468
+ */
3469
+ class EcommerceShippingApi extends base_1.BaseAPI {
3470
+ /**
3471
+ * Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
3472
+ * @summary Set store shipping
3473
+ * @param {string} storeId The ID of the store to configure shipping for.
3474
+ * @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
3475
+ * @param {*} [options] Override http request option.
3476
+ * @throws {RequiredError}
3477
+ * @memberof EcommerceShippingApi
3478
+ */
3479
+ setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options) {
3480
+ return (0, exports.EcommerceShippingApiFp)(this.configuration).setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options).then((request) => request(this.axios, this.basePath));
3481
+ }
3482
+ }
3483
+ exports.EcommerceShippingApi = EcommerceShippingApi;
3484
+ /**
3485
+ * EcommerceStoresApi - axios parameter creator
3486
+ * @export
3487
+ */
3488
+ const EcommerceStoresApiAxiosParamCreator = function (configuration) {
3489
+ return {
3490
+ /**
3491
+ * Create a new store for your account. A primary sales channel is created alongside the store.
3492
+ * @summary Create store
3493
+ * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
3494
+ * @param {*} [options] Override http request option.
3495
+ * @throws {RequiredError}
3496
+ */
3497
+ createStoreV1: (ecommerceV1StoreStoreRequest_1, ...args_1) => __awaiter(this, [ecommerceV1StoreStoreRequest_1, ...args_1], void 0, function* (ecommerceV1StoreStoreRequest, options = {}) {
3498
+ // verify required parameter 'ecommerceV1StoreStoreRequest' is not null or undefined
3499
+ (0, common_1.assertParamExists)('createStoreV1', 'ecommerceV1StoreStoreRequest', ecommerceV1StoreStoreRequest);
3500
+ const localVarPath = `/api/ecommerce/v1/stores`;
3295
3501
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3296
3502
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3297
3503
  let baseOptions;
@@ -3308,28 +3514,24 @@ const HostingDatabasesApiAxiosParamCreator = function (configuration) {
3308
3514
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3309
3515
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3310
3516
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3311
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1DatabasesCreateDatabaseRequest, localVarRequestOptions, configuration);
3517
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ecommerceV1StoreStoreRequest, localVarRequestOptions, configuration);
3312
3518
  return {
3313
3519
  url: (0, common_1.toPathString)(localVarUrlObj),
3314
3520
  options: localVarRequestOptions,
3315
3521
  };
3316
3522
  }),
3317
3523
  /**
3318
- * Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
3319
- * @summary Delete account database
3320
- * @param {string} username
3321
- * @param {string} name Full database name as returned by the list databases endpoint.
3524
+ * Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
3525
+ * @summary Delete store
3526
+ * @param {string} storeId The ID of the store to delete.
3322
3527
  * @param {*} [options] Override http request option.
3323
3528
  * @throws {RequiredError}
3324
3529
  */
3325
- deleteAccountDatabaseV1: (username_1, name_1, ...args_1) => __awaiter(this, [username_1, name_1, ...args_1], void 0, function* (username, name, options = {}) {
3326
- // verify required parameter 'username' is not null or undefined
3327
- (0, common_1.assertParamExists)('deleteAccountDatabaseV1', 'username', username);
3328
- // verify required parameter 'name' is not null or undefined
3329
- (0, common_1.assertParamExists)('deleteAccountDatabaseV1', 'name', name);
3330
- const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}`
3331
- .replace(`{${"username"}}`, encodeURIComponent(String(username)))
3332
- .replace(`{${"name"}}`, encodeURIComponent(String(name)));
3530
+ deleteStoreV1: (storeId_1, ...args_1) => __awaiter(this, [storeId_1, ...args_1], void 0, function* (storeId, options = {}) {
3531
+ // verify required parameter 'storeId' is not null or undefined
3532
+ (0, common_1.assertParamExists)('deleteStoreV1', 'storeId', storeId);
3533
+ const localVarPath = `/api/ecommerce/v1/stores/{store_id}`
3534
+ .replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
3333
3535
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3334
3536
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3335
3537
  let baseOptions;
@@ -3351,21 +3553,14 @@ const HostingDatabasesApiAxiosParamCreator = function (configuration) {
3351
3553
  };
3352
3554
  }),
3353
3555
  /**
3354
- * Returns a direct sign-on link to phpMyAdmin for the specified database. Use this when a visual database interface is needed for SQL queries, imports, exports, or table management. The database name must be the full name returned by the list databases endpoint.
3355
- * @summary Get phpMyAdmin link
3356
- * @param {string} username
3357
- * @param {string} name Full database name as returned by the list databases endpoint.
3556
+ * Retrieve the stores associated with your account.
3557
+ * @summary Get stores
3558
+ * @param {number} [page] Page number
3358
3559
  * @param {*} [options] Override http request option.
3359
3560
  * @throws {RequiredError}
3360
3561
  */
3361
- getPhpMyAdminLinkV1: (username_1, name_1, ...args_1) => __awaiter(this, [username_1, name_1, ...args_1], void 0, function* (username, name, options = {}) {
3362
- // verify required parameter 'username' is not null or undefined
3363
- (0, common_1.assertParamExists)('getPhpMyAdminLinkV1', 'username', username);
3364
- // verify required parameter 'name' is not null or undefined
3365
- (0, common_1.assertParamExists)('getPhpMyAdminLinkV1', 'name', name);
3366
- const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-link`
3367
- .replace(`{${"username"}}`, encodeURIComponent(String(username)))
3368
- .replace(`{${"name"}}`, encodeURIComponent(String(name)));
3562
+ getStoresV1: (page_1, ...args_1) => __awaiter(this, [page_1, ...args_1], void 0, function* (page, options = {}) {
3563
+ const localVarPath = `/api/ecommerce/v1/stores`;
3369
3564
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3370
3565
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3371
3566
  let baseOptions;
@@ -3378,6 +3573,9 @@ const HostingDatabasesApiAxiosParamCreator = function (configuration) {
3378
3573
  // authentication apiToken required
3379
3574
  // http bearer authentication required
3380
3575
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3576
+ if (page !== undefined) {
3577
+ localVarQueryParameter['page'] = page;
3578
+ }
3381
3579
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3382
3580
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3383
3581
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3386,11 +3584,482 @@ const HostingDatabasesApiAxiosParamCreator = function (configuration) {
3386
3584
  options: localVarRequestOptions,
3387
3585
  };
3388
3586
  }),
3389
- /**
3390
- * Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
3391
- * @summary List account databases
3392
- * @param {string} username
3393
- * @param {number} [page] Page number
3587
+ };
3588
+ };
3589
+ exports.EcommerceStoresApiAxiosParamCreator = EcommerceStoresApiAxiosParamCreator;
3590
+ /**
3591
+ * EcommerceStoresApi - functional programming interface
3592
+ * @export
3593
+ */
3594
+ const EcommerceStoresApiFp = function (configuration) {
3595
+ const localVarAxiosParamCreator = (0, exports.EcommerceStoresApiAxiosParamCreator)(configuration);
3596
+ return {
3597
+ /**
3598
+ * Create a new store for your account. A primary sales channel is created alongside the store.
3599
+ * @summary Create store
3600
+ * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
3601
+ * @param {*} [options] Override http request option.
3602
+ * @throws {RequiredError}
3603
+ */
3604
+ createStoreV1(ecommerceV1StoreStoreRequest, options) {
3605
+ return __awaiter(this, void 0, void 0, function* () {
3606
+ var _a, _b;
3607
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createStoreV1(ecommerceV1StoreStoreRequest, options);
3608
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceStoresApi.createStoreV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3609
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3610
+ });
3611
+ },
3612
+ /**
3613
+ * Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
3614
+ * @summary Delete store
3615
+ * @param {string} storeId The ID of the store to delete.
3616
+ * @param {*} [options] Override http request option.
3617
+ * @throws {RequiredError}
3618
+ */
3619
+ deleteStoreV1(storeId, options) {
3620
+ return __awaiter(this, void 0, void 0, function* () {
3621
+ var _a, _b;
3622
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteStoreV1(storeId, options);
3623
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceStoresApi.deleteStoreV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3624
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3625
+ });
3626
+ },
3627
+ /**
3628
+ * Retrieve the stores associated with your account.
3629
+ * @summary Get stores
3630
+ * @param {number} [page] Page number
3631
+ * @param {*} [options] Override http request option.
3632
+ * @throws {RequiredError}
3633
+ */
3634
+ getStoresV1(page, options) {
3635
+ return __awaiter(this, void 0, void 0, function* () {
3636
+ var _a, _b;
3637
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getStoresV1(page, options);
3638
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceStoresApi.getStoresV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3639
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3640
+ });
3641
+ },
3642
+ };
3643
+ };
3644
+ exports.EcommerceStoresApiFp = EcommerceStoresApiFp;
3645
+ /**
3646
+ * EcommerceStoresApi - factory interface
3647
+ * @export
3648
+ */
3649
+ const EcommerceStoresApiFactory = function (configuration, basePath, axios) {
3650
+ const localVarFp = (0, exports.EcommerceStoresApiFp)(configuration);
3651
+ return {
3652
+ /**
3653
+ * Create a new store for your account. A primary sales channel is created alongside the store.
3654
+ * @summary Create store
3655
+ * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
3656
+ * @param {*} [options] Override http request option.
3657
+ * @throws {RequiredError}
3658
+ */
3659
+ createStoreV1(ecommerceV1StoreStoreRequest, options) {
3660
+ return localVarFp.createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(axios, basePath));
3661
+ },
3662
+ /**
3663
+ * Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
3664
+ * @summary Delete store
3665
+ * @param {string} storeId The ID of the store to delete.
3666
+ * @param {*} [options] Override http request option.
3667
+ * @throws {RequiredError}
3668
+ */
3669
+ deleteStoreV1(storeId, options) {
3670
+ return localVarFp.deleteStoreV1(storeId, options).then((request) => request(axios, basePath));
3671
+ },
3672
+ /**
3673
+ * Retrieve the stores associated with your account.
3674
+ * @summary Get stores
3675
+ * @param {number} [page] Page number
3676
+ * @param {*} [options] Override http request option.
3677
+ * @throws {RequiredError}
3678
+ */
3679
+ getStoresV1(page, options) {
3680
+ return localVarFp.getStoresV1(page, options).then((request) => request(axios, basePath));
3681
+ },
3682
+ };
3683
+ };
3684
+ exports.EcommerceStoresApiFactory = EcommerceStoresApiFactory;
3685
+ /**
3686
+ * EcommerceStoresApi - object-oriented interface
3687
+ * @export
3688
+ * @class EcommerceStoresApi
3689
+ * @extends {BaseAPI}
3690
+ */
3691
+ class EcommerceStoresApi extends base_1.BaseAPI {
3692
+ /**
3693
+ * Create a new store for your account. A primary sales channel is created alongside the store.
3694
+ * @summary Create store
3695
+ * @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
3696
+ * @param {*} [options] Override http request option.
3697
+ * @throws {RequiredError}
3698
+ * @memberof EcommerceStoresApi
3699
+ */
3700
+ createStoreV1(ecommerceV1StoreStoreRequest, options) {
3701
+ return (0, exports.EcommerceStoresApiFp)(this.configuration).createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(this.axios, this.basePath));
3702
+ }
3703
+ /**
3704
+ * Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
3705
+ * @summary Delete store
3706
+ * @param {string} storeId The ID of the store to delete.
3707
+ * @param {*} [options] Override http request option.
3708
+ * @throws {RequiredError}
3709
+ * @memberof EcommerceStoresApi
3710
+ */
3711
+ deleteStoreV1(storeId, options) {
3712
+ return (0, exports.EcommerceStoresApiFp)(this.configuration).deleteStoreV1(storeId, options).then((request) => request(this.axios, this.basePath));
3713
+ }
3714
+ /**
3715
+ * Retrieve the stores associated with your account.
3716
+ * @summary Get stores
3717
+ * @param {number} [page] Page number
3718
+ * @param {*} [options] Override http request option.
3719
+ * @throws {RequiredError}
3720
+ * @memberof EcommerceStoresApi
3721
+ */
3722
+ getStoresV1(page, options) {
3723
+ return (0, exports.EcommerceStoresApiFp)(this.configuration).getStoresV1(page, options).then((request) => request(this.axios, this.basePath));
3724
+ }
3725
+ }
3726
+ exports.EcommerceStoresApi = EcommerceStoresApi;
3727
+ /**
3728
+ * HorizonsWebsitesApi - axios parameter creator
3729
+ * @export
3730
+ */
3731
+ const HorizonsWebsitesApiAxiosParamCreator = function (configuration) {
3732
+ return {
3733
+ /**
3734
+ * Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
3735
+ * @summary Create website
3736
+ * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
3737
+ * @param {*} [options] Override http request option.
3738
+ * @throws {RequiredError}
3739
+ */
3740
+ createWebsiteV1: (horizonsV1WebsitesCreateWebsiteRequest_1, ...args_1) => __awaiter(this, [horizonsV1WebsitesCreateWebsiteRequest_1, ...args_1], void 0, function* (horizonsV1WebsitesCreateWebsiteRequest, options = {}) {
3741
+ // verify required parameter 'horizonsV1WebsitesCreateWebsiteRequest' is not null or undefined
3742
+ (0, common_1.assertParamExists)('createWebsiteV1', 'horizonsV1WebsitesCreateWebsiteRequest', horizonsV1WebsitesCreateWebsiteRequest);
3743
+ const localVarPath = `/api/horizons/v1/websites`;
3744
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3745
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3746
+ let baseOptions;
3747
+ if (configuration) {
3748
+ baseOptions = configuration.baseOptions;
3749
+ }
3750
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3751
+ const localVarHeaderParameter = {};
3752
+ const localVarQueryParameter = {};
3753
+ // authentication apiToken required
3754
+ // http bearer authentication required
3755
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3756
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3757
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3758
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3759
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3760
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(horizonsV1WebsitesCreateWebsiteRequest, localVarRequestOptions, configuration);
3761
+ return {
3762
+ url: (0, common_1.toPathString)(localVarUrlObj),
3763
+ options: localVarRequestOptions,
3764
+ };
3765
+ }),
3766
+ /**
3767
+ * Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
3768
+ * @summary Get website
3769
+ * @param {string} websiteId The website ID
3770
+ * @param {*} [options] Override http request option.
3771
+ * @throws {RequiredError}
3772
+ */
3773
+ getWebsiteV1: (websiteId_1, ...args_1) => __awaiter(this, [websiteId_1, ...args_1], void 0, function* (websiteId, options = {}) {
3774
+ // verify required parameter 'websiteId' is not null or undefined
3775
+ (0, common_1.assertParamExists)('getWebsiteV1', 'websiteId', websiteId);
3776
+ const localVarPath = `/api/horizons/v1/websites/{websiteId}`
3777
+ .replace(`{${"websiteId"}}`, encodeURIComponent(String(websiteId)));
3778
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3779
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3780
+ let baseOptions;
3781
+ if (configuration) {
3782
+ baseOptions = configuration.baseOptions;
3783
+ }
3784
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3785
+ const localVarHeaderParameter = {};
3786
+ const localVarQueryParameter = {};
3787
+ // authentication apiToken required
3788
+ // http bearer authentication required
3789
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3790
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3791
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3792
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3793
+ return {
3794
+ url: (0, common_1.toPathString)(localVarUrlObj),
3795
+ options: localVarRequestOptions,
3796
+ };
3797
+ }),
3798
+ };
3799
+ };
3800
+ exports.HorizonsWebsitesApiAxiosParamCreator = HorizonsWebsitesApiAxiosParamCreator;
3801
+ /**
3802
+ * HorizonsWebsitesApi - functional programming interface
3803
+ * @export
3804
+ */
3805
+ const HorizonsWebsitesApiFp = function (configuration) {
3806
+ const localVarAxiosParamCreator = (0, exports.HorizonsWebsitesApiAxiosParamCreator)(configuration);
3807
+ return {
3808
+ /**
3809
+ * Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
3810
+ * @summary Create website
3811
+ * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
3812
+ * @param {*} [options] Override http request option.
3813
+ * @throws {RequiredError}
3814
+ */
3815
+ createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options) {
3816
+ return __awaiter(this, void 0, void 0, function* () {
3817
+ var _a, _b;
3818
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options);
3819
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HorizonsWebsitesApi.createWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3820
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3821
+ });
3822
+ },
3823
+ /**
3824
+ * Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
3825
+ * @summary Get website
3826
+ * @param {string} websiteId The website ID
3827
+ * @param {*} [options] Override http request option.
3828
+ * @throws {RequiredError}
3829
+ */
3830
+ getWebsiteV1(websiteId, options) {
3831
+ return __awaiter(this, void 0, void 0, function* () {
3832
+ var _a, _b;
3833
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getWebsiteV1(websiteId, options);
3834
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HorizonsWebsitesApi.getWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3835
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3836
+ });
3837
+ },
3838
+ };
3839
+ };
3840
+ exports.HorizonsWebsitesApiFp = HorizonsWebsitesApiFp;
3841
+ /**
3842
+ * HorizonsWebsitesApi - factory interface
3843
+ * @export
3844
+ */
3845
+ const HorizonsWebsitesApiFactory = function (configuration, basePath, axios) {
3846
+ const localVarFp = (0, exports.HorizonsWebsitesApiFp)(configuration);
3847
+ return {
3848
+ /**
3849
+ * Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
3850
+ * @summary Create website
3851
+ * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
3852
+ * @param {*} [options] Override http request option.
3853
+ * @throws {RequiredError}
3854
+ */
3855
+ createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options) {
3856
+ return localVarFp.createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options).then((request) => request(axios, basePath));
3857
+ },
3858
+ /**
3859
+ * Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
3860
+ * @summary Get website
3861
+ * @param {string} websiteId The website ID
3862
+ * @param {*} [options] Override http request option.
3863
+ * @throws {RequiredError}
3864
+ */
3865
+ getWebsiteV1(websiteId, options) {
3866
+ return localVarFp.getWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
3867
+ },
3868
+ };
3869
+ };
3870
+ exports.HorizonsWebsitesApiFactory = HorizonsWebsitesApiFactory;
3871
+ /**
3872
+ * HorizonsWebsitesApi - object-oriented interface
3873
+ * @export
3874
+ * @class HorizonsWebsitesApi
3875
+ * @extends {BaseAPI}
3876
+ */
3877
+ class HorizonsWebsitesApi extends base_1.BaseAPI {
3878
+ /**
3879
+ * Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
3880
+ * @summary Create website
3881
+ * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
3882
+ * @param {*} [options] Override http request option.
3883
+ * @throws {RequiredError}
3884
+ * @memberof HorizonsWebsitesApi
3885
+ */
3886
+ createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options) {
3887
+ return (0, exports.HorizonsWebsitesApiFp)(this.configuration).createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options).then((request) => request(this.axios, this.basePath));
3888
+ }
3889
+ /**
3890
+ * Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
3891
+ * @summary Get website
3892
+ * @param {string} websiteId The website ID
3893
+ * @param {*} [options] Override http request option.
3894
+ * @throws {RequiredError}
3895
+ * @memberof HorizonsWebsitesApi
3896
+ */
3897
+ getWebsiteV1(websiteId, options) {
3898
+ return (0, exports.HorizonsWebsitesApiFp)(this.configuration).getWebsiteV1(websiteId, options).then((request) => request(this.axios, this.basePath));
3899
+ }
3900
+ }
3901
+ exports.HorizonsWebsitesApi = HorizonsWebsitesApi;
3902
+ /**
3903
+ * HostingDatabasesApi - axios parameter creator
3904
+ * @export
3905
+ */
3906
+ const HostingDatabasesApiAxiosParamCreator = function (configuration) {
3907
+ return {
3908
+ /**
3909
+ * Changes the password for the specified database user. The database name must be the full name returned by the list databases endpoint. The password must also be updated in any website configuration that uses this database.
3910
+ * @summary Change database password
3911
+ * @param {string} username
3912
+ * @param {string} name Full database name as returned by the list databases endpoint.
3913
+ * @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
3914
+ * @param {*} [options] Override http request option.
3915
+ * @throws {RequiredError}
3916
+ */
3917
+ changeDatabasePasswordV1: (username_1, name_1, hostingV1DatabasesChangeDatabasePasswordRequest_1, ...args_1) => __awaiter(this, [username_1, name_1, hostingV1DatabasesChangeDatabasePasswordRequest_1, ...args_1], void 0, function* (username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options = {}) {
3918
+ // verify required parameter 'username' is not null or undefined
3919
+ (0, common_1.assertParamExists)('changeDatabasePasswordV1', 'username', username);
3920
+ // verify required parameter 'name' is not null or undefined
3921
+ (0, common_1.assertParamExists)('changeDatabasePasswordV1', 'name', name);
3922
+ // verify required parameter 'hostingV1DatabasesChangeDatabasePasswordRequest' is not null or undefined
3923
+ (0, common_1.assertParamExists)('changeDatabasePasswordV1', 'hostingV1DatabasesChangeDatabasePasswordRequest', hostingV1DatabasesChangeDatabasePasswordRequest);
3924
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/change-password`
3925
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
3926
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
3927
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3928
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3929
+ let baseOptions;
3930
+ if (configuration) {
3931
+ baseOptions = configuration.baseOptions;
3932
+ }
3933
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
3934
+ const localVarHeaderParameter = {};
3935
+ const localVarQueryParameter = {};
3936
+ // authentication apiToken required
3937
+ // http bearer authentication required
3938
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3939
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3940
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3941
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3942
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3943
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1DatabasesChangeDatabasePasswordRequest, localVarRequestOptions, configuration);
3944
+ return {
3945
+ url: (0, common_1.toPathString)(localVarUrlObj),
3946
+ options: localVarRequestOptions,
3947
+ };
3948
+ }),
3949
+ /**
3950
+ * Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
3951
+ * @summary Create account database
3952
+ * @param {string} username
3953
+ * @param {HostingV1DatabasesCreateDatabaseRequest} hostingV1DatabasesCreateDatabaseRequest
3954
+ * @param {*} [options] Override http request option.
3955
+ * @throws {RequiredError}
3956
+ */
3957
+ createAccountDatabaseV1: (username_1, hostingV1DatabasesCreateDatabaseRequest_1, ...args_1) => __awaiter(this, [username_1, hostingV1DatabasesCreateDatabaseRequest_1, ...args_1], void 0, function* (username, hostingV1DatabasesCreateDatabaseRequest, options = {}) {
3958
+ // verify required parameter 'username' is not null or undefined
3959
+ (0, common_1.assertParamExists)('createAccountDatabaseV1', 'username', username);
3960
+ // verify required parameter 'hostingV1DatabasesCreateDatabaseRequest' is not null or undefined
3961
+ (0, common_1.assertParamExists)('createAccountDatabaseV1', 'hostingV1DatabasesCreateDatabaseRequest', hostingV1DatabasesCreateDatabaseRequest);
3962
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases`
3963
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
3964
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3965
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3966
+ let baseOptions;
3967
+ if (configuration) {
3968
+ baseOptions = configuration.baseOptions;
3969
+ }
3970
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3971
+ const localVarHeaderParameter = {};
3972
+ const localVarQueryParameter = {};
3973
+ // authentication apiToken required
3974
+ // http bearer authentication required
3975
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3976
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3977
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3978
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3979
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3980
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1DatabasesCreateDatabaseRequest, localVarRequestOptions, configuration);
3981
+ return {
3982
+ url: (0, common_1.toPathString)(localVarUrlObj),
3983
+ options: localVarRequestOptions,
3984
+ };
3985
+ }),
3986
+ /**
3987
+ * Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
3988
+ * @summary Delete account database
3989
+ * @param {string} username
3990
+ * @param {string} name Full database name as returned by the list databases endpoint.
3991
+ * @param {*} [options] Override http request option.
3992
+ * @throws {RequiredError}
3993
+ */
3994
+ deleteAccountDatabaseV1: (username_1, name_1, ...args_1) => __awaiter(this, [username_1, name_1, ...args_1], void 0, function* (username, name, options = {}) {
3995
+ // verify required parameter 'username' is not null or undefined
3996
+ (0, common_1.assertParamExists)('deleteAccountDatabaseV1', 'username', username);
3997
+ // verify required parameter 'name' is not null or undefined
3998
+ (0, common_1.assertParamExists)('deleteAccountDatabaseV1', 'name', name);
3999
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}`
4000
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
4001
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
4002
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4003
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4004
+ let baseOptions;
4005
+ if (configuration) {
4006
+ baseOptions = configuration.baseOptions;
4007
+ }
4008
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4009
+ const localVarHeaderParameter = {};
4010
+ const localVarQueryParameter = {};
4011
+ // authentication apiToken required
4012
+ // http bearer authentication required
4013
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4014
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4015
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4016
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4017
+ return {
4018
+ url: (0, common_1.toPathString)(localVarUrlObj),
4019
+ options: localVarRequestOptions,
4020
+ };
4021
+ }),
4022
+ /**
4023
+ * Returns a direct sign-on link to phpMyAdmin for the specified database. Use this when a visual database interface is needed for SQL queries, imports, exports, or table management. The database name must be the full name returned by the list databases endpoint.
4024
+ * @summary Get phpMyAdmin link
4025
+ * @param {string} username
4026
+ * @param {string} name Full database name as returned by the list databases endpoint.
4027
+ * @param {*} [options] Override http request option.
4028
+ * @throws {RequiredError}
4029
+ */
4030
+ getPhpMyAdminLinkV1: (username_1, name_1, ...args_1) => __awaiter(this, [username_1, name_1, ...args_1], void 0, function* (username, name, options = {}) {
4031
+ // verify required parameter 'username' is not null or undefined
4032
+ (0, common_1.assertParamExists)('getPhpMyAdminLinkV1', 'username', username);
4033
+ // verify required parameter 'name' is not null or undefined
4034
+ (0, common_1.assertParamExists)('getPhpMyAdminLinkV1', 'name', name);
4035
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-link`
4036
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
4037
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
4038
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4039
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4040
+ let baseOptions;
4041
+ if (configuration) {
4042
+ baseOptions = configuration.baseOptions;
4043
+ }
4044
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4045
+ const localVarHeaderParameter = {};
4046
+ const localVarQueryParameter = {};
4047
+ // authentication apiToken required
4048
+ // http bearer authentication required
4049
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4050
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4051
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4052
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4053
+ return {
4054
+ url: (0, common_1.toPathString)(localVarUrlObj),
4055
+ options: localVarRequestOptions,
4056
+ };
4057
+ }),
4058
+ /**
4059
+ * Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
4060
+ * @summary List account databases
4061
+ * @param {string} username
4062
+ * @param {number} [page] Page number
3394
4063
  * @param {number} [perPage] Number of items per page
3395
4064
  * @param {string | null} [domain] Filter by domain name (exact match)
3396
4065
  * @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
@@ -5791,6 +6460,38 @@ exports.ListContactsV1SubscriptionStatusEnum = {
5791
6460
  */
5792
6461
  const ReachProfilesApiAxiosParamCreator = function (configuration) {
5793
6462
  return {
6463
+ /**
6464
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
6465
+ * @summary Get profile domain DNS status
6466
+ * @param {string} profileUuid Profile uuid parameter
6467
+ * @param {*} [options] Override http request option.
6468
+ * @throws {RequiredError}
6469
+ */
6470
+ getProfileDomainDNSStatusV1: (profileUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, ...args_1], void 0, function* (profileUuid, options = {}) {
6471
+ // verify required parameter 'profileUuid' is not null or undefined
6472
+ (0, common_1.assertParamExists)('getProfileDomainDNSStatusV1', 'profileUuid', profileUuid);
6473
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/domains/dns-status`
6474
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
6475
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6476
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6477
+ let baseOptions;
6478
+ if (configuration) {
6479
+ baseOptions = configuration.baseOptions;
6480
+ }
6481
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6482
+ const localVarHeaderParameter = {};
6483
+ const localVarQueryParameter = {};
6484
+ // authentication apiToken required
6485
+ // http bearer authentication required
6486
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6487
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6488
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6489
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6490
+ return {
6491
+ url: (0, common_1.toPathString)(localVarUrlObj),
6492
+ options: localVarRequestOptions,
6493
+ };
6494
+ }),
5794
6495
  /**
5795
6496
  * This endpoint returns all profiles available to the client, including their basic information.
5796
6497
  * @summary List Profiles
@@ -5829,6 +6530,21 @@ exports.ReachProfilesApiAxiosParamCreator = ReachProfilesApiAxiosParamCreator;
5829
6530
  const ReachProfilesApiFp = function (configuration) {
5830
6531
  const localVarAxiosParamCreator = (0, exports.ReachProfilesApiAxiosParamCreator)(configuration);
5831
6532
  return {
6533
+ /**
6534
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
6535
+ * @summary Get profile domain DNS status
6536
+ * @param {string} profileUuid Profile uuid parameter
6537
+ * @param {*} [options] Override http request option.
6538
+ * @throws {RequiredError}
6539
+ */
6540
+ getProfileDomainDNSStatusV1(profileUuid, options) {
6541
+ return __awaiter(this, void 0, void 0, function* () {
6542
+ var _a, _b;
6543
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProfileDomainDNSStatusV1(profileUuid, options);
6544
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachProfilesApi.getProfileDomainDNSStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6545
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6546
+ });
6547
+ },
5832
6548
  /**
5833
6549
  * This endpoint returns all profiles available to the client, including their basic information.
5834
6550
  * @summary List Profiles
@@ -5853,6 +6569,16 @@ exports.ReachProfilesApiFp = ReachProfilesApiFp;
5853
6569
  const ReachProfilesApiFactory = function (configuration, basePath, axios) {
5854
6570
  const localVarFp = (0, exports.ReachProfilesApiFp)(configuration);
5855
6571
  return {
6572
+ /**
6573
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
6574
+ * @summary Get profile domain DNS status
6575
+ * @param {string} profileUuid Profile uuid parameter
6576
+ * @param {*} [options] Override http request option.
6577
+ * @throws {RequiredError}
6578
+ */
6579
+ getProfileDomainDNSStatusV1(profileUuid, options) {
6580
+ return localVarFp.getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(axios, basePath));
6581
+ },
5856
6582
  /**
5857
6583
  * This endpoint returns all profiles available to the client, including their basic information.
5858
6584
  * @summary List Profiles
@@ -5872,6 +6598,17 @@ exports.ReachProfilesApiFactory = ReachProfilesApiFactory;
5872
6598
  * @extends {BaseAPI}
5873
6599
  */
5874
6600
  class ReachProfilesApi extends base_1.BaseAPI {
6601
+ /**
6602
+ * Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
6603
+ * @summary Get profile domain DNS status
6604
+ * @param {string} profileUuid Profile uuid parameter
6605
+ * @param {*} [options] Override http request option.
6606
+ * @throws {RequiredError}
6607
+ * @memberof ReachProfilesApi
6608
+ */
6609
+ getProfileDomainDNSStatusV1(profileUuid, options) {
6610
+ return (0, exports.ReachProfilesApiFp)(this.configuration).getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
6611
+ }
5875
6612
  /**
5876
6613
  * This endpoint returns all profiles available to the client, including their basic information.
5877
6614
  * @summary List Profiles
@@ -5955,6 +6692,50 @@ const ReachSegmentsApiAxiosParamCreator = function (configuration) {
5955
6692
  options: localVarRequestOptions,
5956
6693
  };
5957
6694
  }),
6695
+ /**
6696
+ * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
6697
+ * @summary List profile segment contacts
6698
+ * @param {string} profileUuid Profile uuid parameter
6699
+ * @param {string} segmentUuid Segment uuid parameter
6700
+ * @param {number} [page] Page number
6701
+ * @param {number} [perPage] Number of items per page
6702
+ * @param {*} [options] Override http request option.
6703
+ * @throws {RequiredError}
6704
+ */
6705
+ listProfileSegmentContactsV1: (profileUuid_1, segmentUuid_1, page_1, perPage_1, ...args_1) => __awaiter(this, [profileUuid_1, segmentUuid_1, page_1, perPage_1, ...args_1], void 0, function* (profileUuid, segmentUuid, page, perPage, options = {}) {
6706
+ // verify required parameter 'profileUuid' is not null or undefined
6707
+ (0, common_1.assertParamExists)('listProfileSegmentContactsV1', 'profileUuid', profileUuid);
6708
+ // verify required parameter 'segmentUuid' is not null or undefined
6709
+ (0, common_1.assertParamExists)('listProfileSegmentContactsV1', 'segmentUuid', segmentUuid);
6710
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts`
6711
+ .replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
6712
+ .replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
6713
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6714
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6715
+ let baseOptions;
6716
+ if (configuration) {
6717
+ baseOptions = configuration.baseOptions;
6718
+ }
6719
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6720
+ const localVarHeaderParameter = {};
6721
+ const localVarQueryParameter = {};
6722
+ // authentication apiToken required
6723
+ // http bearer authentication required
6724
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6725
+ if (page !== undefined) {
6726
+ localVarQueryParameter['page'] = page;
6727
+ }
6728
+ if (perPage !== undefined) {
6729
+ localVarQueryParameter['per_page'] = perPage;
6730
+ }
6731
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6732
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6733
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6734
+ return {
6735
+ url: (0, common_1.toPathString)(localVarUrlObj),
6736
+ options: localVarRequestOptions,
6737
+ };
6738
+ }),
5958
6739
  /**
5959
6740
  * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
5960
6741
  * @summary List segment contacts
@@ -6063,6 +6844,24 @@ const ReachSegmentsApiFp = function (configuration) {
6063
6844
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6064
6845
  });
6065
6846
  },
6847
+ /**
6848
+ * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
6849
+ * @summary List profile segment contacts
6850
+ * @param {string} profileUuid Profile uuid parameter
6851
+ * @param {string} segmentUuid Segment uuid parameter
6852
+ * @param {number} [page] Page number
6853
+ * @param {number} [perPage] Number of items per page
6854
+ * @param {*} [options] Override http request option.
6855
+ * @throws {RequiredError}
6856
+ */
6857
+ listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
6858
+ return __awaiter(this, void 0, void 0, function* () {
6859
+ var _a, _b;
6860
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options);
6861
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachSegmentsApi.listProfileSegmentContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6862
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6863
+ });
6864
+ },
6066
6865
  /**
6067
6866
  * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
6068
6867
  * @summary List segment contacts
@@ -6124,6 +6923,19 @@ const ReachSegmentsApiFactory = function (configuration, basePath, axios) {
6124
6923
  getSegmentDetailsV1(segmentUuid, options) {
6125
6924
  return localVarFp.getSegmentDetailsV1(segmentUuid, options).then((request) => request(axios, basePath));
6126
6925
  },
6926
+ /**
6927
+ * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
6928
+ * @summary List profile segment contacts
6929
+ * @param {string} profileUuid Profile uuid parameter
6930
+ * @param {string} segmentUuid Segment uuid parameter
6931
+ * @param {number} [page] Page number
6932
+ * @param {number} [perPage] Number of items per page
6933
+ * @param {*} [options] Override http request option.
6934
+ * @throws {RequiredError}
6935
+ */
6936
+ listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
6937
+ return localVarFp.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
6938
+ },
6127
6939
  /**
6128
6940
  * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
6129
6941
  * @summary List segment contacts
@@ -6177,6 +6989,20 @@ class ReachSegmentsApi extends base_1.BaseAPI {
6177
6989
  getSegmentDetailsV1(segmentUuid, options) {
6178
6990
  return (0, exports.ReachSegmentsApiFp)(this.configuration).getSegmentDetailsV1(segmentUuid, options).then((request) => request(this.axios, this.basePath));
6179
6991
  }
6992
+ /**
6993
+ * Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
6994
+ * @summary List profile segment contacts
6995
+ * @param {string} profileUuid Profile uuid parameter
6996
+ * @param {string} segmentUuid Segment uuid parameter
6997
+ * @param {number} [page] Page number
6998
+ * @param {number} [perPage] Number of items per page
6999
+ * @param {*} [options] Override http request option.
7000
+ * @throws {RequiredError}
7001
+ * @memberof ReachSegmentsApi
7002
+ */
7003
+ listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
7004
+ return (0, exports.ReachSegmentsApiFp)(this.configuration).listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
7005
+ }
6180
7006
  /**
6181
7007
  * Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
6182
7008
  * @summary List segment contacts