tango-api-schema 2.0.62 → 2.0.63

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,304 +1,304 @@
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
- serialNumber:{
197
- type: String,
198
- }
199
- },
200
- spocDetails: [
201
- {
202
- _id: {
203
- type: mongoose.Schema.Types.ObjectId,
204
- default: new mongoose.Types.ObjectId()
205
- },
206
- name: {
207
- type: String,
208
- required: true,
209
- },
210
- email: {
211
- type: String,
212
- required: true,
213
- },
214
- contact: {
215
- type: String,
216
- required: true,
217
- },
218
- designation: {
219
- type: String,
220
- },
221
- },
222
- ],
223
- storeConnectionId: {
224
- type: String,
225
- },
226
- auditConfigs: {
227
- count: {
228
- type: Number,
229
- default: 200,
230
- },
231
- iteration: {
232
- type: Number,
233
- default: 1,
234
- },
235
- ratio: {
236
- type: mongoose.Schema.Types.Number,
237
- default: 0.75,
238
- },
239
- },
240
- ticketConfigs: {
241
- nextTicektGenerationTime: {
242
- type: Date,
243
- },
244
- hibernation: {
245
- type: Date,
246
- },
247
- },
248
- pipelineTrigger: {
249
- version: {
250
- type: String,
251
- default: 'v2',
252
- },
253
- pipelineType: {
254
- type: String,
255
- default: 'v2_live',
256
- },
257
- reidQueue: {
258
- type: String,
259
- default: 'reid_v2.fifo',
260
- },
261
- processLiveFeature: {
262
- type: Boolean,
263
- default: false,
264
- },
265
- processEodFeature: {
266
- type: Boolean,
267
- default: true,
268
- },
269
- processReid: {
270
- type: Boolean,
271
- default: true,
272
- },
273
- processYolo: {
274
- type: Boolean,
275
- default: true,
276
- },
277
- yoloQueue: {
278
- type: String,
279
- default: 'yolo_live_v2',
280
- },
281
- filterType: {
282
- type: String,
283
- default: 'dynamic',
284
- },
285
- liveQueue:{
286
- type: String,
287
- default: "yolo-v2-live",
288
- },
289
- },
290
- product: {
291
- type: Array,
292
- },
293
- },
294
- {
295
- strict: true,
296
- versionKey: false,
297
- timestamps: true,
298
- }
299
- );
300
-
301
- store.index({ storeId: 1, clientId: 1, appId: 1 });
302
- store.plugin(mongooseUniqueValidator);
303
-
304
- 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
+ serialNumber:{
197
+ type: String,
198
+ }
199
+ },
200
+ spocDetails: [
201
+ {
202
+ _id: {
203
+ type: mongoose.Schema.Types.ObjectId,
204
+ default: new mongoose.Types.ObjectId()
205
+ },
206
+ name: {
207
+ type: String,
208
+ required: true,
209
+ },
210
+ email: {
211
+ type: String,
212
+ required: true,
213
+ },
214
+ contact: {
215
+ type: String,
216
+ required: true,
217
+ },
218
+ designation: {
219
+ type: String,
220
+ },
221
+ },
222
+ ],
223
+ storeConnectionId: {
224
+ type: String,
225
+ },
226
+ auditConfigs: {
227
+ count: {
228
+ type: Number,
229
+ default: 200,
230
+ },
231
+ iteration: {
232
+ type: Number,
233
+ default: 1,
234
+ },
235
+ ratio: {
236
+ type: mongoose.Schema.Types.Number,
237
+ default: 0.75,
238
+ },
239
+ },
240
+ ticketConfigs: {
241
+ nextTicektGenerationTime: {
242
+ type: Date,
243
+ },
244
+ hibernation: {
245
+ type: Date,
246
+ },
247
+ },
248
+ pipelineTrigger: {
249
+ version: {
250
+ type: String,
251
+ default: 'v2',
252
+ },
253
+ pipelineType: {
254
+ type: String,
255
+ default: 'v2_live',
256
+ },
257
+ reidQueue: {
258
+ type: String,
259
+ default: 'reid_v2.fifo',
260
+ },
261
+ processLiveFeature: {
262
+ type: Boolean,
263
+ default: false,
264
+ },
265
+ processEodFeature: {
266
+ type: Boolean,
267
+ default: true,
268
+ },
269
+ processReid: {
270
+ type: Boolean,
271
+ default: true,
272
+ },
273
+ processYolo: {
274
+ type: Boolean,
275
+ default: true,
276
+ },
277
+ yoloQueue: {
278
+ type: String,
279
+ default: 'yolo_live_v2',
280
+ },
281
+ filterType: {
282
+ type: String,
283
+ default: 'dynamic',
284
+ },
285
+ liveQueue:{
286
+ type: String,
287
+ default: "yolo-v2-live",
288
+ },
289
+ },
290
+ product: {
291
+ type: Array,
292
+ },
293
+ },
294
+ {
295
+ strict: true,
296
+ versionKey: false,
297
+ timestamps: true,
298
+ }
299
+ );
300
+
301
+ store.index({ storeId: 1, clientId: 1, appId: 1 });
302
+ store.plugin(mongooseUniqueValidator);
303
+
304
+ export default mongoose.model("store", store);