@sprucelabs/mercury-core-events 24.0.261 → 24.0.263
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 +22 -0
- package/build/.spruce/events/events.contract.js +4 -0
- package/build/.spruce/events/mercury/didLogis.v2020_12_25.contract.d.ts +15 -0
- package/build/.spruce/events/mercury/didLogis.v2020_12_25.contract.js +18 -0
- package/build/.spruce/events/mercury/registerDevice.v2020_12_25.contract.d.ts +11 -0
- package/build/.spruce/events/mercury/registerDevice.v2020_12_25.contract.js +18 -0
- package/build/.spruce/permissions/permissions.types.d.ts +2 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/didLoginEmitPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/didLoginEmitPayload.schema.js +23 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/didLogisEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/didLogisEmitTargetAndPayload.schema.js +36 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/listPeopleEmitPayload.schema.js +6 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/registerDeviceEmitPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/registerDeviceEmitPayload.schema.js +19 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/registerDeviceEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/registerDeviceEmitTargetAndPayload.schema.js +30 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/registerDeviceResponsePayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/registerDeviceResponsePayload.schema.js +12 -0
- package/build/.spruce/schemas/schemas.types.d.ts +9962 -9824
- package/build/esm/.spruce/events/events.contract.d.ts +22 -0
- package/build/esm/.spruce/events/events.contract.js +4 -0
- package/build/esm/.spruce/events/mercury/didLogis.v2020_12_25.contract.d.ts +15 -0
- package/build/esm/.spruce/events/mercury/didLogis.v2020_12_25.contract.js +13 -0
- package/build/esm/.spruce/events/mercury/registerDevice.v2020_12_25.contract.d.ts +11 -0
- package/build/esm/.spruce/events/mercury/registerDevice.v2020_12_25.contract.js +13 -0
- package/build/esm/.spruce/permissions/permissions.types.d.ts +2 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/didLoginEmitPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/didLoginEmitPayload.schema.js +18 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/didLogisEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/didLogisEmitTargetAndPayload.schema.js +31 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/listPeopleEmitPayload.schema.js +6 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerDeviceEmitPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerDeviceEmitPayload.schema.js +17 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerDeviceEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerDeviceEmitTargetAndPayload.schema.js +25 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerDeviceResponsePayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/registerDeviceResponsePayload.schema.js +10 -0
- package/build/esm/.spruce/schemas/schemas.types.d.ts +9962 -9824
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ import { DeleteRoleEventContract as MercuryDeleteRoleEventContract_v2020_12_25 }
|
|
|
12
12
|
import { DidInstallEventContract as MercuryDidInstallEventContract_v2020_12_25 } from './mercury/didInstall.v2020_12_25.contract';
|
|
13
13
|
import { DidJoinOrganizationEventContract as MercuryDidJoinOrganizationEventContract_v2020_12_25 } from './mercury/didJoinOrganization.v2020_12_25.contract';
|
|
14
14
|
import { DidLeaveOrganizationEventContract as MercuryDidLeaveOrganizationEventContract_v2020_12_25 } from './mercury/didLeaveOrganization.v2020_12_25.contract';
|
|
15
|
+
import { DidLogisEventContract as MercuryDidLogisEventContract_v2020_12_25 } from './mercury/didLogis.v2020_12_25.contract';
|
|
15
16
|
import { DidMessageEventContract as MercuryDidMessageEventContract_v2020_12_25 } from './mercury/didMessage.v2020_12_25.contract';
|
|
16
17
|
import { DidSignupEventContract as MercuryDidSignupEventContract_v2020_12_25 } from './mercury/didSignup.v2020_12_25.contract';
|
|
17
18
|
import { DidUpdateFeedEventContract as MercuryDidUpdateFeedEventContract_v2020_12_25 } from './mercury/didUpdateFeed.v2020_12_25.contract';
|
|
@@ -44,6 +45,7 @@ import { LoginEventContract as MercuryLoginEventContract_v2020_12_25 } from './m
|
|
|
44
45
|
import { LogoutEventContract as MercuryLogoutEventContract_v2020_12_25 } from './mercury/logout.v2020_12_25.contract';
|
|
45
46
|
import { RegisterChatbotsEventContract as MercuryRegisterChatbotsEventContract_v2020_12_25 } from './mercury/registerChatbots.v2020_12_25.contract';
|
|
46
47
|
import { RegisterConversationTopicsEventContract as MercuryRegisterConversationTopicsEventContract_v2020_12_25 } from './mercury/registerConversationTopics.v2020_12_25.contract';
|
|
48
|
+
import { RegisterDeviceEventContract as MercuryRegisterDeviceEventContract_v2020_12_25 } from './mercury/registerDevice.v2020_12_25.contract';
|
|
47
49
|
import { RegisterEventsEventContract as MercuryRegisterEventsEventContract_v2020_12_25 } from './mercury/registerEvents.v2020_12_25.contract';
|
|
48
50
|
import { RegisterListenersEventContract as MercuryRegisterListenersEventContract_v2020_12_25 } from './mercury/registerListeners.v2020_12_25.contract';
|
|
49
51
|
import { RegisterProxyTokenEventContract as MercuryRegisterProxyTokenEventContract_v2020_12_25 } from './mercury/registerProxyToken.v2020_12_25.contract';
|
|
@@ -204,6 +206,17 @@ declare const _default: ({
|
|
|
204
206
|
responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidLeaveOrganizationResponsePayloadSchema;
|
|
205
207
|
};
|
|
206
208
|
};
|
|
209
|
+
} | {
|
|
210
|
+
eventSignatures: {
|
|
211
|
+
'did-logis::v2020_12_25': {
|
|
212
|
+
isGlobal: true;
|
|
213
|
+
listenPermissions: {
|
|
214
|
+
contractId: "people-contract";
|
|
215
|
+
permissionIdsAny: "can-listen-to-did-login"[];
|
|
216
|
+
};
|
|
217
|
+
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidLogisEmitTargetAndPayloadSchema;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
207
220
|
} | {
|
|
208
221
|
eventSignatures: {
|
|
209
222
|
'did-message::v2020_12_25': {
|
|
@@ -456,6 +469,13 @@ declare const _default: ({
|
|
|
456
469
|
responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.RegisterConversationTopicsResponsePayloadSchema;
|
|
457
470
|
};
|
|
458
471
|
};
|
|
472
|
+
} | {
|
|
473
|
+
eventSignatures: {
|
|
474
|
+
'register-device::v2020_12_25': {
|
|
475
|
+
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.RegisterDeviceEmitTargetAndPayloadSchema;
|
|
476
|
+
responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.RegisterDeviceResponsePayloadSchema;
|
|
477
|
+
};
|
|
478
|
+
};
|
|
459
479
|
} | {
|
|
460
480
|
eventSignatures: {
|
|
461
481
|
'register-events::v2020_12_25': {
|
|
@@ -708,6 +728,7 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
708
728
|
'did-install::v2020_12_25': MercuryDidInstallEventContract_v2020_12_25['eventSignatures']['did-install::v2020_12_25'];
|
|
709
729
|
'did-join-organization::v2020_12_25': MercuryDidJoinOrganizationEventContract_v2020_12_25['eventSignatures']['did-join-organization::v2020_12_25'];
|
|
710
730
|
'did-leave-organization::v2020_12_25': MercuryDidLeaveOrganizationEventContract_v2020_12_25['eventSignatures']['did-leave-organization::v2020_12_25'];
|
|
731
|
+
'did-logis::v2020_12_25': MercuryDidLogisEventContract_v2020_12_25['eventSignatures']['did-logis::v2020_12_25'];
|
|
711
732
|
'did-message::v2020_12_25': MercuryDidMessageEventContract_v2020_12_25['eventSignatures']['did-message::v2020_12_25'];
|
|
712
733
|
'did-signup::v2020_12_25': MercuryDidSignupEventContract_v2020_12_25['eventSignatures']['did-signup::v2020_12_25'];
|
|
713
734
|
'did-update-feed::v2020_12_25': MercuryDidUpdateFeedEventContract_v2020_12_25['eventSignatures']['did-update-feed::v2020_12_25'];
|
|
@@ -740,6 +761,7 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
740
761
|
'logout::v2020_12_25': MercuryLogoutEventContract_v2020_12_25['eventSignatures']['logout::v2020_12_25'];
|
|
741
762
|
'register-chatbots::v2020_12_25': MercuryRegisterChatbotsEventContract_v2020_12_25['eventSignatures']['register-chatbots::v2020_12_25'];
|
|
742
763
|
'register-conversation-topics::v2020_12_25': MercuryRegisterConversationTopicsEventContract_v2020_12_25['eventSignatures']['register-conversation-topics::v2020_12_25'];
|
|
764
|
+
'register-device::v2020_12_25': MercuryRegisterDeviceEventContract_v2020_12_25['eventSignatures']['register-device::v2020_12_25'];
|
|
743
765
|
'register-events::v2020_12_25': MercuryRegisterEventsEventContract_v2020_12_25['eventSignatures']['register-events::v2020_12_25'];
|
|
744
766
|
'register-listeners::v2020_12_25': MercuryRegisterListenersEventContract_v2020_12_25['eventSignatures']['register-listeners::v2020_12_25'];
|
|
745
767
|
'register-proxy-token::v2020_12_25': MercuryRegisterProxyTokenEventContract_v2020_12_25['eventSignatures']['register-proxy-token::v2020_12_25'];
|
|
@@ -17,6 +17,7 @@ const deleteRole_v2020_12_25_contract_1 = __importDefault(require("./mercury/del
|
|
|
17
17
|
const didInstall_v2020_12_25_contract_1 = __importDefault(require("./mercury/didInstall.v2020_12_25.contract"));
|
|
18
18
|
const didJoinOrganization_v2020_12_25_contract_1 = __importDefault(require("./mercury/didJoinOrganization.v2020_12_25.contract"));
|
|
19
19
|
const didLeaveOrganization_v2020_12_25_contract_1 = __importDefault(require("./mercury/didLeaveOrganization.v2020_12_25.contract"));
|
|
20
|
+
const didLogis_v2020_12_25_contract_1 = __importDefault(require("./mercury/didLogis.v2020_12_25.contract"));
|
|
20
21
|
const didMessage_v2020_12_25_contract_1 = __importDefault(require("./mercury/didMessage.v2020_12_25.contract"));
|
|
21
22
|
const didSignup_v2020_12_25_contract_1 = __importDefault(require("./mercury/didSignup.v2020_12_25.contract"));
|
|
22
23
|
const didUpdateFeed_v2020_12_25_contract_1 = __importDefault(require("./mercury/didUpdateFeed.v2020_12_25.contract"));
|
|
@@ -49,6 +50,7 @@ const login_v2020_12_25_contract_1 = __importDefault(require("./mercury/login.v2
|
|
|
49
50
|
const logout_v2020_12_25_contract_1 = __importDefault(require("./mercury/logout.v2020_12_25.contract"));
|
|
50
51
|
const registerChatbots_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerChatbots.v2020_12_25.contract"));
|
|
51
52
|
const registerConversationTopics_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerConversationTopics.v2020_12_25.contract"));
|
|
53
|
+
const registerDevice_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerDevice.v2020_12_25.contract"));
|
|
52
54
|
const registerEvents_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerEvents.v2020_12_25.contract"));
|
|
53
55
|
const registerListeners_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerListeners.v2020_12_25.contract"));
|
|
54
56
|
const registerProxyToken_v2020_12_25_contract_1 = __importDefault(require("./mercury/registerProxyToken.v2020_12_25.contract"));
|
|
@@ -93,6 +95,7 @@ exports.default = [
|
|
|
93
95
|
didInstall_v2020_12_25_contract_1.default,
|
|
94
96
|
didJoinOrganization_v2020_12_25_contract_1.default,
|
|
95
97
|
didLeaveOrganization_v2020_12_25_contract_1.default,
|
|
98
|
+
didLogis_v2020_12_25_contract_1.default,
|
|
96
99
|
didMessage_v2020_12_25_contract_1.default,
|
|
97
100
|
didSignup_v2020_12_25_contract_1.default,
|
|
98
101
|
didUpdateFeed_v2020_12_25_contract_1.default,
|
|
@@ -125,6 +128,7 @@ exports.default = [
|
|
|
125
128
|
logout_v2020_12_25_contract_1.default,
|
|
126
129
|
registerChatbots_v2020_12_25_contract_1.default,
|
|
127
130
|
registerConversationTopics_v2020_12_25_contract_1.default,
|
|
131
|
+
registerDevice_v2020_12_25_contract_1.default,
|
|
128
132
|
registerEvents_v2020_12_25_contract_1.default,
|
|
129
133
|
registerListeners_v2020_12_25_contract_1.default,
|
|
130
134
|
registerProxyToken_v2020_12_25_contract_1.default,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './../../permissions/permissions.types';
|
|
2
|
+
declare const didLogisEventContract: {
|
|
3
|
+
eventSignatures: {
|
|
4
|
+
'did-logis::v2020_12_25': {
|
|
5
|
+
isGlobal: true;
|
|
6
|
+
listenPermissions: {
|
|
7
|
+
contractId: "people-contract";
|
|
8
|
+
permissionIdsAny: "can-listen-to-did-login"[];
|
|
9
|
+
};
|
|
10
|
+
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.DidLogisEmitTargetAndPayloadSchema;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default didLogisEventContract;
|
|
15
|
+
export type DidLogisEventContract = typeof didLogisEventContract;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 didLogisEmitTargetAndPayload_schema_1 = __importDefault(require("./../../schemas/mercury/v2020_12_25/didLogisEmitTargetAndPayload.schema"));
|
|
8
|
+
const mercury_types_1 = require("@sprucelabs/mercury-types");
|
|
9
|
+
const didLogisEventContract = (0, mercury_types_1.buildEventContract)({
|
|
10
|
+
eventSignatures: {
|
|
11
|
+
'did-logis::v2020_12_25': {
|
|
12
|
+
isGlobal: true,
|
|
13
|
+
listenPermissions: { "contractId": "people-contract", "permissionIdsAny": ["can-listen-to-did-login"] },
|
|
14
|
+
emitPayloadSchema: didLogisEmitTargetAndPayload_schema_1.default,
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
exports.default = didLogisEventContract;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import './../../permissions/permissions.types';
|
|
2
|
+
declare const registerDeviceEventContract: {
|
|
3
|
+
eventSignatures: {
|
|
4
|
+
'register-device::v2020_12_25': {
|
|
5
|
+
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.RegisterDeviceEmitTargetAndPayloadSchema;
|
|
6
|
+
responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.RegisterDeviceResponsePayloadSchema;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default registerDeviceEventContract;
|
|
11
|
+
export type RegisterDeviceEventContract = typeof registerDeviceEventContract;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 registerDeviceEmitTargetAndPayload_schema_1 = __importDefault(require("./../../schemas/mercury/v2020_12_25/registerDeviceEmitTargetAndPayload.schema"));
|
|
8
|
+
const registerDeviceResponsePayload_schema_1 = __importDefault(require("./../../schemas/mercury/v2020_12_25/registerDeviceResponsePayload.schema"));
|
|
9
|
+
const mercury_types_1 = require("@sprucelabs/mercury-types");
|
|
10
|
+
const registerDeviceEventContract = (0, mercury_types_1.buildEventContract)({
|
|
11
|
+
eventSignatures: {
|
|
12
|
+
'register-device::v2020_12_25': {
|
|
13
|
+
emitPayloadSchema: registerDeviceEmitTargetAndPayload_schema_1.default,
|
|
14
|
+
responsePayloadSchema: registerDeviceResponsePayload_schema_1.default,
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
exports.default = registerDeviceEventContract;
|
|
@@ -49,7 +49,9 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
49
49
|
'can-get-person-private-fields',
|
|
50
50
|
'can-get-person-by-phone',
|
|
51
51
|
'can-listen-to-did-signup',
|
|
52
|
+
'can-listen-to-did-login',
|
|
52
53
|
'can-listen-to-did-update',
|
|
54
|
+
'can-list-people-by-macs',
|
|
53
55
|
'can-get-other-person'
|
|
54
56
|
];
|
|
55
57
|
'permission-contract': [
|
|
@@ -0,0 +1,23 @@
|
|
|
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 person_schema_1 = __importDefault(require("./../../spruce/v2020_07_22/person.schema"));
|
|
8
|
+
const didLoginEmitPayloadSchema = {
|
|
9
|
+
id: 'didLoginEmitPayload',
|
|
10
|
+
version: 'v2020_12_25',
|
|
11
|
+
namespace: 'Mercury',
|
|
12
|
+
name: '',
|
|
13
|
+
fields: {
|
|
14
|
+
/** . */
|
|
15
|
+
'person': {
|
|
16
|
+
type: 'schema',
|
|
17
|
+
isRequired: true,
|
|
18
|
+
options: { schema: person_schema_1.default, }
|
|
19
|
+
},
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(didLoginEmitPayloadSchema);
|
|
23
|
+
exports.default = didLoginEmitPayloadSchema;
|
|
@@ -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 eventTarget_schema_1 = __importDefault(require("./../../spruceEventUtils/v2021_09_13/eventTarget.schema"));
|
|
9
|
+
const didLoginEmitPayload_schema_1 = __importDefault(require("./didLoginEmitPayload.schema"));
|
|
10
|
+
const didLogisEmitTargetAndPayloadSchema = {
|
|
11
|
+
id: 'didLogisEmitTargetAndPayload',
|
|
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: eventTarget_schema_1.default, }
|
|
26
|
+
},
|
|
27
|
+
/** . */
|
|
28
|
+
'payload': {
|
|
29
|
+
type: 'schema',
|
|
30
|
+
isRequired: true,
|
|
31
|
+
options: { schema: didLoginEmitPayload_schema_1.default, }
|
|
32
|
+
},
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(didLogisEmitTargetAndPayloadSchema);
|
|
36
|
+
exports.default = didLogisEmitTargetAndPayloadSchema;
|
|
@@ -35,6 +35,12 @@ const listPeopleEmitPayloadSchema = {
|
|
|
35
35
|
type: 'dateTime',
|
|
36
36
|
options: undefined
|
|
37
37
|
},
|
|
38
|
+
/** . */
|
|
39
|
+
'macAddresses': {
|
|
40
|
+
type: 'text',
|
|
41
|
+
isArray: true,
|
|
42
|
+
options: undefined
|
|
43
|
+
},
|
|
38
44
|
}
|
|
39
45
|
};
|
|
40
46
|
schema_1.SchemaRegistry.getInstance().trackSchema(listPeopleEmitPayloadSchema);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
+
const registerDeviceEmitPayloadSchema = {
|
|
5
|
+
id: 'registerDeviceEmitPayload',
|
|
6
|
+
version: 'v2020_12_25',
|
|
7
|
+
namespace: 'Mercury',
|
|
8
|
+
name: '',
|
|
9
|
+
fields: {
|
|
10
|
+
/** . */
|
|
11
|
+
'macAddress': {
|
|
12
|
+
type: 'id',
|
|
13
|
+
isRequired: true,
|
|
14
|
+
options: undefined
|
|
15
|
+
},
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(registerDeviceEmitPayloadSchema);
|
|
19
|
+
exports.default = registerDeviceEmitPayloadSchema;
|
package/build/.spruce/schemas/mercury/v2020_12_25/registerDeviceEmitTargetAndPayload.schema.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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 registerDeviceEmitPayload_schema_1 = __importDefault(require("./registerDeviceEmitPayload.schema"));
|
|
9
|
+
const registerDeviceEmitTargetAndPayloadSchema = {
|
|
10
|
+
id: 'registerDeviceEmitTargetAndPayload',
|
|
11
|
+
version: 'v2020_12_25',
|
|
12
|
+
namespace: 'Mercury',
|
|
13
|
+
name: '',
|
|
14
|
+
fields: {
|
|
15
|
+
/** Source. */
|
|
16
|
+
'source': {
|
|
17
|
+
label: 'Source',
|
|
18
|
+
type: 'schema',
|
|
19
|
+
options: { schema: eventSource_schema_1.default, }
|
|
20
|
+
},
|
|
21
|
+
/** . */
|
|
22
|
+
'payload': {
|
|
23
|
+
type: 'schema',
|
|
24
|
+
isRequired: true,
|
|
25
|
+
options: { schema: registerDeviceEmitPayload_schema_1.default, }
|
|
26
|
+
},
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(registerDeviceEmitTargetAndPayloadSchema);
|
|
30
|
+
exports.default = registerDeviceEmitTargetAndPayloadSchema;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
+
const registerDeviceResponsePayloadSchema = {
|
|
5
|
+
id: 'registerDeviceResponsePayload',
|
|
6
|
+
version: 'v2020_12_25',
|
|
7
|
+
namespace: 'Mercury',
|
|
8
|
+
name: '',
|
|
9
|
+
fields: {}
|
|
10
|
+
};
|
|
11
|
+
schema_1.SchemaRegistry.getInstance().trackSchema(registerDeviceResponsePayloadSchema);
|
|
12
|
+
exports.default = registerDeviceResponsePayloadSchema;
|