From da7b91acc4debbd9970f2cfd8919a076cb6abe9c Mon Sep 17 00:00:00 2001 From: Enes Kutay SEZEN Date: Wed, 27 Aug 2025 18:29:32 +0300 Subject: [PATCH 1/2] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 16a2b8e7..68251112 100644 --- a/README.md +++ b/README.md @@ -37,10 +37,11 @@ const constructorio = new ConstructorioClient({ ## 4. Retrieve Results -After instantiating an instance of the client, four modules will be exposed as properties to help retrieve data from Constructor.io: `search`, `browse`, `autocomplete`, `recommendations` and `tracker`. +After instantiating an instance of the client, seven modules will be exposed as properties to help retrieve data or send behavioral events: `search`, `browse`, `autocomplete`, `recommendations`, `quizzes`, `agent`, and `tracker`. #### Dispatched events -The `search`, `browse`, `recommendations` and `autocomplete` modules may dispatch custom events on `window` with response data when a request has been completed. The event name follows the following structure: `cio.client.[moduleName].[methodName].completed`. Example consuming code can be found below: + +Modules may dispatch custom events on `window` with response data when a request has been completed. The event name follows the following structure: `cio.client.[moduleName].[methodName].completed`. Example consuming code can be found below: ```javascript window.addEventListener('cio.client.search.getSearchResults.completed', (event) => { From 7de2fd086ec662c09cda05de8d0f6ac4f1123df0 Mon Sep 17 00:00:00 2001 From: Enes Kutay SEZEN Date: Wed, 27 Aug 2025 18:55:02 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 68251112..9ade3501 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ After instantiating an instance of the client, seven modules will be exposed as #### Dispatched events -Modules may dispatch custom events on `window` with response data when a request has been completed. The event name follows the following structure: `cio.client.[moduleName].[methodName].completed`. Example consuming code can be found below: +Modules may dispatch custom events on the browser `window` with response data when a request has been completed. The event name follows the following structure: `cio.client.[moduleName].[methodName].completed`. Example consuming code can be found below: ```javascript window.addEventListener('cio.client.search.getSearchResults.completed', (event) => {