tango-api-schema 1.0.30 → 1.0.32
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 +236 -0
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,
|
|
@@ -272,28 +496,40 @@ const collection = new mongoose.Schema(
|
|
|
272
496
|
pipelineTrigger: {
|
|
273
497
|
pipelineType: {
|
|
274
498
|
type: String,
|
|
499
|
+
default: 'v2_eod',
|
|
275
500
|
},
|
|
276
501
|
processLiveFeature: {
|
|
277
502
|
type: Boolean,
|
|
503
|
+
default: true,
|
|
278
504
|
},
|
|
279
505
|
processEodFeature: {
|
|
280
506
|
type: Boolean,
|
|
507
|
+
default: true,
|
|
281
508
|
},
|
|
282
509
|
processReid: {
|
|
283
510
|
type: Boolean,
|
|
511
|
+
default: true,
|
|
284
512
|
},
|
|
285
513
|
processYolo: {
|
|
286
514
|
type: Boolean,
|
|
515
|
+
default: true,
|
|
287
516
|
},
|
|
288
517
|
reidQueue: {
|
|
289
518
|
type: String,
|
|
519
|
+
default:"live-pipeline-reid-test.fifo"
|
|
290
520
|
},
|
|
291
521
|
yoloQueue: {
|
|
292
522
|
type: String,
|
|
523
|
+
default: 'eod-yolo.fifo',
|
|
293
524
|
},
|
|
294
525
|
version: {
|
|
295
526
|
type: String,
|
|
527
|
+
default: 'v2'
|
|
296
528
|
},
|
|
529
|
+
filterType:{
|
|
530
|
+
type: String,
|
|
531
|
+
default:'dynamic'
|
|
532
|
+
}
|
|
297
533
|
},
|
|
298
534
|
featurePackage: {
|
|
299
535
|
controlCenter: {
|