Skip to content

Commit

Permalink
Fix cmdtyView events. Add new cmdtyView event. Update Lerna.
Browse files Browse the repository at this point in the history
  • Loading branch information
bryaningl3 committed Aug 18, 2023
1 parent 1480414 commit 336ec6a
Show file tree
Hide file tree
Showing 4 changed files with 3,912 additions and 3,559 deletions.
13 changes: 13 additions & 0 deletions .releases/5.1.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
**New Features**

* Added EventType.CMDTYVIEW_WORKSPACE_ACTIVATED.
* Added `browser` context to EventType.CMDTYVIEW_LOGIN.

**Bug Fixes**

* Corrected the product type used by cmdtyView events.

**Technical Enhancements**

* Updated [Lerna]() by three major versions.
* Updated other dependencies implicitly.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
},
"devDependencies": {
"jshint": "^2.10.3",
"lerna": "^3.22.1"
"lerna": "^6.6.2"
},
"resolutions": {
"@yarnpkg/parsers": "3.0.0-rc.48.1"
},
"license": "MIT"
}
9 changes: 7 additions & 2 deletions packages/common-js/lib/data/EventType.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,10 @@ module.exports = (() => {
return cmdtyViewLogout;
}

static get CMDTYVIEW_WORKSPACE_ACTIVATED() {
return cmdtyViewWorkspaceActivated;
}

static get ENTITLEMENTS_AUTHORIZATION_FAILED() {
return entitlementsAuthorizationFailed;
}
Expand Down Expand Up @@ -408,8 +412,9 @@ module.exports = (() => {

// cmdtyView

const cmdtyViewLogin = new EventType('CMDTYVIEW-LOGIN', 'User logged in', ProductType.PORTFOLIO, ['userId', 'sessionId']);
const cmdtyViewLogout = new EventType('CMDTYVIEW-LOGOUT', 'User logged out', ProductType.PORTFOLIO, ['userId', 'sessionId']);
const cmdtyViewLogin = new EventType('CMDTYVIEW-LOGIN', 'User logged in', ProductType.CMDTYVIEW, ['userId', 'sessionId', 'browser']);
const cmdtyViewLogout = new EventType('CMDTYVIEW-LOGOUT', 'User logged out', ProductType.CMDTYVIEW, ['userId', 'sessionId']);
const cmdtyViewWorkspaceActivated = new EventType('CMDTYVIEW-WORKSPACE-ACTIVATED', 'Workspace Activated', ProductType.CMDTYVIEW, ['userId', 'sessionId', 'workspace']);

// Entitlements

Expand Down
Loading

0 comments on commit 336ec6a

Please sign in to comment.