tango-api-schema 2.2.140 → 2.2.142

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.140",
3
+ "version": "2.2.142",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -26,6 +26,9 @@ const appVersionSchema = new mongoose.Schema({
26
26
  type: Date,
27
27
  default: Date.now
28
28
  },
29
+ clientId: {
30
+ type: String,
31
+ },
29
32
  },
30
33
  {
31
34
  strict: true,
@@ -7,64 +7,10 @@ const planoTaskCompliance = new mongoose.Schema(
7
7
  enum: ['complete', 'incomplete', 'missing'],
8
8
  required: true
9
9
  },
10
- answers: [
11
- {
12
- userId: {
13
- type: mongoose.Types.ObjectId,
14
- },
15
- userName: {
16
- type: String
17
- },
18
- role: {
19
- type: String
20
- },
21
- qno: {
22
- type: Number,
23
- },
24
- question: {
25
- type: String
26
- },
27
- timeStamp: {
28
- type: Date,
29
- default: Date.now()
30
- },
31
- answer: {
32
- type: Boolean
33
- },
34
- comment: {
35
- type: String
36
- },
37
- issues: [
38
- {
39
- userId: {
40
- type: mongoose.Types.ObjectId,
41
- },
42
- userName: {
43
- type: String
44
- },
45
- role: {
46
- type: String
47
- },
48
- qno: {
49
- type: Number,
50
- },
51
- question: {
52
- type: String
53
- },
54
- timeStamp: {
55
- type: Date,
56
- default: Date.now()
57
- },
58
- video: {
59
- type: String
60
- },
61
- image: {
62
- type: String
63
- },
64
- Details: []
65
- }
66
- ]
67
- }],
10
+ answers: {
11
+ type: Array,
12
+ default: []
13
+ },
68
14
  planoId: {
69
15
  type: mongoose.Types.ObjectId,
70
16
  required: true
@@ -81,21 +27,18 @@ const planoTaskCompliance = new mongoose.Schema(
81
27
  enum: ['fixture', 'vm', 'product', 'layout'],
82
28
  required: true
83
29
  },
84
- date_string: {
85
- type: String,
86
- required: true
30
+ date_string:{
31
+ type:String,
32
+ required:true
87
33
  },
88
- storeName: {
89
- type: String
34
+ storeName:{
35
+ type:String
90
36
  },
91
- storeId: {
92
- type: String
93
- },
94
- taskId: {
95
- type: mongoose.Types.ObjectId
37
+ taskId:{
38
+ type:mongoose.Types.ObjectId
96
39
  },
97
- date_iso: {
98
- type: Date
40
+ date_iso:{
41
+ type:Date
99
42
  }
100
43
  },
101
44
  {