@atlashub/smartstack-cli 3.4.0 → 3.5.0

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.
@@ -39601,7 +39601,7 @@ function resolveHierarchy(navRoute) {
39601
39601
  } else if (segments.length === 1) {
39602
39602
  domainPath = context;
39603
39603
  }
39604
- const infraPath = module || "";
39604
+ const infraPath = domainPath;
39605
39605
  const controllerArea = context;
39606
39606
  return { context, application, module, domainPath, infraPath, controllerArea };
39607
39607
  }
@@ -39757,7 +39757,7 @@ async function scaffoldFeature(name, options, structure, config2, result, dryRun
39757
39757
  async function scaffoldService(name, options, structure, config2, result, dryRun = false) {
39758
39758
  const hierarchy = resolveHierarchy(options?.navRoute);
39759
39759
  const interfaceNamespace = options?.namespace || `${config2.conventions.namespaces.application}.Common.Interfaces`;
39760
- const implNamespace = hierarchy.infraPath ? `${config2.conventions.namespaces.infrastructure}.Services.${hierarchy.infraPath}` : `${config2.conventions.namespaces.infrastructure}.Services`;
39760
+ const implNamespace = hierarchy.infraPath ? `${config2.conventions.namespaces.infrastructure}.Services.${hierarchy.infraPath.replace(/[\\/]/g, ".")}` : `${config2.conventions.namespaces.infrastructure}.Services`;
39761
39761
  const methods = options?.methods || ["GetByIdAsync", "GetAllAsync", "CreateAsync", "UpdateAsync", "DeleteAsync"];
39762
39762
  const interfaceTemplate = `using System.Threading;
39763
39763
  using System.Threading.Tasks;
@@ -39971,7 +39971,7 @@ public class {{name}} : BaseEntity, ITenantEntity
39971
39971
  using Microsoft.EntityFrameworkCore.Metadata.Builders;
39972
39972
  using {{domainNamespace}};
39973
39973
 
39974
- namespace {{infrastructureNamespace}}.Persistence.Configurations;
39974
+ namespace {{infrastructureNamespace}}.Persistence.Configurations{{#if configNamespaceSuffix}}.{{configNamespaceSuffix}}{{/if}};
39975
39975
 
39976
39976
  /// <summary>
39977
39977
  /// EF Core configuration for {{name}}
@@ -40065,6 +40065,7 @@ public class {{name}}Configuration : IEntityTypeConfiguration<{{name}}>
40065
40065
  tablePrefix,
40066
40066
  schema,
40067
40067
  infrastructureNamespace: config2.conventions.namespaces.infrastructure,
40068
+ configNamespaceSuffix: hierarchy.infraPath ? hierarchy.infraPath.replace(/[\\/]/g, ".") : "",
40068
40069
  domainNamespace: config2.conventions.namespaces.domain
40069
40070
  };
40070
40071
  const entityContent = import_handlebars.default.compile(entityTemplate)(context);