@ddd-tool/domain-designer-generator 0.1.0-beta.3 → 0.1.0-beta.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.
- package/domain/define.d.ts +11 -3
- package/domain-plugin/generator-csharp-plugin.d.ts +6 -6
- package/domain-plugin/generator-java-plugin.d.ts +8 -8
- package/index.js +1736 -1606
- package/package.json +1 -1
package/domain/define.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare class CodeFile {
|
|
|
24
24
|
getParentDir(): string[];
|
|
25
25
|
setParentDir(parentDir: string[]): void;
|
|
26
26
|
}
|
|
27
|
-
export interface CodeSnippets<TYPE extends 'Info' | 'Agg' | 'AggImpl' | 'Command' | 'CommandHandler' | 'Event' | 'FacadeCommand' | 'ReadMode'> {
|
|
27
|
+
export interface CodeSnippets<TYPE extends 'Info' | 'Agg' | 'AggImpl' | 'Command' | 'CommandHandler' | 'Event' | 'FacadeCommand' | 'FacadeCommandHandler' | 'ReadMode'> {
|
|
28
28
|
type: TYPE;
|
|
29
29
|
imports: Set<string>;
|
|
30
30
|
content: string;
|
|
@@ -33,15 +33,23 @@ export declare namespace java {
|
|
|
33
33
|
enum JavaGeneratorAddition {
|
|
34
34
|
Lombok = "Lombok",
|
|
35
35
|
LombokBuilder = "LombokBuilder",
|
|
36
|
-
|
|
36
|
+
RecordValueObject = "RecordValueObject",
|
|
37
37
|
CommandHandler = "CommandHandler",
|
|
38
38
|
Jpa = "Jpa",
|
|
39
39
|
Timezone = "Timezone",
|
|
40
40
|
SpringFramework = "SpringFramework"
|
|
41
41
|
}
|
|
42
|
+
enum IdGenStrategy {
|
|
43
|
+
TABLE = "TABLE",
|
|
44
|
+
SEQUENCE = "SEQUENCE",
|
|
45
|
+
IDENTITY = "IDENTITY",
|
|
46
|
+
UUID = "UUID",
|
|
47
|
+
AUTO = "AUTO"
|
|
48
|
+
}
|
|
42
49
|
interface JavaContext extends GeneratorContext<Language.Java> {
|
|
43
50
|
nonNullAnnotation: string;
|
|
44
51
|
nullableAnnotation: string;
|
|
52
|
+
idGenStrategy: IdGenStrategy;
|
|
45
53
|
}
|
|
46
54
|
}
|
|
47
55
|
export declare namespace kotlin {
|
|
@@ -81,7 +89,7 @@ export interface GeneratorContext<LANG extends Language> {
|
|
|
81
89
|
}
|
|
82
90
|
export type InfoCodeProvider = (info: DomainDesignInfo<DomainDesignInfoType, string>) => CodeSnippets<'Info'>[];
|
|
83
91
|
export type CommandCodeProvider = (cmd: DomainDesignCommand<DomainDesignInfoRecord>) => CodeSnippets<'Command' | 'CommandHandler'>[];
|
|
84
|
-
export type FacadeCommandCodeProvider = (cmd: DomainDesignFacadeCommand<DomainDesignInfoRecord>) => CodeSnippets<'FacadeCommand'>[];
|
|
92
|
+
export type FacadeCommandCodeProvider = (cmd: DomainDesignFacadeCommand<DomainDesignInfoRecord>) => CodeSnippets<'FacadeCommand' | 'FacadeCommandHandler'>[];
|
|
85
93
|
export type AggCodeProvider = (agg: DomainDesignAgg<DomainDesignInfoRecord>) => CodeSnippets<'Agg' | 'AggImpl'>[];
|
|
86
94
|
export type EventCodeProvider = (event: DomainDesignEvent<DomainDesignInfoRecord>) => CodeSnippets<'Event'>[];
|
|
87
95
|
export type ReadModelCodeProvider = (readModel: DomainDesignReadModel<DomainDesignInfoRecord>) => CodeSnippets<'ReadMode'>[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { csharp, CodeFile } from '../domain/define';
|
|
2
2
|
import { Ref } from '@vue/reactivity';
|
|
3
|
-
import { DomainDesignAgg, DomainDesignCommand, DomainDesignEvent, DomainDesignInfo, DomainDesignInfoType, DomainDesignObject } from '@ddd-tool/domain-designer-core';
|
|
3
|
+
import { DomainDesignAgg, DomainDesignCommand, DomainDesignEvent, DomainDesignFacadeCommand, DomainDesignInfo, DomainDesignInfoType, DomainDesignObject } from '@ddd-tool/domain-designer-core';
|
|
4
4
|
declare const _default: import("vue-fn/domain-server").DomainHotSwapPlugin<import("vue-fn/domain-server").DomainSingletonAgg<{
|
|
5
5
|
designer: Ref<{
|
|
6
6
|
startWorkflow: (name: string) => string;
|
|
@@ -37,7 +37,7 @@ declare const _default: import("vue-fn/domain-server").DomainHotSwapPlugin<impor
|
|
|
37
37
|
getIdMap(): Record<string, DomainDesignObject>;
|
|
38
38
|
getAssociationMap(): Record<string, import("@ddd-tool/domain-designer-core/define").DomainObjectSet<DomainDesignObject>>;
|
|
39
39
|
getCommands(): DomainDesignCommand<any>[];
|
|
40
|
-
getFacadeCommands():
|
|
40
|
+
getFacadeCommands(): DomainDesignFacadeCommand<any>[];
|
|
41
41
|
getActors(): import("@ddd-tool/domain-designer-core").DomainDesignActor[];
|
|
42
42
|
getEvents(): DomainDesignEvent<any>[];
|
|
43
43
|
getPolicies(): import("@ddd-tool/domain-designer-core").DomainDesignPolicy[];
|
|
@@ -47,7 +47,7 @@ declare const _default: import("vue-fn/domain-server").DomainHotSwapPlugin<impor
|
|
|
47
47
|
getReadModels(): import("@ddd-tool/domain-designer-core").DomainDesignReadModel<any>[];
|
|
48
48
|
registerInfo(info: DomainDesignInfo<any, any>): void;
|
|
49
49
|
registerCommand(command: DomainDesignCommand<any>): void;
|
|
50
|
-
registerFacadeCommand(command:
|
|
50
|
+
registerFacadeCommand(command: DomainDesignFacadeCommand<any>): void;
|
|
51
51
|
registerActor(actor: import("@ddd-tool/domain-designer-core").DomainDesignActor): void;
|
|
52
52
|
registerEvent(event: DomainDesignEvent<any>): void;
|
|
53
53
|
registerPolicy(policy: import("@ddd-tool/domain-designer-core").DomainDesignPolicy): void;
|
|
@@ -117,7 +117,7 @@ declare const _default: import("vue-fn/domain-server").DomainHotSwapPlugin<impor
|
|
|
117
117
|
getIdMap(): Record<string, DomainDesignObject>;
|
|
118
118
|
getAssociationMap(): Record<string, import("@ddd-tool/domain-designer-core/define").DomainObjectSet<DomainDesignObject>>;
|
|
119
119
|
getCommands(): DomainDesignCommand<any>[];
|
|
120
|
-
getFacadeCommands():
|
|
120
|
+
getFacadeCommands(): DomainDesignFacadeCommand<any>[];
|
|
121
121
|
getActors(): import("@ddd-tool/domain-designer-core").DomainDesignActor[];
|
|
122
122
|
getEvents(): DomainDesignEvent<any>[];
|
|
123
123
|
getPolicies(): import("@ddd-tool/domain-designer-core").DomainDesignPolicy[];
|
|
@@ -127,7 +127,7 @@ declare const _default: import("vue-fn/domain-server").DomainHotSwapPlugin<impor
|
|
|
127
127
|
getReadModels(): import("@ddd-tool/domain-designer-core").DomainDesignReadModel<any>[];
|
|
128
128
|
registerInfo(info: DomainDesignInfo<any, any>): void;
|
|
129
129
|
registerCommand(command: DomainDesignCommand<any>): void;
|
|
130
|
-
registerFacadeCommand(command:
|
|
130
|
+
registerFacadeCommand(command: DomainDesignFacadeCommand<any>): void;
|
|
131
131
|
registerActor(actor: import("@ddd-tool/domain-designer-core").DomainDesignActor): void;
|
|
132
132
|
registerEvent(event: DomainDesignEvent<any>): void;
|
|
133
133
|
registerPolicy(policy: import("@ddd-tool/domain-designer-core").DomainDesignPolicy): void;
|
|
@@ -181,7 +181,7 @@ declare const _default: import("vue-fn/domain-server").DomainHotSwapPlugin<impor
|
|
|
181
181
|
_setInfoCodeProvider(provider: import("../domain/define").InfoCodeProvider): void;
|
|
182
182
|
_genCommandCode(cmd: DomainDesignCommand<Record<string, DomainDesignInfo<DomainDesignInfoType, string>>>): ReturnType<import("../domain/define").CommandCodeProvider>;
|
|
183
183
|
_setCommandCodeProvider(provider: import("../domain/define").CommandCodeProvider): void;
|
|
184
|
-
_genFacadeCommandCode(cmd:
|
|
184
|
+
_genFacadeCommandCode(cmd: DomainDesignFacadeCommand<Record<string, DomainDesignInfo<DomainDesignInfoType, string>>>): ReturnType<import("../domain/define").FacadeCommandCodeProvider>;
|
|
185
185
|
_setFacadeCommandCodeProvider(provider: import("../domain/define").FacadeCommandCodeProvider): void;
|
|
186
186
|
_genAggCode(agg: DomainDesignAgg<Record<string, DomainDesignInfo<DomainDesignInfoType, string>>>): ReturnType<import("../domain/define").AggCodeProvider>;
|
|
187
187
|
_setAggCodeProvider(provider: import("../domain/define").AggCodeProvider): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DomainDesignAgg, DomainDesignCommand, DomainDesignEvent, DomainDesignInfo, DomainDesignInfoType, DomainDesignObject } from '@ddd-tool/domain-designer-core';
|
|
2
|
-
import { CodeFile,
|
|
1
|
+
import { DomainDesignAgg, DomainDesignCommand, DomainDesignEvent, DomainDesignFacadeCommand, DomainDesignInfo, DomainDesignInfoType, DomainDesignObject } from '@ddd-tool/domain-designer-core';
|
|
2
|
+
import { CodeFile, java } from '../domain/define';
|
|
3
3
|
import { Ref } from '@vue/reactivity';
|
|
4
4
|
declare const _default: import("vue-fn/domain-server").DomainHotSwapPlugin<import("vue-fn/domain-server").DomainSingletonAgg<{
|
|
5
5
|
designer: Ref<{
|
|
@@ -37,7 +37,7 @@ declare const _default: import("vue-fn/domain-server").DomainHotSwapPlugin<impor
|
|
|
37
37
|
getIdMap(): Record<string, DomainDesignObject>;
|
|
38
38
|
getAssociationMap(): Record<string, import("@ddd-tool/domain-designer-core/define").DomainObjectSet<DomainDesignObject>>;
|
|
39
39
|
getCommands(): DomainDesignCommand<any>[];
|
|
40
|
-
getFacadeCommands():
|
|
40
|
+
getFacadeCommands(): DomainDesignFacadeCommand<any>[];
|
|
41
41
|
getActors(): import("@ddd-tool/domain-designer-core").DomainDesignActor[];
|
|
42
42
|
getEvents(): DomainDesignEvent<any>[];
|
|
43
43
|
getPolicies(): import("@ddd-tool/domain-designer-core").DomainDesignPolicy[];
|
|
@@ -47,7 +47,7 @@ declare const _default: import("vue-fn/domain-server").DomainHotSwapPlugin<impor
|
|
|
47
47
|
getReadModels(): import("@ddd-tool/domain-designer-core").DomainDesignReadModel<any>[];
|
|
48
48
|
registerInfo(info: DomainDesignInfo<any, any>): void;
|
|
49
49
|
registerCommand(command: DomainDesignCommand<any>): void;
|
|
50
|
-
registerFacadeCommand(command:
|
|
50
|
+
registerFacadeCommand(command: DomainDesignFacadeCommand<any>): void;
|
|
51
51
|
registerActor(actor: import("@ddd-tool/domain-designer-core").DomainDesignActor): void;
|
|
52
52
|
registerEvent(event: DomainDesignEvent<any>): void;
|
|
53
53
|
registerPolicy(policy: import("@ddd-tool/domain-designer-core").DomainDesignPolicy): void;
|
|
@@ -117,7 +117,7 @@ declare const _default: import("vue-fn/domain-server").DomainHotSwapPlugin<impor
|
|
|
117
117
|
getIdMap(): Record<string, DomainDesignObject>;
|
|
118
118
|
getAssociationMap(): Record<string, import("@ddd-tool/domain-designer-core/define").DomainObjectSet<DomainDesignObject>>;
|
|
119
119
|
getCommands(): DomainDesignCommand<any>[];
|
|
120
|
-
getFacadeCommands():
|
|
120
|
+
getFacadeCommands(): DomainDesignFacadeCommand<any>[];
|
|
121
121
|
getActors(): import("@ddd-tool/domain-designer-core").DomainDesignActor[];
|
|
122
122
|
getEvents(): DomainDesignEvent<any>[];
|
|
123
123
|
getPolicies(): import("@ddd-tool/domain-designer-core").DomainDesignPolicy[];
|
|
@@ -127,7 +127,7 @@ declare const _default: import("vue-fn/domain-server").DomainHotSwapPlugin<impor
|
|
|
127
127
|
getReadModels(): import("@ddd-tool/domain-designer-core").DomainDesignReadModel<any>[];
|
|
128
128
|
registerInfo(info: DomainDesignInfo<any, any>): void;
|
|
129
129
|
registerCommand(command: DomainDesignCommand<any>): void;
|
|
130
|
-
registerFacadeCommand(command:
|
|
130
|
+
registerFacadeCommand(command: DomainDesignFacadeCommand<any>): void;
|
|
131
131
|
registerActor(actor: import("@ddd-tool/domain-designer-core").DomainDesignActor): void;
|
|
132
132
|
registerEvent(event: DomainDesignEvent<any>): void;
|
|
133
133
|
registerPolicy(policy: import("@ddd-tool/domain-designer-core").DomainDesignPolicy): void;
|
|
@@ -181,8 +181,8 @@ declare const _default: import("vue-fn/domain-server").DomainHotSwapPlugin<impor
|
|
|
181
181
|
_setInfoCodeProvider(provider: import("../domain/define").InfoCodeProvider): void;
|
|
182
182
|
_genCommandCode(cmd: DomainDesignCommand<Record<string, DomainDesignInfo<DomainDesignInfoType, string>>>): ReturnType<import("../domain/define").CommandCodeProvider>;
|
|
183
183
|
_setCommandCodeProvider(provider: import("../domain/define").CommandCodeProvider): void;
|
|
184
|
-
_genFacadeCommandCode(cmd:
|
|
185
|
-
_setFacadeCommandCodeProvider(provider: FacadeCommandCodeProvider): void;
|
|
184
|
+
_genFacadeCommandCode(cmd: DomainDesignFacadeCommand<Record<string, DomainDesignInfo<DomainDesignInfoType, string>>>): ReturnType<import("../domain/define").FacadeCommandCodeProvider>;
|
|
185
|
+
_setFacadeCommandCodeProvider(provider: import("../domain/define").FacadeCommandCodeProvider): void;
|
|
186
186
|
_genAggCode(agg: DomainDesignAgg<Record<string, DomainDesignInfo<DomainDesignInfoType, string>>>): ReturnType<import("../domain/define").AggCodeProvider>;
|
|
187
187
|
_setAggCodeProvider(provider: import("../domain/define").AggCodeProvider): void;
|
|
188
188
|
_genEventCode(event: DomainDesignEvent<Record<string, DomainDesignInfo<DomainDesignInfoType, string>>>): ReturnType<import("../domain/define").EventCodeProvider>;
|