@eventcatalog/sdk 2.11.0 → 2.12.1
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/README.md +86 -1
- package/dist/cli/index.d.mts +1 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/{eventcatalog.js → cli/index.js} +588 -378
- package/dist/cli/index.js.map +1 -0
- package/dist/{eventcatalog.mjs → cli/index.mjs} +666 -436
- package/dist/cli/index.mjs.map +1 -0
- package/dist/cli-docs.d.mts +43 -0
- package/dist/cli-docs.d.ts +43 -0
- package/dist/cli-docs.js +1614 -0
- package/dist/cli-docs.js.map +1 -0
- package/dist/cli-docs.mjs +1586 -0
- package/dist/cli-docs.mjs.map +1 -0
- package/dist/index.d.mts +443 -25
- package/dist/index.d.ts +443 -25
- package/dist/index.js +204 -121
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +204 -121
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -4
- package/dist/channels.d.mts +0 -214
- package/dist/channels.d.ts +0 -214
- package/dist/channels.js +0 -432
- package/dist/channels.js.map +0 -1
- package/dist/channels.mjs +0 -384
- package/dist/channels.mjs.map +0 -1
- package/dist/commands.d.mts +0 -274
- package/dist/commands.d.ts +0 -274
- package/dist/commands.js +0 -394
- package/dist/commands.js.map +0 -1
- package/dist/commands.mjs +0 -350
- package/dist/commands.mjs.map +0 -1
- package/dist/containers.d.mts +0 -179
- package/dist/containers.d.ts +0 -179
- package/dist/containers.js +0 -388
- package/dist/containers.js.map +0 -1
- package/dist/containers.mjs +0 -345
- package/dist/containers.mjs.map +0 -1
- package/dist/custom-docs.d.mts +0 -89
- package/dist/custom-docs.d.ts +0 -89
- package/dist/custom-docs.js +0 -164
- package/dist/custom-docs.js.map +0 -1
- package/dist/custom-docs.mjs +0 -122
- package/dist/custom-docs.mjs.map +0 -1
- package/dist/data-products.d.mts +0 -225
- package/dist/data-products.d.ts +0 -225
- package/dist/data-products.js +0 -375
- package/dist/data-products.js.map +0 -1
- package/dist/data-products.mjs +0 -332
- package/dist/data-products.mjs.map +0 -1
- package/dist/data-stores.d.mts +0 -179
- package/dist/data-stores.d.ts +0 -179
- package/dist/data-stores.js +0 -401
- package/dist/data-stores.js.map +0 -1
- package/dist/data-stores.mjs +0 -356
- package/dist/data-stores.mjs.map +0 -1
- package/dist/domains.d.mts +0 -347
- package/dist/domains.d.ts +0 -347
- package/dist/domains.js +0 -547
- package/dist/domains.js.map +0 -1
- package/dist/domains.mjs +0 -498
- package/dist/domains.mjs.map +0 -1
- package/dist/entities.d.mts +0 -174
- package/dist/entities.d.ts +0 -174
- package/dist/entities.js +0 -348
- package/dist/entities.js.map +0 -1
- package/dist/entities.mjs +0 -307
- package/dist/entities.mjs.map +0 -1
- package/dist/eventcatalog.d.mts +0 -21
- package/dist/eventcatalog.d.ts +0 -21
- package/dist/eventcatalog.js.map +0 -1
- package/dist/eventcatalog.mjs.map +0 -1
- package/dist/events.d.mts +0 -276
- package/dist/events.d.ts +0 -276
- package/dist/events.js +0 -393
- package/dist/events.js.map +0 -1
- package/dist/events.mjs +0 -349
- package/dist/events.mjs.map +0 -1
- package/dist/messages.d.mts +0 -65
- package/dist/messages.d.ts +0 -65
- package/dist/messages.js +0 -312
- package/dist/messages.js.map +0 -1
- package/dist/messages.mjs +0 -269
- package/dist/messages.mjs.map +0 -1
- package/dist/queries.d.mts +0 -276
- package/dist/queries.d.ts +0 -276
- package/dist/queries.js +0 -394
- package/dist/queries.js.map +0 -1
- package/dist/queries.mjs +0 -350
- package/dist/queries.mjs.map +0 -1
- package/dist/services.d.mts +0 -384
- package/dist/services.d.ts +0 -384
- package/dist/services.js +0 -577
- package/dist/services.js.map +0 -1
- package/dist/services.mjs +0 -526
- package/dist/services.mjs.map +0 -1
- package/dist/teams.d.mts +0 -90
- package/dist/teams.d.ts +0 -90
- package/dist/teams.js +0 -246
- package/dist/teams.js.map +0 -1
- package/dist/teams.mjs +0 -202
- package/dist/teams.mjs.map +0 -1
- package/dist/types.d.d.mts +0 -331
- package/dist/types.d.d.ts +0 -331
- package/dist/types.d.js +0 -19
- package/dist/types.d.js.map +0 -1
- package/dist/types.d.mjs +0 -1
- package/dist/types.d.mjs.map +0 -1
- package/dist/users.d.mts +0 -83
- package/dist/users.d.ts +0 -83
- package/dist/users.js +0 -127
- package/dist/users.js.map +0 -1
- package/dist/users.mjs +0 -88
- package/dist/users.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ __export(src_exports, {
|
|
|
33
33
|
default: () => src_default
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(src_exports);
|
|
36
|
-
var
|
|
36
|
+
var import_node_path20 = require("path");
|
|
37
37
|
|
|
38
38
|
// src/events.ts
|
|
39
39
|
var import_promises2 = __toESM(require("fs/promises"));
|
|
@@ -1312,6 +1312,29 @@ var dataProductHasVersion = (directory) => async (id, version) => {
|
|
|
1312
1312
|
};
|
|
1313
1313
|
var addFileToDataProduct = (directory) => async (id, file, version) => addFileToResource(directory, id, file, version);
|
|
1314
1314
|
|
|
1315
|
+
// src/diagrams.ts
|
|
1316
|
+
var import_promises13 = __toESM(require("fs/promises"));
|
|
1317
|
+
var import_node_path19 = require("path");
|
|
1318
|
+
var getDiagram = (directory) => async (id, version) => getResource(directory, id, version, { type: "diagram" });
|
|
1319
|
+
var getDiagrams = (directory) => async (options) => getResources(directory, { type: "diagrams", latestOnly: options?.latestOnly });
|
|
1320
|
+
var writeDiagram = (directory) => async (diagram, options = {
|
|
1321
|
+
path: "",
|
|
1322
|
+
override: false,
|
|
1323
|
+
format: "mdx"
|
|
1324
|
+
}) => writeResource(directory, { ...diagram }, { ...options, type: "diagram" });
|
|
1325
|
+
var rmDiagram = (directory) => async (path6) => {
|
|
1326
|
+
await import_promises13.default.rm((0, import_node_path19.join)(directory, path6), { recursive: true });
|
|
1327
|
+
};
|
|
1328
|
+
var rmDiagramById = (directory) => async (id, version, persistFiles) => {
|
|
1329
|
+
await rmResourceById(directory, id, version, { type: "diagram", persistFiles });
|
|
1330
|
+
};
|
|
1331
|
+
var versionDiagram = (directory) => async (id) => versionResource(directory, id);
|
|
1332
|
+
var diagramHasVersion = (directory) => async (id, version) => {
|
|
1333
|
+
const file = await findFileById(directory, id, version);
|
|
1334
|
+
return !!file;
|
|
1335
|
+
};
|
|
1336
|
+
var addFileToDiagram = (directory) => async (id, file, version) => addFileToResource(directory, id, file, version, { type: "diagram" });
|
|
1337
|
+
|
|
1315
1338
|
// src/index.ts
|
|
1316
1339
|
var src_default = (path6) => {
|
|
1317
1340
|
return {
|
|
@@ -1321,13 +1344,13 @@ var src_default = (path6) => {
|
|
|
1321
1344
|
* @param version - Optional id of the version to get (supports semver)
|
|
1322
1345
|
* @returns Event|Undefined
|
|
1323
1346
|
*/
|
|
1324
|
-
getEvent: getEvent((0,
|
|
1347
|
+
getEvent: getEvent((0, import_node_path20.join)(path6)),
|
|
1325
1348
|
/**
|
|
1326
1349
|
* Returns all events from EventCatalog
|
|
1327
1350
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
1328
1351
|
* @returns Event[]|Undefined
|
|
1329
1352
|
*/
|
|
1330
|
-
getEvents: getEvents((0,
|
|
1353
|
+
getEvents: getEvents((0, import_node_path20.join)(path6)),
|
|
1331
1354
|
/**
|
|
1332
1355
|
* Adds an event to EventCatalog
|
|
1333
1356
|
*
|
|
@@ -1335,7 +1358,7 @@ var src_default = (path6) => {
|
|
|
1335
1358
|
* @param options - Optional options to write the event
|
|
1336
1359
|
*
|
|
1337
1360
|
*/
|
|
1338
|
-
writeEvent: writeEvent((0,
|
|
1361
|
+
writeEvent: writeEvent((0, import_node_path20.join)(path6, "events")),
|
|
1339
1362
|
/**
|
|
1340
1363
|
* Adds an event to a service in EventCatalog
|
|
1341
1364
|
*
|
|
@@ -1344,26 +1367,26 @@ var src_default = (path6) => {
|
|
|
1344
1367
|
* @param options - Optional options to write the event
|
|
1345
1368
|
*
|
|
1346
1369
|
*/
|
|
1347
|
-
writeEventToService: writeEventToService((0,
|
|
1370
|
+
writeEventToService: writeEventToService((0, import_node_path20.join)(path6)),
|
|
1348
1371
|
/**
|
|
1349
1372
|
* Remove an event to EventCatalog (modeled on the standard POSIX rm utility)
|
|
1350
1373
|
*
|
|
1351
1374
|
* @param path - The path to your event, e.g. `/Inventory/InventoryAdjusted`
|
|
1352
1375
|
*
|
|
1353
1376
|
*/
|
|
1354
|
-
rmEvent: rmEvent((0,
|
|
1377
|
+
rmEvent: rmEvent((0, import_node_path20.join)(path6, "events")),
|
|
1355
1378
|
/**
|
|
1356
1379
|
* Remove an event by an Event id
|
|
1357
1380
|
*
|
|
1358
1381
|
* @param id - The id of the event you want to remove
|
|
1359
1382
|
*
|
|
1360
1383
|
*/
|
|
1361
|
-
rmEventById: rmEventById((0,
|
|
1384
|
+
rmEventById: rmEventById((0, import_node_path20.join)(path6)),
|
|
1362
1385
|
/**
|
|
1363
1386
|
* Moves a given event id to the version directory
|
|
1364
1387
|
* @param directory
|
|
1365
1388
|
*/
|
|
1366
|
-
versionEvent: versionEvent((0,
|
|
1389
|
+
versionEvent: versionEvent((0, import_node_path20.join)(path6)),
|
|
1367
1390
|
/**
|
|
1368
1391
|
* Adds a file to the given event
|
|
1369
1392
|
* @param id - The id of the event to add the file to
|
|
@@ -1371,7 +1394,7 @@ var src_default = (path6) => {
|
|
|
1371
1394
|
* @param version - Optional version of the event to add the file to
|
|
1372
1395
|
* @returns
|
|
1373
1396
|
*/
|
|
1374
|
-
addFileToEvent: addFileToEvent((0,
|
|
1397
|
+
addFileToEvent: addFileToEvent((0, import_node_path20.join)(path6)),
|
|
1375
1398
|
/**
|
|
1376
1399
|
* Adds a schema to the given event
|
|
1377
1400
|
* @param id - The id of the event to add the schema to
|
|
@@ -1379,14 +1402,14 @@ var src_default = (path6) => {
|
|
|
1379
1402
|
* @param version - Optional version of the event to add the schema to
|
|
1380
1403
|
* @returns
|
|
1381
1404
|
*/
|
|
1382
|
-
addSchemaToEvent: addSchemaToEvent((0,
|
|
1405
|
+
addSchemaToEvent: addSchemaToEvent((0, import_node_path20.join)(path6)),
|
|
1383
1406
|
/**
|
|
1384
1407
|
* Check to see if an event version exists
|
|
1385
1408
|
* @param id - The id of the event
|
|
1386
1409
|
* @param version - The version of the event (supports semver)
|
|
1387
1410
|
* @returns
|
|
1388
1411
|
*/
|
|
1389
|
-
eventHasVersion: eventHasVersion((0,
|
|
1412
|
+
eventHasVersion: eventHasVersion((0, import_node_path20.join)(path6)),
|
|
1390
1413
|
/**
|
|
1391
1414
|
* ================================
|
|
1392
1415
|
* Commands
|
|
@@ -1398,13 +1421,13 @@ var src_default = (path6) => {
|
|
|
1398
1421
|
* @param version - Optional id of the version to get (supports semver)
|
|
1399
1422
|
* @returns Command|Undefined
|
|
1400
1423
|
*/
|
|
1401
|
-
getCommand: getCommand((0,
|
|
1424
|
+
getCommand: getCommand((0, import_node_path20.join)(path6)),
|
|
1402
1425
|
/**
|
|
1403
1426
|
* Returns all commands from EventCatalog
|
|
1404
1427
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
1405
1428
|
* @returns Command[]|Undefined
|
|
1406
1429
|
*/
|
|
1407
|
-
getCommands: getCommands((0,
|
|
1430
|
+
getCommands: getCommands((0, import_node_path20.join)(path6)),
|
|
1408
1431
|
/**
|
|
1409
1432
|
* Adds an command to EventCatalog
|
|
1410
1433
|
*
|
|
@@ -1412,7 +1435,7 @@ var src_default = (path6) => {
|
|
|
1412
1435
|
* @param options - Optional options to write the command
|
|
1413
1436
|
*
|
|
1414
1437
|
*/
|
|
1415
|
-
writeCommand: writeCommand((0,
|
|
1438
|
+
writeCommand: writeCommand((0, import_node_path20.join)(path6, "commands")),
|
|
1416
1439
|
/**
|
|
1417
1440
|
* Adds a command to a service in EventCatalog
|
|
1418
1441
|
*
|
|
@@ -1421,26 +1444,26 @@ var src_default = (path6) => {
|
|
|
1421
1444
|
* @param options - Optional options to write the command
|
|
1422
1445
|
*
|
|
1423
1446
|
*/
|
|
1424
|
-
writeCommandToService: writeCommandToService((0,
|
|
1447
|
+
writeCommandToService: writeCommandToService((0, import_node_path20.join)(path6)),
|
|
1425
1448
|
/**
|
|
1426
1449
|
* Remove an command to EventCatalog (modeled on the standard POSIX rm utility)
|
|
1427
1450
|
*
|
|
1428
1451
|
* @param path - The path to your command, e.g. `/Inventory/InventoryAdjusted`
|
|
1429
1452
|
*
|
|
1430
1453
|
*/
|
|
1431
|
-
rmCommand: rmCommand((0,
|
|
1454
|
+
rmCommand: rmCommand((0, import_node_path20.join)(path6, "commands")),
|
|
1432
1455
|
/**
|
|
1433
1456
|
* Remove an command by an Event id
|
|
1434
1457
|
*
|
|
1435
1458
|
* @param id - The id of the command you want to remove
|
|
1436
1459
|
*
|
|
1437
1460
|
*/
|
|
1438
|
-
rmCommandById: rmCommandById((0,
|
|
1461
|
+
rmCommandById: rmCommandById((0, import_node_path20.join)(path6)),
|
|
1439
1462
|
/**
|
|
1440
1463
|
* Moves a given command id to the version directory
|
|
1441
1464
|
* @param directory
|
|
1442
1465
|
*/
|
|
1443
|
-
versionCommand: versionCommand((0,
|
|
1466
|
+
versionCommand: versionCommand((0, import_node_path20.join)(path6)),
|
|
1444
1467
|
/**
|
|
1445
1468
|
* Adds a file to the given command
|
|
1446
1469
|
* @param id - The id of the command to add the file to
|
|
@@ -1448,7 +1471,7 @@ var src_default = (path6) => {
|
|
|
1448
1471
|
* @param version - Optional version of the command to add the file to
|
|
1449
1472
|
* @returns
|
|
1450
1473
|
*/
|
|
1451
|
-
addFileToCommand: addFileToCommand((0,
|
|
1474
|
+
addFileToCommand: addFileToCommand((0, import_node_path20.join)(path6)),
|
|
1452
1475
|
/**
|
|
1453
1476
|
* Adds a schema to the given command
|
|
1454
1477
|
* @param id - The id of the command to add the schema to
|
|
@@ -1456,14 +1479,14 @@ var src_default = (path6) => {
|
|
|
1456
1479
|
* @param version - Optional version of the command to add the schema to
|
|
1457
1480
|
* @returns
|
|
1458
1481
|
*/
|
|
1459
|
-
addSchemaToCommand: addSchemaToCommand((0,
|
|
1482
|
+
addSchemaToCommand: addSchemaToCommand((0, import_node_path20.join)(path6)),
|
|
1460
1483
|
/**
|
|
1461
1484
|
* Check to see if a command version exists
|
|
1462
1485
|
* @param id - The id of the command
|
|
1463
1486
|
* @param version - The version of the command (supports semver)
|
|
1464
1487
|
* @returns
|
|
1465
1488
|
*/
|
|
1466
|
-
commandHasVersion: commandHasVersion((0,
|
|
1489
|
+
commandHasVersion: commandHasVersion((0, import_node_path20.join)(path6)),
|
|
1467
1490
|
/**
|
|
1468
1491
|
* ================================
|
|
1469
1492
|
* Queries
|
|
@@ -1475,13 +1498,13 @@ var src_default = (path6) => {
|
|
|
1475
1498
|
* @param version - Optional id of the version to get (supports semver)
|
|
1476
1499
|
* @returns Query|Undefined
|
|
1477
1500
|
*/
|
|
1478
|
-
getQuery: getQuery((0,
|
|
1501
|
+
getQuery: getQuery((0, import_node_path20.join)(path6)),
|
|
1479
1502
|
/**
|
|
1480
1503
|
* Returns all queries from EventCatalog
|
|
1481
1504
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
1482
1505
|
* @returns Query[]|Undefined
|
|
1483
1506
|
*/
|
|
1484
|
-
getQueries: getQueries((0,
|
|
1507
|
+
getQueries: getQueries((0, import_node_path20.join)(path6)),
|
|
1485
1508
|
/**
|
|
1486
1509
|
* Adds a query to EventCatalog
|
|
1487
1510
|
*
|
|
@@ -1489,7 +1512,7 @@ var src_default = (path6) => {
|
|
|
1489
1512
|
* @param options - Optional options to write the event
|
|
1490
1513
|
*
|
|
1491
1514
|
*/
|
|
1492
|
-
writeQuery: writeQuery((0,
|
|
1515
|
+
writeQuery: writeQuery((0, import_node_path20.join)(path6, "queries")),
|
|
1493
1516
|
/**
|
|
1494
1517
|
* Adds a query to a service in EventCatalog
|
|
1495
1518
|
*
|
|
@@ -1498,26 +1521,26 @@ var src_default = (path6) => {
|
|
|
1498
1521
|
* @param options - Optional options to write the query
|
|
1499
1522
|
*
|
|
1500
1523
|
*/
|
|
1501
|
-
writeQueryToService: writeQueryToService((0,
|
|
1524
|
+
writeQueryToService: writeQueryToService((0, import_node_path20.join)(path6)),
|
|
1502
1525
|
/**
|
|
1503
1526
|
* Remove an query to EventCatalog (modeled on the standard POSIX rm utility)
|
|
1504
1527
|
*
|
|
1505
1528
|
* @param path - The path to your query, e.g. `/Orders/GetOrder`
|
|
1506
1529
|
*
|
|
1507
1530
|
*/
|
|
1508
|
-
rmQuery: rmQuery((0,
|
|
1531
|
+
rmQuery: rmQuery((0, import_node_path20.join)(path6, "queries")),
|
|
1509
1532
|
/**
|
|
1510
1533
|
* Remove a query by a Query id
|
|
1511
1534
|
*
|
|
1512
1535
|
* @param id - The id of the query you want to remove
|
|
1513
1536
|
*
|
|
1514
1537
|
*/
|
|
1515
|
-
rmQueryById: rmQueryById((0,
|
|
1538
|
+
rmQueryById: rmQueryById((0, import_node_path20.join)(path6)),
|
|
1516
1539
|
/**
|
|
1517
1540
|
* Moves a given query id to the version directory
|
|
1518
1541
|
* @param directory
|
|
1519
1542
|
*/
|
|
1520
|
-
versionQuery: versionQuery((0,
|
|
1543
|
+
versionQuery: versionQuery((0, import_node_path20.join)(path6)),
|
|
1521
1544
|
/**
|
|
1522
1545
|
* Adds a file to the given query
|
|
1523
1546
|
* @param id - The id of the query to add the file to
|
|
@@ -1525,7 +1548,7 @@ var src_default = (path6) => {
|
|
|
1525
1548
|
* @param version - Optional version of the query to add the file to
|
|
1526
1549
|
* @returns
|
|
1527
1550
|
*/
|
|
1528
|
-
addFileToQuery: addFileToQuery((0,
|
|
1551
|
+
addFileToQuery: addFileToQuery((0, import_node_path20.join)(path6)),
|
|
1529
1552
|
/**
|
|
1530
1553
|
* Adds a schema to the given query
|
|
1531
1554
|
* @param id - The id of the query to add the schema to
|
|
@@ -1533,14 +1556,14 @@ var src_default = (path6) => {
|
|
|
1533
1556
|
* @param version - Optional version of the query to add the schema to
|
|
1534
1557
|
* @returns
|
|
1535
1558
|
*/
|
|
1536
|
-
addSchemaToQuery: addSchemaToQuery((0,
|
|
1559
|
+
addSchemaToQuery: addSchemaToQuery((0, import_node_path20.join)(path6)),
|
|
1537
1560
|
/**
|
|
1538
1561
|
* Check to see if an query version exists
|
|
1539
1562
|
* @param id - The id of the query
|
|
1540
1563
|
* @param version - The version of the query (supports semver)
|
|
1541
1564
|
* @returns
|
|
1542
1565
|
*/
|
|
1543
|
-
queryHasVersion: queryHasVersion((0,
|
|
1566
|
+
queryHasVersion: queryHasVersion((0, import_node_path20.join)(path6)),
|
|
1544
1567
|
/**
|
|
1545
1568
|
* ================================
|
|
1546
1569
|
* Channels
|
|
@@ -1552,13 +1575,13 @@ var src_default = (path6) => {
|
|
|
1552
1575
|
* @param version - Optional id of the version to get (supports semver)
|
|
1553
1576
|
* @returns Channel|Undefined
|
|
1554
1577
|
*/
|
|
1555
|
-
getChannel: getChannel((0,
|
|
1578
|
+
getChannel: getChannel((0, import_node_path20.join)(path6)),
|
|
1556
1579
|
/**
|
|
1557
1580
|
* Returns all channels from EventCatalog
|
|
1558
1581
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
1559
1582
|
* @returns Channel[]|Undefined
|
|
1560
1583
|
*/
|
|
1561
|
-
getChannels: getChannels((0,
|
|
1584
|
+
getChannels: getChannels((0, import_node_path20.join)(path6)),
|
|
1562
1585
|
/**
|
|
1563
1586
|
* Adds an channel to EventCatalog
|
|
1564
1587
|
*
|
|
@@ -1566,33 +1589,33 @@ var src_default = (path6) => {
|
|
|
1566
1589
|
* @param options - Optional options to write the channel
|
|
1567
1590
|
*
|
|
1568
1591
|
*/
|
|
1569
|
-
writeChannel: writeChannel((0,
|
|
1592
|
+
writeChannel: writeChannel((0, import_node_path20.join)(path6, "channels")),
|
|
1570
1593
|
/**
|
|
1571
1594
|
* Remove an channel to EventCatalog (modeled on the standard POSIX rm utility)
|
|
1572
1595
|
*
|
|
1573
1596
|
* @param path - The path to your channel, e.g. `/Inventory/InventoryAdjusted`
|
|
1574
1597
|
*
|
|
1575
1598
|
*/
|
|
1576
|
-
rmChannel: rmChannel((0,
|
|
1599
|
+
rmChannel: rmChannel((0, import_node_path20.join)(path6, "channels")),
|
|
1577
1600
|
/**
|
|
1578
1601
|
* Remove an channel by an Event id
|
|
1579
1602
|
*
|
|
1580
1603
|
* @param id - The id of the channel you want to remove
|
|
1581
1604
|
*
|
|
1582
1605
|
*/
|
|
1583
|
-
rmChannelById: rmChannelById((0,
|
|
1606
|
+
rmChannelById: rmChannelById((0, import_node_path20.join)(path6)),
|
|
1584
1607
|
/**
|
|
1585
1608
|
* Moves a given channel id to the version directory
|
|
1586
1609
|
* @param directory
|
|
1587
1610
|
*/
|
|
1588
|
-
versionChannel: versionChannel((0,
|
|
1611
|
+
versionChannel: versionChannel((0, import_node_path20.join)(path6)),
|
|
1589
1612
|
/**
|
|
1590
1613
|
* Check to see if a channel version exists
|
|
1591
1614
|
* @param id - The id of the channel
|
|
1592
1615
|
* @param version - The version of the channel (supports semver)
|
|
1593
1616
|
* @returns
|
|
1594
1617
|
*/
|
|
1595
|
-
channelHasVersion: channelHasVersion((0,
|
|
1618
|
+
channelHasVersion: channelHasVersion((0, import_node_path20.join)(path6)),
|
|
1596
1619
|
/**
|
|
1597
1620
|
* Add a channel to an event
|
|
1598
1621
|
*
|
|
@@ -1609,7 +1632,7 @@ var src_default = (path6) => {
|
|
|
1609
1632
|
*
|
|
1610
1633
|
* ```
|
|
1611
1634
|
*/
|
|
1612
|
-
addEventToChannel: addMessageToChannel((0,
|
|
1635
|
+
addEventToChannel: addMessageToChannel((0, import_node_path20.join)(path6), "events"),
|
|
1613
1636
|
/**
|
|
1614
1637
|
* Add a channel to an command
|
|
1615
1638
|
*
|
|
@@ -1626,7 +1649,7 @@ var src_default = (path6) => {
|
|
|
1626
1649
|
*
|
|
1627
1650
|
* ```
|
|
1628
1651
|
*/
|
|
1629
|
-
addCommandToChannel: addMessageToChannel((0,
|
|
1652
|
+
addCommandToChannel: addMessageToChannel((0, import_node_path20.join)(path6), "commands"),
|
|
1630
1653
|
/**
|
|
1631
1654
|
* Add a channel to an query
|
|
1632
1655
|
*
|
|
@@ -1643,7 +1666,7 @@ var src_default = (path6) => {
|
|
|
1643
1666
|
*
|
|
1644
1667
|
* ```
|
|
1645
1668
|
*/
|
|
1646
|
-
addQueryToChannel: addMessageToChannel((0,
|
|
1669
|
+
addQueryToChannel: addMessageToChannel((0, import_node_path20.join)(path6), "queries"),
|
|
1647
1670
|
/**
|
|
1648
1671
|
* ================================
|
|
1649
1672
|
* SERVICES
|
|
@@ -1656,14 +1679,14 @@ var src_default = (path6) => {
|
|
|
1656
1679
|
* @param options - Optional options to write the event
|
|
1657
1680
|
*
|
|
1658
1681
|
*/
|
|
1659
|
-
writeService: writeService((0,
|
|
1682
|
+
writeService: writeService((0, import_node_path20.join)(path6, "services")),
|
|
1660
1683
|
/**
|
|
1661
1684
|
* Adds a versioned service to EventCatalog
|
|
1662
1685
|
*
|
|
1663
1686
|
* @param service - The service to write
|
|
1664
1687
|
*
|
|
1665
1688
|
*/
|
|
1666
|
-
writeVersionedService: writeVersionedService((0,
|
|
1689
|
+
writeVersionedService: writeVersionedService((0, import_node_path20.join)(path6, "services")),
|
|
1667
1690
|
/**
|
|
1668
1691
|
* Adds a service to a domain in EventCatalog
|
|
1669
1692
|
*
|
|
@@ -1672,45 +1695,45 @@ var src_default = (path6) => {
|
|
|
1672
1695
|
* @param options - Optional options to write the event
|
|
1673
1696
|
*
|
|
1674
1697
|
*/
|
|
1675
|
-
writeServiceToDomain: writeServiceToDomain((0,
|
|
1698
|
+
writeServiceToDomain: writeServiceToDomain((0, import_node_path20.join)(path6, "domains")),
|
|
1676
1699
|
/**
|
|
1677
1700
|
* Returns a service from EventCatalog
|
|
1678
1701
|
* @param id - The id of the service to retrieve
|
|
1679
1702
|
* @param version - Optional id of the version to get (supports semver)
|
|
1680
1703
|
* @returns Service|Undefined
|
|
1681
1704
|
*/
|
|
1682
|
-
getService: getService((0,
|
|
1705
|
+
getService: getService((0, import_node_path20.join)(path6)),
|
|
1683
1706
|
/**
|
|
1684
1707
|
* Returns a service from EventCatalog by it's path.
|
|
1685
1708
|
* @param path - The path to the service to retrieve
|
|
1686
1709
|
* @returns Service|Undefined
|
|
1687
1710
|
*/
|
|
1688
|
-
getServiceByPath: getServiceByPath((0,
|
|
1711
|
+
getServiceByPath: getServiceByPath((0, import_node_path20.join)(path6)),
|
|
1689
1712
|
/**
|
|
1690
1713
|
* Returns all services from EventCatalog
|
|
1691
1714
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
1692
1715
|
* @returns Service[]|Undefined
|
|
1693
1716
|
*/
|
|
1694
|
-
getServices: getServices((0,
|
|
1717
|
+
getServices: getServices((0, import_node_path20.join)(path6)),
|
|
1695
1718
|
/**
|
|
1696
1719
|
* Moves a given service id to the version directory
|
|
1697
1720
|
* @param directory
|
|
1698
1721
|
*/
|
|
1699
|
-
versionService: versionService((0,
|
|
1722
|
+
versionService: versionService((0, import_node_path20.join)(path6)),
|
|
1700
1723
|
/**
|
|
1701
1724
|
* Remove a service from EventCatalog (modeled on the standard POSIX rm utility)
|
|
1702
1725
|
*
|
|
1703
1726
|
* @param path - The path to your service, e.g. `/InventoryService`
|
|
1704
1727
|
*
|
|
1705
1728
|
*/
|
|
1706
|
-
rmService: rmService((0,
|
|
1729
|
+
rmService: rmService((0, import_node_path20.join)(path6, "services")),
|
|
1707
1730
|
/**
|
|
1708
1731
|
* Remove an service by an service id
|
|
1709
1732
|
*
|
|
1710
1733
|
* @param id - The id of the service you want to remove
|
|
1711
1734
|
*
|
|
1712
1735
|
*/
|
|
1713
|
-
rmServiceById: rmServiceById((0,
|
|
1736
|
+
rmServiceById: rmServiceById((0, import_node_path20.join)(path6)),
|
|
1714
1737
|
/**
|
|
1715
1738
|
* Adds a file to the given service
|
|
1716
1739
|
* @param id - The id of the service to add the file to
|
|
@@ -1718,21 +1741,21 @@ var src_default = (path6) => {
|
|
|
1718
1741
|
* @param version - Optional version of the service to add the file to
|
|
1719
1742
|
* @returns
|
|
1720
1743
|
*/
|
|
1721
|
-
addFileToService: addFileToService((0,
|
|
1744
|
+
addFileToService: addFileToService((0, import_node_path20.join)(path6)),
|
|
1722
1745
|
/**
|
|
1723
1746
|
* Returns the specifications for a given service
|
|
1724
1747
|
* @param id - The id of the service to retrieve the specifications for
|
|
1725
1748
|
* @param version - Optional version of the service
|
|
1726
1749
|
* @returns
|
|
1727
1750
|
*/
|
|
1728
|
-
getSpecificationFilesForService: getSpecificationFilesForService((0,
|
|
1751
|
+
getSpecificationFilesForService: getSpecificationFilesForService((0, import_node_path20.join)(path6)),
|
|
1729
1752
|
/**
|
|
1730
1753
|
* Check to see if a service version exists
|
|
1731
1754
|
* @param id - The id of the service
|
|
1732
1755
|
* @param version - The version of the service (supports semver)
|
|
1733
1756
|
* @returns
|
|
1734
1757
|
*/
|
|
1735
|
-
serviceHasVersion: serviceHasVersion((0,
|
|
1758
|
+
serviceHasVersion: serviceHasVersion((0, import_node_path20.join)(path6)),
|
|
1736
1759
|
/**
|
|
1737
1760
|
* Add an event to a service by it's id.
|
|
1738
1761
|
*
|
|
@@ -1752,7 +1775,7 @@ var src_default = (path6) => {
|
|
|
1752
1775
|
*
|
|
1753
1776
|
* ```
|
|
1754
1777
|
*/
|
|
1755
|
-
addEventToService: addMessageToService((0,
|
|
1778
|
+
addEventToService: addMessageToService((0, import_node_path20.join)(path6)),
|
|
1756
1779
|
/**
|
|
1757
1780
|
* Add a data store to a service by it's id.
|
|
1758
1781
|
*
|
|
@@ -1769,7 +1792,7 @@ var src_default = (path6) => {
|
|
|
1769
1792
|
*
|
|
1770
1793
|
* ```
|
|
1771
1794
|
*/
|
|
1772
|
-
addDataStoreToService: addDataStoreToService((0,
|
|
1795
|
+
addDataStoreToService: addDataStoreToService((0, import_node_path20.join)(path6)),
|
|
1773
1796
|
/**
|
|
1774
1797
|
* Add a command to a service by it's id.
|
|
1775
1798
|
*
|
|
@@ -1789,7 +1812,7 @@ var src_default = (path6) => {
|
|
|
1789
1812
|
*
|
|
1790
1813
|
* ```
|
|
1791
1814
|
*/
|
|
1792
|
-
addCommandToService: addMessageToService((0,
|
|
1815
|
+
addCommandToService: addMessageToService((0, import_node_path20.join)(path6)),
|
|
1793
1816
|
/**
|
|
1794
1817
|
* Add a query to a service by it's id.
|
|
1795
1818
|
*
|
|
@@ -1809,7 +1832,7 @@ var src_default = (path6) => {
|
|
|
1809
1832
|
*
|
|
1810
1833
|
* ```
|
|
1811
1834
|
*/
|
|
1812
|
-
addQueryToService: addMessageToService((0,
|
|
1835
|
+
addQueryToService: addMessageToService((0, import_node_path20.join)(path6)),
|
|
1813
1836
|
/**
|
|
1814
1837
|
* Add an entity to a service by its id.
|
|
1815
1838
|
*
|
|
@@ -1827,7 +1850,7 @@ var src_default = (path6) => {
|
|
|
1827
1850
|
*
|
|
1828
1851
|
* ```
|
|
1829
1852
|
*/
|
|
1830
|
-
addEntityToService: addEntityToService((0,
|
|
1853
|
+
addEntityToService: addEntityToService((0, import_node_path20.join)(path6)),
|
|
1831
1854
|
/**
|
|
1832
1855
|
* Check to see if a service exists by it's path.
|
|
1833
1856
|
*
|
|
@@ -1844,13 +1867,13 @@ var src_default = (path6) => {
|
|
|
1844
1867
|
* @param path - The path to the service to check
|
|
1845
1868
|
* @returns boolean
|
|
1846
1869
|
*/
|
|
1847
|
-
isService: isService((0,
|
|
1870
|
+
isService: isService((0, import_node_path20.join)(path6)),
|
|
1848
1871
|
/**
|
|
1849
1872
|
* Converts a file to a service.
|
|
1850
1873
|
* @param file - The file to convert to a service.
|
|
1851
1874
|
* @returns The service.
|
|
1852
1875
|
*/
|
|
1853
|
-
toService: toService((0,
|
|
1876
|
+
toService: toService((0, import_node_path20.join)(path6)),
|
|
1854
1877
|
/**
|
|
1855
1878
|
* ================================
|
|
1856
1879
|
* Domains
|
|
@@ -1863,39 +1886,39 @@ var src_default = (path6) => {
|
|
|
1863
1886
|
* @param options - Optional options to write the event
|
|
1864
1887
|
*
|
|
1865
1888
|
*/
|
|
1866
|
-
writeDomain: writeDomain((0,
|
|
1889
|
+
writeDomain: writeDomain((0, import_node_path20.join)(path6, "domains")),
|
|
1867
1890
|
/**
|
|
1868
1891
|
* Returns a domain from EventCatalog
|
|
1869
1892
|
* @param id - The id of the domain to retrieve
|
|
1870
1893
|
* @param version - Optional id of the version to get (supports semver)
|
|
1871
1894
|
* @returns Domain|Undefined
|
|
1872
1895
|
*/
|
|
1873
|
-
getDomain: getDomain((0,
|
|
1896
|
+
getDomain: getDomain((0, import_node_path20.join)(path6, "domains")),
|
|
1874
1897
|
/**
|
|
1875
1898
|
* Returns all domains from EventCatalog
|
|
1876
1899
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
1877
1900
|
* @returns Domain[]|Undefined
|
|
1878
1901
|
*/
|
|
1879
|
-
getDomains: getDomains((0,
|
|
1902
|
+
getDomains: getDomains((0, import_node_path20.join)(path6)),
|
|
1880
1903
|
/**
|
|
1881
1904
|
* Moves a given domain id to the version directory
|
|
1882
1905
|
* @param directory
|
|
1883
1906
|
*/
|
|
1884
|
-
versionDomain: versionDomain((0,
|
|
1907
|
+
versionDomain: versionDomain((0, import_node_path20.join)(path6, "domains")),
|
|
1885
1908
|
/**
|
|
1886
1909
|
* Remove a domain from EventCatalog (modeled on the standard POSIX rm utility)
|
|
1887
1910
|
*
|
|
1888
1911
|
* @param path - The path to your domain, e.g. `/Payment`
|
|
1889
1912
|
*
|
|
1890
1913
|
*/
|
|
1891
|
-
rmDomain: rmDomain((0,
|
|
1914
|
+
rmDomain: rmDomain((0, import_node_path20.join)(path6, "domains")),
|
|
1892
1915
|
/**
|
|
1893
1916
|
* Remove an service by an domain id
|
|
1894
1917
|
*
|
|
1895
1918
|
* @param id - The id of the domain you want to remove
|
|
1896
1919
|
*
|
|
1897
1920
|
*/
|
|
1898
|
-
rmDomainById: rmDomainById((0,
|
|
1921
|
+
rmDomainById: rmDomainById((0, import_node_path20.join)(path6, "domains")),
|
|
1899
1922
|
/**
|
|
1900
1923
|
* Adds a file to the given domain
|
|
1901
1924
|
* @param id - The id of the domain to add the file to
|
|
@@ -1903,28 +1926,28 @@ var src_default = (path6) => {
|
|
|
1903
1926
|
* @param version - Optional version of the domain to add the file to
|
|
1904
1927
|
* @returns
|
|
1905
1928
|
*/
|
|
1906
|
-
addFileToDomain: addFileToDomain((0,
|
|
1929
|
+
addFileToDomain: addFileToDomain((0, import_node_path20.join)(path6, "domains")),
|
|
1907
1930
|
/**
|
|
1908
1931
|
* Adds an ubiquitous language dictionary to a domain
|
|
1909
1932
|
* @param id - The id of the domain to add the ubiquitous language to
|
|
1910
1933
|
* @param ubiquitousLanguageDictionary - The ubiquitous language dictionary to add
|
|
1911
1934
|
* @param version - Optional version of the domain to add the ubiquitous language to
|
|
1912
1935
|
*/
|
|
1913
|
-
addUbiquitousLanguageToDomain: addUbiquitousLanguageToDomain((0,
|
|
1936
|
+
addUbiquitousLanguageToDomain: addUbiquitousLanguageToDomain((0, import_node_path20.join)(path6, "domains")),
|
|
1914
1937
|
/**
|
|
1915
1938
|
* Get the ubiquitous language dictionary from a domain
|
|
1916
1939
|
* @param id - The id of the domain to get the ubiquitous language from
|
|
1917
1940
|
* @param version - Optional version of the domain to get the ubiquitous language from
|
|
1918
1941
|
* @returns
|
|
1919
1942
|
*/
|
|
1920
|
-
getUbiquitousLanguageFromDomain: getUbiquitousLanguageFromDomain((0,
|
|
1943
|
+
getUbiquitousLanguageFromDomain: getUbiquitousLanguageFromDomain((0, import_node_path20.join)(path6, "domains")),
|
|
1921
1944
|
/**
|
|
1922
1945
|
* Check to see if a domain version exists
|
|
1923
1946
|
* @param id - The id of the domain
|
|
1924
1947
|
* @param version - The version of the domain (supports semver)
|
|
1925
1948
|
* @returns
|
|
1926
1949
|
*/
|
|
1927
|
-
domainHasVersion: domainHasVersion((0,
|
|
1950
|
+
domainHasVersion: domainHasVersion((0, import_node_path20.join)(path6)),
|
|
1928
1951
|
/**
|
|
1929
1952
|
* Adds a given service to a domain
|
|
1930
1953
|
* @param id - The id of the domain
|
|
@@ -1932,7 +1955,7 @@ var src_default = (path6) => {
|
|
|
1932
1955
|
* @param version - (Optional) The version of the domain to add the service to
|
|
1933
1956
|
* @returns
|
|
1934
1957
|
*/
|
|
1935
|
-
addServiceToDomain: addServiceToDomain((0,
|
|
1958
|
+
addServiceToDomain: addServiceToDomain((0, import_node_path20.join)(path6, "domains")),
|
|
1936
1959
|
/**
|
|
1937
1960
|
* Adds a given subdomain to a domain
|
|
1938
1961
|
* @param id - The id of the domain
|
|
@@ -1940,7 +1963,7 @@ var src_default = (path6) => {
|
|
|
1940
1963
|
* @param version - (Optional) The version of the domain to add the subdomain to
|
|
1941
1964
|
* @returns
|
|
1942
1965
|
*/
|
|
1943
|
-
addSubDomainToDomain: addSubDomainToDomain((0,
|
|
1966
|
+
addSubDomainToDomain: addSubDomainToDomain((0, import_node_path20.join)(path6, "domains")),
|
|
1944
1967
|
/**
|
|
1945
1968
|
* Adds an entity to a domain
|
|
1946
1969
|
* @param id - The id of the domain
|
|
@@ -1948,7 +1971,7 @@ var src_default = (path6) => {
|
|
|
1948
1971
|
* @param version - (Optional) The version of the domain to add the entity to
|
|
1949
1972
|
* @returns
|
|
1950
1973
|
*/
|
|
1951
|
-
addEntityToDomain: addEntityToDomain((0,
|
|
1974
|
+
addEntityToDomain: addEntityToDomain((0, import_node_path20.join)(path6, "domains")),
|
|
1952
1975
|
/**
|
|
1953
1976
|
* Add an event to a domain by its id.
|
|
1954
1977
|
*
|
|
@@ -1966,7 +1989,7 @@ var src_default = (path6) => {
|
|
|
1966
1989
|
*
|
|
1967
1990
|
* ```
|
|
1968
1991
|
*/
|
|
1969
|
-
addEventToDomain: addMessageToDomain((0,
|
|
1992
|
+
addEventToDomain: addMessageToDomain((0, import_node_path20.join)(path6, "domains")),
|
|
1970
1993
|
/**
|
|
1971
1994
|
* Add a command to a domain by its id.
|
|
1972
1995
|
*
|
|
@@ -1984,7 +2007,7 @@ var src_default = (path6) => {
|
|
|
1984
2007
|
*
|
|
1985
2008
|
* ```
|
|
1986
2009
|
*/
|
|
1987
|
-
addCommandToDomain: addMessageToDomain((0,
|
|
2010
|
+
addCommandToDomain: addMessageToDomain((0, import_node_path20.join)(path6, "domains")),
|
|
1988
2011
|
/**
|
|
1989
2012
|
* Add a query to a domain by its id.
|
|
1990
2013
|
*
|
|
@@ -2002,7 +2025,7 @@ var src_default = (path6) => {
|
|
|
2002
2025
|
*
|
|
2003
2026
|
* ```
|
|
2004
2027
|
*/
|
|
2005
|
-
addQueryToDomain: addMessageToDomain((0,
|
|
2028
|
+
addQueryToDomain: addMessageToDomain((0, import_node_path20.join)(path6, "domains")),
|
|
2006
2029
|
/**
|
|
2007
2030
|
* ================================
|
|
2008
2031
|
* Teams
|
|
@@ -2015,25 +2038,25 @@ var src_default = (path6) => {
|
|
|
2015
2038
|
* @param options - Optional options to write the team
|
|
2016
2039
|
*
|
|
2017
2040
|
*/
|
|
2018
|
-
writeTeam: writeTeam((0,
|
|
2041
|
+
writeTeam: writeTeam((0, import_node_path20.join)(path6, "teams")),
|
|
2019
2042
|
/**
|
|
2020
2043
|
* Returns a team from EventCatalog
|
|
2021
2044
|
* @param id - The id of the team to retrieve
|
|
2022
2045
|
* @returns Team|Undefined
|
|
2023
2046
|
*/
|
|
2024
|
-
getTeam: getTeam((0,
|
|
2047
|
+
getTeam: getTeam((0, import_node_path20.join)(path6, "teams")),
|
|
2025
2048
|
/**
|
|
2026
2049
|
* Returns all teams from EventCatalog
|
|
2027
2050
|
* @returns Team[]|Undefined
|
|
2028
2051
|
*/
|
|
2029
|
-
getTeams: getTeams((0,
|
|
2052
|
+
getTeams: getTeams((0, import_node_path20.join)(path6, "teams")),
|
|
2030
2053
|
/**
|
|
2031
2054
|
* Remove a team by the team id
|
|
2032
2055
|
*
|
|
2033
2056
|
* @param id - The id of the team you want to remove
|
|
2034
2057
|
*
|
|
2035
2058
|
*/
|
|
2036
|
-
rmTeamById: rmTeamById((0,
|
|
2059
|
+
rmTeamById: rmTeamById((0, import_node_path20.join)(path6, "teams")),
|
|
2037
2060
|
/**
|
|
2038
2061
|
* ================================
|
|
2039
2062
|
* Users
|
|
@@ -2046,25 +2069,25 @@ var src_default = (path6) => {
|
|
|
2046
2069
|
* @param options - Optional options to write the user
|
|
2047
2070
|
*
|
|
2048
2071
|
*/
|
|
2049
|
-
writeUser: writeUser((0,
|
|
2072
|
+
writeUser: writeUser((0, import_node_path20.join)(path6, "users")),
|
|
2050
2073
|
/**
|
|
2051
2074
|
* Returns a user from EventCatalog
|
|
2052
2075
|
* @param id - The id of the user to retrieve
|
|
2053
2076
|
* @returns User|Undefined
|
|
2054
2077
|
*/
|
|
2055
|
-
getUser: getUser((0,
|
|
2078
|
+
getUser: getUser((0, import_node_path20.join)(path6, "users")),
|
|
2056
2079
|
/**
|
|
2057
2080
|
* Returns all user from EventCatalog
|
|
2058
2081
|
* @returns User[]|Undefined
|
|
2059
2082
|
*/
|
|
2060
|
-
getUsers: getUsers((0,
|
|
2083
|
+
getUsers: getUsers((0, import_node_path20.join)(path6)),
|
|
2061
2084
|
/**
|
|
2062
2085
|
* Remove a user by the user id
|
|
2063
2086
|
*
|
|
2064
2087
|
* @param id - The id of the user you want to remove
|
|
2065
2088
|
*
|
|
2066
2089
|
*/
|
|
2067
|
-
rmUserById: rmUserById((0,
|
|
2090
|
+
rmUserById: rmUserById((0, import_node_path20.join)(path6, "users")),
|
|
2068
2091
|
/**
|
|
2069
2092
|
* ================================
|
|
2070
2093
|
* Custom Docs
|
|
@@ -2075,32 +2098,32 @@ var src_default = (path6) => {
|
|
|
2075
2098
|
* @param path - The path to the custom doc to retrieve
|
|
2076
2099
|
* @returns CustomDoc|Undefined
|
|
2077
2100
|
*/
|
|
2078
|
-
getCustomDoc: getCustomDoc((0,
|
|
2101
|
+
getCustomDoc: getCustomDoc((0, import_node_path20.join)(path6, "docs")),
|
|
2079
2102
|
/**
|
|
2080
2103
|
* Returns all custom docs from EventCatalog
|
|
2081
2104
|
* @param options - Optional options to get custom docs from a specific path
|
|
2082
2105
|
* @returns CustomDoc[]|Undefined
|
|
2083
2106
|
*/
|
|
2084
|
-
getCustomDocs: getCustomDocs((0,
|
|
2107
|
+
getCustomDocs: getCustomDocs((0, import_node_path20.join)(path6, "docs")),
|
|
2085
2108
|
/**
|
|
2086
2109
|
* Writes a custom doc to EventCatalog
|
|
2087
2110
|
* @param customDoc - The custom doc to write
|
|
2088
2111
|
* @param options - Optional options to write the custom doc
|
|
2089
2112
|
*
|
|
2090
2113
|
*/
|
|
2091
|
-
writeCustomDoc: writeCustomDoc((0,
|
|
2114
|
+
writeCustomDoc: writeCustomDoc((0, import_node_path20.join)(path6, "docs")),
|
|
2092
2115
|
/**
|
|
2093
2116
|
* Removes a custom doc from EventCatalog
|
|
2094
2117
|
* @param path - The path to the custom doc to remove
|
|
2095
2118
|
*
|
|
2096
2119
|
*/
|
|
2097
|
-
rmCustomDoc: rmCustomDoc((0,
|
|
2120
|
+
rmCustomDoc: rmCustomDoc((0, import_node_path20.join)(path6, "docs")),
|
|
2098
2121
|
/**
|
|
2099
2122
|
* Dumps the catalog to a JSON file.
|
|
2100
2123
|
* @param directory - The directory to dump the catalog to
|
|
2101
2124
|
* @returns A JSON file with the catalog
|
|
2102
2125
|
*/
|
|
2103
|
-
dumpCatalog: dumpCatalog((0,
|
|
2126
|
+
dumpCatalog: dumpCatalog((0, import_node_path20.join)(path6)),
|
|
2104
2127
|
/**
|
|
2105
2128
|
* Returns the event catalog configuration file.
|
|
2106
2129
|
* The event catalog configuration file is the file that contains the configuration for the event catalog.
|
|
@@ -2108,7 +2131,7 @@ var src_default = (path6) => {
|
|
|
2108
2131
|
* @param directory - The directory of the catalog.
|
|
2109
2132
|
* @returns A JSON object with the configuration for the event catalog.
|
|
2110
2133
|
*/
|
|
2111
|
-
getEventCatalogConfigurationFile: getEventCatalogConfigurationFile((0,
|
|
2134
|
+
getEventCatalogConfigurationFile: getEventCatalogConfigurationFile((0, import_node_path20.join)(path6)),
|
|
2112
2135
|
/**
|
|
2113
2136
|
* ================================
|
|
2114
2137
|
* Resources Utils
|
|
@@ -2133,33 +2156,33 @@ var src_default = (path6) => {
|
|
|
2133
2156
|
* @param path - The path to the message to retrieve
|
|
2134
2157
|
* @returns Message|Undefined
|
|
2135
2158
|
*/
|
|
2136
|
-
getMessageBySchemaPath: getMessageBySchemaPath((0,
|
|
2159
|
+
getMessageBySchemaPath: getMessageBySchemaPath((0, import_node_path20.join)(path6)),
|
|
2137
2160
|
/**
|
|
2138
2161
|
* Returns the producers and consumers (services) for a given message
|
|
2139
2162
|
* @param id - The id of the message to get the producers and consumers for
|
|
2140
2163
|
* @param version - Optional version of the message
|
|
2141
2164
|
* @returns { producers: Service[], consumers: Service[] }
|
|
2142
2165
|
*/
|
|
2143
|
-
getProducersAndConsumersForMessage: getProducersAndConsumersForMessage((0,
|
|
2166
|
+
getProducersAndConsumersForMessage: getProducersAndConsumersForMessage((0, import_node_path20.join)(path6)),
|
|
2144
2167
|
/**
|
|
2145
2168
|
* Returns the consumers of a given schema path
|
|
2146
2169
|
* @param path - The path to the schema to get the consumers for
|
|
2147
2170
|
* @returns Service[]
|
|
2148
2171
|
*/
|
|
2149
|
-
getConsumersOfSchema: getConsumersOfSchema((0,
|
|
2172
|
+
getConsumersOfSchema: getConsumersOfSchema((0, import_node_path20.join)(path6)),
|
|
2150
2173
|
/**
|
|
2151
2174
|
* Returns the producers of a given schema path
|
|
2152
2175
|
* @param path - The path to the schema to get the producers for
|
|
2153
2176
|
* @returns Service[]
|
|
2154
2177
|
*/
|
|
2155
|
-
getProducersOfSchema: getProducersOfSchema((0,
|
|
2178
|
+
getProducersOfSchema: getProducersOfSchema((0, import_node_path20.join)(path6)),
|
|
2156
2179
|
/**
|
|
2157
2180
|
* Returns the owners for a given resource (e.g domain, service, event, command, query, etc.)
|
|
2158
2181
|
* @param id - The id of the resource to get the owners for
|
|
2159
2182
|
* @param version - Optional version of the resource
|
|
2160
2183
|
* @returns { owners: User[] }
|
|
2161
2184
|
*/
|
|
2162
|
-
getOwnersForResource: getOwnersForResource((0,
|
|
2185
|
+
getOwnersForResource: getOwnersForResource((0, import_node_path20.join)(path6)),
|
|
2163
2186
|
/**
|
|
2164
2187
|
* ================================
|
|
2165
2188
|
* Entities
|
|
@@ -2171,13 +2194,13 @@ var src_default = (path6) => {
|
|
|
2171
2194
|
* @param version - Optional id of the version to get (supports semver)
|
|
2172
2195
|
* @returns Entity|Undefined
|
|
2173
2196
|
*/
|
|
2174
|
-
getEntity: getEntity((0,
|
|
2197
|
+
getEntity: getEntity((0, import_node_path20.join)(path6)),
|
|
2175
2198
|
/**
|
|
2176
2199
|
* Returns all entities from EventCatalog
|
|
2177
2200
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2178
2201
|
* @returns Entity[]|Undefined
|
|
2179
2202
|
*/
|
|
2180
|
-
getEntities: getEntities((0,
|
|
2203
|
+
getEntities: getEntities((0, import_node_path20.join)(path6)),
|
|
2181
2204
|
/**
|
|
2182
2205
|
* Adds an entity to EventCatalog
|
|
2183
2206
|
*
|
|
@@ -2185,33 +2208,33 @@ var src_default = (path6) => {
|
|
|
2185
2208
|
* @param options - Optional options to write the entity
|
|
2186
2209
|
*
|
|
2187
2210
|
*/
|
|
2188
|
-
writeEntity: writeEntity((0,
|
|
2211
|
+
writeEntity: writeEntity((0, import_node_path20.join)(path6, "entities")),
|
|
2189
2212
|
/**
|
|
2190
2213
|
* Remove an entity from EventCatalog (modeled on the standard POSIX rm utility)
|
|
2191
2214
|
*
|
|
2192
2215
|
* @param path - The path to your entity, e.g. `/User`
|
|
2193
2216
|
*
|
|
2194
2217
|
*/
|
|
2195
|
-
rmEntity: rmEntity((0,
|
|
2218
|
+
rmEntity: rmEntity((0, import_node_path20.join)(path6, "entities")),
|
|
2196
2219
|
/**
|
|
2197
2220
|
* Remove an entity by an entity id
|
|
2198
2221
|
*
|
|
2199
2222
|
* @param id - The id of the entity you want to remove
|
|
2200
2223
|
*
|
|
2201
2224
|
*/
|
|
2202
|
-
rmEntityById: rmEntityById((0,
|
|
2225
|
+
rmEntityById: rmEntityById((0, import_node_path20.join)(path6)),
|
|
2203
2226
|
/**
|
|
2204
2227
|
* Moves a given entity id to the version directory
|
|
2205
2228
|
* @param id - The id of the entity to version
|
|
2206
2229
|
*/
|
|
2207
|
-
versionEntity: versionEntity((0,
|
|
2230
|
+
versionEntity: versionEntity((0, import_node_path20.join)(path6)),
|
|
2208
2231
|
/**
|
|
2209
2232
|
* Check to see if an entity version exists
|
|
2210
2233
|
* @param id - The id of the entity
|
|
2211
2234
|
* @param version - The version of the entity (supports semver)
|
|
2212
2235
|
* @returns
|
|
2213
2236
|
*/
|
|
2214
|
-
entityHasVersion: entityHasVersion((0,
|
|
2237
|
+
entityHasVersion: entityHasVersion((0, import_node_path20.join)(path6)),
|
|
2215
2238
|
/**
|
|
2216
2239
|
* ================================
|
|
2217
2240
|
* Data Stores
|
|
@@ -2223,42 +2246,42 @@ var src_default = (path6) => {
|
|
|
2223
2246
|
* @param options - Optional options to write the data store
|
|
2224
2247
|
*
|
|
2225
2248
|
*/
|
|
2226
|
-
writeDataStore: writeDataStore((0,
|
|
2249
|
+
writeDataStore: writeDataStore((0, import_node_path20.join)(path6, "containers")),
|
|
2227
2250
|
/**
|
|
2228
2251
|
* Returns a data store from EventCatalog
|
|
2229
2252
|
* @param id - The id of the data store to retrieve
|
|
2230
2253
|
* @param version - Optional id of the version to get (supports semver)
|
|
2231
2254
|
* @returns Container|Undefined
|
|
2232
2255
|
*/
|
|
2233
|
-
getDataStore: getDataStore((0,
|
|
2256
|
+
getDataStore: getDataStore((0, import_node_path20.join)(path6)),
|
|
2234
2257
|
/**
|
|
2235
2258
|
* Returns all data stores from EventCatalog
|
|
2236
2259
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2237
2260
|
* @returns Container[]|Undefined
|
|
2238
2261
|
*/
|
|
2239
|
-
getDataStores: getDataStores((0,
|
|
2262
|
+
getDataStores: getDataStores((0, import_node_path20.join)(path6)),
|
|
2240
2263
|
/**
|
|
2241
2264
|
* Version a data store by its id
|
|
2242
2265
|
* @param id - The id of the data store to version
|
|
2243
2266
|
*/
|
|
2244
|
-
versionDataStore: versionDataStore((0,
|
|
2267
|
+
versionDataStore: versionDataStore((0, import_node_path20.join)(path6, "containers")),
|
|
2245
2268
|
/**
|
|
2246
2269
|
* Remove a data store by its path
|
|
2247
2270
|
* @param path - The path to the data store to remove
|
|
2248
2271
|
*/
|
|
2249
|
-
rmDataStore: rmDataStore((0,
|
|
2272
|
+
rmDataStore: rmDataStore((0, import_node_path20.join)(path6, "containers")),
|
|
2250
2273
|
/**
|
|
2251
2274
|
* Remove a data store by its id
|
|
2252
2275
|
* @param id - The id of the data store to remove
|
|
2253
2276
|
*/
|
|
2254
|
-
rmDataStoreById: rmDataStoreById((0,
|
|
2277
|
+
rmDataStoreById: rmDataStoreById((0, import_node_path20.join)(path6)),
|
|
2255
2278
|
/**
|
|
2256
2279
|
* Check to see if a data store version exists
|
|
2257
2280
|
* @param id - The id of the data store
|
|
2258
2281
|
* @param version - The version of the data store (supports semver)
|
|
2259
2282
|
* @returns
|
|
2260
2283
|
*/
|
|
2261
|
-
dataStoreHasVersion: dataStoreHasVersion((0,
|
|
2284
|
+
dataStoreHasVersion: dataStoreHasVersion((0, import_node_path20.join)(path6)),
|
|
2262
2285
|
/**
|
|
2263
2286
|
* Adds a file to a data store by its id
|
|
2264
2287
|
* @param id - The id of the data store to add the file to
|
|
@@ -2266,14 +2289,14 @@ var src_default = (path6) => {
|
|
|
2266
2289
|
* @param version - Optional version of the data store to add the file to
|
|
2267
2290
|
* @returns
|
|
2268
2291
|
*/
|
|
2269
|
-
addFileToDataStore: addFileToDataStore((0,
|
|
2292
|
+
addFileToDataStore: addFileToDataStore((0, import_node_path20.join)(path6)),
|
|
2270
2293
|
/**
|
|
2271
2294
|
* Writes a data store to a service by its id
|
|
2272
2295
|
* @param dataStore - The data store to write
|
|
2273
2296
|
* @param service - The service to write the data store to
|
|
2274
2297
|
* @returns
|
|
2275
2298
|
*/
|
|
2276
|
-
writeDataStoreToService: writeDataStoreToService((0,
|
|
2299
|
+
writeDataStoreToService: writeDataStoreToService((0, import_node_path20.join)(path6)),
|
|
2277
2300
|
/**
|
|
2278
2301
|
* ================================
|
|
2279
2302
|
* Data Products
|
|
@@ -2285,7 +2308,7 @@ var src_default = (path6) => {
|
|
|
2285
2308
|
* @param options - Optional options to write the data product
|
|
2286
2309
|
*
|
|
2287
2310
|
*/
|
|
2288
|
-
writeDataProduct: writeDataProduct((0,
|
|
2311
|
+
writeDataProduct: writeDataProduct((0, import_node_path20.join)(path6, "data-products")),
|
|
2289
2312
|
/**
|
|
2290
2313
|
* Writes a data product to a domain in EventCatalog
|
|
2291
2314
|
* @param dataProduct - The data product to write
|
|
@@ -2293,43 +2316,43 @@ var src_default = (path6) => {
|
|
|
2293
2316
|
* @param options - Optional options to write the data product
|
|
2294
2317
|
*
|
|
2295
2318
|
*/
|
|
2296
|
-
writeDataProductToDomain: writeDataProductToDomain((0,
|
|
2319
|
+
writeDataProductToDomain: writeDataProductToDomain((0, import_node_path20.join)(path6, "domains")),
|
|
2297
2320
|
/**
|
|
2298
2321
|
* Returns a data product from EventCatalog
|
|
2299
2322
|
* @param id - The id of the data product to retrieve
|
|
2300
2323
|
* @param version - Optional id of the version to get (supports semver)
|
|
2301
2324
|
* @returns DataProduct|Undefined
|
|
2302
2325
|
*/
|
|
2303
|
-
getDataProduct: getDataProduct((0,
|
|
2326
|
+
getDataProduct: getDataProduct((0, import_node_path20.join)(path6)),
|
|
2304
2327
|
/**
|
|
2305
2328
|
* Returns all data products from EventCatalog
|
|
2306
2329
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2307
2330
|
* @returns DataProduct[]|Undefined
|
|
2308
2331
|
*/
|
|
2309
|
-
getDataProducts: getDataProducts((0,
|
|
2332
|
+
getDataProducts: getDataProducts((0, import_node_path20.join)(path6)),
|
|
2310
2333
|
/**
|
|
2311
2334
|
* Version a data product by its id
|
|
2312
2335
|
* @param id - The id of the data product to version
|
|
2313
2336
|
*/
|
|
2314
|
-
versionDataProduct: versionDataProduct((0,
|
|
2337
|
+
versionDataProduct: versionDataProduct((0, import_node_path20.join)(path6)),
|
|
2315
2338
|
/**
|
|
2316
2339
|
* Remove a data product by its path
|
|
2317
2340
|
* @param path - The path to the data product to remove
|
|
2318
2341
|
*/
|
|
2319
|
-
rmDataProduct: rmDataProduct((0,
|
|
2342
|
+
rmDataProduct: rmDataProduct((0, import_node_path20.join)(path6, "data-products")),
|
|
2320
2343
|
/**
|
|
2321
2344
|
* Remove a data product by its id
|
|
2322
2345
|
* @param id - The id of the data product to remove
|
|
2323
2346
|
* @param version - Optional version of the data product to remove
|
|
2324
2347
|
*/
|
|
2325
|
-
rmDataProductById: rmDataProductById((0,
|
|
2348
|
+
rmDataProductById: rmDataProductById((0, import_node_path20.join)(path6)),
|
|
2326
2349
|
/**
|
|
2327
2350
|
* Check to see if a data product version exists
|
|
2328
2351
|
* @param id - The id of the data product
|
|
2329
2352
|
* @param version - The version of the data product (supports semver)
|
|
2330
2353
|
* @returns
|
|
2331
2354
|
*/
|
|
2332
|
-
dataProductHasVersion: dataProductHasVersion((0,
|
|
2355
|
+
dataProductHasVersion: dataProductHasVersion((0, import_node_path20.join)(path6)),
|
|
2333
2356
|
/**
|
|
2334
2357
|
* Adds a file to a data product by its id
|
|
2335
2358
|
* @param id - The id of the data product to add the file to
|
|
@@ -2337,7 +2360,7 @@ var src_default = (path6) => {
|
|
|
2337
2360
|
* @param version - Optional version of the data product to add the file to
|
|
2338
2361
|
* @returns
|
|
2339
2362
|
*/
|
|
2340
|
-
addFileToDataProduct: addFileToDataProduct((0,
|
|
2363
|
+
addFileToDataProduct: addFileToDataProduct((0, import_node_path20.join)(path6)),
|
|
2341
2364
|
/**
|
|
2342
2365
|
* Adds a data product to a domain
|
|
2343
2366
|
* @param id - The id of the domain
|
|
@@ -2345,7 +2368,67 @@ var src_default = (path6) => {
|
|
|
2345
2368
|
* @param version - (Optional) The version of the domain to add the data product to
|
|
2346
2369
|
* @returns
|
|
2347
2370
|
*/
|
|
2348
|
-
addDataProductToDomain: addDataProductToDomain((0,
|
|
2371
|
+
addDataProductToDomain: addDataProductToDomain((0, import_node_path20.join)(path6, "domains")),
|
|
2372
|
+
/**
|
|
2373
|
+
* ================================
|
|
2374
|
+
* Diagrams
|
|
2375
|
+
* ================================
|
|
2376
|
+
*/
|
|
2377
|
+
/**
|
|
2378
|
+
* Returns a diagram from EventCatalog
|
|
2379
|
+
* @param id - The id of the diagram to retrieve
|
|
2380
|
+
* @param version - Optional id of the version to get (supports semver)
|
|
2381
|
+
* @returns Diagram|Undefined
|
|
2382
|
+
*/
|
|
2383
|
+
getDiagram: getDiagram((0, import_node_path20.join)(path6)),
|
|
2384
|
+
/**
|
|
2385
|
+
* Returns all diagrams from EventCatalog
|
|
2386
|
+
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2387
|
+
* @returns Diagram[]|Undefined
|
|
2388
|
+
*/
|
|
2389
|
+
getDiagrams: getDiagrams((0, import_node_path20.join)(path6)),
|
|
2390
|
+
/**
|
|
2391
|
+
* Adds a diagram to EventCatalog
|
|
2392
|
+
*
|
|
2393
|
+
* @param diagram - The diagram to write
|
|
2394
|
+
* @param options - Optional options to write the diagram
|
|
2395
|
+
*
|
|
2396
|
+
*/
|
|
2397
|
+
writeDiagram: writeDiagram((0, import_node_path20.join)(path6, "diagrams")),
|
|
2398
|
+
/**
|
|
2399
|
+
* Remove a diagram from EventCatalog (modeled on the standard POSIX rm utility)
|
|
2400
|
+
*
|
|
2401
|
+
* @param path - The path to your diagram, e.g. `/ArchitectureDiagram`
|
|
2402
|
+
*
|
|
2403
|
+
*/
|
|
2404
|
+
rmDiagram: rmDiagram((0, import_node_path20.join)(path6, "diagrams")),
|
|
2405
|
+
/**
|
|
2406
|
+
* Remove a diagram by a diagram id
|
|
2407
|
+
*
|
|
2408
|
+
* @param id - The id of the diagram you want to remove
|
|
2409
|
+
*
|
|
2410
|
+
*/
|
|
2411
|
+
rmDiagramById: rmDiagramById((0, import_node_path20.join)(path6)),
|
|
2412
|
+
/**
|
|
2413
|
+
* Moves a given diagram id to the version directory
|
|
2414
|
+
* @param id - The id of the diagram to version
|
|
2415
|
+
*/
|
|
2416
|
+
versionDiagram: versionDiagram((0, import_node_path20.join)(path6)),
|
|
2417
|
+
/**
|
|
2418
|
+
* Check to see if a diagram version exists
|
|
2419
|
+
* @param id - The id of the diagram
|
|
2420
|
+
* @param version - The version of the diagram (supports semver)
|
|
2421
|
+
* @returns
|
|
2422
|
+
*/
|
|
2423
|
+
diagramHasVersion: diagramHasVersion((0, import_node_path20.join)(path6)),
|
|
2424
|
+
/**
|
|
2425
|
+
* Adds a file to the given diagram
|
|
2426
|
+
* @param id - The id of the diagram to add the file to
|
|
2427
|
+
* @param file - File contents to add including the content and the file name
|
|
2428
|
+
* @param version - Optional version of the diagram to add the file to
|
|
2429
|
+
* @returns
|
|
2430
|
+
*/
|
|
2431
|
+
addFileToDiagram: addFileToDiagram((0, import_node_path20.join)(path6))
|
|
2349
2432
|
};
|
|
2350
2433
|
};
|
|
2351
2434
|
//# sourceMappingURL=index.js.map
|