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,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,90 +1,90 @@
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
- revisedAmount:{
46
- type:Number
47
- },
48
- discount:{
49
- type:Number
50
- },
51
- paymentMethod:{
52
- type:String
53
- },
54
- status:{
55
- type:String
56
- },
57
- receivedAmount:{
58
- type:Number
59
- },
60
- billingDate:{
61
- type:Date
62
- },
63
- dueDate:{
64
- type:Date
65
- },
66
- paidDate:{
67
- type:Date
68
- },
69
- paymentType: {
70
- type:String,
71
- enum: ['online','banktransfer']
72
- },
73
- paymentReferenceId: {
74
- type:String
75
- },
76
- fromDate:{
77
- type:Date
78
- },
79
- toDate:{
80
- type:Date
81
- },
82
- },{
83
- strict: true,
84
- versionKey: false,
85
- timestamps: true,
86
- }
87
- )
88
-
89
- 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
+ revisedAmount:{
46
+ type:Number
47
+ },
48
+ discount:{
49
+ type:Number
50
+ },
51
+ paymentMethod:{
52
+ type:String
53
+ },
54
+ status:{
55
+ type:String
56
+ },
57
+ receivedAmount:{
58
+ type:Number
59
+ },
60
+ billingDate:{
61
+ type:Date
62
+ },
63
+ dueDate:{
64
+ type:Date
65
+ },
66
+ paidDate:{
67
+ type:Date
68
+ },
69
+ paymentType: {
70
+ type:String,
71
+ enum: ['online','banktransfer']
72
+ },
73
+ paymentReferenceId: {
74
+ type:String
75
+ },
76
+ fromDate:{
77
+ type:Date
78
+ },
79
+ toDate:{
80
+ type:Date
81
+ },
82
+ },{
83
+ strict: true,
84
+ versionKey: false,
85
+ timestamps: true,
86
+ }
87
+ )
88
+
89
+ invoiceSchema.plugin(mongooseUniqueValidator);
90
90
  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 );