@friggframework/core 2.0.0--canary.461.aa02ace.0 → 2.0.0--canary.461.e09bb34.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/handlers/routers/auth.js
CHANGED
|
@@ -3,7 +3,7 @@ const { createAppHandler } = require('./../app-handler-helpers');
|
|
|
3
3
|
|
|
4
4
|
const router = createIntegrationRouter();
|
|
5
5
|
|
|
6
|
-
router.route('/redirect/:appId').get((req, res) => {
|
|
6
|
+
router.route('/api/integrations/redirect/:appId').get((req, res) => {
|
|
7
7
|
res.redirect(
|
|
8
8
|
`${process.env.FRONTEND_URI}/redirect/${req.params.appId
|
|
9
9
|
}?${new URLSearchParams(req.query)}`
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
const { Router } = require('express');
|
|
19
19
|
const catchAsyncError = require('express-async-handler');
|
|
20
|
-
const {
|
|
20
|
+
const { ProcessRepositoryPostgres } = require('../../integrations/repositories/process-repository-postgres');
|
|
21
21
|
const {
|
|
22
22
|
TriggerDatabaseMigrationUseCase,
|
|
23
23
|
ValidationError: TriggerValidationError,
|
|
@@ -30,8 +30,10 @@ const {
|
|
|
30
30
|
|
|
31
31
|
const router = Router();
|
|
32
32
|
|
|
33
|
-
// Dependency injection
|
|
34
|
-
|
|
33
|
+
// Dependency injection
|
|
34
|
+
// Note: Migrations are PostgreSQL-only, so we directly use ProcessRepositoryPostgres
|
|
35
|
+
// This avoids loading app definition (which requires integration classes)
|
|
36
|
+
const processRepository = new ProcessRepositoryPostgres();
|
|
35
37
|
const triggerMigrationUseCase = new TriggerDatabaseMigrationUseCase({
|
|
36
38
|
processRepository,
|
|
37
39
|
// Note: QueuerUtil is used directly in the use case (static utility)
|
|
@@ -50,14 +50,16 @@ const {
|
|
|
50
50
|
UpdateProcessState,
|
|
51
51
|
} = require('../../integrations/use-cases/update-process-state');
|
|
52
52
|
const {
|
|
53
|
-
|
|
54
|
-
} = require('../../integrations/repositories/process-repository-
|
|
53
|
+
ProcessRepositoryPostgres,
|
|
54
|
+
} = require('../../integrations/repositories/process-repository-postgres');
|
|
55
55
|
|
|
56
56
|
// Inject prisma-runner as dependency
|
|
57
57
|
const prismaRunner = require('../../database/utils/prisma-runner');
|
|
58
58
|
|
|
59
59
|
// Create process repository and use case for tracking migration progress
|
|
60
|
-
|
|
60
|
+
// Note: Migrations are PostgreSQL-only, so we directly use ProcessRepositoryPostgres
|
|
61
|
+
// This avoids loading app definition (which requires integration classes)
|
|
62
|
+
const processRepository = new ProcessRepositoryPostgres();
|
|
61
63
|
const updateProcessState = new UpdateProcessState({ processRepository });
|
|
62
64
|
|
|
63
65
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/core",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0--canary.461.
|
|
4
|
+
"version": "2.0.0--canary.461.e09bb34.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@aws-sdk/client-apigatewaymanagementapi": "^3.588.0",
|
|
7
7
|
"@aws-sdk/client-kms": "^3.588.0",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@friggframework/eslint-config": "2.0.0--canary.461.
|
|
41
|
-
"@friggframework/prettier-config": "2.0.0--canary.461.
|
|
42
|
-
"@friggframework/test": "2.0.0--canary.461.
|
|
40
|
+
"@friggframework/eslint-config": "2.0.0--canary.461.e09bb34.0",
|
|
41
|
+
"@friggframework/prettier-config": "2.0.0--canary.461.e09bb34.0",
|
|
42
|
+
"@friggframework/test": "2.0.0--canary.461.e09bb34.0",
|
|
43
43
|
"@prisma/client": "^6.17.0",
|
|
44
44
|
"@types/lodash": "4.17.15",
|
|
45
45
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "e09bb34b122c8fc3eb6ab7481b8668e8aa3e3594"
|
|
83
83
|
}
|