@webiny/webhooks 6.4.11 → 6.6.0-alpha.1
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/admin/WebhookRoutes.js +20 -4
- package/admin/WebhookRoutes.js.map +1 -1
- package/admin/features/ListWebhooks/ListWebhooksGateway.js +8 -2
- package/admin/features/ListWebhooks/ListWebhooksGateway.js.map +1 -1
- package/admin/features/ListWebhooks/abstractions.d.ts +1 -0
- package/admin/features/ListWebhooks/abstractions.js.map +1 -1
- package/admin/features/permissions/feature.d.ts +1 -1
- package/admin/presentation/WebhookDeliveriesPage/components/DeliveryBottomInfoBar.d.ts +2 -2
- package/admin/presentation/WebhookDeliveriesPage/components/DeliveryFilters.d.ts +2 -2
- package/admin/presentation/WebhookDeliveriesPage/components/DeliveryFilters.js +37 -24
- package/admin/presentation/WebhookDeliveriesPage/components/DeliveryFilters.js.map +1 -1
- package/admin/presentation/WebhookDeliveriesPage/components/DeliveryList.d.ts +2 -2
- package/admin/presentation/WebhookDeliveriesPage/components/WebhookDeliveriesPage.js +3 -3
- package/admin/presentation/WebhookDeliveriesPage/components/WebhookDeliveriesPage.js.map +1 -1
- package/admin/presentation/WebhookDeliveriesPage/components/statusVariant.d.ts +1 -1
- package/admin/presentation/WebhookForm/WebhookFormPresenter.js +1 -1
- package/admin/presentation/WebhookForm/WebhookFormPresenter.js.map +1 -1
- package/admin/presentation/WebhookForm/components/SigningSecret.d.ts +2 -2
- package/admin/presentation/WebhookForm/components/WebhookFormView.js +3 -4
- package/admin/presentation/WebhookForm/components/WebhookFormView.js.map +1 -1
- package/admin/presentation/WebhookList/WebhookListDataSource.d.ts +7 -8
- package/admin/presentation/WebhookList/WebhookListDataSource.js +23 -50
- package/admin/presentation/WebhookList/WebhookListDataSource.js.map +1 -1
- package/admin/presentation/WebhookList/components/WebhookListContent.d.ts +2 -2
- package/admin/presentation/WebhookList/components/WebhookListContent.js +1 -1
- package/admin/presentation/WebhookList/components/WebhookListContent.js.map +1 -1
- package/api/features/DeleteWebhook/DeleteWebhookRepository.js +1 -2
- package/api/features/DeleteWebhook/DeleteWebhookRepository.js.map +1 -1
- package/api/features/ListWebhookDeliveries/ListWebhookDeliveriesRepository.js +4 -7
- package/api/features/ListWebhookDeliveries/ListWebhookDeliveriesRepository.js.map +1 -1
- package/api/features/ListWebhooks/ListWebhooksRepository.js +4 -7
- package/api/features/ListWebhooks/ListWebhooksRepository.js.map +1 -1
- package/api/graphql/WebhookCrudSchema.d.ts +2 -2
- package/api/graphql/WebhookCrudSchema.js +13 -2
- package/api/graphql/WebhookCrudSchema.js.map +1 -1
- package/api/graphql/WebhookDeliverySchema.d.ts +2 -2
- package/api/graphql/WebhookDeliverySchema.js +2 -2
- package/api/graphql/WebhookDeliverySchema.js.map +1 -1
- package/api/graphql/WebhookEventSchema.d.ts +2 -2
- package/api/graphql/WebhookEventSchema.js +2 -2
- package/api/graphql/WebhookEventSchema.js.map +1 -1
- package/api/graphql/WebhookSettingsSchema.d.ts +2 -2
- package/api/graphql/WebhookSettingsSchema.js +2 -2
- package/api/graphql/WebhookSettingsSchema.js.map +1 -1
- package/api/graphql/WebhookTriggerSchema.d.ts +2 -2
- package/api/graphql/WebhookTriggerSchema.js +2 -2
- package/api/graphql/WebhookTriggerSchema.js.map +1 -1
- package/api/index.d.ts +3 -0
- package/api/index.js +6 -2
- package/api/index.js.map +1 -1
- package/package.json +24 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GraphQLSchemaFactory } from "@webiny/
|
|
2
|
-
import { ErrorResponse, Response } from "@webiny/
|
|
1
|
+
import { GraphQLSchemaFactory } from "@webiny/api-graphql/graphql/abstractions.js";
|
|
2
|
+
import { ErrorResponse, Response } from "@webiny/api-graphql";
|
|
3
3
|
import { TriggerWebhookUseCase } from "../features/TriggerWebhook/abstractions.js";
|
|
4
4
|
class WebhookTriggerSchema_ {
|
|
5
5
|
async execute(builder) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api/graphql/WebhookTriggerSchema.js","sources":["../../../src/api/graphql/WebhookTriggerSchema.ts"],"sourcesContent":["import { GraphQLSchemaFactory } from \"@webiny/
|
|
1
|
+
{"version":3,"file":"api/graphql/WebhookTriggerSchema.js","sources":["../../../src/api/graphql/WebhookTriggerSchema.ts"],"sourcesContent":["import { GraphQLSchemaFactory } from \"@webiny/api-graphql/graphql/abstractions.js\";\nimport { Response } from \"@webiny/api-graphql\";\nimport { ErrorResponse } from \"@webiny/api-graphql\";\nimport { TriggerWebhookUseCase } from \"~/api/features/TriggerWebhook/abstractions.js\";\n\ninterface ITriggerWebhookArgs {\n id: string;\n payload: Record<string, unknown>;\n}\n\nclass WebhookTriggerSchema_ implements GraphQLSchemaFactory.Interface {\n async execute(\n builder: GraphQLSchemaFactory.SchemaBuilder\n ): Promise<GraphQLSchemaFactory.SchemaBuilder> {\n builder.addTypeDefs(/* GraphQL */ `\n type WebhookTriggerResponse {\n data: WebhookDelivery\n error: WebhookError\n }\n\n extend type WebhookMutation {\n triggerWebhook(id: ID!, payload: JSON!): WebhookTriggerResponse!\n }\n `);\n\n builder.addResolver<ITriggerWebhookArgs>({\n path: \"WebhookMutation.triggerWebhook\",\n dependencies: [TriggerWebhookUseCase],\n resolver: (triggerWebhook: TriggerWebhookUseCase.Interface) => {\n return async ({ args }) => {\n const result = await triggerWebhook.execute(args.id, args.payload);\n if (result.isFail()) {\n return new ErrorResponse(result.error);\n }\n return new Response(result.value);\n };\n }\n });\n\n return builder;\n }\n}\n\nexport const WebhookTriggerSchema = GraphQLSchemaFactory.createImplementation({\n implementation: WebhookTriggerSchema_,\n dependencies: []\n});\n"],"names":["WebhookTriggerSchema_","builder","TriggerWebhookUseCase","triggerWebhook","args","result","ErrorResponse","Response","WebhookTriggerSchema","GraphQLSchemaFactory"],"mappings":";;;AAUA,MAAMA;IACF,MAAM,QACFC,OAA2C,EACA;QAC3CA,QAAQ,WAAW,CAAe,CAAC;;;;;;;;;QASnC,CAAC;QAEDA,QAAQ,WAAW,CAAsB;YACrC,MAAM;YACN,cAAc;gBAACC;aAAsB;YACrC,UAAU,CAACC,iBACA,OAAO,EAAEC,IAAI,EAAE;oBAClB,MAAMC,SAAS,MAAMF,eAAe,OAAO,CAACC,KAAK,EAAE,EAAEA,KAAK,OAAO;oBACjE,IAAIC,OAAO,MAAM,IACb,OAAO,IAAIC,cAAcD,OAAO,KAAK;oBAEzC,OAAO,IAAIE,SAASF,OAAO,KAAK;gBACpC;QAER;QAEA,OAAOJ;IACX;AACJ;AAEO,MAAMO,uBAAuBC,qBAAqB,oBAAoB,CAAC;IAC1E,gBAAgBT;IAChB,cAAc,EAAE;AACpB"}
|
package/api/index.d.ts
CHANGED
package/api/index.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { WebhooksFeature } from "./WebhooksFeature.js";
|
|
2
2
|
import { createRegisterExtensionPlugin } from "@webiny/handler";
|
|
3
|
-
const createWebhooks = ()=>
|
|
3
|
+
const createWebhooks = ()=>{
|
|
4
|
+
const plugin = createRegisterExtensionPlugin(async (context)=>{
|
|
4
5
|
WebhooksFeature.register(context.container);
|
|
5
6
|
});
|
|
6
|
-
|
|
7
|
+
plugin.name = "webhooks.extension";
|
|
8
|
+
return plugin;
|
|
9
|
+
};
|
|
10
|
+
export { WebhooksFeature, createWebhooks };
|
|
7
11
|
|
|
8
12
|
//# sourceMappingURL=index.js.map
|
package/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api/index.js","sources":["../../src/api/index.ts"],"sourcesContent":["import { WebhooksFeature } from \"./WebhooksFeature.js\";\nimport { createRegisterExtensionPlugin } from \"@webiny/handler\";\n\nexport const createWebhooks = () => {\n
|
|
1
|
+
{"version":3,"file":"api/index.js","sources":["../../src/api/index.ts"],"sourcesContent":["import { WebhooksFeature } from \"./WebhooksFeature.js\";\nimport { createRegisterExtensionPlugin } from \"@webiny/handler\";\n\nexport { WebhooksFeature };\n\n/** @deprecated use WebhooksFeature instead */\nexport const createWebhooks = () => {\n const plugin = createRegisterExtensionPlugin(async context => {\n WebhooksFeature.register(context.container);\n });\n\n plugin.name = \"webhooks.extension\";\n\n return plugin;\n};\n"],"names":["createWebhooks","plugin","createRegisterExtensionPlugin","context","WebhooksFeature"],"mappings":";;AAMO,MAAMA,iBAAiB;IAC1B,MAAMC,SAASC,8BAA8B,OAAMC;QAC/CC,gBAAgB,QAAQ,CAACD,QAAQ,SAAS;IAC9C;IAEAF,OAAO,IAAI,GAAG;IAEd,OAAOA;AACX"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/webhooks",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0-alpha.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -19,35 +19,36 @@
|
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@webiny/admin-ui": "6.
|
|
23
|
-
"@webiny/api-core": "6.
|
|
24
|
-
"@webiny/api-
|
|
25
|
-
"@webiny/
|
|
26
|
-
"@webiny/app
|
|
27
|
-
"@webiny/
|
|
28
|
-
"@webiny/
|
|
29
|
-
"@webiny/
|
|
30
|
-
"@webiny/icons": "6.
|
|
31
|
-
"@webiny/sdk": "6.
|
|
32
|
-
"@webiny/utils": "6.
|
|
22
|
+
"@webiny/admin-ui": "6.6.0-alpha.1",
|
|
23
|
+
"@webiny/api-core": "6.6.0-alpha.1",
|
|
24
|
+
"@webiny/api-graphql": "6.6.0-alpha.1",
|
|
25
|
+
"@webiny/api-headless-cms": "6.6.0-alpha.1",
|
|
26
|
+
"@webiny/app": "6.6.0-alpha.1",
|
|
27
|
+
"@webiny/app-admin": "6.6.0-alpha.1",
|
|
28
|
+
"@webiny/background-tasks": "6.6.0-alpha.1",
|
|
29
|
+
"@webiny/feature": "6.6.0-alpha.1",
|
|
30
|
+
"@webiny/icons": "6.6.0-alpha.1",
|
|
31
|
+
"@webiny/sdk": "6.6.0-alpha.1",
|
|
32
|
+
"@webiny/utils": "6.6.0-alpha.1",
|
|
33
|
+
"graphql": "16.14.2",
|
|
33
34
|
"lodash": "4.18.1",
|
|
34
|
-
"mobx": "
|
|
35
|
-
"mobx-react-lite": "
|
|
35
|
+
"mobx": "7.0.3",
|
|
36
|
+
"mobx-react-lite": "5.0.3",
|
|
36
37
|
"react": "18.3.1",
|
|
37
38
|
"react-dom": "18.3.1",
|
|
38
39
|
"standardwebhooks": "1.0.0",
|
|
39
40
|
"zod": "4.4.3"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
|
-
"@webiny/api": "6.
|
|
43
|
-
"@webiny/
|
|
44
|
-
"@webiny/
|
|
45
|
-
"@webiny/
|
|
46
|
-
"@webiny/handler-
|
|
47
|
-
"@webiny/
|
|
48
|
-
"@webiny/
|
|
49
|
-
"typescript": "
|
|
50
|
-
"vitest": "4.1.
|
|
43
|
+
"@webiny/api": "6.6.0-alpha.1",
|
|
44
|
+
"@webiny/api-core-testing": "6.6.0-alpha.1",
|
|
45
|
+
"@webiny/build-tools": "6.6.0-alpha.1",
|
|
46
|
+
"@webiny/di": "1.1.0",
|
|
47
|
+
"@webiny/event-handler-core": "6.6.0-alpha.1",
|
|
48
|
+
"@webiny/handler": "6.6.0-alpha.1",
|
|
49
|
+
"@webiny/wcp": "6.6.0-alpha.1",
|
|
50
|
+
"typescript": "7.0.2",
|
|
51
|
+
"vitest": "4.1.11"
|
|
51
52
|
},
|
|
52
53
|
"publishConfig": {
|
|
53
54
|
"access": "public"
|