tango-api-schema 2.1.11 → 2.1.13

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 (46) hide show
  1. package/index.js +91 -89
  2. package/package.json +27 -27
  3. package/schema/applicationDefault.model.js +24 -24
  4. package/schema/assignAudit.model.js +55 -55
  5. package/schema/auditLogs.model.js +72 -72
  6. package/schema/auditStoreData.model.js +55 -55
  7. package/schema/auditUserWallet.model.js +68 -0
  8. package/schema/authentication.model.js +27 -27
  9. package/schema/basePricing.model.js +29 -29
  10. package/schema/billing.model.js +99 -99
  11. package/schema/binaryAudit.model.js +84 -84
  12. package/schema/camera.model.js +146 -146
  13. package/schema/client.model.js +514 -514
  14. package/schema/clientRequest.model.js +40 -40
  15. package/schema/countryCodes.model.js +28 -28
  16. package/schema/dailyPricing.model.js +88 -88
  17. package/schema/dataMismatchDraft.model.js +22 -22
  18. package/schema/edgeAppVersion.model.js +33 -33
  19. package/schema/edgeappAuth.model.js +32 -32
  20. package/schema/externalParameter.model.js +202 -202
  21. package/schema/fitting.model.js +52 -52
  22. package/schema/group.model.js +36 -36
  23. package/schema/infraReason.model.js +44 -44
  24. package/schema/internalAuth.model.js +36 -36
  25. package/schema/invoice.model.js +106 -106
  26. package/schema/ipLogs.model.js +39 -39
  27. package/schema/lead.model.js +78 -78
  28. package/schema/lowcountReason.model.js +44 -44
  29. package/schema/matLog.model.js +26 -26
  30. package/schema/otp.model.js +27 -27
  31. package/schema/paymentAccount.model.js +60 -60
  32. package/schema/quality.model.js +57 -57
  33. package/schema/report.model.js +30 -30
  34. package/schema/standaredRole.model.js +56 -56
  35. package/schema/store.model.js +321 -321
  36. package/schema/storeAudit.model.js +61 -61
  37. package/schema/storeEmpDetection.model.js +61 -61
  38. package/schema/tagging.model.js +44 -44
  39. package/schema/tangoTicket.model.js +210 -210
  40. package/schema/transaction.model.js +54 -54
  41. package/schema/traxAuditData.model.js +60 -60
  42. package/schema/user.model.js +95 -95
  43. package/schema/userAssignedStore.model.js +41 -41
  44. package/schema/userAudit.model.js +76 -76
  45. package/schema/userEmpDetection.model.js +74 -74
  46. package/schema/workstation.model.js +77 -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,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,36 @@
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
+ 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,45 +1,45 @@
1
- import mongoose from 'mongoose';
2
-
3
- const infraReasons = new mongoose.Schema(
4
- {
5
- name: {
6
- type: String,
7
- },
8
- parentId: {
9
- type: mongoose.Types.ObjectId
10
- },
11
- parentName: {
12
- type: String
13
- },
14
- order: {
15
- type: Number
16
- },
17
- toolTips: [
18
- {
19
- name: {
20
- type: String
21
- },
22
- order: {
23
- type: Number
24
- },
25
- }
26
- ],
27
- stepstoResolve: [{
28
- name: {
29
- type: String
30
- },
31
- order: {
32
- type: Number
33
- },
34
- }
35
- ],
36
- },
37
- {
38
- strict: true,
39
- versionKey: false,
40
- timestamps: true,
41
- },
42
- );
43
-
44
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const infraReasons = new mongoose.Schema(
4
+ {
5
+ name: {
6
+ type: String,
7
+ },
8
+ parentId: {
9
+ type: mongoose.Types.ObjectId
10
+ },
11
+ parentName: {
12
+ type: String
13
+ },
14
+ order: {
15
+ type: Number
16
+ },
17
+ toolTips: [
18
+ {
19
+ name: {
20
+ type: String
21
+ },
22
+ order: {
23
+ type: Number
24
+ },
25
+ }
26
+ ],
27
+ stepstoResolve: [{
28
+ name: {
29
+ type: String
30
+ },
31
+ order: {
32
+ type: Number
33
+ },
34
+ }
35
+ ],
36
+ },
37
+ {
38
+ strict: true,
39
+ versionKey: false,
40
+ timestamps: true,
41
+ },
42
+ );
43
+
44
+
45
45
  export default mongoose.model('infraReasons', infraReasons, 'infraReasons');