@shipfox/api-integration-sentry 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/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +20 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/connection-external-url.test.ts +7 -0
- package/src/index.ts +2 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipfox/api-integration-sentry",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "14.0.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/ShipfoxHQ/shipfox.git",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"ky": "^2.0.0",
|
|
24
24
|
"zod": "^4.4.3",
|
|
25
25
|
"@shipfox/api-auth-context": "12.2.0",
|
|
26
|
-
"@shipfox/api-integration-spi": "
|
|
27
|
-
"@shipfox/api-integration-sentry-dto": "
|
|
26
|
+
"@shipfox/api-integration-spi": "2.0.0",
|
|
27
|
+
"@shipfox/api-integration-sentry-dto": "14.0.0",
|
|
28
28
|
"@shipfox/config": "1.2.4",
|
|
29
29
|
"@shipfox/node-drizzle": "0.3.5",
|
|
30
30
|
"@shipfox/node-fastify": "0.4.2",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {sentryEventCatalog} from '@shipfox/api-integration-sentry-dto';
|
|
1
2
|
import type {SentryApiClient} from '#api/client.js';
|
|
2
3
|
import type {SentryInstallation} from '#db/installations.js';
|
|
3
4
|
import {createSentryIntegrationProvider} from '#index.js';
|
|
@@ -44,6 +45,12 @@ function createProvider(lookup: (connectionId: string) => Promise<SentryInstalla
|
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
describe('sentry connectionExternalUrl', () => {
|
|
48
|
+
it('exposes the Sentry event catalog', () => {
|
|
49
|
+
const provider = createProvider(() => Promise.resolve(undefined));
|
|
50
|
+
|
|
51
|
+
expect(provider.eventCatalog).toBe(sentryEventCatalog);
|
|
52
|
+
});
|
|
53
|
+
|
|
47
54
|
it('resolves the org URL from the installation row', async () => {
|
|
48
55
|
const connectionId = crypto.randomUUID();
|
|
49
56
|
const provider = createProvider(() => Promise.resolve(installation({orgSlug: 'acme-corp'})));
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {dirname, resolve} from 'node:path';
|
|
2
2
|
import {fileURLToPath} from 'node:url';
|
|
3
|
+
import {sentryEventCatalog} from '@shipfox/api-integration-sentry-dto';
|
|
3
4
|
import type {
|
|
4
5
|
GetIntegrationConnectionByIdFn,
|
|
5
6
|
PublishIntegrationEventReceivedFn,
|
|
@@ -97,6 +98,7 @@ export function createSentryIntegrationProvider(options: CreateSentryIntegration
|
|
|
97
98
|
return {
|
|
98
99
|
provider: 'sentry' as const,
|
|
99
100
|
displayName: 'Sentry',
|
|
101
|
+
eventCatalog: sentryEventCatalog,
|
|
100
102
|
async connectionExternalUrl(connection: {id: string}): Promise<string | undefined> {
|
|
101
103
|
const installation = await getInstallationByConnectionId(connection.id);
|
|
102
104
|
if (!installation?.orgSlug) return undefined;
|