tango-api-schema 2.0.135 → 2.0.137

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.
Files changed (39) hide show
  1. package/index.js +76 -76
  2. package/package.json +27 -27
  3. package/schema/applicationDefault.model.js +24 -24
  4. package/schema/assignAudit.model.js +48 -48
  5. package/schema/auditClientData.model.js +45 -45
  6. package/schema/auditLogs.model.js +65 -65
  7. package/schema/auditStoreData.model.js +48 -48
  8. package/schema/authentication.model.js +27 -27
  9. package/schema/basePricing.model.js +29 -29
  10. package/schema/billing.model.js +99 -99
  11. package/schema/camera.model.js +146 -146
  12. package/schema/client.model.js +465 -465
  13. package/schema/clientRequest.model.js +40 -40
  14. package/schema/countryCodes.model.js +28 -28
  15. package/schema/dailyPricing.model.js +88 -88
  16. package/schema/edgeAppVersion.model.js +33 -33
  17. package/schema/edgeappAuth.model.js +32 -32
  18. package/schema/externalParameter.model.js +202 -202
  19. package/schema/fitting.model.js +52 -52
  20. package/schema/group.model.js +36 -36
  21. package/schema/infraReason.model.js +44 -44
  22. package/schema/internalAuth.model.js +36 -36
  23. package/schema/invoice.model.js +89 -89
  24. package/schema/ipLogs.model.js +39 -39
  25. package/schema/lead.model.js +75 -75
  26. package/schema/matLog.model.js +26 -26
  27. package/schema/otp.model.js +27 -27
  28. package/schema/paymentAccount.model.js +52 -52
  29. package/schema/quality.model.js +57 -57
  30. package/schema/report.model.js +30 -30
  31. package/schema/standaredRole.model.js +56 -56
  32. package/schema/store.model.js +304 -332
  33. package/schema/storeAudit.model.js +54 -54
  34. package/schema/tagging.model.js +38 -38
  35. package/schema/tangoTicket.model.js +210 -210
  36. package/schema/user.model.js +95 -95
  37. package/schema/userAssignedStore.model.js +41 -41
  38. package/schema/userAudit.model.js +69 -69
  39. package/schema/workstation.model.js +77 -77
@@ -1,332 +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
- macId: { type: String },
189
- },
190
- ],
191
- lastUpdatedAt: {
192
- type: Date,
193
- },
194
- serialNumber: {
195
- type: String,
196
- },
197
- reScanIp: {
198
- type: Boolean,
199
- default: false
200
- }
201
- },
202
- spocDetails: [
203
- {
204
- name: {
205
- type: String,
206
- required: true,
207
- },
208
- email: {
209
- type: String,
210
- required: true,
211
- },
212
- contact: {
213
- type: String,
214
- required: true,
215
- },
216
- designation: {
217
- type: String,
218
- },
219
- },
220
- ],
221
- storeConnectionId: {
222
- type: String,
223
- },
224
- auditConfigs: {
225
- count: {
226
- type: Number,
227
- default: 200,
228
- },
229
- iteration: {
230
- type: Number,
231
- default: 1,
232
- },
233
- ratio: {
234
- type: mongoose.Schema.Types.Number,
235
- default: 0.75,
236
- },
237
- },
238
- ticketConfigs: {
239
- nextTicektGenerationTime: {
240
- type: Date,
241
- },
242
- hibernation: {
243
- type: Date,
244
- },
245
- },
246
- pipelineTrigger: {
247
- version: {
248
- type: String,
249
- default: 'v2',
250
- },
251
- pipelineType: {
252
- type: String,
253
- default: 'v2_live',
254
- },
255
- reidQueue: {
256
- type: String,
257
- default: 'reid_v2.fifo',
258
- },
259
- processLiveFeature: {
260
- type: Boolean,
261
- default: false,
262
- },
263
- processEodFeature: {
264
- type: Boolean,
265
- default: true,
266
- },
267
- processReid: {
268
- type: Boolean,
269
- default: true,
270
- },
271
- processYolo: {
272
- type: Boolean,
273
- default: true,
274
- },
275
- yoloQueue: {
276
- type: String,
277
- default: 'yolo_live_v2',
278
- },
279
- filterType: {
280
- type: String,
281
- default: 'dynamic',
282
- },
283
- liveQueue: {
284
- type: String,
285
- default: "yolo-v2",
286
- },
287
- queueList: {
288
- type: Array
289
- },
290
- productFilter: [
291
- {
292
- productName: {
293
- type: String
294
- },
295
- isEnabled: {
296
- type: Boolean,
297
- default: true,
298
- },
299
- processType: {
300
- type: String,
301
- default: "eod"
302
- }
303
- }
304
- ]
305
- },
306
- product: {
307
- type: Array,
308
- },
309
- matConfigs: {
310
- status: {
311
- type: String
312
- },
313
- fileCount: {
314
- type: Number
315
- },
316
- configureDays: {
317
- type: Number,
318
- default: 3
319
- },
320
- },
321
- },
322
- {
323
- strict: true,
324
- versionKey: false,
325
- timestamps: true,
326
- }
327
- );
328
-
329
- store.index({ storeId: 1, clientId: 1, appId: 1 });
330
- store.plugin(mongooseUniqueValidator);
331
-
332
- 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
+ apiVersion:{
78
+ type: String,
79
+ trim: true,
80
+ },
81
+ timeZone: {
82
+ type: String,
83
+ required: false,
84
+ },
85
+ firstFileDate: {
86
+ type: Date,
87
+ },
88
+ firstFile: {
89
+ type: Boolean,
90
+ },
91
+ status: {
92
+ type: Boolean,
93
+ },
94
+ timeDownload: {
95
+ type: Date,
96
+ },
97
+ hibernet: {
98
+ type: Object,
99
+ },
100
+ appVersion: {
101
+ type: String,
102
+ trim: true,
103
+ },
104
+ architecture: {
105
+ type: String,
106
+ trim: true,
107
+ enum: ["x32", "x64"],
108
+ },
109
+ updateAppVersion: {
110
+ type: String,
111
+ trim: true,
112
+ },
113
+ triggerProcessId: {
114
+ type: String,
115
+ },
116
+ isRestartRequired: {
117
+ type: Boolean,
118
+ },
119
+ serverType: {
120
+ type: Boolean,
121
+ },
122
+ deleteInterval: {
123
+ type: Number,
124
+ },
125
+ timeElapsed: {
126
+ type: Number,
127
+ trim: true,
128
+ },
129
+ lastLoginAt: {
130
+ type: Date,
131
+ },
132
+ macId: {
133
+ type: String,
134
+ trim: true,
135
+ },
136
+ handShake: {
137
+ type: Boolean,
138
+ },
139
+ speedTest: {
140
+ type: Object,
141
+ },
142
+ dataUpload: {
143
+ type: Object,
144
+ },
145
+ preRequisiteStartedAt: {
146
+ type: Date,
147
+ },
148
+ preRequisite: {
149
+ type: Boolean,
150
+ },
151
+ deviceSpec: {
152
+ type: Object,
153
+ },
154
+ systemUtil: {
155
+ type: Object,
156
+ },
157
+ deleteExe: {
158
+ type: Boolean,
159
+ },
160
+ camDetails: {
161
+ type: Array,
162
+ },
163
+ secertKey: {
164
+ type: String,
165
+ trim: true,
166
+ },
167
+ ipListStatus: {
168
+ type: Boolean,
169
+ },
170
+ ipManufacturerStatus: {
171
+ type: Boolean,
172
+ },
173
+ frameRTSPURL: {
174
+ type: Boolean,
175
+ },
176
+ installEdge: {
177
+ type: Boolean,
178
+ },
179
+ systemTimeZone: {
180
+ type: String,
181
+ },
182
+ configurationStage: {
183
+ type: String,
184
+ },
185
+ isSocketEnable: {
186
+ type: Boolean,
187
+ },
188
+ storeCameraManufacturer: [
189
+ {
190
+ ip: { type: String },
191
+ manufacturer: { type: String },
192
+ macId: { type: String },
193
+ },
194
+ ],
195
+ lastUpdatedAt: {
196
+ type: Date,
197
+ },
198
+ serialNumber: {
199
+ type: String,
200
+ },
201
+ reScanIp: {
202
+ type: Boolean,
203
+ default: false
204
+ }
205
+ },
206
+ spocDetails: [
207
+ {
208
+ name: {
209
+ type: String,
210
+ required: true,
211
+ },
212
+ email: {
213
+ type: String,
214
+ required: true,
215
+ },
216
+ contact: {
217
+ type: String,
218
+ required: true,
219
+ },
220
+ designation: {
221
+ type: String,
222
+ },
223
+ },
224
+ ],
225
+ storeConnectionId: {
226
+ type: String,
227
+ },
228
+ auditConfigs: {
229
+ count: {
230
+ type: Number,
231
+ default: 200,
232
+ },
233
+ iteration: {
234
+ type: Number,
235
+ default: 1,
236
+ },
237
+ ratio: {
238
+ type: mongoose.Schema.Types.Number,
239
+ default: 0.75,
240
+ },
241
+ },
242
+ ticketConfigs: {
243
+ nextTicektGenerationTime: {
244
+ type: Date,
245
+ },
246
+ hibernation: {
247
+ type: Date,
248
+ },
249
+ },
250
+ pipelineTrigger: {
251
+ version: {
252
+ type: String,
253
+ default: 'v2',
254
+ },
255
+ filterType: {
256
+ type: String,
257
+ default: 'dynamic',
258
+ },
259
+ queueList: {
260
+ type: Array
261
+ },
262
+ productFilter: [
263
+ {
264
+ productName: {
265
+ type: String
266
+ },
267
+ isEnabled: {
268
+ type: Boolean,
269
+ default: true,
270
+ },
271
+ processType: {
272
+ type: String,
273
+ default: "eod"
274
+ }
275
+ }
276
+ ]
277
+ },
278
+ product: {
279
+ type: Array,
280
+ },
281
+ matConfigs: {
282
+ status: {
283
+ type: String
284
+ },
285
+ fileCount: {
286
+ type: Number
287
+ },
288
+ configureDays: {
289
+ type: Number,
290
+ default: 3
291
+ },
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);