-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📁 Tab config page & Disable advanced access management (#2745)
* Disable advanced access management * Small refactoring * Prepare channel tab page * Added tests * Prepare frontend logic for tabs configuration * Add ability to create empty files from connectors * Update access management for canary * Fix linter * Fix import typo * Fix tests * Missing an s * FIx update tab tests * Changing tests * Fix test * Finish Twake Tab token implementation * Update tests * FIx typo * Still fixed the same one * Fix bad merge import
- Loading branch information
1 parent
3be5fe0
commit c384db2
Showing
25 changed files
with
1,171 additions
and
377 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
30 changes: 30 additions & 0 deletions
30
twake/backend/node/src/services/documents/entities/drive-twake-tab.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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Type } from "class-transformer"; | ||
import { Column, Entity } from "../../../core/platform/services/database/services/orm/decorators"; | ||
|
||
export const TYPE = "drive_twake_tab"; | ||
|
||
@Entity(TYPE, { | ||
primaryKey: [["company_id"], "tab_id"], | ||
type: TYPE, | ||
}) | ||
export class DriveTwakeTab { | ||
@Type(() => String) | ||
@Column("company_id", "string") | ||
company_id: string; | ||
|
||
@Type(() => String) | ||
@Column("tab_id", "string") | ||
tab_id: string; | ||
|
||
@Type(() => String) | ||
@Column("channel__id", "string") | ||
channel_id: string; | ||
|
||
@Type(() => String) | ||
@Column("item_id", "string") | ||
item_id: string; | ||
|
||
@Type(() => String) | ||
@Column("level", "string") | ||
level: "read" | "write"; | ||
} |
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
Oops, something went wrong.