tango-api-schema 2.2.44 → 2.2.46

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.2.44",
3
+ "version": "2.2.46",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -24,7 +24,7 @@ tempId:{
24
24
  },
25
25
  moduleType:{
26
26
  type: String,
27
- enum: ['camera-angle-change','left-in-middle','unattended-customer'],
27
+ enum: ['camera-angle-change','left-in-middle','unattended-customer','eye-test-camera'],
28
28
  },
29
29
  fileDate: {
30
30
  type: String,
@@ -1,5 +1,5 @@
1
1
  import mongoose from 'mongoose';
2
-
2
+
3
3
  const storeFixtureSchema = new mongoose.Schema(
4
4
  {
5
5
  clientId: {
@@ -28,17 +28,16 @@ const storeFixtureSchema = new mongoose.Schema(
28
28
  },
29
29
  fixtureCategory: {
30
30
  type: String,
31
- required: true,
32
31
  },
33
32
  fixtureType: {
34
33
  type: String,
35
- enum: [ 'wall', 'floor' ],
34
+ enum: [ 'wall', 'floor', 'other' ],
36
35
  required: true,
37
36
  },
38
37
  fixtureHeight: {
39
38
  value: {
40
39
  type: Number,
41
- required: true,
40
+ default: 0
42
41
  },
43
42
  unit: {
44
43
  type: String,
@@ -48,7 +47,7 @@ const storeFixtureSchema = new mongoose.Schema(
48
47
  fixtureLength: {
49
48
  value: {
50
49
  type: Number,
51
- required: true,
50
+ default: 0
52
51
  },
53
52
  unit: {
54
53
  type: String,
@@ -67,7 +66,6 @@ const storeFixtureSchema = new mongoose.Schema(
67
66
  },
68
67
  productPerShelf: {
69
68
  type: Number,
70
- required: true,
71
69
  },
72
70
  mbq: {
73
71
  type: Number,
@@ -77,7 +75,6 @@ const storeFixtureSchema = new mongoose.Schema(
77
75
  },
78
76
  shelfcount: {
79
77
  type: Number,
80
- required: true,
81
78
  },
82
79
  associatedElementType: {
83
80
  type: String,
@@ -88,7 +85,6 @@ const storeFixtureSchema = new mongoose.Schema(
88
85
  },
89
86
  fixtureConfigId: {
90
87
  type: mongoose.Types.ObjectId,
91
- required: true,
92
88
  },
93
89
  relativePosition: {
94
90
  x: {
@@ -104,15 +100,27 @@ const storeFixtureSchema = new mongoose.Schema(
104
100
  default: 'mm',
105
101
  },
106
102
  },
103
+ relativeDetailedPosition: {
104
+ x: {
105
+ type: Number,
106
+ default: 0,
107
+ },
108
+ y: {
109
+ type: Number,
110
+ default: 0,
111
+ },
112
+ unit: {
113
+ type: String,
114
+ default: 'mm',
115
+ },
116
+ },
107
117
  fixtureOrder: {
108
118
  type: String,
109
119
  enum: [ 'TTB', 'BTT' ],
110
120
  // TTB - Top to Bottom, BTT - Bottom to Top
111
- required: true,
112
121
  },
113
122
  fixtureNumber: {
114
123
  type: Number,
115
- required: true,
116
124
  },
117
125
  productResolutionLevel: {
118
126
  type: String,
@@ -127,5 +135,5 @@ const storeFixtureSchema = new mongoose.Schema(
127
135
  timestamps: true,
128
136
  },
129
137
  );
130
-
131
- export default mongoose.model( 'storeFixture', storeFixtureSchema );
138
+
139
+ export default mongoose.model( 'storeFixture', storeFixtureSchema );