From 87bd33174b71045bb5ac043cee32d2c1cb93907c Mon Sep 17 00:00:00 2001 From: Behzad Rabiei <53224485+Behzad-rabiei@users.noreply.github.com> Date: Mon, 8 Apr 2024 12:41:12 +0400 Subject: [PATCH] update interfaces --- package.json | 2 +- src/interfaces/Community.interface.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 28ea83e..8a3dea8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@togethercrew.dev/db", - "version": "3.0.40", + "version": "3.0.41", "description": "All interactions with DB", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/interfaces/Community.interface.ts b/src/interfaces/Community.interface.ts index 52b37dd..4f57902 100644 --- a/src/interfaces/Community.interface.ts +++ b/src/interfaces/Community.interface.ts @@ -1,11 +1,13 @@ import { type Model, type Types } from 'mongoose'; +import { type IGuildMember } from './GuildMember.interface'; +import { type IRole } from './Role.interface'; export interface ICommunityRoles { roleType: 'view' | 'admin'; source: { platform: 'discord'; identifierType: 'member' | 'role'; - identifierValues: string[]; + identifierValues: string[] | IGuildMember[] | IRole[]; platformId: Types.ObjectId; }; }