@live-change/access-control-service 0.8.85 → 0.8.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/invite.js +4 -1
- package/package.json +3 -3
package/invite.js
CHANGED
|
@@ -3,6 +3,8 @@ const app = App.app()
|
|
|
3
3
|
import definition from './definition.js'
|
|
4
4
|
const config = definition.config
|
|
5
5
|
|
|
6
|
+
const inviteMessageActionByObjectType = config.inviteMessageActionByObjectType ?? {}
|
|
7
|
+
|
|
6
8
|
import { AccessInvitation, invitationProperties, Access } from './model.js'
|
|
7
9
|
import accessModule from './access.js'
|
|
8
10
|
const access = accessModule(definition)
|
|
@@ -260,7 +262,8 @@ for(const contactType of config.contactTypes) {
|
|
|
260
262
|
// Authenticate with message because we will create account later
|
|
261
263
|
const messageData = {
|
|
262
264
|
objectType, object,
|
|
263
|
-
...invitationData, id: undefined
|
|
265
|
+
...invitationData, id: undefined,
|
|
266
|
+
action: inviteMessageActionByObjectType[objectType] ?? 'inviteWithMessage',
|
|
264
267
|
}
|
|
265
268
|
await service.trigger({ type: 'authenticateWithMessage' }, {
|
|
266
269
|
contactType,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/access-control-service",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.87",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"url": "https://www.viamage.com/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/framework": "^0.8.
|
|
24
|
+
"@live-change/framework": "^0.8.87"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "133e0785e028c37eb6f903d7355e5470b2cc65d3",
|
|
27
27
|
"type": "module"
|
|
28
28
|
}
|