@crombolo/core 0.14.1 → 0.15.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/permissions.ts +13 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crombolo/core",
3
- "version": "0.14.1",
3
+ "version": "0.15.0",
4
4
  "description": "Domain model, entity keys and shared contracts for crombolo. No I/O.",
5
5
  "license": "MIT",
6
6
  "author": "Crombolo",
@@ -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