@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.
@@ -3708,7 +3708,7 @@ var AgroPlatformUtils = /** @class */ (function () {
3708
3708
  return AgroPlatformUtils.getCurrentTenantLocale();
3709
3709
  };
3710
3710
  /**
3711
- * Retorna o usuário logado
3711
+ * Retorna o nome completo do usuário logado
3712
3712
  * Caso contrário, retorna uma instância de Error
3713
3713
  * @returns string || null
3714
3714
  */
@@ -3716,6 +3716,16 @@ var AgroPlatformUtils = /** @class */ (function () {
3716
3716
  var name = AgroPlatformUtils.getTokenField("fullName");
3717
3717
  return name || null;
3718
3718
  };
3719
+ /**
3720
+ * Retorna o nome de usuário logado
3721
+ * Ex: admin@tenant.com.br
3722
+ * Caso contrário, retorna uma instância de Error
3723
+ * @returns string || null
3724
+ */
3725
+ AgroPlatformUtils.getCurrentUserUsername = function () {
3726
+ var username = AgroPlatformUtils.getTokenField("username");
3727
+ return username || null;
3728
+ };
3719
3729
  /**
3720
3730
  * Retorna o e-mail do usuário logado
3721
3731
  * Caso contrário, retorna uma instância de Error