@eventcatalog/sdk 2.24.1 → 2.24.2
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/index.d.mts +24 -8
- package/dist/index.d.ts +24 -8
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -10,6 +10,7 @@ interface BaseSchema {
|
|
|
10
10
|
};
|
|
11
11
|
owners?: string[];
|
|
12
12
|
schemaPath?: string;
|
|
13
|
+
schemas?: SchemaPointer[];
|
|
13
14
|
markdown: string;
|
|
14
15
|
repository?: {
|
|
15
16
|
language?: string;
|
|
@@ -51,6 +52,17 @@ type ResourcePointer = {
|
|
|
51
52
|
type?: string;
|
|
52
53
|
};
|
|
53
54
|
|
|
55
|
+
type SchemaPointer = {
|
|
56
|
+
id?: string;
|
|
57
|
+
ref?: string;
|
|
58
|
+
file?: string;
|
|
59
|
+
path?: string;
|
|
60
|
+
name?: string;
|
|
61
|
+
format?: string;
|
|
62
|
+
environments?: string[];
|
|
63
|
+
default?: boolean;
|
|
64
|
+
};
|
|
65
|
+
|
|
54
66
|
type SendsPointer = {
|
|
55
67
|
id: string;
|
|
56
68
|
version?: string;
|
|
@@ -2220,6 +2232,16 @@ declare const _default: (path: string) => {
|
|
|
2220
2232
|
* Returns the folder name of a given resource
|
|
2221
2233
|
*/
|
|
2222
2234
|
getResourceFolderName: (catalogDir: string, id: string, version?: string) => Promise<string | undefined>;
|
|
2235
|
+
/**
|
|
2236
|
+
* Returns resources from the catalog for a given type
|
|
2237
|
+
*/
|
|
2238
|
+
getResources: (catalogDir: string, { type, latestOnly, ignore, pattern, attachSchema, }: {
|
|
2239
|
+
type: string;
|
|
2240
|
+
pattern?: string;
|
|
2241
|
+
latestOnly?: boolean;
|
|
2242
|
+
ignore?: string[];
|
|
2243
|
+
attachSchema?: boolean;
|
|
2244
|
+
}) => Promise<(Service | CustomDoc | Message)[] | undefined>;
|
|
2223
2245
|
/**
|
|
2224
2246
|
* ================================
|
|
2225
2247
|
* General Message Utils
|
|
@@ -2407,13 +2429,7 @@ declare const _default: (path: string) => {
|
|
|
2407
2429
|
version?: string;
|
|
2408
2430
|
}, options?: {
|
|
2409
2431
|
path?: string;
|
|
2410
|
-
format
|
|
2411
|
-
* Adds a file to the given event
|
|
2412
|
-
* @param id - The id of the event to add the file to
|
|
2413
|
-
* @param file - File contents to add including the content and the file name
|
|
2414
|
-
* @param version - Optional version of the event to add the file to
|
|
2415
|
-
* @returns
|
|
2416
|
-
*/: "md" | "mdx";
|
|
2432
|
+
format?: "md" | "mdx";
|
|
2417
2433
|
override?: boolean;
|
|
2418
2434
|
}) => Promise<void>;
|
|
2419
2435
|
/**
|
|
@@ -2734,4 +2750,4 @@ declare const _default: (path: string) => {
|
|
|
2734
2750
|
toDSL: (resource: (Event | Command | Query | Service | Domain) | (Event | Command | Query | Service | Domain)[], options: ToDSLOptions) => Promise<string>;
|
|
2735
2751
|
};
|
|
2736
2752
|
|
|
2737
|
-
export { type Agent, type AgentModel, type AgentTool, type Badge, type BaseSchema, type CatalogSnapshot, type Changelog, type Channel, type ChannelPointer, type Command, type Container, type CustomDoc, type DataProduct, type DataProductOutputPointer, type Diagram, type DiffSummary, type Domain, type Entity, type Event, type EventCatalog, type Flow, type FlowActorStepInput, type FlowAgentStepInput, FlowBuilder, type FlowBuilderInput, type FlowCustomStepInput, type FlowDataProductStepInput, type FlowDataStoreStepInput, type FlowExternalSystemStepInput, type FlowMessageStepInput, type FlowServiceStepInput, type FlowStep, type FlowStepInput, type FlowSubFlowStepInput, type Message, type Operation, type Query, type ReceivesPointer, type RelationshipChange, type ResourceChange, type ResourceChangeType, type ResourceGroup, type ResourcePointer, type SendsPointer, type Service, type SnapshotDiff, type SnapshotGitInfo, type SnapshotMeta, type SnapshotOptions, type SnapshotResourceType, type SnapshotResources, type SnapshotResult, type Specification, type Specifications, type Team, type UbiquitousLanguage, type UbiquitousLanguageDictionary, type User, _default as default };
|
|
2753
|
+
export { type Agent, type AgentModel, type AgentTool, type Badge, type BaseSchema, type CatalogSnapshot, type Changelog, type Channel, type ChannelPointer, type Command, type Container, type CustomDoc, type DataProduct, type DataProductOutputPointer, type Diagram, type DiffSummary, type Domain, type Entity, type Event, type EventCatalog, type Flow, type FlowActorStepInput, type FlowAgentStepInput, FlowBuilder, type FlowBuilderInput, type FlowCustomStepInput, type FlowDataProductStepInput, type FlowDataStoreStepInput, type FlowExternalSystemStepInput, type FlowMessageStepInput, type FlowServiceStepInput, type FlowStep, type FlowStepInput, type FlowSubFlowStepInput, type Message, type Operation, type Query, type ReceivesPointer, type RelationshipChange, type ResourceChange, type ResourceChangeType, type ResourceGroup, type ResourcePointer, type SchemaPointer, type SendsPointer, type Service, type SnapshotDiff, type SnapshotGitInfo, type SnapshotMeta, type SnapshotOptions, type SnapshotResourceType, type SnapshotResources, type SnapshotResult, type Specification, type Specifications, type Team, type UbiquitousLanguage, type UbiquitousLanguageDictionary, type User, _default as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ interface BaseSchema {
|
|
|
10
10
|
};
|
|
11
11
|
owners?: string[];
|
|
12
12
|
schemaPath?: string;
|
|
13
|
+
schemas?: SchemaPointer[];
|
|
13
14
|
markdown: string;
|
|
14
15
|
repository?: {
|
|
15
16
|
language?: string;
|
|
@@ -51,6 +52,17 @@ type ResourcePointer = {
|
|
|
51
52
|
type?: string;
|
|
52
53
|
};
|
|
53
54
|
|
|
55
|
+
type SchemaPointer = {
|
|
56
|
+
id?: string;
|
|
57
|
+
ref?: string;
|
|
58
|
+
file?: string;
|
|
59
|
+
path?: string;
|
|
60
|
+
name?: string;
|
|
61
|
+
format?: string;
|
|
62
|
+
environments?: string[];
|
|
63
|
+
default?: boolean;
|
|
64
|
+
};
|
|
65
|
+
|
|
54
66
|
type SendsPointer = {
|
|
55
67
|
id: string;
|
|
56
68
|
version?: string;
|
|
@@ -2220,6 +2232,16 @@ declare const _default: (path: string) => {
|
|
|
2220
2232
|
* Returns the folder name of a given resource
|
|
2221
2233
|
*/
|
|
2222
2234
|
getResourceFolderName: (catalogDir: string, id: string, version?: string) => Promise<string | undefined>;
|
|
2235
|
+
/**
|
|
2236
|
+
* Returns resources from the catalog for a given type
|
|
2237
|
+
*/
|
|
2238
|
+
getResources: (catalogDir: string, { type, latestOnly, ignore, pattern, attachSchema, }: {
|
|
2239
|
+
type: string;
|
|
2240
|
+
pattern?: string;
|
|
2241
|
+
latestOnly?: boolean;
|
|
2242
|
+
ignore?: string[];
|
|
2243
|
+
attachSchema?: boolean;
|
|
2244
|
+
}) => Promise<(Service | CustomDoc | Message)[] | undefined>;
|
|
2223
2245
|
/**
|
|
2224
2246
|
* ================================
|
|
2225
2247
|
* General Message Utils
|
|
@@ -2407,13 +2429,7 @@ declare const _default: (path: string) => {
|
|
|
2407
2429
|
version?: string;
|
|
2408
2430
|
}, options?: {
|
|
2409
2431
|
path?: string;
|
|
2410
|
-
format
|
|
2411
|
-
* Adds a file to the given event
|
|
2412
|
-
* @param id - The id of the event to add the file to
|
|
2413
|
-
* @param file - File contents to add including the content and the file name
|
|
2414
|
-
* @param version - Optional version of the event to add the file to
|
|
2415
|
-
* @returns
|
|
2416
|
-
*/: "md" | "mdx";
|
|
2432
|
+
format?: "md" | "mdx";
|
|
2417
2433
|
override?: boolean;
|
|
2418
2434
|
}) => Promise<void>;
|
|
2419
2435
|
/**
|
|
@@ -2734,4 +2750,4 @@ declare const _default: (path: string) => {
|
|
|
2734
2750
|
toDSL: (resource: (Event | Command | Query | Service | Domain) | (Event | Command | Query | Service | Domain)[], options: ToDSLOptions) => Promise<string>;
|
|
2735
2751
|
};
|
|
2736
2752
|
|
|
2737
|
-
export { type Agent, type AgentModel, type AgentTool, type Badge, type BaseSchema, type CatalogSnapshot, type Changelog, type Channel, type ChannelPointer, type Command, type Container, type CustomDoc, type DataProduct, type DataProductOutputPointer, type Diagram, type DiffSummary, type Domain, type Entity, type Event, type EventCatalog, type Flow, type FlowActorStepInput, type FlowAgentStepInput, FlowBuilder, type FlowBuilderInput, type FlowCustomStepInput, type FlowDataProductStepInput, type FlowDataStoreStepInput, type FlowExternalSystemStepInput, type FlowMessageStepInput, type FlowServiceStepInput, type FlowStep, type FlowStepInput, type FlowSubFlowStepInput, type Message, type Operation, type Query, type ReceivesPointer, type RelationshipChange, type ResourceChange, type ResourceChangeType, type ResourceGroup, type ResourcePointer, type SendsPointer, type Service, type SnapshotDiff, type SnapshotGitInfo, type SnapshotMeta, type SnapshotOptions, type SnapshotResourceType, type SnapshotResources, type SnapshotResult, type Specification, type Specifications, type Team, type UbiquitousLanguage, type UbiquitousLanguageDictionary, type User, _default as default };
|
|
2753
|
+
export { type Agent, type AgentModel, type AgentTool, type Badge, type BaseSchema, type CatalogSnapshot, type Changelog, type Channel, type ChannelPointer, type Command, type Container, type CustomDoc, type DataProduct, type DataProductOutputPointer, type Diagram, type DiffSummary, type Domain, type Entity, type Event, type EventCatalog, type Flow, type FlowActorStepInput, type FlowAgentStepInput, FlowBuilder, type FlowBuilderInput, type FlowCustomStepInput, type FlowDataProductStepInput, type FlowDataStoreStepInput, type FlowExternalSystemStepInput, type FlowMessageStepInput, type FlowServiceStepInput, type FlowStep, type FlowStepInput, type FlowSubFlowStepInput, type Message, type Operation, type Query, type ReceivesPointer, type RelationshipChange, type ResourceChange, type ResourceChangeType, type ResourceGroup, type ResourcePointer, type SchemaPointer, type SendsPointer, type Service, type SnapshotDiff, type SnapshotGitInfo, type SnapshotMeta, type SnapshotOptions, type SnapshotResourceType, type SnapshotResources, type SnapshotResult, type Specification, type Specifications, type Team, type UbiquitousLanguage, type UbiquitousLanguageDictionary, type User, _default as default };
|
package/dist/index.js
CHANGED
|
@@ -4280,6 +4280,10 @@ var src_default = (path9) => {
|
|
|
4280
4280
|
* Returns the folder name of a given resource
|
|
4281
4281
|
*/
|
|
4282
4282
|
getResourceFolderName,
|
|
4283
|
+
/**
|
|
4284
|
+
* Returns resources from the catalog for a given type
|
|
4285
|
+
*/
|
|
4286
|
+
getResources,
|
|
4283
4287
|
/**
|
|
4284
4288
|
* ================================
|
|
4285
4289
|
* General Message Utils
|