tango-api-schema 2.2.166 → 2.2.168
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.
package/index.js
CHANGED
|
@@ -82,6 +82,7 @@ import storeFixtureModel from './schema/storeFixture.model.js';
|
|
|
82
82
|
import fixtureConfigModel from './schema/fixtureConfig.model.js';
|
|
83
83
|
import fixtureShelfModel from './schema/fixtureShelf.model.js';
|
|
84
84
|
import planoTaskCompliance from './schema/planoTaskCompliance.model.js';
|
|
85
|
+
import planoGlobalComment from './schema/planoGlobalComment.model.js';
|
|
85
86
|
import planoQrConversionRequest from './schema/planoQrConversionRequest.model.js';
|
|
86
87
|
import planoStaticData from './schema/planoStaticData.model.js';
|
|
87
88
|
import suspiciousActivityModel from "./schema/suspiciousActivity.model.js";
|
|
@@ -95,6 +96,8 @@ import planoProductCategoryModel from './schema/planoProductCategoryDetails.mode
|
|
|
95
96
|
import streamingModel from './schema/streaming.model.js';
|
|
96
97
|
import loginAttempt from "./schema/loginAttempt.model.js";
|
|
97
98
|
import notification from "./schema/notification.model.js";
|
|
99
|
+
import planoRevisionModel from "./schema/planoRevision.model.js";
|
|
100
|
+
|
|
98
101
|
|
|
99
102
|
|
|
100
103
|
export default {
|
|
@@ -180,6 +183,7 @@ export default {
|
|
|
180
183
|
storeFixtureModel,
|
|
181
184
|
fixtureConfigModel,
|
|
182
185
|
fixtureShelfModel,
|
|
186
|
+
planoGlobalComment,
|
|
183
187
|
planoTaskCompliance,
|
|
184
188
|
planoQrConversionRequest,
|
|
185
189
|
planoStaticData,
|
|
@@ -194,5 +198,6 @@ export default {
|
|
|
194
198
|
planoProductCategoryModel,
|
|
195
199
|
streamingModel,
|
|
196
200
|
loginAttempt,
|
|
197
|
-
notification
|
|
201
|
+
notification,
|
|
202
|
+
planoRevisionModel
|
|
198
203
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
// schema
|
|
4
|
+
const collection = new mongoose.Schema( {
|
|
5
|
+
userId: {
|
|
6
|
+
type: String,
|
|
7
|
+
trim: true,
|
|
8
|
+
},
|
|
9
|
+
userName: {
|
|
10
|
+
type: String,
|
|
11
|
+
},
|
|
12
|
+
comment: {
|
|
13
|
+
type: String,
|
|
14
|
+
},
|
|
15
|
+
timestamps:{
|
|
16
|
+
type:Date,
|
|
17
|
+
default:new Date()
|
|
18
|
+
},
|
|
19
|
+
taskType:{
|
|
20
|
+
type:String,
|
|
21
|
+
enum:['layout','fixture','vm']
|
|
22
|
+
},
|
|
23
|
+
planoId:{
|
|
24
|
+
type: mongoose.Types.ObjectId,
|
|
25
|
+
},
|
|
26
|
+
floorId:{
|
|
27
|
+
type: mongoose.Types.ObjectId,
|
|
28
|
+
},
|
|
29
|
+
clientId:{
|
|
30
|
+
type:String
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
timestamps: true,
|
|
36
|
+
strict: true,
|
|
37
|
+
versionKey: false,
|
|
38
|
+
} );
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
export default mongoose.model( 'planoGlobalComment', collection );
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const planoRevisionSchema = new mongoose.Schema( {
|
|
4
|
+
storeName: {
|
|
5
|
+
type: String,
|
|
6
|
+
required: true,
|
|
7
|
+
},
|
|
8
|
+
storeId: {
|
|
9
|
+
type: String,
|
|
10
|
+
required: true,
|
|
11
|
+
},
|
|
12
|
+
clientId: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: true,
|
|
15
|
+
},
|
|
16
|
+
planoId: {
|
|
17
|
+
type: mongoose.Types.ObjectId,
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
floorId: {
|
|
21
|
+
type: mongoose.Types.ObjectId,
|
|
22
|
+
required: true,
|
|
23
|
+
},
|
|
24
|
+
floorData:{
|
|
25
|
+
type:Object,
|
|
26
|
+
required: true,
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
strict: true,
|
|
31
|
+
versionKey: false,
|
|
32
|
+
timestamps: true,
|
|
33
|
+
},
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
export default mongoose.model( 'planoRevision', planoRevisionSchema );
|
|
@@ -28,7 +28,7 @@ const planoTaskCompliance = new mongoose.Schema(
|
|
|
28
28
|
image: {
|
|
29
29
|
type: String
|
|
30
30
|
},
|
|
31
|
-
|
|
31
|
+
comments: [{
|
|
32
32
|
userId: {
|
|
33
33
|
type: mongoose.Types.ObjectId,
|
|
34
34
|
},
|
|
@@ -74,7 +74,7 @@ const planoTaskCompliance = new mongoose.Schema(
|
|
|
74
74
|
},
|
|
75
75
|
issueType: {
|
|
76
76
|
type: String,
|
|
77
|
-
enum: ["extraFixture", 'fixtureMissing', 'fixtureMismatch', 'categoryWrong', 'sizeWrong', 'shelfWrong', 'brandWrong', 'productcategoryWrong', "extraVm", 'VmMissing', 'VmMismatch', 'VmSizeWrong','others']
|
|
77
|
+
enum: ["extraFixture", 'fixtureMissing', 'fixtureMismatch', 'categoryWrong', 'sizeWrong', 'shelfWrong', 'brandWrong', 'productcategoryWrong', "extraVm", 'VmMissing', 'VmMismatch', 'VmSizeWrong', 'others']
|
|
78
78
|
},
|
|
79
79
|
image: {
|
|
80
80
|
type: String
|
|
@@ -132,16 +132,16 @@ const planoTaskCompliance = new mongoose.Schema(
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
],
|
|
135
|
-
missingData:[
|
|
135
|
+
missingData: [
|
|
136
136
|
{
|
|
137
|
-
zone:{
|
|
138
|
-
type:String
|
|
137
|
+
zone: {
|
|
138
|
+
type: String
|
|
139
139
|
},
|
|
140
|
-
brand:[{
|
|
141
|
-
type:String
|
|
140
|
+
brand: [{
|
|
141
|
+
type: String
|
|
142
142
|
}],
|
|
143
|
-
productCategory:[{
|
|
144
|
-
type:String
|
|
143
|
+
productCategory: [{
|
|
144
|
+
type: String
|
|
145
145
|
}]
|
|
146
146
|
}
|
|
147
147
|
],
|
|
@@ -200,53 +200,53 @@ const planoTaskCompliance = new mongoose.Schema(
|
|
|
200
200
|
type: String
|
|
201
201
|
},
|
|
202
202
|
fixtureWidth:
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}
|
|
203
|
+
{
|
|
204
|
+
value: {
|
|
205
|
+
type: Number
|
|
206
|
+
},
|
|
207
|
+
unit: {
|
|
208
|
+
type: String
|
|
210
209
|
}
|
|
210
|
+
}
|
|
211
211
|
,
|
|
212
212
|
header: {
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
height: {
|
|
214
|
+
value: {
|
|
215
215
|
type: Number,
|
|
216
216
|
default: 0,
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
},
|
|
218
|
+
unit: {
|
|
219
219
|
type: String,
|
|
220
220
|
default: '',
|
|
221
|
-
},
|
|
222
221
|
},
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
222
|
+
},
|
|
223
|
+
label: {
|
|
224
|
+
type: String,
|
|
225
|
+
},
|
|
226
|
+
isEnabled: {
|
|
227
|
+
type: Boolean,
|
|
228
|
+
default: true,
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
footer: {
|
|
232
|
+
height: {
|
|
233
|
+
value: {
|
|
234
234
|
type: Number,
|
|
235
235
|
default: 0,
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
},
|
|
237
|
+
unit: {
|
|
238
238
|
type: String,
|
|
239
239
|
default: '',
|
|
240
|
-
},
|
|
241
|
-
},
|
|
242
|
-
label: {
|
|
243
|
-
type: String,
|
|
244
240
|
},
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
241
|
+
},
|
|
242
|
+
label: {
|
|
243
|
+
type: String,
|
|
244
|
+
},
|
|
245
|
+
isEnabled: {
|
|
246
|
+
type: Boolean,
|
|
247
|
+
default: true,
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
250
|
shelfConfig: [
|
|
251
251
|
{
|
|
252
252
|
_id: {
|
|
@@ -280,12 +280,12 @@ const planoTaskCompliance = new mongoose.Schema(
|
|
|
280
280
|
],
|
|
281
281
|
vmConfig: [
|
|
282
282
|
{
|
|
283
|
-
|
|
283
|
+
vmName: {
|
|
284
284
|
type: String
|
|
285
285
|
},
|
|
286
286
|
vmId: {
|
|
287
287
|
type: mongoose.Schema.Types.ObjectId,
|
|
288
|
-
|
|
288
|
+
|
|
289
289
|
},
|
|
290
290
|
startYPosition: {
|
|
291
291
|
type: Number
|
|
@@ -352,12 +352,17 @@ const planoTaskCompliance = new mongoose.Schema(
|
|
|
352
352
|
taskId: {
|
|
353
353
|
type: mongoose.Types.ObjectId
|
|
354
354
|
},
|
|
355
|
-
taskType:{
|
|
355
|
+
taskType: {
|
|
356
356
|
type: String,
|
|
357
|
-
enum:['redo','initial']
|
|
357
|
+
enum: ['redo', 'initial']
|
|
358
358
|
},
|
|
359
359
|
date_iso: {
|
|
360
360
|
type: Date
|
|
361
|
+
},
|
|
362
|
+
approvalStatus: {
|
|
363
|
+
type: String,
|
|
364
|
+
enum: ['pending', 'approved', 'rejected'],
|
|
365
|
+
default:'pending'
|
|
361
366
|
}
|
|
362
367
|
},
|
|
363
368
|
{
|