tango-api-schema 2.5.67 → 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 +3 -1
- package/package.json +1 -1
- package/schema/checklistconfig.js +10 -0
- package/schema/pidAllocationEngine.model.js +65 -0
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
|
@@ -451,6 +451,16 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
451
451
|
},
|
|
452
452
|
complianceCount:{
|
|
453
453
|
type:Number
|
|
454
|
+
},
|
|
455
|
+
autoEmail:{
|
|
456
|
+
type:{
|
|
457
|
+
type:Array,
|
|
458
|
+
default:[]
|
|
459
|
+
},
|
|
460
|
+
users:{
|
|
461
|
+
type:Array,
|
|
462
|
+
default:[]
|
|
463
|
+
}
|
|
454
464
|
}
|
|
455
465
|
},
|
|
456
466
|
{
|
|
@@ -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);
|