itrm-tools 1.1.0 → 1.1.2

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.
@@ -1,5 +1,5 @@
1
1
  export interface IAlegraContact {
2
- id?: string;
2
+ id?: string | number;
3
3
  name?: string;
4
4
  identification?: string;
5
5
  email?: string;
@@ -134,7 +134,7 @@ export interface IAlegraEntry {
134
134
  type?: string;
135
135
  line?: string;
136
136
  lineParent?: any;
137
- costCenter: any;
137
+ costCenter?: any;
138
138
  associatedDocument?: {
139
139
  idResource: any;
140
140
  resourceType: any;
@@ -37,13 +37,13 @@ export declare class MongooseModelManager<S> {
37
37
  createMany(data: S[]): Promise<any>;
38
38
  exists(filter: FilterQuery<S>): import("mongoose").Query<{
39
39
  _id: import("mongoose").InferId<S>;
40
- } | null, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "findOne">;
41
- find(filter: FilterQuery<S>): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>> | null, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "findOne">;
42
- findMany(filter: FilterQuery<S>): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>[], import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "find">;
43
- batch(filter: FilterQuery<S>, from: number, size: number): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>[], import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "find">;
40
+ } | null, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "findOne", {}>;
41
+ find(filter: FilterQuery<S>): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>> | null, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "findOne", {}>;
42
+ findMany(filter: FilterQuery<S>): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>[], import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "find", {}>;
43
+ batch(filter: FilterQuery<S>, from: number, size: number): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>[], import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "find", {}>;
44
44
  updateOne(filter: FilterQuery<S>, data: UpdateWithAggregationPipeline | UpdateQuery<S>): any;
45
45
  bulkWrite(writes: any[], options?: MongooseBulkWriteOptions): Promise<any>;
46
46
  delete(filter: FilterQuery<S>): any;
47
47
  deleteMany(filter: FilterQuery<S>): any;
48
- countDocuments(filter: FilterQuery<S>): import("mongoose").Query<number, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "countDocuments">;
48
+ countDocuments(filter: FilterQuery<S>): import("mongoose").Query<number, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "countDocuments", {}>;
49
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itrm-tools",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",