tango-api-schema 2.1.48 → 2.1.49

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 (61) hide show
  1. package/index.js +119 -119
  2. package/package.json +27 -27
  3. package/schema/applicationDefault.model.js +24 -24
  4. package/schema/assignAudit.model.js +55 -55
  5. package/schema/auditLogs.model.js +77 -77
  6. package/schema/auditStoreData.model.js +56 -56
  7. package/schema/auditUserWallet.model.js +90 -90
  8. package/schema/auditUsers.model.js +39 -39
  9. package/schema/authentication.model.js +27 -27
  10. package/schema/basePricing.model.js +29 -29
  11. package/schema/billing.model.js +99 -99
  12. package/schema/binaryAudit.model.js +84 -84
  13. package/schema/camera.model.js +146 -146
  14. package/schema/checklistassignconfig.js +71 -71
  15. package/schema/checklistconfig.js +167 -167
  16. package/schema/checklistlog.js +59 -59
  17. package/schema/checklistquestionconfig.js +147 -147
  18. package/schema/client.model.js +529 -529
  19. package/schema/clientRequest.model.js +40 -40
  20. package/schema/cluster.model.js +58 -58
  21. package/schema/countryCodes.model.js +28 -28
  22. package/schema/dailyPricing.model.js +88 -88
  23. package/schema/dataMismatchDraft.model.js +22 -22
  24. package/schema/domain.js +18 -18
  25. package/schema/edgeAppVersion.model.js +33 -33
  26. package/schema/edgeappAuth.model.js +32 -32
  27. package/schema/empDetectionOutput.model.js +64 -64
  28. package/schema/externalParameter.model.js +202 -202
  29. package/schema/eyetest.model.js +18 -18
  30. package/schema/fitting.model.js +52 -52
  31. package/schema/group.model.js +36 -36
  32. package/schema/hotjar.model.js +11 -11
  33. package/schema/infraReason.model.js +44 -44
  34. package/schema/internalAuth.model.js +36 -36
  35. package/schema/invoice.model.js +106 -106
  36. package/schema/ipLogs.model.js +39 -39
  37. package/schema/lead.model.js +78 -78
  38. package/schema/lowcountReason.model.js +44 -44
  39. package/schema/mailOnlyuser.model.js +44 -44
  40. package/schema/matLog.model.js +26 -26
  41. package/schema/otp.model.js +27 -27
  42. package/schema/paymentAccount.model.js +60 -60
  43. package/schema/processedchecklist.js +184 -184
  44. package/schema/processedchecklistconfig.js +105 -105
  45. package/schema/processeddetection.js +85 -85
  46. package/schema/quality.model.js +57 -57
  47. package/schema/report.model.js +30 -30
  48. package/schema/standaredRole.model.js +56 -56
  49. package/schema/store.model.js +325 -325
  50. package/schema/storeAudit.model.js +62 -62
  51. package/schema/storeEmpDetection.model.js +62 -62
  52. package/schema/tagging.model.js +44 -44
  53. package/schema/tangoTicket.model.js +210 -210
  54. package/schema/teams.model.js +48 -48
  55. package/schema/transaction.model.js +54 -54
  56. package/schema/traxAuditData.model.js +61 -61
  57. package/schema/user.model.js +121 -121
  58. package/schema/userAssignedStore.model.js +41 -41
  59. package/schema/userAudit.model.js +77 -77
  60. package/schema/userEmpDetection.model.js +81 -81
  61. package/schema/workstation.model.js +77 -77
@@ -1,61 +1,61 @@
1
- /**
2
- * @name api_audit
3
- */
4
-
5
- // NPM Modules
6
- import mongoose from 'mongoose';
7
-
8
- // Schema
9
- const traxAuditData = new mongoose.Schema( {
10
-
11
- clientId: {
12
- type: String,
13
- },
14
- clientName: {
15
- type: String,
16
- trim:true
17
- },
18
- storeId:{
19
- type:String
20
- },
21
- moduleType:{
22
- type: String
23
- },
24
- streamName:{
25
- type: String
26
- },
27
- tempId:{
28
- type: Number
29
- },
30
- question:{
31
- type:String
32
- },
33
- fileDate: {
34
- type: String,
35
- },
36
- fileDateISO: {
37
- type: Date,
38
- },
39
- queueName: {
40
- type: String,
41
- trim:true
42
- },
43
- installedStore: {
44
- type: Number,
45
- },
46
- sqs:{
47
- type:Object
48
- }
49
- },
50
- {
51
- timestamps: true,
52
- strict: true,
53
- versionKey: false,
54
- } );
55
-
56
- traxAuditData.index({ storeId: 1,moduleType:1, fileDate:1,clientId:1});
57
-
58
- export default mongoose.model( 'traxAuditData', traxAuditData, 'traxAuditData' );
59
-
60
-
61
-
1
+ /**
2
+ * @name api_audit
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const traxAuditData = new mongoose.Schema( {
10
+
11
+ clientId: {
12
+ type: String,
13
+ },
14
+ clientName: {
15
+ type: String,
16
+ trim:true
17
+ },
18
+ storeId:{
19
+ type:String
20
+ },
21
+ moduleType:{
22
+ type: String
23
+ },
24
+ streamName:{
25
+ type: String
26
+ },
27
+ tempId:{
28
+ type: Number
29
+ },
30
+ question:{
31
+ type:String
32
+ },
33
+ fileDate: {
34
+ type: String,
35
+ },
36
+ fileDateISO: {
37
+ type: Date,
38
+ },
39
+ queueName: {
40
+ type: String,
41
+ trim:true
42
+ },
43
+ installedStore: {
44
+ type: Number,
45
+ },
46
+ sqs:{
47
+ type:Object
48
+ }
49
+ },
50
+ {
51
+ timestamps: true,
52
+ strict: true,
53
+ versionKey: false,
54
+ } );
55
+
56
+ traxAuditData.index({ storeId: 1,moduleType:1, fileDate:1,clientId:1});
57
+
58
+ export default mongoose.model( 'traxAuditData', traxAuditData, 'traxAuditData' );
59
+
60
+
61
+
@@ -1,121 +1,121 @@
1
- import mongoose from 'mongoose';
2
- import mongooseUniqueValidator from 'mongoose-unique-validator';
3
-
4
- const user = new mongoose.Schema(
5
- {
6
- userName: {
7
- type: String,
8
- },
9
- email: {
10
- type: String,
11
- required: true,
12
- unique: true,
13
- },
14
- userProfile:{
15
- type:String
16
- },
17
- countryCode: {
18
- type: String,
19
- },
20
- mobileNumber: {
21
- type: String,
22
- required: true,
23
- },
24
- clientId: {
25
- type: String,
26
- },
27
- role: {
28
- type: String,
29
- enum: [ 'superadmin', 'admin', 'user' ],
30
- default: 'user',
31
- },
32
- isActive: {
33
- type: Boolean,
34
- default: true,
35
- },
36
- permission: [
37
- {
38
- featureName: {
39
- type: String,
40
- },
41
- product: [
42
- {
43
- name: {
44
- type: String,
45
- },
46
- isView: {
47
- type: Boolean,
48
- },
49
- isEdit: {
50
- type: Boolean,
51
- },
52
- isDownload: {
53
- type: Boolean,
54
- },
55
- isDelete: {
56
- type: Boolean,
57
- },
58
- },
59
- ],
60
- },
61
- ],
62
- rolespermission: [
63
- {
64
- featureName: {
65
- type: String,
66
- },
67
- modules: [
68
- {
69
- name: {
70
- type: String,
71
- },
72
- isAdd: {
73
- type: Boolean,
74
- },
75
- isEdit: {
76
- type: Boolean,
77
- },
78
- },
79
- ],
80
- },
81
- ],
82
- userType:{
83
- type: String,
84
- enum:['tango','client','lead']
85
- },
86
- password: {
87
- type: String
88
- },
89
- refreshToken:{
90
- type: String
91
- },
92
- twoFactorAuthentication : {
93
- code: {
94
- type: String
95
- },
96
- isEnable : {
97
- type: Boolean
98
- }
99
- },
100
- emailAlert: {
101
- infra: {
102
- type: Boolean,
103
- default: false
104
- }
105
- },
106
- employeeId:{
107
- type:String
108
- },
109
- assignedStores:{
110
- type:Array
111
- }
112
- },
113
- {
114
- strict: true,
115
- versionKey: false,
116
- timestamps: true,
117
- },
118
- );
119
-
120
- user.plugin( mongooseUniqueValidator );
121
- export default mongoose.model( 'user', user );
1
+ import mongoose from 'mongoose';
2
+ import mongooseUniqueValidator from 'mongoose-unique-validator';
3
+
4
+ const user = new mongoose.Schema(
5
+ {
6
+ userName: {
7
+ type: String,
8
+ },
9
+ email: {
10
+ type: String,
11
+ required: true,
12
+ unique: true,
13
+ },
14
+ userProfile:{
15
+ type:String
16
+ },
17
+ countryCode: {
18
+ type: String,
19
+ },
20
+ mobileNumber: {
21
+ type: String,
22
+ // required: true,
23
+ },
24
+ clientId: {
25
+ type: String,
26
+ },
27
+ role: {
28
+ type: String,
29
+ enum: [ 'superadmin', 'admin', 'user' ],
30
+ default: 'user',
31
+ },
32
+ isActive: {
33
+ type: Boolean,
34
+ default: true,
35
+ },
36
+ permission: [
37
+ {
38
+ featureName: {
39
+ type: String,
40
+ },
41
+ product: [
42
+ {
43
+ name: {
44
+ type: String,
45
+ },
46
+ isView: {
47
+ type: Boolean,
48
+ },
49
+ isEdit: {
50
+ type: Boolean,
51
+ },
52
+ isDownload: {
53
+ type: Boolean,
54
+ },
55
+ isDelete: {
56
+ type: Boolean,
57
+ },
58
+ },
59
+ ],
60
+ },
61
+ ],
62
+ rolespermission: [
63
+ {
64
+ featureName: {
65
+ type: String,
66
+ },
67
+ modules: [
68
+ {
69
+ name: {
70
+ type: String,
71
+ },
72
+ isAdd: {
73
+ type: Boolean,
74
+ },
75
+ isEdit: {
76
+ type: Boolean,
77
+ },
78
+ },
79
+ ],
80
+ },
81
+ ],
82
+ userType:{
83
+ type: String,
84
+ enum:['tango','client','lead']
85
+ },
86
+ password: {
87
+ type: String
88
+ },
89
+ refreshToken:{
90
+ type: String
91
+ },
92
+ twoFactorAuthentication : {
93
+ code: {
94
+ type: String
95
+ },
96
+ isEnable : {
97
+ type: Boolean
98
+ }
99
+ },
100
+ emailAlert: {
101
+ infra: {
102
+ type: Boolean,
103
+ default: false
104
+ }
105
+ },
106
+ employeeId:{
107
+ type:String
108
+ },
109
+ assignedStores:{
110
+ type:Array
111
+ }
112
+ },
113
+ {
114
+ strict: true,
115
+ versionKey: false,
116
+ timestamps: true,
117
+ },
118
+ );
119
+
120
+ user.plugin( mongooseUniqueValidator );
121
+ export default mongoose.model( 'user', user );
@@ -1,41 +1,41 @@
1
- import mongoose from 'mongoose';
2
-
3
-
4
- const userAssigned = new mongoose.Schema(
5
- {
6
- userEmail: {
7
- type: String,
8
- required: true,
9
- },
10
- clientId:{
11
- type: String
12
- },
13
- assignedType: {
14
- type: String,
15
- enum: [ 'store', 'group', 'client'],
16
- },
17
- assignedValue: {
18
- type: String
19
- },
20
- userType:{
21
- type: String,
22
- enum:['tango','client']
23
- },
24
- tangoUserType: {
25
- type: String,
26
- enum: ['user', 'csm'],
27
- default: 'user'
28
- },
29
- isClientApproved: {
30
- type: Boolean,
31
- default: false
32
- },
33
- },
34
- {
35
- strict: true,
36
- versionKey: false,
37
- timestamps: true,
38
- },
39
- );
40
-
41
- export default mongoose.model( 'userAssignedStore', userAssigned ,'userAssignedStore');
1
+ import mongoose from 'mongoose';
2
+
3
+
4
+ const userAssigned = new mongoose.Schema(
5
+ {
6
+ userEmail: {
7
+ type: String,
8
+ required: true,
9
+ },
10
+ clientId:{
11
+ type: String
12
+ },
13
+ assignedType: {
14
+ type: String,
15
+ enum: [ 'store', 'group', 'client'],
16
+ },
17
+ assignedValue: {
18
+ type: String
19
+ },
20
+ userType:{
21
+ type: String,
22
+ enum:['tango','client']
23
+ },
24
+ tangoUserType: {
25
+ type: String,
26
+ enum: ['user', 'csm'],
27
+ default: 'user'
28
+ },
29
+ isClientApproved: {
30
+ type: Boolean,
31
+ default: false
32
+ },
33
+ },
34
+ {
35
+ strict: true,
36
+ versionKey: false,
37
+ timestamps: true,
38
+ },
39
+ );
40
+
41
+ export default mongoose.model( 'userAssignedStore', userAssigned ,'userAssignedStore');
@@ -1,77 +1,77 @@
1
- /**
2
- * @name api_audit
3
- */
4
-
5
- // NPM Modules
6
- import mongoose from 'mongoose';
7
-
8
- // Schema
9
- const userAuditSchem = new mongoose.Schema( {
10
- userId: {
11
- type: mongoose.Schema.Types.ObjectId,
12
- },
13
- clientId: {
14
- type: String,
15
- },
16
- storeId: {
17
- type: String,
18
- },
19
- zoneName:{
20
- type: String,
21
- },
22
- moduleType:{
23
- type: String,
24
- enum: [ 'traffic', 'zone' ],
25
- },
26
- auditType: {
27
- type: String,
28
- },
29
- fileDate: {
30
- type: String,
31
- },
32
- fileDateISO: {
33
- type: Date,
34
- },
35
- queueName: {
36
- type: String,
37
- },
38
- isDraft: {
39
- type: Boolean,
40
- default: false,
41
- },
42
- auditStatus: {
43
- type: String,
44
- enum: [ 'inprogress', 'drafted', 'completed', 'skipped' ],
45
- },
46
- beforeCount: {
47
- type: Number,
48
- },
49
- afterCount: {
50
- type: Number,
51
- },
52
- startTime: {
53
- type: Date,
54
- },
55
- endTime: {
56
- type: Date,
57
- },
58
- timeSpent: {
59
- type: Number,
60
- default: 0,
61
- },
62
- dueHour: {
63
- type: String
64
- },
65
- userCommands: {
66
- type: String,
67
- },
68
- },
69
- {
70
- timestamps: true,
71
- strict: true,
72
- versionKey: false,
73
- } );
74
-
75
- userAuditSchem.index({ storeId: 1,moduleType:1, fileDate:1,clientId:1,userId:1, auditType:1, fileDateISO:1});
76
-
77
- export default mongoose.model( 'userAudit', userAuditSchem, 'userAudit' );
1
+ /**
2
+ * @name api_audit
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const userAuditSchem = new mongoose.Schema( {
10
+ userId: {
11
+ type: mongoose.Schema.Types.ObjectId,
12
+ },
13
+ clientId: {
14
+ type: String,
15
+ },
16
+ storeId: {
17
+ type: String,
18
+ },
19
+ zoneName:{
20
+ type: String,
21
+ },
22
+ moduleType:{
23
+ type: String,
24
+ enum: [ 'traffic', 'zone' ],
25
+ },
26
+ auditType: {
27
+ type: String,
28
+ },
29
+ fileDate: {
30
+ type: String,
31
+ },
32
+ fileDateISO: {
33
+ type: Date,
34
+ },
35
+ queueName: {
36
+ type: String,
37
+ },
38
+ isDraft: {
39
+ type: Boolean,
40
+ default: false,
41
+ },
42
+ auditStatus: {
43
+ type: String,
44
+ enum: [ 'inprogress', 'drafted', 'completed', 'skipped' ],
45
+ },
46
+ beforeCount: {
47
+ type: Number,
48
+ },
49
+ afterCount: {
50
+ type: Number,
51
+ },
52
+ startTime: {
53
+ type: Date,
54
+ },
55
+ endTime: {
56
+ type: Date,
57
+ },
58
+ timeSpent: {
59
+ type: Number,
60
+ default: 0,
61
+ },
62
+ dueHour: {
63
+ type: String
64
+ },
65
+ userCommands: {
66
+ type: String,
67
+ },
68
+ },
69
+ {
70
+ timestamps: true,
71
+ strict: true,
72
+ versionKey: false,
73
+ } );
74
+
75
+ userAuditSchem.index({ storeId: 1,moduleType:1, fileDate:1,clientId:1,userId:1, auditType:1, fileDateISO:1});
76
+
77
+ export default mongoose.model( 'userAudit', userAuditSchem, 'userAudit' );