@live-change/access-control-service 0.2.36 → 0.2.37

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 +10 -2
  2. package/package.json +2 -2
package/invite.js CHANGED
@@ -69,7 +69,7 @@ definition.event({
69
69
  })
70
70
 
71
71
  definition.trigger({
72
- name: 'contactOrUserOwnedInvitationMoved',
72
+ name: 'contactOrUserOwnedAccessInvitationMoved',
73
73
  properties: {
74
74
  ...contactProperties,
75
75
  from: {
@@ -98,6 +98,14 @@ definition.trigger({
98
98
  async execute({ from, to, objectType, object }, { service }, emit) {
99
99
  const invitation = App.encodeIdentifier([from.contactOrUserType, from.contactOrUser, objectType, object])
100
100
  const invitationData = await AccessInvitation.get(invitation)
101
+ console.error("MOVED!!!", {
102
+ ...invitationData,
103
+ type: 'notify',
104
+ sessionOrUserType: 'user_User',
105
+ sessionOrUser: to.contactOrUser,
106
+ notificationType: 'accessControl_Invitation',
107
+ id: undefined
108
+ })
101
109
  if(to.contactOrUserType == 'user_User') {
102
110
  await service.trigger({
103
111
  ...invitationData,
@@ -266,4 +274,4 @@ for(const contactType of config.contactTypes) {
266
274
  }
267
275
  })
268
276
 
269
- }
277
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/access-control-service",
3
- "version": "0.2.36",
3
+ "version": "0.2.37",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -23,5 +23,5 @@
23
23
  "dependencies": {
24
24
  "@live-change/framework": "0.6.5"
25
25
  },
26
- "gitHead": "7175d4ca2f3308188b65f1093530091a2e8e0ca2"
26
+ "gitHead": "f3bc615d20a0112c7cc76d55ba1cbefb53b84f01"
27
27
  }