tango-api-schema 2.2.160 → 2.2.161

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
@@ -76,7 +76,6 @@ import planogramModel from "./schema/planogram.model.js";
76
76
  import emailersModel from "./schema/emailers.model.js";
77
77
  import planoMappingModel from './schema/planoMapping.model.js';
78
78
  import planoProductModel from './schema/planoProductDetail.model.js';
79
- import planoVmModel from './schema/planoVmDetail.model.js';
80
79
  import planoComplianceModel from './schema/planoCompliance.model.js';
81
80
  import storeFixtureModel from './schema/storeFixture.model.js';
82
81
  import fixtureConfigModel from './schema/fixtureConfig.model.js';
@@ -89,9 +88,6 @@ import auditConfigModel from "./schema/auditConfig.model.js";
89
88
  import revopConfigModel from "./schema/revopConfig.model.js";
90
89
  import planoCrestLogModel from './schema/planoCrestLog.model.js';
91
90
  import countryCurrencyModel from './schema/countryCurrency.model.js';
92
- import fixtureLibraryModel from './schema/fixtureLibrary.model.js';
93
- import vmTypeModel from "./schema/vmType.model.js";
94
- import planoProductCategoryModel from './schema/planoProductCategoryDetails.model.js'
95
91
  import streamingModel from './schema/streaming.model.js';
96
92
  import loginAttempt from "./schema/loginAttempt.model.js";
97
93
  import notification from "./schema/notification.model.js";
@@ -188,10 +184,6 @@ export default {
188
184
  revopConfigModel,
189
185
  planoCrestLogModel,
190
186
  countryCurrencyModel,
191
- fixtureLibraryModel,
192
- planoVmModel,
193
- vmTypeModel,
194
- planoProductCategoryModel,
195
187
  streamingModel,
196
188
  loginAttempt,
197
189
  notification
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.2.160",
3
+ "version": "2.2.161",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -20,6 +20,7 @@
20
20
  "homepage": "https://bitbucket.org/tangoeye-retail/tango-api-schema#readme",
21
21
  "dependencies": {
22
22
  "express": "^4.21.1",
23
- "mongoose": "^7.5.3"
23
+ "mongoose": "^7.5.3",
24
+ "tango-api-schema": "^2.2.130"
24
25
  }
25
26
  }
@@ -131,7 +131,7 @@ const checklistconfigSchema = new mongoose.Schema({
131
131
  checkListType:{
132
132
  type:String,
133
133
  default:"custom",
134
- enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in']
134
+ enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in','unauthorisedentry']
135
135
  },
136
136
  createdAt: {
137
137
  type: Date,
@@ -224,7 +224,39 @@ const externalParameter = new mongoose.Schema(
224
224
  dynamicFrameRate:{
225
225
  type:Boolean,
226
226
  default:true
227
- }
227
+ },
228
+ CheckForEmployee: {
229
+ type: Boolean,
230
+ default: false
231
+ },
232
+ CheckUniqueCustomers: {
233
+ type: Boolean,
234
+ default: false
235
+ },
236
+ AuditCustomers: {
237
+ type: Boolean,
238
+ default: false
239
+ },
240
+ EnableTesting: {
241
+ type: Boolean,
242
+ default: true
243
+ },
244
+ TimestampLimit: {
245
+ type: String,
246
+ default: "2"
247
+ },
248
+ DecisionThreshold: {
249
+ type: Boolean,
250
+ default: false
251
+ },
252
+ StoreProcessingStatus: {
253
+ type: String,
254
+ default: "EOD"
255
+ },
256
+ LiveTimeGap: {
257
+ type: String,
258
+ default: "30"
259
+ },
228
260
  }
229
261
 
230
262
 
@@ -13,186 +13,53 @@ const fixtureConfigSchema = new mongoose.Schema(
13
13
  type: String,
14
14
  enum: [ 'wall', 'floor' ],
15
15
  },
16
- fixtureName: {
17
- type: String,
18
- required: true,
19
- },
20
- description: {
21
- type: String,
22
- },
23
- fixtureLength: {
24
- value: {
25
- type: Number,
26
- default: 0,
27
- },
28
- unit: {
29
- type: String,
30
- default: '',
31
- },
32
- },
33
- fixtureWidth: {
16
+ fixtureHeight: {
34
17
  value: {
35
18
  type: Number,
36
- default: 0,
37
19
  },
38
20
  unit: {
39
21
  type: String,
40
- default: '',
41
22
  },
42
23
  },
43
- fixtureStaticLength: {
24
+ fixtureLength: {
44
25
  value: {
45
26
  type: Number,
46
- default: 0,
47
27
  },
48
28
  unit: {
49
29
  type: String,
50
- default: '',
51
30
  },
52
31
  },
53
- fixtureStaticWidth: {
32
+ fixtureWidth: {
54
33
  value: {
55
34
  type: Number,
56
- default: 0,
57
35
  },
58
36
  unit: {
59
37
  type: String,
60
- default: '',
61
- },
62
- },
63
- shelfConfig: [ {
64
- shelfNumber: {
65
- type: Number,
66
- required: true,
67
- },
68
- shelfType: {
69
- type: String,
70
- enum: ['shelf', 'tray'],
71
- },
72
- productPerShelf: {
73
- type: Number,
74
- default: 0,
75
- },
76
- trayRows: {
77
- type: Number,
78
- default: 0,
79
- },
80
- label: {
81
- type: String,
82
- default: '',
83
- },
84
- productBrandName: {
85
- type: Array,
86
- },
87
- productSubBrandName: {
88
- type: Array,
89
- },
90
- productCategory:{
91
- type:Array
92
- },
93
- productSubCategory:{
94
- type:Array
95
- },
96
- zone: {
97
- type: String,
98
- },
99
- } ],
100
- vmConfig: [
101
- {
102
- vmId: {
103
- type: mongoose.Types.ObjectId,
104
- },
105
- startYPosition: {
106
- type: Number,
107
- },
108
- endYPosition: {
109
- type: Number,
110
- },
111
- xZone: {
112
- type: String,
113
- },
114
- yZone: {
115
- type: String,
116
- },
117
- position: {
118
- type: String,
119
- },
120
- },
121
- ],
122
- header: {
123
- height: {
124
- value: {
125
- type: Number,
126
- default: 0,
127
- },
128
- unit: {
129
- type: String,
130
- default: '',
131
- },
132
- },
133
- label: {
134
- type: String,
135
- },
136
- isEnabled: {
137
- type: Boolean,
138
- default: true,
139
- },
140
- },
141
- footer: {
142
- height: {
143
- value: {
144
- type: Number,
145
- default: 0,
146
- },
147
- unit: {
148
- type: String,
149
- default: '',
150
- },
151
- },
152
- label: {
153
- type: String,
154
38
  },
155
- isEnabled: {
156
- type: Boolean,
157
- default: true,
158
- },
159
- },
160
- isBodyEnabled: {
161
- type: Boolean,
162
- default: true,
163
39
  },
164
- productResolutionLevel: {
165
- type: String,
166
- enum: [ 'L1', 'L2', 'L3', 'L4' ],
40
+ shelfCount: {
41
+ type: Number,
167
42
  },
168
- fixtureLibraryId:{
169
- type: mongoose.Types.ObjectId,
170
- required: true,
43
+ productPerShelf: {
44
+ type: Number,
171
45
  },
172
46
  fixtureCapacity: {
173
47
  type: Number,
174
- default: 0,
175
48
  },
176
- productBrandName: {
49
+ sections:{
177
50
  type: Array,
178
51
  },
179
- productCategory:{
180
- type:Array
181
- },
182
- productSubCategory:{
183
- type:Array
184
- },
185
- status: {
52
+ fixtureCode:{
186
53
  type: String,
187
- enum: [ 'draft', 'complete' ],
188
- default: 'draft',
189
54
  },
190
- crestMapKey: {
191
- type: String,
55
+ fixtureConfigType: {
56
+ type: String
192
57
  },
193
- templateIndex: {
194
- type: Number,
195
- default: 1,
58
+ shelfConfig:{
59
+ type: Array,
60
+ },
61
+ vmConfig:{
62
+ type: Array,
196
63
  },
197
64
  },
198
65
  {
@@ -1,72 +1,63 @@
1
1
  import mongoose from 'mongoose';
2
2
 
3
3
  const fixtureShelfSchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type: String,
7
- required: true,
4
+ {
5
+ clientId: {
6
+ type: String,
7
+ required: true,
8
+ },
9
+ storeName: {
10
+ type: String,
11
+ required: true,
12
+ },
13
+ storeId: {
14
+ type: String,
15
+ required: true,
16
+ },
17
+ planoId: {
18
+ type: mongoose.Types.ObjectId,
19
+ required: true,
20
+ },
21
+ floorId: {
22
+ type: mongoose.Types.ObjectId,
23
+ required: true,
24
+ },
25
+ fixtureId: {
26
+ type: mongoose.Types.ObjectId,
27
+ required: true,
28
+ },
29
+ shelfNumber: {
30
+ type: Number,
31
+ required: true,
32
+ },
33
+ shelfOrder: {
34
+ type: String,
35
+ enum: [ 'LTR', 'RTL' ],
36
+ // LTR - Left to Right, RTL - Right to Left
37
+ required: true,
38
+ },
39
+ shelfCapacity: {
40
+ type: Number,
41
+ required: true,
42
+ },
43
+ sectionName:{
44
+ type: String
45
+ },
46
+ sectionZone:{
47
+ type: String
48
+ },
49
+ rfId:{
50
+ type:String
51
+ },
52
+ shelfSplitup: {
53
+ type: Number,
54
+ }
55
+ },
56
+ {
57
+ strict: true,
58
+ versionKey: false,
59
+ timestamps: true,
8
60
  },
9
- storeName: {
10
- type: String,
11
- required: true,
12
- },
13
- storeId: {
14
- type: String,
15
- required: true,
16
- },
17
- planoId: {
18
- type: mongoose.Types.ObjectId,
19
- required: true,
20
- },
21
- floorId: {
22
- type: mongoose.Types.ObjectId,
23
- required: true,
24
- },
25
- fixtureId: {
26
- type: mongoose.Types.ObjectId,
27
- required: true,
28
- },
29
- shelfNumber: {
30
- type: Number,
31
- required: true,
32
- },
33
- productBrandName: {
34
- type: Array,
35
- },
36
- productCategory: {
37
- type: Array
38
- },
39
- productSubCategory: {
40
- type: Array
41
- },
42
- zone: {
43
- type: String
44
- },
45
- rfId: {
46
- type: String
47
- },
48
- shelfType: {
49
- type: String,
50
- enum: ['shelf', 'tray'],
51
- },
52
- productPerShelf: {
53
- type: Number,
54
- default: 0,
55
- },
56
- trayRows: {
57
- type: Number,
58
- default: 0,
59
- },
60
- label: {
61
- type: String,
62
- default: '',
63
- },
64
- },
65
- {
66
- strict: true,
67
- versionKey: false,
68
- timestamps: true,
69
- },
70
61
  );
71
62
 
72
- export default mongoose.model('fixtureShelf', fixtureShelfSchema);
63
+ export default mongoose.model( 'fixtureShelf', fixtureShelfSchema );
@@ -10,6 +10,10 @@ const planoProductDetailSchema = new mongoose.Schema(
10
10
  type: String,
11
11
  required: true,
12
12
  },
13
+ type: {
14
+ type: String,
15
+ enum: [ 'product', 'vm' ],
16
+ },
13
17
  productName: {
14
18
  type: String,
15
19
  },
@@ -51,7 +55,20 @@ const planoProductDetailSchema = new mongoose.Schema(
51
55
  },
52
56
  productImageUrl: {
53
57
  type: String,
54
- }
58
+ },
59
+ startYPosition: {
60
+ type: String,
61
+ },
62
+ endYPosition: {
63
+ type: String,
64
+ },
65
+ xZone:{
66
+ type: String
67
+ },
68
+ fixtureConfigId: {
69
+ type: mongoose.Types.ObjectId,
70
+ },
71
+
55
72
  },
56
73
  {
57
74
  strict: false,
@@ -9,7 +9,7 @@ const planoStaticData = new mongoose.Schema({
9
9
  }
10
10
  },
11
11
  {
12
- strict: false,
12
+ strict: true,
13
13
  versionKey: false,
14
14
  timestamps: true,
15
15
  },