Initial commit

This commit is contained in:
2023-08-29 19:55:48 +02:00
commit 7c2eec4446
473 changed files with 40947 additions and 0 deletions

39
Backend/dist/Integrations/ActionAPI.js vendored Normal file
View File

@@ -0,0 +1,39 @@
exports.__esModule = true;
exports.ActionAPI = void 0;
var Logger_1 = require("../Logger");
var ActionAPI = /** @class */ (function () {
function ActionAPI(settings) {
this._integrationID = settings.integrationID;
}
/**
* @deprecated
* Replaced by 'OnExecute'
*/
ActionAPI.prototype.handle = function (callback) {
if (this._hdl == undefined) {
this._hdl = callback;
}
else
Logger_1.Log('error', "Unable to register two 'handle' events");
};
ActionAPI.prototype.onExecute = function (callback) {
if (this._hdl == undefined) {
this._hdl = callback;
}
else
Logger_1.Log('error', "Unable to register two 'onExecute' (Used to be 'handle') events");
};
ActionAPI.prototype.onOpenEditor = function (callback) {
if (this._openEditor == undefined) {
this._openEditor = callback;
}
else
Logger_1.Log('error', "Unable to register two 'onOpenEditor' events");
};
ActionAPI.prototype.getConnection = function (connectionType, connectionID) {
return Undecked.Connections.getConnection(this._integrationID, connectionType, connectionID);
};
return ActionAPI;
}());
exports.ActionAPI = ActionAPI;
//# sourceMappingURL=ActionAPI.js.map