@eventcatalog/sdk 2.15.1 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +61 -46
- package/dist/index.d.ts +61 -46
- package/dist/index.js +330 -202
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +323 -195
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ __export(src_exports, {
|
|
|
33
33
|
default: () => src_default
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(src_exports);
|
|
36
|
-
var
|
|
36
|
+
var import_node_path21 = require("path");
|
|
37
37
|
|
|
38
38
|
// src/dsl/utils.ts
|
|
39
39
|
var import_glob = require("glob");
|
|
@@ -828,8 +828,8 @@ var getFiles = async (pattern, ignore = "") => {
|
|
|
828
828
|
);
|
|
829
829
|
}
|
|
830
830
|
};
|
|
831
|
-
var readMdxFile = async (
|
|
832
|
-
const { data } = import_gray_matter.default.read(
|
|
831
|
+
var readMdxFile = async (path7) => {
|
|
832
|
+
const { data } = import_gray_matter.default.read(path7);
|
|
833
833
|
const { markdown, ...frontmatter } = data;
|
|
834
834
|
return { ...frontmatter, markdown };
|
|
835
835
|
};
|
|
@@ -923,8 +923,8 @@ var writeResource = async (catalogDir, resource, options = {
|
|
|
923
923
|
versionExistingContent: false,
|
|
924
924
|
format: "mdx"
|
|
925
925
|
}) => {
|
|
926
|
-
const
|
|
927
|
-
const fullPath = (0, import_path.join)(catalogDir,
|
|
926
|
+
const path7 = options.path || `/${resource.id}`;
|
|
927
|
+
const fullPath = (0, import_path.join)(catalogDir, path7);
|
|
928
928
|
const format = options.format || "mdx";
|
|
929
929
|
import_node_fs2.default.mkdirSync(fullPath, { recursive: true });
|
|
930
930
|
const lockPath = (0, import_path.join)(fullPath, `index.${format}`);
|
|
@@ -1058,16 +1058,16 @@ var rmResourceById = async (catalogDir, id, version, options) => {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
invalidateFileCache();
|
|
1060
1060
|
};
|
|
1061
|
-
var waitForFileRemoval = async (
|
|
1061
|
+
var waitForFileRemoval = async (path7, maxRetries = 50, delay = 10) => {
|
|
1062
1062
|
for (let i = 0; i < maxRetries; i++) {
|
|
1063
1063
|
try {
|
|
1064
|
-
await import_promises.default.access(
|
|
1064
|
+
await import_promises.default.access(path7);
|
|
1065
1065
|
await new Promise((resolve2) => setTimeout(resolve2, delay));
|
|
1066
1066
|
} catch (error) {
|
|
1067
1067
|
return;
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
1070
|
-
throw new Error(`File/directory ${
|
|
1070
|
+
throw new Error(`File/directory ${path7} was not removed after ${maxRetries} attempts`);
|
|
1071
1071
|
};
|
|
1072
1072
|
var addFileToResource = async (catalogDir, id, file, version, options) => {
|
|
1073
1073
|
let pathToResource;
|
|
@@ -1120,8 +1120,8 @@ var writeEventToService = (directory) => async (event, service, options = { path
|
|
|
1120
1120
|
pathForEvent = (0, import_node_path4.join)(pathForEvent, event.id);
|
|
1121
1121
|
await writeResource(directory, { ...event }, { ...options, path: pathForEvent, type: "event" });
|
|
1122
1122
|
};
|
|
1123
|
-
var rmEvent = (directory) => async (
|
|
1124
|
-
await import_promises2.default.rm((0, import_node_path4.join)(directory,
|
|
1123
|
+
var rmEvent = (directory) => async (path7) => {
|
|
1124
|
+
await import_promises2.default.rm((0, import_node_path4.join)(directory, path7), { recursive: true });
|
|
1125
1125
|
invalidateFileCache();
|
|
1126
1126
|
};
|
|
1127
1127
|
var rmEventById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -1157,8 +1157,8 @@ var writeCommandToService = (directory) => async (command, service, options = {
|
|
|
1157
1157
|
pathForCommand = (0, import_node_path5.join)(pathForCommand, command.id);
|
|
1158
1158
|
await writeResource(directory, { ...command }, { ...options, path: pathForCommand, type: "command" });
|
|
1159
1159
|
};
|
|
1160
|
-
var rmCommand = (directory) => async (
|
|
1161
|
-
await import_promises3.default.rm((0, import_node_path5.join)(directory,
|
|
1160
|
+
var rmCommand = (directory) => async (path7) => {
|
|
1161
|
+
await import_promises3.default.rm((0, import_node_path5.join)(directory, path7), { recursive: true });
|
|
1162
1162
|
invalidateFileCache();
|
|
1163
1163
|
};
|
|
1164
1164
|
var rmCommandById = (directory) => async (id, version, persistFiles) => rmResourceById(directory, id, version, { type: "command", persistFiles });
|
|
@@ -1192,8 +1192,8 @@ var writeQueryToService = (directory) => async (query, service, options = { path
|
|
|
1192
1192
|
pathForQuery = (0, import_node_path6.join)(pathForQuery, query.id);
|
|
1193
1193
|
await writeResource(directory, { ...query }, { ...options, path: pathForQuery, type: "query" });
|
|
1194
1194
|
};
|
|
1195
|
-
var rmQuery = (directory) => async (
|
|
1196
|
-
await import_promises4.default.rm((0, import_node_path6.join)(directory,
|
|
1195
|
+
var rmQuery = (directory) => async (path7) => {
|
|
1196
|
+
await import_promises4.default.rm((0, import_node_path6.join)(directory, path7), { recursive: true });
|
|
1197
1197
|
invalidateFileCache();
|
|
1198
1198
|
};
|
|
1199
1199
|
var rmQueryById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -1213,8 +1213,8 @@ var queryHasVersion = (directory) => async (id, version) => {
|
|
|
1213
1213
|
var import_promises5 = __toESM(require("fs/promises"));
|
|
1214
1214
|
var import_node_path7 = require("path");
|
|
1215
1215
|
var getService = (directory) => async (id, version) => getResource(directory, id, version, { type: "service" });
|
|
1216
|
-
var getServiceByPath = (directory) => async (
|
|
1217
|
-
const service = await getResource(directory, void 0, void 0, { type: "service" },
|
|
1216
|
+
var getServiceByPath = (directory) => async (path7) => {
|
|
1217
|
+
const service = await getResource(directory, void 0, void 0, { type: "service" }, path7);
|
|
1218
1218
|
return service;
|
|
1219
1219
|
};
|
|
1220
1220
|
var getServices = (directory) => async (options) => getResources(directory, {
|
|
@@ -1249,8 +1249,8 @@ var writeService = (directory) => async (service, options = {
|
|
|
1249
1249
|
};
|
|
1250
1250
|
var writeVersionedService = (directory) => async (service) => {
|
|
1251
1251
|
const resource = { ...service };
|
|
1252
|
-
const
|
|
1253
|
-
return await writeService(directory)(resource, { path:
|
|
1252
|
+
const path7 = getVersionedDirectory(service.id, service.version);
|
|
1253
|
+
return await writeService(directory)(resource, { path: path7 });
|
|
1254
1254
|
};
|
|
1255
1255
|
var writeServiceToDomain = (directory) => async (service, domain, options = { path: "", format: "mdx", override: false }) => {
|
|
1256
1256
|
let pathForService = domain.version && domain.version !== "latest" ? `/${domain.id}/versioned/${domain.version}/services` : `/${domain.id}/services`;
|
|
@@ -1258,8 +1258,8 @@ var writeServiceToDomain = (directory) => async (service, domain, options = { pa
|
|
|
1258
1258
|
await writeResource(directory, { ...service }, { ...options, path: pathForService, type: "service" });
|
|
1259
1259
|
};
|
|
1260
1260
|
var versionService = (directory) => async (id) => versionResource(directory, id);
|
|
1261
|
-
var rmService = (directory) => async (
|
|
1262
|
-
await import_promises5.default.rm((0, import_node_path7.join)(directory,
|
|
1261
|
+
var rmService = (directory) => async (path7) => {
|
|
1262
|
+
await import_promises5.default.rm((0, import_node_path7.join)(directory, path7), { recursive: true });
|
|
1263
1263
|
invalidateFileCache();
|
|
1264
1264
|
};
|
|
1265
1265
|
var rmServiceById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -1324,8 +1324,8 @@ var addMessageToService = (directory) => async (id, direction, event, version) =
|
|
|
1324
1324
|
if (!existingResource) {
|
|
1325
1325
|
throw new Error(`Cannot find service ${id} in the catalog`);
|
|
1326
1326
|
}
|
|
1327
|
-
const
|
|
1328
|
-
const pathToResource = (0, import_node_path7.join)(
|
|
1327
|
+
const path7 = existingResource.split(/[\\/]+services/)[0];
|
|
1328
|
+
const pathToResource = (0, import_node_path7.join)(path7, "services");
|
|
1329
1329
|
await rmServiceById(directory)(id, version);
|
|
1330
1330
|
await writeService(pathToResource)(service, { format: extension === ".md" ? "md" : "mdx" });
|
|
1331
1331
|
};
|
|
@@ -1333,9 +1333,9 @@ var serviceHasVersion = (directory) => async (id, version) => {
|
|
|
1333
1333
|
const file = await findFileById(directory, id, version);
|
|
1334
1334
|
return !!file;
|
|
1335
1335
|
};
|
|
1336
|
-
var isService = (directory) => async (
|
|
1337
|
-
const service = await getServiceByPath(directory)(
|
|
1338
|
-
const relativePath = (0, import_node_path7.relative)(directory,
|
|
1336
|
+
var isService = (directory) => async (path7) => {
|
|
1337
|
+
const service = await getServiceByPath(directory)(path7);
|
|
1338
|
+
const relativePath = (0, import_node_path7.relative)(directory, path7);
|
|
1339
1339
|
const segments = relativePath.split(/[/\\]+/);
|
|
1340
1340
|
return !!service && segments.includes("services");
|
|
1341
1341
|
};
|
|
@@ -1357,8 +1357,8 @@ var addEntityToService = (directory) => async (id, entity, version) => {
|
|
|
1357
1357
|
if (!existingResource) {
|
|
1358
1358
|
throw new Error(`Cannot find service ${id} in the catalog`);
|
|
1359
1359
|
}
|
|
1360
|
-
const
|
|
1361
|
-
const pathToResource = (0, import_node_path7.join)(
|
|
1360
|
+
const path7 = existingResource.split(/[\\/]+services/)[0];
|
|
1361
|
+
const pathToResource = (0, import_node_path7.join)(path7, "services");
|
|
1362
1362
|
await rmServiceById(directory)(id, version);
|
|
1363
1363
|
await writeService(pathToResource)(service, { format: extension === ".md" ? "md" : "mdx" });
|
|
1364
1364
|
};
|
|
@@ -1393,8 +1393,8 @@ var addDataStoreToService = (directory) => async (id, operation, dataStore, vers
|
|
|
1393
1393
|
if (!existingResource) {
|
|
1394
1394
|
throw new Error(`Cannot find service ${id} in the catalog`);
|
|
1395
1395
|
}
|
|
1396
|
-
const
|
|
1397
|
-
const pathToResource = (0, import_node_path7.join)(
|
|
1396
|
+
const path7 = existingResource.split(/[\\/]+services/)[0];
|
|
1397
|
+
const pathToResource = (0, import_node_path7.join)(path7, "services");
|
|
1398
1398
|
await rmServiceById(directory)(id, version);
|
|
1399
1399
|
await writeService(pathToResource)(service, { format: extension === ".md" ? "md" : "mdx" });
|
|
1400
1400
|
};
|
|
@@ -1435,8 +1435,8 @@ var writeDomain = (directory) => async (domain, options = {
|
|
|
1435
1435
|
return await writeResource(directory, resource, { ...options, type: "domain" });
|
|
1436
1436
|
};
|
|
1437
1437
|
var versionDomain = (directory) => async (id) => versionResource(directory, id);
|
|
1438
|
-
var rmDomain = (directory) => async (
|
|
1439
|
-
await import_promises6.default.rm((0, import_node_path8.join)(directory,
|
|
1438
|
+
var rmDomain = (directory) => async (path7) => {
|
|
1439
|
+
await import_promises6.default.rm((0, import_node_path8.join)(directory, path7), { recursive: true });
|
|
1440
1440
|
invalidateFileCache();
|
|
1441
1441
|
};
|
|
1442
1442
|
var rmDomainById = (directory) => async (id, version, persistFiles) => rmResourceById(directory, id, version, { type: "domain", persistFiles });
|
|
@@ -1567,8 +1567,8 @@ var import_node_path9 = require("path");
|
|
|
1567
1567
|
var getChannel = (directory) => async (id, version) => getResource(directory, id, version, { type: "channel" });
|
|
1568
1568
|
var getChannels = (directory) => async (options) => getResources(directory, { type: "channels", ...options });
|
|
1569
1569
|
var writeChannel = (directory) => async (channel, options = { path: "" }) => writeResource(directory, { ...channel }, { ...options, type: "channel" });
|
|
1570
|
-
var rmChannel = (directory) => async (
|
|
1571
|
-
await import_promises7.default.rm((0, import_node_path9.join)(directory,
|
|
1570
|
+
var rmChannel = (directory) => async (path7) => {
|
|
1571
|
+
await import_promises7.default.rm((0, import_node_path9.join)(directory, path7), { recursive: true });
|
|
1572
1572
|
invalidateFileCache();
|
|
1573
1573
|
};
|
|
1574
1574
|
var rmChannelById = (directory) => async (id, version, persistFiles) => rmResourceById(directory, id, version, { type: "channel", persistFiles });
|
|
@@ -1610,8 +1610,8 @@ var addMessageToChannel = (directory, collection) => async (id, _message, versio
|
|
|
1610
1610
|
if (!existingResource) {
|
|
1611
1611
|
throw new Error(`Cannot find message ${id} in the catalog`);
|
|
1612
1612
|
}
|
|
1613
|
-
const
|
|
1614
|
-
const pathToResource = (0, import_node_path9.join)(
|
|
1613
|
+
const path7 = existingResource.split(`/[\\/]+${collection}`)[0];
|
|
1614
|
+
const pathToResource = (0, import_node_path9.join)(path7, collection);
|
|
1615
1615
|
await rmMessageById(directory)(_message.id, _message.version, true);
|
|
1616
1616
|
await writeMessage(pathToResource)(message, { format: extension === ".md" ? "md" : "mdx" });
|
|
1617
1617
|
};
|
|
@@ -1620,8 +1620,8 @@ var addMessageToChannel = (directory, collection) => async (id, _message, versio
|
|
|
1620
1620
|
var import_node_path10 = require("path");
|
|
1621
1621
|
var import_gray_matter4 = __toESM(require("gray-matter"));
|
|
1622
1622
|
var import_semver5 = require("semver");
|
|
1623
|
-
var getMessageBySchemaPath = (directory) => async (
|
|
1624
|
-
const pathToMessage = (0, import_node_path10.dirname)(
|
|
1623
|
+
var getMessageBySchemaPath = (directory) => async (path7, options) => {
|
|
1624
|
+
const pathToMessage = (0, import_node_path10.dirname)(path7);
|
|
1625
1625
|
try {
|
|
1626
1626
|
const files = await getFiles(`${directory}/${pathToMessage}/index.{md,mdx}`);
|
|
1627
1627
|
if (!files || files.length === 0) {
|
|
@@ -1693,18 +1693,18 @@ var getProducersAndConsumersForMessage = (directory) => async (id, version, opti
|
|
|
1693
1693
|
}
|
|
1694
1694
|
return { producers, consumers };
|
|
1695
1695
|
};
|
|
1696
|
-
var getConsumersOfSchema = (directory) => async (
|
|
1696
|
+
var getConsumersOfSchema = (directory) => async (path7) => {
|
|
1697
1697
|
try {
|
|
1698
|
-
const message = await getMessageBySchemaPath(directory)(
|
|
1698
|
+
const message = await getMessageBySchemaPath(directory)(path7);
|
|
1699
1699
|
const { consumers } = await getProducersAndConsumersForMessage(directory)(message.id, message.version);
|
|
1700
1700
|
return consumers;
|
|
1701
1701
|
} catch (error) {
|
|
1702
1702
|
return [];
|
|
1703
1703
|
}
|
|
1704
1704
|
};
|
|
1705
|
-
var getProducersOfSchema = (directory) => async (
|
|
1705
|
+
var getProducersOfSchema = (directory) => async (path7) => {
|
|
1706
1706
|
try {
|
|
1707
|
-
const message = await getMessageBySchemaPath(directory)(
|
|
1707
|
+
const message = await getMessageBySchemaPath(directory)(path7);
|
|
1708
1708
|
const { producers } = await getProducersAndConsumersForMessage(directory)(message.id, message.version);
|
|
1709
1709
|
return producers;
|
|
1710
1710
|
} catch (error) {
|
|
@@ -1908,8 +1908,8 @@ var filterCollection = (collection, options) => {
|
|
|
1908
1908
|
};
|
|
1909
1909
|
var getEventCatalogConfigurationFile = (directory) => async () => {
|
|
1910
1910
|
try {
|
|
1911
|
-
const
|
|
1912
|
-
const configModule = await import(
|
|
1911
|
+
const path7 = (0, import_node_path15.join)(directory, "eventcatalog.config.js");
|
|
1912
|
+
const configModule = await import(path7);
|
|
1913
1913
|
return configModule.default;
|
|
1914
1914
|
} catch (error) {
|
|
1915
1915
|
console.error("Error getting event catalog configuration file", error);
|
|
@@ -1965,9 +1965,97 @@ var dumpCatalog = (directory) => async (options) => {
|
|
|
1965
1965
|
};
|
|
1966
1966
|
};
|
|
1967
1967
|
|
|
1968
|
-
// src/
|
|
1968
|
+
// src/changelogs.ts
|
|
1969
|
+
var import_node_path16 = __toESM(require("path"));
|
|
1970
|
+
var import_node_fs7 = __toESM(require("fs"));
|
|
1969
1971
|
var import_promises10 = __toESM(require("fs/promises"));
|
|
1970
|
-
var
|
|
1972
|
+
var import_gray_matter8 = __toESM(require("gray-matter"));
|
|
1973
|
+
var writeChangelog = (catalogDir) => async (id, changelog, options = {}) => {
|
|
1974
|
+
const { version, format = "mdx" } = options;
|
|
1975
|
+
const resourceFile = await findFileById(catalogDir, id, version);
|
|
1976
|
+
if (!resourceFile) {
|
|
1977
|
+
throw new Error(`No resource found with id: ${id}${version ? ` and version: ${version}` : ""}`);
|
|
1978
|
+
}
|
|
1979
|
+
const resourceDir = (0, import_node_path16.dirname)(resourceFile);
|
|
1980
|
+
const changelogPath = import_node_path16.default.join(resourceDir, `changelog.${format}`);
|
|
1981
|
+
const { markdown, ...frontmatter } = changelog;
|
|
1982
|
+
const fm = { ...frontmatter };
|
|
1983
|
+
if (fm.createdAt instanceof Date) {
|
|
1984
|
+
fm.createdAt = fm.createdAt;
|
|
1985
|
+
}
|
|
1986
|
+
if (!fm.badges || fm.badges.length === 0) {
|
|
1987
|
+
delete fm.badges;
|
|
1988
|
+
}
|
|
1989
|
+
import_node_fs7.default.mkdirSync(resourceDir, { recursive: true });
|
|
1990
|
+
const document = import_gray_matter8.default.stringify(markdown.trim(), fm);
|
|
1991
|
+
import_node_fs7.default.writeFileSync(changelogPath, document);
|
|
1992
|
+
invalidateFileCache();
|
|
1993
|
+
};
|
|
1994
|
+
var appendChangelog = (catalogDir) => async (id, changelog, options = {}) => {
|
|
1995
|
+
const { version, format = "mdx" } = options;
|
|
1996
|
+
const resourceFile = await findFileById(catalogDir, id, version);
|
|
1997
|
+
if (!resourceFile) {
|
|
1998
|
+
throw new Error(`No resource found with id: ${id}${version ? ` and version: ${version}` : ""}`);
|
|
1999
|
+
}
|
|
2000
|
+
const resourceDir = (0, import_node_path16.dirname)(resourceFile);
|
|
2001
|
+
const mdxPath = import_node_path16.default.join(resourceDir, "changelog.mdx");
|
|
2002
|
+
const mdPath = import_node_path16.default.join(resourceDir, "changelog.md");
|
|
2003
|
+
const existingPath = import_node_fs7.default.existsSync(mdxPath) ? mdxPath : import_node_fs7.default.existsSync(mdPath) ? mdPath : void 0;
|
|
2004
|
+
if (!existingPath) {
|
|
2005
|
+
return writeChangelog(catalogDir)(id, changelog, options);
|
|
2006
|
+
}
|
|
2007
|
+
const existing = import_gray_matter8.default.read(existingPath);
|
|
2008
|
+
const existingContent = existing.content.trim();
|
|
2009
|
+
const newEntry = changelog.markdown.trim();
|
|
2010
|
+
const combined = `${newEntry}
|
|
2011
|
+
|
|
2012
|
+
---
|
|
2013
|
+
|
|
2014
|
+
${existingContent}`;
|
|
2015
|
+
const fm = { ...existing.data };
|
|
2016
|
+
fm.createdAt = changelog.createdAt;
|
|
2017
|
+
if (changelog.badges && changelog.badges.length > 0) {
|
|
2018
|
+
fm.badges = changelog.badges;
|
|
2019
|
+
} else {
|
|
2020
|
+
delete fm.badges;
|
|
2021
|
+
}
|
|
2022
|
+
const document = import_gray_matter8.default.stringify(combined, fm);
|
|
2023
|
+
import_node_fs7.default.writeFileSync(existingPath, document);
|
|
2024
|
+
invalidateFileCache();
|
|
2025
|
+
};
|
|
2026
|
+
var getChangelog = (catalogDir) => async (id, options = {}) => {
|
|
2027
|
+
const { version } = options;
|
|
2028
|
+
const resourceFile = await findFileById(catalogDir, id, version);
|
|
2029
|
+
if (!resourceFile) return void 0;
|
|
2030
|
+
const resourceDir = (0, import_node_path16.dirname)(resourceFile);
|
|
2031
|
+
const mdxPath = import_node_path16.default.join(resourceDir, "changelog.mdx");
|
|
2032
|
+
const mdPath = import_node_path16.default.join(resourceDir, "changelog.md");
|
|
2033
|
+
const changelogPath = import_node_fs7.default.existsSync(mdxPath) ? mdxPath : import_node_fs7.default.existsSync(mdPath) ? mdPath : void 0;
|
|
2034
|
+
if (!changelogPath) return void 0;
|
|
2035
|
+
const { data, content } = import_gray_matter8.default.read(changelogPath);
|
|
2036
|
+
return { ...data, markdown: content.trim() };
|
|
2037
|
+
};
|
|
2038
|
+
var rmChangelog = (catalogDir) => async (id, options = {}) => {
|
|
2039
|
+
const { version } = options;
|
|
2040
|
+
const resourceFile = await findFileById(catalogDir, id, version);
|
|
2041
|
+
if (!resourceFile) {
|
|
2042
|
+
throw new Error(`No resource found with id: ${id}${version ? ` and version: ${version}` : ""}`);
|
|
2043
|
+
}
|
|
2044
|
+
const resourceDir = (0, import_node_path16.dirname)(resourceFile);
|
|
2045
|
+
const mdxPath = import_node_path16.default.join(resourceDir, "changelog.mdx");
|
|
2046
|
+
const mdPath = import_node_path16.default.join(resourceDir, "changelog.md");
|
|
2047
|
+
if (import_node_fs7.default.existsSync(mdxPath)) {
|
|
2048
|
+
await import_promises10.default.rm(mdxPath);
|
|
2049
|
+
}
|
|
2050
|
+
if (import_node_fs7.default.existsSync(mdPath)) {
|
|
2051
|
+
await import_promises10.default.rm(mdPath);
|
|
2052
|
+
}
|
|
2053
|
+
invalidateFileCache();
|
|
2054
|
+
};
|
|
2055
|
+
|
|
2056
|
+
// src/entities.ts
|
|
2057
|
+
var import_promises11 = __toESM(require("fs/promises"));
|
|
2058
|
+
var import_node_path17 = require("path");
|
|
1971
2059
|
var getEntity = (directory) => async (id, version) => getResource(directory, id, version, { type: "entity" });
|
|
1972
2060
|
var getEntities = (directory) => async (options) => getResources(directory, { type: "entities", latestOnly: options?.latestOnly });
|
|
1973
2061
|
var writeEntity = (directory) => async (entity, options = {
|
|
@@ -1975,8 +2063,8 @@ var writeEntity = (directory) => async (entity, options = {
|
|
|
1975
2063
|
override: false,
|
|
1976
2064
|
format: "mdx"
|
|
1977
2065
|
}) => writeResource(directory, { ...entity }, { ...options, type: "entity" });
|
|
1978
|
-
var rmEntity = (directory) => async (
|
|
1979
|
-
await
|
|
2066
|
+
var rmEntity = (directory) => async (path7) => {
|
|
2067
|
+
await import_promises11.default.rm((0, import_node_path17.join)(directory, path7), { recursive: true });
|
|
1980
2068
|
invalidateFileCache();
|
|
1981
2069
|
};
|
|
1982
2070
|
var rmEntityById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -1989,8 +2077,8 @@ var entityHasVersion = (directory) => async (id, version) => {
|
|
|
1989
2077
|
};
|
|
1990
2078
|
|
|
1991
2079
|
// src/containers.ts
|
|
1992
|
-
var
|
|
1993
|
-
var
|
|
2080
|
+
var import_promises12 = __toESM(require("fs/promises"));
|
|
2081
|
+
var import_node_path18 = require("path");
|
|
1994
2082
|
var getContainer = (directory) => async (id, version) => getResource(directory, id, version, { type: "container" });
|
|
1995
2083
|
var getContainers = (directory) => async (options) => getResources(directory, { type: "containers", latestOnly: options?.latestOnly });
|
|
1996
2084
|
var writeContainer = (directory) => async (data, options = {
|
|
@@ -1999,8 +2087,8 @@ var writeContainer = (directory) => async (data, options = {
|
|
|
1999
2087
|
format: "mdx"
|
|
2000
2088
|
}) => writeResource(directory, { ...data }, { ...options, type: "container" });
|
|
2001
2089
|
var versionContainer = (directory) => async (id) => versionResource(directory, id);
|
|
2002
|
-
var rmContainer = (directory) => async (
|
|
2003
|
-
await
|
|
2090
|
+
var rmContainer = (directory) => async (path7) => {
|
|
2091
|
+
await import_promises12.default.rm((0, import_node_path18.join)(directory, path7), { recursive: true });
|
|
2004
2092
|
invalidateFileCache();
|
|
2005
2093
|
};
|
|
2006
2094
|
var rmContainerById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -2017,7 +2105,7 @@ var writeContainerToService = (directory) => async (container, service, options
|
|
|
2017
2105
|
throw new Error("Service not found");
|
|
2018
2106
|
}
|
|
2019
2107
|
let pathForContainer = service.version && service.version !== "latest" ? `${resourcePath.directory}/versioned/${service.version}/containers` : `${resourcePath.directory}/containers`;
|
|
2020
|
-
pathForContainer = (0,
|
|
2108
|
+
pathForContainer = (0, import_node_path18.join)(pathForContainer, container.id);
|
|
2021
2109
|
await writeResource(directory, { ...container }, { ...options, path: pathForContainer, type: "container" });
|
|
2022
2110
|
};
|
|
2023
2111
|
|
|
@@ -2033,8 +2121,8 @@ var addFileToDataStore = addFileToContainer;
|
|
|
2033
2121
|
var writeDataStoreToService = writeContainerToService;
|
|
2034
2122
|
|
|
2035
2123
|
// src/data-products.ts
|
|
2036
|
-
var
|
|
2037
|
-
var
|
|
2124
|
+
var import_promises13 = __toESM(require("fs/promises"));
|
|
2125
|
+
var import_node_path19 = require("path");
|
|
2038
2126
|
var getDataProduct = (directory) => async (id, version) => getResource(directory, id, version, { type: "data-product" });
|
|
2039
2127
|
var getDataProducts = (directory) => async (options) => getResources(directory, { type: "data-products", latestOnly: options?.latestOnly });
|
|
2040
2128
|
var writeDataProduct = (directory) => async (dataProduct, options = {
|
|
@@ -2044,11 +2132,11 @@ var writeDataProduct = (directory) => async (dataProduct, options = {
|
|
|
2044
2132
|
}) => writeResource(directory, { ...dataProduct }, { ...options, type: "data-product" });
|
|
2045
2133
|
var writeDataProductToDomain = (directory) => async (dataProduct, domain, options = { path: "", format: "mdx", override: false }) => {
|
|
2046
2134
|
let pathForDataProduct = domain.version && domain.version !== "latest" ? `/${domain.id}/versioned/${domain.version}/data-products` : `/${domain.id}/data-products`;
|
|
2047
|
-
pathForDataProduct = (0,
|
|
2135
|
+
pathForDataProduct = (0, import_node_path19.join)(pathForDataProduct, dataProduct.id);
|
|
2048
2136
|
await writeResource(directory, { ...dataProduct }, { ...options, path: pathForDataProduct, type: "data-product" });
|
|
2049
2137
|
};
|
|
2050
|
-
var rmDataProduct = (directory) => async (
|
|
2051
|
-
await
|
|
2138
|
+
var rmDataProduct = (directory) => async (path7) => {
|
|
2139
|
+
await import_promises13.default.rm((0, import_node_path19.join)(directory, path7), { recursive: true });
|
|
2052
2140
|
invalidateFileCache();
|
|
2053
2141
|
};
|
|
2054
2142
|
var rmDataProductById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -2062,8 +2150,8 @@ var dataProductHasVersion = (directory) => async (id, version) => {
|
|
|
2062
2150
|
var addFileToDataProduct = (directory) => async (id, file, version) => addFileToResource(directory, id, file, version);
|
|
2063
2151
|
|
|
2064
2152
|
// src/diagrams.ts
|
|
2065
|
-
var
|
|
2066
|
-
var
|
|
2153
|
+
var import_promises14 = __toESM(require("fs/promises"));
|
|
2154
|
+
var import_node_path20 = require("path");
|
|
2067
2155
|
var getDiagram = (directory) => async (id, version) => getResource(directory, id, version, { type: "diagram" });
|
|
2068
2156
|
var getDiagrams = (directory) => async (options) => getResources(directory, { type: "diagrams", latestOnly: options?.latestOnly });
|
|
2069
2157
|
var writeDiagram = (directory) => async (diagram, options = {
|
|
@@ -2071,8 +2159,8 @@ var writeDiagram = (directory) => async (diagram, options = {
|
|
|
2071
2159
|
override: false,
|
|
2072
2160
|
format: "mdx"
|
|
2073
2161
|
}) => writeResource(directory, { ...diagram }, { ...options, type: "diagram" });
|
|
2074
|
-
var rmDiagram = (directory) => async (
|
|
2075
|
-
await
|
|
2162
|
+
var rmDiagram = (directory) => async (path7) => {
|
|
2163
|
+
await import_promises14.default.rm((0, import_node_path20.join)(directory, path7), { recursive: true });
|
|
2076
2164
|
invalidateFileCache();
|
|
2077
2165
|
};
|
|
2078
2166
|
var rmDiagramById = (directory) => async (id, version, persistFiles) => {
|
|
@@ -2086,7 +2174,7 @@ var diagramHasVersion = (directory) => async (id, version) => {
|
|
|
2086
2174
|
var addFileToDiagram = (directory) => async (id, file, version) => addFileToResource(directory, id, file, version, { type: "diagram" });
|
|
2087
2175
|
|
|
2088
2176
|
// src/index.ts
|
|
2089
|
-
var src_default = (
|
|
2177
|
+
var src_default = (path7) => {
|
|
2090
2178
|
return {
|
|
2091
2179
|
/**
|
|
2092
2180
|
* Returns an events from EventCatalog
|
|
@@ -2094,13 +2182,13 @@ var src_default = (path6) => {
|
|
|
2094
2182
|
* @param version - Optional id of the version to get (supports semver)
|
|
2095
2183
|
* @returns Event|Undefined
|
|
2096
2184
|
*/
|
|
2097
|
-
getEvent: getEvent((0,
|
|
2185
|
+
getEvent: getEvent((0, import_node_path21.join)(path7)),
|
|
2098
2186
|
/**
|
|
2099
2187
|
* Returns all events from EventCatalog
|
|
2100
2188
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2101
2189
|
* @returns Event[]|Undefined
|
|
2102
2190
|
*/
|
|
2103
|
-
getEvents: getEvents((0,
|
|
2191
|
+
getEvents: getEvents((0, import_node_path21.join)(path7)),
|
|
2104
2192
|
/**
|
|
2105
2193
|
* Adds an event to EventCatalog
|
|
2106
2194
|
*
|
|
@@ -2108,7 +2196,7 @@ var src_default = (path6) => {
|
|
|
2108
2196
|
* @param options - Optional options to write the event
|
|
2109
2197
|
*
|
|
2110
2198
|
*/
|
|
2111
|
-
writeEvent: writeEvent((0,
|
|
2199
|
+
writeEvent: writeEvent((0, import_node_path21.join)(path7, "events")),
|
|
2112
2200
|
/**
|
|
2113
2201
|
* Adds an event to a service in EventCatalog
|
|
2114
2202
|
*
|
|
@@ -2117,26 +2205,26 @@ var src_default = (path6) => {
|
|
|
2117
2205
|
* @param options - Optional options to write the event
|
|
2118
2206
|
*
|
|
2119
2207
|
*/
|
|
2120
|
-
writeEventToService: writeEventToService((0,
|
|
2208
|
+
writeEventToService: writeEventToService((0, import_node_path21.join)(path7)),
|
|
2121
2209
|
/**
|
|
2122
2210
|
* Remove an event to EventCatalog (modeled on the standard POSIX rm utility)
|
|
2123
2211
|
*
|
|
2124
2212
|
* @param path - The path to your event, e.g. `/Inventory/InventoryAdjusted`
|
|
2125
2213
|
*
|
|
2126
2214
|
*/
|
|
2127
|
-
rmEvent: rmEvent((0,
|
|
2215
|
+
rmEvent: rmEvent((0, import_node_path21.join)(path7, "events")),
|
|
2128
2216
|
/**
|
|
2129
2217
|
* Remove an event by an Event id
|
|
2130
2218
|
*
|
|
2131
2219
|
* @param id - The id of the event you want to remove
|
|
2132
2220
|
*
|
|
2133
2221
|
*/
|
|
2134
|
-
rmEventById: rmEventById((0,
|
|
2222
|
+
rmEventById: rmEventById((0, import_node_path21.join)(path7)),
|
|
2135
2223
|
/**
|
|
2136
2224
|
* Moves a given event id to the version directory
|
|
2137
2225
|
* @param directory
|
|
2138
2226
|
*/
|
|
2139
|
-
versionEvent: versionEvent((0,
|
|
2227
|
+
versionEvent: versionEvent((0, import_node_path21.join)(path7)),
|
|
2140
2228
|
/**
|
|
2141
2229
|
* Adds a file to the given event
|
|
2142
2230
|
* @param id - The id of the event to add the file to
|
|
@@ -2144,7 +2232,7 @@ var src_default = (path6) => {
|
|
|
2144
2232
|
* @param version - Optional version of the event to add the file to
|
|
2145
2233
|
* @returns
|
|
2146
2234
|
*/
|
|
2147
|
-
addFileToEvent: addFileToEvent((0,
|
|
2235
|
+
addFileToEvent: addFileToEvent((0, import_node_path21.join)(path7)),
|
|
2148
2236
|
/**
|
|
2149
2237
|
* Adds a schema to the given event
|
|
2150
2238
|
* @param id - The id of the event to add the schema to
|
|
@@ -2152,14 +2240,14 @@ var src_default = (path6) => {
|
|
|
2152
2240
|
* @param version - Optional version of the event to add the schema to
|
|
2153
2241
|
* @returns
|
|
2154
2242
|
*/
|
|
2155
|
-
addSchemaToEvent: addSchemaToEvent((0,
|
|
2243
|
+
addSchemaToEvent: addSchemaToEvent((0, import_node_path21.join)(path7)),
|
|
2156
2244
|
/**
|
|
2157
2245
|
* Check to see if an event version exists
|
|
2158
2246
|
* @param id - The id of the event
|
|
2159
2247
|
* @param version - The version of the event (supports semver)
|
|
2160
2248
|
* @returns
|
|
2161
2249
|
*/
|
|
2162
|
-
eventHasVersion: eventHasVersion((0,
|
|
2250
|
+
eventHasVersion: eventHasVersion((0, import_node_path21.join)(path7)),
|
|
2163
2251
|
/**
|
|
2164
2252
|
* ================================
|
|
2165
2253
|
* Commands
|
|
@@ -2171,13 +2259,13 @@ var src_default = (path6) => {
|
|
|
2171
2259
|
* @param version - Optional id of the version to get (supports semver)
|
|
2172
2260
|
* @returns Command|Undefined
|
|
2173
2261
|
*/
|
|
2174
|
-
getCommand: getCommand((0,
|
|
2262
|
+
getCommand: getCommand((0, import_node_path21.join)(path7)),
|
|
2175
2263
|
/**
|
|
2176
2264
|
* Returns all commands from EventCatalog
|
|
2177
2265
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2178
2266
|
* @returns Command[]|Undefined
|
|
2179
2267
|
*/
|
|
2180
|
-
getCommands: getCommands((0,
|
|
2268
|
+
getCommands: getCommands((0, import_node_path21.join)(path7)),
|
|
2181
2269
|
/**
|
|
2182
2270
|
* Adds an command to EventCatalog
|
|
2183
2271
|
*
|
|
@@ -2185,7 +2273,7 @@ var src_default = (path6) => {
|
|
|
2185
2273
|
* @param options - Optional options to write the command
|
|
2186
2274
|
*
|
|
2187
2275
|
*/
|
|
2188
|
-
writeCommand: writeCommand((0,
|
|
2276
|
+
writeCommand: writeCommand((0, import_node_path21.join)(path7, "commands")),
|
|
2189
2277
|
/**
|
|
2190
2278
|
* Adds a command to a service in EventCatalog
|
|
2191
2279
|
*
|
|
@@ -2194,26 +2282,26 @@ var src_default = (path6) => {
|
|
|
2194
2282
|
* @param options - Optional options to write the command
|
|
2195
2283
|
*
|
|
2196
2284
|
*/
|
|
2197
|
-
writeCommandToService: writeCommandToService((0,
|
|
2285
|
+
writeCommandToService: writeCommandToService((0, import_node_path21.join)(path7)),
|
|
2198
2286
|
/**
|
|
2199
2287
|
* Remove an command to EventCatalog (modeled on the standard POSIX rm utility)
|
|
2200
2288
|
*
|
|
2201
2289
|
* @param path - The path to your command, e.g. `/Inventory/InventoryAdjusted`
|
|
2202
2290
|
*
|
|
2203
2291
|
*/
|
|
2204
|
-
rmCommand: rmCommand((0,
|
|
2292
|
+
rmCommand: rmCommand((0, import_node_path21.join)(path7, "commands")),
|
|
2205
2293
|
/**
|
|
2206
2294
|
* Remove an command by an Event id
|
|
2207
2295
|
*
|
|
2208
2296
|
* @param id - The id of the command you want to remove
|
|
2209
2297
|
*
|
|
2210
2298
|
*/
|
|
2211
|
-
rmCommandById: rmCommandById((0,
|
|
2299
|
+
rmCommandById: rmCommandById((0, import_node_path21.join)(path7)),
|
|
2212
2300
|
/**
|
|
2213
2301
|
* Moves a given command id to the version directory
|
|
2214
2302
|
* @param directory
|
|
2215
2303
|
*/
|
|
2216
|
-
versionCommand: versionCommand((0,
|
|
2304
|
+
versionCommand: versionCommand((0, import_node_path21.join)(path7)),
|
|
2217
2305
|
/**
|
|
2218
2306
|
* Adds a file to the given command
|
|
2219
2307
|
* @param id - The id of the command to add the file to
|
|
@@ -2221,7 +2309,7 @@ var src_default = (path6) => {
|
|
|
2221
2309
|
* @param version - Optional version of the command to add the file to
|
|
2222
2310
|
* @returns
|
|
2223
2311
|
*/
|
|
2224
|
-
addFileToCommand: addFileToCommand((0,
|
|
2312
|
+
addFileToCommand: addFileToCommand((0, import_node_path21.join)(path7)),
|
|
2225
2313
|
/**
|
|
2226
2314
|
* Adds a schema to the given command
|
|
2227
2315
|
* @param id - The id of the command to add the schema to
|
|
@@ -2229,14 +2317,14 @@ var src_default = (path6) => {
|
|
|
2229
2317
|
* @param version - Optional version of the command to add the schema to
|
|
2230
2318
|
* @returns
|
|
2231
2319
|
*/
|
|
2232
|
-
addSchemaToCommand: addSchemaToCommand((0,
|
|
2320
|
+
addSchemaToCommand: addSchemaToCommand((0, import_node_path21.join)(path7)),
|
|
2233
2321
|
/**
|
|
2234
2322
|
* Check to see if a command version exists
|
|
2235
2323
|
* @param id - The id of the command
|
|
2236
2324
|
* @param version - The version of the command (supports semver)
|
|
2237
2325
|
* @returns
|
|
2238
2326
|
*/
|
|
2239
|
-
commandHasVersion: commandHasVersion((0,
|
|
2327
|
+
commandHasVersion: commandHasVersion((0, import_node_path21.join)(path7)),
|
|
2240
2328
|
/**
|
|
2241
2329
|
* ================================
|
|
2242
2330
|
* Queries
|
|
@@ -2248,13 +2336,13 @@ var src_default = (path6) => {
|
|
|
2248
2336
|
* @param version - Optional id of the version to get (supports semver)
|
|
2249
2337
|
* @returns Query|Undefined
|
|
2250
2338
|
*/
|
|
2251
|
-
getQuery: getQuery((0,
|
|
2339
|
+
getQuery: getQuery((0, import_node_path21.join)(path7)),
|
|
2252
2340
|
/**
|
|
2253
2341
|
* Returns all queries from EventCatalog
|
|
2254
2342
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2255
2343
|
* @returns Query[]|Undefined
|
|
2256
2344
|
*/
|
|
2257
|
-
getQueries: getQueries((0,
|
|
2345
|
+
getQueries: getQueries((0, import_node_path21.join)(path7)),
|
|
2258
2346
|
/**
|
|
2259
2347
|
* Adds a query to EventCatalog
|
|
2260
2348
|
*
|
|
@@ -2262,7 +2350,7 @@ var src_default = (path6) => {
|
|
|
2262
2350
|
* @param options - Optional options to write the event
|
|
2263
2351
|
*
|
|
2264
2352
|
*/
|
|
2265
|
-
writeQuery: writeQuery((0,
|
|
2353
|
+
writeQuery: writeQuery((0, import_node_path21.join)(path7, "queries")),
|
|
2266
2354
|
/**
|
|
2267
2355
|
* Adds a query to a service in EventCatalog
|
|
2268
2356
|
*
|
|
@@ -2271,26 +2359,26 @@ var src_default = (path6) => {
|
|
|
2271
2359
|
* @param options - Optional options to write the query
|
|
2272
2360
|
*
|
|
2273
2361
|
*/
|
|
2274
|
-
writeQueryToService: writeQueryToService((0,
|
|
2362
|
+
writeQueryToService: writeQueryToService((0, import_node_path21.join)(path7)),
|
|
2275
2363
|
/**
|
|
2276
2364
|
* Remove an query to EventCatalog (modeled on the standard POSIX rm utility)
|
|
2277
2365
|
*
|
|
2278
2366
|
* @param path - The path to your query, e.g. `/Orders/GetOrder`
|
|
2279
2367
|
*
|
|
2280
2368
|
*/
|
|
2281
|
-
rmQuery: rmQuery((0,
|
|
2369
|
+
rmQuery: rmQuery((0, import_node_path21.join)(path7, "queries")),
|
|
2282
2370
|
/**
|
|
2283
2371
|
* Remove a query by a Query id
|
|
2284
2372
|
*
|
|
2285
2373
|
* @param id - The id of the query you want to remove
|
|
2286
2374
|
*
|
|
2287
2375
|
*/
|
|
2288
|
-
rmQueryById: rmQueryById((0,
|
|
2376
|
+
rmQueryById: rmQueryById((0, import_node_path21.join)(path7)),
|
|
2289
2377
|
/**
|
|
2290
2378
|
* Moves a given query id to the version directory
|
|
2291
2379
|
* @param directory
|
|
2292
2380
|
*/
|
|
2293
|
-
versionQuery: versionQuery((0,
|
|
2381
|
+
versionQuery: versionQuery((0, import_node_path21.join)(path7)),
|
|
2294
2382
|
/**
|
|
2295
2383
|
* Adds a file to the given query
|
|
2296
2384
|
* @param id - The id of the query to add the file to
|
|
@@ -2298,7 +2386,7 @@ var src_default = (path6) => {
|
|
|
2298
2386
|
* @param version - Optional version of the query to add the file to
|
|
2299
2387
|
* @returns
|
|
2300
2388
|
*/
|
|
2301
|
-
addFileToQuery: addFileToQuery((0,
|
|
2389
|
+
addFileToQuery: addFileToQuery((0, import_node_path21.join)(path7)),
|
|
2302
2390
|
/**
|
|
2303
2391
|
* Adds a schema to the given query
|
|
2304
2392
|
* @param id - The id of the query to add the schema to
|
|
@@ -2306,14 +2394,14 @@ var src_default = (path6) => {
|
|
|
2306
2394
|
* @param version - Optional version of the query to add the schema to
|
|
2307
2395
|
* @returns
|
|
2308
2396
|
*/
|
|
2309
|
-
addSchemaToQuery: addSchemaToQuery((0,
|
|
2397
|
+
addSchemaToQuery: addSchemaToQuery((0, import_node_path21.join)(path7)),
|
|
2310
2398
|
/**
|
|
2311
2399
|
* Check to see if an query version exists
|
|
2312
2400
|
* @param id - The id of the query
|
|
2313
2401
|
* @param version - The version of the query (supports semver)
|
|
2314
2402
|
* @returns
|
|
2315
2403
|
*/
|
|
2316
|
-
queryHasVersion: queryHasVersion((0,
|
|
2404
|
+
queryHasVersion: queryHasVersion((0, import_node_path21.join)(path7)),
|
|
2317
2405
|
/**
|
|
2318
2406
|
* ================================
|
|
2319
2407
|
* Channels
|
|
@@ -2325,13 +2413,13 @@ var src_default = (path6) => {
|
|
|
2325
2413
|
* @param version - Optional id of the version to get (supports semver)
|
|
2326
2414
|
* @returns Channel|Undefined
|
|
2327
2415
|
*/
|
|
2328
|
-
getChannel: getChannel((0,
|
|
2416
|
+
getChannel: getChannel((0, import_node_path21.join)(path7)),
|
|
2329
2417
|
/**
|
|
2330
2418
|
* Returns all channels from EventCatalog
|
|
2331
2419
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2332
2420
|
* @returns Channel[]|Undefined
|
|
2333
2421
|
*/
|
|
2334
|
-
getChannels: getChannels((0,
|
|
2422
|
+
getChannels: getChannels((0, import_node_path21.join)(path7)),
|
|
2335
2423
|
/**
|
|
2336
2424
|
* Adds an channel to EventCatalog
|
|
2337
2425
|
*
|
|
@@ -2339,33 +2427,33 @@ var src_default = (path6) => {
|
|
|
2339
2427
|
* @param options - Optional options to write the channel
|
|
2340
2428
|
*
|
|
2341
2429
|
*/
|
|
2342
|
-
writeChannel: writeChannel((0,
|
|
2430
|
+
writeChannel: writeChannel((0, import_node_path21.join)(path7, "channels")),
|
|
2343
2431
|
/**
|
|
2344
2432
|
* Remove an channel to EventCatalog (modeled on the standard POSIX rm utility)
|
|
2345
2433
|
*
|
|
2346
2434
|
* @param path - The path to your channel, e.g. `/Inventory/InventoryAdjusted`
|
|
2347
2435
|
*
|
|
2348
2436
|
*/
|
|
2349
|
-
rmChannel: rmChannel((0,
|
|
2437
|
+
rmChannel: rmChannel((0, import_node_path21.join)(path7, "channels")),
|
|
2350
2438
|
/**
|
|
2351
2439
|
* Remove an channel by an Event id
|
|
2352
2440
|
*
|
|
2353
2441
|
* @param id - The id of the channel you want to remove
|
|
2354
2442
|
*
|
|
2355
2443
|
*/
|
|
2356
|
-
rmChannelById: rmChannelById((0,
|
|
2444
|
+
rmChannelById: rmChannelById((0, import_node_path21.join)(path7)),
|
|
2357
2445
|
/**
|
|
2358
2446
|
* Moves a given channel id to the version directory
|
|
2359
2447
|
* @param directory
|
|
2360
2448
|
*/
|
|
2361
|
-
versionChannel: versionChannel((0,
|
|
2449
|
+
versionChannel: versionChannel((0, import_node_path21.join)(path7)),
|
|
2362
2450
|
/**
|
|
2363
2451
|
* Check to see if a channel version exists
|
|
2364
2452
|
* @param id - The id of the channel
|
|
2365
2453
|
* @param version - The version of the channel (supports semver)
|
|
2366
2454
|
* @returns
|
|
2367
2455
|
*/
|
|
2368
|
-
channelHasVersion: channelHasVersion((0,
|
|
2456
|
+
channelHasVersion: channelHasVersion((0, import_node_path21.join)(path7)),
|
|
2369
2457
|
/**
|
|
2370
2458
|
* Add a channel to an event
|
|
2371
2459
|
*
|
|
@@ -2382,7 +2470,7 @@ var src_default = (path6) => {
|
|
|
2382
2470
|
*
|
|
2383
2471
|
* ```
|
|
2384
2472
|
*/
|
|
2385
|
-
addEventToChannel: addMessageToChannel((0,
|
|
2473
|
+
addEventToChannel: addMessageToChannel((0, import_node_path21.join)(path7), "events"),
|
|
2386
2474
|
/**
|
|
2387
2475
|
* Add a channel to an command
|
|
2388
2476
|
*
|
|
@@ -2399,7 +2487,7 @@ var src_default = (path6) => {
|
|
|
2399
2487
|
*
|
|
2400
2488
|
* ```
|
|
2401
2489
|
*/
|
|
2402
|
-
addCommandToChannel: addMessageToChannel((0,
|
|
2490
|
+
addCommandToChannel: addMessageToChannel((0, import_node_path21.join)(path7), "commands"),
|
|
2403
2491
|
/**
|
|
2404
2492
|
* Add a channel to an query
|
|
2405
2493
|
*
|
|
@@ -2416,7 +2504,7 @@ var src_default = (path6) => {
|
|
|
2416
2504
|
*
|
|
2417
2505
|
* ```
|
|
2418
2506
|
*/
|
|
2419
|
-
addQueryToChannel: addMessageToChannel((0,
|
|
2507
|
+
addQueryToChannel: addMessageToChannel((0, import_node_path21.join)(path7), "queries"),
|
|
2420
2508
|
/**
|
|
2421
2509
|
* ================================
|
|
2422
2510
|
* SERVICES
|
|
@@ -2429,14 +2517,14 @@ var src_default = (path6) => {
|
|
|
2429
2517
|
* @param options - Optional options to write the event
|
|
2430
2518
|
*
|
|
2431
2519
|
*/
|
|
2432
|
-
writeService: writeService((0,
|
|
2520
|
+
writeService: writeService((0, import_node_path21.join)(path7, "services")),
|
|
2433
2521
|
/**
|
|
2434
2522
|
* Adds a versioned service to EventCatalog
|
|
2435
2523
|
*
|
|
2436
2524
|
* @param service - The service to write
|
|
2437
2525
|
*
|
|
2438
2526
|
*/
|
|
2439
|
-
writeVersionedService: writeVersionedService((0,
|
|
2527
|
+
writeVersionedService: writeVersionedService((0, import_node_path21.join)(path7, "services")),
|
|
2440
2528
|
/**
|
|
2441
2529
|
* Adds a service to a domain in EventCatalog
|
|
2442
2530
|
*
|
|
@@ -2445,45 +2533,45 @@ var src_default = (path6) => {
|
|
|
2445
2533
|
* @param options - Optional options to write the event
|
|
2446
2534
|
*
|
|
2447
2535
|
*/
|
|
2448
|
-
writeServiceToDomain: writeServiceToDomain((0,
|
|
2536
|
+
writeServiceToDomain: writeServiceToDomain((0, import_node_path21.join)(path7, "domains")),
|
|
2449
2537
|
/**
|
|
2450
2538
|
* Returns a service from EventCatalog
|
|
2451
2539
|
* @param id - The id of the service to retrieve
|
|
2452
2540
|
* @param version - Optional id of the version to get (supports semver)
|
|
2453
2541
|
* @returns Service|Undefined
|
|
2454
2542
|
*/
|
|
2455
|
-
getService: getService((0,
|
|
2543
|
+
getService: getService((0, import_node_path21.join)(path7)),
|
|
2456
2544
|
/**
|
|
2457
2545
|
* Returns a service from EventCatalog by it's path.
|
|
2458
2546
|
* @param path - The path to the service to retrieve
|
|
2459
2547
|
* @returns Service|Undefined
|
|
2460
2548
|
*/
|
|
2461
|
-
getServiceByPath: getServiceByPath((0,
|
|
2549
|
+
getServiceByPath: getServiceByPath((0, import_node_path21.join)(path7)),
|
|
2462
2550
|
/**
|
|
2463
2551
|
* Returns all services from EventCatalog
|
|
2464
2552
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2465
2553
|
* @returns Service[]|Undefined
|
|
2466
2554
|
*/
|
|
2467
|
-
getServices: getServices((0,
|
|
2555
|
+
getServices: getServices((0, import_node_path21.join)(path7)),
|
|
2468
2556
|
/**
|
|
2469
2557
|
* Moves a given service id to the version directory
|
|
2470
2558
|
* @param directory
|
|
2471
2559
|
*/
|
|
2472
|
-
versionService: versionService((0,
|
|
2560
|
+
versionService: versionService((0, import_node_path21.join)(path7)),
|
|
2473
2561
|
/**
|
|
2474
2562
|
* Remove a service from EventCatalog (modeled on the standard POSIX rm utility)
|
|
2475
2563
|
*
|
|
2476
2564
|
* @param path - The path to your service, e.g. `/InventoryService`
|
|
2477
2565
|
*
|
|
2478
2566
|
*/
|
|
2479
|
-
rmService: rmService((0,
|
|
2567
|
+
rmService: rmService((0, import_node_path21.join)(path7, "services")),
|
|
2480
2568
|
/**
|
|
2481
2569
|
* Remove an service by an service id
|
|
2482
2570
|
*
|
|
2483
2571
|
* @param id - The id of the service you want to remove
|
|
2484
2572
|
*
|
|
2485
2573
|
*/
|
|
2486
|
-
rmServiceById: rmServiceById((0,
|
|
2574
|
+
rmServiceById: rmServiceById((0, import_node_path21.join)(path7)),
|
|
2487
2575
|
/**
|
|
2488
2576
|
* Adds a file to the given service
|
|
2489
2577
|
* @param id - The id of the service to add the file to
|
|
@@ -2491,21 +2579,21 @@ var src_default = (path6) => {
|
|
|
2491
2579
|
* @param version - Optional version of the service to add the file to
|
|
2492
2580
|
* @returns
|
|
2493
2581
|
*/
|
|
2494
|
-
addFileToService: addFileToService((0,
|
|
2582
|
+
addFileToService: addFileToService((0, import_node_path21.join)(path7)),
|
|
2495
2583
|
/**
|
|
2496
2584
|
* Returns the specifications for a given service
|
|
2497
2585
|
* @param id - The id of the service to retrieve the specifications for
|
|
2498
2586
|
* @param version - Optional version of the service
|
|
2499
2587
|
* @returns
|
|
2500
2588
|
*/
|
|
2501
|
-
getSpecificationFilesForService: getSpecificationFilesForService((0,
|
|
2589
|
+
getSpecificationFilesForService: getSpecificationFilesForService((0, import_node_path21.join)(path7)),
|
|
2502
2590
|
/**
|
|
2503
2591
|
* Check to see if a service version exists
|
|
2504
2592
|
* @param id - The id of the service
|
|
2505
2593
|
* @param version - The version of the service (supports semver)
|
|
2506
2594
|
* @returns
|
|
2507
2595
|
*/
|
|
2508
|
-
serviceHasVersion: serviceHasVersion((0,
|
|
2596
|
+
serviceHasVersion: serviceHasVersion((0, import_node_path21.join)(path7)),
|
|
2509
2597
|
/**
|
|
2510
2598
|
* Add an event to a service by it's id.
|
|
2511
2599
|
*
|
|
@@ -2525,7 +2613,7 @@ var src_default = (path6) => {
|
|
|
2525
2613
|
*
|
|
2526
2614
|
* ```
|
|
2527
2615
|
*/
|
|
2528
|
-
addEventToService: addMessageToService((0,
|
|
2616
|
+
addEventToService: addMessageToService((0, import_node_path21.join)(path7)),
|
|
2529
2617
|
/**
|
|
2530
2618
|
* Add a data store to a service by it's id.
|
|
2531
2619
|
*
|
|
@@ -2542,7 +2630,7 @@ var src_default = (path6) => {
|
|
|
2542
2630
|
*
|
|
2543
2631
|
* ```
|
|
2544
2632
|
*/
|
|
2545
|
-
addDataStoreToService: addDataStoreToService((0,
|
|
2633
|
+
addDataStoreToService: addDataStoreToService((0, import_node_path21.join)(path7)),
|
|
2546
2634
|
/**
|
|
2547
2635
|
* Add a command to a service by it's id.
|
|
2548
2636
|
*
|
|
@@ -2562,7 +2650,7 @@ var src_default = (path6) => {
|
|
|
2562
2650
|
*
|
|
2563
2651
|
* ```
|
|
2564
2652
|
*/
|
|
2565
|
-
addCommandToService: addMessageToService((0,
|
|
2653
|
+
addCommandToService: addMessageToService((0, import_node_path21.join)(path7)),
|
|
2566
2654
|
/**
|
|
2567
2655
|
* Add a query to a service by it's id.
|
|
2568
2656
|
*
|
|
@@ -2582,7 +2670,7 @@ var src_default = (path6) => {
|
|
|
2582
2670
|
*
|
|
2583
2671
|
* ```
|
|
2584
2672
|
*/
|
|
2585
|
-
addQueryToService: addMessageToService((0,
|
|
2673
|
+
addQueryToService: addMessageToService((0, import_node_path21.join)(path7)),
|
|
2586
2674
|
/**
|
|
2587
2675
|
* Add an entity to a service by its id.
|
|
2588
2676
|
*
|
|
@@ -2600,7 +2688,7 @@ var src_default = (path6) => {
|
|
|
2600
2688
|
*
|
|
2601
2689
|
* ```
|
|
2602
2690
|
*/
|
|
2603
|
-
addEntityToService: addEntityToService((0,
|
|
2691
|
+
addEntityToService: addEntityToService((0, import_node_path21.join)(path7)),
|
|
2604
2692
|
/**
|
|
2605
2693
|
* Check to see if a service exists by it's path.
|
|
2606
2694
|
*
|
|
@@ -2617,13 +2705,13 @@ var src_default = (path6) => {
|
|
|
2617
2705
|
* @param path - The path to the service to check
|
|
2618
2706
|
* @returns boolean
|
|
2619
2707
|
*/
|
|
2620
|
-
isService: isService((0,
|
|
2708
|
+
isService: isService((0, import_node_path21.join)(path7)),
|
|
2621
2709
|
/**
|
|
2622
2710
|
* Converts a file to a service.
|
|
2623
2711
|
* @param file - The file to convert to a service.
|
|
2624
2712
|
* @returns The service.
|
|
2625
2713
|
*/
|
|
2626
|
-
toService: toService((0,
|
|
2714
|
+
toService: toService((0, import_node_path21.join)(path7)),
|
|
2627
2715
|
/**
|
|
2628
2716
|
* ================================
|
|
2629
2717
|
* Domains
|
|
@@ -2636,39 +2724,39 @@ var src_default = (path6) => {
|
|
|
2636
2724
|
* @param options - Optional options to write the event
|
|
2637
2725
|
*
|
|
2638
2726
|
*/
|
|
2639
|
-
writeDomain: writeDomain((0,
|
|
2727
|
+
writeDomain: writeDomain((0, import_node_path21.join)(path7, "domains")),
|
|
2640
2728
|
/**
|
|
2641
2729
|
* Returns a domain from EventCatalog
|
|
2642
2730
|
* @param id - The id of the domain to retrieve
|
|
2643
2731
|
* @param version - Optional id of the version to get (supports semver)
|
|
2644
2732
|
* @returns Domain|Undefined
|
|
2645
2733
|
*/
|
|
2646
|
-
getDomain: getDomain((0,
|
|
2734
|
+
getDomain: getDomain((0, import_node_path21.join)(path7, "domains")),
|
|
2647
2735
|
/**
|
|
2648
2736
|
* Returns all domains from EventCatalog
|
|
2649
2737
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2650
2738
|
* @returns Domain[]|Undefined
|
|
2651
2739
|
*/
|
|
2652
|
-
getDomains: getDomains((0,
|
|
2740
|
+
getDomains: getDomains((0, import_node_path21.join)(path7)),
|
|
2653
2741
|
/**
|
|
2654
2742
|
* Moves a given domain id to the version directory
|
|
2655
2743
|
* @param directory
|
|
2656
2744
|
*/
|
|
2657
|
-
versionDomain: versionDomain((0,
|
|
2745
|
+
versionDomain: versionDomain((0, import_node_path21.join)(path7, "domains")),
|
|
2658
2746
|
/**
|
|
2659
2747
|
* Remove a domain from EventCatalog (modeled on the standard POSIX rm utility)
|
|
2660
2748
|
*
|
|
2661
2749
|
* @param path - The path to your domain, e.g. `/Payment`
|
|
2662
2750
|
*
|
|
2663
2751
|
*/
|
|
2664
|
-
rmDomain: rmDomain((0,
|
|
2752
|
+
rmDomain: rmDomain((0, import_node_path21.join)(path7, "domains")),
|
|
2665
2753
|
/**
|
|
2666
2754
|
* Remove an service by an domain id
|
|
2667
2755
|
*
|
|
2668
2756
|
* @param id - The id of the domain you want to remove
|
|
2669
2757
|
*
|
|
2670
2758
|
*/
|
|
2671
|
-
rmDomainById: rmDomainById((0,
|
|
2759
|
+
rmDomainById: rmDomainById((0, import_node_path21.join)(path7, "domains")),
|
|
2672
2760
|
/**
|
|
2673
2761
|
* Adds a file to the given domain
|
|
2674
2762
|
* @param id - The id of the domain to add the file to
|
|
@@ -2676,28 +2764,28 @@ var src_default = (path6) => {
|
|
|
2676
2764
|
* @param version - Optional version of the domain to add the file to
|
|
2677
2765
|
* @returns
|
|
2678
2766
|
*/
|
|
2679
|
-
addFileToDomain: addFileToDomain((0,
|
|
2767
|
+
addFileToDomain: addFileToDomain((0, import_node_path21.join)(path7, "domains")),
|
|
2680
2768
|
/**
|
|
2681
2769
|
* Adds an ubiquitous language dictionary to a domain
|
|
2682
2770
|
* @param id - The id of the domain to add the ubiquitous language to
|
|
2683
2771
|
* @param ubiquitousLanguageDictionary - The ubiquitous language dictionary to add
|
|
2684
2772
|
* @param version - Optional version of the domain to add the ubiquitous language to
|
|
2685
2773
|
*/
|
|
2686
|
-
addUbiquitousLanguageToDomain: addUbiquitousLanguageToDomain((0,
|
|
2774
|
+
addUbiquitousLanguageToDomain: addUbiquitousLanguageToDomain((0, import_node_path21.join)(path7, "domains")),
|
|
2687
2775
|
/**
|
|
2688
2776
|
* Get the ubiquitous language dictionary from a domain
|
|
2689
2777
|
* @param id - The id of the domain to get the ubiquitous language from
|
|
2690
2778
|
* @param version - Optional version of the domain to get the ubiquitous language from
|
|
2691
2779
|
* @returns
|
|
2692
2780
|
*/
|
|
2693
|
-
getUbiquitousLanguageFromDomain: getUbiquitousLanguageFromDomain((0,
|
|
2781
|
+
getUbiquitousLanguageFromDomain: getUbiquitousLanguageFromDomain((0, import_node_path21.join)(path7, "domains")),
|
|
2694
2782
|
/**
|
|
2695
2783
|
* Check to see if a domain version exists
|
|
2696
2784
|
* @param id - The id of the domain
|
|
2697
2785
|
* @param version - The version of the domain (supports semver)
|
|
2698
2786
|
* @returns
|
|
2699
2787
|
*/
|
|
2700
|
-
domainHasVersion: domainHasVersion((0,
|
|
2788
|
+
domainHasVersion: domainHasVersion((0, import_node_path21.join)(path7)),
|
|
2701
2789
|
/**
|
|
2702
2790
|
* Adds a given service to a domain
|
|
2703
2791
|
* @param id - The id of the domain
|
|
@@ -2705,7 +2793,7 @@ var src_default = (path6) => {
|
|
|
2705
2793
|
* @param version - (Optional) The version of the domain to add the service to
|
|
2706
2794
|
* @returns
|
|
2707
2795
|
*/
|
|
2708
|
-
addServiceToDomain: addServiceToDomain((0,
|
|
2796
|
+
addServiceToDomain: addServiceToDomain((0, import_node_path21.join)(path7, "domains")),
|
|
2709
2797
|
/**
|
|
2710
2798
|
* Adds a given subdomain to a domain
|
|
2711
2799
|
* @param id - The id of the domain
|
|
@@ -2713,7 +2801,7 @@ var src_default = (path6) => {
|
|
|
2713
2801
|
* @param version - (Optional) The version of the domain to add the subdomain to
|
|
2714
2802
|
* @returns
|
|
2715
2803
|
*/
|
|
2716
|
-
addSubDomainToDomain: addSubDomainToDomain((0,
|
|
2804
|
+
addSubDomainToDomain: addSubDomainToDomain((0, import_node_path21.join)(path7, "domains")),
|
|
2717
2805
|
/**
|
|
2718
2806
|
* Adds an entity to a domain
|
|
2719
2807
|
* @param id - The id of the domain
|
|
@@ -2721,7 +2809,7 @@ var src_default = (path6) => {
|
|
|
2721
2809
|
* @param version - (Optional) The version of the domain to add the entity to
|
|
2722
2810
|
* @returns
|
|
2723
2811
|
*/
|
|
2724
|
-
addEntityToDomain: addEntityToDomain((0,
|
|
2812
|
+
addEntityToDomain: addEntityToDomain((0, import_node_path21.join)(path7, "domains")),
|
|
2725
2813
|
/**
|
|
2726
2814
|
* Add an event to a domain by its id.
|
|
2727
2815
|
*
|
|
@@ -2739,7 +2827,7 @@ var src_default = (path6) => {
|
|
|
2739
2827
|
*
|
|
2740
2828
|
* ```
|
|
2741
2829
|
*/
|
|
2742
|
-
addEventToDomain: addMessageToDomain((0,
|
|
2830
|
+
addEventToDomain: addMessageToDomain((0, import_node_path21.join)(path7, "domains")),
|
|
2743
2831
|
/**
|
|
2744
2832
|
* Add a command to a domain by its id.
|
|
2745
2833
|
*
|
|
@@ -2757,7 +2845,7 @@ var src_default = (path6) => {
|
|
|
2757
2845
|
*
|
|
2758
2846
|
* ```
|
|
2759
2847
|
*/
|
|
2760
|
-
addCommandToDomain: addMessageToDomain((0,
|
|
2848
|
+
addCommandToDomain: addMessageToDomain((0, import_node_path21.join)(path7, "domains")),
|
|
2761
2849
|
/**
|
|
2762
2850
|
* Add a query to a domain by its id.
|
|
2763
2851
|
*
|
|
@@ -2775,7 +2863,7 @@ var src_default = (path6) => {
|
|
|
2775
2863
|
*
|
|
2776
2864
|
* ```
|
|
2777
2865
|
*/
|
|
2778
|
-
addQueryToDomain: addMessageToDomain((0,
|
|
2866
|
+
addQueryToDomain: addMessageToDomain((0, import_node_path21.join)(path7, "domains")),
|
|
2779
2867
|
/**
|
|
2780
2868
|
* ================================
|
|
2781
2869
|
* Teams
|
|
@@ -2788,25 +2876,25 @@ var src_default = (path6) => {
|
|
|
2788
2876
|
* @param options - Optional options to write the team
|
|
2789
2877
|
*
|
|
2790
2878
|
*/
|
|
2791
|
-
writeTeam: writeTeam((0,
|
|
2879
|
+
writeTeam: writeTeam((0, import_node_path21.join)(path7, "teams")),
|
|
2792
2880
|
/**
|
|
2793
2881
|
* Returns a team from EventCatalog
|
|
2794
2882
|
* @param id - The id of the team to retrieve
|
|
2795
2883
|
* @returns Team|Undefined
|
|
2796
2884
|
*/
|
|
2797
|
-
getTeam: getTeam((0,
|
|
2885
|
+
getTeam: getTeam((0, import_node_path21.join)(path7, "teams")),
|
|
2798
2886
|
/**
|
|
2799
2887
|
* Returns all teams from EventCatalog
|
|
2800
2888
|
* @returns Team[]|Undefined
|
|
2801
2889
|
*/
|
|
2802
|
-
getTeams: getTeams((0,
|
|
2890
|
+
getTeams: getTeams((0, import_node_path21.join)(path7, "teams")),
|
|
2803
2891
|
/**
|
|
2804
2892
|
* Remove a team by the team id
|
|
2805
2893
|
*
|
|
2806
2894
|
* @param id - The id of the team you want to remove
|
|
2807
2895
|
*
|
|
2808
2896
|
*/
|
|
2809
|
-
rmTeamById: rmTeamById((0,
|
|
2897
|
+
rmTeamById: rmTeamById((0, import_node_path21.join)(path7, "teams")),
|
|
2810
2898
|
/**
|
|
2811
2899
|
* ================================
|
|
2812
2900
|
* Users
|
|
@@ -2819,25 +2907,25 @@ var src_default = (path6) => {
|
|
|
2819
2907
|
* @param options - Optional options to write the user
|
|
2820
2908
|
*
|
|
2821
2909
|
*/
|
|
2822
|
-
writeUser: writeUser((0,
|
|
2910
|
+
writeUser: writeUser((0, import_node_path21.join)(path7, "users")),
|
|
2823
2911
|
/**
|
|
2824
2912
|
* Returns a user from EventCatalog
|
|
2825
2913
|
* @param id - The id of the user to retrieve
|
|
2826
2914
|
* @returns User|Undefined
|
|
2827
2915
|
*/
|
|
2828
|
-
getUser: getUser((0,
|
|
2916
|
+
getUser: getUser((0, import_node_path21.join)(path7, "users")),
|
|
2829
2917
|
/**
|
|
2830
2918
|
* Returns all user from EventCatalog
|
|
2831
2919
|
* @returns User[]|Undefined
|
|
2832
2920
|
*/
|
|
2833
|
-
getUsers: getUsers((0,
|
|
2921
|
+
getUsers: getUsers((0, import_node_path21.join)(path7)),
|
|
2834
2922
|
/**
|
|
2835
2923
|
* Remove a user by the user id
|
|
2836
2924
|
*
|
|
2837
2925
|
* @param id - The id of the user you want to remove
|
|
2838
2926
|
*
|
|
2839
2927
|
*/
|
|
2840
|
-
rmUserById: rmUserById((0,
|
|
2928
|
+
rmUserById: rmUserById((0, import_node_path21.join)(path7, "users")),
|
|
2841
2929
|
/**
|
|
2842
2930
|
* ================================
|
|
2843
2931
|
* Custom Docs
|
|
@@ -2848,32 +2936,32 @@ var src_default = (path6) => {
|
|
|
2848
2936
|
* @param path - The path to the custom doc to retrieve
|
|
2849
2937
|
* @returns CustomDoc|Undefined
|
|
2850
2938
|
*/
|
|
2851
|
-
getCustomDoc: getCustomDoc((0,
|
|
2939
|
+
getCustomDoc: getCustomDoc((0, import_node_path21.join)(path7, "docs")),
|
|
2852
2940
|
/**
|
|
2853
2941
|
* Returns all custom docs from EventCatalog
|
|
2854
2942
|
* @param options - Optional options to get custom docs from a specific path
|
|
2855
2943
|
* @returns CustomDoc[]|Undefined
|
|
2856
2944
|
*/
|
|
2857
|
-
getCustomDocs: getCustomDocs((0,
|
|
2945
|
+
getCustomDocs: getCustomDocs((0, import_node_path21.join)(path7, "docs")),
|
|
2858
2946
|
/**
|
|
2859
2947
|
* Writes a custom doc to EventCatalog
|
|
2860
2948
|
* @param customDoc - The custom doc to write
|
|
2861
2949
|
* @param options - Optional options to write the custom doc
|
|
2862
2950
|
*
|
|
2863
2951
|
*/
|
|
2864
|
-
writeCustomDoc: writeCustomDoc((0,
|
|
2952
|
+
writeCustomDoc: writeCustomDoc((0, import_node_path21.join)(path7, "docs")),
|
|
2865
2953
|
/**
|
|
2866
2954
|
* Removes a custom doc from EventCatalog
|
|
2867
2955
|
* @param path - The path to the custom doc to remove
|
|
2868
2956
|
*
|
|
2869
2957
|
*/
|
|
2870
|
-
rmCustomDoc: rmCustomDoc((0,
|
|
2958
|
+
rmCustomDoc: rmCustomDoc((0, import_node_path21.join)(path7, "docs")),
|
|
2871
2959
|
/**
|
|
2872
2960
|
* Dumps the catalog to a JSON file.
|
|
2873
2961
|
* @param directory - The directory to dump the catalog to
|
|
2874
2962
|
* @returns A JSON file with the catalog
|
|
2875
2963
|
*/
|
|
2876
|
-
dumpCatalog: dumpCatalog((0,
|
|
2964
|
+
dumpCatalog: dumpCatalog((0, import_node_path21.join)(path7)),
|
|
2877
2965
|
/**
|
|
2878
2966
|
* Returns the event catalog configuration file.
|
|
2879
2967
|
* The event catalog configuration file is the file that contains the configuration for the event catalog.
|
|
@@ -2881,7 +2969,47 @@ var src_default = (path6) => {
|
|
|
2881
2969
|
* @param directory - The directory of the catalog.
|
|
2882
2970
|
* @returns A JSON object with the configuration for the event catalog.
|
|
2883
2971
|
*/
|
|
2884
|
-
getEventCatalogConfigurationFile: getEventCatalogConfigurationFile((0,
|
|
2972
|
+
getEventCatalogConfigurationFile: getEventCatalogConfigurationFile((0, import_node_path21.join)(path7)),
|
|
2973
|
+
/**
|
|
2974
|
+
* ================================
|
|
2975
|
+
* Changelogs
|
|
2976
|
+
* ================================
|
|
2977
|
+
*/
|
|
2978
|
+
/**
|
|
2979
|
+
* Writes a changelog entry to a resource in EventCatalog
|
|
2980
|
+
*
|
|
2981
|
+
* @param id - The id of the resource to write the changelog to
|
|
2982
|
+
* @param changelog - The changelog entry to write
|
|
2983
|
+
* @param options - Optional options (version, format)
|
|
2984
|
+
*
|
|
2985
|
+
*/
|
|
2986
|
+
writeChangelog: writeChangelog((0, import_node_path21.join)(path7)),
|
|
2987
|
+
/**
|
|
2988
|
+
* Appends a changelog entry to an existing changelog for a resource.
|
|
2989
|
+
* If no changelog exists, one is created.
|
|
2990
|
+
*
|
|
2991
|
+
* @param id - The id of the resource to append the changelog to
|
|
2992
|
+
* @param changelog - The changelog entry to append
|
|
2993
|
+
* @param options - Optional options (version, format)
|
|
2994
|
+
*
|
|
2995
|
+
*/
|
|
2996
|
+
appendChangelog: appendChangelog((0, import_node_path21.join)(path7)),
|
|
2997
|
+
/**
|
|
2998
|
+
* Returns the changelog for a resource in EventCatalog
|
|
2999
|
+
*
|
|
3000
|
+
* @param id - The id of the resource to get the changelog for
|
|
3001
|
+
* @param options - Optional options (version)
|
|
3002
|
+
* @returns Changelog|Undefined
|
|
3003
|
+
*/
|
|
3004
|
+
getChangelog: getChangelog((0, import_node_path21.join)(path7)),
|
|
3005
|
+
/**
|
|
3006
|
+
* Removes the changelog for a resource in EventCatalog
|
|
3007
|
+
*
|
|
3008
|
+
* @param id - The id of the resource to remove the changelog from
|
|
3009
|
+
* @param options - Optional options (version)
|
|
3010
|
+
*
|
|
3011
|
+
*/
|
|
3012
|
+
rmChangelog: rmChangelog((0, import_node_path21.join)(path7)),
|
|
2885
3013
|
/**
|
|
2886
3014
|
* ================================
|
|
2887
3015
|
* Resources Utils
|
|
@@ -2906,33 +3034,33 @@ var src_default = (path6) => {
|
|
|
2906
3034
|
* @param path - The path to the message to retrieve
|
|
2907
3035
|
* @returns Message|Undefined
|
|
2908
3036
|
*/
|
|
2909
|
-
getMessageBySchemaPath: getMessageBySchemaPath((0,
|
|
3037
|
+
getMessageBySchemaPath: getMessageBySchemaPath((0, import_node_path21.join)(path7)),
|
|
2910
3038
|
/**
|
|
2911
3039
|
* Returns the producers and consumers (services) for a given message
|
|
2912
3040
|
* @param id - The id of the message to get the producers and consumers for
|
|
2913
3041
|
* @param version - Optional version of the message
|
|
2914
3042
|
* @returns { producers: Service[], consumers: Service[] }
|
|
2915
3043
|
*/
|
|
2916
|
-
getProducersAndConsumersForMessage: getProducersAndConsumersForMessage((0,
|
|
3044
|
+
getProducersAndConsumersForMessage: getProducersAndConsumersForMessage((0, import_node_path21.join)(path7)),
|
|
2917
3045
|
/**
|
|
2918
3046
|
* Returns the consumers of a given schema path
|
|
2919
3047
|
* @param path - The path to the schema to get the consumers for
|
|
2920
3048
|
* @returns Service[]
|
|
2921
3049
|
*/
|
|
2922
|
-
getConsumersOfSchema: getConsumersOfSchema((0,
|
|
3050
|
+
getConsumersOfSchema: getConsumersOfSchema((0, import_node_path21.join)(path7)),
|
|
2923
3051
|
/**
|
|
2924
3052
|
* Returns the producers of a given schema path
|
|
2925
3053
|
* @param path - The path to the schema to get the producers for
|
|
2926
3054
|
* @returns Service[]
|
|
2927
3055
|
*/
|
|
2928
|
-
getProducersOfSchema: getProducersOfSchema((0,
|
|
3056
|
+
getProducersOfSchema: getProducersOfSchema((0, import_node_path21.join)(path7)),
|
|
2929
3057
|
/**
|
|
2930
3058
|
* Returns the owners for a given resource (e.g domain, service, event, command, query, etc.)
|
|
2931
3059
|
* @param id - The id of the resource to get the owners for
|
|
2932
3060
|
* @param version - Optional version of the resource
|
|
2933
3061
|
* @returns { owners: User[] }
|
|
2934
3062
|
*/
|
|
2935
|
-
getOwnersForResource: getOwnersForResource((0,
|
|
3063
|
+
getOwnersForResource: getOwnersForResource((0, import_node_path21.join)(path7)),
|
|
2936
3064
|
/**
|
|
2937
3065
|
* ================================
|
|
2938
3066
|
* Entities
|
|
@@ -2944,13 +3072,13 @@ var src_default = (path6) => {
|
|
|
2944
3072
|
* @param version - Optional id of the version to get (supports semver)
|
|
2945
3073
|
* @returns Entity|Undefined
|
|
2946
3074
|
*/
|
|
2947
|
-
getEntity: getEntity((0,
|
|
3075
|
+
getEntity: getEntity((0, import_node_path21.join)(path7)),
|
|
2948
3076
|
/**
|
|
2949
3077
|
* Returns all entities from EventCatalog
|
|
2950
3078
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2951
3079
|
* @returns Entity[]|Undefined
|
|
2952
3080
|
*/
|
|
2953
|
-
getEntities: getEntities((0,
|
|
3081
|
+
getEntities: getEntities((0, import_node_path21.join)(path7)),
|
|
2954
3082
|
/**
|
|
2955
3083
|
* Adds an entity to EventCatalog
|
|
2956
3084
|
*
|
|
@@ -2958,33 +3086,33 @@ var src_default = (path6) => {
|
|
|
2958
3086
|
* @param options - Optional options to write the entity
|
|
2959
3087
|
*
|
|
2960
3088
|
*/
|
|
2961
|
-
writeEntity: writeEntity((0,
|
|
3089
|
+
writeEntity: writeEntity((0, import_node_path21.join)(path7, "entities")),
|
|
2962
3090
|
/**
|
|
2963
3091
|
* Remove an entity from EventCatalog (modeled on the standard POSIX rm utility)
|
|
2964
3092
|
*
|
|
2965
3093
|
* @param path - The path to your entity, e.g. `/User`
|
|
2966
3094
|
*
|
|
2967
3095
|
*/
|
|
2968
|
-
rmEntity: rmEntity((0,
|
|
3096
|
+
rmEntity: rmEntity((0, import_node_path21.join)(path7, "entities")),
|
|
2969
3097
|
/**
|
|
2970
3098
|
* Remove an entity by an entity id
|
|
2971
3099
|
*
|
|
2972
3100
|
* @param id - The id of the entity you want to remove
|
|
2973
3101
|
*
|
|
2974
3102
|
*/
|
|
2975
|
-
rmEntityById: rmEntityById((0,
|
|
3103
|
+
rmEntityById: rmEntityById((0, import_node_path21.join)(path7)),
|
|
2976
3104
|
/**
|
|
2977
3105
|
* Moves a given entity id to the version directory
|
|
2978
3106
|
* @param id - The id of the entity to version
|
|
2979
3107
|
*/
|
|
2980
|
-
versionEntity: versionEntity((0,
|
|
3108
|
+
versionEntity: versionEntity((0, import_node_path21.join)(path7)),
|
|
2981
3109
|
/**
|
|
2982
3110
|
* Check to see if an entity version exists
|
|
2983
3111
|
* @param id - The id of the entity
|
|
2984
3112
|
* @param version - The version of the entity (supports semver)
|
|
2985
3113
|
* @returns
|
|
2986
3114
|
*/
|
|
2987
|
-
entityHasVersion: entityHasVersion((0,
|
|
3115
|
+
entityHasVersion: entityHasVersion((0, import_node_path21.join)(path7)),
|
|
2988
3116
|
/**
|
|
2989
3117
|
* ================================
|
|
2990
3118
|
* Data Stores
|
|
@@ -2996,42 +3124,42 @@ var src_default = (path6) => {
|
|
|
2996
3124
|
* @param options - Optional options to write the data store
|
|
2997
3125
|
*
|
|
2998
3126
|
*/
|
|
2999
|
-
writeDataStore: writeDataStore((0,
|
|
3127
|
+
writeDataStore: writeDataStore((0, import_node_path21.join)(path7, "containers")),
|
|
3000
3128
|
/**
|
|
3001
3129
|
* Returns a data store from EventCatalog
|
|
3002
3130
|
* @param id - The id of the data store to retrieve
|
|
3003
3131
|
* @param version - Optional id of the version to get (supports semver)
|
|
3004
3132
|
* @returns Container|Undefined
|
|
3005
3133
|
*/
|
|
3006
|
-
getDataStore: getDataStore((0,
|
|
3134
|
+
getDataStore: getDataStore((0, import_node_path21.join)(path7)),
|
|
3007
3135
|
/**
|
|
3008
3136
|
* Returns all data stores from EventCatalog
|
|
3009
3137
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
3010
3138
|
* @returns Container[]|Undefined
|
|
3011
3139
|
*/
|
|
3012
|
-
getDataStores: getDataStores((0,
|
|
3140
|
+
getDataStores: getDataStores((0, import_node_path21.join)(path7)),
|
|
3013
3141
|
/**
|
|
3014
3142
|
* Version a data store by its id
|
|
3015
3143
|
* @param id - The id of the data store to version
|
|
3016
3144
|
*/
|
|
3017
|
-
versionDataStore: versionDataStore((0,
|
|
3145
|
+
versionDataStore: versionDataStore((0, import_node_path21.join)(path7, "containers")),
|
|
3018
3146
|
/**
|
|
3019
3147
|
* Remove a data store by its path
|
|
3020
3148
|
* @param path - The path to the data store to remove
|
|
3021
3149
|
*/
|
|
3022
|
-
rmDataStore: rmDataStore((0,
|
|
3150
|
+
rmDataStore: rmDataStore((0, import_node_path21.join)(path7, "containers")),
|
|
3023
3151
|
/**
|
|
3024
3152
|
* Remove a data store by its id
|
|
3025
3153
|
* @param id - The id of the data store to remove
|
|
3026
3154
|
*/
|
|
3027
|
-
rmDataStoreById: rmDataStoreById((0,
|
|
3155
|
+
rmDataStoreById: rmDataStoreById((0, import_node_path21.join)(path7)),
|
|
3028
3156
|
/**
|
|
3029
3157
|
* Check to see if a data store version exists
|
|
3030
3158
|
* @param id - The id of the data store
|
|
3031
3159
|
* @param version - The version of the data store (supports semver)
|
|
3032
3160
|
* @returns
|
|
3033
3161
|
*/
|
|
3034
|
-
dataStoreHasVersion: dataStoreHasVersion((0,
|
|
3162
|
+
dataStoreHasVersion: dataStoreHasVersion((0, import_node_path21.join)(path7)),
|
|
3035
3163
|
/**
|
|
3036
3164
|
* Adds a file to a data store by its id
|
|
3037
3165
|
* @param id - The id of the data store to add the file to
|
|
@@ -3039,14 +3167,14 @@ var src_default = (path6) => {
|
|
|
3039
3167
|
* @param version - Optional version of the data store to add the file to
|
|
3040
3168
|
* @returns
|
|
3041
3169
|
*/
|
|
3042
|
-
addFileToDataStore: addFileToDataStore((0,
|
|
3170
|
+
addFileToDataStore: addFileToDataStore((0, import_node_path21.join)(path7)),
|
|
3043
3171
|
/**
|
|
3044
3172
|
* Writes a data store to a service by its id
|
|
3045
3173
|
* @param dataStore - The data store to write
|
|
3046
3174
|
* @param service - The service to write the data store to
|
|
3047
3175
|
* @returns
|
|
3048
3176
|
*/
|
|
3049
|
-
writeDataStoreToService: writeDataStoreToService((0,
|
|
3177
|
+
writeDataStoreToService: writeDataStoreToService((0, import_node_path21.join)(path7)),
|
|
3050
3178
|
/**
|
|
3051
3179
|
* ================================
|
|
3052
3180
|
* Data Products
|
|
@@ -3058,7 +3186,7 @@ var src_default = (path6) => {
|
|
|
3058
3186
|
* @param options - Optional options to write the data product
|
|
3059
3187
|
*
|
|
3060
3188
|
*/
|
|
3061
|
-
writeDataProduct: writeDataProduct((0,
|
|
3189
|
+
writeDataProduct: writeDataProduct((0, import_node_path21.join)(path7, "data-products")),
|
|
3062
3190
|
/**
|
|
3063
3191
|
* Writes a data product to a domain in EventCatalog
|
|
3064
3192
|
* @param dataProduct - The data product to write
|
|
@@ -3066,43 +3194,43 @@ var src_default = (path6) => {
|
|
|
3066
3194
|
* @param options - Optional options to write the data product
|
|
3067
3195
|
*
|
|
3068
3196
|
*/
|
|
3069
|
-
writeDataProductToDomain: writeDataProductToDomain((0,
|
|
3197
|
+
writeDataProductToDomain: writeDataProductToDomain((0, import_node_path21.join)(path7, "domains")),
|
|
3070
3198
|
/**
|
|
3071
3199
|
* Returns a data product from EventCatalog
|
|
3072
3200
|
* @param id - The id of the data product to retrieve
|
|
3073
3201
|
* @param version - Optional id of the version to get (supports semver)
|
|
3074
3202
|
* @returns DataProduct|Undefined
|
|
3075
3203
|
*/
|
|
3076
|
-
getDataProduct: getDataProduct((0,
|
|
3204
|
+
getDataProduct: getDataProduct((0, import_node_path21.join)(path7)),
|
|
3077
3205
|
/**
|
|
3078
3206
|
* Returns all data products from EventCatalog
|
|
3079
3207
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
3080
3208
|
* @returns DataProduct[]|Undefined
|
|
3081
3209
|
*/
|
|
3082
|
-
getDataProducts: getDataProducts((0,
|
|
3210
|
+
getDataProducts: getDataProducts((0, import_node_path21.join)(path7)),
|
|
3083
3211
|
/**
|
|
3084
3212
|
* Version a data product by its id
|
|
3085
3213
|
* @param id - The id of the data product to version
|
|
3086
3214
|
*/
|
|
3087
|
-
versionDataProduct: versionDataProduct((0,
|
|
3215
|
+
versionDataProduct: versionDataProduct((0, import_node_path21.join)(path7)),
|
|
3088
3216
|
/**
|
|
3089
3217
|
* Remove a data product by its path
|
|
3090
3218
|
* @param path - The path to the data product to remove
|
|
3091
3219
|
*/
|
|
3092
|
-
rmDataProduct: rmDataProduct((0,
|
|
3220
|
+
rmDataProduct: rmDataProduct((0, import_node_path21.join)(path7, "data-products")),
|
|
3093
3221
|
/**
|
|
3094
3222
|
* Remove a data product by its id
|
|
3095
3223
|
* @param id - The id of the data product to remove
|
|
3096
3224
|
* @param version - Optional version of the data product to remove
|
|
3097
3225
|
*/
|
|
3098
|
-
rmDataProductById: rmDataProductById((0,
|
|
3226
|
+
rmDataProductById: rmDataProductById((0, import_node_path21.join)(path7)),
|
|
3099
3227
|
/**
|
|
3100
3228
|
* Check to see if a data product version exists
|
|
3101
3229
|
* @param id - The id of the data product
|
|
3102
3230
|
* @param version - The version of the data product (supports semver)
|
|
3103
3231
|
* @returns
|
|
3104
3232
|
*/
|
|
3105
|
-
dataProductHasVersion: dataProductHasVersion((0,
|
|
3233
|
+
dataProductHasVersion: dataProductHasVersion((0, import_node_path21.join)(path7)),
|
|
3106
3234
|
/**
|
|
3107
3235
|
* Adds a file to a data product by its id
|
|
3108
3236
|
* @param id - The id of the data product to add the file to
|
|
@@ -3110,7 +3238,7 @@ var src_default = (path6) => {
|
|
|
3110
3238
|
* @param version - Optional version of the data product to add the file to
|
|
3111
3239
|
* @returns
|
|
3112
3240
|
*/
|
|
3113
|
-
addFileToDataProduct: addFileToDataProduct((0,
|
|
3241
|
+
addFileToDataProduct: addFileToDataProduct((0, import_node_path21.join)(path7)),
|
|
3114
3242
|
/**
|
|
3115
3243
|
* Adds a data product to a domain
|
|
3116
3244
|
* @param id - The id of the domain
|
|
@@ -3118,7 +3246,7 @@ var src_default = (path6) => {
|
|
|
3118
3246
|
* @param version - (Optional) The version of the domain to add the data product to
|
|
3119
3247
|
* @returns
|
|
3120
3248
|
*/
|
|
3121
|
-
addDataProductToDomain: addDataProductToDomain((0,
|
|
3249
|
+
addDataProductToDomain: addDataProductToDomain((0, import_node_path21.join)(path7, "domains")),
|
|
3122
3250
|
/**
|
|
3123
3251
|
* ================================
|
|
3124
3252
|
* Diagrams
|
|
@@ -3130,13 +3258,13 @@ var src_default = (path6) => {
|
|
|
3130
3258
|
* @param version - Optional id of the version to get (supports semver)
|
|
3131
3259
|
* @returns Diagram|Undefined
|
|
3132
3260
|
*/
|
|
3133
|
-
getDiagram: getDiagram((0,
|
|
3261
|
+
getDiagram: getDiagram((0, import_node_path21.join)(path7)),
|
|
3134
3262
|
/**
|
|
3135
3263
|
* Returns all diagrams from EventCatalog
|
|
3136
3264
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
3137
3265
|
* @returns Diagram[]|Undefined
|
|
3138
3266
|
*/
|
|
3139
|
-
getDiagrams: getDiagrams((0,
|
|
3267
|
+
getDiagrams: getDiagrams((0, import_node_path21.join)(path7)),
|
|
3140
3268
|
/**
|
|
3141
3269
|
* Adds a diagram to EventCatalog
|
|
3142
3270
|
*
|
|
@@ -3144,33 +3272,33 @@ var src_default = (path6) => {
|
|
|
3144
3272
|
* @param options - Optional options to write the diagram
|
|
3145
3273
|
*
|
|
3146
3274
|
*/
|
|
3147
|
-
writeDiagram: writeDiagram((0,
|
|
3275
|
+
writeDiagram: writeDiagram((0, import_node_path21.join)(path7, "diagrams")),
|
|
3148
3276
|
/**
|
|
3149
3277
|
* Remove a diagram from EventCatalog (modeled on the standard POSIX rm utility)
|
|
3150
3278
|
*
|
|
3151
3279
|
* @param path - The path to your diagram, e.g. `/ArchitectureDiagram`
|
|
3152
3280
|
*
|
|
3153
3281
|
*/
|
|
3154
|
-
rmDiagram: rmDiagram((0,
|
|
3282
|
+
rmDiagram: rmDiagram((0, import_node_path21.join)(path7, "diagrams")),
|
|
3155
3283
|
/**
|
|
3156
3284
|
* Remove a diagram by a diagram id
|
|
3157
3285
|
*
|
|
3158
3286
|
* @param id - The id of the diagram you want to remove
|
|
3159
3287
|
*
|
|
3160
3288
|
*/
|
|
3161
|
-
rmDiagramById: rmDiagramById((0,
|
|
3289
|
+
rmDiagramById: rmDiagramById((0, import_node_path21.join)(path7)),
|
|
3162
3290
|
/**
|
|
3163
3291
|
* Moves a given diagram id to the version directory
|
|
3164
3292
|
* @param id - The id of the diagram to version
|
|
3165
3293
|
*/
|
|
3166
|
-
versionDiagram: versionDiagram((0,
|
|
3294
|
+
versionDiagram: versionDiagram((0, import_node_path21.join)(path7)),
|
|
3167
3295
|
/**
|
|
3168
3296
|
* Check to see if a diagram version exists
|
|
3169
3297
|
* @param id - The id of the diagram
|
|
3170
3298
|
* @param version - The version of the diagram (supports semver)
|
|
3171
3299
|
* @returns
|
|
3172
3300
|
*/
|
|
3173
|
-
diagramHasVersion: diagramHasVersion((0,
|
|
3301
|
+
diagramHasVersion: diagramHasVersion((0, import_node_path21.join)(path7)),
|
|
3174
3302
|
/**
|
|
3175
3303
|
* Adds a file to the given diagram
|
|
3176
3304
|
* @param id - The id of the diagram to add the file to
|
|
@@ -3178,7 +3306,7 @@ var src_default = (path6) => {
|
|
|
3178
3306
|
* @param version - Optional version of the diagram to add the file to
|
|
3179
3307
|
* @returns
|
|
3180
3308
|
*/
|
|
3181
|
-
addFileToDiagram: addFileToDiagram((0,
|
|
3309
|
+
addFileToDiagram: addFileToDiagram((0, import_node_path21.join)(path7)),
|
|
3182
3310
|
/**
|
|
3183
3311
|
* ================================
|
|
3184
3312
|
* DSL
|
|
@@ -3197,18 +3325,18 @@ var src_default = (path6) => {
|
|
|
3197
3325
|
* const dsl = await sdk.toDSL(services, { type: 'service', hydrate: true });
|
|
3198
3326
|
* ```
|
|
3199
3327
|
*/
|
|
3200
|
-
toDSL: toDSL((0,
|
|
3201
|
-
getEvent: getEvent((0,
|
|
3202
|
-
getCommand: getCommand((0,
|
|
3203
|
-
getQuery: getQuery((0,
|
|
3204
|
-
getService: getService((0,
|
|
3205
|
-
getServices: getServices((0,
|
|
3206
|
-
getDomain: getDomain((0,
|
|
3207
|
-
getChannel: getChannel((0,
|
|
3208
|
-
getChannels: getChannels((0,
|
|
3209
|
-
getContainer: getDataStore((0,
|
|
3210
|
-
getTeam: getTeam((0,
|
|
3211
|
-
getUser: getUser((0,
|
|
3328
|
+
toDSL: toDSL((0, import_node_path21.join)(path7), {
|
|
3329
|
+
getEvent: getEvent((0, import_node_path21.join)(path7)),
|
|
3330
|
+
getCommand: getCommand((0, import_node_path21.join)(path7)),
|
|
3331
|
+
getQuery: getQuery((0, import_node_path21.join)(path7)),
|
|
3332
|
+
getService: getService((0, import_node_path21.join)(path7)),
|
|
3333
|
+
getServices: getServices((0, import_node_path21.join)(path7)),
|
|
3334
|
+
getDomain: getDomain((0, import_node_path21.join)(path7, "domains")),
|
|
3335
|
+
getChannel: getChannel((0, import_node_path21.join)(path7)),
|
|
3336
|
+
getChannels: getChannels((0, import_node_path21.join)(path7)),
|
|
3337
|
+
getContainer: getDataStore((0, import_node_path21.join)(path7)),
|
|
3338
|
+
getTeam: getTeam((0, import_node_path21.join)(path7, "teams")),
|
|
3339
|
+
getUser: getUser((0, import_node_path21.join)(path7, "users"))
|
|
3212
3340
|
})
|
|
3213
3341
|
};
|
|
3214
3342
|
};
|