@live-change/access-control-service 0.8.84 → 0.8.86

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.
Files changed (2) hide show
  1. package/invite.js +4 -1
  2. 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.84",
3
+ "version": "0.8.86",
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.84"
24
+ "@live-change/framework": "^0.8.86"
25
25
  },
26
- "gitHead": "53f9ddc7529c28f12cb77c4a2758b553461e46b6",
26
+ "gitHead": "3db6ec0c618b4e17974a525ef184fa6fae9b8ee0",
27
27
  "type": "module"
28
28
  }