@bitloops/bl-transpiler
Version:
The one and only Bitloops Language transpiler
87 lines • 4.38 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.domainServiceKey = exports.IntegrationEventHandlerOptions = exports.DomainEventIdentifierKey = exports.queryHandlerKey = exports.commandHandlerKey = exports.queryKey = exports.commandKey = exports.repoPortIdentifierKey = exports.repoPortKey = exports.ServicePortIdentifierKey = exports.PackagePortKey = exports.PackagePortIdentifierKey = exports.methodDefinitionListKey = exports.configInvocationKey = exports.languageKey = exports.DTOKey = exports.DTOIdentifierKey = exports.structIdentifierKey = exports.StructKey = exports.RootEntityKey = exports.variableDeclarationKey = exports.constDeclarationKey = exports.returnErrorKey = exports.returnOKKey = exports.expressionKey = exports.ApplicationErrorIdentifier = exports.ApplicationErrorKey = exports.DomainErrorIdentifier = exports.DomainErrorKey = exports.bitloopsPrimaryTypeKey = exports.arrayPrimaryTypeKey = exports.bitloopsIdentifiersTypeKey = exports.standardVOTypeKey = exports.builtInClassTypeKey = exports.primitivesTypeKey = exports.bitloopsBuiltInClasses = exports.BitloopsBuiltInClassNames = exports.bitloopsPrimitivesObj = exports.bitloopsPrimitives = exports.ReadModelKey = exports.ReadModelIdentifierKey = exports.PropsKey = exports.PropsIdentifierKey = exports.fieldKey = exports.optionalKey = exports.identifierKey = exports.evaluationFieldsKey = exports.fieldsKey = void 0;
const ArrayUtils_js_1 = require("./utils/ArrayUtils.js");
exports.fieldsKey = 'fields';
exports.evaluationFieldsKey = 'fields';
exports.identifierKey = 'identifier';
exports.optionalKey = 'optional';
exports.fieldKey = 'field';
exports.PropsIdentifierKey = 'propsIdentifier';
exports.PropsKey = 'Props';
exports.ReadModelIdentifierKey = 'readModelIdentifier';
exports.ReadModelKey = 'ReadModel';
// Needed to check type on runtime, otherwise simple literal gets thrown away.
exports.bitloopsPrimitives = [
'double',
'float',
'int32',
'int64',
'uint32',
'uint64',
'sint32',
'sint64',
'fixed32',
'fixed64',
'sfixed32',
'sfixed64',
'bool',
'string',
'backTickString',
'bytes',
'enum',
'Timestamp',
'Any',
'Struct',
'Map',
'NullValue',
'Duration',
'regex',
'void',
];
exports.bitloopsPrimitivesObj = ArrayUtils_js_1.ArrayUtils.toObject([
...exports.bitloopsPrimitives,
]);
exports.BitloopsBuiltInClassNames = {
UUIDv4: 'UUIDv4',
};
exports.bitloopsBuiltInClasses = [exports.BitloopsBuiltInClassNames.UUIDv4];
exports.primitivesTypeKey = 'primitiveType';
exports.builtInClassTypeKey = 'builtInClassType';
exports.standardVOTypeKey = 'standardVOType';
exports.bitloopsIdentifiersTypeKey = 'bitloopsIdentifierType';
exports.arrayPrimaryTypeKey = 'arrayPrimaryType';
exports.bitloopsPrimaryTypeKey = 'type';
exports.DomainErrorKey = 'DomainError';
exports.DomainErrorIdentifier = 'identifier';
exports.ApplicationErrorKey = 'ApplicationError';
exports.ApplicationErrorIdentifier = 'identifier';
exports.expressionKey = 'expression';
exports.returnOKKey = 'returnOK';
exports.returnErrorKey = 'returnError';
exports.constDeclarationKey = 'constDeclaration';
exports.variableDeclarationKey = 'variableDeclaration';
exports.RootEntityKey = 'RootEntity';
exports.StructKey = 'Struct';
exports.structIdentifierKey = 'StructIdentifier';
exports.DTOIdentifierKey = 'DTOIdentifier';
exports.DTOKey = 'DTO';
exports.languageKey = 'language';
exports.configInvocationKey = 'configInvocation';
exports.methodDefinitionListKey = 'methodDefinitionList';
exports.PackagePortIdentifierKey = 'PackagePortIdentifier';
exports.PackagePortKey = 'PackagePort';
exports.ServicePortIdentifierKey = 'ServicePortIdentifier';
exports.repoPortKey = 'RepoPort';
exports.repoPortIdentifierKey = 'repoPortIdentifier';
exports.commandKey = 'command';
exports.queryKey = 'query';
exports.commandHandlerKey = 'commandHandler';
exports.queryHandlerKey = 'queryHandler';
exports.DomainEventIdentifierKey = 'DomainEventIdentifier';
var IntegrationEventHandlerOptions;
(function (IntegrationEventHandlerOptions) {
IntegrationEventHandlerOptions["eventVersion"] = "eventVersion";
})(IntegrationEventHandlerOptions = exports.IntegrationEventHandlerOptions || (exports.IntegrationEventHandlerOptions = {}));
exports.domainServiceKey = 'domainService';
//# sourceMappingURL=types.js.map