tango-api-schema 2.0.136 → 2.0.138

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 (40) hide show
  1. package/index.js +78 -76
  2. package/package.json +27 -27
  3. package/schema/applicationDefault.model.js +24 -24
  4. package/schema/assignAudit.model.js +48 -48
  5. package/schema/auditClientData.model.js +45 -45
  6. package/schema/auditLogs.model.js +65 -65
  7. package/schema/auditStoreData.model.js +48 -48
  8. package/schema/authentication.model.js +27 -27
  9. package/schema/basePricing.model.js +29 -29
  10. package/schema/billing.model.js +99 -99
  11. package/schema/camera.model.js +146 -146
  12. package/schema/client.model.js +465 -465
  13. package/schema/clientRequest.model.js +40 -40
  14. package/schema/countryCodes.model.js +28 -28
  15. package/schema/dailyPricing.model.js +88 -88
  16. package/schema/edgeAppVersion.model.js +33 -33
  17. package/schema/edgeappAuth.model.js +32 -32
  18. package/schema/externalParameter.model.js +202 -202
  19. package/schema/fitting.model.js +52 -52
  20. package/schema/group.model.js +36 -36
  21. package/schema/infraReason.model.js +44 -44
  22. package/schema/internalAuth.model.js +36 -36
  23. package/schema/invoice.model.js +89 -89
  24. package/schema/ipLogs.model.js +39 -39
  25. package/schema/lead.model.js +75 -75
  26. package/schema/matLog.model.js +26 -26
  27. package/schema/otp.model.js +27 -27
  28. package/schema/paymentAccount.model.js +52 -52
  29. package/schema/quality.model.js +57 -57
  30. package/schema/report.model.js +30 -30
  31. package/schema/standaredRole.model.js +56 -56
  32. package/schema/store.model.js +314 -300
  33. package/schema/storeAudit.model.js +54 -54
  34. package/schema/tagging.model.js +38 -38
  35. package/schema/tangoTicket.model.js +210 -210
  36. package/schema/transaction.model.js +52 -0
  37. package/schema/user.model.js +95 -95
  38. package/schema/userAssignedStore.model.js +41 -41
  39. package/schema/userAudit.model.js +69 -69
  40. package/schema/workstation.model.js +77 -77
@@ -1,95 +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
- 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
+ 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,69 +1,69 @@
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
- },
62
- {
63
- timestamps: true,
64
- strict: true,
65
- versionKey: false,
66
- } );
67
-
68
-
69
- 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
+ },
62
+ {
63
+ timestamps: true,
64
+ strict: true,
65
+ versionKey: false,
66
+ } );
67
+
68
+
69
+ 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);