hostinger-api-sdk 2.1.2 → 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 +662 -8
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +375 -5
- package/dist/api.js +525 -18
- 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 +375 -5
- package/dist/esm/api.js +515 -8
- 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/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 = exports.GetGenerationResultV1TypeEnum = exports.WordPressAIContentApi = exports.WordPressAIContentApiFactory = exports.WordPressAIContentApiFp = 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',
|
|
@@ -25123,6 +25132,84 @@ exports.ListProfileContactsV1SubscriptionStatusEnum = {
|
|
|
25123
25132
|
*/
|
|
25124
25133
|
const ReachFormsApiAxiosParamCreator = function (configuration) {
|
|
25125
25134
|
return {
|
|
25135
|
+
/**
|
|
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
|
|
25138
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25139
|
+
* @param {string} formUuid Form uuid parameter
|
|
25140
|
+
* @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
|
|
25141
|
+
* @param {*} [options] Override http request option.
|
|
25142
|
+
* @throws {RequiredError}
|
|
25143
|
+
*/
|
|
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 = {}) {
|
|
25145
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25146
|
+
(0, common_1.assertParamExists)('addFormSubmitterTagsV1', 'profileUuid', profileUuid);
|
|
25147
|
+
// verify required parameter 'formUuid' is not null or undefined
|
|
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`
|
|
25152
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
25153
|
+
.replace(`{${"formUuid"}}`, encodeURIComponent(String(formUuid)));
|
|
25154
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25155
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25156
|
+
let baseOptions;
|
|
25157
|
+
if (configuration) {
|
|
25158
|
+
baseOptions = configuration.baseOptions;
|
|
25159
|
+
}
|
|
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
|
+
}),
|
|
25126
25213
|
/**
|
|
25127
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.
|
|
25128
25215
|
* @summary Delete form
|
|
@@ -25159,6 +25246,42 @@ const ReachFormsApiAxiosParamCreator = function (configuration) {
|
|
|
25159
25246
|
options: localVarRequestOptions,
|
|
25160
25247
|
};
|
|
25161
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);
|
|
25272
|
+
const localVarHeaderParameter = {};
|
|
25273
|
+
const localVarQueryParameter = {};
|
|
25274
|
+
// authentication apiToken required
|
|
25275
|
+
// http bearer authentication required
|
|
25276
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
25277
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25278
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25279
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25280
|
+
return {
|
|
25281
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25282
|
+
options: localVarRequestOptions,
|
|
25283
|
+
};
|
|
25284
|
+
}),
|
|
25162
25285
|
/**
|
|
25163
25286
|
* 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.
|
|
25164
25287
|
* @summary Get form details
|
|
@@ -25201,10 +25324,11 @@ const ReachFormsApiAxiosParamCreator = function (configuration) {
|
|
|
25201
25324
|
* @param {string} profileUuid Profile uuid parameter
|
|
25202
25325
|
* @param {number} [page] Page number
|
|
25203
25326
|
* @param {number} [perPage] Number of items per page
|
|
25327
|
+
* @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
|
|
25204
25328
|
* @param {*} [options] Override http request option.
|
|
25205
25329
|
* @throws {RequiredError}
|
|
25206
25330
|
*/
|
|
25207
|
-
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 = {}) {
|
|
25208
25332
|
// verify required parameter 'profileUuid' is not null or undefined
|
|
25209
25333
|
(0, common_1.assertParamExists)('listFormsV1', 'profileUuid', profileUuid);
|
|
25210
25334
|
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms`
|
|
@@ -25227,9 +25351,135 @@ const ReachFormsApiAxiosParamCreator = function (configuration) {
|
|
|
25227
25351
|
if (perPage !== undefined) {
|
|
25228
25352
|
localVarQueryParameter['per_page'] = perPage;
|
|
25229
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';
|
|
25230
25438
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25231
25439
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25232
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';
|
|
25479
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25480
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25481
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25482
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1FormsUpdateRequest, localVarRequestOptions, configuration);
|
|
25233
25483
|
return {
|
|
25234
25484
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25235
25485
|
options: localVarRequestOptions,
|
|
@@ -25245,6 +25495,39 @@ exports.ReachFormsApiAxiosParamCreator = ReachFormsApiAxiosParamCreator;
|
|
|
25245
25495
|
const ReachFormsApiFp = function (configuration) {
|
|
25246
25496
|
const localVarAxiosParamCreator = (0, exports.ReachFormsApiAxiosParamCreator)(configuration);
|
|
25247
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
|
+
},
|
|
25248
25531
|
/**
|
|
25249
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.
|
|
25250
25533
|
* @summary Delete form
|
|
@@ -25261,6 +25544,22 @@ const ReachFormsApiFp = function (configuration) {
|
|
|
25261
25544
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25262
25545
|
});
|
|
25263
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
|
+
},
|
|
25264
25563
|
/**
|
|
25265
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.
|
|
25266
25565
|
* @summary Get form details
|
|
@@ -25283,17 +25582,69 @@ const ReachFormsApiFp = function (configuration) {
|
|
|
25283
25582
|
* @param {string} profileUuid Profile uuid parameter
|
|
25284
25583
|
* @param {number} [page] Page number
|
|
25285
25584
|
* @param {number} [perPage] Number of items per page
|
|
25585
|
+
* @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
|
|
25286
25586
|
* @param {*} [options] Override http request option.
|
|
25287
25587
|
* @throws {RequiredError}
|
|
25288
25588
|
*/
|
|
25289
|
-
listFormsV1(profileUuid, page, perPage, options) {
|
|
25589
|
+
listFormsV1(profileUuid, page, perPage, status, options) {
|
|
25290
25590
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25291
25591
|
var _a, _b;
|
|
25292
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listFormsV1(profileUuid, page, perPage, options);
|
|
25592
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listFormsV1(profileUuid, page, perPage, status, options);
|
|
25293
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;
|
|
25294
25594
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25295
25595
|
});
|
|
25296
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
|
+
},
|
|
25297
25648
|
};
|
|
25298
25649
|
};
|
|
25299
25650
|
exports.ReachFormsApiFp = ReachFormsApiFp;
|
|
@@ -25304,6 +25655,29 @@ exports.ReachFormsApiFp = ReachFormsApiFp;
|
|
|
25304
25655
|
const ReachFormsApiFactory = function (configuration, basePath, axios) {
|
|
25305
25656
|
const localVarFp = (0, exports.ReachFormsApiFp)(configuration);
|
|
25306
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
|
+
},
|
|
25307
25681
|
/**
|
|
25308
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.
|
|
25309
25683
|
* @summary Delete form
|
|
@@ -25315,6 +25689,17 @@ const ReachFormsApiFactory = function (configuration, basePath, axios) {
|
|
|
25315
25689
|
deleteFormV1(profileUuid, formUuid, options) {
|
|
25316
25690
|
return localVarFp.deleteFormV1(profileUuid, formUuid, options).then((request) => request(axios, basePath));
|
|
25317
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
|
+
},
|
|
25318
25703
|
/**
|
|
25319
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.
|
|
25320
25705
|
* @summary Get form details
|
|
@@ -25332,11 +25717,48 @@ const ReachFormsApiFactory = function (configuration, basePath, axios) {
|
|
|
25332
25717
|
* @param {string} profileUuid Profile uuid parameter
|
|
25333
25718
|
* @param {number} [page] Page number
|
|
25334
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
|
|
25335
25757
|
* @param {*} [options] Override http request option.
|
|
25336
25758
|
* @throws {RequiredError}
|
|
25337
25759
|
*/
|
|
25338
|
-
|
|
25339
|
-
return localVarFp.
|
|
25760
|
+
updateFormV1(profileUuid, formUuid, reachV1FormsUpdateRequest, options) {
|
|
25761
|
+
return localVarFp.updateFormV1(profileUuid, formUuid, reachV1FormsUpdateRequest, options).then((request) => request(axios, basePath));
|
|
25340
25762
|
},
|
|
25341
25763
|
};
|
|
25342
25764
|
};
|
|
@@ -25348,6 +25770,31 @@ exports.ReachFormsApiFactory = ReachFormsApiFactory;
|
|
|
25348
25770
|
* @extends {BaseAPI}
|
|
25349
25771
|
*/
|
|
25350
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
|
+
}
|
|
25351
25798
|
/**
|
|
25352
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.
|
|
25353
25800
|
* @summary Delete form
|
|
@@ -25360,6 +25807,18 @@ class ReachFormsApi extends base_1.BaseAPI {
|
|
|
25360
25807
|
deleteFormV1(profileUuid, formUuid, options) {
|
|
25361
25808
|
return (0, exports.ReachFormsApiFp)(this.configuration).deleteFormV1(profileUuid, formUuid, options).then((request) => request(this.axios, this.basePath));
|
|
25362
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
|
+
}
|
|
25363
25822
|
/**
|
|
25364
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.
|
|
25365
25824
|
* @summary Get form details
|
|
@@ -25378,15 +25837,63 @@ class ReachFormsApi extends base_1.BaseAPI {
|
|
|
25378
25837
|
* @param {string} profileUuid Profile uuid parameter
|
|
25379
25838
|
* @param {number} [page] Page number
|
|
25380
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
|
|
25381
25880
|
* @param {*} [options] Override http request option.
|
|
25382
25881
|
* @throws {RequiredError}
|
|
25383
25882
|
* @memberof ReachFormsApi
|
|
25384
25883
|
*/
|
|
25385
|
-
|
|
25386
|
-
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));
|
|
25387
25886
|
}
|
|
25388
25887
|
}
|
|
25389
25888
|
exports.ReachFormsApi = ReachFormsApi;
|
|
25889
|
+
/**
|
|
25890
|
+
* @export
|
|
25891
|
+
*/
|
|
25892
|
+
exports.ListFormsV1StatusEnum = {
|
|
25893
|
+
Active: 'active',
|
|
25894
|
+
Paused: 'paused',
|
|
25895
|
+
Draft: 'draft'
|
|
25896
|
+
};
|
|
25390
25897
|
/**
|
|
25391
25898
|
* ReachProfilesApi - axios parameter creator
|
|
25392
25899
|
* @export
|