UNPKG

@topgroup/diginext

Version:

A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.

12 lines (11 loc) 562 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.dxSendEmail = void 0; const app_config_1 = require("../../app.config"); const dx_api_1 = require("./dx-api"); async function dxSendEmail(params, dxKey, options) { if ((0, app_config_1.IsTest)()) return { status: 1, data: { succeed: 1, failure: 0 } }; return (0, dx_api_1.dxApi)({ url: "/email/send", data: params, method: "POST", dxKey, isDebugging: options === null || options === void 0 ? void 0 : options.isDebugging }); } exports.dxSendEmail = dxSendEmail;