feat: add product provider mappings
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-09 12:58:02 -04:00
parent bab4efc6ad
commit 4d3af37cd7
17 changed files with 253 additions and 3 deletions
+15
View File
@@ -0,0 +1,15 @@
export function toAdminProviderMappingDto(mapping) {
return {
id: mapping.id,
productId: mapping.productId,
providerId: mapping.providerId,
mappingType: mapping.mappingType,
externalIdentifier: mapping.externalIdentifier ?? null,
searchQuery: mapping.searchQuery ?? null,
sourceUrl: mapping.sourceUrl ?? null,
status: mapping.status,
metadata: mapping.metadata ?? {},
createdAt: mapping.createdAt instanceof Date ? mapping.createdAt.toISOString() : mapping.createdAt,
updatedAt: mapping.updatedAt instanceof Date ? mapping.updatedAt.toISOString() : mapping.updatedAt,
};
}