tango-api-schema 2.4.9 → 2.4.11

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,63 +1,63 @@
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
- productName: {
14
- type: String,
15
- },
16
- productSku: {
17
- type: String,
18
- },
19
- productBrand: {
20
- type: String,
21
- },
22
- productType: {
23
- type: String,
24
- },
25
- productHeight: {
26
- value: {
27
- type: Number,
28
- },
29
- unit: {
30
- type: String,
31
- },
32
- },
33
- productWidth: {
34
- value: {
35
- type: Number,
36
- },
37
- unit: {
38
- type: String,
39
- },
40
- },
41
- productWeight: {
42
- value: {
43
- type: Number,
44
- },
45
- unit: {
46
- type: String,
47
- },
48
- },
49
- productSize: {
50
- type: String,
51
- },
52
- productImageUrl: {
53
- type: String,
54
- }
55
- },
56
- {
57
- strict: false,
58
- versionKey: false,
59
- timestamps: true,
60
- },
61
- );
62
-
63
- export default mongoose.model( 'planoProductDetailDuplicate', 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
+ productName: {
14
+ type: String,
15
+ },
16
+ productSku: {
17
+ type: String,
18
+ },
19
+ productBrand: {
20
+ type: String,
21
+ },
22
+ productType: {
23
+ type: String,
24
+ },
25
+ productHeight: {
26
+ value: {
27
+ type: Number,
28
+ },
29
+ unit: {
30
+ type: String,
31
+ },
32
+ },
33
+ productWidth: {
34
+ value: {
35
+ type: Number,
36
+ },
37
+ unit: {
38
+ type: String,
39
+ },
40
+ },
41
+ productWeight: {
42
+ value: {
43
+ type: Number,
44
+ },
45
+ unit: {
46
+ type: String,
47
+ },
48
+ },
49
+ productSize: {
50
+ type: String,
51
+ },
52
+ productImageUrl: {
53
+ type: String,
54
+ }
55
+ },
56
+ {
57
+ strict: false,
58
+ versionKey: false,
59
+ timestamps: true,
60
+ },
61
+ );
62
+
63
+ export default mongoose.model( 'planoProductDetailDuplicate', planoProductDetailSchema );
@@ -1,63 +1,63 @@
1
- import mongoose from 'mongoose';
2
-
3
- const planoVmDetailSchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type: String,
7
- required: true,
8
- },
9
- vmName: {
10
- type: String,
11
- },
12
- vmType: {
13
- type: String,
14
- },
15
- vmHeight: {
16
- value: {
17
- type: Number,
18
- },
19
- unit: {
20
- type: String,
21
- },
22
- },
23
- vmWidth: {
24
- value: {
25
- type: Number,
26
- },
27
- unit: {
28
- type: String,
29
- },
30
- },
31
- vmImageUrl: {
32
- type: String,
33
- },
34
- isDoubleSided: {
35
- type: Boolean,
36
- },
37
- status: {
38
- type: String,
39
- enum: [ 'draft', 'complete' ],
40
- default: 'draft',
41
- },
42
- vmBrand:{
43
- type:String
44
- },
45
- vmSubBrand: {
46
- type: String,
47
- },
48
- vmCategory: {
49
- type: String,
50
- },
51
- crestImageId: {
52
- type: String,
53
- },
54
-
55
- },
56
- {
57
- strict: false,
58
- versionKey: false,
59
- timestamps: true,
60
- },
61
- );
62
-
63
- export default mongoose.model( 'planoVmDetailDuplicate', planoVmDetailSchema );
1
+ import mongoose from 'mongoose';
2
+
3
+ const planoVmDetailSchema = new mongoose.Schema(
4
+ {
5
+ clientId: {
6
+ type: String,
7
+ required: true,
8
+ },
9
+ vmName: {
10
+ type: String,
11
+ },
12
+ vmType: {
13
+ type: String,
14
+ },
15
+ vmHeight: {
16
+ value: {
17
+ type: Number,
18
+ },
19
+ unit: {
20
+ type: String,
21
+ },
22
+ },
23
+ vmWidth: {
24
+ value: {
25
+ type: Number,
26
+ },
27
+ unit: {
28
+ type: String,
29
+ },
30
+ },
31
+ vmImageUrl: {
32
+ type: String,
33
+ },
34
+ isDoubleSided: {
35
+ type: Boolean,
36
+ },
37
+ status: {
38
+ type: String,
39
+ enum: [ 'draft', 'complete' ],
40
+ default: 'draft',
41
+ },
42
+ vmBrand:{
43
+ type:String
44
+ },
45
+ vmSubBrand: {
46
+ type: String,
47
+ },
48
+ vmCategory: {
49
+ type: String,
50
+ },
51
+ crestImageId: {
52
+ type: String,
53
+ },
54
+
55
+ },
56
+ {
57
+ strict: false,
58
+ versionKey: false,
59
+ timestamps: true,
60
+ },
61
+ );
62
+
63
+ export default mongoose.model( 'planoVmDetailDuplicate', planoVmDetailSchema );
@@ -1,66 +1,66 @@
1
- import mongoose from 'mongoose';
2
-
3
- const planogramSchema = 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
- attachments: {
21
- type: Array,
22
- default: [],
23
- },
24
- createdBy: {
25
- type: mongoose.Types.ObjectId,
26
- required: true,
27
- },
28
- createdByName: {
29
- type: String,
30
- required: true,
31
- },
32
- createdByEmail: {
33
- type: String,
34
- required: true,
35
- },
36
- status: {
37
- type: String,
38
- enum: [ 'draft', 'completed' ],
39
- default: 'draft',
40
- },
41
- floorNumber: {
42
- type: Number,
43
- default: 1,
44
- },
45
- productResolutionLevel: {
46
- type: String,
47
- enum: [ 'L1', 'L2', 'L3', 'L4', 'L5' ],
48
- // L1- floor level, L2- fixture level, L3- fixture-shelf level, L4- fixture-shelf-product level
49
- default: 'L3',
50
- },
51
- scanType: {
52
- type: String,
53
- enum: [ 'rfid', 'qr' ],
54
- },
55
- validateShelfSections: {
56
- type: Boolean
57
- }
58
- },
59
- {
60
- strict: true,
61
- versionKey: false,
62
- timestamps: true,
63
- },
64
- );
65
-
66
- export default mongoose.model( 'planogramDuplicate', planogramSchema );
1
+ import mongoose from 'mongoose';
2
+
3
+ const planogramSchema = 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
+ attachments: {
21
+ type: Array,
22
+ default: [],
23
+ },
24
+ createdBy: {
25
+ type: mongoose.Types.ObjectId,
26
+ required: true,
27
+ },
28
+ createdByName: {
29
+ type: String,
30
+ required: true,
31
+ },
32
+ createdByEmail: {
33
+ type: String,
34
+ required: true,
35
+ },
36
+ status: {
37
+ type: String,
38
+ enum: [ 'draft', 'completed' ],
39
+ default: 'draft',
40
+ },
41
+ floorNumber: {
42
+ type: Number,
43
+ default: 1,
44
+ },
45
+ productResolutionLevel: {
46
+ type: String,
47
+ enum: [ 'L1', 'L2', 'L3', 'L4', 'L5' ],
48
+ // L1- floor level, L2- fixture level, L3- fixture-shelf level, L4- fixture-shelf-product level
49
+ default: 'L3',
50
+ },
51
+ scanType: {
52
+ type: String,
53
+ enum: [ 'rfid', 'qr' ],
54
+ },
55
+ validateShelfSections: {
56
+ type: Boolean
57
+ }
58
+ },
59
+ {
60
+ strict: true,
61
+ versionKey: false,
62
+ timestamps: true,
63
+ },
64
+ );
65
+
66
+ export default mongoose.model( 'planogramDuplicate', planogramSchema );
@@ -245,6 +245,10 @@ const processedchecklistSchema = new mongoose.Schema({
245
245
  runAIFlag:{
246
246
  type: Number,
247
247
  default: 0
248
+ },
249
+ videoUploadTimeLimit:{
250
+ type:Number,
251
+ default:0
248
252
  },
249
253
  },
250
254
  {
@@ -311,6 +311,10 @@ const processedchecklistconfigSchema = new mongoose.Schema({
311
311
  runAIQuestionCount:{
312
312
  type:Number
313
313
  },
314
+ videoUploadTimeLimit:{
315
+ type:Number,
316
+ default:0
317
+ },
314
318
  },
315
319
  {
316
320
  strict: true,