🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@trayio/cdk-dsl

Package Overview
Dependencies
Maintainers
0
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trayio/cdk-dsl - npm Package Compare versions

Comparing version

to
4.38.0

dist/connector/operation/OperationHandlerUtils.d.ts

3

dist/connector/operation/OperationHandler.d.ts

@@ -145,4 +145,5 @@ import { Result, ResultInterface } from '@trayio/commons/result/Result';

TriggerRequest = "trigger-request",
TriggerDestroy = "trigger-destroy"
TriggerDestroy = "trigger-destroy",
DynamicOutput = "dynamic-output"
}
//# sourceMappingURL=OperationHandler.d.ts.map

@@ -65,2 +65,3 @@ "use strict";

OperationHandlerType["TriggerDestroy"] = "trigger-destroy";
OperationHandlerType["DynamicOutput"] = "dynamic-output";
})(OperationHandlerType || (exports.OperationHandlerType = OperationHandlerType = {}));

@@ -49,2 +49,3 @@ import * as O from 'fp-ts/Option';

configureTriggerResponseHandler: <AUTH extends OperationHandlerAuth<unknown, unknown>, IN, RES>(handlerSetup: OperationHandlerSetup<AUTH, TriggerResponseOperationInput<IN, RES>, TriggerOperationHttpResponse>) => OperationHandlerReference<AUTH, TriggerResponseOperationInput<IN, RES>, TriggerOperationHttpResponse>;
configureDynamicOutputHandler: <AUTH extends OperationHandlerAuth<unknown, unknown>, IN>(handlerSetup: OperationHandlerSetup<AUTH, IN, DynamicObject>) => OperationHandlerReference<AUTH, IN, DynamicObject>;
}

@@ -51,0 +52,0 @@ export type OperationDescriptor = {

@@ -31,2 +31,3 @@ "use strict";

const DynamicType_1 = require("@trayio/commons/dynamictype/DynamicType");
const DynamicSchema_1 = require("@trayio/commons/dynamicschema/DynamicSchema");
const CallSite_1 = require("@trayio/commons/callsite/CallSite");

@@ -171,2 +172,13 @@ const CompositeOperationHandler_1 = require("./CompositeOperationHandler");

},
configureDynamicOutputHandler: (handlerSetup) => {
const descriptor = readOperationDescriptorFile();
const { name } = descriptor;
const handler = handlerSetup(OperationHandlerConfiguration.withNameAndHandlerType(`${name}_output_schema`, OperationHandler_1.OperationHandlerType.DynamicOutput).addOutputValidation((outputValidation) => outputValidation
.condition((ctx, input, output) => DynamicSchema_1.DynamicSchema.isValidJsonSchema(output))
.errorMessage(() => 'the output must be a valid JSON schema')));
OperationHandlerRegistry.register(handler);
return {
name: handler.name,
};
},
};
{
"name": "@trayio/cdk-dsl",
"version": "4.37.0",
"version": "4.38.0",
"description": "A DSL for connector development",

@@ -17,3 +17,3 @@ "exports": {

"dependencies": {
"@trayio/commons": "4.37.0"
"@trayio/commons": "4.38.0"
},

@@ -20,0 +20,0 @@ "typesVersions": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet