@eventcatalog/sdk 2.3.2 → 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.mjs CHANGED
@@ -267,7 +267,7 @@ var writeEvent = (directory) => async (event, options = {
267
267
  override: false,
268
268
  format: "mdx"
269
269
  }) => writeResource(directory, { ...event }, { ...options, type: "event" });
270
- var writeEventToService = (directory) => async (event, service, options = { path: "", format: "mdx" }) => {
270
+ var writeEventToService = (directory) => async (event, service, options = { path: "", format: "mdx", override: false }) => {
271
271
  const resourcePath = await getResourcePath(directory, service.id, service.version);
272
272
  if (!resourcePath) {
273
273
  throw new Error("Service not found");
@@ -303,7 +303,7 @@ var writeCommand = (directory) => async (command, options = {
303
303
  versionExistingContent: false,
304
304
  format: "mdx"
305
305
  }) => writeResource(directory, { ...command }, { ...options, type: "command" });
306
- var writeCommandToService = (directory) => async (command, service, options = { path: "", format: "mdx" }) => {
306
+ var writeCommandToService = (directory) => async (command, service, options = { path: "", format: "mdx", override: false }) => {
307
307
  const resourcePath = await getResourcePath(directory, service.id, service.version);
308
308
  if (!resourcePath) {
309
309
  throw new Error("Service not found");
@@ -337,7 +337,7 @@ var writeQuery = (directory) => async (query, options = {
337
337
  format: "mdx"
338
338
  }) => writeResource(directory, { ...query }, { ...options, type: "query" });
339
339
  var getQueries = (directory) => async (options) => getResources(directory, { type: "queries", ...options });
340
- var writeQueryToService = (directory) => async (query, service, options = { path: "", format: "mdx" }) => {
340
+ var writeQueryToService = (directory) => async (query, service, options = { path: "", format: "mdx", override: false }) => {
341
341
  const resourcePath = await getResourcePath(directory, service.id, service.version);
342
342
  if (!resourcePath) {
343
343
  throw new Error("Service not found");
@@ -390,7 +390,7 @@ var writeVersionedService = (directory) => async (service) => {
390
390
  const path4 = getVersionedDirectory(service.id, service.version);
391
391
  return await writeService(directory)(resource, { path: path4 });
392
392
  };
393
- var writeServiceToDomain = (directory) => async (service, domain, options = { path: "", format: "mdx" }) => {
393
+ var writeServiceToDomain = (directory) => async (service, domain, options = { path: "", format: "mdx", override: false }) => {
394
394
  let pathForService = domain.version && domain.version !== "latest" ? `/${domain.id}/versioned/${domain.version}/services` : `/${domain.id}/services`;
395
395
  pathForService = join6(pathForService, service.id);
396
396
  await writeResource(directory, { ...service }, { ...options, path: pathForService, type: "service" });