@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/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Event, Command, Query, Channel, Service, Domain, UbiquitousLanguageDictionary, Team, User, CustomDoc } from './types.d.mjs';
|
|
1
|
+
import { Event, Command, Query, Channel, Service, Domain, UbiquitousLanguageDictionary, Team, User, CustomDoc, EventCatalog } from './types.d.mjs';
|
|
3
2
|
export { Badge, BaseSchema, ChannelPointer, Message, ResourceGroup, ResourcePointer, Specifications, UbiquitousLanguage } from './types.d.mjs';
|
|
4
3
|
|
|
5
4
|
/**
|
|
@@ -829,7 +828,7 @@ declare const _default: (path: string) => {
|
|
|
829
828
|
*/
|
|
830
829
|
dumpCatalog: (options?: {
|
|
831
830
|
includeMarkdown?: boolean;
|
|
832
|
-
}) => Promise<
|
|
831
|
+
}) => Promise<EventCatalog>;
|
|
833
832
|
/**
|
|
834
833
|
* Returns the event catalog configuration file.
|
|
835
834
|
* The event catalog configuration file is the file that contains the configuration for the event catalog.
|
|
@@ -853,4 +852,4 @@ declare const _default: (path: string) => {
|
|
|
853
852
|
} | undefined>;
|
|
854
853
|
};
|
|
855
854
|
|
|
856
|
-
export { Channel, Command, CustomDoc, Domain, Event, Query, Service, Team, UbiquitousLanguageDictionary, User, _default as default };
|
|
855
|
+
export { Channel, Command, CustomDoc, Domain, Event, EventCatalog, Query, Service, Team, UbiquitousLanguageDictionary, User, _default as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Event, Command, Query, Channel, Service, Domain, UbiquitousLanguageDictionary, Team, User, CustomDoc } from './types.d.js';
|
|
1
|
+
import { Event, Command, Query, Channel, Service, Domain, UbiquitousLanguageDictionary, Team, User, CustomDoc, EventCatalog } from './types.d.js';
|
|
3
2
|
export { Badge, BaseSchema, ChannelPointer, Message, ResourceGroup, ResourcePointer, Specifications, UbiquitousLanguage } from './types.d.js';
|
|
4
3
|
|
|
5
4
|
/**
|
|
@@ -829,7 +828,7 @@ declare const _default: (path: string) => {
|
|
|
829
828
|
*/
|
|
830
829
|
dumpCatalog: (options?: {
|
|
831
830
|
includeMarkdown?: boolean;
|
|
832
|
-
}) => Promise<
|
|
831
|
+
}) => Promise<EventCatalog>;
|
|
833
832
|
/**
|
|
834
833
|
* Returns the event catalog configuration file.
|
|
835
834
|
* The event catalog configuration file is the file that contains the configuration for the event catalog.
|
|
@@ -853,4 +852,4 @@ declare const _default: (path: string) => {
|
|
|
853
852
|
} | undefined>;
|
|
854
853
|
};
|
|
855
854
|
|
|
856
|
-
export { Channel, Command, CustomDoc, Domain, Event, Query, Service, Team, UbiquitousLanguageDictionary, User, _default as default };
|
|
855
|
+
export { Channel, Command, CustomDoc, Domain, Event, EventCatalog, Query, Service, Team, UbiquitousLanguageDictionary, User, _default as default };
|
package/dist/index.js
CHANGED
|
@@ -434,7 +434,7 @@ var import_node_path5 = require("path");
|
|
|
434
434
|
var getService = (directory) => async (id, version) => getResource(directory, id, version, { type: "service" });
|
|
435
435
|
var getServices = (directory) => async (options) => getResources(directory, {
|
|
436
436
|
type: "services",
|
|
437
|
-
ignore: ["**/events/**", "**/commands/**", "**/queries/**", "**/entities/**"],
|
|
437
|
+
ignore: ["**/events/**", "**/commands/**", "**/queries/**", "**/entities/**", "**/subdomains/**/entities/**"],
|
|
438
438
|
...options
|
|
439
439
|
});
|
|
440
440
|
var writeService = (directory) => async (service, options = {
|
|
@@ -807,7 +807,7 @@ var getEventCatalogVersion = async (catalogDir) => {
|
|
|
807
807
|
return "unknown";
|
|
808
808
|
}
|
|
809
809
|
};
|
|
810
|
-
var hydrateResource = async (catalogDir, resources, { attachSchema = false } = {}) => {
|
|
810
|
+
var hydrateResource = async (catalogDir, resources = [], { attachSchema = false } = {}) => {
|
|
811
811
|
return await Promise.all(
|
|
812
812
|
resources.map(async (resource) => {
|
|
813
813
|
const resourcePath = await getResourcePath(catalogDir, resource.id, resource.version);
|