@live-change/access-control-frontend 0.8.148 → 0.9.0

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.
@@ -81,7 +81,7 @@
81
81
 
82
82
  const [ accessInvitations ] = await Promise.all([
83
83
  live(path().accessControl.objectOwnedAccessInvitations({ object, objectType })
84
- .with(access => path().userIdentification.sessionOrUserOwnedIdentification({
84
+ .with(access => path().userIdentification.Identification({
85
85
  sessionOrUserType: access.contactOrUserType, sessionOrUser: access.contactOrUser
86
86
  }).bind('identification'))
87
87
  )
@@ -89,8 +89,8 @@
89
89
 
90
90
  const synchronizedAccessInvitationsList = synchronizedList({
91
91
  source: accessInvitations,
92
- update: accessControlApi.updateContactOrUserAndObjectOwnedAccessInvitation,
93
- delete: accessControlApi.resetContactOrUserAndObjectOwnedAccessInvitation,
92
+ update: accessControlApi.updateAccessInvitation,
93
+ delete: accessControlApi.resetAccessInvitation,
94
94
  identifiers: { object, objectType },
95
95
  objectIdentifiers: ({ to, sessionOrUser, sessionOrUserType }) =>
96
96
  ({ accessInvitation: to, sessionOrUser, sessionOrUserType, object, objectType }),
@@ -84,7 +84,7 @@
84
84
 
85
85
  const [ accesses ] = await Promise.all([
86
86
  live(path().accessControl.objectOwnedAccesses({ object, objectType })
87
- .with(access => path().userIdentification.sessionOrUserOwnedIdentification({
87
+ .with(access => path().userIdentification.identification({
88
88
  sessionOrUserType: access.sessionOrUserType, sessionOrUser: access.sessionOrUser
89
89
  }).bind('identification'))
90
90
  )
@@ -92,8 +92,8 @@
92
92
 
93
93
  const synchronizedAccessesList = synchronizedList({
94
94
  source: accesses,
95
- update: accessControlApi.updateSessionOrUserAndObjectOwnedAccess,
96
- delete: accessControlApi.resetSessionOrUserAndObjectOwnedAccess,
95
+ update: accessControlApi.updateAccess,
96
+ delete: accessControlApi.resetAccess,
97
97
  identifiers: { object, objectType },
98
98
  objectIdentifiers: ({ to, sessionOrUser, sessionOrUserType }) =>
99
99
  ({ access: to, sessionOrUser, sessionOrUserType, object, objectType }),
@@ -88,11 +88,11 @@
88
88
 
89
89
  const [ accessRequests ] = await Promise.all([
90
90
  live(path().accessControl.objectOwnedAccessRequests({ object, objectType })
91
- .with(access => path().userIdentification.sessionOrUserOwnedIdentification({
91
+ .with(access => path().userIdentification.identification({
92
92
  sessionOrUserType: access.sessionOrUserType, sessionOrUser: access.sessionOrUser
93
93
  }).bind('identification'))
94
94
  .action('delete', ({ sessionOrUserType, sessionOrUser, objectType, object }) =>
95
- path().accessControl.resetSessionOrUserAndObjectOwnedAccessRequest(
95
+ path().accessControl.resetAccessRequest(
96
96
  { sessionOrUserType, sessionOrUser, objectType, object }
97
97
  )
98
98
  )
@@ -101,8 +101,8 @@
101
101
 
102
102
  const synchronizedAccessRequestsList = synchronizedList({
103
103
  source: accessRequests,
104
- update: accessControlApi.updateSessionOrUserAndObjectOwnedAccessRequest,
105
- delete: accessControlApi.resetSessionOrUserAndObjectOwnedAccessRequest,
104
+ update: accessControlApi.updateAccessRequest,
105
+ delete: accessControlApi.resetAccessRequest,
106
106
  identifiers: { object, objectType },
107
107
  objectIdentifiers: ({ to, sessionOrUser, sessionOrUserType }) =>
108
108
  ({ accessRequest: to, sessionOrUser, sessionOrUserType, object, objectType }),
@@ -127,12 +127,12 @@
127
127
  const accessControlApi = actions().accessControl
128
128
 
129
129
  const [ publicAccess ] = await Promise.all([
130
- live(path().accessControl.objectOwnedPublicAccess({ object, objectType }))
130
+ live(path().accessControl.publicAccess({ object, objectType }))
131
131
  ])
132
132
 
133
133
  const synchronizedPublicAccess = synchronized({
134
134
  source: publicAccess,
135
- update: accessControlApi.setOrUpdateObjectOwnedPublicAccess,
135
+ update: accessControlApi.setOrUpdatePublicAccess,
136
136
  identifiers: { object, objectType },
137
137
  recursive: true,
138
138
  onSave: () => toast.add({ severity: 'info', summary: 'Public access saved', life: 1500 })
@@ -81,7 +81,7 @@
81
81
  const secretLink = secrets.find(secret => secret.type === 'link')
82
82
 
83
83
  const [ from ] = await Promise.all([
84
- live(path().userIdentification.sessionOrUserOwnedIdentification(
84
+ live(path().userIdentification.identification(
85
85
  { sessionOrUserType: data.fromType, sessionOrUser: data.from }))
86
86
  ])
87
87
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/access-control-frontend",
3
- "version": "0.8.148",
3
+ "version": "0.9.0",
4
4
  "scripts": {
5
5
  "memDev": "node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
6
6
  "localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
@@ -21,22 +21,22 @@
21
21
  },
22
22
  "type": "module",
23
23
  "dependencies": {
24
- "@live-change/access-control-service": "^0.8.148",
25
- "@live-change/cli": "^0.8.148",
26
- "@live-change/dao": "^0.8.148",
27
- "@live-change/dao-vue3": "^0.8.148",
28
- "@live-change/dao-websocket": "^0.8.148",
29
- "@live-change/db-admin": "^0.8.148",
30
- "@live-change/framework": "^0.8.148",
31
- "@live-change/frontend-base": "^0.8.148",
32
- "@live-change/password-authentication-service": "^0.8.148",
33
- "@live-change/secret-code-service": "^0.8.148",
34
- "@live-change/secret-link-service": "^0.8.148",
35
- "@live-change/session-service": "^0.8.148",
36
- "@live-change/user-frontend": "^0.8.148",
37
- "@live-change/user-service": "^0.8.148",
38
- "@live-change/vue3-components": "^0.8.148",
39
- "@live-change/vue3-ssr": "^0.8.148",
24
+ "@live-change/access-control-service": "^0.9.0",
25
+ "@live-change/cli": "^0.9.0",
26
+ "@live-change/dao": "^0.9.0",
27
+ "@live-change/dao-vue3": "^0.9.0",
28
+ "@live-change/dao-websocket": "^0.9.0",
29
+ "@live-change/db-admin": "^0.9.0",
30
+ "@live-change/framework": "^0.9.0",
31
+ "@live-change/frontend-base": "^0.9.0",
32
+ "@live-change/password-authentication-service": "^0.9.0",
33
+ "@live-change/secret-code-service": "^0.9.0",
34
+ "@live-change/secret-link-service": "^0.9.0",
35
+ "@live-change/session-service": "^0.9.0",
36
+ "@live-change/user-frontend": "^0.9.0",
37
+ "@live-change/user-service": "^0.9.0",
38
+ "@live-change/vue3-components": "^0.9.0",
39
+ "@live-change/vue3-ssr": "^0.9.0",
40
40
  "@vueuse/core": "^10.11.0",
41
41
  "codeceptjs-assert": "^0.0.5",
42
42
  "compression": "^1.7.4",
@@ -53,7 +53,7 @@
53
53
  "vue3-scroll-border": "0.1.6"
54
54
  },
55
55
  "devDependencies": {
56
- "@live-change/codeceptjs-helper": "^0.8.148",
56
+ "@live-change/codeceptjs-helper": "^0.9.0",
57
57
  "codeceptjs": "^3.6.5",
58
58
  "generate-password": "1.7.1",
59
59
  "playwright": "^1.41.2",
@@ -64,5 +64,5 @@
64
64
  "author": "Michał Łaszczewski <michal@laszczewski.pl>",
65
65
  "license": "BSD-3-Clause",
66
66
  "description": "",
67
- "gitHead": "34032c9007403b19096a1ecbaf5f99231a65ae92"
67
+ "gitHead": "b82513f5b400afcc4b8cc3ae1f9dfe4ac3a2a6eb"
68
68
  }