UNPKG

@crowdin/app-project-module

Version:

Module that generates for you all common endpoints for serving standalone Crowdin App

16 lines (15 loc) 704 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAutomationActionUrl = exports.getAutomationActionKey = void 0; const lodash_kebabcase_1 = __importDefault(require("lodash.kebabcase")); function getAutomationActionKey(automationAction) { return (0, lodash_kebabcase_1.default)(automationAction.name); } exports.getAutomationActionKey = getAutomationActionKey; function getAutomationActionUrl(path, automationAction) { return `${path}/${automationAction.key}`; } exports.getAutomationActionUrl = getAutomationActionUrl;