@shipfox/api-projects 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/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +45 -0
- package/dist/core/projects.d.ts +1 -1
- package/dist/core/projects.d.ts.map +1 -1
- package/dist/core/projects.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/presentation/inter-module.d.ts +1 -1
- package/dist/presentation/inter-module.d.ts.map +1 -1
- package/dist/presentation/inter-module.js +1 -1
- package/dist/presentation/inter-module.js.map +1 -1
- package/dist/presentation/routes/create-project.d.ts +1 -1
- package/dist/presentation/routes/create-project.d.ts.map +1 -1
- package/dist/presentation/routes/create-project.js +1 -1
- package/dist/presentation/routes/create-project.js.map +1 -1
- package/dist/presentation/routes/index.d.ts +1 -1
- package/dist/presentation/routes/index.d.ts.map +1 -1
- package/dist/presentation/routes/index.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +15 -16
- package/src/core/projects.test.ts +2 -2
- package/src/core/projects.ts +1 -1
- package/src/index.ts +2 -2
- package/src/presentation/inter-module.ts +1 -1
- package/src/presentation/routes/create-project.ts +1 -1
- package/src/presentation/routes/index.ts +1 -1
- package/src/presentation/routes/projects.test.ts +1 -1
- package/src/presentation/subscribers/on-source-commit-pushed.test.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipfox/api-projects",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "
|
|
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",
|
|
@@ -25,17 +21,20 @@
|
|
|
25
21
|
"@temporalio/workflow": "1.18.1",
|
|
26
22
|
"drizzle-orm": "^0.45.2",
|
|
27
23
|
"zod": "^4.4.3",
|
|
28
|
-
"@shipfox/api-auth-context": "
|
|
29
|
-
"@shipfox/api-integration-core-dto": "
|
|
30
|
-
"@shipfox/
|
|
31
|
-
"@shipfox/
|
|
32
|
-
"@shipfox/node-drizzle": "0.3.
|
|
33
|
-
"@shipfox/node-fastify": "0.3.
|
|
34
|
-
"@shipfox/node-
|
|
35
|
-
"@shipfox/node-
|
|
36
|
-
"@shipfox/node-
|
|
37
|
-
"@shipfox/node-
|
|
38
|
-
"@shipfox/node-temporal": "0.4.
|
|
24
|
+
"@shipfox/api-auth-context": "9.0.1",
|
|
25
|
+
"@shipfox/api-integration-core-dto": "9.0.1",
|
|
26
|
+
"@shipfox/inter-module": "0.2.1",
|
|
27
|
+
"@shipfox/api-projects-dto": "9.0.1",
|
|
28
|
+
"@shipfox/node-drizzle": "0.3.3",
|
|
29
|
+
"@shipfox/node-fastify": "0.3.1",
|
|
30
|
+
"@shipfox/node-opentelemetry": "0.6.1",
|
|
31
|
+
"@shipfox/node-outbox": "0.2.5",
|
|
32
|
+
"@shipfox/node-postgres": "0.4.3",
|
|
33
|
+
"@shipfox/node-module": "1.0.0",
|
|
34
|
+
"@shipfox/node-temporal": "0.4.1"
|
|
35
|
+
},
|
|
36
|
+
"imports": {
|
|
37
|
+
"#*": "./dist/*"
|
|
39
38
|
},
|
|
40
39
|
"scripts": {
|
|
41
40
|
"build": "shipfox-swc && shipfox-temporal-bundle dist/temporal/workflows/index.js",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {IntegrationsModuleClient} from '@shipfox/api-integration-core-dto';
|
|
2
|
-
import {integrationsInterModuleContract} from '@shipfox/api-integration-core-dto';
|
|
1
|
+
import type {IntegrationsModuleClient} from '@shipfox/api-integration-core-dto/inter-module';
|
|
2
|
+
import {integrationsInterModuleContract} from '@shipfox/api-integration-core-dto/inter-module';
|
|
3
3
|
import {createInterModuleKnownError} from '@shipfox/inter-module';
|
|
4
4
|
import {sql} from 'drizzle-orm';
|
|
5
5
|
import {db} from '#db/index.js';
|
package/src/core/projects.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {dirname, resolve} from 'node:path';
|
|
2
2
|
import {fileURLToPath} from 'node:url';
|
|
3
|
-
import type {IntegrationsModuleClient} from '@shipfox/api-integration-core-dto';
|
|
4
3
|
import {
|
|
5
4
|
INTEGRATION_SOURCE_COMMIT_PUSHED,
|
|
6
5
|
type IntegrationsEventMap,
|
|
7
6
|
} from '@shipfox/api-integration-core-dto';
|
|
7
|
+
import type {IntegrationsModuleClient} from '@shipfox/api-integration-core-dto/inter-module';
|
|
8
8
|
import {projectsEventSchemas} from '@shipfox/api-projects-dto';
|
|
9
9
|
import {type ShipfoxModule, subscriberFactory} from '@shipfox/node-module';
|
|
10
10
|
import {db, migrationsPath, projectsOutbox} from '#db/index.js';
|
|
@@ -48,7 +48,7 @@ export interface CreateProjectsModuleOptions {
|
|
|
48
48
|
export function createProjectsModule({integrations}: CreateProjectsModuleOptions): ShipfoxModule {
|
|
49
49
|
return {
|
|
50
50
|
name: 'projects',
|
|
51
|
-
database: {db, migrationsPath},
|
|
51
|
+
database: {db, migrationsPath, databaseNamespace: 'projects'},
|
|
52
52
|
routes: createProjectRoutes(integrations),
|
|
53
53
|
e2eRoutes: [projectsE2eRoutes],
|
|
54
54
|
metrics: registerProjectsServiceMetrics,
|
|
@@ -2,7 +2,7 @@ import {AUTH_USER, requireUserContext, requireWorkspaceAccess} from '@shipfox/ap
|
|
|
2
2
|
import {
|
|
3
3
|
type IntegrationsModuleClient,
|
|
4
4
|
integrationsInterModuleContract,
|
|
5
|
-
} from '@shipfox/api-integration-core-dto';
|
|
5
|
+
} from '@shipfox/api-integration-core-dto/inter-module';
|
|
6
6
|
import {createProjectBodySchema, projectResponseSchema} from '@shipfox/api-projects-dto';
|
|
7
7
|
import {isInterModuleKnownError} from '@shipfox/inter-module';
|
|
8
8
|
import {ClientError, defineRoute} from '@shipfox/node-fastify';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {IntegrationsModuleClient} from '@shipfox/api-integration-core-dto';
|
|
1
|
+
import type {IntegrationsModuleClient} from '@shipfox/api-integration-core-dto/inter-module';
|
|
2
2
|
import type {RouteGroup} from '@shipfox/node-fastify';
|
|
3
3
|
import {createProjectRoute} from './create-project.js';
|
|
4
4
|
import {getProjectRoute} from './get-project.js';
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
type IntegrationsModuleClient,
|
|
9
9
|
integrationsInterModuleContract,
|
|
10
|
-
} from '@shipfox/api-integration-core-dto';
|
|
10
|
+
} from '@shipfox/api-integration-core-dto/inter-module';
|
|
11
11
|
import {createInterModuleKnownError} from '@shipfox/inter-module';
|
|
12
12
|
import type {AuthMethod} from '@shipfox/node-fastify';
|
|
13
13
|
import {closeApp, createApp} from '@shipfox/node-fastify';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
INTEGRATION_SOURCE_COMMIT_PUSHED,
|
|
3
3
|
type IntegrationSourceCommitPushedEvent,
|
|
4
|
-
type IntegrationsModuleClient,
|
|
5
4
|
type SourcePushPayload,
|
|
6
5
|
} from '@shipfox/api-integration-core-dto';
|
|
6
|
+
import type {IntegrationsModuleClient} from '@shipfox/api-integration-core-dto/inter-module';
|
|
7
7
|
import {PROJECT_SOURCE_COMMIT_OBSERVED} from '@shipfox/api-projects-dto';
|
|
8
8
|
import type {DomainEvent} from '@shipfox/node-outbox';
|
|
9
9
|
import {and, eq, sql} from 'drizzle-orm';
|