tango-api-schema 2.0.135 → 2.0.136

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 +300 -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,300 @@
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
+ 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
+ filterType: {
252
+ type: String,
253
+ default: 'dynamic',
254
+ },
255
+ queueList: {
256
+ type: Array
257
+ },
258
+ productFilter: [
259
+ {
260
+ productName: {
261
+ type: String
262
+ },
263
+ isEnabled: {
264
+ type: Boolean,
265
+ default: true,
266
+ },
267
+ processType: {
268
+ type: String,
269
+ default: "eod"
270
+ }
271
+ }
272
+ ]
273
+ },
274
+ product: {
275
+ type: Array,
276
+ },
277
+ matConfigs: {
278
+ status: {
279
+ type: String
280
+ },
281
+ fileCount: {
282
+ type: Number
283
+ },
284
+ configureDays: {
285
+ type: Number,
286
+ default: 3
287
+ },
288
+ },
289
+ },
290
+ {
291
+ strict: true,
292
+ versionKey: false,
293
+ timestamps: true,
294
+ }
295
+ );
296
+
297
+ store.index({ storeId: 1, clientId: 1, appId: 1 });
298
+ store.plugin(mongooseUniqueValidator);
299
+
300
+ export default mongoose.model("store", store);