@domain-first/project-structure 1.1.1 → 1.1.3
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.
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -532,7 +532,7 @@ const scaffoldNewCommand = async (boundedContextFolder)=>{
|
|
|
532
532
|
return;
|
|
533
533
|
}
|
|
534
534
|
if (ConfigFile.Instance.data.domainFirstPackages.includes('@domain-first/handlers')) commandsFolder.createFile(`${naming.fileName}-command.ts`, `
|
|
535
|
-
import { defineHandler
|
|
535
|
+
import { defineHandler } from '@domain-first/handlers'
|
|
536
536
|
|
|
537
537
|
export class ${naming.ClassName}Command {
|
|
538
538
|
static inputSchema = {}
|
|
@@ -685,7 +685,7 @@ export class ${endpointNaming.ClassName} {
|
|
|
685
685
|
|
|
686
686
|
get handle() {
|
|
687
687
|
return this.endpointGenerator(this.logic, {
|
|
688
|
-
route: { method: '${method}', path: ['${boundedContextFolder.name}
|
|
688
|
+
route: { method: '${method}', path: ['${boundedContextFolder.name}', '${controller}'${path.length ? `, ${path.map((x)=>`'${x}'`).join(', ')}` : ''}] },
|
|
689
689
|
tags: ['${boundedContextFolder.name}: ${controller}'],
|
|
690
690
|
})
|
|
691
691
|
}
|
|
@@ -826,7 +826,7 @@ const scaffoldNewQuery = async (boundedContextFolder)=>{
|
|
|
826
826
|
return;
|
|
827
827
|
}
|
|
828
828
|
if (ConfigFile.Instance.data.domainFirstPackages.includes('@domain-first/handlers')) queriesFolder.createFile(`${naming.fileName}-query.ts`, `
|
|
829
|
-
import { defineHandler
|
|
829
|
+
import { defineHandler } from '@domain-first/handlers'
|
|
830
830
|
|
|
831
831
|
export class ${naming.ClassName}Query {
|
|
832
832
|
static inputSchema = {}
|
package/dist/index.js
CHANGED
|
@@ -502,7 +502,7 @@ const scaffoldNewCommand = async (boundedContextFolder)=>{
|
|
|
502
502
|
return;
|
|
503
503
|
}
|
|
504
504
|
if (ConfigFile.Instance.data.domainFirstPackages.includes('@domain-first/handlers')) commandsFolder.createFile(`${naming.fileName}-command.ts`, `
|
|
505
|
-
import { defineHandler
|
|
505
|
+
import { defineHandler } from '@domain-first/handlers'
|
|
506
506
|
|
|
507
507
|
export class ${naming.ClassName}Command {
|
|
508
508
|
static inputSchema = {}
|
|
@@ -655,7 +655,7 @@ export class ${endpointNaming.ClassName} {
|
|
|
655
655
|
|
|
656
656
|
get handle() {
|
|
657
657
|
return this.endpointGenerator(this.logic, {
|
|
658
|
-
route: { method: '${method}', path: ['${boundedContextFolder.name}
|
|
658
|
+
route: { method: '${method}', path: ['${boundedContextFolder.name}', '${controller}'${path.length ? `, ${path.map((x)=>`'${x}'`).join(', ')}` : ''}] },
|
|
659
659
|
tags: ['${boundedContextFolder.name}: ${controller}'],
|
|
660
660
|
})
|
|
661
661
|
}
|
|
@@ -796,7 +796,7 @@ const scaffoldNewQuery = async (boundedContextFolder)=>{
|
|
|
796
796
|
return;
|
|
797
797
|
}
|
|
798
798
|
if (ConfigFile.Instance.data.domainFirstPackages.includes('@domain-first/handlers')) queriesFolder.createFile(`${naming.fileName}-query.ts`, `
|
|
799
|
-
import { defineHandler
|
|
799
|
+
import { defineHandler } from '@domain-first/handlers'
|
|
800
800
|
|
|
801
801
|
export class ${naming.ClassName}Query {
|
|
802
802
|
static inputSchema = {}
|