@sprucelabs/mercury-core-events 20.0.2 → 20.0.3
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.
|
@@ -1,33 +1,95 @@
|
|
|
1
1
|
import '@sprucelabs/mercury-types';
|
|
2
2
|
declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
3
3
|
interface PermissionContractMap {
|
|
4
|
+
'can-crud-locations-contract': [
|
|
5
|
+
'can-create-location',
|
|
6
|
+
'can-update-location',
|
|
7
|
+
'can-delete-location',
|
|
8
|
+
'can-view-private-locations-at-own-org'
|
|
9
|
+
];
|
|
10
|
+
'can-crud-organization-profile-contract': [
|
|
11
|
+
'can-update-organization-profile',
|
|
12
|
+
'can-delete-organization',
|
|
13
|
+
'can-view-private-organizations'
|
|
14
|
+
];
|
|
15
|
+
'can-crud-roles-contract': [
|
|
16
|
+
'can-create-role',
|
|
17
|
+
'can-update-role',
|
|
18
|
+
'can-delete-role',
|
|
19
|
+
'can-view-private-roles-at-own-org',
|
|
20
|
+
'can-view-persons-roles'
|
|
21
|
+
];
|
|
22
|
+
'listen-messaging': [
|
|
23
|
+
'can-listen-to-did-message-event'
|
|
24
|
+
];
|
|
25
|
+
'can-register-events-contract': [
|
|
26
|
+
'can-register-global-events'
|
|
27
|
+
];
|
|
28
|
+
'hiring-and-promoting': [
|
|
29
|
+
'can-hire-person',
|
|
30
|
+
'can-fire-person',
|
|
31
|
+
'hire-and-promote-when-not-installed'
|
|
32
|
+
];
|
|
33
|
+
'can-manage-skills': [
|
|
34
|
+
'can-install-skills',
|
|
35
|
+
'can-uninstall-skills',
|
|
36
|
+
'can-view-marketplace'
|
|
37
|
+
];
|
|
38
|
+
'can-check-if-skill-is-installed-contract-id': [
|
|
39
|
+
'can-check-if-skill-is-installed'
|
|
40
|
+
];
|
|
41
|
+
'listeners-contract': [
|
|
42
|
+
'can-register-global-listeners'
|
|
43
|
+
];
|
|
4
44
|
'events-contract': [
|
|
5
45
|
'can-register-global-events'
|
|
6
46
|
];
|
|
47
|
+
'can-list-permission-contracts-contract-id': [
|
|
48
|
+
'can-list-permission-contracts-for-org'
|
|
49
|
+
];
|
|
50
|
+
'can-get-permission-contract-contract-id': [
|
|
51
|
+
'can-get-permission-contract-for-org'
|
|
52
|
+
];
|
|
53
|
+
'can-upsert-permission-contract-contract-id': [
|
|
54
|
+
'can-upsert-permission-contract-for-org'
|
|
55
|
+
];
|
|
56
|
+
'permission-contracts-contract-id': [
|
|
57
|
+
'can-get-permission-contracts-for-org',
|
|
58
|
+
'can-list-permission-contracts-for-org'
|
|
59
|
+
];
|
|
7
60
|
'feed-contract': [
|
|
8
61
|
'can-see-other-persons-feed',
|
|
9
62
|
'can-subscribe-to-feed-updates'
|
|
10
63
|
];
|
|
64
|
+
'emit-messaging': [
|
|
65
|
+
'can-emit-did-message-event',
|
|
66
|
+
'can-listen-to-did-message-event',
|
|
67
|
+
'can-message-others'
|
|
68
|
+
];
|
|
69
|
+
'can-crus-people-contract': [
|
|
70
|
+
'can-create-person',
|
|
71
|
+
'can-list-people-permission-id',
|
|
72
|
+
'can-scramble-other-person',
|
|
73
|
+
'can-get-anonymous-person',
|
|
74
|
+
'can-get-person-private-fields',
|
|
75
|
+
'can-get-person-by-phone',
|
|
76
|
+
'can-listen-to-did-signup',
|
|
77
|
+
'can-listen-to-did-update'
|
|
78
|
+
];
|
|
79
|
+
'can-register-listener': [
|
|
80
|
+
'can-register-global-listeners'
|
|
81
|
+
];
|
|
11
82
|
'hiring-and-promoting-contract': [
|
|
12
83
|
'can-hire-person',
|
|
13
84
|
'can-fire-person',
|
|
14
85
|
'hire-and-promote-when-not-installed'
|
|
15
86
|
];
|
|
16
|
-
'listeners-contract': [
|
|
17
|
-
'can-register-global-listeners'
|
|
18
|
-
];
|
|
19
87
|
'locations-contract': [
|
|
20
88
|
'can-create-location',
|
|
21
89
|
'can-update-location',
|
|
22
90
|
'can-delete-location',
|
|
23
91
|
'can-view-private-locations-at-own-org'
|
|
24
92
|
];
|
|
25
|
-
'messaging-contract': [
|
|
26
|
-
'can-emit-did-message-event',
|
|
27
|
-
'can-listen-to-did-message-event',
|
|
28
|
-
'can-message-others',
|
|
29
|
-
'can-message-as-sprucebot'
|
|
30
|
-
];
|
|
31
93
|
'organizations-contract': [
|
|
32
94
|
'can-update-organization-profile',
|
|
33
95
|
'can-delete-organization',
|
|
@@ -44,14 +106,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
44
106
|
'can-listen-to-did-signup',
|
|
45
107
|
'can-listen-to-did-update'
|
|
46
108
|
];
|
|
47
|
-
'permission-contract': [
|
|
48
|
-
'can-get-permission-contracts-for-org',
|
|
49
|
-
'can-list-permission-contracts-for-org',
|
|
50
|
-
'can-upsert-permission-contract-for-org',
|
|
51
|
-
'can-list-permission-contracts-globally',
|
|
52
|
-
'can-save-permissions-globally',
|
|
53
|
-
'can-load-others-permissions'
|
|
54
|
-
];
|
|
55
109
|
'roles-contract': [
|
|
56
110
|
'can-create-role',
|
|
57
111
|
'can-update-role',
|
|
@@ -65,6 +119,20 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
65
119
|
'can-view-marketplace',
|
|
66
120
|
'can-check-if-skill-is-installed'
|
|
67
121
|
];
|
|
122
|
+
'messaging-contract': [
|
|
123
|
+
'can-emit-did-message-event',
|
|
124
|
+
'can-listen-to-did-message-event',
|
|
125
|
+
'can-message-others',
|
|
126
|
+
'can-message-as-sprucebot'
|
|
127
|
+
];
|
|
128
|
+
'permission-contract': [
|
|
129
|
+
'can-get-permission-contracts-for-org',
|
|
130
|
+
'can-list-permission-contracts-for-org',
|
|
131
|
+
'can-upsert-permission-contract-for-org',
|
|
132
|
+
'can-list-permission-contracts-globally',
|
|
133
|
+
'can-save-permissions-globally',
|
|
134
|
+
'can-load-others-permissions'
|
|
135
|
+
];
|
|
68
136
|
}
|
|
69
137
|
}
|
|
70
138
|
export interface PermissionContractMap {
|