tango-api-schema 2.0.142 → 2.0.144

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 -82
  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/assignZoneAudit.model.js +51 -51
  6. package/schema/auditClientData.model.js +45 -45
  7. package/schema/auditLogs.model.js +65 -65
  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 +473 -465
  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 +107 -107
  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 +52 -52
  30. package/schema/quality.model.js +57 -57
  31. package/schema/report.model.js +30 -30
  32. package/schema/standaredRole.model.js +56 -56
  33. package/schema/store.model.js +314 -314
  34. package/schema/storeAudit.model.js +54 -54
  35. package/schema/{userZoneAudit.model.js → storeZoneAudit.model.js} +57 -72
  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 -95
  40. package/schema/userAssignedStore.model.js +41 -41
  41. package/schema/userAudit.model.js +76 -69
  42. package/schema/workstation.model.js +77 -77
package/index.js CHANGED
@@ -1,83 +1,81 @@
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 auditClientDataModel from "./schema/auditClientData.model.js";
34
- import auditLogsModel from "./schema/auditLogs.model.js";
35
- import internalAuthModel from "./schema/internalAuth.model.js";
36
- import paymentAccountModel from "./schema/paymentAccount.model.js";
37
- import externalParameterModel from "./schema/externalParameter.model.js";
38
- import userZoneAuditSchemaModel from './schema/userZoneAudit.model.js'
39
- import transactionModel from "./schema/transaction.model.js";
40
- import assignZoneAuditModel from "./schema/assignZoneAudit.model.js";
41
-
42
- export default {
43
- leadModel,
44
- otpModel,
45
- storeModel,
46
- countryCodesModel,
47
- clientModel,
48
- tangoTicketModel,
49
- ipLogModel,
50
- userModel,
51
- edgeAppVersionModel,
52
- applicationDefaultModel,
53
- cameraModel,
54
- reportModel,
55
- standaredRoleModel,
56
- infraReasonModel,
57
- groupModel,
58
- authenticationModel,
59
- userAssignedStoreModel,
60
- edgeappAuthModel,
61
- clientRequestModel,
62
- basePricingModel,
63
- invoiceModel,
64
- workstationModel,
65
- dailyPricingModel,
66
- fittingModel,
67
- qualityCheckModel,
68
- taggingModel,
69
- userAuditModel,
70
- storeAuditModel,
71
- assignAuditModel,
72
- auditStoreDataModel,
73
- auditClientDataModel,
74
- matLogModel,
75
- billingModel,
76
- auditLogsModel,
77
- internalAuthModel,
78
- paymentAccountModel,
79
- externalParameterModel,
80
- userZoneAuditSchemaModel,
81
- transactionModel,
82
- assignZoneAuditModel
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 auditClientDataModel from "./schema/auditClientData.model.js";
34
+ import auditLogsModel from "./schema/auditLogs.model.js";
35
+ import internalAuthModel from "./schema/internalAuth.model.js";
36
+ import paymentAccountModel from "./schema/paymentAccount.model.js";
37
+ import externalParameterModel from "./schema/externalParameter.model.js";
38
+ import transactionModel from "./schema/transaction.model.js";
39
+ import assignZoneAuditModel from "./schema/assignZoneAudit.model.js";
40
+
41
+ export default {
42
+ leadModel,
43
+ otpModel,
44
+ storeModel,
45
+ countryCodesModel,
46
+ clientModel,
47
+ tangoTicketModel,
48
+ ipLogModel,
49
+ userModel,
50
+ edgeAppVersionModel,
51
+ applicationDefaultModel,
52
+ cameraModel,
53
+ reportModel,
54
+ standaredRoleModel,
55
+ infraReasonModel,
56
+ groupModel,
57
+ authenticationModel,
58
+ userAssignedStoreModel,
59
+ edgeappAuthModel,
60
+ clientRequestModel,
61
+ basePricingModel,
62
+ invoiceModel,
63
+ workstationModel,
64
+ dailyPricingModel,
65
+ fittingModel,
66
+ qualityCheckModel,
67
+ taggingModel,
68
+ userAuditModel,
69
+ storeAuditModel,
70
+ assignAuditModel,
71
+ auditStoreDataModel,
72
+ auditClientDataModel,
73
+ matLogModel,
74
+ billingModel,
75
+ auditLogsModel,
76
+ internalAuthModel,
77
+ paymentAccountModel,
78
+ externalParameterModel,
79
+ transactionModel,
80
+ assignZoneAuditModel
83
81
  };
package/package.json CHANGED
@@ -1,27 +1,27 @@
1
- {
2
- "name": "tango-api-schema",
3
- "version": "2.0.142",
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.144",
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,48 +1,48 @@
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
- auditType: {
17
- type: String,
18
- },
19
- fileDate: {
20
- type: String,
21
- },
22
- fileDateISO: {
23
- type: Date,
24
- },
25
- fileCount: {
26
- type: Number,
27
- },
28
- userId: {
29
- type: mongoose.Schema.Types.ObjectId,
30
- },
31
- queueName: {
32
- type: String,
33
- },
34
- isCompleted: {
35
- type: Boolean,
36
- default: false,
37
- }
38
- },
39
- {
40
- timestamps: true,
41
- strict: true,
42
- versionKey: false,
43
- expires: '6h',
44
- },
45
- );
46
-
47
-
48
- 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
+ auditType: {
17
+ type: String,
18
+ },
19
+ fileDate: {
20
+ type: String,
21
+ },
22
+ fileDateISO: {
23
+ type: Date,
24
+ },
25
+ fileCount: {
26
+ type: Number,
27
+ },
28
+ userId: {
29
+ type: mongoose.Schema.Types.ObjectId,
30
+ },
31
+ queueName: {
32
+ type: String,
33
+ },
34
+ isCompleted: {
35
+ type: Boolean,
36
+ default: false,
37
+ }
38
+ },
39
+ {
40
+ timestamps: true,
41
+ strict: true,
42
+ versionKey: false,
43
+ expires: '6h',
44
+ },
45
+ );
46
+
47
+
48
+ export default mongoose.model( 'assignAudit', assignAudit, 'assignAudit' );
@@ -1,51 +1,51 @@
1
- /**
2
- * @name api_audit
3
- */
4
-
5
- // NPM Modules
6
- import mongoose from 'mongoose';
7
-
8
- // Schema
9
- const assignZoneAuditModel = new mongoose.Schema( {
10
- storeId: {
11
- type: String,
12
- },
13
- clientId: {
14
- type: String,
15
- },
16
- auditType: {
17
- type: String,
18
- },
19
- zoneName:{
20
- type: String,
21
- },
22
- fileDate: {
23
- type: String,
24
- },
25
- fileDateISO: {
26
- type: Date,
27
- },
28
- fileCount: {
29
- type: Number,
30
- },
31
- userId: {
32
- type: mongoose.Schema.Types.ObjectId,
33
- },
34
- queueName: {
35
- type: String,
36
- },
37
- isCompleted: {
38
- type: Boolean,
39
- default: false,
40
- }
41
- },
42
- {
43
- timestamps: true,
44
- strict: true,
45
- versionKey: false,
46
- expires: '6h',
47
- },
48
- );
49
-
50
-
51
- export default mongoose.model( 'assignZoneAudit', assignZoneAuditModel, 'assignZoneAudit' );
1
+ /**
2
+ * @name api_audit
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const assignZoneAuditModel = new mongoose.Schema( {
10
+ storeId: {
11
+ type: String,
12
+ },
13
+ clientId: {
14
+ type: String,
15
+ },
16
+ auditType: {
17
+ type: String,
18
+ },
19
+ zoneName:{
20
+ type: String,
21
+ },
22
+ fileDate: {
23
+ type: String,
24
+ },
25
+ fileDateISO: {
26
+ type: Date,
27
+ },
28
+ fileCount: {
29
+ type: Number,
30
+ },
31
+ userId: {
32
+ type: mongoose.Schema.Types.ObjectId,
33
+ },
34
+ queueName: {
35
+ type: String,
36
+ },
37
+ isCompleted: {
38
+ type: Boolean,
39
+ default: false,
40
+ }
41
+ },
42
+ {
43
+ timestamps: true,
44
+ strict: true,
45
+ versionKey: false,
46
+ expires: '6h',
47
+ },
48
+ );
49
+
50
+
51
+ export default mongoose.model( 'assignZoneAudit', assignZoneAuditModel, 'assignZoneAudit' );
@@ -1,45 +1,45 @@
1
- /**
2
- * @name api_audit
3
- */
4
-
5
- // NPM Modules
6
- import mongoose from 'mongoose';
7
-
8
- // Schema
9
- const auditClientData = new mongoose.Schema( {
10
-
11
- clientId: {
12
- type: String,
13
- },
14
- clientName: {
15
- type: String,
16
- trim:true
17
- },
18
- fileDate: {
19
- type: String,
20
- },
21
- fileDateISO: {
22
- type: Date,
23
- },
24
- queueName: {
25
- type: String,
26
- trim:true
27
- },
28
- installedStore: {
29
- type: Number,
30
- },
31
- totalFilesCount: {
32
- type: Number,
33
- },
34
- storeList:{
35
- type:Array
36
- },
37
- },
38
- {
39
- timestamps: true,
40
- strict: true,
41
- versionKey: false,
42
- } );
43
-
44
-
45
- export default mongoose.model( 'auditClientData', auditClientData, 'auditClientData' );
1
+ /**
2
+ * @name api_audit
3
+ */
4
+
5
+ // NPM Modules
6
+ import mongoose from 'mongoose';
7
+
8
+ // Schema
9
+ const auditClientData = new mongoose.Schema( {
10
+
11
+ clientId: {
12
+ type: String,
13
+ },
14
+ clientName: {
15
+ type: String,
16
+ trim:true
17
+ },
18
+ fileDate: {
19
+ type: String,
20
+ },
21
+ fileDateISO: {
22
+ type: Date,
23
+ },
24
+ queueName: {
25
+ type: String,
26
+ trim:true
27
+ },
28
+ installedStore: {
29
+ type: Number,
30
+ },
31
+ totalFilesCount: {
32
+ type: Number,
33
+ },
34
+ storeList:{
35
+ type:Array
36
+ },
37
+ },
38
+ {
39
+ timestamps: true,
40
+ strict: true,
41
+ versionKey: false,
42
+ } );
43
+
44
+
45
+ export default mongoose.model( 'auditClientData', auditClientData, 'auditClientData' );