@seniorsistemas/hcm-clocking-event-rule-nodejs 0.35.0

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 (128) hide show
  1. package/.github/copilot-instructions.md +11 -0
  2. package/.github/workflows/release.yaml +10 -0
  3. package/.gitlab-ci.yml +68 -0
  4. package/CHANGELOG.md +274 -0
  5. package/README.doc.md +658 -0
  6. package/README.md +117 -0
  7. package/assets/favicon.ico +0 -0
  8. package/catalog-info.yaml +19 -0
  9. package/jest.config.js +17 -0
  10. package/package.json +48 -0
  11. package/prompt.md +15 -0
  12. package/run_build_win.bat +1 -0
  13. package/run_link.bat +3 -0
  14. package/run_test.bat +1 -0
  15. package/sonar-project.properties +21 -0
  16. package/src/data/changes/changes.ts +92 -0
  17. package/src/data/context/context.ts +251 -0
  18. package/src/data/context/contextReference.ts +376 -0
  19. package/src/data/contract/contract.ts +272 -0
  20. package/src/data/dataset/database.ts +130 -0
  21. package/src/data/dataset/dataset.ts +275 -0
  22. package/src/data/definition/timeEvaluationSituationDefinitionHistory.ts +1425 -0
  23. package/src/data/employee/employee.ts +434 -0
  24. package/src/data/foundation/companyBranch.ts +66 -0
  25. package/src/data/foundation/costCenter.ts +47 -0
  26. package/src/data/foundation/employer.ts +35 -0
  27. package/src/data/foundation/employmentRelationship.ts +63 -0
  28. package/src/data/foundation/holiday.ts +84 -0
  29. package/src/data/foundation/holidayGroup.ts +47 -0
  30. package/src/data/foundation/jobPosition.ts +73 -0
  31. package/src/data/foundation/person.ts +35 -0
  32. package/src/data/foundation/situation.ts +301 -0
  33. package/src/data/foundation/syndicate.ts +244 -0
  34. package/src/data/foundation/workschedule.ts +688 -0
  35. package/src/data/foundation/workshift.ts +647 -0
  36. package/src/data/foundation/workshiftBase.ts +113 -0
  37. package/src/data/histories/companyBranchHistory.ts +128 -0
  38. package/src/data/histories/costCenterHistory.ts +114 -0
  39. package/src/data/histories/employmentRelationshipHistory.ts +116 -0
  40. package/src/data/histories/histories.ts +419 -0
  41. package/src/data/histories/jobPositionHistory.ts +117 -0
  42. package/src/data/histories/leaveHistory.ts +227 -0
  43. package/src/data/histories/timeEvaluationHistory.ts +191 -0
  44. package/src/data/histories/workshiftHistory.ts +66 -0
  45. package/src/data/hourBank/hourBank.ts +43 -0
  46. package/src/data/hourBank/hourBankAccount.ts +77 -0
  47. package/src/data/log/log.ts +38 -0
  48. package/src/data/schedules/bridge.ts +84 -0
  49. package/src/data/schedules/compensation.ts +332 -0
  50. package/src/data/schedules/overtimeAuthorization.ts +174 -0
  51. package/src/data/schedules/readiness.ts +150 -0
  52. package/src/data/schedules/schedules.ts +398 -0
  53. package/src/data/schedules/workscheduleChange.ts +91 -0
  54. package/src/data/schedules/workshiftChange.ts +76 -0
  55. package/src/data/timeEvaluation/adjustmentReason.ts +46 -0
  56. package/src/data/timeEvaluation/clockingEvent.ts +198 -0
  57. package/src/data/timeEvaluation/estimatedHours.ts +245 -0
  58. package/src/data/timeEvaluation/interval.ts +568 -0
  59. package/src/data/timeEvaluation/separatedHours.ts +134 -0
  60. package/src/data/timeEvaluation/timeEvaluation.ts +1540 -0
  61. package/src/data/timeEvaluation/timeEvaluationSituation.ts +154 -0
  62. package/src/data/user/user.ts +44 -0
  63. package/src/index.ts +60 -0
  64. package/src/test/builder/bridgeBuilder.builder.ts +28 -0
  65. package/src/test/builder/clockingEvent.builder.ts +49 -0
  66. package/src/test/builder/companyBranchHistoryBuilder.ts +29 -0
  67. package/src/test/builder/compensation.builder.ts +84 -0
  68. package/src/test/builder/contextReference.builder.ts +69 -0
  69. package/src/test/builder/costCenterHistoryBuilder.ts +29 -0
  70. package/src/test/builder/database.builder.ts +21 -0
  71. package/src/test/builder/datasetBuilder.ts +111 -0
  72. package/src/test/builder/dateIntervalBuilder.ts +25 -0
  73. package/src/test/builder/employee.builder.ts +91 -0
  74. package/src/test/builder/employmentRelationshipBuilder.ts +35 -0
  75. package/src/test/builder/employmentRelationshipHistoryBuilder.ts +29 -0
  76. package/src/test/builder/historiesBuilder.ts +56 -0
  77. package/src/test/builder/holiday.builder.ts +44 -0
  78. package/src/test/builder/hourBankAccountBuilder.ts +77 -0
  79. package/src/test/builder/hourBankBuilder.ts +32 -0
  80. package/src/test/builder/interval.builder.ts +113 -0
  81. package/src/test/builder/jobPositionHistoryBuilder.ts +29 -0
  82. package/src/test/builder/overtimeAuthorization.builder.ts +42 -0
  83. package/src/test/builder/readinessBuilder.builder.ts +57 -0
  84. package/src/test/builder/schedules.builder.ts +126 -0
  85. package/src/test/builder/situation.builder.ts +59 -0
  86. package/src/test/builder/syndicate.builder.ts +96 -0
  87. package/src/test/builder/syndicateHistoryBuilder.ts +33 -0
  88. package/src/test/builder/timeEvaluation.builder.ts +138 -0
  89. package/src/test/builder/timeEvaluationHistory.builder.ts +49 -0
  90. package/src/test/builder/timeEvaluationSituation.builder.ts +34 -0
  91. package/src/test/builder/workschedule.builder.ts +96 -0
  92. package/src/test/builder/workshift.builder.ts +179 -0
  93. package/src/test/builder/workshiftBuilder.ts +55 -0
  94. package/src/test/data/clockingEvent.spec.ts +56 -0
  95. package/src/test/data/context.spec.ts +176 -0
  96. package/src/test/data/currentUser.spec.ts +11 -0
  97. package/src/test/data/dataset.spec.ts +144 -0
  98. package/src/test/data/employee/employee.spec.ts +20 -0
  99. package/src/test/data/employmentRelationship/employmentRelationship.spec.ts +48 -0
  100. package/src/test/data/estimatedHours/estimatedHours.spec.ts +96 -0
  101. package/src/test/data/histories/costCenterHistory.spec.ts +32 -0
  102. package/src/test/data/histories/histories.spec.ts +306 -0
  103. package/src/test/data/holyday.spec.ts +89 -0
  104. package/src/test/data/hourBank/hourBank.spec.ts +48 -0
  105. package/src/test/data/hourBank/hourBankAccount.spec.ts +32 -0
  106. package/src/test/data/schedules/bridge.spec.ts +13 -0
  107. package/src/test/data/schedules/compesation.spect.ts +89 -0
  108. package/src/test/data/schedules/overtimeAuthorization.spec.ts +52 -0
  109. package/src/test/data/schedules/readiness.spec.ts +64 -0
  110. package/src/test/data/schedules/schedules.spec.ts +134 -0
  111. package/src/test/data/schedules/workscheduleChange.spec.ts +21 -0
  112. package/src/test/data/syndicate/syndicate.spec.ts +51 -0
  113. package/src/test/data/timeEvaluation.spec.ts +1057 -0
  114. package/src/test/data/timeEvaluationDefinition.spec.ts +144 -0
  115. package/src/test/data/workschedule/workschedule.spec.ts +194 -0
  116. package/src/test/data/workshift/workshift.spec.ts +79 -0
  117. package/src/test/utils/date.utils.spec.ts +198 -0
  118. package/src/test/utils/dateIntervalUtils.spec.ts +210 -0
  119. package/src/test/utils/object.utils.spec.ts +83 -0
  120. package/src/utils/dateIntervalUtils.ts +284 -0
  121. package/src/utils/dateUtils.ts +456 -0
  122. package/src/utils/decompressGzipLambda.ts +15 -0
  123. package/src/utils/object.utils.ts +156 -0
  124. package/trivy/vulnerabilities_scan.json +1160 -0
  125. package/tsconfig.json +32 -0
  126. package/tsconfig.spec.json +21 -0
  127. package/tslint.json +92 -0
  128. package/typedoc.json +22 -0
package/tsconfig.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": "./",
4
+ "outDir": "./dist",
5
+ "rootDir": "./src",
6
+ "sourceMap": true,
7
+ "declaration": true,
8
+ "emitDecoratorMetadata": true,
9
+ "experimentalDecorators": true,
10
+ "noImplicitAny": true,
11
+ "resolveJsonModule": true,
12
+ "esModuleInterop": true,
13
+ "module": "CommonJS",
14
+ "target": "ES2020",
15
+ "lib": ["es2020"],
16
+ "strict": true,
17
+ "strictPropertyInitialization": false,
18
+ "paths": {
19
+ "src/*": ["src/*"]
20
+ },
21
+ "skipLibCheck": true,
22
+ "forceConsistentCasingInFileNames": true
23
+ },
24
+ "include": [
25
+ "src","../package.json"
26
+ ],
27
+ "exclude": [
28
+ "**/test/**/*",
29
+ "**/*.spec.ts",
30
+ "dist"
31
+ ]
32
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../out-tsc/spec",
5
+ "types": [
6
+ "jasmine",
7
+ "node"
8
+ ],
9
+ "noImplicitAny": false
10
+ },
11
+ "files": [
12
+ "test.ts",
13
+ "polyfills.ts"
14
+ ],
15
+ "include": [
16
+ "**/*.spec.ts",
17
+ "**/*.d.ts",
18
+ "**/*.ts"
19
+ ]
20
+ }
21
+
package/tslint.json ADDED
@@ -0,0 +1,92 @@
1
+ {
2
+ "extends": "tslint:recommended",
3
+ "rules": {
4
+ "array-type": false,
5
+ "arrow-parens": false,
6
+ "deprecation": {
7
+ "severity": "warning"
8
+ },
9
+ "component-class-suffix": true,
10
+ "contextual-lifecycle": true,
11
+ "directive-class-suffix": true,
12
+ "directive-selector": [
13
+ true,
14
+ "attribute",
15
+ "app",
16
+ "camelCase"
17
+ ],
18
+ "component-selector": [
19
+ true,
20
+ "element",
21
+ "app",
22
+ "kebab-case"
23
+ ],
24
+ "import-blacklist": [
25
+ true,
26
+ "rxjs/Rx"
27
+ ],
28
+ "interface-name": false,
29
+ "max-classes-per-file": false,
30
+ "max-line-length": [
31
+ true,
32
+ 140
33
+ ],
34
+ "member-access": false,
35
+ "member-ordering": [
36
+ true,
37
+ {
38
+ "order": [
39
+ "static-field",
40
+ "instance-field",
41
+ "static-method",
42
+ "instance-method"
43
+ ]
44
+ }
45
+ ],
46
+ "no-consecutive-blank-lines": false,
47
+ "no-console": [
48
+ true,
49
+ "debug",
50
+ "info",
51
+ "time",
52
+ "timeEnd",
53
+ "trace"
54
+ ],
55
+ "no-empty": false,
56
+ "no-inferrable-types": [
57
+ true,
58
+ "ignore-params"
59
+ ],
60
+ "no-non-null-assertion": true,
61
+ "no-redundant-jsdoc": true,
62
+ "no-switch-case-fall-through": true,
63
+ "no-var-requires": false,
64
+ "object-literal-key-quotes": [
65
+ true,
66
+ "as-needed"
67
+ ],
68
+ "object-literal-sort-keys": false,
69
+ "ordered-imports": false,
70
+ "quotemark": [
71
+ true,
72
+ "double"
73
+ ],
74
+ "trailing-comma": false,
75
+ "no-conflicting-lifecycle": true,
76
+ "no-host-metadata-property": true,
77
+ "no-input-rename": true,
78
+ "no-inputs-metadata-property": true,
79
+ "no-output-native": true,
80
+ "no-output-on-prefix": true,
81
+ "no-output-rename": true,
82
+ "no-outputs-metadata-property": true,
83
+ "template-banana-in-box": true,
84
+ "template-no-negated-async": true,
85
+ "use-lifecycle-interface": true,
86
+ "use-pipe-transform-interface": true
87
+ },
88
+ "rulesDirectory": [
89
+ "codelyzer"
90
+ ]
91
+ }
92
+
package/typedoc.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "entryPoints": [
3
+ "src/index.ts"
4
+ ],
5
+ "out": "docs",
6
+ "excludePrivate": true,
7
+ "excludeProtected": true,
8
+ "includeVersion": true,
9
+ "readme": "README.doc.md",
10
+ "disableSources": true,
11
+ "excludeNotDocumented": true,
12
+ "favicon": "assets/favicon.ico",
13
+ "customFooterHtml": "<div style=\"text-align: center;\">© Copyright Senior Sistemas S.A. Todos os direitos reservados.</div>",
14
+ "hideGenerator": true,
15
+ "validation": {
16
+ "notExported": true,
17
+ "invalidLink": true,
18
+ "rewrittenLink": true,
19
+ "notDocumented": false,
20
+ "unusedMergeModuleWith": true
21
+ }
22
+ }