tango-api-schema 2.2.95 → 2.2.96

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.
@@ -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,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,77 +1,77 @@
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
-
69
- },
70
- {
71
- strict: false,
72
- versionKey: false,
73
- timestamps: true,
74
- },
75
- );
76
-
77
- 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
+
69
+ },
70
+ {
71
+ strict: false,
72
+ versionKey: false,
73
+ timestamps: true,
74
+ },
75
+ );
76
+
77
+ 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);
@@ -1,41 +1,41 @@
1
- import mongoose from 'mongoose';
2
-
3
- const planoTaskCompliance = new mongoose.Schema(
4
- {
5
- status: {
6
- type: String,
7
- enum: ['complete', 'incomplete', 'missing'],
8
- required: true
9
- },
10
- answers: {
11
- type: Array,
12
- default: []
13
- },
14
- planoId: {
15
- type: mongoose.Types.ObjectId,
16
- required: true
17
- },
18
- floorId: {
19
- type: mongoose.Types.ObjectId,
20
- required: true
21
- },
22
- fixtureId: {
23
- type: mongoose.Types.ObjectId
24
- },
25
- type: {
26
- type: String,
27
- enum: ['fixture', 'vm', 'product', 'layout'],
28
- required: true
29
- },
30
- date_string:{
31
- type:String,
32
- required:true
33
- },
34
- },
35
- {
36
- timestamps: true,
37
- versionKey: false,
38
- }
39
- );
40
-
41
- export default mongoose.model('planotaskcompliance', planoTaskCompliance);
1
+ import mongoose from 'mongoose';
2
+
3
+ const planoTaskCompliance = new mongoose.Schema(
4
+ {
5
+ status: {
6
+ type: String,
7
+ enum: ['complete', 'incomplete', 'missing'],
8
+ required: true
9
+ },
10
+ answers: {
11
+ type: Array,
12
+ default: []
13
+ },
14
+ planoId: {
15
+ type: mongoose.Types.ObjectId,
16
+ required: true
17
+ },
18
+ floorId: {
19
+ type: mongoose.Types.ObjectId,
20
+ required: true
21
+ },
22
+ fixtureId: {
23
+ type: mongoose.Types.ObjectId
24
+ },
25
+ type: {
26
+ type: String,
27
+ enum: ['fixture', 'vm', 'product', 'layout'],
28
+ required: true
29
+ },
30
+ date_string:{
31
+ type:String,
32
+ required:true
33
+ },
34
+ },
35
+ {
36
+ timestamps: true,
37
+ versionKey: false,
38
+ }
39
+ );
40
+
41
+ export default mongoose.model('planotaskcompliance', planoTaskCompliance);