hostinger-api-sdk 2.1.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +812 -8
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +459 -5
- package/dist/api.js +636 -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 +459 -5
- package/dist/esm/api.js +626 -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/HostingNodeJSApi.md +70 -0
- package/docs/HostingV1NodeJsGetBuildSettingsFromRepositoryRequest.md +26 -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.
|
|
7
|
+
* API Version: 2.2.0
|
|
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',
|
|
@@ -16712,6 +16721,66 @@ const HostingNodeJSApiAxiosParamCreator = function (configuration) {
|
|
|
16712
16721
|
options: localVarRequestOptions,
|
|
16713
16722
|
};
|
|
16714
16723
|
}),
|
|
16724
|
+
/**
|
|
16725
|
+
* Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
|
|
16726
|
+
* @summary Get Node.js build settings from repository
|
|
16727
|
+
* @param {string} username
|
|
16728
|
+
* @param {string} domain Domain name
|
|
16729
|
+
* @param {string} owner Repository owner login. GitLab group paths use slashes.
|
|
16730
|
+
* @param {string} repository Repository name without the .git suffix
|
|
16731
|
+
* @param {string} branch Branch whose package.json is inspected
|
|
16732
|
+
* @param {string} installationUuid Git installation used to access the repository, taken from `List Git installations`
|
|
16733
|
+
* @param {*} [options] Override http request option.
|
|
16734
|
+
* @throws {RequiredError}
|
|
16735
|
+
*/
|
|
16736
|
+
getNodeJsBuildSettingsFromRepositoryV1: (username_1, domain_1, owner_1, repository_1, branch_1, installationUuid_1, ...args_1) => __awaiter(this, [username_1, domain_1, owner_1, repository_1, branch_1, installationUuid_1, ...args_1], void 0, function* (username, domain, owner, repository, branch, installationUuid, options = {}) {
|
|
16737
|
+
// verify required parameter 'username' is not null or undefined
|
|
16738
|
+
(0, common_1.assertParamExists)('getNodeJsBuildSettingsFromRepositoryV1', 'username', username);
|
|
16739
|
+
// verify required parameter 'domain' is not null or undefined
|
|
16740
|
+
(0, common_1.assertParamExists)('getNodeJsBuildSettingsFromRepositoryV1', 'domain', domain);
|
|
16741
|
+
// verify required parameter 'owner' is not null or undefined
|
|
16742
|
+
(0, common_1.assertParamExists)('getNodeJsBuildSettingsFromRepositoryV1', 'owner', owner);
|
|
16743
|
+
// verify required parameter 'repository' is not null or undefined
|
|
16744
|
+
(0, common_1.assertParamExists)('getNodeJsBuildSettingsFromRepositoryV1', 'repository', repository);
|
|
16745
|
+
// verify required parameter 'branch' is not null or undefined
|
|
16746
|
+
(0, common_1.assertParamExists)('getNodeJsBuildSettingsFromRepositoryV1', 'branch', branch);
|
|
16747
|
+
// verify required parameter 'installationUuid' is not null or undefined
|
|
16748
|
+
(0, common_1.assertParamExists)('getNodeJsBuildSettingsFromRepositoryV1', 'installationUuid', installationUuid);
|
|
16749
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-repository`
|
|
16750
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
16751
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
16752
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16753
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16754
|
+
let baseOptions;
|
|
16755
|
+
if (configuration) {
|
|
16756
|
+
baseOptions = configuration.baseOptions;
|
|
16757
|
+
}
|
|
16758
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16759
|
+
const localVarHeaderParameter = {};
|
|
16760
|
+
const localVarQueryParameter = {};
|
|
16761
|
+
// authentication apiToken required
|
|
16762
|
+
// http bearer authentication required
|
|
16763
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
16764
|
+
if (owner !== undefined) {
|
|
16765
|
+
localVarQueryParameter['owner'] = owner;
|
|
16766
|
+
}
|
|
16767
|
+
if (repository !== undefined) {
|
|
16768
|
+
localVarQueryParameter['repository'] = repository;
|
|
16769
|
+
}
|
|
16770
|
+
if (branch !== undefined) {
|
|
16771
|
+
localVarQueryParameter['branch'] = branch;
|
|
16772
|
+
}
|
|
16773
|
+
if (installationUuid !== undefined) {
|
|
16774
|
+
localVarQueryParameter['installation_uuid'] = installationUuid;
|
|
16775
|
+
}
|
|
16776
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16777
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16778
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16779
|
+
return {
|
|
16780
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16781
|
+
options: localVarRequestOptions,
|
|
16782
|
+
};
|
|
16783
|
+
}),
|
|
16715
16784
|
/**
|
|
16716
16785
|
* Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
|
|
16717
16786
|
* @summary Get Node.js build settings
|
|
@@ -17219,6 +17288,26 @@ const HostingNodeJSApiFp = function (configuration) {
|
|
|
17219
17288
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17220
17289
|
});
|
|
17221
17290
|
},
|
|
17291
|
+
/**
|
|
17292
|
+
* Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
|
|
17293
|
+
* @summary Get Node.js build settings from repository
|
|
17294
|
+
* @param {string} username
|
|
17295
|
+
* @param {string} domain Domain name
|
|
17296
|
+
* @param {string} owner Repository owner login. GitLab group paths use slashes.
|
|
17297
|
+
* @param {string} repository Repository name without the .git suffix
|
|
17298
|
+
* @param {string} branch Branch whose package.json is inspected
|
|
17299
|
+
* @param {string} installationUuid Git installation used to access the repository, taken from `List Git installations`
|
|
17300
|
+
* @param {*} [options] Override http request option.
|
|
17301
|
+
* @throws {RequiredError}
|
|
17302
|
+
*/
|
|
17303
|
+
getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options) {
|
|
17304
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17305
|
+
var _a, _b;
|
|
17306
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options);
|
|
17307
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingNodeJSApi.getNodeJsBuildSettingsFromRepositoryV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17308
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17309
|
+
});
|
|
17310
|
+
},
|
|
17222
17311
|
/**
|
|
17223
17312
|
* Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
|
|
17224
17313
|
* @summary Get Node.js build settings
|
|
@@ -17461,6 +17550,21 @@ const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
|
|
|
17461
17550
|
getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options) {
|
|
17462
17551
|
return localVarFp.getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(axios, basePath));
|
|
17463
17552
|
},
|
|
17553
|
+
/**
|
|
17554
|
+
* Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
|
|
17555
|
+
* @summary Get Node.js build settings from repository
|
|
17556
|
+
* @param {string} username
|
|
17557
|
+
* @param {string} domain Domain name
|
|
17558
|
+
* @param {string} owner Repository owner login. GitLab group paths use slashes.
|
|
17559
|
+
* @param {string} repository Repository name without the .git suffix
|
|
17560
|
+
* @param {string} branch Branch whose package.json is inspected
|
|
17561
|
+
* @param {string} installationUuid Git installation used to access the repository, taken from `List Git installations`
|
|
17562
|
+
* @param {*} [options] Override http request option.
|
|
17563
|
+
* @throws {RequiredError}
|
|
17564
|
+
*/
|
|
17565
|
+
getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options) {
|
|
17566
|
+
return localVarFp.getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options).then((request) => request(axios, basePath));
|
|
17567
|
+
},
|
|
17464
17568
|
/**
|
|
17465
17569
|
* Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
|
|
17466
17570
|
* @summary Get Node.js build settings
|
|
@@ -17658,6 +17762,22 @@ class HostingNodeJSApi extends base_1.BaseAPI {
|
|
|
17658
17762
|
getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options) {
|
|
17659
17763
|
return (0, exports.HostingNodeJSApiFp)(this.configuration).getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(this.axios, this.basePath));
|
|
17660
17764
|
}
|
|
17765
|
+
/**
|
|
17766
|
+
* Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
|
|
17767
|
+
* @summary Get Node.js build settings from repository
|
|
17768
|
+
* @param {string} username
|
|
17769
|
+
* @param {string} domain Domain name
|
|
17770
|
+
* @param {string} owner Repository owner login. GitLab group paths use slashes.
|
|
17771
|
+
* @param {string} repository Repository name without the .git suffix
|
|
17772
|
+
* @param {string} branch Branch whose package.json is inspected
|
|
17773
|
+
* @param {string} installationUuid Git installation used to access the repository, taken from `List Git installations`
|
|
17774
|
+
* @param {*} [options] Override http request option.
|
|
17775
|
+
* @throws {RequiredError}
|
|
17776
|
+
* @memberof HostingNodeJSApi
|
|
17777
|
+
*/
|
|
17778
|
+
getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options) {
|
|
17779
|
+
return (0, exports.HostingNodeJSApiFp)(this.configuration).getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options).then((request) => request(this.axios, this.basePath));
|
|
17780
|
+
}
|
|
17661
17781
|
/**
|
|
17662
17782
|
* Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
|
|
17663
17783
|
* @summary Get Node.js build settings
|
|
@@ -25123,6 +25243,84 @@ exports.ListProfileContactsV1SubscriptionStatusEnum = {
|
|
|
25123
25243
|
*/
|
|
25124
25244
|
const ReachFormsApiAxiosParamCreator = function (configuration) {
|
|
25125
25245
|
return {
|
|
25246
|
+
/**
|
|
25247
|
+
* 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.
|
|
25248
|
+
* @summary Add form submitter tags
|
|
25249
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25250
|
+
* @param {string} formUuid Form uuid parameter
|
|
25251
|
+
* @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
|
|
25252
|
+
* @param {*} [options] Override http request option.
|
|
25253
|
+
* @throws {RequiredError}
|
|
25254
|
+
*/
|
|
25255
|
+
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 = {}) {
|
|
25256
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25257
|
+
(0, common_1.assertParamExists)('addFormSubmitterTagsV1', 'profileUuid', profileUuid);
|
|
25258
|
+
// verify required parameter 'formUuid' is not null or undefined
|
|
25259
|
+
(0, common_1.assertParamExists)('addFormSubmitterTagsV1', 'formUuid', formUuid);
|
|
25260
|
+
// verify required parameter 'reachV1FormsAssignTagsRequest' is not null or undefined
|
|
25261
|
+
(0, common_1.assertParamExists)('addFormSubmitterTagsV1', 'reachV1FormsAssignTagsRequest', reachV1FormsAssignTagsRequest);
|
|
25262
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms/{formUuid}/tags`
|
|
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
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25278
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25279
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25280
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25281
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1FormsAssignTagsRequest, localVarRequestOptions, configuration);
|
|
25282
|
+
return {
|
|
25283
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25284
|
+
options: localVarRequestOptions,
|
|
25285
|
+
};
|
|
25286
|
+
}),
|
|
25287
|
+
/**
|
|
25288
|
+
* 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.
|
|
25289
|
+
* @summary Create form
|
|
25290
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25291
|
+
* @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
|
|
25292
|
+
* @param {*} [options] Override http request option.
|
|
25293
|
+
* @throws {RequiredError}
|
|
25294
|
+
*/
|
|
25295
|
+
createFormV1: (profileUuid_1, reachV1FormsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1FormsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1FormsStoreRequest, options = {}) {
|
|
25296
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25297
|
+
(0, common_1.assertParamExists)('createFormV1', 'profileUuid', profileUuid);
|
|
25298
|
+
// verify required parameter 'reachV1FormsStoreRequest' is not null or undefined
|
|
25299
|
+
(0, common_1.assertParamExists)('createFormV1', 'reachV1FormsStoreRequest', reachV1FormsStoreRequest);
|
|
25300
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms`
|
|
25301
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
25302
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25303
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25304
|
+
let baseOptions;
|
|
25305
|
+
if (configuration) {
|
|
25306
|
+
baseOptions = configuration.baseOptions;
|
|
25307
|
+
}
|
|
25308
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
25309
|
+
const localVarHeaderParameter = {};
|
|
25310
|
+
const localVarQueryParameter = {};
|
|
25311
|
+
// authentication apiToken required
|
|
25312
|
+
// http bearer authentication required
|
|
25313
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
25314
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25315
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25316
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25317
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25318
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1FormsStoreRequest, localVarRequestOptions, configuration);
|
|
25319
|
+
return {
|
|
25320
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25321
|
+
options: localVarRequestOptions,
|
|
25322
|
+
};
|
|
25323
|
+
}),
|
|
25126
25324
|
/**
|
|
25127
25325
|
* 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
25326
|
* @summary Delete form
|
|
@@ -25159,6 +25357,42 @@ const ReachFormsApiAxiosParamCreator = function (configuration) {
|
|
|
25159
25357
|
options: localVarRequestOptions,
|
|
25160
25358
|
};
|
|
25161
25359
|
}),
|
|
25360
|
+
/**
|
|
25361
|
+
* 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`.
|
|
25362
|
+
* @summary Duplicate form
|
|
25363
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25364
|
+
* @param {string} formUuid Form uuid parameter
|
|
25365
|
+
* @param {*} [options] Override http request option.
|
|
25366
|
+
* @throws {RequiredError}
|
|
25367
|
+
*/
|
|
25368
|
+
duplicateFormV1: (profileUuid_1, formUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, formUuid_1, ...args_1], void 0, function* (profileUuid, formUuid, options = {}) {
|
|
25369
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25370
|
+
(0, common_1.assertParamExists)('duplicateFormV1', 'profileUuid', profileUuid);
|
|
25371
|
+
// verify required parameter 'formUuid' is not null or undefined
|
|
25372
|
+
(0, common_1.assertParamExists)('duplicateFormV1', 'formUuid', formUuid);
|
|
25373
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms/{formUuid}/duplicate`
|
|
25374
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
25375
|
+
.replace(`{${"formUuid"}}`, encodeURIComponent(String(formUuid)));
|
|
25376
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25377
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25378
|
+
let baseOptions;
|
|
25379
|
+
if (configuration) {
|
|
25380
|
+
baseOptions = configuration.baseOptions;
|
|
25381
|
+
}
|
|
25382
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
25383
|
+
const localVarHeaderParameter = {};
|
|
25384
|
+
const localVarQueryParameter = {};
|
|
25385
|
+
// authentication apiToken required
|
|
25386
|
+
// http bearer authentication required
|
|
25387
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
25388
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25389
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25390
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25391
|
+
return {
|
|
25392
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25393
|
+
options: localVarRequestOptions,
|
|
25394
|
+
};
|
|
25395
|
+
}),
|
|
25162
25396
|
/**
|
|
25163
25397
|
* 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
25398
|
* @summary Get form details
|
|
@@ -25201,10 +25435,11 @@ const ReachFormsApiAxiosParamCreator = function (configuration) {
|
|
|
25201
25435
|
* @param {string} profileUuid Profile uuid parameter
|
|
25202
25436
|
* @param {number} [page] Page number
|
|
25203
25437
|
* @param {number} [perPage] Number of items per page
|
|
25438
|
+
* @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
|
|
25204
25439
|
* @param {*} [options] Override http request option.
|
|
25205
25440
|
* @throws {RequiredError}
|
|
25206
25441
|
*/
|
|
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 = {}) {
|
|
25442
|
+
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
25443
|
// verify required parameter 'profileUuid' is not null or undefined
|
|
25209
25444
|
(0, common_1.assertParamExists)('listFormsV1', 'profileUuid', profileUuid);
|
|
25210
25445
|
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms`
|
|
@@ -25227,6 +25462,9 @@ const ReachFormsApiAxiosParamCreator = function (configuration) {
|
|
|
25227
25462
|
if (perPage !== undefined) {
|
|
25228
25463
|
localVarQueryParameter['per_page'] = perPage;
|
|
25229
25464
|
}
|
|
25465
|
+
if (status !== undefined) {
|
|
25466
|
+
localVarQueryParameter['status'] = status;
|
|
25467
|
+
}
|
|
25230
25468
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25231
25469
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25232
25470
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -25235,6 +25473,129 @@ const ReachFormsApiAxiosParamCreator = function (configuration) {
|
|
|
25235
25473
|
options: localVarRequestOptions,
|
|
25236
25474
|
};
|
|
25237
25475
|
}),
|
|
25476
|
+
/**
|
|
25477
|
+
* 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.
|
|
25478
|
+
* @summary Remove form submitter tag
|
|
25479
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25480
|
+
* @param {string} formUuid Form uuid parameter
|
|
25481
|
+
* @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
|
|
25482
|
+
* @param {*} [options] Override http request option.
|
|
25483
|
+
* @throws {RequiredError}
|
|
25484
|
+
*/
|
|
25485
|
+
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 = {}) {
|
|
25486
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25487
|
+
(0, common_1.assertParamExists)('removeFormSubmitterTagV1', 'profileUuid', profileUuid);
|
|
25488
|
+
// verify required parameter 'formUuid' is not null or undefined
|
|
25489
|
+
(0, common_1.assertParamExists)('removeFormSubmitterTagV1', 'formUuid', formUuid);
|
|
25490
|
+
// verify required parameter 'reachV1FormsRemoveTagRequest' is not null or undefined
|
|
25491
|
+
(0, common_1.assertParamExists)('removeFormSubmitterTagV1', 'reachV1FormsRemoveTagRequest', reachV1FormsRemoveTagRequest);
|
|
25492
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms/{formUuid}/tags`
|
|
25493
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
25494
|
+
.replace(`{${"formUuid"}}`, encodeURIComponent(String(formUuid)));
|
|
25495
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25496
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25497
|
+
let baseOptions;
|
|
25498
|
+
if (configuration) {
|
|
25499
|
+
baseOptions = configuration.baseOptions;
|
|
25500
|
+
}
|
|
25501
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
25502
|
+
const localVarHeaderParameter = {};
|
|
25503
|
+
const localVarQueryParameter = {};
|
|
25504
|
+
// authentication apiToken required
|
|
25505
|
+
// http bearer authentication required
|
|
25506
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
25507
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25508
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25509
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25510
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25511
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1FormsRemoveTagRequest, localVarRequestOptions, configuration);
|
|
25512
|
+
return {
|
|
25513
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25514
|
+
options: localVarRequestOptions,
|
|
25515
|
+
};
|
|
25516
|
+
}),
|
|
25517
|
+
/**
|
|
25518
|
+
* 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.
|
|
25519
|
+
* @summary Update form template
|
|
25520
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25521
|
+
* @param {string} formUuid Form uuid parameter
|
|
25522
|
+
* @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
|
|
25523
|
+
* @param {*} [options] Override http request option.
|
|
25524
|
+
* @throws {RequiredError}
|
|
25525
|
+
*/
|
|
25526
|
+
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 = {}) {
|
|
25527
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25528
|
+
(0, common_1.assertParamExists)('updateFormTemplateV1', 'profileUuid', profileUuid);
|
|
25529
|
+
// verify required parameter 'formUuid' is not null or undefined
|
|
25530
|
+
(0, common_1.assertParamExists)('updateFormTemplateV1', 'formUuid', formUuid);
|
|
25531
|
+
// verify required parameter 'reachV1FormsUpdateTemplateRequest' is not null or undefined
|
|
25532
|
+
(0, common_1.assertParamExists)('updateFormTemplateV1', 'reachV1FormsUpdateTemplateRequest', reachV1FormsUpdateTemplateRequest);
|
|
25533
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms/{formUuid}/template`
|
|
25534
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
25535
|
+
.replace(`{${"formUuid"}}`, encodeURIComponent(String(formUuid)));
|
|
25536
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25537
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25538
|
+
let baseOptions;
|
|
25539
|
+
if (configuration) {
|
|
25540
|
+
baseOptions = configuration.baseOptions;
|
|
25541
|
+
}
|
|
25542
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
25543
|
+
const localVarHeaderParameter = {};
|
|
25544
|
+
const localVarQueryParameter = {};
|
|
25545
|
+
// authentication apiToken required
|
|
25546
|
+
// http bearer authentication required
|
|
25547
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
25548
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25549
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25550
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25551
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25552
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1FormsUpdateTemplateRequest, localVarRequestOptions, configuration);
|
|
25553
|
+
return {
|
|
25554
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25555
|
+
options: localVarRequestOptions,
|
|
25556
|
+
};
|
|
25557
|
+
}),
|
|
25558
|
+
/**
|
|
25559
|
+
* 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.
|
|
25560
|
+
* @summary Update form
|
|
25561
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25562
|
+
* @param {string} formUuid Form uuid parameter
|
|
25563
|
+
* @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
|
|
25564
|
+
* @param {*} [options] Override http request option.
|
|
25565
|
+
* @throws {RequiredError}
|
|
25566
|
+
*/
|
|
25567
|
+
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 = {}) {
|
|
25568
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25569
|
+
(0, common_1.assertParamExists)('updateFormV1', 'profileUuid', profileUuid);
|
|
25570
|
+
// verify required parameter 'formUuid' is not null or undefined
|
|
25571
|
+
(0, common_1.assertParamExists)('updateFormV1', 'formUuid', formUuid);
|
|
25572
|
+
// verify required parameter 'reachV1FormsUpdateRequest' is not null or undefined
|
|
25573
|
+
(0, common_1.assertParamExists)('updateFormV1', 'reachV1FormsUpdateRequest', reachV1FormsUpdateRequest);
|
|
25574
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms/{formUuid}`
|
|
25575
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
25576
|
+
.replace(`{${"formUuid"}}`, encodeURIComponent(String(formUuid)));
|
|
25577
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25578
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25579
|
+
let baseOptions;
|
|
25580
|
+
if (configuration) {
|
|
25581
|
+
baseOptions = configuration.baseOptions;
|
|
25582
|
+
}
|
|
25583
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
25584
|
+
const localVarHeaderParameter = {};
|
|
25585
|
+
const localVarQueryParameter = {};
|
|
25586
|
+
// authentication apiToken required
|
|
25587
|
+
// http bearer authentication required
|
|
25588
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
25589
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25590
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25591
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25592
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25593
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1FormsUpdateRequest, localVarRequestOptions, configuration);
|
|
25594
|
+
return {
|
|
25595
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25596
|
+
options: localVarRequestOptions,
|
|
25597
|
+
};
|
|
25598
|
+
}),
|
|
25238
25599
|
};
|
|
25239
25600
|
};
|
|
25240
25601
|
exports.ReachFormsApiAxiosParamCreator = ReachFormsApiAxiosParamCreator;
|
|
@@ -25245,6 +25606,39 @@ exports.ReachFormsApiAxiosParamCreator = ReachFormsApiAxiosParamCreator;
|
|
|
25245
25606
|
const ReachFormsApiFp = function (configuration) {
|
|
25246
25607
|
const localVarAxiosParamCreator = (0, exports.ReachFormsApiAxiosParamCreator)(configuration);
|
|
25247
25608
|
return {
|
|
25609
|
+
/**
|
|
25610
|
+
* 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.
|
|
25611
|
+
* @summary Add form submitter tags
|
|
25612
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25613
|
+
* @param {string} formUuid Form uuid parameter
|
|
25614
|
+
* @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
|
|
25615
|
+
* @param {*} [options] Override http request option.
|
|
25616
|
+
* @throws {RequiredError}
|
|
25617
|
+
*/
|
|
25618
|
+
addFormSubmitterTagsV1(profileUuid, formUuid, reachV1FormsAssignTagsRequest, options) {
|
|
25619
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25620
|
+
var _a, _b;
|
|
25621
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addFormSubmitterTagsV1(profileUuid, formUuid, reachV1FormsAssignTagsRequest, options);
|
|
25622
|
+
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;
|
|
25623
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25624
|
+
});
|
|
25625
|
+
},
|
|
25626
|
+
/**
|
|
25627
|
+
* 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.
|
|
25628
|
+
* @summary Create form
|
|
25629
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25630
|
+
* @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
|
|
25631
|
+
* @param {*} [options] Override http request option.
|
|
25632
|
+
* @throws {RequiredError}
|
|
25633
|
+
*/
|
|
25634
|
+
createFormV1(profileUuid, reachV1FormsStoreRequest, options) {
|
|
25635
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25636
|
+
var _a, _b;
|
|
25637
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createFormV1(profileUuid, reachV1FormsStoreRequest, options);
|
|
25638
|
+
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;
|
|
25639
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25640
|
+
});
|
|
25641
|
+
},
|
|
25248
25642
|
/**
|
|
25249
25643
|
* 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
25644
|
* @summary Delete form
|
|
@@ -25261,6 +25655,22 @@ const ReachFormsApiFp = function (configuration) {
|
|
|
25261
25655
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25262
25656
|
});
|
|
25263
25657
|
},
|
|
25658
|
+
/**
|
|
25659
|
+
* 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`.
|
|
25660
|
+
* @summary Duplicate form
|
|
25661
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25662
|
+
* @param {string} formUuid Form uuid parameter
|
|
25663
|
+
* @param {*} [options] Override http request option.
|
|
25664
|
+
* @throws {RequiredError}
|
|
25665
|
+
*/
|
|
25666
|
+
duplicateFormV1(profileUuid, formUuid, options) {
|
|
25667
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25668
|
+
var _a, _b;
|
|
25669
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.duplicateFormV1(profileUuid, formUuid, options);
|
|
25670
|
+
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;
|
|
25671
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25672
|
+
});
|
|
25673
|
+
},
|
|
25264
25674
|
/**
|
|
25265
25675
|
* 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
25676
|
* @summary Get form details
|
|
@@ -25283,17 +25693,69 @@ const ReachFormsApiFp = function (configuration) {
|
|
|
25283
25693
|
* @param {string} profileUuid Profile uuid parameter
|
|
25284
25694
|
* @param {number} [page] Page number
|
|
25285
25695
|
* @param {number} [perPage] Number of items per page
|
|
25696
|
+
* @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
|
|
25286
25697
|
* @param {*} [options] Override http request option.
|
|
25287
25698
|
* @throws {RequiredError}
|
|
25288
25699
|
*/
|
|
25289
|
-
listFormsV1(profileUuid, page, perPage, options) {
|
|
25700
|
+
listFormsV1(profileUuid, page, perPage, status, options) {
|
|
25290
25701
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25291
25702
|
var _a, _b;
|
|
25292
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listFormsV1(profileUuid, page, perPage, options);
|
|
25703
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listFormsV1(profileUuid, page, perPage, status, options);
|
|
25293
25704
|
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
25705
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25295
25706
|
});
|
|
25296
25707
|
},
|
|
25708
|
+
/**
|
|
25709
|
+
* 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.
|
|
25710
|
+
* @summary Remove form submitter tag
|
|
25711
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25712
|
+
* @param {string} formUuid Form uuid parameter
|
|
25713
|
+
* @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
|
|
25714
|
+
* @param {*} [options] Override http request option.
|
|
25715
|
+
* @throws {RequiredError}
|
|
25716
|
+
*/
|
|
25717
|
+
removeFormSubmitterTagV1(profileUuid, formUuid, reachV1FormsRemoveTagRequest, options) {
|
|
25718
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25719
|
+
var _a, _b;
|
|
25720
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeFormSubmitterTagV1(profileUuid, formUuid, reachV1FormsRemoveTagRequest, options);
|
|
25721
|
+
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;
|
|
25722
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25723
|
+
});
|
|
25724
|
+
},
|
|
25725
|
+
/**
|
|
25726
|
+
* 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.
|
|
25727
|
+
* @summary Update form template
|
|
25728
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25729
|
+
* @param {string} formUuid Form uuid parameter
|
|
25730
|
+
* @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
|
|
25731
|
+
* @param {*} [options] Override http request option.
|
|
25732
|
+
* @throws {RequiredError}
|
|
25733
|
+
*/
|
|
25734
|
+
updateFormTemplateV1(profileUuid, formUuid, reachV1FormsUpdateTemplateRequest, options) {
|
|
25735
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25736
|
+
var _a, _b;
|
|
25737
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFormTemplateV1(profileUuid, formUuid, reachV1FormsUpdateTemplateRequest, options);
|
|
25738
|
+
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;
|
|
25739
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25740
|
+
});
|
|
25741
|
+
},
|
|
25742
|
+
/**
|
|
25743
|
+
* 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.
|
|
25744
|
+
* @summary Update form
|
|
25745
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25746
|
+
* @param {string} formUuid Form uuid parameter
|
|
25747
|
+
* @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
|
|
25748
|
+
* @param {*} [options] Override http request option.
|
|
25749
|
+
* @throws {RequiredError}
|
|
25750
|
+
*/
|
|
25751
|
+
updateFormV1(profileUuid, formUuid, reachV1FormsUpdateRequest, options) {
|
|
25752
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25753
|
+
var _a, _b;
|
|
25754
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFormV1(profileUuid, formUuid, reachV1FormsUpdateRequest, options);
|
|
25755
|
+
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;
|
|
25756
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25757
|
+
});
|
|
25758
|
+
},
|
|
25297
25759
|
};
|
|
25298
25760
|
};
|
|
25299
25761
|
exports.ReachFormsApiFp = ReachFormsApiFp;
|
|
@@ -25304,6 +25766,29 @@ exports.ReachFormsApiFp = ReachFormsApiFp;
|
|
|
25304
25766
|
const ReachFormsApiFactory = function (configuration, basePath, axios) {
|
|
25305
25767
|
const localVarFp = (0, exports.ReachFormsApiFp)(configuration);
|
|
25306
25768
|
return {
|
|
25769
|
+
/**
|
|
25770
|
+
* 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.
|
|
25771
|
+
* @summary Add form submitter tags
|
|
25772
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25773
|
+
* @param {string} formUuid Form uuid parameter
|
|
25774
|
+
* @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
|
|
25775
|
+
* @param {*} [options] Override http request option.
|
|
25776
|
+
* @throws {RequiredError}
|
|
25777
|
+
*/
|
|
25778
|
+
addFormSubmitterTagsV1(profileUuid, formUuid, reachV1FormsAssignTagsRequest, options) {
|
|
25779
|
+
return localVarFp.addFormSubmitterTagsV1(profileUuid, formUuid, reachV1FormsAssignTagsRequest, options).then((request) => request(axios, basePath));
|
|
25780
|
+
},
|
|
25781
|
+
/**
|
|
25782
|
+
* 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.
|
|
25783
|
+
* @summary Create form
|
|
25784
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25785
|
+
* @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
|
|
25786
|
+
* @param {*} [options] Override http request option.
|
|
25787
|
+
* @throws {RequiredError}
|
|
25788
|
+
*/
|
|
25789
|
+
createFormV1(profileUuid, reachV1FormsStoreRequest, options) {
|
|
25790
|
+
return localVarFp.createFormV1(profileUuid, reachV1FormsStoreRequest, options).then((request) => request(axios, basePath));
|
|
25791
|
+
},
|
|
25307
25792
|
/**
|
|
25308
25793
|
* 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
25794
|
* @summary Delete form
|
|
@@ -25315,6 +25800,17 @@ const ReachFormsApiFactory = function (configuration, basePath, axios) {
|
|
|
25315
25800
|
deleteFormV1(profileUuid, formUuid, options) {
|
|
25316
25801
|
return localVarFp.deleteFormV1(profileUuid, formUuid, options).then((request) => request(axios, basePath));
|
|
25317
25802
|
},
|
|
25803
|
+
/**
|
|
25804
|
+
* 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`.
|
|
25805
|
+
* @summary Duplicate form
|
|
25806
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25807
|
+
* @param {string} formUuid Form uuid parameter
|
|
25808
|
+
* @param {*} [options] Override http request option.
|
|
25809
|
+
* @throws {RequiredError}
|
|
25810
|
+
*/
|
|
25811
|
+
duplicateFormV1(profileUuid, formUuid, options) {
|
|
25812
|
+
return localVarFp.duplicateFormV1(profileUuid, formUuid, options).then((request) => request(axios, basePath));
|
|
25813
|
+
},
|
|
25318
25814
|
/**
|
|
25319
25815
|
* 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
25816
|
* @summary Get form details
|
|
@@ -25332,11 +25828,48 @@ const ReachFormsApiFactory = function (configuration, basePath, axios) {
|
|
|
25332
25828
|
* @param {string} profileUuid Profile uuid parameter
|
|
25333
25829
|
* @param {number} [page] Page number
|
|
25334
25830
|
* @param {number} [perPage] Number of items per page
|
|
25831
|
+
* @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
|
|
25832
|
+
* @param {*} [options] Override http request option.
|
|
25833
|
+
* @throws {RequiredError}
|
|
25834
|
+
*/
|
|
25835
|
+
listFormsV1(profileUuid, page, perPage, status, options) {
|
|
25836
|
+
return localVarFp.listFormsV1(profileUuid, page, perPage, status, options).then((request) => request(axios, basePath));
|
|
25837
|
+
},
|
|
25838
|
+
/**
|
|
25839
|
+
* 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.
|
|
25840
|
+
* @summary Remove form submitter tag
|
|
25841
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25842
|
+
* @param {string} formUuid Form uuid parameter
|
|
25843
|
+
* @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
|
|
25844
|
+
* @param {*} [options] Override http request option.
|
|
25845
|
+
* @throws {RequiredError}
|
|
25846
|
+
*/
|
|
25847
|
+
removeFormSubmitterTagV1(profileUuid, formUuid, reachV1FormsRemoveTagRequest, options) {
|
|
25848
|
+
return localVarFp.removeFormSubmitterTagV1(profileUuid, formUuid, reachV1FormsRemoveTagRequest, options).then((request) => request(axios, basePath));
|
|
25849
|
+
},
|
|
25850
|
+
/**
|
|
25851
|
+
* 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.
|
|
25852
|
+
* @summary Update form template
|
|
25853
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25854
|
+
* @param {string} formUuid Form uuid parameter
|
|
25855
|
+
* @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
|
|
25335
25856
|
* @param {*} [options] Override http request option.
|
|
25336
25857
|
* @throws {RequiredError}
|
|
25337
25858
|
*/
|
|
25338
|
-
|
|
25339
|
-
return localVarFp.
|
|
25859
|
+
updateFormTemplateV1(profileUuid, formUuid, reachV1FormsUpdateTemplateRequest, options) {
|
|
25860
|
+
return localVarFp.updateFormTemplateV1(profileUuid, formUuid, reachV1FormsUpdateTemplateRequest, options).then((request) => request(axios, basePath));
|
|
25861
|
+
},
|
|
25862
|
+
/**
|
|
25863
|
+
* 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.
|
|
25864
|
+
* @summary Update form
|
|
25865
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25866
|
+
* @param {string} formUuid Form uuid parameter
|
|
25867
|
+
* @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
|
|
25868
|
+
* @param {*} [options] Override http request option.
|
|
25869
|
+
* @throws {RequiredError}
|
|
25870
|
+
*/
|
|
25871
|
+
updateFormV1(profileUuid, formUuid, reachV1FormsUpdateRequest, options) {
|
|
25872
|
+
return localVarFp.updateFormV1(profileUuid, formUuid, reachV1FormsUpdateRequest, options).then((request) => request(axios, basePath));
|
|
25340
25873
|
},
|
|
25341
25874
|
};
|
|
25342
25875
|
};
|
|
@@ -25348,6 +25881,31 @@ exports.ReachFormsApiFactory = ReachFormsApiFactory;
|
|
|
25348
25881
|
* @extends {BaseAPI}
|
|
25349
25882
|
*/
|
|
25350
25883
|
class ReachFormsApi extends base_1.BaseAPI {
|
|
25884
|
+
/**
|
|
25885
|
+
* 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.
|
|
25886
|
+
* @summary Add form submitter tags
|
|
25887
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25888
|
+
* @param {string} formUuid Form uuid parameter
|
|
25889
|
+
* @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
|
|
25890
|
+
* @param {*} [options] Override http request option.
|
|
25891
|
+
* @throws {RequiredError}
|
|
25892
|
+
* @memberof ReachFormsApi
|
|
25893
|
+
*/
|
|
25894
|
+
addFormSubmitterTagsV1(profileUuid, formUuid, reachV1FormsAssignTagsRequest, options) {
|
|
25895
|
+
return (0, exports.ReachFormsApiFp)(this.configuration).addFormSubmitterTagsV1(profileUuid, formUuid, reachV1FormsAssignTagsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25896
|
+
}
|
|
25897
|
+
/**
|
|
25898
|
+
* 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.
|
|
25899
|
+
* @summary Create form
|
|
25900
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25901
|
+
* @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
|
|
25902
|
+
* @param {*} [options] Override http request option.
|
|
25903
|
+
* @throws {RequiredError}
|
|
25904
|
+
* @memberof ReachFormsApi
|
|
25905
|
+
*/
|
|
25906
|
+
createFormV1(profileUuid, reachV1FormsStoreRequest, options) {
|
|
25907
|
+
return (0, exports.ReachFormsApiFp)(this.configuration).createFormV1(profileUuid, reachV1FormsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25908
|
+
}
|
|
25351
25909
|
/**
|
|
25352
25910
|
* 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
25911
|
* @summary Delete form
|
|
@@ -25360,6 +25918,18 @@ class ReachFormsApi extends base_1.BaseAPI {
|
|
|
25360
25918
|
deleteFormV1(profileUuid, formUuid, options) {
|
|
25361
25919
|
return (0, exports.ReachFormsApiFp)(this.configuration).deleteFormV1(profileUuid, formUuid, options).then((request) => request(this.axios, this.basePath));
|
|
25362
25920
|
}
|
|
25921
|
+
/**
|
|
25922
|
+
* 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`.
|
|
25923
|
+
* @summary Duplicate form
|
|
25924
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25925
|
+
* @param {string} formUuid Form uuid parameter
|
|
25926
|
+
* @param {*} [options] Override http request option.
|
|
25927
|
+
* @throws {RequiredError}
|
|
25928
|
+
* @memberof ReachFormsApi
|
|
25929
|
+
*/
|
|
25930
|
+
duplicateFormV1(profileUuid, formUuid, options) {
|
|
25931
|
+
return (0, exports.ReachFormsApiFp)(this.configuration).duplicateFormV1(profileUuid, formUuid, options).then((request) => request(this.axios, this.basePath));
|
|
25932
|
+
}
|
|
25363
25933
|
/**
|
|
25364
25934
|
* 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
25935
|
* @summary Get form details
|
|
@@ -25378,15 +25948,63 @@ class ReachFormsApi extends base_1.BaseAPI {
|
|
|
25378
25948
|
* @param {string} profileUuid Profile uuid parameter
|
|
25379
25949
|
* @param {number} [page] Page number
|
|
25380
25950
|
* @param {number} [perPage] Number of items per page
|
|
25951
|
+
* @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
|
|
25381
25952
|
* @param {*} [options] Override http request option.
|
|
25382
25953
|
* @throws {RequiredError}
|
|
25383
25954
|
* @memberof ReachFormsApi
|
|
25384
25955
|
*/
|
|
25385
|
-
listFormsV1(profileUuid, page, perPage, options) {
|
|
25386
|
-
return (0, exports.ReachFormsApiFp)(this.configuration).listFormsV1(profileUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
25956
|
+
listFormsV1(profileUuid, page, perPage, status, options) {
|
|
25957
|
+
return (0, exports.ReachFormsApiFp)(this.configuration).listFormsV1(profileUuid, page, perPage, status, options).then((request) => request(this.axios, this.basePath));
|
|
25958
|
+
}
|
|
25959
|
+
/**
|
|
25960
|
+
* 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.
|
|
25961
|
+
* @summary Remove form submitter tag
|
|
25962
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25963
|
+
* @param {string} formUuid Form uuid parameter
|
|
25964
|
+
* @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
|
|
25965
|
+
* @param {*} [options] Override http request option.
|
|
25966
|
+
* @throws {RequiredError}
|
|
25967
|
+
* @memberof ReachFormsApi
|
|
25968
|
+
*/
|
|
25969
|
+
removeFormSubmitterTagV1(profileUuid, formUuid, reachV1FormsRemoveTagRequest, options) {
|
|
25970
|
+
return (0, exports.ReachFormsApiFp)(this.configuration).removeFormSubmitterTagV1(profileUuid, formUuid, reachV1FormsRemoveTagRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25971
|
+
}
|
|
25972
|
+
/**
|
|
25973
|
+
* 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.
|
|
25974
|
+
* @summary Update form template
|
|
25975
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25976
|
+
* @param {string} formUuid Form uuid parameter
|
|
25977
|
+
* @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
|
|
25978
|
+
* @param {*} [options] Override http request option.
|
|
25979
|
+
* @throws {RequiredError}
|
|
25980
|
+
* @memberof ReachFormsApi
|
|
25981
|
+
*/
|
|
25982
|
+
updateFormTemplateV1(profileUuid, formUuid, reachV1FormsUpdateTemplateRequest, options) {
|
|
25983
|
+
return (0, exports.ReachFormsApiFp)(this.configuration).updateFormTemplateV1(profileUuid, formUuid, reachV1FormsUpdateTemplateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25984
|
+
}
|
|
25985
|
+
/**
|
|
25986
|
+
* 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.
|
|
25987
|
+
* @summary Update form
|
|
25988
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25989
|
+
* @param {string} formUuid Form uuid parameter
|
|
25990
|
+
* @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
|
|
25991
|
+
* @param {*} [options] Override http request option.
|
|
25992
|
+
* @throws {RequiredError}
|
|
25993
|
+
* @memberof ReachFormsApi
|
|
25994
|
+
*/
|
|
25995
|
+
updateFormV1(profileUuid, formUuid, reachV1FormsUpdateRequest, options) {
|
|
25996
|
+
return (0, exports.ReachFormsApiFp)(this.configuration).updateFormV1(profileUuid, formUuid, reachV1FormsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25387
25997
|
}
|
|
25388
25998
|
}
|
|
25389
25999
|
exports.ReachFormsApi = ReachFormsApi;
|
|
26000
|
+
/**
|
|
26001
|
+
* @export
|
|
26002
|
+
*/
|
|
26003
|
+
exports.ListFormsV1StatusEnum = {
|
|
26004
|
+
Active: 'active',
|
|
26005
|
+
Paused: 'paused',
|
|
26006
|
+
Draft: 'draft'
|
|
26007
|
+
};
|
|
25390
26008
|
/**
|
|
25391
26009
|
* ReachProfilesApi - axios parameter creator
|
|
25392
26010
|
* @export
|