@eventcatalog/sdk 2.4.0 → 2.5.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/dist/eventcatalog.d.mts +9 -1
- package/dist/eventcatalog.d.ts +9 -1
- package/dist/eventcatalog.js +22 -2
- package/dist/eventcatalog.js.map +1 -1
- package/dist/eventcatalog.mjs +20 -1
- package/dist/eventcatalog.mjs.map +1 -1
- package/dist/index.d.mts +23 -2
- package/dist/index.d.ts +23 -2
- package/dist/index.js +118 -100
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +120 -102
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.d.mts +11 -2
- package/dist/types.d.d.ts +11 -2
- package/dist/types.d.js.map +1 -1
- package/package.json +1 -1
package/dist/types.d.d.mts
CHANGED
|
@@ -28,7 +28,7 @@ interface BaseSchema {
|
|
|
28
28
|
label?: string;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
resourceGroups?: ResourceGroup[];
|
|
32
32
|
// SDK types
|
|
33
33
|
schema?: any;
|
|
34
34
|
}
|
|
@@ -36,8 +36,17 @@ interface BaseSchema {
|
|
|
36
36
|
type ResourcePointer = {
|
|
37
37
|
id: string;
|
|
38
38
|
version: string;
|
|
39
|
+
type?: string;
|
|
39
40
|
};
|
|
40
41
|
|
|
42
|
+
interface ResourceGroup {
|
|
43
|
+
id?: string;
|
|
44
|
+
title?: string;
|
|
45
|
+
items: ResourcePointer[];
|
|
46
|
+
limit?: number;
|
|
47
|
+
sidebar?: boolean;
|
|
48
|
+
}
|
|
49
|
+
|
|
41
50
|
interface ChannelPointer extends ResourcePointer {
|
|
42
51
|
parameters?: Record<string, string>;
|
|
43
52
|
}
|
|
@@ -145,4 +154,4 @@ interface UbiquitousLanguageDictionary {
|
|
|
145
154
|
dictionary: UbiquitousLanguage[];
|
|
146
155
|
}
|
|
147
156
|
|
|
148
|
-
export type { Badge, BaseSchema, Channel, ChannelPointer, Command, CustomDoc, Domain, Event, Message, Query, ResourcePointer, Service, Specifications, Team, UbiquitousLanguage, UbiquitousLanguageDictionary, User };
|
|
157
|
+
export type { Badge, BaseSchema, Channel, ChannelPointer, Command, CustomDoc, Domain, Event, Message, Query, ResourceGroup, ResourcePointer, Service, Specifications, Team, UbiquitousLanguage, UbiquitousLanguageDictionary, User };
|
package/dist/types.d.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ interface BaseSchema {
|
|
|
28
28
|
label?: string;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
resourceGroups?: ResourceGroup[];
|
|
32
32
|
// SDK types
|
|
33
33
|
schema?: any;
|
|
34
34
|
}
|
|
@@ -36,8 +36,17 @@ interface BaseSchema {
|
|
|
36
36
|
type ResourcePointer = {
|
|
37
37
|
id: string;
|
|
38
38
|
version: string;
|
|
39
|
+
type?: string;
|
|
39
40
|
};
|
|
40
41
|
|
|
42
|
+
interface ResourceGroup {
|
|
43
|
+
id?: string;
|
|
44
|
+
title?: string;
|
|
45
|
+
items: ResourcePointer[];
|
|
46
|
+
limit?: number;
|
|
47
|
+
sidebar?: boolean;
|
|
48
|
+
}
|
|
49
|
+
|
|
41
50
|
interface ChannelPointer extends ResourcePointer {
|
|
42
51
|
parameters?: Record<string, string>;
|
|
43
52
|
}
|
|
@@ -145,4 +154,4 @@ interface UbiquitousLanguageDictionary {
|
|
|
145
154
|
dictionary: UbiquitousLanguage[];
|
|
146
155
|
}
|
|
147
156
|
|
|
148
|
-
export type { Badge, BaseSchema, Channel, ChannelPointer, Command, CustomDoc, Domain, Event, Message, Query, ResourcePointer, Service, Specifications, Team, UbiquitousLanguage, UbiquitousLanguageDictionary, User };
|
|
157
|
+
export type { Badge, BaseSchema, Channel, ChannelPointer, Command, CustomDoc, Domain, Event, Message, Query, ResourceGroup, ResourcePointer, Service, Specifications, Team, UbiquitousLanguage, UbiquitousLanguageDictionary, User };
|
package/dist/types.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types.d.ts"],"sourcesContent":["// Base type for all resources (domains, services and messages)\nexport interface BaseSchema {\n id: string;\n name: string;\n summary?: string;\n version: string;\n badges?: Badge[];\n sidebar?: {\n badge?: string;\n };\n owners?: string[];\n schemaPath?: string;\n markdown: string;\n repository?: {\n language?: string;\n url?: string;\n };\n deprecated?:\n | boolean\n | {\n date?: string;\n message?: string;\n };\n styles?: {\n icon?: string;\n node?: {\n color?: string;\n label?: string;\n };\n };\n
|
|
1
|
+
{"version":3,"sources":["../src/types.d.ts"],"sourcesContent":["// Base type for all resources (domains, services and messages)\nexport interface BaseSchema {\n id: string;\n name: string;\n summary?: string;\n version: string;\n badges?: Badge[];\n sidebar?: {\n badge?: string;\n };\n owners?: string[];\n schemaPath?: string;\n markdown: string;\n repository?: {\n language?: string;\n url?: string;\n };\n deprecated?:\n | boolean\n | {\n date?: string;\n message?: string;\n };\n styles?: {\n icon?: string;\n node?: {\n color?: string;\n label?: string;\n };\n };\n resourceGroups?: ResourceGroup[];\n // SDK types\n schema?: any;\n}\n\nexport type ResourcePointer = {\n id: string;\n version: string;\n type?: string;\n};\n\nexport interface ResourceGroup {\n id?: string;\n title?: string;\n items: ResourcePointer[];\n limit?: number;\n sidebar?: boolean;\n}\n\nexport interface ChannelPointer extends ResourcePointer {\n parameters?: Record<string, string>;\n}\n\nexport type Message = Event | Command;\n\nenum ResourceType {\n Service = 'service',\n Event = 'event',\n Command = 'command',\n}\n\nexport interface CustomDoc {\n title: string;\n summary: string;\n slug?: string;\n sidebar?: {\n label: string;\n order: number;\n };\n owners?: string[];\n badges?: Badge[];\n fileName?: string;\n markdown: string;\n}\n\nexport interface Event extends BaseSchema {\n channels?: ChannelPointer[];\n}\nexport interface Command extends BaseSchema {\n channels?: ChannelPointer[];\n}\nexport interface Query extends BaseSchema {\n channels?: ChannelPointer[];\n}\nexport interface Channel extends BaseSchema {\n address?: string;\n protocols?: string[];\n // parameters?: Record<string, Parameter>;\n parameters?: {\n [key: string]: {\n enum?: string[];\n default?: string;\n examples?: string[];\n description?: string;\n };\n };\n}\n\nexport interface Specifications {\n asyncapiPath?: string;\n openapiPath?: string;\n}\n\nexport interface Service extends BaseSchema {\n sends?: ResourcePointer[];\n receives?: ResourcePointer[];\n specifications?: Specifications;\n}\n\nexport interface Domain extends BaseSchema {\n services?: ResourcePointer[];\n domains?: ResourcePointer[];\n}\n\nexport interface Team {\n id: string;\n name: string;\n summary?: string;\n email?: string;\n hidden?: boolean;\n slackDirectMessageUrl?: string;\n members?: User[];\n ownedCommands?: Command[];\n ownedServices?: Service[];\n ownedEvents?: Event[];\n markdown: string;\n}\n\nexport interface User {\n id: string;\n name: string;\n avatarUrl: string;\n role?: string;\n hidden?: boolean;\n email?: string;\n slackDirectMessageUrl?: string;\n ownedServices?: Service[];\n ownedEvents?: Event[];\n ownedCommands?: Command[];\n associatedTeams?: Team[];\n markdown: string;\n}\n\nexport interface Badge {\n content: string;\n backgroundColor: string;\n textColor: string;\n icon?: string;\n}\n\nexport interface UbiquitousLanguage {\n id: string;\n name: string;\n summary?: string;\n description?: string;\n icon?: string;\n}\n\nexport interface UbiquitousLanguageDictionary {\n dictionary: UbiquitousLanguage[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|