tango-api-schema 1.0.29 → 1.0.31
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 +1 -1
- package/schema/stores.model.js +278 -14
package/package.json
CHANGED
package/schema/stores.model.js
CHANGED
|
@@ -9,6 +9,230 @@ import mongoose from "mongoose";
|
|
|
9
9
|
// Schema
|
|
10
10
|
const collection = new mongoose.Schema(
|
|
11
11
|
{
|
|
12
|
+
//////////////////////
|
|
13
|
+
admin: {
|
|
14
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
15
|
+
ref: "User",
|
|
16
|
+
},
|
|
17
|
+
client_id: {
|
|
18
|
+
type: String,
|
|
19
|
+
trim: true,
|
|
20
|
+
},
|
|
21
|
+
id: {
|
|
22
|
+
type: String,
|
|
23
|
+
trim: true,
|
|
24
|
+
required: true,
|
|
25
|
+
unique: true,
|
|
26
|
+
},
|
|
27
|
+
reference_code: {
|
|
28
|
+
type: String,
|
|
29
|
+
trim: true,
|
|
30
|
+
},
|
|
31
|
+
name: {
|
|
32
|
+
type: String,
|
|
33
|
+
trim: true,
|
|
34
|
+
required: true,
|
|
35
|
+
},
|
|
36
|
+
location: {
|
|
37
|
+
type: String,
|
|
38
|
+
trim: true,
|
|
39
|
+
},
|
|
40
|
+
country: {
|
|
41
|
+
type: String,
|
|
42
|
+
trim: true,
|
|
43
|
+
},
|
|
44
|
+
state: {
|
|
45
|
+
type: String,
|
|
46
|
+
trim: true,
|
|
47
|
+
},
|
|
48
|
+
city: {
|
|
49
|
+
type: String,
|
|
50
|
+
trim: true,
|
|
51
|
+
},
|
|
52
|
+
pincode: {
|
|
53
|
+
type: String,
|
|
54
|
+
trim: true,
|
|
55
|
+
},
|
|
56
|
+
timezone: {
|
|
57
|
+
type: String,
|
|
58
|
+
required: false,
|
|
59
|
+
default: "Asia/Kolkata",
|
|
60
|
+
},
|
|
61
|
+
country_code: {
|
|
62
|
+
type: String,
|
|
63
|
+
trim: true,
|
|
64
|
+
required: true,
|
|
65
|
+
default: "IN",
|
|
66
|
+
},
|
|
67
|
+
latitude: {
|
|
68
|
+
type: Number,
|
|
69
|
+
trim: true,
|
|
70
|
+
required: false,
|
|
71
|
+
default: 0.0,
|
|
72
|
+
},
|
|
73
|
+
longitude: {
|
|
74
|
+
type: Number,
|
|
75
|
+
trim: true,
|
|
76
|
+
required: false,
|
|
77
|
+
default: 0.0,
|
|
78
|
+
},
|
|
79
|
+
spoc: {
|
|
80
|
+
name: {
|
|
81
|
+
type: String,
|
|
82
|
+
trim: true,
|
|
83
|
+
required: true,
|
|
84
|
+
},
|
|
85
|
+
email: {
|
|
86
|
+
type: String,
|
|
87
|
+
trim: true,
|
|
88
|
+
required: true,
|
|
89
|
+
},
|
|
90
|
+
contact: {
|
|
91
|
+
type: String,
|
|
92
|
+
trim: true,
|
|
93
|
+
required: true,
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
appId: {
|
|
97
|
+
type: String,
|
|
98
|
+
trim: true,
|
|
99
|
+
required: true,
|
|
100
|
+
unique: true,
|
|
101
|
+
},
|
|
102
|
+
appVersion: {
|
|
103
|
+
type: String,
|
|
104
|
+
trim: true,
|
|
105
|
+
},
|
|
106
|
+
architecture: {
|
|
107
|
+
type:String,
|
|
108
|
+
trim: true,
|
|
109
|
+
enum: ['x32','x64'],
|
|
110
|
+
},
|
|
111
|
+
paired: {
|
|
112
|
+
type: Boolean,
|
|
113
|
+
default: false,
|
|
114
|
+
},
|
|
115
|
+
configured: {
|
|
116
|
+
type: Boolean,
|
|
117
|
+
default: false,
|
|
118
|
+
},
|
|
119
|
+
storeType: {
|
|
120
|
+
type: String,
|
|
121
|
+
trim: true,
|
|
122
|
+
},
|
|
123
|
+
hibernet: {
|
|
124
|
+
enabled: {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
},
|
|
127
|
+
startTime: {
|
|
128
|
+
type: String,
|
|
129
|
+
trim: true,
|
|
130
|
+
},
|
|
131
|
+
endTime: {
|
|
132
|
+
type: String,
|
|
133
|
+
trim: true,
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
camera: [
|
|
137
|
+
{
|
|
138
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
139
|
+
ref: "Camera",
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
brandId: {
|
|
143
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
144
|
+
ref: "Brand",
|
|
145
|
+
},
|
|
146
|
+
client_id: {
|
|
147
|
+
type: String,
|
|
148
|
+
},
|
|
149
|
+
triggerProcessId: {
|
|
150
|
+
type: String,
|
|
151
|
+
},
|
|
152
|
+
isRestartRequired: {
|
|
153
|
+
type: Boolean,
|
|
154
|
+
default: false,
|
|
155
|
+
},
|
|
156
|
+
edgeAppToken: {
|
|
157
|
+
type: String,
|
|
158
|
+
},
|
|
159
|
+
active: {
|
|
160
|
+
type: Boolean,
|
|
161
|
+
default: true,
|
|
162
|
+
},
|
|
163
|
+
deployed_date: {
|
|
164
|
+
type: Date,
|
|
165
|
+
default: Date.now,
|
|
166
|
+
},
|
|
167
|
+
deployedBy: {
|
|
168
|
+
type: String,
|
|
169
|
+
},
|
|
170
|
+
deployedStatus: {
|
|
171
|
+
type: Boolean,
|
|
172
|
+
default: false,
|
|
173
|
+
},
|
|
174
|
+
client_reference_id: {
|
|
175
|
+
type: String,
|
|
176
|
+
},
|
|
177
|
+
client_crm_name: {
|
|
178
|
+
type: String,
|
|
179
|
+
},
|
|
180
|
+
client_sap_code: {
|
|
181
|
+
type: String,
|
|
182
|
+
},
|
|
183
|
+
updateAppVersion: {
|
|
184
|
+
type: String,
|
|
185
|
+
trim: true,
|
|
186
|
+
},
|
|
187
|
+
ticketpaused: {
|
|
188
|
+
type: Date,
|
|
189
|
+
default: Date.now,
|
|
190
|
+
},
|
|
191
|
+
lastticket_generated: {
|
|
192
|
+
type: Date,
|
|
193
|
+
},
|
|
194
|
+
serverType: {
|
|
195
|
+
type: Boolean,
|
|
196
|
+
default: false,
|
|
197
|
+
},
|
|
198
|
+
isdeletedstore: {
|
|
199
|
+
type: Boolean,
|
|
200
|
+
default: false,
|
|
201
|
+
},
|
|
202
|
+
camera_count: {
|
|
203
|
+
type: Number,
|
|
204
|
+
default: 0,
|
|
205
|
+
},
|
|
206
|
+
deleteInterval: {
|
|
207
|
+
type: Number,
|
|
208
|
+
default: 0,
|
|
209
|
+
},
|
|
210
|
+
timeElapsed: {
|
|
211
|
+
type: Number,
|
|
212
|
+
trim: true,
|
|
213
|
+
default: 13,
|
|
214
|
+
},
|
|
215
|
+
subscribed_features: {},
|
|
216
|
+
boundarybox_config: {
|
|
217
|
+
time_series: {
|
|
218
|
+
type: Array,
|
|
219
|
+
default: [],
|
|
220
|
+
},
|
|
221
|
+
time_interval: {
|
|
222
|
+
type: Number,
|
|
223
|
+
default: 1,
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
weekday_yolofilter: {
|
|
227
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
228
|
+
ref: "yolo_filters",
|
|
229
|
+
},
|
|
230
|
+
weekend_yolofilter: {
|
|
231
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
232
|
+
ref: "yolo_filters",
|
|
233
|
+
},
|
|
234
|
+
|
|
235
|
+
////////////////
|
|
12
236
|
id: {
|
|
13
237
|
type: String,
|
|
14
238
|
trim: true,
|
|
@@ -146,18 +370,18 @@ const collection = new mongoose.Schema(
|
|
|
146
370
|
timeZone: {
|
|
147
371
|
type: String,
|
|
148
372
|
required: false,
|
|
149
|
-
default: "Asia/Kolkata",
|
|
373
|
+
// default: "Asia/Kolkata",
|
|
150
374
|
},
|
|
151
375
|
firstFileDate: {
|
|
152
376
|
type: Date,
|
|
153
377
|
},
|
|
154
378
|
firstFile: {
|
|
155
379
|
type: Boolean,
|
|
156
|
-
default: false,
|
|
380
|
+
// default: false,
|
|
157
381
|
},
|
|
158
382
|
status: {
|
|
159
383
|
type: Boolean,
|
|
160
|
-
default: true,
|
|
384
|
+
// default: true,
|
|
161
385
|
},
|
|
162
386
|
timeDownload: {
|
|
163
387
|
type: Date,
|
|
@@ -185,19 +409,19 @@ const collection = new mongoose.Schema(
|
|
|
185
409
|
},
|
|
186
410
|
triggerProcessId: {
|
|
187
411
|
type: String,
|
|
188
|
-
default: "",
|
|
412
|
+
// default: "",
|
|
189
413
|
},
|
|
190
414
|
isRestartRequired: {
|
|
191
415
|
type: Boolean,
|
|
192
|
-
default: false,
|
|
416
|
+
// default: false,
|
|
193
417
|
},
|
|
194
418
|
serverType: {
|
|
195
419
|
type: Boolean,
|
|
196
|
-
default: false,
|
|
420
|
+
//default: false,
|
|
197
421
|
},
|
|
198
422
|
deleteInterval: {
|
|
199
423
|
type: Number,
|
|
200
|
-
default: 0,
|
|
424
|
+
// default: 0,
|
|
201
425
|
},
|
|
202
426
|
timeElapsed: {
|
|
203
427
|
type: Number,
|
|
@@ -213,7 +437,7 @@ const collection = new mongoose.Schema(
|
|
|
213
437
|
},
|
|
214
438
|
handShake: {
|
|
215
439
|
type: Boolean,
|
|
216
|
-
default: false,
|
|
440
|
+
// default: false,
|
|
217
441
|
},
|
|
218
442
|
speedTest: {
|
|
219
443
|
type: Object,
|
|
@@ -224,6 +448,10 @@ const collection = new mongoose.Schema(
|
|
|
224
448
|
preRequisiteStartedAt: {
|
|
225
449
|
type: Date,
|
|
226
450
|
},
|
|
451
|
+
preRequisite: {
|
|
452
|
+
type: Boolean,
|
|
453
|
+
// default: false,
|
|
454
|
+
},
|
|
227
455
|
deviceSpec: {
|
|
228
456
|
type: Object,
|
|
229
457
|
},
|
|
@@ -235,7 +463,7 @@ const collection = new mongoose.Schema(
|
|
|
235
463
|
},
|
|
236
464
|
deleteExe: {
|
|
237
465
|
type: Boolean,
|
|
238
|
-
default: false,
|
|
466
|
+
//default: false,
|
|
239
467
|
},
|
|
240
468
|
camDetails: {
|
|
241
469
|
type: Object,
|
|
@@ -250,13 +478,9 @@ const collection = new mongoose.Schema(
|
|
|
250
478
|
ipManufacturerStatus: {
|
|
251
479
|
type: Boolean,
|
|
252
480
|
},
|
|
253
|
-
preRequisite: {
|
|
254
|
-
type: Boolean,
|
|
255
|
-
default: false,
|
|
256
|
-
},
|
|
257
481
|
installEdge: {
|
|
258
482
|
type: Boolean,
|
|
259
|
-
default: false,
|
|
483
|
+
// default: false,
|
|
260
484
|
},
|
|
261
485
|
systemTimeZone: {
|
|
262
486
|
type: String,
|
|
@@ -269,6 +493,46 @@ const collection = new mongoose.Schema(
|
|
|
269
493
|
//next level of initialization
|
|
270
494
|
type: String,
|
|
271
495
|
},
|
|
496
|
+
pipelineTrigger: {
|
|
497
|
+
pipelineType: {
|
|
498
|
+
type: String,
|
|
499
|
+
},
|
|
500
|
+
processLiveFeature: {
|
|
501
|
+
type: Boolean,
|
|
502
|
+
},
|
|
503
|
+
processEodFeature: {
|
|
504
|
+
type: Boolean,
|
|
505
|
+
},
|
|
506
|
+
processReid: {
|
|
507
|
+
type: Boolean,
|
|
508
|
+
},
|
|
509
|
+
processYolo: {
|
|
510
|
+
type: Boolean,
|
|
511
|
+
},
|
|
512
|
+
reidQueue: {
|
|
513
|
+
type: String,
|
|
514
|
+
},
|
|
515
|
+
yoloQueue: {
|
|
516
|
+
type: String,
|
|
517
|
+
},
|
|
518
|
+
version: {
|
|
519
|
+
type: String,
|
|
520
|
+
},
|
|
521
|
+
},
|
|
522
|
+
featurePackage: {
|
|
523
|
+
controlCenter: {
|
|
524
|
+
type: Boolean,
|
|
525
|
+
},
|
|
526
|
+
revops: {
|
|
527
|
+
type: Boolean,
|
|
528
|
+
},
|
|
529
|
+
zone: {
|
|
530
|
+
type: Boolean,
|
|
531
|
+
},
|
|
532
|
+
recap:{
|
|
533
|
+
type: Boolean,
|
|
534
|
+
}
|
|
535
|
+
},
|
|
272
536
|
},
|
|
273
537
|
{
|
|
274
538
|
timestamps: true,
|