@sprucelabs/mercury-core-events 22.0.57 → 22.0.58
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,116 +1,42 @@
|
|
|
1
1
|
import '@sprucelabs/mercury-types';
|
|
2
2
|
declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
3
3
|
interface PermissionContractMap {
|
|
4
|
-
'
|
|
5
|
-
'can-
|
|
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'
|
|
4
|
+
'chatbot-contract': [
|
|
5
|
+
'can-register-chatbots'
|
|
43
6
|
];
|
|
44
7
|
'events-contract': [
|
|
45
8
|
'can-register-global-events'
|
|
46
9
|
];
|
|
47
|
-
'
|
|
48
|
-
'can-
|
|
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
|
-
'emit-messaging': [
|
|
61
|
-
'can-emit-did-message-event',
|
|
62
|
-
'can-listen-to-did-message-event',
|
|
63
|
-
'can-message-others'
|
|
64
|
-
];
|
|
65
|
-
'can-crus-people-contract': [
|
|
66
|
-
'can-create-person',
|
|
67
|
-
'can-list-people-permission-id',
|
|
68
|
-
'can-scramble-other-person',
|
|
69
|
-
'can-get-anonymous-person',
|
|
70
|
-
'can-get-person-private-fields',
|
|
71
|
-
'can-get-person-by-phone',
|
|
72
|
-
'can-listen-to-did-signup',
|
|
73
|
-
'can-listen-to-did-update'
|
|
74
|
-
];
|
|
75
|
-
'can-register-listener': [
|
|
76
|
-
'can-register-global-listeners'
|
|
10
|
+
'feed-contract': [
|
|
11
|
+
'can-see-other-persons-feed',
|
|
12
|
+
'can-subscribe-to-feed-updates'
|
|
77
13
|
];
|
|
78
14
|
'hiring-and-promoting-contract': [
|
|
79
15
|
'can-hire-person',
|
|
80
16
|
'can-fire-person',
|
|
81
17
|
'hire-and-promote-when-not-installed'
|
|
82
18
|
];
|
|
19
|
+
'listeners-contract': [
|
|
20
|
+
'can-register-global-listeners'
|
|
21
|
+
];
|
|
83
22
|
'locations-contract': [
|
|
84
23
|
'can-create-location',
|
|
85
24
|
'can-update-location',
|
|
86
25
|
'can-delete-location',
|
|
87
26
|
'can-view-private-locations-at-own-org'
|
|
88
27
|
];
|
|
89
|
-
'organizations-contract': [
|
|
90
|
-
'can-update-organization-profile',
|
|
91
|
-
'can-delete-organization',
|
|
92
|
-
'can-view-private-organizations',
|
|
93
|
-
'can-list-orgs-for-other-people'
|
|
94
|
-
];
|
|
95
|
-
'roles-contract': [
|
|
96
|
-
'can-create-role',
|
|
97
|
-
'can-update-role',
|
|
98
|
-
'can-delete-role',
|
|
99
|
-
'can-view-private-roles-at-own-org',
|
|
100
|
-
'can-view-persons-roles'
|
|
101
|
-
];
|
|
102
|
-
'skills-contract': [
|
|
103
|
-
'can-install-skills',
|
|
104
|
-
'can-uninstall-skills',
|
|
105
|
-
'can-view-marketplace',
|
|
106
|
-
'can-check-if-skill-is-installed'
|
|
107
|
-
];
|
|
108
28
|
'messaging-contract': [
|
|
109
29
|
'can-emit-did-message-event',
|
|
110
30
|
'can-listen-to-did-message-event',
|
|
111
31
|
'can-message-others',
|
|
112
32
|
'can-message-as-sprucebot'
|
|
113
33
|
];
|
|
34
|
+
'organizations-contract': [
|
|
35
|
+
'can-update-organization-profile',
|
|
36
|
+
'can-delete-organization',
|
|
37
|
+
'can-view-private-organizations',
|
|
38
|
+
'can-list-orgs-for-other-people'
|
|
39
|
+
];
|
|
114
40
|
'permission-contract': [
|
|
115
41
|
'can-get-permission-contracts-for-org',
|
|
116
42
|
'can-list-permission-contracts-for-org',
|
|
@@ -119,16 +45,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
119
45
|
'can-save-permissions-globally',
|
|
120
46
|
'can-load-others-permissions'
|
|
121
47
|
];
|
|
122
|
-
'chat-bot-contract': [
|
|
123
|
-
'can-register-chat-bots'
|
|
124
|
-
];
|
|
125
|
-
'chatbot-contract': [
|
|
126
|
-
'can-register-chatbots'
|
|
127
|
-
];
|
|
128
|
-
'feed-contract': [
|
|
129
|
-
'can-see-other-persons-feed',
|
|
130
|
-
'can-subscribe-to-feed-updates'
|
|
131
|
-
];
|
|
132
48
|
'people-contract': [
|
|
133
49
|
'can-create-person',
|
|
134
50
|
'can-list-people-permission-id',
|
|
@@ -141,6 +57,19 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
141
57
|
'can-listen-to-did-update',
|
|
142
58
|
'can-get-other-person'
|
|
143
59
|
];
|
|
60
|
+
'roles-contract': [
|
|
61
|
+
'can-create-role',
|
|
62
|
+
'can-update-role',
|
|
63
|
+
'can-delete-role',
|
|
64
|
+
'can-view-private-roles-at-own-org',
|
|
65
|
+
'can-view-persons-roles'
|
|
66
|
+
];
|
|
67
|
+
'skills-contract': [
|
|
68
|
+
'can-install-skills',
|
|
69
|
+
'can-uninstall-skills',
|
|
70
|
+
'can-view-marketplace',
|
|
71
|
+
'can-check-if-skill-is-installed'
|
|
72
|
+
];
|
|
144
73
|
}
|
|
145
74
|
}
|
|
146
75
|
export interface PermissionContractMap {
|
|
@@ -1,116 +1,42 @@
|
|
|
1
1
|
import '@sprucelabs/mercury-types';
|
|
2
2
|
declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
3
3
|
interface PermissionContractMap {
|
|
4
|
-
'
|
|
5
|
-
'can-
|
|
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'
|
|
4
|
+
'chatbot-contract': [
|
|
5
|
+
'can-register-chatbots'
|
|
43
6
|
];
|
|
44
7
|
'events-contract': [
|
|
45
8
|
'can-register-global-events'
|
|
46
9
|
];
|
|
47
|
-
'
|
|
48
|
-
'can-
|
|
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
|
-
'emit-messaging': [
|
|
61
|
-
'can-emit-did-message-event',
|
|
62
|
-
'can-listen-to-did-message-event',
|
|
63
|
-
'can-message-others'
|
|
64
|
-
];
|
|
65
|
-
'can-crus-people-contract': [
|
|
66
|
-
'can-create-person',
|
|
67
|
-
'can-list-people-permission-id',
|
|
68
|
-
'can-scramble-other-person',
|
|
69
|
-
'can-get-anonymous-person',
|
|
70
|
-
'can-get-person-private-fields',
|
|
71
|
-
'can-get-person-by-phone',
|
|
72
|
-
'can-listen-to-did-signup',
|
|
73
|
-
'can-listen-to-did-update'
|
|
74
|
-
];
|
|
75
|
-
'can-register-listener': [
|
|
76
|
-
'can-register-global-listeners'
|
|
10
|
+
'feed-contract': [
|
|
11
|
+
'can-see-other-persons-feed',
|
|
12
|
+
'can-subscribe-to-feed-updates'
|
|
77
13
|
];
|
|
78
14
|
'hiring-and-promoting-contract': [
|
|
79
15
|
'can-hire-person',
|
|
80
16
|
'can-fire-person',
|
|
81
17
|
'hire-and-promote-when-not-installed'
|
|
82
18
|
];
|
|
19
|
+
'listeners-contract': [
|
|
20
|
+
'can-register-global-listeners'
|
|
21
|
+
];
|
|
83
22
|
'locations-contract': [
|
|
84
23
|
'can-create-location',
|
|
85
24
|
'can-update-location',
|
|
86
25
|
'can-delete-location',
|
|
87
26
|
'can-view-private-locations-at-own-org'
|
|
88
27
|
];
|
|
89
|
-
'organizations-contract': [
|
|
90
|
-
'can-update-organization-profile',
|
|
91
|
-
'can-delete-organization',
|
|
92
|
-
'can-view-private-organizations',
|
|
93
|
-
'can-list-orgs-for-other-people'
|
|
94
|
-
];
|
|
95
|
-
'roles-contract': [
|
|
96
|
-
'can-create-role',
|
|
97
|
-
'can-update-role',
|
|
98
|
-
'can-delete-role',
|
|
99
|
-
'can-view-private-roles-at-own-org',
|
|
100
|
-
'can-view-persons-roles'
|
|
101
|
-
];
|
|
102
|
-
'skills-contract': [
|
|
103
|
-
'can-install-skills',
|
|
104
|
-
'can-uninstall-skills',
|
|
105
|
-
'can-view-marketplace',
|
|
106
|
-
'can-check-if-skill-is-installed'
|
|
107
|
-
];
|
|
108
28
|
'messaging-contract': [
|
|
109
29
|
'can-emit-did-message-event',
|
|
110
30
|
'can-listen-to-did-message-event',
|
|
111
31
|
'can-message-others',
|
|
112
32
|
'can-message-as-sprucebot'
|
|
113
33
|
];
|
|
34
|
+
'organizations-contract': [
|
|
35
|
+
'can-update-organization-profile',
|
|
36
|
+
'can-delete-organization',
|
|
37
|
+
'can-view-private-organizations',
|
|
38
|
+
'can-list-orgs-for-other-people'
|
|
39
|
+
];
|
|
114
40
|
'permission-contract': [
|
|
115
41
|
'can-get-permission-contracts-for-org',
|
|
116
42
|
'can-list-permission-contracts-for-org',
|
|
@@ -119,16 +45,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
119
45
|
'can-save-permissions-globally',
|
|
120
46
|
'can-load-others-permissions'
|
|
121
47
|
];
|
|
122
|
-
'chat-bot-contract': [
|
|
123
|
-
'can-register-chat-bots'
|
|
124
|
-
];
|
|
125
|
-
'chatbot-contract': [
|
|
126
|
-
'can-register-chatbots'
|
|
127
|
-
];
|
|
128
|
-
'feed-contract': [
|
|
129
|
-
'can-see-other-persons-feed',
|
|
130
|
-
'can-subscribe-to-feed-updates'
|
|
131
|
-
];
|
|
132
48
|
'people-contract': [
|
|
133
49
|
'can-create-person',
|
|
134
50
|
'can-list-people-permission-id',
|
|
@@ -141,6 +57,19 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
141
57
|
'can-listen-to-did-update',
|
|
142
58
|
'can-get-other-person'
|
|
143
59
|
];
|
|
60
|
+
'roles-contract': [
|
|
61
|
+
'can-create-role',
|
|
62
|
+
'can-update-role',
|
|
63
|
+
'can-delete-role',
|
|
64
|
+
'can-view-private-roles-at-own-org',
|
|
65
|
+
'can-view-persons-roles'
|
|
66
|
+
];
|
|
67
|
+
'skills-contract': [
|
|
68
|
+
'can-install-skills',
|
|
69
|
+
'can-uninstall-skills',
|
|
70
|
+
'can-view-marketplace',
|
|
71
|
+
'can-check-if-skill-is-installed'
|
|
72
|
+
];
|
|
144
73
|
}
|
|
145
74
|
}
|
|
146
75
|
export interface PermissionContractMap {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sprucelabs/mercury-core-events",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.58",
|
|
4
4
|
"description": "Events Mercury provides out of the box.",
|
|
5
5
|
"skill": {
|
|
6
6
|
"namespace": "mercury-core-events",
|
|
@@ -81,10 +81,10 @@
|
|
|
81
81
|
"typescript": "^5.2.2"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@sprucelabs/mercury-types": "^46.0.
|
|
84
|
+
"@sprucelabs/mercury-types": "^46.0.47",
|
|
85
85
|
"@sprucelabs/schema": "^29.0.41",
|
|
86
86
|
"@sprucelabs/spruce-core-schemas": "^39.0.55",
|
|
87
|
-
"@sprucelabs/spruce-event-utils": "^38.0.
|
|
87
|
+
"@sprucelabs/spruce-event-utils": "^38.0.55"
|
|
88
88
|
},
|
|
89
89
|
"jest": {
|
|
90
90
|
"testRunner": "jest-circus/runner",
|