tango-api-schema 2.2.126 → 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 -184
  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 -31
  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,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' );
@@ -0,0 +1,26 @@
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:5
11
+ },
12
+ lockTime:{
13
+ type: Number,
14
+ default:15
15
+
16
+ },
17
+ },
18
+ {
19
+ strict: true,
20
+ versionKey: false,
21
+ timestamps: true,
22
+ },
23
+ );
24
+ loginAttempts.index( { createdAt: 1 }, { expires: '15m' })
25
+
26
+ export default mongoose.model( 'loginAttempts', loginAttempts, 'loginAttempts');
@@ -1,18 +1,18 @@
1
- /**
2
- * @name planoCrestLogModel
3
- * @description planoCrestLog Schema
4
- */
5
-
6
- import mongoose from "mongoose";
7
-
8
- const collection = new mongoose.Schema(
9
- {
10
- },
11
- {
12
- timestamps: true,
13
- strict: false,
14
- versionKey: false,
15
- }
16
- );
17
-
1
+ /**
2
+ * @name planoCrestLogModel
3
+ * @description planoCrestLog Schema
4
+ */
5
+
6
+ import mongoose from "mongoose";
7
+
8
+ const collection = new mongoose.Schema(
9
+ {
10
+ },
11
+ {
12
+ timestamps: true,
13
+ strict: false,
14
+ versionKey: false,
15
+ }
16
+ );
17
+
18
18
  export default mongoose.model("planoCrestLog", collection);
@@ -1,56 +1,56 @@
1
- import mongoose from 'mongoose';
2
-
3
- const planoMappingSchema = 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
- type: {
18
- type: String,
19
- enum: [ 'product', 'vm' ],
20
- required: true,
21
- },
22
- planoId: {
23
- type: mongoose.Types.ObjectId,
24
- required: true,
25
- },
26
- floorId: {
27
- type: mongoose.Types.ObjectId,
28
- required: true,
29
- },
30
- fixtureId: {
31
- type: mongoose.Types.ObjectId,
32
- },
33
- shelfId: {
34
- type: mongoose.Types.ObjectId,
35
- },
36
- shelfPosition: {
37
- type: Number,
38
- },
39
- productId: {
40
- type: mongoose.Types.ObjectId,
41
- },
42
- rfId: {
43
- type: String,
44
- },
45
- category: {
46
- type: String,
47
- },
48
- },
49
- {
50
- strict: true,
51
- versionKey: false,
52
- timestamps: true,
53
- },
54
- );
55
-
56
- export default mongoose.model( 'planoMapping', planoMappingSchema );
1
+ import mongoose from 'mongoose';
2
+
3
+ const planoMappingSchema = 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
+ type: {
18
+ type: String,
19
+ enum: [ 'product', 'vm' ],
20
+ required: true,
21
+ },
22
+ planoId: {
23
+ type: mongoose.Types.ObjectId,
24
+ required: true,
25
+ },
26
+ floorId: {
27
+ type: mongoose.Types.ObjectId,
28
+ required: true,
29
+ },
30
+ fixtureId: {
31
+ type: mongoose.Types.ObjectId,
32
+ },
33
+ shelfId: {
34
+ type: mongoose.Types.ObjectId,
35
+ },
36
+ shelfPosition: {
37
+ type: Number,
38
+ },
39
+ productId: {
40
+ type: mongoose.Types.ObjectId,
41
+ },
42
+ rfId: {
43
+ type: String,
44
+ },
45
+ category: {
46
+ type: String,
47
+ },
48
+ },
49
+ {
50
+ strict: true,
51
+ versionKey: false,
52
+ timestamps: true,
53
+ },
54
+ );
55
+
56
+ export default mongoose.model( 'planoMapping', planoMappingSchema );
@@ -1,80 +1,80 @@
1
- import mongoose from 'mongoose';
2
-
3
- const planoProductDetailSchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type: String,
7
- required: true,
8
- },
9
- productId: {
10
- type: String,
11
- required: true,
12
- },
13
- type: {
14
- type: String,
15
- enum: [ 'product', 'vm' ],
16
- },
17
- productName: {
18
- type: String,
19
- },
20
- productSku: {
21
- type: String,
22
- },
23
- productBrand: {
24
- type: String,
25
- },
26
- productType: {
27
- type: String,
28
- },
29
- productHeight: {
30
- value: {
31
- type: Number,
32
- },
33
- unit: {
34
- type: String,
35
- },
36
- },
37
- productWidth: {
38
- value: {
39
- type: Number,
40
- },
41
- unit: {
42
- type: String,
43
- },
44
- },
45
- productWeight: {
46
- value: {
47
- type: Number,
48
- },
49
- unit: {
50
- type: String,
51
- },
52
- },
53
- productSize: {
54
- type: String,
55
- },
56
- productImageUrl: {
57
- type: String,
58
- },
59
- startYPosition: {
60
- type: String,
61
- },
62
- endYPosition: {
63
- type: String,
64
- },
65
- xZone:{
66
- type: String
67
- },
68
- fixtureConfigId: {
69
- type: mongoose.Types.ObjectId,
70
- },
71
-
72
- },
73
- {
74
- strict: false,
75
- versionKey: false,
76
- timestamps: true,
77
- },
78
- );
79
-
80
- export default mongoose.model( 'planoProductDetail', planoProductDetailSchema );
1
+ import mongoose from 'mongoose';
2
+
3
+ const planoProductDetailSchema = new mongoose.Schema(
4
+ {
5
+ clientId: {
6
+ type: String,
7
+ required: true,
8
+ },
9
+ productId: {
10
+ type: String,
11
+ required: true,
12
+ },
13
+ type: {
14
+ type: String,
15
+ enum: [ 'product', 'vm' ],
16
+ },
17
+ productName: {
18
+ type: String,
19
+ },
20
+ productSku: {
21
+ type: String,
22
+ },
23
+ productBrand: {
24
+ type: String,
25
+ },
26
+ productType: {
27
+ type: String,
28
+ },
29
+ productHeight: {
30
+ value: {
31
+ type: Number,
32
+ },
33
+ unit: {
34
+ type: String,
35
+ },
36
+ },
37
+ productWidth: {
38
+ value: {
39
+ type: Number,
40
+ },
41
+ unit: {
42
+ type: String,
43
+ },
44
+ },
45
+ productWeight: {
46
+ value: {
47
+ type: Number,
48
+ },
49
+ unit: {
50
+ type: String,
51
+ },
52
+ },
53
+ productSize: {
54
+ type: String,
55
+ },
56
+ productImageUrl: {
57
+ type: String,
58
+ },
59
+ startYPosition: {
60
+ type: String,
61
+ },
62
+ endYPosition: {
63
+ type: String,
64
+ },
65
+ xZone:{
66
+ type: String
67
+ },
68
+ fixtureConfigId: {
69
+ type: mongoose.Types.ObjectId,
70
+ },
71
+
72
+ },
73
+ {
74
+ strict: false,
75
+ versionKey: false,
76
+ timestamps: true,
77
+ },
78
+ );
79
+
80
+ export default mongoose.model( 'planoProductDetail', planoProductDetailSchema );
@@ -1,61 +1,61 @@
1
- import mongoose from 'mongoose';
2
-
3
- const planoQrConversionRequest = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type: String,
7
- },
8
- storeName: {
9
- type: String,
10
- },
11
- storeId: {
12
- type: String,
13
- },
14
- planoId: {
15
- type: mongoose.Types.ObjectId,
16
- },
17
- floorId: {
18
- type: mongoose.Types.ObjectId,
19
- },
20
- fixtureId: {
21
- type: mongoose.Types.ObjectId,
22
- },
23
- status: {
24
- type: String,
25
- enum: [ 'initiated', 'data-received' ],
26
- },
27
- date:{
28
- type:Date,
29
- required:true
30
- },
31
- fixtureImage: {
32
- filePath: {
33
- type: String,
34
- },
35
- comment: {
36
- type: String,
37
- },
38
- },
39
- fixtureVideo: {
40
- filePath: {
41
- type: String,
42
- },
43
- comment: {
44
- type: String,
45
- },
46
- },
47
- receivedQr:{
48
- type: Array
49
- },
50
- processedData:{
51
- type: Array
52
- }
53
- },
54
- {
55
- strict: true,
56
- versionKey: false,
57
- timestamps: true,
58
- },
59
- );
60
-
61
- export default mongoose.model( 'planoQrConversionRequest', planoQrConversionRequest );
1
+ import mongoose from 'mongoose';
2
+
3
+ const planoQrConversionRequest = new mongoose.Schema(
4
+ {
5
+ clientId: {
6
+ type: String,
7
+ },
8
+ storeName: {
9
+ type: String,
10
+ },
11
+ storeId: {
12
+ type: String,
13
+ },
14
+ planoId: {
15
+ type: mongoose.Types.ObjectId,
16
+ },
17
+ floorId: {
18
+ type: mongoose.Types.ObjectId,
19
+ },
20
+ fixtureId: {
21
+ type: mongoose.Types.ObjectId,
22
+ },
23
+ status: {
24
+ type: String,
25
+ enum: [ 'initiated', 'data-received' ],
26
+ },
27
+ date:{
28
+ type:Date,
29
+ required:true
30
+ },
31
+ fixtureImage: {
32
+ filePath: {
33
+ type: String,
34
+ },
35
+ comment: {
36
+ type: String,
37
+ },
38
+ },
39
+ fixtureVideo: {
40
+ filePath: {
41
+ type: String,
42
+ },
43
+ comment: {
44
+ type: String,
45
+ },
46
+ },
47
+ receivedQr:{
48
+ type: Array
49
+ },
50
+ processedData:{
51
+ type: Array
52
+ }
53
+ },
54
+ {
55
+ strict: true,
56
+ versionKey: false,
57
+ timestamps: true,
58
+ },
59
+ );
60
+
61
+ export default mongoose.model( 'planoQrConversionRequest', planoQrConversionRequest );
@@ -1,18 +1,18 @@
1
- import mongoose from 'mongoose';
2
-
3
- const planoStaticData = new mongoose.Schema({
4
- data: {
5
- type: Array,
6
- },
7
- type:{
8
- type:String
9
- }
10
- },
11
- {
12
- strict: true,
13
- versionKey: false,
14
- timestamps: true,
15
- },
16
- );
17
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const planoStaticData = new mongoose.Schema({
4
+ data: {
5
+ type: Array,
6
+ },
7
+ type:{
8
+ type:String
9
+ }
10
+ },
11
+ {
12
+ strict: true,
13
+ versionKey: false,
14
+ timestamps: true,
15
+ },
16
+ );
17
+
18
18
  export default mongoose.model( 'planoStaticData', planoStaticData);