tango-api-schema 2.5.68 → 2.5.69

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/index.js CHANGED
@@ -123,6 +123,7 @@ import storeAccuracyIssuesModel from "./schema/storeAccuracyIssues.model.js";
123
123
  import RFIDdataModel from "./schema/RFIDdata.model.js";
124
124
  import customZonetagsModel from "./schema/customZonetags.model.js";
125
125
  import zonegroupsModel from "./schema/zonegroups.model.js";
126
+ import pidAllocationEngine from "./schema/pidAllocationEngine.model.js";
126
127
 
127
128
 
128
129
  export default {
@@ -247,5 +248,6 @@ export default {
247
248
  storeAccuracyIssuesModel,
248
249
  RFIDdataModel,
249
250
  customZonetagsModel,
250
- zonegroupsModel
251
+ zonegroupsModel,
252
+ pidAllocationEngine
251
253
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.5.68",
3
+ "version": "2.5.69",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -0,0 +1,65 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ const pidAllocationEngine = new mongoose.Schema(
4
+ {
5
+ name: {
6
+ type: String,
7
+ required: true,
8
+ },
9
+ clientId: {
10
+ type: String,
11
+ required: true,
12
+ },
13
+ description: {
14
+ type: String,
15
+ default: '',
16
+ },
17
+ isActive: {
18
+ type: Boolean,
19
+ default: false,
20
+ },
21
+ storeIds: {
22
+ type: [String],
23
+ default: [],
24
+ },
25
+ rules: [
26
+ {
27
+ Category: {
28
+ type: String,
29
+ required: true,
30
+ },
31
+ fixtureCount: {
32
+ type: Number,
33
+ required: true,
34
+ },
35
+ fixtures: [
36
+ {
37
+ Header: { type: String, default: '' },
38
+ Top: { type: String, default: '' },
39
+ Mid: { type: String, default: '' },
40
+ Bottom: { type: String, default: '' },
41
+ },
42
+ ],
43
+ },
44
+ ],
45
+ createdBy: {
46
+ type: String,
47
+ },
48
+ createdByName: {
49
+ type: String,
50
+ },
51
+ updatedBy: {
52
+ type: String,
53
+ },
54
+ updatedByName: {
55
+ type: String,
56
+ },
57
+ },
58
+ {
59
+ strict: true,
60
+ versionKey: false,
61
+ timestamps: true,
62
+ },
63
+ );
64
+
65
+ export default mongoose.model('pidAllocationEngine', pidAllocationEngine);