otomato-sdk 2.0.327 → 2.0.328

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.
@@ -241,7 +241,7 @@ export const TRIGGERS = {
241
241
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/every_hour_trigger.png",
242
242
  "EVERY_PERIOD": {
243
243
  "name": "Every period",
244
- "dynamicName": "async (env, { otomatoSDK }) => {\n const { formatPeriod } = otomatoSDK;\n return `Every ${formatPeriod(env.parameters.period/1000)}`\n }",
244
+ "dynamicName": "async (env, { otomatoSDK }) => {\n const { formatMilliSecondsToHumanReadable } = otomatoSDK;\n return `Every ${formatMilliSecondsToHumanReadable(env.parameters.period)}`\n }",
245
245
  "type": 4,
246
246
  "description": "Triggers the workflow every period (e.g every hour)",
247
247
  "parameters": [
@@ -297,7 +297,7 @@ export const TRIGGERS = {
297
297
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/every_hour_trigger.png",
298
298
  "EVERY_PERIOD": {
299
299
  "name": "Every period",
300
- "dynamicName": "async (env, { otomatoSDK }) => {\n const { formatPeriod } = otomatoSDK;\n return `Every ${formatPeriod(env.parameters.period/1000)}`\n }",
300
+ "dynamicName": "async (env, { otomatoSDK }) => {\n const { formatMilliSecondsToHumanReadable } = otomatoSDK;\n return `Every ${formatMilliSecondsToHumanReadable(env.parameters.period)}`\n }",
301
301
  "type": 4,
302
302
  "description": "Triggers the workflow every period (e.g every hour)",
303
303
  "parameters": [
@@ -7476,7 +7476,7 @@ export const ACTIONS = {
7476
7476
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/delay.png",
7477
7477
  "WAIT_FOR": {
7478
7478
  "name": "Wait for",
7479
- "dynamicName": "async (env, { otomatoSDK }) => {\n const { formatPeriod } = otomatoSDK;\n return `<div>Wait for ${formatPeriod(env.parameters.time)}</div>`;\n }",
7479
+ "dynamicName": "async (env, { otomatoSDK }) => {\n const { formatMilliSecondsToHumanReadable } = otomatoSDK;\n return `<div>Wait for ${formatMilliSecondsToHumanReadable(env.parameters.time)}</div>`;\n }",
7480
7480
  "type": 2,
7481
7481
  "description": "Wait before executing the following blocks",
7482
7482
  "output": {
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = '2.0.327';
1
+ export const SDK_VERSION = '2.0.328';
2
2
  export function compareVersions(v1, v2) {
3
3
  // Split the version strings into parts
4
4
  const v1Parts = v1.split('.').map(Number);
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.327";
1
+ export declare const SDK_VERSION = "2.0.328";
2
2
  export declare function compareVersions(v1: string, v2: string): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otomato-sdk",
3
- "version": "2.0.327",
3
+ "version": "2.0.328",
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",