tango-api-schema 2.0.149 → 2.0.151

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 +76 -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,41 +1,41 @@
1
- import mongoose from 'mongoose';
2
- import mongooseUniqueValidator from 'mongoose-unique-validator'
3
-
4
- const clientRequestSchema = new mongoose.Schema(
5
- {
6
- clientId: {
7
- type:String
8
- },
9
- user:{
10
- type:mongoose.SchemaTypes.ObjectId
11
- },
12
- name:{
13
- type:String
14
- },
15
- reason:{
16
- type:String
17
- },
18
- description:{
19
- type:String
20
- },
21
- category:{
22
- type:String
23
- },
24
- status:{
25
- type:String,
26
- enum: [ 'pending','completed' ],
27
- },
28
- markasRead:{
29
- type:Boolean,
30
- default:false
31
- }
32
- },
33
- {
34
- strict: true,
35
- versionKey: false,
36
- timestamps: true,
37
- },
38
- );
39
-
40
- clientRequestSchema.plugin(mongooseUniqueValidator);
1
+ import mongoose from 'mongoose';
2
+ import mongooseUniqueValidator from 'mongoose-unique-validator'
3
+
4
+ const clientRequestSchema = new mongoose.Schema(
5
+ {
6
+ clientId: {
7
+ type:String
8
+ },
9
+ user:{
10
+ type:mongoose.SchemaTypes.ObjectId
11
+ },
12
+ name:{
13
+ type:String
14
+ },
15
+ reason:{
16
+ type:String
17
+ },
18
+ description:{
19
+ type:String
20
+ },
21
+ category:{
22
+ type:String
23
+ },
24
+ status:{
25
+ type:String,
26
+ enum: [ 'pending','completed' ],
27
+ },
28
+ markasRead:{
29
+ type:Boolean,
30
+ default:false
31
+ }
32
+ },
33
+ {
34
+ strict: true,
35
+ versionKey: false,
36
+ timestamps: true,
37
+ },
38
+ );
39
+
40
+ clientRequestSchema.plugin(mongooseUniqueValidator);
41
41
  export default mongoose.model('clientRequest', clientRequestSchema)
@@ -1,28 +1,28 @@
1
- import mongoose from 'mongoose';
2
- import mongooseUniqueValidator from 'mongoose-unique-validator';
3
-
4
- const countryCodes = new mongoose.Schema(
5
- {
6
- countryName: {
7
- type: String,
8
- required: true,
9
- unique: true,
10
- },
11
- countryAlpha2Code: {
12
- type: String,
13
- required: true,
14
- },
15
- countryCode: {
16
- type: String,
17
- required: true,
18
- },
19
- },
20
- {
21
- strict: true,
22
- versionKey: false,
23
- timestamps: true,
24
- },
25
- );
26
-
27
- countryCodes.plugin( mongooseUniqueValidator );
28
- export default mongoose.model( 'countryCodes', countryCodes , 'countryCodes');
1
+ import mongoose from 'mongoose';
2
+ import mongooseUniqueValidator from 'mongoose-unique-validator';
3
+
4
+ const countryCodes = new mongoose.Schema(
5
+ {
6
+ countryName: {
7
+ type: String,
8
+ required: true,
9
+ unique: true,
10
+ },
11
+ countryAlpha2Code: {
12
+ type: String,
13
+ required: true,
14
+ },
15
+ countryCode: {
16
+ type: String,
17
+ required: true,
18
+ },
19
+ },
20
+ {
21
+ strict: true,
22
+ versionKey: false,
23
+ timestamps: true,
24
+ },
25
+ );
26
+
27
+ countryCodes.plugin( mongooseUniqueValidator );
28
+ export default mongoose.model( 'countryCodes', countryCodes , 'countryCodes');
@@ -1,89 +1,89 @@
1
- import mongoose from 'mongoose'
2
- import mongooseUniqueValidator from 'mongoose-unique-validator'
3
-
4
- let pricingSchema = new mongoose.Schema(
5
- {
6
- clientId: {
7
- type:String
8
- },
9
- stores: [
10
- {
11
- storeId: {
12
- type: String,
13
- },
14
- store:{
15
- type:mongoose.Types.ObjectId
16
- },
17
- storeName:{
18
- type:String
19
- },
20
- status:{
21
- type:String
22
- },
23
- firstFile: {
24
- type:Boolean
25
- },
26
- edgefirstFileDate:{
27
- type:Date
28
- },
29
- date: {
30
- type:Date
31
- },
32
- processfirstFileDate:{
33
- type:Date
34
- },
35
- daysDifference:{
36
- type:Number
37
- },
38
- camera:{
39
- type:Array
40
- },
41
- cameraCount:{
42
- type:Number
43
- },
44
- products: [
45
- {
46
- productName: {
47
- type: String,
48
- },
49
- storeRange:{
50
- type:String
51
- },
52
- workingdays:{
53
- type:Number
54
- }
55
- }
56
- ]
57
- }
58
- ],
59
- accountType:{
60
- type:String
61
- },
62
- status:{
63
- type:String
64
- },
65
- activeStores:{
66
- type:Number
67
- },
68
- brandName:{
69
- type:String
70
- },
71
- proRate:{
72
- type:String
73
- },
74
- dateString:{
75
- type:String
76
- },
77
- dateISO:{
78
- type:Date
79
- }
80
- },
81
- {
82
- strict: true,
83
- versionKey: false,
84
- timestamps: true,
85
- }
86
- )
87
-
88
- pricingSchema.plugin(mongooseUniqueValidator);
1
+ import mongoose from 'mongoose'
2
+ import mongooseUniqueValidator from 'mongoose-unique-validator'
3
+
4
+ let pricingSchema = new mongoose.Schema(
5
+ {
6
+ clientId: {
7
+ type:String
8
+ },
9
+ stores: [
10
+ {
11
+ storeId: {
12
+ type: String,
13
+ },
14
+ store:{
15
+ type:mongoose.Types.ObjectId
16
+ },
17
+ storeName:{
18
+ type:String
19
+ },
20
+ status:{
21
+ type:String
22
+ },
23
+ firstFile: {
24
+ type:Boolean
25
+ },
26
+ edgefirstFileDate:{
27
+ type:Date
28
+ },
29
+ date: {
30
+ type:Date
31
+ },
32
+ processfirstFileDate:{
33
+ type:Date
34
+ },
35
+ daysDifference:{
36
+ type:Number
37
+ },
38
+ camera:{
39
+ type:Array
40
+ },
41
+ cameraCount:{
42
+ type:Number
43
+ },
44
+ products: [
45
+ {
46
+ productName: {
47
+ type: String,
48
+ },
49
+ storeRange:{
50
+ type:String
51
+ },
52
+ workingdays:{
53
+ type:Number
54
+ }
55
+ }
56
+ ]
57
+ }
58
+ ],
59
+ accountType:{
60
+ type:String
61
+ },
62
+ status:{
63
+ type:String
64
+ },
65
+ activeStores:{
66
+ type:Number
67
+ },
68
+ brandName:{
69
+ type:String
70
+ },
71
+ proRate:{
72
+ type:String
73
+ },
74
+ dateString:{
75
+ type:String
76
+ },
77
+ dateISO:{
78
+ type:Date
79
+ }
80
+ },
81
+ {
82
+ strict: true,
83
+ versionKey: false,
84
+ timestamps: true,
85
+ }
86
+ )
87
+
88
+ pricingSchema.plugin(mongooseUniqueValidator);
89
89
  export default mongoose.model('dailypricing', pricingSchema);
@@ -1,33 +1,33 @@
1
- import mongoose from 'mongoose';
2
- import mongooseUniqueValidator from 'mongoose-unique-validator';
3
-
4
- const edgeAppVersion = new mongoose.Schema(
5
- {
6
- appVersion: {
7
- type: String,
8
- unique: true,
9
- },
10
- isActive: {
11
- type: Boolean,
12
- default: true,
13
- },
14
- isDefault: {
15
- type: Boolean,
16
- },
17
- exeName:{
18
- type: String,
19
- },
20
- version:{
21
- type: String,
22
- unique: true,
23
- }
24
- },
25
- {
26
- strict: true,
27
- versionKey: false,
28
- timestamps: true,
29
- },
30
- );
31
-
32
- edgeAppVersion.plugin( mongooseUniqueValidator );
33
- export default mongoose.model( 'edgeappVersion', edgeAppVersion, 'edgeappVersion' );
1
+ import mongoose from 'mongoose';
2
+ import mongooseUniqueValidator from 'mongoose-unique-validator';
3
+
4
+ const edgeAppVersion = new mongoose.Schema(
5
+ {
6
+ appVersion: {
7
+ type: String,
8
+ unique: true,
9
+ },
10
+ isActive: {
11
+ type: Boolean,
12
+ default: true,
13
+ },
14
+ isDefault: {
15
+ type: Boolean,
16
+ },
17
+ exeName:{
18
+ type: String,
19
+ },
20
+ version:{
21
+ type: String,
22
+ unique: true,
23
+ }
24
+ },
25
+ {
26
+ strict: true,
27
+ versionKey: false,
28
+ timestamps: true,
29
+ },
30
+ );
31
+
32
+ edgeAppVersion.plugin( mongooseUniqueValidator );
33
+ export default mongoose.model( 'edgeappVersion', edgeAppVersion, 'edgeappVersion' );
@@ -1,33 +1,33 @@
1
- import mongoose from "mongoose";
2
- import uniqueValidator from "mongoose-unique-validator";
3
-
4
- const edgeappAuth = 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: ["edgeappAuth-token"],
15
- default: "edgeappAuth-token",
16
- },
17
- storeId: {
18
- type: String,
19
- trim: true,
20
- },
21
- },
22
- {
23
- strict: true,
24
- versionKey: false,
25
- timestamps: true,
26
- }
27
- );
28
-
29
- edgeappAuth.plugin(uniqueValidator)
30
- edgeappAuth.index( { createdAt: 1 }, { expires: '1d' })
31
- edgeappAuth.index( { storeId: 1 })
32
-
1
+ import mongoose from "mongoose";
2
+ import uniqueValidator from "mongoose-unique-validator";
3
+
4
+ const edgeappAuth = 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: ["edgeappAuth-token"],
15
+ default: "edgeappAuth-token",
16
+ },
17
+ storeId: {
18
+ type: String,
19
+ trim: true,
20
+ },
21
+ },
22
+ {
23
+ strict: true,
24
+ versionKey: false,
25
+ timestamps: true,
26
+ }
27
+ );
28
+
29
+ edgeappAuth.plugin(uniqueValidator)
30
+ edgeappAuth.index( { createdAt: 1 }, { expires: '1d' })
31
+ edgeappAuth.index( { storeId: 1 })
32
+
33
33
  export default mongoose.model( 'edgeappAuth', edgeappAuth,'edgeappAuth' );