@sprucelabs/mercury-core-events 24.0.266 → 24.1.1
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 +12 -0
- package/build/.spruce/events/events.contract.js +2 -0
- package/build/.spruce/events/mercury/didUpdateAuthorizerStatus.v2020_12_25.contract.d.ts +14 -0
- package/build/.spruce/events/mercury/didUpdateAuthorizerStatus.v2020_12_25.contract.js +17 -0
- package/build/.spruce/permissions/permissions.types.d.ts +1 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/didJoinOrganizationEmitTarget.schema.js +0 -1
- package/build/.spruce/schemas/mercury/v2020_12_25/didJoinOrganizationEmitTargetAndPayload.schema.js +0 -1
- package/build/.spruce/schemas/mercury/v2020_12_25/didLeaveOrganizationEmitTarget.schema.js +0 -1
- package/build/.spruce/schemas/mercury/v2020_12_25/didLeaveOrganizationEmitTargetAndPayload.schema.js +0 -1
- package/build/.spruce/schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitPayload.schema.js +31 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitTarget.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitTarget.schema.js +23 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitTargetAndPayload.schema.js +36 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/list-person.schema.js +5 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/updateAuthorizerStatusPerson.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/updateAuthorizerStatusPerson.schema.js +25 -0
- package/build/.spruce/schemas/schemas.types.d.ts +430 -287
- package/build/esm/.spruce/events/events.contract.d.ts +12 -0
- package/build/esm/.spruce/events/events.contract.js +2 -0
- package/build/esm/.spruce/events/mercury/didUpdateAuthorizerStatus.v2020_12_25.contract.d.ts +14 -0
- package/build/esm/.spruce/events/mercury/didUpdateAuthorizerStatus.v2020_12_25.contract.js +12 -0
- package/build/esm/.spruce/permissions/permissions.types.d.ts +1 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/didJoinOrganizationEmitTarget.schema.js +0 -1
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/didJoinOrganizationEmitTargetAndPayload.schema.js +0 -1
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/didLeaveOrganizationEmitTarget.schema.js +0 -1
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/didLeaveOrganizationEmitTargetAndPayload.schema.js +0 -1
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitPayload.schema.js +26 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitTarget.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitTarget.schema.js +21 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitTargetAndPayload.schema.js +31 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/list-person.schema.js +5 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/updateAuthorizerStatusPerson.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/updateAuthorizerStatusPerson.schema.js +23 -0
- package/build/esm/.spruce/schemas/schemas.types.d.ts +430 -287
- package/package.json +11 -11
|
@@ -15,6 +15,7 @@ import { DidLeaveOrganizationEventContract as MercuryDidLeaveOrganizationEventCo
|
|
|
15
15
|
import { DidLoginEventContract as MercuryDidLoginEventContract_v2020_12_25 } from './mercury/didLogin.v2020_12_25.contract';
|
|
16
16
|
import { DidMessageEventContract as MercuryDidMessageEventContract_v2020_12_25 } from './mercury/didMessage.v2020_12_25.contract';
|
|
17
17
|
import { DidSignupEventContract as MercuryDidSignupEventContract_v2020_12_25 } from './mercury/didSignup.v2020_12_25.contract';
|
|
18
|
+
import { DidUpdateAuthorizerStatusEventContract as MercuryDidUpdateAuthorizerStatusEventContract_v2020_12_25 } from './mercury/didUpdateAuthorizerStatus.v2020_12_25.contract';
|
|
18
19
|
import { DidUpdateFeedEventContract as MercuryDidUpdateFeedEventContract_v2020_12_25 } from './mercury/didUpdateFeed.v2020_12_25.contract';
|
|
19
20
|
import { DidUpdatePersonEventContract as MercuryDidUpdatePersonEventContract_v2020_12_25 } from './mercury/didUpdatePerson.v2020_12_25.contract';
|
|
20
21
|
import { DoesHonorPermissionContractEventContract as MercuryDoesHonorPermissionContractEventContract_v2020_12_25 } from './mercury/doesHonorPermissionContract.v2020_12_25.contract';
|
|
@@ -243,6 +244,16 @@ declare const _default: ({
|
|
|
243
244
|
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidSignupEmitTargetAndPayloadSchema;
|
|
244
245
|
};
|
|
245
246
|
};
|
|
247
|
+
} | {
|
|
248
|
+
eventSignatures: {
|
|
249
|
+
'did-update-authorizer-status::v2020_12_25': {
|
|
250
|
+
listenPermissions: {
|
|
251
|
+
contractId: "people-contract";
|
|
252
|
+
permissionIdsAny: "can-listen-to-authorizor-status-changes"[];
|
|
253
|
+
};
|
|
254
|
+
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidUpdateAuthorizerStatusEmitTargetAndPayloadSchema;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
246
257
|
} | {
|
|
247
258
|
eventSignatures: {
|
|
248
259
|
'did-update-feed::v2020_12_25': {
|
|
@@ -731,6 +742,7 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
731
742
|
'did-login::v2020_12_25': MercuryDidLoginEventContract_v2020_12_25['eventSignatures']['did-login::v2020_12_25'];
|
|
732
743
|
'did-message::v2020_12_25': MercuryDidMessageEventContract_v2020_12_25['eventSignatures']['did-message::v2020_12_25'];
|
|
733
744
|
'did-signup::v2020_12_25': MercuryDidSignupEventContract_v2020_12_25['eventSignatures']['did-signup::v2020_12_25'];
|
|
745
|
+
'did-update-authorizer-status::v2020_12_25': MercuryDidUpdateAuthorizerStatusEventContract_v2020_12_25['eventSignatures']['did-update-authorizer-status::v2020_12_25'];
|
|
734
746
|
'did-update-feed::v2020_12_25': MercuryDidUpdateFeedEventContract_v2020_12_25['eventSignatures']['did-update-feed::v2020_12_25'];
|
|
735
747
|
'did-update-person::v2020_12_25': MercuryDidUpdatePersonEventContract_v2020_12_25['eventSignatures']['did-update-person::v2020_12_25'];
|
|
736
748
|
'does-honor-permission-contract::v2020_12_25': MercuryDoesHonorPermissionContractEventContract_v2020_12_25['eventSignatures']['does-honor-permission-contract::v2020_12_25'];
|
|
@@ -15,6 +15,7 @@ import mercuryDidLeaveOrganizationEventContract_v2020_12_25 from './mercury/didL
|
|
|
15
15
|
import mercuryDidLoginEventContract_v2020_12_25 from './mercury/didLogin.v2020_12_25.contract.js';
|
|
16
16
|
import mercuryDidMessageEventContract_v2020_12_25 from './mercury/didMessage.v2020_12_25.contract.js';
|
|
17
17
|
import mercuryDidSignupEventContract_v2020_12_25 from './mercury/didSignup.v2020_12_25.contract.js';
|
|
18
|
+
import mercuryDidUpdateAuthorizerStatusEventContract_v2020_12_25 from './mercury/didUpdateAuthorizerStatus.v2020_12_25.contract.js';
|
|
18
19
|
import mercuryDidUpdateFeedEventContract_v2020_12_25 from './mercury/didUpdateFeed.v2020_12_25.contract.js';
|
|
19
20
|
import mercuryDidUpdatePersonEventContract_v2020_12_25 from './mercury/didUpdatePerson.v2020_12_25.contract.js';
|
|
20
21
|
import mercuryDoesHonorPermissionContractEventContract_v2020_12_25 from './mercury/doesHonorPermissionContract.v2020_12_25.contract.js';
|
|
@@ -93,6 +94,7 @@ export default [
|
|
|
93
94
|
mercuryDidLoginEventContract_v2020_12_25,
|
|
94
95
|
mercuryDidMessageEventContract_v2020_12_25,
|
|
95
96
|
mercuryDidSignupEventContract_v2020_12_25,
|
|
97
|
+
mercuryDidUpdateAuthorizerStatusEventContract_v2020_12_25,
|
|
96
98
|
mercuryDidUpdateFeedEventContract_v2020_12_25,
|
|
97
99
|
mercuryDidUpdatePersonEventContract_v2020_12_25,
|
|
98
100
|
mercuryDoesHonorPermissionContractEventContract_v2020_12_25,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import './../../permissions/permissions.types';
|
|
2
|
+
declare const didUpdateAuthorizerStatusEventContract: {
|
|
3
|
+
eventSignatures: {
|
|
4
|
+
'did-update-authorizer-status::v2020_12_25': {
|
|
5
|
+
listenPermissions: {
|
|
6
|
+
contractId: "people-contract";
|
|
7
|
+
permissionIdsAny: "can-listen-to-authorizor-status-changes"[];
|
|
8
|
+
};
|
|
9
|
+
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidUpdateAuthorizerStatusEmitTargetAndPayloadSchema;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default didUpdateAuthorizerStatusEventContract;
|
|
14
|
+
export type DidUpdateAuthorizerStatusEventContract = typeof didUpdateAuthorizerStatusEventContract;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './../../permissions/permissions.types';
|
|
2
|
+
import didUpdateAuthorizerStatusEmitTargetAndPayloadSchema from './../../schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitTargetAndPayload.schema.js';
|
|
3
|
+
import { buildEventContract } from '@sprucelabs/mercury-types';
|
|
4
|
+
const didUpdateAuthorizerStatusEventContract = buildEventContract({
|
|
5
|
+
eventSignatures: {
|
|
6
|
+
'did-update-authorizer-status::v2020_12_25': {
|
|
7
|
+
listenPermissions: { "contractId": "people-contract", "permissionIdsAny": ["can-listen-to-authorizor-status-changes"] },
|
|
8
|
+
emitPayloadSchema: didUpdateAuthorizerStatusEmitTargetAndPayloadSchema,
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export default didUpdateAuthorizerStatusEventContract;
|
|
@@ -52,6 +52,7 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
52
52
|
'can-listen-to-did-login',
|
|
53
53
|
'can-listen-to-did-update',
|
|
54
54
|
'can-list-people-by-macs',
|
|
55
|
+
'can-listen-to-authorizor-status-changes',
|
|
55
56
|
'can-get-other-person'
|
|
56
57
|
];
|
|
57
58
|
'permission-contract': [
|
package/build/esm/.spruce/schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitPayload.schema.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
import updateAuthorizerStatusPersonSchema_v2020_12_25 from './updateAuthorizerStatusPerson.schema.js';
|
|
3
|
+
const didUpdateAuthorizerStatusEmitPayloadSchema = {
|
|
4
|
+
id: 'didUpdateAuthorizerStatusEmitPayload',
|
|
5
|
+
version: 'v2020_12_25',
|
|
6
|
+
namespace: 'Mercury',
|
|
7
|
+
name: '',
|
|
8
|
+
fields: {
|
|
9
|
+
/** . */
|
|
10
|
+
'person': {
|
|
11
|
+
type: 'schema',
|
|
12
|
+
isRequired: true,
|
|
13
|
+
options: { schema: updateAuthorizerStatusPersonSchema_v2020_12_25, }
|
|
14
|
+
},
|
|
15
|
+
/** . */
|
|
16
|
+
'statuses': {
|
|
17
|
+
type: 'select',
|
|
18
|
+
isRequired: true,
|
|
19
|
+
isArray: true,
|
|
20
|
+
minArrayLength: 0,
|
|
21
|
+
options: { choices: [{ "label": "Clocked in", "value": "clockedIn" }, { "label": "Clocked out", "value": "clockedOut" }, { "label": "On premises", "value": "onPrem" }, { "label": "Off premises", "value": "offPrem" }], }
|
|
22
|
+
},
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
SchemaRegistry.getInstance().trackSchema(didUpdateAuthorizerStatusEmitPayloadSchema);
|
|
26
|
+
export default didUpdateAuthorizerStatusEmitPayloadSchema;
|
package/build/esm/.spruce/schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitTarget.schema.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
const didUpdateAuthorizerStatusEmitTargetSchema = {
|
|
3
|
+
id: 'didUpdateAuthorizerStatusEmitTarget',
|
|
4
|
+
version: 'v2020_12_25',
|
|
5
|
+
namespace: 'Mercury',
|
|
6
|
+
name: '',
|
|
7
|
+
fields: {
|
|
8
|
+
/** . */
|
|
9
|
+
'organizationId': {
|
|
10
|
+
type: 'id',
|
|
11
|
+
options: undefined
|
|
12
|
+
},
|
|
13
|
+
/** . */
|
|
14
|
+
'locationId': {
|
|
15
|
+
type: 'id',
|
|
16
|
+
options: undefined
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
SchemaRegistry.getInstance().trackSchema(didUpdateAuthorizerStatusEmitTargetSchema);
|
|
21
|
+
export default didUpdateAuthorizerStatusEmitTargetSchema;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { SpruceSchemas } from '../../schemas.types';
|
|
2
|
+
declare const didUpdateAuthorizerStatusEmitTargetAndPayloadSchema: SpruceSchemas.Mercury.v2020_12_25.DidUpdateAuthorizerStatusEmitTargetAndPayloadSchema;
|
|
3
|
+
export default didUpdateAuthorizerStatusEmitTargetAndPayloadSchema;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
import eventSourceSchema_v2021_09_13 from './../../spruceEventUtils/v2021_09_13/eventSource.schema.js';
|
|
3
|
+
import didUpdateAuthorizerStatusEmitTargetSchema_v2020_12_25 from './didUpdateAuthorizerStatusEmitTarget.schema.js';
|
|
4
|
+
import didUpdateAuthorizerStatusEmitPayloadSchema_v2020_12_25 from './didUpdateAuthorizerStatusEmitPayload.schema.js';
|
|
5
|
+
const didUpdateAuthorizerStatusEmitTargetAndPayloadSchema = {
|
|
6
|
+
id: 'didUpdateAuthorizerStatusEmitTargetAndPayload',
|
|
7
|
+
version: 'v2020_12_25',
|
|
8
|
+
namespace: 'Mercury',
|
|
9
|
+
name: '',
|
|
10
|
+
fields: {
|
|
11
|
+
/** Source. */
|
|
12
|
+
'source': {
|
|
13
|
+
label: 'Source',
|
|
14
|
+
type: 'schema',
|
|
15
|
+
options: { schema: eventSourceSchema_v2021_09_13, }
|
|
16
|
+
},
|
|
17
|
+
/** . */
|
|
18
|
+
'target': {
|
|
19
|
+
type: 'schema',
|
|
20
|
+
options: { schema: didUpdateAuthorizerStatusEmitTargetSchema_v2020_12_25, }
|
|
21
|
+
},
|
|
22
|
+
/** . */
|
|
23
|
+
'payload': {
|
|
24
|
+
type: 'schema',
|
|
25
|
+
isRequired: true,
|
|
26
|
+
options: { schema: didUpdateAuthorizerStatusEmitPayloadSchema_v2020_12_25, }
|
|
27
|
+
},
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
SchemaRegistry.getInstance().trackSchema(didUpdateAuthorizerStatusEmitTargetAndPayloadSchema);
|
|
31
|
+
export default didUpdateAuthorizerStatusEmitTargetAndPayloadSchema;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
const updateAuthorizerStatusPersonSchema = {
|
|
3
|
+
id: 'updateAuthorizerStatusPerson',
|
|
4
|
+
version: 'v2020_12_25',
|
|
5
|
+
namespace: 'Mercury',
|
|
6
|
+
name: '',
|
|
7
|
+
fields: {
|
|
8
|
+
/** . */
|
|
9
|
+
'id': {
|
|
10
|
+
type: 'id',
|
|
11
|
+
isRequired: true,
|
|
12
|
+
options: undefined
|
|
13
|
+
},
|
|
14
|
+
/** . */
|
|
15
|
+
'casualName': {
|
|
16
|
+
type: 'text',
|
|
17
|
+
isRequired: true,
|
|
18
|
+
options: undefined
|
|
19
|
+
},
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
SchemaRegistry.getInstance().trackSchema(updateAuthorizerStatusPersonSchema);
|
|
23
|
+
export default updateAuthorizerStatusPersonSchema;
|