tango-api-schema 2.2.131 → 2.2.132

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/package.json +1 -1
  2. package/schema/aiTicketConfig.js +42 -42
  3. package/schema/appVersion.js +36 -36
  4. package/schema/applicationDefault.model.js +24 -24
  5. package/schema/assignAudit.model.js +55 -55
  6. package/schema/auditLogs.model.js +77 -77
  7. package/schema/auditStoreData.model.js +56 -56
  8. package/schema/auditUserWallet.model.js +98 -98
  9. package/schema/auditUsers.model.js +53 -53
  10. package/schema/authentication.model.js +27 -27
  11. package/schema/basePricing.model.js +28 -28
  12. package/schema/billing.model.js +99 -99
  13. package/schema/checklistquestionconfig.js +150 -150
  14. package/schema/client.model.js +4 -0
  15. package/schema/clientRequest.model.js +38 -38
  16. package/schema/cluster.model.js +70 -70
  17. package/schema/controlCenterTemplateList.model.js +39 -39
  18. package/schema/countryCodes.model.js +26 -26
  19. package/schema/dailyPricing.model.js +86 -86
  20. package/schema/dataMismatchDraft.model.js +22 -22
  21. package/schema/domain.js +18 -18
  22. package/schema/edgeAppVersion.model.js +33 -33
  23. package/schema/edgeappAuth.model.js +30 -30
  24. package/schema/empDetectionOutput.model.js +67 -67
  25. package/schema/externalParameter.model.js +241 -241
  26. package/schema/eyetest.model.js +18 -18
  27. package/schema/fitting.model.js +52 -52
  28. package/schema/group.model.js +34 -34
  29. package/schema/hotjar.model.js +11 -11
  30. package/schema/infraReason.model.js +44 -44
  31. package/schema/internalAuth.model.js +35 -35
  32. package/schema/invoice.model.js +104 -104
  33. package/schema/ipLogs.model.js +37 -37
  34. package/schema/lead.model.js +76 -76
  35. package/schema/lenskartEmployeeMapping.model.js +63 -63
  36. package/schema/locusOrder.model.js +154 -154
  37. package/schema/locusOrderUser.model.js +14 -14
  38. package/schema/lowcountReason.model.js +44 -44
  39. package/schema/mailOnlyuser.model.js +42 -42
  40. package/schema/matLog.model.js +26 -26
  41. package/schema/nobBilling.model.js +41 -41
  42. package/schema/otp.model.js +25 -25
  43. package/schema/paymentAccount.model.js +60 -60
  44. package/schema/planoCompliance.model.js +62 -62
  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 +76 -76
  49. package/schema/storeAudit.model.js +62 -62
  50. package/schema/storeEmpDetection.model.js +62 -62
  51. package/schema/tagging.model.js +42 -42
  52. package/schema/tangoTicket.model.js +210 -210
  53. package/schema/taskQuestion.model.js +46 -46
  54. package/schema/teams.model.js +46 -46
  55. package/schema/transaction.model.js +54 -54
  56. package/schema/traxApprover.model.js +35 -35
  57. package/schema/traxAuditData.model.js +64 -64
  58. package/schema/userAssignedStore.model.js +41 -41
  59. package/schema/userAudit.model.js +77 -77
  60. package/schema/userEmpDetection.model.js +83 -83
  61. package/schema/workstation.model.js +75 -75
@@ -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);
@@ -1,33 +1,33 @@
1
- import mongoose from 'mongoose';
2
-
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
-
33
- export default mongoose.model( 'edgeappVersion', edgeAppVersion, 'edgeappVersion' );
1
+ import mongoose from 'mongoose';
2
+
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
+
33
+ export default mongoose.model( 'edgeappVersion', edgeAppVersion, 'edgeappVersion' );
@@ -1,31 +1,31 @@
1
- import mongoose from "mongoose";
2
-
3
- const edgeappAuth = new mongoose.Schema(
4
- {
5
- token: {
6
- type: String,
7
- trim: true,
8
- unique: true,
9
- required: true,
10
- },
11
- type: {
12
- type: String,
13
- enum: ["edgeappAuth-token"],
14
- default: "edgeappAuth-token",
15
- },
16
- storeId: {
17
- type: String,
18
- trim: true,
19
- },
20
- },
21
- {
22
- strict: true,
23
- versionKey: false,
24
- timestamps: true,
25
- }
26
- );
27
-
28
- edgeappAuth.index( { createdAt: 1 }, { expires: '1d' })
29
- edgeappAuth.index( { storeId: 1 })
30
-
1
+ import mongoose from "mongoose";
2
+
3
+ const edgeappAuth = new mongoose.Schema(
4
+ {
5
+ token: {
6
+ type: String,
7
+ trim: true,
8
+ unique: true,
9
+ required: true,
10
+ },
11
+ type: {
12
+ type: String,
13
+ enum: ["edgeappAuth-token"],
14
+ default: "edgeappAuth-token",
15
+ },
16
+ storeId: {
17
+ type: String,
18
+ trim: true,
19
+ },
20
+ },
21
+ {
22
+ strict: true,
23
+ versionKey: false,
24
+ timestamps: true,
25
+ }
26
+ );
27
+
28
+ edgeappAuth.index( { createdAt: 1 }, { expires: '1d' })
29
+ edgeappAuth.index( { storeId: 1 })
30
+
31
31
  export default mongoose.model( 'edgeappAuth', edgeappAuth,'edgeappAuth' );
@@ -1,67 +1,67 @@
1
- /**
2
- * @name api_emp_detection_output
3
- */
4
-
5
- // NPM Modules
6
- import mongoose from 'mongoose';
7
-
8
- // Schema
9
- const empDetectionOutputSchema = 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:["mobile-detection", "uniform-detection", "hygiene","open-time","close-time"]
25
- },
26
- totalCount: {
27
- type: Number,
28
- },
29
- auditId: {
30
- type: String,
31
- },
32
- auditType: {
33
- type: String,
34
- },
35
- fileDate: {
36
- type: String,
37
- },
38
-
39
- junkCount: {
40
- type: Number,
41
- },
42
- junk: {
43
- type: Array,
44
- },
45
- employeeCount: {
46
- type: Number,
47
- },
48
- employee: {
49
- type: Array,
50
- }
51
- },
52
- {
53
- timestamps: true,
54
- strict: true,
55
- versionKey: false,
56
- } );
57
-
58
- empDetectionOutputSchema.index({
59
- storeId: 1,
60
- clientId: 1,
61
- userId: 1,
62
- moduleType: 1,
63
- fileDate: 1
64
- });
65
-
66
- export default mongoose.model( 'empDetectionOutput', empDetectionOutputSchema, 'empDetectionOutput' );
67
-
1
+ /**
2
+ * @name api_emp_detection_output
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const empDetectionOutputSchema = 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:["mobile-detection", "uniform-detection", "hygiene","open-time","close-time"]
25
+ },
26
+ totalCount: {
27
+ type: Number,
28
+ },
29
+ auditId: {
30
+ type: String,
31
+ },
32
+ auditType: {
33
+ type: String,
34
+ },
35
+ fileDate: {
36
+ type: String,
37
+ },
38
+
39
+ junkCount: {
40
+ type: Number,
41
+ },
42
+ junk: {
43
+ type: Array,
44
+ },
45
+ employeeCount: {
46
+ type: Number,
47
+ },
48
+ employee: {
49
+ type: Array,
50
+ }
51
+ },
52
+ {
53
+ timestamps: true,
54
+ strict: true,
55
+ versionKey: false,
56
+ } );
57
+
58
+ empDetectionOutputSchema.index({
59
+ storeId: 1,
60
+ clientId: 1,
61
+ userId: 1,
62
+ moduleType: 1,
63
+ fileDate: 1
64
+ });
65
+
66
+ export default mongoose.model( 'empDetectionOutput', empDetectionOutputSchema, 'empDetectionOutput' );
67
+