tango-api-schema 2.0.137 → 2.0.139

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 (40) hide show
  1. package/index.js +78 -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 +107 -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 +314 -304
  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/transaction.model.js +52 -0
  37. package/schema/user.model.js +95 -95
  38. package/schema/userAssignedStore.model.js +41 -41
  39. package/schema/userAudit.model.js +69 -69
  40. package/schema/workstation.model.js +77 -77
@@ -1,304 +1,314 @@
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);
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
+ },
216
+ spocDetails: [
217
+ {
218
+ name: {
219
+ type: String,
220
+ required: true,
221
+ },
222
+ email: {
223
+ type: String,
224
+ required: true,
225
+ },
226
+ contact: {
227
+ type: String,
228
+ required: true,
229
+ },
230
+ designation: {
231
+ type: String,
232
+ },
233
+ },
234
+ ],
235
+ storeConnectionId: {
236
+ type: String,
237
+ },
238
+ auditConfigs: {
239
+ count: {
240
+ type: Number,
241
+ default: 200,
242
+ },
243
+ iteration: {
244
+ type: Number,
245
+ default: 1,
246
+ },
247
+ ratio: {
248
+ type: mongoose.Schema.Types.Number,
249
+ default: 0.75,
250
+ },
251
+ },
252
+ ticketConfigs: {
253
+ nextTicektGenerationTime: {
254
+ type: Date,
255
+ },
256
+ hibernation: {
257
+ type: Date,
258
+ },
259
+ },
260
+ pipelineTrigger: {
261
+ version: {
262
+ type: String,
263
+ default: 'v2',
264
+ },
265
+ filterType: {
266
+ type: String,
267
+ default: 'dynamic',
268
+ },
269
+ queueList: {
270
+ type: Array
271
+ },
272
+ productFilter: [
273
+ {
274
+ productName: {
275
+ type: String
276
+ },
277
+ isEnabled: {
278
+ type: Boolean,
279
+ default: true,
280
+ },
281
+ processType: {
282
+ type: String,
283
+ default: "eod"
284
+ }
285
+ }
286
+ ]
287
+ },
288
+ product: {
289
+ type: Array,
290
+ },
291
+ matConfigs: {
292
+ status: {
293
+ type: String
294
+ },
295
+ fileCount: {
296
+ type: Number
297
+ },
298
+ configureDays: {
299
+ type: Number,
300
+ default: 3
301
+ },
302
+ },
303
+ },
304
+ {
305
+ strict: true,
306
+ versionKey: false,
307
+ timestamps: true,
308
+ }
309
+ );
310
+
311
+ store.index({ storeId: 1, clientId: 1, appId: 1 });
312
+ store.plugin(mongooseUniqueValidator);
313
+
314
+ export default mongoose.model("store", store);