@dynamatix/gb-schemas 0.11.2 → 0.11.3
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,7 +1,7 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
2
|
|
|
3
3
|
const ProductCatalogueSchema = new mongoose.Schema({
|
|
4
|
-
|
|
4
|
+
Id: { type: String, required: true },
|
|
5
5
|
name: { type: String, required: true },
|
|
6
6
|
description: { type: String },
|
|
7
7
|
applyFrom: { type: Date, required: true },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
2
|
|
|
3
3
|
const RuleSchema = new mongoose.Schema({
|
|
4
|
-
|
|
4
|
+
Id: { type: String, required: true },
|
|
5
5
|
rule: { type: String, required: true }, // Storing as a string (JSON stringified)
|
|
6
6
|
name: { type: String, required: true },
|
|
7
7
|
description: { type: String },
|
|
@@ -15,7 +15,7 @@ const RuleSchema = new mongoose.Schema({
|
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
const ProductDefinitionsSchema = new mongoose.Schema({
|
|
18
|
-
|
|
18
|
+
Id: { type: String, required: true },
|
|
19
19
|
name: { type: String, required: true },
|
|
20
20
|
atLeastOnePass: { type: Boolean, required: true },
|
|
21
21
|
elements: { type: [mongoose.Schema.Types.Mixed], default: [] },
|