@shipfox/api-integration-webhook 12.3.0 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shipfox/api-integration-webhook",
3
3
  "license": "MIT",
4
- "version": "12.3.0",
4
+ "version": "14.0.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ShipfoxHQ/shipfox.git",
@@ -21,8 +21,8 @@
21
21
  "fastify-plugin": "^5.1.0",
22
22
  "zod": "^4.4.3",
23
23
  "@shipfox/api-auth-context": "12.2.0",
24
- "@shipfox/api-integration-spi": "1.1.0",
25
- "@shipfox/api-integration-webhook-dto": "12.2.0",
24
+ "@shipfox/api-integration-spi": "2.0.0",
25
+ "@shipfox/api-integration-webhook-dto": "14.0.0",
26
26
  "@shipfox/config": "1.2.4",
27
27
  "@shipfox/node-fastify": "0.4.2",
28
28
  "@shipfox/node-opentelemetry": "0.6.4"
package/src/index.ts CHANGED
@@ -7,7 +7,7 @@ import type {
7
7
  PublishIntegrationEventReceivedFn,
8
8
  UpdateIntegrationConnectionLifecycleStatusFn,
9
9
  } from '@shipfox/api-integration-spi';
10
- import {WEBHOOK_PROVIDER} from '@shipfox/api-integration-webhook-dto';
10
+ import {WEBHOOK_PROVIDER, webhookEventCatalog} from '@shipfox/api-integration-webhook-dto';
11
11
  import {config} from '#config.js';
12
12
  import {createGenericWebhookProcessor} from '#core/webhook-processor.js';
13
13
  import {createWebhookConnectionRoutes} from '#presentation/routes/connections.js';
@@ -39,6 +39,7 @@ export function createWebhookIntegrationProvider(options: CreateWebhookIntegrati
39
39
  return {
40
40
  provider: WEBHOOK_PROVIDER,
41
41
  displayName: 'Webhook',
42
+ eventCatalog: webhookEventCatalog,
42
43
  routes: [
43
44
  createWebhookConnectionRoutes({
44
45
  baseUrl,
@@ -8,7 +8,7 @@ import {
8
8
  ConnectionSlugConflictError,
9
9
  type IntegrationConnection,
10
10
  } from '@shipfox/api-integration-spi';
11
- import {WEBHOOK_RESERVED_SLUGS} from '@shipfox/api-integration-webhook-dto';
11
+ import {WEBHOOK_RESERVED_SLUGS, webhookEventCatalog} from '@shipfox/api-integration-webhook-dto';
12
12
  import {type AuthMethod, ClientError, closeApp, createApp} from '@shipfox/node-fastify';
13
13
  import type {FastifyInstance, FastifyRequest} from 'fastify';
14
14
  import type {CreateWebhookIntegrationProviderOptions} from '#index.js';
@@ -130,6 +130,7 @@ async function createTestApp(store = createStore()): Promise<{
130
130
  publishIntegrationEventReceived: vi.fn(() => Promise.resolve({published: true})),
131
131
  ...store,
132
132
  } satisfies CreateWebhookIntegrationProviderOptions);
133
+ expect(provider.eventCatalog).toBe(webhookEventCatalog);
133
134
  const app = await createApp({
134
135
  auth: [fakeUserAuth],
135
136
  routes: provider.routes,