UNPKG

@joshfarrant/shortcuts-js

Version:
26 lines 753 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("../utils"); /** * @action Get Current IP Address * @section Actions > Scripting > Device * @icon Network * * Returns the local or external IP address of the device. * * ```js * getCurrentIPAddress({ * address: 'External', * type: 'IPv4', * }); * ``` */ const getCurrentIPAddress = ({ address = 'External', type = 'IPv4', }) => ({ WFWorkflowActionIdentifier: 'is.workflow.actions.getipaddress', WFWorkflowActionParameters: { WFIPAddressSourceOption: address, WFIPAddressTypeOption: type, }, }); exports.default = utils_1.withActionOutput(getCurrentIPAddress); //# sourceMappingURL=getCurrentIPAddress.js.map