@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.
@@ -116,6 +116,9 @@ export declare const ERROR_CODES: {
116
116
  readonly NOTIFICATION_TEMPLATE_RENDER_FAILED: "notification.template.render.failed";
117
117
  readonly NOTIFICATION_UNKNOWN_ERROR: "notification.unknown.error";
118
118
  readonly NOTIFICATION_INITIALIZATION_FAILED: "notification.initialization.failed";
119
+ readonly ERROR_SYSTEM_NOT_INITIALIZED: "error.system.not.initialized";
120
+ readonly EVENT_FACTORY_NOT_REGISTERED: "error.event.factory.not.registered";
121
+ readonly DATABASE_ERROR: "error.database";
119
122
  };
120
123
  /**
121
124
  * Type for all error code values
@@ -221,7 +221,7 @@ var COMMON_STORAGE_TYPES = {
221
221
  DATABASE: "database"
222
222
  };
223
223
 
224
- // 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
224
+ // 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
225
225
  globalThis.process.env.NODE_ENV === "development";
226
226
  globalThis.process.env.NODE_ENV === "production";
227
227
  globalThis.process.env.NODE_ENV === "test";
@@ -374,7 +374,11 @@ var ERROR_CODES = {
374
374
  NOTIFICATION_TEMPLATE_RENDER_FAILED: "notification.template.render.failed",
375
375
  // General Notification
376
376
  NOTIFICATION_UNKNOWN_ERROR: "notification.unknown.error",
377
- NOTIFICATION_INITIALIZATION_FAILED: "notification.initialization.failed"
377
+ NOTIFICATION_INITIALIZATION_FAILED: "notification.initialization.failed",
378
+ // ===== Errors Package Errors =====
379
+ ERROR_SYSTEM_NOT_INITIALIZED: "error.system.not.initialized",
380
+ EVENT_FACTORY_NOT_REGISTERED: "error.event.factory.not.registered",
381
+ DATABASE_ERROR: "error.database"
378
382
  };
379
383
  var API_ERROR_CODES = {
380
384
  CLIENT_INITIALIZATION_FAILED: ERROR_CODES.CLIENT_INITIALIZATION_FAILED,
@@ -1341,6 +1345,31 @@ var ERROR_DEFINITIONS = {
1341
1345
  severity: ERROR_SEVERITY.Critical,
1342
1346
  retryable: false,
1343
1347
  userMessage: "errors.notification.initialization_failed"
1348
+ },
1349
+ // ===== Errors Package Errors =====
1350
+ [ERROR_CODES.ERROR_SYSTEM_NOT_INITIALIZED]: {
1351
+ code: ERROR_CODES.ERROR_SYSTEM_NOT_INITIALIZED,
1352
+ status: Ue.INTERNAL_SERVER_ERROR,
1353
+ category: ERROR_CATEGORY.Configuration,
1354
+ severity: ERROR_SEVERITY.Critical,
1355
+ retryable: false,
1356
+ userMessage: "errors.system.not_initialized"
1357
+ },
1358
+ [ERROR_CODES.EVENT_FACTORY_NOT_REGISTERED]: {
1359
+ code: ERROR_CODES.EVENT_FACTORY_NOT_REGISTERED,
1360
+ status: Ue.INTERNAL_SERVER_ERROR,
1361
+ category: ERROR_CATEGORY.Configuration,
1362
+ severity: ERROR_SEVERITY.High,
1363
+ retryable: false,
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"
1344
1373
  }
1345
1374
  };
1346
1375