tango-api-schema 2.2.151 → 2.2.152

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 (100) hide show
  1. package/index.js +189 -197
  2. package/package.json +26 -25
  3. package/schema/aiTicketConfig.js +42 -42
  4. package/schema/appVersion.js +39 -39
  5. package/schema/applicationDefault.model.js +24 -24
  6. package/schema/assignAudit.model.js +55 -55
  7. package/schema/auditConfig.model.js +41 -41
  8. package/schema/auditLogs.model.js +77 -77
  9. package/schema/auditStoreData.model.js +56 -56
  10. package/schema/auditUserWallet.model.js +98 -98
  11. package/schema/auditUsers.model.js +53 -53
  12. package/schema/authentication.model.js +27 -27
  13. package/schema/basePricing.model.js +28 -28
  14. package/schema/billing.model.js +99 -99
  15. package/schema/binaryAudit.model.js +84 -84
  16. package/schema/camera.model.js +211 -211
  17. package/schema/checklistassignconfig.js +90 -90
  18. package/schema/checklistconfig.js +256 -256
  19. package/schema/checklistlog.js +113 -113
  20. package/schema/checklistquestionconfig.js +153 -153
  21. package/schema/client.model.js +675 -675
  22. package/schema/clientRequest.model.js +38 -38
  23. package/schema/cluster.model.js +70 -70
  24. package/schema/controlCenterTemplateList.model.js +39 -39
  25. package/schema/countryCodes.model.js +26 -26
  26. package/schema/countryCurrency.model.js +17 -17
  27. package/schema/dailyPricing.model.js +86 -86
  28. package/schema/dataMismatchDraft.model.js +22 -22
  29. package/schema/domain.js +18 -18
  30. package/schema/download.js +124 -124
  31. package/schema/edgeAppVersion.model.js +33 -33
  32. package/schema/edgeappAuth.model.js +30 -30
  33. package/schema/emailers.model.js +45 -45
  34. package/schema/empDetectionOutput.model.js +67 -67
  35. package/schema/externalParameter.model.js +241 -241
  36. package/schema/eyetest.model.js +18 -18
  37. package/schema/fitting.model.js +52 -52
  38. package/schema/fixtureConfig.model.js +72 -202
  39. package/schema/fixtureShelf.model.js +63 -72
  40. package/schema/group.model.js +34 -34
  41. package/schema/hotjar.model.js +11 -11
  42. package/schema/infraReason.model.js +44 -44
  43. package/schema/internalAuth.model.js +35 -35
  44. package/schema/invoice.model.js +104 -104
  45. package/schema/ipLogs.model.js +37 -37
  46. package/schema/lead.model.js +76 -76
  47. package/schema/lenskartEmployeeMapping.model.js +63 -63
  48. package/schema/liveConnection.model.js +54 -54
  49. package/schema/locusOrder.model.js +154 -154
  50. package/schema/locusOrderUser.model.js +14 -14
  51. package/schema/loginAttempt.model.js +26 -26
  52. package/schema/lowcountReason.model.js +44 -44
  53. package/schema/mailOnlyuser.model.js +42 -42
  54. package/schema/matLog.model.js +26 -26
  55. package/schema/nobBilling.model.js +41 -41
  56. package/schema/notification.model.js +33 -33
  57. package/schema/otp.model.js +25 -25
  58. package/schema/paymentAccount.model.js +60 -60
  59. package/schema/planoCompliance.model.js +62 -62
  60. package/schema/planoCrestLog.model.js +17 -17
  61. package/schema/planoMapping.model.js +56 -56
  62. package/schema/planoProductDetail.model.js +80 -63
  63. package/schema/planoQrConversionRequest.model.js +61 -61
  64. package/schema/planoStaticData.model.js +17 -17
  65. package/schema/planoTaskCompliance.model.js +50 -245
  66. package/schema/planogram.model.js +66 -66
  67. package/schema/processedchecklist.js +249 -249
  68. package/schema/processedchecklistconfig.js +187 -187
  69. package/schema/processeddetection.js +85 -85
  70. package/schema/quality.model.js +57 -57
  71. package/schema/report.model.js +30 -30
  72. package/schema/revopConfig.model.js +19 -19
  73. package/schema/standaredRole.model.js +76 -76
  74. package/schema/store.model.js +381 -381
  75. package/schema/storeAudit.model.js +62 -62
  76. package/schema/storeEmpDetection.model.js +62 -62
  77. package/schema/storeFixture.model.js +166 -206
  78. package/schema/storeLayout.model.js +66 -66
  79. package/schema/streaming.model.js +29 -29
  80. package/schema/suspiciousActivity.model.js +54 -54
  81. package/schema/tagging.model.js +42 -42
  82. package/schema/tangoTicket.model.js +210 -210
  83. package/schema/taskAssign.model.js +87 -87
  84. package/schema/taskConfig.model.js +118 -118
  85. package/schema/taskProcessed.model.js +248 -248
  86. package/schema/taskProcessedConfig.model.js +131 -131
  87. package/schema/taskQuestion.model.js +46 -46
  88. package/schema/teams.model.js +46 -46
  89. package/schema/transaction.model.js +54 -54
  90. package/schema/traxApprover.model.js +35 -35
  91. package/schema/traxAuditData.model.js +64 -64
  92. package/schema/user.model.js +139 -139
  93. package/schema/userAssignedStore.model.js +41 -41
  94. package/schema/userAudit.model.js +77 -77
  95. package/schema/userEmpDetection.model.js +83 -83
  96. package/schema/workstation.model.js +75 -75
  97. package/schema/fixtureLibrary.model.js +0 -165
  98. package/schema/planoProductCategoryDetails.model.js +0 -33
  99. package/schema/planoVmDetail.model.js +0 -63
  100. package/schema/vmType.model.js +0 -24
@@ -1,39 +1,39 @@
1
- import mongoose from 'mongoose';
2
-
3
- const clientRequestSchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type:String
7
- },
8
- user:{
9
- type:mongoose.SchemaTypes.ObjectId
10
- },
11
- name:{
12
- type:String
13
- },
14
- reason:{
15
- type:String
16
- },
17
- description:{
18
- type:String
19
- },
20
- category:{
21
- type:String
22
- },
23
- status:{
24
- type:String,
25
- enum: [ 'pending','completed' ],
26
- },
27
- markasRead:{
28
- type:Boolean,
29
- default:false
30
- }
31
- },
32
- {
33
- strict: true,
34
- versionKey: false,
35
- timestamps: true,
36
- },
37
- );
38
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const clientRequestSchema = new mongoose.Schema(
4
+ {
5
+ clientId: {
6
+ type:String
7
+ },
8
+ user:{
9
+ type:mongoose.SchemaTypes.ObjectId
10
+ },
11
+ name:{
12
+ type:String
13
+ },
14
+ reason:{
15
+ type:String
16
+ },
17
+ description:{
18
+ type:String
19
+ },
20
+ category:{
21
+ type:String
22
+ },
23
+ status:{
24
+ type:String,
25
+ enum: [ 'pending','completed' ],
26
+ },
27
+ markasRead:{
28
+ type:Boolean,
29
+ default:false
30
+ }
31
+ },
32
+ {
33
+ strict: true,
34
+ versionKey: false,
35
+ timestamps: true,
36
+ },
37
+ );
38
+
39
39
  export default mongoose.model('clientRequest', clientRequestSchema)
@@ -1,71 +1,71 @@
1
- import mongoose from 'mongoose'
2
-
3
- let clusterSchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type: String
7
- },
8
- clusterName: {
9
- type: String
10
- },
11
- description: {
12
- type: String
13
- },
14
- isDefaults:{
15
- type:Boolean,
16
- default:false
17
- },
18
- teams:[
19
- {
20
- name: {
21
- type: String,
22
- },
23
- teamId: {
24
- type: mongoose.Types.ObjectId
25
- }
26
- }
27
- ],
28
- stores: [
29
- {
30
- storeId: {
31
- type: String,
32
- },
33
- store: {
34
- type: mongoose.Types.ObjectId
35
- }
36
- }
37
- ],
38
- Teamlead: [
39
- {
40
- email: {
41
- type: String,
42
- },
43
- userId: {
44
- type: mongoose.Types.ObjectId
45
- }
46
- }
47
- ],
48
- users: [
49
- {
50
- email: {
51
- type: String,
52
- },
53
- userId: {
54
- type: mongoose.Types.ObjectId
55
- }
56
- }
57
- ],
58
- status: {
59
- type: String,
60
- default:"active"
61
- },
62
-
63
- },
64
- {
65
- strict: true,
66
- versionKey: false,
67
- timestamps: true,
68
- }
69
- )
70
-
1
+ import mongoose from 'mongoose'
2
+
3
+ let clusterSchema = new mongoose.Schema(
4
+ {
5
+ clientId: {
6
+ type: String
7
+ },
8
+ clusterName: {
9
+ type: String
10
+ },
11
+ description: {
12
+ type: String
13
+ },
14
+ isDefaults:{
15
+ type:Boolean,
16
+ default:false
17
+ },
18
+ teams:[
19
+ {
20
+ name: {
21
+ type: String,
22
+ },
23
+ teamId: {
24
+ type: mongoose.Types.ObjectId
25
+ }
26
+ }
27
+ ],
28
+ stores: [
29
+ {
30
+ storeId: {
31
+ type: String,
32
+ },
33
+ store: {
34
+ type: mongoose.Types.ObjectId
35
+ }
36
+ }
37
+ ],
38
+ Teamlead: [
39
+ {
40
+ email: {
41
+ type: String,
42
+ },
43
+ userId: {
44
+ type: mongoose.Types.ObjectId
45
+ }
46
+ }
47
+ ],
48
+ users: [
49
+ {
50
+ email: {
51
+ type: String,
52
+ },
53
+ userId: {
54
+ type: mongoose.Types.ObjectId
55
+ }
56
+ }
57
+ ],
58
+ status: {
59
+ type: String,
60
+ default:"active"
61
+ },
62
+
63
+ },
64
+ {
65
+ strict: true,
66
+ versionKey: false,
67
+ timestamps: true,
68
+ }
69
+ )
70
+
71
71
  export default mongoose.model('cluster', clusterSchema);
@@ -1,39 +1,39 @@
1
- /**
2
- * @name api_control_center
3
- */
4
-
5
- // NPM Modules
6
- import mongoose from 'mongoose';
7
-
8
- // Schema
9
- const controlCenterTemplateList = new mongoose.Schema( {
10
-
11
- clientId: {
12
- type: String,
13
- require: true
14
- },
15
- templateName: {
16
- type:String
17
- },
18
- templateType: {
19
- type: String,
20
- },
21
- list: {
22
- type: Array,
23
- },
24
- isActive: {
25
- type: Boolean,
26
- default: true,
27
- }
28
- },
29
- {
30
- timestamps: true,
31
- strict: true,
32
- versionKey: false,
33
- },
34
-
35
- );
36
-
37
- controlCenterTemplateList.index({ clientId:1,templateName: 1});
38
-
39
- export default mongoose.model( 'controlCenterTemplateList', controlCenterTemplateList, 'controlCenterTemplateList' );
1
+ /**
2
+ * @name api_control_center
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const controlCenterTemplateList = new mongoose.Schema( {
10
+
11
+ clientId: {
12
+ type: String,
13
+ require: true
14
+ },
15
+ templateName: {
16
+ type:String
17
+ },
18
+ templateType: {
19
+ type: String,
20
+ },
21
+ list: {
22
+ type: Array,
23
+ },
24
+ isActive: {
25
+ type: Boolean,
26
+ default: true,
27
+ }
28
+ },
29
+ {
30
+ timestamps: true,
31
+ strict: true,
32
+ versionKey: false,
33
+ },
34
+
35
+ );
36
+
37
+ controlCenterTemplateList.index({ clientId:1,templateName: 1});
38
+
39
+ export default mongoose.model( 'controlCenterTemplateList', controlCenterTemplateList, 'controlCenterTemplateList' );
@@ -1,26 +1,26 @@
1
- import mongoose from 'mongoose';
2
-
3
- const countryCodes = new mongoose.Schema(
4
- {
5
- countryName: {
6
- type: String,
7
- required: true,
8
- unique: true,
9
- },
10
- countryAlpha2Code: {
11
- type: String,
12
- required: true,
13
- },
14
- countryCode: {
15
- type: String,
16
- required: true,
17
- },
18
- },
19
- {
20
- strict: true,
21
- versionKey: false,
22
- timestamps: true,
23
- },
24
- );
25
-
26
- export default mongoose.model( 'countryCodes', countryCodes , 'countryCodes');
1
+ import mongoose from 'mongoose';
2
+
3
+ const countryCodes = new mongoose.Schema(
4
+ {
5
+ countryName: {
6
+ type: String,
7
+ required: true,
8
+ unique: true,
9
+ },
10
+ countryAlpha2Code: {
11
+ type: String,
12
+ required: true,
13
+ },
14
+ countryCode: {
15
+ type: String,
16
+ required: true,
17
+ },
18
+ },
19
+ {
20
+ strict: true,
21
+ versionKey: false,
22
+ timestamps: true,
23
+ },
24
+ );
25
+
26
+ export default mongoose.model( 'countryCodes', countryCodes , 'countryCodes');
@@ -1,18 +1,18 @@
1
- /**
2
- * @name countryCurrencyModel
3
- * @description planoCrestLog Schema
4
- */
5
-
6
- import mongoose from "mongoose";
7
-
8
- const collection = new mongoose.Schema(
9
- {
10
- },
11
- {
12
- timestamps: true,
13
- strict: false,
14
- versionKey: false,
15
- }
16
- );
17
-
1
+ /**
2
+ * @name countryCurrencyModel
3
+ * @description planoCrestLog Schema
4
+ */
5
+
6
+ import mongoose from "mongoose";
7
+
8
+ const collection = new mongoose.Schema(
9
+ {
10
+ },
11
+ {
12
+ timestamps: true,
13
+ strict: false,
14
+ versionKey: false,
15
+ }
16
+ );
17
+
18
18
  export default mongoose.model("countryCurrency", collection);
@@ -1,87 +1,87 @@
1
- import mongoose from 'mongoose'
2
-
3
- let pricingSchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type:String
7
- },
8
- stores: [
9
- {
10
- storeId: {
11
- type: String,
12
- },
13
- store:{
14
- type:mongoose.Types.ObjectId
15
- },
16
- storeName:{
17
- type:String
18
- },
19
- status:{
20
- type:String
21
- },
22
- firstFile: {
23
- type:Boolean
24
- },
25
- edgefirstFileDate:{
26
- type:Date
27
- },
28
- date: {
29
- type:Date
30
- },
31
- processfirstFileDate:{
32
- type:Date
33
- },
34
- daysDifference:{
35
- type:Number
36
- },
37
- camera:{
38
- type:Array
39
- },
40
- cameraCount:{
41
- type:Number
42
- },
43
- products: [
44
- {
45
- productName: {
46
- type: String,
47
- },
48
- storeRange:{
49
- type:String
50
- },
51
- workingdays:{
52
- type:Number
53
- }
54
- }
55
- ]
56
- }
57
- ],
58
- accountType:{
59
- type:String
60
- },
61
- status:{
62
- type:String
63
- },
64
- activeStores:{
65
- type:Number
66
- },
67
- brandName:{
68
- type:String
69
- },
70
- proRate:{
71
- type:String
72
- },
73
- dateString:{
74
- type:String
75
- },
76
- dateISO:{
77
- type:Date
78
- }
79
- },
80
- {
81
- strict: true,
82
- versionKey: false,
83
- timestamps: true,
84
- }
85
- )
86
-
1
+ import mongoose from 'mongoose'
2
+
3
+ let pricingSchema = new mongoose.Schema(
4
+ {
5
+ clientId: {
6
+ type:String
7
+ },
8
+ stores: [
9
+ {
10
+ storeId: {
11
+ type: String,
12
+ },
13
+ store:{
14
+ type:mongoose.Types.ObjectId
15
+ },
16
+ storeName:{
17
+ type:String
18
+ },
19
+ status:{
20
+ type:String
21
+ },
22
+ firstFile: {
23
+ type:Boolean
24
+ },
25
+ edgefirstFileDate:{
26
+ type:Date
27
+ },
28
+ date: {
29
+ type:Date
30
+ },
31
+ processfirstFileDate:{
32
+ type:Date
33
+ },
34
+ daysDifference:{
35
+ type:Number
36
+ },
37
+ camera:{
38
+ type:Array
39
+ },
40
+ cameraCount:{
41
+ type:Number
42
+ },
43
+ products: [
44
+ {
45
+ productName: {
46
+ type: String,
47
+ },
48
+ storeRange:{
49
+ type:String
50
+ },
51
+ workingdays:{
52
+ type:Number
53
+ }
54
+ }
55
+ ]
56
+ }
57
+ ],
58
+ accountType:{
59
+ type:String
60
+ },
61
+ status:{
62
+ type:String
63
+ },
64
+ activeStores:{
65
+ type:Number
66
+ },
67
+ brandName:{
68
+ type:String
69
+ },
70
+ proRate:{
71
+ type:String
72
+ },
73
+ dateString:{
74
+ type:String
75
+ },
76
+ dateISO:{
77
+ type:Date
78
+ }
79
+ },
80
+ {
81
+ strict: true,
82
+ versionKey: false,
83
+ timestamps: true,
84
+ }
85
+ )
86
+
87
87
  export default mongoose.model('dailypricing', pricingSchema);
@@ -1,23 +1,23 @@
1
- import mongoose from 'mongoose';
2
-
3
- const dataMismatchDraft = new mongoose.Schema(
4
- {
5
- ticketId: {
6
- type: String,
7
- },
8
- data: {
9
- type: String
10
- },
11
- },
12
- {
13
- strict: true,
14
- versionKey: false,
15
- timestamps: true,
16
- },
17
- );
18
-
19
- dataMismatchDraft.index( { createdAt: 1 }, { expires: '5d' })
20
-
21
-
22
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const dataMismatchDraft = new mongoose.Schema(
4
+ {
5
+ ticketId: {
6
+ type: String,
7
+ },
8
+ data: {
9
+ type: String
10
+ },
11
+ },
12
+ {
13
+ strict: true,
14
+ versionKey: false,
15
+ timestamps: true,
16
+ },
17
+ );
18
+
19
+ dataMismatchDraft.index( { createdAt: 1 }, { expires: '5d' })
20
+
21
+
22
+
23
23
  export default mongoose.model('dataMismatchDraft', dataMismatchDraft, 'dataMismatchDraft');
package/schema/domain.js CHANGED
@@ -1,19 +1,19 @@
1
- import mongoose from 'mongoose';
2
-
3
- const domainSchema = new mongoose.Schema({
4
- domain:{
5
- type:String,
6
- required:true
7
- },
8
- client_id: {
9
- type: String
10
- },
11
- },
12
- {
13
- strict: true,
14
- versionKey: false,
15
- timestamps: true,
16
- },
17
- );
18
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const domainSchema = new mongoose.Schema({
4
+ domain:{
5
+ type:String,
6
+ required:true
7
+ },
8
+ client_id: {
9
+ type: String
10
+ },
11
+ },
12
+ {
13
+ strict: true,
14
+ versionKey: false,
15
+ timestamps: true,
16
+ },
17
+ );
18
+
19
19
  export default mongoose.model( 'domain', domainSchema);