tango-api-schema 2.6.23 → 2.6.24

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.6.23",
3
+ "version": "2.6.24",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -166,6 +166,22 @@ const fixtureLibrarySchema = new mongoose.Schema(
166
166
  enum: ['panel', 'shelf'],
167
167
  default: 'panel',
168
168
  },
169
+ businessShelfConfig: [
170
+ {
171
+ storeId: { type: String },
172
+ storeName: { type: String, default: '' },
173
+ shelfConfig: [
174
+ {
175
+ shelfNumber: { type: Number },
176
+ shelfType: { type: String, enum: ['shelf', 'tray', 'vmonly'] },
177
+ zone: { type: String },
178
+ productPerShelf: { type: Number, default: 0 },
179
+ trayRows: { type: Number, default: 0 },
180
+ label: { type: String, default: '' },
181
+ },
182
+ ],
183
+ },
184
+ ],
169
185
  },
170
186
  {
171
187
  strict: true,
@@ -1,31 +1,31 @@
1
- import mongoose from 'mongoose';
2
- import { randomUUID } from 'crypto';
3
-
4
- // schema
5
- const collection = new mongoose.Schema({
6
- apiKey: {
7
- type: String,
8
- required: true,
9
- unique: true,
10
- default: () => randomUUID()
11
- },
12
- countryName: {
13
- type: String,
14
- },
15
- countryCode: {
16
- type: String,
17
- },
18
- clientId: {
19
- type: String,
20
- },
21
- },
22
- {
23
- timestamps: true,
24
- strict: true,
25
- versionKey: false,
26
- });
27
-
28
-
29
- collection.index({ apiKey: 1 });
30
-
31
- export default mongoose.model('regionKey', collection, 'regionKey');
1
+ import mongoose from 'mongoose';
2
+ import { randomUUID } from 'crypto';
3
+
4
+ // schema
5
+ const collection = new mongoose.Schema({
6
+ apiKey: {
7
+ type: String,
8
+ required: true,
9
+ unique: true,
10
+ default: () => randomUUID()
11
+ },
12
+ countryName: {
13
+ type: String,
14
+ },
15
+ countryCode: {
16
+ type: String,
17
+ },
18
+ clientId: {
19
+ type: String,
20
+ },
21
+ },
22
+ {
23
+ timestamps: true,
24
+ strict: true,
25
+ versionKey: false,
26
+ });
27
+
28
+
29
+ collection.index({ apiKey: 1 });
30
+
31
+ export default mongoose.model('regionKey', collection, 'regionKey');