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,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,23 +1,23 @@
1
- import mongoose from 'mongoose';
2
-
3
- const dataMismatchDraft = new mongoose.Schema(
4
- {
5
- ticketId: {
6
- type: String,
7
- },
8
- data: {
9
- type: String
10
- },
11
- },
12
- {
13
- strict: true,
14
- versionKey: false,
15
- timestamps: true,
16
- },
17
- );
18
-
19
- dataMismatchDraft.index( { createdAt: 1 }, { expires: '5d' })
20
-
21
-
22
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const dataMismatchDraft = new mongoose.Schema(
4
+ {
5
+ ticketId: {
6
+ type: String,
7
+ },
8
+ data: {
9
+ type: String
10
+ },
11
+ },
12
+ {
13
+ strict: true,
14
+ versionKey: false,
15
+ timestamps: true,
16
+ },
17
+ );
18
+
19
+ dataMismatchDraft.index( { createdAt: 1 }, { expires: '5d' })
20
+
21
+
22
+
23
23
  export default mongoose.model('dataMismatchDraft', dataMismatchDraft, 'dataMismatchDraft');
@@ -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' );