tango-api-schema 2.1.45 → 2.1.47

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 (61) hide show
  1. package/index.js +119 -119
  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 +77 -77
  6. package/schema/auditStoreData.model.js +56 -56
  7. package/schema/auditUserWallet.model.js +90 -90
  8. package/schema/auditUsers.model.js +39 -39
  9. package/schema/authentication.model.js +27 -27
  10. package/schema/basePricing.model.js +29 -29
  11. package/schema/billing.model.js +99 -99
  12. package/schema/binaryAudit.model.js +84 -84
  13. package/schema/camera.model.js +146 -146
  14. package/schema/checklistassignconfig.js +71 -71
  15. package/schema/checklistconfig.js +167 -167
  16. package/schema/checklistlog.js +59 -59
  17. package/schema/checklistquestionconfig.js +147 -147
  18. package/schema/client.model.js +529 -529
  19. package/schema/clientRequest.model.js +40 -40
  20. package/schema/cluster.model.js +58 -58
  21. package/schema/countryCodes.model.js +28 -28
  22. package/schema/dailyPricing.model.js +88 -88
  23. package/schema/dataMismatchDraft.model.js +22 -22
  24. package/schema/domain.js +18 -18
  25. package/schema/edgeAppVersion.model.js +33 -33
  26. package/schema/edgeappAuth.model.js +32 -32
  27. package/schema/empDetectionOutput.model.js +64 -64
  28. package/schema/externalParameter.model.js +202 -202
  29. package/schema/eyetest.model.js +18 -18
  30. package/schema/fitting.model.js +52 -52
  31. package/schema/group.model.js +36 -36
  32. package/schema/hotjar.model.js +11 -0
  33. package/schema/infraReason.model.js +44 -44
  34. package/schema/internalAuth.model.js +36 -36
  35. package/schema/invoice.model.js +106 -106
  36. package/schema/ipLogs.model.js +39 -39
  37. package/schema/lead.model.js +78 -78
  38. package/schema/lowcountReason.model.js +44 -44
  39. package/schema/mailOnlyuser.model.js +44 -44
  40. package/schema/matLog.model.js +26 -26
  41. package/schema/otp.model.js +27 -27
  42. package/schema/paymentAccount.model.js +60 -60
  43. package/schema/processedchecklist.js +184 -184
  44. package/schema/processedchecklistconfig.js +105 -105
  45. package/schema/processeddetection.js +85 -85
  46. package/schema/quality.model.js +57 -57
  47. package/schema/report.model.js +30 -30
  48. package/schema/standaredRole.model.js +56 -56
  49. package/schema/store.model.js +325 -325
  50. package/schema/storeAudit.model.js +62 -62
  51. package/schema/storeEmpDetection.model.js +62 -62
  52. package/schema/tagging.model.js +44 -44
  53. package/schema/tangoTicket.model.js +210 -210
  54. package/schema/teams.model.js +48 -48
  55. package/schema/transaction.model.js +54 -54
  56. package/schema/traxAuditData.model.js +61 -61
  57. package/schema/user.model.js +121 -121
  58. package/schema/userAssignedStore.model.js +41 -41
  59. package/schema/userAudit.model.js +77 -77
  60. package/schema/userEmpDetection.model.js +81 -81
  61. package/schema/workstation.model.js +77 -77
@@ -1,36 +1,36 @@
1
- import mongoose from 'mongoose';
2
- import mongooseUniqueValidator from 'mongoose-unique-validator';
3
-
4
- const group = new mongoose.Schema(
5
- {
6
- groupName: {
7
- type: String,
8
- trim: true,
9
- },
10
- storeList: {
11
- type:Array
12
- },
13
- clientId:{
14
- type: String
15
- },
16
- description: {
17
- type: String
18
- },
19
- isActive: {
20
- type: Boolean,
21
- default: true
22
- },
23
- isDefault: {
24
- type: Boolean,
25
- default: false
26
- }
27
- },
28
- {
29
- strict: true,
30
- versionKey: false,
31
- timestamps: true,
32
- },
33
- );
34
-
35
- group.plugin( mongooseUniqueValidator );
36
- export default mongoose.model( 'group', group);
1
+ import mongoose from 'mongoose';
2
+ import mongooseUniqueValidator from 'mongoose-unique-validator';
3
+
4
+ const group = new mongoose.Schema(
5
+ {
6
+ groupName: {
7
+ type: String,
8
+ trim: true,
9
+ },
10
+ storeList: {
11
+ type:Array
12
+ },
13
+ clientId:{
14
+ type: String
15
+ },
16
+ description: {
17
+ type: String
18
+ },
19
+ isActive: {
20
+ type: Boolean,
21
+ default: true
22
+ },
23
+ isDefault: {
24
+ type: Boolean,
25
+ default: false
26
+ }
27
+ },
28
+ {
29
+ strict: true,
30
+ versionKey: false,
31
+ timestamps: true,
32
+ },
33
+ );
34
+
35
+ group.plugin( mongooseUniqueValidator );
36
+ export default mongoose.model( 'group', group);
@@ -0,0 +1,11 @@
1
+ import { Schema, model } from 'mongoose';
2
+
3
+ const collection = new Schema( {
4
+
5
+ },{
6
+ timestamps: true,
7
+ versionKey: false,
8
+ strict: true,
9
+ })
10
+ collection.index( { createdAt: 1 } );
11
+ export default model( 'hotJar', collection, 'hotJar' );
@@ -1,45 +1,45 @@
1
- import mongoose from 'mongoose';
2
-
3
- const infraReasons = 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 infraReasons = 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('infraReasons', infraReasons, 'infraReasons');
@@ -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' );