export.js
//Get package object - package label replacement
Get package object - package label replacement
Get package object - package label replacement
function packageObject() {
	var type = "";
	switch (currentExport._type) {
		case "completeAggregate":
			type = "AGGREGATE";
			break;
		case "custom":
			type = "CUSTOM";
			break;
		case "dashboardAggregate":
			type = "DASHBOARD";
			break;
		case "tracker":
			type = "TRACKER";
			break;
	}
	let locale = 'en';
	return {
		DHIS2Build: currentExport._system.revision,
		DHIS2Version: currentExport._system.version,
		code: currentExport._code,
		lastUpdated: utils.getLastUpdated(metaData),
		locale: locale,
		name: `${currentExport._code}_${type}_V${currentExport._version}_${currentExport._system.version}-${locale}`,
		type: type,
		version: currentExport._version
	};
}
function packageObject ( ) { var type = "" ; switch ( currentExport . _type ) { case "completeAggregate" : type = "AGGREGATE" ; break ; case "custom" : type = "CUSTOM" ; break ; case "dashboardAggregate" : type = "DASHBOARD" ; break ; case "tracker" : type = "TRACKER" ; break ; } let locale = 'en' ; return { DHIS2Build : currentExport . _system . revision , DHIS2Version : currentExport . _system . version , code : currentExport . _code , lastUpdated : utils . getLastUpdated ( metaData ) , locale : locale , name : ` ${ currentExport . _code } ${ type } ${ currentExport . _version } ${ currentExport . _system . version } ${ locale } ` , type : type , version : currentExport . _version } ; }
Get package object - package label replacement
Get package object - package label replacement