tango-api-schema 2.2.96 → 2.2.97

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 (89) hide show
  1. package/index.js +176 -176
  2. package/package.json +25 -25
  3. package/schema/aiTicketConfig.js +42 -42
  4. package/schema/appVersion.js +36 -36
  5. package/schema/applicationDefault.model.js +24 -24
  6. package/schema/assignAudit.model.js +55 -55
  7. package/schema/auditLogs.model.js +77 -77
  8. package/schema/auditStoreData.model.js +56 -56
  9. package/schema/auditUserWallet.model.js +98 -98
  10. package/schema/auditUsers.model.js +53 -53
  11. package/schema/authentication.model.js +27 -27
  12. package/schema/basePricing.model.js +28 -28
  13. package/schema/billing.model.js +99 -99
  14. package/schema/binaryAudit.model.js +84 -84
  15. package/schema/camera.model.js +204 -204
  16. package/schema/checklistassignconfig.js +90 -90
  17. package/schema/checklistconfig.js +242 -242
  18. package/schema/checklistlog.js +113 -113
  19. package/schema/checklistquestionconfig.js +150 -150
  20. package/schema/client.model.js +638 -638
  21. package/schema/clientRequest.model.js +38 -38
  22. package/schema/cluster.model.js +70 -70
  23. package/schema/controlCenterTemplateList.model.js +39 -39
  24. package/schema/countryCodes.model.js +26 -26
  25. package/schema/dailyPricing.model.js +86 -86
  26. package/schema/dataMismatchDraft.model.js +22 -22
  27. package/schema/domain.js +18 -18
  28. package/schema/download.js +124 -124
  29. package/schema/edgeAppVersion.model.js +33 -33
  30. package/schema/edgeappAuth.model.js +30 -30
  31. package/schema/emailers.model.js +45 -45
  32. package/schema/empDetectionOutput.model.js +67 -67
  33. package/schema/externalParameter.model.js +241 -241
  34. package/schema/eyetest.model.js +18 -18
  35. package/schema/fitting.model.js +52 -52
  36. package/schema/fixtureConfig.model.js +66 -66
  37. package/schema/fixtureShelf.model.js +60 -60
  38. package/schema/group.model.js +34 -34
  39. package/schema/hotjar.model.js +11 -11
  40. package/schema/infraReason.model.js +44 -44
  41. package/schema/internalAuth.model.js +35 -35
  42. package/schema/invoice.model.js +104 -104
  43. package/schema/ipLogs.model.js +37 -37
  44. package/schema/lead.model.js +76 -76
  45. package/schema/lenskartEmployeeMapping.model.js +63 -63
  46. package/schema/liveConnection.model.js +54 -54
  47. package/schema/locusOrder.model.js +154 -154
  48. package/schema/locusOrderUser.model.js +14 -14
  49. package/schema/lowcountReason.model.js +44 -44
  50. package/schema/mailOnlyuser.model.js +42 -42
  51. package/schema/matLog.model.js +26 -26
  52. package/schema/nobBilling.model.js +41 -41
  53. package/schema/otp.model.js +25 -25
  54. package/schema/paymentAccount.model.js +60 -60
  55. package/schema/planoCompliance.model.js +62 -62
  56. package/schema/planoMapping.model.js +56 -56
  57. package/schema/planoProductDetail.model.js +77 -77
  58. package/schema/planoQrConversionRequest.model.js +61 -61
  59. package/schema/planoStaticData.model.js +17 -17
  60. package/schema/planoTaskCompliance.model.js +41 -41
  61. package/schema/planogram.model.js +63 -63
  62. package/schema/processedchecklist.js +227 -227
  63. package/schema/processedchecklistconfig.js +168 -168
  64. package/schema/processeddetection.js +85 -85
  65. package/schema/quality.model.js +57 -57
  66. package/schema/report.model.js +30 -30
  67. package/schema/standaredRole.model.js +76 -76
  68. package/schema/store.model.js +364 -364
  69. package/schema/storeAudit.model.js +62 -62
  70. package/schema/storeEmpDetection.model.js +62 -62
  71. package/schema/storeFixture.model.js +156 -156
  72. package/schema/storeLayout.model.js +66 -66
  73. package/schema/suspiciousActivity.model.js +54 -54
  74. package/schema/tagging.model.js +42 -42
  75. package/schema/tangoTicket.model.js +210 -210
  76. package/schema/taskAssign.model.js +87 -87
  77. package/schema/taskConfig.model.js +115 -115
  78. package/schema/taskProcessed.model.js +220 -220
  79. package/schema/taskProcessedConfig.model.js +128 -128
  80. package/schema/taskQuestion.model.js +46 -46
  81. package/schema/teams.model.js +46 -46
  82. package/schema/transaction.model.js +54 -54
  83. package/schema/traxApprover.model.js +35 -35
  84. package/schema/traxAuditData.model.js +64 -64
  85. package/schema/user.model.js +132 -132
  86. package/schema/userAssignedStore.model.js +41 -41
  87. package/schema/userAudit.model.js +77 -77
  88. package/schema/userEmpDetection.model.js +83 -83
  89. package/schema/workstation.model.js +75 -75
@@ -1,47 +1,47 @@
1
- import mongoose from 'mongoose';
2
-
3
- const taskQuestionconfigSchema = new mongoose.Schema({
4
- question: {
5
- type: Array,
6
- required:true
7
- },
8
- section: {
9
- type: String,
10
- required:true
11
- },
12
- checkList: {
13
- type: String,
14
- required: true
15
- },
16
- checkListId: {
17
- type: mongoose.SchemaTypes.ObjectId,
18
- required: true
19
- },
20
- client_id: {
21
- type: String,
22
- required: true
23
- },
24
- createdAt: {
25
- type: Date,
26
- default: Date.now
27
- },
28
- updatedAt: {
29
- type: Date,
30
- default: Date.now
31
- },
32
- isdeleted: {
33
- type: Boolean,
34
- default: false
35
- },
36
- sectionOldName:{
37
- type: String,
38
- },
39
- },
40
- {
41
- strict: true,
42
- versionKey: false,
43
- timestamps: true,
44
- },
45
- );
46
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const taskQuestionconfigSchema = new mongoose.Schema({
4
+ question: {
5
+ type: Array,
6
+ required:true
7
+ },
8
+ section: {
9
+ type: String,
10
+ required:true
11
+ },
12
+ checkList: {
13
+ type: String,
14
+ required: true
15
+ },
16
+ checkListId: {
17
+ type: mongoose.SchemaTypes.ObjectId,
18
+ required: true
19
+ },
20
+ client_id: {
21
+ type: String,
22
+ required: true
23
+ },
24
+ createdAt: {
25
+ type: Date,
26
+ default: Date.now
27
+ },
28
+ updatedAt: {
29
+ type: Date,
30
+ default: Date.now
31
+ },
32
+ isdeleted: {
33
+ type: Boolean,
34
+ default: false
35
+ },
36
+ sectionOldName:{
37
+ type: String,
38
+ },
39
+ },
40
+ {
41
+ strict: true,
42
+ versionKey: false,
43
+ timestamps: true,
44
+ },
45
+ );
46
+
47
47
  export default mongoose.model( 'taskQuestionsConfig', taskQuestionconfigSchema);
@@ -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
+