@forge/jira-bridge

0.40.0-next.0-experimental-90651450.40.0-next.1
out/custom-field/getCustomFieldInternalAPI.js
out/custom-field/getCustomFieldInternalAPI.js
+20
Index: package/out/custom-field/getCustomFieldInternalAPI.js
===================================================================
--- package/out/custom-field/getCustomFieldInternalAPI.js
+++ package/out/custom-field/getCustomFieldInternalAPI.js
@@ -0,0 +1,20 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.getCustomFieldInternalAPI = void 0;
+const errors_1 = require("../errors");
+const bridge_1 = require("../bridge");
+const callBridge = (0, bridge_1.getCallBridge)();
+async function getCustomFieldInternalAPI() {
+    var _a, _b;
+    let internalAPI;
+    try {
+        internalAPI = await callBridge('getCustomFieldInternalAPI');
+        return internalAPI;
+    }
+    catch (err) {
+        (_b = (_a = internalAPI === null || internalAPI === void 0 ? void 0 : internalAPI.actions) === null || _a === void 0 ? void 0 : _a.onBridgeError) === null || _b === void 0 ? void 0 : _b.call(_a, { error: errors_1.GET_API_ERROR, cause: err });
+        const message = err instanceof Error ? err.message : String(err);
+        throw new errors_1.BridgeAPIError('Unable to initialize custom field module: ' + message);
+    }
+}
+exports.getCustomFieldInternalAPI = getCustomFieldInternalAPI;