@open-mercato/core 0.9.1-develop.7519.1.38f51f8dbb → 0.9.1-develop.7536.1.f9a5776a07
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/auth/api/logout.js +14 -6
- package/dist/modules/auth/api/logout.js.map +2 -2
- package/dist/modules/auth/api/session/refresh.js +6 -1
- package/dist/modules/auth/api/session/refresh.js.map +2 -2
- package/dist/modules/catalog/ai-tools/mutation-pack.js +10 -5
- package/dist/modules/catalog/ai-tools/mutation-pack.js.map +2 -2
- package/dist/modules/catalog/ai-tools/types.js.map +2 -2
- package/dist/modules/currencies/backend/currencies/[id]/page.js +5 -2
- package/dist/modules/currencies/backend/currencies/[id]/page.js.map +2 -2
- package/dist/modules/currencies/commands/currencies.js +399 -137
- package/dist/modules/currencies/commands/currencies.js.map +2 -2
- package/dist/modules/currencies/lib/seeds.js +2 -0
- package/dist/modules/currencies/lib/seeds.js.map +2 -2
- package/dist/modules/customer_accounts/api/login.js +14 -7
- package/dist/modules/customer_accounts/api/login.js.map +2 -2
- package/dist/modules/customer_accounts/services/customerUserService.js +10 -10
- package/dist/modules/customer_accounts/services/customerUserService.js.map +2 -2
- package/dist/modules/customers/commands/companies.js +10 -3
- package/dist/modules/customers/commands/companies.js.map +2 -2
- package/dist/modules/customers/commands/interactionRestoreDetails.js +75 -0
- package/dist/modules/customers/commands/interactionRestoreDetails.js.map +7 -0
- package/dist/modules/customers/commands/people.js +10 -3
- package/dist/modules/customers/commands/people.js.map +2 -2
- package/dist/modules/forms/api/distributions/[distributionId]/invitations/[invitationId]/route.js +1 -1
- package/dist/modules/forms/api/distributions/[distributionId]/invitations/[invitationId]/route.js.map +1 -1
- package/dist/modules/forms/api/form-submissions/[id]/submit/route.js +12 -2
- package/dist/modules/forms/api/form-submissions/[id]/submit/route.js.map +2 -2
- package/dist/modules/forms/api/form-submissions/route.js +16 -1
- package/dist/modules/forms/api/form-submissions/route.js.map +2 -2
- package/dist/modules/forms/api/public/submissions/[id]/submit/route.js +6 -1
- package/dist/modules/forms/api/public/submissions/[id]/submit/route.js.map +2 -2
- package/dist/modules/forms/api/runtime-helpers.js +16 -0
- package/dist/modules/forms/api/runtime-helpers.js.map +2 -2
- package/dist/modules/forms/data/validators.js.map +2 -2
- package/dist/modules/forms/lib/portal-subject-policy.js +17 -0
- package/dist/modules/forms/lib/portal-subject-policy.js.map +7 -0
- package/dist/modules/forms/lib/runtime-principal.js +27 -10
- package/dist/modules/forms/lib/runtime-principal.js.map +2 -2
- package/dist/modules/forms/services/distribution-service.js +35 -13
- package/dist/modules/forms/services/distribution-service.js.map +2 -2
- package/dist/modules/forms/services/submission-service.js +4 -0
- package/dist/modules/forms/services/submission-service.js.map +2 -2
- package/dist/modules/staff/commands/leave-requests.js +54 -24
- package/dist/modules/staff/commands/leave-requests.js.map +2 -2
- package/dist/modules/warranty_claims/api/portal/attachments/route.js +19 -7
- package/dist/modules/warranty_claims/api/portal/attachments/route.js.map +2 -2
- package/dist/modules/warranty_claims/commands/claims.js +1 -1
- package/dist/modules/warranty_claims/commands/claims.js.map +2 -2
- package/dist/modules/warranty_claims/subscribers/return-shipment-tracking.js +6 -6
- package/dist/modules/warranty_claims/subscribers/return-shipment-tracking.js.map +2 -2
- package/dist/modules/wms/commands/inventory-actions.js +19 -3
- package/dist/modules/wms/commands/inventory-actions.js.map +2 -2
- package/dist/modules/workflows/lib/async-activity-wait.js +43 -0
- package/dist/modules/workflows/lib/async-activity-wait.js.map +7 -0
- package/dist/modules/workflows/lib/parallel-handler.js +20 -14
- package/dist/modules/workflows/lib/parallel-handler.js.map +2 -2
- package/dist/modules/workflows/lib/workflow-executor.js +21 -23
- package/dist/modules/workflows/lib/workflow-executor.js.map +2 -2
- package/package.json +7 -7
- package/src/modules/auth/api/logout.ts +15 -6
- package/src/modules/auth/api/session/refresh.ts +6 -1
- package/src/modules/catalog/ai-tools/mutation-pack.ts +14 -5
- package/src/modules/catalog/ai-tools/types.ts +1 -0
- package/src/modules/currencies/backend/currencies/[id]/page.tsx +5 -1
- package/src/modules/currencies/commands/currencies.ts +475 -168
- package/src/modules/currencies/i18n/de.json +4 -0
- package/src/modules/currencies/i18n/en.json +4 -0
- package/src/modules/currencies/i18n/es.json +4 -0
- package/src/modules/currencies/i18n/ko.json +4 -0
- package/src/modules/currencies/i18n/pl.json +4 -0
- package/src/modules/currencies/lib/seeds.ts +2 -0
- package/src/modules/customer_accounts/api/login.ts +15 -7
- package/src/modules/customer_accounts/services/customerUserService.ts +34 -10
- package/src/modules/customers/commands/companies.ts +16 -4
- package/src/modules/customers/commands/interactionRestoreDetails.ts +110 -0
- package/src/modules/customers/commands/people.ts +16 -4
- package/src/modules/forms/api/distributions/[distributionId]/invitations/[invitationId]/route.ts +1 -1
- package/src/modules/forms/api/form-submissions/[id]/submit/route.ts +16 -3
- package/src/modules/forms/api/form-submissions/route.ts +21 -2
- package/src/modules/forms/api/public/submissions/[id]/submit/route.ts +7 -0
- package/src/modules/forms/api/runtime-helpers.ts +16 -0
- package/src/modules/forms/data/validators.ts +2 -1
- package/src/modules/forms/i18n/de.json +1 -0
- package/src/modules/forms/i18n/en.json +1 -0
- package/src/modules/forms/i18n/es.json +1 -0
- package/src/modules/forms/i18n/ko.json +1 -0
- package/src/modules/forms/i18n/pl.json +1 -0
- package/src/modules/forms/lib/portal-subject-policy.ts +42 -0
- package/src/modules/forms/lib/runtime-principal.ts +35 -11
- package/src/modules/forms/services/distribution-service.ts +35 -13
- package/src/modules/forms/services/submission-service.ts +12 -0
- package/src/modules/staff/commands/leave-requests.ts +54 -23
- package/src/modules/staff/i18n/de.json +2 -0
- package/src/modules/staff/i18n/en.json +2 -0
- package/src/modules/staff/i18n/es.json +2 -0
- package/src/modules/staff/i18n/ko.json +2 -0
- package/src/modules/staff/i18n/pl.json +2 -0
- package/src/modules/warranty_claims/api/portal/attachments/route.ts +20 -8
- package/src/modules/warranty_claims/commands/claims.ts +1 -1
- package/src/modules/warranty_claims/subscribers/return-shipment-tracking.ts +5 -5
- package/src/modules/wms/commands/inventory-actions.ts +30 -10
- package/src/modules/workflows/lib/async-activity-wait.ts +71 -0
- package/src/modules/workflows/lib/parallel-handler.ts +24 -15
- package/src/modules/workflows/lib/workflow-executor.ts +24 -27
|
@@ -659,6 +659,16 @@ function mediaLabel(row: Attachment): string {
|
|
|
659
659
|
return row.id
|
|
660
660
|
}
|
|
661
661
|
|
|
662
|
+
function mediaUpdatePatch(entry: {
|
|
663
|
+
altText?: string
|
|
664
|
+
caption?: string
|
|
665
|
+
}): { altText?: string; caption?: string } {
|
|
666
|
+
return {
|
|
667
|
+
...(entry.altText !== undefined ? { altText: entry.altText } : {}),
|
|
668
|
+
...(entry.caption !== undefined ? { caption: entry.caption } : {}),
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
|
|
662
672
|
const updateProductMediaDescriptionsTool: CatalogAiToolDefinition = {
|
|
663
673
|
name: 'catalog.update_product_media_descriptions',
|
|
664
674
|
displayName: 'Update product media descriptions',
|
|
@@ -678,12 +688,14 @@ const updateProductMediaDescriptionsTool: CatalogAiToolDefinition = {
|
|
|
678
688
|
for (const entry of input.mediaUpdates) {
|
|
679
689
|
const media = await loadProductMediaForScope(em, ctx, tenantId, entry.mediaId)
|
|
680
690
|
if (!media) continue
|
|
691
|
+
const before = mediaSnapshot(media)
|
|
681
692
|
rows.push({
|
|
682
693
|
recordId: media.id,
|
|
683
694
|
entityType: 'catalog.product_media',
|
|
684
695
|
label: mediaLabel(media),
|
|
685
696
|
recordVersion: recordVersionFromUpdatedAt(media.createdAt ?? null),
|
|
686
|
-
before
|
|
697
|
+
before,
|
|
698
|
+
after: { ...before, ...mediaUpdatePatch(entry) },
|
|
687
699
|
})
|
|
688
700
|
}
|
|
689
701
|
return rows
|
|
@@ -712,10 +724,7 @@ const updateProductMediaDescriptionsTool: CatalogAiToolDefinition = {
|
|
|
712
724
|
const before = mediaSnapshot(media)
|
|
713
725
|
touched.push({
|
|
714
726
|
row: media,
|
|
715
|
-
patch:
|
|
716
|
-
...(entry.altText !== undefined ? { altText: entry.altText } : {}),
|
|
717
|
-
...(entry.caption !== undefined ? { caption: entry.caption } : {}),
|
|
718
|
-
},
|
|
727
|
+
patch: mediaUpdatePatch(entry),
|
|
719
728
|
before,
|
|
720
729
|
})
|
|
721
730
|
}
|
|
@@ -75,6 +75,8 @@ export default function EditCurrencyPage({ params }: { params?: { id?: string }
|
|
|
75
75
|
loadCurrency()
|
|
76
76
|
}, [params, t])
|
|
77
77
|
|
|
78
|
+
const isCurrentBase = currency?.isBase === true
|
|
79
|
+
|
|
78
80
|
const groups = React.useMemo<CrudFormGroup[]>(
|
|
79
81
|
() => [
|
|
80
82
|
{
|
|
@@ -136,6 +138,8 @@ export default function EditCurrencyPage({ params }: { params?: { id?: string }
|
|
|
136
138
|
id: 'isBase',
|
|
137
139
|
type: 'checkbox',
|
|
138
140
|
label: t('currencies.form.field.isBase'),
|
|
141
|
+
disabled: isCurrentBase,
|
|
142
|
+
description: isCurrentBase ? t('currencies.form.field.isBaseLocked') : undefined,
|
|
139
143
|
},
|
|
140
144
|
{
|
|
141
145
|
id: 'isActive',
|
|
@@ -145,7 +149,7 @@ export default function EditCurrencyPage({ params }: { params?: { id?: string }
|
|
|
145
149
|
],
|
|
146
150
|
},
|
|
147
151
|
],
|
|
148
|
-
[t]
|
|
152
|
+
[t, isCurrentBase]
|
|
149
153
|
)
|
|
150
154
|
|
|
151
155
|
const handleDelete = React.useCallback(async () => {
|