tango-api-schema 2.2.188 → 2.2.189
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 -13
- package/package.json +1 -1
- package/schema/client.model.js +4 -0
- package/schema/fixtureConfig.model.js +16 -149
- package/schema/fixtureShelf.model.js +57 -72
- package/schema/planoMapping.model.js +0 -3
- package/schema/planoProductDetail.model.js +18 -1
- package/schema/planoStaticData.model.js +1 -1
- package/schema/planoTaskCompliance.model.js +14 -338
- package/schema/planogram.model.js +0 -4
- package/schema/storeFixture.model.js +56 -104
- package/schema/storeLayout.model.js +0 -4
- package/schema/taskProcessed.model.js +0 -6
- package/schema/fixtureLibrary.model.js +0 -168
- package/schema/planoGlobalComment.model.js +0 -46
- package/schema/planoProductCategoryDetails.model.js +0 -26
- package/schema/planoRevision.model.js +0 -36
- package/schema/planoVmDetail.model.js +0 -63
- package/schema/vmType.model.js +0 -24
package/index.js
CHANGED
|
@@ -76,13 +76,11 @@ 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';
|
|
83
82
|
import fixtureShelfModel from './schema/fixtureShelf.model.js';
|
|
84
83
|
import planoTaskCompliance from './schema/planoTaskCompliance.model.js';
|
|
85
|
-
import planoGlobalComment from './schema/planoGlobalComment.model.js';
|
|
86
84
|
import planoQrConversionRequest from './schema/planoQrConversionRequest.model.js';
|
|
87
85
|
import planoStaticData from './schema/planoStaticData.model.js';
|
|
88
86
|
import suspiciousActivityModel from "./schema/suspiciousActivity.model.js";
|
|
@@ -90,14 +88,9 @@ import auditConfigModel from "./schema/auditConfig.model.js";
|
|
|
90
88
|
import revopConfigModel from "./schema/revopConfig.model.js";
|
|
91
89
|
import planoCrestLogModel from './schema/planoCrestLog.model.js';
|
|
92
90
|
import countryCurrencyModel from './schema/countryCurrency.model.js';
|
|
93
|
-
import fixtureLibraryModel from './schema/fixtureLibrary.model.js';
|
|
94
|
-
import vmTypeModel from "./schema/vmType.model.js";
|
|
95
|
-
import planoProductCategoryModel from './schema/planoProductCategoryDetails.model.js'
|
|
96
91
|
import streamingModel from './schema/streaming.model.js';
|
|
97
92
|
import loginAttempt from "./schema/loginAttempt.model.js";
|
|
98
93
|
import notification from "./schema/notification.model.js";
|
|
99
|
-
import planoRevisionModel from "./schema/planoRevision.model.js";
|
|
100
|
-
|
|
101
94
|
import auditUserBaseSalaryModel from "./schema/auditUserBaseSalary.model.js";
|
|
102
95
|
|
|
103
96
|
|
|
@@ -184,7 +177,6 @@ export default {
|
|
|
184
177
|
storeFixtureModel,
|
|
185
178
|
fixtureConfigModel,
|
|
186
179
|
fixtureShelfModel,
|
|
187
|
-
planoGlobalComment,
|
|
188
180
|
planoTaskCompliance,
|
|
189
181
|
planoQrConversionRequest,
|
|
190
182
|
planoStaticData,
|
|
@@ -193,13 +185,8 @@ export default {
|
|
|
193
185
|
revopConfigModel,
|
|
194
186
|
planoCrestLogModel,
|
|
195
187
|
countryCurrencyModel,
|
|
196
|
-
fixtureLibraryModel,
|
|
197
|
-
planoVmModel,
|
|
198
|
-
vmTypeModel,
|
|
199
|
-
planoProductCategoryModel,
|
|
200
188
|
streamingModel,
|
|
201
189
|
loginAttempt,
|
|
202
190
|
notification,
|
|
203
|
-
planoRevisionModel,
|
|
204
191
|
auditUserBaseSalaryModel
|
|
205
192
|
};
|
package/package.json
CHANGED
package/schema/client.model.js
CHANGED
|
@@ -13,186 +13,53 @@ 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: {
|
|
16
|
+
fixtureHeight: {
|
|
34
17
|
value: {
|
|
35
18
|
type: Number,
|
|
36
|
-
default: 0,
|
|
37
19
|
},
|
|
38
20
|
unit: {
|
|
39
21
|
type: String,
|
|
40
|
-
default: '',
|
|
41
22
|
},
|
|
42
23
|
},
|
|
43
|
-
|
|
24
|
+
fixtureLength: {
|
|
44
25
|
value: {
|
|
45
26
|
type: Number,
|
|
46
|
-
default: 0,
|
|
47
27
|
},
|
|
48
28
|
unit: {
|
|
49
29
|
type: String,
|
|
50
|
-
default: '',
|
|
51
30
|
},
|
|
52
31
|
},
|
|
53
|
-
|
|
32
|
+
fixtureWidth: {
|
|
54
33
|
value: {
|
|
55
34
|
type: Number,
|
|
56
|
-
default: 0,
|
|
57
35
|
},
|
|
58
36
|
unit: {
|
|
59
37
|
type: String,
|
|
60
|
-
default: '',
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
shelfConfig: [ {
|
|
64
|
-
shelfNumber: {
|
|
65
|
-
type: Number,
|
|
66
|
-
required: true,
|
|
67
|
-
},
|
|
68
|
-
shelfType: {
|
|
69
|
-
type: String,
|
|
70
|
-
enum: ['shelf', 'tray'],
|
|
71
|
-
},
|
|
72
|
-
productPerShelf: {
|
|
73
|
-
type: Number,
|
|
74
|
-
default: 0,
|
|
75
|
-
},
|
|
76
|
-
trayRows: {
|
|
77
|
-
type: Number,
|
|
78
|
-
default: 0,
|
|
79
|
-
},
|
|
80
|
-
label: {
|
|
81
|
-
type: String,
|
|
82
|
-
default: '',
|
|
83
|
-
},
|
|
84
|
-
productBrandName: {
|
|
85
|
-
type: Array,
|
|
86
|
-
},
|
|
87
|
-
productSubBrandName: {
|
|
88
|
-
type: Array,
|
|
89
|
-
},
|
|
90
|
-
productCategory:{
|
|
91
|
-
type:Array
|
|
92
|
-
},
|
|
93
|
-
productSubCategory:{
|
|
94
|
-
type:Array
|
|
95
|
-
},
|
|
96
|
-
zone: {
|
|
97
|
-
type: String,
|
|
98
|
-
},
|
|
99
|
-
} ],
|
|
100
|
-
vmConfig: [
|
|
101
|
-
{
|
|
102
|
-
vmId: {
|
|
103
|
-
type: mongoose.Types.ObjectId,
|
|
104
|
-
},
|
|
105
|
-
startYPosition: {
|
|
106
|
-
type: Number,
|
|
107
|
-
},
|
|
108
|
-
endYPosition: {
|
|
109
|
-
type: Number,
|
|
110
|
-
},
|
|
111
|
-
xZone: {
|
|
112
|
-
type: String,
|
|
113
|
-
},
|
|
114
|
-
yZone: {
|
|
115
|
-
type: String,
|
|
116
|
-
},
|
|
117
|
-
position: {
|
|
118
|
-
type: String,
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
],
|
|
122
|
-
header: {
|
|
123
|
-
height: {
|
|
124
|
-
value: {
|
|
125
|
-
type: Number,
|
|
126
|
-
default: 0,
|
|
127
|
-
},
|
|
128
|
-
unit: {
|
|
129
|
-
type: String,
|
|
130
|
-
default: '',
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
label: {
|
|
134
|
-
type: String,
|
|
135
|
-
},
|
|
136
|
-
isEnabled: {
|
|
137
|
-
type: Boolean,
|
|
138
|
-
default: true,
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
footer: {
|
|
142
|
-
height: {
|
|
143
|
-
value: {
|
|
144
|
-
type: Number,
|
|
145
|
-
default: 0,
|
|
146
|
-
},
|
|
147
|
-
unit: {
|
|
148
|
-
type: String,
|
|
149
|
-
default: '',
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
label: {
|
|
153
|
-
type: String,
|
|
154
38
|
},
|
|
155
|
-
isEnabled: {
|
|
156
|
-
type: Boolean,
|
|
157
|
-
default: true,
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
isBodyEnabled: {
|
|
161
|
-
type: Boolean,
|
|
162
|
-
default: true,
|
|
163
39
|
},
|
|
164
|
-
|
|
165
|
-
type:
|
|
166
|
-
enum: [ 'L1', 'L2', 'L3', 'L4' ],
|
|
40
|
+
shelfCount: {
|
|
41
|
+
type: Number,
|
|
167
42
|
},
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
required: true,
|
|
43
|
+
productPerShelf: {
|
|
44
|
+
type: Number,
|
|
171
45
|
},
|
|
172
46
|
fixtureCapacity: {
|
|
173
47
|
type: Number,
|
|
174
|
-
default: 0,
|
|
175
48
|
},
|
|
176
|
-
|
|
49
|
+
sections:{
|
|
177
50
|
type: Array,
|
|
178
51
|
},
|
|
179
|
-
|
|
180
|
-
type:Array
|
|
181
|
-
},
|
|
182
|
-
productSubCategory:{
|
|
183
|
-
type:Array
|
|
184
|
-
},
|
|
185
|
-
status: {
|
|
52
|
+
fixtureCode:{
|
|
186
53
|
type: String,
|
|
187
|
-
enum: [ 'draft', 'complete' ],
|
|
188
|
-
default: 'draft',
|
|
189
54
|
},
|
|
190
|
-
|
|
191
|
-
type: String
|
|
55
|
+
fixtureConfigType: {
|
|
56
|
+
type: String
|
|
192
57
|
},
|
|
193
|
-
|
|
194
|
-
type:
|
|
195
|
-
|
|
58
|
+
shelfConfig:{
|
|
59
|
+
type: Array,
|
|
60
|
+
},
|
|
61
|
+
vmConfig:{
|
|
62
|
+
type: Array,
|
|
196
63
|
},
|
|
197
64
|
},
|
|
198
65
|
{
|
|
@@ -1,78 +1,63 @@
|
|
|
1
1
|
import mongoose from 'mongoose';
|
|
2
2
|
|
|
3
3
|
const fixtureShelfSchema = new mongoose.Schema(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
+
},
|
|
21
|
+
floorId: {
|
|
22
|
+
type: mongoose.Types.ObjectId,
|
|
23
|
+
required: true,
|
|
24
|
+
},
|
|
25
|
+
fixtureId: {
|
|
26
|
+
type: mongoose.Types.ObjectId,
|
|
27
|
+
required: true,
|
|
28
|
+
},
|
|
29
|
+
shelfNumber: {
|
|
30
|
+
type: Number,
|
|
31
|
+
required: true,
|
|
32
|
+
},
|
|
33
|
+
shelfOrder: {
|
|
34
|
+
type: String,
|
|
35
|
+
enum: [ 'LTR', 'RTL' ],
|
|
36
|
+
// LTR - Left to Right, RTL - Right to Left
|
|
37
|
+
required: true,
|
|
38
|
+
},
|
|
39
|
+
shelfCapacity: {
|
|
40
|
+
type: Number,
|
|
41
|
+
required: true,
|
|
42
|
+
},
|
|
43
|
+
sectionName:{
|
|
44
|
+
type: String
|
|
45
|
+
},
|
|
46
|
+
sectionZone:{
|
|
47
|
+
type: String
|
|
48
|
+
},
|
|
49
|
+
rfId:{
|
|
50
|
+
type:String
|
|
51
|
+
},
|
|
52
|
+
shelfSplitup: {
|
|
53
|
+
type: Number,
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
strict: true,
|
|
58
|
+
versionKey: false,
|
|
59
|
+
timestamps: true,
|
|
8
60
|
},
|
|
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
61
|
);
|
|
77
62
|
|
|
78
|
-
export default mongoose.model('fixtureShelf', fixtureShelfSchema);
|
|
63
|
+
export default mongoose.model( 'fixtureShelf', fixtureShelfSchema );
|
|
@@ -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,
|