@sprucelabs/mercury-core-events 20.0.3 → 20.0.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.
|
@@ -1,95 +1,33 @@
|
|
|
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
|
-
];
|
|
44
4
|
'events-contract': [
|
|
45
5
|
'can-register-global-events'
|
|
46
6
|
];
|
|
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
|
-
];
|
|
60
7
|
'feed-contract': [
|
|
61
8
|
'can-see-other-persons-feed',
|
|
62
9
|
'can-subscribe-to-feed-updates'
|
|
63
10
|
];
|
|
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
|
-
];
|
|
82
11
|
'hiring-and-promoting-contract': [
|
|
83
12
|
'can-hire-person',
|
|
84
13
|
'can-fire-person',
|
|
85
14
|
'hire-and-promote-when-not-installed'
|
|
86
15
|
];
|
|
16
|
+
'listeners-contract': [
|
|
17
|
+
'can-register-global-listeners'
|
|
18
|
+
];
|
|
87
19
|
'locations-contract': [
|
|
88
20
|
'can-create-location',
|
|
89
21
|
'can-update-location',
|
|
90
22
|
'can-delete-location',
|
|
91
23
|
'can-view-private-locations-at-own-org'
|
|
92
24
|
];
|
|
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
|
+
];
|
|
93
31
|
'organizations-contract': [
|
|
94
32
|
'can-update-organization-profile',
|
|
95
33
|
'can-delete-organization',
|
|
@@ -106,6 +44,14 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
106
44
|
'can-listen-to-did-signup',
|
|
107
45
|
'can-listen-to-did-update'
|
|
108
46
|
];
|
|
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
|
+
];
|
|
109
55
|
'roles-contract': [
|
|
110
56
|
'can-create-role',
|
|
111
57
|
'can-update-role',
|
|
@@ -119,20 +65,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
119
65
|
'can-view-marketplace',
|
|
120
66
|
'can-check-if-skill-is-installed'
|
|
121
67
|
];
|
|
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
|
-
];
|
|
136
68
|
}
|
|
137
69
|
}
|
|
138
70
|
export interface PermissionContractMap {
|