otomato-sdk 1.5.9 → 1.5.11

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.
@@ -62,7 +62,7 @@ export class Action extends Node {
62
62
  });
63
63
  }
64
64
  }
65
- const findActionByBlockId = (blockId) => {
65
+ export const findActionByBlockId = (blockId) => {
66
66
  for (const category in ACTIONS) {
67
67
  for (const service in ACTIONS[category]) {
68
68
  for (const actionKey in ACTIONS[category][service]) {
@@ -74,7 +74,7 @@ export class Trigger extends Node {
74
74
  }
75
75
  }
76
76
  // Assuming findTriggerByBlockId function is defined as mentioned
77
- const findTriggerByBlockId = (blockId) => {
77
+ export const findTriggerByBlockId = (blockId) => {
78
78
  for (const category in TRIGGERS) {
79
79
  for (const service in TRIGGERS[category]) {
80
80
  for (const triggerKey in TRIGGERS[category][service]) {
@@ -18,3 +18,7 @@ export declare class Action extends Node {
18
18
  [key: string]: any;
19
19
  }): Promise<Action>;
20
20
  }
21
+ export declare const findActionByBlockId: (blockId: number) => {
22
+ parentInfo: ParentInfo;
23
+ block: any;
24
+ };
@@ -21,3 +21,7 @@ export declare class Trigger extends Node {
21
21
  [key: string]: any;
22
22
  }): Promise<Trigger>;
23
23
  }
24
+ export declare const findTriggerByBlockId: (blockId: number) => {
25
+ parentInfo: ParentInfo;
26
+ block: any;
27
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otomato-sdk",
3
- "version": "1.5.9",
3
+ "version": "1.5.11",
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",