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,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,59 +1,59 @@
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
- stores: [
16
- {
17
- storeId: {
18
- type: String,
19
- },
20
- store: {
21
- type: mongoose.Types.ObjectId
22
- }
23
- }
24
- ],
25
- Teamlead: [
26
- {
27
- email: {
28
- type: String,
29
- },
30
- userId: {
31
- type: mongoose.Types.ObjectId
32
- }
33
- }
34
- ],
35
- users: [
36
- {
37
- email: {
38
- type: String,
39
- },
40
- userId: {
41
- type: mongoose.Types.ObjectId
42
- }
43
- }
44
- ],
45
- status: {
46
- type: String,
47
- default:"active"
48
- },
49
-
50
- },
51
- {
52
- strict: true,
53
- versionKey: false,
54
- timestamps: true,
55
- }
56
- )
57
-
58
- 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
+ stores: [
16
+ {
17
+ storeId: {
18
+ type: String,
19
+ },
20
+ store: {
21
+ type: mongoose.Types.ObjectId
22
+ }
23
+ }
24
+ ],
25
+ Teamlead: [
26
+ {
27
+ email: {
28
+ type: String,
29
+ },
30
+ userId: {
31
+ type: mongoose.Types.ObjectId
32
+ }
33
+ }
34
+ ],
35
+ users: [
36
+ {
37
+ email: {
38
+ type: String,
39
+ },
40
+ userId: {
41
+ type: mongoose.Types.ObjectId
42
+ }
43
+ }
44
+ ],
45
+ status: {
46
+ type: String,
47
+ default:"active"
48
+ },
49
+
50
+ },
51
+ {
52
+ strict: true,
53
+ versionKey: false,
54
+ timestamps: true,
55
+ }
56
+ )
57
+
58
+ clusterSchema.plugin(mongooseUniqueValidator);
59
59
  export default mongoose.model('cluster', clusterSchema);
@@ -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);
@@ -1,33 +1,33 @@
1
- import mongoose from 'mongoose';
2
- import mongooseUniqueValidator from 'mongoose-unique-validator';
3
-
4
- const edgeAppVersion = new mongoose.Schema(
5
- {
6
- appVersion: {
7
- type: String,
8
- unique: true,
9
- },
10
- isActive: {
11
- type: Boolean,
12
- default: true,
13
- },
14
- isDefault: {
15
- type: Boolean,
16
- },
17
- exeName:{
18
- type: String,
19
- },
20
- version:{
21
- type: String,
22
- unique: true,
23
- }
24
- },
25
- {
26
- strict: true,
27
- versionKey: false,
28
- timestamps: true,
29
- },
30
- );
31
-
32
- edgeAppVersion.plugin( mongooseUniqueValidator );
33
- export default mongoose.model( 'edgeappVersion', edgeAppVersion, 'edgeappVersion' );
1
+ import mongoose from 'mongoose';
2
+ import mongooseUniqueValidator from 'mongoose-unique-validator';
3
+
4
+ const edgeAppVersion = new mongoose.Schema(
5
+ {
6
+ appVersion: {
7
+ type: String,
8
+ unique: true,
9
+ },
10
+ isActive: {
11
+ type: Boolean,
12
+ default: true,
13
+ },
14
+ isDefault: {
15
+ type: Boolean,
16
+ },
17
+ exeName:{
18
+ type: String,
19
+ },
20
+ version:{
21
+ type: String,
22
+ unique: true,
23
+ }
24
+ },
25
+ {
26
+ strict: true,
27
+ versionKey: false,
28
+ timestamps: true,
29
+ },
30
+ );
31
+
32
+ edgeAppVersion.plugin( mongooseUniqueValidator );
33
+ export default mongoose.model( 'edgeappVersion', edgeAppVersion, 'edgeappVersion' );
@@ -1,33 +1,33 @@
1
- import mongoose from "mongoose";
2
- import uniqueValidator from "mongoose-unique-validator";
3
-
4
- const edgeappAuth = new mongoose.Schema(
5
- {
6
- token: {
7
- type: String,
8
- trim: true,
9
- unique: true,
10
- required: true,
11
- },
12
- type: {
13
- type: String,
14
- enum: ["edgeappAuth-token"],
15
- default: "edgeappAuth-token",
16
- },
17
- storeId: {
18
- type: String,
19
- trim: true,
20
- },
21
- },
22
- {
23
- strict: true,
24
- versionKey: false,
25
- timestamps: true,
26
- }
27
- );
28
-
29
- edgeappAuth.plugin(uniqueValidator)
30
- edgeappAuth.index( { createdAt: 1 }, { expires: '1d' })
31
- edgeappAuth.index( { storeId: 1 })
32
-
1
+ import mongoose from "mongoose";
2
+ import uniqueValidator from "mongoose-unique-validator";
3
+
4
+ const edgeappAuth = new mongoose.Schema(
5
+ {
6
+ token: {
7
+ type: String,
8
+ trim: true,
9
+ unique: true,
10
+ required: true,
11
+ },
12
+ type: {
13
+ type: String,
14
+ enum: ["edgeappAuth-token"],
15
+ default: "edgeappAuth-token",
16
+ },
17
+ storeId: {
18
+ type: String,
19
+ trim: true,
20
+ },
21
+ },
22
+ {
23
+ strict: true,
24
+ versionKey: false,
25
+ timestamps: true,
26
+ }
27
+ );
28
+
29
+ edgeappAuth.plugin(uniqueValidator)
30
+ edgeappAuth.index( { createdAt: 1 }, { expires: '1d' })
31
+ edgeappAuth.index( { storeId: 1 })
32
+
33
33
  export default mongoose.model( 'edgeappAuth', edgeappAuth,'edgeappAuth' );