@eventcatalog/sdk 2.23.1 → 2.24.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/dist/index.d.mts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +353 -322
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +333 -302
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -794,8 +794,8 @@ var getFiles = async (pattern, ignore = "") => {
|
|
|
794
794
|
);
|
|
795
795
|
}
|
|
796
796
|
};
|
|
797
|
-
var readMdxFile = async (
|
|
798
|
-
const { data } = matter.read(
|
|
797
|
+
var readMdxFile = async (path9) => {
|
|
798
|
+
const { data } = matter.read(path9);
|
|
799
799
|
const { markdown, ...frontmatter } = data;
|
|
800
800
|
return { ...frontmatter, markdown };
|
|
801
801
|
};
|
|
@@ -898,8 +898,8 @@ var writeResource = async (catalogDir, resource, options = {
|
|
|
898
898
|
versionExistingContent: false,
|
|
899
899
|
format: "mdx"
|
|
900
900
|
}) => {
|
|
901
|
-
const
|
|
902
|
-
const fullPath = join2(catalogDir,
|
|
901
|
+
const path9 = options.path || `/${resource.id}`;
|
|
902
|
+
const fullPath = join2(catalogDir, path9);
|
|
903
903
|
const format = options.format || "mdx";
|
|
904
904
|
fsSync2.mkdirSync(fullPath, { recursive: true });
|
|
905
905
|
const lockPath = join2(fullPath, `index.${format}`);
|
|
@@ -1033,16 +1033,16 @@ var rmResourceById = async (catalogDir, id, version, options) => {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
invalidateFileCache();
|
|
1035
1035
|
};
|
|
1036
|
-
var waitForFileRemoval = async (
|
|
1036
|
+
var waitForFileRemoval = async (path9, maxRetries = 50, delay = 10) => {
|
|
1037
1037
|
for (let i = 0; i < maxRetries; i++) {
|
|
1038
1038
|
try {
|
|
1039
|
-
await fs.access(
|
|
1039
|
+
await fs.access(path9);
|
|
1040
1040
|
await new Promise((resolve2) => setTimeout(resolve2, delay));
|
|
1041
1041
|
} catch (error) {
|
|
1042
1042
|
return;
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
1045
|
-
throw new Error(`File/directory ${
|
|
1045
|
+
throw new Error(`File/directory ${path9} was not removed after ${maxRetries} attempts`);
|
|
1046
1046
|
};
|
|
1047
1047
|
var addFileToResource = async (catalogDir, id, file, version, options) => {
|
|
1048
1048
|
let pathToResource;
|
|
@@ -1153,8 +1153,8 @@ var writeEventToAgent = (directory) => async (event, agent, options = { path: ""
|
|
|
1153
1153
|
pathForEvent = join3(pathForEvent, event.id);
|
|
1154
1154
|
await writeResource(directory, { ...event }, { ...options, path: pathForEvent, type: "event" });
|
|
1155
1155
|
};
|
|
1156
|
-
var rmEvent = (directory) => async (
|
|
1157
|
-
await fs2.rm(join3(directory,
|
|
1156
|
+
var rmEvent = (directory) => async (path9) => {
|
|
1157
|
+
await fs2.rm(join3(directory, path9), { recursive: true });
|
|
1158
1158
|
invalidateFileCache();
|
|
1159
1159
|
};
|
|
1160
1160
|
var rmEventById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -1202,8 +1202,8 @@ var writeCommandToAgent = (directory) => async (command, agent, options = { path
|
|
|
1202
1202
|
pathForCommand = join4(pathForCommand, command.id);
|
|
1203
1203
|
await writeResource(directory, { ...command }, { ...options, path: pathForCommand, type: "command" });
|
|
1204
1204
|
};
|
|
1205
|
-
var rmCommand = (directory) => async (
|
|
1206
|
-
await fs3.rm(join4(directory,
|
|
1205
|
+
var rmCommand = (directory) => async (path9) => {
|
|
1206
|
+
await fs3.rm(join4(directory, path9), { recursive: true });
|
|
1207
1207
|
invalidateFileCache();
|
|
1208
1208
|
};
|
|
1209
1209
|
var rmCommandById = (directory) => async (id, version, persistFiles) => rmResourceById(directory, id, version, { type: "command", persistFiles });
|
|
@@ -1249,8 +1249,8 @@ var writeQueryToAgent = (directory) => async (query, agent, options = { path: ""
|
|
|
1249
1249
|
pathForQuery = join5(pathForQuery, query.id);
|
|
1250
1250
|
await writeResource(directory, { ...query }, { ...options, path: pathForQuery, type: "query" });
|
|
1251
1251
|
};
|
|
1252
|
-
var rmQuery = (directory) => async (
|
|
1253
|
-
await fs4.rm(join5(directory,
|
|
1252
|
+
var rmQuery = (directory) => async (path9) => {
|
|
1253
|
+
await fs4.rm(join5(directory, path9), { recursive: true });
|
|
1254
1254
|
invalidateFileCache();
|
|
1255
1255
|
};
|
|
1256
1256
|
var rmQueryById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -1273,8 +1273,8 @@ var removeExampleFromQuery = (directory) => async (id, fileName, version) => rem
|
|
|
1273
1273
|
import fs5 from "fs/promises";
|
|
1274
1274
|
import { join as join6, dirname as dirname4, extname, relative as relative2 } from "path";
|
|
1275
1275
|
var getService = (directory) => async (id, version) => getResource(directory, id, version, { type: "service" });
|
|
1276
|
-
var getServiceByPath = (directory) => async (
|
|
1277
|
-
const service = await getResource(directory, void 0, void 0, { type: "service" },
|
|
1276
|
+
var getServiceByPath = (directory) => async (path9) => {
|
|
1277
|
+
const service = await getResource(directory, void 0, void 0, { type: "service" }, path9);
|
|
1278
1278
|
return service;
|
|
1279
1279
|
};
|
|
1280
1280
|
var getServices = (directory) => async (options) => getResources(directory, {
|
|
@@ -1309,8 +1309,8 @@ var writeService = (directory) => async (service, options = {
|
|
|
1309
1309
|
};
|
|
1310
1310
|
var writeVersionedService = (directory) => async (service) => {
|
|
1311
1311
|
const resource = { ...service };
|
|
1312
|
-
const
|
|
1313
|
-
return await writeService(directory)(resource, { path:
|
|
1312
|
+
const path9 = getVersionedDirectory(service.id, service.version);
|
|
1313
|
+
return await writeService(directory)(resource, { path: path9 });
|
|
1314
1314
|
};
|
|
1315
1315
|
var writeServiceToDomain = (directory) => async (service, domain, options = { path: "", format: "mdx", override: false }) => {
|
|
1316
1316
|
let pathForService = domain.version && domain.version !== "latest" ? `/${domain.id}/versioned/${domain.version}/services` : `/${domain.id}/services`;
|
|
@@ -1318,8 +1318,8 @@ var writeServiceToDomain = (directory) => async (service, domain, options = { pa
|
|
|
1318
1318
|
await writeResource(directory, { ...service }, { ...options, path: pathForService, type: "service" });
|
|
1319
1319
|
};
|
|
1320
1320
|
var versionService = (directory) => async (id) => versionResource(directory, id);
|
|
1321
|
-
var rmService = (directory) => async (
|
|
1322
|
-
await fs5.rm(join6(directory,
|
|
1321
|
+
var rmService = (directory) => async (path9) => {
|
|
1322
|
+
await fs5.rm(join6(directory, path9), { recursive: true });
|
|
1323
1323
|
invalidateFileCache();
|
|
1324
1324
|
};
|
|
1325
1325
|
var rmServiceById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -1384,8 +1384,8 @@ var addMessageToService = (directory) => async (id, direction, event, version) =
|
|
|
1384
1384
|
if (!existingResource) {
|
|
1385
1385
|
throw new Error(`Cannot find service ${id} in the catalog`);
|
|
1386
1386
|
}
|
|
1387
|
-
const
|
|
1388
|
-
const pathToResource = join6(
|
|
1387
|
+
const path9 = existingResource.split(/[\\/]+services/)[0];
|
|
1388
|
+
const pathToResource = join6(path9, "services");
|
|
1389
1389
|
await rmServiceById(directory)(id, version, true);
|
|
1390
1390
|
await writeService(pathToResource)(service, { format: extension === ".md" ? "md" : "mdx" });
|
|
1391
1391
|
};
|
|
@@ -1393,9 +1393,9 @@ var serviceHasVersion = (directory) => async (id, version) => {
|
|
|
1393
1393
|
const file = await findFileById(directory, id, version);
|
|
1394
1394
|
return !!file;
|
|
1395
1395
|
};
|
|
1396
|
-
var isService = (directory) => async (
|
|
1397
|
-
const service = await getServiceByPath(directory)(
|
|
1398
|
-
const relativePath = relative2(directory,
|
|
1396
|
+
var isService = (directory) => async (path9) => {
|
|
1397
|
+
const service = await getServiceByPath(directory)(path9);
|
|
1398
|
+
const relativePath = relative2(directory, path9);
|
|
1399
1399
|
const segments = relativePath.split(/[/\\]+/);
|
|
1400
1400
|
return !!service && segments.includes("services");
|
|
1401
1401
|
};
|
|
@@ -1417,8 +1417,8 @@ var addEntityToService = (directory) => async (id, entity, version) => {
|
|
|
1417
1417
|
if (!existingResource) {
|
|
1418
1418
|
throw new Error(`Cannot find service ${id} in the catalog`);
|
|
1419
1419
|
}
|
|
1420
|
-
const
|
|
1421
|
-
const pathToResource = join6(
|
|
1420
|
+
const path9 = existingResource.split(/[\\/]+services/)[0];
|
|
1421
|
+
const pathToResource = join6(path9, "services");
|
|
1422
1422
|
await rmServiceById(directory)(id, version, true);
|
|
1423
1423
|
await writeService(pathToResource)(service, { format: extension === ".md" ? "md" : "mdx" });
|
|
1424
1424
|
};
|
|
@@ -1453,8 +1453,8 @@ var addDataStoreToService = (directory) => async (id, operation, dataStore, vers
|
|
|
1453
1453
|
if (!existingResource) {
|
|
1454
1454
|
throw new Error(`Cannot find service ${id} in the catalog`);
|
|
1455
1455
|
}
|
|
1456
|
-
const
|
|
1457
|
-
const pathToResource = join6(
|
|
1456
|
+
const path9 = existingResource.split(/[\\/]+services/)[0];
|
|
1457
|
+
const pathToResource = join6(path9, "services");
|
|
1458
1458
|
await rmServiceById(directory)(id, version, true);
|
|
1459
1459
|
await writeService(pathToResource)(service, { format: extension === ".md" ? "md" : "mdx" });
|
|
1460
1460
|
};
|
|
@@ -1472,8 +1472,8 @@ var rewriteAgent = async (directory, id, agent, version) => {
|
|
|
1472
1472
|
await writeAgent(directory)(agent, { path: agentPath.directory, format: extension === ".md" ? "md" : "mdx" });
|
|
1473
1473
|
};
|
|
1474
1474
|
var getAgent = (directory) => async (id, version) => getResource(directory, id, version, { type: "agent" });
|
|
1475
|
-
var getAgentByPath = (directory) => async (
|
|
1476
|
-
const agent = await getResource(directory, void 0, void 0, { type: "agent" },
|
|
1475
|
+
var getAgentByPath = (directory) => async (path9) => {
|
|
1476
|
+
const agent = await getResource(directory, void 0, void 0, { type: "agent" }, path9);
|
|
1477
1477
|
return agent;
|
|
1478
1478
|
};
|
|
1479
1479
|
var getAgents = (directory) => async (options) => getResources(directory, {
|
|
@@ -1506,8 +1506,8 @@ var writeAgent = (directory) => async (agent, options = {
|
|
|
1506
1506
|
return await writeResource(directory, resource, { ...options, type: "agent" });
|
|
1507
1507
|
};
|
|
1508
1508
|
var writeVersionedAgent = (directory) => async (agent) => {
|
|
1509
|
-
const
|
|
1510
|
-
return await writeAgent(directory)({ ...agent }, { path:
|
|
1509
|
+
const path9 = getVersionedDirectory(agent.id, agent.version);
|
|
1510
|
+
return await writeAgent(directory)({ ...agent }, { path: path9 });
|
|
1511
1511
|
};
|
|
1512
1512
|
var writeAgentToDomain = (directory) => async (agent, domain, options = { path: "", format: "mdx", override: false }) => {
|
|
1513
1513
|
let pathForAgent = domain.version && domain.version !== "latest" ? `/${domain.id}/versioned/${domain.version}/agents` : `/${domain.id}/agents`;
|
|
@@ -1515,8 +1515,8 @@ var writeAgentToDomain = (directory) => async (agent, domain, options = { path:
|
|
|
1515
1515
|
await writeResource(directory, { ...agent }, { ...options, path: pathForAgent, type: "agent" });
|
|
1516
1516
|
};
|
|
1517
1517
|
var versionAgent = (directory) => async (id) => versionResource(directory, id);
|
|
1518
|
-
var rmAgent = (directory) => async (
|
|
1519
|
-
await fs6.rm(join7(directory,
|
|
1518
|
+
var rmAgent = (directory) => async (path9) => {
|
|
1519
|
+
await fs6.rm(join7(directory, path9), { recursive: true });
|
|
1520
1520
|
invalidateFileCache();
|
|
1521
1521
|
};
|
|
1522
1522
|
var rmAgentById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -1588,9 +1588,9 @@ var agentHasVersion = (directory) => async (id, version) => {
|
|
|
1588
1588
|
const file = await findFileById(directory, id, version);
|
|
1589
1589
|
return !!file;
|
|
1590
1590
|
};
|
|
1591
|
-
var isAgent = (directory) => async (
|
|
1592
|
-
const agent = await getAgentByPath(directory)(
|
|
1593
|
-
const relativePath = relative3(directory,
|
|
1591
|
+
var isAgent = (directory) => async (path9) => {
|
|
1592
|
+
const agent = await getAgentByPath(directory)(path9);
|
|
1593
|
+
const relativePath = relative3(directory, path9);
|
|
1594
1594
|
const segments = relativePath.split(/[/\\]+/);
|
|
1595
1595
|
return !!agent && segments.includes("agents");
|
|
1596
1596
|
};
|
|
@@ -1654,8 +1654,8 @@ var writeDomain = (directory) => async (domain, options = {
|
|
|
1654
1654
|
return await writeResource(directory, resource, { ...options, type: "domain" });
|
|
1655
1655
|
};
|
|
1656
1656
|
var versionDomain = (directory) => async (id) => versionResource(directory, id);
|
|
1657
|
-
var rmDomain = (directory) => async (
|
|
1658
|
-
await fs7.rm(join8(directory,
|
|
1657
|
+
var rmDomain = (directory) => async (path9) => {
|
|
1658
|
+
await fs7.rm(join8(directory, path9), { recursive: true });
|
|
1659
1659
|
invalidateFileCache();
|
|
1660
1660
|
};
|
|
1661
1661
|
var rmDomainById = (directory) => async (id, version, persistFiles) => rmResourceById(directory, id, version, { type: "domain", persistFiles });
|
|
@@ -1800,8 +1800,8 @@ import { join as join9, extname as extname3 } from "path";
|
|
|
1800
1800
|
var getChannel = (directory) => async (id, version) => getResource(directory, id, version, { type: "channel" });
|
|
1801
1801
|
var getChannels = (directory) => async (options) => getResources(directory, { type: "channels", ...options });
|
|
1802
1802
|
var writeChannel = (directory) => async (channel, options = { path: "" }) => writeResource(directory, { ...channel }, { ...options, type: "channel" });
|
|
1803
|
-
var rmChannel = (directory) => async (
|
|
1804
|
-
await fs8.rm(join9(directory,
|
|
1803
|
+
var rmChannel = (directory) => async (path9) => {
|
|
1804
|
+
await fs8.rm(join9(directory, path9), { recursive: true });
|
|
1805
1805
|
invalidateFileCache();
|
|
1806
1806
|
};
|
|
1807
1807
|
var rmChannelById = (directory) => async (id, version, persistFiles) => rmResourceById(directory, id, version, { type: "channel", persistFiles });
|
|
@@ -1843,8 +1843,8 @@ var addMessageToChannel = (directory, collection) => async (id, _message, versio
|
|
|
1843
1843
|
if (!existingResource) {
|
|
1844
1844
|
throw new Error(`Cannot find message ${id} in the catalog`);
|
|
1845
1845
|
}
|
|
1846
|
-
const
|
|
1847
|
-
const pathToResource = join9(
|
|
1846
|
+
const path9 = existingResource.split(new RegExp(`[\\\\/]+${collection}`))[0];
|
|
1847
|
+
const pathToResource = join9(path9, collection);
|
|
1848
1848
|
await rmMessageById(directory)(_message.id, _message.version, true);
|
|
1849
1849
|
await writeMessage(pathToResource)(message, { format: extension === ".md" ? "md" : "mdx" });
|
|
1850
1850
|
};
|
|
@@ -1854,8 +1854,8 @@ import { dirname as dirname5, join as join10 } from "path";
|
|
|
1854
1854
|
import fsSync4 from "fs";
|
|
1855
1855
|
import matter4 from "gray-matter";
|
|
1856
1856
|
import { satisfies as satisfies4, validRange as validRange3 } from "semver";
|
|
1857
|
-
var getMessageBySchemaPath = (directory) => async (
|
|
1858
|
-
const pathToMessage = dirname5(
|
|
1857
|
+
var getMessageBySchemaPath = (directory) => async (path9, options) => {
|
|
1858
|
+
const pathToMessage = dirname5(path9);
|
|
1859
1859
|
try {
|
|
1860
1860
|
const files = await getFiles(`${directory}/${pathToMessage}/index.{md,mdx}`);
|
|
1861
1861
|
if (!files || files.length === 0) {
|
|
@@ -1930,18 +1930,18 @@ var getProducersAndConsumersForMessage = (directory) => async (id, version, opti
|
|
|
1930
1930
|
}
|
|
1931
1931
|
return { producers, consumers };
|
|
1932
1932
|
};
|
|
1933
|
-
var getConsumersOfSchema = (directory) => async (
|
|
1933
|
+
var getConsumersOfSchema = (directory) => async (path9) => {
|
|
1934
1934
|
try {
|
|
1935
|
-
const message = await getMessageBySchemaPath(directory)(
|
|
1935
|
+
const message = await getMessageBySchemaPath(directory)(path9);
|
|
1936
1936
|
const { consumers } = await getProducersAndConsumersForMessage(directory)(message.id, message.version);
|
|
1937
1937
|
return consumers;
|
|
1938
1938
|
} catch (error) {
|
|
1939
1939
|
return [];
|
|
1940
1940
|
}
|
|
1941
1941
|
};
|
|
1942
|
-
var getProducersOfSchema = (directory) => async (
|
|
1942
|
+
var getProducersOfSchema = (directory) => async (path9) => {
|
|
1943
1943
|
try {
|
|
1944
|
-
const message = await getMessageBySchemaPath(directory)(
|
|
1944
|
+
const message = await getMessageBySchemaPath(directory)(path9);
|
|
1945
1945
|
const { producers } = await getProducersAndConsumersForMessage(directory)(message.id, message.version);
|
|
1946
1946
|
return producers;
|
|
1947
1947
|
} catch (error) {
|
|
@@ -2002,19 +2002,50 @@ var rmCustomDoc = (directory) => async (filePath) => {
|
|
|
2002
2002
|
};
|
|
2003
2003
|
|
|
2004
2004
|
// src/teams.ts
|
|
2005
|
-
import
|
|
2005
|
+
import fs11 from "fs/promises";
|
|
2006
2006
|
import fsSync7 from "fs";
|
|
2007
2007
|
import { join as join13 } from "path";
|
|
2008
2008
|
import matter7 from "gray-matter";
|
|
2009
|
-
import
|
|
2009
|
+
import path5 from "path";
|
|
2010
2010
|
|
|
2011
2011
|
// src/users.ts
|
|
2012
2012
|
import fsSync6 from "fs";
|
|
2013
2013
|
import { join as join12 } from "path";
|
|
2014
2014
|
import matter6 from "gray-matter";
|
|
2015
|
+
|
|
2016
|
+
// src/internal/directory-store.ts
|
|
2017
|
+
import fs10 from "fs";
|
|
2018
|
+
import path4 from "path";
|
|
2019
|
+
var DIRECTORY_STORE_PATH = path4.join(".eventcatalog", "store", "directory.json");
|
|
2020
|
+
var getCatalogRoot = (catalogDir, collection) => {
|
|
2021
|
+
return path4.basename(catalogDir) === collection ? path4.dirname(catalogDir) : catalogDir;
|
|
2022
|
+
};
|
|
2023
|
+
var getDirectoryStorePath = (catalogDir, collection) => {
|
|
2024
|
+
return path4.join(getCatalogRoot(catalogDir, collection), DIRECTORY_STORE_PATH);
|
|
2025
|
+
};
|
|
2026
|
+
var readDirectoryStoreResources = (catalogDir, collection) => {
|
|
2027
|
+
const storePath = getDirectoryStorePath(catalogDir, collection);
|
|
2028
|
+
if (!fs10.existsSync(storePath)) return [];
|
|
2029
|
+
try {
|
|
2030
|
+
const store = JSON.parse(fs10.readFileSync(storePath, "utf8"));
|
|
2031
|
+
const resources = store.resources?.[collection];
|
|
2032
|
+
return Array.isArray(resources) ? resources : [];
|
|
2033
|
+
} catch {
|
|
2034
|
+
return [];
|
|
2035
|
+
}
|
|
2036
|
+
};
|
|
2037
|
+
var readDirectoryStoreResource = (catalogDir, collection, id) => {
|
|
2038
|
+
return readDirectoryStoreResources(catalogDir, collection).find((resource) => resource.id === id);
|
|
2039
|
+
};
|
|
2040
|
+
var mergeDirectoryStoreResources = (local, directory) => {
|
|
2041
|
+
const localIds = new Set(local.map((resource) => resource.id));
|
|
2042
|
+
return [...local, ...directory.filter((resource) => !localIds.has(resource.id))];
|
|
2043
|
+
};
|
|
2044
|
+
|
|
2045
|
+
// src/users.ts
|
|
2015
2046
|
var getUser = (catalogDir) => async (id) => {
|
|
2016
2047
|
const files = await getFiles(`${catalogDir}/${id}.{md,mdx}`);
|
|
2017
|
-
if (files.length == 0) return
|
|
2048
|
+
if (files.length == 0) return readDirectoryStoreResource(catalogDir, "users", id);
|
|
2018
2049
|
const file = files[0];
|
|
2019
2050
|
const { data, content } = matter6.read(file);
|
|
2020
2051
|
return {
|
|
@@ -2027,8 +2058,7 @@ var getUser = (catalogDir) => async (id) => {
|
|
|
2027
2058
|
};
|
|
2028
2059
|
var getUsers = (catalogDir) => async (options) => {
|
|
2029
2060
|
const files = await getFiles(`${catalogDir}/users/*.{md,mdx}`);
|
|
2030
|
-
|
|
2031
|
-
return files.map((file) => {
|
|
2061
|
+
const localUsers = files.map((file) => {
|
|
2032
2062
|
const { data, content } = matter6.read(file);
|
|
2033
2063
|
return {
|
|
2034
2064
|
...data,
|
|
@@ -2038,6 +2068,7 @@ var getUsers = (catalogDir) => async (options) => {
|
|
|
2038
2068
|
markdown: content.trim()
|
|
2039
2069
|
};
|
|
2040
2070
|
});
|
|
2071
|
+
return mergeDirectoryStoreResources(localUsers, readDirectoryStoreResources(catalogDir, "users"));
|
|
2041
2072
|
};
|
|
2042
2073
|
var writeUser = (catalogDir) => async (user, options = {}) => {
|
|
2043
2074
|
const resource = { ...user };
|
|
@@ -2060,7 +2091,7 @@ var rmUserById = (catalogDir) => async (id) => {
|
|
|
2060
2091
|
// src/teams.ts
|
|
2061
2092
|
var getTeam = (catalogDir) => async (id) => {
|
|
2062
2093
|
const files = await getFiles(`${catalogDir}/${id}.{md,mdx}`);
|
|
2063
|
-
if (files.length == 0) return
|
|
2094
|
+
if (files.length == 0) return readDirectoryStoreResource(catalogDir, "teams", id);
|
|
2064
2095
|
const file = files[0];
|
|
2065
2096
|
const { data, content } = matter7.read(file);
|
|
2066
2097
|
return {
|
|
@@ -2072,8 +2103,7 @@ var getTeam = (catalogDir) => async (id) => {
|
|
|
2072
2103
|
};
|
|
2073
2104
|
var getTeams = (catalogDir) => async (options) => {
|
|
2074
2105
|
const files = await getFiles(`${catalogDir}/*.{md,mdx}`);
|
|
2075
|
-
|
|
2076
|
-
return files.map((file) => {
|
|
2106
|
+
const localTeams = files.map((file) => {
|
|
2077
2107
|
const { data, content } = matter7.read(file);
|
|
2078
2108
|
return {
|
|
2079
2109
|
...data,
|
|
@@ -2082,6 +2112,7 @@ var getTeams = (catalogDir) => async (options) => {
|
|
|
2082
2112
|
markdown: content.trim()
|
|
2083
2113
|
};
|
|
2084
2114
|
});
|
|
2115
|
+
return mergeDirectoryStoreResources(localTeams, readDirectoryStoreResources(catalogDir, "teams"));
|
|
2085
2116
|
};
|
|
2086
2117
|
var writeTeam = (catalogDir) => async (team, options = {}) => {
|
|
2087
2118
|
const resource = { ...team };
|
|
@@ -2097,7 +2128,7 @@ var writeTeam = (catalogDir) => async (team, options = {}) => {
|
|
|
2097
2128
|
invalidateFileCache();
|
|
2098
2129
|
};
|
|
2099
2130
|
var rmTeamById = (catalogDir) => async (id) => {
|
|
2100
|
-
await
|
|
2131
|
+
await fs11.rm(join13(catalogDir, `${id}.mdx`), { recursive: true });
|
|
2101
2132
|
invalidateFileCache();
|
|
2102
2133
|
};
|
|
2103
2134
|
var getOwnersForResource = (catalogDir) => async (id, version) => {
|
|
@@ -2106,11 +2137,11 @@ var getOwnersForResource = (catalogDir) => async (id, version) => {
|
|
|
2106
2137
|
if (!resource) return [];
|
|
2107
2138
|
if (!resource.owners) return [];
|
|
2108
2139
|
for (const owner of resource.owners) {
|
|
2109
|
-
const team = await getTeam(
|
|
2140
|
+
const team = await getTeam(path5.join(catalogDir, "teams"))(owner);
|
|
2110
2141
|
if (team) {
|
|
2111
2142
|
owners.push(team);
|
|
2112
2143
|
} else {
|
|
2113
|
-
const user = await getUser(
|
|
2144
|
+
const user = await getUser(path5.join(catalogDir, "users"))(owner);
|
|
2114
2145
|
if (user) {
|
|
2115
2146
|
owners.push(user);
|
|
2116
2147
|
}
|
|
@@ -2120,12 +2151,12 @@ var getOwnersForResource = (catalogDir) => async (id, version) => {
|
|
|
2120
2151
|
};
|
|
2121
2152
|
|
|
2122
2153
|
// src/eventcatalog.ts
|
|
2123
|
-
import
|
|
2124
|
-
import
|
|
2154
|
+
import fs12 from "fs";
|
|
2155
|
+
import path6, { join as join14 } from "path";
|
|
2125
2156
|
var DUMP_VERSION = "0.0.1";
|
|
2126
2157
|
var getEventCatalogVersion = async (catalogDir) => {
|
|
2127
2158
|
try {
|
|
2128
|
-
const packageJson =
|
|
2159
|
+
const packageJson = fs12.readFileSync(join14(catalogDir, "package.json"), "utf8");
|
|
2129
2160
|
const packageJsonObject = JSON.parse(packageJson);
|
|
2130
2161
|
return packageJsonObject["dependencies"]["@eventcatalog/core"];
|
|
2131
2162
|
} catch (error) {
|
|
@@ -2138,9 +2169,9 @@ var hydrateResource = async (catalogDir, resources = [], { attachSchema = false
|
|
|
2138
2169
|
const resourcePath = await getResourcePath(catalogDir, resource.id, resource.version);
|
|
2139
2170
|
let schema = "";
|
|
2140
2171
|
if (resource.schemaPath && resourcePath?.fullPath) {
|
|
2141
|
-
const pathToSchema =
|
|
2142
|
-
if (
|
|
2143
|
-
schema =
|
|
2172
|
+
const pathToSchema = path6.join(path6.dirname(resourcePath?.fullPath), resource.schemaPath);
|
|
2173
|
+
if (fs12.existsSync(pathToSchema)) {
|
|
2174
|
+
schema = fs12.readFileSync(pathToSchema, "utf8");
|
|
2144
2175
|
}
|
|
2145
2176
|
}
|
|
2146
2177
|
const eventcatalog = schema ? { directory: resourcePath?.directory, schema } : { directory: resourcePath?.directory };
|
|
@@ -2159,8 +2190,8 @@ var filterCollection = (collection, options) => {
|
|
|
2159
2190
|
};
|
|
2160
2191
|
var getEventCatalogConfigurationFile = (directory) => async () => {
|
|
2161
2192
|
try {
|
|
2162
|
-
const
|
|
2163
|
-
const configModule = await import(
|
|
2193
|
+
const path9 = join14(directory, "eventcatalog.config.js");
|
|
2194
|
+
const configModule = await import(path9);
|
|
2164
2195
|
return configModule.default;
|
|
2165
2196
|
} catch (error) {
|
|
2166
2197
|
console.error("Error getting event catalog configuration file", error);
|
|
@@ -2246,8 +2277,8 @@ var dumpCatalog = (directory) => async (options) => {
|
|
|
2246
2277
|
};
|
|
2247
2278
|
|
|
2248
2279
|
// src/snapshots.ts
|
|
2249
|
-
import
|
|
2250
|
-
import
|
|
2280
|
+
import fs13 from "fs";
|
|
2281
|
+
import path7 from "path";
|
|
2251
2282
|
import { createHash } from "crypto";
|
|
2252
2283
|
import { execSync } from "child_process";
|
|
2253
2284
|
import { compare } from "semver";
|
|
@@ -2427,7 +2458,7 @@ var computeRelationshipDiff = (snapshotA, snapshotB) => {
|
|
|
2427
2458
|
var SNAPSHOT_VERSION = "1.0.0";
|
|
2428
2459
|
var getEventCatalogVersion2 = (catalogDir) => {
|
|
2429
2460
|
try {
|
|
2430
|
-
const packageJson =
|
|
2461
|
+
const packageJson = fs13.readFileSync(path7.join(catalogDir, "package.json"), "utf8");
|
|
2431
2462
|
const packageJsonObject = JSON.parse(packageJson);
|
|
2432
2463
|
return packageJsonObject["dependencies"]?.["@eventcatalog/core"] ?? "unknown";
|
|
2433
2464
|
} catch {
|
|
@@ -2524,17 +2555,17 @@ var createSnapshot = (directory) => {
|
|
|
2524
2555
|
channels: snapshotChannels
|
|
2525
2556
|
}
|
|
2526
2557
|
};
|
|
2527
|
-
const snapshotsDir = outputDir ||
|
|
2528
|
-
|
|
2558
|
+
const snapshotsDir = outputDir || path7.join(directory, ".snapshots");
|
|
2559
|
+
fs13.mkdirSync(snapshotsDir, { recursive: true });
|
|
2529
2560
|
const fileName = `${snapshotLabel}.snapshot.json`;
|
|
2530
|
-
const filePath =
|
|
2531
|
-
|
|
2561
|
+
const filePath = path7.join(snapshotsDir, fileName);
|
|
2562
|
+
fs13.writeFileSync(filePath, JSON.stringify(snapshot));
|
|
2532
2563
|
return { filePath, snapshot };
|
|
2533
2564
|
};
|
|
2534
2565
|
};
|
|
2535
2566
|
var diffSnapshots = (directory) => async (snapshotAPath, snapshotBPath) => {
|
|
2536
|
-
const snapshotA = JSON.parse(
|
|
2537
|
-
const snapshotB = JSON.parse(
|
|
2567
|
+
const snapshotA = JSON.parse(fs13.readFileSync(snapshotAPath, "utf-8"));
|
|
2568
|
+
const snapshotB = JSON.parse(fs13.readFileSync(snapshotBPath, "utf-8"));
|
|
2538
2569
|
const resourceChanges = computeResourceDiff(snapshotA, snapshotB);
|
|
2539
2570
|
const relationshipChanges = computeRelationshipDiff(snapshotA, snapshotB);
|
|
2540
2571
|
const resourceCounts = { added: 0, removed: 0, modified: 0, versioned: 0 };
|
|
@@ -2558,14 +2589,14 @@ var diffSnapshots = (directory) => async (snapshotAPath, snapshotBPath) => {
|
|
|
2558
2589
|
};
|
|
2559
2590
|
};
|
|
2560
2591
|
var listSnapshots = (directory) => async () => {
|
|
2561
|
-
const snapshotsDir =
|
|
2562
|
-
if (!
|
|
2563
|
-
const files =
|
|
2592
|
+
const snapshotsDir = path7.join(directory, ".snapshots");
|
|
2593
|
+
if (!fs13.existsSync(snapshotsDir)) return [];
|
|
2594
|
+
const files = fs13.readdirSync(snapshotsDir).filter((f) => f.endsWith(".snapshot.json"));
|
|
2564
2595
|
const snapshots = [];
|
|
2565
2596
|
for (const file of files) {
|
|
2566
2597
|
try {
|
|
2567
|
-
const filePath =
|
|
2568
|
-
const content = JSON.parse(
|
|
2598
|
+
const filePath = path7.join(snapshotsDir, file);
|
|
2599
|
+
const content = JSON.parse(fs13.readFileSync(filePath, "utf-8"));
|
|
2569
2600
|
snapshots.push({
|
|
2570
2601
|
label: content.label,
|
|
2571
2602
|
createdAt: content.createdAt,
|
|
@@ -2579,9 +2610,9 @@ var listSnapshots = (directory) => async () => {
|
|
|
2579
2610
|
};
|
|
2580
2611
|
|
|
2581
2612
|
// src/changelogs.ts
|
|
2582
|
-
import
|
|
2613
|
+
import path8, { dirname as dirname6 } from "path";
|
|
2583
2614
|
import fsSync8 from "fs";
|
|
2584
|
-
import
|
|
2615
|
+
import fs14 from "fs/promises";
|
|
2585
2616
|
import matter8 from "gray-matter";
|
|
2586
2617
|
var writeChangelog = (catalogDir) => async (id, changelog, options = {}) => {
|
|
2587
2618
|
const { version, format = "mdx" } = options;
|
|
@@ -2590,7 +2621,7 @@ var writeChangelog = (catalogDir) => async (id, changelog, options = {}) => {
|
|
|
2590
2621
|
throw new Error(`No resource found with id: ${id}${version ? ` and version: ${version}` : ""}`);
|
|
2591
2622
|
}
|
|
2592
2623
|
const resourceDir = dirname6(resourceFile);
|
|
2593
|
-
const changelogPath =
|
|
2624
|
+
const changelogPath = path8.join(resourceDir, `changelog.${format}`);
|
|
2594
2625
|
const { markdown, ...frontmatter } = changelog;
|
|
2595
2626
|
const fm = { ...frontmatter };
|
|
2596
2627
|
if (fm.createdAt instanceof Date) {
|
|
@@ -2611,8 +2642,8 @@ var appendChangelog = (catalogDir) => async (id, changelog, options = {}) => {
|
|
|
2611
2642
|
throw new Error(`No resource found with id: ${id}${version ? ` and version: ${version}` : ""}`);
|
|
2612
2643
|
}
|
|
2613
2644
|
const resourceDir = dirname6(resourceFile);
|
|
2614
|
-
const mdxPath =
|
|
2615
|
-
const mdPath =
|
|
2645
|
+
const mdxPath = path8.join(resourceDir, "changelog.mdx");
|
|
2646
|
+
const mdPath = path8.join(resourceDir, "changelog.md");
|
|
2616
2647
|
const existingPath = fsSync8.existsSync(mdxPath) ? mdxPath : fsSync8.existsSync(mdPath) ? mdPath : void 0;
|
|
2617
2648
|
if (!existingPath) {
|
|
2618
2649
|
return writeChangelog(catalogDir)(id, changelog, options);
|
|
@@ -2641,8 +2672,8 @@ var getChangelog = (catalogDir) => async (id, options = {}) => {
|
|
|
2641
2672
|
const resourceFile = await findFileById(catalogDir, id, version);
|
|
2642
2673
|
if (!resourceFile) return void 0;
|
|
2643
2674
|
const resourceDir = dirname6(resourceFile);
|
|
2644
|
-
const mdxPath =
|
|
2645
|
-
const mdPath =
|
|
2675
|
+
const mdxPath = path8.join(resourceDir, "changelog.mdx");
|
|
2676
|
+
const mdPath = path8.join(resourceDir, "changelog.md");
|
|
2646
2677
|
const changelogPath = fsSync8.existsSync(mdxPath) ? mdxPath : fsSync8.existsSync(mdPath) ? mdPath : void 0;
|
|
2647
2678
|
if (!changelogPath) return void 0;
|
|
2648
2679
|
const { data, content } = matter8.read(changelogPath);
|
|
@@ -2655,19 +2686,19 @@ var rmChangelog = (catalogDir) => async (id, options = {}) => {
|
|
|
2655
2686
|
throw new Error(`No resource found with id: ${id}${version ? ` and version: ${version}` : ""}`);
|
|
2656
2687
|
}
|
|
2657
2688
|
const resourceDir = dirname6(resourceFile);
|
|
2658
|
-
const mdxPath =
|
|
2659
|
-
const mdPath =
|
|
2689
|
+
const mdxPath = path8.join(resourceDir, "changelog.mdx");
|
|
2690
|
+
const mdPath = path8.join(resourceDir, "changelog.md");
|
|
2660
2691
|
if (fsSync8.existsSync(mdxPath)) {
|
|
2661
|
-
await
|
|
2692
|
+
await fs14.rm(mdxPath);
|
|
2662
2693
|
}
|
|
2663
2694
|
if (fsSync8.existsSync(mdPath)) {
|
|
2664
|
-
await
|
|
2695
|
+
await fs14.rm(mdPath);
|
|
2665
2696
|
}
|
|
2666
2697
|
invalidateFileCache();
|
|
2667
2698
|
};
|
|
2668
2699
|
|
|
2669
2700
|
// src/entities.ts
|
|
2670
|
-
import
|
|
2701
|
+
import fs15 from "fs/promises";
|
|
2671
2702
|
import { join as join15 } from "path";
|
|
2672
2703
|
var getEntity = (directory) => async (id, version) => getResource(directory, id, version, { type: "entity" });
|
|
2673
2704
|
var getEntities = (directory) => async (options) => getResources(directory, { type: "entities", latestOnly: options?.latestOnly });
|
|
@@ -2676,8 +2707,8 @@ var writeEntity = (directory) => async (entity, options = {
|
|
|
2676
2707
|
override: false,
|
|
2677
2708
|
format: "mdx"
|
|
2678
2709
|
}) => writeResource(directory, { ...entity }, { ...options, type: "entity" });
|
|
2679
|
-
var rmEntity = (directory) => async (
|
|
2680
|
-
await
|
|
2710
|
+
var rmEntity = (directory) => async (path9) => {
|
|
2711
|
+
await fs15.rm(join15(directory, path9), { recursive: true });
|
|
2681
2712
|
invalidateFileCache();
|
|
2682
2713
|
};
|
|
2683
2714
|
var rmEntityById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -2690,7 +2721,7 @@ var entityHasVersion = (directory) => async (id, version) => {
|
|
|
2690
2721
|
};
|
|
2691
2722
|
|
|
2692
2723
|
// src/flows.ts
|
|
2693
|
-
import
|
|
2724
|
+
import fs16 from "fs/promises";
|
|
2694
2725
|
import { join as join16 } from "path";
|
|
2695
2726
|
|
|
2696
2727
|
// src/flow-builder.ts
|
|
@@ -3168,8 +3199,8 @@ var writeFlow = (directory) => async (flow, options = {
|
|
|
3168
3199
|
format: "mdx"
|
|
3169
3200
|
}) => writeResource(directory, { ...flow }, { ...options, type: "flow" });
|
|
3170
3201
|
var writeVersionedFlow = (directory) => async (flow) => {
|
|
3171
|
-
const
|
|
3172
|
-
return await writeFlow(directory)({ ...flow }, { path:
|
|
3202
|
+
const path9 = getVersionedDirectory(flow.id, flow.version);
|
|
3203
|
+
return await writeFlow(directory)({ ...flow }, { path: path9 });
|
|
3173
3204
|
};
|
|
3174
3205
|
var writeFlowToDomain = (directory) => async (flow, domain, options = { path: "", format: "mdx", override: false }) => {
|
|
3175
3206
|
let pathForFlow = domain.version && domain.version !== "latest" ? `/${domain.id}/versioned/${domain.version}/flows` : `/${domain.id}/flows`;
|
|
@@ -3186,8 +3217,8 @@ var writeFlowToAgent = (directory) => async (flow, agent, options = { path: "",
|
|
|
3186
3217
|
pathForFlow = join16(pathForFlow, flow.id);
|
|
3187
3218
|
await writeResource(directory, { ...flow }, { ...options, path: pathForFlow, type: "flow" });
|
|
3188
3219
|
};
|
|
3189
|
-
var rmFlow = (directory) => async (
|
|
3190
|
-
await
|
|
3220
|
+
var rmFlow = (directory) => async (path9) => {
|
|
3221
|
+
await fs16.rm(join16(directory, path9), { recursive: true });
|
|
3191
3222
|
invalidateFileCache();
|
|
3192
3223
|
};
|
|
3193
3224
|
var rmFlowById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -3201,7 +3232,7 @@ var flowHasVersion = (directory) => async (id, version) => {
|
|
|
3201
3232
|
var addFileToFlow = (directory) => async (id, file, version) => addFileToResource(directory, id, file, version, { type: "flow" });
|
|
3202
3233
|
|
|
3203
3234
|
// src/containers.ts
|
|
3204
|
-
import
|
|
3235
|
+
import fs17 from "fs/promises";
|
|
3205
3236
|
import { join as join17 } from "path";
|
|
3206
3237
|
var getContainer = (directory) => async (id, version) => getResource(directory, id, version, { type: "container" });
|
|
3207
3238
|
var getContainers = (directory) => async (options) => getResources(directory, { type: "containers", latestOnly: options?.latestOnly });
|
|
@@ -3211,8 +3242,8 @@ var writeContainer = (directory) => async (data, options = {
|
|
|
3211
3242
|
format: "mdx"
|
|
3212
3243
|
}) => writeResource(directory, { ...data }, { ...options, type: "container" });
|
|
3213
3244
|
var versionContainer = (directory) => async (id) => versionResource(directory, id);
|
|
3214
|
-
var rmContainer = (directory) => async (
|
|
3215
|
-
await
|
|
3245
|
+
var rmContainer = (directory) => async (path9) => {
|
|
3246
|
+
await fs17.rm(join17(directory, path9), { recursive: true });
|
|
3216
3247
|
invalidateFileCache();
|
|
3217
3248
|
};
|
|
3218
3249
|
var rmContainerById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -3245,7 +3276,7 @@ var addFileToDataStore = addFileToContainer;
|
|
|
3245
3276
|
var writeDataStoreToService = writeContainerToService;
|
|
3246
3277
|
|
|
3247
3278
|
// src/data-products.ts
|
|
3248
|
-
import
|
|
3279
|
+
import fs18 from "fs/promises";
|
|
3249
3280
|
import { join as join18 } from "path";
|
|
3250
3281
|
var getDataProduct = (directory) => async (id, version) => getResource(directory, id, version, { type: "data-product" });
|
|
3251
3282
|
var getDataProducts = (directory) => async (options) => getResources(directory, { type: "data-products", latestOnly: options?.latestOnly });
|
|
@@ -3259,8 +3290,8 @@ var writeDataProductToDomain = (directory) => async (dataProduct, domain, option
|
|
|
3259
3290
|
pathForDataProduct = join18(pathForDataProduct, dataProduct.id);
|
|
3260
3291
|
await writeResource(directory, { ...dataProduct }, { ...options, path: pathForDataProduct, type: "data-product" });
|
|
3261
3292
|
};
|
|
3262
|
-
var rmDataProduct = (directory) => async (
|
|
3263
|
-
await
|
|
3293
|
+
var rmDataProduct = (directory) => async (path9) => {
|
|
3294
|
+
await fs18.rm(join18(directory, path9), { recursive: true });
|
|
3264
3295
|
invalidateFileCache();
|
|
3265
3296
|
};
|
|
3266
3297
|
var rmDataProductById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -3274,7 +3305,7 @@ var dataProductHasVersion = (directory) => async (id, version) => {
|
|
|
3274
3305
|
var addFileToDataProduct = (directory) => async (id, file, version) => addFileToResource(directory, id, file, version);
|
|
3275
3306
|
|
|
3276
3307
|
// src/diagrams.ts
|
|
3277
|
-
import
|
|
3308
|
+
import fs19 from "fs/promises";
|
|
3278
3309
|
import { join as join19 } from "path";
|
|
3279
3310
|
var getDiagram = (directory) => async (id, version) => getResource(directory, id, version, { type: "diagram" });
|
|
3280
3311
|
var getDiagrams = (directory) => async (options) => getResources(directory, { type: "diagrams", latestOnly: options?.latestOnly });
|
|
@@ -3283,8 +3314,8 @@ var writeDiagram = (directory) => async (diagram, options = {
|
|
|
3283
3314
|
override: false,
|
|
3284
3315
|
format: "mdx"
|
|
3285
3316
|
}) => writeResource(directory, { ...diagram }, { ...options, type: "diagram" });
|
|
3286
|
-
var rmDiagram = (directory) => async (
|
|
3287
|
-
await
|
|
3317
|
+
var rmDiagram = (directory) => async (path9) => {
|
|
3318
|
+
await fs19.rm(join19(directory, path9), { recursive: true });
|
|
3288
3319
|
invalidateFileCache();
|
|
3289
3320
|
};
|
|
3290
3321
|
var rmDiagramById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -3298,7 +3329,7 @@ var diagramHasVersion = (directory) => async (id, version) => {
|
|
|
3298
3329
|
var addFileToDiagram = (directory) => async (id, file, version) => addFileToResource(directory, id, file, version, { type: "diagram" });
|
|
3299
3330
|
|
|
3300
3331
|
// src/index.ts
|
|
3301
|
-
var src_default = (
|
|
3332
|
+
var src_default = (path9) => {
|
|
3302
3333
|
return {
|
|
3303
3334
|
/**
|
|
3304
3335
|
* Returns an events from EventCatalog
|
|
@@ -3306,13 +3337,13 @@ var src_default = (path8) => {
|
|
|
3306
3337
|
* @param version - Optional id of the version to get (supports semver)
|
|
3307
3338
|
* @returns Event|Undefined
|
|
3308
3339
|
*/
|
|
3309
|
-
getEvent: getEvent(join20(
|
|
3340
|
+
getEvent: getEvent(join20(path9)),
|
|
3310
3341
|
/**
|
|
3311
3342
|
* Returns all events from EventCatalog
|
|
3312
3343
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
3313
3344
|
* @returns Event[]|Undefined
|
|
3314
3345
|
*/
|
|
3315
|
-
getEvents: getEvents(join20(
|
|
3346
|
+
getEvents: getEvents(join20(path9)),
|
|
3316
3347
|
/**
|
|
3317
3348
|
* Adds an event to EventCatalog
|
|
3318
3349
|
*
|
|
@@ -3320,7 +3351,7 @@ var src_default = (path8) => {
|
|
|
3320
3351
|
* @param options - Optional options to write the event
|
|
3321
3352
|
*
|
|
3322
3353
|
*/
|
|
3323
|
-
writeEvent: writeEvent(join20(
|
|
3354
|
+
writeEvent: writeEvent(join20(path9, "events")),
|
|
3324
3355
|
/**
|
|
3325
3356
|
* Adds an event to a service in EventCatalog
|
|
3326
3357
|
*
|
|
@@ -3329,7 +3360,7 @@ var src_default = (path8) => {
|
|
|
3329
3360
|
* @param options - Optional options to write the event
|
|
3330
3361
|
*
|
|
3331
3362
|
*/
|
|
3332
|
-
writeEventToService: writeEventToService(join20(
|
|
3363
|
+
writeEventToService: writeEventToService(join20(path9)),
|
|
3333
3364
|
/**
|
|
3334
3365
|
* Adds an event to an agent in EventCatalog
|
|
3335
3366
|
*
|
|
@@ -3338,26 +3369,26 @@ var src_default = (path8) => {
|
|
|
3338
3369
|
* @param options - Optional options to write the event
|
|
3339
3370
|
*
|
|
3340
3371
|
*/
|
|
3341
|
-
writeEventToAgent: writeEventToAgent(join20(
|
|
3372
|
+
writeEventToAgent: writeEventToAgent(join20(path9)),
|
|
3342
3373
|
/**
|
|
3343
3374
|
* Remove an event to EventCatalog (modeled on the standard POSIX rm utility)
|
|
3344
3375
|
*
|
|
3345
3376
|
* @param path - The path to your event, e.g. `/Inventory/InventoryAdjusted`
|
|
3346
3377
|
*
|
|
3347
3378
|
*/
|
|
3348
|
-
rmEvent: rmEvent(join20(
|
|
3379
|
+
rmEvent: rmEvent(join20(path9, "events")),
|
|
3349
3380
|
/**
|
|
3350
3381
|
* Remove an event by an Event id
|
|
3351
3382
|
*
|
|
3352
3383
|
* @param id - The id of the event you want to remove
|
|
3353
3384
|
*
|
|
3354
3385
|
*/
|
|
3355
|
-
rmEventById: rmEventById(join20(
|
|
3386
|
+
rmEventById: rmEventById(join20(path9)),
|
|
3356
3387
|
/**
|
|
3357
3388
|
* Moves a given event id to the version directory
|
|
3358
3389
|
* @param directory
|
|
3359
3390
|
*/
|
|
3360
|
-
versionEvent: versionEvent(join20(
|
|
3391
|
+
versionEvent: versionEvent(join20(path9)),
|
|
3361
3392
|
/**
|
|
3362
3393
|
* Adds a file to the given event
|
|
3363
3394
|
* @param id - The id of the event to add the file to
|
|
@@ -3365,7 +3396,7 @@ var src_default = (path8) => {
|
|
|
3365
3396
|
* @param version - Optional version of the event to add the file to
|
|
3366
3397
|
* @returns
|
|
3367
3398
|
*/
|
|
3368
|
-
addFileToEvent: addFileToEvent(join20(
|
|
3399
|
+
addFileToEvent: addFileToEvent(join20(path9)),
|
|
3369
3400
|
/**
|
|
3370
3401
|
* Adds a schema to the given event
|
|
3371
3402
|
* @param id - The id of the event to add the schema to
|
|
@@ -3373,17 +3404,17 @@ var src_default = (path8) => {
|
|
|
3373
3404
|
* @param version - Optional version of the event to add the schema to
|
|
3374
3405
|
* @returns
|
|
3375
3406
|
*/
|
|
3376
|
-
addSchemaToEvent: addSchemaToEvent(join20(
|
|
3407
|
+
addSchemaToEvent: addSchemaToEvent(join20(path9)),
|
|
3377
3408
|
/**
|
|
3378
3409
|
* Check to see if an event version exists
|
|
3379
3410
|
* @param id - The id of the event
|
|
3380
3411
|
* @param version - The version of the event (supports semver)
|
|
3381
3412
|
* @returns
|
|
3382
3413
|
*/
|
|
3383
|
-
eventHasVersion: eventHasVersion(join20(
|
|
3384
|
-
addExampleToEvent: addExampleToEvent(join20(
|
|
3385
|
-
getExamplesFromEvent: getExamplesFromEvent(join20(
|
|
3386
|
-
removeExampleFromEvent: removeExampleFromEvent(join20(
|
|
3414
|
+
eventHasVersion: eventHasVersion(join20(path9)),
|
|
3415
|
+
addExampleToEvent: addExampleToEvent(join20(path9)),
|
|
3416
|
+
getExamplesFromEvent: getExamplesFromEvent(join20(path9)),
|
|
3417
|
+
removeExampleFromEvent: removeExampleFromEvent(join20(path9)),
|
|
3387
3418
|
/**
|
|
3388
3419
|
* ================================
|
|
3389
3420
|
* Commands
|
|
@@ -3395,13 +3426,13 @@ var src_default = (path8) => {
|
|
|
3395
3426
|
* @param version - Optional id of the version to get (supports semver)
|
|
3396
3427
|
* @returns Command|Undefined
|
|
3397
3428
|
*/
|
|
3398
|
-
getCommand: getCommand(join20(
|
|
3429
|
+
getCommand: getCommand(join20(path9)),
|
|
3399
3430
|
/**
|
|
3400
3431
|
* Returns all commands from EventCatalog
|
|
3401
3432
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
3402
3433
|
* @returns Command[]|Undefined
|
|
3403
3434
|
*/
|
|
3404
|
-
getCommands: getCommands(join20(
|
|
3435
|
+
getCommands: getCommands(join20(path9)),
|
|
3405
3436
|
/**
|
|
3406
3437
|
* Adds an command to EventCatalog
|
|
3407
3438
|
*
|
|
@@ -3409,7 +3440,7 @@ var src_default = (path8) => {
|
|
|
3409
3440
|
* @param options - Optional options to write the command
|
|
3410
3441
|
*
|
|
3411
3442
|
*/
|
|
3412
|
-
writeCommand: writeCommand(join20(
|
|
3443
|
+
writeCommand: writeCommand(join20(path9, "commands")),
|
|
3413
3444
|
/**
|
|
3414
3445
|
* Adds a command to a service in EventCatalog
|
|
3415
3446
|
*
|
|
@@ -3418,7 +3449,7 @@ var src_default = (path8) => {
|
|
|
3418
3449
|
* @param options - Optional options to write the command
|
|
3419
3450
|
*
|
|
3420
3451
|
*/
|
|
3421
|
-
writeCommandToService: writeCommandToService(join20(
|
|
3452
|
+
writeCommandToService: writeCommandToService(join20(path9)),
|
|
3422
3453
|
/**
|
|
3423
3454
|
* Adds a command to an agent in EventCatalog
|
|
3424
3455
|
*
|
|
@@ -3427,26 +3458,26 @@ var src_default = (path8) => {
|
|
|
3427
3458
|
* @param options - Optional options to write the command
|
|
3428
3459
|
*
|
|
3429
3460
|
*/
|
|
3430
|
-
writeCommandToAgent: writeCommandToAgent(join20(
|
|
3461
|
+
writeCommandToAgent: writeCommandToAgent(join20(path9)),
|
|
3431
3462
|
/**
|
|
3432
3463
|
* Remove an command to EventCatalog (modeled on the standard POSIX rm utility)
|
|
3433
3464
|
*
|
|
3434
3465
|
* @param path - The path to your command, e.g. `/Inventory/InventoryAdjusted`
|
|
3435
3466
|
*
|
|
3436
3467
|
*/
|
|
3437
|
-
rmCommand: rmCommand(join20(
|
|
3468
|
+
rmCommand: rmCommand(join20(path9, "commands")),
|
|
3438
3469
|
/**
|
|
3439
3470
|
* Remove an command by an Event id
|
|
3440
3471
|
*
|
|
3441
3472
|
* @param id - The id of the command you want to remove
|
|
3442
3473
|
*
|
|
3443
3474
|
*/
|
|
3444
|
-
rmCommandById: rmCommandById(join20(
|
|
3475
|
+
rmCommandById: rmCommandById(join20(path9)),
|
|
3445
3476
|
/**
|
|
3446
3477
|
* Moves a given command id to the version directory
|
|
3447
3478
|
* @param directory
|
|
3448
3479
|
*/
|
|
3449
|
-
versionCommand: versionCommand(join20(
|
|
3480
|
+
versionCommand: versionCommand(join20(path9)),
|
|
3450
3481
|
/**
|
|
3451
3482
|
* Adds a file to the given command
|
|
3452
3483
|
* @param id - The id of the command to add the file to
|
|
@@ -3454,7 +3485,7 @@ var src_default = (path8) => {
|
|
|
3454
3485
|
* @param version - Optional version of the command to add the file to
|
|
3455
3486
|
* @returns
|
|
3456
3487
|
*/
|
|
3457
|
-
addFileToCommand: addFileToCommand(join20(
|
|
3488
|
+
addFileToCommand: addFileToCommand(join20(path9)),
|
|
3458
3489
|
/**
|
|
3459
3490
|
* Adds a schema to the given command
|
|
3460
3491
|
* @param id - The id of the command to add the schema to
|
|
@@ -3462,17 +3493,17 @@ var src_default = (path8) => {
|
|
|
3462
3493
|
* @param version - Optional version of the command to add the schema to
|
|
3463
3494
|
* @returns
|
|
3464
3495
|
*/
|
|
3465
|
-
addSchemaToCommand: addSchemaToCommand(join20(
|
|
3496
|
+
addSchemaToCommand: addSchemaToCommand(join20(path9)),
|
|
3466
3497
|
/**
|
|
3467
3498
|
* Check to see if a command version exists
|
|
3468
3499
|
* @param id - The id of the command
|
|
3469
3500
|
* @param version - The version of the command (supports semver)
|
|
3470
3501
|
* @returns
|
|
3471
3502
|
*/
|
|
3472
|
-
commandHasVersion: commandHasVersion(join20(
|
|
3473
|
-
addExampleToCommand: addExampleToCommand(join20(
|
|
3474
|
-
getExamplesFromCommand: getExamplesFromCommand(join20(
|
|
3475
|
-
removeExampleFromCommand: removeExampleFromCommand(join20(
|
|
3503
|
+
commandHasVersion: commandHasVersion(join20(path9)),
|
|
3504
|
+
addExampleToCommand: addExampleToCommand(join20(path9)),
|
|
3505
|
+
getExamplesFromCommand: getExamplesFromCommand(join20(path9)),
|
|
3506
|
+
removeExampleFromCommand: removeExampleFromCommand(join20(path9)),
|
|
3476
3507
|
/**
|
|
3477
3508
|
* ================================
|
|
3478
3509
|
* Queries
|
|
@@ -3484,13 +3515,13 @@ var src_default = (path8) => {
|
|
|
3484
3515
|
* @param version - Optional id of the version to get (supports semver)
|
|
3485
3516
|
* @returns Query|Undefined
|
|
3486
3517
|
*/
|
|
3487
|
-
getQuery: getQuery(join20(
|
|
3518
|
+
getQuery: getQuery(join20(path9)),
|
|
3488
3519
|
/**
|
|
3489
3520
|
* Returns all queries from EventCatalog
|
|
3490
3521
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
3491
3522
|
* @returns Query[]|Undefined
|
|
3492
3523
|
*/
|
|
3493
|
-
getQueries: getQueries(join20(
|
|
3524
|
+
getQueries: getQueries(join20(path9)),
|
|
3494
3525
|
/**
|
|
3495
3526
|
* Adds a query to EventCatalog
|
|
3496
3527
|
*
|
|
@@ -3498,7 +3529,7 @@ var src_default = (path8) => {
|
|
|
3498
3529
|
* @param options - Optional options to write the event
|
|
3499
3530
|
*
|
|
3500
3531
|
*/
|
|
3501
|
-
writeQuery: writeQuery(join20(
|
|
3532
|
+
writeQuery: writeQuery(join20(path9, "queries")),
|
|
3502
3533
|
/**
|
|
3503
3534
|
* Adds a query to a service in EventCatalog
|
|
3504
3535
|
*
|
|
@@ -3507,7 +3538,7 @@ var src_default = (path8) => {
|
|
|
3507
3538
|
* @param options - Optional options to write the query
|
|
3508
3539
|
*
|
|
3509
3540
|
*/
|
|
3510
|
-
writeQueryToService: writeQueryToService(join20(
|
|
3541
|
+
writeQueryToService: writeQueryToService(join20(path9)),
|
|
3511
3542
|
/**
|
|
3512
3543
|
* Adds a query to an agent in EventCatalog
|
|
3513
3544
|
*
|
|
@@ -3516,26 +3547,26 @@ var src_default = (path8) => {
|
|
|
3516
3547
|
* @param options - Optional options to write the query
|
|
3517
3548
|
*
|
|
3518
3549
|
*/
|
|
3519
|
-
writeQueryToAgent: writeQueryToAgent(join20(
|
|
3550
|
+
writeQueryToAgent: writeQueryToAgent(join20(path9)),
|
|
3520
3551
|
/**
|
|
3521
3552
|
* Remove an query to EventCatalog (modeled on the standard POSIX rm utility)
|
|
3522
3553
|
*
|
|
3523
3554
|
* @param path - The path to your query, e.g. `/Orders/GetOrder`
|
|
3524
3555
|
*
|
|
3525
3556
|
*/
|
|
3526
|
-
rmQuery: rmQuery(join20(
|
|
3557
|
+
rmQuery: rmQuery(join20(path9, "queries")),
|
|
3527
3558
|
/**
|
|
3528
3559
|
* Remove a query by a Query id
|
|
3529
3560
|
*
|
|
3530
3561
|
* @param id - The id of the query you want to remove
|
|
3531
3562
|
*
|
|
3532
3563
|
*/
|
|
3533
|
-
rmQueryById: rmQueryById(join20(
|
|
3564
|
+
rmQueryById: rmQueryById(join20(path9)),
|
|
3534
3565
|
/**
|
|
3535
3566
|
* Moves a given query id to the version directory
|
|
3536
3567
|
* @param directory
|
|
3537
3568
|
*/
|
|
3538
|
-
versionQuery: versionQuery(join20(
|
|
3569
|
+
versionQuery: versionQuery(join20(path9)),
|
|
3539
3570
|
/**
|
|
3540
3571
|
* Adds a file to the given query
|
|
3541
3572
|
* @param id - The id of the query to add the file to
|
|
@@ -3543,7 +3574,7 @@ var src_default = (path8) => {
|
|
|
3543
3574
|
* @param version - Optional version of the query to add the file to
|
|
3544
3575
|
* @returns
|
|
3545
3576
|
*/
|
|
3546
|
-
addFileToQuery: addFileToQuery(join20(
|
|
3577
|
+
addFileToQuery: addFileToQuery(join20(path9)),
|
|
3547
3578
|
/**
|
|
3548
3579
|
* Adds a schema to the given query
|
|
3549
3580
|
* @param id - The id of the query to add the schema to
|
|
@@ -3551,17 +3582,17 @@ var src_default = (path8) => {
|
|
|
3551
3582
|
* @param version - Optional version of the query to add the schema to
|
|
3552
3583
|
* @returns
|
|
3553
3584
|
*/
|
|
3554
|
-
addSchemaToQuery: addSchemaToQuery(join20(
|
|
3585
|
+
addSchemaToQuery: addSchemaToQuery(join20(path9)),
|
|
3555
3586
|
/**
|
|
3556
3587
|
* Check to see if an query version exists
|
|
3557
3588
|
* @param id - The id of the query
|
|
3558
3589
|
* @param version - The version of the query (supports semver)
|
|
3559
3590
|
* @returns
|
|
3560
3591
|
*/
|
|
3561
|
-
queryHasVersion: queryHasVersion(join20(
|
|
3562
|
-
addExampleToQuery: addExampleToQuery(join20(
|
|
3563
|
-
getExamplesFromQuery: getExamplesFromQuery(join20(
|
|
3564
|
-
removeExampleFromQuery: removeExampleFromQuery(join20(
|
|
3592
|
+
queryHasVersion: queryHasVersion(join20(path9)),
|
|
3593
|
+
addExampleToQuery: addExampleToQuery(join20(path9)),
|
|
3594
|
+
getExamplesFromQuery: getExamplesFromQuery(join20(path9)),
|
|
3595
|
+
removeExampleFromQuery: removeExampleFromQuery(join20(path9)),
|
|
3565
3596
|
/**
|
|
3566
3597
|
* ================================
|
|
3567
3598
|
* Channels
|
|
@@ -3573,13 +3604,13 @@ var src_default = (path8) => {
|
|
|
3573
3604
|
* @param version - Optional id of the version to get (supports semver)
|
|
3574
3605
|
* @returns Channel|Undefined
|
|
3575
3606
|
*/
|
|
3576
|
-
getChannel: getChannel(join20(
|
|
3607
|
+
getChannel: getChannel(join20(path9)),
|
|
3577
3608
|
/**
|
|
3578
3609
|
* Returns all channels from EventCatalog
|
|
3579
3610
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
3580
3611
|
* @returns Channel[]|Undefined
|
|
3581
3612
|
*/
|
|
3582
|
-
getChannels: getChannels(join20(
|
|
3613
|
+
getChannels: getChannels(join20(path9)),
|
|
3583
3614
|
/**
|
|
3584
3615
|
* Adds an channel to EventCatalog
|
|
3585
3616
|
*
|
|
@@ -3587,33 +3618,33 @@ var src_default = (path8) => {
|
|
|
3587
3618
|
* @param options - Optional options to write the channel
|
|
3588
3619
|
*
|
|
3589
3620
|
*/
|
|
3590
|
-
writeChannel: writeChannel(join20(
|
|
3621
|
+
writeChannel: writeChannel(join20(path9, "channels")),
|
|
3591
3622
|
/**
|
|
3592
3623
|
* Remove an channel to EventCatalog (modeled on the standard POSIX rm utility)
|
|
3593
3624
|
*
|
|
3594
3625
|
* @param path - The path to your channel, e.g. `/Inventory/InventoryAdjusted`
|
|
3595
3626
|
*
|
|
3596
3627
|
*/
|
|
3597
|
-
rmChannel: rmChannel(join20(
|
|
3628
|
+
rmChannel: rmChannel(join20(path9, "channels")),
|
|
3598
3629
|
/**
|
|
3599
3630
|
* Remove an channel by an Event id
|
|
3600
3631
|
*
|
|
3601
3632
|
* @param id - The id of the channel you want to remove
|
|
3602
3633
|
*
|
|
3603
3634
|
*/
|
|
3604
|
-
rmChannelById: rmChannelById(join20(
|
|
3635
|
+
rmChannelById: rmChannelById(join20(path9)),
|
|
3605
3636
|
/**
|
|
3606
3637
|
* Moves a given channel id to the version directory
|
|
3607
3638
|
* @param directory
|
|
3608
3639
|
*/
|
|
3609
|
-
versionChannel: versionChannel(join20(
|
|
3640
|
+
versionChannel: versionChannel(join20(path9)),
|
|
3610
3641
|
/**
|
|
3611
3642
|
* Check to see if a channel version exists
|
|
3612
3643
|
* @param id - The id of the channel
|
|
3613
3644
|
* @param version - The version of the channel (supports semver)
|
|
3614
3645
|
* @returns
|
|
3615
3646
|
*/
|
|
3616
|
-
channelHasVersion: channelHasVersion(join20(
|
|
3647
|
+
channelHasVersion: channelHasVersion(join20(path9)),
|
|
3617
3648
|
/**
|
|
3618
3649
|
* Add a channel to an event
|
|
3619
3650
|
*
|
|
@@ -3630,7 +3661,7 @@ var src_default = (path8) => {
|
|
|
3630
3661
|
*
|
|
3631
3662
|
* ```
|
|
3632
3663
|
*/
|
|
3633
|
-
addEventToChannel: addMessageToChannel(join20(
|
|
3664
|
+
addEventToChannel: addMessageToChannel(join20(path9), "events"),
|
|
3634
3665
|
/**
|
|
3635
3666
|
* Add a channel to an command
|
|
3636
3667
|
*
|
|
@@ -3647,7 +3678,7 @@ var src_default = (path8) => {
|
|
|
3647
3678
|
*
|
|
3648
3679
|
* ```
|
|
3649
3680
|
*/
|
|
3650
|
-
addCommandToChannel: addMessageToChannel(join20(
|
|
3681
|
+
addCommandToChannel: addMessageToChannel(join20(path9), "commands"),
|
|
3651
3682
|
/**
|
|
3652
3683
|
* Add a channel to an query
|
|
3653
3684
|
*
|
|
@@ -3664,7 +3695,7 @@ var src_default = (path8) => {
|
|
|
3664
3695
|
*
|
|
3665
3696
|
* ```
|
|
3666
3697
|
*/
|
|
3667
|
-
addQueryToChannel: addMessageToChannel(join20(
|
|
3698
|
+
addQueryToChannel: addMessageToChannel(join20(path9), "queries"),
|
|
3668
3699
|
/**
|
|
3669
3700
|
* ================================
|
|
3670
3701
|
* SERVICES
|
|
@@ -3677,14 +3708,14 @@ var src_default = (path8) => {
|
|
|
3677
3708
|
* @param options - Optional options to write the event
|
|
3678
3709
|
*
|
|
3679
3710
|
*/
|
|
3680
|
-
writeService: writeService(join20(
|
|
3711
|
+
writeService: writeService(join20(path9, "services")),
|
|
3681
3712
|
/**
|
|
3682
3713
|
* Adds a versioned service to EventCatalog
|
|
3683
3714
|
*
|
|
3684
3715
|
* @param service - The service to write
|
|
3685
3716
|
*
|
|
3686
3717
|
*/
|
|
3687
|
-
writeVersionedService: writeVersionedService(join20(
|
|
3718
|
+
writeVersionedService: writeVersionedService(join20(path9, "services")),
|
|
3688
3719
|
/**
|
|
3689
3720
|
* Adds a service to a domain in EventCatalog
|
|
3690
3721
|
*
|
|
@@ -3693,45 +3724,45 @@ var src_default = (path8) => {
|
|
|
3693
3724
|
* @param options - Optional options to write the event
|
|
3694
3725
|
*
|
|
3695
3726
|
*/
|
|
3696
|
-
writeServiceToDomain: writeServiceToDomain(join20(
|
|
3727
|
+
writeServiceToDomain: writeServiceToDomain(join20(path9, "domains")),
|
|
3697
3728
|
/**
|
|
3698
3729
|
* Returns a service from EventCatalog
|
|
3699
3730
|
* @param id - The id of the service to retrieve
|
|
3700
3731
|
* @param version - Optional id of the version to get (supports semver)
|
|
3701
3732
|
* @returns Service|Undefined
|
|
3702
3733
|
*/
|
|
3703
|
-
getService: getService(join20(
|
|
3734
|
+
getService: getService(join20(path9)),
|
|
3704
3735
|
/**
|
|
3705
3736
|
* Returns a service from EventCatalog by it's path.
|
|
3706
3737
|
* @param path - The path to the service to retrieve
|
|
3707
3738
|
* @returns Service|Undefined
|
|
3708
3739
|
*/
|
|
3709
|
-
getServiceByPath: getServiceByPath(join20(
|
|
3740
|
+
getServiceByPath: getServiceByPath(join20(path9)),
|
|
3710
3741
|
/**
|
|
3711
3742
|
* Returns all services from EventCatalog
|
|
3712
3743
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
3713
3744
|
* @returns Service[]|Undefined
|
|
3714
3745
|
*/
|
|
3715
|
-
getServices: getServices(join20(
|
|
3746
|
+
getServices: getServices(join20(path9)),
|
|
3716
3747
|
/**
|
|
3717
3748
|
* Moves a given service id to the version directory
|
|
3718
3749
|
* @param directory
|
|
3719
3750
|
*/
|
|
3720
|
-
versionService: versionService(join20(
|
|
3751
|
+
versionService: versionService(join20(path9)),
|
|
3721
3752
|
/**
|
|
3722
3753
|
* Remove a service from EventCatalog (modeled on the standard POSIX rm utility)
|
|
3723
3754
|
*
|
|
3724
3755
|
* @param path - The path to your service, e.g. `/InventoryService`
|
|
3725
3756
|
*
|
|
3726
3757
|
*/
|
|
3727
|
-
rmService: rmService(join20(
|
|
3758
|
+
rmService: rmService(join20(path9, "services")),
|
|
3728
3759
|
/**
|
|
3729
3760
|
* Remove an service by an service id
|
|
3730
3761
|
*
|
|
3731
3762
|
* @param id - The id of the service you want to remove
|
|
3732
3763
|
*
|
|
3733
3764
|
*/
|
|
3734
|
-
rmServiceById: rmServiceById(join20(
|
|
3765
|
+
rmServiceById: rmServiceById(join20(path9)),
|
|
3735
3766
|
/**
|
|
3736
3767
|
* Adds a file to the given service
|
|
3737
3768
|
* @param id - The id of the service to add the file to
|
|
@@ -3739,21 +3770,21 @@ var src_default = (path8) => {
|
|
|
3739
3770
|
* @param version - Optional version of the service to add the file to
|
|
3740
3771
|
* @returns
|
|
3741
3772
|
*/
|
|
3742
|
-
addFileToService: addFileToService(join20(
|
|
3773
|
+
addFileToService: addFileToService(join20(path9)),
|
|
3743
3774
|
/**
|
|
3744
3775
|
* Returns the specifications for a given service
|
|
3745
3776
|
* @param id - The id of the service to retrieve the specifications for
|
|
3746
3777
|
* @param version - Optional version of the service
|
|
3747
3778
|
* @returns
|
|
3748
3779
|
*/
|
|
3749
|
-
getSpecificationFilesForService: getSpecificationFilesForService(join20(
|
|
3780
|
+
getSpecificationFilesForService: getSpecificationFilesForService(join20(path9)),
|
|
3750
3781
|
/**
|
|
3751
3782
|
* Check to see if a service version exists
|
|
3752
3783
|
* @param id - The id of the service
|
|
3753
3784
|
* @param version - The version of the service (supports semver)
|
|
3754
3785
|
* @returns
|
|
3755
3786
|
*/
|
|
3756
|
-
serviceHasVersion: serviceHasVersion(join20(
|
|
3787
|
+
serviceHasVersion: serviceHasVersion(join20(path9)),
|
|
3757
3788
|
/**
|
|
3758
3789
|
* Add an event to a service by it's id.
|
|
3759
3790
|
*
|
|
@@ -3773,7 +3804,7 @@ var src_default = (path8) => {
|
|
|
3773
3804
|
*
|
|
3774
3805
|
* ```
|
|
3775
3806
|
*/
|
|
3776
|
-
addEventToService: addMessageToService(join20(
|
|
3807
|
+
addEventToService: addMessageToService(join20(path9)),
|
|
3777
3808
|
/**
|
|
3778
3809
|
* Add a data store to a service by it's id.
|
|
3779
3810
|
*
|
|
@@ -3790,7 +3821,7 @@ var src_default = (path8) => {
|
|
|
3790
3821
|
*
|
|
3791
3822
|
* ```
|
|
3792
3823
|
*/
|
|
3793
|
-
addDataStoreToService: addDataStoreToService(join20(
|
|
3824
|
+
addDataStoreToService: addDataStoreToService(join20(path9)),
|
|
3794
3825
|
/**
|
|
3795
3826
|
* Add a command to a service by it's id.
|
|
3796
3827
|
*
|
|
@@ -3810,7 +3841,7 @@ var src_default = (path8) => {
|
|
|
3810
3841
|
*
|
|
3811
3842
|
* ```
|
|
3812
3843
|
*/
|
|
3813
|
-
addCommandToService: addMessageToService(join20(
|
|
3844
|
+
addCommandToService: addMessageToService(join20(path9)),
|
|
3814
3845
|
/**
|
|
3815
3846
|
* Add a query to a service by it's id.
|
|
3816
3847
|
*
|
|
@@ -3830,7 +3861,7 @@ var src_default = (path8) => {
|
|
|
3830
3861
|
*
|
|
3831
3862
|
* ```
|
|
3832
3863
|
*/
|
|
3833
|
-
addQueryToService: addMessageToService(join20(
|
|
3864
|
+
addQueryToService: addMessageToService(join20(path9)),
|
|
3834
3865
|
/**
|
|
3835
3866
|
* Add an entity to a service by its id.
|
|
3836
3867
|
*
|
|
@@ -3848,7 +3879,7 @@ var src_default = (path8) => {
|
|
|
3848
3879
|
*
|
|
3849
3880
|
* ```
|
|
3850
3881
|
*/
|
|
3851
|
-
addEntityToService: addEntityToService(join20(
|
|
3882
|
+
addEntityToService: addEntityToService(join20(path9)),
|
|
3852
3883
|
/**
|
|
3853
3884
|
* Check to see if a service exists by it's path.
|
|
3854
3885
|
*
|
|
@@ -3865,36 +3896,36 @@ var src_default = (path8) => {
|
|
|
3865
3896
|
* @param path - The path to the service to check
|
|
3866
3897
|
* @returns boolean
|
|
3867
3898
|
*/
|
|
3868
|
-
isService: isService(join20(
|
|
3899
|
+
isService: isService(join20(path9)),
|
|
3869
3900
|
/**
|
|
3870
3901
|
* Converts a file to a service.
|
|
3871
3902
|
* @param file - The file to convert to a service.
|
|
3872
3903
|
* @returns The service.
|
|
3873
3904
|
*/
|
|
3874
|
-
toService: toService(join20(
|
|
3905
|
+
toService: toService(join20(path9)),
|
|
3875
3906
|
/**
|
|
3876
3907
|
* ================================
|
|
3877
3908
|
* Agents
|
|
3878
3909
|
* ================================
|
|
3879
3910
|
*/
|
|
3880
|
-
writeAgent: writeAgent(join20(
|
|
3881
|
-
writeVersionedAgent: writeVersionedAgent(join20(
|
|
3882
|
-
writeAgentToDomain: writeAgentToDomain(join20(
|
|
3883
|
-
getAgent: getAgent(join20(
|
|
3884
|
-
getAgentByPath: getAgentByPath(join20(
|
|
3885
|
-
getAgents: getAgents(join20(
|
|
3886
|
-
versionAgent: versionAgent(join20(
|
|
3887
|
-
rmAgent: rmAgent(join20(
|
|
3888
|
-
rmAgentById: rmAgentById(join20(
|
|
3889
|
-
addFileToAgent: addFileToAgent(join20(
|
|
3890
|
-
addEventToAgent: addMessageToAgent(join20(
|
|
3891
|
-
addCommandToAgent: addMessageToAgent(join20(
|
|
3892
|
-
addQueryToAgent: addMessageToAgent(join20(
|
|
3893
|
-
addDataStoreToAgent: addDataStoreToAgent(join20(
|
|
3894
|
-
addFlowToAgent: addFlowToAgent(join20(
|
|
3895
|
-
agentHasVersion: agentHasVersion(join20(
|
|
3896
|
-
isAgent: isAgent(join20(
|
|
3897
|
-
toAgent: toAgent(join20(
|
|
3911
|
+
writeAgent: writeAgent(join20(path9, "agents")),
|
|
3912
|
+
writeVersionedAgent: writeVersionedAgent(join20(path9, "agents")),
|
|
3913
|
+
writeAgentToDomain: writeAgentToDomain(join20(path9, "domains")),
|
|
3914
|
+
getAgent: getAgent(join20(path9)),
|
|
3915
|
+
getAgentByPath: getAgentByPath(join20(path9)),
|
|
3916
|
+
getAgents: getAgents(join20(path9)),
|
|
3917
|
+
versionAgent: versionAgent(join20(path9)),
|
|
3918
|
+
rmAgent: rmAgent(join20(path9, "agents")),
|
|
3919
|
+
rmAgentById: rmAgentById(join20(path9)),
|
|
3920
|
+
addFileToAgent: addFileToAgent(join20(path9)),
|
|
3921
|
+
addEventToAgent: addMessageToAgent(join20(path9)),
|
|
3922
|
+
addCommandToAgent: addMessageToAgent(join20(path9)),
|
|
3923
|
+
addQueryToAgent: addMessageToAgent(join20(path9)),
|
|
3924
|
+
addDataStoreToAgent: addDataStoreToAgent(join20(path9)),
|
|
3925
|
+
addFlowToAgent: addFlowToAgent(join20(path9)),
|
|
3926
|
+
agentHasVersion: agentHasVersion(join20(path9)),
|
|
3927
|
+
isAgent: isAgent(join20(path9)),
|
|
3928
|
+
toAgent: toAgent(join20(path9)),
|
|
3898
3929
|
/**
|
|
3899
3930
|
* ================================
|
|
3900
3931
|
* Domains
|
|
@@ -3907,39 +3938,39 @@ var src_default = (path8) => {
|
|
|
3907
3938
|
* @param options - Optional options to write the event
|
|
3908
3939
|
*
|
|
3909
3940
|
*/
|
|
3910
|
-
writeDomain: writeDomain(join20(
|
|
3941
|
+
writeDomain: writeDomain(join20(path9, "domains")),
|
|
3911
3942
|
/**
|
|
3912
3943
|
* Returns a domain from EventCatalog
|
|
3913
3944
|
* @param id - The id of the domain to retrieve
|
|
3914
3945
|
* @param version - Optional id of the version to get (supports semver)
|
|
3915
3946
|
* @returns Domain|Undefined
|
|
3916
3947
|
*/
|
|
3917
|
-
getDomain: getDomain(join20(
|
|
3948
|
+
getDomain: getDomain(join20(path9, "domains")),
|
|
3918
3949
|
/**
|
|
3919
3950
|
* Returns all domains from EventCatalog
|
|
3920
3951
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
3921
3952
|
* @returns Domain[]|Undefined
|
|
3922
3953
|
*/
|
|
3923
|
-
getDomains: getDomains(join20(
|
|
3954
|
+
getDomains: getDomains(join20(path9)),
|
|
3924
3955
|
/**
|
|
3925
3956
|
* Moves a given domain id to the version directory
|
|
3926
3957
|
* @param directory
|
|
3927
3958
|
*/
|
|
3928
|
-
versionDomain: versionDomain(join20(
|
|
3959
|
+
versionDomain: versionDomain(join20(path9, "domains")),
|
|
3929
3960
|
/**
|
|
3930
3961
|
* Remove a domain from EventCatalog (modeled on the standard POSIX rm utility)
|
|
3931
3962
|
*
|
|
3932
3963
|
* @param path - The path to your domain, e.g. `/Payment`
|
|
3933
3964
|
*
|
|
3934
3965
|
*/
|
|
3935
|
-
rmDomain: rmDomain(join20(
|
|
3966
|
+
rmDomain: rmDomain(join20(path9, "domains")),
|
|
3936
3967
|
/**
|
|
3937
3968
|
* Remove an service by an domain id
|
|
3938
3969
|
*
|
|
3939
3970
|
* @param id - The id of the domain you want to remove
|
|
3940
3971
|
*
|
|
3941
3972
|
*/
|
|
3942
|
-
rmDomainById: rmDomainById(join20(
|
|
3973
|
+
rmDomainById: rmDomainById(join20(path9, "domains")),
|
|
3943
3974
|
/**
|
|
3944
3975
|
* Adds a file to the given domain
|
|
3945
3976
|
* @param id - The id of the domain to add the file to
|
|
@@ -3947,28 +3978,28 @@ var src_default = (path8) => {
|
|
|
3947
3978
|
* @param version - Optional version of the domain to add the file to
|
|
3948
3979
|
* @returns
|
|
3949
3980
|
*/
|
|
3950
|
-
addFileToDomain: addFileToDomain(join20(
|
|
3981
|
+
addFileToDomain: addFileToDomain(join20(path9, "domains")),
|
|
3951
3982
|
/**
|
|
3952
3983
|
* Adds an ubiquitous language dictionary to a domain
|
|
3953
3984
|
* @param id - The id of the domain to add the ubiquitous language to
|
|
3954
3985
|
* @param ubiquitousLanguageDictionary - The ubiquitous language dictionary to add
|
|
3955
3986
|
* @param version - Optional version of the domain to add the ubiquitous language to
|
|
3956
3987
|
*/
|
|
3957
|
-
addUbiquitousLanguageToDomain: addUbiquitousLanguageToDomain(join20(
|
|
3988
|
+
addUbiquitousLanguageToDomain: addUbiquitousLanguageToDomain(join20(path9, "domains")),
|
|
3958
3989
|
/**
|
|
3959
3990
|
* Get the ubiquitous language dictionary from a domain
|
|
3960
3991
|
* @param id - The id of the domain to get the ubiquitous language from
|
|
3961
3992
|
* @param version - Optional version of the domain to get the ubiquitous language from
|
|
3962
3993
|
* @returns
|
|
3963
3994
|
*/
|
|
3964
|
-
getUbiquitousLanguageFromDomain: getUbiquitousLanguageFromDomain(join20(
|
|
3995
|
+
getUbiquitousLanguageFromDomain: getUbiquitousLanguageFromDomain(join20(path9, "domains")),
|
|
3965
3996
|
/**
|
|
3966
3997
|
* Check to see if a domain version exists
|
|
3967
3998
|
* @param id - The id of the domain
|
|
3968
3999
|
* @param version - The version of the domain (supports semver)
|
|
3969
4000
|
* @returns
|
|
3970
4001
|
*/
|
|
3971
|
-
domainHasVersion: domainHasVersion(join20(
|
|
4002
|
+
domainHasVersion: domainHasVersion(join20(path9)),
|
|
3972
4003
|
/**
|
|
3973
4004
|
* Adds a given service to a domain
|
|
3974
4005
|
* @param id - The id of the domain
|
|
@@ -3976,7 +4007,7 @@ var src_default = (path8) => {
|
|
|
3976
4007
|
* @param version - (Optional) The version of the domain to add the service to
|
|
3977
4008
|
* @returns
|
|
3978
4009
|
*/
|
|
3979
|
-
addServiceToDomain: addServiceToDomain(join20(
|
|
4010
|
+
addServiceToDomain: addServiceToDomain(join20(path9, "domains")),
|
|
3980
4011
|
/**
|
|
3981
4012
|
* Adds a given agent to a domain
|
|
3982
4013
|
* @param id - The id of the domain
|
|
@@ -3984,7 +4015,7 @@ var src_default = (path8) => {
|
|
|
3984
4015
|
* @param version - (Optional) The version of the domain to add the agent to
|
|
3985
4016
|
* @returns
|
|
3986
4017
|
*/
|
|
3987
|
-
addAgentToDomain: addAgentToDomain(join20(
|
|
4018
|
+
addAgentToDomain: addAgentToDomain(join20(path9, "domains")),
|
|
3988
4019
|
/**
|
|
3989
4020
|
* Adds a given subdomain to a domain
|
|
3990
4021
|
* @param id - The id of the domain
|
|
@@ -3992,7 +4023,7 @@ var src_default = (path8) => {
|
|
|
3992
4023
|
* @param version - (Optional) The version of the domain to add the subdomain to
|
|
3993
4024
|
* @returns
|
|
3994
4025
|
*/
|
|
3995
|
-
addSubDomainToDomain: addSubDomainToDomain(join20(
|
|
4026
|
+
addSubDomainToDomain: addSubDomainToDomain(join20(path9, "domains")),
|
|
3996
4027
|
/**
|
|
3997
4028
|
* Adds an entity to a domain
|
|
3998
4029
|
* @param id - The id of the domain
|
|
@@ -4000,7 +4031,7 @@ var src_default = (path8) => {
|
|
|
4000
4031
|
* @param version - (Optional) The version of the domain to add the entity to
|
|
4001
4032
|
* @returns
|
|
4002
4033
|
*/
|
|
4003
|
-
addEntityToDomain: addEntityToDomain(join20(
|
|
4034
|
+
addEntityToDomain: addEntityToDomain(join20(path9, "domains")),
|
|
4004
4035
|
/**
|
|
4005
4036
|
* Add an event to a domain by its id.
|
|
4006
4037
|
*
|
|
@@ -4018,7 +4049,7 @@ var src_default = (path8) => {
|
|
|
4018
4049
|
*
|
|
4019
4050
|
* ```
|
|
4020
4051
|
*/
|
|
4021
|
-
addEventToDomain: addMessageToDomain(join20(
|
|
4052
|
+
addEventToDomain: addMessageToDomain(join20(path9, "domains")),
|
|
4022
4053
|
/**
|
|
4023
4054
|
* Add a command to a domain by its id.
|
|
4024
4055
|
*
|
|
@@ -4036,7 +4067,7 @@ var src_default = (path8) => {
|
|
|
4036
4067
|
*
|
|
4037
4068
|
* ```
|
|
4038
4069
|
*/
|
|
4039
|
-
addCommandToDomain: addMessageToDomain(join20(
|
|
4070
|
+
addCommandToDomain: addMessageToDomain(join20(path9, "domains")),
|
|
4040
4071
|
/**
|
|
4041
4072
|
* Add a query to a domain by its id.
|
|
4042
4073
|
*
|
|
@@ -4054,7 +4085,7 @@ var src_default = (path8) => {
|
|
|
4054
4085
|
*
|
|
4055
4086
|
* ```
|
|
4056
4087
|
*/
|
|
4057
|
-
addQueryToDomain: addMessageToDomain(join20(
|
|
4088
|
+
addQueryToDomain: addMessageToDomain(join20(path9, "domains")),
|
|
4058
4089
|
/**
|
|
4059
4090
|
* ================================
|
|
4060
4091
|
* Teams
|
|
@@ -4067,25 +4098,25 @@ var src_default = (path8) => {
|
|
|
4067
4098
|
* @param options - Optional options to write the team
|
|
4068
4099
|
*
|
|
4069
4100
|
*/
|
|
4070
|
-
writeTeam: writeTeam(join20(
|
|
4101
|
+
writeTeam: writeTeam(join20(path9, "teams")),
|
|
4071
4102
|
/**
|
|
4072
4103
|
* Returns a team from EventCatalog
|
|
4073
4104
|
* @param id - The id of the team to retrieve
|
|
4074
4105
|
* @returns Team|Undefined
|
|
4075
4106
|
*/
|
|
4076
|
-
getTeam: getTeam(join20(
|
|
4107
|
+
getTeam: getTeam(join20(path9, "teams")),
|
|
4077
4108
|
/**
|
|
4078
4109
|
* Returns all teams from EventCatalog
|
|
4079
4110
|
* @returns Team[]|Undefined
|
|
4080
4111
|
*/
|
|
4081
|
-
getTeams: getTeams(join20(
|
|
4112
|
+
getTeams: getTeams(join20(path9, "teams")),
|
|
4082
4113
|
/**
|
|
4083
4114
|
* Remove a team by the team id
|
|
4084
4115
|
*
|
|
4085
4116
|
* @param id - The id of the team you want to remove
|
|
4086
4117
|
*
|
|
4087
4118
|
*/
|
|
4088
|
-
rmTeamById: rmTeamById(join20(
|
|
4119
|
+
rmTeamById: rmTeamById(join20(path9, "teams")),
|
|
4089
4120
|
/**
|
|
4090
4121
|
* ================================
|
|
4091
4122
|
* Users
|
|
@@ -4098,25 +4129,25 @@ var src_default = (path8) => {
|
|
|
4098
4129
|
* @param options - Optional options to write the user
|
|
4099
4130
|
*
|
|
4100
4131
|
*/
|
|
4101
|
-
writeUser: writeUser(join20(
|
|
4132
|
+
writeUser: writeUser(join20(path9, "users")),
|
|
4102
4133
|
/**
|
|
4103
4134
|
* Returns a user from EventCatalog
|
|
4104
4135
|
* @param id - The id of the user to retrieve
|
|
4105
4136
|
* @returns User|Undefined
|
|
4106
4137
|
*/
|
|
4107
|
-
getUser: getUser(join20(
|
|
4138
|
+
getUser: getUser(join20(path9, "users")),
|
|
4108
4139
|
/**
|
|
4109
4140
|
* Returns all user from EventCatalog
|
|
4110
4141
|
* @returns User[]|Undefined
|
|
4111
4142
|
*/
|
|
4112
|
-
getUsers: getUsers(join20(
|
|
4143
|
+
getUsers: getUsers(join20(path9)),
|
|
4113
4144
|
/**
|
|
4114
4145
|
* Remove a user by the user id
|
|
4115
4146
|
*
|
|
4116
4147
|
* @param id - The id of the user you want to remove
|
|
4117
4148
|
*
|
|
4118
4149
|
*/
|
|
4119
|
-
rmUserById: rmUserById(join20(
|
|
4150
|
+
rmUserById: rmUserById(join20(path9, "users")),
|
|
4120
4151
|
/**
|
|
4121
4152
|
* ================================
|
|
4122
4153
|
* Custom Docs
|
|
@@ -4127,32 +4158,32 @@ var src_default = (path8) => {
|
|
|
4127
4158
|
* @param path - The path to the custom doc to retrieve
|
|
4128
4159
|
* @returns CustomDoc|Undefined
|
|
4129
4160
|
*/
|
|
4130
|
-
getCustomDoc: getCustomDoc(join20(
|
|
4161
|
+
getCustomDoc: getCustomDoc(join20(path9, "docs")),
|
|
4131
4162
|
/**
|
|
4132
4163
|
* Returns all custom docs from EventCatalog
|
|
4133
4164
|
* @param options - Optional options to get custom docs from a specific path
|
|
4134
4165
|
* @returns CustomDoc[]|Undefined
|
|
4135
4166
|
*/
|
|
4136
|
-
getCustomDocs: getCustomDocs(join20(
|
|
4167
|
+
getCustomDocs: getCustomDocs(join20(path9, "docs")),
|
|
4137
4168
|
/**
|
|
4138
4169
|
* Writes a custom doc to EventCatalog
|
|
4139
4170
|
* @param customDoc - The custom doc to write
|
|
4140
4171
|
* @param options - Optional options to write the custom doc
|
|
4141
4172
|
*
|
|
4142
4173
|
*/
|
|
4143
|
-
writeCustomDoc: writeCustomDoc(join20(
|
|
4174
|
+
writeCustomDoc: writeCustomDoc(join20(path9, "docs")),
|
|
4144
4175
|
/**
|
|
4145
4176
|
* Removes a custom doc from EventCatalog
|
|
4146
4177
|
* @param path - The path to the custom doc to remove
|
|
4147
4178
|
*
|
|
4148
4179
|
*/
|
|
4149
|
-
rmCustomDoc: rmCustomDoc(join20(
|
|
4180
|
+
rmCustomDoc: rmCustomDoc(join20(path9, "docs")),
|
|
4150
4181
|
/**
|
|
4151
4182
|
* Dumps the catalog to a JSON file.
|
|
4152
4183
|
* @param directory - The directory to dump the catalog to
|
|
4153
4184
|
* @returns A JSON file with the catalog
|
|
4154
4185
|
*/
|
|
4155
|
-
dumpCatalog: dumpCatalog(join20(
|
|
4186
|
+
dumpCatalog: dumpCatalog(join20(path9)),
|
|
4156
4187
|
/**
|
|
4157
4188
|
* Returns the event catalog configuration file.
|
|
4158
4189
|
* The event catalog configuration file is the file that contains the configuration for the event catalog.
|
|
@@ -4160,7 +4191,7 @@ var src_default = (path8) => {
|
|
|
4160
4191
|
* @param directory - The directory of the catalog.
|
|
4161
4192
|
* @returns A JSON object with the configuration for the event catalog.
|
|
4162
4193
|
*/
|
|
4163
|
-
getEventCatalogConfigurationFile: getEventCatalogConfigurationFile(join20(
|
|
4194
|
+
getEventCatalogConfigurationFile: getEventCatalogConfigurationFile(join20(path9)),
|
|
4164
4195
|
/**
|
|
4165
4196
|
* ================================
|
|
4166
4197
|
* Changelogs
|
|
@@ -4174,7 +4205,7 @@ var src_default = (path8) => {
|
|
|
4174
4205
|
* @param options - Optional options (version, format)
|
|
4175
4206
|
*
|
|
4176
4207
|
*/
|
|
4177
|
-
writeChangelog: writeChangelog(join20(
|
|
4208
|
+
writeChangelog: writeChangelog(join20(path9)),
|
|
4178
4209
|
/**
|
|
4179
4210
|
* Appends a changelog entry to an existing changelog for a resource.
|
|
4180
4211
|
* If no changelog exists, one is created.
|
|
@@ -4184,7 +4215,7 @@ var src_default = (path8) => {
|
|
|
4184
4215
|
* @param options - Optional options (version, format)
|
|
4185
4216
|
*
|
|
4186
4217
|
*/
|
|
4187
|
-
appendChangelog: appendChangelog(join20(
|
|
4218
|
+
appendChangelog: appendChangelog(join20(path9)),
|
|
4188
4219
|
/**
|
|
4189
4220
|
* Returns the changelog for a resource in EventCatalog
|
|
4190
4221
|
*
|
|
@@ -4192,7 +4223,7 @@ var src_default = (path8) => {
|
|
|
4192
4223
|
* @param options - Optional options (version)
|
|
4193
4224
|
* @returns Changelog|Undefined
|
|
4194
4225
|
*/
|
|
4195
|
-
getChangelog: getChangelog(join20(
|
|
4226
|
+
getChangelog: getChangelog(join20(path9)),
|
|
4196
4227
|
/**
|
|
4197
4228
|
* Removes the changelog for a resource in EventCatalog
|
|
4198
4229
|
*
|
|
@@ -4200,7 +4231,7 @@ var src_default = (path8) => {
|
|
|
4200
4231
|
* @param options - Optional options (version)
|
|
4201
4232
|
*
|
|
4202
4233
|
*/
|
|
4203
|
-
rmChangelog: rmChangelog(join20(
|
|
4234
|
+
rmChangelog: rmChangelog(join20(path9)),
|
|
4204
4235
|
/**
|
|
4205
4236
|
* ================================
|
|
4206
4237
|
* Resources Utils
|
|
@@ -4225,26 +4256,26 @@ var src_default = (path8) => {
|
|
|
4225
4256
|
* @param path - The path to the message to retrieve
|
|
4226
4257
|
* @returns Message|Undefined
|
|
4227
4258
|
*/
|
|
4228
|
-
getMessageBySchemaPath: getMessageBySchemaPath(join20(
|
|
4259
|
+
getMessageBySchemaPath: getMessageBySchemaPath(join20(path9)),
|
|
4229
4260
|
/**
|
|
4230
4261
|
* Returns the producers and consumers (services and agents) for a given message
|
|
4231
4262
|
* @param id - The id of the message to get the producers and consumers for
|
|
4232
4263
|
* @param version - Optional version of the message
|
|
4233
4264
|
* @returns { producers: (Service|Agent)[], consumers: (Service|Agent)[] }
|
|
4234
4265
|
*/
|
|
4235
|
-
getProducersAndConsumersForMessage: getProducersAndConsumersForMessage(join20(
|
|
4266
|
+
getProducersAndConsumersForMessage: getProducersAndConsumersForMessage(join20(path9)),
|
|
4236
4267
|
/**
|
|
4237
4268
|
* Returns the consumers of a given schema path
|
|
4238
4269
|
* @param path - The path to the schema to get the consumers for
|
|
4239
4270
|
* @returns (Service|Agent)[]
|
|
4240
4271
|
*/
|
|
4241
|
-
getConsumersOfSchema: getConsumersOfSchema(join20(
|
|
4272
|
+
getConsumersOfSchema: getConsumersOfSchema(join20(path9)),
|
|
4242
4273
|
/**
|
|
4243
4274
|
* Returns the producers of a given schema path
|
|
4244
4275
|
* @param path - The path to the schema to get the producers for
|
|
4245
4276
|
* @returns (Service|Agent)[]
|
|
4246
4277
|
*/
|
|
4247
|
-
getProducersOfSchema: getProducersOfSchema(join20(
|
|
4278
|
+
getProducersOfSchema: getProducersOfSchema(join20(path9)),
|
|
4248
4279
|
/**
|
|
4249
4280
|
* Returns the schema for a given message (event, command or query) by its id and version.
|
|
4250
4281
|
* If no version is given, the latest version is used.
|
|
@@ -4252,14 +4283,14 @@ var src_default = (path8) => {
|
|
|
4252
4283
|
* @param version - Optional version of the message
|
|
4253
4284
|
* @returns { schema: string, fileName: string } | undefined
|
|
4254
4285
|
*/
|
|
4255
|
-
getSchemaForMessage: getSchemaForMessage(join20(
|
|
4286
|
+
getSchemaForMessage: getSchemaForMessage(join20(path9)),
|
|
4256
4287
|
/**
|
|
4257
4288
|
* Returns the owners for a given resource (e.g domain, service, event, command, query, etc.)
|
|
4258
4289
|
* @param id - The id of the resource to get the owners for
|
|
4259
4290
|
* @param version - Optional version of the resource
|
|
4260
4291
|
* @returns { owners: User[] }
|
|
4261
4292
|
*/
|
|
4262
|
-
getOwnersForResource: getOwnersForResource(join20(
|
|
4293
|
+
getOwnersForResource: getOwnersForResource(join20(path9)),
|
|
4263
4294
|
/**
|
|
4264
4295
|
* ================================
|
|
4265
4296
|
* Entities
|
|
@@ -4271,13 +4302,13 @@ var src_default = (path8) => {
|
|
|
4271
4302
|
* @param version - Optional id of the version to get (supports semver)
|
|
4272
4303
|
* @returns Entity|Undefined
|
|
4273
4304
|
*/
|
|
4274
|
-
getEntity: getEntity(join20(
|
|
4305
|
+
getEntity: getEntity(join20(path9)),
|
|
4275
4306
|
/**
|
|
4276
4307
|
* Returns all entities from EventCatalog
|
|
4277
4308
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
4278
4309
|
* @returns Entity[]|Undefined
|
|
4279
4310
|
*/
|
|
4280
|
-
getEntities: getEntities(join20(
|
|
4311
|
+
getEntities: getEntities(join20(path9)),
|
|
4281
4312
|
/**
|
|
4282
4313
|
* Adds an entity to EventCatalog
|
|
4283
4314
|
*
|
|
@@ -4285,33 +4316,33 @@ var src_default = (path8) => {
|
|
|
4285
4316
|
* @param options - Optional options to write the entity
|
|
4286
4317
|
*
|
|
4287
4318
|
*/
|
|
4288
|
-
writeEntity: writeEntity(join20(
|
|
4319
|
+
writeEntity: writeEntity(join20(path9, "entities")),
|
|
4289
4320
|
/**
|
|
4290
4321
|
* Remove an entity from EventCatalog (modeled on the standard POSIX rm utility)
|
|
4291
4322
|
*
|
|
4292
4323
|
* @param path - The path to your entity, e.g. `/User`
|
|
4293
4324
|
*
|
|
4294
4325
|
*/
|
|
4295
|
-
rmEntity: rmEntity(join20(
|
|
4326
|
+
rmEntity: rmEntity(join20(path9, "entities")),
|
|
4296
4327
|
/**
|
|
4297
4328
|
* Remove an entity by an entity id
|
|
4298
4329
|
*
|
|
4299
4330
|
* @param id - The id of the entity you want to remove
|
|
4300
4331
|
*
|
|
4301
4332
|
*/
|
|
4302
|
-
rmEntityById: rmEntityById(join20(
|
|
4333
|
+
rmEntityById: rmEntityById(join20(path9)),
|
|
4303
4334
|
/**
|
|
4304
4335
|
* Moves a given entity id to the version directory
|
|
4305
4336
|
* @param id - The id of the entity to version
|
|
4306
4337
|
*/
|
|
4307
|
-
versionEntity: versionEntity(join20(
|
|
4338
|
+
versionEntity: versionEntity(join20(path9)),
|
|
4308
4339
|
/**
|
|
4309
4340
|
* Check to see if an entity version exists
|
|
4310
4341
|
* @param id - The id of the entity
|
|
4311
4342
|
* @param version - The version of the entity (supports semver)
|
|
4312
4343
|
* @returns
|
|
4313
4344
|
*/
|
|
4314
|
-
entityHasVersion: entityHasVersion(join20(
|
|
4345
|
+
entityHasVersion: entityHasVersion(join20(path9)),
|
|
4315
4346
|
/**
|
|
4316
4347
|
* ================================
|
|
4317
4348
|
* Flows
|
|
@@ -4324,7 +4355,7 @@ var src_default = (path8) => {
|
|
|
4324
4355
|
* @param version - Optional version of the flow
|
|
4325
4356
|
* @returns Flow
|
|
4326
4357
|
*/
|
|
4327
|
-
getFlow: getFlow(join20(
|
|
4358
|
+
getFlow: getFlow(join20(path9)),
|
|
4328
4359
|
/**
|
|
4329
4360
|
* Returns all flows from EventCatalog
|
|
4330
4361
|
*
|
|
@@ -4332,7 +4363,7 @@ var src_default = (path8) => {
|
|
|
4332
4363
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
4333
4364
|
* @returns Flow[]|Undefined
|
|
4334
4365
|
*/
|
|
4335
|
-
getFlows: getFlows(join20(
|
|
4366
|
+
getFlows: getFlows(join20(path9)),
|
|
4336
4367
|
/**
|
|
4337
4368
|
* Adds a flow to EventCatalog
|
|
4338
4369
|
*
|
|
@@ -4340,14 +4371,14 @@ var src_default = (path8) => {
|
|
|
4340
4371
|
* @param options - Optional options to write the flow
|
|
4341
4372
|
*
|
|
4342
4373
|
*/
|
|
4343
|
-
writeFlow: writeFlow(join20(
|
|
4374
|
+
writeFlow: writeFlow(join20(path9, "flows")),
|
|
4344
4375
|
/**
|
|
4345
4376
|
* Adds a versioned flow to EventCatalog
|
|
4346
4377
|
*
|
|
4347
4378
|
* @param flow - The flow to write
|
|
4348
4379
|
*
|
|
4349
4380
|
*/
|
|
4350
|
-
writeVersionedFlow: writeVersionedFlow(join20(
|
|
4381
|
+
writeVersionedFlow: writeVersionedFlow(join20(path9, "flows")),
|
|
4351
4382
|
/**
|
|
4352
4383
|
* Adds a flow to a domain in EventCatalog
|
|
4353
4384
|
*
|
|
@@ -4356,7 +4387,7 @@ var src_default = (path8) => {
|
|
|
4356
4387
|
* @param options - Optional options to write the flow
|
|
4357
4388
|
*
|
|
4358
4389
|
*/
|
|
4359
|
-
writeFlowToDomain: writeFlowToDomain(join20(
|
|
4390
|
+
writeFlowToDomain: writeFlowToDomain(join20(path9, "domains")),
|
|
4360
4391
|
/**
|
|
4361
4392
|
* Adds a flow to a service in EventCatalog
|
|
4362
4393
|
*
|
|
@@ -4365,7 +4396,7 @@ var src_default = (path8) => {
|
|
|
4365
4396
|
* @param options - Optional options to write the flow
|
|
4366
4397
|
*
|
|
4367
4398
|
*/
|
|
4368
|
-
writeFlowToService: writeFlowToService(join20(
|
|
4399
|
+
writeFlowToService: writeFlowToService(join20(path9, "services")),
|
|
4369
4400
|
/**
|
|
4370
4401
|
* Adds a flow to an agent in EventCatalog
|
|
4371
4402
|
*
|
|
@@ -4374,33 +4405,33 @@ var src_default = (path8) => {
|
|
|
4374
4405
|
* @param options - Optional options to write the flow
|
|
4375
4406
|
*
|
|
4376
4407
|
*/
|
|
4377
|
-
writeFlowToAgent: writeFlowToAgent(join20(
|
|
4408
|
+
writeFlowToAgent: writeFlowToAgent(join20(path9, "agents")),
|
|
4378
4409
|
/**
|
|
4379
4410
|
* Remove a flow from EventCatalog (modeled on the standard POSIX rm utility)
|
|
4380
4411
|
*
|
|
4381
4412
|
* @param path - The path to your flow, e.g. `/PaymentFlow`
|
|
4382
4413
|
*
|
|
4383
4414
|
*/
|
|
4384
|
-
rmFlow: rmFlow(join20(
|
|
4415
|
+
rmFlow: rmFlow(join20(path9, "flows")),
|
|
4385
4416
|
/**
|
|
4386
4417
|
* Remove a flow by a flow id
|
|
4387
4418
|
*
|
|
4388
4419
|
* @param id - The id of the flow you want to remove
|
|
4389
4420
|
*
|
|
4390
4421
|
*/
|
|
4391
|
-
rmFlowById: rmFlowById(join20(
|
|
4422
|
+
rmFlowById: rmFlowById(join20(path9)),
|
|
4392
4423
|
/**
|
|
4393
4424
|
* Moves a given flow id to the version directory
|
|
4394
4425
|
* @param id - The id of the flow to version
|
|
4395
4426
|
*/
|
|
4396
|
-
versionFlow: versionFlow(join20(
|
|
4427
|
+
versionFlow: versionFlow(join20(path9)),
|
|
4397
4428
|
/**
|
|
4398
4429
|
* Check to see if a flow version exists
|
|
4399
4430
|
* @param id - The id of the flow
|
|
4400
4431
|
* @param version - The version of the flow (supports semver)
|
|
4401
4432
|
* @returns
|
|
4402
4433
|
*/
|
|
4403
|
-
flowHasVersion: flowHasVersion(join20(
|
|
4434
|
+
flowHasVersion: flowHasVersion(join20(path9)),
|
|
4404
4435
|
/**
|
|
4405
4436
|
* Adds a file to the given flow
|
|
4406
4437
|
* @param id - The id of the flow to add the file to
|
|
@@ -4408,7 +4439,7 @@ var src_default = (path8) => {
|
|
|
4408
4439
|
* @param version - Optional version of the flow to add the file to
|
|
4409
4440
|
* @returns
|
|
4410
4441
|
*/
|
|
4411
|
-
addFileToFlow: addFileToFlow(join20(
|
|
4442
|
+
addFileToFlow: addFileToFlow(join20(path9)),
|
|
4412
4443
|
/**
|
|
4413
4444
|
* ================================
|
|
4414
4445
|
* Data Stores
|
|
@@ -4420,42 +4451,42 @@ var src_default = (path8) => {
|
|
|
4420
4451
|
* @param options - Optional options to write the data store
|
|
4421
4452
|
*
|
|
4422
4453
|
*/
|
|
4423
|
-
writeDataStore: writeDataStore(join20(
|
|
4454
|
+
writeDataStore: writeDataStore(join20(path9, "containers")),
|
|
4424
4455
|
/**
|
|
4425
4456
|
* Returns a data store from EventCatalog
|
|
4426
4457
|
* @param id - The id of the data store to retrieve
|
|
4427
4458
|
* @param version - Optional id of the version to get (supports semver)
|
|
4428
4459
|
* @returns Container|Undefined
|
|
4429
4460
|
*/
|
|
4430
|
-
getDataStore: getDataStore(join20(
|
|
4461
|
+
getDataStore: getDataStore(join20(path9)),
|
|
4431
4462
|
/**
|
|
4432
4463
|
* Returns all data stores from EventCatalog
|
|
4433
4464
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
4434
4465
|
* @returns Container[]|Undefined
|
|
4435
4466
|
*/
|
|
4436
|
-
getDataStores: getDataStores(join20(
|
|
4467
|
+
getDataStores: getDataStores(join20(path9)),
|
|
4437
4468
|
/**
|
|
4438
4469
|
* Version a data store by its id
|
|
4439
4470
|
* @param id - The id of the data store to version
|
|
4440
4471
|
*/
|
|
4441
|
-
versionDataStore: versionDataStore(join20(
|
|
4472
|
+
versionDataStore: versionDataStore(join20(path9, "containers")),
|
|
4442
4473
|
/**
|
|
4443
4474
|
* Remove a data store by its path
|
|
4444
4475
|
* @param path - The path to the data store to remove
|
|
4445
4476
|
*/
|
|
4446
|
-
rmDataStore: rmDataStore(join20(
|
|
4477
|
+
rmDataStore: rmDataStore(join20(path9, "containers")),
|
|
4447
4478
|
/**
|
|
4448
4479
|
* Remove a data store by its id
|
|
4449
4480
|
* @param id - The id of the data store to remove
|
|
4450
4481
|
*/
|
|
4451
|
-
rmDataStoreById: rmDataStoreById(join20(
|
|
4482
|
+
rmDataStoreById: rmDataStoreById(join20(path9)),
|
|
4452
4483
|
/**
|
|
4453
4484
|
* Check to see if a data store version exists
|
|
4454
4485
|
* @param id - The id of the data store
|
|
4455
4486
|
* @param version - The version of the data store (supports semver)
|
|
4456
4487
|
* @returns
|
|
4457
4488
|
*/
|
|
4458
|
-
dataStoreHasVersion: dataStoreHasVersion(join20(
|
|
4489
|
+
dataStoreHasVersion: dataStoreHasVersion(join20(path9)),
|
|
4459
4490
|
/**
|
|
4460
4491
|
* Adds a file to a data store by its id
|
|
4461
4492
|
* @param id - The id of the data store to add the file to
|
|
@@ -4463,14 +4494,14 @@ var src_default = (path8) => {
|
|
|
4463
4494
|
* @param version - Optional version of the data store to add the file to
|
|
4464
4495
|
* @returns
|
|
4465
4496
|
*/
|
|
4466
|
-
addFileToDataStore: addFileToDataStore(join20(
|
|
4497
|
+
addFileToDataStore: addFileToDataStore(join20(path9)),
|
|
4467
4498
|
/**
|
|
4468
4499
|
* Writes a data store to a service by its id
|
|
4469
4500
|
* @param dataStore - The data store to write
|
|
4470
4501
|
* @param service - The service to write the data store to
|
|
4471
4502
|
* @returns
|
|
4472
4503
|
*/
|
|
4473
|
-
writeDataStoreToService: writeDataStoreToService(join20(
|
|
4504
|
+
writeDataStoreToService: writeDataStoreToService(join20(path9)),
|
|
4474
4505
|
/**
|
|
4475
4506
|
* ================================
|
|
4476
4507
|
* Data Products
|
|
@@ -4482,7 +4513,7 @@ var src_default = (path8) => {
|
|
|
4482
4513
|
* @param options - Optional options to write the data product
|
|
4483
4514
|
*
|
|
4484
4515
|
*/
|
|
4485
|
-
writeDataProduct: writeDataProduct(join20(
|
|
4516
|
+
writeDataProduct: writeDataProduct(join20(path9, "data-products")),
|
|
4486
4517
|
/**
|
|
4487
4518
|
* Writes a data product to a domain in EventCatalog
|
|
4488
4519
|
* @param dataProduct - The data product to write
|
|
@@ -4490,43 +4521,43 @@ var src_default = (path8) => {
|
|
|
4490
4521
|
* @param options - Optional options to write the data product
|
|
4491
4522
|
*
|
|
4492
4523
|
*/
|
|
4493
|
-
writeDataProductToDomain: writeDataProductToDomain(join20(
|
|
4524
|
+
writeDataProductToDomain: writeDataProductToDomain(join20(path9, "domains")),
|
|
4494
4525
|
/**
|
|
4495
4526
|
* Returns a data product from EventCatalog
|
|
4496
4527
|
* @param id - The id of the data product to retrieve
|
|
4497
4528
|
* @param version - Optional id of the version to get (supports semver)
|
|
4498
4529
|
* @returns DataProduct|Undefined
|
|
4499
4530
|
*/
|
|
4500
|
-
getDataProduct: getDataProduct(join20(
|
|
4531
|
+
getDataProduct: getDataProduct(join20(path9)),
|
|
4501
4532
|
/**
|
|
4502
4533
|
* Returns all data products from EventCatalog
|
|
4503
4534
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
4504
4535
|
* @returns DataProduct[]|Undefined
|
|
4505
4536
|
*/
|
|
4506
|
-
getDataProducts: getDataProducts(join20(
|
|
4537
|
+
getDataProducts: getDataProducts(join20(path9)),
|
|
4507
4538
|
/**
|
|
4508
4539
|
* Version a data product by its id
|
|
4509
4540
|
* @param id - The id of the data product to version
|
|
4510
4541
|
*/
|
|
4511
|
-
versionDataProduct: versionDataProduct(join20(
|
|
4542
|
+
versionDataProduct: versionDataProduct(join20(path9)),
|
|
4512
4543
|
/**
|
|
4513
4544
|
* Remove a data product by its path
|
|
4514
4545
|
* @param path - The path to the data product to remove
|
|
4515
4546
|
*/
|
|
4516
|
-
rmDataProduct: rmDataProduct(join20(
|
|
4547
|
+
rmDataProduct: rmDataProduct(join20(path9, "data-products")),
|
|
4517
4548
|
/**
|
|
4518
4549
|
* Remove a data product by its id
|
|
4519
4550
|
* @param id - The id of the data product to remove
|
|
4520
4551
|
* @param version - Optional version of the data product to remove
|
|
4521
4552
|
*/
|
|
4522
|
-
rmDataProductById: rmDataProductById(join20(
|
|
4553
|
+
rmDataProductById: rmDataProductById(join20(path9)),
|
|
4523
4554
|
/**
|
|
4524
4555
|
* Check to see if a data product version exists
|
|
4525
4556
|
* @param id - The id of the data product
|
|
4526
4557
|
* @param version - The version of the data product (supports semver)
|
|
4527
4558
|
* @returns
|
|
4528
4559
|
*/
|
|
4529
|
-
dataProductHasVersion: dataProductHasVersion(join20(
|
|
4560
|
+
dataProductHasVersion: dataProductHasVersion(join20(path9)),
|
|
4530
4561
|
/**
|
|
4531
4562
|
* Adds a file to a data product by its id
|
|
4532
4563
|
* @param id - The id of the data product to add the file to
|
|
@@ -4534,7 +4565,7 @@ var src_default = (path8) => {
|
|
|
4534
4565
|
* @param version - Optional version of the data product to add the file to
|
|
4535
4566
|
* @returns
|
|
4536
4567
|
*/
|
|
4537
|
-
addFileToDataProduct: addFileToDataProduct(join20(
|
|
4568
|
+
addFileToDataProduct: addFileToDataProduct(join20(path9)),
|
|
4538
4569
|
/**
|
|
4539
4570
|
* Adds a data product to a domain
|
|
4540
4571
|
* @param id - The id of the domain
|
|
@@ -4542,7 +4573,7 @@ var src_default = (path8) => {
|
|
|
4542
4573
|
* @param version - (Optional) The version of the domain to add the data product to
|
|
4543
4574
|
* @returns
|
|
4544
4575
|
*/
|
|
4545
|
-
addDataProductToDomain: addDataProductToDomain(join20(
|
|
4576
|
+
addDataProductToDomain: addDataProductToDomain(join20(path9, "domains")),
|
|
4546
4577
|
/**
|
|
4547
4578
|
* ================================
|
|
4548
4579
|
* Diagrams
|
|
@@ -4554,13 +4585,13 @@ var src_default = (path8) => {
|
|
|
4554
4585
|
* @param version - Optional id of the version to get (supports semver)
|
|
4555
4586
|
* @returns Diagram|Undefined
|
|
4556
4587
|
*/
|
|
4557
|
-
getDiagram: getDiagram(join20(
|
|
4588
|
+
getDiagram: getDiagram(join20(path9)),
|
|
4558
4589
|
/**
|
|
4559
4590
|
* Returns all diagrams from EventCatalog
|
|
4560
4591
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
4561
4592
|
* @returns Diagram[]|Undefined
|
|
4562
4593
|
*/
|
|
4563
|
-
getDiagrams: getDiagrams(join20(
|
|
4594
|
+
getDiagrams: getDiagrams(join20(path9)),
|
|
4564
4595
|
/**
|
|
4565
4596
|
* Adds a diagram to EventCatalog
|
|
4566
4597
|
*
|
|
@@ -4568,33 +4599,33 @@ var src_default = (path8) => {
|
|
|
4568
4599
|
* @param options - Optional options to write the diagram
|
|
4569
4600
|
*
|
|
4570
4601
|
*/
|
|
4571
|
-
writeDiagram: writeDiagram(join20(
|
|
4602
|
+
writeDiagram: writeDiagram(join20(path9, "diagrams")),
|
|
4572
4603
|
/**
|
|
4573
4604
|
* Remove a diagram from EventCatalog (modeled on the standard POSIX rm utility)
|
|
4574
4605
|
*
|
|
4575
4606
|
* @param path - The path to your diagram, e.g. `/ArchitectureDiagram`
|
|
4576
4607
|
*
|
|
4577
4608
|
*/
|
|
4578
|
-
rmDiagram: rmDiagram(join20(
|
|
4609
|
+
rmDiagram: rmDiagram(join20(path9, "diagrams")),
|
|
4579
4610
|
/**
|
|
4580
4611
|
* Remove a diagram by a diagram id
|
|
4581
4612
|
*
|
|
4582
4613
|
* @param id - The id of the diagram you want to remove
|
|
4583
4614
|
*
|
|
4584
4615
|
*/
|
|
4585
|
-
rmDiagramById: rmDiagramById(join20(
|
|
4616
|
+
rmDiagramById: rmDiagramById(join20(path9)),
|
|
4586
4617
|
/**
|
|
4587
4618
|
* Moves a given diagram id to the version directory
|
|
4588
4619
|
* @param id - The id of the diagram to version
|
|
4589
4620
|
*/
|
|
4590
|
-
versionDiagram: versionDiagram(join20(
|
|
4621
|
+
versionDiagram: versionDiagram(join20(path9)),
|
|
4591
4622
|
/**
|
|
4592
4623
|
* Check to see if a diagram version exists
|
|
4593
4624
|
* @param id - The id of the diagram
|
|
4594
4625
|
* @param version - The version of the diagram (supports semver)
|
|
4595
4626
|
* @returns
|
|
4596
4627
|
*/
|
|
4597
|
-
diagramHasVersion: diagramHasVersion(join20(
|
|
4628
|
+
diagramHasVersion: diagramHasVersion(join20(path9)),
|
|
4598
4629
|
/**
|
|
4599
4630
|
* Adds a file to the given diagram
|
|
4600
4631
|
* @param id - The id of the diagram to add the file to
|
|
@@ -4602,7 +4633,7 @@ var src_default = (path8) => {
|
|
|
4602
4633
|
* @param version - Optional version of the diagram to add the file to
|
|
4603
4634
|
* @returns
|
|
4604
4635
|
*/
|
|
4605
|
-
addFileToDiagram: addFileToDiagram(join20(
|
|
4636
|
+
addFileToDiagram: addFileToDiagram(join20(path9)),
|
|
4606
4637
|
/**
|
|
4607
4638
|
* ================================
|
|
4608
4639
|
* DSL
|
|
@@ -4621,21 +4652,21 @@ var src_default = (path8) => {
|
|
|
4621
4652
|
* const dsl = await sdk.toDSL(services, { type: 'service', hydrate: true });
|
|
4622
4653
|
* ```
|
|
4623
4654
|
*/
|
|
4624
|
-
createSnapshot: createSnapshot(join20(
|
|
4625
|
-
diffSnapshots: diffSnapshots(join20(
|
|
4626
|
-
listSnapshots: listSnapshots(join20(
|
|
4627
|
-
toDSL: toDSL(join20(
|
|
4628
|
-
getEvent: getEvent(join20(
|
|
4629
|
-
getCommand: getCommand(join20(
|
|
4630
|
-
getQuery: getQuery(join20(
|
|
4631
|
-
getService: getService(join20(
|
|
4632
|
-
getServices: getServices(join20(
|
|
4633
|
-
getDomain: getDomain(join20(
|
|
4634
|
-
getChannel: getChannel(join20(
|
|
4635
|
-
getChannels: getChannels(join20(
|
|
4636
|
-
getContainer: getDataStore(join20(
|
|
4637
|
-
getTeam: getTeam(join20(
|
|
4638
|
-
getUser: getUser(join20(
|
|
4655
|
+
createSnapshot: createSnapshot(join20(path9)),
|
|
4656
|
+
diffSnapshots: diffSnapshots(join20(path9)),
|
|
4657
|
+
listSnapshots: listSnapshots(join20(path9)),
|
|
4658
|
+
toDSL: toDSL(join20(path9), {
|
|
4659
|
+
getEvent: getEvent(join20(path9)),
|
|
4660
|
+
getCommand: getCommand(join20(path9)),
|
|
4661
|
+
getQuery: getQuery(join20(path9)),
|
|
4662
|
+
getService: getService(join20(path9)),
|
|
4663
|
+
getServices: getServices(join20(path9)),
|
|
4664
|
+
getDomain: getDomain(join20(path9, "domains")),
|
|
4665
|
+
getChannel: getChannel(join20(path9)),
|
|
4666
|
+
getChannels: getChannels(join20(path9)),
|
|
4667
|
+
getContainer: getDataStore(join20(path9)),
|
|
4668
|
+
getTeam: getTeam(join20(path9, "teams")),
|
|
4669
|
+
getUser: getUser(join20(path9, "users"))
|
|
4639
4670
|
})
|
|
4640
4671
|
};
|
|
4641
4672
|
};
|