tango-api-schema 2.1.71 → 2.1.73

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 -134
  2. package/package.json +25 -25
  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 +28 -28
  13. package/schema/billing.model.js +99 -99
  14. package/schema/binaryAudit.model.js +84 -84
  15. package/schema/camera.model.js +144 -144
  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 +556 -556
  21. package/schema/clientRequest.model.js +38 -38
  22. package/schema/cluster.model.js +66 -66
  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 +104 -104
  29. package/schema/edgeAppVersion.model.js +33 -33
  30. package/schema/edgeappAuth.model.js +30 -30
  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 +34 -34
  36. package/schema/hotjar.model.js +11 -11
  37. package/schema/infraReason.model.js +44 -44
  38. package/schema/internalAuth.model.js +35 -35
  39. package/schema/invoice.model.js +104 -104
  40. package/schema/ipLogs.model.js +37 -37
  41. package/schema/lead.model.js +76 -76
  42. package/schema/lenskartEmployeeMapping.model.js +63 -63
  43. package/schema/liveConnection.model.js +46 -46
  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 +42 -42
  48. package/schema/matLog.model.js +26 -26
  49. package/schema/otp.model.js +25 -25
  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 +323 -323
  58. package/schema/storeAudit.model.js +62 -62
  59. package/schema/storeEmpDetection.model.js +62 -62
  60. package/schema/tagging.model.js +42 -42
  61. package/schema/tangoTicket.model.js +210 -210
  62. package/schema/teams.model.js +46 -46
  63. package/schema/transaction.model.js +54 -54
  64. package/schema/traxAuditData.model.js +61 -61
  65. package/schema/user.model.js +120 -120
  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 +75 -75
@@ -1,43 +1,43 @@
1
- import mongoose from 'mongoose';
2
-
3
- // schema
4
- const collection = new mongoose.Schema( {
5
- email: {
6
- type: String,
7
- unique: true,
8
- required:true
9
- },
10
- clientId:{
11
- type: String,
12
- trim: true,
13
- required:true
14
- },
15
- name: {
16
- type: String,
17
- },
18
- stores:{
19
- type:Array
20
- },
21
- groups:{
22
- type:Array
23
- },
24
- emailAlert:{
25
- infra:{
26
- type:Boolean,
27
- }
28
- },
29
- status: {
30
- type: String,
31
- enum: [ 'active' , 'deactive'],
32
- default:"active"
33
- },
34
- },
35
- {
36
- timestamps: true,
37
- strict: true,
38
- versionKey: false,
39
- } );
40
-
41
- collection.index( { email: 1} );
42
-
1
+ import mongoose from 'mongoose';
2
+
3
+ // schema
4
+ const collection = new mongoose.Schema( {
5
+ email: {
6
+ type: String,
7
+ unique: true,
8
+ required:true
9
+ },
10
+ clientId:{
11
+ type: String,
12
+ trim: true,
13
+ required:true
14
+ },
15
+ name: {
16
+ type: String,
17
+ },
18
+ stores:{
19
+ type:Array
20
+ },
21
+ groups:{
22
+ type:Array
23
+ },
24
+ emailAlert:{
25
+ infra:{
26
+ type:Boolean,
27
+ }
28
+ },
29
+ status: {
30
+ type: String,
31
+ enum: [ 'active' , 'deactive'],
32
+ default:"active"
33
+ },
34
+ },
35
+ {
36
+ timestamps: true,
37
+ strict: true,
38
+ versionKey: false,
39
+ } );
40
+
41
+ collection.index( { email: 1} );
42
+
43
43
  export default mongoose.model( 'mailOnlyUser', collection );
@@ -1,27 +1,27 @@
1
- import mongoose from "mongoose";
2
-
3
- const matLogs = new mongoose.Schema(
4
- {
5
-
6
- storeId: {
7
- type: String,
8
- trim: true,
9
- },
10
- date: {
11
- type: Date,
12
- trim: true,
13
- },
14
- status: {
15
- type: String,
16
- trim: true,
17
- },
18
- clientId: {
19
- type: String,
20
- trim: true,
21
- },
22
-
23
- });
24
-
25
-
26
- export default mongoose.model("matLogs", matLogs);
1
+ import mongoose from "mongoose";
2
+
3
+ const matLogs = new mongoose.Schema(
4
+ {
5
+
6
+ storeId: {
7
+ type: String,
8
+ trim: true,
9
+ },
10
+ date: {
11
+ type: Date,
12
+ trim: true,
13
+ },
14
+ status: {
15
+ type: String,
16
+ trim: true,
17
+ },
18
+ clientId: {
19
+ type: String,
20
+ trim: true,
21
+ },
22
+
23
+ });
24
+
25
+
26
+ export default mongoose.model("matLogs", matLogs);
27
27
 
@@ -1,26 +1,26 @@
1
- import mongoose from 'mongoose';
2
-
3
- // schema
4
- const collection = new mongoose.Schema( {
5
- email: {
6
- type: String,
7
- trim: true,
8
- },
9
- otp: {
10
- type: Number,
11
- },
12
- type: {
13
- type: String,
14
- enum: [ 'signup' , 'changepassword'],
15
- },
16
- },
17
- {
18
- timestamps: true,
19
- strict: true,
20
- versionKey: false,
21
- } );
22
-
23
- collection.index( { createdAt: 1 }, { expires: '1d' } );
24
- collection.index( { type: 1, email: 1 } );
25
-
1
+ import mongoose from 'mongoose';
2
+
3
+ // schema
4
+ const collection = new mongoose.Schema( {
5
+ email: {
6
+ type: String,
7
+ trim: true,
8
+ },
9
+ otp: {
10
+ type: Number,
11
+ },
12
+ type: {
13
+ type: String,
14
+ enum: [ 'signup' , 'changepassword'],
15
+ },
16
+ },
17
+ {
18
+ timestamps: true,
19
+ strict: true,
20
+ versionKey: false,
21
+ } );
22
+
23
+ collection.index( { createdAt: 1 }, { expires: '1d' } );
24
+ collection.index( { type: 1, email: 1 } );
25
+
26
26
  export default mongoose.model( 'otp', collection );
@@ -1,61 +1,61 @@
1
- import mongoose from 'mongoose';
2
-
3
- const paymentAccountSchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type: String,
7
- required: true,
8
- unique: true,
9
- },
10
- customerId:{
11
- type: String,
12
- required: true,
13
- unique: true,
14
- },
15
- virtualAccId:{
16
- type: String,
17
- required: true,
18
- unique: true,
19
- },
20
- bankAccId:{
21
- type: String,
22
- required: true,
23
- unique: true,
24
- },
25
- accountNumber:{
26
- type: String,
27
- required: true,
28
- unique: true,
29
- },
30
- paymentType:{
31
- type: String,
32
- },
33
- status:{
34
- type: String,
35
- },
36
- ifsc: {
37
- type: String,
38
- },
39
- swiftCode:{
40
- type: String,
41
- },
42
- branch:{
43
- type: String,
44
- },
45
- credit:{
46
- type: Number,
47
- default:0
48
- },
49
- currency: {
50
- type: String,
51
- enum: [ 'dollar', 'inr' ],
52
- },
53
- },
54
- {
55
- strict: true,
56
- versionKey: false,
57
- timestamps: true,
58
- },
59
- );
60
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const paymentAccountSchema = new mongoose.Schema(
4
+ {
5
+ clientId: {
6
+ type: String,
7
+ required: true,
8
+ unique: true,
9
+ },
10
+ customerId:{
11
+ type: String,
12
+ required: true,
13
+ unique: true,
14
+ },
15
+ virtualAccId:{
16
+ type: String,
17
+ required: true,
18
+ unique: true,
19
+ },
20
+ bankAccId:{
21
+ type: String,
22
+ required: true,
23
+ unique: true,
24
+ },
25
+ accountNumber:{
26
+ type: String,
27
+ required: true,
28
+ unique: true,
29
+ },
30
+ paymentType:{
31
+ type: String,
32
+ },
33
+ status:{
34
+ type: String,
35
+ },
36
+ ifsc: {
37
+ type: String,
38
+ },
39
+ swiftCode:{
40
+ type: String,
41
+ },
42
+ branch:{
43
+ type: String,
44
+ },
45
+ credit:{
46
+ type: Number,
47
+ default:0
48
+ },
49
+ currency: {
50
+ type: String,
51
+ enum: [ 'dollar', 'inr' ],
52
+ },
53
+ },
54
+ {
55
+ strict: true,
56
+ versionKey: false,
57
+ timestamps: true,
58
+ },
59
+ );
60
+
61
61
  export default mongoose.model( 'paymentAccount', paymentAccountSchema);
@@ -1,189 +1,189 @@
1
- import mongoose from 'mongoose';
2
-
3
- const processedchecklistSchema = new mongoose.Schema({
4
- client_id: {
5
- type: String,
6
- required:true
7
- },
8
- // brandId: {
9
- // type: mongoose.SchemaTypes.ObjectId,
10
- // required:true
11
- // },
12
- date_iso: {
13
- type: Date,
14
- },
15
- date_string: {
16
- type: String,
17
- },
18
- sourceCheckList_id: {
19
- type: mongoose.SchemaTypes.ObjectId,
20
- ref: 'checklistconfig'
21
- },
22
- checkListName: {
23
- type: String,
24
- required:true
25
- },
26
- scheduleStartTime: {
27
- type: String
28
- },
29
- scheduleEndTime: {
30
- type: String
31
- },
32
- scheduleStartTime_iso: {
33
- type: Date
34
- },
35
- scheduleEndTime_iso: {
36
- type: Date
37
- },
38
- allowedOverTime: {
39
- type: Boolean,
40
- default:false
41
- },
42
- allowedStoreLocation: {
43
- type: Boolean,
44
- default:false
45
- },
46
- createdBy: {
47
- type: mongoose.SchemaTypes.ObjectId,
48
- },
49
- createdByName: {
50
- type: String,
51
- },
52
- questionAnswers: {
53
- type: Array
54
- },
55
- createdAt: {
56
- type: Date,
57
- default: Date.now
58
- },
59
- updatedAt: {
60
- type: Date,
61
- default: Date.now
62
- },
63
- isdeleted: {
64
- type: Boolean,
65
- default: false
66
- },
67
- questionCount: {
68
- type: Number,
69
- default: 0
70
- },
71
- storeCount: {
72
- type: Number,
73
- default: 0
74
- },
75
- publishDate: {
76
- type: Date,
77
- },
78
- locationCount: {
79
- type: Number
80
- },
81
- checkListType: {
82
- type: String,
83
- default: "custom",
84
- enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle"]
85
- },
86
- store_id: {
87
- type: String,
88
- // required:true,
89
- default:''
90
- },
91
- country: {
92
- type: String,
93
- required:false,
94
- default:''
95
- },
96
- storeName: {
97
- type: String,
98
- // required:true,
99
- default:''
100
- },
101
- userId: {
102
- type: mongoose.SchemaTypes.ObjectId,
103
- // required:true
104
- },
105
- userName: {
106
- type: String,
107
- // required:true
108
- },
109
- userEmail: {
110
- type: String,
111
- // required:true
112
- },
113
- checkListId: {
114
- type: mongoose.SchemaTypes.ObjectId,
115
- required:true
116
- },
117
- checklistStatus: {
118
- type: String,
119
- enum: ['open', 'inprogress', 'submit'],
120
- default: 'open'
121
- },
122
- startTime:{
123
- type: Date,
124
- },
125
- submitTime:{
126
- type: Date,
127
- },
128
- startTime_string:{
129
- type: String,
130
- },
131
- submitTime_string:{
132
- type: String,
133
- },
134
- timeFlagStatus:{
135
- type: Boolean,
136
- default: true
137
- },
138
- timeFlag:{
139
- type: Number,
140
- default: 0
141
- },
142
- questionFlag:{
143
- type: Number,
144
- default: 0
145
- },
146
- mobileDetectionFlag:{
147
- type: Number,
148
- default: 0
149
- },
150
- storeOpenCloseFlag:{
151
- type: Number,
152
- default: 0
153
- },
154
- reinitiateStatus:{
155
- type:Boolean,
156
- default: false
157
- },
158
- markasread:{
159
- type:Boolean,
160
- default:false
161
- },
162
- uniformDetectionFlag:{
163
- type: Number,
164
- default: 0
165
- },
166
- scheduleRepeatedType: {
167
- type: String,
168
- default: '',
169
- enum: ["daily", "weekly", "monthly","range","onetime","weekday",""]
170
- },
171
- startMobileTime:{
172
- type:String
173
- },
174
- submitMobileTime:{
175
- type:String
176
- },
177
- aiStoreList: {
178
- type:Array,
179
- default:[]
180
- }
181
- },
182
- {
183
- strict: true,
184
- versionKey: false,
185
- timestamps: true,
186
- },
187
- );
188
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const processedchecklistSchema = new mongoose.Schema({
4
+ client_id: {
5
+ type: String,
6
+ required:true
7
+ },
8
+ // brandId: {
9
+ // type: mongoose.SchemaTypes.ObjectId,
10
+ // required:true
11
+ // },
12
+ date_iso: {
13
+ type: Date,
14
+ },
15
+ date_string: {
16
+ type: String,
17
+ },
18
+ sourceCheckList_id: {
19
+ type: mongoose.SchemaTypes.ObjectId,
20
+ ref: 'checklistconfig'
21
+ },
22
+ checkListName: {
23
+ type: String,
24
+ required:true
25
+ },
26
+ scheduleStartTime: {
27
+ type: String
28
+ },
29
+ scheduleEndTime: {
30
+ type: String
31
+ },
32
+ scheduleStartTime_iso: {
33
+ type: Date
34
+ },
35
+ scheduleEndTime_iso: {
36
+ type: Date
37
+ },
38
+ allowedOverTime: {
39
+ type: Boolean,
40
+ default:false
41
+ },
42
+ allowedStoreLocation: {
43
+ type: Boolean,
44
+ default:false
45
+ },
46
+ createdBy: {
47
+ type: mongoose.SchemaTypes.ObjectId,
48
+ },
49
+ createdByName: {
50
+ type: String,
51
+ },
52
+ questionAnswers: {
53
+ type: Array
54
+ },
55
+ createdAt: {
56
+ type: Date,
57
+ default: Date.now
58
+ },
59
+ updatedAt: {
60
+ type: Date,
61
+ default: Date.now
62
+ },
63
+ isdeleted: {
64
+ type: Boolean,
65
+ default: false
66
+ },
67
+ questionCount: {
68
+ type: Number,
69
+ default: 0
70
+ },
71
+ storeCount: {
72
+ type: Number,
73
+ default: 0
74
+ },
75
+ publishDate: {
76
+ type: Date,
77
+ },
78
+ locationCount: {
79
+ type: Number
80
+ },
81
+ checkListType: {
82
+ type: String,
83
+ default: "custom",
84
+ enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle"]
85
+ },
86
+ store_id: {
87
+ type: String,
88
+ // required:true,
89
+ default:''
90
+ },
91
+ country: {
92
+ type: String,
93
+ required:false,
94
+ default:''
95
+ },
96
+ storeName: {
97
+ type: String,
98
+ // required:true,
99
+ default:''
100
+ },
101
+ userId: {
102
+ type: mongoose.SchemaTypes.ObjectId,
103
+ // required:true
104
+ },
105
+ userName: {
106
+ type: String,
107
+ // required:true
108
+ },
109
+ userEmail: {
110
+ type: String,
111
+ // required:true
112
+ },
113
+ checkListId: {
114
+ type: mongoose.SchemaTypes.ObjectId,
115
+ required:true
116
+ },
117
+ checklistStatus: {
118
+ type: String,
119
+ enum: ['open', 'inprogress', 'submit'],
120
+ default: 'open'
121
+ },
122
+ startTime:{
123
+ type: Date,
124
+ },
125
+ submitTime:{
126
+ type: Date,
127
+ },
128
+ startTime_string:{
129
+ type: String,
130
+ },
131
+ submitTime_string:{
132
+ type: String,
133
+ },
134
+ timeFlagStatus:{
135
+ type: Boolean,
136
+ default: true
137
+ },
138
+ timeFlag:{
139
+ type: Number,
140
+ default: 0
141
+ },
142
+ questionFlag:{
143
+ type: Number,
144
+ default: 0
145
+ },
146
+ mobileDetectionFlag:{
147
+ type: Number,
148
+ default: 0
149
+ },
150
+ storeOpenCloseFlag:{
151
+ type: Number,
152
+ default: 0
153
+ },
154
+ reinitiateStatus:{
155
+ type:Boolean,
156
+ default: false
157
+ },
158
+ markasread:{
159
+ type:Boolean,
160
+ default:false
161
+ },
162
+ uniformDetectionFlag:{
163
+ type: Number,
164
+ default: 0
165
+ },
166
+ scheduleRepeatedType: {
167
+ type: String,
168
+ default: '',
169
+ enum: ["daily", "weekly", "monthly","range","onetime","weekday",""]
170
+ },
171
+ startMobileTime:{
172
+ type:String
173
+ },
174
+ submitMobileTime:{
175
+ type:String
176
+ },
177
+ aiStoreList: {
178
+ type:Array,
179
+ default:[]
180
+ }
181
+ },
182
+ {
183
+ strict: true,
184
+ versionKey: false,
185
+ timestamps: true,
186
+ },
187
+ );
188
+
189
189
  export default mongoose.model( 'processedchecklist', processedchecklistSchema);