tango-api-schema 3.0.1 → 3.0.2

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": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -13,25 +13,16 @@ const planoTaskCompliance = new mongoose.Schema(
13
13
  type: mongoose.Types.ObjectId,
14
14
  },
15
15
  userName: {
16
- type: String
16
+ type: String
17
17
  },
18
18
  role: {
19
- type: String
20
- },
21
- qno: {
22
- type: Number,
23
- },
24
- question: {
25
19
  type: String
26
20
  },
27
21
  timeStamp: {
28
22
  type: Date,
29
23
  default: Date.now()
30
24
  },
31
- answer: {
32
- type: Boolean
33
- },
34
- comment: {
25
+ video: {
35
26
  type: String
36
27
  },
37
28
  issues: [
@@ -40,10 +31,10 @@ const planoTaskCompliance = new mongoose.Schema(
40
31
  type: mongoose.Types.ObjectId,
41
32
  },
42
33
  userName: {
43
- type: String
34
+ type: String
44
35
  },
45
36
  role: {
46
- type: String
37
+ type: String
47
38
  },
48
39
  qno: {
49
40
  type: Number,
@@ -55,13 +46,160 @@ const planoTaskCompliance = new mongoose.Schema(
55
46
  type: Date,
56
47
  default: Date.now()
57
48
  },
58
- video: {
59
- type: String
60
- },
49
+
61
50
  image: {
62
51
  type: String
63
52
  },
64
- Details: []
53
+ Details: [
54
+ {
55
+ comments: [{
56
+ userId: {
57
+ type: mongoose.Types.ObjectId,
58
+ },
59
+ userName: {
60
+ type: String
61
+ },
62
+ role: {
63
+ type: String
64
+ },
65
+ comment: {
66
+ type: String
67
+ },
68
+ responsetype: {
69
+ type: String,
70
+ default: "comment",
71
+ },
72
+ timeStamp: {
73
+ type: Date,
74
+ default: Date.now()
75
+ }
76
+ }
77
+ ],
78
+ image: {
79
+ type: String
80
+ },
81
+ video: {
82
+ type: String
83
+ },
84
+ floorId: {
85
+ type: mongoose.Types.ObjectId,
86
+
87
+ },
88
+ fixtureId: {
89
+ type: mongoose.Types.ObjectId
90
+ },
91
+ templateId: {
92
+ type: mongoose.Types.ObjectId
93
+ },
94
+ status: {
95
+ type: String,
96
+ default: 'pending',
97
+ enum: ['completed', 'pending']
98
+ },
99
+ image: {
100
+ type: String
101
+ },
102
+ fixtureName: {
103
+ type: String
104
+ },
105
+ fixturetype: {
106
+ type: String
107
+ },
108
+ fixturetemplate: {
109
+ type: String
110
+ },
111
+ associatedElementFixtureNumber: {
112
+ type: Number
113
+ },
114
+ associatedElementNumber: {
115
+ type: Number
116
+ },
117
+ associatedElementType: {
118
+ type: String
119
+ },
120
+ newassociatedElementFixtureNumber: {
121
+ type: Number
122
+ },
123
+ newassociatedElementNumber: {
124
+ type: Number
125
+ },
126
+ newassociatedElementType: {
127
+ type: String
128
+ },
129
+ fixtureCategory: {
130
+ type: String
131
+ },
132
+ shelfConfig: [
133
+ {
134
+ _id: {
135
+ type: mongoose.Types.ObjectId,
136
+ required: true
137
+ },
138
+ shelfNumber: {
139
+ type: Number
140
+ },
141
+ shelfType: {
142
+ type: String
143
+ },
144
+ productPerShelf: {
145
+ type: Number
146
+ },
147
+ trayRows: {
148
+ type: Number
149
+ },
150
+ label: {
151
+ type: String
152
+ },
153
+
154
+ fixtureBrandCategory: {
155
+ type: [String],
156
+ default: []
157
+ },
158
+ fixtureBrandSubCategory: {
159
+ type: [String],
160
+ default: []
161
+ }
162
+ }
163
+ ],
164
+ vmConfig: [
165
+ {
166
+ vmId: {
167
+ type: mongoose.Schema.Types.ObjectId,
168
+
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
+ newstartYPosition: {
186
+ type: Number
187
+ },
188
+ newendYPosition: {
189
+ type: Number
190
+ },
191
+ newxZone: {
192
+ type: String
193
+ },
194
+ newyZone: {
195
+ type: String
196
+ },
197
+ newposition: {
198
+ type: String
199
+ }
200
+ }]
201
+ }
202
+ ]
65
203
  }
66
204
  ]
67
205
  }],