tango-api-schema 2.0.131 → 2.0.133

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/index.js CHANGED
@@ -34,6 +34,7 @@ import auditClientDataModel from "./schema/auditClientData.model.js";
34
34
  import auditLogsModel from "./schema/auditLogs.model.js";
35
35
  import internalAuthModel from "./schema/internalAuth.model.js";
36
36
  import paymentAccountModel from "./schema/paymentAccount.model.js";
37
+ import externalParameterModel from "./schema/externalParameter.model.js";
37
38
 
38
39
  export default {
39
40
  leadModel,
@@ -71,5 +72,6 @@ export default {
71
72
  billingModel,
72
73
  auditLogsModel,
73
74
  internalAuthModel,
74
- paymentAccountModel
75
+ paymentAccountModel,
76
+ externalParameterModel
75
77
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.0.131",
3
+ "version": "2.0.133",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -88,6 +88,29 @@ const collection = new Schema(
88
88
  type: Number,
89
89
  default: 10,
90
90
  },
91
+ dynamicFilterType: {
92
+ type: String,
93
+ default: "default"
94
+ },
95
+ requiredDays: {
96
+ type: Number,
97
+ default: 3
98
+ },
99
+ updatedAt: {
100
+ type: Date
101
+ },
102
+ dynamicArea: {
103
+ type: Number,
104
+ default: 5000
105
+ },
106
+ minAspectRatio: {
107
+ type: Number,
108
+ default: 0.2
109
+ },
110
+ maxAspectRatio: {
111
+ type: Number,
112
+ default: 0.9
113
+ }
91
114
  },
92
115
  productModule: {
93
116
  type: Array,
@@ -96,10 +119,10 @@ const collection = new Schema(
96
119
  type: Boolean,
97
120
  default: false,
98
121
  },
99
- width:{
122
+ width: {
100
123
  type: Number,
101
124
  },
102
- height:{
125
+ height: {
103
126
  type: Number,
104
127
  }
105
128
  },
@@ -0,0 +1,202 @@
1
+ import mongoose from "mongoose";
2
+
3
+ const externalParameter = new mongoose.Schema(
4
+ {
5
+ storeId: {
6
+ type: String,
7
+ trim: true,
8
+ required: true,
9
+ },
10
+ productName:{
11
+ type: String,
12
+ required:true
13
+ },
14
+ zoneName:{
15
+ type: String,
16
+ required:true
17
+ },
18
+ clientId: {
19
+ type: String,
20
+ trim: true,
21
+ },
22
+ isAlwaysAudit: {
23
+ type: Boolean,
24
+ default: false
25
+ },
26
+ bcTrendOldPipelineWkday: {
27
+ type: Number,
28
+ default: 0
29
+ },
30
+ bcTrendOldPipelineWkend: {
31
+ type: Number,
32
+ default: 0
33
+ },
34
+ isManualEdit: {
35
+ type: Boolean,
36
+ default: false
37
+ },
38
+ empThres: {
39
+ type: Number,
40
+ default: 0.4
41
+ },
42
+ isFixEmpThres: {
43
+ type: Boolean,
44
+ default: false
45
+ },
46
+ isEmpEod: {
47
+ type: Boolean,
48
+ default: false
49
+ },
50
+ eodInterStartSeconds: {
51
+ type: Number,
52
+ default: 3600
53
+ },
54
+ isOneImgEod: {
55
+ type: Boolean,
56
+ default: true
57
+ },
58
+ holiDayThres: {
59
+ type: Number,
60
+ default: 0
61
+ },
62
+ lastMatFileUpdatedDate: {
63
+ type: Number,
64
+ default: 0
65
+ },
66
+ lastParameterUpdatedDate: {
67
+ type: Number,
68
+ default: 0
69
+ },
70
+ lastThresholdUpdatedDate: {
71
+ type: Number,
72
+ default: 0
73
+ },
74
+ liveInterStartSeconds: {
75
+ type: Number,
76
+ default: 1800
77
+ },
78
+ liveLastParameterUpdatedDate: {
79
+ type: Number,
80
+ default: 0
81
+ },
82
+ isOneImgLive: {
83
+ type: Boolean,
84
+ default: true
85
+ },
86
+ liveReidDeltaValue: {
87
+ type: Number,
88
+ default: 0
89
+ },
90
+ requiredLiveReidParameterDays: {
91
+ type: Number,
92
+ default: 5
93
+ },
94
+ liveReidParameterType: {
95
+ type: String,
96
+ default: "default"
97
+ },
98
+ liveReidParameterValue: {
99
+ type: Array,
100
+ default: [0.6, 1, 0.6]
101
+ },
102
+ liveReidSuggestedParameter: {
103
+ type: Boolean,
104
+ default: false
105
+ },
106
+ liveReidSuggestedReduction: {
107
+ type: Boolean,
108
+ default: false
109
+ },
110
+ isGenerateMatData: {
111
+ type: Boolean,
112
+ default: false
113
+ },
114
+ matDataGeneratedDate: {
115
+ type: Number,
116
+ default: 0
117
+ },
118
+ isupdateModel: {
119
+ type: Boolean,
120
+ default: false
121
+ },
122
+ isCheckPastBcThres: {
123
+ type: Boolean,
124
+ default: false
125
+ },
126
+ reidDeltaValue: {
127
+ type: Number,
128
+ default: Number
129
+ },
130
+ reidParameterType: {
131
+ type: String,
132
+ default: "default"
133
+ },
134
+ reid_parameter_value: {
135
+ type: Array,
136
+ default: [0.6, 1, 0.6]
137
+ },
138
+ reidSuggesteParameter: {
139
+ type: Boolean,
140
+ default: false
141
+ },
142
+ reidSuggestedReduction: {
143
+ type: Boolean,
144
+ default: false
145
+ },
146
+ reidThresholdHoliday: {
147
+ type: Number,
148
+ default: 0
149
+ },
150
+ reidThresholdWeekDay: {
151
+ type: Number,
152
+ default: 0
153
+ },
154
+ stage: {
155
+ type: String,
156
+ default: ""
157
+ },
158
+ reidReductionValue: {
159
+ type: Object
160
+ },
161
+ liveParameterDays: {
162
+ type: Object
163
+ },
164
+ liveReidXRange: {
165
+ type: Object
166
+ },
167
+ requiredReidParameterDays: {
168
+ type: Number,
169
+ default: 7
170
+ },
171
+ isLiveWalkIn: {
172
+ type: Boolean,
173
+ default: false
174
+ },
175
+ walkInTimeSpent: {
176
+ type: Number,
177
+ default: 3
178
+ },
179
+ isWalkInOneImg: {
180
+ type: Boolean,
181
+ default: false
182
+ },
183
+ isAudit: {
184
+ type:Boolean,
185
+ default:true
186
+ },
187
+ isForceCombine:{
188
+ type: Boolean,
189
+ default:false
190
+ }
191
+
192
+ },
193
+ {
194
+ strict: true,
195
+ versionKey: false,
196
+ timestamps: true,
197
+ }
198
+ );
199
+
200
+ externalParameter.index({ storeId: 1, zoneName:1 });
201
+
202
+ export default mongoose.model("externalParameter", externalParameter, externalParameter);
@@ -35,7 +35,7 @@ const store = new mongoose.Schema(
35
35
  type: String,
36
36
  },
37
37
  },
38
- progress:{
38
+ progress: {
39
39
  type: Number,
40
40
  default: 20
41
41
  },
@@ -178,10 +178,10 @@ const store = new mongoose.Schema(
178
178
  configurationStage: {
179
179
  type: String,
180
180
  },
181
- isSocketEnable:{
181
+ isSocketEnable: {
182
182
  type: Boolean,
183
183
  },
184
- storeCameraManufacturer:[
184
+ storeCameraManufacturer: [
185
185
  {
186
186
  ip: { type: String },
187
187
  manufacturer: { type: String },
@@ -191,12 +191,12 @@ const store = new mongoose.Schema(
191
191
  lastUpdatedAt: {
192
192
  type: Date,
193
193
  },
194
- serialNumber:{
194
+ serialNumber: {
195
195
  type: String,
196
196
  },
197
- reScanIp:{
198
- type:Boolean,
199
- default:false
197
+ reScanIp: {
198
+ type: Boolean,
199
+ default: false
200
200
  }
201
201
  },
202
202
  spocDetails: [
@@ -280,25 +280,40 @@ const store = new mongoose.Schema(
280
280
  type: String,
281
281
  default: 'dynamic',
282
282
  },
283
- liveQueue:{
283
+ liveQueue: {
284
284
  type: String,
285
285
  default: "yolo-v2",
286
286
  },
287
- queueList:{
288
- type:Array
289
- }
287
+ queueList: {
288
+ type: Array
289
+ },
290
+ productFilter: [
291
+ {
292
+ productName: {
293
+ type: String
294
+ },
295
+ isEnabled: {
296
+ type: Boolean,
297
+ default: true,
298
+ },
299
+ processType: {
300
+ type: String,
301
+ default: "eod"
302
+ }
303
+ }
304
+ ]
290
305
  },
291
306
  product: {
292
307
  type: Array,
293
308
  },
294
- matConfigs:{
309
+ matConfigs: {
295
310
  status: {
296
311
  type: String
297
312
  },
298
- fileCount:{
313
+ fileCount: {
299
314
  type: Number
300
315
  },
301
- configureDays:{
316
+ configureDays: {
302
317
  type: Number,
303
318
  default: 3
304
319
  },