@eventcatalog/sdk 2.3.1 → 2.3.3

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.
@@ -305,7 +305,7 @@ var writeEvent = (directory) => async (event, options = {
305
305
  override: false,
306
306
  format: "mdx"
307
307
  }) => writeResource(directory, { ...event }, { ...options, type: "event" });
308
- var writeEventToService = (directory) => async (event, service, options = { path: "", format: "mdx" }) => {
308
+ var writeEventToService = (directory) => async (event, service, options = { path: "", format: "mdx", override: false }) => {
309
309
  const resourcePath = await getResourcePath(directory, service.id, service.version);
310
310
  if (!resourcePath) {
311
311
  throw new Error("Service not found");
@@ -341,7 +341,7 @@ var writeCommand = (directory) => async (command, options = {
341
341
  versionExistingContent: false,
342
342
  format: "mdx"
343
343
  }) => writeResource(directory, { ...command }, { ...options, type: "command" });
344
- var writeCommandToService = (directory) => async (command, service, options = { path: "", format: "mdx" }) => {
344
+ var writeCommandToService = (directory) => async (command, service, options = { path: "", format: "mdx", override: false }) => {
345
345
  const resourcePath = await getResourcePath(directory, service.id, service.version);
346
346
  if (!resourcePath) {
347
347
  throw new Error("Service not found");
@@ -375,7 +375,7 @@ var writeQuery = (directory) => async (query, options = {
375
375
  format: "mdx"
376
376
  }) => writeResource(directory, { ...query }, { ...options, type: "query" });
377
377
  var getQueries = (directory) => async (options) => getResources(directory, { type: "queries", ...options });
378
- var writeQueryToService = (directory) => async (query, service, options = { path: "", format: "mdx" }) => {
378
+ var writeQueryToService = (directory) => async (query, service, options = { path: "", format: "mdx", override: false }) => {
379
379
  const resourcePath = await getResourcePath(directory, service.id, service.version);
380
380
  if (!resourcePath) {
381
381
  throw new Error("Service not found");