@primocaredentgroup/compensi-medici-core 0.1.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 (38) hide show
  1. package/convex/_generated/api.ts +110 -0
  2. package/convex/_generated/component.ts +1356 -0
  3. package/convex/_generated/dataModel.ts +60 -0
  4. package/convex/_generated/server.ts +156 -0
  5. package/convex/audit/logs.ts +69 -0
  6. package/convex/calculation/commissions.ts +497 -0
  7. package/convex/calculation/deductions.ts +119 -0
  8. package/convex/calculation/engine.ts +598 -0
  9. package/convex/calculation/fixedCommissions.ts +217 -0
  10. package/convex/calculation/orchestrator.ts +314 -0
  11. package/convex/calculation/production.ts +495 -0
  12. package/convex/calculation/productionData.ts +155 -0
  13. package/convex/calculation/ruleApplications.ts +121 -0
  14. package/convex/config/categories.ts +114 -0
  15. package/convex/config/commissionPlans.ts +166 -0
  16. package/convex/config/commissionRules.ts +154 -0
  17. package/convex/config/companyMappings.ts +77 -0
  18. package/convex/config/deductionRules.ts +113 -0
  19. package/convex/config/fixedCommissionTypes.ts +79 -0
  20. package/convex/config/globalSettings.ts +79 -0
  21. package/convex/config/invisalignConfig.ts +87 -0
  22. package/convex/config/planTemplates.ts +90 -0
  23. package/convex/config/taxProfiles.ts +122 -0
  24. package/convex/config/userTaxProfiles.ts +87 -0
  25. package/convex/convex.config.ts +3 -0
  26. package/convex/documents/draftInvoices.ts +164 -0
  27. package/convex/documents/invoiceEngine.ts +468 -0
  28. package/convex/documents/invoiceGeneration.ts +611 -0
  29. package/convex/documents/statements.ts +185 -0
  30. package/convex/ledger/entries.ts +314 -0
  31. package/convex/lib/types.ts +126 -0
  32. package/convex/schema.ts +611 -0
  33. package/convex/seedHelpers.ts +41 -0
  34. package/convex/workflow/pendingCompletions.ts +148 -0
  35. package/convex/workflow/pythonWorker.ts +190 -0
  36. package/convex/workflow/runIssues.ts +364 -0
  37. package/convex/workflow/runs.ts +718 -0
  38. package/package.json +43 -0
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@primocaredentgroup/compensi-medici-core",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "type": "module",
6
+ "description": "Componente Convex Compensi Medici — motore compensi strutturato, configurabile e integrato per PrimoUpCore",
7
+ "main": "./convex/_generated/api.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./convex/_generated/api.ts",
11
+ "default": "./convex/_generated/api.ts"
12
+ },
13
+ "./convex.config": {
14
+ "@convex-dev/component-source": "./convex/convex.config.ts",
15
+ "default": "./convex/convex.config.ts"
16
+ },
17
+ "./convex.config.js": {
18
+ "@convex-dev/component-source": "./convex/convex.config.ts",
19
+ "types": "./convex/convex.config.ts",
20
+ "default": "./convex/convex.config.ts"
21
+ }
22
+ },
23
+ "publishConfig": {
24
+ "access": "public",
25
+ "registry": "https://registry.npmjs.org/"
26
+ },
27
+ "files": [
28
+ "convex",
29
+ "README.md"
30
+ ],
31
+ "scripts": {
32
+ "dev": "npx convex dev",
33
+ "deploy": "npx convex deploy",
34
+ "prepublishOnly": "echo 'Ready to publish'",
35
+ "publish:public": "npm publish --access public"
36
+ },
37
+ "dependencies": {
38
+ "convex": "^1.21.0"
39
+ },
40
+ "devDependencies": {
41
+ "typescript": "^5.7.0"
42
+ }
43
+ }