tango-api-schema 2.0.148-hotfix-dev → 2.0.149

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 (42) hide show
  1. package/index.js +80 -80
  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/assignZoneAudit.model.js +51 -51
  6. package/schema/auditClientData.model.js +59 -59
  7. package/schema/auditLogs.model.js +72 -72
  8. package/schema/auditStoreData.model.js +48 -48
  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/camera.model.js +146 -146
  13. package/schema/client.model.js +476 -476
  14. package/schema/clientRequest.model.js +40 -40
  15. package/schema/countryCodes.model.js +28 -28
  16. package/schema/dailyPricing.model.js +88 -88
  17. package/schema/edgeAppVersion.model.js +33 -33
  18. package/schema/edgeappAuth.model.js +32 -32
  19. package/schema/externalParameter.model.js +202 -202
  20. package/schema/fitting.model.js +52 -52
  21. package/schema/group.model.js +36 -36
  22. package/schema/infraReason.model.js +44 -44
  23. package/schema/internalAuth.model.js +36 -36
  24. package/schema/invoice.model.js +106 -106
  25. package/schema/ipLogs.model.js +39 -39
  26. package/schema/lead.model.js +75 -75
  27. package/schema/matLog.model.js +26 -26
  28. package/schema/otp.model.js +27 -27
  29. package/schema/paymentAccount.model.js +60 -60
  30. package/schema/quality.model.js +57 -57
  31. package/schema/report.model.js +30 -30
  32. package/schema/standaredRole.model.js +56 -63
  33. package/schema/store.model.js +314 -314
  34. package/schema/storeAudit.model.js +61 -54
  35. package/schema/storeZoneAudit.model.js +57 -57
  36. package/schema/tagging.model.js +38 -38
  37. package/schema/tangoTicket.model.js +210 -210
  38. package/schema/transaction.model.js +51 -51
  39. package/schema/user.model.js +95 -97
  40. package/schema/userAssignedStore.model.js +41 -41
  41. package/schema/userAudit.model.js +76 -76
  42. package/schema/workstation.model.js +77 -77
@@ -1,97 +1,95 @@
1
- import mongoose from 'mongoose';
2
- import mongooseUniqueValidator from 'mongoose-unique-validator';
3
-
4
- const user = new mongoose.Schema(
5
- {
6
- userName: {
7
- type: String,
8
- },
9
- email: {
10
- type: String,
11
- required: true,
12
- unique: true,
13
- },
14
- userProfile:{
15
- type:String
16
- },
17
- countryCode: {
18
- type: String,
19
- },
20
- mobileNumber: {
21
- type: String,
22
- required: true,
23
- },
24
- clientId: {
25
- type: String,
26
- },
27
- role: {
28
- type: String,
29
- default: 'user',
30
- },
31
- isActive: {
32
- type: Boolean,
33
- default: true,
34
- },
35
- // permission: [
36
- // {
37
- // featureName: {
38
- // type: String,
39
- // },
40
- // product: [
41
- // {
42
- // name: {
43
- // type: String,
44
- // },
45
- // isView: {
46
- // type: Boolean,
47
- // },
48
- // isEdit: {
49
- // type: Boolean,
50
- // },
51
- // isDownload: {
52
- // type: Boolean,
53
- // },
54
- // isDelete: {
55
- // type: Boolean,
56
- // },
57
- // },
58
- // ],
59
- // },
60
- // ],
61
- userType:{
62
- type: String,
63
- enum:['tango','client','lead']
64
- },
65
- password: {
66
- type: String
67
- },
68
- refreshToken:{
69
- type: String
70
- },
71
- twoFactorAuthentication : {
72
- code: {
73
- type: String
74
- },
75
- isEnable : {
76
- type: Boolean
77
- }
78
- },
79
- emailAlert: {
80
- infra: {
81
- type: Boolean,
82
- default: false
83
- }
84
- },
85
- roleId:{
86
- type:mongoose.Types.ObjectId
87
- },
88
- },
89
- {
90
- strict: true,
91
- versionKey: false,
92
- timestamps: true,
93
- },
94
- );
95
-
96
- user.plugin( mongooseUniqueValidator );
97
- export default mongoose.model( 'user', user );
1
+ import mongoose from 'mongoose';
2
+ import mongooseUniqueValidator from 'mongoose-unique-validator';
3
+
4
+ const user = new mongoose.Schema(
5
+ {
6
+ userName: {
7
+ type: String,
8
+ },
9
+ email: {
10
+ type: String,
11
+ required: true,
12
+ unique: true,
13
+ },
14
+ userProfile:{
15
+ type:String
16
+ },
17
+ countryCode: {
18
+ type: String,
19
+ },
20
+ mobileNumber: {
21
+ type: String,
22
+ required: true,
23
+ },
24
+ clientId: {
25
+ type: String,
26
+ },
27
+ role: {
28
+ type: String,
29
+ enum: [ 'superadmin', 'admin', 'user' ],
30
+ default: 'user',
31
+ },
32
+ isActive: {
33
+ type: Boolean,
34
+ default: true,
35
+ },
36
+ permission: [
37
+ {
38
+ featureName: {
39
+ type: String,
40
+ },
41
+ product: [
42
+ {
43
+ name: {
44
+ type: String,
45
+ },
46
+ isView: {
47
+ type: Boolean,
48
+ },
49
+ isEdit: {
50
+ type: Boolean,
51
+ },
52
+ isDownload: {
53
+ type: Boolean,
54
+ },
55
+ isDelete: {
56
+ type: Boolean,
57
+ },
58
+ },
59
+ ],
60
+ },
61
+ ],
62
+ userType:{
63
+ type: String,
64
+ enum:['tango','client','lead']
65
+ },
66
+ password: {
67
+ type: String
68
+ },
69
+ refreshToken:{
70
+ type: String
71
+ },
72
+ twoFactorAuthentication : {
73
+ code: {
74
+ type: String
75
+ },
76
+ isEnable : {
77
+ type: Boolean
78
+ }
79
+ },
80
+ emailAlert: {
81
+ infra: {
82
+ type: Boolean,
83
+ default: false
84
+ }
85
+ },
86
+ },
87
+ {
88
+ strict: true,
89
+ versionKey: false,
90
+ timestamps: true,
91
+ },
92
+ );
93
+
94
+ user.plugin( mongooseUniqueValidator );
95
+ export default mongoose.model( 'user', user );
@@ -1,41 +1,41 @@
1
- import mongoose from 'mongoose';
2
-
3
-
4
- const userAssigned = new mongoose.Schema(
5
- {
6
- userEmail: {
7
- type: String,
8
- required: true,
9
- },
10
- clientId:{
11
- type: String
12
- },
13
- assignedType: {
14
- type: String,
15
- enum: [ 'store', 'group', 'client'],
16
- },
17
- assignedValue: {
18
- type: String
19
- },
20
- userType:{
21
- type: String,
22
- enum:['tango','client']
23
- },
24
- tangoUserType: {
25
- type: String,
26
- enum: ['user', 'csm'],
27
- default: 'user'
28
- },
29
- isClientApproved: {
30
- type: Boolean,
31
- default: false
32
- },
33
- },
34
- {
35
- strict: true,
36
- versionKey: false,
37
- timestamps: true,
38
- },
39
- );
40
-
41
- export default mongoose.model( 'userAssignedStore', userAssigned ,'userAssignedStore');
1
+ import mongoose from 'mongoose';
2
+
3
+
4
+ const userAssigned = new mongoose.Schema(
5
+ {
6
+ userEmail: {
7
+ type: String,
8
+ required: true,
9
+ },
10
+ clientId:{
11
+ type: String
12
+ },
13
+ assignedType: {
14
+ type: String,
15
+ enum: [ 'store', 'group', 'client'],
16
+ },
17
+ assignedValue: {
18
+ type: String
19
+ },
20
+ userType:{
21
+ type: String,
22
+ enum:['tango','client']
23
+ },
24
+ tangoUserType: {
25
+ type: String,
26
+ enum: ['user', 'csm'],
27
+ default: 'user'
28
+ },
29
+ isClientApproved: {
30
+ type: Boolean,
31
+ default: false
32
+ },
33
+ },
34
+ {
35
+ strict: true,
36
+ versionKey: false,
37
+ timestamps: true,
38
+ },
39
+ );
40
+
41
+ export default mongoose.model( 'userAssignedStore', userAssigned ,'userAssignedStore');
@@ -1,76 +1,76 @@
1
- /**
2
- * @name api_audit
3
- */
4
-
5
- // NPM Modules
6
- import mongoose from 'mongoose';
7
-
8
- // Schema
9
- const userAuditSchem = new mongoose.Schema( {
10
- userId: {
11
- type: mongoose.Schema.Types.ObjectId,
12
- },
13
- storeId: {
14
- type: String,
15
- },
16
- userCommands: {
17
- type: String,
18
- },
19
- isDraft: {
20
- type: Boolean,
21
- default: false,
22
- },
23
- auditType: {
24
- type: String,
25
- },
26
- fileDate: {
27
- type: String,
28
- },
29
- timeSpent: {
30
- type: Number,
31
- default: 0,
32
- },
33
- startTime: {
34
- type: Date,
35
- },
36
- auditStatus: {
37
- type: String,
38
- enum: [ 'inprogress', 'drafted', 'completed', 'skipped' ],
39
- },
40
- beforeCount: {
41
- type: Number,
42
- },
43
- afterCount: {
44
- type: Number,
45
- },
46
- clientId: {
47
- type: String,
48
- },
49
- queueName: {
50
- type: String,
51
- },
52
- endTime: {
53
- type: Date,
54
- },
55
- fileDateISO: {
56
- type: Date,
57
- },
58
- dueHour: {
59
- type: String
60
- },
61
- moduleType:{
62
- type: String,
63
- enum: [ 'traffic', 'zone', ],
64
- },
65
- zoneName:{
66
- type: String,
67
- },
68
- },
69
- {
70
- timestamps: true,
71
- strict: true,
72
- versionKey: false,
73
- } );
74
-
75
-
76
- export default mongoose.model( 'userAudit', userAuditSchem, 'userAudit' );
1
+ /**
2
+ * @name api_audit
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const userAuditSchem = new mongoose.Schema( {
10
+ userId: {
11
+ type: mongoose.Schema.Types.ObjectId,
12
+ },
13
+ storeId: {
14
+ type: String,
15
+ },
16
+ userCommands: {
17
+ type: String,
18
+ },
19
+ isDraft: {
20
+ type: Boolean,
21
+ default: false,
22
+ },
23
+ auditType: {
24
+ type: String,
25
+ },
26
+ fileDate: {
27
+ type: String,
28
+ },
29
+ timeSpent: {
30
+ type: Number,
31
+ default: 0,
32
+ },
33
+ startTime: {
34
+ type: Date,
35
+ },
36
+ auditStatus: {
37
+ type: String,
38
+ enum: [ 'inprogress', 'drafted', 'completed', 'skipped' ],
39
+ },
40
+ beforeCount: {
41
+ type: Number,
42
+ },
43
+ afterCount: {
44
+ type: Number,
45
+ },
46
+ clientId: {
47
+ type: String,
48
+ },
49
+ queueName: {
50
+ type: String,
51
+ },
52
+ endTime: {
53
+ type: Date,
54
+ },
55
+ fileDateISO: {
56
+ type: Date,
57
+ },
58
+ dueHour: {
59
+ type: String
60
+ },
61
+ moduleType:{
62
+ type: String,
63
+ enum: [ 'traffic', 'zone' ],
64
+ },
65
+ zoneName:{
66
+ type: String,
67
+ },
68
+ },
69
+ {
70
+ timestamps: true,
71
+ strict: true,
72
+ versionKey: false,
73
+ } );
74
+
75
+
76
+ export default mongoose.model( 'userAudit', userAuditSchem, 'userAudit' );
@@ -1,77 +1,77 @@
1
- import { Schema, model } from "mongoose";
2
- import mongooseUniqueValidator from "mongoose-unique-validator";
3
- const workStationModel = new Schema(
4
- {
5
- workStationId: {
6
- type: String,
7
- trim: true,
8
- required: true,
9
- unique: true,
10
- },
11
- appId: {
12
- type: String,
13
- trim: true,
14
- required: true,
15
- unique: true,
16
- },
17
- ip: {
18
- type: String,
19
- require: true,
20
- },
21
- macAddress: {
22
- type: String,
23
- require: true,
24
- },
25
- serverType: {
26
- type: Boolean,
27
- default: false,
28
- },
29
- active: {
30
- type: Boolean,
31
- default: true,
32
- },
33
- updateAppVersion: {
34
- type: String,
35
- trim: true,
36
- },
37
- appVersion: {
38
- type: String,
39
- trim: true,
40
- },
41
- architecture: {
42
- type: String,
43
- trim: true,
44
- enum: [ 'x32', 'x64' ],
45
- },
46
- triggerProcessId:{
47
- type: String,
48
- trim: true,
49
- },
50
- isRestartRequired:{
51
- type: Boolean,
52
- default: false,
53
- },
54
- deleteInterval:{
55
- type: Number,
56
- trim: true,
57
- },
58
- deleteExe:{
59
- type: Boolean,
60
- default: false,
61
- },
62
- isSocketEnable:{
63
- type: Boolean,
64
- default: false,
65
- },
66
- },
67
- {
68
- strict: true,
69
- versionKey: false,
70
- timestamps: true,
71
- }
72
- );
73
-
74
- workStationModel.index({ workStationId: 1, appId: 1 });
75
- workStationModel.plugin(mongooseUniqueValidator);
76
-
77
- export default model("workstation", workStationModel);
1
+ import { Schema, model } from "mongoose";
2
+ import mongooseUniqueValidator from "mongoose-unique-validator";
3
+ const workStationModel = new Schema(
4
+ {
5
+ workStationId: {
6
+ type: String,
7
+ trim: true,
8
+ required: true,
9
+ unique: true,
10
+ },
11
+ appId: {
12
+ type: String,
13
+ trim: true,
14
+ required: true,
15
+ unique: true,
16
+ },
17
+ ip: {
18
+ type: String,
19
+ require: true,
20
+ },
21
+ macAddress: {
22
+ type: String,
23
+ require: true,
24
+ },
25
+ serverType: {
26
+ type: Boolean,
27
+ default: false,
28
+ },
29
+ active: {
30
+ type: Boolean,
31
+ default: true,
32
+ },
33
+ updateAppVersion: {
34
+ type: String,
35
+ trim: true,
36
+ },
37
+ appVersion: {
38
+ type: String,
39
+ trim: true,
40
+ },
41
+ architecture: {
42
+ type: String,
43
+ trim: true,
44
+ enum: [ 'x32', 'x64' ],
45
+ },
46
+ triggerProcessId:{
47
+ type: String,
48
+ trim: true,
49
+ },
50
+ isRestartRequired:{
51
+ type: Boolean,
52
+ default: false,
53
+ },
54
+ deleteInterval:{
55
+ type: Number,
56
+ trim: true,
57
+ },
58
+ deleteExe:{
59
+ type: Boolean,
60
+ default: false,
61
+ },
62
+ isSocketEnable:{
63
+ type: Boolean,
64
+ default: false,
65
+ },
66
+ },
67
+ {
68
+ strict: true,
69
+ versionKey: false,
70
+ timestamps: true,
71
+ }
72
+ );
73
+
74
+ workStationModel.index({ workStationId: 1, appId: 1 });
75
+ workStationModel.plugin(mongooseUniqueValidator);
76
+
77
+ export default model("workstation", workStationModel);