@open-mercato/core 0.6.2-develop.3467.1.2a1818709d → 0.6.3-develop.3484.1.1427e58147
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.
- package/.turbo/turbo-build.log +1 -1
- package/dist/modules/customers/components/detail/schedule/useScheduleFormState.js +13 -5
- package/dist/modules/customers/components/detail/schedule/useScheduleFormState.js.map +2 -2
- package/dist/modules/integrations/data/validators.js +9 -6
- package/dist/modules/integrations/data/validators.js.map +2 -2
- package/dist/modules/messages/commands/messages.js +42 -2
- package/dist/modules/messages/commands/messages.js.map +2 -2
- package/dist/modules/messages/components/MessagesInboxPageClient.js +42 -86
- package/dist/modules/messages/components/MessagesInboxPageClient.js.map +2 -2
- package/dist/modules/messages/components/inboxFilters.js +133 -0
- package/dist/modules/messages/components/inboxFilters.js.map +7 -0
- package/dist/modules/messages/data/validators.js +2 -1
- package/dist/modules/messages/data/validators.js.map +2 -2
- package/dist/modules/sales/api/order-adjustments/route.js.map +2 -2
- package/dist/modules/sales/api/quote-adjustments/route.js.map +2 -2
- package/dist/modules/sales/lib/makeSalesLineRoute.js.map +2 -2
- package/dist/modules/workflows/lib/activity-executor.js.map +2 -2
- package/jest.config.cjs +3 -1
- package/package.json +15 -15
- package/src/modules/customers/components/detail/schedule/useScheduleFormState.ts +18 -7
- package/src/modules/integrations/data/validators.ts +5 -4
- package/src/modules/messages/commands/messages.ts +54 -2
- package/src/modules/messages/components/MessagesInboxPageClient.tsx +46 -89
- package/src/modules/messages/components/inboxFilters.ts +162 -0
- package/src/modules/messages/data/validators.ts +1 -0
- package/src/modules/messages/i18n/de.json +5 -4
- package/src/modules/messages/i18n/en.json +5 -4
- package/src/modules/messages/i18n/es.json +5 -4
- package/src/modules/messages/i18n/pl.json +5 -4
- package/src/modules/sales/api/order-adjustments/route.ts +2 -1
- package/src/modules/sales/api/quote-adjustments/route.ts +2 -1
- package/src/modules/sales/lib/makeSalesLineRoute.ts +2 -1
- package/src/modules/staff/i18n/de.json +1 -0
- package/src/modules/staff/i18n/en.json +1 -0
- package/src/modules/staff/i18n/es.json +1 -0
- package/src/modules/staff/i18n/pl.json +1 -0
- package/src/modules/workflows/lib/activity-executor.ts +4 -3
- package/tsconfig.json +1 -0
|
@@ -280,6 +280,7 @@
|
|
|
280
280
|
"staff.messageObjects.notFound": "No encontrado",
|
|
281
281
|
"staff.messageObjects.team.title": "Equipo",
|
|
282
282
|
"staff.messageObjects.teamMember.title": "Miembro del equipo",
|
|
283
|
+
"staff.messages.leaveRequestApproval": "Solicitud de permiso: aprobación",
|
|
283
284
|
"staff.myAvailability.empty.profileRequired": "Crea tu perfil de miembro para gestionar la disponibilidad.",
|
|
284
285
|
"staff.myAvailability.errors.load": "No se pudo cargar la disponibilidad.",
|
|
285
286
|
"staff.myAvailability.loading": "Cargando disponibilidad...",
|
|
@@ -280,6 +280,7 @@
|
|
|
280
280
|
"staff.messageObjects.notFound": "Nie znaleziono",
|
|
281
281
|
"staff.messageObjects.team.title": "Zespół",
|
|
282
282
|
"staff.messageObjects.teamMember.title": "Członek zespołu",
|
|
283
|
+
"staff.messages.leaveRequestApproval": "Wniosek urlopowy – zatwierdzenie",
|
|
283
284
|
"staff.myAvailability.empty.profileRequired": "Utwórz profil pracownika, aby zarządzać dostępnością.",
|
|
284
285
|
"staff.myAvailability.errors.load": "Nie udało się załadować dostępności.",
|
|
285
286
|
"staff.myAvailability.loading": "Ładowanie dostępności...",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { EntityManager } from '@mikro-orm/core'
|
|
14
|
+
import type { EntityManager as PostgreSqlEntityManager } from '@mikro-orm/postgresql'
|
|
14
15
|
import type { AwilixContainer } from 'awilix'
|
|
15
16
|
import { WorkflowInstance } from '../data/entities'
|
|
16
17
|
import { createModuleQueue, Queue } from '@open-mercato/queue'
|
|
@@ -406,7 +407,7 @@ export async function executeSendEmail(
|
|
|
406
407
|
|
|
407
408
|
// Check if email service is available in container
|
|
408
409
|
try {
|
|
409
|
-
const emailService = container.resolve('emailService')
|
|
410
|
+
const emailService = container.resolve<{ send: (input: unknown) => Promise<unknown> | unknown }>('emailService')
|
|
410
411
|
if (emailService && typeof emailService.send === 'function') {
|
|
411
412
|
await emailService.send({
|
|
412
413
|
to,
|
|
@@ -441,7 +442,7 @@ export async function executeEmitEvent(
|
|
|
441
442
|
}
|
|
442
443
|
|
|
443
444
|
// Get event bus from container
|
|
444
|
-
const eventBus = container.resolve('eventBus')
|
|
445
|
+
const eventBus = container.resolve<{ emitEvent: (event: string, payload: unknown, options?: unknown) => Promise<unknown> | unknown }>('eventBus')
|
|
445
446
|
|
|
446
447
|
if (!eventBus || typeof eventBus.emitEvent !== 'function') {
|
|
447
448
|
throw new Error('Event bus not available in container')
|
|
@@ -789,7 +790,7 @@ export async function executeCallApi(
|
|
|
789
790
|
const { withOnetimeApiKey } = await import('../../api_keys/services/apiKeyService')
|
|
790
791
|
|
|
791
792
|
// 4. Get EntityManager from container (for correct type)
|
|
792
|
-
const apiKeyEm = container.resolve('em')
|
|
793
|
+
const apiKeyEm = container.resolve<PostgreSqlEntityManager>('em')
|
|
793
794
|
|
|
794
795
|
// 5. Resolve the roles that the one-time API key will inherit.
|
|
795
796
|
//
|