cat-qw-lib 0.3.6 → 0.3.8

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.
@@ -1516,6 +1516,7 @@ class BaseModel {
1516
1516
 
1517
1517
  class ERROR {
1518
1518
  static ERROR = "Error";
1519
+ static VALIDATE_API_FAILED = "API validation failed. Please review the input and try again.";
1519
1520
  }
1520
1521
 
1521
1522
  class SessionService {
@@ -1748,6 +1749,10 @@ class Credentials {
1748
1749
  password;
1749
1750
  }
1750
1751
 
1752
+ class MESSAGE {
1753
+ static VALIDATE_SUCCESS_MESSAGE = "API validation completed successfully! Your API is now ready for use.";
1754
+ }
1755
+
1751
1756
  class LISTCONFIG {
1752
1757
  static APICONFIG = [
1753
1758
  {
@@ -1864,14 +1869,14 @@ class ApiAdminFormComponent extends BaseFormComponent {
1864
1869
  next: (res) => {
1865
1870
  if (res) {
1866
1871
  this.isDisable = SHARED.FALSE;
1867
- this.messages = [{ severity: SHARED.SUCCESS, detail: res.message }];
1872
+ this.messages = [{ severity: SHARED.SUCCESS, detail: MESSAGE.VALIDATE_SUCCESS_MESSAGE }];
1868
1873
  setTimeout(() => {
1869
1874
  this.messages = SHARED.EMPTYARRAY;
1870
1875
  }, 3000);
1871
1876
  }
1872
1877
  },
1873
1878
  error: (error) => {
1874
- this.messages = [{ severity: SHARED.ERROR, detail: error.error.message }];
1879
+ this.messages = [{ severity: SHARED.ERROR, detail: error.error.message ?? ERROR.VALIDATE_API_FAILED }];
1875
1880
  setTimeout(() => {
1876
1881
  this.messages = SHARED.EMPTYARRAY;
1877
1882
  }, 3000);