@open-mercato/core 0.6.7-develop.6605.1.761dd4c810 → 0.6.7-develop.6621.1.cdbe9dee3d

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 (114) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/dist/modules/auth/api/session/refresh.js +12 -11
  3. package/dist/modules/auth/api/session/refresh.js.map +2 -2
  4. package/dist/modules/auth/lib/rateLimitCheck.js +4 -4
  5. package/dist/modules/auth/lib/rateLimitCheck.js.map +2 -2
  6. package/dist/modules/catalog/api/categories/route.js +8 -14
  7. package/dist/modules/catalog/api/categories/route.js.map +2 -2
  8. package/dist/modules/catalog/api/tags/route.js +3 -10
  9. package/dist/modules/catalog/api/tags/route.js.map +2 -2
  10. package/dist/modules/customers/api/interactions/[id]/visibility/route.js +15 -17
  11. package/dist/modules/customers/api/interactions/[id]/visibility/route.js.map +2 -2
  12. package/dist/modules/customers/api/people/[id]/email-threads/route.js +6 -4
  13. package/dist/modules/customers/api/people/[id]/email-threads/route.js.map +2 -2
  14. package/dist/modules/customers/api/people/[id]/emails/route.js +19 -17
  15. package/dist/modules/customers/api/people/[id]/emails/route.js.map +2 -2
  16. package/dist/modules/customers/components/detail/CustomFieldValuesList.js +22 -5
  17. package/dist/modules/customers/components/detail/CustomFieldValuesList.js.map +2 -2
  18. package/dist/modules/customers/components/detail/create/CreateDealForm.js +5 -2
  19. package/dist/modules/customers/components/detail/create/CreateDealForm.js.map +2 -2
  20. package/dist/modules/customers/components/detail/customFieldUtils.js +10 -3
  21. package/dist/modules/customers/components/detail/customFieldUtils.js.map +2 -2
  22. package/dist/modules/directory/backend/directory/organizations/[id]/edit/page.meta.js +4 -2
  23. package/dist/modules/directory/backend/directory/organizations/[id]/edit/page.meta.js.map +2 -2
  24. package/dist/modules/directory/backend/directory/tenants/[id]/edit/page.meta.js +4 -2
  25. package/dist/modules/directory/backend/directory/tenants/[id]/edit/page.meta.js.map +2 -2
  26. package/dist/modules/entities/backend/entities/user/[entityId]/page.js +3 -2
  27. package/dist/modules/entities/backend/entities/user/[entityId]/page.js.map +2 -2
  28. package/dist/modules/entities/backend/entities/user/create/page.js +2 -1
  29. package/dist/modules/entities/backend/entities/user/create/page.js.map +2 -2
  30. package/dist/modules/entities/data/entities.js.map +1 -1
  31. package/dist/modules/integrations/api/[id]/credentials/route.js +10 -7
  32. package/dist/modules/integrations/api/[id]/credentials/route.js.map +2 -2
  33. package/dist/modules/integrations/api/[id]/health/route.js +6 -4
  34. package/dist/modules/integrations/api/[id]/health/route.js.map +2 -2
  35. package/dist/modules/integrations/api/[id]/route.js +4 -2
  36. package/dist/modules/integrations/api/[id]/route.js.map +2 -2
  37. package/dist/modules/integrations/api/[id]/state/route.js +7 -5
  38. package/dist/modules/integrations/api/[id]/state/route.js.map +2 -2
  39. package/dist/modules/integrations/api/[id]/version/route.js +7 -5
  40. package/dist/modules/integrations/api/[id]/version/route.js.map +2 -2
  41. package/dist/modules/integrations/api/logs/route.js +4 -2
  42. package/dist/modules/integrations/api/logs/route.js.map +2 -2
  43. package/dist/modules/integrations/api/route.js +4 -2
  44. package/dist/modules/integrations/api/route.js.map +2 -2
  45. package/dist/modules/integrations/api/umes-read.js +2 -1
  46. package/dist/modules/integrations/api/umes-read.js.map +2 -2
  47. package/dist/modules/integrations/lib/organization-scope.js +12 -0
  48. package/dist/modules/integrations/lib/organization-scope.js.map +7 -0
  49. package/dist/modules/payment_gateways/lib/gateway-service.js +10 -1
  50. package/dist/modules/payment_gateways/lib/gateway-service.js.map +2 -2
  51. package/dist/modules/sales/api/document-history/route.js +6 -9
  52. package/dist/modules/sales/api/document-history/route.js.map +2 -2
  53. package/dist/modules/sales/api/quotes/accept/route.js +3 -3
  54. package/dist/modules/sales/api/quotes/accept/route.js.map +2 -2
  55. package/dist/modules/sales/api/returns/[id]/route.js +6 -9
  56. package/dist/modules/sales/api/returns/[id]/route.js.map +2 -2
  57. package/dist/modules/sales/backend/sales/documents/[id]/page.js +6 -2
  58. package/dist/modules/sales/backend/sales/documents/[id]/page.js.map +2 -2
  59. package/dist/modules/sales/components/documents/AddressesSection.js +6 -4
  60. package/dist/modules/sales/components/documents/AddressesSection.js.map +2 -2
  61. package/dist/modules/sales/workflows.js +1 -1
  62. package/dist/modules/sales/workflows.js.map +1 -1
  63. package/dist/modules/workflows/api/definitions/[id]/route.js +10 -1
  64. package/dist/modules/workflows/api/definitions/[id]/route.js.map +2 -2
  65. package/dist/modules/workflows/lib/event-trigger-service.js +44 -3
  66. package/dist/modules/workflows/lib/event-trigger-service.js.map +2 -2
  67. package/package.json +7 -7
  68. package/src/modules/auth/api/session/refresh.ts +19 -11
  69. package/src/modules/auth/lib/rateLimitCheck.ts +4 -4
  70. package/src/modules/catalog/api/categories/route.ts +14 -16
  71. package/src/modules/catalog/api/tags/route.ts +6 -10
  72. package/src/modules/catalog/i18n/pl.json +9 -9
  73. package/src/modules/customer_accounts/i18n/pl.json +129 -129
  74. package/src/modules/customers/api/interactions/[id]/visibility/route.ts +24 -20
  75. package/src/modules/customers/api/people/[id]/email-threads/route.ts +10 -6
  76. package/src/modules/customers/api/people/[id]/emails/route.ts +25 -21
  77. package/src/modules/customers/components/detail/CustomFieldValuesList.tsx +28 -4
  78. package/src/modules/customers/components/detail/create/CreateDealForm.tsx +7 -2
  79. package/src/modules/customers/components/detail/customFieldUtils.ts +15 -3
  80. package/src/modules/data_sync/i18n/pl.json +68 -68
  81. package/src/modules/directory/backend/directory/organizations/[id]/edit/page.meta.ts +4 -2
  82. package/src/modules/directory/backend/directory/tenants/[id]/edit/page.meta.ts +4 -2
  83. package/src/modules/entities/backend/entities/user/[entityId]/page.tsx +2 -1
  84. package/src/modules/entities/backend/entities/user/create/page.tsx +1 -0
  85. package/src/modules/entities/data/entities.ts +1 -1
  86. package/src/modules/entities/i18n/de.json +2 -0
  87. package/src/modules/entities/i18n/en.json +2 -0
  88. package/src/modules/entities/i18n/es.json +2 -0
  89. package/src/modules/entities/i18n/pl.json +2 -0
  90. package/src/modules/integrations/api/[id]/credentials/route.ts +10 -7
  91. package/src/modules/integrations/api/[id]/health/route.ts +6 -4
  92. package/src/modules/integrations/api/[id]/route.ts +4 -2
  93. package/src/modules/integrations/api/[id]/state/route.ts +7 -5
  94. package/src/modules/integrations/api/[id]/version/route.ts +7 -5
  95. package/src/modules/integrations/api/logs/route.ts +4 -2
  96. package/src/modules/integrations/api/route.ts +4 -2
  97. package/src/modules/integrations/api/umes-read.ts +2 -1
  98. package/src/modules/integrations/i18n/de.json +0 -76
  99. package/src/modules/integrations/i18n/en.json +0 -76
  100. package/src/modules/integrations/i18n/es.json +0 -76
  101. package/src/modules/integrations/i18n/pl.json +0 -76
  102. package/src/modules/integrations/lib/organization-scope.ts +27 -0
  103. package/src/modules/payment_gateways/lib/gateway-service.ts +12 -1
  104. package/src/modules/sales/api/document-history/route.ts +10 -9
  105. package/src/modules/sales/api/quotes/accept/route.ts +3 -3
  106. package/src/modules/sales/api/returns/[id]/route.ts +10 -9
  107. package/src/modules/sales/backend/sales/documents/[id]/page.tsx +26 -19
  108. package/src/modules/sales/components/documents/AddressesSection.tsx +8 -4
  109. package/src/modules/sales/i18n/pl.json +24 -24
  110. package/src/modules/sales/workflows.ts +1 -1
  111. package/src/modules/staff/i18n/pl.json +178 -178
  112. package/src/modules/workflows/api/definitions/[id]/route.ts +14 -1
  113. package/src/modules/workflows/i18n/pl.json +128 -128
  114. package/src/modules/workflows/lib/event-trigger-service.ts +87 -8
@@ -948,7 +948,7 @@
948
948
  "staff.timesheets.errors.notOwner": "Możesz zarządzać tylko własnymi wpisami czasu.",
949
949
  "staff.timesheets.errors.projectCodeDuplicate": "Projekt o tym kodzie już istnieje.",
950
950
  "staff.timesheets.errors.projectNotFound": "Projekt czasowy nie został znaleziony lub jest niedostępny.",
951
- "staff.timesheets.errors.projectsKpis": "Failed to load project KPIs.",
951
+ "staff.timesheets.errors.projectsKpis": "Nie udało się załadować wskaźników KPI projektów.",
952
952
  "staff.timesheets.errors.segmentCreate": "Nie udało się utworzyć segmentu wpisu czasu.",
953
953
  "staff.timesheets.errors.staffMemberNotFound": "Pracownik nie został znaleziony lub jest niedostępny.",
954
954
  "staff.timesheets.errors.timerAlreadyRunning": "Inny licznik czasu jest już uruchomiony. Zatrzymaj go przed rozpoczęciem nowego.",
@@ -956,207 +956,207 @@
956
956
  "staff.timesheets.errors.timerStart": "Nie udało się uruchomić czasomierza.",
957
957
  "staff.timesheets.errors.timerStop": "Nie udało się zatrzymać czasomierza.",
958
958
  "staff.timesheets.errors.updateMyProject": "Nie udało się zaktualizować widoczności projektu.",
959
- "staff.timesheets.my.addRow.createProject": "Create a new project",
959
+ "staff.timesheets.my.addRow.createProject": "Utwórz nowy projekt",
960
960
  "staff.timesheets.my.addRow.error": "Nie udało się dodać projektu. Spróbuj ponownie.",
961
- "staff.timesheets.my.addRow.noProjects": "No projects assigned",
962
- "staff.timesheets.my.addRow.searchPlaceholder": "Search by project",
963
- "staff.timesheets.my.addRow.trigger": "Add row",
964
- "staff.timesheets.my.calendar.lastWeek": "Last week",
965
- "staff.timesheets.my.calendar.nextMonth": "Next month",
966
- "staff.timesheets.my.calendar.open": "Open calendar",
967
- "staff.timesheets.my.calendar.prevMonth": "Previous month",
968
- "staff.timesheets.my.calendar.thisWeek": "This week",
969
- "staff.timesheets.my.confirm_save.body": "Your timesheet entries will be saved.",
970
- "staff.timesheets.my.confirm_save.title": "Save changes?",
961
+ "staff.timesheets.my.addRow.noProjects": "Brak przypisanych projektów",
962
+ "staff.timesheets.my.addRow.searchPlaceholder": "Szukaj po projekcie",
963
+ "staff.timesheets.my.addRow.trigger": "Dodaj wiersz",
964
+ "staff.timesheets.my.calendar.lastWeek": "Poprzedni tydzień",
965
+ "staff.timesheets.my.calendar.nextMonth": "Następny miesiąc",
966
+ "staff.timesheets.my.calendar.open": "Otwórz kalendarz",
967
+ "staff.timesheets.my.calendar.prevMonth": "Poprzedni miesiąc",
968
+ "staff.timesheets.my.calendar.thisWeek": "Ten tydzień",
969
+ "staff.timesheets.my.confirm_save.body": "Twoje wpisy w karcie czasu pracy zostaną zapisane.",
970
+ "staff.timesheets.my.confirm_save.title": "Zapisać zmiany?",
971
971
  "staff.timesheets.my.createProfile": "Create Team Member Profile",
972
- "staff.timesheets.my.daily_average": "Daily Average",
973
- "staff.timesheets.my.daily_total": "Daily Total",
972
+ "staff.timesheets.my.daily_average": "Średnia dzienna",
973
+ "staff.timesheets.my.daily_total": "Suma dzienna",
974
974
  "staff.timesheets.my.durationPlaceholder": "0",
975
- "staff.timesheets.my.errors.load": "Failed to load timesheets.",
976
- "staff.timesheets.my.errors.save": "Failed to save timesheets.",
977
- "staff.timesheets.my.errors.updateAssignment": "Failed to update projects.",
978
- "staff.timesheets.my.list.addDescription": "Add description",
979
- "staff.timesheets.my.list.noEntries": "No entries for this period.",
975
+ "staff.timesheets.my.errors.load": "Nie udało się załadować kart czasu pracy.",
976
+ "staff.timesheets.my.errors.save": "Nie udało się zapisać kart czasu pracy.",
977
+ "staff.timesheets.my.errors.updateAssignment": "Nie udało się zaktualizować projektów.",
978
+ "staff.timesheets.my.list.addDescription": "Dodaj opis",
979
+ "staff.timesheets.my.list.noEntries": "Brak wpisów w tym okresie.",
980
980
  "staff.timesheets.my.list.saveError": "Nie udało się zapisać opisu. Spróbuj ponownie.",
981
- "staff.timesheets.my.list.today": "Today",
982
- "staff.timesheets.my.list.yesterday": "Yesterday",
983
- "staff.timesheets.my.loading": "Loading timesheets...",
984
- "staff.timesheets.my.noProfile": "You need a Team Member profile to track time.",
985
- "staff.timesheets.my.noProfile.title": "Set up your profile to start tracking time",
986
- "staff.timesheets.my.noProjects": "No active projects. Create a project first.",
987
- "staff.timesheets.my.noProjects.admin": "Create a project and assign yourself to start tracking time.",
988
- "staff.timesheets.my.noProjects.createProject": "Create Project",
989
- "staff.timesheets.my.noProjects.employee": "Ask your manager to assign you to a project.",
990
- "staff.timesheets.my.noProjects.title": "No projects assigned yet",
991
- "staff.timesheets.my.noProjects.viewProjects": "View Projects",
992
- "staff.timesheets.my.project": "Project",
981
+ "staff.timesheets.my.list.today": "Dziś",
982
+ "staff.timesheets.my.list.yesterday": "Wczoraj",
983
+ "staff.timesheets.my.loading": "Ładowanie kart czasu pracy...",
984
+ "staff.timesheets.my.noProfile": "Aby rejestrować czas, potrzebujesz profilu członka zespołu.",
985
+ "staff.timesheets.my.noProfile.title": "Skonfiguruj profil, aby zacząć rejestrować czas",
986
+ "staff.timesheets.my.noProjects": "Brak aktywnych projektów. Najpierw utwórz projekt.",
987
+ "staff.timesheets.my.noProjects.admin": "Utwórz projekt i przypisz siebie, aby zacząć rejestrować czas.",
988
+ "staff.timesheets.my.noProjects.createProject": "Utwórz projekt",
989
+ "staff.timesheets.my.noProjects.employee": "Poproś przełożonego o przypisanie do projektu.",
990
+ "staff.timesheets.my.noProjects.title": "Brak przypisanych projektów",
991
+ "staff.timesheets.my.noProjects.viewProjects": "Zobacz projekty",
992
+ "staff.timesheets.my.project": "Projekt",
993
993
  "staff.timesheets.my.removeRow": "Usuń z siatki",
994
994
  "staff.timesheets.my.removeRow.confirm": "Usunąć {projectName} z Twojej siatki? Możesz go ponownie dodać przez \"+ Dodaj wiersz\".",
995
995
  "staff.timesheets.my.removeRow.error": "Nie udało się usunąć projektu. Spróbuj ponownie.",
996
- "staff.timesheets.my.save_changes": "Save Changes",
997
- "staff.timesheets.my.saved": "Timesheet saved.",
998
- "staff.timesheets.my.saving": "Saving...",
996
+ "staff.timesheets.my.save_changes": "Zapisz zmiany",
997
+ "staff.timesheets.my.saved": "Zapisano kartę czasu pracy.",
998
+ "staff.timesheets.my.saving": "Zapisywanie...",
999
999
  "staff.timesheets.my.status": "Status",
1000
- "staff.timesheets.my.status_open": "Open",
1001
- "staff.timesheets.my.timer.noProjects": "No projects found",
1002
- "staff.timesheets.my.timer.placeholder": "What are you working on?",
1003
- "staff.timesheets.my.timer.searchProject": "Search projects...",
1004
- "staff.timesheets.my.timer.selectProject": "Project",
1005
- "staff.timesheets.my.timer.start": "Start timer",
1000
+ "staff.timesheets.my.status_open": "Otwarta",
1001
+ "staff.timesheets.my.timer.noProjects": "Nie znaleziono projektów",
1002
+ "staff.timesheets.my.timer.placeholder": "Nad czym pracujesz?",
1003
+ "staff.timesheets.my.timer.searchProject": "Szukaj projektów...",
1004
+ "staff.timesheets.my.timer.selectProject": "Projekt",
1005
+ "staff.timesheets.my.timer.start": "Uruchom stoper",
1006
1006
  "staff.timesheets.my.timer.startError": "Nie udało się uruchomić licznika czasu",
1007
- "staff.timesheets.my.timer.stop": "Stop timer",
1007
+ "staff.timesheets.my.timer.stop": "Zatrzymaj stoper",
1008
1008
  "staff.timesheets.my.timer.stopError": "Nie udało się zatrzymać licznika czasu",
1009
- "staff.timesheets.my.timerStart": "Start Timer",
1010
- "staff.timesheets.my.timerStop": "Stop Timer",
1011
- "staff.timesheets.my.total": "Total",
1012
- "staff.timesheets.my.total_hours": "Total Hours",
1013
- "staff.timesheets.my.unsaved": "Unsaved changes",
1014
- "staff.timesheets.my.viewMode.monthly": "Monthly",
1015
- "staff.timesheets.my.viewMode.weekly": "Weekly",
1016
- "staff.timesheets.my.viewType.list": "List view",
1017
- "staff.timesheets.my.viewType.timesheet": "Timesheet",
1018
- "staff.timesheets.my.weekTotal": "Week Total",
1019
- "staff.timesheets.my.working_days": "Working Days",
1020
- "staff.timesheets.nav.create_project": "Create Project",
1021
- "staff.timesheets.nav.edit_project": "Edit Project",
1022
- "staff.timesheets.nav.my_timesheets": "My Timesheets",
1023
- "staff.timesheets.nav.project_details": "Project Details",
1024
- "staff.timesheets.nav.projects": "Projects",
1025
- "staff.timesheets.projects.actions.add": "Add Project",
1026
- "staff.timesheets.projects.actions.addFirst": "+ Add first project",
1009
+ "staff.timesheets.my.timerStart": "Uruchom stoper",
1010
+ "staff.timesheets.my.timerStop": "Zatrzymaj stoper",
1011
+ "staff.timesheets.my.total": "Razem",
1012
+ "staff.timesheets.my.total_hours": "Łączna liczba godzin",
1013
+ "staff.timesheets.my.unsaved": "Niezapisane zmiany",
1014
+ "staff.timesheets.my.viewMode.monthly": "Miesięcznie",
1015
+ "staff.timesheets.my.viewMode.weekly": "Tygodniowo",
1016
+ "staff.timesheets.my.viewType.list": "Widok listy",
1017
+ "staff.timesheets.my.viewType.timesheet": "Karta czasu pracy",
1018
+ "staff.timesheets.my.weekTotal": "Suma tygodniowa",
1019
+ "staff.timesheets.my.working_days": "Dni robocze",
1020
+ "staff.timesheets.nav.create_project": "Utwórz projekt",
1021
+ "staff.timesheets.nav.edit_project": "Edytuj projekt",
1022
+ "staff.timesheets.nav.my_timesheets": "Moje karty czasu pracy",
1023
+ "staff.timesheets.nav.project_details": "Szczegóły projektu",
1024
+ "staff.timesheets.nav.projects": "Projekty",
1025
+ "staff.timesheets.projects.actions.add": "Dodaj projekt",
1026
+ "staff.timesheets.projects.actions.addFirst": "+ Dodaj pierwszy projekt",
1027
1027
  "staff.timesheets.projects.actions.backToList": "Powrót do projektów",
1028
- "staff.timesheets.projects.actions.delete": "Delete",
1029
- "staff.timesheets.projects.actions.deleteConfirm": "Delete project \"{{name}}\"?",
1030
- "staff.timesheets.projects.actions.refresh": "Refresh",
1031
- "staff.timesheets.projects.actions.viewDetails": "View Details",
1032
- "staff.timesheets.projects.active_employees": "Active Employees",
1033
- "staff.timesheets.projects.add_employee": "Add Employee",
1034
- "staff.timesheets.projects.detail.subtitle": "Project Settings",
1035
- "staff.timesheets.projects.employees.addError": "Failed to add employee.",
1036
- "staff.timesheets.projects.employees.added": "Employee added.",
1037
- "staff.timesheets.projects.employees.assignmentStartDate": "Assignment Start Date",
1038
- "staff.timesheets.projects.employees.department": "Department",
1039
- "staff.timesheets.projects.employees.empty": "No employees assigned yet.",
1040
- "staff.timesheets.projects.employees.endDate": "Assignment end",
1041
- "staff.timesheets.projects.employees.loading": "Loading employees...",
1042
- "staff.timesheets.projects.employees.noResults": "No team members found",
1043
- "staff.timesheets.projects.employees.remove": "Remove",
1044
- "staff.timesheets.projects.employees.removeConfirm": "Remove this employee from the project?",
1045
- "staff.timesheets.projects.employees.removeError": "Failed to remove employee.",
1046
- "staff.timesheets.projects.employees.removed": "Employee removed.",
1047
- "staff.timesheets.projects.employees.role": "Role",
1048
- "staff.timesheets.projects.employees.roleOnProject": "Role on Project",
1049
- "staff.timesheets.projects.employees.rolePlaceholder": "e.g. Developer, Designer...",
1050
- "staff.timesheets.projects.employees.searchEmployee": "Search team members...",
1051
- "staff.timesheets.projects.employees.selectEmployee": "Select Employee",
1052
- "staff.timesheets.projects.employees.startDate": "Assignment start",
1028
+ "staff.timesheets.projects.actions.delete": "Usuń",
1029
+ "staff.timesheets.projects.actions.deleteConfirm": "Usunąć projekt {{name}}”?",
1030
+ "staff.timesheets.projects.actions.refresh": "Odśwież",
1031
+ "staff.timesheets.projects.actions.viewDetails": "Zobacz szczegóły",
1032
+ "staff.timesheets.projects.active_employees": "Aktywni pracownicy",
1033
+ "staff.timesheets.projects.add_employee": "Dodaj pracownika",
1034
+ "staff.timesheets.projects.detail.subtitle": "Ustawienia projektu",
1035
+ "staff.timesheets.projects.employees.addError": "Nie udało się dodać pracownika.",
1036
+ "staff.timesheets.projects.employees.added": "Dodano pracownika.",
1037
+ "staff.timesheets.projects.employees.assignmentStartDate": "Data rozpoczęcia przypisania",
1038
+ "staff.timesheets.projects.employees.department": "Dział",
1039
+ "staff.timesheets.projects.employees.empty": "Nie przypisano jeszcze żadnych pracowników.",
1040
+ "staff.timesheets.projects.employees.endDate": "Koniec przypisania",
1041
+ "staff.timesheets.projects.employees.loading": "Ładowanie pracowników...",
1042
+ "staff.timesheets.projects.employees.noResults": "Nie znaleziono członków zespołu",
1043
+ "staff.timesheets.projects.employees.remove": "Usuń",
1044
+ "staff.timesheets.projects.employees.removeConfirm": "Usunąć tego pracownika z projektu?",
1045
+ "staff.timesheets.projects.employees.removeError": "Nie udało się usunąć pracownika.",
1046
+ "staff.timesheets.projects.employees.removed": "Usunięto pracownika.",
1047
+ "staff.timesheets.projects.employees.role": "Rola",
1048
+ "staff.timesheets.projects.employees.roleOnProject": "Rola w projekcie",
1049
+ "staff.timesheets.projects.employees.rolePlaceholder": "np. Programista, Projektant...",
1050
+ "staff.timesheets.projects.employees.searchEmployee": "Szukaj członków zespołu...",
1051
+ "staff.timesheets.projects.employees.selectEmployee": "Wybierz pracownika",
1052
+ "staff.timesheets.projects.employees.startDate": "Początek przypisania",
1053
1053
  "staff.timesheets.projects.employees.status": "Status",
1054
- "staff.timesheets.projects.employees.title": "Assigned Employees",
1055
- "staff.timesheets.projects.errors.delete": "Failed to delete project.",
1056
- "staff.timesheets.projects.errors.fieldRequired": "Required",
1057
- "staff.timesheets.projects.errors.load": "Failed to load project.",
1058
- "staff.timesheets.projects.errors.notFound": "Project not found.",
1059
- "staff.timesheets.projects.errors.required": "Name and code are required.",
1060
- "staff.timesheets.projects.errors.save": "Failed to save project.",
1061
- "staff.timesheets.projects.form.actions.cancel": "Cancel",
1062
- "staff.timesheets.projects.form.actions.create": "Create",
1063
- "staff.timesheets.projects.form.actions.edit": "Edit Project",
1064
- "staff.timesheets.projects.form.actions.save": "Save",
1065
- "staff.timesheets.projects.form.code": "Code",
1054
+ "staff.timesheets.projects.employees.title": "Przypisani pracownicy",
1055
+ "staff.timesheets.projects.errors.delete": "Nie udało się usunąć projektu.",
1056
+ "staff.timesheets.projects.errors.fieldRequired": "Wymagane",
1057
+ "staff.timesheets.projects.errors.load": "Nie udało się załadować projektu.",
1058
+ "staff.timesheets.projects.errors.notFound": "Nie znaleziono projektu.",
1059
+ "staff.timesheets.projects.errors.required": "Nazwa i kod wymagane.",
1060
+ "staff.timesheets.projects.errors.save": "Nie udało się zapisać projektu.",
1061
+ "staff.timesheets.projects.form.actions.cancel": "Anuluj",
1062
+ "staff.timesheets.projects.form.actions.create": "Utwórz",
1063
+ "staff.timesheets.projects.form.actions.edit": "Edytuj projekt",
1064
+ "staff.timesheets.projects.form.actions.save": "Zapisz",
1065
+ "staff.timesheets.projects.form.code": "Kod",
1066
1066
  "staff.timesheets.projects.form.codePlaceholder": "PROJECT-001",
1067
1067
  "staff.timesheets.projects.form.color": "Kolor projektu",
1068
- "staff.timesheets.projects.form.colorAuto": "Auto",
1069
- "staff.timesheets.projects.form.costCenter": "Cost center",
1070
- "staff.timesheets.projects.form.costCenterPlaceholder": "Cost center code",
1071
- "staff.timesheets.projects.form.createTitle": "Create project",
1072
- "staff.timesheets.projects.form.description": "Description",
1073
- "staff.timesheets.projects.form.descriptionPlaceholder": "Project description",
1074
- "staff.timesheets.projects.form.editTitle": "Edit project",
1075
- "staff.timesheets.projects.form.groupDetails": "Additional Information",
1076
- "staff.timesheets.projects.form.groupMain": "Project Details",
1077
- "staff.timesheets.projects.form.name": "Name",
1078
- "staff.timesheets.projects.form.namePlaceholder": "Project name",
1079
- "staff.timesheets.projects.form.projectType": "Project type",
1080
- "staff.timesheets.projects.form.projectTypePlaceholder": "e.g. Internal, Client, R&D",
1081
- "staff.timesheets.projects.form.startDate": "Start date",
1068
+ "staff.timesheets.projects.form.colorAuto": "Automatycznie",
1069
+ "staff.timesheets.projects.form.costCenter": "Centrum kosztów",
1070
+ "staff.timesheets.projects.form.costCenterPlaceholder": "Kod centrum kosztów",
1071
+ "staff.timesheets.projects.form.createTitle": "Utwórz projekt",
1072
+ "staff.timesheets.projects.form.description": "Opis",
1073
+ "staff.timesheets.projects.form.descriptionPlaceholder": "Opis projektu",
1074
+ "staff.timesheets.projects.form.editTitle": "Edytuj projekt",
1075
+ "staff.timesheets.projects.form.groupDetails": "Informacje dodatkowe",
1076
+ "staff.timesheets.projects.form.groupMain": "Szczegóły projektu",
1077
+ "staff.timesheets.projects.form.name": "Nazwa",
1078
+ "staff.timesheets.projects.form.namePlaceholder": "Nazwa projektu",
1079
+ "staff.timesheets.projects.form.projectType": "Typ projektu",
1080
+ "staff.timesheets.projects.form.projectTypePlaceholder": "np. Wewnętrzny, Klient, R&D",
1081
+ "staff.timesheets.projects.form.startDate": "Data rozpoczęcia",
1082
1082
  "staff.timesheets.projects.form.status": "Status",
1083
- "staff.timesheets.projects.inactive_employees": "Inactive Employees",
1084
- "staff.timesheets.projects.loading": "Loading project...",
1085
- "staff.timesheets.projects.messages.deleted": "Project deleted.",
1086
- "staff.timesheets.projects.messages.saved": "Project saved.",
1087
- "staff.timesheets.projects.page.description": "Manage time tracking projects.",
1088
- "staff.timesheets.projects.page.title": "Projects",
1089
- "staff.timesheets.projects.portfolio.card.hoursPanelCollab": "My hours · last 7w",
1090
- "staff.timesheets.projects.portfolio.card.hoursPanelPm": "Team hours · last 7w",
1091
- "staff.timesheets.projects.portfolio.card.role": "Role",
1092
- "staff.timesheets.projects.portfolio.emptyState.noAssignments": "You aren't assigned to any projects yet. Ask a PM to add you.",
1093
- "staff.timesheets.projects.portfolio.emptyState.noMatches": "No projects match these filters.",
1094
- "staff.timesheets.projects.portfolio.emptyState.noProjects": "No projects yet.",
1095
- "staff.timesheets.projects.portfolio.hoursWeek": "Hours / week",
1096
- "staff.timesheets.projects.portfolio.kpi.assignedToMe": "Assigned to me",
1097
- "staff.timesheets.projects.portfolio.kpi.deltaFlat": "no change",
1098
- "staff.timesheets.projects.portfolio.kpi.hoursMonth": "Hours this month",
1099
- "staff.timesheets.projects.portfolio.kpi.hoursMonthSub": "vs previous month",
1100
- "staff.timesheets.projects.portfolio.kpi.hoursWeek": "Hours this week",
1101
- "staff.timesheets.projects.portfolio.kpi.hoursWeekSub": "vs previous week",
1102
- "staff.timesheets.projects.portfolio.kpi.myHoursMonth": "My hours this month",
1103
- "staff.timesheets.projects.portfolio.kpi.myHoursWeek": "My hours this week",
1104
- "staff.timesheets.projects.portfolio.kpi.myProjects": "My projects",
1105
- "staff.timesheets.projects.portfolio.kpi.noPrevious": "no previous data",
1106
- "staff.timesheets.projects.portfolio.kpi.onHold": "On Hold",
1107
- "staff.timesheets.projects.portfolio.kpi.teamActive": "Active team",
1108
- "staff.timesheets.projects.portfolio.kpi.teamActiveSub": "Members with entries this month",
1109
- "staff.timesheets.projects.portfolio.kpi.totalProjects": "Total Projects",
1110
- "staff.timesheets.projects.portfolio.myHoursWeek": "My hours / week",
1111
- "staff.timesheets.projects.portfolio.myRole": "My role",
1083
+ "staff.timesheets.projects.inactive_employees": "Nieaktywni pracownicy",
1084
+ "staff.timesheets.projects.loading": "Ładowanie projektu...",
1085
+ "staff.timesheets.projects.messages.deleted": "Usunięto projekt.",
1086
+ "staff.timesheets.projects.messages.saved": "Zapisano projekt.",
1087
+ "staff.timesheets.projects.page.description": "Zarządzaj projektami do rejestracji czasu pracy.",
1088
+ "staff.timesheets.projects.page.title": "Projekty",
1089
+ "staff.timesheets.projects.portfolio.card.hoursPanelCollab": "Moje godziny · ost. 7 tyg.",
1090
+ "staff.timesheets.projects.portfolio.card.hoursPanelPm": "Godziny zespołu · ost. 7 tyg.",
1091
+ "staff.timesheets.projects.portfolio.card.role": "Rola",
1092
+ "staff.timesheets.projects.portfolio.emptyState.noAssignments": "Nie jesteś jeszcze przypisany do żadnego projektu. Poproś kierownika projektu, aby Cię dodał.",
1093
+ "staff.timesheets.projects.portfolio.emptyState.noMatches": "Żaden projekt nie pasuje do tych filtrów.",
1094
+ "staff.timesheets.projects.portfolio.emptyState.noProjects": "Brak projektów.",
1095
+ "staff.timesheets.projects.portfolio.hoursWeek": "Godziny / tydzień",
1096
+ "staff.timesheets.projects.portfolio.kpi.assignedToMe": "Przypisane do mnie",
1097
+ "staff.timesheets.projects.portfolio.kpi.deltaFlat": "bez zmian",
1098
+ "staff.timesheets.projects.portfolio.kpi.hoursMonth": "Godziny w tym miesiącu",
1099
+ "staff.timesheets.projects.portfolio.kpi.hoursMonthSub": "wobec poprzedniego miesiąca",
1100
+ "staff.timesheets.projects.portfolio.kpi.hoursWeek": "Godziny w tym tygodniu",
1101
+ "staff.timesheets.projects.portfolio.kpi.hoursWeekSub": "wobec poprzedniego tygodnia",
1102
+ "staff.timesheets.projects.portfolio.kpi.myHoursMonth": "Moje godziny w tym miesiącu",
1103
+ "staff.timesheets.projects.portfolio.kpi.myHoursWeek": "Moje godziny w tym tygodniu",
1104
+ "staff.timesheets.projects.portfolio.kpi.myProjects": "Moje projekty",
1105
+ "staff.timesheets.projects.portfolio.kpi.noPrevious": "brak wcześniejszych danych",
1106
+ "staff.timesheets.projects.portfolio.kpi.onHold": "Wstrzymane",
1107
+ "staff.timesheets.projects.portfolio.kpi.teamActive": "Aktywny zespół",
1108
+ "staff.timesheets.projects.portfolio.kpi.teamActiveSub": "Osoby z wpisami w tym miesiącu",
1109
+ "staff.timesheets.projects.portfolio.kpi.totalProjects": "Wszystkie projekty",
1110
+ "staff.timesheets.projects.portfolio.myHoursWeek": "Moje godziny / tydzień",
1111
+ "staff.timesheets.projects.portfolio.myRole": "Moja rola",
1112
1112
  "staff.timesheets.projects.portfolio.relativeTime.daysAgo": "{days}d temu",
1113
1113
  "staff.timesheets.projects.portfolio.relativeTime.hoursAgo": "{hours}h temu",
1114
1114
  "staff.timesheets.projects.portfolio.relativeTime.justNow": "przed chwilą",
1115
1115
  "staff.timesheets.projects.portfolio.relativeTime.minutesAgo": "{minutes}m temu",
1116
1116
  "staff.timesheets.projects.portfolio.savedViews.ariaLabel": "Zapisane widoki",
1117
- "staff.timesheets.projects.portfolio.sparkline.ariaLabel": "Hours per week, last 7 weeks",
1118
- "staff.timesheets.projects.portfolio.tabs.active": "Active",
1119
- "staff.timesheets.projects.portfolio.tabs.all": "All",
1120
- "staff.timesheets.projects.portfolio.tabs.completed": "Completed",
1121
- "staff.timesheets.projects.portfolio.tabs.mine": "Mine",
1122
- "staff.timesheets.projects.portfolio.tabs.onHold": "On Hold",
1123
- "staff.timesheets.projects.portfolio.team": "Team",
1117
+ "staff.timesheets.projects.portfolio.sparkline.ariaLabel": "Godziny na tydzień, ostatnie 7 tygodni",
1118
+ "staff.timesheets.projects.portfolio.tabs.active": "Aktywne",
1119
+ "staff.timesheets.projects.portfolio.tabs.all": "Wszystkie",
1120
+ "staff.timesheets.projects.portfolio.tabs.completed": "Zakończone",
1121
+ "staff.timesheets.projects.portfolio.tabs.mine": "Moje",
1122
+ "staff.timesheets.projects.portfolio.tabs.onHold": "Wstrzymane",
1123
+ "staff.timesheets.projects.portfolio.team": "Zespół",
1124
1124
  "staff.timesheets.projects.portfolio.viewMode.ariaLabel": "Tryb widoku",
1125
- "staff.timesheets.projects.portfolio.viewMode.cards": "Cards",
1126
- "staff.timesheets.projects.portfolio.viewMode.table": "Table",
1127
- "staff.timesheets.projects.stats.active": "Active Projects",
1128
- "staff.timesheets.projects.stats.onHold": "On Hold",
1129
- "staff.timesheets.projects.stats.total": "Total Projects",
1130
- "staff.timesheets.projects.statuses.active": "Active",
1131
- "staff.timesheets.projects.statuses.all": "All",
1132
- "staff.timesheets.projects.statuses.completed": "Completed",
1133
- "staff.timesheets.projects.statuses.onHold": "On Hold",
1134
- "staff.timesheets.projects.table.empty": "No projects yet.",
1135
- "staff.timesheets.projects.table.name": "Name",
1136
- "staff.timesheets.projects.table.search": "Search projects...",
1137
- "staff.timesheets.projects.table.startDate": "Start Date",
1125
+ "staff.timesheets.projects.portfolio.viewMode.cards": "Karty",
1126
+ "staff.timesheets.projects.portfolio.viewMode.table": "Tabela",
1127
+ "staff.timesheets.projects.stats.active": "Aktywne projekty",
1128
+ "staff.timesheets.projects.stats.onHold": "Wstrzymane",
1129
+ "staff.timesheets.projects.stats.total": "Wszystkie projekty",
1130
+ "staff.timesheets.projects.statuses.active": "Aktywne",
1131
+ "staff.timesheets.projects.statuses.all": "Wszystkie",
1132
+ "staff.timesheets.projects.statuses.completed": "Zakończone",
1133
+ "staff.timesheets.projects.statuses.onHold": "Wstrzymane",
1134
+ "staff.timesheets.projects.table.empty": "Brak projektów.",
1135
+ "staff.timesheets.projects.table.name": "Nazwa",
1136
+ "staff.timesheets.projects.table.search": "Szukaj projektów...",
1137
+ "staff.timesheets.projects.table.startDate": "Data rozpoczęcia",
1138
1138
  "staff.timesheets.projects.table.status": "Status",
1139
- "staff.timesheets.projects.table.type": "Type",
1140
- "staff.timesheets.projects.table.updatedAt": "Updated",
1139
+ "staff.timesheets.projects.table.type": "Typ",
1140
+ "staff.timesheets.projects.table.updatedAt": "Zaktualizowano",
1141
1141
  "staff.timesheets.sidebar.timerRunning": "Timer działa — kliknij, aby zobaczyć",
1142
- "staff.timesheets.widgets.hoursByProject.empty": "No hours tracked in this period.",
1143
- "staff.timesheets.widgets.hoursByProject.error": "Failed to load data",
1144
- "staff.timesheets.widgets.hoursByProject.loading": "Loading...",
1145
- "staff.timesheets.widgets.hoursByProject.settings.dateRange": "Date Range",
1146
- "staff.timesheets.widgets.hoursByProject.total": "Total",
1142
+ "staff.timesheets.widgets.hoursByProject.empty": "Nie zarejestrowano godzin w tym okresie.",
1143
+ "staff.timesheets.widgets.hoursByProject.error": "Nie udało się załadować danych",
1144
+ "staff.timesheets.widgets.hoursByProject.loading": "Ładowanie...",
1145
+ "staff.timesheets.widgets.hoursByProject.settings.dateRange": "Zakres dat",
1146
+ "staff.timesheets.widgets.hoursByProject.total": "Razem",
1147
1147
  "staff.timesheets.widgets.timeReporting.error": "Nie udało się wczytać stanu licznika czasu",
1148
- "staff.timesheets.widgets.timeReporting.loading": "Loading...",
1149
- "staff.timesheets.widgets.timeReporting.noProjects": "No projects assigned.",
1150
- "staff.timesheets.widgets.timeReporting.notRunning": "Not running",
1151
- "staff.timesheets.widgets.timeReporting.notesPlaceholder": "What are you working on?",
1152
- "staff.timesheets.widgets.timeReporting.project": "Project",
1153
- "staff.timesheets.widgets.timeReporting.running": "Timer running",
1154
- "staff.timesheets.widgets.timeReporting.selectProject": "Select project...",
1155
- "staff.timesheets.widgets.timeReporting.settings.description": "No additional settings. Select a project and start tracking from the widget.",
1156
- "staff.timesheets.widgets.timeReporting.start": "Start Timer",
1148
+ "staff.timesheets.widgets.timeReporting.loading": "Ładowanie...",
1149
+ "staff.timesheets.widgets.timeReporting.noProjects": "Brak przypisanych projektów.",
1150
+ "staff.timesheets.widgets.timeReporting.notRunning": "Zatrzymany",
1151
+ "staff.timesheets.widgets.timeReporting.notesPlaceholder": "Nad czym pracujesz?",
1152
+ "staff.timesheets.widgets.timeReporting.project": "Projekt",
1153
+ "staff.timesheets.widgets.timeReporting.running": "Stoper działa",
1154
+ "staff.timesheets.widgets.timeReporting.selectProject": "Wybierz projekt...",
1155
+ "staff.timesheets.widgets.timeReporting.settings.description": "Brak dodatkowych ustawień. Wybierz projekt i zacznij rejestrować czas z poziomu widżetu.",
1156
+ "staff.timesheets.widgets.timeReporting.start": "Uruchom stoper",
1157
1157
  "staff.timesheets.widgets.timeReporting.startError": "Nie udało się uruchomić licznika czasu",
1158
- "staff.timesheets.widgets.timeReporting.stop": "Stop Timer",
1158
+ "staff.timesheets.widgets.timeReporting.stop": "Zatrzymaj stoper",
1159
1159
  "staff.timesheets.widgets.timeReporting.stopError": "Nie udało się zatrzymać licznika czasu",
1160
- "staff.timesheets.widgets.timeReporting.taskNote": "Task / Note",
1161
- "staff.timesheets.widgets.timeReporting.unknownProject": "Unknown project"
1160
+ "staff.timesheets.widgets.timeReporting.taskNote": "Zadanie / Notatka",
1161
+ "staff.timesheets.widgets.timeReporting.unknownProject": "Nieznany projekt"
1162
1162
  }
@@ -20,7 +20,8 @@ import {
20
20
  } from '../../../data/validators'
21
21
  import { serializeWorkflowDefinition, serializeCodeWorkflowDefinition } from '../serialize'
22
22
  import { invalidateTriggerCache } from '../../../lib/event-trigger-service'
23
- import { getCodeWorkflow } from '../../../lib/code-registry'
23
+ import { getCodeWorkflow, getAllCodeWorkflows } from '../../../lib/code-registry'
24
+ import { codeWorkflowUuid } from '../../../lib/find-definition'
24
25
  import { createGenericOptimisticLockReader } from '@open-mercato/shared/lib/crud/optimistic-lock'
25
26
  import { registerOptimisticLockReaderIfAbsent } from '@open-mercato/shared/lib/crud/optimistic-lock-store'
26
27
  import { validateCrudMutationGuard, runCrudMutationGuardAfterSuccess } from '@open-mercato/shared/lib/crud/mutation-guard'
@@ -97,6 +98,18 @@ export async function GET(
97
98
  })
98
99
 
99
100
  if (!definition) {
101
+ // Instances started from an unpersisted code definition store the
102
+ // deterministic codeWorkflowUuid(workflowId) as their definitionId
103
+ // (see lib/find-definition.ts). Resolve that synthetic UUID back to
104
+ // the code registry so lookups by instance.definitionId succeed.
105
+ const codeDef = getAllCodeWorkflows().find(
106
+ (workflow) => codeWorkflowUuid(workflow.workflowId) === params.id
107
+ )
108
+ if (codeDef) {
109
+ return NextResponse.json({
110
+ data: serializeCodeWorkflowDefinition(codeDef, `code:${codeDef.workflowId}`),
111
+ })
112
+ }
100
113
  return NextResponse.json(
101
114
  { error: 'Workflow definition not found' },
102
115
  { status: 404 }