tango-api-schema 2.0.31 → 2.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.
@@ -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,297 +1,297 @@
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
-
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
- camCred: {
154
- type: Object,
155
- },
156
- deleteExe: {
157
- type: Boolean,
158
- },
159
- camDetails: {
160
- type: Array,
161
- },
162
- secertKey: {
163
- type: String,
164
- trim: true,
165
- },
166
- ipListStatus: {
167
- type: Boolean,
168
- },
169
- ipManufacturerStatus: {
170
- type: Boolean,
171
- },
172
- frameRTSPURL: {
173
- type: Boolean,
174
- },
175
- installEdge: {
176
- type: Boolean,
177
- },
178
- systemTimeZone: {
179
- type: String,
180
- },
181
- configurationStage: {
182
- type: String,
183
- },
184
- isSocketEnable:{
185
- type: Boolean,
186
- },
187
- storeCameraManufacturer:[
188
- {
189
- ip: { type: String },
190
- manufacturer: { type: String },
191
- },
192
- ],
193
- lastUpdatedAt: {
194
- type: Date,
195
- },
196
- deployed:{
197
- type: Boolean,
198
- }
199
- },
200
- spocDetails: [
201
- {
202
- name: {
203
- type: String,
204
- required: true,
205
- },
206
- email: {
207
- type: String,
208
- required: true,
209
- },
210
- contact: {
211
- type: String,
212
- required: true,
213
- },
214
- designation: {
215
- type: String,
216
- },
217
- },
218
- ],
219
- storeConnectionId: {
220
- type: String,
221
- },
222
- auditConfigs: {
223
- count: {
224
- type: Number,
225
- default: 200,
226
- },
227
- iteration: {
228
- type: Number,
229
- default: 1,
230
- },
231
- ratio: {
232
- type: mongoose.Schema.Types.Number,
233
- default: 0.75,
234
- },
235
- },
236
- ticketConfigs: {
237
- nextTicektGenerationTime: {
238
- type: Date,
239
- },
240
- hibernation: {
241
- type: Date,
242
- },
243
- },
244
- pipelineTrigger: {
245
- version: {
246
- type: String,
247
- default: 'v2',
248
- },
249
- pipelineType: {
250
- type: String,
251
- default: 'v2_live',
252
- },
253
- reidQueue: {
254
- type: String,
255
- default: 'reid_v2.fifo',
256
- },
257
- processLiveFeature: {
258
- type: Boolean,
259
- default: false,
260
- },
261
- processEodFeature: {
262
- type: Boolean,
263
- default: true,
264
- },
265
- processReid: {
266
- type: Boolean,
267
- default: true,
268
- },
269
- processYolo: {
270
- type: Boolean,
271
- default: true,
272
- },
273
- yoloQueue: {
274
- type: String,
275
- default: 'yolo_live_v2',
276
- },
277
- filterType: {
278
- type: String,
279
- default: 'dynamic',
280
- },
281
- liveQueue:{
282
- type: String,
283
- default: "yolo-v2-live",
284
- },
285
- },
286
- },
287
- {
288
- strict: true,
289
- versionKey: false,
290
- timestamps: true,
291
- }
292
- );
293
-
294
- store.index({ storeId: 1, clientId: 1, appId: 1 });
295
- store.plugin(mongooseUniqueValidator);
296
-
297
- 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
+
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
+ camCred: {
154
+ type: Object,
155
+ },
156
+ deleteExe: {
157
+ type: Boolean,
158
+ },
159
+ camDetails: {
160
+ type: Array,
161
+ },
162
+ secertKey: {
163
+ type: String,
164
+ trim: true,
165
+ },
166
+ ipListStatus: {
167
+ type: Boolean,
168
+ },
169
+ ipManufacturerStatus: {
170
+ type: Boolean,
171
+ },
172
+ frameRTSPURL: {
173
+ type: Boolean,
174
+ },
175
+ installEdge: {
176
+ type: Boolean,
177
+ },
178
+ systemTimeZone: {
179
+ type: String,
180
+ },
181
+ configurationStage: {
182
+ type: String,
183
+ },
184
+ isSocketEnable:{
185
+ type: Boolean,
186
+ },
187
+ storeCameraManufacturer:[
188
+ {
189
+ ip: { type: String },
190
+ manufacturer: { type: String },
191
+ },
192
+ ],
193
+ lastUpdatedAt: {
194
+ type: Date,
195
+ },
196
+ deployed:{
197
+ type: Boolean,
198
+ }
199
+ },
200
+ spocDetails: [
201
+ {
202
+ name: {
203
+ type: String,
204
+ required: true,
205
+ },
206
+ email: {
207
+ type: String,
208
+ required: true,
209
+ },
210
+ contact: {
211
+ type: String,
212
+ required: true,
213
+ },
214
+ designation: {
215
+ type: String,
216
+ },
217
+ },
218
+ ],
219
+ storeConnectionId: {
220
+ type: String,
221
+ },
222
+ auditConfigs: {
223
+ count: {
224
+ type: Number,
225
+ default: 200,
226
+ },
227
+ iteration: {
228
+ type: Number,
229
+ default: 1,
230
+ },
231
+ ratio: {
232
+ type: mongoose.Schema.Types.Number,
233
+ default: 0.75,
234
+ },
235
+ },
236
+ ticketConfigs: {
237
+ nextTicektGenerationTime: {
238
+ type: Date,
239
+ },
240
+ hibernation: {
241
+ type: Date,
242
+ },
243
+ },
244
+ pipelineTrigger: {
245
+ version: {
246
+ type: String,
247
+ default: 'v2',
248
+ },
249
+ pipelineType: {
250
+ type: String,
251
+ default: 'v2_live',
252
+ },
253
+ reidQueue: {
254
+ type: String,
255
+ default: 'reid_v2.fifo',
256
+ },
257
+ processLiveFeature: {
258
+ type: Boolean,
259
+ default: false,
260
+ },
261
+ processEodFeature: {
262
+ type: Boolean,
263
+ default: true,
264
+ },
265
+ processReid: {
266
+ type: Boolean,
267
+ default: true,
268
+ },
269
+ processYolo: {
270
+ type: Boolean,
271
+ default: true,
272
+ },
273
+ yoloQueue: {
274
+ type: String,
275
+ default: 'yolo_live_v2',
276
+ },
277
+ filterType: {
278
+ type: String,
279
+ default: 'dynamic',
280
+ },
281
+ liveQueue:{
282
+ type: String,
283
+ default: "yolo-v2-live",
284
+ },
285
+ },
286
+ },
287
+ {
288
+ strict: true,
289
+ versionKey: false,
290
+ timestamps: true,
291
+ }
292
+ );
293
+
294
+ store.index({ storeId: 1, clientId: 1, appId: 1 });
295
+ store.plugin(mongooseUniqueValidator);
296
+
297
+ export default mongoose.model("store", store);