tango-api-schema 2.2.52 → 2.2.53
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
CHANGED
|
@@ -10,6 +10,10 @@ const planoProductDetailSchema = new mongoose.Schema(
|
|
|
10
10
|
type: String,
|
|
11
11
|
required: true,
|
|
12
12
|
},
|
|
13
|
+
type: {
|
|
14
|
+
type: String,
|
|
15
|
+
enum: [ 'product', 'vm' ],
|
|
16
|
+
},
|
|
13
17
|
productName: {
|
|
14
18
|
type: String,
|
|
15
19
|
},
|
|
@@ -28,7 +32,6 @@ const planoProductDetailSchema = new mongoose.Schema(
|
|
|
28
32
|
},
|
|
29
33
|
unit: {
|
|
30
34
|
type: String,
|
|
31
|
-
default: 'mm',
|
|
32
35
|
},
|
|
33
36
|
},
|
|
34
37
|
productWidth: {
|
|
@@ -37,7 +40,6 @@ const planoProductDetailSchema = new mongoose.Schema(
|
|
|
37
40
|
},
|
|
38
41
|
unit: {
|
|
39
42
|
type: String,
|
|
40
|
-
default: 'mm',
|
|
41
43
|
},
|
|
42
44
|
},
|
|
43
45
|
productWeight: {
|
|
@@ -46,7 +48,6 @@ const planoProductDetailSchema = new mongoose.Schema(
|
|
|
46
48
|
},
|
|
47
49
|
unit: {
|
|
48
50
|
type: String,
|
|
49
|
-
default: 'g',
|
|
50
51
|
},
|
|
51
52
|
},
|
|
52
53
|
productSize: {
|
|
@@ -37,31 +37,41 @@ const storeFixtureSchema = new mongoose.Schema(
|
|
|
37
37
|
fixtureHeight: {
|
|
38
38
|
value: {
|
|
39
39
|
type: Number,
|
|
40
|
-
default: 0
|
|
41
40
|
},
|
|
42
41
|
unit: {
|
|
43
42
|
type: String,
|
|
44
|
-
default: 'mm',
|
|
45
43
|
},
|
|
46
44
|
},
|
|
47
45
|
fixtureLength: {
|
|
48
46
|
value: {
|
|
49
47
|
type: Number,
|
|
50
|
-
default: 0
|
|
51
48
|
},
|
|
52
49
|
unit: {
|
|
53
50
|
type: String,
|
|
54
|
-
default: 'mm',
|
|
55
51
|
},
|
|
56
52
|
},
|
|
57
53
|
fixtureWidth: {
|
|
58
54
|
value: {
|
|
59
55
|
type: Number,
|
|
60
|
-
default: 914,
|
|
61
56
|
},
|
|
62
57
|
unit: {
|
|
63
58
|
type: String,
|
|
64
|
-
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
detailedFixtureLength: {
|
|
62
|
+
value: {
|
|
63
|
+
type: Number,
|
|
64
|
+
},
|
|
65
|
+
unit: {
|
|
66
|
+
type: String,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
detailedFixtureWidth: {
|
|
70
|
+
value: {
|
|
71
|
+
type: Number,
|
|
72
|
+
},
|
|
73
|
+
unit: {
|
|
74
|
+
type: String,
|
|
65
75
|
},
|
|
66
76
|
},
|
|
67
77
|
productPerShelf: {
|
|
@@ -89,29 +99,23 @@ const storeFixtureSchema = new mongoose.Schema(
|
|
|
89
99
|
relativePosition: {
|
|
90
100
|
x: {
|
|
91
101
|
type: Number,
|
|
92
|
-
default: 0,
|
|
93
102
|
},
|
|
94
103
|
y: {
|
|
95
104
|
type: Number,
|
|
96
|
-
default: 0,
|
|
97
105
|
},
|
|
98
106
|
unit: {
|
|
99
107
|
type: String,
|
|
100
|
-
default: 'mm',
|
|
101
108
|
},
|
|
102
109
|
},
|
|
103
110
|
relativeDetailedPosition: {
|
|
104
111
|
x: {
|
|
105
112
|
type: Number,
|
|
106
|
-
default: 0,
|
|
107
113
|
},
|
|
108
114
|
y: {
|
|
109
115
|
type: Number,
|
|
110
|
-
default: 0,
|
|
111
116
|
},
|
|
112
117
|
unit: {
|
|
113
118
|
type: String,
|
|
114
|
-
default: 'mm',
|
|
115
119
|
},
|
|
116
120
|
},
|
|
117
121
|
fixtureOrder: {
|
|
@@ -126,8 +130,10 @@ const storeFixtureSchema = new mongoose.Schema(
|
|
|
126
130
|
type: String,
|
|
127
131
|
enum: [ 'L1', 'L2', 'L3', 'L4', 'L5' ],
|
|
128
132
|
// L1- floor level, L2- fixture level, L3- fixture-shelf level, L4- fixture-shelf-product level
|
|
129
|
-
|
|
130
|
-
|
|
133
|
+
},
|
|
134
|
+
imageUrl: {
|
|
135
|
+
type: String,
|
|
136
|
+
},
|
|
131
137
|
},
|
|
132
138
|
{
|
|
133
139
|
strict: true,
|