tango-api-schema 2.1.65 → 2.1.67

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 (69) hide show
  1. package/index.js +134 -133
  2. package/package.json +27 -27
  3. package/schema/aiTicketConfig.js +42 -42
  4. package/schema/appVersion.js +32 -32
  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 +39 -39
  11. package/schema/authentication.model.js +27 -27
  12. package/schema/basePricing.model.js +29 -29
  13. package/schema/billing.model.js +99 -99
  14. package/schema/binaryAudit.model.js +84 -84
  15. package/schema/camera.model.js +146 -146
  16. package/schema/checklistassignconfig.js +71 -71
  17. package/schema/checklistconfig.js +176 -176
  18. package/schema/checklistlog.js +59 -59
  19. package/schema/checklistquestionconfig.js +147 -147
  20. package/schema/client.model.js +545 -545
  21. package/schema/clientRequest.model.js +40 -40
  22. package/schema/cluster.model.js +68 -68
  23. package/schema/controlCenterTemplateList.model.js +39 -39
  24. package/schema/countryCodes.model.js +28 -28
  25. package/schema/dailyPricing.model.js +88 -88
  26. package/schema/dataMismatchDraft.model.js +22 -22
  27. package/schema/domain.js +18 -18
  28. package/schema/download.js +104 -103
  29. package/schema/edgeAppVersion.model.js +33 -33
  30. package/schema/edgeappAuth.model.js +32 -32
  31. package/schema/empDetectionOutput.model.js +64 -64
  32. package/schema/externalParameter.model.js +202 -202
  33. package/schema/eyetest.model.js +18 -18
  34. package/schema/fitting.model.js +52 -52
  35. package/schema/group.model.js +36 -36
  36. package/schema/hotjar.model.js +11 -11
  37. package/schema/infraReason.model.js +44 -44
  38. package/schema/internalAuth.model.js +36 -36
  39. package/schema/invoice.model.js +106 -106
  40. package/schema/ipLogs.model.js +39 -39
  41. package/schema/lead.model.js +78 -78
  42. package/schema/lenskartEmployeeMapping.model.js +63 -63
  43. package/schema/liveConnection.model.js +43 -0
  44. package/schema/locusOrder.model.js +154 -154
  45. package/schema/locusOrderUser.model.js +14 -14
  46. package/schema/lowcountReason.model.js +44 -44
  47. package/schema/mailOnlyuser.model.js +44 -44
  48. package/schema/matLog.model.js +26 -26
  49. package/schema/otp.model.js +27 -27
  50. package/schema/paymentAccount.model.js +60 -60
  51. package/schema/processedchecklist.js +188 -188
  52. package/schema/processedchecklistconfig.js +105 -105
  53. package/schema/processeddetection.js +85 -85
  54. package/schema/quality.model.js +57 -57
  55. package/schema/report.model.js +30 -30
  56. package/schema/standaredRole.model.js +76 -76
  57. package/schema/store.model.js +325 -325
  58. package/schema/storeAudit.model.js +62 -62
  59. package/schema/storeEmpDetection.model.js +62 -62
  60. package/schema/tagging.model.js +44 -44
  61. package/schema/tangoTicket.model.js +210 -210
  62. package/schema/teams.model.js +48 -48
  63. package/schema/transaction.model.js +54 -54
  64. package/schema/traxAuditData.model.js +61 -61
  65. package/schema/user.model.js +121 -121
  66. package/schema/userAssignedStore.model.js +41 -41
  67. package/schema/userAudit.model.js +77 -77
  68. package/schema/userEmpDetection.model.js +81 -81
  69. package/schema/workstation.model.js +77 -77
@@ -1,41 +1,41 @@
1
- import mongoose from 'mongoose';
2
- import mongooseUniqueValidator from 'mongoose-unique-validator'
3
-
4
- const clientRequestSchema = new mongoose.Schema(
5
- {
6
- clientId: {
7
- type:String
8
- },
9
- user:{
10
- type:mongoose.SchemaTypes.ObjectId
11
- },
12
- name:{
13
- type:String
14
- },
15
- reason:{
16
- type:String
17
- },
18
- description:{
19
- type:String
20
- },
21
- category:{
22
- type:String
23
- },
24
- status:{
25
- type:String,
26
- enum: [ 'pending','completed' ],
27
- },
28
- markasRead:{
29
- type:Boolean,
30
- default:false
31
- }
32
- },
33
- {
34
- strict: true,
35
- versionKey: false,
36
- timestamps: true,
37
- },
38
- );
39
-
40
- clientRequestSchema.plugin(mongooseUniqueValidator);
1
+ import mongoose from 'mongoose';
2
+ import mongooseUniqueValidator from 'mongoose-unique-validator'
3
+
4
+ const clientRequestSchema = new mongoose.Schema(
5
+ {
6
+ clientId: {
7
+ type:String
8
+ },
9
+ user:{
10
+ type:mongoose.SchemaTypes.ObjectId
11
+ },
12
+ name:{
13
+ type:String
14
+ },
15
+ reason:{
16
+ type:String
17
+ },
18
+ description:{
19
+ type:String
20
+ },
21
+ category:{
22
+ type:String
23
+ },
24
+ status:{
25
+ type:String,
26
+ enum: [ 'pending','completed' ],
27
+ },
28
+ markasRead:{
29
+ type:Boolean,
30
+ default:false
31
+ }
32
+ },
33
+ {
34
+ strict: true,
35
+ versionKey: false,
36
+ timestamps: true,
37
+ },
38
+ );
39
+
40
+ clientRequestSchema.plugin(mongooseUniqueValidator);
41
41
  export default mongoose.model('clientRequest', clientRequestSchema)
@@ -1,69 +1,69 @@
1
- import mongoose from 'mongoose'
2
- import mongooseUniqueValidator from 'mongoose-unique-validator'
3
-
4
- let clusterSchema = new mongoose.Schema(
5
- {
6
- clientId: {
7
- type: String
8
- },
9
- clusterName: {
10
- type: String
11
- },
12
- description: {
13
- type: String
14
- },
15
- teams:[
16
- {
17
- name: {
18
- type: String,
19
- },
20
- teamId: {
21
- type: mongoose.Types.ObjectId
22
- }
23
- }
24
- ],
25
- stores: [
26
- {
27
- storeId: {
28
- type: String,
29
- },
30
- store: {
31
- type: mongoose.Types.ObjectId
32
- }
33
- }
34
- ],
35
- Teamlead: [
36
- {
37
- email: {
38
- type: String,
39
- },
40
- userId: {
41
- type: mongoose.Types.ObjectId
42
- }
43
- }
44
- ],
45
- users: [
46
- {
47
- email: {
48
- type: String,
49
- },
50
- userId: {
51
- type: mongoose.Types.ObjectId
52
- }
53
- }
54
- ],
55
- status: {
56
- type: String,
57
- default:"active"
58
- },
59
-
60
- },
61
- {
62
- strict: true,
63
- versionKey: false,
64
- timestamps: true,
65
- }
66
- )
67
-
68
- clusterSchema.plugin(mongooseUniqueValidator);
1
+ import mongoose from 'mongoose'
2
+ import mongooseUniqueValidator from 'mongoose-unique-validator'
3
+
4
+ let clusterSchema = new mongoose.Schema(
5
+ {
6
+ clientId: {
7
+ type: String
8
+ },
9
+ clusterName: {
10
+ type: String
11
+ },
12
+ description: {
13
+ type: String
14
+ },
15
+ teams:[
16
+ {
17
+ name: {
18
+ type: String,
19
+ },
20
+ teamId: {
21
+ type: mongoose.Types.ObjectId
22
+ }
23
+ }
24
+ ],
25
+ stores: [
26
+ {
27
+ storeId: {
28
+ type: String,
29
+ },
30
+ store: {
31
+ type: mongoose.Types.ObjectId
32
+ }
33
+ }
34
+ ],
35
+ Teamlead: [
36
+ {
37
+ email: {
38
+ type: String,
39
+ },
40
+ userId: {
41
+ type: mongoose.Types.ObjectId
42
+ }
43
+ }
44
+ ],
45
+ users: [
46
+ {
47
+ email: {
48
+ type: String,
49
+ },
50
+ userId: {
51
+ type: mongoose.Types.ObjectId
52
+ }
53
+ }
54
+ ],
55
+ status: {
56
+ type: String,
57
+ default:"active"
58
+ },
59
+
60
+ },
61
+ {
62
+ strict: true,
63
+ versionKey: false,
64
+ timestamps: true,
65
+ }
66
+ )
67
+
68
+ clusterSchema.plugin(mongooseUniqueValidator);
69
69
  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,28 +1,28 @@
1
- import mongoose from 'mongoose';
2
- import mongooseUniqueValidator from 'mongoose-unique-validator';
3
-
4
- const countryCodes = new mongoose.Schema(
5
- {
6
- countryName: {
7
- type: String,
8
- required: true,
9
- unique: true,
10
- },
11
- countryAlpha2Code: {
12
- type: String,
13
- required: true,
14
- },
15
- countryCode: {
16
- type: String,
17
- required: true,
18
- },
19
- },
20
- {
21
- strict: true,
22
- versionKey: false,
23
- timestamps: true,
24
- },
25
- );
26
-
27
- countryCodes.plugin( mongooseUniqueValidator );
28
- export default mongoose.model( 'countryCodes', countryCodes , 'countryCodes');
1
+ import mongoose from 'mongoose';
2
+ import mongooseUniqueValidator from 'mongoose-unique-validator';
3
+
4
+ const countryCodes = new mongoose.Schema(
5
+ {
6
+ countryName: {
7
+ type: String,
8
+ required: true,
9
+ unique: true,
10
+ },
11
+ countryAlpha2Code: {
12
+ type: String,
13
+ required: true,
14
+ },
15
+ countryCode: {
16
+ type: String,
17
+ required: true,
18
+ },
19
+ },
20
+ {
21
+ strict: true,
22
+ versionKey: false,
23
+ timestamps: true,
24
+ },
25
+ );
26
+
27
+ countryCodes.plugin( mongooseUniqueValidator );
28
+ export default mongoose.model( 'countryCodes', countryCodes , 'countryCodes');
@@ -1,89 +1,89 @@
1
- import mongoose from 'mongoose'
2
- import mongooseUniqueValidator from 'mongoose-unique-validator'
3
-
4
- let pricingSchema = new mongoose.Schema(
5
- {
6
- clientId: {
7
- type:String
8
- },
9
- stores: [
10
- {
11
- storeId: {
12
- type: String,
13
- },
14
- store:{
15
- type:mongoose.Types.ObjectId
16
- },
17
- storeName:{
18
- type:String
19
- },
20
- status:{
21
- type:String
22
- },
23
- firstFile: {
24
- type:Boolean
25
- },
26
- edgefirstFileDate:{
27
- type:Date
28
- },
29
- date: {
30
- type:Date
31
- },
32
- processfirstFileDate:{
33
- type:Date
34
- },
35
- daysDifference:{
36
- type:Number
37
- },
38
- camera:{
39
- type:Array
40
- },
41
- cameraCount:{
42
- type:Number
43
- },
44
- products: [
45
- {
46
- productName: {
47
- type: String,
48
- },
49
- storeRange:{
50
- type:String
51
- },
52
- workingdays:{
53
- type:Number
54
- }
55
- }
56
- ]
57
- }
58
- ],
59
- accountType:{
60
- type:String
61
- },
62
- status:{
63
- type:String
64
- },
65
- activeStores:{
66
- type:Number
67
- },
68
- brandName:{
69
- type:String
70
- },
71
- proRate:{
72
- type:String
73
- },
74
- dateString:{
75
- type:String
76
- },
77
- dateISO:{
78
- type:Date
79
- }
80
- },
81
- {
82
- strict: true,
83
- versionKey: false,
84
- timestamps: true,
85
- }
86
- )
87
-
88
- pricingSchema.plugin(mongooseUniqueValidator);
1
+ import mongoose from 'mongoose'
2
+ import mongooseUniqueValidator from 'mongoose-unique-validator'
3
+
4
+ let pricingSchema = new mongoose.Schema(
5
+ {
6
+ clientId: {
7
+ type:String
8
+ },
9
+ stores: [
10
+ {
11
+ storeId: {
12
+ type: String,
13
+ },
14
+ store:{
15
+ type:mongoose.Types.ObjectId
16
+ },
17
+ storeName:{
18
+ type:String
19
+ },
20
+ status:{
21
+ type:String
22
+ },
23
+ firstFile: {
24
+ type:Boolean
25
+ },
26
+ edgefirstFileDate:{
27
+ type:Date
28
+ },
29
+ date: {
30
+ type:Date
31
+ },
32
+ processfirstFileDate:{
33
+ type:Date
34
+ },
35
+ daysDifference:{
36
+ type:Number
37
+ },
38
+ camera:{
39
+ type:Array
40
+ },
41
+ cameraCount:{
42
+ type:Number
43
+ },
44
+ products: [
45
+ {
46
+ productName: {
47
+ type: String,
48
+ },
49
+ storeRange:{
50
+ type:String
51
+ },
52
+ workingdays:{
53
+ type:Number
54
+ }
55
+ }
56
+ ]
57
+ }
58
+ ],
59
+ accountType:{
60
+ type:String
61
+ },
62
+ status:{
63
+ type:String
64
+ },
65
+ activeStores:{
66
+ type:Number
67
+ },
68
+ brandName:{
69
+ type:String
70
+ },
71
+ proRate:{
72
+ type:String
73
+ },
74
+ dateString:{
75
+ type:String
76
+ },
77
+ dateISO:{
78
+ type:Date
79
+ }
80
+ },
81
+ {
82
+ strict: true,
83
+ versionKey: false,
84
+ timestamps: true,
85
+ }
86
+ )
87
+
88
+ pricingSchema.plugin(mongooseUniqueValidator);
89
89
  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);