@eventcatalog/sdk 2.24.0 → 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 +27 -9
- package/dist/index.d.ts +27 -9
- 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;
|
|
@@ -257,6 +269,7 @@ interface Team {
|
|
|
257
269
|
hidden?: boolean;
|
|
258
270
|
source?: {
|
|
259
271
|
provider: string;
|
|
272
|
+
id?: string;
|
|
260
273
|
url?: string;
|
|
261
274
|
};
|
|
262
275
|
readOnly?: boolean;
|
|
@@ -271,11 +284,12 @@ interface Team {
|
|
|
271
284
|
interface User {
|
|
272
285
|
id: string;
|
|
273
286
|
name: string;
|
|
274
|
-
avatarUrl
|
|
287
|
+
avatarUrl?: string;
|
|
275
288
|
role?: string;
|
|
276
289
|
hidden?: boolean;
|
|
277
290
|
source?: {
|
|
278
291
|
provider: string;
|
|
292
|
+
id?: string;
|
|
279
293
|
url?: string;
|
|
280
294
|
};
|
|
281
295
|
readOnly?: boolean;
|
|
@@ -2218,6 +2232,16 @@ declare const _default: (path: string) => {
|
|
|
2218
2232
|
* Returns the folder name of a given resource
|
|
2219
2233
|
*/
|
|
2220
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>;
|
|
2221
2245
|
/**
|
|
2222
2246
|
* ================================
|
|
2223
2247
|
* General Message Utils
|
|
@@ -2405,13 +2429,7 @@ declare const _default: (path: string) => {
|
|
|
2405
2429
|
version?: string;
|
|
2406
2430
|
}, options?: {
|
|
2407
2431
|
path?: string;
|
|
2408
|
-
format
|
|
2409
|
-
* Adds a file to the given event
|
|
2410
|
-
* @param id - The id of the event to add the file to
|
|
2411
|
-
* @param file - File contents to add including the content and the file name
|
|
2412
|
-
* @param version - Optional version of the event to add the file to
|
|
2413
|
-
* @returns
|
|
2414
|
-
*/: "md" | "mdx";
|
|
2432
|
+
format?: "md" | "mdx";
|
|
2415
2433
|
override?: boolean;
|
|
2416
2434
|
}) => Promise<void>;
|
|
2417
2435
|
/**
|
|
@@ -2732,4 +2750,4 @@ declare const _default: (path: string) => {
|
|
|
2732
2750
|
toDSL: (resource: (Event | Command | Query | Service | Domain) | (Event | Command | Query | Service | Domain)[], options: ToDSLOptions) => Promise<string>;
|
|
2733
2751
|
};
|
|
2734
2752
|
|
|
2735
|
-
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;
|
|
@@ -257,6 +269,7 @@ interface Team {
|
|
|
257
269
|
hidden?: boolean;
|
|
258
270
|
source?: {
|
|
259
271
|
provider: string;
|
|
272
|
+
id?: string;
|
|
260
273
|
url?: string;
|
|
261
274
|
};
|
|
262
275
|
readOnly?: boolean;
|
|
@@ -271,11 +284,12 @@ interface Team {
|
|
|
271
284
|
interface User {
|
|
272
285
|
id: string;
|
|
273
286
|
name: string;
|
|
274
|
-
avatarUrl
|
|
287
|
+
avatarUrl?: string;
|
|
275
288
|
role?: string;
|
|
276
289
|
hidden?: boolean;
|
|
277
290
|
source?: {
|
|
278
291
|
provider: string;
|
|
292
|
+
id?: string;
|
|
279
293
|
url?: string;
|
|
280
294
|
};
|
|
281
295
|
readOnly?: boolean;
|
|
@@ -2218,6 +2232,16 @@ declare const _default: (path: string) => {
|
|
|
2218
2232
|
* Returns the folder name of a given resource
|
|
2219
2233
|
*/
|
|
2220
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>;
|
|
2221
2245
|
/**
|
|
2222
2246
|
* ================================
|
|
2223
2247
|
* General Message Utils
|
|
@@ -2405,13 +2429,7 @@ declare const _default: (path: string) => {
|
|
|
2405
2429
|
version?: string;
|
|
2406
2430
|
}, options?: {
|
|
2407
2431
|
path?: string;
|
|
2408
|
-
format
|
|
2409
|
-
* Adds a file to the given event
|
|
2410
|
-
* @param id - The id of the event to add the file to
|
|
2411
|
-
* @param file - File contents to add including the content and the file name
|
|
2412
|
-
* @param version - Optional version of the event to add the file to
|
|
2413
|
-
* @returns
|
|
2414
|
-
*/: "md" | "mdx";
|
|
2432
|
+
format?: "md" | "mdx";
|
|
2415
2433
|
override?: boolean;
|
|
2416
2434
|
}) => Promise<void>;
|
|
2417
2435
|
/**
|
|
@@ -2732,4 +2750,4 @@ declare const _default: (path: string) => {
|
|
|
2732
2750
|
toDSL: (resource: (Event | Command | Query | Service | Domain) | (Event | Command | Query | Service | Domain)[], options: ToDSLOptions) => Promise<string>;
|
|
2733
2751
|
};
|
|
2734
2752
|
|
|
2735
|
-
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
|