tango-api-schema 2.3.15 → 2.3.17

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 (54) hide show
  1. package/build.js +24 -24
  2. package/index.js +215 -213
  3. package/package.json +27 -27
  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/eyeTestConfiguration.model.js +39 -0
  20. package/schema/fixtureConfig.model.js +223 -223
  21. package/schema/fixtureLibrary.model.js +167 -167
  22. package/schema/fixtureShelf.model.js +78 -78
  23. package/schema/liveConnection.model.js +54 -54
  24. package/schema/loginAttempt.model.js +31 -31
  25. package/schema/notification.model.js +45 -45
  26. package/schema/planoCrestLog.model.js +17 -17
  27. package/schema/planoGlobalComment.model.js +45 -45
  28. package/schema/planoMapping.model.js +62 -62
  29. package/schema/planoProductCategoryDetails.model.js +25 -25
  30. package/schema/planoProductDetail.model.js +63 -63
  31. package/schema/planoQrConversionRequest.model.js +61 -61
  32. package/schema/planoRevision.model.js +36 -36
  33. package/schema/planoStaticData.model.js +17 -17
  34. package/schema/planoTaskCompliance.model.js +397 -397
  35. package/schema/planoVmDetail.model.js +63 -63
  36. package/schema/planogram.model.js +66 -66
  37. package/schema/processedchecklist.js +256 -256
  38. package/schema/processedchecklistconfig.js +226 -226
  39. package/schema/revopConfig.model.js +19 -19
  40. package/schema/revopDownload.model.js +49 -49
  41. package/schema/runAIFeatures.js +24 -24
  42. package/schema/runAIRequest.js +53 -53
  43. package/schema/store.model.js +405 -405
  44. package/schema/storeFixture.model.js +228 -228
  45. package/schema/storeLayout.model.js +74 -74
  46. package/schema/streaming.model.js +29 -29
  47. package/schema/suspiciousActivity.model.js +54 -54
  48. package/schema/taskAssign.model.js +90 -90
  49. package/schema/taskConfig.model.js +121 -121
  50. package/schema/taskProcessed.model.js +257 -257
  51. package/schema/taskProcessedConfig.model.js +134 -134
  52. package/schema/templateLog.model.js +17 -17
  53. package/schema/user.model.js +139 -139
  54. package/schema/vmType.model.js +23 -23
@@ -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
+ );
@@ -1,91 +1,91 @@
1
- import mongoose from 'mongoose';
2
-
3
- const taskassignconfigSchema = new mongoose.Schema({
4
- store_id: {
5
- type: String,
6
- default:''
7
- },
8
- storeName: {
9
- type: String,
10
- default:''
11
- },
12
- userId: {
13
- type: mongoose.SchemaTypes.ObjectId,
14
- },
15
- userEmail: {
16
- type: String,
17
- },
18
- userName: {
19
- type: String,
20
- },
21
- userPhone:{
22
- type:String,
23
- },
24
- city:{
25
- type:String
26
- },
27
- country:{
28
- type:String
29
- },
30
- checkFlag: {
31
- type: Boolean,
32
- default:true
33
- },
34
- checkListId: {
35
- type: mongoose.SchemaTypes.ObjectId,
36
- required:true
37
- },
38
- checkListName: {
39
- type: String,
40
- required:true
41
- },
42
- client_id: {
43
- type: String,
44
- required:true
45
- },
46
- createdAt: {
47
- type: Date,
48
- default: Date.now
49
- },
50
- updatedAt: {
51
- type: Date,
52
- default: Date.now
53
- },
54
- isdeleted: {
55
- type: Boolean,
56
- default: false
57
- },
58
- reinitiate:{
59
- type:Boolean,
60
- default:false
61
- },
62
- sendNotification:{
63
- type:Boolean,
64
- default:false,
65
- },
66
- clusterName:{
67
- type:String,
68
- },
69
- teamName:{
70
- type:String
71
- },
72
- assignId:{
73
- type:mongoose.Types.ObjectId
74
- },
75
- coverage:{
76
- type: String,
77
- default: 'store',
78
- enum: ["store", "user"]
79
- },
80
- comments:{
81
- type:String
82
- },
83
- },
84
- {
85
- strict: true,
86
- versionKey: false,
87
- timestamps: true,
88
- },
89
- );
90
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const taskassignconfigSchema = new mongoose.Schema({
4
+ store_id: {
5
+ type: String,
6
+ default:''
7
+ },
8
+ storeName: {
9
+ type: String,
10
+ default:''
11
+ },
12
+ userId: {
13
+ type: mongoose.SchemaTypes.ObjectId,
14
+ },
15
+ userEmail: {
16
+ type: String,
17
+ },
18
+ userName: {
19
+ type: String,
20
+ },
21
+ userPhone:{
22
+ type:String,
23
+ },
24
+ city:{
25
+ type:String
26
+ },
27
+ country:{
28
+ type:String
29
+ },
30
+ checkFlag: {
31
+ type: Boolean,
32
+ default:true
33
+ },
34
+ checkListId: {
35
+ type: mongoose.SchemaTypes.ObjectId,
36
+ required:true
37
+ },
38
+ checkListName: {
39
+ type: String,
40
+ required:true
41
+ },
42
+ client_id: {
43
+ type: String,
44
+ required:true
45
+ },
46
+ createdAt: {
47
+ type: Date,
48
+ default: Date.now
49
+ },
50
+ updatedAt: {
51
+ type: Date,
52
+ default: Date.now
53
+ },
54
+ isdeleted: {
55
+ type: Boolean,
56
+ default: false
57
+ },
58
+ reinitiate:{
59
+ type:Boolean,
60
+ default:false
61
+ },
62
+ sendNotification:{
63
+ type:Boolean,
64
+ default:false,
65
+ },
66
+ clusterName:{
67
+ type:String,
68
+ },
69
+ teamName:{
70
+ type:String
71
+ },
72
+ assignId:{
73
+ type:mongoose.Types.ObjectId
74
+ },
75
+ coverage:{
76
+ type: String,
77
+ default: 'store',
78
+ enum: ["store", "user"]
79
+ },
80
+ comments:{
81
+ type:String
82
+ },
83
+ },
84
+ {
85
+ strict: true,
86
+ versionKey: false,
87
+ timestamps: true,
88
+ },
89
+ );
90
+
91
91
  export default mongoose.model( 'taskAssignConfig', taskassignconfigSchema);
@@ -1,122 +1,122 @@
1
- import mongoose from 'mongoose';
2
-
3
- const taskSchema = new mongoose.Schema(
4
- {
5
- checkListName: {
6
- type: String,
7
- },
8
- checkListDescription:{
9
- type: String,
10
- },
11
- createdBy: {
12
- type: mongoose.SchemaTypes.ObjectId,
13
- required: true
14
- },
15
- createdByName: {
16
- type: String,
17
- required: true
18
- },
19
- publish: {
20
- type: Boolean,
21
- default: false
22
- },
23
- scheduleEndTime: {
24
- type: String,
25
- default: ''
26
- },
27
- scheduleEndTimeISO: {
28
- type: Date
29
- },
30
- scheduleDate: {
31
- type: Date,
32
- default: Date.now
33
- },
34
- client_id: {
35
- type: String
36
- },
37
- questionCount: {
38
- type: Number,
39
- default:0
40
- },
41
- storeCount: {
42
- type: Number,
43
- default: 0
44
- },
45
- publishDate: {
46
- type: Date,
47
- },
48
- locationCount:{
49
- type:Number
50
- },
51
- checkListType:{
52
- type:String,
53
- default:"task",
54
- enum: ['task','checklistTask','cctv']
55
- },
56
- createdAt: {
57
- type: Date,
58
- default: Date.now
59
- },
60
- updatedAt: {
61
- type: Date,
62
- default: Date.now
63
- },
64
- isdeleted: {
65
- type: Boolean,
66
- default: false
67
- },
68
- markasread:{
69
- type:Boolean,
70
- default:false
71
- },
72
- priorityType:{
73
- type:String,
74
- enum:['high','medium','low'],
75
- },
76
- approver:{
77
- type:Array,
78
- default:[]
79
- },
80
- remainder:{
81
- type:Array,
82
- default:[]
83
- },
84
- restrictAttendance:{
85
- type:Boolean,
86
- default:false
87
- },
88
- allowedStoreLocation: {
89
- type: Boolean,
90
- default:false
91
- },
92
- reinitiate:{
93
- type:Boolean,
94
- default:false
95
- },
96
- referenceCheckListId:{
97
- type:mongoose.SchemaTypes.ObjectId,
98
- },
99
- coverage:{
100
- type: String,
101
- default: 'store',
102
- enum: ["store", "user", "checklist"]
103
- },
104
- rawImageUpload: {
105
- type: Boolean,
106
- default:false
107
- },
108
- checkListFrom: {
109
- type: String
110
- },
111
- zoneName: {
112
- type: String
113
- }
114
- },
115
- {
116
- strict: true,
117
- versionKey: false,
118
- timestamps: true,
119
- },
120
- );
121
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const taskSchema = new mongoose.Schema(
4
+ {
5
+ checkListName: {
6
+ type: String,
7
+ },
8
+ checkListDescription:{
9
+ type: String,
10
+ },
11
+ createdBy: {
12
+ type: mongoose.SchemaTypes.ObjectId,
13
+ required: true
14
+ },
15
+ createdByName: {
16
+ type: String,
17
+ required: true
18
+ },
19
+ publish: {
20
+ type: Boolean,
21
+ default: false
22
+ },
23
+ scheduleEndTime: {
24
+ type: String,
25
+ default: ''
26
+ },
27
+ scheduleEndTimeISO: {
28
+ type: Date
29
+ },
30
+ scheduleDate: {
31
+ type: Date,
32
+ default: Date.now
33
+ },
34
+ client_id: {
35
+ type: String
36
+ },
37
+ questionCount: {
38
+ type: Number,
39
+ default:0
40
+ },
41
+ storeCount: {
42
+ type: Number,
43
+ default: 0
44
+ },
45
+ publishDate: {
46
+ type: Date,
47
+ },
48
+ locationCount:{
49
+ type:Number
50
+ },
51
+ checkListType:{
52
+ type:String,
53
+ default:"task",
54
+ enum: ['task','checklistTask','cctv']
55
+ },
56
+ createdAt: {
57
+ type: Date,
58
+ default: Date.now
59
+ },
60
+ updatedAt: {
61
+ type: Date,
62
+ default: Date.now
63
+ },
64
+ isdeleted: {
65
+ type: Boolean,
66
+ default: false
67
+ },
68
+ markasread:{
69
+ type:Boolean,
70
+ default:false
71
+ },
72
+ priorityType:{
73
+ type:String,
74
+ enum:['high','medium','low'],
75
+ },
76
+ approver:{
77
+ type:Array,
78
+ default:[]
79
+ },
80
+ remainder:{
81
+ type:Array,
82
+ default:[]
83
+ },
84
+ restrictAttendance:{
85
+ type:Boolean,
86
+ default:false
87
+ },
88
+ allowedStoreLocation: {
89
+ type: Boolean,
90
+ default:false
91
+ },
92
+ reinitiate:{
93
+ type:Boolean,
94
+ default:false
95
+ },
96
+ referenceCheckListId:{
97
+ type:mongoose.SchemaTypes.ObjectId,
98
+ },
99
+ coverage:{
100
+ type: String,
101
+ default: 'store',
102
+ enum: ["store", "user", "checklist"]
103
+ },
104
+ rawImageUpload: {
105
+ type: Boolean,
106
+ default:false
107
+ },
108
+ checkListFrom: {
109
+ type: String
110
+ },
111
+ zoneName: {
112
+ type: String
113
+ }
114
+ },
115
+ {
116
+ strict: true,
117
+ versionKey: false,
118
+ timestamps: true,
119
+ },
120
+ );
121
+
122
122
  export default mongoose.model( 'taskConfig', taskSchema);