@sprucelabs/mercury-core-events 24.0.265 → 24.1.0
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/setAuthorizerStatusEmitTarget.schema.js +2 -1
- 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 +433 -288
- 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/setAuthorizerStatusEmitTarget.schema.js +2 -1
- 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 +433 -288
- 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'];
|
|
@@ -20,6 +20,7 @@ const didLeaveOrganization_v2020_12_25_contract_1 = __importDefault(require("./m
|
|
|
20
20
|
const didLogin_v2020_12_25_contract_1 = __importDefault(require("./mercury/didLogin.v2020_12_25.contract"));
|
|
21
21
|
const didMessage_v2020_12_25_contract_1 = __importDefault(require("./mercury/didMessage.v2020_12_25.contract"));
|
|
22
22
|
const didSignup_v2020_12_25_contract_1 = __importDefault(require("./mercury/didSignup.v2020_12_25.contract"));
|
|
23
|
+
const didUpdateAuthorizerStatus_v2020_12_25_contract_1 = __importDefault(require("./mercury/didUpdateAuthorizerStatus.v2020_12_25.contract"));
|
|
23
24
|
const didUpdateFeed_v2020_12_25_contract_1 = __importDefault(require("./mercury/didUpdateFeed.v2020_12_25.contract"));
|
|
24
25
|
const didUpdatePerson_v2020_12_25_contract_1 = __importDefault(require("./mercury/didUpdatePerson.v2020_12_25.contract"));
|
|
25
26
|
const doesHonorPermissionContract_v2020_12_25_contract_1 = __importDefault(require("./mercury/doesHonorPermissionContract.v2020_12_25.contract"));
|
|
@@ -98,6 +99,7 @@ exports.default = [
|
|
|
98
99
|
didLogin_v2020_12_25_contract_1.default,
|
|
99
100
|
didMessage_v2020_12_25_contract_1.default,
|
|
100
101
|
didSignup_v2020_12_25_contract_1.default,
|
|
102
|
+
didUpdateAuthorizerStatus_v2020_12_25_contract_1.default,
|
|
101
103
|
didUpdateFeed_v2020_12_25_contract_1.default,
|
|
102
104
|
didUpdatePerson_v2020_12_25_contract_1.default,
|
|
103
105
|
doesHonorPermissionContract_v2020_12_25_contract_1.default,
|
|
@@ -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,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
require("./../../permissions/permissions.types");
|
|
7
|
+
const didUpdateAuthorizerStatusEmitTargetAndPayload_schema_1 = __importDefault(require("./../../schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitTargetAndPayload.schema"));
|
|
8
|
+
const mercury_types_1 = require("@sprucelabs/mercury-types");
|
|
9
|
+
const didUpdateAuthorizerStatusEventContract = (0, mercury_types_1.buildEventContract)({
|
|
10
|
+
eventSignatures: {
|
|
11
|
+
'did-update-authorizer-status::v2020_12_25': {
|
|
12
|
+
listenPermissions: { "contractId": "people-contract", "permissionIdsAny": ["can-listen-to-authorizor-status-changes"] },
|
|
13
|
+
emitPayloadSchema: didUpdateAuthorizerStatusEmitTargetAndPayload_schema_1.default,
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
exports.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/.spruce/schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitPayload.schema.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
7
|
+
const updateAuthorizerStatusPerson_schema_1 = __importDefault(require("./updateAuthorizerStatusPerson.schema"));
|
|
8
|
+
const didUpdateAuthorizerStatusEmitPayloadSchema = {
|
|
9
|
+
id: 'didUpdateAuthorizerStatusEmitPayload',
|
|
10
|
+
version: 'v2020_12_25',
|
|
11
|
+
namespace: 'Mercury',
|
|
12
|
+
name: '',
|
|
13
|
+
fields: {
|
|
14
|
+
/** . */
|
|
15
|
+
'person': {
|
|
16
|
+
type: 'schema',
|
|
17
|
+
isRequired: true,
|
|
18
|
+
options: { schema: updateAuthorizerStatusPerson_schema_1.default, }
|
|
19
|
+
},
|
|
20
|
+
/** . */
|
|
21
|
+
'statuses': {
|
|
22
|
+
type: 'select',
|
|
23
|
+
isRequired: true,
|
|
24
|
+
isArray: true,
|
|
25
|
+
minArrayLength: 0,
|
|
26
|
+
options: { choices: [{ "label": "Clocked in", "value": "clockedIn" }, { "label": "Clocked out", "value": "clockedOut" }, { "label": "On premises", "value": "onPrem" }, { "label": "Off premises", "value": "offPrem" }], }
|
|
27
|
+
},
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(didUpdateAuthorizerStatusEmitPayloadSchema);
|
|
31
|
+
exports.default = didUpdateAuthorizerStatusEmitPayloadSchema;
|
package/build/.spruce/schemas/mercury/v2020_12_25/didUpdateAuthorizerStatusEmitTarget.schema.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
+
const didUpdateAuthorizerStatusEmitTargetSchema = {
|
|
5
|
+
id: 'didUpdateAuthorizerStatusEmitTarget',
|
|
6
|
+
version: 'v2020_12_25',
|
|
7
|
+
namespace: 'Mercury',
|
|
8
|
+
name: '',
|
|
9
|
+
fields: {
|
|
10
|
+
/** . */
|
|
11
|
+
'organizationId': {
|
|
12
|
+
type: 'id',
|
|
13
|
+
options: undefined
|
|
14
|
+
},
|
|
15
|
+
/** . */
|
|
16
|
+
'locationId': {
|
|
17
|
+
type: 'id',
|
|
18
|
+
options: undefined
|
|
19
|
+
},
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(didUpdateAuthorizerStatusEmitTargetSchema);
|
|
23
|
+
exports.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,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
7
|
+
const eventSource_schema_1 = __importDefault(require("./../../spruceEventUtils/v2021_09_13/eventSource.schema"));
|
|
8
|
+
const didUpdateAuthorizerStatusEmitTarget_schema_1 = __importDefault(require("./didUpdateAuthorizerStatusEmitTarget.schema"));
|
|
9
|
+
const didUpdateAuthorizerStatusEmitPayload_schema_1 = __importDefault(require("./didUpdateAuthorizerStatusEmitPayload.schema"));
|
|
10
|
+
const didUpdateAuthorizerStatusEmitTargetAndPayloadSchema = {
|
|
11
|
+
id: 'didUpdateAuthorizerStatusEmitTargetAndPayload',
|
|
12
|
+
version: 'v2020_12_25',
|
|
13
|
+
namespace: 'Mercury',
|
|
14
|
+
name: '',
|
|
15
|
+
fields: {
|
|
16
|
+
/** Source. */
|
|
17
|
+
'source': {
|
|
18
|
+
label: 'Source',
|
|
19
|
+
type: 'schema',
|
|
20
|
+
options: { schema: eventSource_schema_1.default, }
|
|
21
|
+
},
|
|
22
|
+
/** . */
|
|
23
|
+
'target': {
|
|
24
|
+
type: 'schema',
|
|
25
|
+
options: { schema: didUpdateAuthorizerStatusEmitTarget_schema_1.default, }
|
|
26
|
+
},
|
|
27
|
+
/** . */
|
|
28
|
+
'payload': {
|
|
29
|
+
type: 'schema',
|
|
30
|
+
isRequired: true,
|
|
31
|
+
options: { schema: didUpdateAuthorizerStatusEmitPayload_schema_1.default, }
|
|
32
|
+
},
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(didUpdateAuthorizerStatusEmitTargetAndPayloadSchema);
|
|
36
|
+
exports.default = didUpdateAuthorizerStatusEmitTargetAndPayloadSchema;
|
|
@@ -13,9 +13,10 @@ const setAuthorizerStatusEmitTargetSchema = {
|
|
|
13
13
|
isRequired: true,
|
|
14
14
|
options: undefined
|
|
15
15
|
},
|
|
16
|
-
/** . */
|
|
16
|
+
/** . The person to set the status for. If empty, looks at logged in person's status. */
|
|
17
17
|
'personId': {
|
|
18
18
|
type: 'id',
|
|
19
|
+
hint: 'The person to set the status for. If empty, looks at logged in person\'s status.',
|
|
19
20
|
options: undefined
|
|
20
21
|
},
|
|
21
22
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
+
const updateAuthorizerStatusPersonSchema = {
|
|
5
|
+
id: 'updateAuthorizerStatusPerson',
|
|
6
|
+
version: 'v2020_12_25',
|
|
7
|
+
namespace: 'Mercury',
|
|
8
|
+
name: '',
|
|
9
|
+
fields: {
|
|
10
|
+
/** . */
|
|
11
|
+
'id': {
|
|
12
|
+
type: 'id',
|
|
13
|
+
isRequired: true,
|
|
14
|
+
options: undefined
|
|
15
|
+
},
|
|
16
|
+
/** . */
|
|
17
|
+
'casualName': {
|
|
18
|
+
type: 'text',
|
|
19
|
+
isRequired: true,
|
|
20
|
+
options: undefined
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(updateAuthorizerStatusPersonSchema);
|
|
25
|
+
exports.default = updateAuthorizerStatusPersonSchema;
|