@crombolo/core 0.14.1 → 0.14.4
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/package.json +1 -1
- package/src/permissions.ts +13 -0
package/package.json
CHANGED
package/src/permissions.ts
CHANGED
|
@@ -54,6 +54,19 @@ export const FormPermissions = {
|
|
|
54
54
|
|
|
55
55
|
export type FormVerb = (typeof FormPermissions)[keyof typeof FormPermissions]
|
|
56
56
|
|
|
57
|
+
/**
|
|
58
|
+
* Sending and receiving whole sites through the remote protocol (story 107).
|
|
59
|
+
* A full pull carries people, and a push to a protected environment replaces
|
|
60
|
+
* something people rely on, so each is a grant of its own.
|
|
61
|
+
*/
|
|
62
|
+
export const RemotePermissions = {
|
|
63
|
+
Pull: 'Crombolo.Remote.Pull',
|
|
64
|
+
PullFull: 'Crombolo.Remote.PullFull',
|
|
65
|
+
Push: 'Crombolo.Remote.Push',
|
|
66
|
+
PushProtected: 'Crombolo.Remote.PushProtected',
|
|
67
|
+
} as const
|
|
68
|
+
export type RemoteVerb = (typeof RemotePermissions)[keyof typeof RemotePermissions]
|
|
69
|
+
|
|
57
70
|
/** The discriminator on a granular permission row. */
|
|
58
71
|
export type PermissionContext = 'Document' | 'Element' | 'DocumentTypeProperty'
|
|
59
72
|
|