UNPKG

@ords/core

Version:

Microservice architecture with service proposals in nodejs and typescript

56 lines (55 loc) 1.61 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Proposal for pesant taking care of the microservices * root: none is attacted */ var main; (function (main) { /** * Operational flags */ var flag; (function (flag) { /** * Indicate that a flag is send */ flag.FLAGSEND = 'flag_send'; /** * Flags for datatype */ var dataType; (function (dataType) { /** * Data type send back is array */ dataType.MULTIPLE = 'array is returned'; /** * Object is send back */ dataType.OBJECT = 'OBJECT IS RETURNED'; /** * Raw value suca as a number or date returned */ dataType.RAW = 'string number or other'; })(dataType = flag.dataType || (flag.dataType = {})); /** * Common errors */ var error; (function (error) { /** * No root found */ error.NO_ROOT_FOUND = 'No root found for command'; /** * No operation by that name is found on root */ error.NO_NAME_ON_ROOT = 'No name on root found'; /** * Microservice allready exists on root */ error.NAME_ON_ROOT_EXISTS = 'Name on root allready exists'; })(error = flag.error || (flag.error = {})); })(flag = main.flag || (main.flag = {})); })(main = exports.main || (exports.main = {}));