tango-api-schema 2.3.28 → 2.3.30

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 (56) hide show
  1. package/package.json +1 -1
  2. package/schema/aiTicketConfig.js +42 -42
  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 +98 -98
  8. package/schema/auditUsers.model.js +53 -53
  9. package/schema/authentication.model.js +27 -27
  10. package/schema/basePricing.model.js +28 -28
  11. package/schema/billing.model.js +99 -99
  12. package/schema/clientRequest.model.js +38 -38
  13. package/schema/cluster.model.js +70 -70
  14. package/schema/controlCenterTemplateList.model.js +39 -39
  15. package/schema/countryCodes.model.js +26 -26
  16. package/schema/dataMismatchDraft.model.js +22 -22
  17. package/schema/domain.js +18 -18
  18. package/schema/download.js +5 -2
  19. package/schema/edgeAppVersion.model.js +33 -33
  20. package/schema/edgeappAuth.model.js +30 -30
  21. package/schema/empDetectionOutput.model.js +67 -67
  22. package/schema/eyetest.model.js +18 -18
  23. package/schema/fitting.model.js +52 -52
  24. package/schema/group.model.js +34 -34
  25. package/schema/hotjar.model.js +11 -11
  26. package/schema/infraReason.model.js +44 -44
  27. package/schema/internalAuth.model.js +35 -35
  28. package/schema/invoice.model.js +104 -104
  29. package/schema/ipLogs.model.js +37 -37
  30. package/schema/lead.model.js +76 -76
  31. package/schema/lenskartEmployeeMapping.model.js +63 -63
  32. package/schema/locusOrder.model.js +154 -154
  33. package/schema/locusOrderUser.model.js +14 -14
  34. package/schema/lowcountReason.model.js +44 -44
  35. package/schema/mailOnlyuser.model.js +42 -42
  36. package/schema/matLog.model.js +26 -26
  37. package/schema/nobBilling.model.js +41 -41
  38. package/schema/otp.model.js +25 -25
  39. package/schema/paymentAccount.model.js +60 -60
  40. package/schema/planoCompliance.model.js +62 -62
  41. package/schema/processeddetection.js +85 -85
  42. package/schema/quality.model.js +57 -57
  43. package/schema/report.model.js +30 -30
  44. package/schema/standaredRole.model.js +76 -76
  45. package/schema/storeAudit.model.js +62 -62
  46. package/schema/storeEmpDetection.model.js +62 -62
  47. package/schema/tangoTicket.model.js +210 -210
  48. package/schema/taskQuestion.model.js +46 -46
  49. package/schema/teams.model.js +46 -46
  50. package/schema/transaction.model.js +54 -54
  51. package/schema/traxApprover.model.js +35 -35
  52. package/schema/traxAuditData.model.js +64 -64
  53. package/schema/userAssignedStore.model.js +41 -41
  54. package/schema/userAudit.model.js +77 -77
  55. package/schema/userEmpDetection.model.js +83 -83
  56. package/schema/workstation.model.js +75 -75
@@ -1,47 +1,47 @@
1
- import mongoose from 'mongoose'
2
-
3
- let teamsSchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type: String
7
- },
8
- teamName: {
9
- type: String
10
- },
11
- description: {
12
- type: String
13
- },
14
- Teamlead: [
15
- {
16
- email: {
17
- type: String,
18
- },
19
- userId: {
20
- type: mongoose.Types.ObjectId
21
- }
22
- }
23
- ],
24
- users: [
25
- {
26
- email: {
27
- type: String,
28
- },
29
- userId: {
30
- type: mongoose.Types.ObjectId
31
- }
32
- }
33
- ],
34
- status: {
35
- type: String,
36
- default:"active"
37
- },
38
-
39
- },
40
- {
41
- strict: true,
42
- versionKey: false,
43
- timestamps: true,
44
- }
45
- )
46
-
1
+ import mongoose from 'mongoose'
2
+
3
+ let teamsSchema = new mongoose.Schema(
4
+ {
5
+ clientId: {
6
+ type: String
7
+ },
8
+ teamName: {
9
+ type: String
10
+ },
11
+ description: {
12
+ type: String
13
+ },
14
+ Teamlead: [
15
+ {
16
+ email: {
17
+ type: String,
18
+ },
19
+ userId: {
20
+ type: mongoose.Types.ObjectId
21
+ }
22
+ }
23
+ ],
24
+ users: [
25
+ {
26
+ email: {
27
+ type: String,
28
+ },
29
+ userId: {
30
+ type: mongoose.Types.ObjectId
31
+ }
32
+ }
33
+ ],
34
+ status: {
35
+ type: String,
36
+ default:"active"
37
+ },
38
+
39
+ },
40
+ {
41
+ strict: true,
42
+ versionKey: false,
43
+ timestamps: true,
44
+ }
45
+ )
46
+
47
47
  export default mongoose.model('teams', teamsSchema);
@@ -1,55 +1,55 @@
1
- import mongoose from 'mongoose';
2
-
3
- const transactionSchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type: String
7
- },
8
- orderId: {
9
- type: String
10
- },
11
- paymentId: {
12
- type: String
13
- },
14
- debtType: {
15
- type: String,
16
- enum: [ 'wallet', 'razor' ],
17
- },
18
- billingDate: {
19
- type: Date
20
- },
21
- invoice: {
22
- type: String
23
- },
24
- groupName: {
25
- type: String
26
- },
27
- groupId: {
28
- type: mongoose.Types.ObjectId
29
- },
30
- amount: {
31
- type: Number
32
- },
33
- currency: {
34
- type: String,
35
- enum: [ 'dollar', 'inr' ],
36
- },
37
- transactionType: {
38
- type: String,
39
- enum: [ 'credit', 'debt' ],
40
- },
41
- balanceCredit: {
42
- type: Number
43
- },
44
- balanceCreditCurrency: {
45
- type: String,
46
- enum: [ 'dollar', 'inr' ],
47
- },
48
- }, {
49
- strict: true,
50
- versionKey: false,
51
- timestamps: true,
52
- }
53
- )
54
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const transactionSchema = new mongoose.Schema(
4
+ {
5
+ clientId: {
6
+ type: String
7
+ },
8
+ orderId: {
9
+ type: String
10
+ },
11
+ paymentId: {
12
+ type: String
13
+ },
14
+ debtType: {
15
+ type: String,
16
+ enum: [ 'wallet', 'razor' ],
17
+ },
18
+ billingDate: {
19
+ type: Date
20
+ },
21
+ invoice: {
22
+ type: String
23
+ },
24
+ groupName: {
25
+ type: String
26
+ },
27
+ groupId: {
28
+ type: mongoose.Types.ObjectId
29
+ },
30
+ amount: {
31
+ type: Number
32
+ },
33
+ currency: {
34
+ type: String,
35
+ enum: [ 'dollar', 'inr' ],
36
+ },
37
+ transactionType: {
38
+ type: String,
39
+ enum: [ 'credit', 'debt' ],
40
+ },
41
+ balanceCredit: {
42
+ type: Number
43
+ },
44
+ balanceCreditCurrency: {
45
+ type: String,
46
+ enum: [ 'dollar', 'inr' ],
47
+ },
48
+ }, {
49
+ strict: true,
50
+ versionKey: false,
51
+ timestamps: true,
52
+ }
53
+ )
54
+
55
55
  export default mongoose.model('transaction', transactionSchema);
@@ -1,36 +1,36 @@
1
- import mongoose from 'mongoose';
2
-
3
- const traxApproverSchema = new mongoose.Schema({
4
- userEmail:{
5
- type:String,
6
- require:true
7
- },
8
- checkListId:{
9
- type:mongoose.Types.ObjectId,
10
- required:true
11
- },
12
- isDeleted:{
13
- type:Boolean,
14
- default:false
15
- },
16
- type:{
17
- type:String,
18
- enum:['checklist','task']
19
- },
20
- client_id:{
21
- type:String,
22
- default:''
23
- },
24
- checkListName:{
25
- type:String,
26
- default:''
27
- }
28
- },
29
- {
30
- strict: true,
31
- versionKey: false,
32
- timestamps: true,
33
- },
34
- );
35
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const traxApproverSchema = new mongoose.Schema({
4
+ userEmail:{
5
+ type:String,
6
+ require:true
7
+ },
8
+ checkListId:{
9
+ type:mongoose.Types.ObjectId,
10
+ required:true
11
+ },
12
+ isDeleted:{
13
+ type:Boolean,
14
+ default:false
15
+ },
16
+ type:{
17
+ type:String,
18
+ enum:['checklist','task']
19
+ },
20
+ client_id:{
21
+ type:String,
22
+ default:''
23
+ },
24
+ checkListName:{
25
+ type:String,
26
+ default:''
27
+ }
28
+ },
29
+ {
30
+ strict: true,
31
+ versionKey: false,
32
+ timestamps: true,
33
+ },
34
+ );
35
+
36
36
  export default mongoose.model( 'traxApprover', traxApproverSchema);
@@ -1,64 +1,64 @@
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
- zoneName:{
22
- type: String
23
- },
24
- moduleType:{
25
- type: String
26
- },
27
- streamName:{
28
- type: String
29
- },
30
- tempId:{
31
- type: Number
32
- },
33
- question:{
34
- type:String
35
- },
36
- fileDate: {
37
- type: String,
38
- },
39
- fileDateISO: {
40
- type: Date,
41
- },
42
- queueName: {
43
- type: String,
44
- trim:true
45
- },
46
- installedStore: {
47
- type: Number,
48
- },
49
- sqs:{
50
- type:Object
51
- }
52
- },
53
- {
54
- timestamps: true,
55
- strict: true,
56
- versionKey: false,
57
- } );
58
-
59
- traxAuditData.index({ storeId: 1,moduleType:1, fileDate:1,clientId:1});
60
-
61
- export default mongoose.model( 'traxAuditData', traxAuditData, 'traxAuditData' );
62
-
63
-
64
-
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
+ zoneName:{
22
+ type: String
23
+ },
24
+ moduleType:{
25
+ type: String
26
+ },
27
+ streamName:{
28
+ type: String
29
+ },
30
+ tempId:{
31
+ type: Number
32
+ },
33
+ question:{
34
+ type:String
35
+ },
36
+ fileDate: {
37
+ type: String,
38
+ },
39
+ fileDateISO: {
40
+ type: Date,
41
+ },
42
+ queueName: {
43
+ type: String,
44
+ trim:true
45
+ },
46
+ installedStore: {
47
+ type: Number,
48
+ },
49
+ sqs:{
50
+ type:Object
51
+ }
52
+ },
53
+ {
54
+ timestamps: true,
55
+ strict: true,
56
+ versionKey: false,
57
+ } );
58
+
59
+ traxAuditData.index({ storeId: 1,moduleType:1, fileDate:1,clientId:1});
60
+
61
+ export default mongoose.model( 'traxAuditData', traxAuditData, 'traxAuditData' );
62
+
63
+
64
+
@@ -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', "track" ],
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', "track" ],
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' );