@friggframework/core 2.0.0--canary.580.235db2b.0 → 2.0.0--canary.580.17fcce9.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": "@friggframework/core",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0--canary.580.
|
|
4
|
+
"version": "2.0.0--canary.580.17fcce9.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@aws-sdk/client-apigatewaymanagementapi": "^3.588.0",
|
|
7
7
|
"@aws-sdk/client-kms": "^3.588.0",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@friggframework/eslint-config": "2.0.0--canary.580.
|
|
42
|
-
"@friggframework/prettier-config": "2.0.0--canary.580.
|
|
43
|
-
"@friggframework/test": "2.0.0--canary.580.
|
|
41
|
+
"@friggframework/eslint-config": "2.0.0--canary.580.17fcce9.0",
|
|
42
|
+
"@friggframework/prettier-config": "2.0.0--canary.580.17fcce9.0",
|
|
43
|
+
"@friggframework/test": "2.0.0--canary.580.17fcce9.0",
|
|
44
44
|
"@prisma/client": "^6.17.0",
|
|
45
45
|
"@types/lodash": "4.17.15",
|
|
46
46
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"publishConfig": {
|
|
81
81
|
"access": "public"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "17fcce9ec0458c39fe706bf3a564ba721fc6bb02"
|
|
84
84
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
-- AlterTable
|
|
2
|
+
-- Backfill the Entity.data JSONB field declared in schema.prisma but never
|
|
3
|
+
-- migrated. ModuleRepositoryPostgres.createEntity / findEntity use this
|
|
4
|
+
-- column to persist & rehydrate identifiers/details fields that fall
|
|
5
|
+
-- outside the six named columns (id, userId, credentialId, name,
|
|
6
|
+
-- moduleName, externalId). Without the column, any integration whose
|
|
7
|
+
-- getEntityDetails returns an extra field (e.g. `firm_subdomain`) causes
|
|
8
|
+
-- prisma.entity.create to throw P2022 at runtime.
|
|
9
|
+
ALTER TABLE "Entity"
|
|
10
|
+
ADD COLUMN IF NOT EXISTS "data" JSONB NOT NULL DEFAULT '{}';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
-- CreateTable
|
|
2
|
+
-- The Process model is declared in schema.prisma but was never created by
|
|
3
|
+
-- any prior migration. ProcessRepositoryPostgres (read/write) and
|
|
4
|
+
-- FriggProcessManager rely on this table for long-running job tracking —
|
|
5
|
+
-- e.g. fan-out sync progress, batch state machines. Without the table,
|
|
6
|
+
-- any `prisma.process.create` at runtime throws P2021.
|
|
7
|
+
CREATE TABLE "Process" (
|
|
8
|
+
"id" SERIAL NOT NULL,
|
|
9
|
+
"userId" INTEGER NOT NULL,
|
|
10
|
+
"integrationId" INTEGER NOT NULL,
|
|
11
|
+
"name" TEXT NOT NULL,
|
|
12
|
+
"type" TEXT NOT NULL,
|
|
13
|
+
"state" TEXT NOT NULL,
|
|
14
|
+
"context" JSONB NOT NULL DEFAULT '{}',
|
|
15
|
+
"results" JSONB NOT NULL DEFAULT '{}',
|
|
16
|
+
"parentProcessId" INTEGER,
|
|
17
|
+
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
18
|
+
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
19
|
+
|
|
20
|
+
CONSTRAINT "Process_pkey" PRIMARY KEY ("id")
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
-- CreateIndex
|
|
24
|
+
CREATE INDEX "Process_userId_idx" ON "Process"("userId");
|
|
25
|
+
|
|
26
|
+
-- CreateIndex
|
|
27
|
+
CREATE INDEX "Process_integrationId_idx" ON "Process"("integrationId");
|
|
28
|
+
|
|
29
|
+
-- CreateIndex
|
|
30
|
+
CREATE INDEX "Process_type_idx" ON "Process"("type");
|
|
31
|
+
|
|
32
|
+
-- CreateIndex
|
|
33
|
+
CREATE INDEX "Process_state_idx" ON "Process"("state");
|
|
34
|
+
|
|
35
|
+
-- CreateIndex
|
|
36
|
+
CREATE INDEX "Process_name_idx" ON "Process"("name");
|
|
37
|
+
|
|
38
|
+
-- CreateIndex
|
|
39
|
+
CREATE INDEX "Process_parentProcessId_idx" ON "Process"("parentProcessId");
|
|
40
|
+
|
|
41
|
+
-- AddForeignKey
|
|
42
|
+
ALTER TABLE "Process" ADD CONSTRAINT "Process_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
43
|
+
|
|
44
|
+
-- AddForeignKey
|
|
45
|
+
ALTER TABLE "Process" ADD CONSTRAINT "Process_integrationId_fkey" FOREIGN KEY ("integrationId") REFERENCES "Integration"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
46
|
+
|
|
47
|
+
-- AddForeignKey
|
|
48
|
+
ALTER TABLE "Process" ADD CONSTRAINT "Process_parentProcessId_fkey" FOREIGN KEY ("parentProcessId") REFERENCES "Process"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|