@sprucelabs/mercury-core-events 15.0.123 → 15.0.124
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.
- package/build/.spruce/events/events.contract.d.ts +4 -4
- package/build/.spruce/events/mercury/addRole.v2020_12_25.contract.js +1 -1
- package/build/.spruce/events/mercury/didMessage.v2020_12_25.contract.d.ts +2 -2
- package/build/.spruce/events/mercury/didMessage.v2020_12_25.contract.js +2 -2
- package/build/.spruce/events/mercury/didSignup.v2020_12_25.contract.d.ts +1 -1
- package/build/.spruce/events/mercury/didSignup.v2020_12_25.contract.js +1 -1
- package/build/.spruce/events/mercury/didUpdatePerson.v2020_12_25.contract.d.ts +1 -1
- package/build/.spruce/events/mercury/didUpdatePerson.v2020_12_25.contract.js +1 -1
- package/build/.spruce/events/mercury/removeRole.v2020_12_25.contract.js +1 -1
- package/build/.spruce/permissions/permissions.types.d.ts +19 -81
- package/build/.spruce/settings.json +4 -0
- package/build/esm/.spruce/events/events.contract.d.ts +4 -4
- package/build/esm/.spruce/events/mercury/addRole.v2020_12_25.contract.js +1 -1
- package/build/esm/.spruce/events/mercury/didMessage.v2020_12_25.contract.d.ts +2 -2
- package/build/esm/.spruce/events/mercury/didMessage.v2020_12_25.contract.js +2 -2
- package/build/esm/.spruce/events/mercury/didSignup.v2020_12_25.contract.d.ts +1 -1
- package/build/esm/.spruce/events/mercury/didSignup.v2020_12_25.contract.js +1 -1
- package/build/esm/.spruce/events/mercury/didUpdatePerson.v2020_12_25.contract.d.ts +1 -1
- package/build/esm/.spruce/events/mercury/didUpdatePerson.v2020_12_25.contract.js +1 -1
- package/build/esm/.spruce/events/mercury/removeRole.v2020_12_25.contract.js +1 -1
- package/build/esm/.spruce/permissions/permissions.types.d.ts +19 -81
- package/package.json +1 -1
|
@@ -196,11 +196,11 @@ declare const _default: ({
|
|
|
196
196
|
eventSignatures: {
|
|
197
197
|
'did-message::v2020_12_25': {
|
|
198
198
|
emitPermissions: {
|
|
199
|
-
contractId: "
|
|
199
|
+
contractId: "messaging-contract";
|
|
200
200
|
permissionIdsAny: "can-emit-did-message-event"[];
|
|
201
201
|
};
|
|
202
202
|
listenPermissions: {
|
|
203
|
-
contractId: "
|
|
203
|
+
contractId: "messaging-contract";
|
|
204
204
|
permissionIdsAny: "can-listen-to-did-message-event"[];
|
|
205
205
|
};
|
|
206
206
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitTargetAndPayloadSchema;
|
|
@@ -212,7 +212,7 @@ declare const _default: ({
|
|
|
212
212
|
'did-signup::v2020_12_25': {
|
|
213
213
|
isGlobal: true;
|
|
214
214
|
listenPermissions: {
|
|
215
|
-
contractId: "
|
|
215
|
+
contractId: "people-contract";
|
|
216
216
|
permissionIdsAny: "can-listen-to-did-signup"[];
|
|
217
217
|
};
|
|
218
218
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitTargetAndPayloadSchema;
|
|
@@ -233,7 +233,7 @@ declare const _default: ({
|
|
|
233
233
|
'did-update-person::v2020_12_25': {
|
|
234
234
|
isGlobal: true;
|
|
235
235
|
listenPermissions: {
|
|
236
|
-
contractId: "
|
|
236
|
+
contractId: "people-contract";
|
|
237
237
|
permissionIdsAny: "can-listen-to-did-update"[];
|
|
238
238
|
};
|
|
239
239
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitTargetAndPayloadSchema;
|
|
@@ -14,7 +14,7 @@ const addRoleEventContract = (0, mercury_types_1.buildEventContract)({
|
|
|
14
14
|
emitPayloadSchema: addRoleEmitTargetAndPayload_schema_1.default,
|
|
15
15
|
responsePayloadSchema: addRoleResponsePayload_schema_1.default,
|
|
16
16
|
emitPermissionContract: (0, mercury_types_2.buildPermissionContract)({
|
|
17
|
-
id: 'hiring-and-promoting',
|
|
17
|
+
id: 'hiring-and-promoting-contract',
|
|
18
18
|
name: 'Hiring and promoting contract',
|
|
19
19
|
description: 'Various permissions related to emitting hiring and promoting people at organizations and locations.',
|
|
20
20
|
requireAllPermissions: false,
|
|
@@ -3,11 +3,11 @@ declare const didMessageEventContract: {
|
|
|
3
3
|
eventSignatures: {
|
|
4
4
|
'did-message::v2020_12_25': {
|
|
5
5
|
emitPermissions: {
|
|
6
|
-
contractId: "
|
|
6
|
+
contractId: "messaging-contract";
|
|
7
7
|
permissionIdsAny: "can-emit-did-message-event"[];
|
|
8
8
|
};
|
|
9
9
|
listenPermissions: {
|
|
10
|
-
contractId: "
|
|
10
|
+
contractId: "messaging-contract";
|
|
11
11
|
permissionIdsAny: "can-listen-to-did-message-event"[];
|
|
12
12
|
};
|
|
13
13
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitTargetAndPayloadSchema;
|
|
@@ -11,11 +11,11 @@ const didMessageEventContract = (0, mercury_types_1.buildEventContract)({
|
|
|
11
11
|
eventSignatures: {
|
|
12
12
|
'did-message::v2020_12_25': {
|
|
13
13
|
emitPermissions: {
|
|
14
|
-
contractId: '
|
|
14
|
+
contractId: 'messaging-contract',
|
|
15
15
|
permissionIdsAny: ['can-emit-did-message-event'],
|
|
16
16
|
},
|
|
17
17
|
listenPermissions: {
|
|
18
|
-
contractId: '
|
|
18
|
+
contractId: 'messaging-contract',
|
|
19
19
|
permissionIdsAny: ['can-listen-to-did-message-event'],
|
|
20
20
|
},
|
|
21
21
|
emitPayloadSchema: didMessageEmitTargetAndPayload_schema_1.default,
|
|
@@ -4,7 +4,7 @@ declare const didSignupEventContract: {
|
|
|
4
4
|
'did-signup::v2020_12_25': {
|
|
5
5
|
isGlobal: true;
|
|
6
6
|
listenPermissions: {
|
|
7
|
-
contractId: "
|
|
7
|
+
contractId: "people-contract";
|
|
8
8
|
permissionIdsAny: "can-listen-to-did-signup"[];
|
|
9
9
|
};
|
|
10
10
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitTargetAndPayloadSchema;
|
|
@@ -11,7 +11,7 @@ const didSignupEventContract = (0, mercury_types_1.buildEventContract)({
|
|
|
11
11
|
'did-signup::v2020_12_25': {
|
|
12
12
|
isGlobal: true,
|
|
13
13
|
listenPermissions: {
|
|
14
|
-
contractId: '
|
|
14
|
+
contractId: 'people-contract',
|
|
15
15
|
permissionIdsAny: ['can-listen-to-did-signup'],
|
|
16
16
|
},
|
|
17
17
|
emitPayloadSchema: didSignupEmitTargetAndPayload_schema_1.default,
|
|
@@ -4,7 +4,7 @@ declare const didUpdatePersonEventContract: {
|
|
|
4
4
|
'did-update-person::v2020_12_25': {
|
|
5
5
|
isGlobal: true;
|
|
6
6
|
listenPermissions: {
|
|
7
|
-
contractId: "
|
|
7
|
+
contractId: "people-contract";
|
|
8
8
|
permissionIdsAny: "can-listen-to-did-update"[];
|
|
9
9
|
};
|
|
10
10
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitTargetAndPayloadSchema;
|
|
@@ -11,7 +11,7 @@ const didUpdatePersonEventContract = (0, mercury_types_1.buildEventContract)({
|
|
|
11
11
|
'did-update-person::v2020_12_25': {
|
|
12
12
|
isGlobal: true,
|
|
13
13
|
listenPermissions: {
|
|
14
|
-
contractId: '
|
|
14
|
+
contractId: 'people-contract',
|
|
15
15
|
permissionIdsAny: ['can-listen-to-did-update'],
|
|
16
16
|
},
|
|
17
17
|
emitPayloadSchema: didUpdatePersonEmitTargetAndPayload_schema_1.default,
|
|
@@ -14,7 +14,7 @@ const removeRoleEventContract = (0, mercury_types_1.buildEventContract)({
|
|
|
14
14
|
emitPayloadSchema: removeRoleEmitTargetAndPayload_schema_1.default,
|
|
15
15
|
responsePayloadSchema: removeRoleResponsePayload_schema_1.default,
|
|
16
16
|
emitPermissionContract: (0, mercury_types_2.buildPermissionContract)({
|
|
17
|
-
id: 'hiring-and-promoting',
|
|
17
|
+
id: 'hiring-and-promoting-contract',
|
|
18
18
|
name: 'Hiring and promoting contract',
|
|
19
19
|
description: 'Various permissions related to emitting hiring and promoting people at organizations and locations.',
|
|
20
20
|
requireAllPermissions: false,
|
|
@@ -1,67 +1,19 @@
|
|
|
1
1
|
declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
2
2
|
interface PermissionContractMap {
|
|
3
|
-
'
|
|
4
|
-
'can-
|
|
5
|
-
'can-update-location',
|
|
6
|
-
'can-delete-location',
|
|
7
|
-
'can-view-private-locations-at-own-org'
|
|
8
|
-
];
|
|
9
|
-
'can-crud-organization-profile-contract': [
|
|
10
|
-
'can-update-organization-profile',
|
|
11
|
-
'can-delete-organization',
|
|
12
|
-
'can-view-private-organizations'
|
|
13
|
-
];
|
|
14
|
-
'can-crud-roles-contract': [
|
|
15
|
-
'can-create-role',
|
|
16
|
-
'can-update-role',
|
|
17
|
-
'can-delete-role',
|
|
18
|
-
'can-view-private-roles-at-own-org',
|
|
19
|
-
'can-view-persons-roles'
|
|
20
|
-
];
|
|
21
|
-
'can-crus-people-contract': [
|
|
22
|
-
'can-create-person',
|
|
23
|
-
'can-list-people-permission-id',
|
|
24
|
-
'can-scramble-other-person',
|
|
25
|
-
'can-get-anonymous-person',
|
|
26
|
-
'can-get-person-private-fields',
|
|
27
|
-
'can-get-person-by-phone',
|
|
28
|
-
'can-listen-to-did-signup',
|
|
29
|
-
'can-listen-to-did-update'
|
|
3
|
+
'events-contract': [
|
|
4
|
+
'can-register-global-events'
|
|
30
5
|
];
|
|
31
6
|
'feed-contract': [
|
|
32
7
|
'can-see-other-persons-feed',
|
|
33
8
|
'can-subscribe-to-feed-updates',
|
|
34
9
|
'can-be-sprucebot'
|
|
35
10
|
];
|
|
36
|
-
'hiring-and-promoting': [
|
|
11
|
+
'hiring-and-promoting-contract': [
|
|
37
12
|
'can-hire-person',
|
|
38
13
|
'can-fire-person',
|
|
39
14
|
'hire-and-promote-when-not-installed'
|
|
40
15
|
];
|
|
41
|
-
'
|
|
42
|
-
'can-install-skills',
|
|
43
|
-
'can-uninstall-skills',
|
|
44
|
-
'can-view-marketplace'
|
|
45
|
-
];
|
|
46
|
-
'emit-messaging': [
|
|
47
|
-
'can-emit-did-message-event',
|
|
48
|
-
'can-listen-to-did-message-event',
|
|
49
|
-
'can-message-others'
|
|
50
|
-
];
|
|
51
|
-
'permission-contracts-contract-id': [
|
|
52
|
-
'can-get-permission-contracts-for-org',
|
|
53
|
-
'can-list-permission-contracts-for-org'
|
|
54
|
-
];
|
|
55
|
-
'can-register-events-contract': [
|
|
56
|
-
'can-register-global-events'
|
|
57
|
-
];
|
|
58
|
-
'can-check-if-skill-is-installed-contract-id': [
|
|
59
|
-
'can-check-if-skill-is-installed'
|
|
60
|
-
];
|
|
61
|
-
'can-upsert-permission-contract-contract-id': [
|
|
62
|
-
'can-upsert-permission-contract-for-org'
|
|
63
|
-
];
|
|
64
|
-
'can-register-listener': [
|
|
16
|
+
'listeners-contract': [
|
|
65
17
|
'can-register-global-listeners'
|
|
66
18
|
];
|
|
67
19
|
'locations-contract': [
|
|
@@ -70,18 +22,16 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
70
22
|
'can-delete-location',
|
|
71
23
|
'can-view-private-locations-at-own-org'
|
|
72
24
|
];
|
|
25
|
+
'messaging-contract': [
|
|
26
|
+
'can-emit-did-message-event',
|
|
27
|
+
'can-listen-to-did-message-event',
|
|
28
|
+
'can-message-others'
|
|
29
|
+
];
|
|
73
30
|
'organizations-contract': [
|
|
74
31
|
'can-update-organization-profile',
|
|
75
32
|
'can-delete-organization',
|
|
76
33
|
'can-view-private-organizations'
|
|
77
34
|
];
|
|
78
|
-
'roles-contract': [
|
|
79
|
-
'can-create-role',
|
|
80
|
-
'can-update-role',
|
|
81
|
-
'can-delete-role',
|
|
82
|
-
'can-view-private-roles-at-own-org',
|
|
83
|
-
'can-view-persons-roles'
|
|
84
|
-
];
|
|
85
35
|
'people-contract': [
|
|
86
36
|
'can-create-person',
|
|
87
37
|
'can-list-people-permission-id',
|
|
@@ -92,16 +42,17 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
92
42
|
'can-listen-to-did-signup',
|
|
93
43
|
'can-listen-to-did-update'
|
|
94
44
|
];
|
|
95
|
-
'
|
|
96
|
-
'can-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
'can-hire-person',
|
|
100
|
-
'can-fire-person',
|
|
101
|
-
'hire-and-promote-when-not-installed'
|
|
45
|
+
'permission-contract': [
|
|
46
|
+
'can-get-permission-contracts-for-org',
|
|
47
|
+
'can-list-permission-contracts-for-org',
|
|
48
|
+
'can-upsert-permission-contract-for-org'
|
|
102
49
|
];
|
|
103
|
-
'
|
|
104
|
-
'can-
|
|
50
|
+
'roles-contract': [
|
|
51
|
+
'can-create-role',
|
|
52
|
+
'can-update-role',
|
|
53
|
+
'can-delete-role',
|
|
54
|
+
'can-view-private-roles-at-own-org',
|
|
55
|
+
'can-view-persons-roles'
|
|
105
56
|
];
|
|
106
57
|
'skills-contract': [
|
|
107
58
|
'can-install-skills',
|
|
@@ -109,19 +60,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
109
60
|
'can-view-marketplace',
|
|
110
61
|
'can-check-if-skill-is-installed'
|
|
111
62
|
];
|
|
112
|
-
'messaging-contract': [
|
|
113
|
-
'can-emit-did-message-event',
|
|
114
|
-
'can-listen-to-did-message-event',
|
|
115
|
-
'can-message-others'
|
|
116
|
-
];
|
|
117
|
-
'permission-contracts': [
|
|
118
|
-
'can-get-permission-contracts-for-org',
|
|
119
|
-
'can-list-permission-contracts-for-org',
|
|
120
|
-
'can-upsert-permission-contract-for-org'
|
|
121
|
-
];
|
|
122
|
-
'permissions-contract': [
|
|
123
|
-
'can-upsert-permission-contract-for-org'
|
|
124
|
-
];
|
|
125
63
|
}
|
|
126
64
|
}
|
|
127
65
|
export interface PermissionContractMap {
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
],
|
|
14
14
|
"events": {
|
|
15
15
|
"lastSync": {
|
|
16
|
+
"contractDestinationDir": "#spruce/events",
|
|
17
|
+
"schemaTypesLookupDir": "#spruce/schemas",
|
|
18
|
+
"skillEventContractTypesFile": "@sprucelabs/mercury-types/build/types/mercury.types",
|
|
19
|
+
"eventBuilderFile": "@sprucelabs/mercury-types",
|
|
16
20
|
"shouldSyncOnlyCoreEvents": "true"
|
|
17
21
|
}
|
|
18
22
|
}
|
|
@@ -196,11 +196,11 @@ declare const _default: ({
|
|
|
196
196
|
eventSignatures: {
|
|
197
197
|
'did-message::v2020_12_25': {
|
|
198
198
|
emitPermissions: {
|
|
199
|
-
contractId: "
|
|
199
|
+
contractId: "messaging-contract";
|
|
200
200
|
permissionIdsAny: "can-emit-did-message-event"[];
|
|
201
201
|
};
|
|
202
202
|
listenPermissions: {
|
|
203
|
-
contractId: "
|
|
203
|
+
contractId: "messaging-contract";
|
|
204
204
|
permissionIdsAny: "can-listen-to-did-message-event"[];
|
|
205
205
|
};
|
|
206
206
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitTargetAndPayloadSchema;
|
|
@@ -212,7 +212,7 @@ declare const _default: ({
|
|
|
212
212
|
'did-signup::v2020_12_25': {
|
|
213
213
|
isGlobal: true;
|
|
214
214
|
listenPermissions: {
|
|
215
|
-
contractId: "
|
|
215
|
+
contractId: "people-contract";
|
|
216
216
|
permissionIdsAny: "can-listen-to-did-signup"[];
|
|
217
217
|
};
|
|
218
218
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitTargetAndPayloadSchema;
|
|
@@ -233,7 +233,7 @@ declare const _default: ({
|
|
|
233
233
|
'did-update-person::v2020_12_25': {
|
|
234
234
|
isGlobal: true;
|
|
235
235
|
listenPermissions: {
|
|
236
|
-
contractId: "
|
|
236
|
+
contractId: "people-contract";
|
|
237
237
|
permissionIdsAny: "can-listen-to-did-update"[];
|
|
238
238
|
};
|
|
239
239
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitTargetAndPayloadSchema;
|
|
@@ -9,7 +9,7 @@ const addRoleEventContract = buildEventContract({
|
|
|
9
9
|
emitPayloadSchema: addRoleEmitTargetAndPayloadSchema,
|
|
10
10
|
responsePayloadSchema: addRoleResponsePayloadSchema,
|
|
11
11
|
emitPermissionContract: buildPermissionContract({
|
|
12
|
-
id: 'hiring-and-promoting',
|
|
12
|
+
id: 'hiring-and-promoting-contract',
|
|
13
13
|
name: 'Hiring and promoting contract',
|
|
14
14
|
description: 'Various permissions related to emitting hiring and promoting people at organizations and locations.',
|
|
15
15
|
requireAllPermissions: false,
|
|
@@ -3,11 +3,11 @@ declare const didMessageEventContract: {
|
|
|
3
3
|
eventSignatures: {
|
|
4
4
|
'did-message::v2020_12_25': {
|
|
5
5
|
emitPermissions: {
|
|
6
|
-
contractId: "
|
|
6
|
+
contractId: "messaging-contract";
|
|
7
7
|
permissionIdsAny: "can-emit-did-message-event"[];
|
|
8
8
|
};
|
|
9
9
|
listenPermissions: {
|
|
10
|
-
contractId: "
|
|
10
|
+
contractId: "messaging-contract";
|
|
11
11
|
permissionIdsAny: "can-listen-to-did-message-event"[];
|
|
12
12
|
};
|
|
13
13
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidMessageEmitTargetAndPayloadSchema;
|
|
@@ -6,11 +6,11 @@ const didMessageEventContract = buildEventContract({
|
|
|
6
6
|
eventSignatures: {
|
|
7
7
|
'did-message::v2020_12_25': {
|
|
8
8
|
emitPermissions: {
|
|
9
|
-
contractId: '
|
|
9
|
+
contractId: 'messaging-contract',
|
|
10
10
|
permissionIdsAny: ['can-emit-did-message-event'],
|
|
11
11
|
},
|
|
12
12
|
listenPermissions: {
|
|
13
|
-
contractId: '
|
|
13
|
+
contractId: 'messaging-contract',
|
|
14
14
|
permissionIdsAny: ['can-listen-to-did-message-event'],
|
|
15
15
|
},
|
|
16
16
|
emitPayloadSchema: didMessageEmitTargetAndPayloadSchema,
|
|
@@ -4,7 +4,7 @@ declare const didSignupEventContract: {
|
|
|
4
4
|
'did-signup::v2020_12_25': {
|
|
5
5
|
isGlobal: true;
|
|
6
6
|
listenPermissions: {
|
|
7
|
-
contractId: "
|
|
7
|
+
contractId: "people-contract";
|
|
8
8
|
permissionIdsAny: "can-listen-to-did-signup"[];
|
|
9
9
|
};
|
|
10
10
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitTargetAndPayloadSchema;
|
|
@@ -6,7 +6,7 @@ const didSignupEventContract = buildEventContract({
|
|
|
6
6
|
'did-signup::v2020_12_25': {
|
|
7
7
|
isGlobal: true,
|
|
8
8
|
listenPermissions: {
|
|
9
|
-
contractId: '
|
|
9
|
+
contractId: 'people-contract',
|
|
10
10
|
permissionIdsAny: ['can-listen-to-did-signup'],
|
|
11
11
|
},
|
|
12
12
|
emitPayloadSchema: didSignupEmitTargetAndPayloadSchema,
|
|
@@ -4,7 +4,7 @@ declare const didUpdatePersonEventContract: {
|
|
|
4
4
|
'did-update-person::v2020_12_25': {
|
|
5
5
|
isGlobal: true;
|
|
6
6
|
listenPermissions: {
|
|
7
|
-
contractId: "
|
|
7
|
+
contractId: "people-contract";
|
|
8
8
|
permissionIdsAny: "can-listen-to-did-update"[];
|
|
9
9
|
};
|
|
10
10
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidUpdatePersonEmitTargetAndPayloadSchema;
|
|
@@ -6,7 +6,7 @@ const didUpdatePersonEventContract = buildEventContract({
|
|
|
6
6
|
'did-update-person::v2020_12_25': {
|
|
7
7
|
isGlobal: true,
|
|
8
8
|
listenPermissions: {
|
|
9
|
-
contractId: '
|
|
9
|
+
contractId: 'people-contract',
|
|
10
10
|
permissionIdsAny: ['can-listen-to-did-update'],
|
|
11
11
|
},
|
|
12
12
|
emitPayloadSchema: didUpdatePersonEmitTargetAndPayloadSchema,
|
|
@@ -9,7 +9,7 @@ const removeRoleEventContract = buildEventContract({
|
|
|
9
9
|
emitPayloadSchema: removeRoleEmitTargetAndPayloadSchema,
|
|
10
10
|
responsePayloadSchema: removeRoleResponsePayloadSchema,
|
|
11
11
|
emitPermissionContract: buildPermissionContract({
|
|
12
|
-
id: 'hiring-and-promoting',
|
|
12
|
+
id: 'hiring-and-promoting-contract',
|
|
13
13
|
name: 'Hiring and promoting contract',
|
|
14
14
|
description: 'Various permissions related to emitting hiring and promoting people at organizations and locations.',
|
|
15
15
|
requireAllPermissions: false,
|
|
@@ -1,67 +1,19 @@
|
|
|
1
1
|
declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
2
2
|
interface PermissionContractMap {
|
|
3
|
-
'
|
|
4
|
-
'can-
|
|
5
|
-
'can-update-location',
|
|
6
|
-
'can-delete-location',
|
|
7
|
-
'can-view-private-locations-at-own-org'
|
|
8
|
-
];
|
|
9
|
-
'can-crud-organization-profile-contract': [
|
|
10
|
-
'can-update-organization-profile',
|
|
11
|
-
'can-delete-organization',
|
|
12
|
-
'can-view-private-organizations'
|
|
13
|
-
];
|
|
14
|
-
'can-crud-roles-contract': [
|
|
15
|
-
'can-create-role',
|
|
16
|
-
'can-update-role',
|
|
17
|
-
'can-delete-role',
|
|
18
|
-
'can-view-private-roles-at-own-org',
|
|
19
|
-
'can-view-persons-roles'
|
|
20
|
-
];
|
|
21
|
-
'can-crus-people-contract': [
|
|
22
|
-
'can-create-person',
|
|
23
|
-
'can-list-people-permission-id',
|
|
24
|
-
'can-scramble-other-person',
|
|
25
|
-
'can-get-anonymous-person',
|
|
26
|
-
'can-get-person-private-fields',
|
|
27
|
-
'can-get-person-by-phone',
|
|
28
|
-
'can-listen-to-did-signup',
|
|
29
|
-
'can-listen-to-did-update'
|
|
3
|
+
'events-contract': [
|
|
4
|
+
'can-register-global-events'
|
|
30
5
|
];
|
|
31
6
|
'feed-contract': [
|
|
32
7
|
'can-see-other-persons-feed',
|
|
33
8
|
'can-subscribe-to-feed-updates',
|
|
34
9
|
'can-be-sprucebot'
|
|
35
10
|
];
|
|
36
|
-
'hiring-and-promoting': [
|
|
11
|
+
'hiring-and-promoting-contract': [
|
|
37
12
|
'can-hire-person',
|
|
38
13
|
'can-fire-person',
|
|
39
14
|
'hire-and-promote-when-not-installed'
|
|
40
15
|
];
|
|
41
|
-
'
|
|
42
|
-
'can-install-skills',
|
|
43
|
-
'can-uninstall-skills',
|
|
44
|
-
'can-view-marketplace'
|
|
45
|
-
];
|
|
46
|
-
'emit-messaging': [
|
|
47
|
-
'can-emit-did-message-event',
|
|
48
|
-
'can-listen-to-did-message-event',
|
|
49
|
-
'can-message-others'
|
|
50
|
-
];
|
|
51
|
-
'permission-contracts-contract-id': [
|
|
52
|
-
'can-get-permission-contracts-for-org',
|
|
53
|
-
'can-list-permission-contracts-for-org'
|
|
54
|
-
];
|
|
55
|
-
'can-register-events-contract': [
|
|
56
|
-
'can-register-global-events'
|
|
57
|
-
];
|
|
58
|
-
'can-check-if-skill-is-installed-contract-id': [
|
|
59
|
-
'can-check-if-skill-is-installed'
|
|
60
|
-
];
|
|
61
|
-
'can-upsert-permission-contract-contract-id': [
|
|
62
|
-
'can-upsert-permission-contract-for-org'
|
|
63
|
-
];
|
|
64
|
-
'can-register-listener': [
|
|
16
|
+
'listeners-contract': [
|
|
65
17
|
'can-register-global-listeners'
|
|
66
18
|
];
|
|
67
19
|
'locations-contract': [
|
|
@@ -70,18 +22,16 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
70
22
|
'can-delete-location',
|
|
71
23
|
'can-view-private-locations-at-own-org'
|
|
72
24
|
];
|
|
25
|
+
'messaging-contract': [
|
|
26
|
+
'can-emit-did-message-event',
|
|
27
|
+
'can-listen-to-did-message-event',
|
|
28
|
+
'can-message-others'
|
|
29
|
+
];
|
|
73
30
|
'organizations-contract': [
|
|
74
31
|
'can-update-organization-profile',
|
|
75
32
|
'can-delete-organization',
|
|
76
33
|
'can-view-private-organizations'
|
|
77
34
|
];
|
|
78
|
-
'roles-contract': [
|
|
79
|
-
'can-create-role',
|
|
80
|
-
'can-update-role',
|
|
81
|
-
'can-delete-role',
|
|
82
|
-
'can-view-private-roles-at-own-org',
|
|
83
|
-
'can-view-persons-roles'
|
|
84
|
-
];
|
|
85
35
|
'people-contract': [
|
|
86
36
|
'can-create-person',
|
|
87
37
|
'can-list-people-permission-id',
|
|
@@ -92,16 +42,17 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
92
42
|
'can-listen-to-did-signup',
|
|
93
43
|
'can-listen-to-did-update'
|
|
94
44
|
];
|
|
95
|
-
'
|
|
96
|
-
'can-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
'can-hire-person',
|
|
100
|
-
'can-fire-person',
|
|
101
|
-
'hire-and-promote-when-not-installed'
|
|
45
|
+
'permission-contract': [
|
|
46
|
+
'can-get-permission-contracts-for-org',
|
|
47
|
+
'can-list-permission-contracts-for-org',
|
|
48
|
+
'can-upsert-permission-contract-for-org'
|
|
102
49
|
];
|
|
103
|
-
'
|
|
104
|
-
'can-
|
|
50
|
+
'roles-contract': [
|
|
51
|
+
'can-create-role',
|
|
52
|
+
'can-update-role',
|
|
53
|
+
'can-delete-role',
|
|
54
|
+
'can-view-private-roles-at-own-org',
|
|
55
|
+
'can-view-persons-roles'
|
|
105
56
|
];
|
|
106
57
|
'skills-contract': [
|
|
107
58
|
'can-install-skills',
|
|
@@ -109,19 +60,6 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
109
60
|
'can-view-marketplace',
|
|
110
61
|
'can-check-if-skill-is-installed'
|
|
111
62
|
];
|
|
112
|
-
'messaging-contract': [
|
|
113
|
-
'can-emit-did-message-event',
|
|
114
|
-
'can-listen-to-did-message-event',
|
|
115
|
-
'can-message-others'
|
|
116
|
-
];
|
|
117
|
-
'permission-contracts': [
|
|
118
|
-
'can-get-permission-contracts-for-org',
|
|
119
|
-
'can-list-permission-contracts-for-org',
|
|
120
|
-
'can-upsert-permission-contract-for-org'
|
|
121
|
-
];
|
|
122
|
-
'permissions-contract': [
|
|
123
|
-
'can-upsert-permission-contract-for-org'
|
|
124
|
-
];
|
|
125
63
|
}
|
|
126
64
|
}
|
|
127
65
|
export interface PermissionContractMap {
|