@eventcatalog/sdk 2.5.2 → 2.5.3

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.
@@ -1,26 +1,5 @@
1
- import { Domain, Service, Event, Query, Command, Team, User, Channel, CustomDoc } from './types.d.mjs';
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<EventCatalogObject>;
19
+ }) => Promise<EventCatalog>;
41
20
 
42
- export { type EventCatalogObject, dumpCatalog, getEventCatalogConfigurationFile };
21
+ export { dumpCatalog, getEventCatalogConfigurationFile };
@@ -1,26 +1,5 @@
1
- import { Domain, Service, Event, Query, Command, Team, User, Channel, CustomDoc } from './types.d.js';
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<EventCatalogObject>;
19
+ }) => Promise<EventCatalog>;
41
20
 
42
- export { type EventCatalogObject, dumpCatalog, getEventCatalogConfigurationFile };
21
+ export { dumpCatalog, getEventCatalogConfigurationFile };
@@ -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 = {