tango-api-schema 2.2.95 → 2.2.96

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.
@@ -1,63 +1,63 @@
1
- import mongoose from 'mongoose';
2
-
3
- const planogramSchema = new mongoose.Schema( {
4
- storeName: {
5
- type: String,
6
- required: true,
7
- },
8
- storeId: {
9
- type: String,
10
- required: true,
11
- },
12
- layoutName: {
13
- type: String,
14
- required: true,
15
- },
16
- clientId: {
17
- type: String,
18
- required: true,
19
- },
20
- attachments: {
21
- type: Array,
22
- default: [],
23
- },
24
- createdBy: {
25
- type: mongoose.Types.ObjectId,
26
- required: true,
27
- },
28
- createdByName: {
29
- type: String,
30
- required: true,
31
- },
32
- createdByEmail: {
33
- type: String,
34
- required: true,
35
- },
36
- status: {
37
- type: String,
38
- enum: [ 'draft', 'completed' ],
39
- default: 'draft',
40
- },
41
- floorNumber: {
42
- type: Number,
43
- default: 1,
44
- },
45
- productResolutionLevel: {
46
- type: String,
47
- enum: [ 'L1', 'L2', 'L3', 'L4', 'L5' ],
48
- // L1- floor level, L2- fixture level, L3- fixture-shelf level, L4- fixture-shelf-product level
49
- default: 'L3',
50
- },
51
- scanType: {
52
- type: String,
53
- enum: [ 'rfid', 'qr' ],
54
- }
55
- },
56
- {
57
- strict: true,
58
- versionKey: false,
59
- timestamps: true,
60
- },
61
- );
62
-
63
- export default mongoose.model( 'planogram', planogramSchema );
1
+ import mongoose from 'mongoose';
2
+
3
+ const planogramSchema = new mongoose.Schema( {
4
+ storeName: {
5
+ type: String,
6
+ required: true,
7
+ },
8
+ storeId: {
9
+ type: String,
10
+ required: true,
11
+ },
12
+ layoutName: {
13
+ type: String,
14
+ required: true,
15
+ },
16
+ clientId: {
17
+ type: String,
18
+ required: true,
19
+ },
20
+ attachments: {
21
+ type: Array,
22
+ default: [],
23
+ },
24
+ createdBy: {
25
+ type: mongoose.Types.ObjectId,
26
+ required: true,
27
+ },
28
+ createdByName: {
29
+ type: String,
30
+ required: true,
31
+ },
32
+ createdByEmail: {
33
+ type: String,
34
+ required: true,
35
+ },
36
+ status: {
37
+ type: String,
38
+ enum: [ 'draft', 'completed' ],
39
+ default: 'draft',
40
+ },
41
+ floorNumber: {
42
+ type: Number,
43
+ default: 1,
44
+ },
45
+ productResolutionLevel: {
46
+ type: String,
47
+ enum: [ 'L1', 'L2', 'L3', 'L4', 'L5' ],
48
+ // L1- floor level, L2- fixture level, L3- fixture-shelf level, L4- fixture-shelf-product level
49
+ default: 'L3',
50
+ },
51
+ scanType: {
52
+ type: String,
53
+ enum: [ 'rfid', 'qr' ],
54
+ }
55
+ },
56
+ {
57
+ strict: true,
58
+ versionKey: false,
59
+ timestamps: true,
60
+ },
61
+ );
62
+
63
+ export default mongoose.model( 'planogram', planogramSchema );
@@ -1,228 +1,228 @@
1
- import mongoose from 'mongoose';
2
-
3
- const processedchecklistSchema = 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.SchemaTypes.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']
85
- },
86
- store_id: {
87
- type: String,
88
- default:''
89
- },
90
- country: {
91
- type: String,
92
- required:false,
93
- default:''
94
- },
95
- storeName: {
96
- type: String,
97
- default:''
98
- },
99
- userId: {
100
- type: mongoose.SchemaTypes.ObjectId,
101
- // required:true
102
- },
103
- userName: {
104
- type: String,
105
- // required:true
106
- },
107
- userEmail: {
108
- type: String,
109
- // required:true
110
- },
111
- checkListId: {
112
- type: mongoose.SchemaTypes.ObjectId,
113
- required:true
114
- },
115
- checklistStatus: {
116
- type: String,
117
- enum: ['open', 'inprogress', 'submit'],
118
- default: 'open'
119
- },
120
- startTime:{
121
- type: Date,
122
- },
123
- submitTime:{
124
- type: Date,
125
- },
126
- startTime_string:{
127
- type: String,
128
- },
129
- submitTime_string:{
130
- type: String,
131
- },
132
- timeFlagStatus:{
133
- type: Boolean,
134
- default: true
135
- },
136
- timeFlag:{
137
- type: Number,
138
- default: 0
139
- },
140
- questionFlag:{
141
- type: Number,
142
- default: 0
143
- },
144
- mobileDetectionFlag:{
145
- type: Number,
146
- default: 0
147
- },
148
- storeOpenCloseFlag:{
149
- type: Number,
150
- default: 0
151
- },
152
- reinitiateStatus:{
153
- type:Boolean,
154
- default: false
155
- },
156
- markasread:{
157
- type:Boolean,
158
- default:false
159
- },
160
- uniformDetectionFlag:{
161
- type: Number,
162
- default: 0
163
- },
164
- scheduleRepeatedType: {
165
- type: String,
166
- default: '',
167
- enum: ["daily", "weekly", "monthly","range","onetime","weekday",""]
168
- },
169
- startMobileTime:{
170
- type:String
171
- },
172
- submitMobileTime:{
173
- type:String
174
- },
175
- aiStoreList: {
176
- type:Array,
177
- default:[]
178
- },
179
- approvalStatus:{
180
- type:Boolean,
181
- default:false
182
- },
183
- approvalEnable:{
184
- type:Boolean,
185
- default:false
186
- },
187
- redoStatus:{
188
- type:Boolean,
189
- default:false
190
- },
191
- remainder:{
192
- type:Array,
193
- default:[]
194
- },
195
- checkListDescription:{
196
- type: String,
197
- },
198
- restrictAttendance:{
199
- type:Boolean,
200
- default:false
201
- },
202
- coverage:{
203
- type: String,
204
- default: 'store',
205
- enum: ["store", "user"]
206
- },
207
- planoId:{
208
- type:mongoose.Types.ObjectId
209
- },
210
- isPlano:{
211
- type:Boolean,
212
- },
213
- planoType:{
214
- type: String,
215
- },
216
- rawImageUpload: {
217
- type: Boolean,
218
- default:false
219
- },
220
- },
221
- {
222
- strict: true,
223
- versionKey: false,
224
- timestamps: true,
225
- },
226
- );
227
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const processedchecklistSchema = 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.SchemaTypes.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']
85
+ },
86
+ store_id: {
87
+ type: String,
88
+ default:''
89
+ },
90
+ country: {
91
+ type: String,
92
+ required:false,
93
+ default:''
94
+ },
95
+ storeName: {
96
+ type: String,
97
+ default:''
98
+ },
99
+ userId: {
100
+ type: mongoose.SchemaTypes.ObjectId,
101
+ // required:true
102
+ },
103
+ userName: {
104
+ type: String,
105
+ // required:true
106
+ },
107
+ userEmail: {
108
+ type: String,
109
+ // required:true
110
+ },
111
+ checkListId: {
112
+ type: mongoose.SchemaTypes.ObjectId,
113
+ required:true
114
+ },
115
+ checklistStatus: {
116
+ type: String,
117
+ enum: ['open', 'inprogress', 'submit'],
118
+ default: 'open'
119
+ },
120
+ startTime:{
121
+ type: Date,
122
+ },
123
+ submitTime:{
124
+ type: Date,
125
+ },
126
+ startTime_string:{
127
+ type: String,
128
+ },
129
+ submitTime_string:{
130
+ type: String,
131
+ },
132
+ timeFlagStatus:{
133
+ type: Boolean,
134
+ default: true
135
+ },
136
+ timeFlag:{
137
+ type: Number,
138
+ default: 0
139
+ },
140
+ questionFlag:{
141
+ type: Number,
142
+ default: 0
143
+ },
144
+ mobileDetectionFlag:{
145
+ type: Number,
146
+ default: 0
147
+ },
148
+ storeOpenCloseFlag:{
149
+ type: Number,
150
+ default: 0
151
+ },
152
+ reinitiateStatus:{
153
+ type:Boolean,
154
+ default: false
155
+ },
156
+ markasread:{
157
+ type:Boolean,
158
+ default:false
159
+ },
160
+ uniformDetectionFlag:{
161
+ type: Number,
162
+ default: 0
163
+ },
164
+ scheduleRepeatedType: {
165
+ type: String,
166
+ default: '',
167
+ enum: ["daily", "weekly", "monthly","range","onetime","weekday",""]
168
+ },
169
+ startMobileTime:{
170
+ type:String
171
+ },
172
+ submitMobileTime:{
173
+ type:String
174
+ },
175
+ aiStoreList: {
176
+ type:Array,
177
+ default:[]
178
+ },
179
+ approvalStatus:{
180
+ type:Boolean,
181
+ default:false
182
+ },
183
+ approvalEnable:{
184
+ type:Boolean,
185
+ default:false
186
+ },
187
+ redoStatus:{
188
+ type:Boolean,
189
+ default:false
190
+ },
191
+ remainder:{
192
+ type:Array,
193
+ default:[]
194
+ },
195
+ checkListDescription:{
196
+ type: String,
197
+ },
198
+ restrictAttendance:{
199
+ type:Boolean,
200
+ default:false
201
+ },
202
+ coverage:{
203
+ type: String,
204
+ default: 'store',
205
+ enum: ["store", "user"]
206
+ },
207
+ planoId:{
208
+ type:mongoose.Types.ObjectId
209
+ },
210
+ isPlano:{
211
+ type:Boolean,
212
+ },
213
+ planoType:{
214
+ type: String,
215
+ },
216
+ rawImageUpload: {
217
+ type: Boolean,
218
+ default:false
219
+ },
220
+ },
221
+ {
222
+ strict: true,
223
+ versionKey: false,
224
+ timestamps: true,
225
+ },
226
+ );
227
+
228
228
  export default mongoose.model( 'processedchecklist', processedchecklistSchema);