@balena/event-log
Advanced tools
Comparing version 5.1.0-alias-members-events-f8bcb4769a84d921860518233d46df49e4a380e8 to 5.1.0
@@ -25,2 +25,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
publicKey: ['create', 'delete'], | ||
organization: ['create', 'edit', 'delete'], | ||
organizationMember: ['add', 'edit', 'delete'], | ||
organizationInvite: ['addInviteOpen', 'create', 'delete', 'accept'], | ||
team: ['create', 'edit', 'delete'], | ||
teamMember: ['add', 'edit', 'delete'], | ||
teamApplication: ['add', 'edit', 'delete'], | ||
application: [ | ||
@@ -106,6 +112,2 @@ 'create', | ||
}; | ||
var ALIASSED_EVENT_NAMESPACES = { | ||
invite: 'applicationInvite', | ||
members: 'applicationMember', | ||
}; | ||
var DEFAULT_HOOKS = { | ||
@@ -237,6 +239,2 @@ beforeCreate: function (_type, _jsonData, _applicationId, _deviceId, callback) { | ||
}); | ||
var aliasedNamespace = ALIASSED_EVENT_NAMESPACES[base]; | ||
if (aliasedNamespace) { | ||
eventLog[aliasedNamespace] = eventLog[base]; | ||
} | ||
}); | ||
@@ -243,0 +241,0 @@ return eventLog; |
@@ -7,7 +7,10 @@ # Change Log | ||
## 5.1.0 - 2020-12-08 | ||
## 5.1.0 - 2020-12-09 | ||
* Deprecate invite events in favor of applicationInvite alias [Thodoris Greasidis] | ||
* Deprecate members events in favor of applicationMember alias [Thodoris Greasidis] | ||
* Add organization team and member main events [JSReds] | ||
## 5.0.2 - 2020-12-08 | ||
* Add GH CODEOWNERS to the repo [Thodoris Greasidis] | ||
## 5.0.1 - 2020-12-08 | ||
@@ -14,0 +17,0 @@ |
{ | ||
"name": "@balena/event-log", | ||
"version": "5.1.0-alias-members-events-f8bcb4769a84d921860518233d46df49e4a380e8", | ||
"version": "5.1.0", | ||
"description": "Balena events logging util", | ||
@@ -5,0 +5,0 @@ "main": "build/balena-event-log.js", |
@@ -26,3 +26,9 @@ // tslint:disable-next-line:no-namespace | ||
interface InviteMethods { | ||
interface IHaveAddEditDelete { | ||
add: TrackFunction; | ||
edit: TrackFunction; | ||
delete: TrackFunction; | ||
} | ||
interface Invite { | ||
addInviteOpen: TrackFunction; | ||
@@ -83,2 +89,8 @@ create: TrackFunction; | ||
}; | ||
organization: IHaveCreateEditDelete; | ||
organizationMember: IHaveAddEditDelete; | ||
organizationInvite: Invite; | ||
team: IHaveCreateEditDelete; | ||
teamMember: IHaveAddEditDelete; | ||
teamApplication: IHaveAddEditDelete; | ||
application: { | ||
@@ -101,4 +113,2 @@ create: TrackFunction; | ||
}; | ||
applicationMember: IHaveCreateEditDelete; | ||
applicationInvite: InviteMethods; | ||
applicationTag: IHaveCreateEditDelete & { | ||
@@ -168,3 +178,2 @@ set: TrackFunction; | ||
}; | ||
/** @deprecated Use applicationMember */ | ||
members: IHaveCreateEditDelete; | ||
@@ -186,4 +195,3 @@ billing: { | ||
}; | ||
/** @deprecated Use applicationInvite */ | ||
invite: InviteMethods; | ||
invite: Invite; | ||
} | ||
@@ -190,0 +198,0 @@ |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
37282
572
0