@justair/justair-library 2.1.2 → 3.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justair/justair-library",
3
- "version": "2.1.2",
3
+ "version": "3.0.0",
4
4
  "description": "JustAir Internal Library",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/index.js CHANGED
@@ -6,6 +6,9 @@ import {monitorsSchema, Monitors} from './models/monitors.js';
6
6
  import {organizationsSchema, Organizations} from './models/organizations.js';
7
7
  import {referenceMonitorInfoSchema, ReferenceMonitorInfo} from './models/referenceMonitorInfo.js';
8
8
  import { lightMonitorSchema, LightMonitors } from './models/lightmonitors.js';
9
+ import { monitorSuppliersSchema, MonitorSuppliers } from './models/monitorSuppliers.js';
10
+ import { contextsSchema, Contexts } from './models/contexts.js';
11
+ import { parametersSchema, Parameters } from './models/parameters.js';
9
12
  import {usersSchema, Users} from './models/users.js';
10
13
  import { eventsSchema, Events } from './models/events.js';
11
14
  import dbConfig from './config/db.js';
@@ -29,5 +32,8 @@ export {
29
32
  referenceMonitorInfoSchema, ReferenceMonitorInfo,
30
33
  usersSchema, Users,
31
34
  eventsSchema, Events,
32
- lightMonitorSchema, LightMonitors
35
+ lightMonitorSchema, LightMonitors,
36
+ monitorSuppliersSchema, MonitorSuppliers,
37
+ contextsSchema, Contexts,
38
+ parametersSchema, Parameters
33
39
  };
@@ -0,0 +1,14 @@
1
+ import mongoose from "mongoose";
2
+
3
+ const contextsSchema = mongoose.Schema(
4
+ {
5
+ contextName: String
6
+ },
7
+ {
8
+ timestamps: true
9
+ }
10
+ );
11
+
12
+ const Contexts = mongoose.model("Contexts", contextsSchema);
13
+
14
+ export {contextsSchema, Contexts};
@@ -0,0 +1,12 @@
1
+ import mongoose from "mongoose";
2
+
3
+ const monitorSuppliersSchema = mongoose.Schema({
4
+ supplierName : String
5
+ },
6
+ {
7
+ timestamps: true
8
+ });
9
+
10
+ const MonitorSuppliers = mongoose.model("MonitorSuppliers", monitorSuppliersSchema);
11
+
12
+ export {monitorSuppliersSchema, MonitorSuppliers};
@@ -0,0 +1,12 @@
1
+ import mongoose from "mongoose";
2
+
3
+ const parametersSchema = mongoose.Schema({
4
+ parameterName: String
5
+ },
6
+ {
7
+ timestamps: true
8
+ });
9
+
10
+ const Parameters = mongoose.model("Parameters", parametersSchema);
11
+
12
+ export {parametersSchema, Parameters};