@eventcatalog/sdk 2.24.1 → 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 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,32 @@ type ResourcePointer = {
51
52
  type?: string;
52
53
  };
53
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
+
70
+ type SchemaPointer = {
71
+ id?: string;
72
+ ref?: string;
73
+ file?: string;
74
+ path?: string;
75
+ name?: string;
76
+ format?: string;
77
+ environments?: string[];
78
+ default?: boolean;
79
+ };
80
+
54
81
  type SendsPointer = {
55
82
  id: string;
56
83
  version?: string;
@@ -227,6 +254,7 @@ interface Domain extends BaseSchema {
227
254
  services?: ResourcePointer[];
228
255
  agents?: ResourcePointer[];
229
256
  domains?: ResourcePointer[];
257
+ systems?: ResourcePointer[];
230
258
  entities?: ResourcePointer[];
231
259
  dataProducts?: ResourcePointer[];
232
260
  flows?: ResourcePointer[];
@@ -235,6 +263,7 @@ interface Domain extends BaseSchema {
235
263
  detailsPanel?: {
236
264
  parentDomains?: DetailPanelProperty;
237
265
  subdomains?: DetailPanelProperty;
266
+ systems?: DetailPanelProperty;
238
267
  services?: DetailPanelProperty;
239
268
  agents?: DetailPanelProperty;
240
269
  entities?: DetailPanelProperty;
@@ -247,6 +276,28 @@ interface Domain extends BaseSchema {
247
276
  };
248
277
  }
249
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
+
250
301
  interface Team {
251
302
  id: string;
252
303
  name: string;
@@ -449,6 +500,7 @@ type EventCatalog = {
449
500
  createdAt: string;
450
501
  resources: {
451
502
  domains?: ExportedResource<Domain>[];
503
+ systems?: ExportedResource<System>[];
452
504
  services?: ExportedResource<Service>[];
453
505
  agents?: ExportedResource<Agent>[];
454
506
  messages?: {
@@ -1566,13 +1618,35 @@ declare const _default: (path: string) => {
1566
1618
  */
1567
1619
  writeServiceToDomain: (service: Service, domain: {
1568
1620
  id: string;
1569
- version?: string;
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;
1570
1628
  direction?: string;
1571
1629
  }, options?: {
1572
1630
  path?: string;
1573
1631
  format?: "md" | "mdx";
1574
1632
  override?: boolean;
1575
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>;
1576
1650
  /**
1577
1651
  * Returns a service from EventCatalog
1578
1652
  * @param id - The id of the service to retrieve
@@ -1777,6 +1851,56 @@ declare const _default: (path: string) => {
1777
1851
  * @returns The service.
1778
1852
  */
1779
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>;
1780
1904
  /**
1781
1905
  * ================================
1782
1906
  * Agents
@@ -1957,6 +2081,17 @@ declare const _default: (path: string) => {
1957
2081
  id: string;
1958
2082
  version: string;
1959
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>;
1960
2095
  /**
1961
2096
  * Adds an entity to a domain
1962
2097
  * @param id - The id of the domain
@@ -2220,6 +2355,16 @@ declare const _default: (path: string) => {
2220
2355
  * Returns the folder name of a given resource
2221
2356
  */
2222
2357
  getResourceFolderName: (catalogDir: string, id: string, version?: string) => Promise<string | undefined>;
2358
+ /**
2359
+ * Returns resources from the catalog for a given type
2360
+ */
2361
+ getResources: (catalogDir: string, { type, latestOnly, ignore, pattern, attachSchema, }: {
2362
+ type: string;
2363
+ pattern?: string;
2364
+ latestOnly?: boolean;
2365
+ ignore?: string[];
2366
+ attachSchema?: boolean;
2367
+ }) => Promise<(Service | CustomDoc | Message)[] | undefined>;
2223
2368
  /**
2224
2369
  * ================================
2225
2370
  * General Message Utils
@@ -2309,6 +2454,22 @@ declare const _default: (path: string) => {
2309
2454
  versionExistingContent?: boolean;
2310
2455
  format?: "md" | "mdx";
2311
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>;
2312
2473
  /**
2313
2474
  * Remove an entity from EventCatalog (modeled on the standard POSIX rm utility)
2314
2475
  *
@@ -2407,13 +2568,23 @@ declare const _default: (path: string) => {
2407
2568
  version?: string;
2408
2569
  }, options?: {
2409
2570
  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";
2571
+ format?: "md" | "mdx";
2572
+ override?: boolean;
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";
2417
2588
  override?: boolean;
2418
2589
  }) => Promise<void>;
2419
2590
  /**
@@ -2548,6 +2719,20 @@ declare const _default: (path: string) => {
2548
2719
  format?: "md" | "mdx";
2549
2720
  override?: boolean;
2550
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>;
2551
2736
  /**
2552
2737
  * ================================
2553
2738
  * Data Products
@@ -2734,4 +2919,4 @@ declare const _default: (path: string) => {
2734
2919
  toDSL: (resource: (Event | Command | Query | Service | Domain) | (Event | Command | Query | Service | Domain)[], options: ToDSLOptions) => Promise<string>;
2735
2920
  };
2736
2921
 
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 };
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
@@ -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,32 @@ type ResourcePointer = {
51
52
  type?: string;
52
53
  };
53
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
+
70
+ type SchemaPointer = {
71
+ id?: string;
72
+ ref?: string;
73
+ file?: string;
74
+ path?: string;
75
+ name?: string;
76
+ format?: string;
77
+ environments?: string[];
78
+ default?: boolean;
79
+ };
80
+
54
81
  type SendsPointer = {
55
82
  id: string;
56
83
  version?: string;
@@ -227,6 +254,7 @@ interface Domain extends BaseSchema {
227
254
  services?: ResourcePointer[];
228
255
  agents?: ResourcePointer[];
229
256
  domains?: ResourcePointer[];
257
+ systems?: ResourcePointer[];
230
258
  entities?: ResourcePointer[];
231
259
  dataProducts?: ResourcePointer[];
232
260
  flows?: ResourcePointer[];
@@ -235,6 +263,7 @@ interface Domain extends BaseSchema {
235
263
  detailsPanel?: {
236
264
  parentDomains?: DetailPanelProperty;
237
265
  subdomains?: DetailPanelProperty;
266
+ systems?: DetailPanelProperty;
238
267
  services?: DetailPanelProperty;
239
268
  agents?: DetailPanelProperty;
240
269
  entities?: DetailPanelProperty;
@@ -247,6 +276,28 @@ interface Domain extends BaseSchema {
247
276
  };
248
277
  }
249
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
+
250
301
  interface Team {
251
302
  id: string;
252
303
  name: string;
@@ -449,6 +500,7 @@ type EventCatalog = {
449
500
  createdAt: string;
450
501
  resources: {
451
502
  domains?: ExportedResource<Domain>[];
503
+ systems?: ExportedResource<System>[];
452
504
  services?: ExportedResource<Service>[];
453
505
  agents?: ExportedResource<Agent>[];
454
506
  messages?: {
@@ -1566,13 +1618,35 @@ declare const _default: (path: string) => {
1566
1618
  */
1567
1619
  writeServiceToDomain: (service: Service, domain: {
1568
1620
  id: string;
1569
- version?: string;
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;
1570
1628
  direction?: string;
1571
1629
  }, options?: {
1572
1630
  path?: string;
1573
1631
  format?: "md" | "mdx";
1574
1632
  override?: boolean;
1575
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>;
1576
1650
  /**
1577
1651
  * Returns a service from EventCatalog
1578
1652
  * @param id - The id of the service to retrieve
@@ -1777,6 +1851,56 @@ declare const _default: (path: string) => {
1777
1851
  * @returns The service.
1778
1852
  */
1779
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>;
1780
1904
  /**
1781
1905
  * ================================
1782
1906
  * Agents
@@ -1957,6 +2081,17 @@ declare const _default: (path: string) => {
1957
2081
  id: string;
1958
2082
  version: string;
1959
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>;
1960
2095
  /**
1961
2096
  * Adds an entity to a domain
1962
2097
  * @param id - The id of the domain
@@ -2220,6 +2355,16 @@ declare const _default: (path: string) => {
2220
2355
  * Returns the folder name of a given resource
2221
2356
  */
2222
2357
  getResourceFolderName: (catalogDir: string, id: string, version?: string) => Promise<string | undefined>;
2358
+ /**
2359
+ * Returns resources from the catalog for a given type
2360
+ */
2361
+ getResources: (catalogDir: string, { type, latestOnly, ignore, pattern, attachSchema, }: {
2362
+ type: string;
2363
+ pattern?: string;
2364
+ latestOnly?: boolean;
2365
+ ignore?: string[];
2366
+ attachSchema?: boolean;
2367
+ }) => Promise<(Service | CustomDoc | Message)[] | undefined>;
2223
2368
  /**
2224
2369
  * ================================
2225
2370
  * General Message Utils
@@ -2309,6 +2454,22 @@ declare const _default: (path: string) => {
2309
2454
  versionExistingContent?: boolean;
2310
2455
  format?: "md" | "mdx";
2311
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>;
2312
2473
  /**
2313
2474
  * Remove an entity from EventCatalog (modeled on the standard POSIX rm utility)
2314
2475
  *
@@ -2407,13 +2568,23 @@ declare const _default: (path: string) => {
2407
2568
  version?: string;
2408
2569
  }, options?: {
2409
2570
  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";
2571
+ format?: "md" | "mdx";
2572
+ override?: boolean;
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";
2417
2588
  override?: boolean;
2418
2589
  }) => Promise<void>;
2419
2590
  /**
@@ -2548,6 +2719,20 @@ declare const _default: (path: string) => {
2548
2719
  format?: "md" | "mdx";
2549
2720
  override?: boolean;
2550
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>;
2551
2736
  /**
2552
2737
  * ================================
2553
2738
  * Data Products
@@ -2734,4 +2919,4 @@ declare const _default: (path: string) => {
2734
2919
  toDSL: (resource: (Event | Command | Query | Service | Domain) | (Event | Command | Query | Service | Domain)[], options: ToDSLOptions) => Promise<string>;
2735
2920
  };
2736
2921
 
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 };
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 };