hostinger-api-sdk 2.1.1 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +1281 -259
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +566 -9
- package/dist/api.js +874 -29
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +566 -9
- package/dist/esm/api.js +860 -19
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/HostingCDNApi.md +238 -0
- package/docs/HostingCacheApi.md +1 -1
- package/docs/HostingV1CdnCdnStatusResource.md +20 -0
- package/docs/ReachFormsApi.md +369 -1
- package/docs/ReachV1FormsAssignTagsRequest.md +21 -0
- package/docs/ReachV1FormsFormTemplateVersionResource.md +29 -0
- package/docs/ReachV1FormsRemoveTagRequest.md +21 -0
- package/docs/ReachV1FormsStoreRequest.md +21 -0
- package/docs/ReachV1FormsUpdateRequest.md +23 -0
- package/docs/ReachV1FormsUpdateTemplateRequest.md +21 -0
- package/index.ts +1 -1
- 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: 2.1.
|
|
7
|
+
* API Version: 2.1.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
|
|
@@ -21,16 +21,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.HorizonsV1WebsitesPublishedWebsiteResourceStatusEnum = exports.HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductUpdateRequestStatusEnum = exports.EcommerceV1ProductProductResourceStatusEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.EcommerceV1PaymentProviderPaymentProviderListResourceDataConnectedInnerStatusEnum = exports.EcommerceV1DiscountDiscountResourceAllocationEnum = exports.EcommerceV1DiscountDiscountResourceTypeEnum = exports.EcommerceV1DiscountCreateDiscountRequestAllocationEnum = exports.EcommerceV1DiscountCreateDiscountRequestTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1WHOISChangeUpdateRequestChangeForEnum = exports.DomainsV1PortfolioClaimResourceStatusEnum = exports.DomainsV1MoveMoveResourceStatusEnum = exports.DomainsV1IRTPVerificationResourceStatusEnum = exports.DomainsV1ForwardingUpdateRequestRedirectTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderPaymentProcessingResourceStatusEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = exports.AgentReadinessV1ScansScanResourceStatusEnum = exports.AgentReadinessV1ScansCheckResultResourceStatusEnum = exports.AgencyHostingV1WebsitesWebsiteResourceStateEnum = exports.AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = exports.AgencyHostingV1WebsitesWebsiteListItemResourcePlatformEnum = exports.AgencyHostingV1WebsitesU4sWebsiteDetailsResourceTypeEnum = exports.AgencyHostingV1WebsitesH5gWebsiteDetailsResourceStateEnum = exports.AgencyHostingV1WebsitesH5gWebsiteDetailsResourceTypeEnum = exports.AgencyHostingV1SslSslStatusResourceStatusEnum = exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = exports.AgencyHostingV1SetupsCreateSetupRequestTypeEnum = exports.AgencyHostingV1PhpOptionResourceTypeEnum = exports.AgencyHostingV1PhpExtensionResourceStateEnum = void 0;
|
|
23
23
|
exports.MailV1WebhooksWebhookSecretResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceEventsEnum = exports.MailV1WebhooksWebhookResourceStatusEnum = exports.MailV1WebhooksWebhookResourceEventsEnum = exports.MailV1WebhooksWebhookCreatedResourceStatusEnum = exports.MailV1WebhooksWebhookCreatedResourceEventsEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaEventsEnum = exports.MailV1SchemaCreateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaCreateWebhookRequestSchemaEventsEnum = exports.MailV1OrdersOrderResourceStatusEnum = exports.MailV1MailboxesMailboxResourceStatusEnum = exports.MailV1LogsMailboxActionsMailboxActionLogResourceEventEnum = exports.MailV1LogsActionActionLogResourceResponseStatusEnum = exports.MailV1ApiTokensApiTokenResourceTypeEnum = exports.MailV1ApiTokensApiTokenCreatedResourceTypeEnum = exports.HostingV1WebsitesWebsiteResourceWebsiteTypeEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1SslSslStatusResourceProviderEnum = exports.HostingV1SslSslStatusResourceStatusEnum = exports.HostingV1OnboardingsStartOnboardingRequestTypeEnum = exports.HostingV1OnboardingsOnboardingResourceStatusEnum = exports.HostingV1NodeJsVulnerabilityResourceSeverityEnum = exports.HostingV1NodeJsUpdateBuildSettingsRequestPackageManagerEnum = exports.HostingV1NodeJsUpdateBuildSettingsRequestAppTypeEnum = exports.HostingV1NodeJsUpdateBuildSettingsRequestNodeVersionEnum = exports.HostingV1NodeJsStoredBuildSettingsResourcePackageManagerEnum = exports.HostingV1NodeJsStoredBuildSettingsResourceAppTypeEnum = exports.HostingV1NodeJsStartBuildRequestSourceTypeEnum = exports.HostingV1NodeJsStartBuildRequestPackageManagerEnum = exports.HostingV1NodeJsStartBuildRequestAppTypeEnum = exports.HostingV1NodeJsStartBuildRequestNodeVersionEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildSettingsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildSettingsResourceAppTypeEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1HeadlessStoreAgentReportRequestRunKindEnum = exports.HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum = exports.HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum = exports.HostingV1GitGitInstallationResourceStatusEnum = exports.HostingV1GitGitInstallationResourceAccountTypeEnum = exports.HostingV1GitGitInstallationResourceProviderEnum = exports.HostingV1FilesFilesResourceItemsInnerTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesWebsiteResourceStatusEnum = void 0;
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = void 0;
|
|
24
|
+
exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ProfilesFeaturesPlanFeatureResourceFeatureEnum = exports.ReachV1ProfilesDomainsSendingDomainResourceStatusEnum = exports.ReachV1FormsUpdateRequestStatusEnum = exports.ReachV1FormsFormTemplateVersionResourceEditTypeEnum = exports.ReachV1FormsFormTagResourceTypeEnum = exports.ReachV1FormsFormResourceTypeEnum = exports.ReachV1FormsFormResourceStatusEnum = exports.ReachV1FormsFormDetailsResourceTypeEnum = exports.ReachV1FormsFormDetailsResourceStatusEnum = exports.ReachV1ContactsUpdateRequestSubscriptionStatusEnum = exports.ReachV1ContactsTagsTagResourceTypeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsSegmentsSegmentFilterOperatorResourceInputTypeEnum = exports.ReachV1ContactsSegmentsSegmentFilterOperatorResourceOperatorEnum = exports.ReachV1ContactsSegmentsSegmentFilterAttributeResourceTypeEnum = exports.ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestSortDirectionEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestSortByEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestLogicEnum = exports.ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = exports.ReachV1ContactsProfileContactResourceSourceEnum = exports.ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsFieldsStoreRequestTypeEnum = exports.ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = exports.ReachV1ContactsFieldsContactFieldResourceTypeEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactDetailsResourceSourceEnum = exports.ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = exports.ReachV1CampaignsCreatedCampaignResourceTypeEnum = exports.ReachV1CampaignsCreatedCampaignResourceStatusEnum = exports.ReachV1CampaignsCampaignResourceTypeEnum = exports.ReachV1CampaignsCampaignResourceStatusEnum = exports.ReachV1CampaignsCampaignDetailsResourceTypeEnum = exports.ReachV1CampaignsCampaignDetailsResourceStatusEnum = exports.ReachV1AutomationsStepsAutomationStepResourceValueEnum = exports.ReachV1AutomationsStepsAutomationStepResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceStatusEnum = void 0;
|
|
25
|
+
exports.AgencyHostingMetricsApiFactory = exports.AgencyHostingMetricsApiFp = exports.AgencyHostingMetricsApiAxiosParamCreator = exports.AgencyHostingFilesApi = exports.AgencyHostingFilesApiFactory = exports.AgencyHostingFilesApiFp = exports.AgencyHostingFilesApiAxiosParamCreator = exports.AgencyHostingDomainsApi = exports.AgencyHostingDomainsApiFactory = exports.AgencyHostingDomainsApiFp = exports.AgencyHostingDomainsApiAxiosParamCreator = exports.AgencyHostingDatacentersApi = exports.AgencyHostingDatacentersApiFactory = exports.AgencyHostingDatacentersApiFp = exports.AgencyHostingDatacentersApiAxiosParamCreator = exports.AgencyHostingDatabasesApi = exports.AgencyHostingDatabasesApiFactory = exports.AgencyHostingDatabasesApiFp = exports.AgencyHostingDatabasesApiAxiosParamCreator = exports.AgencyHostingCronJobsApi = exports.AgencyHostingCronJobsApiFactory = exports.AgencyHostingCronJobsApiFp = exports.AgencyHostingCronJobsApiAxiosParamCreator = exports.AgencyHostingCacheApi = exports.AgencyHostingCacheApiFactory = exports.AgencyHostingCacheApiFp = exports.AgencyHostingCacheApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = exports.WordPressV1McpExecuteMcpToolRequestServerEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = exports.WordPressV1InstallationsInstallWordPressRequestTypeEnum = exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = exports.WordPressV1ContentGenerationResourceStatusEnum = exports.WordPressV1ContentGenerationResourceTypeEnum = exports.WordPressV1ContentGenerateImagesRequestImageTypeEnum = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = void 0;
|
|
26
|
+
exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.AgentReadinessScansApi = exports.AgentReadinessScansApiFactory = exports.AgentReadinessScansApiFp = exports.AgentReadinessScansApiAxiosParamCreator = exports.AgentReadinessChecksApi = exports.AgentReadinessChecksApiFactory = exports.AgentReadinessChecksApiFp = exports.AgentReadinessChecksApiAxiosParamCreator = exports.AgencyHostingWordPressApi = exports.AgencyHostingWordPressApiFactory = exports.AgencyHostingWordPressApiFp = exports.AgencyHostingWordPressApiAxiosParamCreator = exports.ListAgencyPlanWebsitesV1WebsiteTypesEnum = exports.ListAgencyPlanWebsitesV1StatesEnum = exports.AgencyHostingWebsitesApi = exports.AgencyHostingWebsitesApiFactory = exports.AgencyHostingWebsitesApiFp = exports.AgencyHostingWebsitesApiAxiosParamCreator = exports.AgencyHostingWebsiteSetupsApi = exports.AgencyHostingWebsiteSetupsApiFactory = exports.AgencyHostingWebsiteSetupsApiFp = exports.AgencyHostingWebsiteSetupsApiAxiosParamCreator = exports.AgencyHostingSSLApi = exports.AgencyHostingSSLApiFactory = exports.AgencyHostingSSLApiFp = exports.AgencyHostingSSLApiAxiosParamCreator = exports.AgencyHostingPHPApi = exports.AgencyHostingPHPApiFactory = exports.AgencyHostingPHPApiFp = exports.AgencyHostingPHPApiAxiosParamCreator = exports.AgencyHostingOrdersApi = exports.AgencyHostingOrdersApiFactory = exports.AgencyHostingOrdersApiFp = exports.AgencyHostingOrdersApiAxiosParamCreator = exports.ListOrderResourceUsageMetricsV1TimeFrameHoursEnum = exports.ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum = exports.AgencyHostingMetricsApi = void 0;
|
|
27
|
+
exports.EcommerceOrdersApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.ListDiscountsV1IsDisabledEnum = exports.EcommerceDiscountsApi = exports.EcommerceDiscountsApiFactory = exports.EcommerceDiscountsApiFp = exports.EcommerceDiscountsApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsTransferApi = exports.DomainsTransferApiFactory = exports.DomainsTransferApiFp = exports.DomainsTransferApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsMoveApi = exports.DomainsMoveApiFactory = exports.DomainsMoveApiFp = exports.DomainsMoveApiAxiosParamCreator = 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 = void 0;
|
|
28
|
+
exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HostingCacheApi = exports.HostingCacheApiFactory = exports.HostingCacheApiFp = exports.HostingCacheApiAxiosParamCreator = exports.HostingCDNApi = exports.HostingCDNApiFactory = exports.HostingCDNApiFp = exports.HostingCDNApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.ListProductsV1IncludeEnum = exports.ListProductsV1StatusEnum = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommerceProductVariantsApi = exports.EcommerceProductVariantsApiFactory = exports.EcommerceProductVariantsApiFp = exports.EcommerceProductVariantsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.ListStoreOrdersV1FulfillmentStatusEnum = exports.ListStoreOrdersV1PaymentStatusEnum = exports.ListStoreOrdersV1StatusEnum = exports.EcommerceOrdersApi = exports.EcommerceOrdersApiFactory = exports.EcommerceOrdersApiFp = void 0;
|
|
29
|
+
exports.HostingSSLApi = exports.HostingSSLApiFactory = exports.HostingSSLApiFp = exports.HostingSSLApiAxiosParamCreator = exports.HostingRedirectsApi = exports.HostingRedirectsApiFactory = exports.HostingRedirectsApiFp = exports.HostingRedirectsApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = exports.GetNodeJsRuntimeLogsV1LevelsEnum = exports.GetNodeJsRuntimeLogsV1PeriodEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingHeadlessApi = exports.HostingHeadlessApiFactory = exports.HostingHeadlessApiFp = exports.HostingHeadlessApiAxiosParamCreator = exports.ListGitInstallationsV1StatusEnum = exports.ListGitInstallationsV1ProviderEnum = exports.HostingGitApi = exports.HostingGitApiFactory = exports.HostingGitApiFp = exports.HostingGitApiAxiosParamCreator = exports.ListWebsiteFilesAndDirectoriesV1FileTypesEnum = exports.HostingFilesApi = exports.HostingFilesApiFactory = exports.HostingFilesApiFp = exports.HostingFilesApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = void 0;
|
|
30
|
+
exports.MailWebhooksApi = exports.MailWebhooksApiFactory = exports.MailWebhooksApiFp = exports.MailWebhooksApiAxiosParamCreator = exports.ListOrdersV1SortEnum = exports.ListOrdersV1StatusEnum = exports.MailOrdersApi = exports.MailOrdersApiFactory = exports.MailOrdersApiFp = exports.MailOrdersApiAxiosParamCreator = exports.ListMailboxesV1SortEnum = exports.MailMailboxesApi = exports.MailMailboxesApiFactory = exports.MailMailboxesApiFp = exports.MailMailboxesApiAxiosParamCreator = exports.ListOutboundLogsV1StatusEnum = exports.ListMailboxActionLogsV1EventEnum = exports.ListInboundLogsV1StatusEnum = exports.ListActionLogsV1StatusEnum = exports.ListAccessLogsV1ProtocolEnum = exports.ListAccessLogsV1StatusEnum = exports.MailLogsApi = exports.MailLogsApiFactory = exports.MailLogsApiFp = exports.MailLogsApiAxiosParamCreator = exports.MailForwardersApi = exports.MailForwardersApiFactory = exports.MailForwardersApiFp = exports.MailForwardersApiAxiosParamCreator = exports.MailCatchallsApi = exports.MailCatchallsApiFactory = exports.MailCatchallsApiFp = exports.MailCatchallsApiAxiosParamCreator = exports.MailAutorepliesApi = exports.MailAutorepliesApiFactory = exports.MailAutorepliesApiFp = exports.MailAutorepliesApiAxiosParamCreator = exports.MailAliasesApi = exports.MailAliasesApiFactory = exports.MailAliasesApiFp = exports.MailAliasesApiAxiosParamCreator = exports.MailAPITokensApi = exports.MailAPITokensApiFactory = exports.MailAPITokensApiFp = exports.MailAPITokensApiAxiosParamCreator = exports.ListWebsitesV1WebsiteTypesEnum = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = void 0;
|
|
31
|
+
exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachTemplatesApi = exports.ReachTemplatesApiFactory = exports.ReachTemplatesApiFp = exports.ReachTemplatesApiAxiosParamCreator = exports.ReachTagsApi = exports.ReachTagsApiFactory = exports.ReachTagsApiFp = exports.ReachTagsApiAxiosParamCreator = exports.ListProfileSegmentsV1CountTypeEnum = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListFormsV1StatusEnum = exports.ReachFormsApi = exports.ReachFormsApiFactory = exports.ReachFormsApiFp = exports.ReachFormsApiAxiosParamCreator = exports.ListProfileContactsV1SubscriptionStatusEnum = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ReachContactFieldsApi = exports.ReachContactFieldsApiFactory = exports.ReachContactFieldsApiFp = exports.ReachContactFieldsApiAxiosParamCreator = exports.ListCampaignsV1SortDirectionEnum = exports.ListCampaignsV1TypeEnum = exports.ListCampaignsV1StatusEnum = exports.ReachCampaignsApi = exports.ReachCampaignsApiFactory = exports.ReachCampaignsApiFp = exports.ReachCampaignsApiAxiosParamCreator = exports.ListAutomationsV1SortDirectionEnum = exports.ListAutomationsV1StatusEnum = exports.ReachAutomationsApi = exports.ReachAutomationsApiFactory = exports.ReachAutomationsApiFp = exports.ReachAutomationsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = void 0;
|
|
32
|
+
exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSSSHKeysApi = exports.VPSSSHKeysApiFactory = exports.VPSSSHKeysApiFp = exports.VPSSSHKeysApiAxiosParamCreator = 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 = void 0;
|
|
33
|
+
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.GetGenerationResultV1TypeEnum = exports.WordPressAIContentApi = exports.WordPressAIContentApiFactory = exports.WordPressAIContentApiFp = exports.WordPressAIContentApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = void 0;
|
|
34
34
|
const axios_1 = require("axios");
|
|
35
35
|
// Some imports not used depending on template conditions
|
|
36
36
|
// @ts-ignore
|
|
@@ -1043,6 +1043,15 @@ exports.ReachV1FormsFormTagResourceTypeEnum = {
|
|
|
1043
1043
|
Import: 'import',
|
|
1044
1044
|
System: 'system'
|
|
1045
1045
|
};
|
|
1046
|
+
exports.ReachV1FormsFormTemplateVersionResourceEditTypeEnum = {
|
|
1047
|
+
Manual: 'manual',
|
|
1048
|
+
Ai: 'ai'
|
|
1049
|
+
};
|
|
1050
|
+
exports.ReachV1FormsUpdateRequestStatusEnum = {
|
|
1051
|
+
Active: 'active',
|
|
1052
|
+
Paused: 'paused',
|
|
1053
|
+
Draft: 'draft'
|
|
1054
|
+
};
|
|
1046
1055
|
exports.ReachV1ProfilesDomainsSendingDomainResourceStatusEnum = {
|
|
1047
1056
|
Active: 'active',
|
|
1048
1057
|
Inactive: 'inactive',
|
|
@@ -12789,6 +12798,344 @@ class HorizonsWebsitesApi extends base_1.BaseAPI {
|
|
|
12789
12798
|
}
|
|
12790
12799
|
}
|
|
12791
12800
|
exports.HorizonsWebsitesApi = HorizonsWebsitesApi;
|
|
12801
|
+
/**
|
|
12802
|
+
* HostingCDNApi - axios parameter creator
|
|
12803
|
+
* @export
|
|
12804
|
+
*/
|
|
12805
|
+
const HostingCDNApiAxiosParamCreator = function (configuration) {
|
|
12806
|
+
return {
|
|
12807
|
+
/**
|
|
12808
|
+
* Turns off the Hostinger CDN for the website domain. Once DNS propagation completes, the website content is served directly from the origin server. Repeating the call is safe; when CDN is already disabled, it applies the DNS change again. Returns 422 for platform-managed domains (for example `*.hostingersite.com` and `*.app-preview.com`), where CDN cannot be disabled, even when CDN is already off. Also returns 422 while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
|
|
12809
|
+
* @summary Disable CDN
|
|
12810
|
+
* @param {string} username
|
|
12811
|
+
* @param {string} domain Domain name
|
|
12812
|
+
* @param {*} [options] Override http request option.
|
|
12813
|
+
* @throws {RequiredError}
|
|
12814
|
+
*/
|
|
12815
|
+
disableCDNV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
12816
|
+
// verify required parameter 'username' is not null or undefined
|
|
12817
|
+
(0, common_1.assertParamExists)('disableCDNV1', 'username', username);
|
|
12818
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12819
|
+
(0, common_1.assertParamExists)('disableCDNV1', 'domain', domain);
|
|
12820
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cdn/disable`
|
|
12821
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12822
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12823
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12824
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12825
|
+
let baseOptions;
|
|
12826
|
+
if (configuration) {
|
|
12827
|
+
baseOptions = configuration.baseOptions;
|
|
12828
|
+
}
|
|
12829
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12830
|
+
const localVarHeaderParameter = {};
|
|
12831
|
+
const localVarQueryParameter = {};
|
|
12832
|
+
// authentication apiToken required
|
|
12833
|
+
// http bearer authentication required
|
|
12834
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12835
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12836
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12837
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12838
|
+
return {
|
|
12839
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12840
|
+
options: localVarRequestOptions,
|
|
12841
|
+
};
|
|
12842
|
+
}),
|
|
12843
|
+
/**
|
|
12844
|
+
* Turns on the Hostinger CDN for the website domain, which speeds up page loads and reduces the load on the server. Works for the main domain, parked domains and subdomains of the account. Enabling changes the domain\'s DNS records and usually takes a few seconds. After that, DNS propagation can take a few more minutes before visitors are served through the CDN. Repeating the call is safe, for example after a timeout. When CDN is already enabled, it applies the DNS change again and refreshes the CDN SSL certificate. Returns 422 when the account is disabled, while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
|
|
12845
|
+
* @summary Enable CDN
|
|
12846
|
+
* @param {string} username
|
|
12847
|
+
* @param {string} domain Domain name
|
|
12848
|
+
* @param {*} [options] Override http request option.
|
|
12849
|
+
* @throws {RequiredError}
|
|
12850
|
+
*/
|
|
12851
|
+
enableCDNV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
12852
|
+
// verify required parameter 'username' is not null or undefined
|
|
12853
|
+
(0, common_1.assertParamExists)('enableCDNV1', 'username', username);
|
|
12854
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12855
|
+
(0, common_1.assertParamExists)('enableCDNV1', 'domain', domain);
|
|
12856
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cdn/enable`
|
|
12857
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12858
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12859
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12860
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12861
|
+
let baseOptions;
|
|
12862
|
+
if (configuration) {
|
|
12863
|
+
baseOptions = configuration.baseOptions;
|
|
12864
|
+
}
|
|
12865
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12866
|
+
const localVarHeaderParameter = {};
|
|
12867
|
+
const localVarQueryParameter = {};
|
|
12868
|
+
// authentication apiToken required
|
|
12869
|
+
// http bearer authentication required
|
|
12870
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12871
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12872
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12873
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12874
|
+
return {
|
|
12875
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12876
|
+
options: localVarRequestOptions,
|
|
12877
|
+
};
|
|
12878
|
+
}),
|
|
12879
|
+
/**
|
|
12880
|
+
* Returns whether the Hostinger CDN is enabled for the website domain. Works for the main domain, parked domains and subdomains of the account. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
12881
|
+
* @summary Get CDN status
|
|
12882
|
+
* @param {string} username
|
|
12883
|
+
* @param {string} domain Domain name
|
|
12884
|
+
* @param {*} [options] Override http request option.
|
|
12885
|
+
* @throws {RequiredError}
|
|
12886
|
+
*/
|
|
12887
|
+
getCDNStatusV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
12888
|
+
// verify required parameter 'username' is not null or undefined
|
|
12889
|
+
(0, common_1.assertParamExists)('getCDNStatusV1', 'username', username);
|
|
12890
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12891
|
+
(0, common_1.assertParamExists)('getCDNStatusV1', 'domain', domain);
|
|
12892
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cdn/status`
|
|
12893
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12894
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12895
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12896
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12897
|
+
let baseOptions;
|
|
12898
|
+
if (configuration) {
|
|
12899
|
+
baseOptions = configuration.baseOptions;
|
|
12900
|
+
}
|
|
12901
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12902
|
+
const localVarHeaderParameter = {};
|
|
12903
|
+
const localVarQueryParameter = {};
|
|
12904
|
+
// authentication apiToken required
|
|
12905
|
+
// http bearer authentication required
|
|
12906
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12907
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12908
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12909
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12910
|
+
return {
|
|
12911
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12912
|
+
options: localVarRequestOptions,
|
|
12913
|
+
};
|
|
12914
|
+
}),
|
|
12915
|
+
/**
|
|
12916
|
+
* Purges the website\'s content from the Hostinger CDN edge cache only. The origin server cache is not touched; to clear both, use `Clear website cache`. Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a website on the account.
|
|
12917
|
+
* @summary Purge CDN cache
|
|
12918
|
+
* @param {string} username
|
|
12919
|
+
* @param {string} domain Domain name
|
|
12920
|
+
* @param {*} [options] Override http request option.
|
|
12921
|
+
* @throws {RequiredError}
|
|
12922
|
+
*/
|
|
12923
|
+
purgeCDNCacheV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
12924
|
+
// verify required parameter 'username' is not null or undefined
|
|
12925
|
+
(0, common_1.assertParamExists)('purgeCDNCacheV1', 'username', username);
|
|
12926
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12927
|
+
(0, common_1.assertParamExists)('purgeCDNCacheV1', 'domain', domain);
|
|
12928
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cdn/purge`
|
|
12929
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12930
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12931
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12932
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12933
|
+
let baseOptions;
|
|
12934
|
+
if (configuration) {
|
|
12935
|
+
baseOptions = configuration.baseOptions;
|
|
12936
|
+
}
|
|
12937
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
12938
|
+
const localVarHeaderParameter = {};
|
|
12939
|
+
const localVarQueryParameter = {};
|
|
12940
|
+
// authentication apiToken required
|
|
12941
|
+
// http bearer authentication required
|
|
12942
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12943
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12944
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12945
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12946
|
+
return {
|
|
12947
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12948
|
+
options: localVarRequestOptions,
|
|
12949
|
+
};
|
|
12950
|
+
}),
|
|
12951
|
+
};
|
|
12952
|
+
};
|
|
12953
|
+
exports.HostingCDNApiAxiosParamCreator = HostingCDNApiAxiosParamCreator;
|
|
12954
|
+
/**
|
|
12955
|
+
* HostingCDNApi - functional programming interface
|
|
12956
|
+
* @export
|
|
12957
|
+
*/
|
|
12958
|
+
const HostingCDNApiFp = function (configuration) {
|
|
12959
|
+
const localVarAxiosParamCreator = (0, exports.HostingCDNApiAxiosParamCreator)(configuration);
|
|
12960
|
+
return {
|
|
12961
|
+
/**
|
|
12962
|
+
* Turns off the Hostinger CDN for the website domain. Once DNS propagation completes, the website content is served directly from the origin server. Repeating the call is safe; when CDN is already disabled, it applies the DNS change again. Returns 422 for platform-managed domains (for example `*.hostingersite.com` and `*.app-preview.com`), where CDN cannot be disabled, even when CDN is already off. Also returns 422 while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
|
|
12963
|
+
* @summary Disable CDN
|
|
12964
|
+
* @param {string} username
|
|
12965
|
+
* @param {string} domain Domain name
|
|
12966
|
+
* @param {*} [options] Override http request option.
|
|
12967
|
+
* @throws {RequiredError}
|
|
12968
|
+
*/
|
|
12969
|
+
disableCDNV1(username, domain, options) {
|
|
12970
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12971
|
+
var _a, _b;
|
|
12972
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disableCDNV1(username, domain, options);
|
|
12973
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCDNApi.disableCDNV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12974
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12975
|
+
});
|
|
12976
|
+
},
|
|
12977
|
+
/**
|
|
12978
|
+
* Turns on the Hostinger CDN for the website domain, which speeds up page loads and reduces the load on the server. Works for the main domain, parked domains and subdomains of the account. Enabling changes the domain\'s DNS records and usually takes a few seconds. After that, DNS propagation can take a few more minutes before visitors are served through the CDN. Repeating the call is safe, for example after a timeout. When CDN is already enabled, it applies the DNS change again and refreshes the CDN SSL certificate. Returns 422 when the account is disabled, while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
|
|
12979
|
+
* @summary Enable CDN
|
|
12980
|
+
* @param {string} username
|
|
12981
|
+
* @param {string} domain Domain name
|
|
12982
|
+
* @param {*} [options] Override http request option.
|
|
12983
|
+
* @throws {RequiredError}
|
|
12984
|
+
*/
|
|
12985
|
+
enableCDNV1(username, domain, options) {
|
|
12986
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12987
|
+
var _a, _b;
|
|
12988
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.enableCDNV1(username, domain, options);
|
|
12989
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCDNApi.enableCDNV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12990
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12991
|
+
});
|
|
12992
|
+
},
|
|
12993
|
+
/**
|
|
12994
|
+
* Returns whether the Hostinger CDN is enabled for the website domain. Works for the main domain, parked domains and subdomains of the account. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
12995
|
+
* @summary Get CDN status
|
|
12996
|
+
* @param {string} username
|
|
12997
|
+
* @param {string} domain Domain name
|
|
12998
|
+
* @param {*} [options] Override http request option.
|
|
12999
|
+
* @throws {RequiredError}
|
|
13000
|
+
*/
|
|
13001
|
+
getCDNStatusV1(username, domain, options) {
|
|
13002
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13003
|
+
var _a, _b;
|
|
13004
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCDNStatusV1(username, domain, options);
|
|
13005
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCDNApi.getCDNStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13006
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13007
|
+
});
|
|
13008
|
+
},
|
|
13009
|
+
/**
|
|
13010
|
+
* Purges the website\'s content from the Hostinger CDN edge cache only. The origin server cache is not touched; to clear both, use `Clear website cache`. Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a website on the account.
|
|
13011
|
+
* @summary Purge CDN cache
|
|
13012
|
+
* @param {string} username
|
|
13013
|
+
* @param {string} domain Domain name
|
|
13014
|
+
* @param {*} [options] Override http request option.
|
|
13015
|
+
* @throws {RequiredError}
|
|
13016
|
+
*/
|
|
13017
|
+
purgeCDNCacheV1(username, domain, options) {
|
|
13018
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13019
|
+
var _a, _b;
|
|
13020
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.purgeCDNCacheV1(username, domain, options);
|
|
13021
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCDNApi.purgeCDNCacheV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13022
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13023
|
+
});
|
|
13024
|
+
},
|
|
13025
|
+
};
|
|
13026
|
+
};
|
|
13027
|
+
exports.HostingCDNApiFp = HostingCDNApiFp;
|
|
13028
|
+
/**
|
|
13029
|
+
* HostingCDNApi - factory interface
|
|
13030
|
+
* @export
|
|
13031
|
+
*/
|
|
13032
|
+
const HostingCDNApiFactory = function (configuration, basePath, axios) {
|
|
13033
|
+
const localVarFp = (0, exports.HostingCDNApiFp)(configuration);
|
|
13034
|
+
return {
|
|
13035
|
+
/**
|
|
13036
|
+
* Turns off the Hostinger CDN for the website domain. Once DNS propagation completes, the website content is served directly from the origin server. Repeating the call is safe; when CDN is already disabled, it applies the DNS change again. Returns 422 for platform-managed domains (for example `*.hostingersite.com` and `*.app-preview.com`), where CDN cannot be disabled, even when CDN is already off. Also returns 422 while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
|
|
13037
|
+
* @summary Disable CDN
|
|
13038
|
+
* @param {string} username
|
|
13039
|
+
* @param {string} domain Domain name
|
|
13040
|
+
* @param {*} [options] Override http request option.
|
|
13041
|
+
* @throws {RequiredError}
|
|
13042
|
+
*/
|
|
13043
|
+
disableCDNV1(username, domain, options) {
|
|
13044
|
+
return localVarFp.disableCDNV1(username, domain, options).then((request) => request(axios, basePath));
|
|
13045
|
+
},
|
|
13046
|
+
/**
|
|
13047
|
+
* Turns on the Hostinger CDN for the website domain, which speeds up page loads and reduces the load on the server. Works for the main domain, parked domains and subdomains of the account. Enabling changes the domain\'s DNS records and usually takes a few seconds. After that, DNS propagation can take a few more minutes before visitors are served through the CDN. Repeating the call is safe, for example after a timeout. When CDN is already enabled, it applies the DNS change again and refreshes the CDN SSL certificate. Returns 422 when the account is disabled, while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
|
|
13048
|
+
* @summary Enable CDN
|
|
13049
|
+
* @param {string} username
|
|
13050
|
+
* @param {string} domain Domain name
|
|
13051
|
+
* @param {*} [options] Override http request option.
|
|
13052
|
+
* @throws {RequiredError}
|
|
13053
|
+
*/
|
|
13054
|
+
enableCDNV1(username, domain, options) {
|
|
13055
|
+
return localVarFp.enableCDNV1(username, domain, options).then((request) => request(axios, basePath));
|
|
13056
|
+
},
|
|
13057
|
+
/**
|
|
13058
|
+
* Returns whether the Hostinger CDN is enabled for the website domain. Works for the main domain, parked domains and subdomains of the account. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
13059
|
+
* @summary Get CDN status
|
|
13060
|
+
* @param {string} username
|
|
13061
|
+
* @param {string} domain Domain name
|
|
13062
|
+
* @param {*} [options] Override http request option.
|
|
13063
|
+
* @throws {RequiredError}
|
|
13064
|
+
*/
|
|
13065
|
+
getCDNStatusV1(username, domain, options) {
|
|
13066
|
+
return localVarFp.getCDNStatusV1(username, domain, options).then((request) => request(axios, basePath));
|
|
13067
|
+
},
|
|
13068
|
+
/**
|
|
13069
|
+
* Purges the website\'s content from the Hostinger CDN edge cache only. The origin server cache is not touched; to clear both, use `Clear website cache`. Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a website on the account.
|
|
13070
|
+
* @summary Purge CDN cache
|
|
13071
|
+
* @param {string} username
|
|
13072
|
+
* @param {string} domain Domain name
|
|
13073
|
+
* @param {*} [options] Override http request option.
|
|
13074
|
+
* @throws {RequiredError}
|
|
13075
|
+
*/
|
|
13076
|
+
purgeCDNCacheV1(username, domain, options) {
|
|
13077
|
+
return localVarFp.purgeCDNCacheV1(username, domain, options).then((request) => request(axios, basePath));
|
|
13078
|
+
},
|
|
13079
|
+
};
|
|
13080
|
+
};
|
|
13081
|
+
exports.HostingCDNApiFactory = HostingCDNApiFactory;
|
|
13082
|
+
/**
|
|
13083
|
+
* HostingCDNApi - object-oriented interface
|
|
13084
|
+
* @export
|
|
13085
|
+
* @class HostingCDNApi
|
|
13086
|
+
* @extends {BaseAPI}
|
|
13087
|
+
*/
|
|
13088
|
+
class HostingCDNApi extends base_1.BaseAPI {
|
|
13089
|
+
/**
|
|
13090
|
+
* Turns off the Hostinger CDN for the website domain. Once DNS propagation completes, the website content is served directly from the origin server. Repeating the call is safe; when CDN is already disabled, it applies the DNS change again. Returns 422 for platform-managed domains (for example `*.hostingersite.com` and `*.app-preview.com`), where CDN cannot be disabled, even when CDN is already off. Also returns 422 while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
|
|
13091
|
+
* @summary Disable CDN
|
|
13092
|
+
* @param {string} username
|
|
13093
|
+
* @param {string} domain Domain name
|
|
13094
|
+
* @param {*} [options] Override http request option.
|
|
13095
|
+
* @throws {RequiredError}
|
|
13096
|
+
* @memberof HostingCDNApi
|
|
13097
|
+
*/
|
|
13098
|
+
disableCDNV1(username, domain, options) {
|
|
13099
|
+
return (0, exports.HostingCDNApiFp)(this.configuration).disableCDNV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
13100
|
+
}
|
|
13101
|
+
/**
|
|
13102
|
+
* Turns on the Hostinger CDN for the website domain, which speeds up page loads and reduces the load on the server. Works for the main domain, parked domains and subdomains of the account. Enabling changes the domain\'s DNS records and usually takes a few seconds. After that, DNS propagation can take a few more minutes before visitors are served through the CDN. Repeating the call is safe, for example after a timeout. When CDN is already enabled, it applies the DNS change again and refreshes the CDN SSL certificate. Returns 422 when the account is disabled, while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
|
|
13103
|
+
* @summary Enable CDN
|
|
13104
|
+
* @param {string} username
|
|
13105
|
+
* @param {string} domain Domain name
|
|
13106
|
+
* @param {*} [options] Override http request option.
|
|
13107
|
+
* @throws {RequiredError}
|
|
13108
|
+
* @memberof HostingCDNApi
|
|
13109
|
+
*/
|
|
13110
|
+
enableCDNV1(username, domain, options) {
|
|
13111
|
+
return (0, exports.HostingCDNApiFp)(this.configuration).enableCDNV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
13112
|
+
}
|
|
13113
|
+
/**
|
|
13114
|
+
* Returns whether the Hostinger CDN is enabled for the website domain. Works for the main domain, parked domains and subdomains of the account. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
|
|
13115
|
+
* @summary Get CDN status
|
|
13116
|
+
* @param {string} username
|
|
13117
|
+
* @param {string} domain Domain name
|
|
13118
|
+
* @param {*} [options] Override http request option.
|
|
13119
|
+
* @throws {RequiredError}
|
|
13120
|
+
* @memberof HostingCDNApi
|
|
13121
|
+
*/
|
|
13122
|
+
getCDNStatusV1(username, domain, options) {
|
|
13123
|
+
return (0, exports.HostingCDNApiFp)(this.configuration).getCDNStatusV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
13124
|
+
}
|
|
13125
|
+
/**
|
|
13126
|
+
* Purges the website\'s content from the Hostinger CDN edge cache only. The origin server cache is not touched; to clear both, use `Clear website cache`. Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a website on the account.
|
|
13127
|
+
* @summary Purge CDN cache
|
|
13128
|
+
* @param {string} username
|
|
13129
|
+
* @param {string} domain Domain name
|
|
13130
|
+
* @param {*} [options] Override http request option.
|
|
13131
|
+
* @throws {RequiredError}
|
|
13132
|
+
* @memberof HostingCDNApi
|
|
13133
|
+
*/
|
|
13134
|
+
purgeCDNCacheV1(username, domain, options) {
|
|
13135
|
+
return (0, exports.HostingCDNApiFp)(this.configuration).purgeCDNCacheV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
13136
|
+
}
|
|
13137
|
+
}
|
|
13138
|
+
exports.HostingCDNApi = HostingCDNApi;
|
|
12792
13139
|
/**
|
|
12793
13140
|
* HostingCacheApi - axios parameter creator
|
|
12794
13141
|
* @export
|
|
@@ -12796,7 +13143,7 @@ exports.HorizonsWebsitesApi = HorizonsWebsitesApi;
|
|
|
12796
13143
|
const HostingCacheApiAxiosParamCreator = function (configuration) {
|
|
12797
13144
|
return {
|
|
12798
13145
|
/**
|
|
12799
|
-
* Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
13146
|
+
* Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. To purge only the CDN cache and leave the server cache untouched, use `Purge CDN cache`. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
12800
13147
|
* @summary Clear website cache
|
|
12801
13148
|
* @param {string} username
|
|
12802
13149
|
* @param {string} domain Domain name
|
|
@@ -12928,7 +13275,7 @@ const HostingCacheApiFp = function (configuration) {
|
|
|
12928
13275
|
const localVarAxiosParamCreator = (0, exports.HostingCacheApiAxiosParamCreator)(configuration);
|
|
12929
13276
|
return {
|
|
12930
13277
|
/**
|
|
12931
|
-
* Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
13278
|
+
* Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. To purge only the CDN cache and leave the server cache untouched, use `Purge CDN cache`. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
12932
13279
|
* @summary Clear website cache
|
|
12933
13280
|
* @param {string} username
|
|
12934
13281
|
* @param {string} domain Domain name
|
|
@@ -12989,7 +13336,7 @@ const HostingCacheApiFactory = function (configuration, basePath, axios) {
|
|
|
12989
13336
|
const localVarFp = (0, exports.HostingCacheApiFp)(configuration);
|
|
12990
13337
|
return {
|
|
12991
13338
|
/**
|
|
12992
|
-
* Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
13339
|
+
* Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. To purge only the CDN cache and leave the server cache untouched, use `Purge CDN cache`. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
12993
13340
|
* @summary Clear website cache
|
|
12994
13341
|
* @param {string} username
|
|
12995
13342
|
* @param {string} domain Domain name
|
|
@@ -13035,7 +13382,7 @@ exports.HostingCacheApiFactory = HostingCacheApiFactory;
|
|
|
13035
13382
|
*/
|
|
13036
13383
|
class HostingCacheApi extends base_1.BaseAPI {
|
|
13037
13384
|
/**
|
|
13038
|
-
* Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
13385
|
+
* Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. To purge only the CDN cache and leave the server cache untouched, use `Purge CDN cache`. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
13039
13386
|
* @summary Clear website cache
|
|
13040
13387
|
* @param {string} username
|
|
13041
13388
|
* @param {string} domain Domain name
|
|
@@ -24786,19 +25133,22 @@ exports.ListProfileContactsV1SubscriptionStatusEnum = {
|
|
|
24786
25133
|
const ReachFormsApiAxiosParamCreator = function (configuration) {
|
|
24787
25134
|
return {
|
|
24788
25135
|
/**
|
|
24789
|
-
*
|
|
24790
|
-
* @summary
|
|
25136
|
+
* Add tags to a form so that every contact who submits it from now on receives them. A tag the form already has is skipped; an unknown tag is rejected. Contacts who submitted earlier are not tagged.
|
|
25137
|
+
* @summary Add form submitter tags
|
|
24791
25138
|
* @param {string} profileUuid Profile uuid parameter
|
|
24792
25139
|
* @param {string} formUuid Form uuid parameter
|
|
25140
|
+
* @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
|
|
24793
25141
|
* @param {*} [options] Override http request option.
|
|
24794
25142
|
* @throws {RequiredError}
|
|
24795
25143
|
*/
|
|
24796
|
-
|
|
25144
|
+
addFormSubmitterTagsV1: (profileUuid_1, formUuid_1, reachV1FormsAssignTagsRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, formUuid_1, reachV1FormsAssignTagsRequest_1, ...args_1], void 0, function* (profileUuid, formUuid, reachV1FormsAssignTagsRequest, options = {}) {
|
|
24797
25145
|
// verify required parameter 'profileUuid' is not null or undefined
|
|
24798
|
-
(0, common_1.assertParamExists)('
|
|
25146
|
+
(0, common_1.assertParamExists)('addFormSubmitterTagsV1', 'profileUuid', profileUuid);
|
|
24799
25147
|
// verify required parameter 'formUuid' is not null or undefined
|
|
24800
|
-
(0, common_1.assertParamExists)('
|
|
24801
|
-
|
|
25148
|
+
(0, common_1.assertParamExists)('addFormSubmitterTagsV1', 'formUuid', formUuid);
|
|
25149
|
+
// verify required parameter 'reachV1FormsAssignTagsRequest' is not null or undefined
|
|
25150
|
+
(0, common_1.assertParamExists)('addFormSubmitterTagsV1', 'reachV1FormsAssignTagsRequest', reachV1FormsAssignTagsRequest);
|
|
25151
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms/{formUuid}/tags`
|
|
24802
25152
|
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
24803
25153
|
.replace(`{${"formUuid"}}`, encodeURIComponent(String(formUuid)));
|
|
24804
25154
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -24807,7 +25157,118 @@ const ReachFormsApiAxiosParamCreator = function (configuration) {
|
|
|
24807
25157
|
if (configuration) {
|
|
24808
25158
|
baseOptions = configuration.baseOptions;
|
|
24809
25159
|
}
|
|
24810
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
25160
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
25161
|
+
const localVarHeaderParameter = {};
|
|
25162
|
+
const localVarQueryParameter = {};
|
|
25163
|
+
// authentication apiToken required
|
|
25164
|
+
// http bearer authentication required
|
|
25165
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
25166
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25167
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25168
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25169
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25170
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1FormsAssignTagsRequest, localVarRequestOptions, configuration);
|
|
25171
|
+
return {
|
|
25172
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25173
|
+
options: localVarRequestOptions,
|
|
25174
|
+
};
|
|
25175
|
+
}),
|
|
25176
|
+
/**
|
|
25177
|
+
* Create an empty draft form. Reach also adds an automatic `form:{name}` tag that every submitter receives. A draft has no design and is not reachable by visitors: save a design with the update form template operation, then take the form live by setting its status to `active`. Creating a form does not consume AI credits.
|
|
25178
|
+
* @summary Create form
|
|
25179
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25180
|
+
* @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
|
|
25181
|
+
* @param {*} [options] Override http request option.
|
|
25182
|
+
* @throws {RequiredError}
|
|
25183
|
+
*/
|
|
25184
|
+
createFormV1: (profileUuid_1, reachV1FormsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1FormsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1FormsStoreRequest, options = {}) {
|
|
25185
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25186
|
+
(0, common_1.assertParamExists)('createFormV1', 'profileUuid', profileUuid);
|
|
25187
|
+
// verify required parameter 'reachV1FormsStoreRequest' is not null or undefined
|
|
25188
|
+
(0, common_1.assertParamExists)('createFormV1', 'reachV1FormsStoreRequest', reachV1FormsStoreRequest);
|
|
25189
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms`
|
|
25190
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
25191
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25192
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25193
|
+
let baseOptions;
|
|
25194
|
+
if (configuration) {
|
|
25195
|
+
baseOptions = configuration.baseOptions;
|
|
25196
|
+
}
|
|
25197
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
25198
|
+
const localVarHeaderParameter = {};
|
|
25199
|
+
const localVarQueryParameter = {};
|
|
25200
|
+
// authentication apiToken required
|
|
25201
|
+
// http bearer authentication required
|
|
25202
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
25203
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25204
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25205
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25206
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25207
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1FormsStoreRequest, localVarRequestOptions, configuration);
|
|
25208
|
+
return {
|
|
25209
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25210
|
+
options: localVarRequestOptions,
|
|
25211
|
+
};
|
|
25212
|
+
}),
|
|
25213
|
+
/**
|
|
25214
|
+
* Permanently delete a form together with its template. A form that has already captured submissions cannot be deleted, so that the contacts it collected are never silently discarded - pause the form instead to stop it collecting new ones. Views alone do not block deletion.
|
|
25215
|
+
* @summary Delete form
|
|
25216
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25217
|
+
* @param {string} formUuid Form uuid parameter
|
|
25218
|
+
* @param {*} [options] Override http request option.
|
|
25219
|
+
* @throws {RequiredError}
|
|
25220
|
+
*/
|
|
25221
|
+
deleteFormV1: (profileUuid_1, formUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, formUuid_1, ...args_1], void 0, function* (profileUuid, formUuid, options = {}) {
|
|
25222
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25223
|
+
(0, common_1.assertParamExists)('deleteFormV1', 'profileUuid', profileUuid);
|
|
25224
|
+
// verify required parameter 'formUuid' is not null or undefined
|
|
25225
|
+
(0, common_1.assertParamExists)('deleteFormV1', 'formUuid', formUuid);
|
|
25226
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms/{formUuid}`
|
|
25227
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
25228
|
+
.replace(`{${"formUuid"}}`, encodeURIComponent(String(formUuid)));
|
|
25229
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25230
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25231
|
+
let baseOptions;
|
|
25232
|
+
if (configuration) {
|
|
25233
|
+
baseOptions = configuration.baseOptions;
|
|
25234
|
+
}
|
|
25235
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
25236
|
+
const localVarHeaderParameter = {};
|
|
25237
|
+
const localVarQueryParameter = {};
|
|
25238
|
+
// authentication apiToken required
|
|
25239
|
+
// http bearer authentication required
|
|
25240
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
25241
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25242
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25243
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25244
|
+
return {
|
|
25245
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25246
|
+
options: localVarRequestOptions,
|
|
25247
|
+
};
|
|
25248
|
+
}),
|
|
25249
|
+
/**
|
|
25250
|
+
* Copy a form into a new draft form with the same name and design. The copy shares the source\'s automatic `form:{name}` tag; other submitter tags are not copied. The copy is not live until its status is set to `active`.
|
|
25251
|
+
* @summary Duplicate form
|
|
25252
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25253
|
+
* @param {string} formUuid Form uuid parameter
|
|
25254
|
+
* @param {*} [options] Override http request option.
|
|
25255
|
+
* @throws {RequiredError}
|
|
25256
|
+
*/
|
|
25257
|
+
duplicateFormV1: (profileUuid_1, formUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, formUuid_1, ...args_1], void 0, function* (profileUuid, formUuid, options = {}) {
|
|
25258
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25259
|
+
(0, common_1.assertParamExists)('duplicateFormV1', 'profileUuid', profileUuid);
|
|
25260
|
+
// verify required parameter 'formUuid' is not null or undefined
|
|
25261
|
+
(0, common_1.assertParamExists)('duplicateFormV1', 'formUuid', formUuid);
|
|
25262
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms/{formUuid}/duplicate`
|
|
25263
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
25264
|
+
.replace(`{${"formUuid"}}`, encodeURIComponent(String(formUuid)));
|
|
25265
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25266
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25267
|
+
let baseOptions;
|
|
25268
|
+
if (configuration) {
|
|
25269
|
+
baseOptions = configuration.baseOptions;
|
|
25270
|
+
}
|
|
25271
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
24811
25272
|
const localVarHeaderParameter = {};
|
|
24812
25273
|
const localVarQueryParameter = {};
|
|
24813
25274
|
// authentication apiToken required
|
|
@@ -24863,10 +25324,11 @@ const ReachFormsApiAxiosParamCreator = function (configuration) {
|
|
|
24863
25324
|
* @param {string} profileUuid Profile uuid parameter
|
|
24864
25325
|
* @param {number} [page] Page number
|
|
24865
25326
|
* @param {number} [perPage] Number of items per page
|
|
25327
|
+
* @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
|
|
24866
25328
|
* @param {*} [options] Override http request option.
|
|
24867
25329
|
* @throws {RequiredError}
|
|
24868
25330
|
*/
|
|
24869
|
-
listFormsV1: (profileUuid_1, page_1, perPage_1, ...args_1) => __awaiter(this, [profileUuid_1, page_1, perPage_1, ...args_1], void 0, function* (profileUuid, page, perPage, options = {}) {
|
|
25331
|
+
listFormsV1: (profileUuid_1, page_1, perPage_1, status_1, ...args_1) => __awaiter(this, [profileUuid_1, page_1, perPage_1, status_1, ...args_1], void 0, function* (profileUuid, page, perPage, status, options = {}) {
|
|
24870
25332
|
// verify required parameter 'profileUuid' is not null or undefined
|
|
24871
25333
|
(0, common_1.assertParamExists)('listFormsV1', 'profileUuid', profileUuid);
|
|
24872
25334
|
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms`
|
|
@@ -24889,9 +25351,135 @@ const ReachFormsApiAxiosParamCreator = function (configuration) {
|
|
|
24889
25351
|
if (perPage !== undefined) {
|
|
24890
25352
|
localVarQueryParameter['per_page'] = perPage;
|
|
24891
25353
|
}
|
|
25354
|
+
if (status !== undefined) {
|
|
25355
|
+
localVarQueryParameter['status'] = status;
|
|
25356
|
+
}
|
|
25357
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25358
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25359
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25360
|
+
return {
|
|
25361
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25362
|
+
options: localVarRequestOptions,
|
|
25363
|
+
};
|
|
25364
|
+
}),
|
|
25365
|
+
/**
|
|
25366
|
+
* Stop a form from applying a tag to its future submitters. Succeeds also when the form did not have the tag. Contacts who already received the tag keep it, and the tag itself is not deleted. The automatic `form:{name}` tag cannot be removed and is rejected with a conflict.
|
|
25367
|
+
* @summary Remove form submitter tag
|
|
25368
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25369
|
+
* @param {string} formUuid Form uuid parameter
|
|
25370
|
+
* @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
|
|
25371
|
+
* @param {*} [options] Override http request option.
|
|
25372
|
+
* @throws {RequiredError}
|
|
25373
|
+
*/
|
|
25374
|
+
removeFormSubmitterTagV1: (profileUuid_1, formUuid_1, reachV1FormsRemoveTagRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, formUuid_1, reachV1FormsRemoveTagRequest_1, ...args_1], void 0, function* (profileUuid, formUuid, reachV1FormsRemoveTagRequest, options = {}) {
|
|
25375
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25376
|
+
(0, common_1.assertParamExists)('removeFormSubmitterTagV1', 'profileUuid', profileUuid);
|
|
25377
|
+
// verify required parameter 'formUuid' is not null or undefined
|
|
25378
|
+
(0, common_1.assertParamExists)('removeFormSubmitterTagV1', 'formUuid', formUuid);
|
|
25379
|
+
// verify required parameter 'reachV1FormsRemoveTagRequest' is not null or undefined
|
|
25380
|
+
(0, common_1.assertParamExists)('removeFormSubmitterTagV1', 'reachV1FormsRemoveTagRequest', reachV1FormsRemoveTagRequest);
|
|
25381
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms/{formUuid}/tags`
|
|
25382
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
25383
|
+
.replace(`{${"formUuid"}}`, encodeURIComponent(String(formUuid)));
|
|
25384
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25385
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25386
|
+
let baseOptions;
|
|
25387
|
+
if (configuration) {
|
|
25388
|
+
baseOptions = configuration.baseOptions;
|
|
25389
|
+
}
|
|
25390
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
25391
|
+
const localVarHeaderParameter = {};
|
|
25392
|
+
const localVarQueryParameter = {};
|
|
25393
|
+
// authentication apiToken required
|
|
25394
|
+
// http bearer authentication required
|
|
25395
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
25396
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25397
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25398
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25399
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25400
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1FormsRemoveTagRequest, localVarRequestOptions, configuration);
|
|
25401
|
+
return {
|
|
25402
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25403
|
+
options: localVarRequestOptions,
|
|
25404
|
+
};
|
|
25405
|
+
}),
|
|
25406
|
+
/**
|
|
25407
|
+
* Save `content` as the latest design of a form and return the stored version. The HTML is sanitized and, unless the plan allows removing it, the Reach signature is added. Visitors submit the form with an `email` field (required) and optional `name`, `surname` and `phone`. After sanitizing, the design must contain a form container (`data-reach-form`), an email input (`data-reach-field=\"email\"`) and a submit button (`data-reach-submit`); otherwise the request fails with `422` and `errors.content` lists `missing_form_container`, `missing_email_field` and/or `missing_submit_button`. A `draft` or `paused` form stays unreachable until its status is set to `active`, which publishes this design. On a form that is already `active` the saved design is not public until the form is paused and set to `active` again. Saving a design does not consume AI credits.
|
|
25408
|
+
* @summary Update form template
|
|
25409
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25410
|
+
* @param {string} formUuid Form uuid parameter
|
|
25411
|
+
* @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
|
|
25412
|
+
* @param {*} [options] Override http request option.
|
|
25413
|
+
* @throws {RequiredError}
|
|
25414
|
+
*/
|
|
25415
|
+
updateFormTemplateV1: (profileUuid_1, formUuid_1, reachV1FormsUpdateTemplateRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, formUuid_1, reachV1FormsUpdateTemplateRequest_1, ...args_1], void 0, function* (profileUuid, formUuid, reachV1FormsUpdateTemplateRequest, options = {}) {
|
|
25416
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25417
|
+
(0, common_1.assertParamExists)('updateFormTemplateV1', 'profileUuid', profileUuid);
|
|
25418
|
+
// verify required parameter 'formUuid' is not null or undefined
|
|
25419
|
+
(0, common_1.assertParamExists)('updateFormTemplateV1', 'formUuid', formUuid);
|
|
25420
|
+
// verify required parameter 'reachV1FormsUpdateTemplateRequest' is not null or undefined
|
|
25421
|
+
(0, common_1.assertParamExists)('updateFormTemplateV1', 'reachV1FormsUpdateTemplateRequest', reachV1FormsUpdateTemplateRequest);
|
|
25422
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms/{formUuid}/template`
|
|
25423
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
25424
|
+
.replace(`{${"formUuid"}}`, encodeURIComponent(String(formUuid)));
|
|
25425
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25426
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25427
|
+
let baseOptions;
|
|
25428
|
+
if (configuration) {
|
|
25429
|
+
baseOptions = configuration.baseOptions;
|
|
25430
|
+
}
|
|
25431
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
25432
|
+
const localVarHeaderParameter = {};
|
|
25433
|
+
const localVarQueryParameter = {};
|
|
25434
|
+
// authentication apiToken required
|
|
25435
|
+
// http bearer authentication required
|
|
25436
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
25437
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25438
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25439
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25440
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25441
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1FormsUpdateTemplateRequest, localVarRequestOptions, configuration);
|
|
25442
|
+
return {
|
|
25443
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25444
|
+
options: localVarRequestOptions,
|
|
25445
|
+
};
|
|
25446
|
+
}),
|
|
25447
|
+
/**
|
|
25448
|
+
* Rename a form and/or change its status. Setting a `draft` or `paused` form to `active` takes it live: its latest saved design is published and visitors can submit it. `paused` and `draft` stop the form from accepting submissions. A form is not reachable by visitors until it is taken live. Design changes saved while the form is already `active` stay unpublished until the form is paused and set to `active` again. Renaming does not rename the automatic `form:{name}` tag.
|
|
25449
|
+
* @summary Update form
|
|
25450
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25451
|
+
* @param {string} formUuid Form uuid parameter
|
|
25452
|
+
* @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
|
|
25453
|
+
* @param {*} [options] Override http request option.
|
|
25454
|
+
* @throws {RequiredError}
|
|
25455
|
+
*/
|
|
25456
|
+
updateFormV1: (profileUuid_1, formUuid_1, reachV1FormsUpdateRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, formUuid_1, reachV1FormsUpdateRequest_1, ...args_1], void 0, function* (profileUuid, formUuid, reachV1FormsUpdateRequest, options = {}) {
|
|
25457
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25458
|
+
(0, common_1.assertParamExists)('updateFormV1', 'profileUuid', profileUuid);
|
|
25459
|
+
// verify required parameter 'formUuid' is not null or undefined
|
|
25460
|
+
(0, common_1.assertParamExists)('updateFormV1', 'formUuid', formUuid);
|
|
25461
|
+
// verify required parameter 'reachV1FormsUpdateRequest' is not null or undefined
|
|
25462
|
+
(0, common_1.assertParamExists)('updateFormV1', 'reachV1FormsUpdateRequest', reachV1FormsUpdateRequest);
|
|
25463
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms/{formUuid}`
|
|
25464
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
25465
|
+
.replace(`{${"formUuid"}}`, encodeURIComponent(String(formUuid)));
|
|
25466
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25467
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25468
|
+
let baseOptions;
|
|
25469
|
+
if (configuration) {
|
|
25470
|
+
baseOptions = configuration.baseOptions;
|
|
25471
|
+
}
|
|
25472
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
25473
|
+
const localVarHeaderParameter = {};
|
|
25474
|
+
const localVarQueryParameter = {};
|
|
25475
|
+
// authentication apiToken required
|
|
25476
|
+
// http bearer authentication required
|
|
25477
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
25478
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
24892
25479
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
24893
25480
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24894
25481
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25482
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1FormsUpdateRequest, localVarRequestOptions, configuration);
|
|
24895
25483
|
return {
|
|
24896
25484
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
24897
25485
|
options: localVarRequestOptions,
|
|
@@ -24907,6 +25495,39 @@ exports.ReachFormsApiAxiosParamCreator = ReachFormsApiAxiosParamCreator;
|
|
|
24907
25495
|
const ReachFormsApiFp = function (configuration) {
|
|
24908
25496
|
const localVarAxiosParamCreator = (0, exports.ReachFormsApiAxiosParamCreator)(configuration);
|
|
24909
25497
|
return {
|
|
25498
|
+
/**
|
|
25499
|
+
* Add tags to a form so that every contact who submits it from now on receives them. A tag the form already has is skipped; an unknown tag is rejected. Contacts who submitted earlier are not tagged.
|
|
25500
|
+
* @summary Add form submitter tags
|
|
25501
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25502
|
+
* @param {string} formUuid Form uuid parameter
|
|
25503
|
+
* @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
|
|
25504
|
+
* @param {*} [options] Override http request option.
|
|
25505
|
+
* @throws {RequiredError}
|
|
25506
|
+
*/
|
|
25507
|
+
addFormSubmitterTagsV1(profileUuid, formUuid, reachV1FormsAssignTagsRequest, options) {
|
|
25508
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25509
|
+
var _a, _b;
|
|
25510
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addFormSubmitterTagsV1(profileUuid, formUuid, reachV1FormsAssignTagsRequest, options);
|
|
25511
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachFormsApi.addFormSubmitterTagsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
25512
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25513
|
+
});
|
|
25514
|
+
},
|
|
25515
|
+
/**
|
|
25516
|
+
* Create an empty draft form. Reach also adds an automatic `form:{name}` tag that every submitter receives. A draft has no design and is not reachable by visitors: save a design with the update form template operation, then take the form live by setting its status to `active`. Creating a form does not consume AI credits.
|
|
25517
|
+
* @summary Create form
|
|
25518
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25519
|
+
* @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
|
|
25520
|
+
* @param {*} [options] Override http request option.
|
|
25521
|
+
* @throws {RequiredError}
|
|
25522
|
+
*/
|
|
25523
|
+
createFormV1(profileUuid, reachV1FormsStoreRequest, options) {
|
|
25524
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25525
|
+
var _a, _b;
|
|
25526
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createFormV1(profileUuid, reachV1FormsStoreRequest, options);
|
|
25527
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachFormsApi.createFormV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
25528
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25529
|
+
});
|
|
25530
|
+
},
|
|
24910
25531
|
/**
|
|
24911
25532
|
* Permanently delete a form together with its template. A form that has already captured submissions cannot be deleted, so that the contacts it collected are never silently discarded - pause the form instead to stop it collecting new ones. Views alone do not block deletion.
|
|
24912
25533
|
* @summary Delete form
|
|
@@ -24923,6 +25544,22 @@ const ReachFormsApiFp = function (configuration) {
|
|
|
24923
25544
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24924
25545
|
});
|
|
24925
25546
|
},
|
|
25547
|
+
/**
|
|
25548
|
+
* Copy a form into a new draft form with the same name and design. The copy shares the source\'s automatic `form:{name}` tag; other submitter tags are not copied. The copy is not live until its status is set to `active`.
|
|
25549
|
+
* @summary Duplicate form
|
|
25550
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25551
|
+
* @param {string} formUuid Form uuid parameter
|
|
25552
|
+
* @param {*} [options] Override http request option.
|
|
25553
|
+
* @throws {RequiredError}
|
|
25554
|
+
*/
|
|
25555
|
+
duplicateFormV1(profileUuid, formUuid, options) {
|
|
25556
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25557
|
+
var _a, _b;
|
|
25558
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.duplicateFormV1(profileUuid, formUuid, options);
|
|
25559
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachFormsApi.duplicateFormV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
25560
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25561
|
+
});
|
|
25562
|
+
},
|
|
24926
25563
|
/**
|
|
24927
25564
|
* Get a single form with the URL of its hosted template and the tags it applies to the contacts it captures. There is no ready-made embed snippet in the response - either serve the template HTML yourself or build your own embed around the form uuid.
|
|
24928
25565
|
* @summary Get form details
|
|
@@ -24945,17 +25582,69 @@ const ReachFormsApiFp = function (configuration) {
|
|
|
24945
25582
|
* @param {string} profileUuid Profile uuid parameter
|
|
24946
25583
|
* @param {number} [page] Page number
|
|
24947
25584
|
* @param {number} [perPage] Number of items per page
|
|
25585
|
+
* @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
|
|
24948
25586
|
* @param {*} [options] Override http request option.
|
|
24949
25587
|
* @throws {RequiredError}
|
|
24950
25588
|
*/
|
|
24951
|
-
listFormsV1(profileUuid, page, perPage, options) {
|
|
25589
|
+
listFormsV1(profileUuid, page, perPage, status, options) {
|
|
24952
25590
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24953
25591
|
var _a, _b;
|
|
24954
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listFormsV1(profileUuid, page, perPage, options);
|
|
25592
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listFormsV1(profileUuid, page, perPage, status, options);
|
|
24955
25593
|
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachFormsApi.listFormsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
24956
25594
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24957
25595
|
});
|
|
24958
25596
|
},
|
|
25597
|
+
/**
|
|
25598
|
+
* Stop a form from applying a tag to its future submitters. Succeeds also when the form did not have the tag. Contacts who already received the tag keep it, and the tag itself is not deleted. The automatic `form:{name}` tag cannot be removed and is rejected with a conflict.
|
|
25599
|
+
* @summary Remove form submitter tag
|
|
25600
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25601
|
+
* @param {string} formUuid Form uuid parameter
|
|
25602
|
+
* @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
|
|
25603
|
+
* @param {*} [options] Override http request option.
|
|
25604
|
+
* @throws {RequiredError}
|
|
25605
|
+
*/
|
|
25606
|
+
removeFormSubmitterTagV1(profileUuid, formUuid, reachV1FormsRemoveTagRequest, options) {
|
|
25607
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25608
|
+
var _a, _b;
|
|
25609
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeFormSubmitterTagV1(profileUuid, formUuid, reachV1FormsRemoveTagRequest, options);
|
|
25610
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachFormsApi.removeFormSubmitterTagV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
25611
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25612
|
+
});
|
|
25613
|
+
},
|
|
25614
|
+
/**
|
|
25615
|
+
* Save `content` as the latest design of a form and return the stored version. The HTML is sanitized and, unless the plan allows removing it, the Reach signature is added. Visitors submit the form with an `email` field (required) and optional `name`, `surname` and `phone`. After sanitizing, the design must contain a form container (`data-reach-form`), an email input (`data-reach-field=\"email\"`) and a submit button (`data-reach-submit`); otherwise the request fails with `422` and `errors.content` lists `missing_form_container`, `missing_email_field` and/or `missing_submit_button`. A `draft` or `paused` form stays unreachable until its status is set to `active`, which publishes this design. On a form that is already `active` the saved design is not public until the form is paused and set to `active` again. Saving a design does not consume AI credits.
|
|
25616
|
+
* @summary Update form template
|
|
25617
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25618
|
+
* @param {string} formUuid Form uuid parameter
|
|
25619
|
+
* @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
|
|
25620
|
+
* @param {*} [options] Override http request option.
|
|
25621
|
+
* @throws {RequiredError}
|
|
25622
|
+
*/
|
|
25623
|
+
updateFormTemplateV1(profileUuid, formUuid, reachV1FormsUpdateTemplateRequest, options) {
|
|
25624
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25625
|
+
var _a, _b;
|
|
25626
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFormTemplateV1(profileUuid, formUuid, reachV1FormsUpdateTemplateRequest, options);
|
|
25627
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachFormsApi.updateFormTemplateV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
25628
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25629
|
+
});
|
|
25630
|
+
},
|
|
25631
|
+
/**
|
|
25632
|
+
* Rename a form and/or change its status. Setting a `draft` or `paused` form to `active` takes it live: its latest saved design is published and visitors can submit it. `paused` and `draft` stop the form from accepting submissions. A form is not reachable by visitors until it is taken live. Design changes saved while the form is already `active` stay unpublished until the form is paused and set to `active` again. Renaming does not rename the automatic `form:{name}` tag.
|
|
25633
|
+
* @summary Update form
|
|
25634
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25635
|
+
* @param {string} formUuid Form uuid parameter
|
|
25636
|
+
* @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
|
|
25637
|
+
* @param {*} [options] Override http request option.
|
|
25638
|
+
* @throws {RequiredError}
|
|
25639
|
+
*/
|
|
25640
|
+
updateFormV1(profileUuid, formUuid, reachV1FormsUpdateRequest, options) {
|
|
25641
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25642
|
+
var _a, _b;
|
|
25643
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFormV1(profileUuid, formUuid, reachV1FormsUpdateRequest, options);
|
|
25644
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachFormsApi.updateFormV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
25645
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25646
|
+
});
|
|
25647
|
+
},
|
|
24959
25648
|
};
|
|
24960
25649
|
};
|
|
24961
25650
|
exports.ReachFormsApiFp = ReachFormsApiFp;
|
|
@@ -24966,6 +25655,29 @@ exports.ReachFormsApiFp = ReachFormsApiFp;
|
|
|
24966
25655
|
const ReachFormsApiFactory = function (configuration, basePath, axios) {
|
|
24967
25656
|
const localVarFp = (0, exports.ReachFormsApiFp)(configuration);
|
|
24968
25657
|
return {
|
|
25658
|
+
/**
|
|
25659
|
+
* Add tags to a form so that every contact who submits it from now on receives them. A tag the form already has is skipped; an unknown tag is rejected. Contacts who submitted earlier are not tagged.
|
|
25660
|
+
* @summary Add form submitter tags
|
|
25661
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25662
|
+
* @param {string} formUuid Form uuid parameter
|
|
25663
|
+
* @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
|
|
25664
|
+
* @param {*} [options] Override http request option.
|
|
25665
|
+
* @throws {RequiredError}
|
|
25666
|
+
*/
|
|
25667
|
+
addFormSubmitterTagsV1(profileUuid, formUuid, reachV1FormsAssignTagsRequest, options) {
|
|
25668
|
+
return localVarFp.addFormSubmitterTagsV1(profileUuid, formUuid, reachV1FormsAssignTagsRequest, options).then((request) => request(axios, basePath));
|
|
25669
|
+
},
|
|
25670
|
+
/**
|
|
25671
|
+
* Create an empty draft form. Reach also adds an automatic `form:{name}` tag that every submitter receives. A draft has no design and is not reachable by visitors: save a design with the update form template operation, then take the form live by setting its status to `active`. Creating a form does not consume AI credits.
|
|
25672
|
+
* @summary Create form
|
|
25673
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25674
|
+
* @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
|
|
25675
|
+
* @param {*} [options] Override http request option.
|
|
25676
|
+
* @throws {RequiredError}
|
|
25677
|
+
*/
|
|
25678
|
+
createFormV1(profileUuid, reachV1FormsStoreRequest, options) {
|
|
25679
|
+
return localVarFp.createFormV1(profileUuid, reachV1FormsStoreRequest, options).then((request) => request(axios, basePath));
|
|
25680
|
+
},
|
|
24969
25681
|
/**
|
|
24970
25682
|
* Permanently delete a form together with its template. A form that has already captured submissions cannot be deleted, so that the contacts it collected are never silently discarded - pause the form instead to stop it collecting new ones. Views alone do not block deletion.
|
|
24971
25683
|
* @summary Delete form
|
|
@@ -24977,6 +25689,17 @@ const ReachFormsApiFactory = function (configuration, basePath, axios) {
|
|
|
24977
25689
|
deleteFormV1(profileUuid, formUuid, options) {
|
|
24978
25690
|
return localVarFp.deleteFormV1(profileUuid, formUuid, options).then((request) => request(axios, basePath));
|
|
24979
25691
|
},
|
|
25692
|
+
/**
|
|
25693
|
+
* Copy a form into a new draft form with the same name and design. The copy shares the source\'s automatic `form:{name}` tag; other submitter tags are not copied. The copy is not live until its status is set to `active`.
|
|
25694
|
+
* @summary Duplicate form
|
|
25695
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25696
|
+
* @param {string} formUuid Form uuid parameter
|
|
25697
|
+
* @param {*} [options] Override http request option.
|
|
25698
|
+
* @throws {RequiredError}
|
|
25699
|
+
*/
|
|
25700
|
+
duplicateFormV1(profileUuid, formUuid, options) {
|
|
25701
|
+
return localVarFp.duplicateFormV1(profileUuid, formUuid, options).then((request) => request(axios, basePath));
|
|
25702
|
+
},
|
|
24980
25703
|
/**
|
|
24981
25704
|
* Get a single form with the URL of its hosted template and the tags it applies to the contacts it captures. There is no ready-made embed snippet in the response - either serve the template HTML yourself or build your own embed around the form uuid.
|
|
24982
25705
|
* @summary Get form details
|
|
@@ -24994,11 +25717,48 @@ const ReachFormsApiFactory = function (configuration, basePath, axios) {
|
|
|
24994
25717
|
* @param {string} profileUuid Profile uuid parameter
|
|
24995
25718
|
* @param {number} [page] Page number
|
|
24996
25719
|
* @param {number} [perPage] Number of items per page
|
|
25720
|
+
* @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
|
|
25721
|
+
* @param {*} [options] Override http request option.
|
|
25722
|
+
* @throws {RequiredError}
|
|
25723
|
+
*/
|
|
25724
|
+
listFormsV1(profileUuid, page, perPage, status, options) {
|
|
25725
|
+
return localVarFp.listFormsV1(profileUuid, page, perPage, status, options).then((request) => request(axios, basePath));
|
|
25726
|
+
},
|
|
25727
|
+
/**
|
|
25728
|
+
* Stop a form from applying a tag to its future submitters. Succeeds also when the form did not have the tag. Contacts who already received the tag keep it, and the tag itself is not deleted. The automatic `form:{name}` tag cannot be removed and is rejected with a conflict.
|
|
25729
|
+
* @summary Remove form submitter tag
|
|
25730
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25731
|
+
* @param {string} formUuid Form uuid parameter
|
|
25732
|
+
* @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
|
|
25733
|
+
* @param {*} [options] Override http request option.
|
|
25734
|
+
* @throws {RequiredError}
|
|
25735
|
+
*/
|
|
25736
|
+
removeFormSubmitterTagV1(profileUuid, formUuid, reachV1FormsRemoveTagRequest, options) {
|
|
25737
|
+
return localVarFp.removeFormSubmitterTagV1(profileUuid, formUuid, reachV1FormsRemoveTagRequest, options).then((request) => request(axios, basePath));
|
|
25738
|
+
},
|
|
25739
|
+
/**
|
|
25740
|
+
* Save `content` as the latest design of a form and return the stored version. The HTML is sanitized and, unless the plan allows removing it, the Reach signature is added. Visitors submit the form with an `email` field (required) and optional `name`, `surname` and `phone`. After sanitizing, the design must contain a form container (`data-reach-form`), an email input (`data-reach-field=\"email\"`) and a submit button (`data-reach-submit`); otherwise the request fails with `422` and `errors.content` lists `missing_form_container`, `missing_email_field` and/or `missing_submit_button`. A `draft` or `paused` form stays unreachable until its status is set to `active`, which publishes this design. On a form that is already `active` the saved design is not public until the form is paused and set to `active` again. Saving a design does not consume AI credits.
|
|
25741
|
+
* @summary Update form template
|
|
25742
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25743
|
+
* @param {string} formUuid Form uuid parameter
|
|
25744
|
+
* @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
|
|
25745
|
+
* @param {*} [options] Override http request option.
|
|
25746
|
+
* @throws {RequiredError}
|
|
25747
|
+
*/
|
|
25748
|
+
updateFormTemplateV1(profileUuid, formUuid, reachV1FormsUpdateTemplateRequest, options) {
|
|
25749
|
+
return localVarFp.updateFormTemplateV1(profileUuid, formUuid, reachV1FormsUpdateTemplateRequest, options).then((request) => request(axios, basePath));
|
|
25750
|
+
},
|
|
25751
|
+
/**
|
|
25752
|
+
* Rename a form and/or change its status. Setting a `draft` or `paused` form to `active` takes it live: its latest saved design is published and visitors can submit it. `paused` and `draft` stop the form from accepting submissions. A form is not reachable by visitors until it is taken live. Design changes saved while the form is already `active` stay unpublished until the form is paused and set to `active` again. Renaming does not rename the automatic `form:{name}` tag.
|
|
25753
|
+
* @summary Update form
|
|
25754
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25755
|
+
* @param {string} formUuid Form uuid parameter
|
|
25756
|
+
* @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
|
|
24997
25757
|
* @param {*} [options] Override http request option.
|
|
24998
25758
|
* @throws {RequiredError}
|
|
24999
25759
|
*/
|
|
25000
|
-
|
|
25001
|
-
return localVarFp.
|
|
25760
|
+
updateFormV1(profileUuid, formUuid, reachV1FormsUpdateRequest, options) {
|
|
25761
|
+
return localVarFp.updateFormV1(profileUuid, formUuid, reachV1FormsUpdateRequest, options).then((request) => request(axios, basePath));
|
|
25002
25762
|
},
|
|
25003
25763
|
};
|
|
25004
25764
|
};
|
|
@@ -25010,6 +25770,31 @@ exports.ReachFormsApiFactory = ReachFormsApiFactory;
|
|
|
25010
25770
|
* @extends {BaseAPI}
|
|
25011
25771
|
*/
|
|
25012
25772
|
class ReachFormsApi extends base_1.BaseAPI {
|
|
25773
|
+
/**
|
|
25774
|
+
* Add tags to a form so that every contact who submits it from now on receives them. A tag the form already has is skipped; an unknown tag is rejected. Contacts who submitted earlier are not tagged.
|
|
25775
|
+
* @summary Add form submitter tags
|
|
25776
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25777
|
+
* @param {string} formUuid Form uuid parameter
|
|
25778
|
+
* @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
|
|
25779
|
+
* @param {*} [options] Override http request option.
|
|
25780
|
+
* @throws {RequiredError}
|
|
25781
|
+
* @memberof ReachFormsApi
|
|
25782
|
+
*/
|
|
25783
|
+
addFormSubmitterTagsV1(profileUuid, formUuid, reachV1FormsAssignTagsRequest, options) {
|
|
25784
|
+
return (0, exports.ReachFormsApiFp)(this.configuration).addFormSubmitterTagsV1(profileUuid, formUuid, reachV1FormsAssignTagsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25785
|
+
}
|
|
25786
|
+
/**
|
|
25787
|
+
* Create an empty draft form. Reach also adds an automatic `form:{name}` tag that every submitter receives. A draft has no design and is not reachable by visitors: save a design with the update form template operation, then take the form live by setting its status to `active`. Creating a form does not consume AI credits.
|
|
25788
|
+
* @summary Create form
|
|
25789
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25790
|
+
* @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
|
|
25791
|
+
* @param {*} [options] Override http request option.
|
|
25792
|
+
* @throws {RequiredError}
|
|
25793
|
+
* @memberof ReachFormsApi
|
|
25794
|
+
*/
|
|
25795
|
+
createFormV1(profileUuid, reachV1FormsStoreRequest, options) {
|
|
25796
|
+
return (0, exports.ReachFormsApiFp)(this.configuration).createFormV1(profileUuid, reachV1FormsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25797
|
+
}
|
|
25013
25798
|
/**
|
|
25014
25799
|
* Permanently delete a form together with its template. A form that has already captured submissions cannot be deleted, so that the contacts it collected are never silently discarded - pause the form instead to stop it collecting new ones. Views alone do not block deletion.
|
|
25015
25800
|
* @summary Delete form
|
|
@@ -25022,6 +25807,18 @@ class ReachFormsApi extends base_1.BaseAPI {
|
|
|
25022
25807
|
deleteFormV1(profileUuid, formUuid, options) {
|
|
25023
25808
|
return (0, exports.ReachFormsApiFp)(this.configuration).deleteFormV1(profileUuid, formUuid, options).then((request) => request(this.axios, this.basePath));
|
|
25024
25809
|
}
|
|
25810
|
+
/**
|
|
25811
|
+
* Copy a form into a new draft form with the same name and design. The copy shares the source\'s automatic `form:{name}` tag; other submitter tags are not copied. The copy is not live until its status is set to `active`.
|
|
25812
|
+
* @summary Duplicate form
|
|
25813
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25814
|
+
* @param {string} formUuid Form uuid parameter
|
|
25815
|
+
* @param {*} [options] Override http request option.
|
|
25816
|
+
* @throws {RequiredError}
|
|
25817
|
+
* @memberof ReachFormsApi
|
|
25818
|
+
*/
|
|
25819
|
+
duplicateFormV1(profileUuid, formUuid, options) {
|
|
25820
|
+
return (0, exports.ReachFormsApiFp)(this.configuration).duplicateFormV1(profileUuid, formUuid, options).then((request) => request(this.axios, this.basePath));
|
|
25821
|
+
}
|
|
25025
25822
|
/**
|
|
25026
25823
|
* Get a single form with the URL of its hosted template and the tags it applies to the contacts it captures. There is no ready-made embed snippet in the response - either serve the template HTML yourself or build your own embed around the form uuid.
|
|
25027
25824
|
* @summary Get form details
|
|
@@ -25040,15 +25837,63 @@ class ReachFormsApi extends base_1.BaseAPI {
|
|
|
25040
25837
|
* @param {string} profileUuid Profile uuid parameter
|
|
25041
25838
|
* @param {number} [page] Page number
|
|
25042
25839
|
* @param {number} [perPage] Number of items per page
|
|
25840
|
+
* @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
|
|
25841
|
+
* @param {*} [options] Override http request option.
|
|
25842
|
+
* @throws {RequiredError}
|
|
25843
|
+
* @memberof ReachFormsApi
|
|
25844
|
+
*/
|
|
25845
|
+
listFormsV1(profileUuid, page, perPage, status, options) {
|
|
25846
|
+
return (0, exports.ReachFormsApiFp)(this.configuration).listFormsV1(profileUuid, page, perPage, status, options).then((request) => request(this.axios, this.basePath));
|
|
25847
|
+
}
|
|
25848
|
+
/**
|
|
25849
|
+
* Stop a form from applying a tag to its future submitters. Succeeds also when the form did not have the tag. Contacts who already received the tag keep it, and the tag itself is not deleted. The automatic `form:{name}` tag cannot be removed and is rejected with a conflict.
|
|
25850
|
+
* @summary Remove form submitter tag
|
|
25851
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25852
|
+
* @param {string} formUuid Form uuid parameter
|
|
25853
|
+
* @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
|
|
25854
|
+
* @param {*} [options] Override http request option.
|
|
25855
|
+
* @throws {RequiredError}
|
|
25856
|
+
* @memberof ReachFormsApi
|
|
25857
|
+
*/
|
|
25858
|
+
removeFormSubmitterTagV1(profileUuid, formUuid, reachV1FormsRemoveTagRequest, options) {
|
|
25859
|
+
return (0, exports.ReachFormsApiFp)(this.configuration).removeFormSubmitterTagV1(profileUuid, formUuid, reachV1FormsRemoveTagRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25860
|
+
}
|
|
25861
|
+
/**
|
|
25862
|
+
* Save `content` as the latest design of a form and return the stored version. The HTML is sanitized and, unless the plan allows removing it, the Reach signature is added. Visitors submit the form with an `email` field (required) and optional `name`, `surname` and `phone`. After sanitizing, the design must contain a form container (`data-reach-form`), an email input (`data-reach-field=\"email\"`) and a submit button (`data-reach-submit`); otherwise the request fails with `422` and `errors.content` lists `missing_form_container`, `missing_email_field` and/or `missing_submit_button`. A `draft` or `paused` form stays unreachable until its status is set to `active`, which publishes this design. On a form that is already `active` the saved design is not public until the form is paused and set to `active` again. Saving a design does not consume AI credits.
|
|
25863
|
+
* @summary Update form template
|
|
25864
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25865
|
+
* @param {string} formUuid Form uuid parameter
|
|
25866
|
+
* @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
|
|
25867
|
+
* @param {*} [options] Override http request option.
|
|
25868
|
+
* @throws {RequiredError}
|
|
25869
|
+
* @memberof ReachFormsApi
|
|
25870
|
+
*/
|
|
25871
|
+
updateFormTemplateV1(profileUuid, formUuid, reachV1FormsUpdateTemplateRequest, options) {
|
|
25872
|
+
return (0, exports.ReachFormsApiFp)(this.configuration).updateFormTemplateV1(profileUuid, formUuid, reachV1FormsUpdateTemplateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25873
|
+
}
|
|
25874
|
+
/**
|
|
25875
|
+
* Rename a form and/or change its status. Setting a `draft` or `paused` form to `active` takes it live: its latest saved design is published and visitors can submit it. `paused` and `draft` stop the form from accepting submissions. A form is not reachable by visitors until it is taken live. Design changes saved while the form is already `active` stay unpublished until the form is paused and set to `active` again. Renaming does not rename the automatic `form:{name}` tag.
|
|
25876
|
+
* @summary Update form
|
|
25877
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25878
|
+
* @param {string} formUuid Form uuid parameter
|
|
25879
|
+
* @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
|
|
25043
25880
|
* @param {*} [options] Override http request option.
|
|
25044
25881
|
* @throws {RequiredError}
|
|
25045
25882
|
* @memberof ReachFormsApi
|
|
25046
25883
|
*/
|
|
25047
|
-
|
|
25048
|
-
return (0, exports.ReachFormsApiFp)(this.configuration).
|
|
25884
|
+
updateFormV1(profileUuid, formUuid, reachV1FormsUpdateRequest, options) {
|
|
25885
|
+
return (0, exports.ReachFormsApiFp)(this.configuration).updateFormV1(profileUuid, formUuid, reachV1FormsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25049
25886
|
}
|
|
25050
25887
|
}
|
|
25051
25888
|
exports.ReachFormsApi = ReachFormsApi;
|
|
25889
|
+
/**
|
|
25890
|
+
* @export
|
|
25891
|
+
*/
|
|
25892
|
+
exports.ListFormsV1StatusEnum = {
|
|
25893
|
+
Active: 'active',
|
|
25894
|
+
Paused: 'paused',
|
|
25895
|
+
Draft: 'draft'
|
|
25896
|
+
};
|
|
25052
25897
|
/**
|
|
25053
25898
|
* ReachProfilesApi - axios parameter creator
|
|
25054
25899
|
* @export
|