tango-api-schema 2.1.13 → 2.1.14

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 (47) hide show
  1. package/index.js +93 -91
  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 -55
  7. package/schema/auditUserWallet.model.js +68 -68
  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/binaryAudit.model.js +84 -84
  12. package/schema/camera.model.js +146 -146
  13. package/schema/client.model.js +514 -514
  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/dataMismatchDraft.model.js +22 -22
  18. package/schema/edgeAppVersion.model.js +33 -33
  19. package/schema/edgeappAuth.model.js +32 -32
  20. package/schema/externalParameter.model.js +202 -202
  21. package/schema/eyetest.model.js +18 -0
  22. package/schema/fitting.model.js +52 -52
  23. package/schema/group.model.js +36 -36
  24. package/schema/infraReason.model.js +44 -44
  25. package/schema/internalAuth.model.js +36 -36
  26. package/schema/invoice.model.js +106 -106
  27. package/schema/ipLogs.model.js +39 -39
  28. package/schema/lead.model.js +78 -78
  29. package/schema/lowcountReason.model.js +44 -44
  30. package/schema/matLog.model.js +26 -26
  31. package/schema/otp.model.js +27 -27
  32. package/schema/paymentAccount.model.js +60 -60
  33. package/schema/quality.model.js +57 -57
  34. package/schema/report.model.js +30 -30
  35. package/schema/standaredRole.model.js +56 -56
  36. package/schema/store.model.js +321 -321
  37. package/schema/storeAudit.model.js +61 -61
  38. package/schema/storeEmpDetection.model.js +61 -61
  39. package/schema/tagging.model.js +44 -44
  40. package/schema/tangoTicket.model.js +210 -210
  41. package/schema/transaction.model.js +54 -54
  42. package/schema/traxAuditData.model.js +60 -60
  43. package/schema/user.model.js +95 -95
  44. package/schema/userAssignedStore.model.js +41 -41
  45. package/schema/userAudit.model.js +76 -76
  46. package/schema/userEmpDetection.model.js +74 -74
  47. package/schema/workstation.model.js +77 -77
@@ -1,37 +1,37 @@
1
- import mongoose from "mongoose";
2
- import uniqueValidator from "mongoose-unique-validator";
3
-
4
- const internalAuth = new mongoose.Schema(
5
- {
6
- token: {
7
- type: String,
8
- trim: true,
9
- unique: true,
10
- required: true,
11
- },
12
- type: {
13
- type: String,
14
- enum: ["internal-token"],
15
- default: "internal-token",
16
- },
17
- ip: {
18
- type: String,
19
- trim: true,
20
- },
21
- name:{
22
- type: String,
23
- trim: true,
24
- }
25
- },
26
- {
27
- strict: true,
28
- versionKey: false,
29
- timestamps: true,
30
- }
31
- );
32
-
33
- internalAuth.plugin(uniqueValidator)
34
- internalAuth.index( { createdAt: 1 }, { expires: '1d' })
35
- internalAuth.index( { name: 1 })
36
-
1
+ import mongoose from "mongoose";
2
+ import uniqueValidator from "mongoose-unique-validator";
3
+
4
+ const internalAuth = new mongoose.Schema(
5
+ {
6
+ token: {
7
+ type: String,
8
+ trim: true,
9
+ unique: true,
10
+ required: true,
11
+ },
12
+ type: {
13
+ type: String,
14
+ enum: ["internal-token"],
15
+ default: "internal-token",
16
+ },
17
+ ip: {
18
+ type: String,
19
+ trim: true,
20
+ },
21
+ name:{
22
+ type: String,
23
+ trim: true,
24
+ }
25
+ },
26
+ {
27
+ strict: true,
28
+ versionKey: false,
29
+ timestamps: true,
30
+ }
31
+ );
32
+
33
+ internalAuth.plugin(uniqueValidator)
34
+ internalAuth.index( { createdAt: 1 }, { expires: '1d' })
35
+ internalAuth.index( { name: 1 })
36
+
37
37
  export default mongoose.model( 'internalAuth', internalAuth,'internalAuth' );
@@ -1,107 +1,107 @@
1
- import mongoose from 'mongoose';
2
- import mongooseUniqueValidator from 'mongoose-unique-validator';
3
-
4
- const invoiceSchema = new mongoose.Schema(
5
- {
6
- clientId: {
7
- type:String
8
- },
9
- invoice: {
10
- type:String,
11
- },
12
- invoiceIndex: {
13
- type:String,
14
- },
15
- stores: {
16
- type:Number
17
- },
18
- companyName:{
19
- type:String,
20
- },
21
- monthOfbilling:{
22
- type:String,
23
- },
24
- companyAddress:{
25
- type:String,
26
- },
27
- PlaceOfSupply: {
28
- type:String,
29
- },
30
- GSTNumber: {
31
- type:String,
32
- },
33
- products:{
34
- type:Array
35
- },
36
- tax:{
37
- type:Array
38
- },
39
- amount:{
40
- type:Number
41
- },
42
- totalAmount:{
43
- type:Number
44
- },
45
- paymentMethod:{
46
- type:String
47
- },
48
- status:{
49
- type:String
50
- },
51
- receivedAmount:{
52
- type:Number
53
- },
54
- billingDate:{
55
- type:Date
56
- },
57
- dueDate:{
58
- type:Date
59
- },
60
- paidDate:{
61
- type:Date
62
- },
63
- paymentType: {
64
- type:String,
65
- enum: ['online','banktransfer']
66
- },
67
- paymentReferenceId: {
68
- type:String
69
- },
70
- fromDate:{
71
- type:Date
72
- },
73
- toDate:{
74
- type:Date
75
- },
76
- currency: {
77
- type:String
78
- },
79
- orderId: {
80
- type:String
81
- },
82
- groupName: {
83
- type:String
84
- },
85
- groupId: {
86
- type:String
87
- },
88
- discountAmount: {
89
- type:Number
90
- },
91
- discountPercentage: {
92
- type:Number
93
- },
94
- paymentStatus:{
95
- type:String,
96
- default:'unpaid',
97
- enum: ['paid','unpaid']
98
- },
99
- },{
100
- strict: true,
101
- versionKey: false,
102
- timestamps: true,
103
- }
104
- )
105
-
106
- invoiceSchema.plugin(mongooseUniqueValidator);
1
+ import mongoose from 'mongoose';
2
+ import mongooseUniqueValidator from 'mongoose-unique-validator';
3
+
4
+ const invoiceSchema = new mongoose.Schema(
5
+ {
6
+ clientId: {
7
+ type:String
8
+ },
9
+ invoice: {
10
+ type:String,
11
+ },
12
+ invoiceIndex: {
13
+ type:String,
14
+ },
15
+ stores: {
16
+ type:Number
17
+ },
18
+ companyName:{
19
+ type:String,
20
+ },
21
+ monthOfbilling:{
22
+ type:String,
23
+ },
24
+ companyAddress:{
25
+ type:String,
26
+ },
27
+ PlaceOfSupply: {
28
+ type:String,
29
+ },
30
+ GSTNumber: {
31
+ type:String,
32
+ },
33
+ products:{
34
+ type:Array
35
+ },
36
+ tax:{
37
+ type:Array
38
+ },
39
+ amount:{
40
+ type:Number
41
+ },
42
+ totalAmount:{
43
+ type:Number
44
+ },
45
+ paymentMethod:{
46
+ type:String
47
+ },
48
+ status:{
49
+ type:String
50
+ },
51
+ receivedAmount:{
52
+ type:Number
53
+ },
54
+ billingDate:{
55
+ type:Date
56
+ },
57
+ dueDate:{
58
+ type:Date
59
+ },
60
+ paidDate:{
61
+ type:Date
62
+ },
63
+ paymentType: {
64
+ type:String,
65
+ enum: ['online','banktransfer']
66
+ },
67
+ paymentReferenceId: {
68
+ type:String
69
+ },
70
+ fromDate:{
71
+ type:Date
72
+ },
73
+ toDate:{
74
+ type:Date
75
+ },
76
+ currency: {
77
+ type:String
78
+ },
79
+ orderId: {
80
+ type:String
81
+ },
82
+ groupName: {
83
+ type:String
84
+ },
85
+ groupId: {
86
+ type:String
87
+ },
88
+ discountAmount: {
89
+ type:Number
90
+ },
91
+ discountPercentage: {
92
+ type:Number
93
+ },
94
+ paymentStatus:{
95
+ type:String,
96
+ default:'unpaid',
97
+ enum: ['paid','unpaid']
98
+ },
99
+ },{
100
+ strict: true,
101
+ versionKey: false,
102
+ timestamps: true,
103
+ }
104
+ )
105
+
106
+ invoiceSchema.plugin(mongooseUniqueValidator);
107
107
  export default mongoose.model('invoice', invoiceSchema);
@@ -1,40 +1,40 @@
1
- import mongoose from 'mongoose';
2
- import uniqueValidator from 'mongoose-unique-validator';
3
- const collection = new mongoose.Schema(
4
- {
5
- ipDetails: [
6
- {
7
- ip: {
8
- type: String,
9
- trim: true,
10
- },
11
- manufacturer: {
12
- type: String,
13
- trim: true,
14
- },
15
- macId: {
16
- type: String,
17
- trim: true,
18
- },
19
- },
20
- ],
21
- storeId: {
22
- type: String,
23
- trim: true,
24
- },
25
- clientId: {
26
- type: String,
27
- trim: true,
28
- },
29
- },
30
- {
31
- timestamps: true,
32
- versionKey: false,
33
- strict: true,
34
- },
35
- );
36
- collection.index( { createdAt: 1 }, { expires: '1d' } );
37
- collection.index( { storeId: 1 } );
38
- collection.plugin( uniqueValidator );
39
-
1
+ import mongoose from 'mongoose';
2
+ import uniqueValidator from 'mongoose-unique-validator';
3
+ const collection = new mongoose.Schema(
4
+ {
5
+ ipDetails: [
6
+ {
7
+ ip: {
8
+ type: String,
9
+ trim: true,
10
+ },
11
+ manufacturer: {
12
+ type: String,
13
+ trim: true,
14
+ },
15
+ macId: {
16
+ type: String,
17
+ trim: true,
18
+ },
19
+ },
20
+ ],
21
+ storeId: {
22
+ type: String,
23
+ trim: true,
24
+ },
25
+ clientId: {
26
+ type: String,
27
+ trim: true,
28
+ },
29
+ },
30
+ {
31
+ timestamps: true,
32
+ versionKey: false,
33
+ strict: true,
34
+ },
35
+ );
36
+ collection.index( { createdAt: 1 }, { expires: '1d' } );
37
+ collection.index( { storeId: 1 } );
38
+ collection.plugin( uniqueValidator );
39
+
40
40
  export default mongoose.model( 'ipLog', collection, 'ipLog' );
@@ -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,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