tango-api-schema 2.0.156 → 2.0.157

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 (39) hide show
  1. package/index.js +76 -76
  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 +72 -72
  6. package/schema/auditStoreData.model.js +55 -54
  7. package/schema/authentication.model.js +27 -27
  8. package/schema/basePricing.model.js +29 -29
  9. package/schema/billing.model.js +99 -99
  10. package/schema/camera.model.js +146 -146
  11. package/schema/client.model.js +484 -484
  12. package/schema/clientRequest.model.js +40 -40
  13. package/schema/countryCodes.model.js +28 -28
  14. package/schema/dailyPricing.model.js +88 -88
  15. package/schema/edgeAppVersion.model.js +33 -33
  16. package/schema/edgeappAuth.model.js +32 -32
  17. package/schema/externalParameter.model.js +202 -202
  18. package/schema/fitting.model.js +52 -52
  19. package/schema/group.model.js +36 -36
  20. package/schema/infraReason.model.js +44 -44
  21. package/schema/internalAuth.model.js +36 -36
  22. package/schema/invoice.model.js +106 -106
  23. package/schema/ipLogs.model.js +39 -39
  24. package/schema/lead.model.js +78 -78
  25. package/schema/matLog.model.js +26 -26
  26. package/schema/otp.model.js +27 -27
  27. package/schema/paymentAccount.model.js +60 -60
  28. package/schema/quality.model.js +57 -57
  29. package/schema/report.model.js +30 -30
  30. package/schema/standaredRole.model.js +56 -56
  31. package/schema/store.model.js +318 -318
  32. package/schema/storeAudit.model.js +61 -61
  33. package/schema/tagging.model.js +38 -38
  34. package/schema/tangoTicket.model.js +210 -210
  35. package/schema/transaction.model.js +54 -54
  36. package/schema/user.model.js +95 -95
  37. package/schema/userAssignedStore.model.js +41 -41
  38. package/schema/userAudit.model.js +76 -76
  39. package/schema/workstation.model.js +77 -77
package/index.js CHANGED
@@ -1,77 +1,77 @@
1
- import leadModel from "./schema/lead.model.js";
2
- import otpModel from "./schema/otp.model.js";
3
- import storeModel from "./schema/store.model.js";
4
- import countryCodesModel from "./schema/countryCodes.model.js";
5
- import clientModel from "./schema/client.model.js";
6
- import tangoTicketModel from "./schema/tangoTicket.model.js";
7
- import ipLogModel from "./schema/ipLogs.model.js";
8
- import userModel from "./schema/user.model.js";
9
- import edgeAppVersionModel from "./schema/edgeAppVersion.model.js";
10
- import applicationDefaultModel from "./schema/applicationDefault.model.js";
11
- import cameraModel from "./schema/camera.model.js";
12
- import reportModel from "./schema/report.model.js";
13
- import standaredRoleModel from "./schema/standaredRole.model.js";
14
- import infraReasonModel from "./schema/infraReason.model.js";
15
- import groupModel from "./schema/group.model.js";
16
- import authenticationModel from "./schema/authentication.model.js";
17
- import userAssignedStoreModel from "./schema/userAssignedStore.model.js";
18
- import edgeappAuthModel from "./schema/edgeappAuth.model.js";
19
- import clientRequestModel from "./schema/clientRequest.model.js";
20
- import basePricingModel from "./schema/basePricing.model.js";
21
- import invoiceModel from "./schema/invoice.model.js";
22
- import workstationModel from "./schema/workstation.model.js";
23
- import dailyPricingModel from "./schema/dailyPricing.model.js";
24
- import fittingModel from "./schema/fitting.model.js";
25
- import qualityCheckModel from "./schema/quality.model.js";
26
- import taggingModel from "./schema/tagging.model.js";
27
- import userAuditModel from "./schema/userAudit.model.js";
28
- import storeAuditModel from "./schema/storeAudit.model.js";
29
- import assignAuditModel from "./schema/assignAudit.model.js";
30
- import auditStoreDataModel from "./schema/auditStoreData.model.js";
31
- import matLogModel from "./schema/matLog.model.js";
32
- import billingModel from "./schema/billing.model.js";
33
- import auditLogsModel from "./schema/auditLogs.model.js";
34
- import internalAuthModel from "./schema/internalAuth.model.js";
35
- import paymentAccountModel from "./schema/paymentAccount.model.js";
36
- import externalParameterModel from "./schema/externalParameter.model.js";
37
- import transactionModel from "./schema/transaction.model.js";
38
-
39
- export default {
40
- leadModel,
41
- otpModel,
42
- storeModel,
43
- countryCodesModel,
44
- clientModel,
45
- tangoTicketModel,
46
- ipLogModel,
47
- userModel,
48
- edgeAppVersionModel,
49
- applicationDefaultModel,
50
- cameraModel,
51
- reportModel,
52
- standaredRoleModel,
53
- infraReasonModel,
54
- groupModel,
55
- authenticationModel,
56
- userAssignedStoreModel,
57
- edgeappAuthModel,
58
- clientRequestModel,
59
- basePricingModel,
60
- invoiceModel,
61
- workstationModel,
62
- dailyPricingModel,
63
- fittingModel,
64
- qualityCheckModel,
65
- taggingModel,
66
- userAuditModel,
67
- storeAuditModel,
68
- assignAuditModel,
69
- auditStoreDataModel,
70
- matLogModel,
71
- billingModel,
72
- auditLogsModel,
73
- internalAuthModel,
74
- paymentAccountModel,
75
- externalParameterModel,
76
- transactionModel
1
+ import leadModel from "./schema/lead.model.js";
2
+ import otpModel from "./schema/otp.model.js";
3
+ import storeModel from "./schema/store.model.js";
4
+ import countryCodesModel from "./schema/countryCodes.model.js";
5
+ import clientModel from "./schema/client.model.js";
6
+ import tangoTicketModel from "./schema/tangoTicket.model.js";
7
+ import ipLogModel from "./schema/ipLogs.model.js";
8
+ import userModel from "./schema/user.model.js";
9
+ import edgeAppVersionModel from "./schema/edgeAppVersion.model.js";
10
+ import applicationDefaultModel from "./schema/applicationDefault.model.js";
11
+ import cameraModel from "./schema/camera.model.js";
12
+ import reportModel from "./schema/report.model.js";
13
+ import standaredRoleModel from "./schema/standaredRole.model.js";
14
+ import infraReasonModel from "./schema/infraReason.model.js";
15
+ import groupModel from "./schema/group.model.js";
16
+ import authenticationModel from "./schema/authentication.model.js";
17
+ import userAssignedStoreModel from "./schema/userAssignedStore.model.js";
18
+ import edgeappAuthModel from "./schema/edgeappAuth.model.js";
19
+ import clientRequestModel from "./schema/clientRequest.model.js";
20
+ import basePricingModel from "./schema/basePricing.model.js";
21
+ import invoiceModel from "./schema/invoice.model.js";
22
+ import workstationModel from "./schema/workstation.model.js";
23
+ import dailyPricingModel from "./schema/dailyPricing.model.js";
24
+ import fittingModel from "./schema/fitting.model.js";
25
+ import qualityCheckModel from "./schema/quality.model.js";
26
+ import taggingModel from "./schema/tagging.model.js";
27
+ import userAuditModel from "./schema/userAudit.model.js";
28
+ import storeAuditModel from "./schema/storeAudit.model.js";
29
+ import assignAuditModel from "./schema/assignAudit.model.js";
30
+ import auditStoreDataModel from "./schema/auditStoreData.model.js";
31
+ import matLogModel from "./schema/matLog.model.js";
32
+ import billingModel from "./schema/billing.model.js";
33
+ import auditLogsModel from "./schema/auditLogs.model.js";
34
+ import internalAuthModel from "./schema/internalAuth.model.js";
35
+ import paymentAccountModel from "./schema/paymentAccount.model.js";
36
+ import externalParameterModel from "./schema/externalParameter.model.js";
37
+ import transactionModel from "./schema/transaction.model.js";
38
+
39
+ export default {
40
+ leadModel,
41
+ otpModel,
42
+ storeModel,
43
+ countryCodesModel,
44
+ clientModel,
45
+ tangoTicketModel,
46
+ ipLogModel,
47
+ userModel,
48
+ edgeAppVersionModel,
49
+ applicationDefaultModel,
50
+ cameraModel,
51
+ reportModel,
52
+ standaredRoleModel,
53
+ infraReasonModel,
54
+ groupModel,
55
+ authenticationModel,
56
+ userAssignedStoreModel,
57
+ edgeappAuthModel,
58
+ clientRequestModel,
59
+ basePricingModel,
60
+ invoiceModel,
61
+ workstationModel,
62
+ dailyPricingModel,
63
+ fittingModel,
64
+ qualityCheckModel,
65
+ taggingModel,
66
+ userAuditModel,
67
+ storeAuditModel,
68
+ assignAuditModel,
69
+ auditStoreDataModel,
70
+ matLogModel,
71
+ billingModel,
72
+ auditLogsModel,
73
+ internalAuthModel,
74
+ paymentAccountModel,
75
+ externalParameterModel,
76
+ transactionModel
77
77
  };
package/package.json CHANGED
@@ -1,27 +1,27 @@
1
- {
2
- "name": "tango-api-schema",
3
- "version": "2.0.156",
4
- "description": "tangoEye model schema",
5
- "main": "index.js",
6
- "type": "module",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1",
9
- "start": "node index.js"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://praveen22raj@bitbucket.org/tangoeye-retail/tango-api-schema.git"
14
- },
15
- "author": "praveenraj",
16
- "license": "ISC",
17
- "bugs": {
18
- "url": "https://bitbucket.org/tangoeye-retail/tango-api-schema/issues"
19
- },
20
- "homepage": "https://bitbucket.org/tangoeye-retail/tango-api-schema#readme",
21
- "dependencies": {
22
- "express": "^4.18.2",
23
- "mongoose": "^7.5.3",
24
- "mongoose-unique-validator": "^4.0.0",
25
- "nodemon": "^3.0.1"
26
- }
27
- }
1
+ {
2
+ "name": "tango-api-schema",
3
+ "version": "2.0.157",
4
+ "description": "tangoEye model schema",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "start": "node index.js"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://praveen22raj@bitbucket.org/tangoeye-retail/tango-api-schema.git"
14
+ },
15
+ "author": "praveenraj",
16
+ "license": "ISC",
17
+ "bugs": {
18
+ "url": "https://bitbucket.org/tangoeye-retail/tango-api-schema/issues"
19
+ },
20
+ "homepage": "https://bitbucket.org/tangoeye-retail/tango-api-schema#readme",
21
+ "dependencies": {
22
+ "express": "^4.18.2",
23
+ "mongoose": "^7.5.3",
24
+ "mongoose-unique-validator": "^4.0.0",
25
+ "nodemon": "^3.0.1"
26
+ }
27
+ }
@@ -1,24 +1,24 @@
1
- import { Schema, model } from 'mongoose';
2
-
3
- const collection = new Schema(
4
- {
5
- type: {
6
- type: String,
7
- },
8
- subType: {
9
- type: String,
10
- },
11
- data: {
12
- type: Object,
13
- },
14
- active: {
15
- type: Boolean,
16
- },
17
- },
18
- {
19
- timestamps: true,
20
- strict: true,
21
- versionKey: false,
22
- } );
23
-
24
- export default model( 'applicationDefault', collection, 'applicationDefault' );
1
+ import { Schema, model } from 'mongoose';
2
+
3
+ const collection = new Schema(
4
+ {
5
+ type: {
6
+ type: String,
7
+ },
8
+ subType: {
9
+ type: String,
10
+ },
11
+ data: {
12
+ type: Object,
13
+ },
14
+ active: {
15
+ type: Boolean,
16
+ },
17
+ },
18
+ {
19
+ timestamps: true,
20
+ strict: true,
21
+ versionKey: false,
22
+ } );
23
+
24
+ export default model( 'applicationDefault', collection, 'applicationDefault' );
@@ -1,55 +1,55 @@
1
- /**
2
- * @name api_audit
3
- */
4
-
5
- // NPM Modules
6
- import mongoose from 'mongoose';
7
-
8
- // Schema
9
- const assignAudit = new mongoose.Schema( {
10
- storeId: {
11
- type: String,
12
- },
13
- clientId: {
14
- type: String,
15
- },
16
- moduleType:{
17
- type:String,
18
- enum:["traffic", "zone"]
19
- },
20
- zoneName: {
21
- type:String
22
- },
23
- auditType: {
24
- type: String,
25
- },
26
- fileDate: {
27
- type: String,
28
- },
29
- fileDateISO: {
30
- type: Date,
31
- },
32
- fileCount: {
33
- type: Number,
34
- },
35
- userId: {
36
- type: mongoose.Schema.Types.ObjectId,
37
- },
38
- queueName: {
39
- type: String,
40
- },
41
- isCompleted: {
42
- type: Boolean,
43
- default: false,
44
- }
45
- },
46
- {
47
- timestamps: true,
48
- strict: true,
49
- versionKey: false,
50
- expires: '6h',
51
- },
52
- );
53
-
54
-
55
- export default mongoose.model( 'assignAudit', assignAudit, 'assignAudit' );
1
+ /**
2
+ * @name api_audit
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const assignAudit = new mongoose.Schema( {
10
+ storeId: {
11
+ type: String,
12
+ },
13
+ clientId: {
14
+ type: String,
15
+ },
16
+ moduleType:{
17
+ type:String,
18
+ enum:["traffic", "zone"]
19
+ },
20
+ zoneName: {
21
+ type:String
22
+ },
23
+ auditType: {
24
+ type: String,
25
+ },
26
+ fileDate: {
27
+ type: String,
28
+ },
29
+ fileDateISO: {
30
+ type: Date,
31
+ },
32
+ fileCount: {
33
+ type: Number,
34
+ },
35
+ userId: {
36
+ type: mongoose.Schema.Types.ObjectId,
37
+ },
38
+ queueName: {
39
+ type: String,
40
+ },
41
+ isCompleted: {
42
+ type: Boolean,
43
+ default: false,
44
+ }
45
+ },
46
+ {
47
+ timestamps: true,
48
+ strict: true,
49
+ versionKey: false,
50
+ expires: '6h',
51
+ },
52
+ );
53
+
54
+
55
+ export default mongoose.model( 'assignAudit', assignAudit, 'assignAudit' );
@@ -1,72 +1,72 @@
1
- /**
2
- * @name api_audit_logs
3
- */
4
-
5
- // NPM Modules
6
- import mongoose from 'mongoose';
7
-
8
- // Schema
9
- const auditLogSchem = new mongoose.Schema( {
10
- userId: {
11
- type: mongoose.Schema.Types.ObjectId,
12
- },
13
- storeId: {
14
- type: String,
15
- },
16
- moduleType:{
17
- type:String,
18
- enum:["traffic", "zone"]
19
- },
20
- zoneName:{
21
- type:String
22
- },
23
- auditId: {
24
- type: String,
25
- },
26
- auditType: {
27
- type: String,
28
- },
29
- fileDate: {
30
- type: String,
31
- },
32
- queueName: {
33
- type: String,
34
- },
35
- totalCount: {
36
- type: Number,
37
- },
38
- junkCount: {
39
- type: Number,
40
- },
41
- junk: {
42
- type: Array,
43
- },
44
- employeeCount: {
45
- type: Number,
46
- },
47
- employee: {
48
- type: Array,
49
- },
50
- customerCount: {
51
- type: Number,
52
- },
53
- customer: {
54
- type: Array,
55
- },
56
- retagCount: {
57
- type: Number,
58
- },
59
- retagImage: {
60
- type: Array,
61
- }
62
- },
63
- {
64
- timestamps: true,
65
- strict: true,
66
- versionKey: false,
67
- expires: '2d',
68
- } );
69
-
70
-
71
- export default mongoose.model( 'auditLog', auditLogSchem, 'auditLog' );
72
-
1
+ /**
2
+ * @name api_audit_logs
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const auditLogSchem = new mongoose.Schema( {
10
+ userId: {
11
+ type: mongoose.Schema.Types.ObjectId,
12
+ },
13
+ storeId: {
14
+ type: String,
15
+ },
16
+ moduleType:{
17
+ type:String,
18
+ enum:["traffic", "zone"]
19
+ },
20
+ zoneName:{
21
+ type:String
22
+ },
23
+ auditId: {
24
+ type: String,
25
+ },
26
+ auditType: {
27
+ type: String,
28
+ },
29
+ fileDate: {
30
+ type: String,
31
+ },
32
+ queueName: {
33
+ type: String,
34
+ },
35
+ totalCount: {
36
+ type: Number,
37
+ },
38
+ junkCount: {
39
+ type: Number,
40
+ },
41
+ junk: {
42
+ type: Array,
43
+ },
44
+ employeeCount: {
45
+ type: Number,
46
+ },
47
+ employee: {
48
+ type: Array,
49
+ },
50
+ customerCount: {
51
+ type: Number,
52
+ },
53
+ customer: {
54
+ type: Array,
55
+ },
56
+ retagCount: {
57
+ type: Number,
58
+ },
59
+ retagImage: {
60
+ type: Array,
61
+ }
62
+ },
63
+ {
64
+ timestamps: true,
65
+ strict: true,
66
+ versionKey: false,
67
+ expires: '2d',
68
+ } );
69
+
70
+
71
+ export default mongoose.model( 'auditLog', auditLogSchem, 'auditLog' );
72
+
@@ -1,54 +1,55 @@
1
- /**
2
- * @name api_audit
3
- */
4
-
5
- // NPM Modules
6
- import mongoose from 'mongoose';
7
-
8
- // Schema
9
- const auditStoreData = new mongoose.Schema( {
10
-
11
- clientId: {
12
- type: String,
13
- },
14
- clientName: {
15
- type: String,
16
- trim:true
17
- },
18
- storeId:{
19
- type:String
20
- },
21
- moduleType:{
22
- type: String
23
- },
24
- zoneName:{
25
- type: String
26
- },
27
- fileDate: {
28
- type: String,
29
- },
30
- fileDateISO: {
31
- type: Date,
32
- },
33
- queueName: {
34
- type: String,
35
- trim:true
36
- },
37
- installedStore: {
38
- type: Number,
39
- },
40
- totalFilesCount: {
41
- type: Number,
42
- },
43
- sqs:{
44
- type:Object
45
- }
46
- },
47
- {
48
- timestamps: true,
49
- strict: true,
50
- versionKey: false,
51
- } );
52
-
53
-
54
- export default mongoose.model( 'auditStoreData', auditStoreData, 'auditStoreData' );
1
+ /**
2
+ * @name api_audit
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const auditStoreData = new mongoose.Schema( {
10
+
11
+ clientId: {
12
+ type: String,
13
+ },
14
+ clientName: {
15
+ type: String,
16
+ trim:true
17
+ },
18
+ storeId:{
19
+ type:String
20
+ },
21
+ moduleType:{
22
+ type: String,
23
+ enum:['traffic','zone']
24
+ },
25
+ zoneName:{
26
+ type: String
27
+ },
28
+ fileDate: {
29
+ type: String,
30
+ },
31
+ fileDateISO: {
32
+ type: Date,
33
+ },
34
+ queueName: {
35
+ type: String,
36
+ trim:true
37
+ },
38
+ installedStore: {
39
+ type: Number,
40
+ },
41
+ totalFilesCount: {
42
+ type: Number,
43
+ },
44
+ sqs:{
45
+ type:Object
46
+ }
47
+ },
48
+ {
49
+ timestamps: true,
50
+ strict: true,
51
+ versionKey: false,
52
+ } );
53
+
54
+
55
+ export default mongoose.model( 'auditStoreData', auditStoreData, 'auditStoreData' );
@@ -1,27 +1,27 @@
1
- import mongoose from 'mongoose';
2
-
3
- const userAuth = new mongoose.Schema(
4
- {
5
- user: {
6
- type: mongoose.Types.ObjectId,
7
- },
8
- token: {
9
- type:String
10
- },
11
- refreshToken:{
12
- type: String
13
- },
14
- type: {
15
- type: String,
16
- enum: ['retail', 'forgotpassword']
17
- }
18
- },
19
- {
20
- strict: true,
21
- versionKey: false,
22
- timestamps: true,
23
- },
24
- );
25
- userAuth.index( { createdAt: 1 }, { expires: '1d' })
26
-
27
- export default mongoose.model( 'userAuth', userAuth, 'userAuth');
1
+ import mongoose from 'mongoose';
2
+
3
+ const userAuth = new mongoose.Schema(
4
+ {
5
+ user: {
6
+ type: mongoose.Types.ObjectId,
7
+ },
8
+ token: {
9
+ type:String
10
+ },
11
+ refreshToken:{
12
+ type: String
13
+ },
14
+ type: {
15
+ type: String,
16
+ enum: ['retail', 'forgotpassword']
17
+ }
18
+ },
19
+ {
20
+ strict: true,
21
+ versionKey: false,
22
+ timestamps: true,
23
+ },
24
+ );
25
+ userAuth.index( { createdAt: 1 }, { expires: '1d' })
26
+
27
+ export default mongoose.model( 'userAuth', userAuth, 'userAuth');