@anpdgovbr/shared-types
Version:
Biblioteca central de tipos TypeScript compartilhados para os projetos da ANPD (BETA)
54 lines (53 loc) • 4.6 kB
JavaScript
;
/**
* @module Base
*
* @remarks
* Este módulo reexporta as interfaces base utilizadas em todo o projeto, incluindo entidades base,
* entidades nomeadas, suporte a exclusão lógica (soft delete), contexto de auditoria e entidades auditáveis.
*
* @packageDocumentation
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.CACHE_CONFIG = exports.ERROR_MESSAGES = exports.REGEX_PATTERNS = exports.AUDIT_CONFIG = exports.HTTP_STATUS = exports.DATE_FORMATS = exports.STRING_LIMITS = exports.SORT_ORDER = exports.PAGINATION_LIMITS = exports.isNonEmptyString = exports.isNonEmptyArray = exports.isRecentlyUpdated = exports.isRecentlyCreated = exports.isAuditedEntity = exports.isCorrelationIds = exports.isAuditContext = exports.isInactive = exports.isActive = exports.isSoftDelete = exports.isNamedEntity = exports.isBaseEntity = exports.assertUUID = exports.isUUID = exports.UUID_V4_PATTERN = void 0;
var uuid_type_1 = require("./uuid.type");
Object.defineProperty(exports, "UUID_V4_PATTERN", { enumerable: true, get: function () { return uuid_type_1.UUID_V4_PATTERN; } });
Object.defineProperty(exports, "isUUID", { enumerable: true, get: function () { return uuid_type_1.isUUID; } });
Object.defineProperty(exports, "assertUUID", { enumerable: true, get: function () { return uuid_type_1.assertUUID; } });
/**
* Reexporta validadores de tipo (type guards).
*
* @remarks
* Funções que permitem verificar em tempo de execução se um valor implementa
* determinada interface do domínio (ex.: isBaseEntity, isAuditedEntity).
*/
var type_guards_1 = require("./type-guards");
Object.defineProperty(exports, "isBaseEntity", { enumerable: true, get: function () { return type_guards_1.isBaseEntity; } });
Object.defineProperty(exports, "isNamedEntity", { enumerable: true, get: function () { return type_guards_1.isNamedEntity; } });
Object.defineProperty(exports, "isSoftDelete", { enumerable: true, get: function () { return type_guards_1.isSoftDelete; } });
Object.defineProperty(exports, "isActive", { enumerable: true, get: function () { return type_guards_1.isActive; } });
Object.defineProperty(exports, "isInactive", { enumerable: true, get: function () { return type_guards_1.isInactive; } });
Object.defineProperty(exports, "isAuditContext", { enumerable: true, get: function () { return type_guards_1.isAuditContext; } });
Object.defineProperty(exports, "isCorrelationIds", { enumerable: true, get: function () { return type_guards_1.isCorrelationIds; } });
Object.defineProperty(exports, "isAuditedEntity", { enumerable: true, get: function () { return type_guards_1.isAuditedEntity; } });
Object.defineProperty(exports, "isRecentlyCreated", { enumerable: true, get: function () { return type_guards_1.isRecentlyCreated; } });
Object.defineProperty(exports, "isRecentlyUpdated", { enumerable: true, get: function () { return type_guards_1.isRecentlyUpdated; } });
Object.defineProperty(exports, "isNonEmptyArray", { enumerable: true, get: function () { return type_guards_1.isNonEmptyArray; } });
Object.defineProperty(exports, "isNonEmptyString", { enumerable: true, get: function () { return type_guards_1.isNonEmptyString; } });
/**
* Reexporta constantes e configurações globais do módulo base.
*
* @remarks
* Inclui limites de paginação, formatos de data, padrões de regex, mensagens de erro
* e outras constantes utilizadas ao longo do sistema.
*/
var constants_1 = require("./constants");
Object.defineProperty(exports, "PAGINATION_LIMITS", { enumerable: true, get: function () { return constants_1.PAGINATION_LIMITS; } });
Object.defineProperty(exports, "SORT_ORDER", { enumerable: true, get: function () { return constants_1.SORT_ORDER; } });
Object.defineProperty(exports, "STRING_LIMITS", { enumerable: true, get: function () { return constants_1.STRING_LIMITS; } });
Object.defineProperty(exports, "DATE_FORMATS", { enumerable: true, get: function () { return constants_1.DATE_FORMATS; } });
Object.defineProperty(exports, "HTTP_STATUS", { enumerable: true, get: function () { return constants_1.HTTP_STATUS; } });
Object.defineProperty(exports, "AUDIT_CONFIG", { enumerable: true, get: function () { return constants_1.AUDIT_CONFIG; } });
Object.defineProperty(exports, "REGEX_PATTERNS", { enumerable: true, get: function () { return constants_1.REGEX_PATTERNS; } });
Object.defineProperty(exports, "ERROR_MESSAGES", { enumerable: true, get: function () { return constants_1.ERROR_MESSAGES; } });
Object.defineProperty(exports, "CACHE_CONFIG", { enumerable: true, get: function () { return constants_1.CACHE_CONFIG; } });