From 18ac4815119ec14f31b238c53d294b3fc9de1a49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederico=20Mour=C3=A3o?= Date: Mon, 26 Feb 2024 11:24:40 -0300 Subject: [PATCH 1/5] docs: Add Session Watcher intro --- docs/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/README.md b/docs/README.md index 24286cc..adbdffb 100644 --- a/docs/README.md +++ b/docs/README.md @@ -123,6 +123,11 @@ If you would like to develop your own app and integrate it with **Storefront Per Once you are done developing and installing your own app, if you have [Storefront Permissions UI](https://developers.vtex.com/vtex-developer-docs/docs/vtex-storefront-permissions-ui), the features of your app associated with each role will be automatically loaded on the **Storefront Permissions** page. For more details on this, read our documentation on the [Storefront Permissions UI](https://developers.vtex.com/vtex-developer-docs/docs/vtex-storefront-permissions-ui) app. +### Session Watcher + +The session watcher is based in the [session transformation feature](https://developers.vtex.com/docs/guides/vtex-io-documentation-collecting-user-session-data#configuring-vtexsession) to update the cart fields with Buyer [Organization data](https://github.com/vtex-apps/b2b-organizations): `Shipping Address`, `Profile` and `Marketdata` ( `utmCampaign` with `organization.id` and `utmMedium` with `costCenter.id` ) + + ### GraphQL queries From 00a536480ff550daab86a0e94f5286d4507add80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederico=20Mour=C3=A3o?= Date: Mon, 26 Feb 2024 11:26:29 -0300 Subject: [PATCH 2/5] Update README.md --- docs/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index adbdffb..fb75fe1 100644 --- a/docs/README.md +++ b/docs/README.md @@ -127,7 +127,7 @@ Once you are done developing and installing your own app, if you have [Storefron The session watcher is based in the [session transformation feature](https://developers.vtex.com/docs/guides/vtex-io-documentation-collecting-user-session-data#configuring-vtexsession) to update the cart fields with Buyer [Organization data](https://github.com/vtex-apps/b2b-organizations): `Shipping Address`, `Profile` and `Marketdata` ( `utmCampaign` with `organization.id` and `utmMedium` with `costCenter.id` ) - +To activate it, [use the mutation}(#setSessionWatcher). ### GraphQL queries @@ -293,7 +293,7 @@ mutation impersonateUser($userId: ID) } ``` -#### setSessionWatcher +#### setSessionWatcher If your account is not using `vtex.b2b-organizations` you may want to disable the Session Watcher to avoid unnecessary operations. To do so, set the `active` property to `false` in the mutation exemplified below. From 39c34d5780d7ca4181841f3c95cfa31c8d5477ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederico=20Mour=C3=A3o?= Date: Mon, 26 Feb 2024 11:28:33 -0300 Subject: [PATCH 3/5] Update CHANGELOG.md --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 04f6393..ed0580b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Changed +- Add intro description about Session Watcher + ## [1.39.1] - 2024-02-09 ### Fixed @@ -29,7 +32,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed -- Add 'isDisposable' property to create address requests, indicating whether the address is disposable to prevent duplicates. +- Add the 'disposable' property to create address requests, indicating whether the address is disposable to prevent duplicates. ## [1.37.2] - 2023-11-10 From 7852197da0875c5907bc812259f1218651158809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederico=20Mour=C3=A3o?= Date: Mon, 26 Feb 2024 11:34:13 -0300 Subject: [PATCH 4/5] Update docs/README.md Co-authored-by: Enzo Mercanti <131273915+enzomerca@users.noreply.github.com> --- docs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index fb75fe1..0d58aa4 100644 --- a/docs/README.md +++ b/docs/README.md @@ -127,7 +127,7 @@ Once you are done developing and installing your own app, if you have [Storefron The session watcher is based in the [session transformation feature](https://developers.vtex.com/docs/guides/vtex-io-documentation-collecting-user-session-data#configuring-vtexsession) to update the cart fields with Buyer [Organization data](https://github.com/vtex-apps/b2b-organizations): `Shipping Address`, `Profile` and `Marketdata` ( `utmCampaign` with `organization.id` and `utmMedium` with `costCenter.id` ) -To activate it, [use the mutation}(#setSessionWatcher). +To activate it, [use the mutation](#setSessionWatcher). ### GraphQL queries From ed402a1584bf8e57cd2729e3e98ed4c2c1c20cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederico=20Mour=C3=A3o?= Date: Mon, 26 Feb 2024 11:36:26 -0300 Subject: [PATCH 5/5] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed0580b..92fb4fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,7 +32,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed -- Add the 'disposable' property to create address requests, indicating whether the address is disposable to prevent duplicates. +- Add 'isDisposable' property to create address requests, indicating whether the address is disposable to prevent duplicates. ## [1.37.2] - 2023-11-10