@websolutespa/bom-core 1.8.12 → 1.8.13
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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +10 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -616,16 +616,16 @@ type IPagedResult<T extends IEntity = IEntity> = {
|
|
|
616
616
|
docs: T[];
|
|
617
617
|
} & Pagination;
|
|
618
618
|
type IQuerable<T extends IEntity = IEntity> = {
|
|
619
|
-
findOne<B extends T = T>(id: IEquatable, params?: QueryParams): Promise<B | undefined>;
|
|
620
|
-
findMany<B extends T = T>(params?: QueryParams): Promise<B[]>;
|
|
621
|
-
findPaged<B extends T = T>(params?: QueryParams): Promise<IPagedResult<B>>;
|
|
622
|
-
create<B extends T = T>(payload: Omit<B, 'id'
|
|
623
|
-
updateOne<B extends T = T>(id: IEquatable, payload: Partial<B>, params?: Omit<QueryParams, 'where'
|
|
624
|
-
updateMany<B extends T = T>(payload: Partial<B>, params?: QueryParams): Promise<B[]>;
|
|
625
|
-
deleteOne<B extends T = T>(id: IEquatable, params?: Omit<QueryParams, 'where'
|
|
626
|
-
deleteMany<B extends T = T>(params?: QueryParams): Promise<B[]>;
|
|
627
|
-
update<B extends T = T>(payload: Partial<B
|
|
628
|
-
delete<B extends T = T>(id: IEquatable): Promise<B | undefined>;
|
|
619
|
+
findOne<B extends T = T>(id: IEquatable, params?: QueryParams, token?: string): Promise<B | undefined>;
|
|
620
|
+
findMany<B extends T = T>(params?: QueryParams, token?: string): Promise<B[]>;
|
|
621
|
+
findPaged<B extends T = T>(params?: QueryParams, token?: string): Promise<IPagedResult<B>>;
|
|
622
|
+
create<B extends T = T>(payload: Omit<B, 'id'>, params?: QueryParams, token?: string): Promise<B>;
|
|
623
|
+
updateOne<B extends T = T>(id: IEquatable, payload: Partial<B>, params?: Omit<QueryParams, 'where'>, token?: string): Promise<B>;
|
|
624
|
+
updateMany<B extends T = T>(payload: Partial<B>, params?: QueryParams, token?: string): Promise<B[]>;
|
|
625
|
+
deleteOne<B extends T = T>(id: IEquatable, params?: Omit<QueryParams, 'where'>, token?: string): Promise<B | undefined>;
|
|
626
|
+
deleteMany<B extends T = T>(params?: QueryParams, token?: string): Promise<B[]>;
|
|
627
|
+
update<B extends T = T>(payload: Partial<B>, params?: QueryParams, token?: string): Promise<B>;
|
|
628
|
+
delete<B extends T = T>(id: IEquatable, token?: string): Promise<B | undefined>;
|
|
629
629
|
};
|
|
630
630
|
type FindParams = {
|
|
631
631
|
where?: {
|