@gzl10/nexus-sdk 0.5.0 → 0.5.1

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +14 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -412,6 +412,8 @@ interface BaseEntityDefinition {
412
412
  fields: Record<string, FieldDefinition>;
413
413
  /** Autorización CASL */
414
414
  casl?: EntityCaslConfig;
415
+ /** Prefijo de ruta para montar (default: inferido de table) */
416
+ routePrefix?: string;
415
417
  }
416
418
  /**
417
419
  * Entidad de colección - CRUD completo (users, posts, orders)
@@ -451,6 +453,8 @@ interface SingleEntityDefinition {
451
453
  defaults?: Record<string, unknown>;
452
454
  /** Autorización CASL */
453
455
  casl?: EntityCaslConfig;
456
+ /** Prefijo de ruta para montar (default: inferido de key) */
457
+ routePrefix?: string;
454
458
  }
455
459
  /**
456
460
  * Entidad de referencia - Catálogos con CRUD admin (countries, currencies)
@@ -502,6 +506,8 @@ interface ActionEntityDefinition {
502
506
  handler?: (ctx: ModuleContext, input: unknown) => Promise<unknown>;
503
507
  /** Autorización CASL */
504
508
  casl?: EntityCaslConfig;
509
+ /** Prefijo de ruta para montar */
510
+ routePrefix?: string;
505
511
  }
506
512
  /**
507
513
  * Entidad externa - Datos de APIs externas (stripe_customers, github_repos)
@@ -533,6 +539,8 @@ interface ExternalEntityDefinition {
533
539
  };
534
540
  /** Autorización CASL */
535
541
  casl?: EntityCaslConfig;
542
+ /** Prefijo de ruta para montar */
543
+ routePrefix?: string;
536
544
  }
537
545
  /**
538
546
  * Entidad virtual - Orquestación de múltiples fuentes (unified_customers)
@@ -552,6 +560,8 @@ interface VirtualEntityDefinition {
552
560
  resolver?: (sources: Record<string, unknown[]>, ctx: ModuleContext) => unknown[] | Promise<unknown[]>;
553
561
  /** Autorización CASL */
554
562
  casl?: EntityCaslConfig;
563
+ /** Prefijo de ruta para montar */
564
+ routePrefix?: string;
555
565
  }
556
566
  /**
557
567
  * Entidad computed - KPIs, estadísticas, métricas calculadas
@@ -574,6 +584,8 @@ interface ComputedEntityDefinition {
574
584
  };
575
585
  /** Autorización CASL */
576
586
  casl?: EntityCaslConfig;
587
+ /** Prefijo de ruta para montar */
588
+ routePrefix?: string;
577
589
  }
578
590
  /**
579
591
  * Entidad view - Vista optimizada para lectura (projections, denormalizaciones)
@@ -595,6 +607,8 @@ interface ViewEntityDefinition {
595
607
  query?: string | ((db: Knex) => Knex.QueryBuilder);
596
608
  /** Autorización CASL */
597
609
  casl?: EntityCaslConfig;
610
+ /** Prefijo de ruta para montar */
611
+ routePrefix?: string;
598
612
  }
599
613
  /**
600
614
  * Entidad config - Configuración por módulo/tenant
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gzl10/nexus-sdk",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "SDK types for creating Nexus plugins and modules",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",