tango-api-schema 2.0.33 → 2.0.34

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