tango-api-schema 2.0.58 → 2.0.60

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.
@@ -1,296 +1,301 @@
1
- import mongoose from "mongoose";
2
- import mongooseUniqueValidator from "mongoose-unique-validator";
3
-
4
- const store = new mongoose.Schema(
5
- {
6
- storeId: {
7
- type: String,
8
- trim: true,
9
- required: true,
10
- unique: true,
11
- },
12
- storeName: {
13
- type: String,
14
- require: true,
15
- },
16
- appId: {
17
- type: String,
18
- trim: true,
19
- required: true,
20
- unique: true,
21
- },
22
- clientId: {
23
- type: String,
24
- trim: true,
25
- required: true,
26
- },
27
- businessType: {
28
- type: String,
29
- },
30
- storeType: {
31
- type: {
32
- type: String,
33
- },
34
- name: {
35
- type: String,
36
- },
37
- },
38
- storeProfile: {
39
- storeCode: {
40
- type: String,
41
- },
42
- address: {
43
- type: String,
44
- },
45
- country: {
46
- type: String,
47
- },
48
- state: {
49
- type: String,
50
- },
51
- city: {
52
- type: String,
53
- },
54
- pincode: {
55
- type: String,
56
- },
57
- timeZone: {
58
- type: String,
59
- },
60
- open: {
61
- type: String,
62
- },
63
- close: {
64
- type: String,
65
- },
66
- },
67
- status: {
68
- type: String,
69
- enum: ["active", "suspend", "deactive"],
70
- },
71
- edge: {
72
- timeZone: {
73
- type: String,
74
- required: false,
75
- },
76
- firstFileDate: {
77
- type: Date,
78
- },
79
- firstFile: {
80
- type: Boolean,
81
- },
82
- status: {
83
- type: Boolean,
84
- },
85
- timeDownload: {
86
- type: Date,
87
- },
88
- hibernet: {
89
- type: Object,
90
- },
91
- appVersion: {
92
- type: String,
93
- trim: true,
94
- },
95
- architecture: {
96
- type: String,
97
- trim: true,
98
- enum: ["x32", "x64"],
99
- },
100
- updateAppVersion: {
101
- type: String,
102
- trim: true,
103
- },
104
- triggerProcessId: {
105
- type: String,
106
- },
107
- isRestartRequired: {
108
- type: Boolean,
109
- },
110
- serverType: {
111
- type: Boolean,
112
- },
113
- deleteInterval: {
114
- type: Number,
115
- },
116
- timeElapsed: {
117
- type: Number,
118
- trim: true,
119
- },
120
- lastLoginAt: {
121
- type: Date,
122
- },
123
- macId: {
124
- type: String,
125
- trim: true,
126
- },
127
- handShake: {
128
- type: Boolean,
129
- },
130
- speedTest: {
131
- type: Object,
132
- },
133
- dataUpload: {
134
- type: Object,
135
- },
136
- preRequisiteStartedAt: {
137
- type: Date,
138
- },
139
- preRequisite: {
140
- type: Boolean,
141
- },
142
- deviceSpec: {
143
- type: Object,
144
- },
145
- systemUtil: {
146
- type: Object,
147
- },
148
- deleteExe: {
149
- type: Boolean,
150
- },
151
- camDetails: {
152
- type: Array,
153
- },
154
- secertKey: {
155
- type: String,
156
- trim: true,
157
- },
158
- ipListStatus: {
159
- type: Boolean,
160
- },
161
- ipManufacturerStatus: {
162
- type: Boolean,
163
- },
164
- frameRTSPURL: {
165
- type: Boolean,
166
- },
167
- installEdge: {
168
- type: Boolean,
169
- },
170
- systemTimeZone: {
171
- type: String,
172
- },
173
- configurationStage: {
174
- type: String,
175
- },
176
- isSocketEnable:{
177
- type: Boolean,
178
- },
179
- storeCameraManufacturer:[
180
- {
181
- ip: { type: String },
182
- manufacturer: { type: String },
183
- },
184
- ],
185
- lastUpdatedAt: {
186
- type: Date,
187
- },
188
- deployed:{
189
- type: Boolean,
190
- }
191
- },
192
- spocDetails: [
193
- {
194
- _id: {
195
- type: mongoose.Schema.Types.ObjectId,
196
- default: new mongoose.Types.ObjectId()
197
- },
198
- name: {
199
- type: String,
200
- required: true,
201
- },
202
- email: {
203
- type: String,
204
- required: true,
205
- },
206
- contact: {
207
- type: String,
208
- required: true,
209
- },
210
- designation: {
211
- type: String,
212
- },
213
- },
214
- ],
215
- storeConnectionId: {
216
- type: String,
217
- },
218
- auditConfigs: {
219
- count: {
220
- type: Number,
221
- default: 200,
222
- },
223
- iteration: {
224
- type: Number,
225
- default: 1,
226
- },
227
- ratio: {
228
- type: mongoose.Schema.Types.Number,
229
- default: 0.75,
230
- },
231
- },
232
- ticketConfigs: {
233
- nextTicektGenerationTime: {
234
- type: Date,
235
- },
236
- hibernation: {
237
- type: Date,
238
- },
239
- },
240
- pipelineTrigger: {
241
- version: {
242
- type: String,
243
- default: 'v2',
244
- },
245
- pipelineType: {
246
- type: String,
247
- default: 'v2_live',
248
- },
249
- reidQueue: {
250
- type: String,
251
- default: 'reid_v2.fifo',
252
- },
253
- processLiveFeature: {
254
- type: Boolean,
255
- default: false,
256
- },
257
- processEodFeature: {
258
- type: Boolean,
259
- default: true,
260
- },
261
- processReid: {
262
- type: Boolean,
263
- default: true,
264
- },
265
- processYolo: {
266
- type: Boolean,
267
- default: true,
268
- },
269
- yoloQueue: {
270
- type: String,
271
- default: 'yolo_live_v2',
272
- },
273
- filterType: {
274
- type: String,
275
- default: 'dynamic',
276
- },
277
- liveQueue:{
278
- type: String,
279
- default: "yolo-v2-live",
280
- },
281
- },
282
- product: {
283
- type: Array,
284
- },
285
- },
286
- {
287
- strict: true,
288
- versionKey: false,
289
- timestamps: true,
290
- }
291
- );
292
-
293
- store.index({ storeId: 1, clientId: 1, appId: 1 });
294
- store.plugin(mongooseUniqueValidator);
295
-
296
- export default mongoose.model("store", store);
1
+ import mongoose from "mongoose";
2
+ import mongooseUniqueValidator from "mongoose-unique-validator";
3
+
4
+ const store = new mongoose.Schema(
5
+ {
6
+ storeId: {
7
+ type: String,
8
+ trim: true,
9
+ required: true,
10
+ unique: true,
11
+ },
12
+ storeName: {
13
+ type: String,
14
+ require: true,
15
+ },
16
+ appId: {
17
+ type: String,
18
+ trim: true,
19
+ required: true,
20
+ unique: true,
21
+ },
22
+ clientId: {
23
+ type: String,
24
+ trim: true,
25
+ required: true,
26
+ },
27
+ businessType: {
28
+ type: String,
29
+ },
30
+ storeType: {
31
+ type: {
32
+ type: String,
33
+ },
34
+ name: {
35
+ type: String,
36
+ },
37
+ },
38
+ progress:{
39
+ type: Number,
40
+ default: 20
41
+ },
42
+ storeProfile: {
43
+ storeCode: {
44
+ type: String,
45
+ },
46
+ address: {
47
+ type: String,
48
+ },
49
+ country: {
50
+ type: String,
51
+ },
52
+ state: {
53
+ type: String,
54
+ },
55
+ city: {
56
+ type: String,
57
+ },
58
+ pincode: {
59
+ type: String,
60
+ },
61
+ timeZone: {
62
+ type: String,
63
+ },
64
+ open: {
65
+ type: String,
66
+ },
67
+ close: {
68
+ type: String,
69
+ },
70
+ },
71
+ status: {
72
+ type: String,
73
+ enum: ["active", "suspend", "deactive"],
74
+ default: 'active'
75
+ },
76
+ edge: {
77
+ timeZone: {
78
+ type: String,
79
+ required: false,
80
+ },
81
+ firstFileDate: {
82
+ type: Date,
83
+ },
84
+ firstFile: {
85
+ type: Boolean,
86
+ },
87
+ status: {
88
+ type: Boolean,
89
+ },
90
+ timeDownload: {
91
+ type: Date,
92
+ },
93
+ hibernet: {
94
+ type: Object,
95
+ },
96
+ appVersion: {
97
+ type: String,
98
+ trim: true,
99
+ },
100
+ architecture: {
101
+ type: String,
102
+ trim: true,
103
+ enum: ["x32", "x64"],
104
+ },
105
+ updateAppVersion: {
106
+ type: String,
107
+ trim: true,
108
+ },
109
+ triggerProcessId: {
110
+ type: String,
111
+ },
112
+ isRestartRequired: {
113
+ type: Boolean,
114
+ },
115
+ serverType: {
116
+ type: Boolean,
117
+ },
118
+ deleteInterval: {
119
+ type: Number,
120
+ },
121
+ timeElapsed: {
122
+ type: Number,
123
+ trim: true,
124
+ },
125
+ lastLoginAt: {
126
+ type: Date,
127
+ },
128
+ macId: {
129
+ type: String,
130
+ trim: true,
131
+ },
132
+ handShake: {
133
+ type: Boolean,
134
+ },
135
+ speedTest: {
136
+ type: Object,
137
+ },
138
+ dataUpload: {
139
+ type: Object,
140
+ },
141
+ preRequisiteStartedAt: {
142
+ type: Date,
143
+ },
144
+ preRequisite: {
145
+ type: Boolean,
146
+ },
147
+ deviceSpec: {
148
+ type: Object,
149
+ },
150
+ systemUtil: {
151
+ type: Object,
152
+ },
153
+ deleteExe: {
154
+ type: Boolean,
155
+ },
156
+ camDetails: {
157
+ type: Array,
158
+ },
159
+ secertKey: {
160
+ type: String,
161
+ trim: true,
162
+ },
163
+ ipListStatus: {
164
+ type: Boolean,
165
+ },
166
+ ipManufacturerStatus: {
167
+ type: Boolean,
168
+ },
169
+ frameRTSPURL: {
170
+ type: Boolean,
171
+ },
172
+ installEdge: {
173
+ type: Boolean,
174
+ },
175
+ systemTimeZone: {
176
+ type: String,
177
+ },
178
+ configurationStage: {
179
+ type: String,
180
+ },
181
+ isSocketEnable:{
182
+ type: Boolean,
183
+ },
184
+ storeCameraManufacturer:[
185
+ {
186
+ ip: { type: String },
187
+ manufacturer: { type: String },
188
+ },
189
+ ],
190
+ lastUpdatedAt: {
191
+ type: Date,
192
+ },
193
+ deployed:{
194
+ type: Boolean,
195
+ }
196
+ },
197
+ spocDetails: [
198
+ {
199
+ _id: {
200
+ type: mongoose.Schema.Types.ObjectId,
201
+ default: new mongoose.Types.ObjectId()
202
+ },
203
+ name: {
204
+ type: String,
205
+ required: true,
206
+ },
207
+ email: {
208
+ type: String,
209
+ required: true,
210
+ },
211
+ contact: {
212
+ type: String,
213
+ required: true,
214
+ },
215
+ designation: {
216
+ type: String,
217
+ },
218
+ },
219
+ ],
220
+ storeConnectionId: {
221
+ type: String,
222
+ },
223
+ auditConfigs: {
224
+ count: {
225
+ type: Number,
226
+ default: 200,
227
+ },
228
+ iteration: {
229
+ type: Number,
230
+ default: 1,
231
+ },
232
+ ratio: {
233
+ type: mongoose.Schema.Types.Number,
234
+ default: 0.75,
235
+ },
236
+ },
237
+ ticketConfigs: {
238
+ nextTicektGenerationTime: {
239
+ type: Date,
240
+ },
241
+ hibernation: {
242
+ type: Date,
243
+ },
244
+ },
245
+ pipelineTrigger: {
246
+ version: {
247
+ type: String,
248
+ default: 'v2',
249
+ },
250
+ pipelineType: {
251
+ type: String,
252
+ default: 'v2_live',
253
+ },
254
+ reidQueue: {
255
+ type: String,
256
+ default: 'reid_v2.fifo',
257
+ },
258
+ processLiveFeature: {
259
+ type: Boolean,
260
+ default: false,
261
+ },
262
+ processEodFeature: {
263
+ type: Boolean,
264
+ default: true,
265
+ },
266
+ processReid: {
267
+ type: Boolean,
268
+ default: true,
269
+ },
270
+ processYolo: {
271
+ type: Boolean,
272
+ default: true,
273
+ },
274
+ yoloQueue: {
275
+ type: String,
276
+ default: 'yolo_live_v2',
277
+ },
278
+ filterType: {
279
+ type: String,
280
+ default: 'dynamic',
281
+ },
282
+ liveQueue:{
283
+ type: String,
284
+ default: "yolo-v2-live",
285
+ },
286
+ },
287
+ product: {
288
+ type: Array,
289
+ },
290
+ },
291
+ {
292
+ strict: true,
293
+ versionKey: false,
294
+ timestamps: true,
295
+ }
296
+ );
297
+
298
+ store.index({ storeId: 1, clientId: 1, appId: 1 });
299
+ store.plugin(mongooseUniqueValidator);
300
+
301
+ export default mongoose.model("store", store);