@eventcatalog/sdk 2.8.3 → 2.9.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/README.md +1 -1
- package/dist/channels.js +36 -28
- package/dist/channels.js.map +1 -1
- package/dist/channels.mjs +32 -24
- package/dist/channels.mjs.map +1 -1
- package/dist/commands.js +31 -23
- package/dist/commands.js.map +1 -1
- package/dist/commands.mjs +30 -22
- package/dist/commands.mjs.map +1 -1
- package/dist/containers.js +31 -23
- package/dist/containers.js.map +1 -1
- package/dist/containers.mjs +30 -22
- package/dist/containers.mjs.map +1 -1
- package/dist/custom-docs.js +8 -7
- package/dist/custom-docs.js.map +1 -1
- package/dist/custom-docs.mjs +8 -7
- package/dist/custom-docs.mjs.map +1 -1
- package/dist/data-stores.js +31 -23
- package/dist/data-stores.js.map +1 -1
- package/dist/data-stores.mjs +30 -22
- package/dist/data-stores.mjs.map +1 -1
- package/dist/domains.js +36 -28
- package/dist/domains.js.map +1 -1
- package/dist/domains.mjs +37 -29
- package/dist/domains.mjs.map +1 -1
- package/dist/entities.js +30 -22
- package/dist/entities.js.map +1 -1
- package/dist/entities.mjs +30 -22
- package/dist/entities.mjs.map +1 -1
- package/dist/eventcatalog.js +228 -211
- package/dist/eventcatalog.js.map +1 -1
- package/dist/eventcatalog.mjs +200 -183
- package/dist/eventcatalog.mjs.map +1 -1
- package/dist/events.js +31 -23
- package/dist/events.js.map +1 -1
- package/dist/events.mjs +30 -22
- package/dist/events.mjs.map +1 -1
- package/dist/index.d.mts +5 -8
- package/dist/index.d.ts +5 -8
- package/dist/index.js +228 -211
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +200 -183
- package/dist/index.mjs.map +1 -1
- package/dist/messages.js +30 -22
- package/dist/messages.js.map +1 -1
- package/dist/messages.mjs +29 -21
- package/dist/messages.mjs.map +1 -1
- package/dist/queries.js +31 -23
- package/dist/queries.js.map +1 -1
- package/dist/queries.mjs +30 -22
- package/dist/queries.mjs.map +1 -1
- package/dist/services.js +48 -40
- package/dist/services.js.map +1 -1
- package/dist/services.mjs +43 -35
- package/dist/services.mjs.map +1 -1
- package/dist/teams.js +30 -22
- package/dist/teams.js.map +1 -1
- package/dist/teams.mjs +26 -18
- package/dist/teams.mjs.map +1 -1
- package/dist/users.js.map +1 -1
- package/dist/users.mjs +1 -1
- package/dist/users.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -33,11 +33,11 @@ __export(index_exports, {
|
|
|
33
33
|
default: () => index_default
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(index_exports);
|
|
36
|
-
var
|
|
36
|
+
var import_node_path18 = require("path");
|
|
37
37
|
|
|
38
38
|
// src/events.ts
|
|
39
39
|
var import_promises2 = __toESM(require("fs/promises"));
|
|
40
|
-
var
|
|
40
|
+
var import_node_path4 = require("path");
|
|
41
41
|
|
|
42
42
|
// src/internal/utils.ts
|
|
43
43
|
var import_glob = require("glob");
|
|
@@ -54,26 +54,33 @@ var versionExists = async (catalogDir, id, version) => {
|
|
|
54
54
|
var findFileById = async (catalogDir, id, version) => {
|
|
55
55
|
const files = await getFiles(`${catalogDir}/**/index.{md,mdx}`);
|
|
56
56
|
const matchedFiles = await searchFilesForId(files, id) || [];
|
|
57
|
-
const latestVersion = matchedFiles.find((
|
|
57
|
+
const latestVersion = matchedFiles.find((path6) => !path6.includes("versioned"));
|
|
58
58
|
if (!version) {
|
|
59
59
|
return latestVersion;
|
|
60
60
|
}
|
|
61
|
-
const parsedFiles = matchedFiles.map((
|
|
62
|
-
const { data } = import_gray_matter.default.read(
|
|
63
|
-
return { ...data, path:
|
|
61
|
+
const parsedFiles = matchedFiles.map((path6) => {
|
|
62
|
+
const { data } = import_gray_matter.default.read(path6);
|
|
63
|
+
return { ...data, path: path6 };
|
|
64
64
|
});
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
const match2 = parsedFiles.filter((c) => (0, import_semver.satisfies)(c.version, semverRange));
|
|
68
|
-
return match2.length > 0 ? match2[0].path : void 0;
|
|
65
|
+
if (version === "latest") {
|
|
66
|
+
return latestVersion;
|
|
69
67
|
}
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
68
|
+
const exactMatch = parsedFiles.find((c) => c.version === version);
|
|
69
|
+
if (exactMatch) {
|
|
70
|
+
return exactMatch.path;
|
|
71
|
+
}
|
|
72
|
+
const semverRange = (0, import_semver.validRange)(version);
|
|
73
|
+
if (semverRange) {
|
|
74
|
+
const match = parsedFiles.filter((c) => {
|
|
75
|
+
try {
|
|
76
|
+
return (0, import_semver.satisfies)(c.version, semverRange);
|
|
77
|
+
} catch (error) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
return match.length > 0 ? match[0].path : void 0;
|
|
76
82
|
}
|
|
83
|
+
return void 0;
|
|
77
84
|
};
|
|
78
85
|
var getFiles = async (pattern, ignore = "") => {
|
|
79
86
|
try {
|
|
@@ -101,8 +108,8 @@ var getFiles = async (pattern, ignore = "") => {
|
|
|
101
108
|
);
|
|
102
109
|
}
|
|
103
110
|
};
|
|
104
|
-
var readMdxFile = async (
|
|
105
|
-
const { data } = import_gray_matter.default.read(
|
|
111
|
+
var readMdxFile = async (path6) => {
|
|
112
|
+
const { data } = import_gray_matter.default.read(path6);
|
|
106
113
|
const { markdown, ...frontmatter } = data;
|
|
107
114
|
return { ...frontmatter, markdown };
|
|
108
115
|
};
|
|
@@ -155,6 +162,7 @@ var import_node_fs2 = __toESM(require("fs"));
|
|
|
155
162
|
var import_semver2 = require("semver");
|
|
156
163
|
var import_proper_lockfile = require("proper-lockfile");
|
|
157
164
|
var import_node_path2 = require("path");
|
|
165
|
+
var import_node_path3 = __toESM(require("path"));
|
|
158
166
|
var versionResource = async (catalogDir, id) => {
|
|
159
167
|
const files = await getFiles(`${catalogDir}/**/index.{md,mdx}`);
|
|
160
168
|
const matchedFiles = await searchFilesForId(files, id);
|
|
@@ -194,8 +202,8 @@ var writeResource = async (catalogDir, resource, options = {
|
|
|
194
202
|
versionExistingContent: false,
|
|
195
203
|
format: "mdx"
|
|
196
204
|
}) => {
|
|
197
|
-
const
|
|
198
|
-
const fullPath = (0, import_path.join)(catalogDir,
|
|
205
|
+
const path6 = options.path || `/${resource.id}`;
|
|
206
|
+
const fullPath = (0, import_path.join)(catalogDir, path6);
|
|
199
207
|
const format = options.format || "mdx";
|
|
200
208
|
import_node_fs2.default.mkdirSync(fullPath, { recursive: true });
|
|
201
209
|
const lockPath = (0, import_path.join)(fullPath, `index.${format}`);
|
|
@@ -261,6 +269,11 @@ var getResourcePath = async (catalogDir, id, version) => {
|
|
|
261
269
|
directory: (0, import_path.dirname)(file.replace(catalogDir, ""))
|
|
262
270
|
};
|
|
263
271
|
};
|
|
272
|
+
var getResourceFolderName = async (catalogDir, id, version) => {
|
|
273
|
+
const paths = await getResourcePath(catalogDir, id, version);
|
|
274
|
+
if (!paths) return;
|
|
275
|
+
return paths?.directory.split(import_node_path3.default.sep).filter(Boolean).pop();
|
|
276
|
+
};
|
|
264
277
|
var toResource = async (catalogDir, rawContents) => {
|
|
265
278
|
const { data, content } = (0, import_gray_matter2.default)(rawContents);
|
|
266
279
|
return {
|
|
@@ -322,16 +335,16 @@ var rmResourceById = async (catalogDir, id, version, options) => {
|
|
|
322
335
|
);
|
|
323
336
|
}
|
|
324
337
|
};
|
|
325
|
-
var waitForFileRemoval = async (
|
|
338
|
+
var waitForFileRemoval = async (path6, maxRetries = 50, delay = 10) => {
|
|
326
339
|
for (let i = 0; i < maxRetries; i++) {
|
|
327
340
|
try {
|
|
328
|
-
await import_promises.default.access(
|
|
341
|
+
await import_promises.default.access(path6);
|
|
329
342
|
await new Promise((resolve2) => setTimeout(resolve2, delay));
|
|
330
343
|
} catch (error) {
|
|
331
344
|
return;
|
|
332
345
|
}
|
|
333
346
|
}
|
|
334
|
-
throw new Error(`File/directory ${
|
|
347
|
+
throw new Error(`File/directory ${path6} was not removed after ${maxRetries} attempts`);
|
|
335
348
|
};
|
|
336
349
|
var addFileToResource = async (catalogDir, id, file, version) => {
|
|
337
350
|
const pathToResource = await findFileById(catalogDir, id, version);
|
|
@@ -375,11 +388,11 @@ var writeEventToService = (directory) => async (event, service, options = { path
|
|
|
375
388
|
throw new Error("Service not found");
|
|
376
389
|
}
|
|
377
390
|
let pathForEvent = service.version && service.version !== "latest" ? `${resourcePath.directory}/versioned/${service.version}/events` : `${resourcePath.directory}/events`;
|
|
378
|
-
pathForEvent = (0,
|
|
391
|
+
pathForEvent = (0, import_node_path4.join)(pathForEvent, event.id);
|
|
379
392
|
await writeResource(directory, { ...event }, { ...options, path: pathForEvent, type: "event" });
|
|
380
393
|
};
|
|
381
|
-
var rmEvent = (directory) => async (
|
|
382
|
-
await import_promises2.default.rm((0,
|
|
394
|
+
var rmEvent = (directory) => async (path6) => {
|
|
395
|
+
await import_promises2.default.rm((0, import_node_path4.join)(directory, path6), { recursive: true });
|
|
383
396
|
};
|
|
384
397
|
var rmEventById = (directory) => async (id, version, persistFiles) => {
|
|
385
398
|
await rmResourceById(directory, id, version, { type: "event", persistFiles });
|
|
@@ -396,7 +409,7 @@ var eventHasVersion = (directory) => async (id, version) => {
|
|
|
396
409
|
|
|
397
410
|
// src/commands.ts
|
|
398
411
|
var import_promises3 = __toESM(require("fs/promises"));
|
|
399
|
-
var
|
|
412
|
+
var import_node_path5 = require("path");
|
|
400
413
|
var getCommand = (directory) => async (id, version, options) => getResource(directory, id, version, { type: "command", ...options });
|
|
401
414
|
var getCommands = (directory) => async (options) => getResources(directory, { type: "commands", ...options });
|
|
402
415
|
var writeCommand = (directory) => async (command, options = {
|
|
@@ -411,11 +424,11 @@ var writeCommandToService = (directory) => async (command, service, options = {
|
|
|
411
424
|
throw new Error("Service not found");
|
|
412
425
|
}
|
|
413
426
|
let pathForCommand = service.version && service.version !== "latest" ? `${resourcePath.directory}/versioned/${service.version}/commands` : `${resourcePath.directory}/commands`;
|
|
414
|
-
pathForCommand = (0,
|
|
427
|
+
pathForCommand = (0, import_node_path5.join)(pathForCommand, command.id);
|
|
415
428
|
await writeResource(directory, { ...command }, { ...options, path: pathForCommand, type: "command" });
|
|
416
429
|
};
|
|
417
|
-
var rmCommand = (directory) => async (
|
|
418
|
-
await import_promises3.default.rm((0,
|
|
430
|
+
var rmCommand = (directory) => async (path6) => {
|
|
431
|
+
await import_promises3.default.rm((0, import_node_path5.join)(directory, path6), { recursive: true });
|
|
419
432
|
};
|
|
420
433
|
var rmCommandById = (directory) => async (id, version, persistFiles) => rmResourceById(directory, id, version, { type: "command", persistFiles });
|
|
421
434
|
var versionCommand = (directory) => async (id) => versionResource(directory, id);
|
|
@@ -430,7 +443,7 @@ var commandHasVersion = (directory) => async (id, version) => {
|
|
|
430
443
|
|
|
431
444
|
// src/queries.ts
|
|
432
445
|
var import_promises4 = __toESM(require("fs/promises"));
|
|
433
|
-
var
|
|
446
|
+
var import_node_path6 = require("path");
|
|
434
447
|
var getQuery = (directory) => async (id, version, options) => getResource(directory, id, version, { type: "query", ...options });
|
|
435
448
|
var writeQuery = (directory) => async (query, options = {
|
|
436
449
|
path: "",
|
|
@@ -445,11 +458,11 @@ var writeQueryToService = (directory) => async (query, service, options = { path
|
|
|
445
458
|
throw new Error("Service not found");
|
|
446
459
|
}
|
|
447
460
|
let pathForQuery = service.version && service.version !== "latest" ? `${resourcePath.directory}/versioned/${service.version}/queries` : `${resourcePath.directory}/queries`;
|
|
448
|
-
pathForQuery = (0,
|
|
461
|
+
pathForQuery = (0, import_node_path6.join)(pathForQuery, query.id);
|
|
449
462
|
await writeResource(directory, { ...query }, { ...options, path: pathForQuery, type: "query" });
|
|
450
463
|
};
|
|
451
|
-
var rmQuery = (directory) => async (
|
|
452
|
-
await import_promises4.default.rm((0,
|
|
464
|
+
var rmQuery = (directory) => async (path6) => {
|
|
465
|
+
await import_promises4.default.rm((0, import_node_path6.join)(directory, path6), { recursive: true });
|
|
453
466
|
};
|
|
454
467
|
var rmQueryById = (directory) => async (id, version, persistFiles) => {
|
|
455
468
|
await rmResourceById(directory, id, version, { type: "query", persistFiles });
|
|
@@ -466,10 +479,10 @@ var queryHasVersion = (directory) => async (id, version) => {
|
|
|
466
479
|
|
|
467
480
|
// src/services.ts
|
|
468
481
|
var import_promises5 = __toESM(require("fs/promises"));
|
|
469
|
-
var
|
|
482
|
+
var import_node_path7 = require("path");
|
|
470
483
|
var getService = (directory) => async (id, version) => getResource(directory, id, version, { type: "service" });
|
|
471
|
-
var getServiceByPath = (directory) => async (
|
|
472
|
-
const service = await getResource(directory, void 0, void 0, { type: "service" },
|
|
484
|
+
var getServiceByPath = (directory) => async (path6) => {
|
|
485
|
+
const service = await getResource(directory, void 0, void 0, { type: "service" }, path6);
|
|
473
486
|
return service;
|
|
474
487
|
};
|
|
475
488
|
var getServices = (directory) => async (options) => getResources(directory, {
|
|
@@ -493,17 +506,17 @@ var writeService = (directory) => async (service, options = {
|
|
|
493
506
|
};
|
|
494
507
|
var writeVersionedService = (directory) => async (service) => {
|
|
495
508
|
const resource = { ...service };
|
|
496
|
-
const
|
|
497
|
-
return await writeService(directory)(resource, { path:
|
|
509
|
+
const path6 = getVersionedDirectory(service.id, service.version);
|
|
510
|
+
return await writeService(directory)(resource, { path: path6 });
|
|
498
511
|
};
|
|
499
512
|
var writeServiceToDomain = (directory) => async (service, domain, options = { path: "", format: "mdx", override: false }) => {
|
|
500
513
|
let pathForService = domain.version && domain.version !== "latest" ? `/${domain.id}/versioned/${domain.version}/services` : `/${domain.id}/services`;
|
|
501
|
-
pathForService = (0,
|
|
514
|
+
pathForService = (0, import_node_path7.join)(pathForService, service.id);
|
|
502
515
|
await writeResource(directory, { ...service }, { ...options, path: pathForService, type: "service" });
|
|
503
516
|
};
|
|
504
517
|
var versionService = (directory) => async (id) => versionResource(directory, id);
|
|
505
|
-
var rmService = (directory) => async (
|
|
506
|
-
await import_promises5.default.rm((0,
|
|
518
|
+
var rmService = (directory) => async (path6) => {
|
|
519
|
+
await import_promises5.default.rm((0, import_node_path7.join)(directory, path6), { recursive: true });
|
|
507
520
|
};
|
|
508
521
|
var rmServiceById = (directory) => async (id, version, persistFiles) => {
|
|
509
522
|
await rmResourceById(directory, id, version, { type: "service", persistFiles });
|
|
@@ -530,7 +543,7 @@ var getSpecificationFilesForService = (directory) => async (id, version) => {
|
|
|
530
543
|
throw new Error(`Specification file name for ${fileName} is undefined`);
|
|
531
544
|
}
|
|
532
545
|
const rawFile = await getFileFromResource(directory, id, { fileName }, version);
|
|
533
|
-
return { key, content: rawFile, fileName, path: (0,
|
|
546
|
+
return { key, content: rawFile, fileName, path: (0, import_node_path7.join)((0, import_node_path7.dirname)(filePathToService), fileName) };
|
|
534
547
|
});
|
|
535
548
|
specs = await Promise.all(getSpecs);
|
|
536
549
|
}
|
|
@@ -539,7 +552,7 @@ var getSpecificationFilesForService = (directory) => async (id, version) => {
|
|
|
539
552
|
var addMessageToService = (directory) => async (id, direction, event, version) => {
|
|
540
553
|
let service = await getService(directory)(id, version);
|
|
541
554
|
const servicePath = await getResourcePath(directory, id, version);
|
|
542
|
-
const extension = (0,
|
|
555
|
+
const extension = (0, import_node_path7.extname)(servicePath?.fullPath || "");
|
|
543
556
|
if (direction === "sends") {
|
|
544
557
|
if (service.sends === void 0) {
|
|
545
558
|
service.sends = [];
|
|
@@ -567,8 +580,8 @@ var addMessageToService = (directory) => async (id, direction, event, version) =
|
|
|
567
580
|
if (!existingResource) {
|
|
568
581
|
throw new Error(`Cannot find service ${id} in the catalog`);
|
|
569
582
|
}
|
|
570
|
-
const
|
|
571
|
-
const pathToResource = (0,
|
|
583
|
+
const path6 = existingResource.split(/[\\/]+services/)[0];
|
|
584
|
+
const pathToResource = (0, import_node_path7.join)(path6, "services");
|
|
572
585
|
await rmServiceById(directory)(id, version);
|
|
573
586
|
await writeService(pathToResource)(service, { format: extension === ".md" ? "md" : "mdx" });
|
|
574
587
|
};
|
|
@@ -576,9 +589,9 @@ var serviceHasVersion = (directory) => async (id, version) => {
|
|
|
576
589
|
const file = await findFileById(directory, id, version);
|
|
577
590
|
return !!file;
|
|
578
591
|
};
|
|
579
|
-
var isService = (directory) => async (
|
|
580
|
-
const service = await getServiceByPath(directory)(
|
|
581
|
-
const relativePath = (0,
|
|
592
|
+
var isService = (directory) => async (path6) => {
|
|
593
|
+
const service = await getServiceByPath(directory)(path6);
|
|
594
|
+
const relativePath = (0, import_node_path7.relative)(directory, path6);
|
|
582
595
|
const segments = relativePath.split(/[/\\]+/);
|
|
583
596
|
return !!service && segments.includes("services");
|
|
584
597
|
};
|
|
@@ -586,7 +599,7 @@ var toService = (directory) => async (file) => toResource(directory, file);
|
|
|
586
599
|
var addEntityToService = (directory) => async (id, entity, version) => {
|
|
587
600
|
let service = await getService(directory)(id, version);
|
|
588
601
|
const servicePath = await getResourcePath(directory, id, version);
|
|
589
|
-
const extension = (0,
|
|
602
|
+
const extension = (0, import_node_path7.extname)(servicePath?.fullPath || "");
|
|
590
603
|
if (service.entities === void 0) {
|
|
591
604
|
service.entities = [];
|
|
592
605
|
}
|
|
@@ -600,15 +613,15 @@ var addEntityToService = (directory) => async (id, entity, version) => {
|
|
|
600
613
|
if (!existingResource) {
|
|
601
614
|
throw new Error(`Cannot find service ${id} in the catalog`);
|
|
602
615
|
}
|
|
603
|
-
const
|
|
604
|
-
const pathToResource = (0,
|
|
616
|
+
const path6 = existingResource.split(/[\\/]+services/)[0];
|
|
617
|
+
const pathToResource = (0, import_node_path7.join)(path6, "services");
|
|
605
618
|
await rmServiceById(directory)(id, version);
|
|
606
619
|
await writeService(pathToResource)(service, { format: extension === ".md" ? "md" : "mdx" });
|
|
607
620
|
};
|
|
608
621
|
var addDataStoreToService = (directory) => async (id, operation, dataStore, version) => {
|
|
609
622
|
let service = await getService(directory)(id, version);
|
|
610
623
|
const servicePath = await getResourcePath(directory, id, version);
|
|
611
|
-
const extension = (0,
|
|
624
|
+
const extension = (0, import_node_path7.extname)(servicePath?.fullPath || "");
|
|
612
625
|
if (operation === "writesTo") {
|
|
613
626
|
if (service.writesTo === void 0) {
|
|
614
627
|
service.writesTo = [];
|
|
@@ -636,15 +649,15 @@ var addDataStoreToService = (directory) => async (id, operation, dataStore, vers
|
|
|
636
649
|
if (!existingResource) {
|
|
637
650
|
throw new Error(`Cannot find service ${id} in the catalog`);
|
|
638
651
|
}
|
|
639
|
-
const
|
|
640
|
-
const pathToResource = (0,
|
|
652
|
+
const path6 = existingResource.split(/[\\/]+services/)[0];
|
|
653
|
+
const pathToResource = (0, import_node_path7.join)(path6, "services");
|
|
641
654
|
await rmServiceById(directory)(id, version);
|
|
642
655
|
await writeService(pathToResource)(service, { format: extension === ".md" ? "md" : "mdx" });
|
|
643
656
|
};
|
|
644
657
|
|
|
645
658
|
// src/domains.ts
|
|
646
659
|
var import_promises6 = __toESM(require("fs/promises"));
|
|
647
|
-
var
|
|
660
|
+
var import_node_path8 = __toESM(require("path"));
|
|
648
661
|
var import_node_fs3 = __toESM(require("fs"));
|
|
649
662
|
var import_gray_matter3 = __toESM(require("gray-matter"));
|
|
650
663
|
var getDomain = (directory) => async (id, version) => getResource(directory, id, version, { type: "domain" });
|
|
@@ -669,8 +682,8 @@ var writeDomain = (directory) => async (domain, options = {
|
|
|
669
682
|
return await writeResource(directory, resource, { ...options, type: "domain" });
|
|
670
683
|
};
|
|
671
684
|
var versionDomain = (directory) => async (id) => versionResource(directory, id);
|
|
672
|
-
var rmDomain = (directory) => async (
|
|
673
|
-
await import_promises6.default.rm((0,
|
|
685
|
+
var rmDomain = (directory) => async (path6) => {
|
|
686
|
+
await import_promises6.default.rm((0, import_node_path8.join)(directory, path6), { recursive: true });
|
|
674
687
|
};
|
|
675
688
|
var rmDomainById = (directory) => async (id, version, persistFiles) => rmResourceById(directory, id, version, { type: "domain", persistFiles });
|
|
676
689
|
var addFileToDomain = (directory) => async (id, file, version) => addFileToResource(directory, id, file, version);
|
|
@@ -682,7 +695,7 @@ var addUbiquitousLanguageToDomain = (directory) => async (id, ubiquitousLanguage
|
|
|
682
695
|
};
|
|
683
696
|
var getUbiquitousLanguageFromDomain = (directory) => async (id, version) => {
|
|
684
697
|
const pathToDomain = await findFileById(directory, id, version) || "";
|
|
685
|
-
const pathToUbiquitousLanguage =
|
|
698
|
+
const pathToUbiquitousLanguage = import_node_path8.default.join(import_node_path8.default.dirname(pathToDomain), "ubiquitous-language.mdx");
|
|
686
699
|
const fileExists = import_node_fs3.default.existsSync(pathToUbiquitousLanguage);
|
|
687
700
|
if (!fileExists) {
|
|
688
701
|
return void 0;
|
|
@@ -697,7 +710,7 @@ var domainHasVersion = (directory) => async (id, version) => {
|
|
|
697
710
|
var addServiceToDomain = (directory) => async (id, service, version) => {
|
|
698
711
|
let domain = await getDomain(directory)(id, version);
|
|
699
712
|
const domainPath = await getResourcePath(directory, id, version);
|
|
700
|
-
const extension =
|
|
713
|
+
const extension = import_node_path8.default.extname(domainPath?.fullPath || "");
|
|
701
714
|
if (domain.services === void 0) {
|
|
702
715
|
domain.services = [];
|
|
703
716
|
}
|
|
@@ -712,7 +725,7 @@ var addServiceToDomain = (directory) => async (id, service, version) => {
|
|
|
712
725
|
var addSubDomainToDomain = (directory) => async (id, subDomain, version) => {
|
|
713
726
|
let domain = await getDomain(directory)(id, version);
|
|
714
727
|
const domainPath = await getResourcePath(directory, id, version);
|
|
715
|
-
const extension =
|
|
728
|
+
const extension = import_node_path8.default.extname(domainPath?.fullPath || "");
|
|
716
729
|
if (domain.domains === void 0) {
|
|
717
730
|
domain.domains = [];
|
|
718
731
|
}
|
|
@@ -727,7 +740,7 @@ var addSubDomainToDomain = (directory) => async (id, subDomain, version) => {
|
|
|
727
740
|
var addEntityToDomain = (directory) => async (id, entity, version) => {
|
|
728
741
|
let domain = await getDomain(directory)(id, version);
|
|
729
742
|
const domainPath = await getResourcePath(directory, id, version);
|
|
730
|
-
const extension =
|
|
743
|
+
const extension = import_node_path8.default.extname(domainPath?.fullPath || "");
|
|
731
744
|
if (domain.entities === void 0) {
|
|
732
745
|
domain.entities = [];
|
|
733
746
|
}
|
|
@@ -742,12 +755,12 @@ var addEntityToDomain = (directory) => async (id, entity, version) => {
|
|
|
742
755
|
|
|
743
756
|
// src/channels.ts
|
|
744
757
|
var import_promises7 = __toESM(require("fs/promises"));
|
|
745
|
-
var
|
|
758
|
+
var import_node_path9 = require("path");
|
|
746
759
|
var getChannel = (directory) => async (id, version) => getResource(directory, id, version, { type: "channel" });
|
|
747
760
|
var getChannels = (directory) => async (options) => getResources(directory, { type: "channels", ...options });
|
|
748
761
|
var writeChannel = (directory) => async (channel, options = { path: "" }) => writeResource(directory, { ...channel }, { ...options, type: "channel" });
|
|
749
|
-
var rmChannel = (directory) => async (
|
|
750
|
-
await import_promises7.default.rm((0,
|
|
762
|
+
var rmChannel = (directory) => async (path6) => {
|
|
763
|
+
await import_promises7.default.rm((0, import_node_path9.join)(directory, path6), { recursive: true });
|
|
751
764
|
};
|
|
752
765
|
var rmChannelById = (directory) => async (id, version, persistFiles) => rmResourceById(directory, id, version, { type: "channel", persistFiles });
|
|
753
766
|
var versionChannel = (directory) => async (id) => versionResource(directory, id);
|
|
@@ -777,7 +790,7 @@ var addMessageToChannel = (directory, collection) => async (id, _message, versio
|
|
|
777
790
|
const { getMessage, rmMessageById, writeMessage } = functions[collection];
|
|
778
791
|
const message = await getMessage(directory)(_message.id, _message.version);
|
|
779
792
|
const messagePath = await getResourcePath(directory, _message.id, _message.version);
|
|
780
|
-
const extension = (0,
|
|
793
|
+
const extension = (0, import_node_path9.extname)(messagePath?.fullPath || "");
|
|
781
794
|
if (!message) throw new Error(`Message ${_message.id} with version ${_message.version} not found`);
|
|
782
795
|
if (message.channels === void 0) {
|
|
783
796
|
message.channels = [];
|
|
@@ -788,18 +801,18 @@ var addMessageToChannel = (directory, collection) => async (id, _message, versio
|
|
|
788
801
|
if (!existingResource) {
|
|
789
802
|
throw new Error(`Cannot find message ${id} in the catalog`);
|
|
790
803
|
}
|
|
791
|
-
const
|
|
792
|
-
const pathToResource = (0,
|
|
804
|
+
const path6 = existingResource.split(`/[\\/]+${collection}`)[0];
|
|
805
|
+
const pathToResource = (0, import_node_path9.join)(path6, collection);
|
|
793
806
|
await rmMessageById(directory)(_message.id, _message.version, true);
|
|
794
807
|
await writeMessage(pathToResource)(message, { format: extension === ".md" ? "md" : "mdx" });
|
|
795
808
|
};
|
|
796
809
|
|
|
797
810
|
// src/messages.ts
|
|
798
|
-
var
|
|
811
|
+
var import_node_path10 = require("path");
|
|
799
812
|
var import_gray_matter4 = __toESM(require("gray-matter"));
|
|
800
813
|
var import_semver3 = require("semver");
|
|
801
|
-
var getMessageBySchemaPath = (directory) => async (
|
|
802
|
-
const pathToMessage = (0,
|
|
814
|
+
var getMessageBySchemaPath = (directory) => async (path6, options) => {
|
|
815
|
+
const pathToMessage = (0, import_node_path10.dirname)(path6);
|
|
803
816
|
try {
|
|
804
817
|
const files = await getFiles(`${directory}/${pathToMessage}/index.{md,mdx}`);
|
|
805
818
|
if (!files || files.length === 0) {
|
|
@@ -871,18 +884,18 @@ var getProducersAndConsumersForMessage = (directory) => async (id, version, opti
|
|
|
871
884
|
}
|
|
872
885
|
return { producers, consumers };
|
|
873
886
|
};
|
|
874
|
-
var getConsumersOfSchema = (directory) => async (
|
|
887
|
+
var getConsumersOfSchema = (directory) => async (path6) => {
|
|
875
888
|
try {
|
|
876
|
-
const message = await getMessageBySchemaPath(directory)(
|
|
889
|
+
const message = await getMessageBySchemaPath(directory)(path6);
|
|
877
890
|
const { consumers } = await getProducersAndConsumersForMessage(directory)(message.id, message.version);
|
|
878
891
|
return consumers;
|
|
879
892
|
} catch (error) {
|
|
880
893
|
return [];
|
|
881
894
|
}
|
|
882
895
|
};
|
|
883
|
-
var getProducersOfSchema = (directory) => async (
|
|
896
|
+
var getProducersOfSchema = (directory) => async (path6) => {
|
|
884
897
|
try {
|
|
885
|
-
const message = await getMessageBySchemaPath(directory)(
|
|
898
|
+
const message = await getMessageBySchemaPath(directory)(path6);
|
|
886
899
|
const { producers } = await getProducersAndConsumersForMessage(directory)(message.id, message.version);
|
|
887
900
|
return producers;
|
|
888
901
|
} catch (error) {
|
|
@@ -891,13 +904,13 @@ var getProducersOfSchema = (directory) => async (path5) => {
|
|
|
891
904
|
};
|
|
892
905
|
|
|
893
906
|
// src/custom-docs.ts
|
|
894
|
-
var
|
|
907
|
+
var import_node_path11 = __toESM(require("path"));
|
|
895
908
|
var import_node_fs4 = __toESM(require("fs"));
|
|
896
909
|
var import_promises8 = __toESM(require("fs/promises"));
|
|
897
910
|
var import_gray_matter5 = __toESM(require("gray-matter"));
|
|
898
911
|
var import_slugify = __toESM(require("slugify"));
|
|
899
912
|
var getCustomDoc = (directory) => async (filePath) => {
|
|
900
|
-
const fullPath =
|
|
913
|
+
const fullPath = import_node_path11.default.join(directory, filePath);
|
|
901
914
|
const fullPathWithExtension = fullPath.endsWith(".mdx") ? fullPath : `${fullPath}.mdx`;
|
|
902
915
|
const fileExists = import_node_fs4.default.existsSync(fullPathWithExtension);
|
|
903
916
|
if (!fileExists) {
|
|
@@ -916,26 +929,26 @@ var writeCustomDoc = (directory) => async (customDoc, options = { path: "" }) =>
|
|
|
916
929
|
const { fileName, ...rest } = customDoc;
|
|
917
930
|
const name = fileName || (0, import_slugify.default)(customDoc.title, { lower: true });
|
|
918
931
|
const withExtension = name.endsWith(".mdx") ? name : `${name}.mdx`;
|
|
919
|
-
const fullPath =
|
|
920
|
-
import_node_fs4.default.mkdirSync(
|
|
932
|
+
const fullPath = import_node_path11.default.join(directory, options.path || "", withExtension);
|
|
933
|
+
import_node_fs4.default.mkdirSync(import_node_path11.default.dirname(fullPath), { recursive: true });
|
|
921
934
|
const document = import_gray_matter5.default.stringify(customDoc.markdown.trim(), rest);
|
|
922
935
|
import_node_fs4.default.writeFileSync(fullPath, document);
|
|
923
936
|
};
|
|
924
937
|
var rmCustomDoc = (directory) => async (filePath) => {
|
|
925
938
|
const withExtension = filePath.endsWith(".mdx") ? filePath : `${filePath}.mdx`;
|
|
926
|
-
await import_promises8.default.rm((0,
|
|
939
|
+
await import_promises8.default.rm((0, import_node_path11.join)(directory, withExtension), { recursive: true });
|
|
927
940
|
};
|
|
928
941
|
|
|
929
942
|
// src/teams.ts
|
|
930
943
|
var import_promises9 = __toESM(require("fs/promises"));
|
|
931
944
|
var import_node_fs6 = __toESM(require("fs"));
|
|
932
|
-
var
|
|
945
|
+
var import_node_path13 = require("path");
|
|
933
946
|
var import_gray_matter7 = __toESM(require("gray-matter"));
|
|
934
|
-
var
|
|
947
|
+
var import_node_path14 = __toESM(require("path"));
|
|
935
948
|
|
|
936
949
|
// src/users.ts
|
|
937
950
|
var import_node_fs5 = __toESM(require("fs"));
|
|
938
|
-
var
|
|
951
|
+
var import_node_path12 = require("path");
|
|
939
952
|
var import_gray_matter6 = __toESM(require("gray-matter"));
|
|
940
953
|
var getUser = (catalogDir) => async (id) => {
|
|
941
954
|
const files = await getFiles(`${catalogDir}/${id}.{md,mdx}`);
|
|
@@ -973,11 +986,11 @@ var writeUser = (catalogDir) => async (user, options = {}) => {
|
|
|
973
986
|
}
|
|
974
987
|
const { markdown, ...frontmatter } = resource;
|
|
975
988
|
const document = import_gray_matter6.default.stringify(markdown, frontmatter);
|
|
976
|
-
import_node_fs5.default.mkdirSync((0,
|
|
977
|
-
import_node_fs5.default.writeFileSync((0,
|
|
989
|
+
import_node_fs5.default.mkdirSync((0, import_node_path12.join)(catalogDir, ""), { recursive: true });
|
|
990
|
+
import_node_fs5.default.writeFileSync((0, import_node_path12.join)(catalogDir, "", `${resource.id}.mdx`), document);
|
|
978
991
|
};
|
|
979
992
|
var rmUserById = (catalogDir) => async (id) => {
|
|
980
|
-
import_node_fs5.default.rmSync((0,
|
|
993
|
+
import_node_fs5.default.rmSync((0, import_node_path12.join)(catalogDir, `${id}.mdx`), { recursive: true });
|
|
981
994
|
};
|
|
982
995
|
|
|
983
996
|
// src/teams.ts
|
|
@@ -1015,11 +1028,11 @@ var writeTeam = (catalogDir) => async (team, options = {}) => {
|
|
|
1015
1028
|
}
|
|
1016
1029
|
const { markdown, ...frontmatter } = resource;
|
|
1017
1030
|
const document = import_gray_matter7.default.stringify(markdown, frontmatter);
|
|
1018
|
-
import_node_fs6.default.mkdirSync((0,
|
|
1019
|
-
import_node_fs6.default.writeFileSync((0,
|
|
1031
|
+
import_node_fs6.default.mkdirSync((0, import_node_path13.join)(catalogDir, ""), { recursive: true });
|
|
1032
|
+
import_node_fs6.default.writeFileSync((0, import_node_path13.join)(catalogDir, "", `${resource.id}.mdx`), document);
|
|
1020
1033
|
};
|
|
1021
1034
|
var rmTeamById = (catalogDir) => async (id) => {
|
|
1022
|
-
await import_promises9.default.rm((0,
|
|
1035
|
+
await import_promises9.default.rm((0, import_node_path13.join)(catalogDir, `${id}.mdx`), { recursive: true });
|
|
1023
1036
|
};
|
|
1024
1037
|
var getOwnersForResource = (catalogDir) => async (id, version) => {
|
|
1025
1038
|
const resource = await getResource(catalogDir, id, version);
|
|
@@ -1027,11 +1040,11 @@ var getOwnersForResource = (catalogDir) => async (id, version) => {
|
|
|
1027
1040
|
if (!resource) return [];
|
|
1028
1041
|
if (!resource.owners) return [];
|
|
1029
1042
|
for (const owner of resource.owners) {
|
|
1030
|
-
const team = await getTeam(
|
|
1043
|
+
const team = await getTeam(import_node_path14.default.join(catalogDir, "teams"))(owner);
|
|
1031
1044
|
if (team) {
|
|
1032
1045
|
owners.push(team);
|
|
1033
1046
|
} else {
|
|
1034
|
-
const user = await getUser(
|
|
1047
|
+
const user = await getUser(import_node_path14.default.join(catalogDir, "users"))(owner);
|
|
1035
1048
|
if (user) {
|
|
1036
1049
|
owners.push(user);
|
|
1037
1050
|
}
|
|
@@ -1042,11 +1055,11 @@ var getOwnersForResource = (catalogDir) => async (id, version) => {
|
|
|
1042
1055
|
|
|
1043
1056
|
// src/eventcatalog.ts
|
|
1044
1057
|
var import_fs = __toESM(require("fs"));
|
|
1045
|
-
var
|
|
1058
|
+
var import_node_path15 = __toESM(require("path"));
|
|
1046
1059
|
var DUMP_VERSION = "0.0.1";
|
|
1047
1060
|
var getEventCatalogVersion = async (catalogDir) => {
|
|
1048
1061
|
try {
|
|
1049
|
-
const packageJson = import_fs.default.readFileSync((0,
|
|
1062
|
+
const packageJson = import_fs.default.readFileSync((0, import_node_path15.join)(catalogDir, "package.json"), "utf8");
|
|
1050
1063
|
const packageJsonObject = JSON.parse(packageJson);
|
|
1051
1064
|
return packageJsonObject["dependencies"]["@eventcatalog/core"];
|
|
1052
1065
|
} catch (error) {
|
|
@@ -1059,7 +1072,7 @@ var hydrateResource = async (catalogDir, resources = [], { attachSchema = false
|
|
|
1059
1072
|
const resourcePath = await getResourcePath(catalogDir, resource.id, resource.version);
|
|
1060
1073
|
let schema = "";
|
|
1061
1074
|
if (resource.schemaPath && resourcePath?.fullPath) {
|
|
1062
|
-
const pathToSchema =
|
|
1075
|
+
const pathToSchema = import_node_path15.default.join(import_node_path15.default.dirname(resourcePath?.fullPath), resource.schemaPath);
|
|
1063
1076
|
if (import_fs.default.existsSync(pathToSchema)) {
|
|
1064
1077
|
schema = import_fs.default.readFileSync(pathToSchema, "utf8");
|
|
1065
1078
|
}
|
|
@@ -1080,8 +1093,8 @@ var filterCollection = (collection, options) => {
|
|
|
1080
1093
|
};
|
|
1081
1094
|
var getEventCatalogConfigurationFile = (directory) => async () => {
|
|
1082
1095
|
try {
|
|
1083
|
-
const
|
|
1084
|
-
const configModule = await import(
|
|
1096
|
+
const path6 = (0, import_node_path15.join)(directory, "eventcatalog.config.js");
|
|
1097
|
+
const configModule = await import(path6);
|
|
1085
1098
|
return configModule.default;
|
|
1086
1099
|
} catch (error) {
|
|
1087
1100
|
console.error("Error getting event catalog configuration file", error);
|
|
@@ -1139,7 +1152,7 @@ var dumpCatalog = (directory) => async (options) => {
|
|
|
1139
1152
|
|
|
1140
1153
|
// src/entities.ts
|
|
1141
1154
|
var import_promises10 = __toESM(require("fs/promises"));
|
|
1142
|
-
var
|
|
1155
|
+
var import_node_path16 = require("path");
|
|
1143
1156
|
var getEntity = (directory) => async (id, version) => getResource(directory, id, version, { type: "entity" });
|
|
1144
1157
|
var getEntities = (directory) => async (options) => getResources(directory, { type: "entities", latestOnly: options?.latestOnly });
|
|
1145
1158
|
var writeEntity = (directory) => async (entity, options = {
|
|
@@ -1147,8 +1160,8 @@ var writeEntity = (directory) => async (entity, options = {
|
|
|
1147
1160
|
override: false,
|
|
1148
1161
|
format: "mdx"
|
|
1149
1162
|
}) => writeResource(directory, { ...entity }, { ...options, type: "entity" });
|
|
1150
|
-
var rmEntity = (directory) => async (
|
|
1151
|
-
await import_promises10.default.rm((0,
|
|
1163
|
+
var rmEntity = (directory) => async (path6) => {
|
|
1164
|
+
await import_promises10.default.rm((0, import_node_path16.join)(directory, path6), { recursive: true });
|
|
1152
1165
|
};
|
|
1153
1166
|
var rmEntityById = (directory) => async (id, version, persistFiles) => {
|
|
1154
1167
|
await rmResourceById(directory, id, version, { type: "entity", persistFiles });
|
|
@@ -1161,7 +1174,7 @@ var entityHasVersion = (directory) => async (id, version) => {
|
|
|
1161
1174
|
|
|
1162
1175
|
// src/containers.ts
|
|
1163
1176
|
var import_promises11 = __toESM(require("fs/promises"));
|
|
1164
|
-
var
|
|
1177
|
+
var import_node_path17 = require("path");
|
|
1165
1178
|
var getContainer = (directory) => async (id, version) => getResource(directory, id, version, { type: "container" });
|
|
1166
1179
|
var getContainers = (directory) => async (options) => getResources(directory, { type: "containers", latestOnly: options?.latestOnly });
|
|
1167
1180
|
var writeContainer = (directory) => async (data, options = {
|
|
@@ -1170,8 +1183,8 @@ var writeContainer = (directory) => async (data, options = {
|
|
|
1170
1183
|
format: "mdx"
|
|
1171
1184
|
}) => writeResource(directory, { ...data }, { ...options, type: "container" });
|
|
1172
1185
|
var versionContainer = (directory) => async (id) => versionResource(directory, id);
|
|
1173
|
-
var rmContainer = (directory) => async (
|
|
1174
|
-
await import_promises11.default.rm((0,
|
|
1186
|
+
var rmContainer = (directory) => async (path6) => {
|
|
1187
|
+
await import_promises11.default.rm((0, import_node_path17.join)(directory, path6), { recursive: true });
|
|
1175
1188
|
};
|
|
1176
1189
|
var rmContainerById = (directory) => async (id, version, persistFiles) => {
|
|
1177
1190
|
await rmResourceById(directory, id, version, { type: "container", persistFiles });
|
|
@@ -1187,7 +1200,7 @@ var writeContainerToService = (directory) => async (container, service, options
|
|
|
1187
1200
|
throw new Error("Service not found");
|
|
1188
1201
|
}
|
|
1189
1202
|
let pathForContainer = service.version && service.version !== "latest" ? `${resourcePath.directory}/versioned/${service.version}/containers` : `${resourcePath.directory}/containers`;
|
|
1190
|
-
pathForContainer = (0,
|
|
1203
|
+
pathForContainer = (0, import_node_path17.join)(pathForContainer, container.id);
|
|
1191
1204
|
await writeResource(directory, { ...container }, { ...options, path: pathForContainer, type: "container" });
|
|
1192
1205
|
};
|
|
1193
1206
|
|
|
@@ -1203,7 +1216,7 @@ var addFileToDataStore = addFileToContainer;
|
|
|
1203
1216
|
var writeDataStoreToService = writeContainerToService;
|
|
1204
1217
|
|
|
1205
1218
|
// src/index.ts
|
|
1206
|
-
var index_default = (
|
|
1219
|
+
var index_default = (path6) => {
|
|
1207
1220
|
return {
|
|
1208
1221
|
/**
|
|
1209
1222
|
* Returns an events from EventCatalog
|
|
@@ -1211,13 +1224,13 @@ var index_default = (path5) => {
|
|
|
1211
1224
|
* @param version - Optional id of the version to get (supports semver)
|
|
1212
1225
|
* @returns Event|Undefined
|
|
1213
1226
|
*/
|
|
1214
|
-
getEvent: getEvent((0,
|
|
1227
|
+
getEvent: getEvent((0, import_node_path18.join)(path6)),
|
|
1215
1228
|
/**
|
|
1216
1229
|
* Returns all events from EventCatalog
|
|
1217
1230
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
1218
1231
|
* @returns Event[]|Undefined
|
|
1219
1232
|
*/
|
|
1220
|
-
getEvents: getEvents((0,
|
|
1233
|
+
getEvents: getEvents((0, import_node_path18.join)(path6)),
|
|
1221
1234
|
/**
|
|
1222
1235
|
* Adds an event to EventCatalog
|
|
1223
1236
|
*
|
|
@@ -1225,7 +1238,7 @@ var index_default = (path5) => {
|
|
|
1225
1238
|
* @param options - Optional options to write the event
|
|
1226
1239
|
*
|
|
1227
1240
|
*/
|
|
1228
|
-
writeEvent: writeEvent((0,
|
|
1241
|
+
writeEvent: writeEvent((0, import_node_path18.join)(path6, "events")),
|
|
1229
1242
|
/**
|
|
1230
1243
|
* Adds an event to a service in EventCatalog
|
|
1231
1244
|
*
|
|
@@ -1234,26 +1247,26 @@ var index_default = (path5) => {
|
|
|
1234
1247
|
* @param options - Optional options to write the event
|
|
1235
1248
|
*
|
|
1236
1249
|
*/
|
|
1237
|
-
writeEventToService: writeEventToService((0,
|
|
1250
|
+
writeEventToService: writeEventToService((0, import_node_path18.join)(path6)),
|
|
1238
1251
|
/**
|
|
1239
1252
|
* Remove an event to EventCatalog (modeled on the standard POSIX rm utility)
|
|
1240
1253
|
*
|
|
1241
1254
|
* @param path - The path to your event, e.g. `/Inventory/InventoryAdjusted`
|
|
1242
1255
|
*
|
|
1243
1256
|
*/
|
|
1244
|
-
rmEvent: rmEvent((0,
|
|
1257
|
+
rmEvent: rmEvent((0, import_node_path18.join)(path6, "events")),
|
|
1245
1258
|
/**
|
|
1246
1259
|
* Remove an event by an Event id
|
|
1247
1260
|
*
|
|
1248
1261
|
* @param id - The id of the event you want to remove
|
|
1249
1262
|
*
|
|
1250
1263
|
*/
|
|
1251
|
-
rmEventById: rmEventById((0,
|
|
1264
|
+
rmEventById: rmEventById((0, import_node_path18.join)(path6)),
|
|
1252
1265
|
/**
|
|
1253
1266
|
* Moves a given event id to the version directory
|
|
1254
1267
|
* @param directory
|
|
1255
1268
|
*/
|
|
1256
|
-
versionEvent: versionEvent((0,
|
|
1269
|
+
versionEvent: versionEvent((0, import_node_path18.join)(path6)),
|
|
1257
1270
|
/**
|
|
1258
1271
|
* Adds a file to the given event
|
|
1259
1272
|
* @param id - The id of the event to add the file to
|
|
@@ -1261,7 +1274,7 @@ var index_default = (path5) => {
|
|
|
1261
1274
|
* @param version - Optional version of the event to add the file to
|
|
1262
1275
|
* @returns
|
|
1263
1276
|
*/
|
|
1264
|
-
addFileToEvent: addFileToEvent((0,
|
|
1277
|
+
addFileToEvent: addFileToEvent((0, import_node_path18.join)(path6)),
|
|
1265
1278
|
/**
|
|
1266
1279
|
* Adds a schema to the given event
|
|
1267
1280
|
* @param id - The id of the event to add the schema to
|
|
@@ -1269,14 +1282,14 @@ var index_default = (path5) => {
|
|
|
1269
1282
|
* @param version - Optional version of the event to add the schema to
|
|
1270
1283
|
* @returns
|
|
1271
1284
|
*/
|
|
1272
|
-
addSchemaToEvent: addSchemaToEvent((0,
|
|
1285
|
+
addSchemaToEvent: addSchemaToEvent((0, import_node_path18.join)(path6)),
|
|
1273
1286
|
/**
|
|
1274
1287
|
* Check to see if an event version exists
|
|
1275
1288
|
* @param id - The id of the event
|
|
1276
1289
|
* @param version - The version of the event (supports semver)
|
|
1277
1290
|
* @returns
|
|
1278
1291
|
*/
|
|
1279
|
-
eventHasVersion: eventHasVersion((0,
|
|
1292
|
+
eventHasVersion: eventHasVersion((0, import_node_path18.join)(path6)),
|
|
1280
1293
|
/**
|
|
1281
1294
|
* ================================
|
|
1282
1295
|
* Commands
|
|
@@ -1288,13 +1301,13 @@ var index_default = (path5) => {
|
|
|
1288
1301
|
* @param version - Optional id of the version to get (supports semver)
|
|
1289
1302
|
* @returns Command|Undefined
|
|
1290
1303
|
*/
|
|
1291
|
-
getCommand: getCommand((0,
|
|
1304
|
+
getCommand: getCommand((0, import_node_path18.join)(path6)),
|
|
1292
1305
|
/**
|
|
1293
1306
|
* Returns all commands from EventCatalog
|
|
1294
1307
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
1295
1308
|
* @returns Command[]|Undefined
|
|
1296
1309
|
*/
|
|
1297
|
-
getCommands: getCommands((0,
|
|
1310
|
+
getCommands: getCommands((0, import_node_path18.join)(path6)),
|
|
1298
1311
|
/**
|
|
1299
1312
|
* Adds an command to EventCatalog
|
|
1300
1313
|
*
|
|
@@ -1302,7 +1315,7 @@ var index_default = (path5) => {
|
|
|
1302
1315
|
* @param options - Optional options to write the command
|
|
1303
1316
|
*
|
|
1304
1317
|
*/
|
|
1305
|
-
writeCommand: writeCommand((0,
|
|
1318
|
+
writeCommand: writeCommand((0, import_node_path18.join)(path6, "commands")),
|
|
1306
1319
|
/**
|
|
1307
1320
|
* Adds a command to a service in EventCatalog
|
|
1308
1321
|
*
|
|
@@ -1311,26 +1324,26 @@ var index_default = (path5) => {
|
|
|
1311
1324
|
* @param options - Optional options to write the command
|
|
1312
1325
|
*
|
|
1313
1326
|
*/
|
|
1314
|
-
writeCommandToService: writeCommandToService((0,
|
|
1327
|
+
writeCommandToService: writeCommandToService((0, import_node_path18.join)(path6)),
|
|
1315
1328
|
/**
|
|
1316
1329
|
* Remove an command to EventCatalog (modeled on the standard POSIX rm utility)
|
|
1317
1330
|
*
|
|
1318
1331
|
* @param path - The path to your command, e.g. `/Inventory/InventoryAdjusted`
|
|
1319
1332
|
*
|
|
1320
1333
|
*/
|
|
1321
|
-
rmCommand: rmCommand((0,
|
|
1334
|
+
rmCommand: rmCommand((0, import_node_path18.join)(path6, "commands")),
|
|
1322
1335
|
/**
|
|
1323
1336
|
* Remove an command by an Event id
|
|
1324
1337
|
*
|
|
1325
1338
|
* @param id - The id of the command you want to remove
|
|
1326
1339
|
*
|
|
1327
1340
|
*/
|
|
1328
|
-
rmCommandById: rmCommandById((0,
|
|
1341
|
+
rmCommandById: rmCommandById((0, import_node_path18.join)(path6)),
|
|
1329
1342
|
/**
|
|
1330
1343
|
* Moves a given command id to the version directory
|
|
1331
1344
|
* @param directory
|
|
1332
1345
|
*/
|
|
1333
|
-
versionCommand: versionCommand((0,
|
|
1346
|
+
versionCommand: versionCommand((0, import_node_path18.join)(path6)),
|
|
1334
1347
|
/**
|
|
1335
1348
|
* Adds a file to the given command
|
|
1336
1349
|
* @param id - The id of the command to add the file to
|
|
@@ -1338,7 +1351,7 @@ var index_default = (path5) => {
|
|
|
1338
1351
|
* @param version - Optional version of the command to add the file to
|
|
1339
1352
|
* @returns
|
|
1340
1353
|
*/
|
|
1341
|
-
addFileToCommand: addFileToCommand((0,
|
|
1354
|
+
addFileToCommand: addFileToCommand((0, import_node_path18.join)(path6)),
|
|
1342
1355
|
/**
|
|
1343
1356
|
* Adds a schema to the given command
|
|
1344
1357
|
* @param id - The id of the command to add the schema to
|
|
@@ -1346,14 +1359,14 @@ var index_default = (path5) => {
|
|
|
1346
1359
|
* @param version - Optional version of the command to add the schema to
|
|
1347
1360
|
* @returns
|
|
1348
1361
|
*/
|
|
1349
|
-
addSchemaToCommand: addSchemaToCommand((0,
|
|
1362
|
+
addSchemaToCommand: addSchemaToCommand((0, import_node_path18.join)(path6)),
|
|
1350
1363
|
/**
|
|
1351
1364
|
* Check to see if a command version exists
|
|
1352
1365
|
* @param id - The id of the command
|
|
1353
1366
|
* @param version - The version of the command (supports semver)
|
|
1354
1367
|
* @returns
|
|
1355
1368
|
*/
|
|
1356
|
-
commandHasVersion: commandHasVersion((0,
|
|
1369
|
+
commandHasVersion: commandHasVersion((0, import_node_path18.join)(path6)),
|
|
1357
1370
|
/**
|
|
1358
1371
|
* ================================
|
|
1359
1372
|
* Queries
|
|
@@ -1365,13 +1378,13 @@ var index_default = (path5) => {
|
|
|
1365
1378
|
* @param version - Optional id of the version to get (supports semver)
|
|
1366
1379
|
* @returns Query|Undefined
|
|
1367
1380
|
*/
|
|
1368
|
-
getQuery: getQuery((0,
|
|
1381
|
+
getQuery: getQuery((0, import_node_path18.join)(path6)),
|
|
1369
1382
|
/**
|
|
1370
1383
|
* Returns all queries from EventCatalog
|
|
1371
1384
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
1372
1385
|
* @returns Query[]|Undefined
|
|
1373
1386
|
*/
|
|
1374
|
-
getQueries: getQueries((0,
|
|
1387
|
+
getQueries: getQueries((0, import_node_path18.join)(path6)),
|
|
1375
1388
|
/**
|
|
1376
1389
|
* Adds a query to EventCatalog
|
|
1377
1390
|
*
|
|
@@ -1379,7 +1392,7 @@ var index_default = (path5) => {
|
|
|
1379
1392
|
* @param options - Optional options to write the event
|
|
1380
1393
|
*
|
|
1381
1394
|
*/
|
|
1382
|
-
writeQuery: writeQuery((0,
|
|
1395
|
+
writeQuery: writeQuery((0, import_node_path18.join)(path6, "queries")),
|
|
1383
1396
|
/**
|
|
1384
1397
|
* Adds a query to a service in EventCatalog
|
|
1385
1398
|
*
|
|
@@ -1388,26 +1401,26 @@ var index_default = (path5) => {
|
|
|
1388
1401
|
* @param options - Optional options to write the query
|
|
1389
1402
|
*
|
|
1390
1403
|
*/
|
|
1391
|
-
writeQueryToService: writeQueryToService((0,
|
|
1404
|
+
writeQueryToService: writeQueryToService((0, import_node_path18.join)(path6)),
|
|
1392
1405
|
/**
|
|
1393
1406
|
* Remove an query to EventCatalog (modeled on the standard POSIX rm utility)
|
|
1394
1407
|
*
|
|
1395
1408
|
* @param path - The path to your query, e.g. `/Orders/GetOrder`
|
|
1396
1409
|
*
|
|
1397
1410
|
*/
|
|
1398
|
-
rmQuery: rmQuery((0,
|
|
1411
|
+
rmQuery: rmQuery((0, import_node_path18.join)(path6, "queries")),
|
|
1399
1412
|
/**
|
|
1400
1413
|
* Remove a query by a Query id
|
|
1401
1414
|
*
|
|
1402
1415
|
* @param id - The id of the query you want to remove
|
|
1403
1416
|
*
|
|
1404
1417
|
*/
|
|
1405
|
-
rmQueryById: rmQueryById((0,
|
|
1418
|
+
rmQueryById: rmQueryById((0, import_node_path18.join)(path6)),
|
|
1406
1419
|
/**
|
|
1407
1420
|
* Moves a given query id to the version directory
|
|
1408
1421
|
* @param directory
|
|
1409
1422
|
*/
|
|
1410
|
-
versionQuery: versionQuery((0,
|
|
1423
|
+
versionQuery: versionQuery((0, import_node_path18.join)(path6)),
|
|
1411
1424
|
/**
|
|
1412
1425
|
* Adds a file to the given query
|
|
1413
1426
|
* @param id - The id of the query to add the file to
|
|
@@ -1415,7 +1428,7 @@ var index_default = (path5) => {
|
|
|
1415
1428
|
* @param version - Optional version of the query to add the file to
|
|
1416
1429
|
* @returns
|
|
1417
1430
|
*/
|
|
1418
|
-
addFileToQuery: addFileToQuery((0,
|
|
1431
|
+
addFileToQuery: addFileToQuery((0, import_node_path18.join)(path6)),
|
|
1419
1432
|
/**
|
|
1420
1433
|
* Adds a schema to the given query
|
|
1421
1434
|
* @param id - The id of the query to add the schema to
|
|
@@ -1423,14 +1436,14 @@ var index_default = (path5) => {
|
|
|
1423
1436
|
* @param version - Optional version of the query to add the schema to
|
|
1424
1437
|
* @returns
|
|
1425
1438
|
*/
|
|
1426
|
-
addSchemaToQuery: addSchemaToQuery((0,
|
|
1439
|
+
addSchemaToQuery: addSchemaToQuery((0, import_node_path18.join)(path6)),
|
|
1427
1440
|
/**
|
|
1428
1441
|
* Check to see if an query version exists
|
|
1429
1442
|
* @param id - The id of the query
|
|
1430
1443
|
* @param version - The version of the query (supports semver)
|
|
1431
1444
|
* @returns
|
|
1432
1445
|
*/
|
|
1433
|
-
queryHasVersion: queryHasVersion((0,
|
|
1446
|
+
queryHasVersion: queryHasVersion((0, import_node_path18.join)(path6)),
|
|
1434
1447
|
/**
|
|
1435
1448
|
* ================================
|
|
1436
1449
|
* Channels
|
|
@@ -1442,13 +1455,13 @@ var index_default = (path5) => {
|
|
|
1442
1455
|
* @param version - Optional id of the version to get (supports semver)
|
|
1443
1456
|
* @returns Channel|Undefined
|
|
1444
1457
|
*/
|
|
1445
|
-
getChannel: getChannel((0,
|
|
1458
|
+
getChannel: getChannel((0, import_node_path18.join)(path6)),
|
|
1446
1459
|
/**
|
|
1447
1460
|
* Returns all channels from EventCatalog
|
|
1448
1461
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
1449
1462
|
* @returns Channel[]|Undefined
|
|
1450
1463
|
*/
|
|
1451
|
-
getChannels: getChannels((0,
|
|
1464
|
+
getChannels: getChannels((0, import_node_path18.join)(path6)),
|
|
1452
1465
|
/**
|
|
1453
1466
|
* Adds an channel to EventCatalog
|
|
1454
1467
|
*
|
|
@@ -1456,33 +1469,33 @@ var index_default = (path5) => {
|
|
|
1456
1469
|
* @param options - Optional options to write the channel
|
|
1457
1470
|
*
|
|
1458
1471
|
*/
|
|
1459
|
-
writeChannel: writeChannel((0,
|
|
1472
|
+
writeChannel: writeChannel((0, import_node_path18.join)(path6, "channels")),
|
|
1460
1473
|
/**
|
|
1461
1474
|
* Remove an channel to EventCatalog (modeled on the standard POSIX rm utility)
|
|
1462
1475
|
*
|
|
1463
1476
|
* @param path - The path to your channel, e.g. `/Inventory/InventoryAdjusted`
|
|
1464
1477
|
*
|
|
1465
1478
|
*/
|
|
1466
|
-
rmChannel: rmChannel((0,
|
|
1479
|
+
rmChannel: rmChannel((0, import_node_path18.join)(path6, "channels")),
|
|
1467
1480
|
/**
|
|
1468
1481
|
* Remove an channel by an Event id
|
|
1469
1482
|
*
|
|
1470
1483
|
* @param id - The id of the channel you want to remove
|
|
1471
1484
|
*
|
|
1472
1485
|
*/
|
|
1473
|
-
rmChannelById: rmChannelById((0,
|
|
1486
|
+
rmChannelById: rmChannelById((0, import_node_path18.join)(path6)),
|
|
1474
1487
|
/**
|
|
1475
1488
|
* Moves a given channel id to the version directory
|
|
1476
1489
|
* @param directory
|
|
1477
1490
|
*/
|
|
1478
|
-
versionChannel: versionChannel((0,
|
|
1491
|
+
versionChannel: versionChannel((0, import_node_path18.join)(path6)),
|
|
1479
1492
|
/**
|
|
1480
1493
|
* Check to see if a channel version exists
|
|
1481
1494
|
* @param id - The id of the channel
|
|
1482
1495
|
* @param version - The version of the channel (supports semver)
|
|
1483
1496
|
* @returns
|
|
1484
1497
|
*/
|
|
1485
|
-
channelHasVersion: channelHasVersion((0,
|
|
1498
|
+
channelHasVersion: channelHasVersion((0, import_node_path18.join)(path6)),
|
|
1486
1499
|
/**
|
|
1487
1500
|
* Add a channel to an event
|
|
1488
1501
|
*
|
|
@@ -1499,7 +1512,7 @@ var index_default = (path5) => {
|
|
|
1499
1512
|
*
|
|
1500
1513
|
* ```
|
|
1501
1514
|
*/
|
|
1502
|
-
addEventToChannel: addMessageToChannel((0,
|
|
1515
|
+
addEventToChannel: addMessageToChannel((0, import_node_path18.join)(path6), "events"),
|
|
1503
1516
|
/**
|
|
1504
1517
|
* Add a channel to an command
|
|
1505
1518
|
*
|
|
@@ -1516,7 +1529,7 @@ var index_default = (path5) => {
|
|
|
1516
1529
|
*
|
|
1517
1530
|
* ```
|
|
1518
1531
|
*/
|
|
1519
|
-
addCommandToChannel: addMessageToChannel((0,
|
|
1532
|
+
addCommandToChannel: addMessageToChannel((0, import_node_path18.join)(path6), "commands"),
|
|
1520
1533
|
/**
|
|
1521
1534
|
* Add a channel to an query
|
|
1522
1535
|
*
|
|
@@ -1533,7 +1546,7 @@ var index_default = (path5) => {
|
|
|
1533
1546
|
*
|
|
1534
1547
|
* ```
|
|
1535
1548
|
*/
|
|
1536
|
-
addQueryToChannel: addMessageToChannel((0,
|
|
1549
|
+
addQueryToChannel: addMessageToChannel((0, import_node_path18.join)(path6), "queries"),
|
|
1537
1550
|
/**
|
|
1538
1551
|
* ================================
|
|
1539
1552
|
* SERVICES
|
|
@@ -1546,14 +1559,14 @@ var index_default = (path5) => {
|
|
|
1546
1559
|
* @param options - Optional options to write the event
|
|
1547
1560
|
*
|
|
1548
1561
|
*/
|
|
1549
|
-
writeService: writeService((0,
|
|
1562
|
+
writeService: writeService((0, import_node_path18.join)(path6, "services")),
|
|
1550
1563
|
/**
|
|
1551
1564
|
* Adds a versioned service to EventCatalog
|
|
1552
1565
|
*
|
|
1553
1566
|
* @param service - The service to write
|
|
1554
1567
|
*
|
|
1555
1568
|
*/
|
|
1556
|
-
writeVersionedService: writeVersionedService((0,
|
|
1569
|
+
writeVersionedService: writeVersionedService((0, import_node_path18.join)(path6, "services")),
|
|
1557
1570
|
/**
|
|
1558
1571
|
* Adds a service to a domain in EventCatalog
|
|
1559
1572
|
*
|
|
@@ -1562,45 +1575,45 @@ var index_default = (path5) => {
|
|
|
1562
1575
|
* @param options - Optional options to write the event
|
|
1563
1576
|
*
|
|
1564
1577
|
*/
|
|
1565
|
-
writeServiceToDomain: writeServiceToDomain((0,
|
|
1578
|
+
writeServiceToDomain: writeServiceToDomain((0, import_node_path18.join)(path6, "domains")),
|
|
1566
1579
|
/**
|
|
1567
1580
|
* Returns a service from EventCatalog
|
|
1568
1581
|
* @param id - The id of the service to retrieve
|
|
1569
1582
|
* @param version - Optional id of the version to get (supports semver)
|
|
1570
1583
|
* @returns Service|Undefined
|
|
1571
1584
|
*/
|
|
1572
|
-
getService: getService((0,
|
|
1585
|
+
getService: getService((0, import_node_path18.join)(path6)),
|
|
1573
1586
|
/**
|
|
1574
1587
|
* Returns a service from EventCatalog by it's path.
|
|
1575
1588
|
* @param path - The path to the service to retrieve
|
|
1576
1589
|
* @returns Service|Undefined
|
|
1577
1590
|
*/
|
|
1578
|
-
getServiceByPath: getServiceByPath((0,
|
|
1591
|
+
getServiceByPath: getServiceByPath((0, import_node_path18.join)(path6)),
|
|
1579
1592
|
/**
|
|
1580
1593
|
* Returns all services from EventCatalog
|
|
1581
1594
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
1582
1595
|
* @returns Service[]|Undefined
|
|
1583
1596
|
*/
|
|
1584
|
-
getServices: getServices((0,
|
|
1597
|
+
getServices: getServices((0, import_node_path18.join)(path6)),
|
|
1585
1598
|
/**
|
|
1586
1599
|
* Moves a given service id to the version directory
|
|
1587
1600
|
* @param directory
|
|
1588
1601
|
*/
|
|
1589
|
-
versionService: versionService((0,
|
|
1602
|
+
versionService: versionService((0, import_node_path18.join)(path6)),
|
|
1590
1603
|
/**
|
|
1591
1604
|
* Remove a service from EventCatalog (modeled on the standard POSIX rm utility)
|
|
1592
1605
|
*
|
|
1593
1606
|
* @param path - The path to your service, e.g. `/InventoryService`
|
|
1594
1607
|
*
|
|
1595
1608
|
*/
|
|
1596
|
-
rmService: rmService((0,
|
|
1609
|
+
rmService: rmService((0, import_node_path18.join)(path6, "services")),
|
|
1597
1610
|
/**
|
|
1598
1611
|
* Remove an service by an service id
|
|
1599
1612
|
*
|
|
1600
1613
|
* @param id - The id of the service you want to remove
|
|
1601
1614
|
*
|
|
1602
1615
|
*/
|
|
1603
|
-
rmServiceById: rmServiceById((0,
|
|
1616
|
+
rmServiceById: rmServiceById((0, import_node_path18.join)(path6)),
|
|
1604
1617
|
/**
|
|
1605
1618
|
* Adds a file to the given service
|
|
1606
1619
|
* @param id - The id of the service to add the file to
|
|
@@ -1608,21 +1621,21 @@ var index_default = (path5) => {
|
|
|
1608
1621
|
* @param version - Optional version of the service to add the file to
|
|
1609
1622
|
* @returns
|
|
1610
1623
|
*/
|
|
1611
|
-
addFileToService: addFileToService((0,
|
|
1624
|
+
addFileToService: addFileToService((0, import_node_path18.join)(path6)),
|
|
1612
1625
|
/**
|
|
1613
1626
|
* Returns the specifications for a given service
|
|
1614
1627
|
* @param id - The id of the service to retrieve the specifications for
|
|
1615
1628
|
* @param version - Optional version of the service
|
|
1616
1629
|
* @returns
|
|
1617
1630
|
*/
|
|
1618
|
-
getSpecificationFilesForService: getSpecificationFilesForService((0,
|
|
1631
|
+
getSpecificationFilesForService: getSpecificationFilesForService((0, import_node_path18.join)(path6)),
|
|
1619
1632
|
/**
|
|
1620
1633
|
* Check to see if a service version exists
|
|
1621
1634
|
* @param id - The id of the service
|
|
1622
1635
|
* @param version - The version of the service (supports semver)
|
|
1623
1636
|
* @returns
|
|
1624
1637
|
*/
|
|
1625
|
-
serviceHasVersion: serviceHasVersion((0,
|
|
1638
|
+
serviceHasVersion: serviceHasVersion((0, import_node_path18.join)(path6)),
|
|
1626
1639
|
/**
|
|
1627
1640
|
* Add an event to a service by it's id.
|
|
1628
1641
|
*
|
|
@@ -1642,7 +1655,7 @@ var index_default = (path5) => {
|
|
|
1642
1655
|
*
|
|
1643
1656
|
* ```
|
|
1644
1657
|
*/
|
|
1645
|
-
addEventToService: addMessageToService((0,
|
|
1658
|
+
addEventToService: addMessageToService((0, import_node_path18.join)(path6)),
|
|
1646
1659
|
/**
|
|
1647
1660
|
* Add a data store to a service by it's id.
|
|
1648
1661
|
*
|
|
@@ -1659,7 +1672,7 @@ var index_default = (path5) => {
|
|
|
1659
1672
|
*
|
|
1660
1673
|
* ```
|
|
1661
1674
|
*/
|
|
1662
|
-
addDataStoreToService: addDataStoreToService((0,
|
|
1675
|
+
addDataStoreToService: addDataStoreToService((0, import_node_path18.join)(path6)),
|
|
1663
1676
|
/**
|
|
1664
1677
|
* Add a command to a service by it's id.
|
|
1665
1678
|
*
|
|
@@ -1679,7 +1692,7 @@ var index_default = (path5) => {
|
|
|
1679
1692
|
*
|
|
1680
1693
|
* ```
|
|
1681
1694
|
*/
|
|
1682
|
-
addCommandToService: addMessageToService((0,
|
|
1695
|
+
addCommandToService: addMessageToService((0, import_node_path18.join)(path6)),
|
|
1683
1696
|
/**
|
|
1684
1697
|
* Add a query to a service by it's id.
|
|
1685
1698
|
*
|
|
@@ -1699,7 +1712,7 @@ var index_default = (path5) => {
|
|
|
1699
1712
|
*
|
|
1700
1713
|
* ```
|
|
1701
1714
|
*/
|
|
1702
|
-
addQueryToService: addMessageToService((0,
|
|
1715
|
+
addQueryToService: addMessageToService((0, import_node_path18.join)(path6)),
|
|
1703
1716
|
/**
|
|
1704
1717
|
* Add an entity to a service by its id.
|
|
1705
1718
|
*
|
|
@@ -1717,7 +1730,7 @@ var index_default = (path5) => {
|
|
|
1717
1730
|
*
|
|
1718
1731
|
* ```
|
|
1719
1732
|
*/
|
|
1720
|
-
addEntityToService: addEntityToService((0,
|
|
1733
|
+
addEntityToService: addEntityToService((0, import_node_path18.join)(path6)),
|
|
1721
1734
|
/**
|
|
1722
1735
|
* Check to see if a service exists by it's path.
|
|
1723
1736
|
*
|
|
@@ -1734,13 +1747,13 @@ var index_default = (path5) => {
|
|
|
1734
1747
|
* @param path - The path to the service to check
|
|
1735
1748
|
* @returns boolean
|
|
1736
1749
|
*/
|
|
1737
|
-
isService: isService((0,
|
|
1750
|
+
isService: isService((0, import_node_path18.join)(path6)),
|
|
1738
1751
|
/**
|
|
1739
1752
|
* Converts a file to a service.
|
|
1740
1753
|
* @param file - The file to convert to a service.
|
|
1741
1754
|
* @returns The service.
|
|
1742
1755
|
*/
|
|
1743
|
-
toService: toService((0,
|
|
1756
|
+
toService: toService((0, import_node_path18.join)(path6)),
|
|
1744
1757
|
/**
|
|
1745
1758
|
* ================================
|
|
1746
1759
|
* Domains
|
|
@@ -1753,39 +1766,39 @@ var index_default = (path5) => {
|
|
|
1753
1766
|
* @param options - Optional options to write the event
|
|
1754
1767
|
*
|
|
1755
1768
|
*/
|
|
1756
|
-
writeDomain: writeDomain((0,
|
|
1769
|
+
writeDomain: writeDomain((0, import_node_path18.join)(path6, "domains")),
|
|
1757
1770
|
/**
|
|
1758
1771
|
* Returns a domain from EventCatalog
|
|
1759
1772
|
* @param id - The id of the domain to retrieve
|
|
1760
1773
|
* @param version - Optional id of the version to get (supports semver)
|
|
1761
1774
|
* @returns Domain|Undefined
|
|
1762
1775
|
*/
|
|
1763
|
-
getDomain: getDomain((0,
|
|
1776
|
+
getDomain: getDomain((0, import_node_path18.join)(path6, "domains")),
|
|
1764
1777
|
/**
|
|
1765
1778
|
* Returns all domains from EventCatalog
|
|
1766
1779
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
1767
1780
|
* @returns Domain[]|Undefined
|
|
1768
1781
|
*/
|
|
1769
|
-
getDomains: getDomains((0,
|
|
1782
|
+
getDomains: getDomains((0, import_node_path18.join)(path6)),
|
|
1770
1783
|
/**
|
|
1771
1784
|
* Moves a given domain id to the version directory
|
|
1772
1785
|
* @param directory
|
|
1773
1786
|
*/
|
|
1774
|
-
versionDomain: versionDomain((0,
|
|
1787
|
+
versionDomain: versionDomain((0, import_node_path18.join)(path6, "domains")),
|
|
1775
1788
|
/**
|
|
1776
1789
|
* Remove a domain from EventCatalog (modeled on the standard POSIX rm utility)
|
|
1777
1790
|
*
|
|
1778
1791
|
* @param path - The path to your domain, e.g. `/Payment`
|
|
1779
1792
|
*
|
|
1780
1793
|
*/
|
|
1781
|
-
rmDomain: rmDomain((0,
|
|
1794
|
+
rmDomain: rmDomain((0, import_node_path18.join)(path6, "domains")),
|
|
1782
1795
|
/**
|
|
1783
1796
|
* Remove an service by an domain id
|
|
1784
1797
|
*
|
|
1785
1798
|
* @param id - The id of the domain you want to remove
|
|
1786
1799
|
*
|
|
1787
1800
|
*/
|
|
1788
|
-
rmDomainById: rmDomainById((0,
|
|
1801
|
+
rmDomainById: rmDomainById((0, import_node_path18.join)(path6, "domains")),
|
|
1789
1802
|
/**
|
|
1790
1803
|
* Adds a file to the given domain
|
|
1791
1804
|
* @param id - The id of the domain to add the file to
|
|
@@ -1793,28 +1806,28 @@ var index_default = (path5) => {
|
|
|
1793
1806
|
* @param version - Optional version of the domain to add the file to
|
|
1794
1807
|
* @returns
|
|
1795
1808
|
*/
|
|
1796
|
-
addFileToDomain: addFileToDomain((0,
|
|
1809
|
+
addFileToDomain: addFileToDomain((0, import_node_path18.join)(path6, "domains")),
|
|
1797
1810
|
/**
|
|
1798
1811
|
* Adds an ubiquitous language dictionary to a domain
|
|
1799
1812
|
* @param id - The id of the domain to add the ubiquitous language to
|
|
1800
1813
|
* @param ubiquitousLanguageDictionary - The ubiquitous language dictionary to add
|
|
1801
1814
|
* @param version - Optional version of the domain to add the ubiquitous language to
|
|
1802
1815
|
*/
|
|
1803
|
-
addUbiquitousLanguageToDomain: addUbiquitousLanguageToDomain((0,
|
|
1816
|
+
addUbiquitousLanguageToDomain: addUbiquitousLanguageToDomain((0, import_node_path18.join)(path6, "domains")),
|
|
1804
1817
|
/**
|
|
1805
1818
|
* Get the ubiquitous language dictionary from a domain
|
|
1806
1819
|
* @param id - The id of the domain to get the ubiquitous language from
|
|
1807
1820
|
* @param version - Optional version of the domain to get the ubiquitous language from
|
|
1808
1821
|
* @returns
|
|
1809
1822
|
*/
|
|
1810
|
-
getUbiquitousLanguageFromDomain: getUbiquitousLanguageFromDomain((0,
|
|
1823
|
+
getUbiquitousLanguageFromDomain: getUbiquitousLanguageFromDomain((0, import_node_path18.join)(path6, "domains")),
|
|
1811
1824
|
/**
|
|
1812
1825
|
* Check to see if a domain version exists
|
|
1813
1826
|
* @param id - The id of the domain
|
|
1814
1827
|
* @param version - The version of the domain (supports semver)
|
|
1815
1828
|
* @returns
|
|
1816
1829
|
*/
|
|
1817
|
-
domainHasVersion: domainHasVersion((0,
|
|
1830
|
+
domainHasVersion: domainHasVersion((0, import_node_path18.join)(path6)),
|
|
1818
1831
|
/**
|
|
1819
1832
|
* Adds a given service to a domain
|
|
1820
1833
|
* @param id - The id of the domain
|
|
@@ -1822,7 +1835,7 @@ var index_default = (path5) => {
|
|
|
1822
1835
|
* @param version - (Optional) The version of the domain to add the service to
|
|
1823
1836
|
* @returns
|
|
1824
1837
|
*/
|
|
1825
|
-
addServiceToDomain: addServiceToDomain((0,
|
|
1838
|
+
addServiceToDomain: addServiceToDomain((0, import_node_path18.join)(path6, "domains")),
|
|
1826
1839
|
/**
|
|
1827
1840
|
* Adds a given subdomain to a domain
|
|
1828
1841
|
* @param id - The id of the domain
|
|
@@ -1830,7 +1843,7 @@ var index_default = (path5) => {
|
|
|
1830
1843
|
* @param version - (Optional) The version of the domain to add the subdomain to
|
|
1831
1844
|
* @returns
|
|
1832
1845
|
*/
|
|
1833
|
-
addSubDomainToDomain: addSubDomainToDomain((0,
|
|
1846
|
+
addSubDomainToDomain: addSubDomainToDomain((0, import_node_path18.join)(path6, "domains")),
|
|
1834
1847
|
/**
|
|
1835
1848
|
* Adds an entity to a domain
|
|
1836
1849
|
* @param id - The id of the domain
|
|
@@ -1838,7 +1851,7 @@ var index_default = (path5) => {
|
|
|
1838
1851
|
* @param version - (Optional) The version of the domain to add the entity to
|
|
1839
1852
|
* @returns
|
|
1840
1853
|
*/
|
|
1841
|
-
addEntityToDomain: addEntityToDomain((0,
|
|
1854
|
+
addEntityToDomain: addEntityToDomain((0, import_node_path18.join)(path6, "domains")),
|
|
1842
1855
|
/**
|
|
1843
1856
|
* ================================
|
|
1844
1857
|
* Teams
|
|
@@ -1851,25 +1864,25 @@ var index_default = (path5) => {
|
|
|
1851
1864
|
* @param options - Optional options to write the team
|
|
1852
1865
|
*
|
|
1853
1866
|
*/
|
|
1854
|
-
writeTeam: writeTeam((0,
|
|
1867
|
+
writeTeam: writeTeam((0, import_node_path18.join)(path6, "teams")),
|
|
1855
1868
|
/**
|
|
1856
1869
|
* Returns a team from EventCatalog
|
|
1857
1870
|
* @param id - The id of the team to retrieve
|
|
1858
1871
|
* @returns Team|Undefined
|
|
1859
1872
|
*/
|
|
1860
|
-
getTeam: getTeam((0,
|
|
1873
|
+
getTeam: getTeam((0, import_node_path18.join)(path6, "teams")),
|
|
1861
1874
|
/**
|
|
1862
1875
|
* Returns all teams from EventCatalog
|
|
1863
1876
|
* @returns Team[]|Undefined
|
|
1864
1877
|
*/
|
|
1865
|
-
getTeams: getTeams((0,
|
|
1878
|
+
getTeams: getTeams((0, import_node_path18.join)(path6, "teams")),
|
|
1866
1879
|
/**
|
|
1867
1880
|
* Remove a team by the team id
|
|
1868
1881
|
*
|
|
1869
1882
|
* @param id - The id of the team you want to remove
|
|
1870
1883
|
*
|
|
1871
1884
|
*/
|
|
1872
|
-
rmTeamById: rmTeamById((0,
|
|
1885
|
+
rmTeamById: rmTeamById((0, import_node_path18.join)(path6, "teams")),
|
|
1873
1886
|
/**
|
|
1874
1887
|
* ================================
|
|
1875
1888
|
* Users
|
|
@@ -1882,25 +1895,25 @@ var index_default = (path5) => {
|
|
|
1882
1895
|
* @param options - Optional options to write the user
|
|
1883
1896
|
*
|
|
1884
1897
|
*/
|
|
1885
|
-
writeUser: writeUser((0,
|
|
1898
|
+
writeUser: writeUser((0, import_node_path18.join)(path6, "users")),
|
|
1886
1899
|
/**
|
|
1887
1900
|
* Returns a user from EventCatalog
|
|
1888
1901
|
* @param id - The id of the user to retrieve
|
|
1889
1902
|
* @returns User|Undefined
|
|
1890
1903
|
*/
|
|
1891
|
-
getUser: getUser((0,
|
|
1904
|
+
getUser: getUser((0, import_node_path18.join)(path6, "users")),
|
|
1892
1905
|
/**
|
|
1893
1906
|
* Returns all user from EventCatalog
|
|
1894
1907
|
* @returns User[]|Undefined
|
|
1895
1908
|
*/
|
|
1896
|
-
getUsers: getUsers((0,
|
|
1909
|
+
getUsers: getUsers((0, import_node_path18.join)(path6)),
|
|
1897
1910
|
/**
|
|
1898
1911
|
* Remove a user by the user id
|
|
1899
1912
|
*
|
|
1900
1913
|
* @param id - The id of the user you want to remove
|
|
1901
1914
|
*
|
|
1902
1915
|
*/
|
|
1903
|
-
rmUserById: rmUserById((0,
|
|
1916
|
+
rmUserById: rmUserById((0, import_node_path18.join)(path6, "users")),
|
|
1904
1917
|
/**
|
|
1905
1918
|
* ================================
|
|
1906
1919
|
* Custom Docs
|
|
@@ -1911,32 +1924,32 @@ var index_default = (path5) => {
|
|
|
1911
1924
|
* @param path - The path to the custom doc to retrieve
|
|
1912
1925
|
* @returns CustomDoc|Undefined
|
|
1913
1926
|
*/
|
|
1914
|
-
getCustomDoc: getCustomDoc((0,
|
|
1927
|
+
getCustomDoc: getCustomDoc((0, import_node_path18.join)(path6, "docs")),
|
|
1915
1928
|
/**
|
|
1916
1929
|
* Returns all custom docs from EventCatalog
|
|
1917
1930
|
* @param options - Optional options to get custom docs from a specific path
|
|
1918
1931
|
* @returns CustomDoc[]|Undefined
|
|
1919
1932
|
*/
|
|
1920
|
-
getCustomDocs: getCustomDocs((0,
|
|
1933
|
+
getCustomDocs: getCustomDocs((0, import_node_path18.join)(path6, "docs")),
|
|
1921
1934
|
/**
|
|
1922
1935
|
* Writes a custom doc to EventCatalog
|
|
1923
1936
|
* @param customDoc - The custom doc to write
|
|
1924
1937
|
* @param options - Optional options to write the custom doc
|
|
1925
1938
|
*
|
|
1926
1939
|
*/
|
|
1927
|
-
writeCustomDoc: writeCustomDoc((0,
|
|
1940
|
+
writeCustomDoc: writeCustomDoc((0, import_node_path18.join)(path6, "docs")),
|
|
1928
1941
|
/**
|
|
1929
1942
|
* Removes a custom doc from EventCatalog
|
|
1930
1943
|
* @param path - The path to the custom doc to remove
|
|
1931
1944
|
*
|
|
1932
1945
|
*/
|
|
1933
|
-
rmCustomDoc: rmCustomDoc((0,
|
|
1946
|
+
rmCustomDoc: rmCustomDoc((0, import_node_path18.join)(path6, "docs")),
|
|
1934
1947
|
/**
|
|
1935
1948
|
* Dumps the catalog to a JSON file.
|
|
1936
1949
|
* @param directory - The directory to dump the catalog to
|
|
1937
1950
|
* @returns A JSON file with the catalog
|
|
1938
1951
|
*/
|
|
1939
|
-
dumpCatalog: dumpCatalog((0,
|
|
1952
|
+
dumpCatalog: dumpCatalog((0, import_node_path18.join)(path6)),
|
|
1940
1953
|
/**
|
|
1941
1954
|
* Returns the event catalog configuration file.
|
|
1942
1955
|
* The event catalog configuration file is the file that contains the configuration for the event catalog.
|
|
@@ -1944,7 +1957,7 @@ var index_default = (path5) => {
|
|
|
1944
1957
|
* @param directory - The directory of the catalog.
|
|
1945
1958
|
* @returns A JSON object with the configuration for the event catalog.
|
|
1946
1959
|
*/
|
|
1947
|
-
getEventCatalogConfigurationFile: getEventCatalogConfigurationFile((0,
|
|
1960
|
+
getEventCatalogConfigurationFile: getEventCatalogConfigurationFile((0, import_node_path18.join)(path6)),
|
|
1948
1961
|
/**
|
|
1949
1962
|
* ================================
|
|
1950
1963
|
* Resources Utils
|
|
@@ -1954,6 +1967,10 @@ var index_default = (path5) => {
|
|
|
1954
1967
|
* Returns the path to a given resource by id and version
|
|
1955
1968
|
*/
|
|
1956
1969
|
getResourcePath,
|
|
1970
|
+
/**
|
|
1971
|
+
* Returns the folder name of a given resource
|
|
1972
|
+
*/
|
|
1973
|
+
getResourceFolderName,
|
|
1957
1974
|
/**
|
|
1958
1975
|
* ================================
|
|
1959
1976
|
* General Message Utils
|
|
@@ -1965,33 +1982,33 @@ var index_default = (path5) => {
|
|
|
1965
1982
|
* @param path - The path to the message to retrieve
|
|
1966
1983
|
* @returns Message|Undefined
|
|
1967
1984
|
*/
|
|
1968
|
-
getMessageBySchemaPath: getMessageBySchemaPath((0,
|
|
1985
|
+
getMessageBySchemaPath: getMessageBySchemaPath((0, import_node_path18.join)(path6)),
|
|
1969
1986
|
/**
|
|
1970
1987
|
* Returns the producers and consumers (services) for a given message
|
|
1971
1988
|
* @param id - The id of the message to get the producers and consumers for
|
|
1972
1989
|
* @param version - Optional version of the message
|
|
1973
1990
|
* @returns { producers: Service[], consumers: Service[] }
|
|
1974
1991
|
*/
|
|
1975
|
-
getProducersAndConsumersForMessage: getProducersAndConsumersForMessage((0,
|
|
1992
|
+
getProducersAndConsumersForMessage: getProducersAndConsumersForMessage((0, import_node_path18.join)(path6)),
|
|
1976
1993
|
/**
|
|
1977
1994
|
* Returns the consumers of a given schema path
|
|
1978
1995
|
* @param path - The path to the schema to get the consumers for
|
|
1979
1996
|
* @returns Service[]
|
|
1980
1997
|
*/
|
|
1981
|
-
getConsumersOfSchema: getConsumersOfSchema((0,
|
|
1998
|
+
getConsumersOfSchema: getConsumersOfSchema((0, import_node_path18.join)(path6)),
|
|
1982
1999
|
/**
|
|
1983
2000
|
* Returns the producers of a given schema path
|
|
1984
2001
|
* @param path - The path to the schema to get the producers for
|
|
1985
2002
|
* @returns Service[]
|
|
1986
2003
|
*/
|
|
1987
|
-
getProducersOfSchema: getProducersOfSchema((0,
|
|
2004
|
+
getProducersOfSchema: getProducersOfSchema((0, import_node_path18.join)(path6)),
|
|
1988
2005
|
/**
|
|
1989
2006
|
* Returns the owners for a given resource (e.g domain, service, event, command, query, etc.)
|
|
1990
2007
|
* @param id - The id of the resource to get the owners for
|
|
1991
2008
|
* @param version - Optional version of the resource
|
|
1992
2009
|
* @returns { owners: User[] }
|
|
1993
2010
|
*/
|
|
1994
|
-
getOwnersForResource: getOwnersForResource((0,
|
|
2011
|
+
getOwnersForResource: getOwnersForResource((0, import_node_path18.join)(path6)),
|
|
1995
2012
|
/**
|
|
1996
2013
|
* ================================
|
|
1997
2014
|
* Entities
|
|
@@ -2003,13 +2020,13 @@ var index_default = (path5) => {
|
|
|
2003
2020
|
* @param version - Optional id of the version to get (supports semver)
|
|
2004
2021
|
* @returns Entity|Undefined
|
|
2005
2022
|
*/
|
|
2006
|
-
getEntity: getEntity((0,
|
|
2023
|
+
getEntity: getEntity((0, import_node_path18.join)(path6)),
|
|
2007
2024
|
/**
|
|
2008
2025
|
* Returns all entities from EventCatalog
|
|
2009
2026
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2010
2027
|
* @returns Entity[]|Undefined
|
|
2011
2028
|
*/
|
|
2012
|
-
getEntities: getEntities((0,
|
|
2029
|
+
getEntities: getEntities((0, import_node_path18.join)(path6)),
|
|
2013
2030
|
/**
|
|
2014
2031
|
* Adds an entity to EventCatalog
|
|
2015
2032
|
*
|
|
@@ -2017,33 +2034,33 @@ var index_default = (path5) => {
|
|
|
2017
2034
|
* @param options - Optional options to write the entity
|
|
2018
2035
|
*
|
|
2019
2036
|
*/
|
|
2020
|
-
writeEntity: writeEntity((0,
|
|
2037
|
+
writeEntity: writeEntity((0, import_node_path18.join)(path6, "entities")),
|
|
2021
2038
|
/**
|
|
2022
2039
|
* Remove an entity from EventCatalog (modeled on the standard POSIX rm utility)
|
|
2023
2040
|
*
|
|
2024
2041
|
* @param path - The path to your entity, e.g. `/User`
|
|
2025
2042
|
*
|
|
2026
2043
|
*/
|
|
2027
|
-
rmEntity: rmEntity((0,
|
|
2044
|
+
rmEntity: rmEntity((0, import_node_path18.join)(path6, "entities")),
|
|
2028
2045
|
/**
|
|
2029
2046
|
* Remove an entity by an entity id
|
|
2030
2047
|
*
|
|
2031
2048
|
* @param id - The id of the entity you want to remove
|
|
2032
2049
|
*
|
|
2033
2050
|
*/
|
|
2034
|
-
rmEntityById: rmEntityById((0,
|
|
2051
|
+
rmEntityById: rmEntityById((0, import_node_path18.join)(path6)),
|
|
2035
2052
|
/**
|
|
2036
2053
|
* Moves a given entity id to the version directory
|
|
2037
2054
|
* @param id - The id of the entity to version
|
|
2038
2055
|
*/
|
|
2039
|
-
versionEntity: versionEntity((0,
|
|
2056
|
+
versionEntity: versionEntity((0, import_node_path18.join)(path6)),
|
|
2040
2057
|
/**
|
|
2041
2058
|
* Check to see if an entity version exists
|
|
2042
2059
|
* @param id - The id of the entity
|
|
2043
2060
|
* @param version - The version of the entity (supports semver)
|
|
2044
2061
|
* @returns
|
|
2045
2062
|
*/
|
|
2046
|
-
entityHasVersion: entityHasVersion((0,
|
|
2063
|
+
entityHasVersion: entityHasVersion((0, import_node_path18.join)(path6)),
|
|
2047
2064
|
/**
|
|
2048
2065
|
* ================================
|
|
2049
2066
|
* Data Stores
|
|
@@ -2055,42 +2072,42 @@ var index_default = (path5) => {
|
|
|
2055
2072
|
* @param options - Optional options to write the data store
|
|
2056
2073
|
*
|
|
2057
2074
|
*/
|
|
2058
|
-
writeDataStore: writeDataStore((0,
|
|
2075
|
+
writeDataStore: writeDataStore((0, import_node_path18.join)(path6, "containers")),
|
|
2059
2076
|
/**
|
|
2060
2077
|
* Returns a data store from EventCatalog
|
|
2061
2078
|
* @param id - The id of the data store to retrieve
|
|
2062
2079
|
* @param version - Optional id of the version to get (supports semver)
|
|
2063
2080
|
* @returns Container|Undefined
|
|
2064
2081
|
*/
|
|
2065
|
-
getDataStore: getDataStore((0,
|
|
2082
|
+
getDataStore: getDataStore((0, import_node_path18.join)(path6)),
|
|
2066
2083
|
/**
|
|
2067
2084
|
* Returns all data stores from EventCatalog
|
|
2068
2085
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2069
2086
|
* @returns Container[]|Undefined
|
|
2070
2087
|
*/
|
|
2071
|
-
getDataStores: getDataStores((0,
|
|
2088
|
+
getDataStores: getDataStores((0, import_node_path18.join)(path6)),
|
|
2072
2089
|
/**
|
|
2073
2090
|
* Version a data store by its id
|
|
2074
2091
|
* @param id - The id of the data store to version
|
|
2075
2092
|
*/
|
|
2076
|
-
versionDataStore: versionDataStore((0,
|
|
2093
|
+
versionDataStore: versionDataStore((0, import_node_path18.join)(path6, "containers")),
|
|
2077
2094
|
/**
|
|
2078
2095
|
* Remove a data store by its path
|
|
2079
2096
|
* @param path - The path to the data store to remove
|
|
2080
2097
|
*/
|
|
2081
|
-
rmDataStore: rmDataStore((0,
|
|
2098
|
+
rmDataStore: rmDataStore((0, import_node_path18.join)(path6, "containers")),
|
|
2082
2099
|
/**
|
|
2083
2100
|
* Remove a data store by its id
|
|
2084
2101
|
* @param id - The id of the data store to remove
|
|
2085
2102
|
*/
|
|
2086
|
-
rmDataStoreById: rmDataStoreById((0,
|
|
2103
|
+
rmDataStoreById: rmDataStoreById((0, import_node_path18.join)(path6)),
|
|
2087
2104
|
/**
|
|
2088
2105
|
* Check to see if a data store version exists
|
|
2089
2106
|
* @param id - The id of the data store
|
|
2090
2107
|
* @param version - The version of the data store (supports semver)
|
|
2091
2108
|
* @returns
|
|
2092
2109
|
*/
|
|
2093
|
-
dataStoreHasVersion: dataStoreHasVersion((0,
|
|
2110
|
+
dataStoreHasVersion: dataStoreHasVersion((0, import_node_path18.join)(path6)),
|
|
2094
2111
|
/**
|
|
2095
2112
|
* Adds a file to a data store by its id
|
|
2096
2113
|
* @param id - The id of the data store to add the file to
|
|
@@ -2098,14 +2115,14 @@ var index_default = (path5) => {
|
|
|
2098
2115
|
* @param version - Optional version of the data store to add the file to
|
|
2099
2116
|
* @returns
|
|
2100
2117
|
*/
|
|
2101
|
-
addFileToDataStore: addFileToDataStore((0,
|
|
2118
|
+
addFileToDataStore: addFileToDataStore((0, import_node_path18.join)(path6)),
|
|
2102
2119
|
/**
|
|
2103
2120
|
* Writes a data store to a service by its id
|
|
2104
2121
|
* @param dataStore - The data store to write
|
|
2105
2122
|
* @param service - The service to write the data store to
|
|
2106
2123
|
* @returns
|
|
2107
2124
|
*/
|
|
2108
|
-
writeDataStoreToService: writeDataStoreToService((0,
|
|
2125
|
+
writeDataStoreToService: writeDataStoreToService((0, import_node_path18.join)(path6))
|
|
2109
2126
|
};
|
|
2110
2127
|
};
|
|
2111
2128
|
//# sourceMappingURL=index.js.map
|