tango-api-schema 2.1.69 → 2.1.71

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.
Files changed (69) hide show
  1. package/index.js +134 -134
  2. package/package.json +25 -27
  3. package/schema/aiTicketConfig.js +42 -42
  4. package/schema/appVersion.js +32 -32
  5. package/schema/applicationDefault.model.js +24 -24
  6. package/schema/assignAudit.model.js +55 -55
  7. package/schema/auditLogs.model.js +77 -77
  8. package/schema/auditStoreData.model.js +56 -56
  9. package/schema/auditUserWallet.model.js +98 -98
  10. package/schema/auditUsers.model.js +39 -39
  11. package/schema/authentication.model.js +27 -27
  12. package/schema/basePricing.model.js +28 -29
  13. package/schema/billing.model.js +99 -99
  14. package/schema/binaryAudit.model.js +84 -84
  15. package/schema/camera.model.js +144 -146
  16. package/schema/checklistassignconfig.js +71 -71
  17. package/schema/checklistconfig.js +176 -176
  18. package/schema/checklistlog.js +59 -59
  19. package/schema/checklistquestionconfig.js +147 -147
  20. package/schema/client.model.js +556 -545
  21. package/schema/clientRequest.model.js +38 -40
  22. package/schema/cluster.model.js +66 -68
  23. package/schema/controlCenterTemplateList.model.js +39 -39
  24. package/schema/countryCodes.model.js +26 -28
  25. package/schema/dailyPricing.model.js +86 -88
  26. package/schema/dataMismatchDraft.model.js +22 -22
  27. package/schema/domain.js +18 -18
  28. package/schema/download.js +104 -104
  29. package/schema/edgeAppVersion.model.js +33 -33
  30. package/schema/edgeappAuth.model.js +30 -32
  31. package/schema/empDetectionOutput.model.js +64 -64
  32. package/schema/externalParameter.model.js +202 -202
  33. package/schema/eyetest.model.js +18 -18
  34. package/schema/fitting.model.js +52 -52
  35. package/schema/group.model.js +34 -36
  36. package/schema/hotjar.model.js +11 -11
  37. package/schema/infraReason.model.js +44 -44
  38. package/schema/internalAuth.model.js +35 -36
  39. package/schema/invoice.model.js +104 -106
  40. package/schema/ipLogs.model.js +37 -39
  41. package/schema/lead.model.js +76 -78
  42. package/schema/lenskartEmployeeMapping.model.js +63 -63
  43. package/schema/liveConnection.model.js +46 -47
  44. package/schema/locusOrder.model.js +154 -154
  45. package/schema/locusOrderUser.model.js +14 -14
  46. package/schema/lowcountReason.model.js +44 -44
  47. package/schema/mailOnlyuser.model.js +42 -44
  48. package/schema/matLog.model.js +26 -26
  49. package/schema/otp.model.js +25 -27
  50. package/schema/paymentAccount.model.js +60 -60
  51. package/schema/processedchecklist.js +188 -188
  52. package/schema/processedchecklistconfig.js +105 -105
  53. package/schema/processeddetection.js +85 -85
  54. package/schema/quality.model.js +57 -57
  55. package/schema/report.model.js +30 -30
  56. package/schema/standaredRole.model.js +76 -76
  57. package/schema/store.model.js +323 -325
  58. package/schema/storeAudit.model.js +62 -62
  59. package/schema/storeEmpDetection.model.js +62 -62
  60. package/schema/tagging.model.js +42 -44
  61. package/schema/tangoTicket.model.js +210 -210
  62. package/schema/teams.model.js +46 -48
  63. package/schema/transaction.model.js +54 -54
  64. package/schema/traxAuditData.model.js +61 -61
  65. package/schema/user.model.js +120 -121
  66. package/schema/userAssignedStore.model.js +41 -41
  67. package/schema/userAudit.model.js +77 -77
  68. package/schema/userEmpDetection.model.js +81 -81
  69. package/schema/workstation.model.js +75 -77
@@ -1,202 +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: 0
129
- },
130
- reidParameterType: {
131
- type: String,
132
- default: "default"
133
- },
134
- reidParameterValue: {
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");
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: 0
129
+ },
130
+ reidParameterType: {
131
+ type: String,
132
+ default: "default"
133
+ },
134
+ reidParameterValue: {
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");
@@ -1,18 +1,18 @@
1
- /**
2
- * @name api_eyeTest_models
3
- * @description EyeTest Schema
4
- */
5
-
6
- import mongoose from "mongoose";
7
-
8
- // Schema
9
- const collection = new mongoose.Schema(
10
- {},
11
- {
12
- timestamps: true,
13
- strict: true,
14
- versionKey: false,
15
- }
16
- );
17
-
18
- export default mongoose.model("eyeTest", collection);
1
+ /**
2
+ * @name api_eyeTest_models
3
+ * @description EyeTest Schema
4
+ */
5
+
6
+ import mongoose from "mongoose";
7
+
8
+ // Schema
9
+ const collection = new mongoose.Schema(
10
+ {},
11
+ {
12
+ timestamps: true,
13
+ strict: true,
14
+ versionKey: false,
15
+ }
16
+ );
17
+
18
+ export default mongoose.model("eyeTest", collection);
@@ -1,52 +1,52 @@
1
- /**
2
- * @name api_eyeTest_models
3
- * @description EyeTest Schema
4
- */
5
-
6
- import { Schema, model } from 'mongoose';
7
-
8
-
9
- // Schema
10
- const collection = new Schema( {
11
- actionType: {
12
- type: String,
13
- required:true
14
- },
15
- workstationId: {
16
- type: String,
17
- required:true
18
- },
19
- staticIP: {
20
- type: String,
21
- },
22
- fittingId: {
23
- type: String,
24
- },
25
- userId: {
26
- type: String,
27
- },
28
- userEmail:{
29
- type: String,
30
- },
31
- status:{
32
- type:Boolean
33
- },
34
- frameType:{
35
- type: String,
36
- },
37
- productId:{
38
- type: String,
39
- },
40
- timestamp:{
41
- type: String,
42
- }
43
- }, {
44
- timestamps: true,
45
- strict: true,
46
- versionKey: false,
47
- } );
48
-
49
- collection.index({createdAt: 1 })
50
- collection.index({fittingId: 1 })
51
- collection.index({userId: 1 })
52
- export default model( 'fitting', collection );
1
+ /**
2
+ * @name api_eyeTest_models
3
+ * @description EyeTest Schema
4
+ */
5
+
6
+ import { Schema, model } from 'mongoose';
7
+
8
+
9
+ // Schema
10
+ const collection = new Schema( {
11
+ actionType: {
12
+ type: String,
13
+ required:true
14
+ },
15
+ workstationId: {
16
+ type: String,
17
+ required:true
18
+ },
19
+ staticIP: {
20
+ type: String,
21
+ },
22
+ fittingId: {
23
+ type: String,
24
+ },
25
+ userId: {
26
+ type: String,
27
+ },
28
+ userEmail:{
29
+ type: String,
30
+ },
31
+ status:{
32
+ type:Boolean
33
+ },
34
+ frameType:{
35
+ type: String,
36
+ },
37
+ productId:{
38
+ type: String,
39
+ },
40
+ timestamp:{
41
+ type: String,
42
+ }
43
+ }, {
44
+ timestamps: true,
45
+ strict: true,
46
+ versionKey: false,
47
+ } );
48
+
49
+ collection.index({createdAt: 1 })
50
+ collection.index({fittingId: 1 })
51
+ collection.index({userId: 1 })
52
+ export default model( 'fitting', collection );
@@ -1,36 +1,34 @@
1
- import mongoose from 'mongoose';
2
- import mongooseUniqueValidator from 'mongoose-unique-validator';
3
-
4
- const group = new mongoose.Schema(
5
- {
6
- groupName: {
7
- type: String,
8
- trim: true,
9
- },
10
- storeList: {
11
- type:Array
12
- },
13
- clientId:{
14
- type: String
15
- },
16
- description: {
17
- type: String
18
- },
19
- isActive: {
20
- type: Boolean,
21
- default: true
22
- },
23
- isDefault: {
24
- type: Boolean,
25
- default: false
26
- }
27
- },
28
- {
29
- strict: true,
30
- versionKey: false,
31
- timestamps: true,
32
- },
33
- );
34
-
35
- group.plugin( mongooseUniqueValidator );
36
- export default mongoose.model( 'group', group);
1
+ import mongoose from 'mongoose';
2
+
3
+ const group = new mongoose.Schema(
4
+ {
5
+ groupName: {
6
+ type: String,
7
+ trim: true,
8
+ },
9
+ storeList: {
10
+ type:Array
11
+ },
12
+ clientId:{
13
+ type: String
14
+ },
15
+ description: {
16
+ type: String
17
+ },
18
+ isActive: {
19
+ type: Boolean,
20
+ default: true
21
+ },
22
+ isDefault: {
23
+ type: Boolean,
24
+ default: false
25
+ }
26
+ },
27
+ {
28
+ strict: true,
29
+ versionKey: false,
30
+ timestamps: true,
31
+ },
32
+ );
33
+
34
+ export default mongoose.model( 'group', group);
@@ -1,11 +1,11 @@
1
- import { Schema, model } from 'mongoose';
2
-
3
- const collection = new Schema( {
4
-
5
- },{
6
- timestamps: true,
7
- versionKey: false,
8
- strict: false,
9
- })
10
- collection.index( { createdAt: 1 } );
11
- export default model( 'hotJarTracking', collection, 'hotJarTracking' );
1
+ import { Schema, model } from 'mongoose';
2
+
3
+ const collection = new Schema( {
4
+
5
+ },{
6
+ timestamps: true,
7
+ versionKey: false,
8
+ strict: false,
9
+ })
10
+ collection.index( { createdAt: 1 } );
11
+ export default model( 'hotJarTracking', collection, 'hotJarTracking' );