From 4020d949807b089da2c245fe5b38ab5ddb6310f5 Mon Sep 17 00:00:00 2001 From: Hanna Date: Wed, 18 Oct 2023 13:36:53 +0300 Subject: [PATCH 01/31] ved --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index c3ebfa3..87d42ef 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js)", - "version": "1.0.5", + "version": "8.0.0", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From 77c90fa8cf5c70a352b2ef0bd421a4ce2aa27591 Mon Sep 17 00:00:00 2001 From: Hanna Date: Mon, 30 Oct 2023 15:17:52 +0200 Subject: [PATCH 02/31] vsde --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index 87d42ef..0ede5c3 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js)", - "version": "8.0.0", + "version": "9.0.0", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From 268e4c49d2f07b3e355c077e5c1d5e3c20169bd6 Mon Sep 17 00:00:00 2001 From: Hanna Date: Tue, 14 Nov 2023 13:56:38 +0200 Subject: [PATCH 03/31] vsde --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index 0ede5c3..5e73291 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js)", - "version": "9.0.0", + "version": "9.0.1", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From 706e2e02c8ac8db951022bd4921834548aa7de0f Mon Sep 17 00:00:00 2001 From: Hanna Date: Thu, 30 Nov 2023 15:04:14 +0200 Subject: [PATCH 04/31] veswf --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index 5e73291..7975b97 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js)", - "version": "9.0.1", + "version": "9.0.2", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From d66e646367c915fb531161e687f85d368719e397 Mon Sep 17 00:00:00 2001 From: Hanna Date: Thu, 4 Jan 2024 11:35:17 +0200 Subject: [PATCH 05/31] cds --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index 7975b97..2fe0ec1 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js)", - "version": "9.0.2", + "version": "9.0.3", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From b306af177e57766253edee7c81c529343f3c0e7d Mon Sep 17 00:00:00 2001 From: Hanna Date: Thu, 18 Jan 2024 12:32:34 +0200 Subject: [PATCH 06/31] cds --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index 2fe0ec1..51b7c4c 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js)", - "version": "9.0.3", + "version": "9.0.4", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From 5a462255b454bd56d5a5a223145af9fa4a8109ec Mon Sep 17 00:00:00 2001 From: Hanna Date: Wed, 31 Jan 2024 16:39:44 +0200 Subject: [PATCH 07/31] cds --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index 51b7c4c..faf2257 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js)", - "version": "9.0.4", + "version": "9.0.5", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From 8dddc9741d7e641ac821250a413e1d02b334be79 Mon Sep 17 00:00:00 2001 From: "trotsenkoanyta@gmail.com" Date: Thu, 29 Feb 2024 14:58:24 +0100 Subject: [PATCH 08/31] cs --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index faf2257..ab3b590 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js)", - "version": "9.0.5", + "version": "9.0.10", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From 363633e2bc4112346003a37aa7d1900919cb63f9 Mon Sep 17 00:00:00 2001 From: "trotsenkoanyta@gmail.com" Date: Thu, 14 Mar 2024 11:57:37 +0100 Subject: [PATCH 09/31] sdvsd --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index ab3b590..fb2d8d7 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js)", - "version": "9.0.10", + "version": "9.0.11", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From 72216a6ebdad4072f33fdd3f98dc92fad3489299 Mon Sep 17 00:00:00 2001 From: "trotsenkoanyta@gmail.com" Date: Mon, 8 Apr 2024 14:52:01 +0200 Subject: [PATCH 10/31] cvdwe --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index fb2d8d7..fa1a4bf 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js)", - "version": "9.0.11", + "version": "9.0.12", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From e56e3cd89cce22536ccc83f13ead929df2984149 Mon Sep 17 00:00:00 2001 From: "trotsenkoanyta@gmail.com" Date: Thu, 25 Apr 2024 16:22:56 +0200 Subject: [PATCH 11/31] cs --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index fa1a4bf..064b3cf 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js)", - "version": "9.0.12", + "version": "9.0.13", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From b544990312af4e074846943961340c9be92e4217 Mon Sep 17 00:00:00 2001 From: "trotsenkoanyta@gmail.com" Date: Sat, 27 Apr 2024 13:10:09 +0200 Subject: [PATCH 12/31] vsd --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index 064b3cf..15106f5 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js)", - "version": "9.0.13", + "version": "9.0.14", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From d4dc243291f239424278aaa1579e71ca03779c5f Mon Sep 17 00:00:00 2001 From: "trotsenkoanyta@gmail.com" Date: Tue, 4 Jun 2024 11:48:48 +0200 Subject: [PATCH 13/31] vwdv --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index 15106f5..e75a7e6 100644 --- a/component.json +++ b/component.json @@ -1,5 +1,5 @@ { - "title": "Petstore API (Node.js)", + "title": "Petstore API (Node.js) 406", "version": "9.0.14", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", From 3bad65a1aae13a877ecf6fa351154fd75a0ffe50 Mon Sep 17 00:00:00 2001 From: "trotsenkoanyta@gmail.com" Date: Tue, 4 Jun 2024 11:51:59 +0200 Subject: [PATCH 14/31] vwdv --- component.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/component.json b/component.json index e75a7e6..93653fe 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { - "title": "Petstore API (Node.js) 406", - "version": "9.0.14", + "title": "Petstore API (Node.js)", + "version": "9.0.15", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From a12a7407bf1c3ae0ba0cd411d74e65e489142ff4 Mon Sep 17 00:00:00 2001 From: "trotsenkoanyta@gmail.com" Date: Wed, 5 Jun 2024 14:32:42 +0200 Subject: [PATCH 15/31] vwdv --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index 93653fe..6f25ef1 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js)", - "version": "9.0.15", + "version": "9.0.16", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From 357b7e302642a175897ea15a12fa0adfd94e1f5f Mon Sep 17 00:00:00 2001 From: "trotsenkoanyta@gmail.com" Date: Mon, 1 Jul 2024 10:17:52 +0200 Subject: [PATCH 16/31] gr --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index 6f25ef1..467c09b 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js)", - "version": "9.0.16", + "version": "9.0.17", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From 8a3f96548c140e0642fa006cee72d19cf8ccbdd9 Mon Sep 17 00:00:00 2001 From: "trotsenkoanyta@gmail.com" Date: Fri, 26 Jul 2024 10:27:54 +0200 Subject: [PATCH 17/31] gr --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index 467c09b..cbd7e91 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js)", - "version": "9.0.17", + "version": "9.0.18", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From 7729ce43b52d9dd6ca7dc95dfc031e5fb58750b6 Mon Sep 17 00:00:00 2001 From: "trotsenkoanyta@gmail.com" Date: Tue, 17 Jun 2025 16:41:23 +0200 Subject: [PATCH 18/31] fix utm links --- component.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/component.json b/component.json index cbd7e91..89423d6 100644 --- a/component.json +++ b/component.json @@ -27,7 +27,7 @@ "status": { "label": "Pet Status", "required": true, - "viewClass": "SelectView", + "viewClass": "MultiSelectView", "model": "getStatusModel", "prompt": "Select Pet Status" } @@ -48,7 +48,7 @@ "status": { "label": "Pet Status", "required": true, - "viewClass": "SelectView", + "viewClass": "MultiSelectView", "model": { "available": "Available", "pending": "Pending", From 7ebe9089144928ed87d48a76c1404d37037bcb77 Mon Sep 17 00:00:00 2001 From: "trotsenkoanyta@gmail.com" Date: Thu, 19 Jun 2025 10:55:09 +0200 Subject: [PATCH 19/31] fix utm links --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index 89423d6..32e3805 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js)", - "version": "9.0.18", + "version": "9.0.19-dev1", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From aab789406c6390a24861022c321384a760dc50c8 Mon Sep 17 00:00:00 2001 From: Hanna Date: Wed, 23 Jul 2025 11:09:02 +0200 Subject: [PATCH 20/31] vwd --- component.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/component.json b/component.json index 32e3805..7a63a0c 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { - "title": "Petstore API (Node.js)", - "version": "9.0.19-dev1", + "title": "Petstore API (Node.js) MultiSelectView", + "version": "9.0.20", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From e6371a08b85ca9360ab5d03a850b1c2928bbf178 Mon Sep 17 00:00:00 2001 From: HannaTrotsenko Date: Tue, 29 Jul 2025 10:25:00 +0200 Subject: [PATCH 21/31] Update component.json --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index 7a63a0c..453fc76 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js) MultiSelectView", - "version": "9.0.20", + "version": "1.0.6-dev1", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", From c21ed0ad75c94f7615674df52641e85d3b993603 Mon Sep 17 00:00:00 2001 From: HannaTrotsenko Date: Tue, 29 Jul 2025 10:43:16 +0200 Subject: [PATCH 22/31] Update verifyCredentials.js --- verifyCredentials.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/verifyCredentials.js b/verifyCredentials.js index 865ceb7..75b30b6 100644 --- a/verifyCredentials.js +++ b/verifyCredentials.js @@ -10,6 +10,13 @@ const MagentoClient = require('./lib/petstoreClient'); * @returns boolean of whether or not the request was successful */ module.exports = async function verify(credentials) { + this.logger.fatal('Hello from FATAL logger'); + this.logger.error('Hello from ERROR logger'); + this.logger.warn('Hello from WARN logger'); + this.logger.info('Hello from INFO logger'); + this.logger.debug('Hello from DEBUG logger'); + this.logger.trace('Hello from TRACE logger'); + const { apiKey } = credentials; if (!apiKey) throw new Error('API key is missing'); From e7c455c64504d544da3721a6aca6c42aa54d6a63 Mon Sep 17 00:00:00 2001 From: HannaTrotsenko Date: Tue, 29 Jul 2025 10:44:10 +0200 Subject: [PATCH 23/31] Update createPet.js --- lib/actions/createPet.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/actions/createPet.js b/lib/actions/createPet.js index 2d1457d..b8d549a 100644 --- a/lib/actions/createPet.js +++ b/lib/actions/createPet.js @@ -16,6 +16,13 @@ exports.process = async function process(msg, cfg) { // create a client object that has methods to make a request available to us const client = new PetstoreClient(this, cfg); + this.logger.fatal('Hello from FATAL logger'); + this.logger.error('Hello from ERROR logger'); + this.logger.warn('Hello from WARN logger'); + this.logger.info('Hello from INFO logger'); + this.logger.debug('Hello from DEBUG logger'); + this.logger.trace('Hello from TRACE logger'); + /** * The format of a message coming into the function is * msg: { From eed10db16da7109f54b340308dfed711f2232b3f Mon Sep 17 00:00:00 2001 From: HannaTrotsenko Date: Tue, 29 Jul 2025 10:44:50 +0200 Subject: [PATCH 24/31] Update getPetsByStatus.js --- lib/triggers/getPetsByStatus.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/triggers/getPetsByStatus.js b/lib/triggers/getPetsByStatus.js index 7dafa9b..5784cb4 100644 --- a/lib/triggers/getPetsByStatus.js +++ b/lib/triggers/getPetsByStatus.js @@ -13,6 +13,13 @@ const PetstoreClient = require('../petstoreClient'); exports.process = async function getPetsByStatus(msg, cfg) { const client = new PetstoreClient(this, cfg); + this.logger.fatal('Hello from FATAL logger'); + this.logger.error('Hello from ERROR logger'); + this.logger.warn('Hello from WARN logger'); + this.logger.info('Hello from INFO logger'); + this.logger.debug('Hello from DEBUG logger'); + this.logger.trace('Hello from TRACE logger'); + // access the value of the status field defined in credentials section of component.json const { status } = cfg; From 3f30c386a27eec7cec3f7a36e0262c5e9bf4d4f5 Mon Sep 17 00:00:00 2001 From: HannaTrotsenko Date: Tue, 29 Jul 2025 10:45:52 +0200 Subject: [PATCH 25/31] Update getPetsByStatus.js --- lib/triggers/getPetsByStatus.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/triggers/getPetsByStatus.js b/lib/triggers/getPetsByStatus.js index 5784cb4..9cf5ec6 100644 --- a/lib/triggers/getPetsByStatus.js +++ b/lib/triggers/getPetsByStatus.js @@ -43,6 +43,14 @@ exports.process = async function getPetsByStatus(msg, cfg) { * to be displayd on the platform */ exports.getStatusModel = async function getStatusModel(cfg) { + + this.logger.fatal('Hello from FATAL logger'); + this.logger.error('Hello from ERROR logger'); + this.logger.warn('Hello from WARN logger'); + this.logger.info('Hello from INFO logger'); + this.logger.debug('Hello from DEBUG logger'); + this.logger.trace('Hello from TRACE logger'); + const client = new PetstoreClient(this, cfg); const result = await client.makeRequest({ From eb5ddbef637aa18b3e831447bfcba11d0af71b2f Mon Sep 17 00:00:00 2001 From: if0s Date: Tue, 29 Jul 2025 12:07:43 +0300 Subject: [PATCH 26/31] dynamicMetadata --- component.json | 7 ++----- lib/actions/createPet.js | 9 +++++++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/component.json b/component.json index 453fc76..26ac791 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js) MultiSelectView", - "version": "1.0.6-dev1", + "version": "1.0.6-dev.2", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker", @@ -70,10 +70,7 @@ "description": "Creates a pet and adds it to the shop", "link": "/components/petstore-nodejs" }, - "metadata": { - "in": "./lib/schemas/createPet.in.json", - "out": "./lib/schemas/createPet.out.json" - } + "dynamicMetadata": true } } } diff --git a/lib/actions/createPet.js b/lib/actions/createPet.js index b8d549a..0b091c2 100644 --- a/lib/actions/createPet.js +++ b/lib/actions/createPet.js @@ -1,5 +1,7 @@ const { messages } = require('elasticio-node'); const PetstoreClient = require('../petstoreClient'); +const createPetIn = require('../schemas/createPet.in.json'); +const createPetOut = require('../schemas/createPet.out.json'); const statuses = ['available', 'pending', 'sold']; @@ -67,3 +69,10 @@ exports.process = async function process(msg, cfg) { // our platform await this.emit('data', messages.newMessageWithBody(result)); }; + +exports.getMetaModel = async function getMetaModel(cfg) { + return { + in: createPetIn, + out: createPetOut + } +}; From a38ddcdf76eb63fc5f75d40df339d02edf984185 Mon Sep 17 00:00:00 2001 From: HannaTrotsenko Date: Tue, 29 Jul 2025 11:11:49 +0200 Subject: [PATCH 27/31] Update createPet.js --- lib/actions/createPet.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/actions/createPet.js b/lib/actions/createPet.js index 0b091c2..9ac5511 100644 --- a/lib/actions/createPet.js +++ b/lib/actions/createPet.js @@ -71,6 +71,14 @@ exports.process = async function process(msg, cfg) { }; exports.getMetaModel = async function getMetaModel(cfg) { + + this.logger.fatal('Hello from FATAL logger'); + this.logger.error('Hello from ERROR logger'); + this.logger.warn('Hello from WARN logger'); + this.logger.info('Hello from INFO logger'); + this.logger.debug('Hello from DEBUG logger'); + this.logger.trace('Hello from TRACE logger'); + return { in: createPetIn, out: createPetOut From 2edbc007d00de319ff39b641380ccb62ea1c1523 Mon Sep 17 00:00:00 2001 From: HannaTrotsenko Date: Tue, 29 Jul 2025 11:12:17 +0200 Subject: [PATCH 28/31] Update component.json --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index 26ac791..d424815 100644 --- a/component.json +++ b/component.json @@ -1,5 +1,5 @@ { - "title": "Petstore API (Node.js) MultiSelectView", + "title": "Petstore API (Node.js)", "version": "1.0.6-dev.2", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", From 736266ae3aa2530b3d9c02f676860b564669c0f0 Mon Sep 17 00:00:00 2001 From: if0s Date: Tue, 29 Jul 2025 12:33:05 +0300 Subject: [PATCH 29/31] up --- lib/actions/createPet.js | 8 ++++---- lib/triggers/getPetsByStatus.js | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/actions/createPet.js b/lib/actions/createPet.js index 9ac5511..37de369 100644 --- a/lib/actions/createPet.js +++ b/lib/actions/createPet.js @@ -70,17 +70,17 @@ exports.process = async function process(msg, cfg) { await this.emit('data', messages.newMessageWithBody(result)); }; +// eslint-disable-next-line no-unused-vars exports.getMetaModel = async function getMetaModel(cfg) { - this.logger.fatal('Hello from FATAL logger'); this.logger.error('Hello from ERROR logger'); this.logger.warn('Hello from WARN logger'); this.logger.info('Hello from INFO logger'); this.logger.debug('Hello from DEBUG logger'); this.logger.trace('Hello from TRACE logger'); - + return { in: createPetIn, - out: createPetOut - } + out: createPetOut, + }; }; diff --git a/lib/triggers/getPetsByStatus.js b/lib/triggers/getPetsByStatus.js index 9cf5ec6..5e264fb 100644 --- a/lib/triggers/getPetsByStatus.js +++ b/lib/triggers/getPetsByStatus.js @@ -43,14 +43,13 @@ exports.process = async function getPetsByStatus(msg, cfg) { * to be displayd on the platform */ exports.getStatusModel = async function getStatusModel(cfg) { - this.logger.fatal('Hello from FATAL logger'); this.logger.error('Hello from ERROR logger'); this.logger.warn('Hello from WARN logger'); this.logger.info('Hello from INFO logger'); this.logger.debug('Hello from DEBUG logger'); this.logger.trace('Hello from TRACE logger'); - + const client = new PetstoreClient(this, cfg); const result = await client.makeRequest({ From 6db138c54dc54f4ed1204b88e88efdbab7efe07a Mon Sep 17 00:00:00 2001 From: HannaTrotsenko Date: Tue, 29 Jul 2025 11:52:53 +0200 Subject: [PATCH 30/31] Update getPetsByStatus.js --- lib/triggers/getPetsByStatus.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/triggers/getPetsByStatus.js b/lib/triggers/getPetsByStatus.js index 5e264fb..ce1e130 100644 --- a/lib/triggers/getPetsByStatus.js +++ b/lib/triggers/getPetsByStatus.js @@ -11,7 +11,6 @@ const PetstoreClient = require('../petstoreClient'); * Emits results as a message to the platform */ exports.process = async function getPetsByStatus(msg, cfg) { - const client = new PetstoreClient(this, cfg); this.logger.fatal('Hello from FATAL logger'); this.logger.error('Hello from ERROR logger'); @@ -19,8 +18,10 @@ exports.process = async function getPetsByStatus(msg, cfg) { this.logger.info('Hello from INFO logger'); this.logger.debug('Hello from DEBUG logger'); this.logger.trace('Hello from TRACE logger'); + + const client = new PetstoreClient(this, cfg); - // access the value of the status field defined in credentials section of component.json + // access the value of the status field defined in credentials section of component.json const { status } = cfg; if (!status) { @@ -43,6 +44,7 @@ exports.process = async function getPetsByStatus(msg, cfg) { * to be displayd on the platform */ exports.getStatusModel = async function getStatusModel(cfg) { + this.logger.fatal('Hello from FATAL logger'); this.logger.error('Hello from ERROR logger'); this.logger.warn('Hello from WARN logger'); From 26837cb1c7c8495a6bfbb23cfaeb51e42cf2ff63 Mon Sep 17 00:00:00 2001 From: HannaTrotsenko Date: Tue, 29 Jul 2025 12:03:04 +0200 Subject: [PATCH 31/31] Update component.json --- component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.json b/component.json index d424815..d578d68 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "title": "Petstore API (Node.js)", - "version": "1.0.6-dev.2", + "version": "1.0.6-dev.3", "description": "elastic.io component for the Petstore API", "docsUrl": "https://github.com/elasticio/petstore-component-nodejs", "buildType":"docker",