import { defaultServiceTrn } from "./env";
const PARENT_MESSAGE_KEY = "ctx-key-parent-message";
export const withParentMessage = (ctx, parent) => {
    return Object.assign(Object.assign({}, ctx), { [PARENT_MESSAGE_KEY]: parent });
};
export const getParentMessage = (ctx) => {
    const l = ctx[PARENT_MESSAGE_KEY];
    if (l == undefined) {
        return "";
    }
    return l;
};
const SERVICE_TRN_KEY = "ctx-key-service-trn";
export const withServiceTrn = (ctx, trn) => {
    return Object.assign(Object.assign({}, ctx), { [SERVICE_TRN_KEY]: trn });
};
export const getServiceTrn = (ctx) => {
    const l = ctx[SERVICE_TRN_KEY];
    if (l == undefined) {
        return defaultServiceTrn;
    }
    return l;
};
//# sourceMappingURL=context.js.map