@sprucelabs/mercury-core-events 22.0.55 → 22.0.57
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,61 +1,96 @@
|
|
|
1
1
|
import '@sprucelabs/mercury-types';
|
|
2
2
|
declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
3
3
|
interface PermissionContractMap {
|
|
4
|
-
'
|
|
5
|
-
'can-
|
|
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'
|
|
6
9
|
];
|
|
7
|
-
'
|
|
8
|
-
'can-
|
|
10
|
+
'can-crud-organization-profile-contract': [
|
|
11
|
+
'can-update-organization-profile',
|
|
12
|
+
'can-delete-organization',
|
|
13
|
+
'can-view-private-organizations'
|
|
9
14
|
];
|
|
10
|
-
'
|
|
11
|
-
'can-
|
|
12
|
-
'can-
|
|
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'
|
|
13
21
|
];
|
|
14
|
-
'
|
|
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': [
|
|
15
29
|
'can-hire-person',
|
|
16
30
|
'can-fire-person',
|
|
17
31
|
'hire-and-promote-when-not-installed'
|
|
18
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
|
+
];
|
|
19
41
|
'listeners-contract': [
|
|
20
42
|
'can-register-global-listeners'
|
|
21
43
|
];
|
|
22
|
-
'
|
|
23
|
-
'can-
|
|
24
|
-
'can-update-location',
|
|
25
|
-
'can-delete-location',
|
|
26
|
-
'can-view-private-locations-at-own-org'
|
|
44
|
+
'events-contract': [
|
|
45
|
+
'can-register-global-events'
|
|
27
46
|
];
|
|
28
|
-
'
|
|
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
|
+
'emit-messaging': [
|
|
29
61
|
'can-emit-did-message-event',
|
|
30
62
|
'can-listen-to-did-message-event',
|
|
31
|
-
'can-message-others'
|
|
32
|
-
'can-message-as-sprucebot'
|
|
63
|
+
'can-message-others'
|
|
33
64
|
];
|
|
34
|
-
'
|
|
35
|
-
'can-update-organization-profile',
|
|
36
|
-
'can-delete-organization',
|
|
37
|
-
'can-view-private-organizations',
|
|
38
|
-
'can-list-orgs-for-other-people'
|
|
39
|
-
];
|
|
40
|
-
'people-contract': [
|
|
65
|
+
'can-crus-people-contract': [
|
|
41
66
|
'can-create-person',
|
|
42
67
|
'can-list-people-permission-id',
|
|
43
68
|
'can-scramble-other-person',
|
|
44
|
-
'can-edit-other-people',
|
|
45
69
|
'can-get-anonymous-person',
|
|
46
70
|
'can-get-person-private-fields',
|
|
47
71
|
'can-get-person-by-phone',
|
|
48
72
|
'can-listen-to-did-signup',
|
|
49
|
-
'can-listen-to-did-update'
|
|
50
|
-
'can-get-other-person'
|
|
73
|
+
'can-listen-to-did-update'
|
|
51
74
|
];
|
|
52
|
-
'
|
|
53
|
-
'can-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
'can-
|
|
57
|
-
'can-
|
|
58
|
-
'
|
|
75
|
+
'can-register-listener': [
|
|
76
|
+
'can-register-global-listeners'
|
|
77
|
+
];
|
|
78
|
+
'hiring-and-promoting-contract': [
|
|
79
|
+
'can-hire-person',
|
|
80
|
+
'can-fire-person',
|
|
81
|
+
'hire-and-promote-when-not-installed'
|
|
82
|
+
];
|
|
83
|
+
'locations-contract': [
|
|
84
|
+
'can-create-location',
|
|
85
|
+
'can-update-location',
|
|
86
|
+
'can-delete-location',
|
|
87
|
+
'can-view-private-locations-at-own-org'
|
|
88
|
+
];
|
|
89
|
+
'organizations-contract': [
|
|
90
|
+
'can-update-organization-profile',
|
|
91
|
+
'can-delete-organization',
|
|
92
|
+
'can-view-private-organizations',
|
|
93
|
+
'can-list-orgs-for-other-people'
|
|
59
94
|
];
|
|
60
95
|
'roles-contract': [
|
|
61
96
|
'can-create-role',
|
|
@@ -70,6 +105,42 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
70
105
|
'can-view-marketplace',
|
|
71
106
|
'can-check-if-skill-is-installed'
|
|
72
107
|
];
|
|
108
|
+
'messaging-contract': [
|
|
109
|
+
'can-emit-did-message-event',
|
|
110
|
+
'can-listen-to-did-message-event',
|
|
111
|
+
'can-message-others',
|
|
112
|
+
'can-message-as-sprucebot'
|
|
113
|
+
];
|
|
114
|
+
'permission-contract': [
|
|
115
|
+
'can-get-permission-contracts-for-org',
|
|
116
|
+
'can-list-permission-contracts-for-org',
|
|
117
|
+
'can-upsert-permission-contract-for-org',
|
|
118
|
+
'can-list-permission-contracts-globally',
|
|
119
|
+
'can-save-permissions-globally',
|
|
120
|
+
'can-load-others-permissions'
|
|
121
|
+
];
|
|
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
|
+
'people-contract': [
|
|
133
|
+
'can-create-person',
|
|
134
|
+
'can-list-people-permission-id',
|
|
135
|
+
'can-scramble-other-person',
|
|
136
|
+
'can-edit-other-people',
|
|
137
|
+
'can-get-anonymous-person',
|
|
138
|
+
'can-get-person-private-fields',
|
|
139
|
+
'can-get-person-by-phone',
|
|
140
|
+
'can-listen-to-did-signup',
|
|
141
|
+
'can-listen-to-did-update',
|
|
142
|
+
'can-get-other-person'
|
|
143
|
+
];
|
|
73
144
|
}
|
|
74
145
|
}
|
|
75
146
|
export interface PermissionContractMap {
|
|
@@ -1,61 +1,96 @@
|
|
|
1
1
|
import '@sprucelabs/mercury-types';
|
|
2
2
|
declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
3
3
|
interface PermissionContractMap {
|
|
4
|
-
'
|
|
5
|
-
'can-
|
|
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'
|
|
6
9
|
];
|
|
7
|
-
'
|
|
8
|
-
'can-
|
|
10
|
+
'can-crud-organization-profile-contract': [
|
|
11
|
+
'can-update-organization-profile',
|
|
12
|
+
'can-delete-organization',
|
|
13
|
+
'can-view-private-organizations'
|
|
9
14
|
];
|
|
10
|
-
'
|
|
11
|
-
'can-
|
|
12
|
-
'can-
|
|
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'
|
|
13
21
|
];
|
|
14
|
-
'
|
|
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': [
|
|
15
29
|
'can-hire-person',
|
|
16
30
|
'can-fire-person',
|
|
17
31
|
'hire-and-promote-when-not-installed'
|
|
18
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
|
+
];
|
|
19
41
|
'listeners-contract': [
|
|
20
42
|
'can-register-global-listeners'
|
|
21
43
|
];
|
|
22
|
-
'
|
|
23
|
-
'can-
|
|
24
|
-
'can-update-location',
|
|
25
|
-
'can-delete-location',
|
|
26
|
-
'can-view-private-locations-at-own-org'
|
|
44
|
+
'events-contract': [
|
|
45
|
+
'can-register-global-events'
|
|
27
46
|
];
|
|
28
|
-
'
|
|
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
|
+
'emit-messaging': [
|
|
29
61
|
'can-emit-did-message-event',
|
|
30
62
|
'can-listen-to-did-message-event',
|
|
31
|
-
'can-message-others'
|
|
32
|
-
'can-message-as-sprucebot'
|
|
63
|
+
'can-message-others'
|
|
33
64
|
];
|
|
34
|
-
'
|
|
35
|
-
'can-update-organization-profile',
|
|
36
|
-
'can-delete-organization',
|
|
37
|
-
'can-view-private-organizations',
|
|
38
|
-
'can-list-orgs-for-other-people'
|
|
39
|
-
];
|
|
40
|
-
'people-contract': [
|
|
65
|
+
'can-crus-people-contract': [
|
|
41
66
|
'can-create-person',
|
|
42
67
|
'can-list-people-permission-id',
|
|
43
68
|
'can-scramble-other-person',
|
|
44
|
-
'can-edit-other-people',
|
|
45
69
|
'can-get-anonymous-person',
|
|
46
70
|
'can-get-person-private-fields',
|
|
47
71
|
'can-get-person-by-phone',
|
|
48
72
|
'can-listen-to-did-signup',
|
|
49
|
-
'can-listen-to-did-update'
|
|
50
|
-
'can-get-other-person'
|
|
73
|
+
'can-listen-to-did-update'
|
|
51
74
|
];
|
|
52
|
-
'
|
|
53
|
-
'can-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
'can-
|
|
57
|
-
'can-
|
|
58
|
-
'
|
|
75
|
+
'can-register-listener': [
|
|
76
|
+
'can-register-global-listeners'
|
|
77
|
+
];
|
|
78
|
+
'hiring-and-promoting-contract': [
|
|
79
|
+
'can-hire-person',
|
|
80
|
+
'can-fire-person',
|
|
81
|
+
'hire-and-promote-when-not-installed'
|
|
82
|
+
];
|
|
83
|
+
'locations-contract': [
|
|
84
|
+
'can-create-location',
|
|
85
|
+
'can-update-location',
|
|
86
|
+
'can-delete-location',
|
|
87
|
+
'can-view-private-locations-at-own-org'
|
|
88
|
+
];
|
|
89
|
+
'organizations-contract': [
|
|
90
|
+
'can-update-organization-profile',
|
|
91
|
+
'can-delete-organization',
|
|
92
|
+
'can-view-private-organizations',
|
|
93
|
+
'can-list-orgs-for-other-people'
|
|
59
94
|
];
|
|
60
95
|
'roles-contract': [
|
|
61
96
|
'can-create-role',
|
|
@@ -70,6 +105,42 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
70
105
|
'can-view-marketplace',
|
|
71
106
|
'can-check-if-skill-is-installed'
|
|
72
107
|
];
|
|
108
|
+
'messaging-contract': [
|
|
109
|
+
'can-emit-did-message-event',
|
|
110
|
+
'can-listen-to-did-message-event',
|
|
111
|
+
'can-message-others',
|
|
112
|
+
'can-message-as-sprucebot'
|
|
113
|
+
];
|
|
114
|
+
'permission-contract': [
|
|
115
|
+
'can-get-permission-contracts-for-org',
|
|
116
|
+
'can-list-permission-contracts-for-org',
|
|
117
|
+
'can-upsert-permission-contract-for-org',
|
|
118
|
+
'can-list-permission-contracts-globally',
|
|
119
|
+
'can-save-permissions-globally',
|
|
120
|
+
'can-load-others-permissions'
|
|
121
|
+
];
|
|
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
|
+
'people-contract': [
|
|
133
|
+
'can-create-person',
|
|
134
|
+
'can-list-people-permission-id',
|
|
135
|
+
'can-scramble-other-person',
|
|
136
|
+
'can-edit-other-people',
|
|
137
|
+
'can-get-anonymous-person',
|
|
138
|
+
'can-get-person-private-fields',
|
|
139
|
+
'can-get-person-by-phone',
|
|
140
|
+
'can-listen-to-did-signup',
|
|
141
|
+
'can-listen-to-did-update',
|
|
142
|
+
'can-get-other-person'
|
|
143
|
+
];
|
|
73
144
|
}
|
|
74
145
|
}
|
|
75
146
|
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.57",
|
|
4
4
|
"description": "Events Mercury provides out of the box.",
|
|
5
5
|
"skill": {
|
|
6
6
|
"namespace": "mercury-core-events",
|
|
@@ -62,29 +62,29 @@
|
|
|
62
62
|
"watch.tsc": "tsc -w"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@sprucelabs/esm-postbuild": "^5.0.
|
|
66
|
-
"@sprucelabs/jest-json-reporter": "^7.0.
|
|
67
|
-
"@sprucelabs/resolve-path-aliases": "^1.1.
|
|
65
|
+
"@sprucelabs/esm-postbuild": "^5.0.57",
|
|
66
|
+
"@sprucelabs/jest-json-reporter": "^7.0.86",
|
|
67
|
+
"@sprucelabs/resolve-path-aliases": "^1.1.241",
|
|
68
68
|
"@sprucelabs/semantic-release": "^4.0.8",
|
|
69
|
-
"@sprucelabs/test": "^8.0.
|
|
70
|
-
"@types/node": "^20.5.
|
|
69
|
+
"@sprucelabs/test": "^8.0.12",
|
|
70
|
+
"@types/node": "^20.5.7",
|
|
71
71
|
"chokidar-cli": "^3.0.0",
|
|
72
72
|
"concurrently": "^8.2.1",
|
|
73
|
-
"eslint": "^8.
|
|
74
|
-
"eslint-config-spruce": "^10.
|
|
73
|
+
"eslint": "^8.48.0",
|
|
74
|
+
"eslint-config-spruce": "^10.13.6",
|
|
75
75
|
"jest": "^29.6.4",
|
|
76
76
|
"jest-circus": "^29.6.4",
|
|
77
|
-
"prettier": "
|
|
77
|
+
"prettier": "^3.0.3",
|
|
78
78
|
"ts-node": "^10.9.1",
|
|
79
79
|
"tsc-watch": "^6.0.4",
|
|
80
80
|
"tsconfig-paths": "^4.2.0",
|
|
81
|
-
"typescript": "^5.
|
|
81
|
+
"typescript": "^5.2.2"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@sprucelabs/mercury-types": "^46.0.
|
|
85
|
-
"@sprucelabs/schema": "^29.0.
|
|
86
|
-
"@sprucelabs/spruce-core-schemas": "^39.0.
|
|
87
|
-
"@sprucelabs/spruce-event-utils": "^38.0.
|
|
84
|
+
"@sprucelabs/mercury-types": "^46.0.46",
|
|
85
|
+
"@sprucelabs/schema": "^29.0.41",
|
|
86
|
+
"@sprucelabs/spruce-core-schemas": "^39.0.55",
|
|
87
|
+
"@sprucelabs/spruce-event-utils": "^38.0.54"
|
|
88
88
|
},
|
|
89
89
|
"jest": {
|
|
90
90
|
"testRunner": "jest-circus/runner",
|