tango-api-schema 2.4.10 → 2.4.11

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.
@@ -1,231 +1,231 @@
1
- import mongoose from 'mongoose';
2
-
3
- const storeFixtureSchema = 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
- fixtureName: {
28
- type: String,
29
- required: true,
30
- },
31
- description: {
32
- type: String,
33
- },
34
- fixtureCategory: {
35
- type: String,
36
- },
37
- productBrandName: {
38
- type: Array,
39
- },
40
- productCategory:{
41
- type:Array
42
- },
43
- productSubCategory:{
44
- type:Array
45
- },
46
- fixtureType: {
47
- type: String,
48
- enum: [ 'wall', 'floor', 'other' ],
49
- required: true,
50
- },
51
- fixtureLength: {
52
- value: {
53
- type: Number,
54
- default: 0,
55
- },
56
- unit: {
57
- type: String,
58
- default: '',
59
- },
60
- },
61
- fixtureWidth: {
62
- value: {
63
- type: Number,
64
- default: 0,
65
- },
66
- unit: {
67
- type: String,
68
- default: '',
69
- },
70
- },
71
- fixtureStaticLength: {
72
- value: {
73
- type: Number,
74
- default: 0,
75
- },
76
- unit: {
77
- type: String,
78
- default: '',
79
- },
80
- },
81
- fixtureStaticWidth: {
82
- value: {
83
- type: Number,
84
- default: 0,
85
- },
86
- unit: {
87
- type: String,
88
- default: '',
89
- },
90
- },
91
- fixtureCapacity: {
92
- type: Number,
93
- },
94
- associatedElementType: {
95
- type: String,
96
- enum: [ 'wall', 'facade' ],
97
- },
98
- associatedElementNumber: {
99
- type: Number,
100
- },
101
- relativePosition: {
102
- x: {
103
- type: Number,
104
- },
105
- y: {
106
- type: Number,
107
- },
108
- unit: {
109
- type: String,
110
- },
111
- angle:{
112
- type: Number,
113
- }
114
- },
115
- productResolutionLevel: {
116
- type: String,
117
- enum: [ 'L1', 'L2', 'L3', 'L4' ],
118
- // L1- fixture level, L2- shelf level, L3- section level, L4- product level
119
- },
120
- imageUrl: {
121
- type: String,
122
- },
123
- header: {
124
- height: {
125
- value: {
126
- type: Number,
127
- default: 0,
128
- },
129
- unit: {
130
- type: String,
131
- default: '',
132
- },
133
- },
134
- label: {
135
- type: String,
136
- },
137
- isEnabled: {
138
- type: Boolean,
139
- default: true,
140
- },
141
- },
142
- footer: {
143
- height: {
144
- value: {
145
- type: Number,
146
- default: 0,
147
- },
148
- unit: {
149
- type: String,
150
- default: '',
151
- },
152
- },
153
- label: {
154
- type: String,
155
- },
156
- isEnabled: {
157
- type: Boolean,
158
- default: true,
159
- },
160
- },
161
- isBodyEnabled: {
162
- type: Boolean,
163
- default: true,
164
- },
165
- associatedElementFixtureNumber: {
166
- type: Number,
167
- },
168
- vmConfig: [
169
- {
170
- vmId: {
171
- type: mongoose.Types.ObjectId,
172
- },
173
- startYPosition: {
174
- type: Number,
175
- },
176
- endYPosition: {
177
- type: Number,
178
- },
179
- xZone: {
180
- type: String,
181
- },
182
- yZone: {
183
- type: String,
184
- },
185
- position: {
186
- type: String,
187
- },
188
- },
189
- ],
190
- fixtureLibraryId: {
191
- type: mongoose.Types.ObjectId,
192
- index:true
193
- },
194
- fixtureConfigId: {
195
- type: mongoose.Types.ObjectId,
196
- index:true
197
- },
198
- fixtureNumber: {
199
- type: Number,
200
- },
201
- templateIndex: {
202
- type: Number,
203
- default: 1,
204
- },
205
- isMerchEdited: {
206
- type: Boolean,
207
- default: false,
208
- },
209
- isVmEdited: {
210
- type: Boolean,
211
- default: false,
212
- },
213
- masterTemplateId:{
214
- type: mongoose.Types.ObjectId,
215
- },
216
- templateGroupName: {
217
- type: String
218
- },
219
-
220
- },
221
- {
222
- strict: true,
223
- versionKey: false,
224
- timestamps: true,
225
- },
226
- );
227
-
228
- export default mongoose.model( 'storeFixtureDuplicate', storeFixtureSchema );
229
-
230
-
231
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const storeFixtureSchema = 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
+ fixtureName: {
28
+ type: String,
29
+ required: true,
30
+ },
31
+ description: {
32
+ type: String,
33
+ },
34
+ fixtureCategory: {
35
+ type: String,
36
+ },
37
+ productBrandName: {
38
+ type: Array,
39
+ },
40
+ productCategory:{
41
+ type:Array
42
+ },
43
+ productSubCategory:{
44
+ type:Array
45
+ },
46
+ fixtureType: {
47
+ type: String,
48
+ enum: [ 'wall', 'floor', 'other' ],
49
+ required: true,
50
+ },
51
+ fixtureLength: {
52
+ value: {
53
+ type: Number,
54
+ default: 0,
55
+ },
56
+ unit: {
57
+ type: String,
58
+ default: '',
59
+ },
60
+ },
61
+ fixtureWidth: {
62
+ value: {
63
+ type: Number,
64
+ default: 0,
65
+ },
66
+ unit: {
67
+ type: String,
68
+ default: '',
69
+ },
70
+ },
71
+ fixtureStaticLength: {
72
+ value: {
73
+ type: Number,
74
+ default: 0,
75
+ },
76
+ unit: {
77
+ type: String,
78
+ default: '',
79
+ },
80
+ },
81
+ fixtureStaticWidth: {
82
+ value: {
83
+ type: Number,
84
+ default: 0,
85
+ },
86
+ unit: {
87
+ type: String,
88
+ default: '',
89
+ },
90
+ },
91
+ fixtureCapacity: {
92
+ type: Number,
93
+ },
94
+ associatedElementType: {
95
+ type: String,
96
+ enum: [ 'wall', 'facade' ],
97
+ },
98
+ associatedElementNumber: {
99
+ type: Number,
100
+ },
101
+ relativePosition: {
102
+ x: {
103
+ type: Number,
104
+ },
105
+ y: {
106
+ type: Number,
107
+ },
108
+ unit: {
109
+ type: String,
110
+ },
111
+ angle:{
112
+ type: Number,
113
+ }
114
+ },
115
+ productResolutionLevel: {
116
+ type: String,
117
+ enum: [ 'L1', 'L2', 'L3', 'L4' ],
118
+ // L1- fixture level, L2- shelf level, L3- section level, L4- product level
119
+ },
120
+ imageUrl: {
121
+ type: String,
122
+ },
123
+ header: {
124
+ height: {
125
+ value: {
126
+ type: Number,
127
+ default: 0,
128
+ },
129
+ unit: {
130
+ type: String,
131
+ default: '',
132
+ },
133
+ },
134
+ label: {
135
+ type: String,
136
+ },
137
+ isEnabled: {
138
+ type: Boolean,
139
+ default: true,
140
+ },
141
+ },
142
+ footer: {
143
+ height: {
144
+ value: {
145
+ type: Number,
146
+ default: 0,
147
+ },
148
+ unit: {
149
+ type: String,
150
+ default: '',
151
+ },
152
+ },
153
+ label: {
154
+ type: String,
155
+ },
156
+ isEnabled: {
157
+ type: Boolean,
158
+ default: true,
159
+ },
160
+ },
161
+ isBodyEnabled: {
162
+ type: Boolean,
163
+ default: true,
164
+ },
165
+ associatedElementFixtureNumber: {
166
+ type: Number,
167
+ },
168
+ vmConfig: [
169
+ {
170
+ vmId: {
171
+ type: mongoose.Types.ObjectId,
172
+ },
173
+ startYPosition: {
174
+ type: Number,
175
+ },
176
+ endYPosition: {
177
+ type: Number,
178
+ },
179
+ xZone: {
180
+ type: String,
181
+ },
182
+ yZone: {
183
+ type: String,
184
+ },
185
+ position: {
186
+ type: String,
187
+ },
188
+ },
189
+ ],
190
+ fixtureLibraryId: {
191
+ type: mongoose.Types.ObjectId,
192
+ index:true
193
+ },
194
+ fixtureConfigId: {
195
+ type: mongoose.Types.ObjectId,
196
+ index:true
197
+ },
198
+ fixtureNumber: {
199
+ type: Number,
200
+ },
201
+ templateIndex: {
202
+ type: Number,
203
+ default: 1,
204
+ },
205
+ isMerchEdited: {
206
+ type: Boolean,
207
+ default: false,
208
+ },
209
+ isVmEdited: {
210
+ type: Boolean,
211
+ default: false,
212
+ },
213
+ masterTemplateId:{
214
+ type: mongoose.Types.ObjectId,
215
+ },
216
+ templateGroupName: {
217
+ type: String
218
+ },
219
+
220
+ },
221
+ {
222
+ strict: true,
223
+ versionKey: false,
224
+ timestamps: true,
225
+ },
226
+ );
227
+
228
+ export default mongoose.model( 'storeFixtureDuplicate', storeFixtureSchema );
229
+
230
+
231
+
@@ -1,74 +1,74 @@
1
- import mongoose from 'mongoose';
2
-
3
- const storeLayoutSchema = new mongoose.Schema( {
4
- storeName: {
5
- type: String,
6
- required: true,
7
- },
8
- storeId: {
9
- type: String,
10
- required: true,
11
- },
12
- layoutName: {
13
- type: String,
14
- required: true,
15
- },
16
- clientId: {
17
- type: String,
18
- required: true,
19
- },
20
- floorNumber: {
21
- type: Number,
22
- default: 1,
23
- },
24
- floorName: {
25
- type: String,
26
- required: true,
27
- },
28
- layoutPolygon: {
29
- type: Array,
30
- default: [],
31
- },
32
- createdBy: {
33
- type: mongoose.Types.ObjectId,
34
- required: true,
35
- },
36
- createdByName: {
37
- type: String,
38
- required: true,
39
- },
40
- createdByEmail: {
41
- type: String,
42
- required: true,
43
- },
44
- status: {
45
- type: String,
46
- enum: [ 'draft', 'completed' ],
47
- default: 'draft',
48
- },
49
- planoId: {
50
- type: mongoose.Types.ObjectId,
51
- required: true,
52
- index:true
53
- },
54
- storeOrder: {
55
- type: String,
56
- enum: [ 'LTR', 'RTL' ],
57
- // LTR - Left to Right, RTL - Right to Left
58
- },
59
- isEdited: {
60
- type: Boolean,
61
- },
62
- planoProgress:{
63
- type:Number,
64
- default:25
65
- }
66
- },
67
- {
68
- strict: true,
69
- versionKey: false,
70
- timestamps: true,
71
- },
72
- );
73
-
74
- export default mongoose.model( 'storeLayoutDuplicate', storeLayoutSchema );
1
+ import mongoose from 'mongoose';
2
+
3
+ const storeLayoutSchema = new mongoose.Schema( {
4
+ storeName: {
5
+ type: String,
6
+ required: true,
7
+ },
8
+ storeId: {
9
+ type: String,
10
+ required: true,
11
+ },
12
+ layoutName: {
13
+ type: String,
14
+ required: true,
15
+ },
16
+ clientId: {
17
+ type: String,
18
+ required: true,
19
+ },
20
+ floorNumber: {
21
+ type: Number,
22
+ default: 1,
23
+ },
24
+ floorName: {
25
+ type: String,
26
+ required: true,
27
+ },
28
+ layoutPolygon: {
29
+ type: Array,
30
+ default: [],
31
+ },
32
+ createdBy: {
33
+ type: mongoose.Types.ObjectId,
34
+ required: true,
35
+ },
36
+ createdByName: {
37
+ type: String,
38
+ required: true,
39
+ },
40
+ createdByEmail: {
41
+ type: String,
42
+ required: true,
43
+ },
44
+ status: {
45
+ type: String,
46
+ enum: [ 'draft', 'completed' ],
47
+ default: 'draft',
48
+ },
49
+ planoId: {
50
+ type: mongoose.Types.ObjectId,
51
+ required: true,
52
+ index:true
53
+ },
54
+ storeOrder: {
55
+ type: String,
56
+ enum: [ 'LTR', 'RTL' ],
57
+ // LTR - Left to Right, RTL - Right to Left
58
+ },
59
+ isEdited: {
60
+ type: Boolean,
61
+ },
62
+ planoProgress:{
63
+ type:Number,
64
+ default:25
65
+ }
66
+ },
67
+ {
68
+ strict: true,
69
+ versionKey: false,
70
+ timestamps: true,
71
+ },
72
+ );
73
+
74
+ export default mongoose.model( 'storeLayoutDuplicate', storeLayoutSchema );