@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @websolutespa/bom-core
2
2
 
3
+ ## 1.8.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: IQuerable
8
+
3
9
  ## 1.8.12
4
10
 
5
11
  ### Patch Changes
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'>): Promise<B>;
623
- updateOne<B extends T = T>(id: IEquatable, payload: Partial<B>, params?: Omit<QueryParams, 'where'>): Promise<B>;
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'>): Promise<B | undefined>;
626
- deleteMany<B extends T = T>(params?: QueryParams): Promise<B[]>;
627
- update<B extends T = T>(payload: Partial<B>): Promise<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?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/bom-core",
3
- "version": "1.8.12",
3
+ "version": "1.8.13",
4
4
  "description": "Core module of the BOM Repository",
5
5
  "keywords": [
6
6
  "bom",