@eventcatalog/sdk 2.25.0-beta.0 → 2.25.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.js CHANGED
@@ -34,7 +34,7 @@ __export(src_exports, {
34
34
  default: () => src_default
35
35
  });
36
36
  module.exports = __toCommonJS(src_exports);
37
- var import_node_path26 = require("path");
37
+ var import_node_path27 = require("path");
38
38
 
39
39
  // src/dsl/utils.ts
40
40
  var import_glob = require("glob");
@@ -2388,7 +2388,8 @@ var dumpCatalog = (directory) => async (options) => {
2388
2388
  getUsers: getUsers3,
2389
2389
  getEntities: getEntities2,
2390
2390
  getDataStores: getDataStores2,
2391
- getFlows: getFlows2
2391
+ getFlows: getFlows2,
2392
+ getAdrs: getAdrs2
2392
2393
  } = src_default(directory);
2393
2394
  const { includeMarkdown = true } = options || {};
2394
2395
  const domains = await getDomains2();
@@ -2404,6 +2405,7 @@ var dumpCatalog = (directory) => async (options) => {
2404
2405
  const entities = await getEntities2();
2405
2406
  const containers = await getDataStores2();
2406
2407
  const flows = await getFlows2();
2408
+ const adrs = await getAdrs2();
2407
2409
  const [
2408
2410
  hydratedDomains,
2409
2411
  hydratedSystems,
@@ -2417,7 +2419,8 @@ var dumpCatalog = (directory) => async (options) => {
2417
2419
  hydratedChannels,
2418
2420
  hydratedEntities,
2419
2421
  hydratedContainers,
2420
- hydratedFlows
2422
+ hydratedFlows,
2423
+ hydratedAdrs
2421
2424
  ] = await Promise.all([
2422
2425
  hydrateResource(directory, domains),
2423
2426
  hydrateResource(directory, systems),
@@ -2431,7 +2434,8 @@ var dumpCatalog = (directory) => async (options) => {
2431
2434
  hydrateResource(directory, channels),
2432
2435
  hydrateResource(directory, entities),
2433
2436
  hydrateResource(directory, containers),
2434
- hydrateResource(directory, flows)
2437
+ hydrateResource(directory, flows),
2438
+ hydrateResource(directory, adrs)
2435
2439
  ]);
2436
2440
  return {
2437
2441
  version: DUMP_VERSION,
@@ -2452,7 +2456,8 @@ var dumpCatalog = (directory) => async (options) => {
2452
2456
  channels: filterCollection(hydratedChannels, { includeMarkdown }),
2453
2457
  entities: filterCollection(hydratedEntities, { includeMarkdown }),
2454
2458
  containers: filterCollection(hydratedContainers, { includeMarkdown }),
2455
- flows: filterCollection(hydratedFlows, { includeMarkdown })
2459
+ flows: filterCollection(hydratedFlows, { includeMarkdown }),
2460
+ adrs: filterCollection(hydratedAdrs, { includeMarkdown })
2456
2461
  }
2457
2462
  };
2458
2463
  };
@@ -3534,6 +3539,30 @@ var diagramHasVersion = (directory) => async (id, version) => {
3534
3539
  };
3535
3540
  var addFileToDiagram = (directory) => async (id, file, version) => addFileToResource(directory, id, file, version, { type: "diagram" });
3536
3541
 
3542
+ // src/adrs.ts
3543
+ var import_promises18 = __toESM(require("fs/promises"));
3544
+ var import_node_path26 = require("path");
3545
+ var getAdr = (directory) => async (id, version) => getResource(directory, id, version, { type: "adr" });
3546
+ var getAdrs = (directory) => async (options) => getResources(directory, { type: "adrs", latestOnly: options?.latestOnly });
3547
+ var writeAdr = (directory) => async (adr, options = {
3548
+ path: "",
3549
+ override: false,
3550
+ format: "mdx"
3551
+ }) => writeResource(directory, { ...adr }, { ...options, type: "adr" });
3552
+ var rmAdr = (directory) => async (path9) => {
3553
+ await import_promises18.default.rm((0, import_node_path26.join)(directory, path9), { recursive: true });
3554
+ invalidateFileCache();
3555
+ };
3556
+ var rmAdrById = (directory) => async (id, version, persistFiles) => {
3557
+ await rmResourceById(directory, id, version, { type: "adr", persistFiles });
3558
+ };
3559
+ var versionAdr = (directory) => async (id) => versionResource(directory, id);
3560
+ var adrHasVersion = (directory) => async (id, version) => {
3561
+ const file = await findFileById(directory, id, version);
3562
+ return !!file;
3563
+ };
3564
+ var addFileToAdr = (directory) => async (id, file, version) => addFileToResource(directory, id, file, version, { type: "adr" });
3565
+
3537
3566
  // src/index.ts
3538
3567
  var src_default = (path9) => {
3539
3568
  return {
@@ -3543,13 +3572,13 @@ var src_default = (path9) => {
3543
3572
  * @param version - Optional id of the version to get (supports semver)
3544
3573
  * @returns Event|Undefined
3545
3574
  */
3546
- getEvent: getEvent((0, import_node_path26.join)(path9)),
3575
+ getEvent: getEvent((0, import_node_path27.join)(path9)),
3547
3576
  /**
3548
3577
  * Returns all events from EventCatalog
3549
3578
  * @param latestOnly - optional boolean, set to true to get only latest versions
3550
3579
  * @returns Event[]|Undefined
3551
3580
  */
3552
- getEvents: getEvents((0, import_node_path26.join)(path9)),
3581
+ getEvents: getEvents((0, import_node_path27.join)(path9)),
3553
3582
  /**
3554
3583
  * Adds an event to EventCatalog
3555
3584
  *
@@ -3557,7 +3586,7 @@ var src_default = (path9) => {
3557
3586
  * @param options - Optional options to write the event
3558
3587
  *
3559
3588
  */
3560
- writeEvent: writeEvent((0, import_node_path26.join)(path9, "events")),
3589
+ writeEvent: writeEvent((0, import_node_path27.join)(path9, "events")),
3561
3590
  /**
3562
3591
  * Adds an event to a service in EventCatalog
3563
3592
  *
@@ -3566,7 +3595,7 @@ var src_default = (path9) => {
3566
3595
  * @param options - Optional options to write the event
3567
3596
  *
3568
3597
  */
3569
- writeEventToService: writeEventToService((0, import_node_path26.join)(path9)),
3598
+ writeEventToService: writeEventToService((0, import_node_path27.join)(path9)),
3570
3599
  /**
3571
3600
  * Adds an event to an agent in EventCatalog
3572
3601
  *
@@ -3575,26 +3604,26 @@ var src_default = (path9) => {
3575
3604
  * @param options - Optional options to write the event
3576
3605
  *
3577
3606
  */
3578
- writeEventToAgent: writeEventToAgent((0, import_node_path26.join)(path9)),
3607
+ writeEventToAgent: writeEventToAgent((0, import_node_path27.join)(path9)),
3579
3608
  /**
3580
3609
  * Remove an event to EventCatalog (modeled on the standard POSIX rm utility)
3581
3610
  *
3582
3611
  * @param path - The path to your event, e.g. `/Inventory/InventoryAdjusted`
3583
3612
  *
3584
3613
  */
3585
- rmEvent: rmEvent((0, import_node_path26.join)(path9, "events")),
3614
+ rmEvent: rmEvent((0, import_node_path27.join)(path9, "events")),
3586
3615
  /**
3587
3616
  * Remove an event by an Event id
3588
3617
  *
3589
3618
  * @param id - The id of the event you want to remove
3590
3619
  *
3591
3620
  */
3592
- rmEventById: rmEventById((0, import_node_path26.join)(path9)),
3621
+ rmEventById: rmEventById((0, import_node_path27.join)(path9)),
3593
3622
  /**
3594
3623
  * Moves a given event id to the version directory
3595
3624
  * @param directory
3596
3625
  */
3597
- versionEvent: versionEvent((0, import_node_path26.join)(path9)),
3626
+ versionEvent: versionEvent((0, import_node_path27.join)(path9)),
3598
3627
  /**
3599
3628
  * Adds a file to the given event
3600
3629
  * @param id - The id of the event to add the file to
@@ -3602,7 +3631,7 @@ var src_default = (path9) => {
3602
3631
  * @param version - Optional version of the event to add the file to
3603
3632
  * @returns
3604
3633
  */
3605
- addFileToEvent: addFileToEvent((0, import_node_path26.join)(path9)),
3634
+ addFileToEvent: addFileToEvent((0, import_node_path27.join)(path9)),
3606
3635
  /**
3607
3636
  * Adds a schema to the given event
3608
3637
  * @param id - The id of the event to add the schema to
@@ -3610,17 +3639,17 @@ var src_default = (path9) => {
3610
3639
  * @param version - Optional version of the event to add the schema to
3611
3640
  * @returns
3612
3641
  */
3613
- addSchemaToEvent: addSchemaToEvent((0, import_node_path26.join)(path9)),
3642
+ addSchemaToEvent: addSchemaToEvent((0, import_node_path27.join)(path9)),
3614
3643
  /**
3615
3644
  * Check to see if an event version exists
3616
3645
  * @param id - The id of the event
3617
3646
  * @param version - The version of the event (supports semver)
3618
3647
  * @returns
3619
3648
  */
3620
- eventHasVersion: eventHasVersion((0, import_node_path26.join)(path9)),
3621
- addExampleToEvent: addExampleToEvent((0, import_node_path26.join)(path9)),
3622
- getExamplesFromEvent: getExamplesFromEvent((0, import_node_path26.join)(path9)),
3623
- removeExampleFromEvent: removeExampleFromEvent((0, import_node_path26.join)(path9)),
3649
+ eventHasVersion: eventHasVersion((0, import_node_path27.join)(path9)),
3650
+ addExampleToEvent: addExampleToEvent((0, import_node_path27.join)(path9)),
3651
+ getExamplesFromEvent: getExamplesFromEvent((0, import_node_path27.join)(path9)),
3652
+ removeExampleFromEvent: removeExampleFromEvent((0, import_node_path27.join)(path9)),
3624
3653
  /**
3625
3654
  * ================================
3626
3655
  * Commands
@@ -3632,13 +3661,13 @@ var src_default = (path9) => {
3632
3661
  * @param version - Optional id of the version to get (supports semver)
3633
3662
  * @returns Command|Undefined
3634
3663
  */
3635
- getCommand: getCommand((0, import_node_path26.join)(path9)),
3664
+ getCommand: getCommand((0, import_node_path27.join)(path9)),
3636
3665
  /**
3637
3666
  * Returns all commands from EventCatalog
3638
3667
  * @param latestOnly - optional boolean, set to true to get only latest versions
3639
3668
  * @returns Command[]|Undefined
3640
3669
  */
3641
- getCommands: getCommands((0, import_node_path26.join)(path9)),
3670
+ getCommands: getCommands((0, import_node_path27.join)(path9)),
3642
3671
  /**
3643
3672
  * Adds an command to EventCatalog
3644
3673
  *
@@ -3646,7 +3675,7 @@ var src_default = (path9) => {
3646
3675
  * @param options - Optional options to write the command
3647
3676
  *
3648
3677
  */
3649
- writeCommand: writeCommand((0, import_node_path26.join)(path9, "commands")),
3678
+ writeCommand: writeCommand((0, import_node_path27.join)(path9, "commands")),
3650
3679
  /**
3651
3680
  * Adds a command to a service in EventCatalog
3652
3681
  *
@@ -3655,7 +3684,7 @@ var src_default = (path9) => {
3655
3684
  * @param options - Optional options to write the command
3656
3685
  *
3657
3686
  */
3658
- writeCommandToService: writeCommandToService((0, import_node_path26.join)(path9)),
3687
+ writeCommandToService: writeCommandToService((0, import_node_path27.join)(path9)),
3659
3688
  /**
3660
3689
  * Adds a command to an agent in EventCatalog
3661
3690
  *
@@ -3664,26 +3693,26 @@ var src_default = (path9) => {
3664
3693
  * @param options - Optional options to write the command
3665
3694
  *
3666
3695
  */
3667
- writeCommandToAgent: writeCommandToAgent((0, import_node_path26.join)(path9)),
3696
+ writeCommandToAgent: writeCommandToAgent((0, import_node_path27.join)(path9)),
3668
3697
  /**
3669
3698
  * Remove an command to EventCatalog (modeled on the standard POSIX rm utility)
3670
3699
  *
3671
3700
  * @param path - The path to your command, e.g. `/Inventory/InventoryAdjusted`
3672
3701
  *
3673
3702
  */
3674
- rmCommand: rmCommand((0, import_node_path26.join)(path9, "commands")),
3703
+ rmCommand: rmCommand((0, import_node_path27.join)(path9, "commands")),
3675
3704
  /**
3676
3705
  * Remove an command by an Event id
3677
3706
  *
3678
3707
  * @param id - The id of the command you want to remove
3679
3708
  *
3680
3709
  */
3681
- rmCommandById: rmCommandById((0, import_node_path26.join)(path9)),
3710
+ rmCommandById: rmCommandById((0, import_node_path27.join)(path9)),
3682
3711
  /**
3683
3712
  * Moves a given command id to the version directory
3684
3713
  * @param directory
3685
3714
  */
3686
- versionCommand: versionCommand((0, import_node_path26.join)(path9)),
3715
+ versionCommand: versionCommand((0, import_node_path27.join)(path9)),
3687
3716
  /**
3688
3717
  * Adds a file to the given command
3689
3718
  * @param id - The id of the command to add the file to
@@ -3691,7 +3720,7 @@ var src_default = (path9) => {
3691
3720
  * @param version - Optional version of the command to add the file to
3692
3721
  * @returns
3693
3722
  */
3694
- addFileToCommand: addFileToCommand((0, import_node_path26.join)(path9)),
3723
+ addFileToCommand: addFileToCommand((0, import_node_path27.join)(path9)),
3695
3724
  /**
3696
3725
  * Adds a schema to the given command
3697
3726
  * @param id - The id of the command to add the schema to
@@ -3699,17 +3728,17 @@ var src_default = (path9) => {
3699
3728
  * @param version - Optional version of the command to add the schema to
3700
3729
  * @returns
3701
3730
  */
3702
- addSchemaToCommand: addSchemaToCommand((0, import_node_path26.join)(path9)),
3731
+ addSchemaToCommand: addSchemaToCommand((0, import_node_path27.join)(path9)),
3703
3732
  /**
3704
3733
  * Check to see if a command version exists
3705
3734
  * @param id - The id of the command
3706
3735
  * @param version - The version of the command (supports semver)
3707
3736
  * @returns
3708
3737
  */
3709
- commandHasVersion: commandHasVersion((0, import_node_path26.join)(path9)),
3710
- addExampleToCommand: addExampleToCommand((0, import_node_path26.join)(path9)),
3711
- getExamplesFromCommand: getExamplesFromCommand((0, import_node_path26.join)(path9)),
3712
- removeExampleFromCommand: removeExampleFromCommand((0, import_node_path26.join)(path9)),
3738
+ commandHasVersion: commandHasVersion((0, import_node_path27.join)(path9)),
3739
+ addExampleToCommand: addExampleToCommand((0, import_node_path27.join)(path9)),
3740
+ getExamplesFromCommand: getExamplesFromCommand((0, import_node_path27.join)(path9)),
3741
+ removeExampleFromCommand: removeExampleFromCommand((0, import_node_path27.join)(path9)),
3713
3742
  /**
3714
3743
  * ================================
3715
3744
  * Queries
@@ -3721,13 +3750,13 @@ var src_default = (path9) => {
3721
3750
  * @param version - Optional id of the version to get (supports semver)
3722
3751
  * @returns Query|Undefined
3723
3752
  */
3724
- getQuery: getQuery((0, import_node_path26.join)(path9)),
3753
+ getQuery: getQuery((0, import_node_path27.join)(path9)),
3725
3754
  /**
3726
3755
  * Returns all queries from EventCatalog
3727
3756
  * @param latestOnly - optional boolean, set to true to get only latest versions
3728
3757
  * @returns Query[]|Undefined
3729
3758
  */
3730
- getQueries: getQueries((0, import_node_path26.join)(path9)),
3759
+ getQueries: getQueries((0, import_node_path27.join)(path9)),
3731
3760
  /**
3732
3761
  * Adds a query to EventCatalog
3733
3762
  *
@@ -3735,7 +3764,7 @@ var src_default = (path9) => {
3735
3764
  * @param options - Optional options to write the event
3736
3765
  *
3737
3766
  */
3738
- writeQuery: writeQuery((0, import_node_path26.join)(path9, "queries")),
3767
+ writeQuery: writeQuery((0, import_node_path27.join)(path9, "queries")),
3739
3768
  /**
3740
3769
  * Adds a query to a service in EventCatalog
3741
3770
  *
@@ -3744,7 +3773,7 @@ var src_default = (path9) => {
3744
3773
  * @param options - Optional options to write the query
3745
3774
  *
3746
3775
  */
3747
- writeQueryToService: writeQueryToService((0, import_node_path26.join)(path9)),
3776
+ writeQueryToService: writeQueryToService((0, import_node_path27.join)(path9)),
3748
3777
  /**
3749
3778
  * Adds a query to an agent in EventCatalog
3750
3779
  *
@@ -3753,26 +3782,26 @@ var src_default = (path9) => {
3753
3782
  * @param options - Optional options to write the query
3754
3783
  *
3755
3784
  */
3756
- writeQueryToAgent: writeQueryToAgent((0, import_node_path26.join)(path9)),
3785
+ writeQueryToAgent: writeQueryToAgent((0, import_node_path27.join)(path9)),
3757
3786
  /**
3758
3787
  * Remove an query to EventCatalog (modeled on the standard POSIX rm utility)
3759
3788
  *
3760
3789
  * @param path - The path to your query, e.g. `/Orders/GetOrder`
3761
3790
  *
3762
3791
  */
3763
- rmQuery: rmQuery((0, import_node_path26.join)(path9, "queries")),
3792
+ rmQuery: rmQuery((0, import_node_path27.join)(path9, "queries")),
3764
3793
  /**
3765
3794
  * Remove a query by a Query id
3766
3795
  *
3767
3796
  * @param id - The id of the query you want to remove
3768
3797
  *
3769
3798
  */
3770
- rmQueryById: rmQueryById((0, import_node_path26.join)(path9)),
3799
+ rmQueryById: rmQueryById((0, import_node_path27.join)(path9)),
3771
3800
  /**
3772
3801
  * Moves a given query id to the version directory
3773
3802
  * @param directory
3774
3803
  */
3775
- versionQuery: versionQuery((0, import_node_path26.join)(path9)),
3804
+ versionQuery: versionQuery((0, import_node_path27.join)(path9)),
3776
3805
  /**
3777
3806
  * Adds a file to the given query
3778
3807
  * @param id - The id of the query to add the file to
@@ -3780,7 +3809,7 @@ var src_default = (path9) => {
3780
3809
  * @param version - Optional version of the query to add the file to
3781
3810
  * @returns
3782
3811
  */
3783
- addFileToQuery: addFileToQuery((0, import_node_path26.join)(path9)),
3812
+ addFileToQuery: addFileToQuery((0, import_node_path27.join)(path9)),
3784
3813
  /**
3785
3814
  * Adds a schema to the given query
3786
3815
  * @param id - The id of the query to add the schema to
@@ -3788,17 +3817,17 @@ var src_default = (path9) => {
3788
3817
  * @param version - Optional version of the query to add the schema to
3789
3818
  * @returns
3790
3819
  */
3791
- addSchemaToQuery: addSchemaToQuery((0, import_node_path26.join)(path9)),
3820
+ addSchemaToQuery: addSchemaToQuery((0, import_node_path27.join)(path9)),
3792
3821
  /**
3793
3822
  * Check to see if an query version exists
3794
3823
  * @param id - The id of the query
3795
3824
  * @param version - The version of the query (supports semver)
3796
3825
  * @returns
3797
3826
  */
3798
- queryHasVersion: queryHasVersion((0, import_node_path26.join)(path9)),
3799
- addExampleToQuery: addExampleToQuery((0, import_node_path26.join)(path9)),
3800
- getExamplesFromQuery: getExamplesFromQuery((0, import_node_path26.join)(path9)),
3801
- removeExampleFromQuery: removeExampleFromQuery((0, import_node_path26.join)(path9)),
3827
+ queryHasVersion: queryHasVersion((0, import_node_path27.join)(path9)),
3828
+ addExampleToQuery: addExampleToQuery((0, import_node_path27.join)(path9)),
3829
+ getExamplesFromQuery: getExamplesFromQuery((0, import_node_path27.join)(path9)),
3830
+ removeExampleFromQuery: removeExampleFromQuery((0, import_node_path27.join)(path9)),
3802
3831
  /**
3803
3832
  * ================================
3804
3833
  * Channels
@@ -3810,13 +3839,13 @@ var src_default = (path9) => {
3810
3839
  * @param version - Optional id of the version to get (supports semver)
3811
3840
  * @returns Channel|Undefined
3812
3841
  */
3813
- getChannel: getChannel((0, import_node_path26.join)(path9)),
3842
+ getChannel: getChannel((0, import_node_path27.join)(path9)),
3814
3843
  /**
3815
3844
  * Returns all channels from EventCatalog
3816
3845
  * @param latestOnly - optional boolean, set to true to get only latest versions
3817
3846
  * @returns Channel[]|Undefined
3818
3847
  */
3819
- getChannels: getChannels((0, import_node_path26.join)(path9)),
3848
+ getChannels: getChannels((0, import_node_path27.join)(path9)),
3820
3849
  /**
3821
3850
  * Adds an channel to EventCatalog
3822
3851
  *
@@ -3824,33 +3853,33 @@ var src_default = (path9) => {
3824
3853
  * @param options - Optional options to write the channel
3825
3854
  *
3826
3855
  */
3827
- writeChannel: writeChannel((0, import_node_path26.join)(path9, "channels")),
3856
+ writeChannel: writeChannel((0, import_node_path27.join)(path9, "channels")),
3828
3857
  /**
3829
3858
  * Remove an channel to EventCatalog (modeled on the standard POSIX rm utility)
3830
3859
  *
3831
3860
  * @param path - The path to your channel, e.g. `/Inventory/InventoryAdjusted`
3832
3861
  *
3833
3862
  */
3834
- rmChannel: rmChannel((0, import_node_path26.join)(path9, "channels")),
3863
+ rmChannel: rmChannel((0, import_node_path27.join)(path9, "channels")),
3835
3864
  /**
3836
3865
  * Remove an channel by an Event id
3837
3866
  *
3838
3867
  * @param id - The id of the channel you want to remove
3839
3868
  *
3840
3869
  */
3841
- rmChannelById: rmChannelById((0, import_node_path26.join)(path9)),
3870
+ rmChannelById: rmChannelById((0, import_node_path27.join)(path9)),
3842
3871
  /**
3843
3872
  * Moves a given channel id to the version directory
3844
3873
  * @param directory
3845
3874
  */
3846
- versionChannel: versionChannel((0, import_node_path26.join)(path9)),
3875
+ versionChannel: versionChannel((0, import_node_path27.join)(path9)),
3847
3876
  /**
3848
3877
  * Check to see if a channel version exists
3849
3878
  * @param id - The id of the channel
3850
3879
  * @param version - The version of the channel (supports semver)
3851
3880
  * @returns
3852
3881
  */
3853
- channelHasVersion: channelHasVersion((0, import_node_path26.join)(path9)),
3882
+ channelHasVersion: channelHasVersion((0, import_node_path27.join)(path9)),
3854
3883
  /**
3855
3884
  * Add a channel to an event
3856
3885
  *
@@ -3867,7 +3896,7 @@ var src_default = (path9) => {
3867
3896
  *
3868
3897
  * ```
3869
3898
  */
3870
- addEventToChannel: addMessageToChannel((0, import_node_path26.join)(path9), "events"),
3899
+ addEventToChannel: addMessageToChannel((0, import_node_path27.join)(path9), "events"),
3871
3900
  /**
3872
3901
  * Add a channel to an command
3873
3902
  *
@@ -3884,7 +3913,7 @@ var src_default = (path9) => {
3884
3913
  *
3885
3914
  * ```
3886
3915
  */
3887
- addCommandToChannel: addMessageToChannel((0, import_node_path26.join)(path9), "commands"),
3916
+ addCommandToChannel: addMessageToChannel((0, import_node_path27.join)(path9), "commands"),
3888
3917
  /**
3889
3918
  * Add a channel to an query
3890
3919
  *
@@ -3901,7 +3930,7 @@ var src_default = (path9) => {
3901
3930
  *
3902
3931
  * ```
3903
3932
  */
3904
- addQueryToChannel: addMessageToChannel((0, import_node_path26.join)(path9), "queries"),
3933
+ addQueryToChannel: addMessageToChannel((0, import_node_path27.join)(path9), "queries"),
3905
3934
  /**
3906
3935
  * ================================
3907
3936
  * SERVICES
@@ -3914,14 +3943,14 @@ var src_default = (path9) => {
3914
3943
  * @param options - Optional options to write the event
3915
3944
  *
3916
3945
  */
3917
- writeService: writeService((0, import_node_path26.join)(path9, "services")),
3946
+ writeService: writeService((0, import_node_path27.join)(path9, "services")),
3918
3947
  /**
3919
3948
  * Adds a versioned service to EventCatalog
3920
3949
  *
3921
3950
  * @param service - The service to write
3922
3951
  *
3923
3952
  */
3924
- writeVersionedService: writeVersionedService((0, import_node_path26.join)(path9, "services")),
3953
+ writeVersionedService: writeVersionedService((0, import_node_path27.join)(path9, "services")),
3925
3954
  /**
3926
3955
  * Adds a service to a domain in EventCatalog
3927
3956
  *
@@ -3930,7 +3959,7 @@ var src_default = (path9) => {
3930
3959
  * @param options - Optional options to write the event
3931
3960
  *
3932
3961
  */
3933
- writeServiceToDomain: writeServiceToDomain((0, import_node_path26.join)(path9, "domains")),
3962
+ writeServiceToDomain: writeServiceToDomain((0, import_node_path27.join)(path9, "domains")),
3934
3963
  /**
3935
3964
  * Adds a service to a system in EventCatalog
3936
3965
  *
@@ -3939,45 +3968,45 @@ var src_default = (path9) => {
3939
3968
  * @param options - Optional options to write the service
3940
3969
  *
3941
3970
  */
3942
- writeServiceToSystem: writeServiceToSystem((0, import_node_path26.join)(path9)),
3971
+ writeServiceToSystem: writeServiceToSystem((0, import_node_path27.join)(path9)),
3943
3972
  /**
3944
3973
  * Returns a service from EventCatalog
3945
3974
  * @param id - The id of the service to retrieve
3946
3975
  * @param version - Optional id of the version to get (supports semver)
3947
3976
  * @returns Service|Undefined
3948
3977
  */
3949
- getService: getService((0, import_node_path26.join)(path9)),
3978
+ getService: getService((0, import_node_path27.join)(path9)),
3950
3979
  /**
3951
3980
  * Returns a service from EventCatalog by it's path.
3952
3981
  * @param path - The path to the service to retrieve
3953
3982
  * @returns Service|Undefined
3954
3983
  */
3955
- getServiceByPath: getServiceByPath((0, import_node_path26.join)(path9)),
3984
+ getServiceByPath: getServiceByPath((0, import_node_path27.join)(path9)),
3956
3985
  /**
3957
3986
  * Returns all services from EventCatalog
3958
3987
  * @param latestOnly - optional boolean, set to true to get only latest versions
3959
3988
  * @returns Service[]|Undefined
3960
3989
  */
3961
- getServices: getServices((0, import_node_path26.join)(path9)),
3990
+ getServices: getServices((0, import_node_path27.join)(path9)),
3962
3991
  /**
3963
3992
  * Moves a given service id to the version directory
3964
3993
  * @param directory
3965
3994
  */
3966
- versionService: versionService((0, import_node_path26.join)(path9)),
3995
+ versionService: versionService((0, import_node_path27.join)(path9)),
3967
3996
  /**
3968
3997
  * Remove a service from EventCatalog (modeled on the standard POSIX rm utility)
3969
3998
  *
3970
3999
  * @param path - The path to your service, e.g. `/InventoryService`
3971
4000
  *
3972
4001
  */
3973
- rmService: rmService((0, import_node_path26.join)(path9, "services")),
4002
+ rmService: rmService((0, import_node_path27.join)(path9, "services")),
3974
4003
  /**
3975
4004
  * Remove an service by an service id
3976
4005
  *
3977
4006
  * @param id - The id of the service you want to remove
3978
4007
  *
3979
4008
  */
3980
- rmServiceById: rmServiceById((0, import_node_path26.join)(path9)),
4009
+ rmServiceById: rmServiceById((0, import_node_path27.join)(path9)),
3981
4010
  /**
3982
4011
  * Adds a file to the given service
3983
4012
  * @param id - The id of the service to add the file to
@@ -3985,21 +4014,21 @@ var src_default = (path9) => {
3985
4014
  * @param version - Optional version of the service to add the file to
3986
4015
  * @returns
3987
4016
  */
3988
- addFileToService: addFileToService((0, import_node_path26.join)(path9)),
4017
+ addFileToService: addFileToService((0, import_node_path27.join)(path9)),
3989
4018
  /**
3990
4019
  * Returns the specifications for a given service
3991
4020
  * @param id - The id of the service to retrieve the specifications for
3992
4021
  * @param version - Optional version of the service
3993
4022
  * @returns
3994
4023
  */
3995
- getSpecificationFilesForService: getSpecificationFilesForService((0, import_node_path26.join)(path9)),
4024
+ getSpecificationFilesForService: getSpecificationFilesForService((0, import_node_path27.join)(path9)),
3996
4025
  /**
3997
4026
  * Check to see if a service version exists
3998
4027
  * @param id - The id of the service
3999
4028
  * @param version - The version of the service (supports semver)
4000
4029
  * @returns
4001
4030
  */
4002
- serviceHasVersion: serviceHasVersion((0, import_node_path26.join)(path9)),
4031
+ serviceHasVersion: serviceHasVersion((0, import_node_path27.join)(path9)),
4003
4032
  /**
4004
4033
  * Add an event to a service by it's id.
4005
4034
  *
@@ -4019,7 +4048,7 @@ var src_default = (path9) => {
4019
4048
  *
4020
4049
  * ```
4021
4050
  */
4022
- addEventToService: addMessageToService((0, import_node_path26.join)(path9)),
4051
+ addEventToService: addMessageToService((0, import_node_path27.join)(path9)),
4023
4052
  /**
4024
4053
  * Add a data store to a service by it's id.
4025
4054
  *
@@ -4036,7 +4065,7 @@ var src_default = (path9) => {
4036
4065
  *
4037
4066
  * ```
4038
4067
  */
4039
- addDataStoreToService: addDataStoreToService((0, import_node_path26.join)(path9)),
4068
+ addDataStoreToService: addDataStoreToService((0, import_node_path27.join)(path9)),
4040
4069
  /**
4041
4070
  * Add a command to a service by it's id.
4042
4071
  *
@@ -4056,7 +4085,7 @@ var src_default = (path9) => {
4056
4085
  *
4057
4086
  * ```
4058
4087
  */
4059
- addCommandToService: addMessageToService((0, import_node_path26.join)(path9)),
4088
+ addCommandToService: addMessageToService((0, import_node_path27.join)(path9)),
4060
4089
  /**
4061
4090
  * Add a query to a service by it's id.
4062
4091
  *
@@ -4076,7 +4105,7 @@ var src_default = (path9) => {
4076
4105
  *
4077
4106
  * ```
4078
4107
  */
4079
- addQueryToService: addMessageToService((0, import_node_path26.join)(path9)),
4108
+ addQueryToService: addMessageToService((0, import_node_path27.join)(path9)),
4080
4109
  /**
4081
4110
  * Add an entity to a service by its id.
4082
4111
  *
@@ -4094,7 +4123,7 @@ var src_default = (path9) => {
4094
4123
  *
4095
4124
  * ```
4096
4125
  */
4097
- addEntityToService: addEntityToService((0, import_node_path26.join)(path9)),
4126
+ addEntityToService: addEntityToService((0, import_node_path27.join)(path9)),
4098
4127
  /**
4099
4128
  * Check to see if a service exists by it's path.
4100
4129
  *
@@ -4111,57 +4140,57 @@ var src_default = (path9) => {
4111
4140
  * @param path - The path to the service to check
4112
4141
  * @returns boolean
4113
4142
  */
4114
- isService: isService((0, import_node_path26.join)(path9)),
4143
+ isService: isService((0, import_node_path27.join)(path9)),
4115
4144
  /**
4116
4145
  * Converts a file to a service.
4117
4146
  * @param file - The file to convert to a service.
4118
4147
  * @returns The service.
4119
4148
  */
4120
- toService: toService((0, import_node_path26.join)(path9)),
4149
+ toService: toService((0, import_node_path27.join)(path9)),
4121
4150
  /**
4122
4151
  * ================================
4123
4152
  * Systems
4124
4153
  * ================================
4125
4154
  */
4126
- writeSystem: writeSystem((0, import_node_path26.join)(path9, "systems")),
4127
- writeSystemToDomain: writeSystemToDomain((0, import_node_path26.join)(path9)),
4128
- getSystem: getSystem((0, import_node_path26.join)(path9)),
4129
- getSystemByPath: getSystemByPath((0, import_node_path26.join)(path9)),
4130
- getSystems: getSystems((0, import_node_path26.join)(path9)),
4131
- versionSystem: versionSystem((0, import_node_path26.join)(path9)),
4132
- rmSystem: rmSystem((0, import_node_path26.join)(path9, "systems")),
4133
- rmSystemById: rmSystemById((0, import_node_path26.join)(path9)),
4134
- addFileToSystem: addFileToSystem((0, import_node_path26.join)(path9)),
4135
- addServiceToSystem: addServiceToSystem((0, import_node_path26.join)(path9)),
4136
- addFlowToSystem: addFlowToSystem((0, import_node_path26.join)(path9)),
4137
- addEntityToSystem: addEntityToSystem((0, import_node_path26.join)(path9)),
4138
- addContainerToSystem: addContainerToSystem((0, import_node_path26.join)(path9)),
4139
- systemHasVersion: systemHasVersion((0, import_node_path26.join)(path9)),
4140
- isSystem: isSystem((0, import_node_path26.join)(path9)),
4141
- toSystem: toSystem((0, import_node_path26.join)(path9)),
4155
+ writeSystem: writeSystem((0, import_node_path27.join)(path9, "systems")),
4156
+ writeSystemToDomain: writeSystemToDomain((0, import_node_path27.join)(path9)),
4157
+ getSystem: getSystem((0, import_node_path27.join)(path9)),
4158
+ getSystemByPath: getSystemByPath((0, import_node_path27.join)(path9)),
4159
+ getSystems: getSystems((0, import_node_path27.join)(path9)),
4160
+ versionSystem: versionSystem((0, import_node_path27.join)(path9)),
4161
+ rmSystem: rmSystem((0, import_node_path27.join)(path9, "systems")),
4162
+ rmSystemById: rmSystemById((0, import_node_path27.join)(path9)),
4163
+ addFileToSystem: addFileToSystem((0, import_node_path27.join)(path9)),
4164
+ addServiceToSystem: addServiceToSystem((0, import_node_path27.join)(path9)),
4165
+ addFlowToSystem: addFlowToSystem((0, import_node_path27.join)(path9)),
4166
+ addEntityToSystem: addEntityToSystem((0, import_node_path27.join)(path9)),
4167
+ addContainerToSystem: addContainerToSystem((0, import_node_path27.join)(path9)),
4168
+ systemHasVersion: systemHasVersion((0, import_node_path27.join)(path9)),
4169
+ isSystem: isSystem((0, import_node_path27.join)(path9)),
4170
+ toSystem: toSystem((0, import_node_path27.join)(path9)),
4142
4171
  /**
4143
4172
  * ================================
4144
4173
  * Agents
4145
4174
  * ================================
4146
4175
  */
4147
- writeAgent: writeAgent((0, import_node_path26.join)(path9, "agents")),
4148
- writeVersionedAgent: writeVersionedAgent((0, import_node_path26.join)(path9, "agents")),
4149
- writeAgentToDomain: writeAgentToDomain((0, import_node_path26.join)(path9, "domains")),
4150
- getAgent: getAgent((0, import_node_path26.join)(path9)),
4151
- getAgentByPath: getAgentByPath((0, import_node_path26.join)(path9)),
4152
- getAgents: getAgents((0, import_node_path26.join)(path9)),
4153
- versionAgent: versionAgent((0, import_node_path26.join)(path9)),
4154
- rmAgent: rmAgent((0, import_node_path26.join)(path9, "agents")),
4155
- rmAgentById: rmAgentById((0, import_node_path26.join)(path9)),
4156
- addFileToAgent: addFileToAgent((0, import_node_path26.join)(path9)),
4157
- addEventToAgent: addMessageToAgent((0, import_node_path26.join)(path9)),
4158
- addCommandToAgent: addMessageToAgent((0, import_node_path26.join)(path9)),
4159
- addQueryToAgent: addMessageToAgent((0, import_node_path26.join)(path9)),
4160
- addDataStoreToAgent: addDataStoreToAgent((0, import_node_path26.join)(path9)),
4161
- addFlowToAgent: addFlowToAgent((0, import_node_path26.join)(path9)),
4162
- agentHasVersion: agentHasVersion((0, import_node_path26.join)(path9)),
4163
- isAgent: isAgent((0, import_node_path26.join)(path9)),
4164
- toAgent: toAgent((0, import_node_path26.join)(path9)),
4176
+ writeAgent: writeAgent((0, import_node_path27.join)(path9, "agents")),
4177
+ writeVersionedAgent: writeVersionedAgent((0, import_node_path27.join)(path9, "agents")),
4178
+ writeAgentToDomain: writeAgentToDomain((0, import_node_path27.join)(path9, "domains")),
4179
+ getAgent: getAgent((0, import_node_path27.join)(path9)),
4180
+ getAgentByPath: getAgentByPath((0, import_node_path27.join)(path9)),
4181
+ getAgents: getAgents((0, import_node_path27.join)(path9)),
4182
+ versionAgent: versionAgent((0, import_node_path27.join)(path9)),
4183
+ rmAgent: rmAgent((0, import_node_path27.join)(path9, "agents")),
4184
+ rmAgentById: rmAgentById((0, import_node_path27.join)(path9)),
4185
+ addFileToAgent: addFileToAgent((0, import_node_path27.join)(path9)),
4186
+ addEventToAgent: addMessageToAgent((0, import_node_path27.join)(path9)),
4187
+ addCommandToAgent: addMessageToAgent((0, import_node_path27.join)(path9)),
4188
+ addQueryToAgent: addMessageToAgent((0, import_node_path27.join)(path9)),
4189
+ addDataStoreToAgent: addDataStoreToAgent((0, import_node_path27.join)(path9)),
4190
+ addFlowToAgent: addFlowToAgent((0, import_node_path27.join)(path9)),
4191
+ agentHasVersion: agentHasVersion((0, import_node_path27.join)(path9)),
4192
+ isAgent: isAgent((0, import_node_path27.join)(path9)),
4193
+ toAgent: toAgent((0, import_node_path27.join)(path9)),
4165
4194
  /**
4166
4195
  * ================================
4167
4196
  * Domains
@@ -4174,39 +4203,39 @@ var src_default = (path9) => {
4174
4203
  * @param options - Optional options to write the event
4175
4204
  *
4176
4205
  */
4177
- writeDomain: writeDomain((0, import_node_path26.join)(path9, "domains")),
4206
+ writeDomain: writeDomain((0, import_node_path27.join)(path9, "domains")),
4178
4207
  /**
4179
4208
  * Returns a domain from EventCatalog
4180
4209
  * @param id - The id of the domain to retrieve
4181
4210
  * @param version - Optional id of the version to get (supports semver)
4182
4211
  * @returns Domain|Undefined
4183
4212
  */
4184
- getDomain: getDomain((0, import_node_path26.join)(path9, "domains")),
4213
+ getDomain: getDomain((0, import_node_path27.join)(path9, "domains")),
4185
4214
  /**
4186
4215
  * Returns all domains from EventCatalog
4187
4216
  * @param latestOnly - optional boolean, set to true to get only latest versions
4188
4217
  * @returns Domain[]|Undefined
4189
4218
  */
4190
- getDomains: getDomains((0, import_node_path26.join)(path9)),
4219
+ getDomains: getDomains((0, import_node_path27.join)(path9)),
4191
4220
  /**
4192
4221
  * Moves a given domain id to the version directory
4193
4222
  * @param directory
4194
4223
  */
4195
- versionDomain: versionDomain((0, import_node_path26.join)(path9, "domains")),
4224
+ versionDomain: versionDomain((0, import_node_path27.join)(path9, "domains")),
4196
4225
  /**
4197
4226
  * Remove a domain from EventCatalog (modeled on the standard POSIX rm utility)
4198
4227
  *
4199
4228
  * @param path - The path to your domain, e.g. `/Payment`
4200
4229
  *
4201
4230
  */
4202
- rmDomain: rmDomain((0, import_node_path26.join)(path9, "domains")),
4231
+ rmDomain: rmDomain((0, import_node_path27.join)(path9, "domains")),
4203
4232
  /**
4204
4233
  * Remove an service by an domain id
4205
4234
  *
4206
4235
  * @param id - The id of the domain you want to remove
4207
4236
  *
4208
4237
  */
4209
- rmDomainById: rmDomainById((0, import_node_path26.join)(path9, "domains")),
4238
+ rmDomainById: rmDomainById((0, import_node_path27.join)(path9, "domains")),
4210
4239
  /**
4211
4240
  * Adds a file to the given domain
4212
4241
  * @param id - The id of the domain to add the file to
@@ -4214,28 +4243,28 @@ var src_default = (path9) => {
4214
4243
  * @param version - Optional version of the domain to add the file to
4215
4244
  * @returns
4216
4245
  */
4217
- addFileToDomain: addFileToDomain((0, import_node_path26.join)(path9, "domains")),
4246
+ addFileToDomain: addFileToDomain((0, import_node_path27.join)(path9, "domains")),
4218
4247
  /**
4219
4248
  * Adds an ubiquitous language dictionary to a domain
4220
4249
  * @param id - The id of the domain to add the ubiquitous language to
4221
4250
  * @param ubiquitousLanguageDictionary - The ubiquitous language dictionary to add
4222
4251
  * @param version - Optional version of the domain to add the ubiquitous language to
4223
4252
  */
4224
- addUbiquitousLanguageToDomain: addUbiquitousLanguageToDomain((0, import_node_path26.join)(path9, "domains")),
4253
+ addUbiquitousLanguageToDomain: addUbiquitousLanguageToDomain((0, import_node_path27.join)(path9, "domains")),
4225
4254
  /**
4226
4255
  * Get the ubiquitous language dictionary from a domain
4227
4256
  * @param id - The id of the domain to get the ubiquitous language from
4228
4257
  * @param version - Optional version of the domain to get the ubiquitous language from
4229
4258
  * @returns
4230
4259
  */
4231
- getUbiquitousLanguageFromDomain: getUbiquitousLanguageFromDomain((0, import_node_path26.join)(path9, "domains")),
4260
+ getUbiquitousLanguageFromDomain: getUbiquitousLanguageFromDomain((0, import_node_path27.join)(path9, "domains")),
4232
4261
  /**
4233
4262
  * Check to see if a domain version exists
4234
4263
  * @param id - The id of the domain
4235
4264
  * @param version - The version of the domain (supports semver)
4236
4265
  * @returns
4237
4266
  */
4238
- domainHasVersion: domainHasVersion((0, import_node_path26.join)(path9)),
4267
+ domainHasVersion: domainHasVersion((0, import_node_path27.join)(path9)),
4239
4268
  /**
4240
4269
  * Adds a given service to a domain
4241
4270
  * @param id - The id of the domain
@@ -4243,7 +4272,7 @@ var src_default = (path9) => {
4243
4272
  * @param version - (Optional) The version of the domain to add the service to
4244
4273
  * @returns
4245
4274
  */
4246
- addServiceToDomain: addServiceToDomain((0, import_node_path26.join)(path9, "domains")),
4275
+ addServiceToDomain: addServiceToDomain((0, import_node_path27.join)(path9, "domains")),
4247
4276
  /**
4248
4277
  * Adds a given agent to a domain
4249
4278
  * @param id - The id of the domain
@@ -4251,7 +4280,7 @@ var src_default = (path9) => {
4251
4280
  * @param version - (Optional) The version of the domain to add the agent to
4252
4281
  * @returns
4253
4282
  */
4254
- addAgentToDomain: addAgentToDomain((0, import_node_path26.join)(path9, "domains")),
4283
+ addAgentToDomain: addAgentToDomain((0, import_node_path27.join)(path9, "domains")),
4255
4284
  /**
4256
4285
  * Adds a given subdomain to a domain
4257
4286
  * @param id - The id of the domain
@@ -4259,7 +4288,7 @@ var src_default = (path9) => {
4259
4288
  * @param version - (Optional) The version of the domain to add the subdomain to
4260
4289
  * @returns
4261
4290
  */
4262
- addSubDomainToDomain: addSubDomainToDomain((0, import_node_path26.join)(path9, "domains")),
4291
+ addSubDomainToDomain: addSubDomainToDomain((0, import_node_path27.join)(path9, "domains")),
4263
4292
  /**
4264
4293
  * Adds a given system to a domain
4265
4294
  * @param id - The id of the domain
@@ -4267,7 +4296,7 @@ var src_default = (path9) => {
4267
4296
  * @param version - (Optional) The version of the domain to add the system to
4268
4297
  * @returns
4269
4298
  */
4270
- addSystemToDomain: addSystemToDomain((0, import_node_path26.join)(path9, "domains")),
4299
+ addSystemToDomain: addSystemToDomain((0, import_node_path27.join)(path9, "domains")),
4271
4300
  /**
4272
4301
  * Adds an entity to a domain
4273
4302
  * @param id - The id of the domain
@@ -4275,7 +4304,7 @@ var src_default = (path9) => {
4275
4304
  * @param version - (Optional) The version of the domain to add the entity to
4276
4305
  * @returns
4277
4306
  */
4278
- addEntityToDomain: addEntityToDomain((0, import_node_path26.join)(path9, "domains")),
4307
+ addEntityToDomain: addEntityToDomain((0, import_node_path27.join)(path9, "domains")),
4279
4308
  /**
4280
4309
  * Add an event to a domain by its id.
4281
4310
  *
@@ -4293,7 +4322,7 @@ var src_default = (path9) => {
4293
4322
  *
4294
4323
  * ```
4295
4324
  */
4296
- addEventToDomain: addMessageToDomain((0, import_node_path26.join)(path9, "domains")),
4325
+ addEventToDomain: addMessageToDomain((0, import_node_path27.join)(path9, "domains")),
4297
4326
  /**
4298
4327
  * Add a command to a domain by its id.
4299
4328
  *
@@ -4311,7 +4340,7 @@ var src_default = (path9) => {
4311
4340
  *
4312
4341
  * ```
4313
4342
  */
4314
- addCommandToDomain: addMessageToDomain((0, import_node_path26.join)(path9, "domains")),
4343
+ addCommandToDomain: addMessageToDomain((0, import_node_path27.join)(path9, "domains")),
4315
4344
  /**
4316
4345
  * Add a query to a domain by its id.
4317
4346
  *
@@ -4329,7 +4358,7 @@ var src_default = (path9) => {
4329
4358
  *
4330
4359
  * ```
4331
4360
  */
4332
- addQueryToDomain: addMessageToDomain((0, import_node_path26.join)(path9, "domains")),
4361
+ addQueryToDomain: addMessageToDomain((0, import_node_path27.join)(path9, "domains")),
4333
4362
  /**
4334
4363
  * ================================
4335
4364
  * Teams
@@ -4342,25 +4371,25 @@ var src_default = (path9) => {
4342
4371
  * @param options - Optional options to write the team
4343
4372
  *
4344
4373
  */
4345
- writeTeam: writeTeam((0, import_node_path26.join)(path9, "teams")),
4374
+ writeTeam: writeTeam((0, import_node_path27.join)(path9, "teams")),
4346
4375
  /**
4347
4376
  * Returns a team from EventCatalog
4348
4377
  * @param id - The id of the team to retrieve
4349
4378
  * @returns Team|Undefined
4350
4379
  */
4351
- getTeam: getTeam((0, import_node_path26.join)(path9, "teams")),
4380
+ getTeam: getTeam((0, import_node_path27.join)(path9, "teams")),
4352
4381
  /**
4353
4382
  * Returns all teams from EventCatalog
4354
4383
  * @returns Team[]|Undefined
4355
4384
  */
4356
- getTeams: getTeams((0, import_node_path26.join)(path9, "teams")),
4385
+ getTeams: getTeams((0, import_node_path27.join)(path9, "teams")),
4357
4386
  /**
4358
4387
  * Remove a team by the team id
4359
4388
  *
4360
4389
  * @param id - The id of the team you want to remove
4361
4390
  *
4362
4391
  */
4363
- rmTeamById: rmTeamById((0, import_node_path26.join)(path9, "teams")),
4392
+ rmTeamById: rmTeamById((0, import_node_path27.join)(path9, "teams")),
4364
4393
  /**
4365
4394
  * ================================
4366
4395
  * Users
@@ -4373,25 +4402,25 @@ var src_default = (path9) => {
4373
4402
  * @param options - Optional options to write the user
4374
4403
  *
4375
4404
  */
4376
- writeUser: writeUser((0, import_node_path26.join)(path9, "users")),
4405
+ writeUser: writeUser((0, import_node_path27.join)(path9, "users")),
4377
4406
  /**
4378
4407
  * Returns a user from EventCatalog
4379
4408
  * @param id - The id of the user to retrieve
4380
4409
  * @returns User|Undefined
4381
4410
  */
4382
- getUser: getUser((0, import_node_path26.join)(path9, "users")),
4411
+ getUser: getUser((0, import_node_path27.join)(path9, "users")),
4383
4412
  /**
4384
4413
  * Returns all user from EventCatalog
4385
4414
  * @returns User[]|Undefined
4386
4415
  */
4387
- getUsers: getUsers((0, import_node_path26.join)(path9)),
4416
+ getUsers: getUsers((0, import_node_path27.join)(path9)),
4388
4417
  /**
4389
4418
  * Remove a user by the user id
4390
4419
  *
4391
4420
  * @param id - The id of the user you want to remove
4392
4421
  *
4393
4422
  */
4394
- rmUserById: rmUserById((0, import_node_path26.join)(path9, "users")),
4423
+ rmUserById: rmUserById((0, import_node_path27.join)(path9, "users")),
4395
4424
  /**
4396
4425
  * ================================
4397
4426
  * Custom Docs
@@ -4402,32 +4431,32 @@ var src_default = (path9) => {
4402
4431
  * @param path - The path to the custom doc to retrieve
4403
4432
  * @returns CustomDoc|Undefined
4404
4433
  */
4405
- getCustomDoc: getCustomDoc((0, import_node_path26.join)(path9, "docs")),
4434
+ getCustomDoc: getCustomDoc((0, import_node_path27.join)(path9, "docs")),
4406
4435
  /**
4407
4436
  * Returns all custom docs from EventCatalog
4408
4437
  * @param options - Optional options to get custom docs from a specific path
4409
4438
  * @returns CustomDoc[]|Undefined
4410
4439
  */
4411
- getCustomDocs: getCustomDocs((0, import_node_path26.join)(path9, "docs")),
4440
+ getCustomDocs: getCustomDocs((0, import_node_path27.join)(path9, "docs")),
4412
4441
  /**
4413
4442
  * Writes a custom doc to EventCatalog
4414
4443
  * @param customDoc - The custom doc to write
4415
4444
  * @param options - Optional options to write the custom doc
4416
4445
  *
4417
4446
  */
4418
- writeCustomDoc: writeCustomDoc((0, import_node_path26.join)(path9, "docs")),
4447
+ writeCustomDoc: writeCustomDoc((0, import_node_path27.join)(path9, "docs")),
4419
4448
  /**
4420
4449
  * Removes a custom doc from EventCatalog
4421
4450
  * @param path - The path to the custom doc to remove
4422
4451
  *
4423
4452
  */
4424
- rmCustomDoc: rmCustomDoc((0, import_node_path26.join)(path9, "docs")),
4453
+ rmCustomDoc: rmCustomDoc((0, import_node_path27.join)(path9, "docs")),
4425
4454
  /**
4426
4455
  * Dumps the catalog to a JSON file.
4427
4456
  * @param directory - The directory to dump the catalog to
4428
4457
  * @returns A JSON file with the catalog
4429
4458
  */
4430
- dumpCatalog: dumpCatalog((0, import_node_path26.join)(path9)),
4459
+ dumpCatalog: dumpCatalog((0, import_node_path27.join)(path9)),
4431
4460
  /**
4432
4461
  * Returns the event catalog configuration file.
4433
4462
  * The event catalog configuration file is the file that contains the configuration for the event catalog.
@@ -4435,7 +4464,7 @@ var src_default = (path9) => {
4435
4464
  * @param directory - The directory of the catalog.
4436
4465
  * @returns A JSON object with the configuration for the event catalog.
4437
4466
  */
4438
- getEventCatalogConfigurationFile: getEventCatalogConfigurationFile((0, import_node_path26.join)(path9)),
4467
+ getEventCatalogConfigurationFile: getEventCatalogConfigurationFile((0, import_node_path27.join)(path9)),
4439
4468
  /**
4440
4469
  * ================================
4441
4470
  * Changelogs
@@ -4449,7 +4478,7 @@ var src_default = (path9) => {
4449
4478
  * @param options - Optional options (version, format)
4450
4479
  *
4451
4480
  */
4452
- writeChangelog: writeChangelog((0, import_node_path26.join)(path9)),
4481
+ writeChangelog: writeChangelog((0, import_node_path27.join)(path9)),
4453
4482
  /**
4454
4483
  * Appends a changelog entry to an existing changelog for a resource.
4455
4484
  * If no changelog exists, one is created.
@@ -4459,7 +4488,7 @@ var src_default = (path9) => {
4459
4488
  * @param options - Optional options (version, format)
4460
4489
  *
4461
4490
  */
4462
- appendChangelog: appendChangelog((0, import_node_path26.join)(path9)),
4491
+ appendChangelog: appendChangelog((0, import_node_path27.join)(path9)),
4463
4492
  /**
4464
4493
  * Returns the changelog for a resource in EventCatalog
4465
4494
  *
@@ -4467,7 +4496,7 @@ var src_default = (path9) => {
4467
4496
  * @param options - Optional options (version)
4468
4497
  * @returns Changelog|Undefined
4469
4498
  */
4470
- getChangelog: getChangelog((0, import_node_path26.join)(path9)),
4499
+ getChangelog: getChangelog((0, import_node_path27.join)(path9)),
4471
4500
  /**
4472
4501
  * Removes the changelog for a resource in EventCatalog
4473
4502
  *
@@ -4475,7 +4504,7 @@ var src_default = (path9) => {
4475
4504
  * @param options - Optional options (version)
4476
4505
  *
4477
4506
  */
4478
- rmChangelog: rmChangelog((0, import_node_path26.join)(path9)),
4507
+ rmChangelog: rmChangelog((0, import_node_path27.join)(path9)),
4479
4508
  /**
4480
4509
  * ================================
4481
4510
  * Resources Utils
@@ -4504,26 +4533,26 @@ var src_default = (path9) => {
4504
4533
  * @param path - The path to the message to retrieve
4505
4534
  * @returns Message|Undefined
4506
4535
  */
4507
- getMessageBySchemaPath: getMessageBySchemaPath((0, import_node_path26.join)(path9)),
4536
+ getMessageBySchemaPath: getMessageBySchemaPath((0, import_node_path27.join)(path9)),
4508
4537
  /**
4509
4538
  * Returns the producers and consumers (services and agents) for a given message
4510
4539
  * @param id - The id of the message to get the producers and consumers for
4511
4540
  * @param version - Optional version of the message
4512
4541
  * @returns { producers: (Service|Agent)[], consumers: (Service|Agent)[] }
4513
4542
  */
4514
- getProducersAndConsumersForMessage: getProducersAndConsumersForMessage((0, import_node_path26.join)(path9)),
4543
+ getProducersAndConsumersForMessage: getProducersAndConsumersForMessage((0, import_node_path27.join)(path9)),
4515
4544
  /**
4516
4545
  * Returns the consumers of a given schema path
4517
4546
  * @param path - The path to the schema to get the consumers for
4518
4547
  * @returns (Service|Agent)[]
4519
4548
  */
4520
- getConsumersOfSchema: getConsumersOfSchema((0, import_node_path26.join)(path9)),
4549
+ getConsumersOfSchema: getConsumersOfSchema((0, import_node_path27.join)(path9)),
4521
4550
  /**
4522
4551
  * Returns the producers of a given schema path
4523
4552
  * @param path - The path to the schema to get the producers for
4524
4553
  * @returns (Service|Agent)[]
4525
4554
  */
4526
- getProducersOfSchema: getProducersOfSchema((0, import_node_path26.join)(path9)),
4555
+ getProducersOfSchema: getProducersOfSchema((0, import_node_path27.join)(path9)),
4527
4556
  /**
4528
4557
  * Returns the schema for a given message (event, command or query) by its id and version.
4529
4558
  * If no version is given, the latest version is used.
@@ -4531,14 +4560,14 @@ var src_default = (path9) => {
4531
4560
  * @param version - Optional version of the message
4532
4561
  * @returns { schema: string, fileName: string } | undefined
4533
4562
  */
4534
- getSchemaForMessage: getSchemaForMessage((0, import_node_path26.join)(path9)),
4563
+ getSchemaForMessage: getSchemaForMessage((0, import_node_path27.join)(path9)),
4535
4564
  /**
4536
4565
  * Returns the owners for a given resource (e.g domain, service, event, command, query, etc.)
4537
4566
  * @param id - The id of the resource to get the owners for
4538
4567
  * @param version - Optional version of the resource
4539
4568
  * @returns { owners: User[] }
4540
4569
  */
4541
- getOwnersForResource: getOwnersForResource((0, import_node_path26.join)(path9)),
4570
+ getOwnersForResource: getOwnersForResource((0, import_node_path27.join)(path9)),
4542
4571
  /**
4543
4572
  * ================================
4544
4573
  * Entities
@@ -4550,13 +4579,13 @@ var src_default = (path9) => {
4550
4579
  * @param version - Optional id of the version to get (supports semver)
4551
4580
  * @returns Entity|Undefined
4552
4581
  */
4553
- getEntity: getEntity((0, import_node_path26.join)(path9)),
4582
+ getEntity: getEntity((0, import_node_path27.join)(path9)),
4554
4583
  /**
4555
4584
  * Returns all entities from EventCatalog
4556
4585
  * @param latestOnly - optional boolean, set to true to get only latest versions
4557
4586
  * @returns Entity[]|Undefined
4558
4587
  */
4559
- getEntities: getEntities((0, import_node_path26.join)(path9)),
4588
+ getEntities: getEntities((0, import_node_path27.join)(path9)),
4560
4589
  /**
4561
4590
  * Adds an entity to EventCatalog
4562
4591
  *
@@ -4564,7 +4593,7 @@ var src_default = (path9) => {
4564
4593
  * @param options - Optional options to write the entity
4565
4594
  *
4566
4595
  */
4567
- writeEntity: writeEntity((0, import_node_path26.join)(path9, "entities")),
4596
+ writeEntity: writeEntity((0, import_node_path27.join)(path9, "entities")),
4568
4597
  /**
4569
4598
  * Adds an entity to a system in EventCatalog
4570
4599
  *
@@ -4573,33 +4602,33 @@ var src_default = (path9) => {
4573
4602
  * @param options - Optional options to write the entity
4574
4603
  *
4575
4604
  */
4576
- writeEntityToSystem: writeEntityToSystem((0, import_node_path26.join)(path9)),
4605
+ writeEntityToSystem: writeEntityToSystem((0, import_node_path27.join)(path9)),
4577
4606
  /**
4578
4607
  * Remove an entity from EventCatalog (modeled on the standard POSIX rm utility)
4579
4608
  *
4580
4609
  * @param path - The path to your entity, e.g. `/User`
4581
4610
  *
4582
4611
  */
4583
- rmEntity: rmEntity((0, import_node_path26.join)(path9, "entities")),
4612
+ rmEntity: rmEntity((0, import_node_path27.join)(path9, "entities")),
4584
4613
  /**
4585
4614
  * Remove an entity by an entity id
4586
4615
  *
4587
4616
  * @param id - The id of the entity you want to remove
4588
4617
  *
4589
4618
  */
4590
- rmEntityById: rmEntityById((0, import_node_path26.join)(path9)),
4619
+ rmEntityById: rmEntityById((0, import_node_path27.join)(path9)),
4591
4620
  /**
4592
4621
  * Moves a given entity id to the version directory
4593
4622
  * @param id - The id of the entity to version
4594
4623
  */
4595
- versionEntity: versionEntity((0, import_node_path26.join)(path9)),
4624
+ versionEntity: versionEntity((0, import_node_path27.join)(path9)),
4596
4625
  /**
4597
4626
  * Check to see if an entity version exists
4598
4627
  * @param id - The id of the entity
4599
4628
  * @param version - The version of the entity (supports semver)
4600
4629
  * @returns
4601
4630
  */
4602
- entityHasVersion: entityHasVersion((0, import_node_path26.join)(path9)),
4631
+ entityHasVersion: entityHasVersion((0, import_node_path27.join)(path9)),
4603
4632
  /**
4604
4633
  * ================================
4605
4634
  * Flows
@@ -4612,7 +4641,7 @@ var src_default = (path9) => {
4612
4641
  * @param version - Optional version of the flow
4613
4642
  * @returns Flow
4614
4643
  */
4615
- getFlow: getFlow((0, import_node_path26.join)(path9)),
4644
+ getFlow: getFlow((0, import_node_path27.join)(path9)),
4616
4645
  /**
4617
4646
  * Returns all flows from EventCatalog
4618
4647
  *
@@ -4620,7 +4649,7 @@ var src_default = (path9) => {
4620
4649
  * @param latestOnly - optional boolean, set to true to get only latest versions
4621
4650
  * @returns Flow[]|Undefined
4622
4651
  */
4623
- getFlows: getFlows((0, import_node_path26.join)(path9)),
4652
+ getFlows: getFlows((0, import_node_path27.join)(path9)),
4624
4653
  /**
4625
4654
  * Adds a flow to EventCatalog
4626
4655
  *
@@ -4628,14 +4657,14 @@ var src_default = (path9) => {
4628
4657
  * @param options - Optional options to write the flow
4629
4658
  *
4630
4659
  */
4631
- writeFlow: writeFlow((0, import_node_path26.join)(path9, "flows")),
4660
+ writeFlow: writeFlow((0, import_node_path27.join)(path9, "flows")),
4632
4661
  /**
4633
4662
  * Adds a versioned flow to EventCatalog
4634
4663
  *
4635
4664
  * @param flow - The flow to write
4636
4665
  *
4637
4666
  */
4638
- writeVersionedFlow: writeVersionedFlow((0, import_node_path26.join)(path9, "flows")),
4667
+ writeVersionedFlow: writeVersionedFlow((0, import_node_path27.join)(path9, "flows")),
4639
4668
  /**
4640
4669
  * Adds a flow to a domain in EventCatalog
4641
4670
  *
@@ -4644,7 +4673,7 @@ var src_default = (path9) => {
4644
4673
  * @param options - Optional options to write the flow
4645
4674
  *
4646
4675
  */
4647
- writeFlowToDomain: writeFlowToDomain((0, import_node_path26.join)(path9, "domains")),
4676
+ writeFlowToDomain: writeFlowToDomain((0, import_node_path27.join)(path9, "domains")),
4648
4677
  /**
4649
4678
  * Adds a flow to a service in EventCatalog
4650
4679
  *
@@ -4653,7 +4682,7 @@ var src_default = (path9) => {
4653
4682
  * @param options - Optional options to write the flow
4654
4683
  *
4655
4684
  */
4656
- writeFlowToService: writeFlowToService((0, import_node_path26.join)(path9, "services")),
4685
+ writeFlowToService: writeFlowToService((0, import_node_path27.join)(path9, "services")),
4657
4686
  /**
4658
4687
  * Adds a flow to a system in EventCatalog
4659
4688
  *
@@ -4662,7 +4691,7 @@ var src_default = (path9) => {
4662
4691
  * @param options - Optional options to write the flow
4663
4692
  *
4664
4693
  */
4665
- writeFlowToSystem: writeFlowToSystem((0, import_node_path26.join)(path9)),
4694
+ writeFlowToSystem: writeFlowToSystem((0, import_node_path27.join)(path9)),
4666
4695
  /**
4667
4696
  * Adds a flow to an agent in EventCatalog
4668
4697
  *
@@ -4671,33 +4700,33 @@ var src_default = (path9) => {
4671
4700
  * @param options - Optional options to write the flow
4672
4701
  *
4673
4702
  */
4674
- writeFlowToAgent: writeFlowToAgent((0, import_node_path26.join)(path9, "agents")),
4703
+ writeFlowToAgent: writeFlowToAgent((0, import_node_path27.join)(path9, "agents")),
4675
4704
  /**
4676
4705
  * Remove a flow from EventCatalog (modeled on the standard POSIX rm utility)
4677
4706
  *
4678
4707
  * @param path - The path to your flow, e.g. `/PaymentFlow`
4679
4708
  *
4680
4709
  */
4681
- rmFlow: rmFlow((0, import_node_path26.join)(path9, "flows")),
4710
+ rmFlow: rmFlow((0, import_node_path27.join)(path9, "flows")),
4682
4711
  /**
4683
4712
  * Remove a flow by a flow id
4684
4713
  *
4685
4714
  * @param id - The id of the flow you want to remove
4686
4715
  *
4687
4716
  */
4688
- rmFlowById: rmFlowById((0, import_node_path26.join)(path9)),
4717
+ rmFlowById: rmFlowById((0, import_node_path27.join)(path9)),
4689
4718
  /**
4690
4719
  * Moves a given flow id to the version directory
4691
4720
  * @param id - The id of the flow to version
4692
4721
  */
4693
- versionFlow: versionFlow((0, import_node_path26.join)(path9)),
4722
+ versionFlow: versionFlow((0, import_node_path27.join)(path9)),
4694
4723
  /**
4695
4724
  * Check to see if a flow version exists
4696
4725
  * @param id - The id of the flow
4697
4726
  * @param version - The version of the flow (supports semver)
4698
4727
  * @returns
4699
4728
  */
4700
- flowHasVersion: flowHasVersion((0, import_node_path26.join)(path9)),
4729
+ flowHasVersion: flowHasVersion((0, import_node_path27.join)(path9)),
4701
4730
  /**
4702
4731
  * Adds a file to the given flow
4703
4732
  * @param id - The id of the flow to add the file to
@@ -4705,7 +4734,7 @@ var src_default = (path9) => {
4705
4734
  * @param version - Optional version of the flow to add the file to
4706
4735
  * @returns
4707
4736
  */
4708
- addFileToFlow: addFileToFlow((0, import_node_path26.join)(path9)),
4737
+ addFileToFlow: addFileToFlow((0, import_node_path27.join)(path9)),
4709
4738
  /**
4710
4739
  * ================================
4711
4740
  * Data Stores
@@ -4717,42 +4746,42 @@ var src_default = (path9) => {
4717
4746
  * @param options - Optional options to write the data store
4718
4747
  *
4719
4748
  */
4720
- writeDataStore: writeDataStore((0, import_node_path26.join)(path9, "containers")),
4749
+ writeDataStore: writeDataStore((0, import_node_path27.join)(path9, "containers")),
4721
4750
  /**
4722
4751
  * Returns a data store from EventCatalog
4723
4752
  * @param id - The id of the data store to retrieve
4724
4753
  * @param version - Optional id of the version to get (supports semver)
4725
4754
  * @returns Container|Undefined
4726
4755
  */
4727
- getDataStore: getDataStore((0, import_node_path26.join)(path9)),
4756
+ getDataStore: getDataStore((0, import_node_path27.join)(path9)),
4728
4757
  /**
4729
4758
  * Returns all data stores from EventCatalog
4730
4759
  * @param latestOnly - optional boolean, set to true to get only latest versions
4731
4760
  * @returns Container[]|Undefined
4732
4761
  */
4733
- getDataStores: getDataStores((0, import_node_path26.join)(path9)),
4762
+ getDataStores: getDataStores((0, import_node_path27.join)(path9)),
4734
4763
  /**
4735
4764
  * Version a data store by its id
4736
4765
  * @param id - The id of the data store to version
4737
4766
  */
4738
- versionDataStore: versionDataStore((0, import_node_path26.join)(path9, "containers")),
4767
+ versionDataStore: versionDataStore((0, import_node_path27.join)(path9, "containers")),
4739
4768
  /**
4740
4769
  * Remove a data store by its path
4741
4770
  * @param path - The path to the data store to remove
4742
4771
  */
4743
- rmDataStore: rmDataStore((0, import_node_path26.join)(path9, "containers")),
4772
+ rmDataStore: rmDataStore((0, import_node_path27.join)(path9, "containers")),
4744
4773
  /**
4745
4774
  * Remove a data store by its id
4746
4775
  * @param id - The id of the data store to remove
4747
4776
  */
4748
- rmDataStoreById: rmDataStoreById((0, import_node_path26.join)(path9)),
4777
+ rmDataStoreById: rmDataStoreById((0, import_node_path27.join)(path9)),
4749
4778
  /**
4750
4779
  * Check to see if a data store version exists
4751
4780
  * @param id - The id of the data store
4752
4781
  * @param version - The version of the data store (supports semver)
4753
4782
  * @returns
4754
4783
  */
4755
- dataStoreHasVersion: dataStoreHasVersion((0, import_node_path26.join)(path9)),
4784
+ dataStoreHasVersion: dataStoreHasVersion((0, import_node_path27.join)(path9)),
4756
4785
  /**
4757
4786
  * Adds a file to a data store by its id
4758
4787
  * @param id - The id of the data store to add the file to
@@ -4760,21 +4789,21 @@ var src_default = (path9) => {
4760
4789
  * @param version - Optional version of the data store to add the file to
4761
4790
  * @returns
4762
4791
  */
4763
- addFileToDataStore: addFileToDataStore((0, import_node_path26.join)(path9)),
4792
+ addFileToDataStore: addFileToDataStore((0, import_node_path27.join)(path9)),
4764
4793
  /**
4765
4794
  * Writes a data store to a service by its id
4766
4795
  * @param dataStore - The data store to write
4767
4796
  * @param service - The service to write the data store to
4768
4797
  * @returns
4769
4798
  */
4770
- writeDataStoreToService: writeDataStoreToService((0, import_node_path26.join)(path9)),
4799
+ writeDataStoreToService: writeDataStoreToService((0, import_node_path27.join)(path9)),
4771
4800
  /**
4772
4801
  * Writes a data store to a system by its id
4773
4802
  * @param dataStore - The data store to write
4774
4803
  * @param system - The system to write the data store to
4775
4804
  * @returns
4776
4805
  */
4777
- writeDataStoreToSystem: writeDataStoreToSystem((0, import_node_path26.join)(path9)),
4806
+ writeDataStoreToSystem: writeDataStoreToSystem((0, import_node_path27.join)(path9)),
4778
4807
  /**
4779
4808
  * ================================
4780
4809
  * Data Products
@@ -4786,7 +4815,7 @@ var src_default = (path9) => {
4786
4815
  * @param options - Optional options to write the data product
4787
4816
  *
4788
4817
  */
4789
- writeDataProduct: writeDataProduct((0, import_node_path26.join)(path9, "data-products")),
4818
+ writeDataProduct: writeDataProduct((0, import_node_path27.join)(path9, "data-products")),
4790
4819
  /**
4791
4820
  * Writes a data product to a domain in EventCatalog
4792
4821
  * @param dataProduct - The data product to write
@@ -4794,43 +4823,43 @@ var src_default = (path9) => {
4794
4823
  * @param options - Optional options to write the data product
4795
4824
  *
4796
4825
  */
4797
- writeDataProductToDomain: writeDataProductToDomain((0, import_node_path26.join)(path9, "domains")),
4826
+ writeDataProductToDomain: writeDataProductToDomain((0, import_node_path27.join)(path9, "domains")),
4798
4827
  /**
4799
4828
  * Returns a data product from EventCatalog
4800
4829
  * @param id - The id of the data product to retrieve
4801
4830
  * @param version - Optional id of the version to get (supports semver)
4802
4831
  * @returns DataProduct|Undefined
4803
4832
  */
4804
- getDataProduct: getDataProduct((0, import_node_path26.join)(path9)),
4833
+ getDataProduct: getDataProduct((0, import_node_path27.join)(path9)),
4805
4834
  /**
4806
4835
  * Returns all data products from EventCatalog
4807
4836
  * @param latestOnly - optional boolean, set to true to get only latest versions
4808
4837
  * @returns DataProduct[]|Undefined
4809
4838
  */
4810
- getDataProducts: getDataProducts((0, import_node_path26.join)(path9)),
4839
+ getDataProducts: getDataProducts((0, import_node_path27.join)(path9)),
4811
4840
  /**
4812
4841
  * Version a data product by its id
4813
4842
  * @param id - The id of the data product to version
4814
4843
  */
4815
- versionDataProduct: versionDataProduct((0, import_node_path26.join)(path9)),
4844
+ versionDataProduct: versionDataProduct((0, import_node_path27.join)(path9)),
4816
4845
  /**
4817
4846
  * Remove a data product by its path
4818
4847
  * @param path - The path to the data product to remove
4819
4848
  */
4820
- rmDataProduct: rmDataProduct((0, import_node_path26.join)(path9, "data-products")),
4849
+ rmDataProduct: rmDataProduct((0, import_node_path27.join)(path9, "data-products")),
4821
4850
  /**
4822
4851
  * Remove a data product by its id
4823
4852
  * @param id - The id of the data product to remove
4824
4853
  * @param version - Optional version of the data product to remove
4825
4854
  */
4826
- rmDataProductById: rmDataProductById((0, import_node_path26.join)(path9)),
4855
+ rmDataProductById: rmDataProductById((0, import_node_path27.join)(path9)),
4827
4856
  /**
4828
4857
  * Check to see if a data product version exists
4829
4858
  * @param id - The id of the data product
4830
4859
  * @param version - The version of the data product (supports semver)
4831
4860
  * @returns
4832
4861
  */
4833
- dataProductHasVersion: dataProductHasVersion((0, import_node_path26.join)(path9)),
4862
+ dataProductHasVersion: dataProductHasVersion((0, import_node_path27.join)(path9)),
4834
4863
  /**
4835
4864
  * Adds a file to a data product by its id
4836
4865
  * @param id - The id of the data product to add the file to
@@ -4838,7 +4867,7 @@ var src_default = (path9) => {
4838
4867
  * @param version - Optional version of the data product to add the file to
4839
4868
  * @returns
4840
4869
  */
4841
- addFileToDataProduct: addFileToDataProduct((0, import_node_path26.join)(path9)),
4870
+ addFileToDataProduct: addFileToDataProduct((0, import_node_path27.join)(path9)),
4842
4871
  /**
4843
4872
  * Adds a data product to a domain
4844
4873
  * @param id - The id of the domain
@@ -4846,7 +4875,7 @@ var src_default = (path9) => {
4846
4875
  * @param version - (Optional) The version of the domain to add the data product to
4847
4876
  * @returns
4848
4877
  */
4849
- addDataProductToDomain: addDataProductToDomain((0, import_node_path26.join)(path9, "domains")),
4878
+ addDataProductToDomain: addDataProductToDomain((0, import_node_path27.join)(path9, "domains")),
4850
4879
  /**
4851
4880
  * ================================
4852
4881
  * Diagrams
@@ -4858,13 +4887,13 @@ var src_default = (path9) => {
4858
4887
  * @param version - Optional id of the version to get (supports semver)
4859
4888
  * @returns Diagram|Undefined
4860
4889
  */
4861
- getDiagram: getDiagram((0, import_node_path26.join)(path9)),
4890
+ getDiagram: getDiagram((0, import_node_path27.join)(path9)),
4862
4891
  /**
4863
4892
  * Returns all diagrams from EventCatalog
4864
4893
  * @param latestOnly - optional boolean, set to true to get only latest versions
4865
4894
  * @returns Diagram[]|Undefined
4866
4895
  */
4867
- getDiagrams: getDiagrams((0, import_node_path26.join)(path9)),
4896
+ getDiagrams: getDiagrams((0, import_node_path27.join)(path9)),
4868
4897
  /**
4869
4898
  * Adds a diagram to EventCatalog
4870
4899
  *
@@ -4872,33 +4901,33 @@ var src_default = (path9) => {
4872
4901
  * @param options - Optional options to write the diagram
4873
4902
  *
4874
4903
  */
4875
- writeDiagram: writeDiagram((0, import_node_path26.join)(path9, "diagrams")),
4904
+ writeDiagram: writeDiagram((0, import_node_path27.join)(path9, "diagrams")),
4876
4905
  /**
4877
4906
  * Remove a diagram from EventCatalog (modeled on the standard POSIX rm utility)
4878
4907
  *
4879
4908
  * @param path - The path to your diagram, e.g. `/ArchitectureDiagram`
4880
4909
  *
4881
4910
  */
4882
- rmDiagram: rmDiagram((0, import_node_path26.join)(path9, "diagrams")),
4911
+ rmDiagram: rmDiagram((0, import_node_path27.join)(path9, "diagrams")),
4883
4912
  /**
4884
4913
  * Remove a diagram by a diagram id
4885
4914
  *
4886
4915
  * @param id - The id of the diagram you want to remove
4887
4916
  *
4888
4917
  */
4889
- rmDiagramById: rmDiagramById((0, import_node_path26.join)(path9)),
4918
+ rmDiagramById: rmDiagramById((0, import_node_path27.join)(path9)),
4890
4919
  /**
4891
4920
  * Moves a given diagram id to the version directory
4892
4921
  * @param id - The id of the diagram to version
4893
4922
  */
4894
- versionDiagram: versionDiagram((0, import_node_path26.join)(path9)),
4923
+ versionDiagram: versionDiagram((0, import_node_path27.join)(path9)),
4895
4924
  /**
4896
4925
  * Check to see if a diagram version exists
4897
4926
  * @param id - The id of the diagram
4898
4927
  * @param version - The version of the diagram (supports semver)
4899
4928
  * @returns
4900
4929
  */
4901
- diagramHasVersion: diagramHasVersion((0, import_node_path26.join)(path9)),
4930
+ diagramHasVersion: diagramHasVersion((0, import_node_path27.join)(path9)),
4902
4931
  /**
4903
4932
  * Adds a file to the given diagram
4904
4933
  * @param id - The id of the diagram to add the file to
@@ -4906,7 +4935,20 @@ var src_default = (path9) => {
4906
4935
  * @param version - Optional version of the diagram to add the file to
4907
4936
  * @returns
4908
4937
  */
4909
- addFileToDiagram: addFileToDiagram((0, import_node_path26.join)(path9)),
4938
+ addFileToDiagram: addFileToDiagram((0, import_node_path27.join)(path9)),
4939
+ /**
4940
+ * ================================
4941
+ * ADRs
4942
+ * ================================
4943
+ */
4944
+ getAdr: getAdr((0, import_node_path27.join)(path9)),
4945
+ getAdrs: getAdrs((0, import_node_path27.join)(path9)),
4946
+ writeAdr: writeAdr((0, import_node_path27.join)(path9, "adrs")),
4947
+ rmAdr: rmAdr((0, import_node_path27.join)(path9, "adrs")),
4948
+ rmAdrById: rmAdrById((0, import_node_path27.join)(path9)),
4949
+ versionAdr: versionAdr((0, import_node_path27.join)(path9)),
4950
+ adrHasVersion: adrHasVersion((0, import_node_path27.join)(path9)),
4951
+ addFileToAdr: addFileToAdr((0, import_node_path27.join)(path9)),
4910
4952
  /**
4911
4953
  * ================================
4912
4954
  * DSL
@@ -4925,21 +4967,21 @@ var src_default = (path9) => {
4925
4967
  * const dsl = await sdk.toDSL(services, { type: 'service', hydrate: true });
4926
4968
  * ```
4927
4969
  */
4928
- createSnapshot: createSnapshot((0, import_node_path26.join)(path9)),
4929
- diffSnapshots: diffSnapshots((0, import_node_path26.join)(path9)),
4930
- listSnapshots: listSnapshots((0, import_node_path26.join)(path9)),
4931
- toDSL: toDSL((0, import_node_path26.join)(path9), {
4932
- getEvent: getEvent((0, import_node_path26.join)(path9)),
4933
- getCommand: getCommand((0, import_node_path26.join)(path9)),
4934
- getQuery: getQuery((0, import_node_path26.join)(path9)),
4935
- getService: getService((0, import_node_path26.join)(path9)),
4936
- getServices: getServices((0, import_node_path26.join)(path9)),
4937
- getDomain: getDomain((0, import_node_path26.join)(path9, "domains")),
4938
- getChannel: getChannel((0, import_node_path26.join)(path9)),
4939
- getChannels: getChannels((0, import_node_path26.join)(path9)),
4940
- getContainer: getDataStore((0, import_node_path26.join)(path9)),
4941
- getTeam: getTeam((0, import_node_path26.join)(path9, "teams")),
4942
- getUser: getUser((0, import_node_path26.join)(path9, "users"))
4970
+ createSnapshot: createSnapshot((0, import_node_path27.join)(path9)),
4971
+ diffSnapshots: diffSnapshots((0, import_node_path27.join)(path9)),
4972
+ listSnapshots: listSnapshots((0, import_node_path27.join)(path9)),
4973
+ toDSL: toDSL((0, import_node_path27.join)(path9), {
4974
+ getEvent: getEvent((0, import_node_path27.join)(path9)),
4975
+ getCommand: getCommand((0, import_node_path27.join)(path9)),
4976
+ getQuery: getQuery((0, import_node_path27.join)(path9)),
4977
+ getService: getService((0, import_node_path27.join)(path9)),
4978
+ getServices: getServices((0, import_node_path27.join)(path9)),
4979
+ getDomain: getDomain((0, import_node_path27.join)(path9, "domains")),
4980
+ getChannel: getChannel((0, import_node_path27.join)(path9)),
4981
+ getChannels: getChannels((0, import_node_path27.join)(path9)),
4982
+ getContainer: getDataStore((0, import_node_path27.join)(path9)),
4983
+ getTeam: getTeam((0, import_node_path27.join)(path9, "teams")),
4984
+ getUser: getUser((0, import_node_path27.join)(path9, "users"))
4943
4985
  })
4944
4986
  };
4945
4987
  };