@eventcatalog/sdk 2.5.2 → 2.5.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/dist/eventcatalog.d.mts +3 -24
- package/dist/eventcatalog.d.ts +3 -24
- package/dist/eventcatalog.js +2 -2
- package/dist/eventcatalog.js.map +1 -1
- package/dist/eventcatalog.mjs +2 -2
- package/dist/eventcatalog.mjs.map +1 -1
- package/dist/index.d.mts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/services.js +1 -1
- package/dist/services.js.map +1 -1
- package/dist/services.mjs +1 -1
- package/dist/services.mjs.map +1 -1
- package/dist/types.d.d.mts +20 -1
- package/dist/types.d.d.ts +20 -1
- package/dist/types.d.js.map +1 -1
- package/package.json +1 -1
package/dist/eventcatalog.d.mts
CHANGED
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventCatalog } from './types.d.mjs';
|
|
2
2
|
|
|
3
|
-
type ExportedResource<T = any> = T & {
|
|
4
|
-
directory: string;
|
|
5
|
-
};
|
|
6
|
-
type EventCatalogObject = {
|
|
7
|
-
version: string;
|
|
8
|
-
catalogVersion: string;
|
|
9
|
-
createdAt: string;
|
|
10
|
-
resources: {
|
|
11
|
-
domains?: ExportedResource<Domain>[];
|
|
12
|
-
services?: ExportedResource<Service>[];
|
|
13
|
-
messages?: {
|
|
14
|
-
events?: ExportedResource<Event>[];
|
|
15
|
-
queries?: ExportedResource<Query>[];
|
|
16
|
-
commands?: ExportedResource<Command>[];
|
|
17
|
-
};
|
|
18
|
-
teams?: ExportedResource<Team>[];
|
|
19
|
-
users?: ExportedResource<User>[];
|
|
20
|
-
channels?: ExportedResource<Channel>[];
|
|
21
|
-
customDocs?: ExportedResource<CustomDoc>[];
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
3
|
/**
|
|
25
4
|
* Returns the event catalog configuration file.
|
|
26
5
|
* The event catalog configuration file is the file that contains the configuration for the event catalog.
|
|
@@ -37,6 +16,6 @@ declare const getEventCatalogConfigurationFile: (directory: string) => () => Pro
|
|
|
37
16
|
*/
|
|
38
17
|
declare const dumpCatalog: (directory: string) => (options?: {
|
|
39
18
|
includeMarkdown?: boolean;
|
|
40
|
-
}) => Promise<
|
|
19
|
+
}) => Promise<EventCatalog>;
|
|
41
20
|
|
|
42
|
-
export {
|
|
21
|
+
export { dumpCatalog, getEventCatalogConfigurationFile };
|
package/dist/eventcatalog.d.ts
CHANGED
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventCatalog } from './types.d.js';
|
|
2
2
|
|
|
3
|
-
type ExportedResource<T = any> = T & {
|
|
4
|
-
directory: string;
|
|
5
|
-
};
|
|
6
|
-
type EventCatalogObject = {
|
|
7
|
-
version: string;
|
|
8
|
-
catalogVersion: string;
|
|
9
|
-
createdAt: string;
|
|
10
|
-
resources: {
|
|
11
|
-
domains?: ExportedResource<Domain>[];
|
|
12
|
-
services?: ExportedResource<Service>[];
|
|
13
|
-
messages?: {
|
|
14
|
-
events?: ExportedResource<Event>[];
|
|
15
|
-
queries?: ExportedResource<Query>[];
|
|
16
|
-
commands?: ExportedResource<Command>[];
|
|
17
|
-
};
|
|
18
|
-
teams?: ExportedResource<Team>[];
|
|
19
|
-
users?: ExportedResource<User>[];
|
|
20
|
-
channels?: ExportedResource<Channel>[];
|
|
21
|
-
customDocs?: ExportedResource<CustomDoc>[];
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
3
|
/**
|
|
25
4
|
* Returns the event catalog configuration file.
|
|
26
5
|
* The event catalog configuration file is the file that contains the configuration for the event catalog.
|
|
@@ -37,6 +16,6 @@ declare const getEventCatalogConfigurationFile: (directory: string) => () => Pro
|
|
|
37
16
|
*/
|
|
38
17
|
declare const dumpCatalog: (directory: string) => (options?: {
|
|
39
18
|
includeMarkdown?: boolean;
|
|
40
|
-
}) => Promise<
|
|
19
|
+
}) => Promise<EventCatalog>;
|
|
41
20
|
|
|
42
|
-
export {
|
|
21
|
+
export { dumpCatalog, getEventCatalogConfigurationFile };
|
package/dist/eventcatalog.js
CHANGED
|
@@ -439,7 +439,7 @@ var import_node_path5 = require("path");
|
|
|
439
439
|
var getService = (directory) => async (id, version) => getResource(directory, id, version, { type: "service" });
|
|
440
440
|
var getServices = (directory) => async (options) => getResources(directory, {
|
|
441
441
|
type: "services",
|
|
442
|
-
ignore: ["**/events/**", "**/commands/**", "**/queries/**", "**/entities/**"],
|
|
442
|
+
ignore: ["**/events/**", "**/commands/**", "**/queries/**", "**/entities/**", "**/subdomains/**/entities/**"],
|
|
443
443
|
...options
|
|
444
444
|
});
|
|
445
445
|
var writeService = (directory) => async (service, options = {
|
|
@@ -1493,7 +1493,7 @@ var getEventCatalogVersion = async (catalogDir) => {
|
|
|
1493
1493
|
return "unknown";
|
|
1494
1494
|
}
|
|
1495
1495
|
};
|
|
1496
|
-
var hydrateResource = async (catalogDir, resources, { attachSchema = false } = {}) => {
|
|
1496
|
+
var hydrateResource = async (catalogDir, resources = [], { attachSchema = false } = {}) => {
|
|
1497
1497
|
return await Promise.all(
|
|
1498
1498
|
resources.map(async (resource) => {
|
|
1499
1499
|
const resourcePath = await getResourcePath(catalogDir, resource.id, resource.version);
|