tango-api-schema 2.3.3 → 2.3.4

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 (50) hide show
  1. package/build.js +24 -24
  2. package/index.js +206 -206
  3. package/package.json +1 -1
  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/fixtureConfig.model.js +216 -216
  20. package/schema/fixtureLibrary.model.js +167 -167
  21. package/schema/fixtureShelf.model.js +78 -78
  22. package/schema/liveConnection.model.js +54 -54
  23. package/schema/loginAttempt.model.js +31 -31
  24. package/schema/notification.model.js +45 -45
  25. package/schema/planoCrestLog.model.js +17 -17
  26. package/schema/planoGlobalComment.model.js +45 -45
  27. package/schema/planoMapping.model.js +62 -62
  28. package/schema/planoProductCategoryDetails.model.js +25 -25
  29. package/schema/planoProductDetail.model.js +63 -63
  30. package/schema/planoQrConversionRequest.model.js +61 -61
  31. package/schema/planoRevision.model.js +36 -36
  32. package/schema/planoStaticData.model.js +17 -17
  33. package/schema/planoTaskCompliance.model.js +397 -397
  34. package/schema/planoVmDetail.model.js +63 -63
  35. package/schema/planogram.model.js +66 -66
  36. package/schema/processedchecklist.js +252 -252
  37. package/schema/processedchecklistconfig.js +226 -226
  38. package/schema/revopConfig.model.js +19 -19
  39. package/schema/revopDownload.model.js +49 -49
  40. package/schema/store.model.js +401 -401
  41. package/schema/storeFixture.model.js +228 -228
  42. package/schema/storeLayout.model.js +74 -74
  43. package/schema/streaming.model.js +29 -29
  44. package/schema/suspiciousActivity.model.js +54 -54
  45. package/schema/taskAssign.model.js +90 -90
  46. package/schema/taskConfig.model.js +121 -121
  47. package/schema/taskProcessed.model.js +257 -257
  48. package/schema/taskProcessedConfig.model.js +134 -134
  49. package/schema/user.model.js +139 -139
  50. package/schema/vmType.model.js +23 -23
@@ -1,45 +1,45 @@
1
- import mongoose from 'mongoose';
2
-
3
- const notification = new mongoose.Schema(
4
- {
5
- userId: {
6
- type: mongoose.Types.ObjectId,
7
- },
8
- captureTime: {
9
- type:String,
10
- },
11
- storeId:{
12
- type: String,
13
- },
14
- storeName:{
15
- type: String,
16
- },
17
- status:{
18
- type: String,
19
- default:"unsend"
20
- },
21
- slotNo:{
22
- type: Number,
23
- },
24
- userName: {
25
- type: String,
26
- },
27
- sourceCheckList_id: {
28
- type: mongoose.Types.ObjectId,
29
- },
30
- checkListName: {
31
- type: String,
32
- },
33
- notificationType: {
34
- type: String,
35
- },
36
- },
37
- {
38
- strict: true,
39
- versionKey: false,
40
- timestamps: true,
41
- },
42
- );
43
- notification.index( { createdAt: 1 }, { expires: '1d' })
44
-
45
- export default mongoose.model( 'notification', notification, 'notification');
1
+ import mongoose from 'mongoose';
2
+
3
+ const notification = new mongoose.Schema(
4
+ {
5
+ userId: {
6
+ type: mongoose.Types.ObjectId,
7
+ },
8
+ captureTime: {
9
+ type:String,
10
+ },
11
+ storeId:{
12
+ type: String,
13
+ },
14
+ storeName:{
15
+ type: String,
16
+ },
17
+ status:{
18
+ type: String,
19
+ default:"unsend"
20
+ },
21
+ slotNo:{
22
+ type: Number,
23
+ },
24
+ userName: {
25
+ type: String,
26
+ },
27
+ sourceCheckList_id: {
28
+ type: mongoose.Types.ObjectId,
29
+ },
30
+ checkListName: {
31
+ type: String,
32
+ },
33
+ notificationType: {
34
+ type: String,
35
+ },
36
+ },
37
+ {
38
+ strict: true,
39
+ versionKey: false,
40
+ timestamps: true,
41
+ },
42
+ );
43
+ notification.index( { createdAt: 1 }, { expires: '1d' })
44
+
45
+ export default mongoose.model( 'notification', notification, 'notification');
@@ -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,46 +1,46 @@
1
- import mongoose from 'mongoose';
2
-
3
- // schema
4
- const collection = new mongoose.Schema({
5
- userId: {
6
- type: String,
7
- trim: true,
8
- },
9
- userName: {
10
- type: String,
11
- },
12
- comment: {
13
- type: String,
14
- },
15
- timestamps: {
16
- type: Date,
17
- default: new Date()
18
- },
19
- taskType: {
20
- type: String,
21
- enum: ['layout', 'fixture', 'vm', 'merchRollout', 'vmRollout']
22
- },
23
- responsetype: {
24
- type: String,
25
- enum: ['comment', 'approve', 'disapprove', 'publish'],
26
- default: "comment"
27
- },
28
- planoId: {
29
- type: mongoose.Types.ObjectId,
30
- },
31
- floorId: {
32
- type: mongoose.Types.ObjectId,
33
- },
34
- clientId: {
35
- type: String
36
- }
37
-
38
- },
39
- {
40
- timestamps: true,
41
- strict: true,
42
- versionKey: false,
43
- });
44
-
45
-
1
+ import mongoose from 'mongoose';
2
+
3
+ // schema
4
+ const collection = new mongoose.Schema({
5
+ userId: {
6
+ type: String,
7
+ trim: true,
8
+ },
9
+ userName: {
10
+ type: String,
11
+ },
12
+ comment: {
13
+ type: String,
14
+ },
15
+ timestamps: {
16
+ type: Date,
17
+ default: new Date()
18
+ },
19
+ taskType: {
20
+ type: String,
21
+ enum: ['layout', 'fixture', 'vm', 'merchRollout', 'vmRollout']
22
+ },
23
+ responsetype: {
24
+ type: String,
25
+ enum: ['comment', 'approve', 'disapprove', 'publish'],
26
+ default: "comment"
27
+ },
28
+ planoId: {
29
+ type: mongoose.Types.ObjectId,
30
+ },
31
+ floorId: {
32
+ type: mongoose.Types.ObjectId,
33
+ },
34
+ clientId: {
35
+ type: String
36
+ }
37
+
38
+ },
39
+ {
40
+ timestamps: true,
41
+ strict: true,
42
+ versionKey: false,
43
+ });
44
+
45
+
46
46
  export default mongoose.model('planoGlobalComment', collection);
@@ -1,62 +1,62 @@
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
- pid:{
43
- type: String,
44
- },
45
- rfId: {
46
- type: String,
47
- },
48
- category: {
49
- type: String,
50
- },
51
- productDetails: {
52
- type: Object,
53
- },
54
- },
55
- {
56
- strict: true,
57
- versionKey: false,
58
- timestamps: true,
59
- },
60
- );
61
-
62
- 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
+ pid:{
43
+ type: String,
44
+ },
45
+ rfId: {
46
+ type: String,
47
+ },
48
+ category: {
49
+ type: String,
50
+ },
51
+ productDetails: {
52
+ type: Object,
53
+ },
54
+ },
55
+ {
56
+ strict: true,
57
+ versionKey: false,
58
+ timestamps: true,
59
+ },
60
+ );
61
+
62
+ export default mongoose.model( 'planoMapping', planoMappingSchema );
@@ -1,26 +1,26 @@
1
- import mongoose from 'mongoose';
2
-
3
- const planoProductCategorySchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type: String,
7
- required: true,
8
- },
9
- brandName:{
10
- type:String
11
- },
12
- category:{
13
- type:Array
14
- },
15
- subCategory:{
16
- type:Array
17
- }
18
- },
19
- {
20
- strict: true,
21
- versionKey: false,
22
- timestamps: true,
23
- },
24
- );
25
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const planoProductCategorySchema = new mongoose.Schema(
4
+ {
5
+ clientId: {
6
+ type: String,
7
+ required: true,
8
+ },
9
+ brandName:{
10
+ type:String
11
+ },
12
+ category:{
13
+ type:Array
14
+ },
15
+ subCategory:{
16
+ type:Array
17
+ }
18
+ },
19
+ {
20
+ strict: true,
21
+ versionKey: false,
22
+ timestamps: true,
23
+ },
24
+ );
25
+
26
26
  export default mongoose.model( 'planoProductCategory', planoProductCategorySchema );
@@ -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( '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
+ 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( '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 );