otomato-sdk 2.0.385 → 2.0.386

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.
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = '2.0.385';
1
+ export const SDK_VERSION = '2.0.386';
2
2
  export function compareVersions(v1, v2) {
3
3
  // Split the version strings into parts
4
4
  const v1Parts = v1.split('.').map(Number);
@@ -15,6 +15,8 @@ export class Workflow {
15
15
  this.agentId = null;
16
16
  this.notes = [];
17
17
  this.settings = null;
18
+ this.hasContractNodes = false;
19
+ this.hasZerodevApproval = false;
18
20
  this.name = name;
19
21
  this.nodes = nodes;
20
22
  this.edges = edges;
@@ -437,6 +439,8 @@ export class Workflow {
437
439
  this.edges = response.edges.map((edgeData) => Edge.fromJSON(edgeData, this.nodes));
438
440
  this.notes = response.notes.map((noteData) => Note.fromJSON(noteData));
439
441
  this.settings = response.settings;
442
+ this.hasContractNodes = response.hasContractNodes;
443
+ this.hasZerodevApproval = response.hasZerodevApproval;
440
444
  positionWorkflowNodes(this);
441
445
  return this;
442
446
  }
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.385";
1
+ export declare const SDK_VERSION = "2.0.386";
2
2
  export declare function compareVersions(v1: string, v2: string): number;
@@ -16,6 +16,8 @@ export declare class Workflow {
16
16
  agentId: string | null;
17
17
  notes: Note[];
18
18
  settings: WorkflowSettings | null;
19
+ hasContractNodes: boolean;
20
+ hasZerodevApproval: boolean;
19
21
  constructor(name?: string, nodes?: Node[], edges?: Edge[], settings?: WorkflowSettings | null);
20
22
  setName(name: string): void;
21
23
  setSettings(settings: WorkflowSettings | null): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otomato-sdk",
3
- "version": "2.0.385",
3
+ "version": "2.0.386",
4
4
  "description": "An SDK for building and managing automations on Otomato",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/types/src/index.d.ts",