hostinger-api-sdk 3.4.2 → 3.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +784 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +505 -1
- package/dist/api.js +551 -14
- 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 +505 -1
- package/dist/esm/api.js +534 -1
- 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/EcommerceV1WebhookStoreRequest.md +24 -0
- package/docs/EcommerceV1WebhookUpdateRequest.md +26 -0
- package/docs/EcommerceV1WebhookWebhookCreationResource.md +22 -0
- package/docs/EcommerceV1WebhookWebhookEndpointResource.md +44 -0
- package/docs/EcommerceV1WebhookWebhookListResource.md +20 -0
- package/docs/EcommerceV1WebhookWebhookResource.md +20 -0
- package/docs/EcommerceV1WebhookWebhookSecretResource.md +22 -0
- package/docs/EcommerceWebhooksApi.md +362 -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: 3.4.
|
|
7
|
+
* API Version: 3.4.3
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -19,19 +19,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
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 = void 0;
|
|
22
|
+
exports.EcommerceV1WebhookStoreRequestEventsEnum = 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.DomainsV1DomainDomainVerificationResourceTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DomainsV1DomainDomainContactVerificationChannelResourceStatusEnum = 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
|
+
exports.HostingV1SslSslStatusResourceStatusEnum = exports.HostingV1PocketBaseInstanceResourceFailureReasonEnum = exports.HostingV1PocketBaseInstanceResourceStateEnum = exports.HostingV1PocketBaseBackendResourceFailureReasonEnum = exports.HostingV1PocketBaseBackendResourceStateEnum = exports.HostingV1PocketBaseBackendCreatedResourceStateEnum = 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.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 = exports.HorizonsV1WebsitesPublishedWebsiteResourceStatusEnum = exports.HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.GPUV1LlmModelVariantLlmModelVariantResourceCapabilitiesEnum = exports.GPUV1InstanceInstanceResourceActionLockReasonEnum = exports.GPUV1InstanceInstanceResourceActionLockEnum = exports.GPUV1InstanceInstanceResourceStatusEnum = exports.GPUV1InstanceInstanceListResourceActionLockReasonEnum = exports.GPUV1InstanceInstanceListResourceActionLockEnum = exports.GPUV1InstanceInstanceListResourceStatusEnum = exports.GPUV1ExposedServiceStoreRequestTypeEnum = exports.GPUV1ExposedServiceStoreRequestProtocolEnum = exports.GPUV1ExposedServiceExposedServiceResourceTypeEnum = exports.GPUV1ExposedServiceExposedServiceResourceProtocolEnum = exports.EcommerceV1WebhookWebhookEndpointResourceDisabledReasonEnum = exports.EcommerceV1WebhookWebhookEndpointResourceEventsEnum = exports.EcommerceV1WebhookUpdateRequestEventsEnum = void 0;
|
|
24
|
+
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 = 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 = void 0;
|
|
25
|
+
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.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 = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1WebsitesWebsiteResourcePlatformTypeEnum = exports.ReachV1StoresStoreResourceConnectionStatusEnum = exports.ReachV1StoresStoreResourceVersionEnum = 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 = void 0;
|
|
26
|
+
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 = 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 = void 0;
|
|
27
|
+
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.DNSPropagationApi = exports.DNSPropagationApiFactory = exports.DNSPropagationApiFp = exports.DNSPropagationApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = 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 = void 0;
|
|
28
|
+
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 = 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 = void 0;
|
|
29
|
+
exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = 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.GPUInstancesApi = exports.GPUInstancesApiFactory = exports.GPUInstancesApiFp = exports.GPUInstancesApiAxiosParamCreator = exports.GPUExposedServicesApi = exports.GPUExposedServicesApiFactory = exports.GPUExposedServicesApiFp = exports.GPUExposedServicesApiAxiosParamCreator = exports.GPUCatalogApi = exports.GPUCatalogApiFactory = exports.GPUCatalogApiFp = exports.GPUCatalogApiAxiosParamCreator = exports.EcommerceWebhooksApi = exports.EcommerceWebhooksApiFactory = exports.EcommerceWebhooksApiFp = exports.EcommerceWebhooksApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = void 0;
|
|
30
|
+
exports.ListWebsitesV1WebsiteTypesEnum = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingSSLApi = exports.HostingSSLApiFactory = exports.HostingSSLApiFp = exports.HostingSSLApiAxiosParamCreator = exports.HostingRedirectsApi = exports.HostingRedirectsApiFactory = exports.HostingRedirectsApiFp = exports.HostingRedirectsApiAxiosParamCreator = exports.HostingPocketBaseApi = exports.HostingPocketBaseApiFactory = exports.HostingPocketBaseApiFp = exports.HostingPocketBaseApiAxiosParamCreator = 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 = void 0;
|
|
31
|
+
exports.ReachAutomationsApi = exports.ReachAutomationsApiFactory = exports.ReachAutomationsApiFp = exports.ReachAutomationsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = 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 = void 0;
|
|
32
|
+
exports.VPSBackupsApiAxiosParamCreator = 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.ReachIntegrationsApi = exports.ReachIntegrationsApiFactory = exports.ReachIntegrationsApiFp = exports.ReachIntegrationsApiAxiosParamCreator = 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 = void 0;
|
|
33
|
+
exports.VPSVirtualMachineApiFactory = 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 = void 0;
|
|
34
|
+
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 = void 0;
|
|
35
35
|
const axios_1 = require("axios");
|
|
36
36
|
// Some imports not used depending on template conditions
|
|
37
37
|
// @ts-ignore
|
|
@@ -328,6 +328,53 @@ exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = {
|
|
|
328
328
|
exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = {
|
|
329
329
|
Custom: 'custom'
|
|
330
330
|
};
|
|
331
|
+
exports.EcommerceV1WebhookStoreRequestEventsEnum = {
|
|
332
|
+
OrderPlaced: 'order.placed',
|
|
333
|
+
OrderPaid: 'order.paid',
|
|
334
|
+
OrderCancelled: 'order.cancelled',
|
|
335
|
+
OrderRefunded: 'order.refunded',
|
|
336
|
+
OrderFulfilled: 'order.fulfilled',
|
|
337
|
+
FulfillmentCreated: 'fulfillment.created',
|
|
338
|
+
FulfillmentUpdated: 'fulfillment.updated',
|
|
339
|
+
FulfillmentCancelled: 'fulfillment.cancelled',
|
|
340
|
+
ProductCreated: 'product.created',
|
|
341
|
+
ProductUpdated: 'product.updated',
|
|
342
|
+
ProductDeleted: 'product.deleted'
|
|
343
|
+
};
|
|
344
|
+
exports.EcommerceV1WebhookUpdateRequestEventsEnum = {
|
|
345
|
+
OrderPlaced: 'order.placed',
|
|
346
|
+
OrderPaid: 'order.paid',
|
|
347
|
+
OrderCancelled: 'order.cancelled',
|
|
348
|
+
OrderRefunded: 'order.refunded',
|
|
349
|
+
OrderFulfilled: 'order.fulfilled',
|
|
350
|
+
FulfillmentCreated: 'fulfillment.created',
|
|
351
|
+
FulfillmentUpdated: 'fulfillment.updated',
|
|
352
|
+
FulfillmentCancelled: 'fulfillment.cancelled',
|
|
353
|
+
ProductCreated: 'product.created',
|
|
354
|
+
ProductUpdated: 'product.updated',
|
|
355
|
+
ProductDeleted: 'product.deleted'
|
|
356
|
+
};
|
|
357
|
+
exports.EcommerceV1WebhookWebhookEndpointResourceEventsEnum = {
|
|
358
|
+
OrderPlaced: 'order.placed',
|
|
359
|
+
OrderPaid: 'order.paid',
|
|
360
|
+
OrderCancelled: 'order.cancelled',
|
|
361
|
+
OrderRefunded: 'order.refunded',
|
|
362
|
+
OrderFulfilled: 'order.fulfilled',
|
|
363
|
+
FulfillmentCreated: 'fulfillment.created',
|
|
364
|
+
FulfillmentUpdated: 'fulfillment.updated',
|
|
365
|
+
FulfillmentCancelled: 'fulfillment.cancelled',
|
|
366
|
+
ProductCreated: 'product.created',
|
|
367
|
+
ProductUpdated: 'product.updated',
|
|
368
|
+
ProductDeleted: 'product.deleted'
|
|
369
|
+
};
|
|
370
|
+
exports.EcommerceV1WebhookWebhookEndpointResourceDisabledReasonEnum = {
|
|
371
|
+
MerchantDisabled: 'merchant_disabled',
|
|
372
|
+
StoreTransferred: 'store_transferred',
|
|
373
|
+
StoreSuspended: 'store_suspended',
|
|
374
|
+
StoreDeleted: 'store_deleted',
|
|
375
|
+
ReceiverGone: 'receiver_gone',
|
|
376
|
+
ReceiverFailing: 'receiver_failing'
|
|
377
|
+
};
|
|
331
378
|
exports.GPUV1ExposedServiceExposedServiceResourceProtocolEnum = {
|
|
332
379
|
Tcp: 'tcp',
|
|
333
380
|
Udp: 'udp'
|
|
@@ -12559,6 +12606,496 @@ class EcommerceStoresApi extends base_1.BaseAPI {
|
|
|
12559
12606
|
}
|
|
12560
12607
|
}
|
|
12561
12608
|
exports.EcommerceStoresApi = EcommerceStoresApi;
|
|
12609
|
+
/**
|
|
12610
|
+
* EcommerceWebhooksApi - axios parameter creator
|
|
12611
|
+
* @export
|
|
12612
|
+
*/
|
|
12613
|
+
const EcommerceWebhooksApiAxiosParamCreator = function (configuration) {
|
|
12614
|
+
return {
|
|
12615
|
+
/**
|
|
12616
|
+
* Create an enabled subscription for your store to receive ecommerce events in external automation systems. Save the whsec_ signing secret securely; it is returned once. Up to ten endpoints, including disabled endpoints, may exist per store. Deliveries follow Standard Webhooks: verify the webhook-id, webhook-timestamp and webhook-signature headers against the raw body with an official Standard Webhooks library before parsing. Events can arrive out of order or more than once; deduplicate by event id. 400: the URL is not a public destination, or webhook_sales_channel_invalid (a channel ID does not belong to this store). 409 codes: webhook_endpoint_limit_reached, webhook_store_inactive, webhook_endpoint_catalog_busy (a catalog change is in progress; retry). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
12617
|
+
* @summary Create an ecommerce webhook
|
|
12618
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
12619
|
+
* @param {EcommerceV1WebhookStoreRequest} ecommerceV1WebhookStoreRequest
|
|
12620
|
+
* @param {*} [options] Override http request option.
|
|
12621
|
+
* @throws {RequiredError}
|
|
12622
|
+
*/
|
|
12623
|
+
createAnEcommerceWebhookV1: (storeId_1, ecommerceV1WebhookStoreRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1WebhookStoreRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1WebhookStoreRequest, options = {}) {
|
|
12624
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
12625
|
+
(0, common_1.assertParamExists)('createAnEcommerceWebhookV1', 'storeId', storeId);
|
|
12626
|
+
// verify required parameter 'ecommerceV1WebhookStoreRequest' is not null or undefined
|
|
12627
|
+
(0, common_1.assertParamExists)('createAnEcommerceWebhookV1', 'ecommerceV1WebhookStoreRequest', ecommerceV1WebhookStoreRequest);
|
|
12628
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/webhooks`
|
|
12629
|
+
.replace(`{${"store_id"}}`, (0, common_1.encodePathParam)('storeId', storeId));
|
|
12630
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12631
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12632
|
+
let baseOptions;
|
|
12633
|
+
if (configuration) {
|
|
12634
|
+
baseOptions = configuration.baseOptions;
|
|
12635
|
+
}
|
|
12636
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12637
|
+
const localVarHeaderParameter = {};
|
|
12638
|
+
const localVarQueryParameter = {};
|
|
12639
|
+
// authentication apiToken required
|
|
12640
|
+
// http bearer authentication required
|
|
12641
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12642
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12643
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12644
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12645
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12646
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ecommerceV1WebhookStoreRequest, localVarRequestOptions, configuration);
|
|
12647
|
+
return {
|
|
12648
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12649
|
+
options: localVarRequestOptions,
|
|
12650
|
+
};
|
|
12651
|
+
}),
|
|
12652
|
+
/**
|
|
12653
|
+
* Delete a subscription owned by your store, retaining delivery audit records.
|
|
12654
|
+
* @summary Delete an ecommerce webhook
|
|
12655
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
12656
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
12657
|
+
* @param {*} [options] Override http request option.
|
|
12658
|
+
* @throws {RequiredError}
|
|
12659
|
+
*/
|
|
12660
|
+
deleteAnEcommerceWebhookV1: (storeId_1, endpointId_1, ...args_1) => __awaiter(this, [storeId_1, endpointId_1, ...args_1], void 0, function* (storeId, endpointId, options = {}) {
|
|
12661
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
12662
|
+
(0, common_1.assertParamExists)('deleteAnEcommerceWebhookV1', 'storeId', storeId);
|
|
12663
|
+
// verify required parameter 'endpointId' is not null or undefined
|
|
12664
|
+
(0, common_1.assertParamExists)('deleteAnEcommerceWebhookV1', 'endpointId', endpointId);
|
|
12665
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/webhooks/{endpoint_id}`
|
|
12666
|
+
.replace(`{${"store_id"}}`, (0, common_1.encodePathParam)('storeId', storeId))
|
|
12667
|
+
.replace(`{${"endpoint_id"}}`, (0, common_1.encodePathParam)('endpointId', endpointId));
|
|
12668
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12669
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12670
|
+
let baseOptions;
|
|
12671
|
+
if (configuration) {
|
|
12672
|
+
baseOptions = configuration.baseOptions;
|
|
12673
|
+
}
|
|
12674
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
12675
|
+
const localVarHeaderParameter = {};
|
|
12676
|
+
const localVarQueryParameter = {};
|
|
12677
|
+
// authentication apiToken required
|
|
12678
|
+
// http bearer authentication required
|
|
12679
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12680
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12681
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12682
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12683
|
+
return {
|
|
12684
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12685
|
+
options: localVarRequestOptions,
|
|
12686
|
+
};
|
|
12687
|
+
}),
|
|
12688
|
+
/**
|
|
12689
|
+
* Get a subscription owned by your store, without signing secrets.
|
|
12690
|
+
* @summary Get an ecommerce webhook
|
|
12691
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
12692
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
12693
|
+
* @param {*} [options] Override http request option.
|
|
12694
|
+
* @throws {RequiredError}
|
|
12695
|
+
*/
|
|
12696
|
+
getAnEcommerceWebhookV1: (storeId_1, endpointId_1, ...args_1) => __awaiter(this, [storeId_1, endpointId_1, ...args_1], void 0, function* (storeId, endpointId, options = {}) {
|
|
12697
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
12698
|
+
(0, common_1.assertParamExists)('getAnEcommerceWebhookV1', 'storeId', storeId);
|
|
12699
|
+
// verify required parameter 'endpointId' is not null or undefined
|
|
12700
|
+
(0, common_1.assertParamExists)('getAnEcommerceWebhookV1', 'endpointId', endpointId);
|
|
12701
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/webhooks/{endpoint_id}`
|
|
12702
|
+
.replace(`{${"store_id"}}`, (0, common_1.encodePathParam)('storeId', storeId))
|
|
12703
|
+
.replace(`{${"endpoint_id"}}`, (0, common_1.encodePathParam)('endpointId', endpointId));
|
|
12704
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12705
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12706
|
+
let baseOptions;
|
|
12707
|
+
if (configuration) {
|
|
12708
|
+
baseOptions = configuration.baseOptions;
|
|
12709
|
+
}
|
|
12710
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12711
|
+
const localVarHeaderParameter = {};
|
|
12712
|
+
const localVarQueryParameter = {};
|
|
12713
|
+
// authentication apiToken required
|
|
12714
|
+
// http bearer authentication required
|
|
12715
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12716
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12717
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12718
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12719
|
+
return {
|
|
12720
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12721
|
+
options: localVarRequestOptions,
|
|
12722
|
+
};
|
|
12723
|
+
}),
|
|
12724
|
+
/**
|
|
12725
|
+
* List your store\'s subscriptions for external automation systems, without signing secrets.
|
|
12726
|
+
* @summary List ecommerce webhooks
|
|
12727
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
12728
|
+
* @param {*} [options] Override http request option.
|
|
12729
|
+
* @throws {RequiredError}
|
|
12730
|
+
*/
|
|
12731
|
+
listEcommerceWebhooksV1: (storeId_1, ...args_1) => __awaiter(this, [storeId_1, ...args_1], void 0, function* (storeId, options = {}) {
|
|
12732
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
12733
|
+
(0, common_1.assertParamExists)('listEcommerceWebhooksV1', 'storeId', storeId);
|
|
12734
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/webhooks`
|
|
12735
|
+
.replace(`{${"store_id"}}`, (0, common_1.encodePathParam)('storeId', storeId));
|
|
12736
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12737
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12738
|
+
let baseOptions;
|
|
12739
|
+
if (configuration) {
|
|
12740
|
+
baseOptions = configuration.baseOptions;
|
|
12741
|
+
}
|
|
12742
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12743
|
+
const localVarHeaderParameter = {};
|
|
12744
|
+
const localVarQueryParameter = {};
|
|
12745
|
+
// authentication apiToken required
|
|
12746
|
+
// http bearer authentication required
|
|
12747
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12748
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12749
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12750
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12751
|
+
return {
|
|
12752
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12753
|
+
options: localVarRequestOptions,
|
|
12754
|
+
};
|
|
12755
|
+
}),
|
|
12756
|
+
/**
|
|
12757
|
+
* Explicitly rotate the signing secret of an enabled endpoint on an active store. Save the new secret securely. Prior secrets retain their original 24-hour overlap deadlines. Repeated calls create distinct secrets, up to five live secrets. Wait for an old secret to expire at the limit. After a lost response, explicitly rotate again; stored secrets cannot be retrieved. No daily renewal is required. 409 codes: webhook_endpoint_disabled (endpoint is disabled or revoked), webhook_store_inactive, webhook_secret_rotation_limit_reached (five live secrets). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
12758
|
+
* @summary Rotate an ecommerce webhook secret
|
|
12759
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
12760
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
12761
|
+
* @param {*} [options] Override http request option.
|
|
12762
|
+
* @throws {RequiredError}
|
|
12763
|
+
*/
|
|
12764
|
+
rotateAnEcommerceWebhookSecretV1: (storeId_1, endpointId_1, ...args_1) => __awaiter(this, [storeId_1, endpointId_1, ...args_1], void 0, function* (storeId, endpointId, options = {}) {
|
|
12765
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
12766
|
+
(0, common_1.assertParamExists)('rotateAnEcommerceWebhookSecretV1', 'storeId', storeId);
|
|
12767
|
+
// verify required parameter 'endpointId' is not null or undefined
|
|
12768
|
+
(0, common_1.assertParamExists)('rotateAnEcommerceWebhookSecretV1', 'endpointId', endpointId);
|
|
12769
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/webhooks/{endpoint_id}/rotate-secret`
|
|
12770
|
+
.replace(`{${"store_id"}}`, (0, common_1.encodePathParam)('storeId', storeId))
|
|
12771
|
+
.replace(`{${"endpoint_id"}}`, (0, common_1.encodePathParam)('endpointId', endpointId));
|
|
12772
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12773
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12774
|
+
let baseOptions;
|
|
12775
|
+
if (configuration) {
|
|
12776
|
+
baseOptions = configuration.baseOptions;
|
|
12777
|
+
}
|
|
12778
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12779
|
+
const localVarHeaderParameter = {};
|
|
12780
|
+
const localVarQueryParameter = {};
|
|
12781
|
+
// authentication apiToken required
|
|
12782
|
+
// http bearer authentication required
|
|
12783
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12784
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12785
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12786
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12787
|
+
return {
|
|
12788
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12789
|
+
options: localVarRequestOptions,
|
|
12790
|
+
};
|
|
12791
|
+
}),
|
|
12792
|
+
/**
|
|
12793
|
+
* Change the receiver, events, channel filter or enabled state. Omitted fields are preserved; a null channel filter restores store-wide delivery. Endpoints disabled automatically after a 410 Gone (receiver_gone) or persistent delivery failures (receiver_failing) resume with enabled: true; events from the disabled period are not sent. Lifecycle-revoked endpoints cannot be enabled again: delete them and create fresh subscriptions after recovery. 400 codes: webhook_destination_not_allowed (the new URL, or the saved URL when enabling, is not a public destination), webhook_sales_channel_invalid. 409 codes: webhook_endpoint_revoked, webhook_store_inactive, webhook_endpoint_catalog_busy (retry). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
12794
|
+
* @summary Update an ecommerce webhook
|
|
12795
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
12796
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
12797
|
+
* @param {EcommerceV1WebhookUpdateRequest} ecommerceV1WebhookUpdateRequest
|
|
12798
|
+
* @param {*} [options] Override http request option.
|
|
12799
|
+
* @throws {RequiredError}
|
|
12800
|
+
*/
|
|
12801
|
+
updateAnEcommerceWebhookV1: (storeId_1, endpointId_1, ecommerceV1WebhookUpdateRequest_1, ...args_1) => __awaiter(this, [storeId_1, endpointId_1, ecommerceV1WebhookUpdateRequest_1, ...args_1], void 0, function* (storeId, endpointId, ecommerceV1WebhookUpdateRequest, options = {}) {
|
|
12802
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
12803
|
+
(0, common_1.assertParamExists)('updateAnEcommerceWebhookV1', 'storeId', storeId);
|
|
12804
|
+
// verify required parameter 'endpointId' is not null or undefined
|
|
12805
|
+
(0, common_1.assertParamExists)('updateAnEcommerceWebhookV1', 'endpointId', endpointId);
|
|
12806
|
+
// verify required parameter 'ecommerceV1WebhookUpdateRequest' is not null or undefined
|
|
12807
|
+
(0, common_1.assertParamExists)('updateAnEcommerceWebhookV1', 'ecommerceV1WebhookUpdateRequest', ecommerceV1WebhookUpdateRequest);
|
|
12808
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/webhooks/{endpoint_id}`
|
|
12809
|
+
.replace(`{${"store_id"}}`, (0, common_1.encodePathParam)('storeId', storeId))
|
|
12810
|
+
.replace(`{${"endpoint_id"}}`, (0, common_1.encodePathParam)('endpointId', endpointId));
|
|
12811
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12812
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12813
|
+
let baseOptions;
|
|
12814
|
+
if (configuration) {
|
|
12815
|
+
baseOptions = configuration.baseOptions;
|
|
12816
|
+
}
|
|
12817
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
12818
|
+
const localVarHeaderParameter = {};
|
|
12819
|
+
const localVarQueryParameter = {};
|
|
12820
|
+
// authentication apiToken required
|
|
12821
|
+
// http bearer authentication required
|
|
12822
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12823
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12824
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12825
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12826
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12827
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ecommerceV1WebhookUpdateRequest, localVarRequestOptions, configuration);
|
|
12828
|
+
return {
|
|
12829
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12830
|
+
options: localVarRequestOptions,
|
|
12831
|
+
};
|
|
12832
|
+
}),
|
|
12833
|
+
};
|
|
12834
|
+
};
|
|
12835
|
+
exports.EcommerceWebhooksApiAxiosParamCreator = EcommerceWebhooksApiAxiosParamCreator;
|
|
12836
|
+
/**
|
|
12837
|
+
* EcommerceWebhooksApi - functional programming interface
|
|
12838
|
+
* @export
|
|
12839
|
+
*/
|
|
12840
|
+
const EcommerceWebhooksApiFp = function (configuration) {
|
|
12841
|
+
const localVarAxiosParamCreator = (0, exports.EcommerceWebhooksApiAxiosParamCreator)(configuration);
|
|
12842
|
+
return {
|
|
12843
|
+
/**
|
|
12844
|
+
* Create an enabled subscription for your store to receive ecommerce events in external automation systems. Save the whsec_ signing secret securely; it is returned once. Up to ten endpoints, including disabled endpoints, may exist per store. Deliveries follow Standard Webhooks: verify the webhook-id, webhook-timestamp and webhook-signature headers against the raw body with an official Standard Webhooks library before parsing. Events can arrive out of order or more than once; deduplicate by event id. 400: the URL is not a public destination, or webhook_sales_channel_invalid (a channel ID does not belong to this store). 409 codes: webhook_endpoint_limit_reached, webhook_store_inactive, webhook_endpoint_catalog_busy (a catalog change is in progress; retry). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
12845
|
+
* @summary Create an ecommerce webhook
|
|
12846
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
12847
|
+
* @param {EcommerceV1WebhookStoreRequest} ecommerceV1WebhookStoreRequest
|
|
12848
|
+
* @param {*} [options] Override http request option.
|
|
12849
|
+
* @throws {RequiredError}
|
|
12850
|
+
*/
|
|
12851
|
+
createAnEcommerceWebhookV1(storeId, ecommerceV1WebhookStoreRequest, options) {
|
|
12852
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12853
|
+
var _a, _b;
|
|
12854
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAnEcommerceWebhookV1(storeId, ecommerceV1WebhookStoreRequest, options);
|
|
12855
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceWebhooksApi.createAnEcommerceWebhookV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12856
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12857
|
+
});
|
|
12858
|
+
},
|
|
12859
|
+
/**
|
|
12860
|
+
* Delete a subscription owned by your store, retaining delivery audit records.
|
|
12861
|
+
* @summary Delete an ecommerce webhook
|
|
12862
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
12863
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
12864
|
+
* @param {*} [options] Override http request option.
|
|
12865
|
+
* @throws {RequiredError}
|
|
12866
|
+
*/
|
|
12867
|
+
deleteAnEcommerceWebhookV1(storeId, endpointId, options) {
|
|
12868
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12869
|
+
var _a, _b;
|
|
12870
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAnEcommerceWebhookV1(storeId, endpointId, options);
|
|
12871
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceWebhooksApi.deleteAnEcommerceWebhookV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12872
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12873
|
+
});
|
|
12874
|
+
},
|
|
12875
|
+
/**
|
|
12876
|
+
* Get a subscription owned by your store, without signing secrets.
|
|
12877
|
+
* @summary Get an ecommerce webhook
|
|
12878
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
12879
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
12880
|
+
* @param {*} [options] Override http request option.
|
|
12881
|
+
* @throws {RequiredError}
|
|
12882
|
+
*/
|
|
12883
|
+
getAnEcommerceWebhookV1(storeId, endpointId, options) {
|
|
12884
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12885
|
+
var _a, _b;
|
|
12886
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAnEcommerceWebhookV1(storeId, endpointId, options);
|
|
12887
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceWebhooksApi.getAnEcommerceWebhookV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12888
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12889
|
+
});
|
|
12890
|
+
},
|
|
12891
|
+
/**
|
|
12892
|
+
* List your store\'s subscriptions for external automation systems, without signing secrets.
|
|
12893
|
+
* @summary List ecommerce webhooks
|
|
12894
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
12895
|
+
* @param {*} [options] Override http request option.
|
|
12896
|
+
* @throws {RequiredError}
|
|
12897
|
+
*/
|
|
12898
|
+
listEcommerceWebhooksV1(storeId, options) {
|
|
12899
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12900
|
+
var _a, _b;
|
|
12901
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listEcommerceWebhooksV1(storeId, options);
|
|
12902
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceWebhooksApi.listEcommerceWebhooksV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12903
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12904
|
+
});
|
|
12905
|
+
},
|
|
12906
|
+
/**
|
|
12907
|
+
* Explicitly rotate the signing secret of an enabled endpoint on an active store. Save the new secret securely. Prior secrets retain their original 24-hour overlap deadlines. Repeated calls create distinct secrets, up to five live secrets. Wait for an old secret to expire at the limit. After a lost response, explicitly rotate again; stored secrets cannot be retrieved. No daily renewal is required. 409 codes: webhook_endpoint_disabled (endpoint is disabled or revoked), webhook_store_inactive, webhook_secret_rotation_limit_reached (five live secrets). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
12908
|
+
* @summary Rotate an ecommerce webhook secret
|
|
12909
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
12910
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
12911
|
+
* @param {*} [options] Override http request option.
|
|
12912
|
+
* @throws {RequiredError}
|
|
12913
|
+
*/
|
|
12914
|
+
rotateAnEcommerceWebhookSecretV1(storeId, endpointId, options) {
|
|
12915
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12916
|
+
var _a, _b;
|
|
12917
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.rotateAnEcommerceWebhookSecretV1(storeId, endpointId, options);
|
|
12918
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceWebhooksApi.rotateAnEcommerceWebhookSecretV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12919
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12920
|
+
});
|
|
12921
|
+
},
|
|
12922
|
+
/**
|
|
12923
|
+
* Change the receiver, events, channel filter or enabled state. Omitted fields are preserved; a null channel filter restores store-wide delivery. Endpoints disabled automatically after a 410 Gone (receiver_gone) or persistent delivery failures (receiver_failing) resume with enabled: true; events from the disabled period are not sent. Lifecycle-revoked endpoints cannot be enabled again: delete them and create fresh subscriptions after recovery. 400 codes: webhook_destination_not_allowed (the new URL, or the saved URL when enabling, is not a public destination), webhook_sales_channel_invalid. 409 codes: webhook_endpoint_revoked, webhook_store_inactive, webhook_endpoint_catalog_busy (retry). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
12924
|
+
* @summary Update an ecommerce webhook
|
|
12925
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
12926
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
12927
|
+
* @param {EcommerceV1WebhookUpdateRequest} ecommerceV1WebhookUpdateRequest
|
|
12928
|
+
* @param {*} [options] Override http request option.
|
|
12929
|
+
* @throws {RequiredError}
|
|
12930
|
+
*/
|
|
12931
|
+
updateAnEcommerceWebhookV1(storeId, endpointId, ecommerceV1WebhookUpdateRequest, options) {
|
|
12932
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12933
|
+
var _a, _b;
|
|
12934
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAnEcommerceWebhookV1(storeId, endpointId, ecommerceV1WebhookUpdateRequest, options);
|
|
12935
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['EcommerceWebhooksApi.updateAnEcommerceWebhookV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12936
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12937
|
+
});
|
|
12938
|
+
},
|
|
12939
|
+
};
|
|
12940
|
+
};
|
|
12941
|
+
exports.EcommerceWebhooksApiFp = EcommerceWebhooksApiFp;
|
|
12942
|
+
/**
|
|
12943
|
+
* EcommerceWebhooksApi - factory interface
|
|
12944
|
+
* @export
|
|
12945
|
+
*/
|
|
12946
|
+
const EcommerceWebhooksApiFactory = function (configuration, basePath, axios) {
|
|
12947
|
+
const localVarFp = (0, exports.EcommerceWebhooksApiFp)(configuration);
|
|
12948
|
+
return {
|
|
12949
|
+
/**
|
|
12950
|
+
* Create an enabled subscription for your store to receive ecommerce events in external automation systems. Save the whsec_ signing secret securely; it is returned once. Up to ten endpoints, including disabled endpoints, may exist per store. Deliveries follow Standard Webhooks: verify the webhook-id, webhook-timestamp and webhook-signature headers against the raw body with an official Standard Webhooks library before parsing. Events can arrive out of order or more than once; deduplicate by event id. 400: the URL is not a public destination, or webhook_sales_channel_invalid (a channel ID does not belong to this store). 409 codes: webhook_endpoint_limit_reached, webhook_store_inactive, webhook_endpoint_catalog_busy (a catalog change is in progress; retry). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
12951
|
+
* @summary Create an ecommerce webhook
|
|
12952
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
12953
|
+
* @param {EcommerceV1WebhookStoreRequest} ecommerceV1WebhookStoreRequest
|
|
12954
|
+
* @param {*} [options] Override http request option.
|
|
12955
|
+
* @throws {RequiredError}
|
|
12956
|
+
*/
|
|
12957
|
+
createAnEcommerceWebhookV1(storeId, ecommerceV1WebhookStoreRequest, options) {
|
|
12958
|
+
return localVarFp.createAnEcommerceWebhookV1(storeId, ecommerceV1WebhookStoreRequest, options).then((request) => request(axios, basePath));
|
|
12959
|
+
},
|
|
12960
|
+
/**
|
|
12961
|
+
* Delete a subscription owned by your store, retaining delivery audit records.
|
|
12962
|
+
* @summary Delete an ecommerce webhook
|
|
12963
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
12964
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
12965
|
+
* @param {*} [options] Override http request option.
|
|
12966
|
+
* @throws {RequiredError}
|
|
12967
|
+
*/
|
|
12968
|
+
deleteAnEcommerceWebhookV1(storeId, endpointId, options) {
|
|
12969
|
+
return localVarFp.deleteAnEcommerceWebhookV1(storeId, endpointId, options).then((request) => request(axios, basePath));
|
|
12970
|
+
},
|
|
12971
|
+
/**
|
|
12972
|
+
* Get a subscription owned by your store, without signing secrets.
|
|
12973
|
+
* @summary Get an ecommerce webhook
|
|
12974
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
12975
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
12976
|
+
* @param {*} [options] Override http request option.
|
|
12977
|
+
* @throws {RequiredError}
|
|
12978
|
+
*/
|
|
12979
|
+
getAnEcommerceWebhookV1(storeId, endpointId, options) {
|
|
12980
|
+
return localVarFp.getAnEcommerceWebhookV1(storeId, endpointId, options).then((request) => request(axios, basePath));
|
|
12981
|
+
},
|
|
12982
|
+
/**
|
|
12983
|
+
* List your store\'s subscriptions for external automation systems, without signing secrets.
|
|
12984
|
+
* @summary List ecommerce webhooks
|
|
12985
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
12986
|
+
* @param {*} [options] Override http request option.
|
|
12987
|
+
* @throws {RequiredError}
|
|
12988
|
+
*/
|
|
12989
|
+
listEcommerceWebhooksV1(storeId, options) {
|
|
12990
|
+
return localVarFp.listEcommerceWebhooksV1(storeId, options).then((request) => request(axios, basePath));
|
|
12991
|
+
},
|
|
12992
|
+
/**
|
|
12993
|
+
* Explicitly rotate the signing secret of an enabled endpoint on an active store. Save the new secret securely. Prior secrets retain their original 24-hour overlap deadlines. Repeated calls create distinct secrets, up to five live secrets. Wait for an old secret to expire at the limit. After a lost response, explicitly rotate again; stored secrets cannot be retrieved. No daily renewal is required. 409 codes: webhook_endpoint_disabled (endpoint is disabled or revoked), webhook_store_inactive, webhook_secret_rotation_limit_reached (five live secrets). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
12994
|
+
* @summary Rotate an ecommerce webhook secret
|
|
12995
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
12996
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
12997
|
+
* @param {*} [options] Override http request option.
|
|
12998
|
+
* @throws {RequiredError}
|
|
12999
|
+
*/
|
|
13000
|
+
rotateAnEcommerceWebhookSecretV1(storeId, endpointId, options) {
|
|
13001
|
+
return localVarFp.rotateAnEcommerceWebhookSecretV1(storeId, endpointId, options).then((request) => request(axios, basePath));
|
|
13002
|
+
},
|
|
13003
|
+
/**
|
|
13004
|
+
* Change the receiver, events, channel filter or enabled state. Omitted fields are preserved; a null channel filter restores store-wide delivery. Endpoints disabled automatically after a 410 Gone (receiver_gone) or persistent delivery failures (receiver_failing) resume with enabled: true; events from the disabled period are not sent. Lifecycle-revoked endpoints cannot be enabled again: delete them and create fresh subscriptions after recovery. 400 codes: webhook_destination_not_allowed (the new URL, or the saved URL when enabling, is not a public destination), webhook_sales_channel_invalid. 409 codes: webhook_endpoint_revoked, webhook_store_inactive, webhook_endpoint_catalog_busy (retry). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
13005
|
+
* @summary Update an ecommerce webhook
|
|
13006
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
13007
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
13008
|
+
* @param {EcommerceV1WebhookUpdateRequest} ecommerceV1WebhookUpdateRequest
|
|
13009
|
+
* @param {*} [options] Override http request option.
|
|
13010
|
+
* @throws {RequiredError}
|
|
13011
|
+
*/
|
|
13012
|
+
updateAnEcommerceWebhookV1(storeId, endpointId, ecommerceV1WebhookUpdateRequest, options) {
|
|
13013
|
+
return localVarFp.updateAnEcommerceWebhookV1(storeId, endpointId, ecommerceV1WebhookUpdateRequest, options).then((request) => request(axios, basePath));
|
|
13014
|
+
},
|
|
13015
|
+
};
|
|
13016
|
+
};
|
|
13017
|
+
exports.EcommerceWebhooksApiFactory = EcommerceWebhooksApiFactory;
|
|
13018
|
+
/**
|
|
13019
|
+
* EcommerceWebhooksApi - object-oriented interface
|
|
13020
|
+
* @export
|
|
13021
|
+
* @class EcommerceWebhooksApi
|
|
13022
|
+
* @extends {BaseAPI}
|
|
13023
|
+
*/
|
|
13024
|
+
class EcommerceWebhooksApi extends base_1.BaseAPI {
|
|
13025
|
+
/**
|
|
13026
|
+
* Create an enabled subscription for your store to receive ecommerce events in external automation systems. Save the whsec_ signing secret securely; it is returned once. Up to ten endpoints, including disabled endpoints, may exist per store. Deliveries follow Standard Webhooks: verify the webhook-id, webhook-timestamp and webhook-signature headers against the raw body with an official Standard Webhooks library before parsing. Events can arrive out of order or more than once; deduplicate by event id. 400: the URL is not a public destination, or webhook_sales_channel_invalid (a channel ID does not belong to this store). 409 codes: webhook_endpoint_limit_reached, webhook_store_inactive, webhook_endpoint_catalog_busy (a catalog change is in progress; retry). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
13027
|
+
* @summary Create an ecommerce webhook
|
|
13028
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
13029
|
+
* @param {EcommerceV1WebhookStoreRequest} ecommerceV1WebhookStoreRequest
|
|
13030
|
+
* @param {*} [options] Override http request option.
|
|
13031
|
+
* @throws {RequiredError}
|
|
13032
|
+
* @memberof EcommerceWebhooksApi
|
|
13033
|
+
*/
|
|
13034
|
+
createAnEcommerceWebhookV1(storeId, ecommerceV1WebhookStoreRequest, options) {
|
|
13035
|
+
return (0, exports.EcommerceWebhooksApiFp)(this.configuration).createAnEcommerceWebhookV1(storeId, ecommerceV1WebhookStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13036
|
+
}
|
|
13037
|
+
/**
|
|
13038
|
+
* Delete a subscription owned by your store, retaining delivery audit records.
|
|
13039
|
+
* @summary Delete an ecommerce webhook
|
|
13040
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
13041
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
13042
|
+
* @param {*} [options] Override http request option.
|
|
13043
|
+
* @throws {RequiredError}
|
|
13044
|
+
* @memberof EcommerceWebhooksApi
|
|
13045
|
+
*/
|
|
13046
|
+
deleteAnEcommerceWebhookV1(storeId, endpointId, options) {
|
|
13047
|
+
return (0, exports.EcommerceWebhooksApiFp)(this.configuration).deleteAnEcommerceWebhookV1(storeId, endpointId, options).then((request) => request(this.axios, this.basePath));
|
|
13048
|
+
}
|
|
13049
|
+
/**
|
|
13050
|
+
* Get a subscription owned by your store, without signing secrets.
|
|
13051
|
+
* @summary Get an ecommerce webhook
|
|
13052
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
13053
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
13054
|
+
* @param {*} [options] Override http request option.
|
|
13055
|
+
* @throws {RequiredError}
|
|
13056
|
+
* @memberof EcommerceWebhooksApi
|
|
13057
|
+
*/
|
|
13058
|
+
getAnEcommerceWebhookV1(storeId, endpointId, options) {
|
|
13059
|
+
return (0, exports.EcommerceWebhooksApiFp)(this.configuration).getAnEcommerceWebhookV1(storeId, endpointId, options).then((request) => request(this.axios, this.basePath));
|
|
13060
|
+
}
|
|
13061
|
+
/**
|
|
13062
|
+
* List your store\'s subscriptions for external automation systems, without signing secrets.
|
|
13063
|
+
* @summary List ecommerce webhooks
|
|
13064
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
13065
|
+
* @param {*} [options] Override http request option.
|
|
13066
|
+
* @throws {RequiredError}
|
|
13067
|
+
* @memberof EcommerceWebhooksApi
|
|
13068
|
+
*/
|
|
13069
|
+
listEcommerceWebhooksV1(storeId, options) {
|
|
13070
|
+
return (0, exports.EcommerceWebhooksApiFp)(this.configuration).listEcommerceWebhooksV1(storeId, options).then((request) => request(this.axios, this.basePath));
|
|
13071
|
+
}
|
|
13072
|
+
/**
|
|
13073
|
+
* Explicitly rotate the signing secret of an enabled endpoint on an active store. Save the new secret securely. Prior secrets retain their original 24-hour overlap deadlines. Repeated calls create distinct secrets, up to five live secrets. Wait for an old secret to expire at the limit. After a lost response, explicitly rotate again; stored secrets cannot be retrieved. No daily renewal is required. 409 codes: webhook_endpoint_disabled (endpoint is disabled or revoked), webhook_store_inactive, webhook_secret_rotation_limit_reached (five live secrets). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
13074
|
+
* @summary Rotate an ecommerce webhook secret
|
|
13075
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
13076
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
13077
|
+
* @param {*} [options] Override http request option.
|
|
13078
|
+
* @throws {RequiredError}
|
|
13079
|
+
* @memberof EcommerceWebhooksApi
|
|
13080
|
+
*/
|
|
13081
|
+
rotateAnEcommerceWebhookSecretV1(storeId, endpointId, options) {
|
|
13082
|
+
return (0, exports.EcommerceWebhooksApiFp)(this.configuration).rotateAnEcommerceWebhookSecretV1(storeId, endpointId, options).then((request) => request(this.axios, this.basePath));
|
|
13083
|
+
}
|
|
13084
|
+
/**
|
|
13085
|
+
* Change the receiver, events, channel filter or enabled state. Omitted fields are preserved; a null channel filter restores store-wide delivery. Endpoints disabled automatically after a 410 Gone (receiver_gone) or persistent delivery failures (receiver_failing) resume with enabled: true; events from the disabled period are not sent. Lifecycle-revoked endpoints cannot be enabled again: delete them and create fresh subscriptions after recovery. 400 codes: webhook_destination_not_allowed (the new URL, or the saved URL when enabling, is not a public destination), webhook_sales_channel_invalid. 409 codes: webhook_endpoint_revoked, webhook_store_inactive, webhook_endpoint_catalog_busy (retry). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
13086
|
+
* @summary Update an ecommerce webhook
|
|
13087
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
13088
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
13089
|
+
* @param {EcommerceV1WebhookUpdateRequest} ecommerceV1WebhookUpdateRequest
|
|
13090
|
+
* @param {*} [options] Override http request option.
|
|
13091
|
+
* @throws {RequiredError}
|
|
13092
|
+
* @memberof EcommerceWebhooksApi
|
|
13093
|
+
*/
|
|
13094
|
+
updateAnEcommerceWebhookV1(storeId, endpointId, ecommerceV1WebhookUpdateRequest, options) {
|
|
13095
|
+
return (0, exports.EcommerceWebhooksApiFp)(this.configuration).updateAnEcommerceWebhookV1(storeId, endpointId, ecommerceV1WebhookUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13096
|
+
}
|
|
13097
|
+
}
|
|
13098
|
+
exports.EcommerceWebhooksApi = EcommerceWebhooksApi;
|
|
12562
13099
|
/**
|
|
12563
13100
|
* GPUCatalogApi - axios parameter creator
|
|
12564
13101
|
* @export
|