@activepieces/piece-schedule
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "@activepieces/piece-schedule", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"dependencies": { | ||
"@sinclair/typebox": "0.26.8", | ||
"axios": "^1.0.0", | ||
"axios": "^1.6.3", | ||
"dayjs": "1.11.9", | ||
@@ -12,5 +12,5 @@ "is-base64": "1.1.0", | ||
"semver": "7.5.4", | ||
"@activepieces/pieces-framework": "0.7.1", | ||
"@activepieces/shared": "0.10.9", | ||
"tslib": "2.6.1" | ||
"@activepieces/pieces-framework": "0.7.7", | ||
"@activepieces/shared": "0.10.54", | ||
"tslib": "1.14.1" | ||
}, | ||
@@ -17,0 +17,0 @@ "main": "./src/index.js", |
@@ -1,4 +0,4 @@ | ||
import { TriggerStrategy } from "@activepieces/pieces-framework"; | ||
import { TriggerStrategy } from '@activepieces/pieces-framework'; | ||
export declare const everyXMinutesTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").PieceAuthProperty, { | ||
minutes: import("@activepieces/pieces-framework").NumberProperty<true>; | ||
minutes: import("@activepieces/pieces-framework").StaticDropdownProperty<number, true>; | ||
}>; |
@@ -13,8 +13,15 @@ "use strict"; | ||
props: { | ||
minutes: pieces_framework_1.Property.Number({ | ||
displayName: "Minutes", | ||
minutes: pieces_framework_1.Property.StaticDropdown({ | ||
displayName: 'Minutes', | ||
description: 'Valid value between 1 to 59.', | ||
required: true, | ||
defaultValue: 1, | ||
validators: [pieces_framework_1.Validators.minValue(1)] | ||
}) | ||
options: { | ||
disabled: false, | ||
options: Array.from({ length: 59 }, (_, index) => ({ | ||
label: `${index + 1} minute${index !== 0 ? 's' : ''}`, | ||
value: index + 1, | ||
})), | ||
}, | ||
}), | ||
}, | ||
@@ -25,3 +32,3 @@ onEnable: (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { | ||
cronExpression: cronExpression, | ||
timezone: 'UTC' | ||
timezone: 'UTC', | ||
}); | ||
@@ -31,11 +38,13 @@ }), | ||
const cronExpression = `*/${ctx.propsValue.minutes} * * * *`; | ||
return Promise.resolve([{ | ||
return Promise.resolve([ | ||
{ | ||
cron_expression: cronExpression, | ||
timezone: 'UTC' | ||
}]); | ||
timezone: 'UTC', | ||
}, | ||
]); | ||
}, | ||
onDisable: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { | ||
console.log('onDisable'); | ||
}) | ||
}), | ||
}); | ||
//# sourceMappingURL=every-x-minutes.trigger.js.map |
Sorry, the diff of this file is not supported yet
93088
1690
+ Added@activepieces/pieces-framework@0.7.7(transitive)
+ Added@activepieces/shared@0.10.530.10.54(transitive)
+ Addedtslib@1.14.1(transitive)
- Removed@activepieces/pieces-framework@0.7.1(transitive)
- Removed@activepieces/shared@0.10.50.10.9(transitive)
Updated@activepieces/shared@0.10.54
Updatedaxios@^1.6.3
Updatedtslib@1.14.1