Backfill the completed acquisitions, sales, dashboard, pricing, search, public detail, worker, migration, contracts, validation, tests, and implementation-status changes into one verified application slice.
22 lines
665 B
JavaScript
22 lines
665 B
JavaScript
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,
|
|
};
|
|
}
|