tango-api-schema 2.0.149 → 2.0.150

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/auditLogs.model.js +72 -72
  6. package/schema/auditStoreData.model.js +48 -48
  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 +479 -476
  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 +75 -75
  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 +314 -314
  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 +51 -51
  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
  40. package/schema/assignZoneAudit.model.js +0 -51
  41. package/schema/auditClientData.model.js +0 -59
  42. package/schema/storeZoneAudit.model.js +0 -57
@@ -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,75 +1,75 @@
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
- },
67
- {
68
- strict: true,
69
- versionKey: false,
70
- timestamps: true,
71
- },
72
- );
73
-
74
- lead.plugin( mongooseUniqueValidator );
75
- 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
+ },
67
+ {
68
+ strict: true,
69
+ versionKey: false,
70
+ timestamps: true,
71
+ },
72
+ );
73
+
74
+ lead.plugin( mongooseUniqueValidator );
75
+ export default mongoose.model( 'lead', lead );
@@ -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
 
@@ -1,28 +1,28 @@
1
- import uniqueValidator from 'mongoose-unique-validator';
2
- import mongoose from 'mongoose';
3
-
4
- // schema
5
- const collection = new mongoose.Schema( {
6
- email: {
7
- type: String,
8
- trim: true,
9
- },
10
- otp: {
11
- type: Number,
12
- },
13
- type: {
14
- type: String,
15
- enum: [ 'signup' , 'changepassword'],
16
- },
17
- },
18
- {
19
- timestamps: true,
20
- strict: true,
21
- versionKey: false,
22
- } );
23
-
24
- collection.plugin( uniqueValidator );
25
- collection.index( { createdAt: 1 }, { expires: '1d' } );
26
- collection.index( { type: 1, email: 1 } );
27
-
1
+ import uniqueValidator from 'mongoose-unique-validator';
2
+ import mongoose from 'mongoose';
3
+
4
+ // schema
5
+ const collection = new mongoose.Schema( {
6
+ email: {
7
+ type: String,
8
+ trim: true,
9
+ },
10
+ otp: {
11
+ type: Number,
12
+ },
13
+ type: {
14
+ type: String,
15
+ enum: [ 'signup' , 'changepassword'],
16
+ },
17
+ },
18
+ {
19
+ timestamps: true,
20
+ strict: true,
21
+ versionKey: false,
22
+ } );
23
+
24
+ collection.plugin( uniqueValidator );
25
+ collection.index( { createdAt: 1 }, { expires: '1d' } );
26
+ collection.index( { type: 1, email: 1 } );
27
+
28
28
  export default mongoose.model( 'otp', collection );