@webiny/webhooks 0.0.0-unstable.7be00a75a9
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/LICENSE +21 -0
- package/README.md +11 -0
- package/admin/WebhookRoutes.d.ts +2 -0
- package/admin/WebhookRoutes.js +68 -0
- package/admin/WebhookRoutes.js.map +1 -0
- package/admin/Webhooks.d.ts +2 -0
- package/admin/Webhooks.js +64 -0
- package/admin/Webhooks.js.map +1 -0
- package/admin/features/ListWebhooks/ListWebhooksGateway.d.ts +11 -0
- package/admin/features/ListWebhooks/ListWebhooksGateway.js +62 -0
- package/admin/features/ListWebhooks/ListWebhooksGateway.js.map +1 -0
- package/admin/features/ListWebhooks/ListWebhooksRepository.d.ts +10 -0
- package/admin/features/ListWebhooks/ListWebhooksRepository.js +18 -0
- package/admin/features/ListWebhooks/ListWebhooksRepository.js.map +1 -0
- package/admin/features/ListWebhooks/ListWebhooksUseCase.d.ts +10 -0
- package/admin/features/ListWebhooks/ListWebhooksUseCase.js +18 -0
- package/admin/features/ListWebhooks/ListWebhooksUseCase.js.map +1 -0
- package/admin/features/ListWebhooks/abstractions.d.ts +36 -0
- package/admin/features/ListWebhooks/abstractions.js +7 -0
- package/admin/features/ListWebhooks/abstractions.js.map +1 -0
- package/admin/features/ListWebhooks/feature.d.ts +3 -0
- package/admin/features/ListWebhooks/feature.js +21 -0
- package/admin/features/ListWebhooks/feature.js.map +1 -0
- package/admin/features/ListWebhooks/index.d.ts +2 -0
- package/admin/features/ListWebhooks/index.js +2 -0
- package/admin/features/createWebhook/CreateWebhookGateway.d.ts +12 -0
- package/admin/features/createWebhook/CreateWebhookGateway.js +21 -0
- package/admin/features/createWebhook/CreateWebhookGateway.js.map +1 -0
- package/admin/features/createWebhook/CreateWebhookUseCase.d.ts +11 -0
- package/admin/features/createWebhook/CreateWebhookUseCase.js +18 -0
- package/admin/features/createWebhook/CreateWebhookUseCase.js.map +1 -0
- package/admin/features/createWebhook/abstractions.d.ts +23 -0
- package/admin/features/createWebhook/abstractions.js +6 -0
- package/admin/features/createWebhook/abstractions.js.map +1 -0
- package/admin/features/createWebhook/feature.d.ts +3 -0
- package/admin/features/createWebhook/feature.js +19 -0
- package/admin/features/createWebhook/feature.js.map +1 -0
- package/admin/features/createWebhook/index.d.ts +2 -0
- package/admin/features/createWebhook/index.js +2 -0
- package/admin/features/deleteWebhook/DeleteWebhookGateway.d.ts +11 -0
- package/admin/features/deleteWebhook/DeleteWebhookGateway.js +23 -0
- package/admin/features/deleteWebhook/DeleteWebhookGateway.js.map +1 -0
- package/admin/features/deleteWebhook/DeleteWebhookUseCase.d.ts +10 -0
- package/admin/features/deleteWebhook/DeleteWebhookUseCase.js +18 -0
- package/admin/features/deleteWebhook/DeleteWebhookUseCase.js.map +1 -0
- package/admin/features/deleteWebhook/abstractions.d.ts +14 -0
- package/admin/features/deleteWebhook/abstractions.js +6 -0
- package/admin/features/deleteWebhook/abstractions.js.map +1 -0
- package/admin/features/deleteWebhook/feature.d.ts +3 -0
- package/admin/features/deleteWebhook/feature.js +19 -0
- package/admin/features/deleteWebhook/feature.js.map +1 -0
- package/admin/features/deleteWebhook/index.d.ts +2 -0
- package/admin/features/deleteWebhook/index.js +2 -0
- package/admin/features/getWebhook/GetWebhookGateway.d.ts +12 -0
- package/admin/features/getWebhook/GetWebhookGateway.js +23 -0
- package/admin/features/getWebhook/GetWebhookGateway.js.map +1 -0
- package/admin/features/getWebhook/GetWebhookUseCase.d.ts +11 -0
- package/admin/features/getWebhook/GetWebhookUseCase.js +18 -0
- package/admin/features/getWebhook/GetWebhookUseCase.js.map +1 -0
- package/admin/features/getWebhook/abstractions.d.ts +15 -0
- package/admin/features/getWebhook/abstractions.js +6 -0
- package/admin/features/getWebhook/abstractions.js.map +1 -0
- package/admin/features/getWebhook/feature.d.ts +3 -0
- package/admin/features/getWebhook/feature.js +19 -0
- package/admin/features/getWebhook/feature.js.map +1 -0
- package/admin/features/getWebhook/index.d.ts +2 -0
- package/admin/features/getWebhook/index.js +2 -0
- package/admin/features/getWebhookSettings/GetWebhookSettingsGateway.d.ts +12 -0
- package/admin/features/getWebhookSettings/GetWebhookSettingsGateway.js +41 -0
- package/admin/features/getWebhookSettings/GetWebhookSettingsGateway.js.map +1 -0
- package/admin/features/getWebhookSettings/GetWebhookSettingsUseCase.d.ts +11 -0
- package/admin/features/getWebhookSettings/GetWebhookSettingsUseCase.js +18 -0
- package/admin/features/getWebhookSettings/GetWebhookSettingsUseCase.js.map +1 -0
- package/admin/features/getWebhookSettings/abstractions.d.ts +15 -0
- package/admin/features/getWebhookSettings/abstractions.js +6 -0
- package/admin/features/getWebhookSettings/abstractions.js.map +1 -0
- package/admin/features/getWebhookSettings/feature.d.ts +3 -0
- package/admin/features/getWebhookSettings/feature.js +19 -0
- package/admin/features/getWebhookSettings/feature.js.map +1 -0
- package/admin/features/getWebhookSettings/index.d.ts +2 -0
- package/admin/features/getWebhookSettings/index.js +2 -0
- package/admin/features/listAvailableEvents/ListAvailableEventsGateway.d.ts +12 -0
- package/admin/features/listAvailableEvents/ListAvailableEventsGateway.js +21 -0
- package/admin/features/listAvailableEvents/ListAvailableEventsGateway.js.map +1 -0
- package/admin/features/listAvailableEvents/ListAvailableEventsUseCase.d.ts +11 -0
- package/admin/features/listAvailableEvents/ListAvailableEventsUseCase.js +18 -0
- package/admin/features/listAvailableEvents/ListAvailableEventsUseCase.js.map +1 -0
- package/admin/features/listAvailableEvents/abstractions.d.ts +15 -0
- package/admin/features/listAvailableEvents/abstractions.js +6 -0
- package/admin/features/listAvailableEvents/abstractions.js.map +1 -0
- package/admin/features/listAvailableEvents/feature.d.ts +3 -0
- package/admin/features/listAvailableEvents/feature.js +19 -0
- package/admin/features/listAvailableEvents/feature.js.map +1 -0
- package/admin/features/listAvailableEvents/index.d.ts +2 -0
- package/admin/features/listAvailableEvents/index.js +2 -0
- package/admin/features/listWebhookDeliveries/ListWebhookDeliveriesGateway.d.ts +11 -0
- package/admin/features/listWebhookDeliveries/ListWebhookDeliveriesGateway.js +28 -0
- package/admin/features/listWebhookDeliveries/ListWebhookDeliveriesGateway.js.map +1 -0
- package/admin/features/listWebhookDeliveries/ListWebhookDeliveriesUseCase.d.ts +10 -0
- package/admin/features/listWebhookDeliveries/ListWebhookDeliveriesUseCase.js +18 -0
- package/admin/features/listWebhookDeliveries/ListWebhookDeliveriesUseCase.js.map +1 -0
- package/admin/features/listWebhookDeliveries/abstractions.d.ts +33 -0
- package/admin/features/listWebhookDeliveries/abstractions.js +6 -0
- package/admin/features/listWebhookDeliveries/abstractions.js.map +1 -0
- package/admin/features/listWebhookDeliveries/feature.d.ts +3 -0
- package/admin/features/listWebhookDeliveries/feature.js +19 -0
- package/admin/features/listWebhookDeliveries/feature.js.map +1 -0
- package/admin/features/listWebhookDeliveries/index.d.ts +2 -0
- package/admin/features/listWebhookDeliveries/index.js +2 -0
- package/admin/features/permissions/abstractions.d.ts +17 -0
- package/admin/features/permissions/abstractions.js +6 -0
- package/admin/features/permissions/abstractions.js.map +1 -0
- package/admin/features/permissions/feature.d.ts +14 -0
- package/admin/features/permissions/feature.js +7 -0
- package/admin/features/permissions/feature.js.map +1 -0
- package/admin/features/permissions/index.d.ts +2 -0
- package/admin/features/permissions/index.js +2 -0
- package/admin/features/resendWebhookDelivery/ResendWebhookDeliveryGateway.d.ts +11 -0
- package/admin/features/resendWebhookDelivery/ResendWebhookDeliveryGateway.js +23 -0
- package/admin/features/resendWebhookDelivery/ResendWebhookDeliveryGateway.js.map +1 -0
- package/admin/features/resendWebhookDelivery/ResendWebhookDeliveryUseCase.d.ts +10 -0
- package/admin/features/resendWebhookDelivery/ResendWebhookDeliveryUseCase.js +18 -0
- package/admin/features/resendWebhookDelivery/ResendWebhookDeliveryUseCase.js.map +1 -0
- package/admin/features/resendWebhookDelivery/abstractions.d.ts +14 -0
- package/admin/features/resendWebhookDelivery/abstractions.js +6 -0
- package/admin/features/resendWebhookDelivery/abstractions.js.map +1 -0
- package/admin/features/resendWebhookDelivery/feature.d.ts +3 -0
- package/admin/features/resendWebhookDelivery/feature.js +19 -0
- package/admin/features/resendWebhookDelivery/feature.js.map +1 -0
- package/admin/features/resendWebhookDelivery/index.d.ts +2 -0
- package/admin/features/resendWebhookDelivery/index.js +2 -0
- package/admin/features/triggerWebhook/TriggerWebhookGateway.d.ts +12 -0
- package/admin/features/triggerWebhook/TriggerWebhookGateway.js +24 -0
- package/admin/features/triggerWebhook/TriggerWebhookGateway.js.map +1 -0
- package/admin/features/triggerWebhook/TriggerWebhookUseCase.d.ts +11 -0
- package/admin/features/triggerWebhook/TriggerWebhookUseCase.js +18 -0
- package/admin/features/triggerWebhook/TriggerWebhookUseCase.js.map +1 -0
- package/admin/features/triggerWebhook/abstractions.d.ts +15 -0
- package/admin/features/triggerWebhook/abstractions.js +6 -0
- package/admin/features/triggerWebhook/abstractions.js.map +1 -0
- package/admin/features/triggerWebhook/feature.d.ts +3 -0
- package/admin/features/triggerWebhook/feature.js +19 -0
- package/admin/features/triggerWebhook/feature.js.map +1 -0
- package/admin/features/triggerWebhook/index.d.ts +2 -0
- package/admin/features/triggerWebhook/index.js +2 -0
- package/admin/features/updateWebhook/UpdateWebhookGateway.d.ts +12 -0
- package/admin/features/updateWebhook/UpdateWebhookGateway.js +24 -0
- package/admin/features/updateWebhook/UpdateWebhookGateway.js.map +1 -0
- package/admin/features/updateWebhook/UpdateWebhookUseCase.d.ts +11 -0
- package/admin/features/updateWebhook/UpdateWebhookUseCase.js +18 -0
- package/admin/features/updateWebhook/UpdateWebhookUseCase.js.map +1 -0
- package/admin/features/updateWebhook/abstractions.d.ts +23 -0
- package/admin/features/updateWebhook/abstractions.js +6 -0
- package/admin/features/updateWebhook/abstractions.js.map +1 -0
- package/admin/features/updateWebhook/feature.d.ts +3 -0
- package/admin/features/updateWebhook/feature.js +19 -0
- package/admin/features/updateWebhook/feature.js.map +1 -0
- package/admin/features/updateWebhook/index.d.ts +2 -0
- package/admin/features/updateWebhook/index.js +2 -0
- package/admin/features/updateWebhookSettings/UpdateWebhookSettingsGateway.d.ts +12 -0
- package/admin/features/updateWebhookSettings/UpdateWebhookSettingsGateway.js +44 -0
- package/admin/features/updateWebhookSettings/UpdateWebhookSettingsGateway.js.map +1 -0
- package/admin/features/updateWebhookSettings/UpdateWebhookSettingsUseCase.d.ts +11 -0
- package/admin/features/updateWebhookSettings/UpdateWebhookSettingsUseCase.js +18 -0
- package/admin/features/updateWebhookSettings/UpdateWebhookSettingsUseCase.js.map +1 -0
- package/admin/features/updateWebhookSettings/abstractions.d.ts +19 -0
- package/admin/features/updateWebhookSettings/abstractions.js +6 -0
- package/admin/features/updateWebhookSettings/abstractions.js.map +1 -0
- package/admin/features/updateWebhookSettings/feature.d.ts +3 -0
- package/admin/features/updateWebhookSettings/feature.js +19 -0
- package/admin/features/updateWebhookSettings/feature.js.map +1 -0
- package/admin/features/updateWebhookSettings/index.d.ts +2 -0
- package/admin/features/updateWebhookSettings/index.js +2 -0
- package/admin/index.d.ts +2 -0
- package/admin/index.js +2 -0
- package/admin/permissions.d.ts +12 -0
- package/admin/permissions.js +22 -0
- package/admin/permissions.js.map +1 -0
- package/admin/presentation/WebhookDeliveries/WebhookDeliveriesDataSource.d.ts +16 -0
- package/admin/presentation/WebhookDeliveries/WebhookDeliveriesDataSource.js +68 -0
- package/admin/presentation/WebhookDeliveries/WebhookDeliveriesDataSource.js.map +1 -0
- package/admin/presentation/WebhookDeliveries/WebhookDeliveriesPresenter.d.ts +21 -0
- package/admin/presentation/WebhookDeliveries/WebhookDeliveriesPresenter.js +57 -0
- package/admin/presentation/WebhookDeliveries/WebhookDeliveriesPresenter.js.map +1 -0
- package/admin/presentation/WebhookDeliveries/abstractions.d.ts +18 -0
- package/admin/presentation/WebhookDeliveries/abstractions.js +5 -0
- package/admin/presentation/WebhookDeliveries/abstractions.js.map +1 -0
- package/admin/presentation/WebhookDeliveries/components/DeliveryAccordionRow.d.ts +11 -0
- package/admin/presentation/WebhookDeliveries/components/DeliveryAccordionRow.js +36 -0
- package/admin/presentation/WebhookDeliveries/components/DeliveryAccordionRow.js.map +1 -0
- package/admin/presentation/WebhookDeliveries/components/DeliveryDetail.d.ts +11 -0
- package/admin/presentation/WebhookDeliveries/components/DeliveryDetail.js +32 -0
- package/admin/presentation/WebhookDeliveries/components/DeliveryDetail.js.map +1 -0
- package/admin/presentation/WebhookDeliveries/components/DeliveryDetailContent.d.ts +7 -0
- package/admin/presentation/WebhookDeliveries/components/DeliveryDetailContent.js +76 -0
- package/admin/presentation/WebhookDeliveries/components/DeliveryDetailContent.js.map +1 -0
- package/admin/presentation/WebhookDeliveries/components/DeliveryDetailPanel.d.ts +9 -0
- package/admin/presentation/WebhookDeliveries/components/DeliveryDetailPanel.js +22 -0
- package/admin/presentation/WebhookDeliveries/components/DeliveryDetailPanel.js.map +1 -0
- package/admin/presentation/WebhookDeliveries/components/WebhookDeliveriesDrawer.d.ts +8 -0
- package/admin/presentation/WebhookDeliveries/components/WebhookDeliveriesDrawer.js +119 -0
- package/admin/presentation/WebhookDeliveries/components/WebhookDeliveriesDrawer.js.map +1 -0
- package/admin/presentation/WebhookDeliveries/components/statusVariant.d.ts +1 -0
- package/admin/presentation/WebhookDeliveries/components/statusVariant.js +13 -0
- package/admin/presentation/WebhookDeliveries/components/statusVariant.js.map +1 -0
- package/admin/presentation/WebhookDeliveries/feature.d.ts +3 -0
- package/admin/presentation/WebhookDeliveries/feature.js +17 -0
- package/admin/presentation/WebhookDeliveries/feature.js.map +1 -0
- package/admin/presentation/WebhookDeliveries/index.d.ts +2 -0
- package/admin/presentation/WebhookDeliveries/index.js +2 -0
- package/admin/presentation/WebhookDeliveriesPage/WebhookDeliveriesPagePresenter.d.ts +37 -0
- package/admin/presentation/WebhookDeliveriesPage/WebhookDeliveriesPagePresenter.js +196 -0
- package/admin/presentation/WebhookDeliveriesPage/WebhookDeliveriesPagePresenter.js.map +1 -0
- package/admin/presentation/WebhookDeliveriesPage/abstractions.d.ts +39 -0
- package/admin/presentation/WebhookDeliveriesPage/abstractions.js +5 -0
- package/admin/presentation/WebhookDeliveriesPage/abstractions.js.map +1 -0
- package/admin/presentation/WebhookDeliveriesPage/components/DeliveryBottomInfoBar.d.ts +9 -0
- package/admin/presentation/WebhookDeliveriesPage/components/DeliveryBottomInfoBar.js +43 -0
- package/admin/presentation/WebhookDeliveriesPage/components/DeliveryBottomInfoBar.js.map +1 -0
- package/admin/presentation/WebhookDeliveriesPage/components/DeliveryFilters.d.ts +9 -0
- package/admin/presentation/WebhookDeliveriesPage/components/DeliveryFilters.js +66 -0
- package/admin/presentation/WebhookDeliveriesPage/components/DeliveryFilters.js.map +1 -0
- package/admin/presentation/WebhookDeliveriesPage/components/DeliveryList.d.ts +9 -0
- package/admin/presentation/WebhookDeliveriesPage/components/DeliveryList.js +45 -0
- package/admin/presentation/WebhookDeliveriesPage/components/DeliveryList.js.map +1 -0
- package/admin/presentation/WebhookDeliveriesPage/components/WebhookDeliveriesPage.d.ts +2 -0
- package/admin/presentation/WebhookDeliveriesPage/components/WebhookDeliveriesPage.js +64 -0
- package/admin/presentation/WebhookDeliveriesPage/components/WebhookDeliveriesPage.js.map +1 -0
- package/admin/presentation/WebhookDeliveriesPage/feature.d.ts +3 -0
- package/admin/presentation/WebhookDeliveriesPage/feature.js +17 -0
- package/admin/presentation/WebhookDeliveriesPage/feature.js.map +1 -0
- package/admin/presentation/WebhookDeliveriesPage/index.d.ts +5 -0
- package/admin/presentation/WebhookDeliveriesPage/index.js +1 -0
- package/admin/presentation/WebhookForm/WebhookFormPresenter.d.ts +42 -0
- package/admin/presentation/WebhookForm/WebhookFormPresenter.js +252 -0
- package/admin/presentation/WebhookForm/WebhookFormPresenter.js.map +1 -0
- package/admin/presentation/WebhookForm/abstractions.d.ts +27 -0
- package/admin/presentation/WebhookForm/abstractions.js +5 -0
- package/admin/presentation/WebhookForm/abstractions.js.map +1 -0
- package/admin/presentation/WebhookForm/components/SigningSecret.d.ts +9 -0
- package/admin/presentation/WebhookForm/components/SigningSecret.js +47 -0
- package/admin/presentation/WebhookForm/components/SigningSecret.js.map +1 -0
- package/admin/presentation/WebhookForm/components/WebhookFormView.d.ts +2 -0
- package/admin/presentation/WebhookForm/components/WebhookFormView.js +97 -0
- package/admin/presentation/WebhookForm/components/WebhookFormView.js.map +1 -0
- package/admin/presentation/WebhookForm/feature.d.ts +3 -0
- package/admin/presentation/WebhookForm/feature.js +17 -0
- package/admin/presentation/WebhookForm/feature.js.map +1 -0
- package/admin/presentation/WebhookForm/index.d.ts +2 -0
- package/admin/presentation/WebhookForm/index.js +2 -0
- package/admin/presentation/WebhookList/WebhookListDataSource.d.ts +15 -0
- package/admin/presentation/WebhookList/WebhookListDataSource.js +67 -0
- package/admin/presentation/WebhookList/WebhookListDataSource.js.map +1 -0
- package/admin/presentation/WebhookList/WebhookListPresenter.d.ts +46 -0
- package/admin/presentation/WebhookList/WebhookListPresenter.js +92 -0
- package/admin/presentation/WebhookList/WebhookListPresenter.js.map +1 -0
- package/admin/presentation/WebhookList/abstractions.d.ts +45 -0
- package/admin/presentation/WebhookList/abstractions.js +5 -0
- package/admin/presentation/WebhookList/abstractions.js.map +1 -0
- package/admin/presentation/WebhookList/components/CreateWebhookButton.d.ts +2 -0
- package/admin/presentation/WebhookList/components/CreateWebhookButton.js +22 -0
- package/admin/presentation/WebhookList/components/CreateWebhookButton.js.map +1 -0
- package/admin/presentation/WebhookList/components/WebhookListContent.d.ts +9 -0
- package/admin/presentation/WebhookList/components/WebhookListContent.js +158 -0
- package/admin/presentation/WebhookList/components/WebhookListContent.js.map +1 -0
- package/admin/presentation/WebhookList/components/WebhookListView.d.ts +2 -0
- package/admin/presentation/WebhookList/components/WebhookListView.js +46 -0
- package/admin/presentation/WebhookList/components/WebhookListView.js.map +1 -0
- package/admin/presentation/WebhookList/feature.d.ts +3 -0
- package/admin/presentation/WebhookList/feature.js +17 -0
- package/admin/presentation/WebhookList/feature.js.map +1 -0
- package/admin/presentation/WebhookList/index.d.ts +2 -0
- package/admin/presentation/WebhookList/index.js +2 -0
- package/admin/presentation/WebhookSettings/WebhookSettingsPresenter.d.ts +21 -0
- package/admin/presentation/WebhookSettings/WebhookSettingsPresenter.js +89 -0
- package/admin/presentation/WebhookSettings/WebhookSettingsPresenter.js.map +1 -0
- package/admin/presentation/WebhookSettings/abstractions.d.ts +16 -0
- package/admin/presentation/WebhookSettings/abstractions.js +5 -0
- package/admin/presentation/WebhookSettings/abstractions.js.map +1 -0
- package/admin/presentation/WebhookSettings/components/WebhookSettingsView.d.ts +2 -0
- package/admin/presentation/WebhookSettings/components/WebhookSettingsView.js +56 -0
- package/admin/presentation/WebhookSettings/components/WebhookSettingsView.js.map +1 -0
- package/admin/presentation/WebhookSettings/feature.d.ts +3 -0
- package/admin/presentation/WebhookSettings/feature.js +17 -0
- package/admin/presentation/WebhookSettings/feature.js.map +1 -0
- package/admin/presentation/WebhookSettings/index.d.ts +2 -0
- package/admin/presentation/WebhookSettings/index.js +2 -0
- package/admin/presentation/security/HasPermission.d.ts +12 -0
- package/admin/presentation/security/HasPermission.js +6 -0
- package/admin/presentation/security/HasPermission.js.map +1 -0
- package/admin/presentation/security/usePermissions.d.ts +12 -0
- package/admin/presentation/security/usePermissions.js +6 -0
- package/admin/presentation/security/usePermissions.js.map +1 -0
- package/admin/routes.d.ts +9 -0
- package/admin/routes.js +25 -0
- package/admin/routes.js.map +1 -0
- package/admin/shared/types.d.ts +9 -0
- package/admin/shared/types.js +0 -0
- package/api/Extension.d.ts +1 -0
- package/api/Extension.js +1 -0
- package/api/WebhooksFeature.d.ts +4 -0
- package/api/WebhooksFeature.js +65 -0
- package/api/WebhooksFeature.js.map +1 -0
- package/api/domain/Webhook.d.ts +27 -0
- package/api/domain/Webhook.js +0 -0
- package/api/domain/WebhookDelivery.d.ts +35 -0
- package/api/domain/WebhookDelivery.js +0 -0
- package/api/domain/WebhookSettings.d.ts +4 -0
- package/api/domain/WebhookSettings.js +0 -0
- package/api/domain/constants.d.ts +5 -0
- package/api/domain/constants.js +8 -0
- package/api/domain/constants.js.map +1 -0
- package/api/domain/errors.d.ts +41 -0
- package/api/domain/errors.js +83 -0
- package/api/domain/errors.js.map +1 -0
- package/api/features/CreateWebhook/CreateWebhookRepository.d.ts +18 -0
- package/api/features/CreateWebhook/CreateWebhookRepository.js +43 -0
- package/api/features/CreateWebhook/CreateWebhookRepository.js.map +1 -0
- package/api/features/CreateWebhook/CreateWebhookUseCase.d.ts +16 -0
- package/api/features/CreateWebhook/CreateWebhookUseCase.js +48 -0
- package/api/features/CreateWebhook/CreateWebhookUseCase.js.map +1 -0
- package/api/features/CreateWebhook/abstractions.d.ts +33 -0
- package/api/features/CreateWebhook/abstractions.js +6 -0
- package/api/features/CreateWebhook/abstractions.js.map +1 -0
- package/api/features/CreateWebhook/feature.d.ts +4 -0
- package/api/features/CreateWebhook/feature.js +13 -0
- package/api/features/CreateWebhook/feature.js.map +1 -0
- package/api/features/CreateWebhook/schema.d.ts +10 -0
- package/api/features/CreateWebhook/schema.js +16 -0
- package/api/features/CreateWebhook/schema.js.map +1 -0
- package/api/features/CreateWebhookDelivery/CreateWebhookDeliveryRepository.d.ts +20 -0
- package/api/features/CreateWebhookDelivery/CreateWebhookDeliveryRepository.js +60 -0
- package/api/features/CreateWebhookDelivery/CreateWebhookDeliveryRepository.js.map +1 -0
- package/api/features/CreateWebhookDelivery/abstractions.d.ts +21 -0
- package/api/features/CreateWebhookDelivery/abstractions.js +5 -0
- package/api/features/CreateWebhookDelivery/abstractions.js.map +1 -0
- package/api/features/CreateWebhookDelivery/feature.d.ts +4 -0
- package/api/features/CreateWebhookDelivery/feature.js +11 -0
- package/api/features/CreateWebhookDelivery/feature.js.map +1 -0
- package/api/features/DeleteWebhook/DeleteWebhookRepository.d.ts +19 -0
- package/api/features/DeleteWebhook/DeleteWebhookRepository.js +66 -0
- package/api/features/DeleteWebhook/DeleteWebhookRepository.js.map +1 -0
- package/api/features/DeleteWebhook/DeleteWebhookUseCase.d.ts +15 -0
- package/api/features/DeleteWebhook/DeleteWebhookUseCase.js +34 -0
- package/api/features/DeleteWebhook/DeleteWebhookUseCase.js.map +1 -0
- package/api/features/DeleteWebhook/abstractions.d.ts +20 -0
- package/api/features/DeleteWebhook/abstractions.js +6 -0
- package/api/features/DeleteWebhook/abstractions.js.map +1 -0
- package/api/features/DeleteWebhook/feature.d.ts +4 -0
- package/api/features/DeleteWebhook/feature.js +13 -0
- package/api/features/DeleteWebhook/feature.js.map +1 -0
- package/api/features/DeleteWebhook/schema.d.ts +4 -0
- package/api/features/DeleteWebhook/schema.js +7 -0
- package/api/features/DeleteWebhook/schema.js.map +1 -0
- package/api/features/GetWebhook/GetWebhookRepository.d.ts +17 -0
- package/api/features/GetWebhook/GetWebhookRepository.js +39 -0
- package/api/features/GetWebhook/GetWebhookRepository.js.map +1 -0
- package/api/features/GetWebhook/GetWebhookUseCase.d.ts +14 -0
- package/api/features/GetWebhook/GetWebhookUseCase.js +29 -0
- package/api/features/GetWebhook/GetWebhookUseCase.js.map +1 -0
- package/api/features/GetWebhook/abstractions.d.ts +21 -0
- package/api/features/GetWebhook/abstractions.js +6 -0
- package/api/features/GetWebhook/abstractions.js.map +1 -0
- package/api/features/GetWebhook/feature.d.ts +4 -0
- package/api/features/GetWebhook/feature.js +13 -0
- package/api/features/GetWebhook/feature.js.map +1 -0
- package/api/features/GetWebhook/schema.d.ts +4 -0
- package/api/features/GetWebhook/schema.js +7 -0
- package/api/features/GetWebhook/schema.js.map +1 -0
- package/api/features/GetWebhookDelivery/GetWebhookDeliveryRepository.d.ts +17 -0
- package/api/features/GetWebhookDelivery/GetWebhookDeliveryRepository.js +39 -0
- package/api/features/GetWebhookDelivery/GetWebhookDeliveryRepository.js.map +1 -0
- package/api/features/GetWebhookDelivery/GetWebhookDeliveryUseCase.d.ts +14 -0
- package/api/features/GetWebhookDelivery/GetWebhookDeliveryUseCase.js +29 -0
- package/api/features/GetWebhookDelivery/GetWebhookDeliveryUseCase.js.map +1 -0
- package/api/features/GetWebhookDelivery/abstractions.d.ts +21 -0
- package/api/features/GetWebhookDelivery/abstractions.js +6 -0
- package/api/features/GetWebhookDelivery/abstractions.js.map +1 -0
- package/api/features/GetWebhookDelivery/feature.d.ts +4 -0
- package/api/features/GetWebhookDelivery/feature.js +13 -0
- package/api/features/GetWebhookDelivery/feature.js.map +1 -0
- package/api/features/GetWebhookDelivery/schema.d.ts +4 -0
- package/api/features/GetWebhookDelivery/schema.js +7 -0
- package/api/features/GetWebhookDelivery/schema.js.map +1 -0
- package/api/features/GetWebhookSettings/GetWebhookSettingsRepository.d.ts +19 -0
- package/api/features/GetWebhookSettings/GetWebhookSettingsRepository.js +57 -0
- package/api/features/GetWebhookSettings/GetWebhookSettingsRepository.js.map +1 -0
- package/api/features/GetWebhookSettings/abstractions.d.ts +13 -0
- package/api/features/GetWebhookSettings/abstractions.js +5 -0
- package/api/features/GetWebhookSettings/abstractions.js.map +1 -0
- package/api/features/GetWebhookSettings/feature.d.ts +4 -0
- package/api/features/GetWebhookSettings/feature.js +11 -0
- package/api/features/GetWebhookSettings/feature.js.map +1 -0
- package/api/features/ListAvailableWebhookEvents/ListAvailableWebhookEventsUseCase.d.ts +14 -0
- package/api/features/ListAvailableWebhookEvents/ListAvailableWebhookEventsUseCase.js +30 -0
- package/api/features/ListAvailableWebhookEvents/ListAvailableWebhookEventsUseCase.js.map +1 -0
- package/api/features/ListAvailableWebhookEvents/abstractions.d.ts +9 -0
- package/api/features/ListAvailableWebhookEvents/abstractions.js +5 -0
- package/api/features/ListAvailableWebhookEvents/abstractions.js.map +1 -0
- package/api/features/ListAvailableWebhookEvents/feature.d.ts +4 -0
- package/api/features/ListAvailableWebhookEvents/feature.js +11 -0
- package/api/features/ListAvailableWebhookEvents/feature.js.map +1 -0
- package/api/features/ListWebhookDeliveries/ListWebhookDeliveriesRepository.d.ts +21 -0
- package/api/features/ListWebhookDeliveries/ListWebhookDeliveriesRepository.js +63 -0
- package/api/features/ListWebhookDeliveries/ListWebhookDeliveriesRepository.js.map +1 -0
- package/api/features/ListWebhookDeliveries/ListWebhookDeliveriesUseCase.d.ts +14 -0
- package/api/features/ListWebhookDeliveries/ListWebhookDeliveriesUseCase.js +27 -0
- package/api/features/ListWebhookDeliveries/ListWebhookDeliveriesUseCase.js.map +1 -0
- package/api/features/ListWebhookDeliveries/abstractions.d.ts +40 -0
- package/api/features/ListWebhookDeliveries/abstractions.js +6 -0
- package/api/features/ListWebhookDeliveries/abstractions.js.map +1 -0
- package/api/features/ListWebhookDeliveries/feature.d.ts +4 -0
- package/api/features/ListWebhookDeliveries/feature.js +13 -0
- package/api/features/ListWebhookDeliveries/feature.js.map +1 -0
- package/api/features/ListWebhookDeliveries/schema.d.ts +7 -0
- package/api/features/ListWebhookDeliveries/schema.js +10 -0
- package/api/features/ListWebhookDeliveries/schema.js.map +1 -0
- package/api/features/ListWebhooks/ListWebhooksRepository.d.ts +21 -0
- package/api/features/ListWebhooks/ListWebhooksRepository.js +63 -0
- package/api/features/ListWebhooks/ListWebhooksRepository.js.map +1 -0
- package/api/features/ListWebhooks/ListWebhooksUseCase.d.ts +14 -0
- package/api/features/ListWebhooks/ListWebhooksUseCase.js +27 -0
- package/api/features/ListWebhooks/ListWebhooksUseCase.js.map +1 -0
- package/api/features/ListWebhooks/abstractions.d.ts +41 -0
- package/api/features/ListWebhooks/abstractions.js +6 -0
- package/api/features/ListWebhooks/abstractions.js.map +1 -0
- package/api/features/ListWebhooks/feature.d.ts +4 -0
- package/api/features/ListWebhooks/feature.js +13 -0
- package/api/features/ListWebhooks/feature.js.map +1 -0
- package/api/features/ListWebhooks/schema.d.ts +7 -0
- package/api/features/ListWebhooks/schema.js +10 -0
- package/api/features/ListWebhooks/schema.js.map +1 -0
- package/api/features/ResendWebhookDelivery/ResendWebhookDeliveryUseCase.d.ts +22 -0
- package/api/features/ResendWebhookDelivery/ResendWebhookDeliveryUseCase.js +70 -0
- package/api/features/ResendWebhookDelivery/ResendWebhookDeliveryUseCase.js.map +1 -0
- package/api/features/ResendWebhookDelivery/abstractions.d.ts +12 -0
- package/api/features/ResendWebhookDelivery/abstractions.js +5 -0
- package/api/features/ResendWebhookDelivery/abstractions.js.map +1 -0
- package/api/features/ResendWebhookDelivery/feature.d.ts +4 -0
- package/api/features/ResendWebhookDelivery/feature.js +11 -0
- package/api/features/ResendWebhookDelivery/feature.js.map +1 -0
- package/api/features/ResendWebhookDelivery/schema.d.ts +4 -0
- package/api/features/ResendWebhookDelivery/schema.js +7 -0
- package/api/features/ResendWebhookDelivery/schema.js.map +1 -0
- package/api/features/SendWebhookTask/SendWebhookTask.d.ts +33 -0
- package/api/features/SendWebhookTask/SendWebhookTask.js +111 -0
- package/api/features/SendWebhookTask/SendWebhookTask.js.map +1 -0
- package/api/features/SendWebhookTask/feature.d.ts +4 -0
- package/api/features/SendWebhookTask/feature.js +11 -0
- package/api/features/SendWebhookTask/feature.js.map +1 -0
- package/api/features/SendWebhookTask/types.d.ts +16 -0
- package/api/features/SendWebhookTask/types.js +0 -0
- package/api/features/Transformers/WebhookDeliveryTransformer.d.ts +13 -0
- package/api/features/Transformers/WebhookDeliveryTransformer.js +57 -0
- package/api/features/Transformers/WebhookDeliveryTransformer.js.map +1 -0
- package/api/features/Transformers/WebhookTransformer.d.ts +11 -0
- package/api/features/Transformers/WebhookTransformer.js +35 -0
- package/api/features/Transformers/WebhookTransformer.js.map +1 -0
- package/api/features/Transformers/abstractions/WebhookDeliveryTransformer.d.ts +10 -0
- package/api/features/Transformers/abstractions/WebhookDeliveryTransformer.js +5 -0
- package/api/features/Transformers/abstractions/WebhookDeliveryTransformer.js.map +1 -0
- package/api/features/Transformers/abstractions/WebhookTransformer.d.ts +10 -0
- package/api/features/Transformers/abstractions/WebhookTransformer.js +5 -0
- package/api/features/Transformers/abstractions/WebhookTransformer.js.map +1 -0
- package/api/features/Transformers/feature.d.ts +4 -0
- package/api/features/Transformers/feature.js +13 -0
- package/api/features/Transformers/feature.js.map +1 -0
- package/api/features/Transformers/index.d.ts +2 -0
- package/api/features/Transformers/index.js +2 -0
- package/api/features/TriggerWebhook/TriggerWebhookUseCase.d.ts +21 -0
- package/api/features/TriggerWebhook/TriggerWebhookUseCase.js +65 -0
- package/api/features/TriggerWebhook/TriggerWebhookUseCase.js.map +1 -0
- package/api/features/TriggerWebhook/abstractions.d.ts +13 -0
- package/api/features/TriggerWebhook/abstractions.js +5 -0
- package/api/features/TriggerWebhook/abstractions.js.map +1 -0
- package/api/features/TriggerWebhook/feature.d.ts +4 -0
- package/api/features/TriggerWebhook/feature.js +11 -0
- package/api/features/TriggerWebhook/feature.js.map +1 -0
- package/api/features/TriggerWebhook/schema.d.ts +5 -0
- package/api/features/TriggerWebhook/schema.js +8 -0
- package/api/features/TriggerWebhook/schema.js.map +1 -0
- package/api/features/UpdateWebhook/UpdateWebhookRepository.d.ts +21 -0
- package/api/features/UpdateWebhook/UpdateWebhookRepository.js +50 -0
- package/api/features/UpdateWebhook/UpdateWebhookRepository.js.map +1 -0
- package/api/features/UpdateWebhook/UpdateWebhookUseCase.d.ts +16 -0
- package/api/features/UpdateWebhook/UpdateWebhookUseCase.js +42 -0
- package/api/features/UpdateWebhook/UpdateWebhookUseCase.js.map +1 -0
- package/api/features/UpdateWebhook/abstractions.d.ts +30 -0
- package/api/features/UpdateWebhook/abstractions.js +6 -0
- package/api/features/UpdateWebhook/abstractions.js.map +1 -0
- package/api/features/UpdateWebhook/feature.d.ts +4 -0
- package/api/features/UpdateWebhook/feature.js +13 -0
- package/api/features/UpdateWebhook/feature.js.map +1 -0
- package/api/features/UpdateWebhook/schema.d.ts +9 -0
- package/api/features/UpdateWebhook/schema.js +15 -0
- package/api/features/UpdateWebhook/schema.js.map +1 -0
- package/api/features/UpdateWebhookDelivery/UpdateWebhookDeliveryRepository.d.ts +22 -0
- package/api/features/UpdateWebhookDelivery/UpdateWebhookDeliveryRepository.js +62 -0
- package/api/features/UpdateWebhookDelivery/UpdateWebhookDeliveryRepository.js.map +1 -0
- package/api/features/UpdateWebhookDelivery/abstractions.d.ts +23 -0
- package/api/features/UpdateWebhookDelivery/abstractions.js +5 -0
- package/api/features/UpdateWebhookDelivery/abstractions.js.map +1 -0
- package/api/features/UpdateWebhookDelivery/feature.d.ts +4 -0
- package/api/features/UpdateWebhookDelivery/feature.js +11 -0
- package/api/features/UpdateWebhookDelivery/feature.js.map +1 -0
- package/api/features/UpdateWebhookSettings/UpdateWebhookSettingsRepository.d.ts +21 -0
- package/api/features/UpdateWebhookSettings/UpdateWebhookSettingsRepository.js +62 -0
- package/api/features/UpdateWebhookSettings/UpdateWebhookSettingsRepository.js.map +1 -0
- package/api/features/UpdateWebhookSettings/UpdateWebhookSettingsUseCase.d.ts +14 -0
- package/api/features/UpdateWebhookSettings/UpdateWebhookSettingsUseCase.js +27 -0
- package/api/features/UpdateWebhookSettings/UpdateWebhookSettingsUseCase.js.map +1 -0
- package/api/features/UpdateWebhookSettings/abstractions.d.ts +27 -0
- package/api/features/UpdateWebhookSettings/abstractions.js +6 -0
- package/api/features/UpdateWebhookSettings/abstractions.js.map +1 -0
- package/api/features/UpdateWebhookSettings/feature.d.ts +4 -0
- package/api/features/UpdateWebhookSettings/feature.js +13 -0
- package/api/features/UpdateWebhookSettings/feature.js.map +1 -0
- package/api/features/UpdateWebhookSettings/schema.d.ts +5 -0
- package/api/features/UpdateWebhookSettings/schema.js +9 -0
- package/api/features/UpdateWebhookSettings/schema.js.map +1 -0
- package/api/features/WebhookDeliver/WebhookDeliver.d.ts +13 -0
- package/api/features/WebhookDeliver/WebhookDeliver.js +79 -0
- package/api/features/WebhookDeliver/WebhookDeliver.js.map +1 -0
- package/api/features/WebhookDeliver/abstractions.d.ts +24 -0
- package/api/features/WebhookDeliver/abstractions.js +5 -0
- package/api/features/WebhookDeliver/abstractions.js.map +1 -0
- package/api/features/WebhookDeliver/feature.d.ts +4 -0
- package/api/features/WebhookDeliver/feature.js +11 -0
- package/api/features/WebhookDeliver/feature.js.map +1 -0
- package/api/features/WebhookDeliver/index.d.ts +2 -0
- package/api/features/WebhookDeliver/index.js +2 -0
- package/api/features/WebhookDispatcher/WebhookDispatcher.d.ts +19 -0
- package/api/features/WebhookDispatcher/WebhookDispatcher.js +61 -0
- package/api/features/WebhookDispatcher/WebhookDispatcher.js.map +1 -0
- package/api/features/WebhookDispatcher/feature.d.ts +4 -0
- package/api/features/WebhookDispatcher/feature.js +11 -0
- package/api/features/WebhookDispatcher/feature.js.map +1 -0
- package/api/features/WebhookPermissions/abstractions.d.ts +17 -0
- package/api/features/WebhookPermissions/abstractions.js +6 -0
- package/api/features/WebhookPermissions/abstractions.js.map +1 -0
- package/api/features/WebhookPermissions/feature.d.ts +4 -0
- package/api/features/WebhookPermissions/feature.js +7 -0
- package/api/features/WebhookPermissions/feature.js.map +1 -0
- package/api/features/WebhookSignPayload/WebhookSignPayload.d.ts +9 -0
- package/api/features/WebhookSignPayload/WebhookSignPayload.js +26 -0
- package/api/features/WebhookSignPayload/WebhookSignPayload.js.map +1 -0
- package/api/features/WebhookSignPayload/feature.d.ts +4 -0
- package/api/features/WebhookSignPayload/feature.js +11 -0
- package/api/features/WebhookSignPayload/feature.js.map +1 -0
- package/api/features/WebhookVerifyPayload/WebhookVerifyPayload.d.ts +10 -0
- package/api/features/WebhookVerifyPayload/WebhookVerifyPayload.js +22 -0
- package/api/features/WebhookVerifyPayload/WebhookVerifyPayload.js.map +1 -0
- package/api/features/WebhookVerifyPayload/feature.d.ts +4 -0
- package/api/features/WebhookVerifyPayload/feature.js +11 -0
- package/api/features/WebhookVerifyPayload/feature.js.map +1 -0
- package/api/graphql/WebhookCrudSchema.d.ts +8 -0
- package/api/graphql/WebhookCrudSchema.js +166 -0
- package/api/graphql/WebhookCrudSchema.js.map +1 -0
- package/api/graphql/WebhookDeliverySchema.d.ts +8 -0
- package/api/graphql/WebhookDeliverySchema.js +100 -0
- package/api/graphql/WebhookDeliverySchema.js.map +1 -0
- package/api/graphql/WebhookEventSchema.d.ts +8 -0
- package/api/graphql/WebhookEventSchema.js +45 -0
- package/api/graphql/WebhookEventSchema.js.map +1 -0
- package/api/graphql/WebhookSettingsSchema.d.ts +8 -0
- package/api/graphql/WebhookSettingsSchema.js +62 -0
- package/api/graphql/WebhookSettingsSchema.js.map +1 -0
- package/api/graphql/WebhookTriggerSchema.d.ts +8 -0
- package/api/graphql/WebhookTriggerSchema.js +36 -0
- package/api/graphql/WebhookTriggerSchema.js.map +1 -0
- package/api/index.d.ts +1 -0
- package/api/index.js +8 -0
- package/api/index.js.map +1 -0
- package/api/models/WebhookDeliveryModel.d.ts +8 -0
- package/api/models/WebhookDeliveryModel.js +36 -0
- package/api/models/WebhookDeliveryModel.js.map +1 -0
- package/api/models/WebhookModel.d.ts +8 -0
- package/api/models/WebhookModel.js +33 -0
- package/api/models/WebhookModel.js.map +1 -0
- package/api/models/WebhookSettingsModel.d.ts +8 -0
- package/api/models/WebhookSettingsModel.js +28 -0
- package/api/models/WebhookSettingsModel.js.map +1 -0
- package/api/permissions.d.ts +12 -0
- package/api/permissions.js +22 -0
- package/api/permissions.js.map +1 -0
- package/api/utils/isValidEndpointUrl.d.ts +1 -0
- package/api/utils/isValidEndpointUrl.js +13 -0
- package/api/utils/isValidEndpointUrl.js.map +1 -0
- package/exports/api/webhooks.d.ts +5 -0
- package/exports/api/webhooks.js +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WebinySdk } from "@webiny/app-admin/features/webinySdk/abstractions.js";
|
|
2
|
+
import { DeleteWebhookGateway as GatewayAbstraction } from "./abstractions.js";
|
|
3
|
+
declare class DeleteWebhookGatewayImpl implements GatewayAbstraction.Interface {
|
|
4
|
+
private readonly sdk;
|
|
5
|
+
constructor(sdk: WebinySdk.Interface);
|
|
6
|
+
execute(id: string): Promise<boolean>;
|
|
7
|
+
}
|
|
8
|
+
export declare const DeleteWebhookGateway: typeof DeleteWebhookGatewayImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IDeleteWebhookGateway>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { WebinySdk } from "@webiny/app-admin/features/webinySdk/abstractions.js";
|
|
2
|
+
import { DeleteWebhookGateway } from "./abstractions.js";
|
|
3
|
+
class DeleteWebhookGatewayImpl {
|
|
4
|
+
constructor(sdk){
|
|
5
|
+
this.sdk = sdk;
|
|
6
|
+
}
|
|
7
|
+
async execute(id) {
|
|
8
|
+
const result = await this.sdk.webhooks.deleteWebhook({
|
|
9
|
+
id
|
|
10
|
+
});
|
|
11
|
+
if (result.isFail()) throw new Error(result.error.message);
|
|
12
|
+
return result.value;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
const DeleteWebhookGateway_DeleteWebhookGateway = DeleteWebhookGateway.createImplementation({
|
|
16
|
+
implementation: DeleteWebhookGatewayImpl,
|
|
17
|
+
dependencies: [
|
|
18
|
+
WebinySdk
|
|
19
|
+
]
|
|
20
|
+
});
|
|
21
|
+
export { DeleteWebhookGateway_DeleteWebhookGateway as DeleteWebhookGateway };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=DeleteWebhookGateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/deleteWebhook/DeleteWebhookGateway.js","sources":["../../../../src/admin/features/deleteWebhook/DeleteWebhookGateway.ts"],"sourcesContent":["import { WebinySdk } from \"@webiny/app-admin/features/webinySdk/abstractions.js\";\nimport { DeleteWebhookGateway as GatewayAbstraction } from \"./abstractions.js\";\n\nclass DeleteWebhookGatewayImpl implements GatewayAbstraction.Interface {\n constructor(private readonly sdk: WebinySdk.Interface) {}\n\n async execute(id: string): Promise<boolean> {\n const result = await this.sdk.webhooks.deleteWebhook({ id });\n\n if (result.isFail()) {\n throw new Error(result.error.message);\n }\n\n return result.value;\n }\n}\n\nexport const DeleteWebhookGateway = GatewayAbstraction.createImplementation({\n implementation: DeleteWebhookGatewayImpl,\n dependencies: [WebinySdk]\n});\n"],"names":["DeleteWebhookGatewayImpl","sdk","id","result","Error","DeleteWebhookGateway","GatewayAbstraction","WebinySdk"],"mappings":";;AAGA,MAAMA;IACF,YAA6BC,GAAwB,CAAE;aAA1BA,GAAG,GAAHA;IAA2B;IAExD,MAAM,QAAQC,EAAU,EAAoB;QACxC,MAAMC,SAAS,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC;YAAED;QAAG;QAE1D,IAAIC,OAAO,MAAM,IACb,MAAM,IAAIC,MAAMD,OAAO,KAAK,CAAC,OAAO;QAGxC,OAAOA,OAAO,KAAK;IACvB;AACJ;AAEO,MAAME,4CAAuBC,qBAAAA,oBAAuC,CAAC;IACxE,gBAAgBN;IAChB,cAAc;QAACO;KAAU;AAC7B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DeleteWebhookUseCase as UseCaseAbstraction, DeleteWebhookGateway } from "./abstractions.js";
|
|
2
|
+
declare class DeleteWebhookUseCaseImpl implements UseCaseAbstraction.Interface {
|
|
3
|
+
private readonly gateway;
|
|
4
|
+
constructor(gateway: DeleteWebhookGateway.Interface);
|
|
5
|
+
execute(id: string): Promise<boolean>;
|
|
6
|
+
}
|
|
7
|
+
export declare const DeleteWebhookUseCase: typeof DeleteWebhookUseCaseImpl & {
|
|
8
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IDeleteWebhookUseCase>;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DeleteWebhookGateway, DeleteWebhookUseCase } from "./abstractions.js";
|
|
2
|
+
class DeleteWebhookUseCaseImpl {
|
|
3
|
+
constructor(gateway){
|
|
4
|
+
this.gateway = gateway;
|
|
5
|
+
}
|
|
6
|
+
async execute(id) {
|
|
7
|
+
return this.gateway.execute(id);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const DeleteWebhookUseCase_DeleteWebhookUseCase = DeleteWebhookUseCase.createImplementation({
|
|
11
|
+
implementation: DeleteWebhookUseCaseImpl,
|
|
12
|
+
dependencies: [
|
|
13
|
+
DeleteWebhookGateway
|
|
14
|
+
]
|
|
15
|
+
});
|
|
16
|
+
export { DeleteWebhookUseCase_DeleteWebhookUseCase as DeleteWebhookUseCase };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=DeleteWebhookUseCase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/deleteWebhook/DeleteWebhookUseCase.js","sources":["../../../../src/admin/features/deleteWebhook/DeleteWebhookUseCase.ts"],"sourcesContent":["import {\n DeleteWebhookUseCase as UseCaseAbstraction,\n DeleteWebhookGateway\n} from \"./abstractions.js\";\n\nclass DeleteWebhookUseCaseImpl implements UseCaseAbstraction.Interface {\n constructor(private readonly gateway: DeleteWebhookGateway.Interface) {}\n\n async execute(id: string): Promise<boolean> {\n return this.gateway.execute(id);\n }\n}\n\nexport const DeleteWebhookUseCase = UseCaseAbstraction.createImplementation({\n implementation: DeleteWebhookUseCaseImpl,\n dependencies: [DeleteWebhookGateway]\n});\n"],"names":["DeleteWebhookUseCaseImpl","gateway","id","DeleteWebhookUseCase","UseCaseAbstraction","DeleteWebhookGateway"],"mappings":";AAKA,MAAMA;IACF,YAA6BC,OAAuC,CAAE;aAAzCA,OAAO,GAAPA;IAA0C;IAEvE,MAAM,QAAQC,EAAU,EAAoB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAACA;IAChC;AACJ;AAEO,MAAMC,4CAAuBC,qBAAAA,oBAAuC,CAAC;IACxE,gBAAgBJ;IAChB,cAAc;QAACK;KAAqB;AACxC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface IDeleteWebhookGateway {
|
|
2
|
+
execute(id: string): Promise<boolean>;
|
|
3
|
+
}
|
|
4
|
+
export declare const DeleteWebhookGateway: import("@webiny/di").Abstraction<IDeleteWebhookGateway>;
|
|
5
|
+
export declare namespace DeleteWebhookGateway {
|
|
6
|
+
type Interface = IDeleteWebhookGateway;
|
|
7
|
+
}
|
|
8
|
+
export interface IDeleteWebhookUseCase {
|
|
9
|
+
execute(id: string): Promise<boolean>;
|
|
10
|
+
}
|
|
11
|
+
export declare const DeleteWebhookUseCase: import("@webiny/di").Abstraction<IDeleteWebhookUseCase>;
|
|
12
|
+
export declare namespace DeleteWebhookUseCase {
|
|
13
|
+
type Interface = IDeleteWebhookUseCase;
|
|
14
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createAbstraction } from "@webiny/feature/admin";
|
|
2
|
+
const DeleteWebhookGateway = createAbstraction("DeleteWebhookGateway");
|
|
3
|
+
const DeleteWebhookUseCase = createAbstraction("DeleteWebhookUseCase");
|
|
4
|
+
export { DeleteWebhookGateway, DeleteWebhookUseCase };
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=abstractions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/deleteWebhook/abstractions.js","sources":["../../../../src/admin/features/deleteWebhook/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\n\nexport interface IDeleteWebhookGateway {\n execute(id: string): Promise<boolean>;\n}\n\nexport const DeleteWebhookGateway =\n createAbstraction<IDeleteWebhookGateway>(\"DeleteWebhookGateway\");\n\nexport namespace DeleteWebhookGateway {\n export type Interface = IDeleteWebhookGateway;\n}\n\nexport interface IDeleteWebhookUseCase {\n execute(id: string): Promise<boolean>;\n}\n\nexport const DeleteWebhookUseCase =\n createAbstraction<IDeleteWebhookUseCase>(\"DeleteWebhookUseCase\");\n\nexport namespace DeleteWebhookUseCase {\n export type Interface = IDeleteWebhookUseCase;\n}\n"],"names":["DeleteWebhookGateway","createAbstraction","DeleteWebhookUseCase"],"mappings":";AAMO,MAAMA,uBACTC,kBAAyC;AAUtC,MAAMC,uBACTD,kBAAyC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
2
|
+
import { DeleteWebhookUseCase } from "./abstractions.js";
|
|
3
|
+
import { DeleteWebhookUseCase as external_DeleteWebhookUseCase_js_DeleteWebhookUseCase } from "./DeleteWebhookUseCase.js";
|
|
4
|
+
import { DeleteWebhookGateway } from "./DeleteWebhookGateway.js";
|
|
5
|
+
const DeleteWebhookFeature = createFeature({
|
|
6
|
+
name: "Webhooks/DeleteWebhook",
|
|
7
|
+
register (container) {
|
|
8
|
+
container.register(external_DeleteWebhookUseCase_js_DeleteWebhookUseCase);
|
|
9
|
+
container.register(DeleteWebhookGateway).inSingletonScope();
|
|
10
|
+
},
|
|
11
|
+
resolve (container) {
|
|
12
|
+
return {
|
|
13
|
+
useCase: container.resolve(DeleteWebhookUseCase)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export { DeleteWebhookFeature };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/deleteWebhook/feature.js","sources":["../../../../src/admin/features/deleteWebhook/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { DeleteWebhookUseCase as UseCaseAbstraction } from \"./abstractions.js\";\nimport { DeleteWebhookUseCase } from \"./DeleteWebhookUseCase.js\";\nimport { DeleteWebhookGateway } from \"./DeleteWebhookGateway.js\";\n\nexport const DeleteWebhookFeature = createFeature({\n name: \"Webhooks/DeleteWebhook\",\n register(container) {\n container.register(DeleteWebhookUseCase);\n container.register(DeleteWebhookGateway).inSingletonScope();\n },\n resolve(container) {\n return {\n useCase: container.resolve(UseCaseAbstraction)\n };\n }\n});\n"],"names":["DeleteWebhookFeature","createFeature","container","DeleteWebhookUseCase","DeleteWebhookGateway","UseCaseAbstraction"],"mappings":";;;;AAKO,MAAMA,uBAAuBC,cAAc;IAC9C,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC;QACnBD,UAAU,QAAQ,CAACE,sBAAsB,gBAAgB;IAC7D;IACA,SAAQF,SAAS;QACb,OAAO;YACH,SAASA,UAAU,OAAO,CAACG;QAC/B;IACJ;AACJ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WebinySdk } from "@webiny/app-admin/features/webinySdk/abstractions.js";
|
|
2
|
+
import type { Webhook } from "../../../admin/shared/types.js";
|
|
3
|
+
import { GetWebhookGateway as GatewayAbstraction } from "./abstractions.js";
|
|
4
|
+
declare class GetWebhookGatewayImpl implements GatewayAbstraction.Interface {
|
|
5
|
+
private readonly sdk;
|
|
6
|
+
constructor(sdk: WebinySdk.Interface);
|
|
7
|
+
execute(id: string): Promise<Webhook>;
|
|
8
|
+
}
|
|
9
|
+
export declare const GetWebhookGateway: typeof GetWebhookGatewayImpl & {
|
|
10
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IGetWebhookGateway>;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { WebinySdk } from "@webiny/app-admin/features/webinySdk/abstractions.js";
|
|
2
|
+
import { GetWebhookGateway } from "./abstractions.js";
|
|
3
|
+
class GetWebhookGatewayImpl {
|
|
4
|
+
constructor(sdk){
|
|
5
|
+
this.sdk = sdk;
|
|
6
|
+
}
|
|
7
|
+
async execute(id) {
|
|
8
|
+
const result = await this.sdk.webhooks.getWebhook({
|
|
9
|
+
id
|
|
10
|
+
});
|
|
11
|
+
if (result.isFail()) throw new Error(result.error.message);
|
|
12
|
+
return result.value;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
const GetWebhookGateway_GetWebhookGateway = GetWebhookGateway.createImplementation({
|
|
16
|
+
implementation: GetWebhookGatewayImpl,
|
|
17
|
+
dependencies: [
|
|
18
|
+
WebinySdk
|
|
19
|
+
]
|
|
20
|
+
});
|
|
21
|
+
export { GetWebhookGateway_GetWebhookGateway as GetWebhookGateway };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=GetWebhookGateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/getWebhook/GetWebhookGateway.js","sources":["../../../../src/admin/features/getWebhook/GetWebhookGateway.ts"],"sourcesContent":["import { WebinySdk } from \"@webiny/app-admin/features/webinySdk/abstractions.js\";\nimport type { Webhook } from \"~/admin/shared/types.js\";\nimport { GetWebhookGateway as GatewayAbstraction } from \"./abstractions.js\";\n\nclass GetWebhookGatewayImpl implements GatewayAbstraction.Interface {\n constructor(private readonly sdk: WebinySdk.Interface) {}\n\n async execute(id: string): Promise<Webhook> {\n const result = await this.sdk.webhooks.getWebhook({ id });\n\n if (result.isFail()) {\n throw new Error(result.error.message);\n }\n\n return result.value;\n }\n}\n\nexport const GetWebhookGateway = GatewayAbstraction.createImplementation({\n implementation: GetWebhookGatewayImpl,\n dependencies: [WebinySdk]\n});\n"],"names":["GetWebhookGatewayImpl","sdk","id","result","Error","GetWebhookGateway","GatewayAbstraction","WebinySdk"],"mappings":";;AAIA,MAAMA;IACF,YAA6BC,GAAwB,CAAE;aAA1BA,GAAG,GAAHA;IAA2B;IAExD,MAAM,QAAQC,EAAU,EAAoB;QACxC,MAAMC,SAAS,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC;YAAED;QAAG;QAEvD,IAAIC,OAAO,MAAM,IACb,MAAM,IAAIC,MAAMD,OAAO,KAAK,CAAC,OAAO;QAGxC,OAAOA,OAAO,KAAK;IACvB;AACJ;AAEO,MAAME,sCAAoBC,kBAAAA,oBAAuC,CAAC;IACrE,gBAAgBN;IAChB,cAAc;QAACO;KAAU;AAC7B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Webhook } from "../../../admin/shared/types.js";
|
|
2
|
+
import { GetWebhookUseCase as UseCaseAbstraction, GetWebhookGateway } from "./abstractions.js";
|
|
3
|
+
declare class GetWebhookUseCaseImpl implements UseCaseAbstraction.Interface {
|
|
4
|
+
private readonly gateway;
|
|
5
|
+
constructor(gateway: GetWebhookGateway.Interface);
|
|
6
|
+
execute(id: string): Promise<Webhook>;
|
|
7
|
+
}
|
|
8
|
+
export declare const GetWebhookUseCase: typeof GetWebhookUseCaseImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IGetWebhookUseCase>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GetWebhookGateway, GetWebhookUseCase } from "./abstractions.js";
|
|
2
|
+
class GetWebhookUseCaseImpl {
|
|
3
|
+
constructor(gateway){
|
|
4
|
+
this.gateway = gateway;
|
|
5
|
+
}
|
|
6
|
+
async execute(id) {
|
|
7
|
+
return this.gateway.execute(id);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const GetWebhookUseCase_GetWebhookUseCase = GetWebhookUseCase.createImplementation({
|
|
11
|
+
implementation: GetWebhookUseCaseImpl,
|
|
12
|
+
dependencies: [
|
|
13
|
+
GetWebhookGateway
|
|
14
|
+
]
|
|
15
|
+
});
|
|
16
|
+
export { GetWebhookUseCase_GetWebhookUseCase as GetWebhookUseCase };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=GetWebhookUseCase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/getWebhook/GetWebhookUseCase.js","sources":["../../../../src/admin/features/getWebhook/GetWebhookUseCase.ts"],"sourcesContent":["import type { Webhook } from \"~/admin/shared/types.js\";\nimport { GetWebhookUseCase as UseCaseAbstraction, GetWebhookGateway } from \"./abstractions.js\";\n\nclass GetWebhookUseCaseImpl implements UseCaseAbstraction.Interface {\n constructor(private readonly gateway: GetWebhookGateway.Interface) {}\n\n async execute(id: string): Promise<Webhook> {\n return this.gateway.execute(id);\n }\n}\n\nexport const GetWebhookUseCase = UseCaseAbstraction.createImplementation({\n implementation: GetWebhookUseCaseImpl,\n dependencies: [GetWebhookGateway]\n});\n"],"names":["GetWebhookUseCaseImpl","gateway","id","GetWebhookUseCase","UseCaseAbstraction","GetWebhookGateway"],"mappings":";AAGA,MAAMA;IACF,YAA6BC,OAAoC,CAAE;aAAtCA,OAAO,GAAPA;IAAuC;IAEpE,MAAM,QAAQC,EAAU,EAAoB;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAACA;IAChC;AACJ;AAEO,MAAMC,sCAAoBC,kBAAAA,oBAAuC,CAAC;IACrE,gBAAgBJ;IAChB,cAAc;QAACK;KAAkB;AACrC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Webhook } from "../../../admin/shared/types.js";
|
|
2
|
+
export interface IGetWebhookGateway {
|
|
3
|
+
execute(id: string): Promise<Webhook>;
|
|
4
|
+
}
|
|
5
|
+
export declare const GetWebhookGateway: import("@webiny/di").Abstraction<IGetWebhookGateway>;
|
|
6
|
+
export declare namespace GetWebhookGateway {
|
|
7
|
+
type Interface = IGetWebhookGateway;
|
|
8
|
+
}
|
|
9
|
+
export interface IGetWebhookUseCase {
|
|
10
|
+
execute(id: string): Promise<Webhook>;
|
|
11
|
+
}
|
|
12
|
+
export declare const GetWebhookUseCase: import("@webiny/di").Abstraction<IGetWebhookUseCase>;
|
|
13
|
+
export declare namespace GetWebhookUseCase {
|
|
14
|
+
type Interface = IGetWebhookUseCase;
|
|
15
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createAbstraction } from "@webiny/feature/admin";
|
|
2
|
+
const GetWebhookGateway = createAbstraction("GetWebhookGateway");
|
|
3
|
+
const GetWebhookUseCase = createAbstraction("GetWebhookUseCase");
|
|
4
|
+
export { GetWebhookGateway, GetWebhookUseCase };
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=abstractions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/getWebhook/abstractions.js","sources":["../../../../src/admin/features/getWebhook/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\nimport type { Webhook } from \"~/admin/shared/types.js\";\n\nexport interface IGetWebhookGateway {\n execute(id: string): Promise<Webhook>;\n}\n\nexport const GetWebhookGateway = createAbstraction<IGetWebhookGateway>(\"GetWebhookGateway\");\n\nexport namespace GetWebhookGateway {\n export type Interface = IGetWebhookGateway;\n}\n\nexport interface IGetWebhookUseCase {\n execute(id: string): Promise<Webhook>;\n}\n\nexport const GetWebhookUseCase = createAbstraction<IGetWebhookUseCase>(\"GetWebhookUseCase\");\n\nexport namespace GetWebhookUseCase {\n export type Interface = IGetWebhookUseCase;\n}\n"],"names":["GetWebhookGateway","createAbstraction","GetWebhookUseCase"],"mappings":";AAOO,MAAMA,oBAAoBC,kBAAsC;AAUhE,MAAMC,oBAAoBD,kBAAsC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
2
|
+
import { GetWebhookUseCase } from "./abstractions.js";
|
|
3
|
+
import { GetWebhookUseCase as external_GetWebhookUseCase_js_GetWebhookUseCase } from "./GetWebhookUseCase.js";
|
|
4
|
+
import { GetWebhookGateway } from "./GetWebhookGateway.js";
|
|
5
|
+
const GetWebhookFeature = createFeature({
|
|
6
|
+
name: "Webhooks/GetWebhook",
|
|
7
|
+
register (container) {
|
|
8
|
+
container.register(external_GetWebhookUseCase_js_GetWebhookUseCase);
|
|
9
|
+
container.register(GetWebhookGateway).inSingletonScope();
|
|
10
|
+
},
|
|
11
|
+
resolve (container) {
|
|
12
|
+
return {
|
|
13
|
+
useCase: container.resolve(GetWebhookUseCase)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export { GetWebhookFeature };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/getWebhook/feature.js","sources":["../../../../src/admin/features/getWebhook/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { GetWebhookUseCase as UseCaseAbstraction } from \"./abstractions.js\";\nimport { GetWebhookUseCase } from \"./GetWebhookUseCase.js\";\nimport { GetWebhookGateway } from \"./GetWebhookGateway.js\";\n\nexport const GetWebhookFeature = createFeature({\n name: \"Webhooks/GetWebhook\",\n register(container) {\n container.register(GetWebhookUseCase);\n container.register(GetWebhookGateway).inSingletonScope();\n },\n resolve(container) {\n return {\n useCase: container.resolve(UseCaseAbstraction)\n };\n }\n});\n"],"names":["GetWebhookFeature","createFeature","container","GetWebhookUseCase","GetWebhookGateway","UseCaseAbstraction"],"mappings":";;;;AAKO,MAAMA,oBAAoBC,cAAc;IAC3C,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC;QACnBD,UAAU,QAAQ,CAACE,mBAAmB,gBAAgB;IAC1D;IACA,SAAQF,SAAS;QACb,OAAO;YACH,SAASA,UAAU,OAAO,CAACG;QAC/B;IACJ;AACJ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/index.js";
|
|
2
|
+
import type { WebhookSettings } from "../../../admin/shared/types.js";
|
|
3
|
+
import { GetWebhookSettingsGateway as GatewayAbstraction } from "./abstractions.js";
|
|
4
|
+
declare class GetWebhookSettingsGatewayImpl implements GatewayAbstraction.Interface {
|
|
5
|
+
private readonly client;
|
|
6
|
+
constructor(client: MainGraphQLClient.Interface);
|
|
7
|
+
execute(): Promise<WebhookSettings>;
|
|
8
|
+
}
|
|
9
|
+
export declare const GetWebhookSettingsGateway: typeof GetWebhookSettingsGatewayImpl & {
|
|
10
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IGetWebhookSettingsGateway>;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { MainGraphQLClient } from "@webiny/app/features/mainGraphQLClient/index.js";
|
|
2
|
+
import { GetWebhookSettingsGateway } from "./abstractions.js";
|
|
3
|
+
const GET_WEBHOOK_SETTINGS = `
|
|
4
|
+
query GetWebhookSettings {
|
|
5
|
+
webhooks {
|
|
6
|
+
getSettings {
|
|
7
|
+
data {
|
|
8
|
+
signingSecret
|
|
9
|
+
deliveryRetentionDays
|
|
10
|
+
}
|
|
11
|
+
error {
|
|
12
|
+
code
|
|
13
|
+
message
|
|
14
|
+
data
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
class GetWebhookSettingsGatewayImpl {
|
|
21
|
+
constructor(client){
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
async execute() {
|
|
25
|
+
const response = await this.client.execute({
|
|
26
|
+
query: GET_WEBHOOK_SETTINGS
|
|
27
|
+
});
|
|
28
|
+
const envelope = response.webhooks.getSettings;
|
|
29
|
+
if (envelope.error) throw new Error(envelope.error.message);
|
|
30
|
+
return envelope.data;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const GetWebhookSettingsGateway_GetWebhookSettingsGateway = GetWebhookSettingsGateway.createImplementation({
|
|
34
|
+
implementation: GetWebhookSettingsGatewayImpl,
|
|
35
|
+
dependencies: [
|
|
36
|
+
MainGraphQLClient
|
|
37
|
+
]
|
|
38
|
+
});
|
|
39
|
+
export { GetWebhookSettingsGateway_GetWebhookSettingsGateway as GetWebhookSettingsGateway };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=GetWebhookSettingsGateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/getWebhookSettings/GetWebhookSettingsGateway.js","sources":["../../../../src/admin/features/getWebhookSettings/GetWebhookSettingsGateway.ts"],"sourcesContent":["import { MainGraphQLClient } from \"@webiny/app/features/mainGraphQLClient/index.js\";\nimport type { WebhookSettings } from \"~/admin/shared/types.js\";\nimport { GetWebhookSettingsGateway as GatewayAbstraction } from \"./abstractions.js\";\n\nconst GET_WEBHOOK_SETTINGS = /* GraphQL */ `\n query GetWebhookSettings {\n webhooks {\n getSettings {\n data {\n signingSecret\n deliveryRetentionDays\n }\n error {\n code\n message\n data\n }\n }\n }\n }\n`;\n\ntype GetWebhookSettingsResponse = {\n webhooks: {\n getSettings:\n | { data: WebhookSettings; error: null }\n | { data: null; error: { code: string; message: string; data: unknown } };\n };\n};\n\nclass GetWebhookSettingsGatewayImpl implements GatewayAbstraction.Interface {\n constructor(private readonly client: MainGraphQLClient.Interface) {}\n\n async execute(): Promise<WebhookSettings> {\n const response = await this.client.execute<GetWebhookSettingsResponse>({\n query: GET_WEBHOOK_SETTINGS\n });\n\n const envelope = response.webhooks.getSettings;\n if (envelope.error) {\n throw new Error(envelope.error.message);\n }\n\n return envelope.data;\n }\n}\n\nexport const GetWebhookSettingsGateway = GatewayAbstraction.createImplementation({\n implementation: GetWebhookSettingsGatewayImpl,\n dependencies: [MainGraphQLClient]\n});\n"],"names":["GET_WEBHOOK_SETTINGS","GetWebhookSettingsGatewayImpl","client","response","envelope","Error","GetWebhookSettingsGateway","GatewayAbstraction","MainGraphQLClient"],"mappings":";;AAIA,MAAMA,uBAAqC,CAAC;;;;;;;;;;;;;;;;AAgB5C,CAAC;AAUD,MAAMC;IACF,YAA6BC,MAAmC,CAAE;aAArCA,MAAM,GAANA;IAAsC;IAEnE,MAAM,UAAoC;QACtC,MAAMC,WAAW,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAA6B;YACnE,OAAOH;QACX;QAEA,MAAMI,WAAWD,SAAS,QAAQ,CAAC,WAAW;QAC9C,IAAIC,SAAS,KAAK,EACd,MAAM,IAAIC,MAAMD,SAAS,KAAK,CAAC,OAAO;QAG1C,OAAOA,SAAS,IAAI;IACxB;AACJ;AAEO,MAAME,sDAA4BC,0BAAAA,oBAAuC,CAAC;IAC7E,gBAAgBN;IAChB,cAAc;QAACO;KAAkB;AACrC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { WebhookSettings } from "../../../admin/shared/types.js";
|
|
2
|
+
import { GetWebhookSettingsUseCase as UseCaseAbstraction, GetWebhookSettingsGateway } from "./abstractions.js";
|
|
3
|
+
declare class GetWebhookSettingsUseCaseImpl implements UseCaseAbstraction.Interface {
|
|
4
|
+
private readonly gateway;
|
|
5
|
+
constructor(gateway: GetWebhookSettingsGateway.Interface);
|
|
6
|
+
execute(): Promise<WebhookSettings>;
|
|
7
|
+
}
|
|
8
|
+
export declare const GetWebhookSettingsUseCase: typeof GetWebhookSettingsUseCaseImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IGetWebhookSettingsUseCase>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GetWebhookSettingsGateway, GetWebhookSettingsUseCase } from "./abstractions.js";
|
|
2
|
+
class GetWebhookSettingsUseCaseImpl {
|
|
3
|
+
constructor(gateway){
|
|
4
|
+
this.gateway = gateway;
|
|
5
|
+
}
|
|
6
|
+
async execute() {
|
|
7
|
+
return this.gateway.execute();
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const GetWebhookSettingsUseCase_GetWebhookSettingsUseCase = GetWebhookSettingsUseCase.createImplementation({
|
|
11
|
+
implementation: GetWebhookSettingsUseCaseImpl,
|
|
12
|
+
dependencies: [
|
|
13
|
+
GetWebhookSettingsGateway
|
|
14
|
+
]
|
|
15
|
+
});
|
|
16
|
+
export { GetWebhookSettingsUseCase_GetWebhookSettingsUseCase as GetWebhookSettingsUseCase };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=GetWebhookSettingsUseCase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/getWebhookSettings/GetWebhookSettingsUseCase.js","sources":["../../../../src/admin/features/getWebhookSettings/GetWebhookSettingsUseCase.ts"],"sourcesContent":["import type { WebhookSettings } from \"~/admin/shared/types.js\";\nimport {\n GetWebhookSettingsUseCase as UseCaseAbstraction,\n GetWebhookSettingsGateway\n} from \"./abstractions.js\";\n\nclass GetWebhookSettingsUseCaseImpl implements UseCaseAbstraction.Interface {\n constructor(private readonly gateway: GetWebhookSettingsGateway.Interface) {}\n\n async execute(): Promise<WebhookSettings> {\n return this.gateway.execute();\n }\n}\n\nexport const GetWebhookSettingsUseCase = UseCaseAbstraction.createImplementation({\n implementation: GetWebhookSettingsUseCaseImpl,\n dependencies: [GetWebhookSettingsGateway]\n});\n"],"names":["GetWebhookSettingsUseCaseImpl","gateway","GetWebhookSettingsUseCase","UseCaseAbstraction","GetWebhookSettingsGateway"],"mappings":";AAMA,MAAMA;IACF,YAA6BC,OAA4C,CAAE;aAA9CA,OAAO,GAAPA;IAA+C;IAE5E,MAAM,UAAoC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO;IAC/B;AACJ;AAEO,MAAMC,sDAA4BC,0BAAAA,oBAAuC,CAAC;IAC7E,gBAAgBH;IAChB,cAAc;QAACI;KAA0B;AAC7C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { WebhookSettings } from "../../../admin/shared/types.js";
|
|
2
|
+
export interface IGetWebhookSettingsGateway {
|
|
3
|
+
execute(): Promise<WebhookSettings>;
|
|
4
|
+
}
|
|
5
|
+
export declare const GetWebhookSettingsGateway: import("@webiny/di").Abstraction<IGetWebhookSettingsGateway>;
|
|
6
|
+
export declare namespace GetWebhookSettingsGateway {
|
|
7
|
+
type Interface = IGetWebhookSettingsGateway;
|
|
8
|
+
}
|
|
9
|
+
export interface IGetWebhookSettingsUseCase {
|
|
10
|
+
execute(): Promise<WebhookSettings>;
|
|
11
|
+
}
|
|
12
|
+
export declare const GetWebhookSettingsUseCase: import("@webiny/di").Abstraction<IGetWebhookSettingsUseCase>;
|
|
13
|
+
export declare namespace GetWebhookSettingsUseCase {
|
|
14
|
+
type Interface = IGetWebhookSettingsUseCase;
|
|
15
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createAbstraction } from "@webiny/feature/admin";
|
|
2
|
+
const GetWebhookSettingsGateway = createAbstraction("GetWebhookSettingsGateway");
|
|
3
|
+
const GetWebhookSettingsUseCase = createAbstraction("GetWebhookSettingsUseCase");
|
|
4
|
+
export { GetWebhookSettingsGateway, GetWebhookSettingsUseCase };
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=abstractions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/getWebhookSettings/abstractions.js","sources":["../../../../src/admin/features/getWebhookSettings/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\nimport type { WebhookSettings } from \"~/admin/shared/types.js\";\n\nexport interface IGetWebhookSettingsGateway {\n execute(): Promise<WebhookSettings>;\n}\n\nexport const GetWebhookSettingsGateway = createAbstraction<IGetWebhookSettingsGateway>(\n \"GetWebhookSettingsGateway\"\n);\n\nexport namespace GetWebhookSettingsGateway {\n export type Interface = IGetWebhookSettingsGateway;\n}\n\nexport interface IGetWebhookSettingsUseCase {\n execute(): Promise<WebhookSettings>;\n}\n\nexport const GetWebhookSettingsUseCase = createAbstraction<IGetWebhookSettingsUseCase>(\n \"GetWebhookSettingsUseCase\"\n);\n\nexport namespace GetWebhookSettingsUseCase {\n export type Interface = IGetWebhookSettingsUseCase;\n}\n"],"names":["GetWebhookSettingsGateway","createAbstraction","GetWebhookSettingsUseCase"],"mappings":";AAOO,MAAMA,4BAA4BC,kBACrC;AAWG,MAAMC,4BAA4BD,kBACrC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
2
|
+
import { GetWebhookSettingsUseCase } from "./abstractions.js";
|
|
3
|
+
import { GetWebhookSettingsUseCase as external_GetWebhookSettingsUseCase_js_GetWebhookSettingsUseCase } from "./GetWebhookSettingsUseCase.js";
|
|
4
|
+
import { GetWebhookSettingsGateway } from "./GetWebhookSettingsGateway.js";
|
|
5
|
+
const GetWebhookSettingsFeature = createFeature({
|
|
6
|
+
name: "Webhooks/GetWebhookSettings",
|
|
7
|
+
register (container) {
|
|
8
|
+
container.register(external_GetWebhookSettingsUseCase_js_GetWebhookSettingsUseCase);
|
|
9
|
+
container.register(GetWebhookSettingsGateway).inSingletonScope();
|
|
10
|
+
},
|
|
11
|
+
resolve (container) {
|
|
12
|
+
return {
|
|
13
|
+
useCase: container.resolve(GetWebhookSettingsUseCase)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export { GetWebhookSettingsFeature };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/getWebhookSettings/feature.js","sources":["../../../../src/admin/features/getWebhookSettings/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { GetWebhookSettingsUseCase as UseCaseAbstraction } from \"./abstractions.js\";\nimport { GetWebhookSettingsUseCase } from \"./GetWebhookSettingsUseCase.js\";\nimport { GetWebhookSettingsGateway } from \"./GetWebhookSettingsGateway.js\";\n\nexport const GetWebhookSettingsFeature = createFeature({\n name: \"Webhooks/GetWebhookSettings\",\n register(container) {\n container.register(GetWebhookSettingsUseCase);\n container.register(GetWebhookSettingsGateway).inSingletonScope();\n },\n resolve(container) {\n return {\n useCase: container.resolve(UseCaseAbstraction)\n };\n }\n});\n"],"names":["GetWebhookSettingsFeature","createFeature","container","GetWebhookSettingsUseCase","GetWebhookSettingsGateway","UseCaseAbstraction"],"mappings":";;;;AAKO,MAAMA,4BAA4BC,cAAc;IACnD,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC;QACnBD,UAAU,QAAQ,CAACE,2BAA2B,gBAAgB;IAClE;IACA,SAAQF,SAAS;QACb,OAAO;YACH,SAASA,UAAU,OAAO,CAACG;QAC/B;IACJ;AACJ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WebinySdk } from "@webiny/app-admin/features/webinySdk/abstractions.js";
|
|
2
|
+
import type { WebhookEvent } from "../../../admin/shared/types.js";
|
|
3
|
+
import { ListAvailableEventsGateway as GatewayAbstraction } from "./abstractions.js";
|
|
4
|
+
declare class ListAvailableEventsGatewayImpl implements GatewayAbstraction.Interface {
|
|
5
|
+
private readonly sdk;
|
|
6
|
+
constructor(sdk: WebinySdk.Interface);
|
|
7
|
+
execute(): Promise<WebhookEvent[]>;
|
|
8
|
+
}
|
|
9
|
+
export declare const ListAvailableEventsGateway: typeof ListAvailableEventsGatewayImpl & {
|
|
10
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IListAvailableEventsGateway>;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { WebinySdk } from "@webiny/app-admin/features/webinySdk/abstractions.js";
|
|
2
|
+
import { ListAvailableEventsGateway } from "./abstractions.js";
|
|
3
|
+
class ListAvailableEventsGatewayImpl {
|
|
4
|
+
constructor(sdk){
|
|
5
|
+
this.sdk = sdk;
|
|
6
|
+
}
|
|
7
|
+
async execute() {
|
|
8
|
+
const result = await this.sdk.webhooks.listAvailableWebhookEvents();
|
|
9
|
+
if (result.isFail()) throw new Error(result.error.message);
|
|
10
|
+
return result.value;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
const ListAvailableEventsGateway_ListAvailableEventsGateway = ListAvailableEventsGateway.createImplementation({
|
|
14
|
+
implementation: ListAvailableEventsGatewayImpl,
|
|
15
|
+
dependencies: [
|
|
16
|
+
WebinySdk
|
|
17
|
+
]
|
|
18
|
+
});
|
|
19
|
+
export { ListAvailableEventsGateway_ListAvailableEventsGateway as ListAvailableEventsGateway };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=ListAvailableEventsGateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/listAvailableEvents/ListAvailableEventsGateway.js","sources":["../../../../src/admin/features/listAvailableEvents/ListAvailableEventsGateway.ts"],"sourcesContent":["import { WebinySdk } from \"@webiny/app-admin/features/webinySdk/abstractions.js\";\nimport type { WebhookEvent } from \"~/admin/shared/types.js\";\nimport { ListAvailableEventsGateway as GatewayAbstraction } from \"./abstractions.js\";\n\nclass ListAvailableEventsGatewayImpl implements GatewayAbstraction.Interface {\n constructor(private readonly sdk: WebinySdk.Interface) {}\n\n async execute(): Promise<WebhookEvent[]> {\n const result = await this.sdk.webhooks.listAvailableWebhookEvents();\n\n if (result.isFail()) {\n throw new Error(result.error.message);\n }\n\n return result.value;\n }\n}\n\nexport const ListAvailableEventsGateway = GatewayAbstraction.createImplementation({\n implementation: ListAvailableEventsGatewayImpl,\n dependencies: [WebinySdk]\n});\n"],"names":["ListAvailableEventsGatewayImpl","sdk","result","Error","ListAvailableEventsGateway","GatewayAbstraction","WebinySdk"],"mappings":";;AAIA,MAAMA;IACF,YAA6BC,GAAwB,CAAE;aAA1BA,GAAG,GAAHA;IAA2B;IAExD,MAAM,UAAmC;QACrC,MAAMC,SAAS,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,0BAA0B;QAEjE,IAAIA,OAAO,MAAM,IACb,MAAM,IAAIC,MAAMD,OAAO,KAAK,CAAC,OAAO;QAGxC,OAAOA,OAAO,KAAK;IACvB;AACJ;AAEO,MAAME,wDAA6BC,2BAAAA,oBAAuC,CAAC;IAC9E,gBAAgBL;IAChB,cAAc;QAACM;KAAU;AAC7B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { WebhookEvent } from "../../../admin/shared/types.js";
|
|
2
|
+
import { ListAvailableEventsGateway, ListAvailableEventsUseCase as UseCaseAbstraction } from "./abstractions.js";
|
|
3
|
+
declare class ListAvailableEventsUseCaseImpl implements UseCaseAbstraction.Interface {
|
|
4
|
+
private readonly gateway;
|
|
5
|
+
constructor(gateway: ListAvailableEventsGateway.Interface);
|
|
6
|
+
execute(): Promise<WebhookEvent[]>;
|
|
7
|
+
}
|
|
8
|
+
export declare const ListAvailableEventsUseCase: typeof ListAvailableEventsUseCaseImpl & {
|
|
9
|
+
__abstraction: import("@webiny/di").Abstraction<import("./abstractions.js").IListAvailableEventsUseCase>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ListAvailableEventsGateway, ListAvailableEventsUseCase } from "./abstractions.js";
|
|
2
|
+
class ListAvailableEventsUseCaseImpl {
|
|
3
|
+
constructor(gateway){
|
|
4
|
+
this.gateway = gateway;
|
|
5
|
+
}
|
|
6
|
+
async execute() {
|
|
7
|
+
return this.gateway.execute();
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const ListAvailableEventsUseCase_ListAvailableEventsUseCase = ListAvailableEventsUseCase.createImplementation({
|
|
11
|
+
implementation: ListAvailableEventsUseCaseImpl,
|
|
12
|
+
dependencies: [
|
|
13
|
+
ListAvailableEventsGateway
|
|
14
|
+
]
|
|
15
|
+
});
|
|
16
|
+
export { ListAvailableEventsUseCase_ListAvailableEventsUseCase as ListAvailableEventsUseCase };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=ListAvailableEventsUseCase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/listAvailableEvents/ListAvailableEventsUseCase.js","sources":["../../../../src/admin/features/listAvailableEvents/ListAvailableEventsUseCase.ts"],"sourcesContent":["import type { WebhookEvent } from \"~/admin/shared/types.js\";\nimport {\n ListAvailableEventsGateway,\n ListAvailableEventsUseCase as UseCaseAbstraction\n} from \"./abstractions.js\";\n\nclass ListAvailableEventsUseCaseImpl implements UseCaseAbstraction.Interface {\n constructor(private readonly gateway: ListAvailableEventsGateway.Interface) {}\n\n async execute(): Promise<WebhookEvent[]> {\n return this.gateway.execute();\n }\n}\n\nexport const ListAvailableEventsUseCase = UseCaseAbstraction.createImplementation({\n implementation: ListAvailableEventsUseCaseImpl,\n dependencies: [ListAvailableEventsGateway]\n});\n"],"names":["ListAvailableEventsUseCaseImpl","gateway","ListAvailableEventsUseCase","UseCaseAbstraction","ListAvailableEventsGateway"],"mappings":";AAMA,MAAMA;IACF,YAA6BC,OAA6C,CAAE;aAA/CA,OAAO,GAAPA;IAAgD;IAE7E,MAAM,UAAmC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO;IAC/B;AACJ;AAEO,MAAMC,wDAA6BC,2BAAAA,oBAAuC,CAAC;IAC9E,gBAAgBH;IAChB,cAAc;QAACI;KAA2B;AAC9C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { WebhookEvent } from "../../../admin/shared/types.js";
|
|
2
|
+
export interface IListAvailableEventsGateway {
|
|
3
|
+
execute(): Promise<WebhookEvent[]>;
|
|
4
|
+
}
|
|
5
|
+
export declare const ListAvailableEventsGateway: import("@webiny/di").Abstraction<IListAvailableEventsGateway>;
|
|
6
|
+
export declare namespace ListAvailableEventsGateway {
|
|
7
|
+
type Interface = IListAvailableEventsGateway;
|
|
8
|
+
}
|
|
9
|
+
export interface IListAvailableEventsUseCase {
|
|
10
|
+
execute(): Promise<WebhookEvent[]>;
|
|
11
|
+
}
|
|
12
|
+
export declare const ListAvailableEventsUseCase: import("@webiny/di").Abstraction<IListAvailableEventsUseCase>;
|
|
13
|
+
export declare namespace ListAvailableEventsUseCase {
|
|
14
|
+
type Interface = IListAvailableEventsUseCase;
|
|
15
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createAbstraction } from "@webiny/feature/admin";
|
|
2
|
+
const ListAvailableEventsGateway = createAbstraction("ListAvailableEventsGateway");
|
|
3
|
+
const ListAvailableEventsUseCase = createAbstraction("ListAvailableEventsUseCase");
|
|
4
|
+
export { ListAvailableEventsGateway, ListAvailableEventsUseCase };
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=abstractions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin/features/listAvailableEvents/abstractions.js","sources":["../../../../src/admin/features/listAvailableEvents/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\nimport type { WebhookEvent } from \"~/admin/shared/types.js\";\n\nexport interface IListAvailableEventsGateway {\n execute(): Promise<WebhookEvent[]>;\n}\n\nexport const ListAvailableEventsGateway = createAbstraction<IListAvailableEventsGateway>(\n \"ListAvailableEventsGateway\"\n);\n\nexport namespace ListAvailableEventsGateway {\n export type Interface = IListAvailableEventsGateway;\n}\n\nexport interface IListAvailableEventsUseCase {\n execute(): Promise<WebhookEvent[]>;\n}\n\nexport const ListAvailableEventsUseCase = createAbstraction<IListAvailableEventsUseCase>(\n \"ListAvailableEventsUseCase\"\n);\n\nexport namespace ListAvailableEventsUseCase {\n export type Interface = IListAvailableEventsUseCase;\n}\n"],"names":["ListAvailableEventsGateway","createAbstraction","ListAvailableEventsUseCase"],"mappings":";AAOO,MAAMA,6BAA6BC,kBACtC;AAWG,MAAMC,6BAA6BD,kBACtC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
2
|
+
import { ListAvailableEventsUseCase } from "./abstractions.js";
|
|
3
|
+
import { ListAvailableEventsUseCase as external_ListAvailableEventsUseCase_js_ListAvailableEventsUseCase } from "./ListAvailableEventsUseCase.js";
|
|
4
|
+
import { ListAvailableEventsGateway } from "./ListAvailableEventsGateway.js";
|
|
5
|
+
const ListAvailableEventsFeature = createFeature({
|
|
6
|
+
name: "Webhooks/ListAvailableEvents",
|
|
7
|
+
register (container) {
|
|
8
|
+
container.register(external_ListAvailableEventsUseCase_js_ListAvailableEventsUseCase);
|
|
9
|
+
container.register(ListAvailableEventsGateway).inSingletonScope();
|
|
10
|
+
},
|
|
11
|
+
resolve (container) {
|
|
12
|
+
return {
|
|
13
|
+
useCase: container.resolve(ListAvailableEventsUseCase)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export { ListAvailableEventsFeature };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=feature.js.map
|