tango-api-schema 2.3.15 → 2.3.17

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 (54) hide show
  1. package/build.js +24 -24
  2. package/index.js +215 -213
  3. package/package.json +27 -27
  4. package/schema/appVersion.js +39 -39
  5. package/schema/auditConfig.model.js +41 -41
  6. package/schema/auditUserBaseSalary.model.js +46 -46
  7. package/schema/binaryAudit.model.js +84 -84
  8. package/schema/camera.model.js +211 -211
  9. package/schema/checklistassignconfig.js +90 -90
  10. package/schema/checklistconfig.js +295 -295
  11. package/schema/checklistlog.js +113 -113
  12. package/schema/checklistquestionconfig.js +153 -153
  13. package/schema/client.model.js +687 -687
  14. package/schema/countryCurrency.model.js +17 -17
  15. package/schema/dailyPricing.model.js +89 -89
  16. package/schema/download.js +124 -124
  17. package/schema/emailers.model.js +45 -45
  18. package/schema/externalParameter.model.js +273 -273
  19. package/schema/eyeTestConfiguration.model.js +39 -0
  20. package/schema/fixtureConfig.model.js +223 -223
  21. package/schema/fixtureLibrary.model.js +167 -167
  22. package/schema/fixtureShelf.model.js +78 -78
  23. package/schema/liveConnection.model.js +54 -54
  24. package/schema/loginAttempt.model.js +31 -31
  25. package/schema/notification.model.js +45 -45
  26. package/schema/planoCrestLog.model.js +17 -17
  27. package/schema/planoGlobalComment.model.js +45 -45
  28. package/schema/planoMapping.model.js +62 -62
  29. package/schema/planoProductCategoryDetails.model.js +25 -25
  30. package/schema/planoProductDetail.model.js +63 -63
  31. package/schema/planoQrConversionRequest.model.js +61 -61
  32. package/schema/planoRevision.model.js +36 -36
  33. package/schema/planoStaticData.model.js +17 -17
  34. package/schema/planoTaskCompliance.model.js +397 -397
  35. package/schema/planoVmDetail.model.js +63 -63
  36. package/schema/planogram.model.js +66 -66
  37. package/schema/processedchecklist.js +256 -256
  38. package/schema/processedchecklistconfig.js +226 -226
  39. package/schema/revopConfig.model.js +19 -19
  40. package/schema/revopDownload.model.js +49 -49
  41. package/schema/runAIFeatures.js +24 -24
  42. package/schema/runAIRequest.js +53 -53
  43. package/schema/store.model.js +405 -405
  44. package/schema/storeFixture.model.js +228 -228
  45. package/schema/storeLayout.model.js +74 -74
  46. package/schema/streaming.model.js +29 -29
  47. package/schema/suspiciousActivity.model.js +54 -54
  48. package/schema/taskAssign.model.js +90 -90
  49. package/schema/taskConfig.model.js +121 -121
  50. package/schema/taskProcessed.model.js +257 -257
  51. package/schema/taskProcessedConfig.model.js +134 -134
  52. package/schema/templateLog.model.js +17 -17
  53. package/schema/user.model.js +139 -139
  54. package/schema/vmType.model.js +23 -23
@@ -1,227 +1,227 @@
1
- import mongoose from 'mongoose';
2
-
3
- const processedchecklistconfigSchema = new mongoose.Schema({
4
- client_id: {
5
- type: String,
6
- required:true
7
- },
8
- // brandId: {
9
- // type: mongoose.SchemaTypes.ObjectId,
10
- // required:true
11
- // },
12
- date_iso: {
13
- type: Date,
14
- },
15
- date_string: {
16
- type: String,
17
- },
18
- sourceCheckList_id: {
19
- type: mongoose.Schema.Types.ObjectId,
20
- ref: 'checklistconfig'
21
- },
22
- checkListName: {
23
- type: String,
24
- required:true
25
- },
26
- scheduleStartTime: {
27
- type: String
28
- },
29
- scheduleEndTime: {
30
- type: String
31
- },
32
- scheduleStartTime_iso: {
33
- type: Date
34
- },
35
- scheduleEndTime_iso: {
36
- type: Date
37
- },
38
- allowedOverTime: {
39
- type: Boolean,
40
- default:false
41
- },
42
- allowedStoreLocation: {
43
- type: Boolean,
44
- default:false
45
- },
46
- createdBy: {
47
- type: mongoose.SchemaTypes.ObjectId,
48
- },
49
- createdByName: {
50
- type: String,
51
- },
52
- questionAnswers: {
53
- type: Array
54
- },
55
- createdAt: {
56
- type: Date,
57
- default: Date.now
58
- },
59
- updatedAt: {
60
- type: Date,
61
- default: Date.now
62
- },
63
- isdeleted: {
64
- type: Boolean,
65
- default: false
66
- },
67
- questionCount: {
68
- type: Number,
69
- default: 0
70
- },
71
- storeCount: {
72
- type: Number,
73
- default: 0
74
- },
75
- publishDate: {
76
- type: Date,
77
- },
78
- locationCount: {
79
- type: Number
80
- },
81
- checkListType: {
82
- type: String,
83
- default: "custom",
84
- enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in','unauthorisedentry','backroommonitoring']
85
- },
86
- startTime:{
87
- type:Date
88
- },
89
- scheduleRepeatedType: {
90
- type: String,
91
- default: '',
92
- enum: ["daily", "weekly", "monthly","range","onetime","weekday",""]
93
- },
94
- allowedMultiSubmit: {
95
- type: Boolean,
96
- default:false
97
- },
98
- approver:{
99
- type:Array,
100
- default:[]
101
- },
102
- checkListDescription:{
103
- type: String,
104
- },
105
- remainder:{
106
- type:Array,
107
- default:[]
108
- },
109
- restrictAttendance:{
110
- type:Boolean,
111
- default:false
112
- },
113
- coverage:{
114
- type: String,
115
- default: 'store',
116
- enum: ["store", "user"]
117
- },
118
- isPlano:{
119
- type:Boolean,
120
- },
121
- webnotification:{
122
- type:Boolean,
123
- default:false
124
- },
125
- rawImageUpload: {
126
- type: Boolean,
127
- default:false
128
- },
129
- aiStoreList:{
130
- type:Array
131
- },
132
- aiConfig: {
133
- assignConfig: {
134
- type:String
135
- },
136
- events:{
137
- type:Array
138
- },
139
- alerts: {
140
- users:{
141
- type:Array
142
- },
143
- },
144
- alertSendTo: {
145
- mobile: {
146
- type:Array
147
- },
148
- web: {
149
- type:Array
150
- }
151
- },
152
- storeOpenClose:{
153
- buffer: {
154
- openTime:{
155
- type:Number
156
- },
157
- closeTime:{
158
- type:Number
159
- }
160
- },
161
- },
162
- mobileDetection:{
163
- usageExceed: {
164
- type:Number
165
- },
166
- detectionArea: {
167
- type:Array
168
- }
169
- },
170
- autoTask:{
171
- type:Boolean
172
- },
173
- backroomMonitoring: {
174
- countAlert: {
175
- status: {
176
- type:Boolean
177
- },
178
- condition: {
179
- type:String
180
- },
181
- value: {
182
- type:String
183
- },
184
- },
185
- timeSpendAlert: {
186
- status: {
187
- type:Boolean
188
- },
189
- condition: {
190
- type:String
191
- },
192
- value: {
193
- type:String
194
- },
195
- },
196
- hibernation: {
197
- status: {
198
- type:Boolean
199
- },
200
- start: {
201
- type:String
202
- },
203
- end: {
204
- type:String
205
- },
206
- },
207
- },
208
- detectionArea: {
209
- type:Array
210
- }
211
- },
212
- rawVideoUpload: {
213
- type: Boolean,
214
- default:false
215
- },
216
- runAIQuestionCount:{
217
- type:Number
218
- },
219
- },
220
- {
221
- strict: true,
222
- versionKey: false,
223
- timestamps: true,
224
- },
225
- );
226
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const processedchecklistconfigSchema = new mongoose.Schema({
4
+ client_id: {
5
+ type: String,
6
+ required:true
7
+ },
8
+ // brandId: {
9
+ // type: mongoose.SchemaTypes.ObjectId,
10
+ // required:true
11
+ // },
12
+ date_iso: {
13
+ type: Date,
14
+ },
15
+ date_string: {
16
+ type: String,
17
+ },
18
+ sourceCheckList_id: {
19
+ type: mongoose.Schema.Types.ObjectId,
20
+ ref: 'checklistconfig'
21
+ },
22
+ checkListName: {
23
+ type: String,
24
+ required:true
25
+ },
26
+ scheduleStartTime: {
27
+ type: String
28
+ },
29
+ scheduleEndTime: {
30
+ type: String
31
+ },
32
+ scheduleStartTime_iso: {
33
+ type: Date
34
+ },
35
+ scheduleEndTime_iso: {
36
+ type: Date
37
+ },
38
+ allowedOverTime: {
39
+ type: Boolean,
40
+ default:false
41
+ },
42
+ allowedStoreLocation: {
43
+ type: Boolean,
44
+ default:false
45
+ },
46
+ createdBy: {
47
+ type: mongoose.SchemaTypes.ObjectId,
48
+ },
49
+ createdByName: {
50
+ type: String,
51
+ },
52
+ questionAnswers: {
53
+ type: Array
54
+ },
55
+ createdAt: {
56
+ type: Date,
57
+ default: Date.now
58
+ },
59
+ updatedAt: {
60
+ type: Date,
61
+ default: Date.now
62
+ },
63
+ isdeleted: {
64
+ type: Boolean,
65
+ default: false
66
+ },
67
+ questionCount: {
68
+ type: Number,
69
+ default: 0
70
+ },
71
+ storeCount: {
72
+ type: Number,
73
+ default: 0
74
+ },
75
+ publishDate: {
76
+ type: Date,
77
+ },
78
+ locationCount: {
79
+ type: Number
80
+ },
81
+ checkListType: {
82
+ type: String,
83
+ default: "custom",
84
+ enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in','unauthorisedentry','backroommonitoring','outsidebusinesshoursqueuetracking']
85
+ },
86
+ startTime:{
87
+ type:Date
88
+ },
89
+ scheduleRepeatedType: {
90
+ type: String,
91
+ default: '',
92
+ enum: ["daily", "weekly", "monthly","range","onetime","weekday",""]
93
+ },
94
+ allowedMultiSubmit: {
95
+ type: Boolean,
96
+ default:false
97
+ },
98
+ approver:{
99
+ type:Array,
100
+ default:[]
101
+ },
102
+ checkListDescription:{
103
+ type: String,
104
+ },
105
+ remainder:{
106
+ type:Array,
107
+ default:[]
108
+ },
109
+ restrictAttendance:{
110
+ type:Boolean,
111
+ default:false
112
+ },
113
+ coverage:{
114
+ type: String,
115
+ default: 'store',
116
+ enum: ["store", "user"]
117
+ },
118
+ isPlano:{
119
+ type:Boolean,
120
+ },
121
+ webnotification:{
122
+ type:Boolean,
123
+ default:false
124
+ },
125
+ rawImageUpload: {
126
+ type: Boolean,
127
+ default:false
128
+ },
129
+ aiStoreList:{
130
+ type:Array
131
+ },
132
+ aiConfig: {
133
+ assignConfig: {
134
+ type:String
135
+ },
136
+ events:{
137
+ type:Array
138
+ },
139
+ alerts: {
140
+ users:{
141
+ type:Array
142
+ },
143
+ },
144
+ alertSendTo: {
145
+ mobile: {
146
+ type:Array
147
+ },
148
+ web: {
149
+ type:Array
150
+ }
151
+ },
152
+ storeOpenClose:{
153
+ buffer: {
154
+ openTime:{
155
+ type:Number
156
+ },
157
+ closeTime:{
158
+ type:Number
159
+ }
160
+ },
161
+ },
162
+ mobileDetection:{
163
+ usageExceed: {
164
+ type:Number
165
+ },
166
+ detectionArea: {
167
+ type:Array
168
+ }
169
+ },
170
+ autoTask:{
171
+ type:Boolean
172
+ },
173
+ backroomMonitoring: {
174
+ countAlert: {
175
+ status: {
176
+ type:Boolean
177
+ },
178
+ condition: {
179
+ type:String
180
+ },
181
+ value: {
182
+ type:String
183
+ },
184
+ },
185
+ timeSpendAlert: {
186
+ status: {
187
+ type:Boolean
188
+ },
189
+ condition: {
190
+ type:String
191
+ },
192
+ value: {
193
+ type:String
194
+ },
195
+ },
196
+ hibernation: {
197
+ status: {
198
+ type:Boolean
199
+ },
200
+ start: {
201
+ type:String
202
+ },
203
+ end: {
204
+ type:String
205
+ },
206
+ },
207
+ },
208
+ detectionArea: {
209
+ type:Array
210
+ }
211
+ },
212
+ rawVideoUpload: {
213
+ type: Boolean,
214
+ default:false
215
+ },
216
+ runAIQuestionCount:{
217
+ type:Number
218
+ },
219
+ },
220
+ {
221
+ strict: true,
222
+ versionKey: false,
223
+ timestamps: true,
224
+ },
225
+ );
226
+
227
227
  export default mongoose.model( 'processedchecklistconfig', processedchecklistconfigSchema);
@@ -1,19 +1,19 @@
1
- import { Schema, model } from 'mongoose';
2
-
3
-
4
- const revopconfigschema = new Schema( {
5
- clientId: {
6
- type: String,
7
- },
8
- issueList:{
9
- type:Array,
10
- default:[]
11
- }
12
- },
13
- {
14
- strict: true,
15
- versionKey: false,
16
- timestamps: true,
17
- } );
18
-
19
- export default model( 'revopconfig', revopconfigschema );
1
+ import { Schema, model } from 'mongoose';
2
+
3
+
4
+ const revopconfigschema = new Schema( {
5
+ clientId: {
6
+ type: String,
7
+ },
8
+ issueList:{
9
+ type:Array,
10
+ default:[]
11
+ }
12
+ },
13
+ {
14
+ strict: true,
15
+ versionKey: false,
16
+ timestamps: true,
17
+ } );
18
+
19
+ export default model( 'revopconfig', revopconfigschema );
@@ -1,50 +1,50 @@
1
- import mongoose from 'mongoose';
2
-
3
- // schema
4
- const collection = new mongoose.Schema( {
5
- userEmail: {
6
- type: String,
7
- },
8
- type:{
9
- type: String,
10
- },
11
- fromDate:{
12
- type: String,
13
- },
14
- toDate:{
15
- type: String,
16
- },
17
- stores:{
18
- type:Array
19
- },
20
- revopsType:{
21
- tyep:String
22
- },
23
- ticketStatus:{
24
- type:String
25
- },
26
- ticketAction:{
27
- type:String
28
- },
29
- status:{
30
- type:String,
31
- default:'pending'
32
- },
33
- outputFilePath:{
34
- type:String
35
- },
36
- bucketName:{
37
- type:String
38
- }
39
-
40
- },
41
- {
42
- timestamps: true,
43
- strict: true,
44
- versionKey: false,
45
- } );
46
-
47
- collection.index( { createdAt: 1 }, { expires: '1d' } );
48
- collection.index( { userEmail: 1 } );
49
-
1
+ import mongoose from 'mongoose';
2
+
3
+ // schema
4
+ const collection = new mongoose.Schema( {
5
+ userEmail: {
6
+ type: String,
7
+ },
8
+ type:{
9
+ type: String,
10
+ },
11
+ fromDate:{
12
+ type: String,
13
+ },
14
+ toDate:{
15
+ type: String,
16
+ },
17
+ stores:{
18
+ type:Array
19
+ },
20
+ revopsType:{
21
+ tyep:String
22
+ },
23
+ ticketStatus:{
24
+ type:String
25
+ },
26
+ ticketAction:{
27
+ type:String
28
+ },
29
+ status:{
30
+ type:String,
31
+ default:'pending'
32
+ },
33
+ outputFilePath:{
34
+ type:String
35
+ },
36
+ bucketName:{
37
+ type:String
38
+ }
39
+
40
+ },
41
+ {
42
+ timestamps: true,
43
+ strict: true,
44
+ versionKey: false,
45
+ } );
46
+
47
+ collection.index( { createdAt: 1 }, { expires: '1d' } );
48
+ collection.index( { userEmail: 1 } );
49
+
50
50
  export default mongoose.model( 'revopDownload',collection,"revopDownload" );
@@ -1,25 +1,25 @@
1
- import mongoose from 'mongoose';
2
-
3
- const runAIFeatureSchema = new mongoose.Schema({
4
- featureName: {
5
- type: String
6
- },
7
- lableName: {
8
- type: String
9
- },
10
- clientId: {
11
- type: String
12
- },
13
- isdeleted: {
14
- type: Boolean,
15
- default: false
16
- },
17
- },
18
- {
19
- strict: true,
20
- versionKey: false,
21
- timestamps: true,
22
- },
23
- );
24
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const runAIFeatureSchema = new mongoose.Schema({
4
+ featureName: {
5
+ type: String
6
+ },
7
+ lableName: {
8
+ type: String
9
+ },
10
+ clientId: {
11
+ type: String
12
+ },
13
+ isdeleted: {
14
+ type: Boolean,
15
+ default: false
16
+ },
17
+ },
18
+ {
19
+ strict: true,
20
+ versionKey: false,
21
+ timestamps: true,
22
+ },
23
+ );
24
+
25
25
  export default mongoose.model( 'runAIFeature', runAIFeatureSchema);