@wmfs/tymly-schedule-plugin 1.1.0 → 1.3.0
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.
package/.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION=1.
|
|
1
|
+
VERSION=1.3.0
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,56 @@
|
|
|
1
|
+
# [1.3.0](https://github.com/wmfs/tymly-schedule-plugin/compare/v1.2.0...v1.3.0) (2022-11-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🐛 Bug Fixes
|
|
5
|
+
|
|
6
|
+
* remove hard coded DST change on hour, needs fixing [sc-18164] ([c1fef58](https://github.com/wmfs/tymly-schedule-plugin/commit/c1fef581559f65be09629a5876eb468286f94bb3))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### 🛠 Builds
|
|
10
|
+
|
|
11
|
+
* **deps-dev:** update dependency [@wmfs](https://github.com/wmfs)/tymly to v1.240.0 ([58d51e3](https://github.com/wmfs/tymly-schedule-plugin/commit/58d51e3ea1ef81db1b1e3a352cb892c92f88c5a1))
|
|
12
|
+
* **deps-dev:** update dependency [@wmfs](https://github.com/wmfs)/tymly to v1.242.0 ([bd88c73](https://github.com/wmfs/tymly-schedule-plugin/commit/bd88c734c2382fd49625d2fc2b7a66f11371664d))
|
|
13
|
+
* **deps-dev:** update dependency [@wmfs](https://github.com/wmfs)/tymly-pg-plugin to v1.269.0 ([8f7cb67](https://github.com/wmfs/tymly-schedule-plugin/commit/8f7cb67241a546f3a52f034b89bc22e054a24e9c))
|
|
14
|
+
* **deps-dev:** update dependency [@wmfs](https://github.com/wmfs)/tymly-test-helpers to v1.21.0 ([46ce1f7](https://github.com/wmfs/tymly-schedule-plugin/commit/46ce1f71ed2ecbe7b4f90ab51de33d909e625abd))
|
|
15
|
+
* **deps-dev:** update dependency [@wmfs](https://github.com/wmfs)/tymly-test-helpers to v1.22.0 ([888468d](https://github.com/wmfs/tymly-schedule-plugin/commit/888468d7c3a4cca577e8cddbd0c4503b3962405c))
|
|
16
|
+
* **deps-dev:** update dependency [@wmfs](https://github.com/wmfs)/tymly-test-helpers to v1.22.1 ([3e8b7e5](https://github.com/wmfs/tymly-schedule-plugin/commit/3e8b7e58422ba056313980952d9396c492ebb083))
|
|
17
|
+
* **deps-dev:** update dependency mocha to v10 ([82a4c29](https://github.com/wmfs/tymly-schedule-plugin/commit/82a4c29e66b5f7c6bc38eaca1c228f49d7f8bb9d))
|
|
18
|
+
* **deps-dev:** update dependency mocha to v10.1.0 ([9fc4db7](https://github.com/wmfs/tymly-schedule-plugin/commit/9fc4db78771c4c71af6bdbbffce77495da0d544b))
|
|
19
|
+
* **deps-dev:** update dependency moment to v2.29.4 [security] ([ae28d1f](https://github.com/wmfs/tymly-schedule-plugin/commit/ae28d1f977a3a5f0c6d0d39f2e0ade89a6dfbc61))
|
|
20
|
+
* **deps-dev:** update dependency semantic-release to v19.0.3 [security] ([bc3e970](https://github.com/wmfs/tymly-schedule-plugin/commit/bc3e9700a0994100cd5310accb8e42c7eeec4ff0))
|
|
21
|
+
* **deps-dev:** update dependency semantic-release to v19.0.4 ([abd04d4](https://github.com/wmfs/tymly-schedule-plugin/commit/abd04d490eda0e2c8c07c9c5b45ea30fd620a95e))
|
|
22
|
+
* **deps-dev:** update dependency semantic-release to v19.0.5 ([7acf181](https://github.com/wmfs/tymly-schedule-plugin/commit/7acf1812163a955b95245b87925e9560742c7f06))
|
|
23
|
+
* **deps-dev:** update dependency standard to v17 ([3a8a3c8](https://github.com/wmfs/tymly-schedule-plugin/commit/3a8a3c8fa8e42c00ac7c403c6ec21a36b9fa6aca))
|
|
24
|
+
* **deps:** update dependency uuid to v9 ([a9a803e](https://github.com/wmfs/tymly-schedule-plugin/commit/a9a803ebd0b6e40e5605b40c36e67109fdf31422))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### 🚨 Tests
|
|
28
|
+
|
|
29
|
+
* remove hard coded DST change on hour, needs fixing [sc-18164] ([327ab77](https://github.com/wmfs/tymly-schedule-plugin/commit/327ab779f8b8a9c122adaad89fba6224db6673ca))
|
|
30
|
+
|
|
31
|
+
# [1.2.0](https://github.com/wmfs/tymly-schedule-plugin/compare/v1.1.0...v1.2.0) (2022-07-28)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### ✨ Features
|
|
35
|
+
|
|
36
|
+
* updates for scheduled sending [sc-14535] ([8703224](https://github.com/wmfs/tymly-schedule-plugin/commit/8703224e3c1cf8a0ba93be3027eafa64841cfc4f))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### 🐛 Bug Fixes
|
|
40
|
+
|
|
41
|
+
* update unit tests for datetime [sc-14535] ([155d3a5](https://github.com/wmfs/tymly-schedule-plugin/commit/155d3a544f6dcb9cf22c95713b5bd62a6a2d45c9))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### 🛠 Builds
|
|
45
|
+
|
|
46
|
+
* **deps-dev:** update dependency [@wmfs](https://github.com/wmfs)/tymly-pg-plugin to v1.268.1 ([0bd7069](https://github.com/wmfs/tymly-schedule-plugin/commit/0bd7069404eadf1d08e3824ed1ce9d1ff6816cfc))
|
|
47
|
+
* **deps-dev:** update dependency [@wmfs](https://github.com/wmfs)/tymly-test-helpers to v1.17.0 ([e9202a6](https://github.com/wmfs/tymly-schedule-plugin/commit/e9202a6cd86dc8429dfa1d077bccdef985231d85))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### ♻️ Chores
|
|
51
|
+
|
|
52
|
+
* enable tymly sync ([58ce844](https://github.com/wmfs/tymly-schedule-plugin/commit/58ce844d32d72c4be3c7cd19d230a99b6b53db6f))
|
|
53
|
+
|
|
1
54
|
# [1.1.0](https://github.com/wmfs/tymly-schedule-plugin/compare/v1.0.1...v1.1.0) (2022-03-16)
|
|
2
55
|
|
|
3
56
|
|
|
@@ -3,6 +3,7 @@ const INSTIGATING_CLIENT_DOMAIN = 'tymly-schedule-plugin'
|
|
|
3
3
|
const nodeSchedule = require('node-schedule')
|
|
4
4
|
const ruleToDatetime = require('./utils/rule-to-datetime')
|
|
5
5
|
const datetimeToRule = require('./utils/datetime-to-rule')
|
|
6
|
+
const { v4: uuidv4 } = require('uuid')
|
|
6
7
|
|
|
7
8
|
class CronService {
|
|
8
9
|
async boot (options) {
|
|
@@ -54,7 +55,6 @@ class CronService {
|
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
// todo: allow window for start/end datetimes
|
|
57
|
-
|
|
58
58
|
task.job = nodeSchedule.scheduleJob(
|
|
59
59
|
jobOptions,
|
|
60
60
|
() => {
|
|
@@ -264,6 +264,10 @@ class CronService {
|
|
|
264
264
|
} // findScheduledExecutions
|
|
265
265
|
|
|
266
266
|
createScheduledTask (key, config = {}) {
|
|
267
|
+
if (key === null) {
|
|
268
|
+
console.log('no key, generating...')
|
|
269
|
+
key = uuidv4()
|
|
270
|
+
}
|
|
267
271
|
this.scheduledTasks[key] = config
|
|
268
272
|
return this.persistTask(key, config)
|
|
269
273
|
} // createScheduledTask
|
|
@@ -48,8 +48,7 @@ class CreateScheduledTask {
|
|
|
48
48
|
await this.services.schedule.createScheduledTask(key, config)
|
|
49
49
|
// await this.services.schedule.stopAndUpdateTaskSchedule(key, rule)
|
|
50
50
|
// await this.services.schedule.stopAndUpdateStateMachineConfig(key, stateMachineName, input)
|
|
51
|
-
|
|
52
|
-
return context.sendTaskSuccess()
|
|
51
|
+
return context.sendTaskSuccess(key)
|
|
53
52
|
}
|
|
54
53
|
}
|
|
55
54
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wmfs/tymly-schedule-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Provides state machine scheduling for the Tymly framework",
|
|
5
5
|
"homepage": "https://github.com/wmfs/tymly-schedule-plugin#readme",
|
|
6
6
|
"author": "West Midlands Fire Service",
|
|
@@ -22,25 +22,26 @@
|
|
|
22
22
|
},
|
|
23
23
|
"main": "./lib/index.js",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"node-schedule": "2.1.0"
|
|
25
|
+
"node-schedule": "2.1.0",
|
|
26
|
+
"uuid": "^9.0.0"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
29
|
"@semantic-release/changelog": "6.0.1",
|
|
29
30
|
"@semantic-release/exec": "6.0.3",
|
|
30
31
|
"@semantic-release/git": "10.0.1",
|
|
31
|
-
"@wmfs/tymly": "1.
|
|
32
|
-
"@wmfs/tymly-pg-plugin": "1.
|
|
33
|
-
"@wmfs/tymly-test-helpers": "1.
|
|
32
|
+
"@wmfs/tymly": "1.242.0",
|
|
33
|
+
"@wmfs/tymly-pg-plugin": "1.269.0",
|
|
34
|
+
"@wmfs/tymly-test-helpers": "1.22.1",
|
|
34
35
|
"chai": "4.3.6",
|
|
35
36
|
"codecov": "3.8.3",
|
|
36
37
|
"conventional-changelog-metahub": "4.0.1",
|
|
37
38
|
"cz-conventional-changelog": "3.3.0",
|
|
38
39
|
"dirty-chai": "2.0.1",
|
|
39
|
-
"mocha": "
|
|
40
|
-
"moment": "2.29.
|
|
40
|
+
"mocha": "10.1.0",
|
|
41
|
+
"moment": "2.29.4",
|
|
41
42
|
"nyc": "15.1.0",
|
|
42
|
-
"semantic-release": "19.0.
|
|
43
|
-
"standard": "
|
|
43
|
+
"semantic-release": "19.0.5",
|
|
44
|
+
"standard": "17.0.0"
|
|
44
45
|
},
|
|
45
46
|
"scripts": {
|
|
46
47
|
"lint": "standard",
|
|
@@ -51,9 +52,6 @@
|
|
|
51
52
|
"config": {
|
|
52
53
|
"commitizen": {
|
|
53
54
|
"path": "cz-conventional-changelog"
|
|
54
|
-
},
|
|
55
|
-
"tymly": {
|
|
56
|
-
"sync": false
|
|
57
55
|
}
|
|
58
56
|
},
|
|
59
57
|
"publishConfig": {
|