Skip to content

Commit

Permalink
Merge branch 'master' into hotfix/B2BTEAM-1538-change-organization-in…
Browse files Browse the repository at this point in the history
…tegration
  • Loading branch information
Rudge authored Feb 27, 2024
2 parents c4191c4 + ec9b6fb commit 9157472
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

- Adjust b2b-organizations-graphql integration

## [1.39.2] - 2024-02-26

### Changed
- Add intro description about Session Watcher

## [1.39.1] - 2024-02-09

### Fixed
Expand Down
7 changes: 6 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` )

To activate it, [use the mutation](#setSessionWatcher).

### GraphQL queries

Expand Down Expand Up @@ -288,7 +293,7 @@ mutation impersonateUser($userId: ID)
}
```

#### setSessionWatcher
#### <a href="#setSessionWatcher"></a> 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.

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "storefront-permissions",
"vendor": "vtex",
"version": "1.39.1",
"version": "1.39.2",
"title": "Storefront Permissions",
"description": "Manage User's permissions on apps that relates to this app",
"mustUpdateAt": "2022-08-28",
Expand Down
2 changes: 1 addition & 1 deletion node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vtex.checkout-ui-custom",
"version": "1.39.1",
"version": "1.39.2",
"dependencies": {
"@vtex/api": "6.46.1",
"atob": "^2.1.2",
Expand Down

0 comments on commit 9157472

Please sign in to comment.