tango-api-schema 2.3.15 → 2.3.17

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 (54) hide show
  1. package/build.js +24 -24
  2. package/index.js +215 -213
  3. package/package.json +27 -27
  4. package/schema/appVersion.js +39 -39
  5. package/schema/auditConfig.model.js +41 -41
  6. package/schema/auditUserBaseSalary.model.js +46 -46
  7. package/schema/binaryAudit.model.js +84 -84
  8. package/schema/camera.model.js +211 -211
  9. package/schema/checklistassignconfig.js +90 -90
  10. package/schema/checklistconfig.js +295 -295
  11. package/schema/checklistlog.js +113 -113
  12. package/schema/checklistquestionconfig.js +153 -153
  13. package/schema/client.model.js +687 -687
  14. package/schema/countryCurrency.model.js +17 -17
  15. package/schema/dailyPricing.model.js +89 -89
  16. package/schema/download.js +124 -124
  17. package/schema/emailers.model.js +45 -45
  18. package/schema/externalParameter.model.js +273 -273
  19. package/schema/eyeTestConfiguration.model.js +39 -0
  20. package/schema/fixtureConfig.model.js +223 -223
  21. package/schema/fixtureLibrary.model.js +167 -167
  22. package/schema/fixtureShelf.model.js +78 -78
  23. package/schema/liveConnection.model.js +54 -54
  24. package/schema/loginAttempt.model.js +31 -31
  25. package/schema/notification.model.js +45 -45
  26. package/schema/planoCrestLog.model.js +17 -17
  27. package/schema/planoGlobalComment.model.js +45 -45
  28. package/schema/planoMapping.model.js +62 -62
  29. package/schema/planoProductCategoryDetails.model.js +25 -25
  30. package/schema/planoProductDetail.model.js +63 -63
  31. package/schema/planoQrConversionRequest.model.js +61 -61
  32. package/schema/planoRevision.model.js +36 -36
  33. package/schema/planoStaticData.model.js +17 -17
  34. package/schema/planoTaskCompliance.model.js +397 -397
  35. package/schema/planoVmDetail.model.js +63 -63
  36. package/schema/planogram.model.js +66 -66
  37. package/schema/processedchecklist.js +256 -256
  38. package/schema/processedchecklistconfig.js +226 -226
  39. package/schema/revopConfig.model.js +19 -19
  40. package/schema/revopDownload.model.js +49 -49
  41. package/schema/runAIFeatures.js +24 -24
  42. package/schema/runAIRequest.js +53 -53
  43. package/schema/store.model.js +405 -405
  44. package/schema/storeFixture.model.js +228 -228
  45. package/schema/storeLayout.model.js +74 -74
  46. package/schema/streaming.model.js +29 -29
  47. package/schema/suspiciousActivity.model.js +54 -54
  48. package/schema/taskAssign.model.js +90 -90
  49. package/schema/taskConfig.model.js +121 -121
  50. package/schema/taskProcessed.model.js +257 -257
  51. package/schema/taskProcessedConfig.model.js +134 -134
  52. package/schema/templateLog.model.js +17 -17
  53. package/schema/user.model.js +139 -139
  54. package/schema/vmType.model.js +23 -23
@@ -1,168 +1,168 @@
1
- import mongoose from 'mongoose';
2
-
3
- const fixtureLibrarySchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type: String,
7
- required: true,
8
- },
9
- fixtureCategory: {
10
- type: String,
11
- },
12
- fixtureType: {
13
- type: String,
14
- enum: ['wall', 'floor'],
15
- },
16
- fixtureLength: {
17
- value: {
18
- type: Number,
19
- default: 0,
20
- },
21
- unit: {
22
- type: String,
23
- default: 'ft',
24
- },
25
- },
26
- fixtureWidth: {
27
- value: {
28
- type: Number,
29
- default: 0,
30
- },
31
- unit: {
32
- type: String,
33
- default: 'ft',
34
- },
35
- },
36
- fixtureStaticLength: {
37
- value: {
38
- type: Number,
39
- default: 1524,
40
- },
41
- unit: {
42
- type: String,
43
- default: 'mm',
44
- },
45
- },
46
- fixtureStaticWidth: {
47
- value: {
48
- type: Number,
49
- default: 1220,
50
- },
51
- unit: {
52
- type: String,
53
- default: 'mm',
54
- },
55
- },
56
- header: {
57
- isEnabled: {
58
- type: Boolean,
59
- default: true,
60
- },
61
- height: {
62
- value: {
63
- type: Number,
64
- default: 0,
65
- },
66
- unit: {
67
- type: String,
68
- default: 'mm',
69
- },
70
- }
71
- },
72
- footer: {
73
- isEnabled: {
74
- type: Boolean,
75
- default: true,
76
- },
77
- height: {
78
- value: {
79
- type: Number,
80
- default: 0,
81
- },
82
- unit: {
83
- type: String,
84
- default: 'mm',
85
- },
86
- }
87
- },
88
- isBodyEnabled: {
89
- type: Boolean,
90
- default: true,
91
- },
92
- fixtureCapacity: {
93
- type: Number,
94
- default: 0,
95
- },
96
- status: {
97
- type: String,
98
- enum: ['draft', 'complete'],
99
- default: 'draft',
100
- },
101
- shelfConfig: [
102
- {
103
- shelfNumber: {
104
- type: Number,
105
- required: true,
106
- },
107
- shelfType: {
108
- type: String,
109
- enum: ['shelf', 'tray'],
110
- },
111
- zone: {
112
- type: String,
113
- },
114
- shelfZone: {
115
- type: String,
116
- },
117
- productPerShelf: {
118
- type: Number,
119
- default: 0,
120
- },
121
- trayRows: {
122
- type: Number,
123
- default: 0,
124
- },
125
- label: {
126
- type: String,
127
- default: '',
128
- },
129
- },
130
- ],
131
- vmConfig: [
132
- {
133
- vmNumber: {
134
- type: Number,
135
- },
136
- vmHeightmm: {
137
- type: Number,
138
- },
139
- vmWidthmm: {
140
- type: Number,
141
- },
142
- startShelf: {
143
- type: Number,
144
- },
145
- endShelf: {
146
- type: Number,
147
- },
148
- zone: {
149
- type: String,
150
- },
151
- position: {
152
- type: String,
153
- },
154
- },
155
- ],
156
- fixtureLibCode:{
157
- type:String
158
- },
159
- },
160
- {
161
- strict: true,
162
- versionKey: false,
163
- timestamps: true,
164
- },
165
- );
166
-
167
- export default mongoose.model( 'fixtureLibrary', fixtureLibrarySchema );
1
+ import mongoose from 'mongoose';
2
+
3
+ const fixtureLibrarySchema = new mongoose.Schema(
4
+ {
5
+ clientId: {
6
+ type: String,
7
+ required: true,
8
+ },
9
+ fixtureCategory: {
10
+ type: String,
11
+ },
12
+ fixtureType: {
13
+ type: String,
14
+ enum: ['wall', 'floor'],
15
+ },
16
+ fixtureLength: {
17
+ value: {
18
+ type: Number,
19
+ default: 0,
20
+ },
21
+ unit: {
22
+ type: String,
23
+ default: 'ft',
24
+ },
25
+ },
26
+ fixtureWidth: {
27
+ value: {
28
+ type: Number,
29
+ default: 0,
30
+ },
31
+ unit: {
32
+ type: String,
33
+ default: 'ft',
34
+ },
35
+ },
36
+ fixtureStaticLength: {
37
+ value: {
38
+ type: Number,
39
+ default: 1524,
40
+ },
41
+ unit: {
42
+ type: String,
43
+ default: 'mm',
44
+ },
45
+ },
46
+ fixtureStaticWidth: {
47
+ value: {
48
+ type: Number,
49
+ default: 1220,
50
+ },
51
+ unit: {
52
+ type: String,
53
+ default: 'mm',
54
+ },
55
+ },
56
+ header: {
57
+ isEnabled: {
58
+ type: Boolean,
59
+ default: true,
60
+ },
61
+ height: {
62
+ value: {
63
+ type: Number,
64
+ default: 0,
65
+ },
66
+ unit: {
67
+ type: String,
68
+ default: 'mm',
69
+ },
70
+ }
71
+ },
72
+ footer: {
73
+ isEnabled: {
74
+ type: Boolean,
75
+ default: true,
76
+ },
77
+ height: {
78
+ value: {
79
+ type: Number,
80
+ default: 0,
81
+ },
82
+ unit: {
83
+ type: String,
84
+ default: 'mm',
85
+ },
86
+ }
87
+ },
88
+ isBodyEnabled: {
89
+ type: Boolean,
90
+ default: true,
91
+ },
92
+ fixtureCapacity: {
93
+ type: Number,
94
+ default: 0,
95
+ },
96
+ status: {
97
+ type: String,
98
+ enum: ['draft', 'complete'],
99
+ default: 'draft',
100
+ },
101
+ shelfConfig: [
102
+ {
103
+ shelfNumber: {
104
+ type: Number,
105
+ required: true,
106
+ },
107
+ shelfType: {
108
+ type: String,
109
+ enum: ['shelf', 'tray'],
110
+ },
111
+ zone: {
112
+ type: String,
113
+ },
114
+ shelfZone: {
115
+ type: String,
116
+ },
117
+ productPerShelf: {
118
+ type: Number,
119
+ default: 0,
120
+ },
121
+ trayRows: {
122
+ type: Number,
123
+ default: 0,
124
+ },
125
+ label: {
126
+ type: String,
127
+ default: '',
128
+ },
129
+ },
130
+ ],
131
+ vmConfig: [
132
+ {
133
+ vmNumber: {
134
+ type: Number,
135
+ },
136
+ vmHeightmm: {
137
+ type: Number,
138
+ },
139
+ vmWidthmm: {
140
+ type: Number,
141
+ },
142
+ startShelf: {
143
+ type: Number,
144
+ },
145
+ endShelf: {
146
+ type: Number,
147
+ },
148
+ zone: {
149
+ type: String,
150
+ },
151
+ position: {
152
+ type: String,
153
+ },
154
+ },
155
+ ],
156
+ fixtureLibCode:{
157
+ type:String
158
+ },
159
+ },
160
+ {
161
+ strict: true,
162
+ versionKey: false,
163
+ timestamps: true,
164
+ },
165
+ );
166
+
167
+ export default mongoose.model( 'fixtureLibrary', fixtureLibrarySchema );
168
168
 
@@ -1,78 +1,78 @@
1
- import mongoose from 'mongoose';
2
-
3
- const fixtureShelfSchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type: String,
7
- required: true,
8
- },
9
- storeName: {
10
- type: String,
11
- required: true,
12
- },
13
- storeId: {
14
- type: String,
15
- required: true,
16
- },
17
- planoId: {
18
- type: mongoose.Types.ObjectId,
19
- required: true,
20
- index:true
21
- },
22
- floorId: {
23
- type: mongoose.Types.ObjectId,
24
- required: true,
25
- index:true
26
- },
27
- fixtureId: {
28
- type: mongoose.Types.ObjectId,
29
- required: true,
30
- index:true
31
- },
32
- shelfNumber: {
33
- type: Number,
34
- required: true,
35
- },
36
- productBrandName: {
37
- type: Array,
38
- },
39
- productCategory: {
40
- type: Array
41
- },
42
- productSubCategory: {
43
- type: Array
44
- },
45
- zone: {
46
- type: String
47
- },
48
- rfId: {
49
- type: String
50
- },
51
- sectionName: {
52
- type: String
53
- },
54
- shelfType: {
55
- type: String,
56
- enum: ['shelf', 'tray'],
57
- },
58
- productPerShelf: {
59
- type: Number,
60
- default: 0,
61
- },
62
- trayRows: {
63
- type: Number,
64
- default: 0,
65
- },
66
- label: {
67
- type: String,
68
- default: '',
69
- },
70
- },
71
- {
72
- strict: true,
73
- versionKey: false,
74
- timestamps: true,
75
- },
76
- );
77
-
78
- export default mongoose.model('fixtureShelf', fixtureShelfSchema);
1
+ import mongoose from 'mongoose';
2
+
3
+ const fixtureShelfSchema = new mongoose.Schema(
4
+ {
5
+ clientId: {
6
+ type: String,
7
+ required: true,
8
+ },
9
+ storeName: {
10
+ type: String,
11
+ required: true,
12
+ },
13
+ storeId: {
14
+ type: String,
15
+ required: true,
16
+ },
17
+ planoId: {
18
+ type: mongoose.Types.ObjectId,
19
+ required: true,
20
+ index:true
21
+ },
22
+ floorId: {
23
+ type: mongoose.Types.ObjectId,
24
+ required: true,
25
+ index:true
26
+ },
27
+ fixtureId: {
28
+ type: mongoose.Types.ObjectId,
29
+ required: true,
30
+ index:true
31
+ },
32
+ shelfNumber: {
33
+ type: Number,
34
+ required: true,
35
+ },
36
+ productBrandName: {
37
+ type: Array,
38
+ },
39
+ productCategory: {
40
+ type: Array
41
+ },
42
+ productSubCategory: {
43
+ type: Array
44
+ },
45
+ zone: {
46
+ type: String
47
+ },
48
+ rfId: {
49
+ type: String
50
+ },
51
+ sectionName: {
52
+ type: String
53
+ },
54
+ shelfType: {
55
+ type: String,
56
+ enum: ['shelf', 'tray'],
57
+ },
58
+ productPerShelf: {
59
+ type: Number,
60
+ default: 0,
61
+ },
62
+ trayRows: {
63
+ type: Number,
64
+ default: 0,
65
+ },
66
+ label: {
67
+ type: String,
68
+ default: '',
69
+ },
70
+ },
71
+ {
72
+ strict: true,
73
+ versionKey: false,
74
+ timestamps: true,
75
+ },
76
+ );
77
+
78
+ export default mongoose.model('fixtureShelf', fixtureShelfSchema);
@@ -1,54 +1,54 @@
1
- import mongoose from "mongoose";
2
-
3
- const liveConnectionSchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type: String,
7
- required: true,
8
- },
9
- storeId: {
10
- type: String,
11
- required: true,
12
- },
13
- remoteAddress: {
14
- type: String,
15
- },
16
- remotePort: {
17
- type: Number,
18
- },
19
- connectedAt: {
20
- type: Date,
21
- default: new Date(),
22
- },
23
- streamName: {
24
- type: String,
25
- },
26
- status: {
27
- type: String,
28
- },
29
- module: {
30
- type: String,
31
- },
32
- comments:{
33
- type: String,
34
- },
35
- wsState: {
36
- type: String,
37
- },
38
- serverId: {
39
- type: String,
40
- },
41
- },
42
- {
43
- timestamps: true,
44
- versionKey: false,
45
- strict: false,
46
- }
47
- );
48
-
49
- liveConnectionSchema.index({ clientId: 1 });
50
- liveConnectionSchema.index({ storeId: 1 });
51
- liveConnectionSchema.index({ status: 1 });
52
- liveConnectionSchema.index({ createdAt: 1 }, { expires: "1d" });
53
-
54
- export default mongoose.model( 'liveConnection', liveConnectionSchema, 'liveConnection' );
1
+ import mongoose from "mongoose";
2
+
3
+ const liveConnectionSchema = new mongoose.Schema(
4
+ {
5
+ clientId: {
6
+ type: String,
7
+ required: true,
8
+ },
9
+ storeId: {
10
+ type: String,
11
+ required: true,
12
+ },
13
+ remoteAddress: {
14
+ type: String,
15
+ },
16
+ remotePort: {
17
+ type: Number,
18
+ },
19
+ connectedAt: {
20
+ type: Date,
21
+ default: new Date(),
22
+ },
23
+ streamName: {
24
+ type: String,
25
+ },
26
+ status: {
27
+ type: String,
28
+ },
29
+ module: {
30
+ type: String,
31
+ },
32
+ comments:{
33
+ type: String,
34
+ },
35
+ wsState: {
36
+ type: String,
37
+ },
38
+ serverId: {
39
+ type: String,
40
+ },
41
+ },
42
+ {
43
+ timestamps: true,
44
+ versionKey: false,
45
+ strict: false,
46
+ }
47
+ );
48
+
49
+ liveConnectionSchema.index({ clientId: 1 });
50
+ liveConnectionSchema.index({ storeId: 1 });
51
+ liveConnectionSchema.index({ status: 1 });
52
+ liveConnectionSchema.index({ createdAt: 1 }, { expires: "1d" });
53
+
54
+ export default mongoose.model( 'liveConnection', liveConnectionSchema, 'liveConnection' );
@@ -1,31 +1,31 @@
1
- import mongoose from 'mongoose';
2
-
3
- const loginAttempts = new mongoose.Schema(
4
- {
5
- email: {
6
- type: String,
7
- },
8
- maxAttempt: {
9
- type:Number,
10
- default:0
11
- },
12
- lockTime:{
13
- type: Number,
14
- default:30
15
-
16
- },
17
- attemptType:{
18
- type: String,
19
- enum: [ 'login', 'signup', 'forgotPassword' ],
20
- default: 'login',
21
- },
22
- },
23
- {
24
- strict: true,
25
- versionKey: false,
26
- timestamps: true,
27
- },
28
- );
29
- loginAttempts.index( { createdAt: 1 }, { expires: '30m' })
30
-
31
- export default mongoose.model( 'loginAttempts', loginAttempts, 'loginAttempts');
1
+ import mongoose from 'mongoose';
2
+
3
+ const loginAttempts = new mongoose.Schema(
4
+ {
5
+ email: {
6
+ type: String,
7
+ },
8
+ maxAttempt: {
9
+ type:Number,
10
+ default:0
11
+ },
12
+ lockTime:{
13
+ type: Number,
14
+ default:30
15
+
16
+ },
17
+ attemptType:{
18
+ type: String,
19
+ enum: [ 'login', 'signup', 'forgotPassword' ],
20
+ default: 'login',
21
+ },
22
+ },
23
+ {
24
+ strict: true,
25
+ versionKey: false,
26
+ timestamps: true,
27
+ },
28
+ );
29
+ loginAttempts.index( { createdAt: 1 }, { expires: '30m' })
30
+
31
+ export default mongoose.model( 'loginAttempts', loginAttempts, 'loginAttempts');