@eventcatalog/sdk 2.3.3 → 2.3.4

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 CHANGED
@@ -462,6 +462,12 @@ declare const _default: (path: string) => {
462
462
  }, options?: {
463
463
  path?: string;
464
464
  format?: "md" | "mdx";
465
+ override? /**
466
+ * Remove an command by an Event id
467
+ *
468
+ * @param id - The id of the command you want to remove
469
+ *
470
+ */: boolean;
465
471
  }) => Promise<void>;
466
472
  /**
467
473
  * Returns a service from EventCatalog
package/dist/index.d.ts CHANGED
@@ -462,6 +462,12 @@ declare const _default: (path: string) => {
462
462
  }, options?: {
463
463
  path?: string;
464
464
  format?: "md" | "mdx";
465
+ override? /**
466
+ * Remove an command by an Event id
467
+ *
468
+ * @param id - The id of the command you want to remove
469
+ *
470
+ */: boolean;
465
471
  }) => Promise<void>;
466
472
  /**
467
473
  * Returns a service from EventCatalog
package/dist/index.js CHANGED
@@ -424,7 +424,7 @@ var writeVersionedService = (directory) => async (service) => {
424
424
  const path4 = getVersionedDirectory(service.id, service.version);
425
425
  return await writeService(directory)(resource, { path: path4 });
426
426
  };
427
- var writeServiceToDomain = (directory) => async (service, domain, options = { path: "", format: "mdx" }) => {
427
+ var writeServiceToDomain = (directory) => async (service, domain, options = { path: "", format: "mdx", override: false }) => {
428
428
  let pathForService = domain.version && domain.version !== "latest" ? `/${domain.id}/versioned/${domain.version}/services` : `/${domain.id}/services`;
429
429
  pathForService = (0, import_node_path5.join)(pathForService, service.id);
430
430
  await writeResource(directory, { ...service }, { ...options, path: pathForService, type: "service" });