function getTypesList(node) {
        $.ajax({
            url: './uibuilder/admin/nourl',
            method: 'GET',
            async: false,
            dataType: 'json',
            data: {
                cmd: 'getElements',
            },
            beforeSend: function(jqXHR) {
                const authTokens = RED.settings.get('auth-tokens')
                if (authTokens) {
                    jqXHR.setRequestHeader('Authorization', 'Bearer ' + authTokens.access_token)
                }
            },
            success: function(data) {
                log('[uib-element:onEditPrepare:getElTypes] Data updated successfully', data)
                elTypes = data
            },
        })
            .fail(function(_jqXHR, textStatus, errorThrown) {
                console.error( '[uib-element:onEditPrepare:getElTypes] Error ' + textStatus, errorThrown )
            })
    }
Get the list of available types via API call, updates elTypes
@param {*} node A node instance as seen from the Node-RED Editor