tango-api-schema 2.2.127 → 2.2.128

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 (36) hide show
  1. package/index.js +185 -185
  2. package/package.json +25 -25
  3. package/schema/auditConfig.model.js +41 -41
  4. package/schema/binaryAudit.model.js +84 -84
  5. package/schema/camera.model.js +211 -211
  6. package/schema/checklistassignconfig.js +90 -90
  7. package/schema/checklistconfig.js +246 -246
  8. package/schema/checklistlog.js +113 -113
  9. package/schema/client.model.js +671 -671
  10. package/schema/countryCurrency.model.js +17 -17
  11. package/schema/download.js +124 -124
  12. package/schema/emailers.model.js +45 -45
  13. package/schema/fixtureConfig.model.js +72 -72
  14. package/schema/fixtureShelf.model.js +63 -63
  15. package/schema/liveConnection.model.js +54 -54
  16. package/schema/loginAttempt.js +26 -0
  17. package/schema/planoCrestLog.model.js +17 -17
  18. package/schema/planoMapping.model.js +56 -56
  19. package/schema/planoProductDetail.model.js +80 -80
  20. package/schema/planoQrConversionRequest.model.js +61 -61
  21. package/schema/planoStaticData.model.js +17 -17
  22. package/schema/planoTaskCompliance.model.js +50 -50
  23. package/schema/planogram.model.js +66 -66
  24. package/schema/processedchecklist.js +249 -249
  25. package/schema/processedchecklistconfig.js +173 -173
  26. package/schema/revopConfig.model.js +19 -19
  27. package/schema/store.model.js +371 -371
  28. package/schema/storeFixture.model.js +165 -165
  29. package/schema/storeLayout.model.js +66 -66
  30. package/schema/streaming.model.js +29 -29
  31. package/schema/suspiciousActivity.model.js +54 -54
  32. package/schema/taskAssign.model.js +87 -87
  33. package/schema/taskConfig.model.js +115 -115
  34. package/schema/taskProcessed.model.js +245 -245
  35. package/schema/taskProcessedConfig.model.js +128 -128
  36. package/schema/user.model.js +136 -136
@@ -1,166 +1,166 @@
1
- import mongoose from 'mongoose';
2
-
3
- const storeFixtureSchema = 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
- },
21
- floorId: {
22
- type: mongoose.Types.ObjectId,
23
- required: true,
24
- },
25
- fixtureName: {
26
- type: String,
27
- required: true,
28
- },
29
- fixtureCategory: {
30
- type: String,
31
- },
32
- fixtureBrandCategory: {
33
- type: String,
34
- },
35
- fixtureBrandSubCategory: {
36
- type: String,
37
- },
38
- fixtureType: {
39
- type: String,
40
- enum: [ 'wall', 'floor', 'other' ],
41
- required: true,
42
- },
43
- fixtureHeight: {
44
- value: {
45
- type: Number,
46
- },
47
- unit: {
48
- type: String,
49
- },
50
- },
51
- fixtureLength: {
52
- value: {
53
- type: Number,
54
- },
55
- unit: {
56
- type: String,
57
- },
58
- },
59
- fixtureWidth: {
60
- value: {
61
- type: Number,
62
- },
63
- unit: {
64
- type: String,
65
- },
66
- },
67
- detailedFixtureLength: {
68
- value: {
69
- type: Number,
70
- },
71
- unit: {
72
- type: String,
73
- },
74
- },
75
- detailedFixtureWidth: {
76
- value: {
77
- type: Number,
78
- },
79
- unit: {
80
- type: String,
81
- },
82
- },
83
- productPerShelf: {
84
- type: Number,
85
- },
86
- mbq: {
87
- type: Number,
88
- },
89
- fixtureCapacity: {
90
- type: Number,
91
- },
92
- shelfcount: {
93
- type: Number,
94
- },
95
- associatedElementType: {
96
- type: String,
97
- enum: [ 'wall', 'facade' ],
98
- },
99
- associatedElementNumber: {
100
- type: Number,
101
- },
102
- fixtureConfigId: {
103
- type: mongoose.Types.ObjectId,
104
- },
105
- relativePosition: {
106
- x: {
107
- type: Number,
108
- },
109
- y: {
110
- type: Number,
111
- },
112
- unit: {
113
- type: String,
114
- },
115
- },
116
- relativeDetailedPosition: {
117
- x: {
118
- type: Number,
119
- },
120
- y: {
121
- type: Number,
122
- },
123
- unit: {
124
- type: String,
125
- },
126
- },
127
- fixtureOrder: {
128
- type: String,
129
- enum: [ 'TTB', 'BTT' ],
130
- // TTB - Top to Bottom, BTT - Bottom to Top
131
- },
132
- fixtureNumber: {
133
- type: Number,
134
- },
135
- productResolutionLevel: {
136
- type: String,
137
- enum: [ 'L1', 'L2', 'L3', 'L4', 'L5' ],
138
- // L1- floor level, L2- fixture level, L3- fixture-shelf level, L4- fixture-shelf-product level
139
- },
140
- imageUrl: {
141
- type: String,
142
- },
143
- vmImageUrl: {
144
- type: String,
145
- },
146
- fixtureCode: {
147
- type: String,
148
- },
149
- header: {
150
- type: String,
151
- },
152
- footer: {
153
- type: String,
154
- },
155
- associatedElementFixtureNumber: {
156
- type: Number,
157
- },
158
- },
159
- {
160
- strict: true,
161
- versionKey: false,
162
- timestamps: true,
163
- },
164
- );
165
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const storeFixtureSchema = 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
+ },
21
+ floorId: {
22
+ type: mongoose.Types.ObjectId,
23
+ required: true,
24
+ },
25
+ fixtureName: {
26
+ type: String,
27
+ required: true,
28
+ },
29
+ fixtureCategory: {
30
+ type: String,
31
+ },
32
+ fixtureBrandCategory: {
33
+ type: String,
34
+ },
35
+ fixtureBrandSubCategory: {
36
+ type: String,
37
+ },
38
+ fixtureType: {
39
+ type: String,
40
+ enum: [ 'wall', 'floor', 'other' ],
41
+ required: true,
42
+ },
43
+ fixtureHeight: {
44
+ value: {
45
+ type: Number,
46
+ },
47
+ unit: {
48
+ type: String,
49
+ },
50
+ },
51
+ fixtureLength: {
52
+ value: {
53
+ type: Number,
54
+ },
55
+ unit: {
56
+ type: String,
57
+ },
58
+ },
59
+ fixtureWidth: {
60
+ value: {
61
+ type: Number,
62
+ },
63
+ unit: {
64
+ type: String,
65
+ },
66
+ },
67
+ detailedFixtureLength: {
68
+ value: {
69
+ type: Number,
70
+ },
71
+ unit: {
72
+ type: String,
73
+ },
74
+ },
75
+ detailedFixtureWidth: {
76
+ value: {
77
+ type: Number,
78
+ },
79
+ unit: {
80
+ type: String,
81
+ },
82
+ },
83
+ productPerShelf: {
84
+ type: Number,
85
+ },
86
+ mbq: {
87
+ type: Number,
88
+ },
89
+ fixtureCapacity: {
90
+ type: Number,
91
+ },
92
+ shelfcount: {
93
+ type: Number,
94
+ },
95
+ associatedElementType: {
96
+ type: String,
97
+ enum: [ 'wall', 'facade' ],
98
+ },
99
+ associatedElementNumber: {
100
+ type: Number,
101
+ },
102
+ fixtureConfigId: {
103
+ type: mongoose.Types.ObjectId,
104
+ },
105
+ relativePosition: {
106
+ x: {
107
+ type: Number,
108
+ },
109
+ y: {
110
+ type: Number,
111
+ },
112
+ unit: {
113
+ type: String,
114
+ },
115
+ },
116
+ relativeDetailedPosition: {
117
+ x: {
118
+ type: Number,
119
+ },
120
+ y: {
121
+ type: Number,
122
+ },
123
+ unit: {
124
+ type: String,
125
+ },
126
+ },
127
+ fixtureOrder: {
128
+ type: String,
129
+ enum: [ 'TTB', 'BTT' ],
130
+ // TTB - Top to Bottom, BTT - Bottom to Top
131
+ },
132
+ fixtureNumber: {
133
+ type: Number,
134
+ },
135
+ productResolutionLevel: {
136
+ type: String,
137
+ enum: [ 'L1', 'L2', 'L3', 'L4', 'L5' ],
138
+ // L1- floor level, L2- fixture level, L3- fixture-shelf level, L4- fixture-shelf-product level
139
+ },
140
+ imageUrl: {
141
+ type: String,
142
+ },
143
+ vmImageUrl: {
144
+ type: String,
145
+ },
146
+ fixtureCode: {
147
+ type: String,
148
+ },
149
+ header: {
150
+ type: String,
151
+ },
152
+ footer: {
153
+ type: String,
154
+ },
155
+ associatedElementFixtureNumber: {
156
+ type: Number,
157
+ },
158
+ },
159
+ {
160
+ strict: true,
161
+ versionKey: false,
162
+ timestamps: true,
163
+ },
164
+ );
165
+
166
166
  export default mongoose.model( 'storeFixture', storeFixtureSchema );
@@ -1,66 +1,66 @@
1
- import mongoose from 'mongoose';
2
-
3
- const storeLayoutSchema = new mongoose.Schema( {
4
- storeName: {
5
- type: String,
6
- required: true,
7
- },
8
- storeId: {
9
- type: String,
10
- required: true,
11
- },
12
- layoutName: {
13
- type: String,
14
- required: true,
15
- },
16
- clientId: {
17
- type: String,
18
- required: true,
19
- },
20
- floorNumber: {
21
- type: Number,
22
- default: 1,
23
- },
24
- floorName: {
25
- type: String,
26
- required: true,
27
- },
28
- layoutPolygon: {
29
- type: Array,
30
- default: [],
31
- },
32
- createdBy: {
33
- type: mongoose.Types.ObjectId,
34
- required: true,
35
- },
36
- createdByName: {
37
- type: String,
38
- required: true,
39
- },
40
- createdByEmail: {
41
- type: String,
42
- required: true,
43
- },
44
- status: {
45
- type: String,
46
- enum: [ 'draft', 'completed' ],
47
- default: 'draft',
48
- },
49
- planoId: {
50
- type: mongoose.Types.ObjectId,
51
- required: true,
52
- },
53
- storeOrder: {
54
- type: String,
55
- enum: [ 'LTR', 'RTL' ],
56
- // LTR - Left to Right, RTL - Right to Left
57
- },
58
- },
59
- {
60
- strict: true,
61
- versionKey: false,
62
- timestamps: true,
63
- },
64
- );
65
-
66
- export default mongoose.model( 'storeLayout', storeLayoutSchema );
1
+ import mongoose from 'mongoose';
2
+
3
+ const storeLayoutSchema = new mongoose.Schema( {
4
+ storeName: {
5
+ type: String,
6
+ required: true,
7
+ },
8
+ storeId: {
9
+ type: String,
10
+ required: true,
11
+ },
12
+ layoutName: {
13
+ type: String,
14
+ required: true,
15
+ },
16
+ clientId: {
17
+ type: String,
18
+ required: true,
19
+ },
20
+ floorNumber: {
21
+ type: Number,
22
+ default: 1,
23
+ },
24
+ floorName: {
25
+ type: String,
26
+ required: true,
27
+ },
28
+ layoutPolygon: {
29
+ type: Array,
30
+ default: [],
31
+ },
32
+ createdBy: {
33
+ type: mongoose.Types.ObjectId,
34
+ required: true,
35
+ },
36
+ createdByName: {
37
+ type: String,
38
+ required: true,
39
+ },
40
+ createdByEmail: {
41
+ type: String,
42
+ required: true,
43
+ },
44
+ status: {
45
+ type: String,
46
+ enum: [ 'draft', 'completed' ],
47
+ default: 'draft',
48
+ },
49
+ planoId: {
50
+ type: mongoose.Types.ObjectId,
51
+ required: true,
52
+ },
53
+ storeOrder: {
54
+ type: String,
55
+ enum: [ 'LTR', 'RTL' ],
56
+ // LTR - Left to Right, RTL - Right to Left
57
+ },
58
+ },
59
+ {
60
+ strict: true,
61
+ versionKey: false,
62
+ timestamps: true,
63
+ },
64
+ );
65
+
66
+ export default mongoose.model( 'storeLayout', storeLayoutSchema );
@@ -1,29 +1,29 @@
1
- /**
2
- * @name api_audit
3
- */
4
-
5
- // NPM Modules
6
- import mongoose from 'mongoose';
7
-
8
- // Schema
9
- const streaming = new mongoose.Schema( {
10
-
11
- streamName:{
12
- type: String,
13
- unique: true,
14
- },
15
- status:{
16
- type: String,
17
- }
18
-
19
- },
20
- {
21
- timestamps: true,
22
- strict: true,
23
- versionKey: false,
24
- },
25
- );
26
- streaming.index({ createdAt:1 },{ expires: '15m'})
27
-
28
-
29
- export default mongoose.model( 'streaming', streaming, 'streaming' );
1
+ /**
2
+ * @name api_audit
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const streaming = new mongoose.Schema( {
10
+
11
+ streamName:{
12
+ type: String,
13
+ unique: true,
14
+ },
15
+ status:{
16
+ type: String,
17
+ }
18
+
19
+ },
20
+ {
21
+ timestamps: true,
22
+ strict: true,
23
+ versionKey: false,
24
+ },
25
+ );
26
+ streaming.index({ createdAt:1 },{ expires: '15m'})
27
+
28
+
29
+ export default mongoose.model( 'streaming', streaming, 'streaming' );
@@ -1,54 +1,54 @@
1
- import { Schema, model } from "mongoose";
2
-
3
- const suspiciousActivity = new Schema(
4
- {
5
- cam_id: {
6
- type: String,
7
- },
8
- com_id: {
9
- type: String,
10
- },
11
- inci_id: {
12
- type: String,
13
- },
14
- inci_type: {
15
- type: String,
16
- },
17
- inci_date: {
18
- type: String,
19
- },
20
- inci_time: {
21
- type: String,
22
- },
23
- created_at: {
24
- type: String,
25
- },
26
- comments: {
27
- type: String,
28
- },
29
- thumb_image: {
30
- type: String,
31
- },
32
- video_url: {
33
- type: String,
34
- },
35
- store_id: {
36
- type: String,
37
- },
38
- },
39
- {
40
- strict: true,
41
- versionKey: false,
42
- timestamps: true,
43
- }
44
- );
45
-
46
- suspiciousActivity.index({ inci_date: 1 });
47
- suspiciousActivity.index({ store_id: 1 });
48
- suspiciousActivity.index({ inci_time: 1 });
49
-
50
- export default model(
51
- "suspiciousActivity",
52
- suspiciousActivity,
53
- "suspiciousActivity"
54
- );
1
+ import { Schema, model } from "mongoose";
2
+
3
+ const suspiciousActivity = new Schema(
4
+ {
5
+ cam_id: {
6
+ type: String,
7
+ },
8
+ com_id: {
9
+ type: String,
10
+ },
11
+ inci_id: {
12
+ type: String,
13
+ },
14
+ inci_type: {
15
+ type: String,
16
+ },
17
+ inci_date: {
18
+ type: String,
19
+ },
20
+ inci_time: {
21
+ type: String,
22
+ },
23
+ created_at: {
24
+ type: String,
25
+ },
26
+ comments: {
27
+ type: String,
28
+ },
29
+ thumb_image: {
30
+ type: String,
31
+ },
32
+ video_url: {
33
+ type: String,
34
+ },
35
+ store_id: {
36
+ type: String,
37
+ },
38
+ },
39
+ {
40
+ strict: true,
41
+ versionKey: false,
42
+ timestamps: true,
43
+ }
44
+ );
45
+
46
+ suspiciousActivity.index({ inci_date: 1 });
47
+ suspiciousActivity.index({ store_id: 1 });
48
+ suspiciousActivity.index({ inci_time: 1 });
49
+
50
+ export default model(
51
+ "suspiciousActivity",
52
+ suspiciousActivity,
53
+ "suspiciousActivity"
54
+ );