tabletcommand-backend-models 5.29.0 → 5.29.1

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.
Files changed (40) hide show
  1. package/build/helpers.js.map +1 -1
  2. package/definitions/helpers.d.ts +3 -4
  3. package/definitions/helpers.d.ts.map +1 -1
  4. package/definitions/models/action-log.d.ts +1 -1
  5. package/definitions/models/agency.d.ts +2 -2
  6. package/definitions/models/assignment.d.ts +1 -1
  7. package/definitions/models/battalion.d.ts +2 -2
  8. package/definitions/models/beacon-log.d.ts +1 -1
  9. package/definitions/models/cad-incident-flat.d.ts +1 -1
  10. package/definitions/models/cad-incident-stream.d.ts +1 -1
  11. package/definitions/models/cad-incident.d.ts +1 -1
  12. package/definitions/models/chart-incident.d.ts +1 -1
  13. package/definitions/models/chart-managed-incident.d.ts +1 -1
  14. package/definitions/models/chart-user.d.ts +1 -1
  15. package/definitions/models/checklist-item.d.ts +1 -1
  16. package/definitions/models/checklist.d.ts +2 -2
  17. package/definitions/models/csv-import.d.ts +1 -1
  18. package/definitions/models/department.d.ts +1 -1
  19. package/definitions/models/device-mapping.d.ts +1 -1
  20. package/definitions/models/esri.d.ts +2 -2
  21. package/definitions/models/gst-mapping.d.ts +1 -1
  22. package/definitions/models/incident-event.d.ts +1 -1
  23. package/definitions/models/incident-notified.d.ts +1 -1
  24. package/definitions/models/incident-takeover.d.ts +1 -1
  25. package/definitions/models/job-log.d.ts +1 -1
  26. package/definitions/models/location.d.ts +1 -1
  27. package/definitions/models/mail-log.d.ts +1 -1
  28. package/definitions/models/managed-incident.d.ts +1 -1
  29. package/definitions/models/message.d.ts +1 -1
  30. package/definitions/models/monitor.d.ts +1 -1
  31. package/definitions/models/personnel-import.d.ts +2 -2
  32. package/definitions/models/rate-limit.d.ts +1 -1
  33. package/definitions/models/remote-log.d.ts +1 -1
  34. package/definitions/models/smtp-unhandled.d.ts +1 -1
  35. package/definitions/models/template.d.ts +2 -2
  36. package/definitions/models/user-device.d.ts +1 -1
  37. package/definitions/models/user.d.ts +1 -1
  38. package/definitions/models/validation-report.d.ts +2 -2
  39. package/package.json +1 -1
  40. package/src/helpers.ts +4 -6
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":";;;AAqDA,SAAgB,sBAAsB,CAA6B,CAAI;IACrE,OAAO,CAAC,CAAC;AACX,CAAC;AAFD,wDAEC;AAED,SAAgB,YAAY,CACa,UAAyB,EAAE,CAAI,EAAE,CAAgB,EAAE,OAA8D;IAExJ,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACpC,IAAI,OAAO,EAAE;QACX,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;KAC1B;IACD,OAAO,MAAsF,CAAC;AAChG,CAAC;AARD,oCAQC;AAED,SAAgB,WAAW,CAAc,QAAwB,EAAE,IAAY,EAAE,MAAuD;IACtI,IAAI,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QACzB,OAAO,QAAQ,CAAC,KAAK,CAA0B,IAAI,CAA8D,CAAC;KACnH;SAAM;QACL,OAAO,QAAQ,CAAC,KAAK,CAA0B,IAAI,EAAE,MAAM,CAA8D,CAAC;KAC3H;AACH,CAAC;AAND,kCAMC;AASD,SAAgB,uBAAuB;IACrC,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AAC3B,CAAC;AAFD,0DAEC;AAED,SAAgB,WAAW;IACzB,OAAO,IAAI,IAAI,EAAE,CAAC;AACpB,CAAC;AAFD,kCAEC;AAsCD,SAAgB,UAAU,CAAwC,KAAkC,EAAE,CAAoB;IACxH,OAAO,CAAC,CAAC;AACX,CAAC;AAFD,gCAEC"}
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":";;;AAmDA,SAAgB,sBAAsB,CAA6B,CAAI;IACrE,OAAO,CAAC,CAAC;AACX,CAAC;AAFD,wDAEC;AAED,SAAgB,YAAY,CACa,UAAyB,EAAE,CAAI,EAAE,CAAgB,EAAE,OAA8D;IAExJ,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACpC,IAAI,OAAO,EAAE;QACX,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;KAC1B;IACD,OAAO,MAAsF,CAAC;AAChG,CAAC;AARD,oCAQC;AAED,SAAgB,WAAW,CAAc,QAAwB,EAAE,IAAY,EAAE,MAAuD;IACtI,IAAI,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QACzB,OAAO,QAAQ,CAAC,KAAK,CAA0B,IAAI,CAA8D,CAAC;KACnH;SAAM;QACL,OAAO,QAAQ,CAAC,KAAK,CAA0B,IAAI,EAAE,MAAM,CAA8D,CAAC;KAC3H;AACH,CAAC;AAND,kCAMC;AASD,SAAgB,uBAAuB;IACrC,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AAC3B,CAAC;AAFD,0DAEC;AAED,SAAgB,WAAW;IACzB,OAAO,IAAI,IAAI,EAAE,CAAC;AACpB,CAAC;AAFD,kCAEC;AAsCD,SAAgB,UAAU,CAAwC,KAAkC,EAAE,CAAoB;IACxH,OAAO,CAAC,CAAC;AACX,CAAC;AAFD,gCAEC"}
@@ -1,11 +1,10 @@
1
- import { SchemaDefinition, SchemaOptions, Schema, Document, Model } from "mongoose";
2
- import { ObjectId } from "bson";
1
+ import { SchemaDefinition, SchemaOptions, Schema, Document, Model, Types } from "mongoose";
3
2
  export declare type MongooseModule = typeof import("mongoose");
4
3
  export declare type MongooseModel<T extends Document, QueryHelpers = Record<string, unknown>> = Model<T, QueryHelpers>;
5
4
  export declare type MongooseSchema<T = any> = Schema<T>;
6
5
  declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
7
6
  export declare type MongooseDocument = Omit<Document, "_id"> & {
8
- _id: ObjectId;
7
+ _id: Types.ObjectId;
9
8
  };
10
9
  export declare type UnionToIntersection<T> = (T extends unknown ? (p: T) => unknown : never) extends ((p: infer U) => unknown) ? U : never;
11
10
  export declare type UnboxPromise<T extends Promise<any>> = T extends Promise<infer U> ? U : never;
@@ -36,7 +35,7 @@ export declare type MongooseProperty<T extends SchemaDefinition[string]> = T ext
36
35
  _interface: infer P;
37
36
  } ? P : T extends {
38
37
  type: MongooseModule["Types"]["ObjectId"];
39
- } ? ObjectId : T extends MongooseModule["Types"]["ObjectId"] ? ObjectId : T extends Record<string, unknown> ? {
38
+ } ? Types.ObjectId : T extends MongooseModule["Types"]["ObjectId"] ? Types.ObjectId : T extends Record<string, unknown> ? {
40
39
  [P in keyof T]: MongooseProperty<T[P]>;
41
40
  } : never;
42
41
  export declare type MongooseInterface<T extends SchemaDefinition> = Record<string, unknown> & {
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEpF,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAEhC,oBAAY,cAAc,GAAG,cAAc,UAAU,CAAC,CAAC;AACvD,oBAAY,aAAa,CAAC,CAAC,SAAS,QAAQ,EAAE,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,KAAK,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;AAE/G,oBAAY,cAAc,CAAC,CAAC,GAAG,GAAG,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC;AAChD,aAAK,IAAI,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAE/C,oBAAY,gBAAgB,GAAG,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,GAAG;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,EAAE,CAAC,EAAE,CAAC;CACZ;AACD,aAAK,cAAc,CAAC,CAAC,IACnB,CAAC,SAAS,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,GACjC,CAAC,SAAS,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,GAC9D,CAAC,SAAS,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,GAC9B,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,GAChE,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAC3B,KAAK,EACL;QACE,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;KAC/B,CAAC;CACH,CAAC,GACF,KAAK,CAAC;AACR,aAAK,UAAU,CAAC,CAAC,IAAI;KAClB,CAAC,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACxD,CAAC;AACF,wBAAgB,UAAU,CAAC,CAAC,SAAS,OAAO,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,qBAEzH"}
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { MongooseModule, ModelTypeFromTypeSchemaFunction, ItemTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function ActionLogModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  departmentId: string;
6
6
  email: string;
7
7
  userId: string;
@@ -229,7 +229,7 @@ export declare function AgencySchema(mongoose: MongooseModule): import("mongoose
229
229
  _methods: unknown;
230
230
  };
231
231
  export declare function AgencyModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
232
- _id: import("bson").ObjectID;
232
+ _id: import("mongoose").Types.ObjectId;
233
233
  code: string;
234
234
  name: string;
235
235
  domain: string;
@@ -239,7 +239,7 @@ export declare function AgencyModule(mongoose: MongooseModule): Promise<import("
239
239
  modified_unix_date: number;
240
240
  modified: string;
241
241
  active: boolean;
242
- departmentId: import("bson").ObjectID;
242
+ departmentId: import("mongoose").Types.ObjectId;
243
243
  administrators: {
244
244
  type: never;
245
245
  ref: never;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, MongooseModule, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function AssignmentModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  uuid: string;
6
6
  active: boolean;
7
7
  userId: string;
@@ -121,7 +121,7 @@ export declare function BattalionSchema(mongoose: MongooseModule): import("mongo
121
121
  _methods: unknown;
122
122
  };
123
123
  export declare function BattalionModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
124
- _id: import("bson").ObjectID;
124
+ _id: import("mongoose").Types.ObjectId;
125
125
  name: string;
126
126
  active: boolean;
127
127
  modified_date: string;
@@ -131,7 +131,7 @@ export declare function BattalionModule(mongoose: MongooseModule): Promise<impor
131
131
  userId: string;
132
132
  uuid: string;
133
133
  departmentId: string;
134
- agencyId: import("bson").ObjectID;
134
+ agencyId: import("mongoose").Types.ObjectId;
135
135
  position: number;
136
136
  units: import("../helpers").MongooseInterface<{
137
137
  _id: {
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function BeaconLogModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  departmentId: string;
6
6
  userId: string;
7
7
  object: any;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, MongooseModule, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function CADIncidentFlatModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  uuid: string;
6
6
  departmentId: string;
7
7
  AgencyID: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function CADIncidentStreamModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  uuid: string;
6
6
  tag: string;
7
7
  departmentId: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, MongooseModule, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function CADIncidentModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  uuid: string;
6
6
  departmentId: string;
7
7
  AgencyID: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function ChartIncidentModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  date: number;
6
6
  departmentId: string;
7
7
  count: number;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function ChartManagedIncidentModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  date: number;
6
6
  departmentId: string;
7
7
  count: number;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function ChartUserModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  date: number;
6
6
  departmentId: string;
7
7
  count: number;
@@ -59,7 +59,7 @@ export declare function ChecklistItemSchema(mongoose: MongooseModule): import("m
59
59
  _methods: unknown;
60
60
  };
61
61
  export declare function ChecklistItemModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
62
- _id: import("bson").ObjectID;
62
+ _id: import("mongoose").Types.ObjectId;
63
63
  position: number;
64
64
  userId: string;
65
65
  uuid: string;
@@ -116,7 +116,7 @@ export declare function ChecklistSchema(mongoose: MongooseModule): import("mongo
116
116
  _methods: unknown;
117
117
  };
118
118
  export declare function ChecklistModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
119
- _id: import("bson").ObjectID;
119
+ _id: import("mongoose").Types.ObjectId;
120
120
  position: number;
121
121
  userId: string;
122
122
  uuid: string;
@@ -127,7 +127,7 @@ export declare function ChecklistModule(mongoose: MongooseModule): Promise<impor
127
127
  departmentId: string;
128
128
  active: boolean;
129
129
  name: string;
130
- agencyId: import("bson").ObjectID;
130
+ agencyId: import("mongoose").Types.ObjectId;
131
131
  items: import("../helpers").MongooseInterface<{
132
132
  _id: {
133
133
  type: import("mongoose").Types.ObjectIdConstructor;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function CSVImportModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  batchId: string;
6
6
  importCreated: string;
7
7
  importEnded: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { currentDate, MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function DepartmentModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  uuid: string;
6
6
  department: string;
7
7
  fdid: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function DeviceMappingModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  departmentId: string;
6
6
  userId: string;
7
7
  deviceType: string;
@@ -372,9 +372,9 @@ export declare function EsriSchema(mongoose: MongooseModule): import("mongoose")
372
372
  _methods: unknown;
373
373
  };
374
374
  export declare function EsriModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
375
- _id: import("bson").ObjectID;
375
+ _id: import("mongoose").Types.ObjectId;
376
376
  runAt: string;
377
- departmentId: import("bson").ObjectID;
377
+ departmentId: import("mongoose").Types.ObjectId;
378
378
  auth: import("../helpers").MongooseInterface<{
379
379
  username: {
380
380
  type: StringConstructor;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function GSTMappingModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  departmentId: string;
6
6
  gstAgency: string;
7
7
  deviceType: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { currentDate, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, MongooseModule, ReplaceModelReturnType, retrieveCurrentUnixTime } from "../helpers";
3
3
  export declare function IncidentEventModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  departmentId: string;
6
6
  IncidentNumber: string;
7
7
  modified_unix_date: number;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { currentDate, MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function IncidentNotifiedModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  departmentId: string;
6
6
  IncidentNumber: string;
7
7
  incidentTypes: string[];
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function IncidentTakeoverModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  departmentId: string;
6
6
  uuid: string;
7
7
  incident_id: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, MongooseModule, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function JobLogModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  jobName: string;
6
6
  host: string;
7
7
  bidDate: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, MongooseModule, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function LocationModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  departmentId: string;
6
6
  userId: string;
7
7
  uuid: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function MailLogModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  mailId: string;
6
6
  event: string;
7
7
  timestamp: number;
@@ -2,7 +2,7 @@
2
2
  import * as uuid from "uuid";
3
3
  import { ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, MongooseModule, ReplaceModelReturnType } from "../helpers";
4
4
  export declare function ManagedIncidentModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
5
- _id: import("bson").ObjectID;
5
+ _id: import("mongoose").Types.ObjectId;
6
6
  departmentId: string;
7
7
  userId: string;
8
8
  uuid: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function MessageModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  departmentId: string;
6
6
  userId: string;
7
7
  session: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, MongooseModule, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function MonitorModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  departmentId: string;
6
6
  agencyId: string;
7
7
  notificationType: string;
@@ -82,7 +82,7 @@ export declare function PersonnelImportSchema(mongoose: MongooseModule): import(
82
82
  _methods: unknown;
83
83
  };
84
84
  export declare function PersonnelImportModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
85
- _id: import("bson").ObjectID;
85
+ _id: import("mongoose").Types.ObjectId;
86
86
  PersonnelID: string;
87
87
  PersonnelName: string;
88
88
  PersonnelRank: string;
@@ -99,7 +99,7 @@ export declare function PersonnelImportModule(mongoose: MongooseModule): Promise
99
99
  active: boolean;
100
100
  agencyName: string;
101
101
  agencyCode: string;
102
- agencyId: import("bson").ObjectID;
102
+ agencyId: import("mongoose").Types.ObjectId;
103
103
  importNotes: string;
104
104
  }, {}> & {
105
105
  __methods?: unknown;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function RateLimitModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  username: string;
6
6
  modified_unix_date: number;
7
7
  modified: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { MongooseModule, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType, currentDate } from "../helpers";
3
3
  export declare function RemoteLogModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  departmentId: string;
6
6
  userId: string;
7
7
  session: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, MongooseModule, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function SMTPUnhandledModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  email: string;
6
6
  message: string;
7
7
  }, {}> & {
@@ -90,7 +90,7 @@ export declare function TemplateSchema(mongoose: MongooseModule): import("mongoo
90
90
  _methods: unknown;
91
91
  };
92
92
  export declare function TemplateModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
93
- _id: import("bson").ObjectID;
93
+ _id: import("mongoose").Types.ObjectId;
94
94
  position: number;
95
95
  userId: string;
96
96
  uuid: string;
@@ -128,7 +128,7 @@ export declare function TemplateModule(mongoose: MongooseModule): Promise<import
128
128
  default: (<T extends ArrayLike<number>>(options: uuid.V4Options | null | undefined, buffer: T, offset?: number | undefined) => T) & ((options?: uuid.V4Options | undefined) => string);
129
129
  };
130
130
  }>[];
131
- agencyId: import("bson").ObjectID;
131
+ agencyId: import("mongoose").Types.ObjectId;
132
132
  }, {}> & {
133
133
  __methods?: unknown;
134
134
  }>;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="mongoose" />
2
2
  import { currentDate, MongooseModule, retrieveCurrentUnixTime, ItemTypeFromTypeSchemaFunction, ModelTypeFromTypeSchemaFunction, ReplaceModelReturnType } from "../helpers";
3
3
  export declare function UserDeviceModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
4
- _id: import("bson").ObjectID;
4
+ _id: import("mongoose").Types.ObjectId;
5
5
  userId: string;
6
6
  departmentId: string;
7
7
  devices: import("../helpers").MongooseInterface<{
@@ -317,7 +317,7 @@ export declare function UserModule(mongoose: MongooseModule): Promise<import("mo
317
317
  departmentId: string;
318
318
  modified_date: string;
319
319
  when: string;
320
- agencyId: import("bson").ObjectID;
320
+ agencyId: import("mongoose").Types.ObjectId;
321
321
  managedAgencies: {
322
322
  type: never;
323
323
  ref: never;
@@ -216,8 +216,8 @@ export declare function ValidationReportSchema(mongoose: MongooseModule): import
216
216
  _methods: unknown;
217
217
  };
218
218
  export declare function ValidationReportModule(mongoose: MongooseModule): Promise<import("mongoose").Model<import("mongoose").Document & Record<string, unknown> & {
219
- _id: import("bson").ObjectID;
220
- departmentId: import("bson").ObjectID;
219
+ _id: import("mongoose").Types.ObjectId;
220
+ departmentId: import("mongoose").Types.ObjectId;
221
221
  location: import("../helpers").MongooseInterface<{
222
222
  message: {
223
223
  type: StringConstructor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabletcommand-backend-models",
3
- "version": "5.29.0",
3
+ "version": "5.29.1",
4
4
  "description": "Tablet Command Backend Models",
5
5
  "scripts": {
6
6
  "test": "gulp",
package/src/helpers.ts CHANGED
@@ -1,6 +1,4 @@
1
- import { SchemaDefinition, SchemaOptions, Schema, Document, Model } from "mongoose";
2
-
3
- import { ObjectId } from "bson";
1
+ import { SchemaDefinition, SchemaOptions, Schema, Document, Model, Types } from "mongoose";
4
2
 
5
3
  export type MongooseModule = typeof import("mongoose");
6
4
  export type MongooseModel<T extends Document, QueryHelpers = Record<string, unknown>> = Model<T, QueryHelpers>;
@@ -9,7 +7,7 @@ export type MongooseSchema<T = any> = Schema<T>;
9
7
  type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
10
8
 
11
9
  export type MongooseDocument = Omit<Document, "_id"> & {
12
- _id: ObjectId,
10
+ _id: Types.ObjectId,
13
11
  };
14
12
  export type UnionToIntersection<T> = (T extends unknown ? (p: T) => unknown : never) extends ((p: infer U) => unknown) ? U : never;
15
13
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -36,8 +34,8 @@ export type MongooseProperty<T extends SchemaDefinition[string]> =
36
34
  T extends { type: Schema & { _interface: infer P } } ? P :
37
35
  T extends (...a: unknown[]) => infer P ? P :
38
36
  T extends Schema & { _interface: infer P } ? P :
39
- T extends { type: MongooseModule["Types"]["ObjectId"] } ? ObjectId :
40
- T extends MongooseModule["Types"]["ObjectId"] ? ObjectId :
37
+ T extends { type: MongooseModule["Types"]["ObjectId"] } ? Types.ObjectId :
38
+ T extends MongooseModule["Types"]["ObjectId"] ? Types.ObjectId :
41
39
  T extends Record<string, unknown> ? { [P in keyof T]: MongooseProperty<T[P]> } :
42
40
  never;
43
41