@shipfox/api-integration-webhook 7.1.0 → 9.0.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shipfox/api-integration-webhook",
3
3
  "license": "MIT",
4
- "version": "7.1.0",
4
+ "version": "9.0.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ShipfoxHQ/shipfox.git",
@@ -11,10 +11,6 @@
11
11
  "type": "module",
12
12
  "main": "dist/index.js",
13
13
  "types": "dist/index.d.ts",
14
- "imports": {
15
- "#test/*": "./test/*",
16
- "#*": "./dist/*"
17
- },
18
14
  "exports": {
19
15
  ".": {
20
16
  "types": "./dist/index.d.ts",
@@ -24,12 +20,15 @@
24
20
  "dependencies": {
25
21
  "fastify-plugin": "^5.1.0",
26
22
  "zod": "^4.4.3",
27
- "@shipfox/api-auth-context": "7.1.0",
28
- "@shipfox/api-integration-core-dto": "6.0.0",
29
- "@shipfox/api-integration-webhook-dto": "6.0.0",
30
- "@shipfox/config": "1.2.2",
31
- "@shipfox/node-fastify": "0.3.0",
32
- "@shipfox/node-opentelemetry": "0.6.0"
23
+ "@shipfox/api-auth-context": "9.0.1",
24
+ "@shipfox/api-integration-spi": "0.2.1",
25
+ "@shipfox/api-integration-webhook-dto": "9.0.1",
26
+ "@shipfox/node-fastify": "0.3.1",
27
+ "@shipfox/config": "1.2.3",
28
+ "@shipfox/node-opentelemetry": "0.6.1"
29
+ },
30
+ "imports": {
31
+ "#*": "./dist/*"
33
32
  },
34
33
  "scripts": {
35
34
  "build": "shipfox-swc",
@@ -1,8 +1,5 @@
1
1
  import {randomUUID} from 'node:crypto';
2
- import {
3
- createStoredWebhookRequest,
4
- type IntegrationConnection,
5
- } from '@shipfox/api-integration-core-dto';
2
+ import {createStoredWebhookRequest, type IntegrationConnection} from '@shipfox/api-integration-spi';
6
3
  import {createGenericWebhookProcessor} from './webhook-processor.js';
7
4
 
8
5
  function fakeConnection(overrides: Partial<IntegrationConnection> = {}): IntegrationConnection {
@@ -7,7 +7,7 @@ import {
7
7
  type PublishIntegrationEventReceivedFn,
8
8
  type StoredWebhookRequest,
9
9
  type WebhookProcessingResult,
10
- } from '@shipfox/api-integration-core-dto';
10
+ } from '@shipfox/api-integration-spi';
11
11
  import {WEBHOOK_PROVIDER, WEBHOOK_RECEIVED_EVENT} from '@shipfox/api-integration-webhook-dto';
12
12
  import {logger} from '@shipfox/node-opentelemetry';
13
13
  import {redactHeaders, WEBHOOK_ACCEPTED_CONTENT_TYPES} from '#constants.js';
package/src/index.ts CHANGED
@@ -6,7 +6,7 @@ import type {
6
6
  IntegrationTx,
7
7
  PublishIntegrationEventReceivedFn,
8
8
  UpdateIntegrationConnectionLifecycleStatusFn,
9
- } from '@shipfox/api-integration-core-dto';
9
+ } from '@shipfox/api-integration-spi';
10
10
  import {WEBHOOK_PROVIDER} from '@shipfox/api-integration-webhook-dto';
11
11
  import {config} from '#config.js';
12
12
  import {createGenericWebhookProcessor} from '#core/webhook-processor.js';
@@ -1,4 +1,4 @@
1
- import type {IntegrationConnection} from '@shipfox/api-integration-core-dto';
1
+ import type {IntegrationConnection} from '@shipfox/api-integration-spi';
2
2
  import type {WebhookConnectionDto} from '@shipfox/api-integration-webhook-dto';
3
3
 
4
4
  const TRAILING_SLASHES_RE = /\/+$/;
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  ConnectionSlugConflictError,
9
9
  type IntegrationConnection,
10
- } from '@shipfox/api-integration-core-dto';
10
+ } from '@shipfox/api-integration-spi';
11
11
  import {WEBHOOK_RESERVED_SLUGS} 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';
@@ -6,7 +6,7 @@ import {
6
6
  type GetIntegrationConnectionByIdFn,
7
7
  type IntegrationConnection,
8
8
  type UpdateIntegrationConnectionLifecycleStatusFn,
9
- } from '@shipfox/api-integration-core-dto';
9
+ } from '@shipfox/api-integration-spi';
10
10
  import {
11
11
  createWebhookConnectionBodySchema,
12
12
  listWebhookConnectionsQuerySchema,
@@ -1,4 +1,4 @@
1
- import type {IntegrationConnection} from '@shipfox/api-integration-core-dto';
1
+ import type {IntegrationConnection} from '@shipfox/api-integration-spi';
2
2
  import {closeApp, createApp} from '@shipfox/node-fastify';
3
3
  import type {FastifyInstance} from 'fastify';
4
4
  import {createWebhookInboundRoutes} from './inbound.js';
@@ -3,12 +3,12 @@ import type {
3
3
  GetIntegrationConnectionByIdFn,
4
4
  IntegrationTx,
5
5
  PublishIntegrationEventReceivedFn,
6
- } from '@shipfox/api-integration-core-dto';
6
+ } from '@shipfox/api-integration-spi';
7
7
  import {
8
8
  createStoredWebhookRequest,
9
9
  type StoredWebhookRequest,
10
10
  WEBHOOK_MAX_RAW_BODY_BYTES,
11
- } from '@shipfox/api-integration-core-dto';
11
+ } from '@shipfox/api-integration-spi';
12
12
  import {WEBHOOK_PROVIDER} from '@shipfox/api-integration-webhook-dto';
13
13
  import {ClientError, defineRoute, type RouteGroup} from '@shipfox/node-fastify';
14
14
  import type {FastifyPluginAsync} from 'fastify';