tango-api-schema 2.2.141 → 2.2.143
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 +0 -8
- package/package.json +1 -1
- package/schema/appVersion.js +3 -0
- package/schema/checklistquestionconfig.js +3 -0
- package/schema/fixtureConfig.model.js +16 -162
- package/schema/fixtureShelf.model.js +4 -19
- package/schema/planoProductDetail.model.js +18 -1
- package/schema/planoTaskCompliance.model.js +14 -71
- package/schema/storeFixture.model.js +34 -101
- package/schema/fixtureLibrary.model.js +0 -181
- package/schema/planoProductCategoryDetails.model.js +0 -33
- package/schema/planoVmDetail.model.js +0 -63
- package/schema/vmType.model.js +0 -24
package/index.js
CHANGED
|
@@ -76,7 +76,6 @@ import planogramModel from "./schema/planogram.model.js";
|
|
|
76
76
|
import emailersModel from "./schema/emailers.model.js";
|
|
77
77
|
import planoMappingModel from './schema/planoMapping.model.js';
|
|
78
78
|
import planoProductModel from './schema/planoProductDetail.model.js';
|
|
79
|
-
import planoVmModel from './schema/planoVmDetail.model.js';
|
|
80
79
|
import planoComplianceModel from './schema/planoCompliance.model.js';
|
|
81
80
|
import storeFixtureModel from './schema/storeFixture.model.js';
|
|
82
81
|
import fixtureConfigModel from './schema/fixtureConfig.model.js';
|
|
@@ -89,9 +88,6 @@ import auditConfigModel from "./schema/auditConfig.model.js";
|
|
|
89
88
|
import revopConfigModel from "./schema/revopConfig.model.js";
|
|
90
89
|
import planoCrestLogModel from './schema/planoCrestLog.model.js';
|
|
91
90
|
import countryCurrencyModel from './schema/countryCurrency.model.js';
|
|
92
|
-
import fixtureLibraryModel from './schema/fixtureLibrary.model.js';
|
|
93
|
-
import vmTypeModel from "./schema/vmType.model.js";
|
|
94
|
-
import planoProductCategoryModel from './schema/planoProductCategoryDetails.model.js'
|
|
95
91
|
import streamingModel from './schema/streaming.model.js';
|
|
96
92
|
import loginAttempt from "./schema/loginAttempt.model.js";
|
|
97
93
|
import notification from "./schema/notification.model.js";
|
|
@@ -188,10 +184,6 @@ export default {
|
|
|
188
184
|
revopConfigModel,
|
|
189
185
|
planoCrestLogModel,
|
|
190
186
|
countryCurrencyModel,
|
|
191
|
-
fixtureLibraryModel,
|
|
192
|
-
planoVmModel,
|
|
193
|
-
vmTypeModel,
|
|
194
|
-
planoProductCategoryModel,
|
|
195
187
|
streamingModel,
|
|
196
188
|
loginAttempt,
|
|
197
189
|
notification
|
package/package.json
CHANGED
package/schema/appVersion.js
CHANGED
|
@@ -13,54 +13,15 @@ const fixtureConfigSchema = new mongoose.Schema(
|
|
|
13
13
|
type: String,
|
|
14
14
|
enum: [ 'wall', 'floor' ],
|
|
15
15
|
},
|
|
16
|
-
|
|
17
|
-
type: String,
|
|
18
|
-
required: true,
|
|
19
|
-
},
|
|
20
|
-
description: {
|
|
21
|
-
type: String,
|
|
22
|
-
},
|
|
23
|
-
fixtureLength: {
|
|
24
|
-
value: {
|
|
25
|
-
type: Number,
|
|
26
|
-
default: 0,
|
|
27
|
-
},
|
|
28
|
-
unit: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: '',
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
fixtureWidth: {
|
|
34
|
-
value: {
|
|
35
|
-
type: Number,
|
|
36
|
-
default: 0,
|
|
37
|
-
},
|
|
38
|
-
unit: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: '',
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
fixtureStaticLength: {
|
|
16
|
+
fixtureHeight: {
|
|
44
17
|
value: {
|
|
45
18
|
type: Number,
|
|
46
|
-
default: 0,
|
|
47
19
|
},
|
|
48
20
|
unit: {
|
|
49
21
|
type: String,
|
|
50
|
-
default: '',
|
|
51
22
|
},
|
|
52
23
|
},
|
|
53
|
-
|
|
54
|
-
value: {
|
|
55
|
-
type: Number,
|
|
56
|
-
default: 0,
|
|
57
|
-
},
|
|
58
|
-
unit: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: '',
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
detailedFixtureLength: {
|
|
24
|
+
fixtureLength: {
|
|
64
25
|
value: {
|
|
65
26
|
type: Number,
|
|
66
27
|
},
|
|
@@ -68,7 +29,7 @@ const fixtureConfigSchema = new mongoose.Schema(
|
|
|
68
29
|
type: String,
|
|
69
30
|
},
|
|
70
31
|
},
|
|
71
|
-
|
|
32
|
+
fixtureWidth: {
|
|
72
33
|
value: {
|
|
73
34
|
type: Number,
|
|
74
35
|
},
|
|
@@ -76,136 +37,29 @@ const fixtureConfigSchema = new mongoose.Schema(
|
|
|
76
37
|
type: String,
|
|
77
38
|
},
|
|
78
39
|
},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
type: Number,
|
|
82
|
-
required: true,
|
|
83
|
-
},
|
|
84
|
-
shelfType: {
|
|
85
|
-
type: String,
|
|
86
|
-
enum: ['shelf', 'tray'],
|
|
87
|
-
required: true,
|
|
88
|
-
},
|
|
89
|
-
productPerShelf: {
|
|
90
|
-
type: Number,
|
|
91
|
-
default: 0,
|
|
92
|
-
},
|
|
93
|
-
trayRows: {
|
|
94
|
-
type: Number,
|
|
95
|
-
default: 0,
|
|
96
|
-
},
|
|
97
|
-
label: {
|
|
98
|
-
type: String,
|
|
99
|
-
default: '',
|
|
100
|
-
},
|
|
101
|
-
productBrandName: {
|
|
102
|
-
type: Array,
|
|
103
|
-
},
|
|
104
|
-
productSubBrandName: {
|
|
105
|
-
type: Array,
|
|
106
|
-
},
|
|
107
|
-
productCategory:{
|
|
108
|
-
type:Array
|
|
109
|
-
},
|
|
110
|
-
productSubCategory:{
|
|
111
|
-
type:Array
|
|
112
|
-
},
|
|
113
|
-
zone: {
|
|
114
|
-
type: String,
|
|
115
|
-
},
|
|
116
|
-
} ],
|
|
117
|
-
vmConfig: [
|
|
118
|
-
{
|
|
119
|
-
vmId: {
|
|
120
|
-
type: mongoose.Types.ObjectId,
|
|
121
|
-
},
|
|
122
|
-
startYPosition: {
|
|
123
|
-
type: Number,
|
|
124
|
-
},
|
|
125
|
-
endYPosition: {
|
|
126
|
-
type: Number,
|
|
127
|
-
},
|
|
128
|
-
xZone: {
|
|
129
|
-
type: String,
|
|
130
|
-
},
|
|
131
|
-
yZone: {
|
|
132
|
-
type: String,
|
|
133
|
-
},
|
|
134
|
-
position: {
|
|
135
|
-
type: String,
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
],
|
|
139
|
-
header: {
|
|
140
|
-
height: {
|
|
141
|
-
value: {
|
|
142
|
-
type: Number,
|
|
143
|
-
default: 0,
|
|
144
|
-
},
|
|
145
|
-
unit: {
|
|
146
|
-
type: String,
|
|
147
|
-
default: '',
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
label: {
|
|
151
|
-
type: String,
|
|
152
|
-
},
|
|
153
|
-
isEnabled: {
|
|
154
|
-
type: Boolean,
|
|
155
|
-
default: true,
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
footer: {
|
|
159
|
-
height: {
|
|
160
|
-
value: {
|
|
161
|
-
type: Number,
|
|
162
|
-
default: 0,
|
|
163
|
-
},
|
|
164
|
-
unit: {
|
|
165
|
-
type: String,
|
|
166
|
-
default: '',
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
label: {
|
|
170
|
-
type: String,
|
|
171
|
-
},
|
|
172
|
-
isEnabled: {
|
|
173
|
-
type: Boolean,
|
|
174
|
-
default: true,
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
isBodyEnabled: {
|
|
178
|
-
type: Boolean,
|
|
179
|
-
default: true,
|
|
180
|
-
},
|
|
181
|
-
productResolutionLevel: {
|
|
182
|
-
type: String,
|
|
183
|
-
enum: [ 'L1', 'L2', 'L3', 'L4' ],
|
|
40
|
+
shelfCount: {
|
|
41
|
+
type: Number,
|
|
184
42
|
},
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
required: true,
|
|
43
|
+
productPerShelf: {
|
|
44
|
+
type: Number,
|
|
188
45
|
},
|
|
189
46
|
fixtureCapacity: {
|
|
190
47
|
type: Number,
|
|
191
|
-
default: 0,
|
|
192
48
|
},
|
|
193
|
-
|
|
49
|
+
sections:{
|
|
194
50
|
type: Array,
|
|
195
51
|
},
|
|
196
|
-
|
|
197
|
-
|
|
52
|
+
fixtureCode:{
|
|
53
|
+
type: String,
|
|
198
54
|
},
|
|
199
|
-
|
|
200
|
-
|
|
55
|
+
fixtureConfigType: {
|
|
56
|
+
type: String
|
|
201
57
|
},
|
|
202
|
-
|
|
203
|
-
type:
|
|
204
|
-
enum: [ 'draft', 'complete' ],
|
|
205
|
-
default: 'draft',
|
|
58
|
+
shelfConfig:{
|
|
59
|
+
type: Array,
|
|
206
60
|
},
|
|
207
|
-
|
|
208
|
-
type:
|
|
61
|
+
vmConfig:{
|
|
62
|
+
type: Array,
|
|
209
63
|
},
|
|
210
64
|
},
|
|
211
65
|
{
|
|
@@ -40,14 +40,8 @@ const fixtureShelfSchema = new mongoose.Schema(
|
|
|
40
40
|
type: Number,
|
|
41
41
|
required: true,
|
|
42
42
|
},
|
|
43
|
-
|
|
44
|
-
type:
|
|
45
|
-
},
|
|
46
|
-
productCategory:{
|
|
47
|
-
type:Array
|
|
48
|
-
},
|
|
49
|
-
productSubCategory:{
|
|
50
|
-
type:Array
|
|
43
|
+
sectionName:{
|
|
44
|
+
type: String
|
|
51
45
|
},
|
|
52
46
|
sectionZone:{
|
|
53
47
|
type: String
|
|
@@ -55,18 +49,9 @@ const fixtureShelfSchema = new mongoose.Schema(
|
|
|
55
49
|
rfId:{
|
|
56
50
|
type:String
|
|
57
51
|
},
|
|
58
|
-
|
|
59
|
-
type: String,
|
|
60
|
-
enum: [ 'shelf', 'tray' ],
|
|
61
|
-
},
|
|
62
|
-
productPerShelf: {
|
|
63
|
-
type: Number,
|
|
64
|
-
default: 0,
|
|
65
|
-
},
|
|
66
|
-
trayRows: {
|
|
52
|
+
shelfSplitup: {
|
|
67
53
|
type: Number,
|
|
68
|
-
|
|
69
|
-
},
|
|
54
|
+
}
|
|
70
55
|
},
|
|
71
56
|
{
|
|
72
57
|
strict: true,
|
|
@@ -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
|
},
|
|
@@ -51,7 +55,20 @@ const planoProductDetailSchema = new mongoose.Schema(
|
|
|
51
55
|
},
|
|
52
56
|
productImageUrl: {
|
|
53
57
|
type: String,
|
|
54
|
-
}
|
|
58
|
+
},
|
|
59
|
+
startYPosition: {
|
|
60
|
+
type: String,
|
|
61
|
+
},
|
|
62
|
+
endYPosition: {
|
|
63
|
+
type: String,
|
|
64
|
+
},
|
|
65
|
+
xZone:{
|
|
66
|
+
type: String
|
|
67
|
+
},
|
|
68
|
+
fixtureConfigId: {
|
|
69
|
+
type: mongoose.Types.ObjectId,
|
|
70
|
+
},
|
|
71
|
+
|
|
55
72
|
},
|
|
56
73
|
{
|
|
57
74
|
strict: false,
|
|
@@ -7,64 +7,10 @@ const planoTaskCompliance = new mongoose.Schema(
|
|
|
7
7
|
enum: ['complete', 'incomplete', 'missing'],
|
|
8
8
|
required: true
|
|
9
9
|
},
|
|
10
|
-
answers:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
userName: {
|
|
16
|
-
type: String
|
|
17
|
-
},
|
|
18
|
-
role: {
|
|
19
|
-
type: String
|
|
20
|
-
},
|
|
21
|
-
qno: {
|
|
22
|
-
type: Number,
|
|
23
|
-
},
|
|
24
|
-
question: {
|
|
25
|
-
type: String
|
|
26
|
-
},
|
|
27
|
-
timeStamp: {
|
|
28
|
-
type: Date,
|
|
29
|
-
default: Date.now()
|
|
30
|
-
},
|
|
31
|
-
answer: {
|
|
32
|
-
type: Boolean
|
|
33
|
-
},
|
|
34
|
-
comment: {
|
|
35
|
-
type: String
|
|
36
|
-
},
|
|
37
|
-
issues: [
|
|
38
|
-
{
|
|
39
|
-
userId: {
|
|
40
|
-
type: mongoose.Types.ObjectId,
|
|
41
|
-
},
|
|
42
|
-
userName: {
|
|
43
|
-
type: String
|
|
44
|
-
},
|
|
45
|
-
role: {
|
|
46
|
-
type: String
|
|
47
|
-
},
|
|
48
|
-
qno: {
|
|
49
|
-
type: Number,
|
|
50
|
-
},
|
|
51
|
-
question: {
|
|
52
|
-
type: String
|
|
53
|
-
},
|
|
54
|
-
timeStamp: {
|
|
55
|
-
type: Date,
|
|
56
|
-
default: Date.now()
|
|
57
|
-
},
|
|
58
|
-
video: {
|
|
59
|
-
type: String
|
|
60
|
-
},
|
|
61
|
-
image: {
|
|
62
|
-
type: String
|
|
63
|
-
},
|
|
64
|
-
Details: []
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
}],
|
|
10
|
+
answers: {
|
|
11
|
+
type: Array,
|
|
12
|
+
default: []
|
|
13
|
+
},
|
|
68
14
|
planoId: {
|
|
69
15
|
type: mongoose.Types.ObjectId,
|
|
70
16
|
required: true
|
|
@@ -81,21 +27,18 @@ const planoTaskCompliance = new mongoose.Schema(
|
|
|
81
27
|
enum: ['fixture', 'vm', 'product', 'layout'],
|
|
82
28
|
required: true
|
|
83
29
|
},
|
|
84
|
-
date_string:
|
|
85
|
-
type:
|
|
86
|
-
required:
|
|
30
|
+
date_string:{
|
|
31
|
+
type:String,
|
|
32
|
+
required:true
|
|
87
33
|
},
|
|
88
|
-
storeName:
|
|
89
|
-
type:
|
|
34
|
+
storeName:{
|
|
35
|
+
type:String
|
|
90
36
|
},
|
|
91
|
-
|
|
92
|
-
type:
|
|
93
|
-
},
|
|
94
|
-
taskId: {
|
|
95
|
-
type: mongoose.Types.ObjectId
|
|
37
|
+
taskId:{
|
|
38
|
+
type:mongoose.Types.ObjectId
|
|
96
39
|
},
|
|
97
|
-
date_iso:
|
|
98
|
-
type:
|
|
40
|
+
date_iso:{
|
|
41
|
+
type:Date
|
|
99
42
|
}
|
|
100
43
|
},
|
|
101
44
|
{
|
|
@@ -104,4 +47,4 @@ const planoTaskCompliance = new mongoose.Schema(
|
|
|
104
47
|
}
|
|
105
48
|
);
|
|
106
49
|
|
|
107
|
-
export default mongoose.model('planotaskcompliance', planoTaskCompliance);
|
|
50
|
+
export default mongoose.model('planotaskcompliance', planoTaskCompliance);
|
|
@@ -26,64 +26,42 @@ const storeFixtureSchema = new mongoose.Schema(
|
|
|
26
26
|
type: String,
|
|
27
27
|
required: true,
|
|
28
28
|
},
|
|
29
|
-
description: {
|
|
30
|
-
type: String,
|
|
31
|
-
},
|
|
32
29
|
fixtureCategory: {
|
|
33
30
|
type: String,
|
|
34
31
|
},
|
|
35
|
-
|
|
36
|
-
type:
|
|
37
|
-
},
|
|
38
|
-
productCategory:{
|
|
39
|
-
type:Array
|
|
32
|
+
fixtureBrandCategory: {
|
|
33
|
+
type: String,
|
|
40
34
|
},
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
fixtureBrandSubCategory: {
|
|
36
|
+
type: String,
|
|
43
37
|
},
|
|
44
38
|
fixtureType: {
|
|
45
39
|
type: String,
|
|
46
40
|
enum: [ 'wall', 'floor', 'other' ],
|
|
47
41
|
required: true,
|
|
48
42
|
},
|
|
49
|
-
|
|
43
|
+
fixtureHeight: {
|
|
50
44
|
value: {
|
|
51
45
|
type: Number,
|
|
52
|
-
default: 0,
|
|
53
46
|
},
|
|
54
47
|
unit: {
|
|
55
48
|
type: String,
|
|
56
|
-
default: '',
|
|
57
49
|
},
|
|
58
50
|
},
|
|
59
|
-
|
|
60
|
-
value: {
|
|
61
|
-
type: Number,
|
|
62
|
-
default: 0,
|
|
63
|
-
},
|
|
64
|
-
unit: {
|
|
65
|
-
type: String,
|
|
66
|
-
default: '',
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
fixtureStaticLength: {
|
|
51
|
+
fixtureLength: {
|
|
70
52
|
value: {
|
|
71
53
|
type: Number,
|
|
72
|
-
default: 0,
|
|
73
54
|
},
|
|
74
55
|
unit: {
|
|
75
56
|
type: String,
|
|
76
|
-
default: '',
|
|
77
57
|
},
|
|
78
58
|
},
|
|
79
|
-
|
|
59
|
+
fixtureWidth: {
|
|
80
60
|
value: {
|
|
81
61
|
type: Number,
|
|
82
|
-
default: 0,
|
|
83
62
|
},
|
|
84
63
|
unit: {
|
|
85
64
|
type: String,
|
|
86
|
-
default: '',
|
|
87
65
|
},
|
|
88
66
|
},
|
|
89
67
|
detailedFixtureLength: {
|
|
@@ -102,9 +80,18 @@ const storeFixtureSchema = new mongoose.Schema(
|
|
|
102
80
|
type: String,
|
|
103
81
|
},
|
|
104
82
|
},
|
|
83
|
+
productPerShelf: {
|
|
84
|
+
type: Number,
|
|
85
|
+
},
|
|
86
|
+
mbq: {
|
|
87
|
+
type: Number,
|
|
88
|
+
},
|
|
105
89
|
fixtureCapacity: {
|
|
106
90
|
type: Number,
|
|
107
91
|
},
|
|
92
|
+
shelfcount: {
|
|
93
|
+
type: Number,
|
|
94
|
+
},
|
|
108
95
|
associatedElementType: {
|
|
109
96
|
type: String,
|
|
110
97
|
enum: [ 'wall', 'facade' ],
|
|
@@ -112,6 +99,9 @@ const storeFixtureSchema = new mongoose.Schema(
|
|
|
112
99
|
associatedElementNumber: {
|
|
113
100
|
type: Number,
|
|
114
101
|
},
|
|
102
|
+
fixtureConfigId: {
|
|
103
|
+
type: mongoose.Types.ObjectId,
|
|
104
|
+
},
|
|
115
105
|
relativePosition: {
|
|
116
106
|
x: {
|
|
117
107
|
type: Number,
|
|
@@ -134,91 +124,37 @@ const storeFixtureSchema = new mongoose.Schema(
|
|
|
134
124
|
type: String,
|
|
135
125
|
},
|
|
136
126
|
},
|
|
127
|
+
fixtureOrder: {
|
|
128
|
+
type: String,
|
|
129
|
+
enum: [ 'TTB', 'BTT' ],
|
|
130
|
+
// TTB - Top to Bottom, BTT - Bottom to Top
|
|
131
|
+
},
|
|
137
132
|
fixtureNumber: {
|
|
138
133
|
type: Number,
|
|
139
134
|
},
|
|
140
135
|
productResolutionLevel: {
|
|
141
136
|
type: String,
|
|
142
137
|
enum: [ 'L1', 'L2', 'L3', 'L4', 'L5' ],
|
|
143
|
-
// L1-
|
|
138
|
+
// L1- floor level, L2- fixture level, L3- fixture-shelf level, L4- fixture-shelf-product level
|
|
144
139
|
},
|
|
145
140
|
imageUrl: {
|
|
146
141
|
type: String,
|
|
147
142
|
},
|
|
143
|
+
vmImageUrl: {
|
|
144
|
+
type: String,
|
|
145
|
+
},
|
|
146
|
+
fixtureCode: {
|
|
147
|
+
type: String,
|
|
148
|
+
},
|
|
148
149
|
header: {
|
|
149
|
-
|
|
150
|
-
value: {
|
|
151
|
-
type: Number,
|
|
152
|
-
default: 0,
|
|
153
|
-
},
|
|
154
|
-
unit: {
|
|
155
|
-
type: String,
|
|
156
|
-
default: '',
|
|
157
|
-
},
|
|
158
|
-
},
|
|
159
|
-
label: {
|
|
160
|
-
type: String,
|
|
161
|
-
},
|
|
162
|
-
isEnabled: {
|
|
163
|
-
type: Boolean,
|
|
164
|
-
default: true,
|
|
165
|
-
},
|
|
150
|
+
type: String,
|
|
166
151
|
},
|
|
167
152
|
footer: {
|
|
168
|
-
|
|
169
|
-
value: {
|
|
170
|
-
type: Number,
|
|
171
|
-
default: 0,
|
|
172
|
-
},
|
|
173
|
-
unit: {
|
|
174
|
-
type: String,
|
|
175
|
-
default: '',
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
label: {
|
|
179
|
-
type: String,
|
|
180
|
-
},
|
|
181
|
-
isEnabled: {
|
|
182
|
-
type: Boolean,
|
|
183
|
-
default: true,
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
|
-
isBodyEnabled: {
|
|
187
|
-
type: Boolean,
|
|
188
|
-
default: true,
|
|
153
|
+
type: String,
|
|
189
154
|
},
|
|
190
155
|
associatedElementFixtureNumber: {
|
|
191
156
|
type: Number,
|
|
192
157
|
},
|
|
193
|
-
vmConfig: [
|
|
194
|
-
{
|
|
195
|
-
vmId: {
|
|
196
|
-
type: mongoose.Types.ObjectId,
|
|
197
|
-
},
|
|
198
|
-
startYPosition: {
|
|
199
|
-
type: Number,
|
|
200
|
-
},
|
|
201
|
-
endYPosition: {
|
|
202
|
-
type: Number,
|
|
203
|
-
},
|
|
204
|
-
xZone: {
|
|
205
|
-
type: String,
|
|
206
|
-
},
|
|
207
|
-
yZone: {
|
|
208
|
-
type: String,
|
|
209
|
-
},
|
|
210
|
-
position: {
|
|
211
|
-
type: String,
|
|
212
|
-
},
|
|
213
|
-
},
|
|
214
|
-
],
|
|
215
|
-
fixtureLibraryId: {
|
|
216
|
-
type: mongoose.Types.ObjectId,
|
|
217
|
-
},
|
|
218
|
-
fixtureConfigId: {
|
|
219
|
-
type: mongoose.Types.ObjectId,
|
|
220
|
-
},
|
|
221
|
-
|
|
222
158
|
},
|
|
223
159
|
{
|
|
224
160
|
strict: true,
|
|
@@ -227,7 +163,4 @@ const storeFixtureSchema = new mongoose.Schema(
|
|
|
227
163
|
},
|
|
228
164
|
);
|
|
229
165
|
|
|
230
|
-
export default mongoose.model( 'storeFixture', storeFixtureSchema );
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
166
|
+
export default mongoose.model( 'storeFixture', storeFixtureSchema );
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const fixtureLibrarySchema = new mongoose.Schema(
|
|
4
|
-
{
|
|
5
|
-
clientId: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: true,
|
|
8
|
-
},
|
|
9
|
-
fixtureCategory: {
|
|
10
|
-
type: String,
|
|
11
|
-
},
|
|
12
|
-
fixtureType: {
|
|
13
|
-
type: String,
|
|
14
|
-
enum: ['wall', 'floor'],
|
|
15
|
-
},
|
|
16
|
-
fixtureLength: {
|
|
17
|
-
value: {
|
|
18
|
-
type: Number,
|
|
19
|
-
default: 0,
|
|
20
|
-
},
|
|
21
|
-
unit: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: 'ft',
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
fixtureWidth: {
|
|
27
|
-
value: {
|
|
28
|
-
type: Number,
|
|
29
|
-
default: 0,
|
|
30
|
-
},
|
|
31
|
-
unit: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: 'ft',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
fixtureStaticLength: {
|
|
37
|
-
value: {
|
|
38
|
-
type: Number,
|
|
39
|
-
default: 0,
|
|
40
|
-
},
|
|
41
|
-
unit: {
|
|
42
|
-
type: String,
|
|
43
|
-
default: '',
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
fixtureStaticWidth: {
|
|
47
|
-
value: {
|
|
48
|
-
type: Number,
|
|
49
|
-
default: 0,
|
|
50
|
-
},
|
|
51
|
-
unit: {
|
|
52
|
-
type: String,
|
|
53
|
-
default: '',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
detailedFixtureLength: {
|
|
57
|
-
value: {
|
|
58
|
-
type: Number,
|
|
59
|
-
},
|
|
60
|
-
unit: {
|
|
61
|
-
type: String,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
detailedFixtureWidth: {
|
|
65
|
-
value: {
|
|
66
|
-
type: Number,
|
|
67
|
-
},
|
|
68
|
-
unit: {
|
|
69
|
-
type: String,
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
header: {
|
|
73
|
-
isEnabled: {
|
|
74
|
-
type: Boolean,
|
|
75
|
-
default: true,
|
|
76
|
-
},
|
|
77
|
-
height: {
|
|
78
|
-
value: {
|
|
79
|
-
type: Number,
|
|
80
|
-
default: 0,
|
|
81
|
-
},
|
|
82
|
-
unit: {
|
|
83
|
-
type: String,
|
|
84
|
-
default: 'mm',
|
|
85
|
-
},
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
footer: {
|
|
89
|
-
isEnabled: {
|
|
90
|
-
type: Boolean,
|
|
91
|
-
default: true,
|
|
92
|
-
},
|
|
93
|
-
height: {
|
|
94
|
-
value: {
|
|
95
|
-
type: Number,
|
|
96
|
-
default: 0,
|
|
97
|
-
},
|
|
98
|
-
unit: {
|
|
99
|
-
type: String,
|
|
100
|
-
default: 'mm',
|
|
101
|
-
},
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
isBodyEnabled: {
|
|
105
|
-
type: Boolean,
|
|
106
|
-
default: true,
|
|
107
|
-
},
|
|
108
|
-
fixtureCapacity: {
|
|
109
|
-
type: Number,
|
|
110
|
-
default: 0,
|
|
111
|
-
},
|
|
112
|
-
status: {
|
|
113
|
-
type: String,
|
|
114
|
-
enum: ['draft', 'complete'],
|
|
115
|
-
default: 'draft',
|
|
116
|
-
},
|
|
117
|
-
shelfConfig: [
|
|
118
|
-
{
|
|
119
|
-
shelfNumber: {
|
|
120
|
-
type: Number,
|
|
121
|
-
required: true,
|
|
122
|
-
},
|
|
123
|
-
shelfType: {
|
|
124
|
-
type: String,
|
|
125
|
-
enum: ['shelf', 'tray'],
|
|
126
|
-
},
|
|
127
|
-
zone: {
|
|
128
|
-
type: String,
|
|
129
|
-
},
|
|
130
|
-
productPerShelf: {
|
|
131
|
-
type: Number,
|
|
132
|
-
default: 0,
|
|
133
|
-
},
|
|
134
|
-
trayRows: {
|
|
135
|
-
type: Number,
|
|
136
|
-
default: 0,
|
|
137
|
-
},
|
|
138
|
-
label: {
|
|
139
|
-
type: String,
|
|
140
|
-
default: '',
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
],
|
|
144
|
-
vmConfig: [
|
|
145
|
-
{
|
|
146
|
-
vmNumber: {
|
|
147
|
-
type: Number,
|
|
148
|
-
},
|
|
149
|
-
vmHeightmm: {
|
|
150
|
-
type: Number,
|
|
151
|
-
},
|
|
152
|
-
vmWidthmm: {
|
|
153
|
-
type: Number,
|
|
154
|
-
},
|
|
155
|
-
startShelf: {
|
|
156
|
-
type: Number,
|
|
157
|
-
},
|
|
158
|
-
endShelf: {
|
|
159
|
-
type: Number,
|
|
160
|
-
},
|
|
161
|
-
zone: {
|
|
162
|
-
type: String,
|
|
163
|
-
},
|
|
164
|
-
position: {
|
|
165
|
-
type: String,
|
|
166
|
-
},
|
|
167
|
-
},
|
|
168
|
-
],
|
|
169
|
-
fixtureLibCode:{
|
|
170
|
-
type:String
|
|
171
|
-
},
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
strict: true,
|
|
175
|
-
versionKey: false,
|
|
176
|
-
timestamps: true,
|
|
177
|
-
},
|
|
178
|
-
);
|
|
179
|
-
|
|
180
|
-
export default mongoose.model( 'fixtureLibrary', fixtureLibrarySchema );
|
|
181
|
-
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const planoProductCategorySchema = new mongoose.Schema(
|
|
4
|
-
{
|
|
5
|
-
clientId: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: true,
|
|
8
|
-
},
|
|
9
|
-
brandName:{
|
|
10
|
-
type:String
|
|
11
|
-
},
|
|
12
|
-
brandDetails:[
|
|
13
|
-
{
|
|
14
|
-
subBrandName:{
|
|
15
|
-
type:String
|
|
16
|
-
},
|
|
17
|
-
category:{
|
|
18
|
-
type:Array
|
|
19
|
-
},
|
|
20
|
-
subCategory:{
|
|
21
|
-
type:Array
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
strict: true,
|
|
28
|
-
versionKey: false,
|
|
29
|
-
timestamps: true,
|
|
30
|
-
},
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
export default mongoose.model( 'planoProductCategory', planoProductCategorySchema );
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const planoVmDetailSchema = new mongoose.Schema(
|
|
4
|
-
{
|
|
5
|
-
clientId: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: true,
|
|
8
|
-
},
|
|
9
|
-
vmName: {
|
|
10
|
-
type: String,
|
|
11
|
-
},
|
|
12
|
-
vmType: {
|
|
13
|
-
type: String,
|
|
14
|
-
},
|
|
15
|
-
vmHeight: {
|
|
16
|
-
value: {
|
|
17
|
-
type: Number,
|
|
18
|
-
},
|
|
19
|
-
unit: {
|
|
20
|
-
type: String,
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
vmWidth: {
|
|
24
|
-
value: {
|
|
25
|
-
type: Number,
|
|
26
|
-
},
|
|
27
|
-
unit: {
|
|
28
|
-
type: String,
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
vmImageUrl: {
|
|
32
|
-
type: String,
|
|
33
|
-
},
|
|
34
|
-
isDoubleSided: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
},
|
|
37
|
-
status: {
|
|
38
|
-
type: String,
|
|
39
|
-
enum: [ 'draft', 'complete' ],
|
|
40
|
-
default: 'draft',
|
|
41
|
-
},
|
|
42
|
-
vmBrand:{
|
|
43
|
-
type:String
|
|
44
|
-
},
|
|
45
|
-
vmSubBrand: {
|
|
46
|
-
type: String,
|
|
47
|
-
},
|
|
48
|
-
vmCategory: {
|
|
49
|
-
type: String,
|
|
50
|
-
},
|
|
51
|
-
crestImageId: {
|
|
52
|
-
type: String,
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
strict: false,
|
|
58
|
-
versionKey: false,
|
|
59
|
-
timestamps: true,
|
|
60
|
-
},
|
|
61
|
-
);
|
|
62
|
-
|
|
63
|
-
export default mongoose.model( 'planoVmDetail', planoVmDetailSchema );
|
package/schema/vmType.model.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const vmTypeSchema = new mongoose.Schema(
|
|
4
|
-
{
|
|
5
|
-
clientId: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: true,
|
|
8
|
-
},
|
|
9
|
-
vmType:{
|
|
10
|
-
type:String,
|
|
11
|
-
required:true
|
|
12
|
-
},
|
|
13
|
-
imageUrls:{
|
|
14
|
-
type:Array
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
strict: true,
|
|
19
|
-
versionKey: false,
|
|
20
|
-
timestamps: true,
|
|
21
|
-
},
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
export default mongoose.model( 'vmType', vmTypeSchema );
|