@domain-first/project-structure 2.10.2 → 2.10.4
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/README.md +1 -1
- package/dist/index.cjs +8 -3
- package/dist/index.js +8 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -84,7 +84,7 @@ A bounded context groups a business area and its implementation. Within it, each
|
|
|
84
84
|
| `presentation/` | REST endpoints and presentation services. |
|
|
85
85
|
| `wiring/` | Factories that construct components and select implementations, when `@domain-first/wire` is enabled. |
|
|
86
86
|
|
|
87
|
-
The **Shared Layer** menu provides cross-context errors, entities and value objects, application ports, and application, infrastructure, and presentation services under `<rootFolder>/shared`.
|
|
87
|
+
The **Shared Layer** menu provides cross-context errors, entities and value objects, application ports, and domain, application, infrastructure, and presentation services under `<rootFolder>/shared`.
|
|
88
88
|
|
|
89
89
|
A project using handler and wiring integrations can grow into this structure:
|
|
90
90
|
|
package/dist/index.cjs
CHANGED
|
@@ -700,6 +700,8 @@ export const wire${naming.ClassName}Command = envBranchedWire({
|
|
|
700
700
|
import { defineHandler } from '@domain-first/handlers'
|
|
701
701
|
|
|
702
702
|
export class ${naming.ClassName}Command {
|
|
703
|
+
constructor() {}
|
|
704
|
+
|
|
703
705
|
static inputSchema = {}
|
|
704
706
|
static outputSchema = {}
|
|
705
707
|
|
|
@@ -716,7 +718,7 @@ export class ${naming.ClassName}Command {
|
|
|
716
718
|
'orchestration'
|
|
717
719
|
]).createFile(`${naming.fileName}-command.ts`, `
|
|
718
720
|
export class ${naming.ClassName}Command {
|
|
719
|
-
|
|
721
|
+
constructor() {}
|
|
720
722
|
}`.trim());
|
|
721
723
|
if (ConfigFile.Instance.data.domainFirstPackages.includes('@domain-first/wire')) boundedContextFolder.subitem([
|
|
722
724
|
'wiring',
|
|
@@ -1223,6 +1225,8 @@ export const wire${naming.ClassName}Query = envBranchedWire({
|
|
|
1223
1225
|
import { defineHandler } from '@domain-first/handlers'
|
|
1224
1226
|
|
|
1225
1227
|
export class ${naming.ClassName}Query {
|
|
1228
|
+
constructor() {}
|
|
1229
|
+
|
|
1226
1230
|
static inputSchema = {}
|
|
1227
1231
|
static outputSchema = {}
|
|
1228
1232
|
|
|
@@ -1239,7 +1243,7 @@ export class ${naming.ClassName}Query {
|
|
|
1239
1243
|
'orchestration'
|
|
1240
1244
|
]).createFile(`${naming.fileName}-query.ts`, `
|
|
1241
1245
|
export class ${naming.ClassName}Query {
|
|
1242
|
-
|
|
1246
|
+
constructor() {}
|
|
1243
1247
|
}`.trim());
|
|
1244
1248
|
if (ConfigFile.Instance.data.domainFirstPackages.includes('@domain-first/wire')) boundedContextFolder.subitem([
|
|
1245
1249
|
'wiring',
|
|
@@ -1626,7 +1630,8 @@ const main = async ()=>{
|
|
|
1626
1630
|
] : [
|
|
1627
1631
|
'New Entity',
|
|
1628
1632
|
'New Value Object',
|
|
1629
|
-
'Errors'
|
|
1633
|
+
'Errors',
|
|
1634
|
+
'New Service'
|
|
1630
1635
|
]
|
|
1631
1636
|
});
|
|
1632
1637
|
switch(operation){
|
package/dist/index.js
CHANGED
|
@@ -670,6 +670,8 @@ export const wire${naming.ClassName}Command = envBranchedWire({
|
|
|
670
670
|
import { defineHandler } from '@domain-first/handlers'
|
|
671
671
|
|
|
672
672
|
export class ${naming.ClassName}Command {
|
|
673
|
+
constructor() {}
|
|
674
|
+
|
|
673
675
|
static inputSchema = {}
|
|
674
676
|
static outputSchema = {}
|
|
675
677
|
|
|
@@ -686,7 +688,7 @@ export class ${naming.ClassName}Command {
|
|
|
686
688
|
'orchestration'
|
|
687
689
|
]).createFile(`${naming.fileName}-command.ts`, `
|
|
688
690
|
export class ${naming.ClassName}Command {
|
|
689
|
-
|
|
691
|
+
constructor() {}
|
|
690
692
|
}`.trim());
|
|
691
693
|
if (ConfigFile.Instance.data.domainFirstPackages.includes('@domain-first/wire')) boundedContextFolder.subitem([
|
|
692
694
|
'wiring',
|
|
@@ -1193,6 +1195,8 @@ export const wire${naming.ClassName}Query = envBranchedWire({
|
|
|
1193
1195
|
import { defineHandler } from '@domain-first/handlers'
|
|
1194
1196
|
|
|
1195
1197
|
export class ${naming.ClassName}Query {
|
|
1198
|
+
constructor() {}
|
|
1199
|
+
|
|
1196
1200
|
static inputSchema = {}
|
|
1197
1201
|
static outputSchema = {}
|
|
1198
1202
|
|
|
@@ -1209,7 +1213,7 @@ export class ${naming.ClassName}Query {
|
|
|
1209
1213
|
'orchestration'
|
|
1210
1214
|
]).createFile(`${naming.fileName}-query.ts`, `
|
|
1211
1215
|
export class ${naming.ClassName}Query {
|
|
1212
|
-
|
|
1216
|
+
constructor() {}
|
|
1213
1217
|
}`.trim());
|
|
1214
1218
|
if (ConfigFile.Instance.data.domainFirstPackages.includes('@domain-first/wire')) boundedContextFolder.subitem([
|
|
1215
1219
|
'wiring',
|
|
@@ -1596,7 +1600,8 @@ const main = async ()=>{
|
|
|
1596
1600
|
] : [
|
|
1597
1601
|
'New Entity',
|
|
1598
1602
|
'New Value Object',
|
|
1599
|
-
'Errors'
|
|
1603
|
+
'Errors',
|
|
1604
|
+
'New Service'
|
|
1600
1605
|
]
|
|
1601
1606
|
});
|
|
1602
1607
|
switch(operation){
|