tango-api-schema 2.2.193 → 2.2.195

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.
@@ -17,81 +17,80 @@ const storeFixtureSchema = new mongoose.Schema(
17
17
  planoId: {
18
18
  type: mongoose.Types.ObjectId,
19
19
  required: true,
20
+ index:true
20
21
  },
21
22
  floorId: {
22
23
  type: mongoose.Types.ObjectId,
23
24
  required: true,
25
+ index:true
24
26
  },
25
27
  fixtureName: {
26
28
  type: String,
27
29
  required: true,
28
30
  },
29
- fixtureCategory: {
31
+ description: {
30
32
  type: String,
31
33
  },
32
- fixtureBrandCategory: {
34
+ fixtureCategory: {
33
35
  type: String,
34
36
  },
35
- fixtureBrandSubCategory: {
36
- type: String,
37
+ productBrandName: {
38
+ type: Array,
39
+ },
40
+ productCategory:{
41
+ type:Array
42
+ },
43
+ productSubCategory:{
44
+ type:Array
37
45
  },
38
46
  fixtureType: {
39
47
  type: String,
40
48
  enum: [ 'wall', 'floor', 'other' ],
41
49
  required: true,
42
50
  },
43
- fixtureHeight: {
44
- value: {
45
- type: Number,
46
- },
47
- unit: {
48
- type: String,
49
- },
50
- },
51
51
  fixtureLength: {
52
52
  value: {
53
53
  type: Number,
54
+ default: 0,
54
55
  },
55
56
  unit: {
56
57
  type: String,
58
+ default: '',
57
59
  },
58
60
  },
59
61
  fixtureWidth: {
60
62
  value: {
61
63
  type: Number,
64
+ default: 0,
62
65
  },
63
66
  unit: {
64
67
  type: String,
68
+ default: '',
65
69
  },
66
70
  },
67
- detailedFixtureLength: {
71
+ fixtureStaticLength: {
68
72
  value: {
69
73
  type: Number,
74
+ default: 0,
70
75
  },
71
76
  unit: {
72
77
  type: String,
78
+ default: '',
73
79
  },
74
80
  },
75
- detailedFixtureWidth: {
81
+ fixtureStaticWidth: {
76
82
  value: {
77
83
  type: Number,
84
+ default: 0,
78
85
  },
79
86
  unit: {
80
87
  type: String,
88
+ default: '',
81
89
  },
82
90
  },
83
- productPerShelf: {
84
- type: Number,
85
- },
86
- mbq: {
87
- type: Number,
88
- },
89
91
  fixtureCapacity: {
90
92
  type: Number,
91
93
  },
92
- shelfcount: {
93
- type: Number,
94
- },
95
94
  associatedElementType: {
96
95
  type: String,
97
96
  enum: [ 'wall', 'facade' ],
@@ -99,9 +98,6 @@ const storeFixtureSchema = new mongoose.Schema(
99
98
  associatedElementNumber: {
100
99
  type: Number,
101
100
  },
102
- fixtureConfigId: {
103
- type: mongoose.Types.ObjectId,
104
- },
105
101
  relativePosition: {
106
102
  x: {
107
103
  type: Number,
@@ -113,48 +109,97 @@ const storeFixtureSchema = new mongoose.Schema(
113
109
  type: String,
114
110
  },
115
111
  },
116
- relativeDetailedPosition: {
117
- x: {
118
- type: Number,
119
- },
120
- y: {
121
- type: Number,
122
- },
123
- unit: {
124
- type: String,
125
- },
126
- },
127
- fixtureOrder: {
128
- type: String,
129
- enum: [ 'TTB', 'BTT' ],
130
- // TTB - Top to Bottom, BTT - Bottom to Top
131
- },
132
- fixtureNumber: {
133
- type: Number,
134
- },
135
112
  productResolutionLevel: {
136
113
  type: String,
137
- enum: [ 'L1', 'L2', 'L3', 'L4', 'L5' ],
138
- // L1- floor level, L2- fixture level, L3- fixture-shelf level, L4- fixture-shelf-product level
114
+ enum: [ 'L1', 'L2', 'L3', 'L4' ],
115
+ // L1- fixture level, L2- shelf level, L3- section level, L4- product level
139
116
  },
140
117
  imageUrl: {
141
118
  type: String,
142
119
  },
143
- vmImageUrl: {
144
- type: String,
145
- },
146
- fixtureCode: {
147
- type: String,
148
- },
149
120
  header: {
150
- type: String,
121
+ height: {
122
+ value: {
123
+ type: Number,
124
+ default: 0,
125
+ },
126
+ unit: {
127
+ type: String,
128
+ default: '',
129
+ },
130
+ },
131
+ label: {
132
+ type: String,
133
+ },
134
+ isEnabled: {
135
+ type: Boolean,
136
+ default: true,
137
+ },
151
138
  },
152
139
  footer: {
153
- type: String,
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
+ isBodyEnabled: {
159
+ type: Boolean,
160
+ default: true,
154
161
  },
155
162
  associatedElementFixtureNumber: {
156
163
  type: Number,
157
164
  },
165
+ vmConfig: [
166
+ {
167
+ vmId: {
168
+ type: mongoose.Types.ObjectId,
169
+ },
170
+ startYPosition: {
171
+ type: Number,
172
+ },
173
+ endYPosition: {
174
+ type: Number,
175
+ },
176
+ xZone: {
177
+ type: String,
178
+ },
179
+ yZone: {
180
+ type: String,
181
+ },
182
+ position: {
183
+ type: String,
184
+ },
185
+ },
186
+ ],
187
+ fixtureLibraryId: {
188
+ type: mongoose.Types.ObjectId,
189
+ index:true
190
+ },
191
+ fixtureConfigId: {
192
+ type: mongoose.Types.ObjectId,
193
+ index:true
194
+ },
195
+ fixtureNumber: {
196
+ type: Number,
197
+ },
198
+ templateIndex: {
199
+ type: Number,
200
+ default: 1,
201
+ },
202
+
158
203
  },
159
204
  {
160
205
  strict: true,
@@ -163,4 +208,7 @@ const storeFixtureSchema = new mongoose.Schema(
163
208
  },
164
209
  );
165
210
 
166
- export default mongoose.model( 'storeFixture', storeFixtureSchema );
211
+ export default mongoose.model( 'storeFixture', storeFixtureSchema );
212
+
213
+
214
+
@@ -49,12 +49,20 @@ const storeLayoutSchema = new mongoose.Schema( {
49
49
  planoId: {
50
50
  type: mongoose.Types.ObjectId,
51
51
  required: true,
52
+ index:true
52
53
  },
53
54
  storeOrder: {
54
55
  type: String,
55
56
  enum: [ 'LTR', 'RTL' ],
56
57
  // LTR - Left to Right, RTL - Right to Left
57
58
  },
59
+ isEdited: {
60
+ type: Boolean,
61
+ },
62
+ planoProgress:{
63
+ type:Number,
64
+ default:25
65
+ }
58
66
  },
59
67
  {
60
68
  strict: true,
@@ -199,9 +199,11 @@ const processedTaskSchema = new mongoose.Schema(
199
199
  },
200
200
  planoType:{
201
201
  type: String,
202
+ index:true
202
203
  },
203
204
  planoId:{
204
205
  type:mongoose.SchemaTypes.ObjectId,
206
+ index:true
205
207
  },
206
208
  streamId:{
207
209
  type: String,
@@ -234,10 +236,14 @@ const processedTaskSchema = new mongoose.Schema(
234
236
  },
235
237
  floorId:{
236
238
  type:mongoose.SchemaTypes.ObjectId,
239
+ index:true
237
240
  },
238
241
  checkListFrom: {
239
242
  type: String
240
243
  },
244
+ comments:{
245
+ type:Array
246
+ },
241
247
  zoneName: {
242
248
  type: String
243
249
  }
@@ -0,0 +1,24 @@
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 );