tango-api-schema 2.5.35 → 2.5.37
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/package.json +2 -2
- package/schema/planoProductDetail.model.js +53 -47
- package/schema/planoRevision.model.js +32 -27
- package/schema/planogram.model.js +14 -14
package/package.json
CHANGED
|
@@ -1,63 +1,69 @@
|
|
|
1
1
|
import mongoose from 'mongoose';
|
|
2
2
|
|
|
3
3
|
const planoProductDetailSchema = new mongoose.Schema(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
{
|
|
5
|
+
clientId: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true,
|
|
8
|
+
},
|
|
9
|
+
productId: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: true,
|
|
12
|
+
},
|
|
13
|
+
productName: {
|
|
14
|
+
type: String,
|
|
15
|
+
},
|
|
16
|
+
productSku: {
|
|
17
|
+
type: String,
|
|
18
|
+
},
|
|
19
|
+
productBrand: {
|
|
20
|
+
type: String,
|
|
21
|
+
},
|
|
22
|
+
productType: {
|
|
23
|
+
type: String,
|
|
24
|
+
},
|
|
25
|
+
productHeight: {
|
|
26
|
+
value: {
|
|
27
|
+
type: Number,
|
|
15
28
|
},
|
|
16
|
-
|
|
29
|
+
unit: {
|
|
17
30
|
type: String,
|
|
18
31
|
},
|
|
19
|
-
|
|
20
|
-
|
|
32
|
+
},
|
|
33
|
+
productWidth: {
|
|
34
|
+
value: {
|
|
35
|
+
type: Number,
|
|
21
36
|
},
|
|
22
|
-
|
|
37
|
+
unit: {
|
|
23
38
|
type: String,
|
|
24
39
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
unit: {
|
|
30
|
-
type: String,
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
productWidth: {
|
|
34
|
-
value: {
|
|
35
|
-
type: Number,
|
|
36
|
-
},
|
|
37
|
-
unit: {
|
|
38
|
-
type: String,
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
productWeight: {
|
|
42
|
-
value: {
|
|
43
|
-
type: Number,
|
|
44
|
-
},
|
|
45
|
-
unit: {
|
|
46
|
-
type: String,
|
|
47
|
-
},
|
|
40
|
+
},
|
|
41
|
+
productWeight: {
|
|
42
|
+
value: {
|
|
43
|
+
type: Number,
|
|
48
44
|
},
|
|
49
|
-
|
|
45
|
+
unit: {
|
|
50
46
|
type: String,
|
|
51
47
|
},
|
|
52
|
-
productImageUrl: {
|
|
53
|
-
type: String,
|
|
54
|
-
}
|
|
55
48
|
},
|
|
56
|
-
{
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
49
|
+
productSize: {
|
|
50
|
+
type: String,
|
|
51
|
+
},
|
|
52
|
+
productImageUrl: {
|
|
53
|
+
type: String,
|
|
54
|
+
},
|
|
55
|
+
brandGroup: {
|
|
56
|
+
type: String
|
|
60
57
|
},
|
|
58
|
+
pid: {
|
|
59
|
+
type: Number
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
strict: false,
|
|
64
|
+
versionKey: false,
|
|
65
|
+
timestamps: true,
|
|
66
|
+
},
|
|
61
67
|
);
|
|
62
68
|
|
|
63
|
-
export default mongoose.model(
|
|
69
|
+
export default mongoose.model('planoProductDetail', planoProductDetailSchema);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import mongoose from 'mongoose';
|
|
2
2
|
|
|
3
|
-
const planoRevisionSchema = new mongoose.Schema(
|
|
3
|
+
const planoRevisionSchema = new mongoose.Schema({
|
|
4
4
|
storeName: {
|
|
5
5
|
type: String,
|
|
6
6
|
required: true,
|
|
@@ -17,43 +17,48 @@ const planoRevisionSchema = new mongoose.Schema( {
|
|
|
17
17
|
type: mongoose.Types.ObjectId,
|
|
18
18
|
required: true,
|
|
19
19
|
},
|
|
20
|
-
productResolutionLevel:{
|
|
21
|
-
type:String,
|
|
22
|
-
required:true
|
|
20
|
+
productResolutionLevel: {
|
|
21
|
+
type: String,
|
|
22
|
+
required: true
|
|
23
23
|
},
|
|
24
|
-
scanType:{
|
|
25
|
-
type:String,
|
|
26
|
-
required:true
|
|
24
|
+
scanType: {
|
|
25
|
+
type: String,
|
|
26
|
+
required: true
|
|
27
27
|
},
|
|
28
|
-
createdByName:{
|
|
29
|
-
type:String,
|
|
30
|
-
required:true
|
|
28
|
+
createdByName: {
|
|
29
|
+
type: String,
|
|
30
|
+
required: true
|
|
31
31
|
},
|
|
32
|
-
createdByEmail:{
|
|
33
|
-
type:String,
|
|
34
|
-
required:true
|
|
32
|
+
createdByEmail: {
|
|
33
|
+
type: String,
|
|
34
|
+
required: true
|
|
35
35
|
},
|
|
36
|
-
createdBy:{
|
|
37
|
-
type:mongoose.Types.ObjectId,
|
|
38
|
-
required:true
|
|
36
|
+
createdBy: {
|
|
37
|
+
type: mongoose.Types.ObjectId,
|
|
38
|
+
required: true
|
|
39
39
|
},
|
|
40
|
-
layoutName:{
|
|
41
|
-
type:String,
|
|
42
|
-
required:true
|
|
40
|
+
layoutName: {
|
|
41
|
+
type: String,
|
|
42
|
+
required: true
|
|
43
43
|
},
|
|
44
44
|
floorId: {
|
|
45
45
|
type: mongoose.Types.ObjectId,
|
|
46
46
|
required: true,
|
|
47
47
|
},
|
|
48
|
-
floorData:{
|
|
49
|
-
type:Object
|
|
48
|
+
floorData: {
|
|
49
|
+
type: Object
|
|
50
|
+
},
|
|
51
|
+
planoStrategy: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: 'nonivm',
|
|
54
|
+
enum: ['nonivm', 'ivm']
|
|
50
55
|
}
|
|
51
56
|
},
|
|
52
|
-
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
+
{
|
|
58
|
+
strict: true,
|
|
59
|
+
versionKey: false,
|
|
60
|
+
timestamps: true,
|
|
61
|
+
},
|
|
57
62
|
);
|
|
58
63
|
|
|
59
|
-
export default mongoose.model(
|
|
64
|
+
export default mongoose.model('planoRevision', planoRevisionSchema);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import mongoose from 'mongoose';
|
|
2
2
|
|
|
3
|
-
const planogramSchema = new mongoose.Schema(
|
|
3
|
+
const planogramSchema = new mongoose.Schema({
|
|
4
4
|
storeName: {
|
|
5
5
|
type: String,
|
|
6
6
|
required: true,
|
|
@@ -35,7 +35,7 @@ const planogramSchema = new mongoose.Schema( {
|
|
|
35
35
|
},
|
|
36
36
|
status: {
|
|
37
37
|
type: String,
|
|
38
|
-
enum: [
|
|
38
|
+
enum: ['draft', 'completed'],
|
|
39
39
|
default: 'draft',
|
|
40
40
|
},
|
|
41
41
|
floorNumber: {
|
|
@@ -44,13 +44,13 @@ const planogramSchema = new mongoose.Schema( {
|
|
|
44
44
|
},
|
|
45
45
|
productResolutionLevel: {
|
|
46
46
|
type: String,
|
|
47
|
-
enum: [
|
|
47
|
+
enum: ['L1', 'L2', 'L3', 'L4', 'L5'],
|
|
48
48
|
// L1- floor level, L2- fixture level, L3- fixture-shelf level, L4- fixture-shelf-product level
|
|
49
49
|
default: 'L3',
|
|
50
50
|
},
|
|
51
51
|
scanType: {
|
|
52
52
|
type: String,
|
|
53
|
-
enum: [
|
|
53
|
+
enum: ['rfid', 'qr'],
|
|
54
54
|
},
|
|
55
55
|
validateShelfSections: {
|
|
56
56
|
type: Boolean
|
|
@@ -58,17 +58,17 @@ const planogramSchema = new mongoose.Schema( {
|
|
|
58
58
|
isRfid: {
|
|
59
59
|
type: Boolean
|
|
60
60
|
},
|
|
61
|
-
planoStrategy:{
|
|
62
|
-
type:String,
|
|
63
|
-
default:'
|
|
64
|
-
enum: [
|
|
61
|
+
planoStrategy: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: 'nonivm',
|
|
64
|
+
enum: ['nonivm', 'ivm']
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
},
|
|
67
|
+
{
|
|
68
|
+
strict: true,
|
|
69
|
+
versionKey: false,
|
|
70
|
+
timestamps: true,
|
|
71
|
+
},
|
|
72
72
|
);
|
|
73
73
|
|
|
74
|
-
export default mongoose.model(
|
|
74
|
+
export default mongoose.model('planogram', planogramSchema);
|