mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-05 15:57:58 +00:00
16 lines
445 B
TypeScript
16 lines
445 B
TypeScript
![]() |
import { IDatasetRetention } from 'datahub-web/typings/api/datasets/retention';
|
||
|
import { decodeUrn } from '@datahub/utils/validators/urn';
|
||
|
|
||
|
/**
|
||
|
* 'News' a IDatasetRetention instance with the provided dataset urn
|
||
|
* @param {string} urn
|
||
|
* @returns {IDatasetRetention}
|
||
|
*/
|
||
|
const retentionObjectFactory = (urn: string): IDatasetRetention => ({
|
||
|
datasetUrn: decodeUrn(urn),
|
||
|
purgeNote: '',
|
||
|
purgeType: ''
|
||
|
});
|
||
|
|
||
|
export { retentionObjectFactory };
|