19 lines
410 B
JavaScript
19 lines
410 B
JavaScript
|
|
"use strict";
|
||
|
|
|
||
|
|
function createNotImplementedResult(capabilityId) {
|
||
|
|
return {
|
||
|
|
ok: false,
|
||
|
|
code: "CAPABILITY_NOT_IMPLEMENTED",
|
||
|
|
error: `Capability "${capabilityId}" is not implemented yet.`,
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
function createNotImplementedHandler(capabilityId) {
|
||
|
|
return async () => createNotImplementedResult(capabilityId);
|
||
|
|
}
|
||
|
|
|
||
|
|
module.exports = {
|
||
|
|
createNotImplementedResult,
|
||
|
|
createNotImplementedHandler,
|
||
|
|
};
|