@plyaz/types 1.13.4 → 1.13.5

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,8 @@ 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";
119
121
  };
120
122
  /**
121
123
  * 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,10 @@ 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"
378
381
  };
379
382
  var API_ERROR_CODES = {
380
383
  CLIENT_INITIALIZATION_FAILED: ERROR_CODES.CLIENT_INITIALIZATION_FAILED,
@@ -1341,6 +1344,23 @@ var ERROR_DEFINITIONS = {
1341
1344
  severity: ERROR_SEVERITY.Critical,
1342
1345
  retryable: false,
1343
1346
  userMessage: "errors.notification.initialization_failed"
1347
+ },
1348
+ // ===== Errors Package Errors =====
1349
+ [ERROR_CODES.ERROR_SYSTEM_NOT_INITIALIZED]: {
1350
+ code: ERROR_CODES.ERROR_SYSTEM_NOT_INITIALIZED,
1351
+ status: Ue.INTERNAL_SERVER_ERROR,
1352
+ category: ERROR_CATEGORY.Configuration,
1353
+ severity: ERROR_SEVERITY.Critical,
1354
+ retryable: false,
1355
+ userMessage: "errors.system.not_initialized"
1356
+ },
1357
+ [ERROR_CODES.EVENT_FACTORY_NOT_REGISTERED]: {
1358
+ code: ERROR_CODES.EVENT_FACTORY_NOT_REGISTERED,
1359
+ status: Ue.INTERNAL_SERVER_ERROR,
1360
+ category: ERROR_CATEGORY.Configuration,
1361
+ severity: ERROR_SEVERITY.High,
1362
+ retryable: false,
1363
+ userMessage: "errors.event.factory.not_registered"
1344
1364
  }
1345
1365
  };
1346
1366