tango-api-schema 2.0.154 → 2.0.155

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