@plyaz/types 1.13.4 → 1.13.6

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.
@@ -720,7 +720,7 @@ var COMMON_STORAGE_TYPES = {
720
720
  DATABASE: "database"
721
721
  };
722
722
 
723
- // node_modules/.pnpm/@plyaz+config@1.6.5_@darraghor+eslint-plugin-nestjs-typed@6.9.3_@types+react@19.2.2_@typescri_x2zut4rwivkuvldn552zktqyt4/node_modules/@plyaz/config/dist/index.mjs
723
+ // node_modules/.pnpm/@plyaz+config@1.7.0_@darraghor+eslint-plugin-nestjs-typed@6.9.3_@types+react@19.2.2_@typescri_jlylpdixjp6vxjtx3yd6pjsxpe/node_modules/@plyaz/config/dist/index.mjs
724
724
  globalThis.process.env.NODE_ENV === "development";
725
725
  globalThis.process.env.NODE_ENV === "production";
726
726
  globalThis.process.env.NODE_ENV === "test";
@@ -873,7 +873,11 @@ var ERROR_CODES = {
873
873
  NOTIFICATION_TEMPLATE_RENDER_FAILED: "notification.template.render.failed",
874
874
  // General Notification
875
875
  NOTIFICATION_UNKNOWN_ERROR: "notification.unknown.error",
876
- NOTIFICATION_INITIALIZATION_FAILED: "notification.initialization.failed"
876
+ NOTIFICATION_INITIALIZATION_FAILED: "notification.initialization.failed",
877
+ // ===== Errors Package Errors =====
878
+ ERROR_SYSTEM_NOT_INITIALIZED: "error.system.not.initialized",
879
+ EVENT_FACTORY_NOT_REGISTERED: "error.event.factory.not.registered",
880
+ DATABASE_ERROR: "error.database"
877
881
  };
878
882
  var API_ERROR_CODES = {
879
883
  CLIENT_INITIALIZATION_FAILED: ERROR_CODES.CLIENT_INITIALIZATION_FAILED,
@@ -1814,6 +1818,31 @@ var ERROR_DEFINITIONS = {
1814
1818
  severity: ERROR_SEVERITY.Critical,
1815
1819
  retryable: false,
1816
1820
  userMessage: "errors.notification.initialization_failed"
1821
+ },
1822
+ // ===== Errors Package Errors =====
1823
+ [ERROR_CODES.ERROR_SYSTEM_NOT_INITIALIZED]: {
1824
+ code: ERROR_CODES.ERROR_SYSTEM_NOT_INITIALIZED,
1825
+ status: Ue.INTERNAL_SERVER_ERROR,
1826
+ category: ERROR_CATEGORY.Configuration,
1827
+ severity: ERROR_SEVERITY.Critical,
1828
+ retryable: false,
1829
+ userMessage: "errors.system.not_initialized"
1830
+ },
1831
+ [ERROR_CODES.EVENT_FACTORY_NOT_REGISTERED]: {
1832
+ code: ERROR_CODES.EVENT_FACTORY_NOT_REGISTERED,
1833
+ status: Ue.INTERNAL_SERVER_ERROR,
1834
+ category: ERROR_CATEGORY.Configuration,
1835
+ severity: ERROR_SEVERITY.High,
1836
+ retryable: false,
1837
+ userMessage: "errors.event.factory.not_registered"
1838
+ },
1839
+ [ERROR_CODES.DATABASE_ERROR]: {
1840
+ code: ERROR_CODES.DATABASE_ERROR,
1841
+ status: Ue.INTERNAL_SERVER_ERROR,
1842
+ category: ERROR_CATEGORY.Server,
1843
+ severity: ERROR_SEVERITY.High,
1844
+ retryable: false,
1845
+ userMessage: "errors.database"
1817
1846
  }
1818
1847
  };
1819
1848