-
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.
Merge pull request #127 from poozlehq/123/notion
Notion
- Loading branch information
Showing
53 changed files
with
4,772 additions
and
58 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
/** Copyright (c) 2023, Poozle, all rights reserved. **/ | ||
|
||
export const BlockSchema = { | ||
type: 'object', | ||
properties: { | ||
id: { | ||
type: 'string', | ||
default: '', | ||
}, | ||
parent_id: { | ||
type: 'string', | ||
default: '', | ||
}, | ||
block_type: { | ||
type: 'string', | ||
default: '', | ||
}, | ||
content: { | ||
type: 'array', | ||
default: [], | ||
items: [ | ||
{ | ||
annotations: { | ||
type: 'array', | ||
default: [], | ||
items: [ | ||
{ | ||
properties: { | ||
bold: { | ||
type: 'string', | ||
default: '', | ||
}, | ||
italic: { | ||
type: 'string', | ||
default: '', | ||
}, | ||
strikethrough: { | ||
type: 'string', | ||
default: '', | ||
}, | ||
underline: { | ||
type: 'string', | ||
default: '', | ||
}, | ||
code: { | ||
type: 'string', | ||
default: '', | ||
}, | ||
type: { | ||
type: 'string', | ||
default: '', | ||
}, | ||
}, | ||
required: ['block_type'], | ||
}, | ||
], | ||
}, | ||
plain_text: { | ||
type: 'string', | ||
default: '', | ||
}, | ||
href: { | ||
type: 'string', | ||
default: '', | ||
}, | ||
}, | ||
], | ||
}, | ||
children: { | ||
type: 'array', | ||
default: [], | ||
}, | ||
}, | ||
}; | ||
|
||
export interface Content { | ||
annotations: { | ||
bold: string; | ||
italic: string; | ||
strikethrough: string; | ||
underline: string; | ||
code: string; | ||
color: string; | ||
}; | ||
plain_text: string; | ||
href: string; | ||
} | ||
|
||
export interface Block { | ||
id: string; | ||
parent_id: string; | ||
block_type: string; | ||
content: Content[]; | ||
children: Block[]; | ||
} |
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,4 @@ | ||
/** Copyright (c) 2023, Poozle, all rights reserved. **/ | ||
|
||
export * from './page'; | ||
export * from './block'; |
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,46 @@ | ||
/** Copyright (c) 2023, Poozle, all rights reserved. **/ | ||
|
||
export const PageSchema = { | ||
type: 'object', | ||
properties: { | ||
id: { | ||
type: 'string', | ||
default: '', | ||
}, | ||
parent_id: { | ||
type: 'string', | ||
default: '', | ||
}, | ||
created_by: { | ||
type: 'string', | ||
default: '', | ||
}, | ||
title: { | ||
type: 'string', | ||
default: '', | ||
}, | ||
created_at: { | ||
type: 'string', | ||
default: '', | ||
}, | ||
updated_at: { | ||
type: 'string', | ||
default: '', | ||
}, | ||
}, | ||
}; | ||
|
||
export interface Page { | ||
id: string; | ||
parent_id: string; | ||
title: string; | ||
created_by: string; | ||
created_at: string; | ||
updated_at: string; | ||
updated_by: string; | ||
} | ||
|
||
export interface CreatePage { | ||
parent_id: string; | ||
title: string; | ||
} |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
|
||
export * from './ticketing'; | ||
export * from './mail'; | ||
export * from './docs'; |
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
2 changes: 2 additions & 0 deletions
2
engine-server/prisma/migrations/20230709181121_add_docs_integration_type/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,2 @@ | ||
-- AlterEnum | ||
ALTER TYPE "IntegrationType" ADD VALUE 'DOCS'; |
12 changes: 12 additions & 0 deletions
12
engine-server/prisma/migrations/20230709192037_link_identifier/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,12 @@ | ||
/* | ||
Warnings: | ||
- Added the required column `linkIdentifier` to the `Link` table without a default value. This is not possible if the table is not empty. | ||
*/ | ||
-- DropIndex | ||
DROP INDEX "IntegrationAccount_integrationAccountName_workspaceId_key"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Link" ADD COLUMN "integrationDefinitionId" TEXT, | ||
ADD COLUMN "linkIdentifier" TEXT NOT NULL; |
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
40 changes: 19 additions & 21 deletions
40
engine-server/src/@@generated/integrationDefinition/entities/integrationDefinition.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,24 +1,22 @@ | ||
|
||
import {ReleaseStage,IntegrationType} from '@prisma/client' | ||
import {Workspace} from '../../workspace/entities/workspace.entity' | ||
import {IntegrationAccount} from '../../integrationAccount/entities/integrationAccount.entity' | ||
import {IntegrationOAuthApp} from '../../integrationOAuthApp/entities/integrationOAuthApp.entity' | ||
|
||
import { ReleaseStage, IntegrationType } from '@prisma/client'; | ||
import { Workspace } from '../../workspace/entities/workspace.entity'; | ||
import { IntegrationAccount } from '../../integrationAccount/entities/integrationAccount.entity'; | ||
import { IntegrationOAuthApp } from '../../integrationOAuthApp/entities/integrationOAuthApp.entity'; | ||
|
||
export class IntegrationDefinition { | ||
integrationDefinitionId: string ; | ||
name: string ; | ||
key: string ; | ||
icon: string | null; | ||
version: string ; | ||
releaseStage: ReleaseStage ; | ||
sourceUrl: string ; | ||
integrationType: IntegrationType ; | ||
workspace?: Workspace | null; | ||
workspaceId: string | null; | ||
IntegrationAccount?: IntegrationAccount[] ; | ||
IntegrationOAuthApp?: IntegrationOAuthApp[] ; | ||
deleted: Date | null; | ||
createdAt: Date ; | ||
updatedAt: Date ; | ||
integrationDefinitionId: string; | ||
name: string; | ||
key: string; | ||
icon: string | null; | ||
version: string; | ||
releaseStage: ReleaseStage; | ||
sourceUrl: string; | ||
integrationType: IntegrationType; | ||
workspace?: Workspace | null; | ||
workspaceId: string | null; | ||
IntegrationAccount?: IntegrationAccount[]; | ||
IntegrationOAuthApp?: IntegrationOAuthApp[]; | ||
deleted: Date | null; | ||
createdAt: Date; | ||
updatedAt: Date; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** Copyright (c) 2022, Poozle, all rights reserved. **/ | ||
|
||
import { HttpModule } from '@nestjs/axios'; | ||
import { Module } from '@nestjs/common'; | ||
import { PrismaModule, PrismaService } from 'nestjs-prisma'; | ||
|
||
import { IntegrationAccountModule } from 'modules/integration_account/integration_account.module'; | ||
|
||
import { BlockController } from './models/block/block.controller'; | ||
import { PageController } from './models/page/page.controller'; | ||
|
||
@Module({ | ||
imports: [PrismaModule, HttpModule, IntegrationAccountModule], | ||
controllers: [PageController, BlockController], | ||
providers: [PrismaService], | ||
exports: [], | ||
}) | ||
export class DocsModule {} |
Oops, something went wrong.