tango-api-schema 2.2.127 → 2.2.129

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 +187 -185
  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.model.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 -29
  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,129 +1,129 @@
1
- import mongoose from 'mongoose';
2
-
3
- const processestaskconfigSchema = new mongoose.Schema({
4
- client_id: {
5
- type: String,
6
- required:true
7
- },
8
- date_iso: {
9
- type: Date,
10
- },
11
- date_string: {
12
- type: String,
13
- },
14
- sourceCheckList_id: {
15
- type: mongoose.Schema.Types.ObjectId,
16
- ref: 'taskConfig'
17
- },
18
- checkListName: {
19
- type: String,
20
- required:true
21
- },
22
- scheduleStartTime: {
23
- type: String
24
- },
25
- scheduleEndTime: {
26
- type: String
27
- },
28
- scheduleStartTime_iso: {
29
- type: Date
30
- },
31
- scheduleEndTime_iso: {
32
- type: Date
33
- },
34
- allowedOverTime: {
35
- type: Boolean,
36
- default:false
37
- },
38
- allowedStoreLocation: {
39
- type: Boolean,
40
- default:false
41
- },
42
- createdBy: {
43
- type: mongoose.SchemaTypes.ObjectId,
44
- },
45
- createdByName: {
46
- type: String,
47
- },
48
- questionAnswers: {
49
- type: Array
50
- },
51
- createdAt: {
52
- type: Date,
53
- default: Date.now
54
- },
55
- updatedAt: {
56
- type: Date,
57
- default: Date.now
58
- },
59
- isdeleted: {
60
- type: Boolean,
61
- default: false
62
- },
63
- questionCount: {
64
- type: Number,
65
- default: 0
66
- },
67
- storeCount: {
68
- type: Number,
69
- default: 0
70
- },
71
- publishDate: {
72
- type: Date,
73
- },
74
- locationCount: {
75
- type: Number
76
- },
77
- checkListType: {
78
- type: String,
79
- default: "task",
80
- enum: ['task',"checklistTask",'cctv']
81
- },
82
- startTime:{
83
- type:Date
84
- },
85
- scheduleRepeatedType: {
86
- type: String,
87
- default: '',
88
- enum: ["daily"]
89
- },
90
- allowedMultiSubmit: {
91
- type: Boolean,
92
- default:false
93
- },
94
- approver:{
95
- type:Array,
96
- default:[]
97
- },
98
- checkListDescription:{
99
- type: String,
100
- },
101
- priorityType:{
102
- type:String
103
- },
104
- remainder:{
105
- type:Array,
106
- default:[]
107
- },
108
- restrictAttendance:{
109
- type:Boolean,
110
- default:false
111
- },
112
- coverage:{
113
- type: String,
114
- default: 'store',
115
- enum: ["store", "user", "checklist"]
116
- },
117
- rawImageUpload: {
118
- type: Boolean,
119
- default:false
120
- },
121
- },
122
- {
123
- strict: true,
124
- versionKey: false,
125
- timestamps: true,
126
- },
127
- );
128
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const processestaskconfigSchema = new mongoose.Schema({
4
+ client_id: {
5
+ type: String,
6
+ required:true
7
+ },
8
+ date_iso: {
9
+ type: Date,
10
+ },
11
+ date_string: {
12
+ type: String,
13
+ },
14
+ sourceCheckList_id: {
15
+ type: mongoose.Schema.Types.ObjectId,
16
+ ref: 'taskConfig'
17
+ },
18
+ checkListName: {
19
+ type: String,
20
+ required:true
21
+ },
22
+ scheduleStartTime: {
23
+ type: String
24
+ },
25
+ scheduleEndTime: {
26
+ type: String
27
+ },
28
+ scheduleStartTime_iso: {
29
+ type: Date
30
+ },
31
+ scheduleEndTime_iso: {
32
+ type: Date
33
+ },
34
+ allowedOverTime: {
35
+ type: Boolean,
36
+ default:false
37
+ },
38
+ allowedStoreLocation: {
39
+ type: Boolean,
40
+ default:false
41
+ },
42
+ createdBy: {
43
+ type: mongoose.SchemaTypes.ObjectId,
44
+ },
45
+ createdByName: {
46
+ type: String,
47
+ },
48
+ questionAnswers: {
49
+ type: Array
50
+ },
51
+ createdAt: {
52
+ type: Date,
53
+ default: Date.now
54
+ },
55
+ updatedAt: {
56
+ type: Date,
57
+ default: Date.now
58
+ },
59
+ isdeleted: {
60
+ type: Boolean,
61
+ default: false
62
+ },
63
+ questionCount: {
64
+ type: Number,
65
+ default: 0
66
+ },
67
+ storeCount: {
68
+ type: Number,
69
+ default: 0
70
+ },
71
+ publishDate: {
72
+ type: Date,
73
+ },
74
+ locationCount: {
75
+ type: Number
76
+ },
77
+ checkListType: {
78
+ type: String,
79
+ default: "task",
80
+ enum: ['task',"checklistTask",'cctv']
81
+ },
82
+ startTime:{
83
+ type:Date
84
+ },
85
+ scheduleRepeatedType: {
86
+ type: String,
87
+ default: '',
88
+ enum: ["daily"]
89
+ },
90
+ allowedMultiSubmit: {
91
+ type: Boolean,
92
+ default:false
93
+ },
94
+ approver:{
95
+ type:Array,
96
+ default:[]
97
+ },
98
+ checkListDescription:{
99
+ type: String,
100
+ },
101
+ priorityType:{
102
+ type:String
103
+ },
104
+ remainder:{
105
+ type:Array,
106
+ default:[]
107
+ },
108
+ restrictAttendance:{
109
+ type:Boolean,
110
+ default:false
111
+ },
112
+ coverage:{
113
+ type: String,
114
+ default: 'store',
115
+ enum: ["store", "user", "checklist"]
116
+ },
117
+ rawImageUpload: {
118
+ type: Boolean,
119
+ default:false
120
+ },
121
+ },
122
+ {
123
+ strict: true,
124
+ versionKey: false,
125
+ timestamps: true,
126
+ },
127
+ );
128
+
129
129
  export default mongoose.model( 'processedTaskConfig', processestaskconfigSchema);
@@ -1,136 +1,136 @@
1
- import mongoose from 'mongoose';
2
-
3
- const user = new mongoose.Schema(
4
- {
5
- userName: {
6
- type: String,
7
- },
8
- email: {
9
- type: String,
10
- required: true,
11
- unique: true,
12
- },
13
- userProfile:{
14
- type:String
15
- },
16
- countryCode: {
17
- type: String,
18
- },
19
- mobileNumber: {
20
- type: String,
21
- },
22
- clientId: {
23
- type: String,
24
- },
25
- role: {
26
- type: String,
27
- enum: [ 'superadmin', 'admin', 'user' ],
28
- default: 'user',
29
- },
30
- isActive: {
31
- type: Boolean,
32
- default: true,
33
- },
34
- permission: [
35
- {
36
- featureName: {
37
- type: String,
38
- },
39
- product: [
40
- {
41
- name: {
42
- type: String,
43
- },
44
- isView: {
45
- type: Boolean,
46
- },
47
- isEdit: {
48
- type: Boolean,
49
- },
50
- isDownload: {
51
- type: Boolean,
52
- },
53
- isDelete: {
54
- type: Boolean,
55
- },
56
- },
57
- ],
58
- },
59
- ],
60
- rolespermission: [
61
- {
62
- featureName: {
63
- type: String,
64
- },
65
- modules: [
66
- {
67
- name: {
68
- type: String,
69
- },
70
- isAdd: {
71
- type: Boolean,
72
- },
73
- isEdit: {
74
- type: Boolean,
75
- },
76
- },
77
- ],
78
- },
79
- ],
80
- userType:{
81
- type: String,
82
- enum:['tango','client','lead']
83
- },
84
- tangoUserType:{
85
- type: String,
86
- enum:['audit','dashboard']
87
- },
88
- password: {
89
- type: String
90
- },
91
- refreshToken:{
92
- type: String
93
- },
94
- twoFactorAuthentication : {
95
- code: {
96
- type: String
97
- },
98
- isEnable : {
99
- type: Boolean
100
- }
101
- },
102
- emailAlert: {
103
- infra: {
104
- type: Boolean,
105
- default: false
106
- }
107
- },
108
- employeeId:{
109
- type:String
110
- },
111
- assignedStores:{
112
- type:Array
113
- },
114
- fcmToken:{
115
- type:String,
116
- default:''
117
- },
118
- loginFrom:{
119
- type:String,
120
- enum: [ 'web', 'android', 'ios' ],
121
- default:'web'
122
- },
123
- termsAndCondition: {
124
- type: Boolean,
125
- default: false
126
- },
127
- },
128
- {
129
- strict: true,
130
- versionKey: false,
131
- timestamps: true,
132
- },
133
- );
134
-
135
-
136
- export default mongoose.model( 'user', user );
1
+ import mongoose from 'mongoose';
2
+
3
+ const user = new mongoose.Schema(
4
+ {
5
+ userName: {
6
+ type: String,
7
+ },
8
+ email: {
9
+ type: String,
10
+ required: true,
11
+ unique: true,
12
+ },
13
+ userProfile:{
14
+ type:String
15
+ },
16
+ countryCode: {
17
+ type: String,
18
+ },
19
+ mobileNumber: {
20
+ type: String,
21
+ },
22
+ clientId: {
23
+ type: String,
24
+ },
25
+ role: {
26
+ type: String,
27
+ enum: [ 'superadmin', 'admin', 'user' ],
28
+ default: 'user',
29
+ },
30
+ isActive: {
31
+ type: Boolean,
32
+ default: true,
33
+ },
34
+ permission: [
35
+ {
36
+ featureName: {
37
+ type: String,
38
+ },
39
+ product: [
40
+ {
41
+ name: {
42
+ type: String,
43
+ },
44
+ isView: {
45
+ type: Boolean,
46
+ },
47
+ isEdit: {
48
+ type: Boolean,
49
+ },
50
+ isDownload: {
51
+ type: Boolean,
52
+ },
53
+ isDelete: {
54
+ type: Boolean,
55
+ },
56
+ },
57
+ ],
58
+ },
59
+ ],
60
+ rolespermission: [
61
+ {
62
+ featureName: {
63
+ type: String,
64
+ },
65
+ modules: [
66
+ {
67
+ name: {
68
+ type: String,
69
+ },
70
+ isAdd: {
71
+ type: Boolean,
72
+ },
73
+ isEdit: {
74
+ type: Boolean,
75
+ },
76
+ },
77
+ ],
78
+ },
79
+ ],
80
+ userType:{
81
+ type: String,
82
+ enum:['tango','client','lead']
83
+ },
84
+ tangoUserType:{
85
+ type: String,
86
+ enum:['audit','dashboard']
87
+ },
88
+ password: {
89
+ type: String
90
+ },
91
+ refreshToken:{
92
+ type: String
93
+ },
94
+ twoFactorAuthentication : {
95
+ code: {
96
+ type: String
97
+ },
98
+ isEnable : {
99
+ type: Boolean
100
+ }
101
+ },
102
+ emailAlert: {
103
+ infra: {
104
+ type: Boolean,
105
+ default: false
106
+ }
107
+ },
108
+ employeeId:{
109
+ type:String
110
+ },
111
+ assignedStores:{
112
+ type:Array
113
+ },
114
+ fcmToken:{
115
+ type:String,
116
+ default:''
117
+ },
118
+ loginFrom:{
119
+ type:String,
120
+ enum: [ 'web', 'android', 'ios' ],
121
+ default:'web'
122
+ },
123
+ termsAndCondition: {
124
+ type: Boolean,
125
+ default: false
126
+ },
127
+ },
128
+ {
129
+ strict: true,
130
+ versionKey: false,
131
+ timestamps: true,
132
+ },
133
+ );
134
+
135
+
136
+ export default mongoose.model( 'user', user );