@wmfs/tymly-rest-client-plugin 1.22.0 → 1.23.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.22.0
1
+ VERSION=1.23.0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [1.23.0](https://github.com/wmfs/tymly-rest-client-plugin/compare/v1.22.0...v1.23.0) (2024-10-16)
2
+
3
+
4
+ ### Features
5
+
6
+ * temporarily add logs to the PostDataToRestApi state resource ([e174315](https://github.com/wmfs/tymly-rest-client-plugin/commit/e174315aaabf4faab70467223823ecc9cce4aa3a))
7
+
1
8
  # [1.22.0](https://github.com/wmfs/tymly-rest-client-plugin/compare/v1.21.0...v1.22.0) (2024-10-10)
2
9
 
3
10
 
@@ -20,13 +20,19 @@ class PostDataToRestApi {
20
20
  }
21
21
 
22
22
  async run (event, context) {
23
+ console.log('- PostDataToRestApi -')
24
+ console.log('event - ', event)
23
25
  if (this.namespace.startsWith('$.')) {
24
26
  this.namespace = resolvePaths(event, this.namespace)
25
27
  }
28
+ console.log('this.namespace - ', this.namespace)
26
29
  const updatedTemplateUrlRegistryKey = resolvePaths(event, this.templateUrlRegistryKey)
30
+ console.log('updatedTemplateUrlRegistryKey - ', updatedTemplateUrlRegistryKey)
27
31
  // this.templateUrlRegistryKey = resolvePaths(event, this.templateUrlRegistryKey)
28
32
  const regKey = this.namespace + '_' + updatedTemplateUrlRegistryKey
33
+ console.log('regKey - ', regKey)
29
34
  this.templateUrl = this.registry.has(regKey) ? this.registry.get(regKey) : null
35
+ console.log('this.templateUrl - ', this.templateUrl)
30
36
  if (!this.templateUrl || this.templateUrl === 'DISABLED') {
31
37
  if (this.resultPath) context.sendTaskSuccess({ [this.resultPath]: [] })
32
38
  else context.sendTaskSuccess([])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wmfs/tymly-rest-client-plugin",
3
- "version": "1.22.0",
3
+ "version": "1.23.0",
4
4
  "description": "A REST API client for Tymly",
5
5
  "homepage": "https://github.com/wmfs/tymly-rest-client-plugin#readme",
6
6
  "author": "West Midlands Fire Service",
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rest-client",
3
- "version": "1.22.0",
3
+ "version": "1.23.0",
4
4
  "label": "Rest client",
5
5
  "author": "Jez Higgins",
6
6
  "organisation": "West Midlands Fire Service",