function validateId(settings) {
    return new Promise((resolve, reject) => {
        // Only string allowed is "live"
        if (settings.themeId === "live") {
            resolve();
        }
        const id = Number(settings.themeId);
        if (isNaN(id)) {
            reject(settings);
        }
        else {
            resolve();
        }
    });
}
/**
 * Validate theme_id used for the environment
 * @param settings Settings of theme_id and environment
 */
Validate theme_id used for the environment
@param settings Settings of theme_id and environment
Validate theme_id used for the environment @param settings Settings of theme_id and environment
function validateId(settings) {
    return new Promise((resolve, reject) => {
        if (settings.themeId === "live") {
            resolve();
        }
        const id = Number(settings.themeId);
        if (isNaN(id)) {
            reject(settings);
        }
        else {
            resolve();
        }
    });
}
function validateId ( settings ) { return new Promise ( ( resolve , reject ) => { if ( settings . themeId === "live" ) { resolve ( ) ; } const id = Number ( settings . themeId ) ; if ( isNaN ( id ) ) { reject ( settings ) ; } else { resolve ( ) ; } } ) ; }
Validate theme_id used for the environment
 @param settings Settings of theme_id and environment
Validate theme_id used for the environment @param settings Settings of theme_id and environment
// Only string allowed is "live"