-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Feat: poozle link * Feat: added link feature * Publish: New poozle version
- Loading branch information
1 parent
7c9523a
commit 96abb8a
Showing
123 changed files
with
2,386 additions
and
656 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ENGINE_VERSION=0.1.2-alpha | ||
ENGINE_VERSION=0.1.3-alpha | ||
|
||
# POSTGRES | ||
POSTGRES_USER=docker | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
engine-server/prisma/migrations/20230705144930_rename_link/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the column `integrationConnectLinkIntegrationConnectionLinkId` on the `IntegrationAccount` table. All the data in the column will be lost. | ||
- You are about to drop the `IntegrationConnectLink` table. If the table is not empty, all the data it contains will be lost. | ||
- Made the column `workspaceId` on table `IntegrationOAuthApp` required. This step will fail if there are existing NULL values in that column. | ||
*/ | ||
-- DropForeignKey | ||
ALTER TABLE "IntegrationAccount" DROP CONSTRAINT "IntegrationAccount_integrationConnectLinkIntegrationConnec_fkey"; | ||
|
||
-- DropForeignKey | ||
ALTER TABLE "IntegrationConnectLink" DROP CONSTRAINT "IntegrationConnectLink_workspaceId_fkey"; | ||
|
||
-- DropForeignKey | ||
ALTER TABLE "IntegrationOAuthApp" DROP CONSTRAINT "IntegrationOAuthApp_workspaceId_fkey"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "IntegrationAccount" DROP COLUMN "integrationConnectLinkIntegrationConnectionLinkId", | ||
ADD COLUMN "linkId" TEXT; | ||
|
||
-- AlterTable | ||
ALTER TABLE "IntegrationOAuthApp" ALTER COLUMN "workspaceId" SET NOT NULL; | ||
|
||
-- DropTable | ||
DROP TABLE "IntegrationConnectLink"; | ||
|
||
-- CreateTable | ||
CREATE TABLE "Link" ( | ||
"linkId" TEXT NOT NULL, | ||
"linkName" TEXT NOT NULL, | ||
"expiresIn" INTEGER NOT NULL DEFAULT 3600, | ||
"category" "IntegrationType"[], | ||
"workspaceId" TEXT NOT NULL, | ||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"updatedAt" TIMESTAMP(3) NOT NULL, | ||
|
||
CONSTRAINT "Link_pkey" PRIMARY KEY ("linkId") | ||
); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "IntegrationOAuthApp" ADD CONSTRAINT "IntegrationOAuthApp_workspaceId_fkey" FOREIGN KEY ("workspaceId") REFERENCES "Workspace"("workspaceId") ON DELETE RESTRICT ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "IntegrationAccount" ADD CONSTRAINT "IntegrationAccount_linkId_fkey" FOREIGN KEY ("linkId") REFERENCES "Link"("linkId") ON DELETE SET NULL ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Link" ADD CONSTRAINT "Link_workspaceId_fkey" FOREIGN KEY ("workspaceId") REFERENCES "Workspace"("workspaceId") ON DELETE RESTRICT ON UPDATE CASCADE; |
8 changes: 8 additions & 0 deletions
8
engine-server/prisma/migrations/20230705193638_add_unique_constraint_oauth/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
Warnings: | ||
- A unique constraint covering the columns `[integrationDefinitionId,workspaceId]` on the table `IntegrationOAuthApp` will be added. If there are existing duplicate values, this will fail. | ||
*/ | ||
-- CreateIndex | ||
CREATE UNIQUE INDEX "IntegrationOAuthApp_integrationDefinitionId_workspaceId_key" ON "IntegrationOAuthApp"("integrationDefinitionId", "workspaceId"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 18 additions & 23 deletions
41
engine-server/src/@@generated/integrationAccount/entities/integrationAccount.entity.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,22 @@ | ||
import { Prisma } from '@prisma/client'; | ||
import { IntegrationDefinition } from '../../integrationDefinition/entities/integrationDefinition.entity'; | ||
import { Workspace } from '../../workspace/entities/workspace.entity'; | ||
import { IntegrationConnectLink } from '../../integrationConnectLink/entities/integrationConnectLink.entity'; | ||
import { ApiHideProperty } from '@nestjs/swagger'; | ||
|
||
export class IntegrationAccount { | ||
integrationAccountId: string; | ||
integrationDefinition?: IntegrationDefinition; | ||
integrationDefinitionId: string; | ||
integrationConfiguration: Prisma.JsonValue | null; | ||
authType: string; | ||
|
||
@ApiHideProperty() | ||
workspace?: Workspace; | ||
import {Prisma} from '@prisma/client' | ||
import {IntegrationDefinition} from '../../integrationDefinition/entities/integrationDefinition.entity' | ||
import {Workspace} from '../../workspace/entities/workspace.entity' | ||
import {Link} from '../../link/entities/link.entity' | ||
|
||
workspaceId: string; | ||
integrationAccountName: string; | ||
deleted: Date | null; | ||
createdAt: Date; | ||
updatedAt: Date; | ||
|
||
@ApiHideProperty() | ||
fromLinks?: IntegrationConnectLink | null; | ||
|
||
integrationConnectLinkIntegrationConnectionLinkId: string | null; | ||
export class IntegrationAccount { | ||
integrationAccountId: string ; | ||
integrationDefinition?: IntegrationDefinition ; | ||
integrationDefinitionId: string ; | ||
integrationConfiguration: Prisma.JsonValue | null; | ||
authType: string ; | ||
workspace?: Workspace ; | ||
workspaceId: string ; | ||
integrationAccountName: string ; | ||
deleted: Date | null; | ||
createdAt: Date ; | ||
updatedAt: Date ; | ||
fromLinks?: Link | null; | ||
linkId: string | null; | ||
} |
Oops, something went wrong.