@ddd-tool/domain-designer-generator 0.1.0-beta.9 → 0.3.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.
- package/domain/generator-agg.d.ts +1245 -1245
- package/domain/{define.d.ts → types.d.ts} +47 -41
- package/domain-plugin/generator-csharp-plugin.d.ts +73 -73
- package/domain-plugin/generator-go-plugin.d.ts +73 -73
- package/domain-plugin/generator-java-plugin.d.ts +73 -73
- package/domain-plugin/generator-kotlin-plugin.d.ts +73 -73
- package/index.d.ts +1 -1
- package/index.js +1822 -1606
- package/package.json +5 -13
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { DomainDesignInfo, DomainDesignInfoType, DomainDesignReadModel, type DomainDesignAgg, type DomainDesignCommand, type DomainDesignEvent, type DomainDesignFacadeCommand, type DomainDesignInfoRecord } from '@ddd-tool/domain-designer-core';
|
|
2
2
|
export type DomainNode = DomainDesignCommand<DomainDesignInfoRecord> | DomainDesignFacadeCommand<DomainDesignInfoRecord> | DomainDesignAgg<DomainDesignInfoRecord> | DomainDesignEvent<DomainDesignInfoRecord> | DomainDesignReadModel<DomainDesignInfoRecord>;
|
|
3
3
|
export declare function isStruct(o: object): o is DomainNode;
|
|
4
|
-
export declare
|
|
5
|
-
Java
|
|
6
|
-
Kotlin
|
|
7
|
-
CSharp
|
|
8
|
-
Go
|
|
9
|
-
}
|
|
4
|
+
export declare const Language: Readonly<{
|
|
5
|
+
readonly Java: "java";
|
|
6
|
+
readonly Kotlin: "kotlin";
|
|
7
|
+
readonly CSharp: "csharp";
|
|
8
|
+
readonly Go: "go";
|
|
9
|
+
}>;
|
|
10
|
+
export type Language = Enum<typeof Language>;
|
|
10
11
|
export declare class CodeFile {
|
|
11
12
|
private readonly imports;
|
|
12
13
|
private parentDir;
|
|
@@ -30,23 +31,25 @@ export interface CodeSnippets<TYPE extends 'Info' | 'Agg' | 'AggImpl' | 'Command
|
|
|
30
31
|
content: string;
|
|
31
32
|
}
|
|
32
33
|
export declare namespace java {
|
|
33
|
-
|
|
34
|
-
Lombok
|
|
35
|
-
LombokBuilder
|
|
36
|
-
RecordValueObject
|
|
37
|
-
CommandHandler
|
|
38
|
-
Jpa
|
|
39
|
-
Timezone
|
|
40
|
-
SpringFramework
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
34
|
+
const JavaGeneratorAddition: Readonly<{
|
|
35
|
+
readonly Lombok: "Lombok";
|
|
36
|
+
readonly LombokBuilder: "LombokBuilder";
|
|
37
|
+
readonly RecordValueObject: "RecordValueObject";
|
|
38
|
+
readonly CommandHandler: "CommandHandler";
|
|
39
|
+
readonly Jpa: "Jpa";
|
|
40
|
+
readonly Timezone: "Timezone";
|
|
41
|
+
readonly SpringFramework: "SpringFramework";
|
|
42
|
+
}>;
|
|
43
|
+
type JavaGeneratorAddition = Enum<typeof JavaGeneratorAddition>;
|
|
44
|
+
const IdGenStrategy: Readonly<{
|
|
45
|
+
readonly TABLE: "TABLE";
|
|
46
|
+
readonly SEQUENCE: "SEQUENCE";
|
|
47
|
+
readonly IDENTITY: "IDENTITY";
|
|
48
|
+
readonly UUID: "UUID";
|
|
49
|
+
readonly AUTO: "AUTO";
|
|
50
|
+
}>;
|
|
51
|
+
type IdGenStrategy = Enum<typeof IdGenStrategy>;
|
|
52
|
+
interface JavaContext extends GeneratorContext<'java'> {
|
|
50
53
|
nonNullAnnotation: string;
|
|
51
54
|
nullableAnnotation: string;
|
|
52
55
|
jdkVersion: '8' | '17' | '21';
|
|
@@ -54,32 +57,35 @@ export declare namespace java {
|
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
59
|
export declare namespace kotlin {
|
|
57
|
-
|
|
58
|
-
ValueClass
|
|
59
|
-
CommandHandler
|
|
60
|
-
Timezone
|
|
61
|
-
}
|
|
62
|
-
|
|
60
|
+
const KotlinGeneratorAddition: Readonly<{
|
|
61
|
+
readonly ValueClass: "ValueClass";
|
|
62
|
+
readonly CommandHandler: "CommandHandler";
|
|
63
|
+
readonly Timezone: "Timezone";
|
|
64
|
+
}>;
|
|
65
|
+
type KotlinGeneratorAddition = Enum<typeof KotlinGeneratorAddition>;
|
|
66
|
+
interface KotlinContext extends GeneratorContext<'kotlin'> {
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
69
|
export declare namespace csharp {
|
|
66
|
-
|
|
67
|
-
Timezone
|
|
68
|
-
RecordStruct
|
|
69
|
-
PrimaryConstructor
|
|
70
|
-
CommandHandlerInterface
|
|
71
|
-
AggInterface
|
|
72
|
-
}
|
|
73
|
-
|
|
70
|
+
const CSharpGeneratorAddition: Readonly<{
|
|
71
|
+
readonly Timezone: "Timezone";
|
|
72
|
+
readonly RecordStruct: "RecordStruct";
|
|
73
|
+
readonly PrimaryConstructor: "PrimaryConstructor";
|
|
74
|
+
readonly CommandHandlerInterface: "CommandHandlerInterface";
|
|
75
|
+
readonly AggInterface: "AggInterface";
|
|
76
|
+
}>;
|
|
77
|
+
type CSharpGeneratorAddition = Enum<typeof CSharpGeneratorAddition>;
|
|
78
|
+
interface CSharpContext extends GeneratorContext<'csharp'> {
|
|
74
79
|
commandHandlerInterface?: string;
|
|
75
80
|
aggInterface?: string;
|
|
76
81
|
}
|
|
77
82
|
}
|
|
78
83
|
export declare namespace go {
|
|
79
|
-
|
|
80
|
-
SinglePackageEachDesigner
|
|
81
|
-
}
|
|
82
|
-
|
|
84
|
+
const GoGeneratorAddition: Readonly<{
|
|
85
|
+
readonly SinglePackageEachDesigner: "SinglePackageEachDesigner";
|
|
86
|
+
}>;
|
|
87
|
+
type GoGeneratorAddition = Enum<typeof GoGeneratorAddition>;
|
|
88
|
+
interface GoContext extends GeneratorContext<'go'> {
|
|
83
89
|
}
|
|
84
90
|
}
|
|
85
91
|
export type GeneratorAddition<LANG extends Language> = LANG extends 'java' ? java.JavaGeneratorAddition : LANG extends 'kotlin' ? kotlin.KotlinGeneratorAddition : LANG extends 'csharp' ? csharp.CSharpGeneratorAddition : LANG extends 'go' ? go.GoGeneratorAddition : never;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeFile } from '../domain/types';
|
|
2
2
|
import { Ref } from '@vue/reactivity';
|
|
3
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;
|
|
7
|
-
defineUserStory: (name: string, workflowNames: import("@ddd-tool/domain-designer-core/
|
|
8
|
-
note: import("@ddd-tool/domain-designer-core/
|
|
7
|
+
defineUserStory: (name: string, workflowNames: import("@ddd-tool/domain-designer-core/types").NonEmptyArray<string>) => void;
|
|
8
|
+
note: import("@ddd-tool/domain-designer-core/types").DomainDesignNoteProvider;
|
|
9
9
|
info: {
|
|
10
10
|
document: <NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote) => DomainDesignInfo<"Document", NAME>;
|
|
11
11
|
func: {
|
|
12
12
|
<NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote): DomainDesignInfo<"Function", NAME>;
|
|
13
|
-
<NAME extends string>(name: NAME, dependsOn: import("@ddd-tool/domain-designer-core/
|
|
13
|
+
<NAME extends string>(name: NAME, dependsOn: import("@ddd-tool/domain-designer-core/types").NonEmptyArray<import("@ddd-tool/domain-designer-core/types").DomainDesignInfoFuncDependsOn | string | [string, string | import("@ddd-tool/domain-designer-core").DomainDesignNote]>, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote): DomainDesignInfo<"Function", NAME>;
|
|
14
14
|
};
|
|
15
15
|
id: <NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote) => DomainDesignInfo<"Id", NAME>;
|
|
16
16
|
valueObj: <NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote) => DomainDesignInfo<"ValueObject", NAME>;
|
|
17
17
|
version: <NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote) => DomainDesignInfo<"Version", NAME>;
|
|
18
18
|
};
|
|
19
|
-
actor: import("@ddd-tool/domain-designer-core/
|
|
20
|
-
command: import("@ddd-tool/domain-designer-core/
|
|
21
|
-
facadeCmd: import("@ddd-tool/domain-designer-core/
|
|
22
|
-
agg: import("@ddd-tool/domain-designer-core/
|
|
23
|
-
event: import("@ddd-tool/domain-designer-core/
|
|
24
|
-
system: import("@ddd-tool/domain-designer-core/
|
|
25
|
-
policy: import("@ddd-tool/domain-designer-core/
|
|
26
|
-
service: import("@ddd-tool/domain-designer-core/
|
|
27
|
-
readModel: import("@ddd-tool/domain-designer-core/
|
|
19
|
+
actor: import("@ddd-tool/domain-designer-core/types").DomainDesignActorProvider;
|
|
20
|
+
command: import("@ddd-tool/domain-designer-core/types").DomainDesignCommandProvider;
|
|
21
|
+
facadeCmd: import("@ddd-tool/domain-designer-core/types").DomainDesignFacadeCommandProvider;
|
|
22
|
+
agg: import("@ddd-tool/domain-designer-core/types").DomainDesignAggProvider;
|
|
23
|
+
event: import("@ddd-tool/domain-designer-core/types").DomainDesignEventProvider;
|
|
24
|
+
system: import("@ddd-tool/domain-designer-core/types").DomainDesignSystemProvider;
|
|
25
|
+
policy: import("@ddd-tool/domain-designer-core/types").DomainDesignPolicyProvider;
|
|
26
|
+
service: import("@ddd-tool/domain-designer-core/types").DomainDesignServiceProvider;
|
|
27
|
+
readModel: import("@ddd-tool/domain-designer-core/types").DomainDesignReadModelProvider;
|
|
28
28
|
_getContext: () => {
|
|
29
29
|
startWorkflow(name: string): string;
|
|
30
|
-
defineUserStory(name: string, workflowNames: import("@ddd-tool/domain-designer-core/
|
|
30
|
+
defineUserStory(name: string, workflowNames: import("@ddd-tool/domain-designer-core/types").NonEmptyArray<string>): void;
|
|
31
31
|
linkTo(srcRule: "Info" | "Actor" | "Command" | "FacadeCommand" | "Agg" | "Event" | "Policy" | "Service" | "System" | "ReadModel", srcId: string, targetRule: "Info" | "Actor" | "Command" | "FacadeCommand" | "Agg" | "Event" | "Policy" | "Service" | "System" | "ReadModel", targetId: string, linkType?: import("@ddd-tool/domain-designer-core/common").LinkType): void;
|
|
32
32
|
getDesignerId(): string;
|
|
33
|
-
getDesignerOptions(): Required<import("@ddd-tool/domain-designer-core/
|
|
33
|
+
getDesignerOptions(): Required<import("@ddd-tool/domain-designer-core/types").DomainDesignOptions>;
|
|
34
34
|
getWorkflows(): Record<string, string[]>;
|
|
35
35
|
getUserStories(): Record<string, string[]>;
|
|
36
36
|
getLinks(): Record<string, import("@ddd-tool/domain-designer-core/common").LinkType>;
|
|
37
37
|
getIdMap(): Record<string, DomainDesignObject>;
|
|
38
|
-
getAssociationMap(): Record<string, import("@ddd-tool/domain-designer-core/
|
|
38
|
+
getAssociationMap(): Record<string, import("@ddd-tool/domain-designer-core/types").DomainObjectSet<DomainDesignObject>>;
|
|
39
39
|
getCommands(): DomainDesignCommand<any>[];
|
|
40
40
|
getFacadeCommands(): DomainDesignFacadeCommand<any>[];
|
|
41
41
|
getActors(): import("@ddd-tool/domain-designer-core").DomainDesignActor[];
|
|
@@ -55,67 +55,67 @@ declare const _default: import("vue-fn/domain-server").DomainHotSwapPlugin<impor
|
|
|
55
55
|
registerSystem(system: import("@ddd-tool/domain-designer-core").DomainDesignSystem): void;
|
|
56
56
|
registerAgg(agg: DomainDesignAgg<any>): void;
|
|
57
57
|
registerReadModel(readModel: import("@ddd-tool/domain-designer-core").DomainDesignReadModel<any>): void;
|
|
58
|
-
customInfoArrToInfoObj<G_NAME extends string, ARR extends import("@ddd-tool/domain-designer-core/
|
|
59
|
-
customInfoArrToInfoArr<G_NAME extends string, ARR extends import("@ddd-tool/domain-designer-core/
|
|
58
|
+
customInfoArrToInfoObj<G_NAME extends string, ARR extends import("@ddd-tool/domain-designer-core/types").NonEmptyArray<import("@ddd-tool/domain-designer-core/types").CustomInfo<G_NAME>>>(arr: ARR): import("@ddd-tool/domain-designer-core/types").CustomInfoArrayToInfoObject<ARR>;
|
|
59
|
+
customInfoArrToInfoArr<G_NAME extends string, ARR extends import("@ddd-tool/domain-designer-core/types").NonEmptyArray<import("@ddd-tool/domain-designer-core/types").CustomInfo<G_NAME>>>(arr: ARR): DomainDesignInfo<DomainDesignInfoType, string>[];
|
|
60
60
|
toFormat<OBJ extends {
|
|
61
61
|
_attributes: {
|
|
62
62
|
__id: string;
|
|
63
63
|
name: string;
|
|
64
64
|
};
|
|
65
65
|
}>(obj: OBJ): string;
|
|
66
|
-
createNote: import("@ddd-tool/domain-designer-core/
|
|
66
|
+
createNote: import("@ddd-tool/domain-designer-core/types").DomainDesignNoteProvider;
|
|
67
67
|
info: {
|
|
68
68
|
document<NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote): DomainDesignInfo<"Document", NAME>;
|
|
69
69
|
func<NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote): DomainDesignInfo<"Function", NAME>;
|
|
70
|
-
func<NAME extends string>(name: NAME, dependsOn: import("@ddd-tool/domain-designer-core/
|
|
70
|
+
func<NAME extends string>(name: NAME, dependsOn: import("@ddd-tool/domain-designer-core/types").NonEmptyArray<import("@ddd-tool/domain-designer-core/types").DomainDesignInfoFuncDependsOn | string | [string, string | import("@ddd-tool/domain-designer-core").DomainDesignNote]>, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote): DomainDesignInfo<"Function", NAME>;
|
|
71
71
|
id<NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote): DomainDesignInfo<"Id", NAME>;
|
|
72
72
|
valueObj<NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote): DomainDesignInfo<"ValueObject", NAME>;
|
|
73
73
|
version<NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote): DomainDesignInfo<"Version", NAME>;
|
|
74
74
|
};
|
|
75
|
-
createPersion: import("@ddd-tool/domain-designer-core/
|
|
76
|
-
createCommand: import("@ddd-tool/domain-designer-core/
|
|
77
|
-
createFacadeCommand: import("@ddd-tool/domain-designer-core/
|
|
78
|
-
createAgg: import("@ddd-tool/domain-designer-core/
|
|
79
|
-
createEvent: import("@ddd-tool/domain-designer-core/
|
|
80
|
-
createPolicy: import("@ddd-tool/domain-designer-core/
|
|
81
|
-
createService: import("@ddd-tool/domain-designer-core/
|
|
82
|
-
createSystem: import("@ddd-tool/domain-designer-core/
|
|
83
|
-
createReadModel: import("@ddd-tool/domain-designer-core/
|
|
75
|
+
createPersion: import("@ddd-tool/domain-designer-core/types").DomainDesignActorProvider;
|
|
76
|
+
createCommand: import("@ddd-tool/domain-designer-core/types").DomainDesignCommandProvider;
|
|
77
|
+
createFacadeCommand: import("@ddd-tool/domain-designer-core/types").DomainDesignFacadeCommandProvider;
|
|
78
|
+
createAgg: import("@ddd-tool/domain-designer-core/types").DomainDesignAggProvider;
|
|
79
|
+
createEvent: import("@ddd-tool/domain-designer-core/types").DomainDesignEventProvider;
|
|
80
|
+
createPolicy: import("@ddd-tool/domain-designer-core/types").DomainDesignPolicyProvider;
|
|
81
|
+
createService: import("@ddd-tool/domain-designer-core/types").DomainDesignServiceProvider;
|
|
82
|
+
createSystem: import("@ddd-tool/domain-designer-core/types").DomainDesignSystemProvider;
|
|
83
|
+
createReadModel: import("@ddd-tool/domain-designer-core/types").DomainDesignReadModelProvider;
|
|
84
84
|
};
|
|
85
85
|
}, import("@ddd-tool/domain-designer-core").DomainDesigner | {
|
|
86
86
|
startWorkflow: (name: string) => string;
|
|
87
|
-
defineUserStory: (name: string, workflowNames: import("@ddd-tool/domain-designer-core/
|
|
88
|
-
note: import("@ddd-tool/domain-designer-core/
|
|
87
|
+
defineUserStory: (name: string, workflowNames: import("@ddd-tool/domain-designer-core/types").NonEmptyArray<string>) => void;
|
|
88
|
+
note: import("@ddd-tool/domain-designer-core/types").DomainDesignNoteProvider;
|
|
89
89
|
info: {
|
|
90
90
|
document: <NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote) => DomainDesignInfo<"Document", NAME>;
|
|
91
91
|
func: {
|
|
92
92
|
<NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote): DomainDesignInfo<"Function", NAME>;
|
|
93
|
-
<NAME extends string>(name: NAME, dependsOn: import("@ddd-tool/domain-designer-core/
|
|
93
|
+
<NAME extends string>(name: NAME, dependsOn: import("@ddd-tool/domain-designer-core/types").NonEmptyArray<import("@ddd-tool/domain-designer-core/types").DomainDesignInfoFuncDependsOn | string | [string, string | import("@ddd-tool/domain-designer-core").DomainDesignNote]>, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote): DomainDesignInfo<"Function", NAME>;
|
|
94
94
|
};
|
|
95
95
|
id: <NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote) => DomainDesignInfo<"Id", NAME>;
|
|
96
96
|
valueObj: <NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote) => DomainDesignInfo<"ValueObject", NAME>;
|
|
97
97
|
version: <NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote) => DomainDesignInfo<"Version", NAME>;
|
|
98
98
|
};
|
|
99
|
-
actor: import("@ddd-tool/domain-designer-core/
|
|
100
|
-
command: import("@ddd-tool/domain-designer-core/
|
|
101
|
-
facadeCmd: import("@ddd-tool/domain-designer-core/
|
|
102
|
-
agg: import("@ddd-tool/domain-designer-core/
|
|
103
|
-
event: import("@ddd-tool/domain-designer-core/
|
|
104
|
-
system: import("@ddd-tool/domain-designer-core/
|
|
105
|
-
policy: import("@ddd-tool/domain-designer-core/
|
|
106
|
-
service: import("@ddd-tool/domain-designer-core/
|
|
107
|
-
readModel: import("@ddd-tool/domain-designer-core/
|
|
99
|
+
actor: import("@ddd-tool/domain-designer-core/types").DomainDesignActorProvider;
|
|
100
|
+
command: import("@ddd-tool/domain-designer-core/types").DomainDesignCommandProvider;
|
|
101
|
+
facadeCmd: import("@ddd-tool/domain-designer-core/types").DomainDesignFacadeCommandProvider;
|
|
102
|
+
agg: import("@ddd-tool/domain-designer-core/types").DomainDesignAggProvider;
|
|
103
|
+
event: import("@ddd-tool/domain-designer-core/types").DomainDesignEventProvider;
|
|
104
|
+
system: import("@ddd-tool/domain-designer-core/types").DomainDesignSystemProvider;
|
|
105
|
+
policy: import("@ddd-tool/domain-designer-core/types").DomainDesignPolicyProvider;
|
|
106
|
+
service: import("@ddd-tool/domain-designer-core/types").DomainDesignServiceProvider;
|
|
107
|
+
readModel: import("@ddd-tool/domain-designer-core/types").DomainDesignReadModelProvider;
|
|
108
108
|
_getContext: () => {
|
|
109
109
|
startWorkflow(name: string): string;
|
|
110
|
-
defineUserStory(name: string, workflowNames: import("@ddd-tool/domain-designer-core/
|
|
110
|
+
defineUserStory(name: string, workflowNames: import("@ddd-tool/domain-designer-core/types").NonEmptyArray<string>): void;
|
|
111
111
|
linkTo(srcRule: "Info" | "Actor" | "Command" | "FacadeCommand" | "Agg" | "Event" | "Policy" | "Service" | "System" | "ReadModel", srcId: string, targetRule: "Info" | "Actor" | "Command" | "FacadeCommand" | "Agg" | "Event" | "Policy" | "Service" | "System" | "ReadModel", targetId: string, linkType?: import("@ddd-tool/domain-designer-core/common").LinkType): void;
|
|
112
112
|
getDesignerId(): string;
|
|
113
|
-
getDesignerOptions(): Required<import("@ddd-tool/domain-designer-core/
|
|
113
|
+
getDesignerOptions(): Required<import("@ddd-tool/domain-designer-core/types").DomainDesignOptions>;
|
|
114
114
|
getWorkflows(): Record<string, string[]>;
|
|
115
115
|
getUserStories(): Record<string, string[]>;
|
|
116
116
|
getLinks(): Record<string, import("@ddd-tool/domain-designer-core/common").LinkType>;
|
|
117
117
|
getIdMap(): Record<string, DomainDesignObject>;
|
|
118
|
-
getAssociationMap(): Record<string, import("@ddd-tool/domain-designer-core/
|
|
118
|
+
getAssociationMap(): Record<string, import("@ddd-tool/domain-designer-core/types").DomainObjectSet<DomainDesignObject>>;
|
|
119
119
|
getCommands(): DomainDesignCommand<any>[];
|
|
120
120
|
getFacadeCommands(): DomainDesignFacadeCommand<any>[];
|
|
121
121
|
getActors(): import("@ddd-tool/domain-designer-core").DomainDesignActor[];
|
|
@@ -135,60 +135,60 @@ declare const _default: import("vue-fn/domain-server").DomainHotSwapPlugin<impor
|
|
|
135
135
|
registerSystem(system: import("@ddd-tool/domain-designer-core").DomainDesignSystem): void;
|
|
136
136
|
registerAgg(agg: DomainDesignAgg<any>): void;
|
|
137
137
|
registerReadModel(readModel: import("@ddd-tool/domain-designer-core").DomainDesignReadModel<any>): void;
|
|
138
|
-
customInfoArrToInfoObj<G_NAME extends string, ARR extends import("@ddd-tool/domain-designer-core/
|
|
139
|
-
customInfoArrToInfoArr<G_NAME extends string, ARR extends import("@ddd-tool/domain-designer-core/
|
|
138
|
+
customInfoArrToInfoObj<G_NAME extends string, ARR extends import("@ddd-tool/domain-designer-core/types").NonEmptyArray<import("@ddd-tool/domain-designer-core/types").CustomInfo<G_NAME>>>(arr: ARR): import("@ddd-tool/domain-designer-core/types").CustomInfoArrayToInfoObject<ARR>;
|
|
139
|
+
customInfoArrToInfoArr<G_NAME extends string, ARR extends import("@ddd-tool/domain-designer-core/types").NonEmptyArray<import("@ddd-tool/domain-designer-core/types").CustomInfo<G_NAME>>>(arr: ARR): DomainDesignInfo<DomainDesignInfoType, string>[];
|
|
140
140
|
toFormat<OBJ extends {
|
|
141
141
|
_attributes: {
|
|
142
142
|
__id: string;
|
|
143
143
|
name: string;
|
|
144
144
|
};
|
|
145
145
|
}>(obj: OBJ): string;
|
|
146
|
-
createNote: import("@ddd-tool/domain-designer-core/
|
|
146
|
+
createNote: import("@ddd-tool/domain-designer-core/types").DomainDesignNoteProvider;
|
|
147
147
|
info: {
|
|
148
148
|
document<NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote): DomainDesignInfo<"Document", NAME>;
|
|
149
149
|
func<NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote): DomainDesignInfo<"Function", NAME>;
|
|
150
|
-
func<NAME extends string>(name: NAME, dependsOn: import("@ddd-tool/domain-designer-core/
|
|
150
|
+
func<NAME extends string>(name: NAME, dependsOn: import("@ddd-tool/domain-designer-core/types").NonEmptyArray<import("@ddd-tool/domain-designer-core/types").DomainDesignInfoFuncDependsOn | string | [string, string | import("@ddd-tool/domain-designer-core").DomainDesignNote]>, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote): DomainDesignInfo<"Function", NAME>;
|
|
151
151
|
id<NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote): DomainDesignInfo<"Id", NAME>;
|
|
152
152
|
valueObj<NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote): DomainDesignInfo<"ValueObject", NAME>;
|
|
153
153
|
version<NAME extends string>(name: NAME, note?: string | import("@ddd-tool/domain-designer-core").DomainDesignNote): DomainDesignInfo<"Version", NAME>;
|
|
154
154
|
};
|
|
155
|
-
createPersion: import("@ddd-tool/domain-designer-core/
|
|
156
|
-
createCommand: import("@ddd-tool/domain-designer-core/
|
|
157
|
-
createFacadeCommand: import("@ddd-tool/domain-designer-core/
|
|
158
|
-
createAgg: import("@ddd-tool/domain-designer-core/
|
|
159
|
-
createEvent: import("@ddd-tool/domain-designer-core/
|
|
160
|
-
createPolicy: import("@ddd-tool/domain-designer-core/
|
|
161
|
-
createService: import("@ddd-tool/domain-designer-core/
|
|
162
|
-
createSystem: import("@ddd-tool/domain-designer-core/
|
|
163
|
-
createReadModel: import("@ddd-tool/domain-designer-core/
|
|
155
|
+
createPersion: import("@ddd-tool/domain-designer-core/types").DomainDesignActorProvider;
|
|
156
|
+
createCommand: import("@ddd-tool/domain-designer-core/types").DomainDesignCommandProvider;
|
|
157
|
+
createFacadeCommand: import("@ddd-tool/domain-designer-core/types").DomainDesignFacadeCommandProvider;
|
|
158
|
+
createAgg: import("@ddd-tool/domain-designer-core/types").DomainDesignAggProvider;
|
|
159
|
+
createEvent: import("@ddd-tool/domain-designer-core/types").DomainDesignEventProvider;
|
|
160
|
+
createPolicy: import("@ddd-tool/domain-designer-core/types").DomainDesignPolicyProvider;
|
|
161
|
+
createService: import("@ddd-tool/domain-designer-core/types").DomainDesignServiceProvider;
|
|
162
|
+
createSystem: import("@ddd-tool/domain-designer-core/types").DomainDesignSystemProvider;
|
|
163
|
+
createReadModel: import("@ddd-tool/domain-designer-core/types").DomainDesignReadModelProvider;
|
|
164
164
|
};
|
|
165
165
|
}>;
|
|
166
166
|
context: Ref<{
|
|
167
167
|
namespace: string;
|
|
168
168
|
moduleName: string;
|
|
169
|
-
additions: Set<
|
|
170
|
-
}, import("../domain/
|
|
169
|
+
additions: Set<"CommandHandler" | "Lombok" | "LombokBuilder" | "RecordValueObject" | "Jpa" | "Timezone" | "SpringFramework" | "ValueClass" | "RecordStruct" | "PrimaryConstructor" | "CommandHandlerInterface" | "AggInterface" | "SinglePackageEachDesigner"> & Omit<Set<"CommandHandler" | "Lombok" | "LombokBuilder" | "RecordValueObject" | "Jpa" | "Timezone" | "SpringFramework" | "ValueClass" | "RecordStruct" | "PrimaryConstructor" | "CommandHandlerInterface" | "AggInterface" | "SinglePackageEachDesigner">, keyof Set<any>>;
|
|
170
|
+
}, import("../domain/types").GeneratorContext<any> | {
|
|
171
171
|
namespace: string;
|
|
172
172
|
moduleName: string;
|
|
173
|
-
additions: Set<
|
|
173
|
+
additions: Set<"CommandHandler" | "Lombok" | "LombokBuilder" | "RecordValueObject" | "Jpa" | "Timezone" | "SpringFramework" | "ValueClass" | "RecordStruct" | "PrimaryConstructor" | "CommandHandlerInterface" | "AggInterface" | "SinglePackageEachDesigner"> & Omit<Set<"CommandHandler" | "Lombok" | "LombokBuilder" | "RecordValueObject" | "Jpa" | "Timezone" | "SpringFramework" | "ValueClass" | "RecordStruct" | "PrimaryConstructor" | "CommandHandlerInterface" | "AggInterface" | "SinglePackageEachDesigner">, keyof Set<any>>;
|
|
174
174
|
}>;
|
|
175
175
|
}, {
|
|
176
176
|
genCodeFiles(): CodeFile[];
|
|
177
177
|
clearCaches(): void;
|
|
178
|
-
setContext<LANG extends import("../domain/
|
|
178
|
+
setContext<LANG extends import("../domain/types").Language>(ctx: import("../domain/types").GeneratorContext<LANG>): void;
|
|
179
179
|
setDomainDesigner(d: import("@ddd-tool/domain-designer-core").DomainDesigner): void;
|
|
180
|
-
_genInfoCode(info: DomainDesignInfo<DomainDesignInfoType, string>): ReturnType<import("../domain/
|
|
181
|
-
_setInfoCodeProvider(provider: import("../domain/
|
|
182
|
-
_genCommandCode(cmd: DomainDesignCommand<Record<string, DomainDesignInfo<DomainDesignInfoType, string>>>): ReturnType<import("../domain/
|
|
183
|
-
_setCommandCodeProvider(provider: import("../domain/
|
|
184
|
-
_genFacadeCommandCode(cmd: DomainDesignFacadeCommand<Record<string, DomainDesignInfo<DomainDesignInfoType, string>>>): ReturnType<import("../domain/
|
|
185
|
-
_setFacadeCommandCodeProvider(provider: import("../domain/
|
|
186
|
-
_genAggCode(agg: DomainDesignAgg<Record<string, DomainDesignInfo<DomainDesignInfoType, string>>>): ReturnType<import("../domain/
|
|
187
|
-
_setAggCodeProvider(provider: import("../domain/
|
|
188
|
-
_genEventCode(event: DomainDesignEvent<Record<string, DomainDesignInfo<DomainDesignInfoType, string>>>): ReturnType<import("../domain/
|
|
189
|
-
_setEventCodeProvider(provider: import("../domain/
|
|
190
|
-
_genReadModelCode(readModel: import("@ddd-tool/domain-designer-core").DomainDesignReadModel<Record<string, DomainDesignInfo<DomainDesignInfoType, string>>>): ReturnType<import("../domain/
|
|
191
|
-
_setReadModelCodeProvider(provider: import("../domain/
|
|
180
|
+
_genInfoCode(info: DomainDesignInfo<DomainDesignInfoType, string>): ReturnType<import("../domain/types").InfoCodeProvider>;
|
|
181
|
+
_setInfoCodeProvider(provider: import("../domain/types").InfoCodeProvider): void;
|
|
182
|
+
_genCommandCode(cmd: DomainDesignCommand<Record<string, DomainDesignInfo<DomainDesignInfoType, string>>>): ReturnType<import("../domain/types").CommandCodeProvider>;
|
|
183
|
+
_setCommandCodeProvider(provider: import("../domain/types").CommandCodeProvider): void;
|
|
184
|
+
_genFacadeCommandCode(cmd: DomainDesignFacadeCommand<Record<string, DomainDesignInfo<DomainDesignInfoType, string>>>): ReturnType<import("../domain/types").FacadeCommandCodeProvider>;
|
|
185
|
+
_setFacadeCommandCodeProvider(provider: import("../domain/types").FacadeCommandCodeProvider): void;
|
|
186
|
+
_genAggCode(agg: DomainDesignAgg<Record<string, DomainDesignInfo<DomainDesignInfoType, string>>>): ReturnType<import("../domain/types").AggCodeProvider>;
|
|
187
|
+
_setAggCodeProvider(provider: import("../domain/types").AggCodeProvider): void;
|
|
188
|
+
_genEventCode(event: DomainDesignEvent<Record<string, DomainDesignInfo<DomainDesignInfoType, string>>>): ReturnType<import("../domain/types").EventCodeProvider>;
|
|
189
|
+
_setEventCodeProvider(provider: import("../domain/types").EventCodeProvider): void;
|
|
190
|
+
_genReadModelCode(readModel: import("@ddd-tool/domain-designer-core").DomainDesignReadModel<Record<string, DomainDesignInfo<DomainDesignInfoType, string>>>): ReturnType<import("../domain/types").ReadModelCodeProvider>;
|
|
191
|
+
_setReadModelCodeProvider(provider: import("../domain/types").ReadModelCodeProvider): void;
|
|
192
192
|
_setCodeFileProvider(provider: () => CodeFile[]): void;
|
|
193
193
|
}, {}>>;
|
|
194
194
|
export default _default;
|