tango-api-schema 2.0.130 → 2.0.132

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.130",
3
+ "version": "2.0.132",
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
  },
@@ -49,6 +49,9 @@ let pricingSchema = new mongoose.Schema(
49
49
  storeRange:{
50
50
  type:String
51
51
  },
52
+ workingdays:{
53
+ type:Number
54
+ }
52
55
  }
53
56
  ]
54
57
  }
@@ -0,0 +1,204 @@
1
+ import mongoose from "mongoose";
2
+ import mongooseUniqueValidator from "mongoose-unique-validator";
3
+
4
+ const externalParameter = new mongoose.Schema(
5
+ {
6
+ storeId: {
7
+ type: String,
8
+ trim: true,
9
+ required: true,
10
+ unique: true,
11
+ },
12
+ productName:{
13
+ type: String
14
+ },
15
+ zoneName:{
16
+ type: String
17
+ },
18
+ clientId: {
19
+ type: String,
20
+ trim: true,
21
+ required: true,
22
+ },
23
+ isAlwaysAudit: {
24
+ type: Boolean,
25
+ default: false
26
+ },
27
+ bcTrendOldPipelineWkday: {
28
+ type: Number,
29
+ default: 0
30
+ },
31
+ bcTrendOldPipelineWkend: {
32
+ type: Number,
33
+ default: 0
34
+ },
35
+ isManualEdit: {
36
+ type: Boolean,
37
+ default: false
38
+ },
39
+ empThres: {
40
+ type: Number,
41
+ default: 0.4
42
+ },
43
+ isFixEmpThres: {
44
+ type: Boolean,
45
+ default: false
46
+ },
47
+ isEmpEod: {
48
+ type: Boolean,
49
+ default: false
50
+ },
51
+ eodInterStartSeconds: {
52
+ type: Number,
53
+ default: 3600
54
+ },
55
+ isOneImgEod: {
56
+ type: Boolean,
57
+ default: true
58
+ },
59
+ holiDayThres: {
60
+ type: Number,
61
+ default: 0
62
+ },
63
+ lastMatFileUpdatedDate: {
64
+ type: Number,
65
+ default: 0
66
+ },
67
+ lastParameterUpdatedDate: {
68
+ type: Number,
69
+ default: 0
70
+ },
71
+ lastThresholdUpdatedDate: {
72
+ type: Number,
73
+ default: 0
74
+ },
75
+ liveInterStartSeconds: {
76
+ type: Number,
77
+ default: 1800
78
+ },
79
+ liveLastParameterUpdatedDate: {
80
+ type: Number,
81
+ default: 0
82
+ },
83
+ isOneImgLive: {
84
+ type: Boolean,
85
+ default: true
86
+ },
87
+ liveReidDeltaValue: {
88
+ type: Number,
89
+ default: 0
90
+ },
91
+ requiredLiveReidParameterDays: {
92
+ type: Number,
93
+ default: 5
94
+ },
95
+ liveReidParameterType: {
96
+ type: String,
97
+ default: "default"
98
+ },
99
+ liveReidParameterValue: {
100
+ type: Array,
101
+ default: [0.6, 1, 0.6]
102
+ },
103
+ liveReidSuggestedParameter: {
104
+ type: Boolean,
105
+ default: false
106
+ },
107
+ liveReidSuggestedReduction: {
108
+ type: Boolean,
109
+ default: false
110
+ },
111
+ isGenerateMatData: {
112
+ type: Boolean,
113
+ default: false
114
+ },
115
+ matDataGeneratedDate: {
116
+ type: Number,
117
+ default: 0
118
+ },
119
+ isupdateModel: {
120
+ type: Boolean,
121
+ default: false
122
+ },
123
+ isCheckPastBcThres: {
124
+ type: Boolean,
125
+ default: false
126
+ },
127
+ reidDeltaValue: {
128
+ type: Number,
129
+ default: Number
130
+ },
131
+ reidParameterType: {
132
+ type: String,
133
+ default: "default"
134
+ },
135
+ reid_parameter_value: {
136
+ type: Array,
137
+ default: [0.6, 1, 0.6]
138
+ },
139
+ reidSuggesteParameter: {
140
+ type: Boolean,
141
+ default: false
142
+ },
143
+ reidSuggestedReduction: {
144
+ type: Boolean,
145
+ default: false
146
+ },
147
+ reidThresholdHoliday: {
148
+ type: Number,
149
+ default: 0
150
+ },
151
+ reidThresholdWeekDay: {
152
+ type: Number,
153
+ default: 0
154
+ },
155
+ stage: {
156
+ type: String,
157
+ default: ""
158
+ },
159
+ reidReductionValue: {
160
+ type: Object
161
+ },
162
+ liveParameterDays: {
163
+ type: Object
164
+ },
165
+ liveReidXRange: {
166
+ type: Object
167
+ },
168
+ requiredReidParameterDays: {
169
+ type: Number,
170
+ default: 7
171
+ },
172
+ isLiveWalkIn: {
173
+ type: Boolean,
174
+ default: false
175
+ },
176
+ walkInTimeSpent: {
177
+ type: Number,
178
+ default: 3
179
+ },
180
+ isWalkInOneImg: {
181
+ type: Boolean,
182
+ default: false
183
+ },
184
+ isAudit: {
185
+ type:Boolean,
186
+ default:true
187
+ },
188
+ isForceCombine:{
189
+ type: Boolean,
190
+ default:false
191
+ }
192
+
193
+ },
194
+ {
195
+ strict: true,
196
+ versionKey: false,
197
+ timestamps: true,
198
+ }
199
+ );
200
+
201
+ externalParameter.index({ storeId: 1, clientId: 1, appId: 1 });
202
+ externalParameter.plugin(mongooseUniqueValidator);
203
+
204
+ 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
  },