eventmodeler 0.4.5 → 0.4.7

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.
@@ -143,6 +143,9 @@ export declare function removeScenario(modelId: string, scenarioName: string, sl
143
143
  export declare function createFlow(modelId: string, fromName: string, toName: string): Promise<{
144
144
  success: boolean;
145
145
  }>;
146
+ export declare function removeFlow(modelId: string, fromName: string, toName: string): Promise<{
147
+ flowId: string;
148
+ }>;
146
149
  export interface CompoundFieldInput {
147
150
  name: string;
148
151
  fieldType: string;
package/dist/api/index.js CHANGED
@@ -206,6 +206,9 @@ export async function removeScenario(modelId, scenarioName, sliceName) {
206
206
  export async function createFlow(modelId, fromName, toName) {
207
207
  return cliPost('/cli/create-flow', { modelId, fromName, toName });
208
208
  }
209
+ export async function removeFlow(modelId, fromName, toName) {
210
+ return cliPost('/cli/remove-flow', { modelId, fromName, toName });
211
+ }
209
212
  export async function createStateChangeSlice(modelId, input) {
210
213
  return cliPost('/cli/create-state-change-slice', { modelId, ...input });
211
214
  }