@plyaz/types 1.13.5 → 1.13.7

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.
@@ -118,6 +118,7 @@ export declare const ERROR_CODES: {
118
118
  readonly NOTIFICATION_INITIALIZATION_FAILED: "notification.initialization.failed";
119
119
  readonly ERROR_SYSTEM_NOT_INITIALIZED: "error.system.not.initialized";
120
120
  readonly EVENT_FACTORY_NOT_REGISTERED: "error.event.factory.not.registered";
121
+ readonly DATABASE_ERROR: "error.database";
121
122
  };
122
123
  /**
123
124
  * Type for all error code values
@@ -377,7 +377,8 @@ var ERROR_CODES = {
377
377
  NOTIFICATION_INITIALIZATION_FAILED: "notification.initialization.failed",
378
378
  // ===== Errors Package Errors =====
379
379
  ERROR_SYSTEM_NOT_INITIALIZED: "error.system.not.initialized",
380
- EVENT_FACTORY_NOT_REGISTERED: "error.event.factory.not.registered"
380
+ EVENT_FACTORY_NOT_REGISTERED: "error.event.factory.not.registered",
381
+ DATABASE_ERROR: "error.database"
381
382
  };
382
383
  var API_ERROR_CODES = {
383
384
  CLIENT_INITIALIZATION_FAILED: ERROR_CODES.CLIENT_INITIALIZATION_FAILED,
@@ -1361,6 +1362,14 @@ var ERROR_DEFINITIONS = {
1361
1362
  severity: ERROR_SEVERITY.High,
1362
1363
  retryable: false,
1363
1364
  userMessage: "errors.event.factory.not_registered"
1365
+ },
1366
+ [ERROR_CODES.DATABASE_ERROR]: {
1367
+ code: ERROR_CODES.DATABASE_ERROR,
1368
+ status: Ue.INTERNAL_SERVER_ERROR,
1369
+ category: ERROR_CATEGORY.Server,
1370
+ severity: ERROR_SEVERITY.High,
1371
+ retryable: false,
1372
+ userMessage: "errors.database"
1364
1373
  }
1365
1374
  };
1366
1375