tango-api-schema 2.2.21 → 2.2.23

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": "tango-api-schema",
3
- "version": "2.2.21",
3
+ "version": "2.2.23",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -187,8 +187,21 @@ const externalParameter = new mongoose.Schema(
187
187
  isForceCombine:{
188
188
  type: Boolean,
189
189
  default:false
190
+ },
191
+ reautomationStage :{
192
+ type: Boolean,
193
+ default: false
194
+ },
195
+ reautomationStartDateString:{
196
+ type: String,
197
+ default: ""
198
+ },
199
+ reautomationDays:{
200
+ type: Number,
201
+ default: 2
190
202
  }
191
203
 
204
+
192
205
  },
193
206
  {
194
207
  strict: true,
@@ -1,44 +1,53 @@
1
1
  import mongoose from 'mongoose';
2
2
 
3
3
  const planogramSchema = new mongoose.Schema({
4
- storeName:{
5
- type:String,
6
- required:true
7
- },
8
- storeId:{
9
- type:String,
10
- required:true
11
- },
12
- layoutName:{
13
- type:String,
14
- required:true
15
- },
16
- clientId:{
17
- type:String,
18
- required:true
19
- },
20
- attachments:{
21
- type:Array,
22
- default:[]
23
- },
24
- createdBy:{
25
- type:mongoose.Types.ObjectId,
26
- required:true
27
- },
28
- createdByName:{
29
- type:String,
30
- required:true
31
- },
32
- createdByEmail:{
33
- type:String,
34
- required:true
35
- },
36
- },
37
- {
38
- strict: true,
39
- versionKey: false,
40
- timestamps: true,
4
+ storeName:{
5
+ type:String,
6
+ required:true
41
7
  },
8
+ storeId:{
9
+ type:String,
10
+ required:true
11
+ },
12
+ layoutName:{
13
+ type:String,
14
+ required:true
15
+ },
16
+ clientId:{
17
+ type:String,
18
+ required:true
19
+ },
20
+ attachments:{
21
+ type:Array,
22
+ default:[]
23
+ },
24
+ createdBy:{
25
+ type:mongoose.Types.ObjectId,
26
+ required:true
27
+ },
28
+ createdByName:{
29
+ type:String,
30
+ required:true
31
+ },
32
+ createdByEmail:{
33
+ type:String,
34
+ required:true
35
+ },
36
+ status:{
37
+ type:String,
38
+ enum:['draft','completed'],
39
+ default:'draft'
40
+ },
41
+ floorNumber:{
42
+ type:Number,
43
+ default:1
44
+ }
45
+ },
46
+ {
47
+ strict: true,
48
+ versionKey: false,
49
+ timestamps: true,
50
+ },
42
51
  );
43
52
 
44
53
  export default mongoose.model( 'planogram', planogramSchema);