connectfy-shared 0.0.97 → 0.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -766,11 +766,11 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
766
766
|
remove(data: BaseRemoveDto, opts?: IBaseRepositoryRemoveOptions): Promise<TInterface>;
|
|
767
767
|
removeOne(query: Record<string, any>, opts?: IBaseRepositoryRemoveOptions): Promise<TInterface>;
|
|
768
768
|
removeMany(data: BaseRemoveAllDto, opts?: IBaseRepositoryRemoveOptions): Promise<TInterface[]>;
|
|
769
|
-
findOne(params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | null>;
|
|
770
|
-
findOneById(_id: string, params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | null>;
|
|
771
|
-
findOneByUserId(userId: string, params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | null>;
|
|
772
|
-
findMany(params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface[]>;
|
|
773
|
-
findAll(params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface[]>;
|
|
769
|
+
findOne(params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | TDocument | null>;
|
|
770
|
+
findOneById(_id: string, params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | TDocument | null>;
|
|
771
|
+
findOneByUserId(userId: string, params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | TDocument | null>;
|
|
772
|
+
findMany(params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface[] | TDocument[]>;
|
|
773
|
+
findAll(params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface[] | TDocument[]>;
|
|
774
774
|
existsByField(query: Record<string, any>): Promise<boolean>;
|
|
775
775
|
count(query: Record<string, any>): Promise<number>;
|
|
776
776
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -766,11 +766,11 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
766
766
|
remove(data: BaseRemoveDto, opts?: IBaseRepositoryRemoveOptions): Promise<TInterface>;
|
|
767
767
|
removeOne(query: Record<string, any>, opts?: IBaseRepositoryRemoveOptions): Promise<TInterface>;
|
|
768
768
|
removeMany(data: BaseRemoveAllDto, opts?: IBaseRepositoryRemoveOptions): Promise<TInterface[]>;
|
|
769
|
-
findOne(params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | null>;
|
|
770
|
-
findOneById(_id: string, params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | null>;
|
|
771
|
-
findOneByUserId(userId: string, params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | null>;
|
|
772
|
-
findMany(params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface[]>;
|
|
773
|
-
findAll(params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface[]>;
|
|
769
|
+
findOne(params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | TDocument | null>;
|
|
770
|
+
findOneById(_id: string, params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | TDocument | null>;
|
|
771
|
+
findOneByUserId(userId: string, params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | TDocument | null>;
|
|
772
|
+
findMany(params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface[] | TDocument[]>;
|
|
773
|
+
findAll(params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface[] | TDocument[]>;
|
|
774
774
|
existsByField(query: Record<string, any>): Promise<boolean>;
|
|
775
775
|
count(query: Record<string, any>): Promise<number>;
|
|
776
776
|
}
|