@eventcatalog/sdk 2.18.2 → 2.18.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/LICENSE ADDED
@@ -0,0 +1,28 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022-2026 boyney123
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ Note: Source code within `packages/core/eventcatalog/src/enterprise/` is
26
+ licensed under the EventCatalog Commercial License and is NOT covered by the
27
+ MIT License above. See `packages/core/eventcatalog/src/enterprise/LICENSE`
28
+ for the full terms.
package/dist/index.d.mts CHANGED
@@ -128,18 +128,20 @@ interface Query extends BaseSchema {
128
128
  interface Channel extends BaseSchema {
129
129
  address?: string;
130
130
  protocols?: string[];
131
+ deliveryGuarantee?: 'at-most-once' | 'at-least-once' | 'exactly-once';
131
132
  routes?: ChannelPointer[];
132
133
  detailsPanel?: {
133
134
  producers?: DetailPanelProperty;
134
135
  consumers?: DetailPanelProperty;
135
136
  messages?: DetailPanelProperty;
136
137
  protocols?: DetailPanelProperty;
138
+ parameters?: DetailPanelProperty;
137
139
  versions?: DetailPanelProperty;
138
140
  repository?: DetailPanelProperty;
139
141
  owners?: DetailPanelProperty;
140
142
  changelog?: DetailPanelProperty;
143
+ attachments?: DetailPanelProperty;
141
144
  };
142
- // parameters?: Record<string, Parameter>;
143
145
  parameters?: {
144
146
  [key: string]: {
145
147
  enum?: string[];
@@ -168,6 +170,7 @@ interface Service extends BaseSchema {
168
170
  entities?: ResourcePointer[];
169
171
  writesTo?: ResourcePointer[];
170
172
  readsFrom?: ResourcePointer[];
173
+ flows?: ResourcePointer[];
171
174
  specifications?: Specifications | Specification[];
172
175
  detailsPanel?: {
173
176
  domains?: DetailPanelProperty;
@@ -186,6 +189,7 @@ interface Domain extends BaseSchema {
186
189
  domains?: ResourcePointer[];
187
190
  entities?: ResourcePointer[];
188
191
  dataProducts?: ResourcePointer[];
192
+ flows?: ResourcePointer[];
189
193
  sends?: SendsPointer[];
190
194
  receives?: ReceivesPointer[];
191
195
  detailsPanel?: {
@@ -324,6 +328,47 @@ declare enum DataClassification {
324
328
  Regulated = 'regulated',
325
329
  }
326
330
 
331
+ interface FlowStep {
332
+ id: string | number;
333
+ type?: 'node' | 'message' | 'user' | 'actor';
334
+ title: string;
335
+ summary?: string;
336
+ message?: ResourcePointer;
337
+ service?: ResourcePointer;
338
+ flow?: ResourcePointer;
339
+ actor?: {
340
+ name: string;
341
+ summary?: string;
342
+ };
343
+ custom?: {
344
+ title: string;
345
+ icon?: string;
346
+ type?: string;
347
+ summary?: string;
348
+ url?: string;
349
+ color?: string;
350
+ properties?: Record<string, string | number>;
351
+ height?: number;
352
+ menu?: { label: string; url?: string }[];
353
+ };
354
+ externalSystem?: {
355
+ name: string;
356
+ summary?: string;
357
+ url?: string;
358
+ };
359
+ next_step?: string | number | { id: string | number; label?: string };
360
+ next_steps?: (string | number | { id: string | number; label?: string })[];
361
+ }
362
+
363
+ interface Flow extends BaseSchema {
364
+ steps: FlowStep[];
365
+ detailsPanel?: {
366
+ owners?: DetailPanelProperty;
367
+ versions?: DetailPanelProperty;
368
+ changelog?: DetailPanelProperty;
369
+ };
370
+ }
371
+
327
372
  interface Container extends BaseSchema {
328
373
  container_type: 'database' | 'cache' | 'objectStore' | 'searchIndex' | 'dataWarehouse' | 'dataLake' | 'externalSaaS' | 'other';
329
374
  technology?: string;
@@ -355,6 +400,9 @@ type EventCatalog = {
355
400
  teams?: ExportedResource<Team>[];
356
401
  users?: ExportedResource<User>[];
357
402
  channels?: ExportedResource<Channel>[];
403
+ entities?: ExportedResource<Entity>[];
404
+ containers?: ExportedResource<Container>[];
405
+ flows?: ExportedResource<Flow>[];
358
406
  customDocs?: ExportedResource<CustomDoc>[];
359
407
  };
360
408
  };
@@ -478,11 +526,7 @@ declare const _default: (path: string) => {
478
526
  *
479
527
  */
480
528
  writeEvent: (event: Event, options?: {
481
- path? /**
482
- * Returns all events from EventCatalog
483
- * @param latestOnly - optional boolean, set to true to get only latest versions
484
- * @returns Event[]|Undefined
485
- */: string;
529
+ path?: string;
486
530
  override?: boolean;
487
531
  versionExistingContent?: boolean;
488
532
  format?: "md" | "mdx";
@@ -499,12 +543,7 @@ declare const _default: (path: string) => {
499
543
  id: string;
500
544
  version?: string;
501
545
  }, options?: {
502
- path? /**
503
- * Remove an event by an Event id
504
- *
505
- * @param id - The id of the event you want to remove
506
- *
507
- */: string;
546
+ path?: string;
508
547
  format?: "md" | "mdx";
509
548
  override?: boolean;
510
549
  }) => Promise<void>;
@@ -1052,12 +1091,7 @@ declare const _default: (path: string) => {
1052
1091
  addEventToService: (id: string, direction: string, event: {
1053
1092
  id: string;
1054
1093
  version: string;
1055
- fields? /**
1056
- * Remove an channel to EventCatalog (modeled on the standard POSIX rm utility)
1057
- *
1058
- * @param path - The path to your channel, e.g. `/Inventory/InventoryAdjusted`
1059
- *
1060
- */: string[];
1094
+ fields?: string[];
1061
1095
  }, version?: string) => Promise<void>;
1062
1096
  /**
1063
1097
  * Add a data store to a service by it's id.
@@ -1101,12 +1135,7 @@ declare const _default: (path: string) => {
1101
1135
  addCommandToService: (id: string, direction: string, event: {
1102
1136
  id: string;
1103
1137
  version: string;
1104
- fields? /**
1105
- * Remove an channel to EventCatalog (modeled on the standard POSIX rm utility)
1106
- *
1107
- * @param path - The path to your channel, e.g. `/Inventory/InventoryAdjusted`
1108
- *
1109
- */: string[];
1138
+ fields?: string[];
1110
1139
  }, version?: string) => Promise<void>;
1111
1140
  /**
1112
1141
  * Add a query to a service by it's id.
@@ -1130,12 +1159,7 @@ declare const _default: (path: string) => {
1130
1159
  addQueryToService: (id: string, direction: string, event: {
1131
1160
  id: string;
1132
1161
  version: string;
1133
- fields? /**
1134
- * Remove an channel to EventCatalog (modeled on the standard POSIX rm utility)
1135
- *
1136
- * @param path - The path to your channel, e.g. `/Inventory/InventoryAdjusted`
1137
- *
1138
- */: string[];
1162
+ fields?: string[];
1139
1163
  }, version?: string) => Promise<void>;
1140
1164
  /**
1141
1165
  * Add an entity to a service by its id.
@@ -1195,7 +1219,12 @@ declare const _default: (path: string) => {
1195
1219
  */
1196
1220
  writeDomain: (domain: Domain, options?: {
1197
1221
  path?: string;
1198
- override?: boolean;
1222
+ override? /**
1223
+ * Remove an event by an Event id
1224
+ *
1225
+ * @param id - The id of the event you want to remove
1226
+ *
1227
+ */: boolean;
1199
1228
  versionExistingContent?: boolean;
1200
1229
  format?: "md" | "mdx";
1201
1230
  }) => Promise<void>;
@@ -1664,6 +1693,29 @@ declare const _default: (path: string) => {
1664
1693
  * @returns
1665
1694
  */
1666
1695
  entityHasVersion: (id: string, version?: string) => Promise<boolean>;
1696
+ /**
1697
+ * ================================
1698
+ * Flows
1699
+ * ================================
1700
+ */
1701
+ /**
1702
+ * Returns a flow from EventCatalog
1703
+ *
1704
+ * @param id - The id of the flow to retrieve
1705
+ * @param version - Optional version of the flow
1706
+ * @returns Flow
1707
+ */
1708
+ getFlow: (id: string, version?: string) => Promise<Flow>;
1709
+ /**
1710
+ * Returns all flows from EventCatalog
1711
+ *
1712
+ * @param options - optional options to get flows
1713
+ * @param latestOnly - optional boolean, set to true to get only latest versions
1714
+ * @returns Flow[]|Undefined
1715
+ */
1716
+ getFlows: (options?: {
1717
+ latestOnly?: boolean;
1718
+ }) => Promise<Flow[]>;
1667
1719
  /**
1668
1720
  * ================================
1669
1721
  * Data Stores
@@ -1740,11 +1792,7 @@ declare const _default: (path: string) => {
1740
1792
  version?: string;
1741
1793
  }, options?: {
1742
1794
  path?: string;
1743
- format? /**
1744
- * Returns all commands from EventCatalog
1745
- * @param latestOnly - optional boolean, set to true to get only latest versions
1746
- * @returns Command[]|Undefined
1747
- */: "md" | "mdx";
1795
+ format?: "md" | "mdx";
1748
1796
  override?: boolean;
1749
1797
  }) => Promise<void>;
1750
1798
  /**
@@ -1933,4 +1981,4 @@ declare const _default: (path: string) => {
1933
1981
  toDSL: (resource: (Event | Command | Query | Service | Domain) | (Event | Command | Query | Service | Domain)[], options: ToDSLOptions) => Promise<string>;
1934
1982
  };
1935
1983
 
1936
- export { 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 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 };
1984
+ export { 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 FlowStep, 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 };
package/dist/index.d.ts CHANGED
@@ -128,18 +128,20 @@ interface Query extends BaseSchema {
128
128
  interface Channel extends BaseSchema {
129
129
  address?: string;
130
130
  protocols?: string[];
131
+ deliveryGuarantee?: 'at-most-once' | 'at-least-once' | 'exactly-once';
131
132
  routes?: ChannelPointer[];
132
133
  detailsPanel?: {
133
134
  producers?: DetailPanelProperty;
134
135
  consumers?: DetailPanelProperty;
135
136
  messages?: DetailPanelProperty;
136
137
  protocols?: DetailPanelProperty;
138
+ parameters?: DetailPanelProperty;
137
139
  versions?: DetailPanelProperty;
138
140
  repository?: DetailPanelProperty;
139
141
  owners?: DetailPanelProperty;
140
142
  changelog?: DetailPanelProperty;
143
+ attachments?: DetailPanelProperty;
141
144
  };
142
- // parameters?: Record<string, Parameter>;
143
145
  parameters?: {
144
146
  [key: string]: {
145
147
  enum?: string[];
@@ -168,6 +170,7 @@ interface Service extends BaseSchema {
168
170
  entities?: ResourcePointer[];
169
171
  writesTo?: ResourcePointer[];
170
172
  readsFrom?: ResourcePointer[];
173
+ flows?: ResourcePointer[];
171
174
  specifications?: Specifications | Specification[];
172
175
  detailsPanel?: {
173
176
  domains?: DetailPanelProperty;
@@ -186,6 +189,7 @@ interface Domain extends BaseSchema {
186
189
  domains?: ResourcePointer[];
187
190
  entities?: ResourcePointer[];
188
191
  dataProducts?: ResourcePointer[];
192
+ flows?: ResourcePointer[];
189
193
  sends?: SendsPointer[];
190
194
  receives?: ReceivesPointer[];
191
195
  detailsPanel?: {
@@ -324,6 +328,47 @@ declare enum DataClassification {
324
328
  Regulated = 'regulated',
325
329
  }
326
330
 
331
+ interface FlowStep {
332
+ id: string | number;
333
+ type?: 'node' | 'message' | 'user' | 'actor';
334
+ title: string;
335
+ summary?: string;
336
+ message?: ResourcePointer;
337
+ service?: ResourcePointer;
338
+ flow?: ResourcePointer;
339
+ actor?: {
340
+ name: string;
341
+ summary?: string;
342
+ };
343
+ custom?: {
344
+ title: string;
345
+ icon?: string;
346
+ type?: string;
347
+ summary?: string;
348
+ url?: string;
349
+ color?: string;
350
+ properties?: Record<string, string | number>;
351
+ height?: number;
352
+ menu?: { label: string; url?: string }[];
353
+ };
354
+ externalSystem?: {
355
+ name: string;
356
+ summary?: string;
357
+ url?: string;
358
+ };
359
+ next_step?: string | number | { id: string | number; label?: string };
360
+ next_steps?: (string | number | { id: string | number; label?: string })[];
361
+ }
362
+
363
+ interface Flow extends BaseSchema {
364
+ steps: FlowStep[];
365
+ detailsPanel?: {
366
+ owners?: DetailPanelProperty;
367
+ versions?: DetailPanelProperty;
368
+ changelog?: DetailPanelProperty;
369
+ };
370
+ }
371
+
327
372
  interface Container extends BaseSchema {
328
373
  container_type: 'database' | 'cache' | 'objectStore' | 'searchIndex' | 'dataWarehouse' | 'dataLake' | 'externalSaaS' | 'other';
329
374
  technology?: string;
@@ -355,6 +400,9 @@ type EventCatalog = {
355
400
  teams?: ExportedResource<Team>[];
356
401
  users?: ExportedResource<User>[];
357
402
  channels?: ExportedResource<Channel>[];
403
+ entities?: ExportedResource<Entity>[];
404
+ containers?: ExportedResource<Container>[];
405
+ flows?: ExportedResource<Flow>[];
358
406
  customDocs?: ExportedResource<CustomDoc>[];
359
407
  };
360
408
  };
@@ -478,11 +526,7 @@ declare const _default: (path: string) => {
478
526
  *
479
527
  */
480
528
  writeEvent: (event: Event, options?: {
481
- path? /**
482
- * Returns all events from EventCatalog
483
- * @param latestOnly - optional boolean, set to true to get only latest versions
484
- * @returns Event[]|Undefined
485
- */: string;
529
+ path?: string;
486
530
  override?: boolean;
487
531
  versionExistingContent?: boolean;
488
532
  format?: "md" | "mdx";
@@ -499,12 +543,7 @@ declare const _default: (path: string) => {
499
543
  id: string;
500
544
  version?: string;
501
545
  }, options?: {
502
- path? /**
503
- * Remove an event by an Event id
504
- *
505
- * @param id - The id of the event you want to remove
506
- *
507
- */: string;
546
+ path?: string;
508
547
  format?: "md" | "mdx";
509
548
  override?: boolean;
510
549
  }) => Promise<void>;
@@ -1052,12 +1091,7 @@ declare const _default: (path: string) => {
1052
1091
  addEventToService: (id: string, direction: string, event: {
1053
1092
  id: string;
1054
1093
  version: string;
1055
- fields? /**
1056
- * Remove an channel to EventCatalog (modeled on the standard POSIX rm utility)
1057
- *
1058
- * @param path - The path to your channel, e.g. `/Inventory/InventoryAdjusted`
1059
- *
1060
- */: string[];
1094
+ fields?: string[];
1061
1095
  }, version?: string) => Promise<void>;
1062
1096
  /**
1063
1097
  * Add a data store to a service by it's id.
@@ -1101,12 +1135,7 @@ declare const _default: (path: string) => {
1101
1135
  addCommandToService: (id: string, direction: string, event: {
1102
1136
  id: string;
1103
1137
  version: string;
1104
- fields? /**
1105
- * Remove an channel to EventCatalog (modeled on the standard POSIX rm utility)
1106
- *
1107
- * @param path - The path to your channel, e.g. `/Inventory/InventoryAdjusted`
1108
- *
1109
- */: string[];
1138
+ fields?: string[];
1110
1139
  }, version?: string) => Promise<void>;
1111
1140
  /**
1112
1141
  * Add a query to a service by it's id.
@@ -1130,12 +1159,7 @@ declare const _default: (path: string) => {
1130
1159
  addQueryToService: (id: string, direction: string, event: {
1131
1160
  id: string;
1132
1161
  version: string;
1133
- fields? /**
1134
- * Remove an channel to EventCatalog (modeled on the standard POSIX rm utility)
1135
- *
1136
- * @param path - The path to your channel, e.g. `/Inventory/InventoryAdjusted`
1137
- *
1138
- */: string[];
1162
+ fields?: string[];
1139
1163
  }, version?: string) => Promise<void>;
1140
1164
  /**
1141
1165
  * Add an entity to a service by its id.
@@ -1195,7 +1219,12 @@ declare const _default: (path: string) => {
1195
1219
  */
1196
1220
  writeDomain: (domain: Domain, options?: {
1197
1221
  path?: string;
1198
- override?: boolean;
1222
+ override? /**
1223
+ * Remove an event by an Event id
1224
+ *
1225
+ * @param id - The id of the event you want to remove
1226
+ *
1227
+ */: boolean;
1199
1228
  versionExistingContent?: boolean;
1200
1229
  format?: "md" | "mdx";
1201
1230
  }) => Promise<void>;
@@ -1664,6 +1693,29 @@ declare const _default: (path: string) => {
1664
1693
  * @returns
1665
1694
  */
1666
1695
  entityHasVersion: (id: string, version?: string) => Promise<boolean>;
1696
+ /**
1697
+ * ================================
1698
+ * Flows
1699
+ * ================================
1700
+ */
1701
+ /**
1702
+ * Returns a flow from EventCatalog
1703
+ *
1704
+ * @param id - The id of the flow to retrieve
1705
+ * @param version - Optional version of the flow
1706
+ * @returns Flow
1707
+ */
1708
+ getFlow: (id: string, version?: string) => Promise<Flow>;
1709
+ /**
1710
+ * Returns all flows from EventCatalog
1711
+ *
1712
+ * @param options - optional options to get flows
1713
+ * @param latestOnly - optional boolean, set to true to get only latest versions
1714
+ * @returns Flow[]|Undefined
1715
+ */
1716
+ getFlows: (options?: {
1717
+ latestOnly?: boolean;
1718
+ }) => Promise<Flow[]>;
1667
1719
  /**
1668
1720
  * ================================
1669
1721
  * Data Stores
@@ -1740,11 +1792,7 @@ declare const _default: (path: string) => {
1740
1792
  version?: string;
1741
1793
  }, options?: {
1742
1794
  path?: string;
1743
- format? /**
1744
- * Returns all commands from EventCatalog
1745
- * @param latestOnly - optional boolean, set to true to get only latest versions
1746
- * @returns Command[]|Undefined
1747
- */: "md" | "mdx";
1795
+ format?: "md" | "mdx";
1748
1796
  override?: boolean;
1749
1797
  }) => Promise<void>;
1750
1798
  /**
@@ -1933,4 +1981,4 @@ declare const _default: (path: string) => {
1933
1981
  toDSL: (resource: (Event | Command | Query | Service | Domain) | (Event | Command | Query | Service | Domain)[], options: ToDSLOptions) => Promise<string>;
1934
1982
  };
1935
1983
 
1936
- export { 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 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 };
1984
+ export { 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 FlowStep, 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 };
package/dist/index.js CHANGED
@@ -2004,7 +2004,19 @@ var getEventCatalogConfigurationFile = (directory) => async () => {
2004
2004
  }
2005
2005
  };
2006
2006
  var dumpCatalog = (directory) => async (options) => {
2007
- const { getDomains: getDomains2, getServices: getServices2, getEvents: getEvents2, getQueries: getQueries2, getCommands: getCommands2, getChannels: getChannels2, getTeams: getTeams2, getUsers: getUsers3 } = src_default(directory);
2007
+ const {
2008
+ getDomains: getDomains2,
2009
+ getServices: getServices2,
2010
+ getEvents: getEvents2,
2011
+ getQueries: getQueries2,
2012
+ getCommands: getCommands2,
2013
+ getChannels: getChannels2,
2014
+ getTeams: getTeams2,
2015
+ getUsers: getUsers3,
2016
+ getEntities: getEntities2,
2017
+ getDataStores: getDataStores2,
2018
+ getFlows: getFlows2
2019
+ } = src_default(directory);
2008
2020
  const { includeMarkdown = true } = options || {};
2009
2021
  const domains = await getDomains2();
2010
2022
  const services = await getServices2();
@@ -2014,6 +2026,9 @@ var dumpCatalog = (directory) => async (options) => {
2014
2026
  const teams = await getTeams2();
2015
2027
  const users = await getUsers3();
2016
2028
  const channels = await getChannels2();
2029
+ const entities = await getEntities2();
2030
+ const containers = await getDataStores2();
2031
+ const flows = await getFlows2();
2017
2032
  const [
2018
2033
  hydratedDomains,
2019
2034
  hydratedServices,
@@ -2022,7 +2037,10 @@ var dumpCatalog = (directory) => async (options) => {
2022
2037
  hydratedCommands,
2023
2038
  hydratedTeams,
2024
2039
  hydratedUsers,
2025
- hydratedChannels
2040
+ hydratedChannels,
2041
+ hydratedEntities,
2042
+ hydratedContainers,
2043
+ hydratedFlows
2026
2044
  ] = await Promise.all([
2027
2045
  hydrateResource(directory, domains),
2028
2046
  hydrateResource(directory, services),
@@ -2031,7 +2049,10 @@ var dumpCatalog = (directory) => async (options) => {
2031
2049
  hydrateResource(directory, commands),
2032
2050
  hydrateResource(directory, teams),
2033
2051
  hydrateResource(directory, users),
2034
- hydrateResource(directory, channels)
2052
+ hydrateResource(directory, channels),
2053
+ hydrateResource(directory, entities),
2054
+ hydrateResource(directory, containers),
2055
+ hydrateResource(directory, flows)
2035
2056
  ]);
2036
2057
  return {
2037
2058
  version: DUMP_VERSION,
@@ -2047,7 +2068,10 @@ var dumpCatalog = (directory) => async (options) => {
2047
2068
  },
2048
2069
  teams: filterCollection(hydratedTeams, { includeMarkdown }),
2049
2070
  users: filterCollection(hydratedUsers, { includeMarkdown }),
2050
- channels: filterCollection(hydratedChannels, { includeMarkdown })
2071
+ channels: filterCollection(hydratedChannels, { includeMarkdown }),
2072
+ entities: filterCollection(hydratedEntities, { includeMarkdown }),
2073
+ containers: filterCollection(hydratedContainers, { includeMarkdown }),
2074
+ flows: filterCollection(hydratedFlows, { includeMarkdown })
2051
2075
  }
2052
2076
  };
2053
2077
  };
@@ -2492,6 +2516,10 @@ var entityHasVersion = (directory) => async (id, version) => {
2492
2516
  return !!file;
2493
2517
  };
2494
2518
 
2519
+ // src/flows.ts
2520
+ var getFlow = (directory) => async (id, version) => getResource(directory, id, version, { type: "flow" });
2521
+ var getFlows = (directory) => async (options) => getResources(directory, { type: "flows", latestOnly: options?.latestOnly });
2522
+
2495
2523
  // src/containers.ts
2496
2524
  var import_promises12 = __toESM(require("fs/promises"));
2497
2525
  var import_node_path19 = require("path");
@@ -3546,6 +3574,27 @@ var src_default = (path8) => {
3546
3574
  * @returns
3547
3575
  */
3548
3576
  entityHasVersion: entityHasVersion((0, import_node_path22.join)(path8)),
3577
+ /**
3578
+ * ================================
3579
+ * Flows
3580
+ * ================================
3581
+ */
3582
+ /**
3583
+ * Returns a flow from EventCatalog
3584
+ *
3585
+ * @param id - The id of the flow to retrieve
3586
+ * @param version - Optional version of the flow
3587
+ * @returns Flow
3588
+ */
3589
+ getFlow: getFlow((0, import_node_path22.join)(path8)),
3590
+ /**
3591
+ * Returns all flows from EventCatalog
3592
+ *
3593
+ * @param options - optional options to get flows
3594
+ * @param latestOnly - optional boolean, set to true to get only latest versions
3595
+ * @returns Flow[]|Undefined
3596
+ */
3597
+ getFlows: getFlows((0, import_node_path22.join)(path8)),
3549
3598
  /**
3550
3599
  * ================================
3551
3600
  * Data Stores