tango-api-schema 2.1.47 → 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,78 +1,78 @@
1
- import mongoose from 'mongoose';
2
- import mongooseUniqueValidator from 'mongoose-unique-validator';
3
-
4
- const lead = new mongoose.Schema(
5
- {
6
- clientName: {
7
- type: String,
8
- trim: true,
9
- required: true,
10
- unique: true,
11
- },
12
- firstName: {
13
- type: String,
14
- required: true,
15
- },
16
- lastName: {
17
- type: String,
18
- },
19
- corporateEmail: {
20
- type: String,
21
- required: true,
22
- unique: true,
23
- },
24
- countryCode: {
25
- type: String,
26
- },
27
- mobileNumber: {
28
- type: Number,
29
- required: true,
30
- },
31
- planDetails: {
32
- totalStores: {
33
- type: String,
34
- required: true,
35
- },
36
- storeSize: {
37
- type: String,
38
- required: true,
39
- },
40
- totalCamera: {
41
- type: Number,
42
- required: true,
43
- },
44
- subscriptionPeriod: {
45
- type: String,
46
- enum: [ 'monthly', 'quarterly', 'annual' ],
47
- },
48
- subscriptionType: {
49
- type: String,
50
- enum: [ 'free', 'premium', 'enterprise' ],
51
- },
52
- product: {
53
- type: Array,
54
- },
55
-
56
- },
57
- status: {
58
- type: String,
59
- enum: [ 'pending', 'rejected', 'approved' ],
60
- default: 'pending',
61
- },
62
- DeletedStatus:{
63
- type:Boolean,
64
- default:false
65
- },
66
- websiteUrl: {
67
- type: String,
68
- },
69
- },
70
- {
71
- strict: true,
72
- versionKey: false,
73
- timestamps: true,
74
- },
75
- );
76
-
77
- lead.plugin( mongooseUniqueValidator );
78
- export default mongoose.model( 'lead', lead );
1
+ import mongoose from 'mongoose';
2
+ import mongooseUniqueValidator from 'mongoose-unique-validator';
3
+
4
+ const lead = new mongoose.Schema(
5
+ {
6
+ clientName: {
7
+ type: String,
8
+ trim: true,
9
+ required: true,
10
+ unique: true,
11
+ },
12
+ firstName: {
13
+ type: String,
14
+ required: true,
15
+ },
16
+ lastName: {
17
+ type: String,
18
+ },
19
+ corporateEmail: {
20
+ type: String,
21
+ required: true,
22
+ unique: true,
23
+ },
24
+ countryCode: {
25
+ type: String,
26
+ },
27
+ mobileNumber: {
28
+ type: Number,
29
+ required: true,
30
+ },
31
+ planDetails: {
32
+ totalStores: {
33
+ type: String,
34
+ required: true,
35
+ },
36
+ storeSize: {
37
+ type: String,
38
+ required: true,
39
+ },
40
+ totalCamera: {
41
+ type: Number,
42
+ required: true,
43
+ },
44
+ subscriptionPeriod: {
45
+ type: String,
46
+ enum: [ 'monthly', 'quarterly', 'annual' ],
47
+ },
48
+ subscriptionType: {
49
+ type: String,
50
+ enum: [ 'free', 'premium', 'enterprise' ],
51
+ },
52
+ product: {
53
+ type: Array,
54
+ },
55
+
56
+ },
57
+ status: {
58
+ type: String,
59
+ enum: [ 'pending', 'rejected', 'approved' ],
60
+ default: 'pending',
61
+ },
62
+ DeletedStatus:{
63
+ type:Boolean,
64
+ default:false
65
+ },
66
+ websiteUrl: {
67
+ type: String,
68
+ },
69
+ },
70
+ {
71
+ strict: true,
72
+ versionKey: false,
73
+ timestamps: true,
74
+ },
75
+ );
76
+
77
+ lead.plugin( mongooseUniqueValidator );
78
+ export default mongoose.model( 'lead', lead );
@@ -1,45 +1,45 @@
1
- import mongoose from 'mongoose';
2
-
3
- const lowcountReasons = new mongoose.Schema(
4
- {
5
- name: {
6
- type: String,
7
- },
8
- parentId: {
9
- type: mongoose.Types.ObjectId
10
- },
11
- parentName: {
12
- type: String
13
- },
14
- order: {
15
- type: Number
16
- },
17
- toolTips: [
18
- {
19
- name: {
20
- type: String
21
- },
22
- order: {
23
- type: Number
24
- },
25
- }
26
- ],
27
- stepstoResolve: [{
28
- name: {
29
- type: String
30
- },
31
- order: {
32
- type: Number
33
- },
34
- }
35
- ],
36
- },
37
- {
38
- strict: true,
39
- versionKey: false,
40
- timestamps: true,
41
- },
42
- );
43
-
44
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const lowcountReasons = new mongoose.Schema(
4
+ {
5
+ name: {
6
+ type: String,
7
+ },
8
+ parentId: {
9
+ type: mongoose.Types.ObjectId
10
+ },
11
+ parentName: {
12
+ type: String
13
+ },
14
+ order: {
15
+ type: Number
16
+ },
17
+ toolTips: [
18
+ {
19
+ name: {
20
+ type: String
21
+ },
22
+ order: {
23
+ type: Number
24
+ },
25
+ }
26
+ ],
27
+ stepstoResolve: [{
28
+ name: {
29
+ type: String
30
+ },
31
+ order: {
32
+ type: Number
33
+ },
34
+ }
35
+ ],
36
+ },
37
+ {
38
+ strict: true,
39
+ versionKey: false,
40
+ timestamps: true,
41
+ },
42
+ );
43
+
44
+
45
45
  export default mongoose.model('lowcountReasons', lowcountReasons, 'lowcountReasons');
@@ -1,45 +1,45 @@
1
- import uniqueValidator from 'mongoose-unique-validator';
2
- import mongoose from 'mongoose';
3
-
4
- // schema
5
- const collection = new mongoose.Schema( {
6
- email: {
7
- type: String,
8
- unique: true,
9
- required:true
10
- },
11
- clientId:{
12
- type: String,
13
- trim: true,
14
- required:true
15
- },
16
- name: {
17
- type: String,
18
- },
19
- stores:{
20
- type:Array
21
- },
22
- groups:{
23
- type:Array
24
- },
25
- emailAlert:{
26
- infra:{
27
- type:Boolean,
28
- }
29
- },
30
- status: {
31
- type: String,
32
- enum: [ 'active' , 'deactive'],
33
- default:"active"
34
- },
35
- },
36
- {
37
- timestamps: true,
38
- strict: true,
39
- versionKey: false,
40
- } );
41
-
42
- collection.plugin( uniqueValidator );
43
- collection.index( { email: 1} );
44
-
1
+ import uniqueValidator from 'mongoose-unique-validator';
2
+ import mongoose from 'mongoose';
3
+
4
+ // schema
5
+ const collection = new mongoose.Schema( {
6
+ email: {
7
+ type: String,
8
+ unique: true,
9
+ required:true
10
+ },
11
+ clientId:{
12
+ type: String,
13
+ trim: true,
14
+ required:true
15
+ },
16
+ name: {
17
+ type: String,
18
+ },
19
+ stores:{
20
+ type:Array
21
+ },
22
+ groups:{
23
+ type:Array
24
+ },
25
+ emailAlert:{
26
+ infra:{
27
+ type:Boolean,
28
+ }
29
+ },
30
+ status: {
31
+ type: String,
32
+ enum: [ 'active' , 'deactive'],
33
+ default:"active"
34
+ },
35
+ },
36
+ {
37
+ timestamps: true,
38
+ strict: true,
39
+ versionKey: false,
40
+ } );
41
+
42
+ collection.plugin( uniqueValidator );
43
+ collection.index( { email: 1} );
44
+
45
45
  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,28 +1,28 @@
1
- import uniqueValidator from 'mongoose-unique-validator';
2
- import mongoose from 'mongoose';
3
-
4
- // schema
5
- const collection = new mongoose.Schema( {
6
- email: {
7
- type: String,
8
- trim: true,
9
- },
10
- otp: {
11
- type: Number,
12
- },
13
- type: {
14
- type: String,
15
- enum: [ 'signup' , 'changepassword'],
16
- },
17
- },
18
- {
19
- timestamps: true,
20
- strict: true,
21
- versionKey: false,
22
- } );
23
-
24
- collection.plugin( uniqueValidator );
25
- collection.index( { createdAt: 1 }, { expires: '1d' } );
26
- collection.index( { type: 1, email: 1 } );
27
-
1
+ import uniqueValidator from 'mongoose-unique-validator';
2
+ import mongoose from 'mongoose';
3
+
4
+ // schema
5
+ const collection = new mongoose.Schema( {
6
+ email: {
7
+ type: String,
8
+ trim: true,
9
+ },
10
+ otp: {
11
+ type: Number,
12
+ },
13
+ type: {
14
+ type: String,
15
+ enum: [ 'signup' , 'changepassword'],
16
+ },
17
+ },
18
+ {
19
+ timestamps: true,
20
+ strict: true,
21
+ versionKey: false,
22
+ } );
23
+
24
+ collection.plugin( uniqueValidator );
25
+ collection.index( { createdAt: 1 }, { expires: '1d' } );
26
+ collection.index( { type: 1, email: 1 } );
27
+
28
28
  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);