tango-api-schema 2.1.99 → 2.2.1-plano

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.
Files changed (58) hide show
  1. package/index.js +50 -1
  2. package/package.json +3 -2
  3. package/schema/appVersion.js +7 -0
  4. package/schema/assignAudit.model.js +1 -1
  5. package/schema/auditConfig.model.js +41 -0
  6. package/schema/auditLogs.model.js +1 -1
  7. package/schema/auditStoreData.model.js +1 -1
  8. package/schema/auditUsers.model.js +21 -7
  9. package/schema/binaryAudit.model.js +1 -1
  10. package/schema/camera.model.js +67 -0
  11. package/schema/checklistassignconfig.js +22 -3
  12. package/schema/checklistconfig.js +69 -1
  13. package/schema/checklistlog.js +17 -0
  14. package/schema/checklistquestionconfig.js +6 -0
  15. package/schema/client.model.js +116 -1
  16. package/schema/countryCurrency.model.js +18 -0
  17. package/schema/download.js +17 -1
  18. package/schema/emailers.model.js +46 -0
  19. package/schema/empDetectionOutput.model.js +4 -1
  20. package/schema/externalParameter.model.js +48 -9
  21. package/schema/fixtureConfig.model.js +202 -0
  22. package/schema/fixtureLibrary.model.js +165 -0
  23. package/schema/fixtureShelf.model.js +72 -0
  24. package/schema/liveConnection.model.js +7 -1
  25. package/schema/loginAttempt.model.js +26 -0
  26. package/schema/nobBilling.model.js +10 -4
  27. package/schema/notification.model.js +33 -0
  28. package/schema/planoCompliance.model.js +62 -0
  29. package/schema/planoCrestLog.model.js +18 -0
  30. package/schema/planoMapping.model.js +56 -0
  31. package/schema/planoProductCategoryDetails.model.js +33 -0
  32. package/schema/planoProductDetail.model.js +63 -0
  33. package/schema/planoQrConversionRequest.model.js +61 -0
  34. package/schema/planoStaticData.model.js +18 -0
  35. package/schema/planoTaskCompliance.model.js +107 -0
  36. package/schema/planoVmDetail.model.js +63 -0
  37. package/schema/planogram.model.js +66 -0
  38. package/schema/processedchecklist.js +45 -3
  39. package/schema/processedchecklistconfig.js +76 -1
  40. package/schema/revopConfig.model.js +19 -0
  41. package/schema/store.model.js +58 -0
  42. package/schema/storeAudit.model.js +1 -1
  43. package/schema/storeEmpDetection.model.js +1 -1
  44. package/schema/storeFixture.model.js +206 -0
  45. package/schema/storeLayout.model.js +66 -0
  46. package/schema/streaming.model.js +29 -0
  47. package/schema/suspiciousActivity.model.js +54 -0
  48. package/schema/taskAssign.model.js +87 -71
  49. package/schema/taskConfig.model.js +115 -106
  50. package/schema/taskProcessed.model.js +245 -194
  51. package/schema/taskProcessedConfig.model.js +128 -108
  52. package/schema/taskQuestion.model.js +46 -43
  53. package/schema/traxApprover.model.js +35 -31
  54. package/schema/traxAuditData.model.js +3 -0
  55. package/schema/user.model.js +16 -1
  56. package/schema/userAudit.model.js +1 -1
  57. package/schema/userEmpDetection.model.js +4 -2
  58. package/schema/vmType.model.js +24 -0
@@ -0,0 +1,19 @@
1
+ import { Schema, model } from 'mongoose';
2
+
3
+
4
+ const revopconfigschema = new Schema( {
5
+ clientId: {
6
+ type: String,
7
+ },
8
+ issueList:{
9
+ type:Array,
10
+ default:[]
11
+ }
12
+ },
13
+ {
14
+ strict: true,
15
+ versionKey: false,
16
+ timestamps: true,
17
+ } );
18
+
19
+ export default model( 'revopconfig', revopconfigschema );
@@ -76,6 +76,12 @@ const store = new mongoose.Schema(
76
76
  trim: true,
77
77
  default: 0.0,
78
78
  },
79
+ processingOpen: {
80
+ type: String,
81
+ },
82
+ processingClose: {
83
+ type: String,
84
+ },
79
85
  },
80
86
  status: {
81
87
  type: String,
@@ -83,6 +89,14 @@ const store = new mongoose.Schema(
83
89
  default: "active"
84
90
  },
85
91
  edge: {
92
+ isencryption:{
93
+ type: Boolean,
94
+ default:false
95
+ },
96
+ isAudioEnable: {
97
+ type: Boolean,
98
+ default:false
99
+ },
86
100
  apiVersion:{
87
101
  type: String,
88
102
  trim: true,
@@ -195,6 +209,9 @@ const store = new mongoose.Schema(
195
209
  isSocketEnable: {
196
210
  type: Boolean,
197
211
  },
212
+ isRemoteEyeTest:{
213
+ type: Boolean,
214
+ },
198
215
  storeCameraManufacturer: [
199
216
  {
200
217
  ip: { type: String },
@@ -219,6 +236,35 @@ const store = new mongoose.Schema(
219
236
  eyeTestTime:{
220
237
  type: Number,
221
238
  trim: true,
239
+ },
240
+ dataProcess:[
241
+ {
242
+ product:{
243
+ type:String,
244
+ default:'tangotracker'
245
+ }
246
+ },
247
+ {
248
+ processType:{
249
+ type:String,
250
+ enum:['eod','live'],
251
+ default:'eod'
252
+ }
253
+ }
254
+ ],
255
+ footfallDirectory:{
256
+ isEnable:{
257
+ type:Boolean,
258
+ default:true
259
+ },
260
+ showFew:{
261
+ type:Boolean,
262
+ default:false
263
+ },
264
+ onlyAudit:{
265
+ type:Boolean,
266
+ default:false
267
+ }
222
268
  }
223
269
  },
224
270
  spocDetails: [
@@ -279,6 +325,18 @@ const store = new mongoose.Schema(
279
325
  type: Array,
280
326
  default: ['YOLO-V3'],
281
327
  },
328
+ videoQueueList: {
329
+ type: Array,
330
+ default: ["YOLO-VIDEO"],
331
+ },
332
+ tagQueueList:{
333
+ type: Array,
334
+ default: ["YOLO-V3-TRACKER"],
335
+ },
336
+ processType: {
337
+ type: String,
338
+ default: "eod"
339
+ },
282
340
  productFilter: [
283
341
  {
284
342
  productName: {
@@ -18,7 +18,7 @@ const storeAuditSchema = new mongoose.Schema( {
18
18
  },
19
19
  moduleType:{
20
20
  type: String,
21
- enum: [ 'traffic', 'zone' ],
21
+ enum: [ 'traffic', 'zone', 'track' ],
22
22
  },
23
23
  auditType: {
24
24
  type: String,
@@ -18,7 +18,7 @@ const storeEmpDetectionSchema = new mongoose.Schema( {
18
18
  },
19
19
  moduleType:{
20
20
  type: String,
21
- enum: ['mobile-detection','uniform-detection' ],
21
+ enum: ['mobile-detection','uniform-detection',"hygiene","open-time","close-time" ],
22
22
  },
23
23
  auditType: {
24
24
  type: String,
@@ -0,0 +1,206 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ const storeFixtureSchema = new mongoose.Schema(
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
+ fixtureName: {
26
+ type: String,
27
+ required: true,
28
+ },
29
+ description: {
30
+ type: String,
31
+ },
32
+ fixtureCategory: {
33
+ type: String,
34
+ },
35
+ productBrandName: {
36
+ type: Array,
37
+ },
38
+ productCategory:{
39
+ type:Array
40
+ },
41
+ productSubCategory:{
42
+ type:Array
43
+ },
44
+ fixtureType: {
45
+ type: String,
46
+ enum: [ 'wall', 'floor', 'other' ],
47
+ required: true,
48
+ },
49
+ fixtureLength: {
50
+ value: {
51
+ type: Number,
52
+ default: 0,
53
+ },
54
+ unit: {
55
+ type: String,
56
+ default: '',
57
+ },
58
+ },
59
+ fixtureWidth: {
60
+ value: {
61
+ type: Number,
62
+ default: 0,
63
+ },
64
+ unit: {
65
+ type: String,
66
+ default: '',
67
+ },
68
+ },
69
+ fixtureStaticLength: {
70
+ value: {
71
+ type: Number,
72
+ default: 0,
73
+ },
74
+ unit: {
75
+ type: String,
76
+ default: '',
77
+ },
78
+ },
79
+ fixtureStaticWidth: {
80
+ value: {
81
+ type: Number,
82
+ default: 0,
83
+ },
84
+ unit: {
85
+ type: String,
86
+ default: '',
87
+ },
88
+ },
89
+ fixtureCapacity: {
90
+ type: Number,
91
+ },
92
+ associatedElementType: {
93
+ type: String,
94
+ enum: [ 'wall', 'facade' ],
95
+ },
96
+ associatedElementNumber: {
97
+ type: Number,
98
+ },
99
+ relativePosition: {
100
+ x: {
101
+ type: Number,
102
+ },
103
+ y: {
104
+ type: Number,
105
+ },
106
+ unit: {
107
+ type: String,
108
+ },
109
+ },
110
+ productResolutionLevel: {
111
+ type: String,
112
+ enum: [ 'L1', 'L2', 'L3', 'L4' ],
113
+ // L1- fixture level, L2- shelf level, L3- section level, L4- product level
114
+ },
115
+ imageUrl: {
116
+ type: String,
117
+ },
118
+ header: {
119
+ height: {
120
+ value: {
121
+ type: Number,
122
+ default: 0,
123
+ },
124
+ unit: {
125
+ type: String,
126
+ default: '',
127
+ },
128
+ },
129
+ label: {
130
+ type: String,
131
+ },
132
+ isEnabled: {
133
+ type: Boolean,
134
+ default: true,
135
+ },
136
+ },
137
+ footer: {
138
+ height: {
139
+ value: {
140
+ type: Number,
141
+ default: 0,
142
+ },
143
+ unit: {
144
+ type: String,
145
+ default: '',
146
+ },
147
+ },
148
+ label: {
149
+ type: String,
150
+ },
151
+ isEnabled: {
152
+ type: Boolean,
153
+ default: true,
154
+ },
155
+ },
156
+ isBodyEnabled: {
157
+ type: Boolean,
158
+ default: true,
159
+ },
160
+ associatedElementFixtureNumber: {
161
+ type: Number,
162
+ },
163
+ vmConfig: [
164
+ {
165
+ vmId: {
166
+ type: mongoose.Types.ObjectId,
167
+ },
168
+ startYPosition: {
169
+ type: Number,
170
+ },
171
+ endYPosition: {
172
+ type: Number,
173
+ },
174
+ xZone: {
175
+ type: String,
176
+ },
177
+ yZone: {
178
+ type: String,
179
+ },
180
+ position: {
181
+ type: String,
182
+ },
183
+ },
184
+ ],
185
+ fixtureLibraryId: {
186
+ type: mongoose.Types.ObjectId,
187
+ },
188
+ fixtureConfigId: {
189
+ type: mongoose.Types.ObjectId,
190
+ },
191
+ fixtureNumber: {
192
+ type: Number,
193
+ },
194
+
195
+ },
196
+ {
197
+ strict: true,
198
+ versionKey: false,
199
+ timestamps: true,
200
+ },
201
+ );
202
+
203
+ export default mongoose.model( 'storeFixture', storeFixtureSchema );
204
+
205
+
206
+
@@ -0,0 +1,66 @@
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
+ storeOrder: {
54
+ type: String,
55
+ enum: [ 'LTR', 'RTL' ],
56
+ // LTR - Left to Right, RTL - Right to Left
57
+ },
58
+ },
59
+ {
60
+ strict: true,
61
+ versionKey: false,
62
+ timestamps: true,
63
+ },
64
+ );
65
+
66
+ export default mongoose.model( 'storeLayout', storeLayoutSchema );
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @name api_audit
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const streaming = new mongoose.Schema( {
10
+
11
+ streamName:{
12
+ type: String,
13
+ unique: true,
14
+ },
15
+ status:{
16
+ type: String,
17
+ }
18
+
19
+ },
20
+ {
21
+ timestamps: true,
22
+ strict: true,
23
+ versionKey: false,
24
+ },
25
+ );
26
+ streaming.index({ createdAt:1 },{ expires: '15m'})
27
+
28
+
29
+ export default mongoose.model( 'streaming', streaming, 'streaming' );
@@ -0,0 +1,54 @@
1
+ import { Schema, model } from "mongoose";
2
+
3
+ const suspiciousActivity = new Schema(
4
+ {
5
+ cam_id: {
6
+ type: String,
7
+ },
8
+ com_id: {
9
+ type: String,
10
+ },
11
+ inci_id: {
12
+ type: String,
13
+ },
14
+ inci_type: {
15
+ type: String,
16
+ },
17
+ inci_date: {
18
+ type: String,
19
+ },
20
+ inci_time: {
21
+ type: String,
22
+ },
23
+ created_at: {
24
+ type: String,
25
+ },
26
+ comments: {
27
+ type: String,
28
+ },
29
+ thumb_image: {
30
+ type: String,
31
+ },
32
+ video_url: {
33
+ type: String,
34
+ },
35
+ store_id: {
36
+ type: String,
37
+ },
38
+ },
39
+ {
40
+ strict: true,
41
+ versionKey: false,
42
+ timestamps: true,
43
+ }
44
+ );
45
+
46
+ suspiciousActivity.index({ inci_date: 1 });
47
+ suspiciousActivity.index({ store_id: 1 });
48
+ suspiciousActivity.index({ inci_time: 1 });
49
+
50
+ export default model(
51
+ "suspiciousActivity",
52
+ suspiciousActivity,
53
+ "suspiciousActivity"
54
+ );
@@ -1,72 +1,88 @@
1
- import mongoose from 'mongoose';
2
-
3
- const taskassignconfigSchema = new mongoose.Schema({
4
- store_id: {
5
- type: String,
6
- required:true,
7
- default:''
8
- },
9
- storeName: {
10
- type: String,
11
- required:true,
12
- default:''
13
- },
14
- userId: {
15
- type: mongoose.SchemaTypes.ObjectId,
16
- },
17
- userEmail: {
18
- type: String,
19
- },
20
- userName: {
21
- type: String,
22
- },
23
- userPhone:{
24
- type:String,
25
- },
26
- city:{
27
- type:String
28
- },
29
- country:{
30
- type:String
31
- },
32
- checkFlag: {
33
- type: Boolean,
34
- default:true
35
- },
36
- checkListId: {
37
- type: mongoose.SchemaTypes.ObjectId,
38
- required:true
39
- },
40
- checkListName: {
41
- type: String,
42
- required:true
43
- },
44
- client_id: {
45
- type: String,
46
- required:true
47
- },
48
- createdAt: {
49
- type: Date,
50
- default: Date.now
51
- },
52
- updatedAt: {
53
- type: Date,
54
- default: Date.now
55
- },
56
- isdeleted: {
57
- type: Boolean,
58
- default: false
59
- },
60
- reinitiate:{
61
- type:Boolean,
62
- default:false
63
- }
64
- },
65
- {
66
- strict: true,
67
- versionKey: false,
68
- timestamps: true,
69
- },
70
- );
71
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const taskassignconfigSchema = new mongoose.Schema({
4
+ store_id: {
5
+ type: String,
6
+ default:''
7
+ },
8
+ storeName: {
9
+ type: String,
10
+ default:''
11
+ },
12
+ userId: {
13
+ type: mongoose.SchemaTypes.ObjectId,
14
+ },
15
+ userEmail: {
16
+ type: String,
17
+ },
18
+ userName: {
19
+ type: String,
20
+ },
21
+ userPhone:{
22
+ type:String,
23
+ },
24
+ city:{
25
+ type:String
26
+ },
27
+ country:{
28
+ type:String
29
+ },
30
+ checkFlag: {
31
+ type: Boolean,
32
+ default:true
33
+ },
34
+ checkListId: {
35
+ type: mongoose.SchemaTypes.ObjectId,
36
+ required:true
37
+ },
38
+ checkListName: {
39
+ type: String,
40
+ required:true
41
+ },
42
+ client_id: {
43
+ type: String,
44
+ required:true
45
+ },
46
+ createdAt: {
47
+ type: Date,
48
+ default: Date.now
49
+ },
50
+ updatedAt: {
51
+ type: Date,
52
+ default: Date.now
53
+ },
54
+ isdeleted: {
55
+ type: Boolean,
56
+ default: false
57
+ },
58
+ reinitiate:{
59
+ type:Boolean,
60
+ default:false
61
+ },
62
+ sendNotification:{
63
+ type:Boolean,
64
+ default:false,
65
+ },
66
+ clusterName:{
67
+ type:String,
68
+ },
69
+ teamName:{
70
+ type:String
71
+ },
72
+ assignId:{
73
+ type:mongoose.Types.ObjectId
74
+ },
75
+ coverage:{
76
+ type: String,
77
+ default: 'store',
78
+ enum: ["store", "user"]
79
+ },
80
+ },
81
+ {
82
+ strict: true,
83
+ versionKey: false,
84
+ timestamps: true,
85
+ },
86
+ );
87
+
72
88
  export default mongoose.model( 'taskAssignConfig', taskassignconfigSchema);