@eventcatalog/sdk 2.24.2 → 2.25.0-beta.0
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 +171 -2
- package/dist/index.d.ts +171 -2
- package/dist/index.js +517 -283
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +494 -260
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -52,6 +52,21 @@ type ResourcePointer = {
|
|
|
52
52
|
type?: string;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
+
type SystemScope = 'internal' | 'external';
|
|
56
|
+
|
|
57
|
+
type SystemRelationshipPointer = {
|
|
58
|
+
id: string;
|
|
59
|
+
version?: string;
|
|
60
|
+
label?: string;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
type SystemActorRelationship = {
|
|
64
|
+
id: string;
|
|
65
|
+
name?: string;
|
|
66
|
+
label?: string;
|
|
67
|
+
direction?: 'inbound' | 'outbound';
|
|
68
|
+
};
|
|
69
|
+
|
|
55
70
|
type SchemaPointer = {
|
|
56
71
|
id?: string;
|
|
57
72
|
ref?: string;
|
|
@@ -239,6 +254,7 @@ interface Domain extends BaseSchema {
|
|
|
239
254
|
services?: ResourcePointer[];
|
|
240
255
|
agents?: ResourcePointer[];
|
|
241
256
|
domains?: ResourcePointer[];
|
|
257
|
+
systems?: ResourcePointer[];
|
|
242
258
|
entities?: ResourcePointer[];
|
|
243
259
|
dataProducts?: ResourcePointer[];
|
|
244
260
|
flows?: ResourcePointer[];
|
|
@@ -247,6 +263,7 @@ interface Domain extends BaseSchema {
|
|
|
247
263
|
detailsPanel?: {
|
|
248
264
|
parentDomains?: DetailPanelProperty;
|
|
249
265
|
subdomains?: DetailPanelProperty;
|
|
266
|
+
systems?: DetailPanelProperty;
|
|
250
267
|
services?: DetailPanelProperty;
|
|
251
268
|
agents?: DetailPanelProperty;
|
|
252
269
|
entities?: DetailPanelProperty;
|
|
@@ -259,6 +276,28 @@ interface Domain extends BaseSchema {
|
|
|
259
276
|
};
|
|
260
277
|
}
|
|
261
278
|
|
|
279
|
+
interface System extends BaseSchema {
|
|
280
|
+
scope?: SystemScope;
|
|
281
|
+
services?: ResourcePointer[];
|
|
282
|
+
flows?: ResourcePointer[];
|
|
283
|
+
entities?: ResourcePointer[];
|
|
284
|
+
containers?: ResourcePointer[];
|
|
285
|
+
relationships?: SystemRelationshipPointer[];
|
|
286
|
+
actors?: SystemActorRelationship[];
|
|
287
|
+
detailsPanel?: {
|
|
288
|
+
versions?: DetailPanelProperty;
|
|
289
|
+
repository?: DetailPanelProperty;
|
|
290
|
+
owners?: DetailPanelProperty;
|
|
291
|
+
changelog?: DetailPanelProperty;
|
|
292
|
+
attachments?: DetailPanelProperty;
|
|
293
|
+
services?: DetailPanelProperty;
|
|
294
|
+
flows?: DetailPanelProperty;
|
|
295
|
+
entities?: DetailPanelProperty;
|
|
296
|
+
containers?: DetailPanelProperty;
|
|
297
|
+
diagrams?: DetailPanelProperty;
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
|
|
262
301
|
interface Team {
|
|
263
302
|
id: string;
|
|
264
303
|
name: string;
|
|
@@ -461,6 +500,7 @@ type EventCatalog = {
|
|
|
461
500
|
createdAt: string;
|
|
462
501
|
resources: {
|
|
463
502
|
domains?: ExportedResource<Domain>[];
|
|
503
|
+
systems?: ExportedResource<System>[];
|
|
464
504
|
services?: ExportedResource<Service>[];
|
|
465
505
|
agents?: ExportedResource<Agent>[];
|
|
466
506
|
messages?: {
|
|
@@ -1578,13 +1618,35 @@ declare const _default: (path: string) => {
|
|
|
1578
1618
|
*/
|
|
1579
1619
|
writeServiceToDomain: (service: Service, domain: {
|
|
1580
1620
|
id: string;
|
|
1581
|
-
version
|
|
1621
|
+
version? /**
|
|
1622
|
+
* Adds a file to the given event
|
|
1623
|
+
* @param id - The id of the event to add the file to
|
|
1624
|
+
* @param file - File contents to add including the content and the file name
|
|
1625
|
+
* @param version - Optional version of the event to add the file to
|
|
1626
|
+
* @returns
|
|
1627
|
+
*/: string;
|
|
1582
1628
|
direction?: string;
|
|
1583
1629
|
}, options?: {
|
|
1584
1630
|
path?: string;
|
|
1585
1631
|
format?: "md" | "mdx";
|
|
1586
1632
|
override?: boolean;
|
|
1587
1633
|
}) => Promise<void>;
|
|
1634
|
+
/**
|
|
1635
|
+
* Adds a service to a system in EventCatalog
|
|
1636
|
+
*
|
|
1637
|
+
* @param service - The service to write
|
|
1638
|
+
* @param system - The system to add the service to
|
|
1639
|
+
* @param options - Optional options to write the service
|
|
1640
|
+
*
|
|
1641
|
+
*/
|
|
1642
|
+
writeServiceToSystem: (service: Service, system: {
|
|
1643
|
+
id: string;
|
|
1644
|
+
version?: string;
|
|
1645
|
+
}, options?: {
|
|
1646
|
+
path?: string;
|
|
1647
|
+
format?: "md" | "mdx";
|
|
1648
|
+
override?: boolean;
|
|
1649
|
+
}) => Promise<void>;
|
|
1588
1650
|
/**
|
|
1589
1651
|
* Returns a service from EventCatalog
|
|
1590
1652
|
* @param id - The id of the service to retrieve
|
|
@@ -1789,6 +1851,56 @@ declare const _default: (path: string) => {
|
|
|
1789
1851
|
* @returns The service.
|
|
1790
1852
|
*/
|
|
1791
1853
|
toService: (file: string) => Promise<Service>;
|
|
1854
|
+
/**
|
|
1855
|
+
* ================================
|
|
1856
|
+
* Systems
|
|
1857
|
+
* ================================
|
|
1858
|
+
*/
|
|
1859
|
+
writeSystem: (system: System, options?: {
|
|
1860
|
+
path?: string;
|
|
1861
|
+
override?: boolean;
|
|
1862
|
+
versionExistingContent?: boolean;
|
|
1863
|
+
format?: "md" | "mdx";
|
|
1864
|
+
}) => Promise<void>;
|
|
1865
|
+
writeSystemToDomain: (system: System, domain: {
|
|
1866
|
+
id: string;
|
|
1867
|
+
version?: string;
|
|
1868
|
+
}, options?: {
|
|
1869
|
+
path?: string;
|
|
1870
|
+
format?: "md" | "mdx";
|
|
1871
|
+
override?: boolean;
|
|
1872
|
+
}) => Promise<void>;
|
|
1873
|
+
getSystem: (id: string, version?: string) => Promise<System>;
|
|
1874
|
+
getSystemByPath: (path: string) => Promise<System>;
|
|
1875
|
+
getSystems: (options?: {
|
|
1876
|
+
latestOnly?: boolean;
|
|
1877
|
+
}) => Promise<System[]>;
|
|
1878
|
+
versionSystem: (id: string) => Promise<void>;
|
|
1879
|
+
rmSystem: (path: string) => Promise<void>;
|
|
1880
|
+
rmSystemById: (id: string, version?: string, persistFiles?: boolean) => Promise<void>;
|
|
1881
|
+
addFileToSystem: (id: string, file: {
|
|
1882
|
+
content: string;
|
|
1883
|
+
fileName: string;
|
|
1884
|
+
}, version?: string) => Promise<void>;
|
|
1885
|
+
addServiceToSystem: (id: string, resource: {
|
|
1886
|
+
id: string;
|
|
1887
|
+
version: string;
|
|
1888
|
+
}, version?: string) => Promise<void>;
|
|
1889
|
+
addFlowToSystem: (id: string, resource: {
|
|
1890
|
+
id: string;
|
|
1891
|
+
version: string;
|
|
1892
|
+
}, version?: string) => Promise<void>;
|
|
1893
|
+
addEntityToSystem: (id: string, resource: {
|
|
1894
|
+
id: string;
|
|
1895
|
+
version: string;
|
|
1896
|
+
}, version?: string) => Promise<void>;
|
|
1897
|
+
addContainerToSystem: (id: string, resource: {
|
|
1898
|
+
id: string;
|
|
1899
|
+
version: string;
|
|
1900
|
+
}, version?: string) => Promise<void>;
|
|
1901
|
+
systemHasVersion: (id: string, version?: string) => Promise<boolean>;
|
|
1902
|
+
isSystem: (path: string) => Promise<boolean>;
|
|
1903
|
+
toSystem: (file: string) => Promise<System>;
|
|
1792
1904
|
/**
|
|
1793
1905
|
* ================================
|
|
1794
1906
|
* Agents
|
|
@@ -1969,6 +2081,17 @@ declare const _default: (path: string) => {
|
|
|
1969
2081
|
id: string;
|
|
1970
2082
|
version: string;
|
|
1971
2083
|
}, version?: string) => Promise<void>;
|
|
2084
|
+
/**
|
|
2085
|
+
* Adds a given system to a domain
|
|
2086
|
+
* @param id - The id of the domain
|
|
2087
|
+
* @param system - The id and version of the system to add
|
|
2088
|
+
* @param version - (Optional) The version of the domain to add the system to
|
|
2089
|
+
* @returns
|
|
2090
|
+
*/
|
|
2091
|
+
addSystemToDomain: (id: string, system: {
|
|
2092
|
+
id: string;
|
|
2093
|
+
version: string;
|
|
2094
|
+
}, version?: string) => Promise<void>;
|
|
1972
2095
|
/**
|
|
1973
2096
|
* Adds an entity to a domain
|
|
1974
2097
|
* @param id - The id of the domain
|
|
@@ -2331,6 +2454,22 @@ declare const _default: (path: string) => {
|
|
|
2331
2454
|
versionExistingContent?: boolean;
|
|
2332
2455
|
format?: "md" | "mdx";
|
|
2333
2456
|
}) => Promise<void>;
|
|
2457
|
+
/**
|
|
2458
|
+
* Adds an entity to a system in EventCatalog
|
|
2459
|
+
*
|
|
2460
|
+
* @param entity - The entity to write to the system
|
|
2461
|
+
* @param system - The system and its id to write the entity to
|
|
2462
|
+
* @param options - Optional options to write the entity
|
|
2463
|
+
*
|
|
2464
|
+
*/
|
|
2465
|
+
writeEntityToSystem: (entity: Entity, system: {
|
|
2466
|
+
id: string;
|
|
2467
|
+
version?: string;
|
|
2468
|
+
}, options?: {
|
|
2469
|
+
path?: string;
|
|
2470
|
+
format?: "md" | "mdx";
|
|
2471
|
+
override?: boolean;
|
|
2472
|
+
}) => Promise<void>;
|
|
2334
2473
|
/**
|
|
2335
2474
|
* Remove an entity from EventCatalog (modeled on the standard POSIX rm utility)
|
|
2336
2475
|
*
|
|
@@ -2432,6 +2571,22 @@ declare const _default: (path: string) => {
|
|
|
2432
2571
|
format?: "md" | "mdx";
|
|
2433
2572
|
override?: boolean;
|
|
2434
2573
|
}) => Promise<void>;
|
|
2574
|
+
/**
|
|
2575
|
+
* Adds a flow to a system in EventCatalog
|
|
2576
|
+
*
|
|
2577
|
+
* @param flow - The flow to write to the system
|
|
2578
|
+
* @param system - The system and its id to write the flow to
|
|
2579
|
+
* @param options - Optional options to write the flow
|
|
2580
|
+
*
|
|
2581
|
+
*/
|
|
2582
|
+
writeFlowToSystem: (flow: Flow, system: {
|
|
2583
|
+
id: string;
|
|
2584
|
+
version?: string;
|
|
2585
|
+
}, options?: {
|
|
2586
|
+
path?: string;
|
|
2587
|
+
format?: "md" | "mdx";
|
|
2588
|
+
override?: boolean;
|
|
2589
|
+
}) => Promise<void>;
|
|
2435
2590
|
/**
|
|
2436
2591
|
* Adds a flow to an agent in EventCatalog
|
|
2437
2592
|
*
|
|
@@ -2564,6 +2719,20 @@ declare const _default: (path: string) => {
|
|
|
2564
2719
|
format?: "md" | "mdx";
|
|
2565
2720
|
override?: boolean;
|
|
2566
2721
|
}) => Promise<void>;
|
|
2722
|
+
/**
|
|
2723
|
+
* Writes a data store to a system by its id
|
|
2724
|
+
* @param dataStore - The data store to write
|
|
2725
|
+
* @param system - The system to write the data store to
|
|
2726
|
+
* @returns
|
|
2727
|
+
*/
|
|
2728
|
+
writeDataStoreToSystem: (container: Container, system: {
|
|
2729
|
+
id: string;
|
|
2730
|
+
version?: string;
|
|
2731
|
+
}, options?: {
|
|
2732
|
+
path?: string;
|
|
2733
|
+
format?: "md" | "mdx";
|
|
2734
|
+
override?: boolean;
|
|
2735
|
+
}) => Promise<void>;
|
|
2567
2736
|
/**
|
|
2568
2737
|
* ================================
|
|
2569
2738
|
* Data Products
|
|
@@ -2750,4 +2919,4 @@ declare const _default: (path: string) => {
|
|
|
2750
2919
|
toDSL: (resource: (Event | Command | Query | Service | Domain) | (Event | Command | Query | Service | Domain)[], options: ToDSLOptions) => Promise<string>;
|
|
2751
2920
|
};
|
|
2752
2921
|
|
|
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 };
|
|
2922
|
+
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 System, type SystemActorRelationship, type SystemRelationshipPointer, type SystemScope, type Team, type UbiquitousLanguage, type UbiquitousLanguageDictionary, type User, _default as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -52,6 +52,21 @@ type ResourcePointer = {
|
|
|
52
52
|
type?: string;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
+
type SystemScope = 'internal' | 'external';
|
|
56
|
+
|
|
57
|
+
type SystemRelationshipPointer = {
|
|
58
|
+
id: string;
|
|
59
|
+
version?: string;
|
|
60
|
+
label?: string;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
type SystemActorRelationship = {
|
|
64
|
+
id: string;
|
|
65
|
+
name?: string;
|
|
66
|
+
label?: string;
|
|
67
|
+
direction?: 'inbound' | 'outbound';
|
|
68
|
+
};
|
|
69
|
+
|
|
55
70
|
type SchemaPointer = {
|
|
56
71
|
id?: string;
|
|
57
72
|
ref?: string;
|
|
@@ -239,6 +254,7 @@ interface Domain extends BaseSchema {
|
|
|
239
254
|
services?: ResourcePointer[];
|
|
240
255
|
agents?: ResourcePointer[];
|
|
241
256
|
domains?: ResourcePointer[];
|
|
257
|
+
systems?: ResourcePointer[];
|
|
242
258
|
entities?: ResourcePointer[];
|
|
243
259
|
dataProducts?: ResourcePointer[];
|
|
244
260
|
flows?: ResourcePointer[];
|
|
@@ -247,6 +263,7 @@ interface Domain extends BaseSchema {
|
|
|
247
263
|
detailsPanel?: {
|
|
248
264
|
parentDomains?: DetailPanelProperty;
|
|
249
265
|
subdomains?: DetailPanelProperty;
|
|
266
|
+
systems?: DetailPanelProperty;
|
|
250
267
|
services?: DetailPanelProperty;
|
|
251
268
|
agents?: DetailPanelProperty;
|
|
252
269
|
entities?: DetailPanelProperty;
|
|
@@ -259,6 +276,28 @@ interface Domain extends BaseSchema {
|
|
|
259
276
|
};
|
|
260
277
|
}
|
|
261
278
|
|
|
279
|
+
interface System extends BaseSchema {
|
|
280
|
+
scope?: SystemScope;
|
|
281
|
+
services?: ResourcePointer[];
|
|
282
|
+
flows?: ResourcePointer[];
|
|
283
|
+
entities?: ResourcePointer[];
|
|
284
|
+
containers?: ResourcePointer[];
|
|
285
|
+
relationships?: SystemRelationshipPointer[];
|
|
286
|
+
actors?: SystemActorRelationship[];
|
|
287
|
+
detailsPanel?: {
|
|
288
|
+
versions?: DetailPanelProperty;
|
|
289
|
+
repository?: DetailPanelProperty;
|
|
290
|
+
owners?: DetailPanelProperty;
|
|
291
|
+
changelog?: DetailPanelProperty;
|
|
292
|
+
attachments?: DetailPanelProperty;
|
|
293
|
+
services?: DetailPanelProperty;
|
|
294
|
+
flows?: DetailPanelProperty;
|
|
295
|
+
entities?: DetailPanelProperty;
|
|
296
|
+
containers?: DetailPanelProperty;
|
|
297
|
+
diagrams?: DetailPanelProperty;
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
|
|
262
301
|
interface Team {
|
|
263
302
|
id: string;
|
|
264
303
|
name: string;
|
|
@@ -461,6 +500,7 @@ type EventCatalog = {
|
|
|
461
500
|
createdAt: string;
|
|
462
501
|
resources: {
|
|
463
502
|
domains?: ExportedResource<Domain>[];
|
|
503
|
+
systems?: ExportedResource<System>[];
|
|
464
504
|
services?: ExportedResource<Service>[];
|
|
465
505
|
agents?: ExportedResource<Agent>[];
|
|
466
506
|
messages?: {
|
|
@@ -1578,13 +1618,35 @@ declare const _default: (path: string) => {
|
|
|
1578
1618
|
*/
|
|
1579
1619
|
writeServiceToDomain: (service: Service, domain: {
|
|
1580
1620
|
id: string;
|
|
1581
|
-
version
|
|
1621
|
+
version? /**
|
|
1622
|
+
* Adds a file to the given event
|
|
1623
|
+
* @param id - The id of the event to add the file to
|
|
1624
|
+
* @param file - File contents to add including the content and the file name
|
|
1625
|
+
* @param version - Optional version of the event to add the file to
|
|
1626
|
+
* @returns
|
|
1627
|
+
*/: string;
|
|
1582
1628
|
direction?: string;
|
|
1583
1629
|
}, options?: {
|
|
1584
1630
|
path?: string;
|
|
1585
1631
|
format?: "md" | "mdx";
|
|
1586
1632
|
override?: boolean;
|
|
1587
1633
|
}) => Promise<void>;
|
|
1634
|
+
/**
|
|
1635
|
+
* Adds a service to a system in EventCatalog
|
|
1636
|
+
*
|
|
1637
|
+
* @param service - The service to write
|
|
1638
|
+
* @param system - The system to add the service to
|
|
1639
|
+
* @param options - Optional options to write the service
|
|
1640
|
+
*
|
|
1641
|
+
*/
|
|
1642
|
+
writeServiceToSystem: (service: Service, system: {
|
|
1643
|
+
id: string;
|
|
1644
|
+
version?: string;
|
|
1645
|
+
}, options?: {
|
|
1646
|
+
path?: string;
|
|
1647
|
+
format?: "md" | "mdx";
|
|
1648
|
+
override?: boolean;
|
|
1649
|
+
}) => Promise<void>;
|
|
1588
1650
|
/**
|
|
1589
1651
|
* Returns a service from EventCatalog
|
|
1590
1652
|
* @param id - The id of the service to retrieve
|
|
@@ -1789,6 +1851,56 @@ declare const _default: (path: string) => {
|
|
|
1789
1851
|
* @returns The service.
|
|
1790
1852
|
*/
|
|
1791
1853
|
toService: (file: string) => Promise<Service>;
|
|
1854
|
+
/**
|
|
1855
|
+
* ================================
|
|
1856
|
+
* Systems
|
|
1857
|
+
* ================================
|
|
1858
|
+
*/
|
|
1859
|
+
writeSystem: (system: System, options?: {
|
|
1860
|
+
path?: string;
|
|
1861
|
+
override?: boolean;
|
|
1862
|
+
versionExistingContent?: boolean;
|
|
1863
|
+
format?: "md" | "mdx";
|
|
1864
|
+
}) => Promise<void>;
|
|
1865
|
+
writeSystemToDomain: (system: System, domain: {
|
|
1866
|
+
id: string;
|
|
1867
|
+
version?: string;
|
|
1868
|
+
}, options?: {
|
|
1869
|
+
path?: string;
|
|
1870
|
+
format?: "md" | "mdx";
|
|
1871
|
+
override?: boolean;
|
|
1872
|
+
}) => Promise<void>;
|
|
1873
|
+
getSystem: (id: string, version?: string) => Promise<System>;
|
|
1874
|
+
getSystemByPath: (path: string) => Promise<System>;
|
|
1875
|
+
getSystems: (options?: {
|
|
1876
|
+
latestOnly?: boolean;
|
|
1877
|
+
}) => Promise<System[]>;
|
|
1878
|
+
versionSystem: (id: string) => Promise<void>;
|
|
1879
|
+
rmSystem: (path: string) => Promise<void>;
|
|
1880
|
+
rmSystemById: (id: string, version?: string, persistFiles?: boolean) => Promise<void>;
|
|
1881
|
+
addFileToSystem: (id: string, file: {
|
|
1882
|
+
content: string;
|
|
1883
|
+
fileName: string;
|
|
1884
|
+
}, version?: string) => Promise<void>;
|
|
1885
|
+
addServiceToSystem: (id: string, resource: {
|
|
1886
|
+
id: string;
|
|
1887
|
+
version: string;
|
|
1888
|
+
}, version?: string) => Promise<void>;
|
|
1889
|
+
addFlowToSystem: (id: string, resource: {
|
|
1890
|
+
id: string;
|
|
1891
|
+
version: string;
|
|
1892
|
+
}, version?: string) => Promise<void>;
|
|
1893
|
+
addEntityToSystem: (id: string, resource: {
|
|
1894
|
+
id: string;
|
|
1895
|
+
version: string;
|
|
1896
|
+
}, version?: string) => Promise<void>;
|
|
1897
|
+
addContainerToSystem: (id: string, resource: {
|
|
1898
|
+
id: string;
|
|
1899
|
+
version: string;
|
|
1900
|
+
}, version?: string) => Promise<void>;
|
|
1901
|
+
systemHasVersion: (id: string, version?: string) => Promise<boolean>;
|
|
1902
|
+
isSystem: (path: string) => Promise<boolean>;
|
|
1903
|
+
toSystem: (file: string) => Promise<System>;
|
|
1792
1904
|
/**
|
|
1793
1905
|
* ================================
|
|
1794
1906
|
* Agents
|
|
@@ -1969,6 +2081,17 @@ declare const _default: (path: string) => {
|
|
|
1969
2081
|
id: string;
|
|
1970
2082
|
version: string;
|
|
1971
2083
|
}, version?: string) => Promise<void>;
|
|
2084
|
+
/**
|
|
2085
|
+
* Adds a given system to a domain
|
|
2086
|
+
* @param id - The id of the domain
|
|
2087
|
+
* @param system - The id and version of the system to add
|
|
2088
|
+
* @param version - (Optional) The version of the domain to add the system to
|
|
2089
|
+
* @returns
|
|
2090
|
+
*/
|
|
2091
|
+
addSystemToDomain: (id: string, system: {
|
|
2092
|
+
id: string;
|
|
2093
|
+
version: string;
|
|
2094
|
+
}, version?: string) => Promise<void>;
|
|
1972
2095
|
/**
|
|
1973
2096
|
* Adds an entity to a domain
|
|
1974
2097
|
* @param id - The id of the domain
|
|
@@ -2331,6 +2454,22 @@ declare const _default: (path: string) => {
|
|
|
2331
2454
|
versionExistingContent?: boolean;
|
|
2332
2455
|
format?: "md" | "mdx";
|
|
2333
2456
|
}) => Promise<void>;
|
|
2457
|
+
/**
|
|
2458
|
+
* Adds an entity to a system in EventCatalog
|
|
2459
|
+
*
|
|
2460
|
+
* @param entity - The entity to write to the system
|
|
2461
|
+
* @param system - The system and its id to write the entity to
|
|
2462
|
+
* @param options - Optional options to write the entity
|
|
2463
|
+
*
|
|
2464
|
+
*/
|
|
2465
|
+
writeEntityToSystem: (entity: Entity, system: {
|
|
2466
|
+
id: string;
|
|
2467
|
+
version?: string;
|
|
2468
|
+
}, options?: {
|
|
2469
|
+
path?: string;
|
|
2470
|
+
format?: "md" | "mdx";
|
|
2471
|
+
override?: boolean;
|
|
2472
|
+
}) => Promise<void>;
|
|
2334
2473
|
/**
|
|
2335
2474
|
* Remove an entity from EventCatalog (modeled on the standard POSIX rm utility)
|
|
2336
2475
|
*
|
|
@@ -2432,6 +2571,22 @@ declare const _default: (path: string) => {
|
|
|
2432
2571
|
format?: "md" | "mdx";
|
|
2433
2572
|
override?: boolean;
|
|
2434
2573
|
}) => Promise<void>;
|
|
2574
|
+
/**
|
|
2575
|
+
* Adds a flow to a system in EventCatalog
|
|
2576
|
+
*
|
|
2577
|
+
* @param flow - The flow to write to the system
|
|
2578
|
+
* @param system - The system and its id to write the flow to
|
|
2579
|
+
* @param options - Optional options to write the flow
|
|
2580
|
+
*
|
|
2581
|
+
*/
|
|
2582
|
+
writeFlowToSystem: (flow: Flow, system: {
|
|
2583
|
+
id: string;
|
|
2584
|
+
version?: string;
|
|
2585
|
+
}, options?: {
|
|
2586
|
+
path?: string;
|
|
2587
|
+
format?: "md" | "mdx";
|
|
2588
|
+
override?: boolean;
|
|
2589
|
+
}) => Promise<void>;
|
|
2435
2590
|
/**
|
|
2436
2591
|
* Adds a flow to an agent in EventCatalog
|
|
2437
2592
|
*
|
|
@@ -2564,6 +2719,20 @@ declare const _default: (path: string) => {
|
|
|
2564
2719
|
format?: "md" | "mdx";
|
|
2565
2720
|
override?: boolean;
|
|
2566
2721
|
}) => Promise<void>;
|
|
2722
|
+
/**
|
|
2723
|
+
* Writes a data store to a system by its id
|
|
2724
|
+
* @param dataStore - The data store to write
|
|
2725
|
+
* @param system - The system to write the data store to
|
|
2726
|
+
* @returns
|
|
2727
|
+
*/
|
|
2728
|
+
writeDataStoreToSystem: (container: Container, system: {
|
|
2729
|
+
id: string;
|
|
2730
|
+
version?: string;
|
|
2731
|
+
}, options?: {
|
|
2732
|
+
path?: string;
|
|
2733
|
+
format?: "md" | "mdx";
|
|
2734
|
+
override?: boolean;
|
|
2735
|
+
}) => Promise<void>;
|
|
2567
2736
|
/**
|
|
2568
2737
|
* ================================
|
|
2569
2738
|
* Data Products
|
|
@@ -2750,4 +2919,4 @@ declare const _default: (path: string) => {
|
|
|
2750
2919
|
toDSL: (resource: (Event | Command | Query | Service | Domain) | (Event | Command | Query | Service | Domain)[], options: ToDSLOptions) => Promise<string>;
|
|
2751
2920
|
};
|
|
2752
2921
|
|
|
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 };
|
|
2922
|
+
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 System, type SystemActorRelationship, type SystemRelationshipPointer, type SystemScope, type Team, type UbiquitousLanguage, type UbiquitousLanguageDictionary, type User, _default as default };
|