-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32721d3
commit bc9e55d
Showing
8 changed files
with
138 additions
and
125 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
import { type Model, type Types } from 'mongoose'; | ||
|
||
export interface IModule { | ||
name: 'hivemind'; | ||
community: Types.ObjectId; | ||
options?: { | ||
platforms: Array<{ | ||
platform: Types.ObjectId; | ||
metadata?: Record<string, any>; // dynamic object since structure can change | ||
}>; | ||
} | ||
name: 'hivemind'; | ||
community: Types.ObjectId; | ||
options?: { | ||
platforms: Array<{ | ||
platform: Types.ObjectId; | ||
metadata?: Record<string, any>; // dynamic object since structure can change | ||
}>; | ||
}; | ||
} | ||
export interface IModuleUpdateBody { | ||
options?: { | ||
platforms: Array<{ | ||
platform: Types.ObjectId; | ||
metadata?: Record<string, any>; // dynamic object since structure can change | ||
}>; | ||
} | ||
options?: { | ||
platforms: Array<{ | ||
platform: Types.ObjectId; | ||
metadata?: Record<string, any>; // dynamic object since structure can change | ||
}>; | ||
}; | ||
} | ||
|
||
export interface ModuleModel extends Model<IModule> { | ||
paginate: (filter: object, options: object) => any; | ||
paginate: (filter: object, options: object) => any; | ||
} |
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 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 |
---|---|---|
|
@@ -23,5 +23,5 @@ export { | |
platformSchema, | ||
announcementSchema, | ||
announcementEmitter, | ||
moduleSchema | ||
moduleSchema, | ||
}; |