tango-api-schema 2.2.20 → 2.2.22

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
@@ -71,6 +71,8 @@ import taskProcessedModel from './schema/taskProcessed.model.js';
71
71
  import taskProcessedConfigModel from './schema/taskProcessedConfig.model.js';
72
72
  import traxApproverModel from './schema/traxApprover.model.js';
73
73
  import nobBillingModel from "./schema/nobBilling.model.js";
74
+ import storeLayoutModel from "./schema/storeLayout.model.js";
75
+ import planogramModel from "./schema/planogram.model.js";
74
76
 
75
77
  export default {
76
78
  leadModel,
@@ -145,5 +147,7 @@ export default {
145
147
  taskProcessedModel,
146
148
  taskProcessedConfigModel,
147
149
  traxApproverModel,
148
- nobBillingModel
150
+ nobBillingModel,
151
+ storeLayoutModel,
152
+ planogramModel,
149
153
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.2.20",
3
+ "version": "2.2.22",
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,
@@ -0,0 +1,44 @@
1
+ import mongoose from 'mongoose';
2
+
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,
41
+ },
42
+ );
43
+
44
+ export default mongoose.model( 'planogram', planogramSchema);
@@ -0,0 +1,61 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ const storeLayoutSchema = 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
+ floorNumber:{
21
+ type:Number,
22
+ default:1,
23
+ },
24
+ floorName:{
25
+ type:String,
26
+ required:true
27
+ },
28
+ layoutPolygon:{
29
+ type:Array,
30
+ default:[]
31
+ },
32
+ createdBy:{
33
+ type:mongoose.Types.ObjectId,
34
+ required:true
35
+ },
36
+ createdByName:{
37
+ type:String,
38
+ required:true
39
+ },
40
+ createdByEmail:{
41
+ type:String,
42
+ required:true
43
+ },
44
+ status:{
45
+ type:String,
46
+ enum:['draft','completed'],
47
+ default:'draft'
48
+ },
49
+ planoId:{
50
+ type:mongoose.Types.ObjectId,
51
+ required:true
52
+ }
53
+ },
54
+ {
55
+ strict: true,
56
+ versionKey: false,
57
+ timestamps: true,
58
+ },
59
+ );
60
+
61
+ export default mongoose.model( 'storeLayout', storeLayoutSchema);