Skip to content

Commit

Permalink
Merge pull request #168 from TogetherCrew/add-notion-platform-and-hiv…
Browse files Browse the repository at this point in the history
…emind-support

Add notion platform and hivemind support
  • Loading branch information
cyri113 authored May 10, 2024
2 parents 4f23ad8 + 7c017e3 commit 0e9e11b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@togethercrew.dev/db",
"version": "3.0.54",
"version": "3.0.55",
"description": "All interactions with DB",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/config/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export const tokenTypes = {
TWITTER_REFRESH: 'twitter_refresh',
GOOGLE_ACCESS: 'google_access',
GOOGLE_REFRESH: 'google_refresh',
NOTION_ACCESS: 'notion_access',
};
4 changes: 2 additions & 2 deletions src/interfaces/Module.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface IModule {
options?: {
platforms: Array<{
platform: Types.ObjectId;
name: 'discord' | 'google' | 'github';
name: 'discord' | 'google' | 'github' | 'notion';
metadata?: Record<string, any>; // dynamic object since structure can change
}>;
};
Expand All @@ -15,7 +15,7 @@ export interface IModuleUpdateBody {
options?: {
platforms: Array<{
platform: Types.ObjectId;
name: 'discord' | 'google' | 'github';
name: 'discord' | 'google' | 'github' | 'notion';
metadata?: Record<string, any>; // dynamic object since structure can change
}>;
};
Expand Down
2 changes: 1 addition & 1 deletion src/models/schemas/Module.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const moduleSchema = new Schema<IModule, ModuleModel>(
name: {
type: String,
required: true,
enum: ['discord', 'google', 'github'],
enum: ['discord', 'google', 'github', 'notion'],
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/models/schemas/Platform.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const platformSchema = new Schema<IPlatform, PlatformModel>(
name: {
type: String,
required: true,
enum: ['google', 'discord', 'twitter', 'github'],
enum: ['google', 'discord', 'twitter', 'github', 'notion'],
},
metadata: {
type: Schema.Types.Mixed,
Expand Down

0 comments on commit 0e9e11b

Please sign in to comment.