tango-api-schema 2.1.86 → 2.1.87

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.1.86",
3
+ "version": "2.1.87",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -177,6 +177,18 @@ const processedchecklistSchema = new mongoose.Schema({
177
177
  aiStoreList: {
178
178
  type:Array,
179
179
  default:[]
180
+ },
181
+ approvalStatus:{
182
+ type:Boolean,
183
+ default:false
184
+ },
185
+ approvalEnable:{
186
+ type:Boolean,
187
+ default:false
188
+ },
189
+ redoStatus:{
190
+ type:Boolean,
191
+ default:false
180
192
  }
181
193
  },
182
194
  {
@@ -95,6 +95,10 @@ const processedchecklistconfigSchema = new mongoose.Schema({
95
95
  type: Boolean,
96
96
  default:false
97
97
  },
98
+ approver:{
99
+ type:Array,
100
+ default:[]
101
+ },
98
102
  },
99
103
  {
100
104
  strict: true,
@@ -56,6 +56,10 @@ const taskassignconfigSchema = new mongoose.Schema({
56
56
  isdeleted: {
57
57
  type: Boolean,
58
58
  default: false
59
+ },
60
+ reinitiate:{
61
+ type:Boolean,
62
+ default:false
59
63
  }
60
64
  },
61
65
  {
@@ -51,7 +51,7 @@ const taskSchema = new mongoose.Schema(
51
51
  checkListType:{
52
52
  type:String,
53
53
  default:"task",
54
- enum: ['task','cctv']
54
+ enum: ['task','checklistTask','cctv']
55
55
  },
56
56
  createdAt: {
57
57
  type: Date,
@@ -89,6 +89,14 @@ const taskSchema = new mongoose.Schema(
89
89
  type: Boolean,
90
90
  default:false
91
91
  },
92
+ reinitiate:{
93
+ type:Boolean,
94
+ default:false
95
+ },
96
+ referenceCheckListId:{
97
+ type:mongoose.SchemaTypes.ObjectId,
98
+ default:''
99
+ }
92
100
  },
93
101
  {
94
102
  strict: true,
@@ -77,8 +77,8 @@ const processedTaskSchema = new mongoose.Schema(
77
77
  },
78
78
  checkListType: {
79
79
  type: String,
80
- default: "custom",
81
- enum: ["task","cctv"]
80
+ default: "task",
81
+ enum: ["task","checklistTask",'cctv']
82
82
  },
83
83
  store_id: {
84
84
  type: String,
@@ -166,6 +166,18 @@ const processedTaskSchema = new mongoose.Schema(
166
166
  submitMobileTime:{
167
167
  type:String
168
168
  },
169
+ approvalStatus:{
170
+ type:Boolean,
171
+ default:false
172
+ },
173
+ approvalEnable:{
174
+ type:Boolean,
175
+ default:false
176
+ },
177
+ redoStatus:{
178
+ type:Boolean,
179
+ default:false
180
+ }
169
181
  },
170
182
  {
171
183
  strict: true,
@@ -77,7 +77,7 @@ const processestaskconfigSchema = new mongoose.Schema({
77
77
  checkListType: {
78
78
  type: String,
79
79
  default: "task",
80
- enum: ['task','cctv']
80
+ enum: ['task',"checklistTask",'cctv']
81
81
  },
82
82
  startTime:{
83
83
  type:Date
@@ -16,6 +16,10 @@ const traxApproverSchema = new mongoose.Schema({
16
16
  type:{
17
17
  type:String,
18
18
  enum:['checklist','task']
19
+ },
20
+ client_id:{
21
+ type:String,
22
+ default:''
19
23
  }
20
24
  },
21
25
  {