tango-api-schema 2.1.18 → 2.1.20

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 (48) hide show
  1. package/index.js +95 -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 +75 -75
  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 +497 -518
  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 -18
  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/mailOnlyuser.model.js +40 -0
  31. package/schema/matLog.model.js +26 -26
  32. package/schema/otp.model.js +27 -27
  33. package/schema/paymentAccount.model.js +60 -60
  34. package/schema/quality.model.js +57 -57
  35. package/schema/report.model.js +30 -30
  36. package/schema/standaredRole.model.js +56 -56
  37. package/schema/store.model.js +325 -325
  38. package/schema/storeAudit.model.js +61 -61
  39. package/schema/storeEmpDetection.model.js +61 -61
  40. package/schema/tagging.model.js +44 -44
  41. package/schema/tangoTicket.model.js +210 -210
  42. package/schema/transaction.model.js +54 -54
  43. package/schema/traxAuditData.model.js +60 -60
  44. package/schema/user.model.js +95 -95
  45. package/schema/userAssignedStore.model.js +41 -41
  46. package/schema/userAudit.model.js +76 -76
  47. package/schema/userEmpDetection.model.js +74 -74
  48. package/schema/workstation.model.js +77 -77
@@ -1,77 +1,77 @@
1
- import { Schema, model } from "mongoose";
2
- import mongooseUniqueValidator from "mongoose-unique-validator";
3
- const workStationModel = new Schema(
4
- {
5
- workStationId: {
6
- type: String,
7
- trim: true,
8
- required: true,
9
- unique: true,
10
- },
11
- appId: {
12
- type: String,
13
- trim: true,
14
- required: true,
15
- unique: true,
16
- },
17
- ip: {
18
- type: String,
19
- require: true,
20
- },
21
- macAddress: {
22
- type: String,
23
- require: true,
24
- },
25
- serverType: {
26
- type: Boolean,
27
- default: false,
28
- },
29
- active: {
30
- type: Boolean,
31
- default: true,
32
- },
33
- updateAppVersion: {
34
- type: String,
35
- trim: true,
36
- },
37
- appVersion: {
38
- type: String,
39
- trim: true,
40
- },
41
- architecture: {
42
- type: String,
43
- trim: true,
44
- enum: [ 'x32', 'x64' ],
45
- },
46
- triggerProcessId:{
47
- type: String,
48
- trim: true,
49
- },
50
- isRestartRequired:{
51
- type: Boolean,
52
- default: false,
53
- },
54
- deleteInterval:{
55
- type: Number,
56
- trim: true,
57
- },
58
- deleteExe:{
59
- type: Boolean,
60
- default: false,
61
- },
62
- isSocketEnable:{
63
- type: Boolean,
64
- default: false,
65
- },
66
- },
67
- {
68
- strict: true,
69
- versionKey: false,
70
- timestamps: true,
71
- }
72
- );
73
-
74
- workStationModel.index({ workStationId: 1, appId: 1 });
75
- workStationModel.plugin(mongooseUniqueValidator);
76
-
77
- export default model("workstation", workStationModel);
1
+ import { Schema, model } from "mongoose";
2
+ import mongooseUniqueValidator from "mongoose-unique-validator";
3
+ const workStationModel = new Schema(
4
+ {
5
+ workStationId: {
6
+ type: String,
7
+ trim: true,
8
+ required: true,
9
+ unique: true,
10
+ },
11
+ appId: {
12
+ type: String,
13
+ trim: true,
14
+ required: true,
15
+ unique: true,
16
+ },
17
+ ip: {
18
+ type: String,
19
+ require: true,
20
+ },
21
+ macAddress: {
22
+ type: String,
23
+ require: true,
24
+ },
25
+ serverType: {
26
+ type: Boolean,
27
+ default: false,
28
+ },
29
+ active: {
30
+ type: Boolean,
31
+ default: true,
32
+ },
33
+ updateAppVersion: {
34
+ type: String,
35
+ trim: true,
36
+ },
37
+ appVersion: {
38
+ type: String,
39
+ trim: true,
40
+ },
41
+ architecture: {
42
+ type: String,
43
+ trim: true,
44
+ enum: [ 'x32', 'x64' ],
45
+ },
46
+ triggerProcessId:{
47
+ type: String,
48
+ trim: true,
49
+ },
50
+ isRestartRequired:{
51
+ type: Boolean,
52
+ default: false,
53
+ },
54
+ deleteInterval:{
55
+ type: Number,
56
+ trim: true,
57
+ },
58
+ deleteExe:{
59
+ type: Boolean,
60
+ default: false,
61
+ },
62
+ isSocketEnable:{
63
+ type: Boolean,
64
+ default: false,
65
+ },
66
+ },
67
+ {
68
+ strict: true,
69
+ versionKey: false,
70
+ timestamps: true,
71
+ }
72
+ );
73
+
74
+ workStationModel.index({ workStationId: 1, appId: 1 });
75
+ workStationModel.plugin(mongooseUniqueValidator);
76
+
77
+ export default model("workstation", workStationModel);