@sprucelabs/mercury-core-events 20.2.0 → 20.2.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 +0 -13
- package/build/.spruce/events/events.contract.js +0 -2
- package/build/.spruce/schemas/schemas.types.d.ts +169 -289
- package/build/esm/.spruce/events/events.contract.d.ts +0 -13
- package/build/esm/.spruce/events/events.contract.js +0 -2
- package/build/esm/.spruce/schemas/schemas.types.d.ts +169 -289
- package/package.json +8 -8
- package/build/.spruce/events/mercury/invokeChatCallback.v2020_12_25.contract.d.ts +0 -15
- package/build/.spruce/events/mercury/invokeChatCallback.v2020_12_25.contract.js +0 -22
- package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema.js +0 -37
- package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackPayload.schema.js +0 -24
- package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema.js +0 -19
- package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackTarget.schema.d.ts +0 -3
- package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackTarget.schema.js +0 -25
- package/build/esm/.spruce/events/mercury/invokeChatCallback.v2020_12_25.contract.d.ts +0 -15
- package/build/esm/.spruce/events/mercury/invokeChatCallback.v2020_12_25.contract.js +0 -17
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema.d.ts +0 -3
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema.js +0 -32
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackPayload.schema.d.ts +0 -3
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackPayload.schema.js +0 -22
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema.d.ts +0 -3
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema.js +0 -17
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackTarget.schema.d.ts +0 -3
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackTarget.schema.js +0 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sprucelabs/mercury-core-events",
|
|
3
|
-
"version": "20.2.
|
|
3
|
+
"version": "20.2.1",
|
|
4
4
|
"description": "Events Mercury provides out of the box.",
|
|
5
5
|
"skill": {
|
|
6
6
|
"namespace": "mercury-core-events",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"watch.tsc": "tsc -w"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@sprucelabs/esm-postbuild": "^4.0.
|
|
66
|
-
"@sprucelabs/jest-json-reporter": "^7.0.
|
|
65
|
+
"@sprucelabs/esm-postbuild": "^4.0.17",
|
|
66
|
+
"@sprucelabs/jest-json-reporter": "^7.0.31",
|
|
67
67
|
"@sprucelabs/resolve-path-aliases": "^1.1.214",
|
|
68
68
|
"@sprucelabs/semantic-release": "^4.0.8",
|
|
69
69
|
"@sprucelabs/test": "^7.7.443",
|
|
70
|
-
"@types/node": "^18.16.
|
|
70
|
+
"@types/node": "^18.16.1",
|
|
71
71
|
"chokidar-cli": "^3.0.0",
|
|
72
72
|
"concurrently": "^8.0.1",
|
|
73
73
|
"eslint": "^8.39.0",
|
|
@@ -81,10 +81,10 @@
|
|
|
81
81
|
"typescript": "^5.0.4"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@sprucelabs/mercury-types": "^44.0.
|
|
85
|
-
"@sprucelabs/schema": "^28.6.
|
|
86
|
-
"@sprucelabs/spruce-core-schemas": "^38.0.
|
|
87
|
-
"@sprucelabs/spruce-event-utils": "^36.0.
|
|
84
|
+
"@sprucelabs/mercury-types": "^44.0.29",
|
|
85
|
+
"@sprucelabs/schema": "^28.6.16",
|
|
86
|
+
"@sprucelabs/spruce-core-schemas": "^38.0.29",
|
|
87
|
+
"@sprucelabs/spruce-event-utils": "^36.0.30"
|
|
88
88
|
},
|
|
89
89
|
"jest": {
|
|
90
90
|
"testRunner": "jest-circus/runner",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import "./../../permissions/permissions.types";
|
|
2
|
-
declare const invokeChatCallbackEventContract: {
|
|
3
|
-
eventSignatures: {
|
|
4
|
-
'invoke-chat-callback::v2020_12_25': {
|
|
5
|
-
listenPermissions: {
|
|
6
|
-
contractId: "chat-bot-contract";
|
|
7
|
-
permissionIdsAny: "can-register-chat-bot"[];
|
|
8
|
-
};
|
|
9
|
-
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackEmitTargetAndPayloadSchema;
|
|
10
|
-
responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackResponsePayloadSchema;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default invokeChatCallbackEventContract;
|
|
15
|
-
export type InvokeChatCallbackEventContract = typeof invokeChatCallbackEventContract;
|
|
@@ -1,22 +0,0 @@
|
|
|
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 mercury_types_1 = require("@sprucelabs/mercury-types");
|
|
8
|
-
const invokeChatCallbackEmitTargetAndPayload_schema_1 = __importDefault(require("./../../schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema"));
|
|
9
|
-
const invokeChatCallbackResponsePayload_schema_1 = __importDefault(require("./../../schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema"));
|
|
10
|
-
const invokeChatCallbackEventContract = (0, mercury_types_1.buildEventContract)({
|
|
11
|
-
eventSignatures: {
|
|
12
|
-
'invoke-chat-callback::v2020_12_25': {
|
|
13
|
-
listenPermissions: {
|
|
14
|
-
contractId: 'chat-bot-contract',
|
|
15
|
-
permissionIdsAny: ['can-register-chat-bot'],
|
|
16
|
-
},
|
|
17
|
-
emitPayloadSchema: invokeChatCallbackEmitTargetAndPayload_schema_1.default,
|
|
18
|
-
responsePayloadSchema: invokeChatCallbackResponsePayload_schema_1.default,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
exports.default = invokeChatCallbackEventContract;
|
package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
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 invokeChatCallbackTarget_schema_1 = __importDefault(require("./invokeChatCallbackTarget.schema"));
|
|
9
|
-
const invokeChatCallbackPayload_schema_1 = __importDefault(require("./invokeChatCallbackPayload.schema"));
|
|
10
|
-
const invokeChatCallbackEmitTargetAndPayloadSchema = {
|
|
11
|
-
id: 'invokeChatCallbackEmitTargetAndPayload',
|
|
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
|
-
isRequired: true,
|
|
26
|
-
options: { schema: invokeChatCallbackTarget_schema_1.default, }
|
|
27
|
-
},
|
|
28
|
-
/** . */
|
|
29
|
-
'payload': {
|
|
30
|
-
type: 'schema',
|
|
31
|
-
isRequired: true,
|
|
32
|
-
options: { schema: invokeChatCallbackPayload_schema_1.default, }
|
|
33
|
-
},
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
schema_1.SchemaRegistry.getInstance().trackSchema(invokeChatCallbackEmitTargetAndPayloadSchema);
|
|
37
|
-
exports.default = invokeChatCallbackEmitTargetAndPayloadSchema;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
-
const invokeChatCallbackPayloadSchema = {
|
|
5
|
-
id: 'invokeChatCallbackPayload',
|
|
6
|
-
version: 'v2020_12_25',
|
|
7
|
-
namespace: 'Mercury',
|
|
8
|
-
name: '',
|
|
9
|
-
fields: {
|
|
10
|
-
/** . */
|
|
11
|
-
'placeholder': {
|
|
12
|
-
type: 'id',
|
|
13
|
-
isRequired: true,
|
|
14
|
-
options: undefined
|
|
15
|
-
},
|
|
16
|
-
/** . */
|
|
17
|
-
'state': {
|
|
18
|
-
type: 'raw',
|
|
19
|
-
options: { valueType: `Record<string, any>`, }
|
|
20
|
-
},
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
schema_1.SchemaRegistry.getInstance().trackSchema(invokeChatCallbackPayloadSchema);
|
|
24
|
-
exports.default = invokeChatCallbackPayloadSchema;
|
package/build/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
-
const invokeChatCallbackResponsePayloadSchema = {
|
|
5
|
-
id: 'invokeChatCallbackResponsePayload',
|
|
6
|
-
version: 'v2020_12_25',
|
|
7
|
-
namespace: 'Mercury',
|
|
8
|
-
name: '',
|
|
9
|
-
fields: {
|
|
10
|
-
/** . */
|
|
11
|
-
'message': {
|
|
12
|
-
type: 'text',
|
|
13
|
-
isRequired: true,
|
|
14
|
-
options: undefined
|
|
15
|
-
},
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
schema_1.SchemaRegistry.getInstance().trackSchema(invokeChatCallbackResponsePayloadSchema);
|
|
19
|
-
exports.default = invokeChatCallbackResponsePayloadSchema;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schema_1 = require("@sprucelabs/schema");
|
|
4
|
-
const invokeChatCallbackTargetSchema = {
|
|
5
|
-
id: 'invokeChatCallbackTarget',
|
|
6
|
-
version: 'v2020_12_25',
|
|
7
|
-
namespace: 'Mercury',
|
|
8
|
-
name: '',
|
|
9
|
-
fields: {
|
|
10
|
-
/** . */
|
|
11
|
-
'skillId': {
|
|
12
|
-
type: 'id',
|
|
13
|
-
isRequired: true,
|
|
14
|
-
options: undefined
|
|
15
|
-
},
|
|
16
|
-
/** . */
|
|
17
|
-
'chatPersonId': {
|
|
18
|
-
type: 'id',
|
|
19
|
-
isRequired: true,
|
|
20
|
-
options: undefined
|
|
21
|
-
},
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
schema_1.SchemaRegistry.getInstance().trackSchema(invokeChatCallbackTargetSchema);
|
|
25
|
-
exports.default = invokeChatCallbackTargetSchema;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import "./../../permissions/permissions.types";
|
|
2
|
-
declare const invokeChatCallbackEventContract: {
|
|
3
|
-
eventSignatures: {
|
|
4
|
-
'invoke-chat-callback::v2020_12_25': {
|
|
5
|
-
listenPermissions: {
|
|
6
|
-
contractId: "chat-bot-contract";
|
|
7
|
-
permissionIdsAny: "can-register-chat-bot"[];
|
|
8
|
-
};
|
|
9
|
-
emitPayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackEmitTargetAndPayloadSchema;
|
|
10
|
-
responsePayloadSchema: import("@sprucelabs/mercury-types").SpruceSchemas.Mercury.v2020_12_25.InvokeChatCallbackResponsePayloadSchema;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default invokeChatCallbackEventContract;
|
|
15
|
-
export type InvokeChatCallbackEventContract = typeof invokeChatCallbackEventContract;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import "./../../permissions/permissions.types";
|
|
2
|
-
import { buildEventContract } from '@sprucelabs/mercury-types';
|
|
3
|
-
import invokeChatCallbackEmitTargetAndPayloadSchema from './../../schemas/mercury/v2020_12_25/invokeChatCallbackEmitTargetAndPayload.schema.js';
|
|
4
|
-
import invokeChatCallbackResponsePayloadSchema from './../../schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema.js';
|
|
5
|
-
const invokeChatCallbackEventContract = buildEventContract({
|
|
6
|
-
eventSignatures: {
|
|
7
|
-
'invoke-chat-callback::v2020_12_25': {
|
|
8
|
-
listenPermissions: {
|
|
9
|
-
contractId: 'chat-bot-contract',
|
|
10
|
-
permissionIdsAny: ['can-register-chat-bot'],
|
|
11
|
-
},
|
|
12
|
-
emitPayloadSchema: invokeChatCallbackEmitTargetAndPayloadSchema,
|
|
13
|
-
responsePayloadSchema: invokeChatCallbackResponsePayloadSchema,
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
export default invokeChatCallbackEventContract;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
-
import eventSourceSchema_v2021_09_13 from './../../spruceEventUtils/v2021_09_13/eventSource.schema.js';
|
|
3
|
-
import invokeChatCallbackTargetSchema_v2020_12_25 from './invokeChatCallbackTarget.schema.js';
|
|
4
|
-
import invokeChatCallbackPayloadSchema_v2020_12_25 from './invokeChatCallbackPayload.schema.js';
|
|
5
|
-
const invokeChatCallbackEmitTargetAndPayloadSchema = {
|
|
6
|
-
id: 'invokeChatCallbackEmitTargetAndPayload',
|
|
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
|
-
isRequired: true,
|
|
21
|
-
options: { schema: invokeChatCallbackTargetSchema_v2020_12_25, }
|
|
22
|
-
},
|
|
23
|
-
/** . */
|
|
24
|
-
'payload': {
|
|
25
|
-
type: 'schema',
|
|
26
|
-
isRequired: true,
|
|
27
|
-
options: { schema: invokeChatCallbackPayloadSchema_v2020_12_25, }
|
|
28
|
-
},
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
SchemaRegistry.getInstance().trackSchema(invokeChatCallbackEmitTargetAndPayloadSchema);
|
|
32
|
-
export default invokeChatCallbackEmitTargetAndPayloadSchema;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
-
const invokeChatCallbackPayloadSchema = {
|
|
3
|
-
id: 'invokeChatCallbackPayload',
|
|
4
|
-
version: 'v2020_12_25',
|
|
5
|
-
namespace: 'Mercury',
|
|
6
|
-
name: '',
|
|
7
|
-
fields: {
|
|
8
|
-
/** . */
|
|
9
|
-
'placeholder': {
|
|
10
|
-
type: 'id',
|
|
11
|
-
isRequired: true,
|
|
12
|
-
options: undefined
|
|
13
|
-
},
|
|
14
|
-
/** . */
|
|
15
|
-
'state': {
|
|
16
|
-
type: 'raw',
|
|
17
|
-
options: { valueType: `Record<string, any>`, }
|
|
18
|
-
},
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
SchemaRegistry.getInstance().trackSchema(invokeChatCallbackPayloadSchema);
|
|
22
|
-
export default invokeChatCallbackPayloadSchema;
|
package/build/esm/.spruce/schemas/mercury/v2020_12_25/invokeChatCallbackResponsePayload.schema.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
-
const invokeChatCallbackResponsePayloadSchema = {
|
|
3
|
-
id: 'invokeChatCallbackResponsePayload',
|
|
4
|
-
version: 'v2020_12_25',
|
|
5
|
-
namespace: 'Mercury',
|
|
6
|
-
name: '',
|
|
7
|
-
fields: {
|
|
8
|
-
/** . */
|
|
9
|
-
'message': {
|
|
10
|
-
type: 'text',
|
|
11
|
-
isRequired: true,
|
|
12
|
-
options: undefined
|
|
13
|
-
},
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
SchemaRegistry.getInstance().trackSchema(invokeChatCallbackResponsePayloadSchema);
|
|
17
|
-
export default invokeChatCallbackResponsePayloadSchema;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
-
const invokeChatCallbackTargetSchema = {
|
|
3
|
-
id: 'invokeChatCallbackTarget',
|
|
4
|
-
version: 'v2020_12_25',
|
|
5
|
-
namespace: 'Mercury',
|
|
6
|
-
name: '',
|
|
7
|
-
fields: {
|
|
8
|
-
/** . */
|
|
9
|
-
'skillId': {
|
|
10
|
-
type: 'id',
|
|
11
|
-
isRequired: true,
|
|
12
|
-
options: undefined
|
|
13
|
-
},
|
|
14
|
-
/** . */
|
|
15
|
-
'chatPersonId': {
|
|
16
|
-
type: 'id',
|
|
17
|
-
isRequired: true,
|
|
18
|
-
options: undefined
|
|
19
|
-
},
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
SchemaRegistry.getInstance().trackSchema(invokeChatCallbackTargetSchema);
|
|
23
|
-
export default invokeChatCallbackTargetSchema;
|