tango-api-schema 2.4.11 → 2.4.13
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 +1 -1
- package/schema/client.model.js +4 -0
- package/schema/fixtureConfigDuplicate.model.js +223 -223
- package/schema/fixtureLibraryDuplicate.model.js +167 -167
- package/schema/fixtureShelfDuplicate.model.js +78 -78
- package/schema/planoMappingDuplicate.model.js +62 -62
- package/schema/planoProductDetailDuplicate.model.js +63 -63
- package/schema/planoVmDetailDuplicate.model.js +63 -63
- package/schema/planogram.model.js +3 -0
- package/schema/planogramDuplicate.model.js +66 -66
- package/schema/storeFixtureDuplicate.model.js +231 -231
- package/schema/storeLayoutDuplicate.model.js +74 -74
|
@@ -1,168 +1,168 @@
|
|
|
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: 1524,
|
|
40
|
-
},
|
|
41
|
-
unit: {
|
|
42
|
-
type: String,
|
|
43
|
-
default: 'mm',
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
fixtureStaticWidth: {
|
|
47
|
-
value: {
|
|
48
|
-
type: Number,
|
|
49
|
-
default: 1220,
|
|
50
|
-
},
|
|
51
|
-
unit: {
|
|
52
|
-
type: String,
|
|
53
|
-
default: 'mm',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
header: {
|
|
57
|
-
isEnabled: {
|
|
58
|
-
type: Boolean,
|
|
59
|
-
default: true,
|
|
60
|
-
},
|
|
61
|
-
height: {
|
|
62
|
-
value: {
|
|
63
|
-
type: Number,
|
|
64
|
-
default: 0,
|
|
65
|
-
},
|
|
66
|
-
unit: {
|
|
67
|
-
type: String,
|
|
68
|
-
default: 'mm',
|
|
69
|
-
},
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
footer: {
|
|
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
|
-
isBodyEnabled: {
|
|
89
|
-
type: Boolean,
|
|
90
|
-
default: true,
|
|
91
|
-
},
|
|
92
|
-
fixtureCapacity: {
|
|
93
|
-
type: Number,
|
|
94
|
-
default: 0,
|
|
95
|
-
},
|
|
96
|
-
status: {
|
|
97
|
-
type: String,
|
|
98
|
-
enum: ['draft', 'complete'],
|
|
99
|
-
default: 'draft',
|
|
100
|
-
},
|
|
101
|
-
shelfConfig: [
|
|
102
|
-
{
|
|
103
|
-
shelfNumber: {
|
|
104
|
-
type: Number,
|
|
105
|
-
required: true,
|
|
106
|
-
},
|
|
107
|
-
shelfType: {
|
|
108
|
-
type: String,
|
|
109
|
-
enum: ['shelf', 'tray'],
|
|
110
|
-
},
|
|
111
|
-
zone: {
|
|
112
|
-
type: String,
|
|
113
|
-
},
|
|
114
|
-
shelfZone: {
|
|
115
|
-
type: String,
|
|
116
|
-
},
|
|
117
|
-
productPerShelf: {
|
|
118
|
-
type: Number,
|
|
119
|
-
default: 0,
|
|
120
|
-
},
|
|
121
|
-
trayRows: {
|
|
122
|
-
type: Number,
|
|
123
|
-
default: 0,
|
|
124
|
-
},
|
|
125
|
-
label: {
|
|
126
|
-
type: String,
|
|
127
|
-
default: '',
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
|
-
vmConfig: [
|
|
132
|
-
{
|
|
133
|
-
vmNumber: {
|
|
134
|
-
type: Number,
|
|
135
|
-
},
|
|
136
|
-
vmHeightmm: {
|
|
137
|
-
type: Number,
|
|
138
|
-
},
|
|
139
|
-
vmWidthmm: {
|
|
140
|
-
type: Number,
|
|
141
|
-
},
|
|
142
|
-
startShelf: {
|
|
143
|
-
type: Number,
|
|
144
|
-
},
|
|
145
|
-
endShelf: {
|
|
146
|
-
type: Number,
|
|
147
|
-
},
|
|
148
|
-
zone: {
|
|
149
|
-
type: String,
|
|
150
|
-
},
|
|
151
|
-
position: {
|
|
152
|
-
type: String,
|
|
153
|
-
},
|
|
154
|
-
},
|
|
155
|
-
],
|
|
156
|
-
fixtureLibCode:{
|
|
157
|
-
type:String
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
strict: true,
|
|
162
|
-
versionKey: false,
|
|
163
|
-
timestamps: true,
|
|
164
|
-
},
|
|
165
|
-
);
|
|
166
|
-
|
|
167
|
-
export default mongoose.model( 'fixtureLibraryDuplicate', fixtureLibrarySchema );
|
|
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: 1524,
|
|
40
|
+
},
|
|
41
|
+
unit: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: 'mm',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
fixtureStaticWidth: {
|
|
47
|
+
value: {
|
|
48
|
+
type: Number,
|
|
49
|
+
default: 1220,
|
|
50
|
+
},
|
|
51
|
+
unit: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: 'mm',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
header: {
|
|
57
|
+
isEnabled: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: true,
|
|
60
|
+
},
|
|
61
|
+
height: {
|
|
62
|
+
value: {
|
|
63
|
+
type: Number,
|
|
64
|
+
default: 0,
|
|
65
|
+
},
|
|
66
|
+
unit: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: 'mm',
|
|
69
|
+
},
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
footer: {
|
|
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
|
+
isBodyEnabled: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: true,
|
|
91
|
+
},
|
|
92
|
+
fixtureCapacity: {
|
|
93
|
+
type: Number,
|
|
94
|
+
default: 0,
|
|
95
|
+
},
|
|
96
|
+
status: {
|
|
97
|
+
type: String,
|
|
98
|
+
enum: ['draft', 'complete'],
|
|
99
|
+
default: 'draft',
|
|
100
|
+
},
|
|
101
|
+
shelfConfig: [
|
|
102
|
+
{
|
|
103
|
+
shelfNumber: {
|
|
104
|
+
type: Number,
|
|
105
|
+
required: true,
|
|
106
|
+
},
|
|
107
|
+
shelfType: {
|
|
108
|
+
type: String,
|
|
109
|
+
enum: ['shelf', 'tray'],
|
|
110
|
+
},
|
|
111
|
+
zone: {
|
|
112
|
+
type: String,
|
|
113
|
+
},
|
|
114
|
+
shelfZone: {
|
|
115
|
+
type: String,
|
|
116
|
+
},
|
|
117
|
+
productPerShelf: {
|
|
118
|
+
type: Number,
|
|
119
|
+
default: 0,
|
|
120
|
+
},
|
|
121
|
+
trayRows: {
|
|
122
|
+
type: Number,
|
|
123
|
+
default: 0,
|
|
124
|
+
},
|
|
125
|
+
label: {
|
|
126
|
+
type: String,
|
|
127
|
+
default: '',
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
vmConfig: [
|
|
132
|
+
{
|
|
133
|
+
vmNumber: {
|
|
134
|
+
type: Number,
|
|
135
|
+
},
|
|
136
|
+
vmHeightmm: {
|
|
137
|
+
type: Number,
|
|
138
|
+
},
|
|
139
|
+
vmWidthmm: {
|
|
140
|
+
type: Number,
|
|
141
|
+
},
|
|
142
|
+
startShelf: {
|
|
143
|
+
type: Number,
|
|
144
|
+
},
|
|
145
|
+
endShelf: {
|
|
146
|
+
type: Number,
|
|
147
|
+
},
|
|
148
|
+
zone: {
|
|
149
|
+
type: String,
|
|
150
|
+
},
|
|
151
|
+
position: {
|
|
152
|
+
type: String,
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
fixtureLibCode:{
|
|
157
|
+
type:String
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
strict: true,
|
|
162
|
+
versionKey: false,
|
|
163
|
+
timestamps: true,
|
|
164
|
+
},
|
|
165
|
+
);
|
|
166
|
+
|
|
167
|
+
export default mongoose.model( 'fixtureLibraryDuplicate', fixtureLibrarySchema );
|
|
168
168
|
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const fixtureShelfSchema = new mongoose.Schema(
|
|
4
|
-
{
|
|
5
|
-
clientId: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: true,
|
|
8
|
-
},
|
|
9
|
-
storeName: {
|
|
10
|
-
type: String,
|
|
11
|
-
required: true,
|
|
12
|
-
},
|
|
13
|
-
storeId: {
|
|
14
|
-
type: String,
|
|
15
|
-
required: true,
|
|
16
|
-
},
|
|
17
|
-
planoId: {
|
|
18
|
-
type: mongoose.Types.ObjectId,
|
|
19
|
-
required: true,
|
|
20
|
-
index:true
|
|
21
|
-
},
|
|
22
|
-
floorId: {
|
|
23
|
-
type: mongoose.Types.ObjectId,
|
|
24
|
-
required: true,
|
|
25
|
-
index:true
|
|
26
|
-
},
|
|
27
|
-
fixtureId: {
|
|
28
|
-
type: mongoose.Types.ObjectId,
|
|
29
|
-
required: true,
|
|
30
|
-
index:true
|
|
31
|
-
},
|
|
32
|
-
shelfNumber: {
|
|
33
|
-
type: Number,
|
|
34
|
-
required: true,
|
|
35
|
-
},
|
|
36
|
-
productBrandName: {
|
|
37
|
-
type: Array,
|
|
38
|
-
},
|
|
39
|
-
productCategory: {
|
|
40
|
-
type: Array
|
|
41
|
-
},
|
|
42
|
-
productSubCategory: {
|
|
43
|
-
type: Array
|
|
44
|
-
},
|
|
45
|
-
zone: {
|
|
46
|
-
type: String
|
|
47
|
-
},
|
|
48
|
-
rfId: {
|
|
49
|
-
type: String
|
|
50
|
-
},
|
|
51
|
-
sectionName: {
|
|
52
|
-
type: String
|
|
53
|
-
},
|
|
54
|
-
shelfType: {
|
|
55
|
-
type: String,
|
|
56
|
-
enum: ['shelf', 'tray'],
|
|
57
|
-
},
|
|
58
|
-
productPerShelf: {
|
|
59
|
-
type: Number,
|
|
60
|
-
default: 0,
|
|
61
|
-
},
|
|
62
|
-
trayRows: {
|
|
63
|
-
type: Number,
|
|
64
|
-
default: 0,
|
|
65
|
-
},
|
|
66
|
-
label: {
|
|
67
|
-
type: String,
|
|
68
|
-
default: '',
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
strict: true,
|
|
73
|
-
versionKey: false,
|
|
74
|
-
timestamps: true,
|
|
75
|
-
},
|
|
76
|
-
);
|
|
77
|
-
|
|
78
|
-
export default mongoose.model('fixtureShelfDuplicate', fixtureShelfSchema);
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const fixtureShelfSchema = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
clientId: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true,
|
|
8
|
+
},
|
|
9
|
+
storeName: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: true,
|
|
12
|
+
},
|
|
13
|
+
storeId: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: true,
|
|
16
|
+
},
|
|
17
|
+
planoId: {
|
|
18
|
+
type: mongoose.Types.ObjectId,
|
|
19
|
+
required: true,
|
|
20
|
+
index:true
|
|
21
|
+
},
|
|
22
|
+
floorId: {
|
|
23
|
+
type: mongoose.Types.ObjectId,
|
|
24
|
+
required: true,
|
|
25
|
+
index:true
|
|
26
|
+
},
|
|
27
|
+
fixtureId: {
|
|
28
|
+
type: mongoose.Types.ObjectId,
|
|
29
|
+
required: true,
|
|
30
|
+
index:true
|
|
31
|
+
},
|
|
32
|
+
shelfNumber: {
|
|
33
|
+
type: Number,
|
|
34
|
+
required: true,
|
|
35
|
+
},
|
|
36
|
+
productBrandName: {
|
|
37
|
+
type: Array,
|
|
38
|
+
},
|
|
39
|
+
productCategory: {
|
|
40
|
+
type: Array
|
|
41
|
+
},
|
|
42
|
+
productSubCategory: {
|
|
43
|
+
type: Array
|
|
44
|
+
},
|
|
45
|
+
zone: {
|
|
46
|
+
type: String
|
|
47
|
+
},
|
|
48
|
+
rfId: {
|
|
49
|
+
type: String
|
|
50
|
+
},
|
|
51
|
+
sectionName: {
|
|
52
|
+
type: String
|
|
53
|
+
},
|
|
54
|
+
shelfType: {
|
|
55
|
+
type: String,
|
|
56
|
+
enum: ['shelf', 'tray'],
|
|
57
|
+
},
|
|
58
|
+
productPerShelf: {
|
|
59
|
+
type: Number,
|
|
60
|
+
default: 0,
|
|
61
|
+
},
|
|
62
|
+
trayRows: {
|
|
63
|
+
type: Number,
|
|
64
|
+
default: 0,
|
|
65
|
+
},
|
|
66
|
+
label: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: '',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
strict: true,
|
|
73
|
+
versionKey: false,
|
|
74
|
+
timestamps: true,
|
|
75
|
+
},
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
export default mongoose.model('fixtureShelfDuplicate', fixtureShelfSchema);
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const planoMappingSchema = new mongoose.Schema(
|
|
4
|
-
{
|
|
5
|
-
clientId: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: true,
|
|
8
|
-
},
|
|
9
|
-
storeName: {
|
|
10
|
-
type: String,
|
|
11
|
-
required: true,
|
|
12
|
-
},
|
|
13
|
-
storeId: {
|
|
14
|
-
type: String,
|
|
15
|
-
required: true,
|
|
16
|
-
},
|
|
17
|
-
type: {
|
|
18
|
-
type: String,
|
|
19
|
-
enum: [ 'product', 'vm' ],
|
|
20
|
-
required: true,
|
|
21
|
-
},
|
|
22
|
-
planoId: {
|
|
23
|
-
type: mongoose.Types.ObjectId,
|
|
24
|
-
required: true,
|
|
25
|
-
},
|
|
26
|
-
floorId: {
|
|
27
|
-
type: mongoose.Types.ObjectId,
|
|
28
|
-
required: true,
|
|
29
|
-
},
|
|
30
|
-
fixtureId: {
|
|
31
|
-
type: mongoose.Types.ObjectId,
|
|
32
|
-
},
|
|
33
|
-
shelfId: {
|
|
34
|
-
type: mongoose.Types.ObjectId,
|
|
35
|
-
},
|
|
36
|
-
shelfPosition: {
|
|
37
|
-
type: Number,
|
|
38
|
-
},
|
|
39
|
-
productId: {
|
|
40
|
-
type: mongoose.Types.ObjectId,
|
|
41
|
-
},
|
|
42
|
-
pid:{
|
|
43
|
-
type: String,
|
|
44
|
-
},
|
|
45
|
-
rfId: {
|
|
46
|
-
type: String,
|
|
47
|
-
},
|
|
48
|
-
category: {
|
|
49
|
-
type: String,
|
|
50
|
-
},
|
|
51
|
-
productDetails: {
|
|
52
|
-
type: Object,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
strict: true,
|
|
57
|
-
versionKey: false,
|
|
58
|
-
timestamps: true,
|
|
59
|
-
},
|
|
60
|
-
);
|
|
61
|
-
|
|
62
|
-
export default mongoose.model( 'planoMappingDuplicate', planoMappingSchema );
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const planoMappingSchema = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
clientId: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true,
|
|
8
|
+
},
|
|
9
|
+
storeName: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: true,
|
|
12
|
+
},
|
|
13
|
+
storeId: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: true,
|
|
16
|
+
},
|
|
17
|
+
type: {
|
|
18
|
+
type: String,
|
|
19
|
+
enum: [ 'product', 'vm' ],
|
|
20
|
+
required: true,
|
|
21
|
+
},
|
|
22
|
+
planoId: {
|
|
23
|
+
type: mongoose.Types.ObjectId,
|
|
24
|
+
required: true,
|
|
25
|
+
},
|
|
26
|
+
floorId: {
|
|
27
|
+
type: mongoose.Types.ObjectId,
|
|
28
|
+
required: true,
|
|
29
|
+
},
|
|
30
|
+
fixtureId: {
|
|
31
|
+
type: mongoose.Types.ObjectId,
|
|
32
|
+
},
|
|
33
|
+
shelfId: {
|
|
34
|
+
type: mongoose.Types.ObjectId,
|
|
35
|
+
},
|
|
36
|
+
shelfPosition: {
|
|
37
|
+
type: Number,
|
|
38
|
+
},
|
|
39
|
+
productId: {
|
|
40
|
+
type: mongoose.Types.ObjectId,
|
|
41
|
+
},
|
|
42
|
+
pid:{
|
|
43
|
+
type: String,
|
|
44
|
+
},
|
|
45
|
+
rfId: {
|
|
46
|
+
type: String,
|
|
47
|
+
},
|
|
48
|
+
category: {
|
|
49
|
+
type: String,
|
|
50
|
+
},
|
|
51
|
+
productDetails: {
|
|
52
|
+
type: Object,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
strict: true,
|
|
57
|
+
versionKey: false,
|
|
58
|
+
timestamps: true,
|
|
59
|
+
},
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
export default mongoose.model( 'planoMappingDuplicate', planoMappingSchema );
|