otomato-sdk 2.0.16 → 2.0.18

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.
@@ -36,10 +36,16 @@ export const TRIGGERS = {
36
36
  {
37
37
  "name": "Run it every day for 2 weeks",
38
38
  "description": "Set the period to 1 day and the limit to 14 to execute daily for 2 weeks.",
39
- "parameters": {
40
- "period": 86400000,
41
- "limit": 14
42
- }
39
+ "parameters": [
40
+ {
41
+ "key": "period",
42
+ "value": 86400000
43
+ },
44
+ {
45
+ "key": "limit",
46
+ "value": 14
47
+ }
48
+ ]
43
49
  }
44
50
  ],
45
51
  "blockId": 18,
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = '2.0.16';
1
+ export const SDK_VERSION = '2.0.18';
2
2
  export function compareVersions(v1, v2) {
3
3
  // Split the version strings into parts
4
4
  const v1Parts = v1.split('.').map(Number);
package/dist/src/index.js CHANGED
@@ -23,3 +23,4 @@ export * from './services/RpcServices.js';
23
23
  export * from './utils/helpers.js';
24
24
  export * from './utils/typeValidator.js';
25
25
  export * from './utils/addressBalance.js';
26
+ export * from './utils/externalVariables.js';
@@ -13,9 +13,9 @@ export declare const TRIGGERS: {
13
13
  name: string;
14
14
  description: string;
15
15
  parameters: {
16
- period: number;
17
- limit: number;
18
- };
16
+ key: string;
17
+ value: number;
18
+ }[];
19
19
  }[];
20
20
  blockId: number;
21
21
  image: string;
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.16";
1
+ export declare const SDK_VERSION = "2.0.18";
2
2
  export declare function compareVersions(v1: string, v2: string): number;
@@ -20,3 +20,4 @@ export * from './services/RpcServices.js';
20
20
  export * from './utils/helpers.js';
21
21
  export * from './utils/typeValidator.js';
22
22
  export * from './utils/addressBalance.js';
23
+ export * from './utils/externalVariables.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otomato-sdk",
3
- "version": "2.0.16",
3
+ "version": "2.0.18",
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",