@senior-agronegocio/angular-components 0.0.9874 → 0.0.9875

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3884,7 +3884,7 @@
3884
3884
  return AgroPlatformUtils.getCurrentTenantLocale();
3885
3885
  };
3886
3886
  /**
3887
- * Retorna o usuário logado
3887
+ * Retorna o nome completo do usuário logado
3888
3888
  * Caso contrário, retorna uma instância de Error
3889
3889
  * @returns string || null
3890
3890
  */
@@ -3892,6 +3892,16 @@
3892
3892
  var name = AgroPlatformUtils.getTokenField("fullName");
3893
3893
  return name || null;
3894
3894
  };
3895
+ /**
3896
+ * Retorna o nome de usuário logado
3897
+ * Ex: admin@tenant.com.br
3898
+ * Caso contrário, retorna uma instância de Error
3899
+ * @returns string || null
3900
+ */
3901
+ AgroPlatformUtils.getCurrentUserUsername = function () {
3902
+ var username = AgroPlatformUtils.getTokenField("username");
3903
+ return username || null;
3904
+ };
3895
3905
  /**
3896
3906
  * Retorna o e-mail do usuário logado
3897
3907
  * Caso contrário, retorna uma instância de Error