@piggly/ddd-toolkit
Advanced tools
Comparing version 3.3.2 to 3.4.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.splitAndTrim = exports.mountURL = exports.toRFC3339 = exports.toMoment = exports.toArray = exports.toJSON = exports.randomString = exports.removeIndex = exports.removeItem = exports.parseToJson = exports.preserve = exports.parseEmpty = exports.getTimestamp = exports.deleteKeys = exports.lastAvailableString = exports.commaStringAsArray = exports.DateParser = exports.EntityIdMismatchError = exports.InvalidPayloadError = exports.BusinessRuleViolationError = exports.InvalidSchemaError = exports.RuntimeError = exports.ApplicationError = exports.DomainError = exports.UseCase = exports.ServiceProvider = exports.InfraService = exports.ApplicationService = exports.DomainService = exports.Service = exports.EventEmmiter = exports.DomainEvent = exports.Adapter = exports.MapCollectionOfValueObjects = exports.CollectionOfValueObjects = exports.AbstractCollectionOfEntities = exports.CollectionOfRelatedEnhancedEntity = exports.CollectionOfRelatedEntity = exports.CollectionOfEnhancedEntity = exports.CollectionOfEntity = exports.SchemaValidator = exports.AggregateRoot = exports.ResultChain = exports.Result = exports.EnhancedAttribute = exports.ValueObject = exports.EntityID = exports.EnhancedEntity = exports.OptionalEntity = exports.Entity = void 0; | ||
exports.schemaValidator = void 0; | ||
exports.toMoment = exports.toArray = exports.toJSON = exports.randomString = exports.removeIndex = exports.removeItem = exports.parseToJson = exports.preserve = exports.parseEmpty = exports.getTimestamp = exports.deleteKeys = exports.lastAvailableString = exports.commaStringAsArray = exports.DateParser = exports.EntityIdMismatchError = exports.InvalidPayloadError = exports.BusinessRuleViolationError = exports.InvalidSchemaError = exports.RuntimeError = exports.ApplicationError = exports.DomainError = exports.UseCase = exports.ServiceProvider = exports.InfraService = exports.ApplicationService = exports.DomainService = exports.Service = exports.EventEmmiter = exports.DomainEvent = exports.Adapter = exports.MapCollectionOfValueObjects = exports.CollectionOfValueObjects = exports.AbstractCollectionOfEntities = exports.CollectionOfRelatedEnhancedEntity = exports.CollectionOfRelatedEntity = exports.CollectionOfEnhancedEntity = exports.CollectionOfEntity = exports.AbstractCollectionOfAttributes = exports.CollectionOfAttributes = exports.Attribute = exports.SchemaValidator = exports.AggregateRoot = exports.ResultChain = exports.Result = exports.EnhancedAttribute = exports.ValueObject = exports.EntityID = exports.EnhancedEntity = exports.OptionalEntity = exports.Entity = void 0; | ||
exports.schemaValidator = exports.splitAndTrim = exports.mountURL = exports.toRFC3339 = void 0; | ||
var Entity_1 = require("./core/Entity.js"); | ||
@@ -25,2 +25,8 @@ Object.defineProperty(exports, "Entity", { enumerable: true, get: function () { return Entity_1.Entity; } }); | ||
Object.defineProperty(exports, "SchemaValidator", { enumerable: true, get: function () { return SchemaValidator_1.SchemaValidator; } }); | ||
var Attribute_1 = require("./core/Attribute.js"); | ||
Object.defineProperty(exports, "Attribute", { enumerable: true, get: function () { return Attribute_1.Attribute; } }); | ||
var CollectionOfAttributes_1 = require("./core/CollectionOfAttributes.js"); | ||
Object.defineProperty(exports, "CollectionOfAttributes", { enumerable: true, get: function () { return CollectionOfAttributes_1.CollectionOfAttributes; } }); | ||
var AbstractCollectionOfAttributes_1 = require("./core/AbstractCollectionOfAttributes.js"); | ||
Object.defineProperty(exports, "AbstractCollectionOfAttributes", { enumerable: true, get: function () { return AbstractCollectionOfAttributes_1.AbstractCollectionOfAttributes; } }); | ||
var CollectionOfEntity_1 = require("./core/CollectionOfEntity.js"); | ||
@@ -27,0 +33,0 @@ Object.defineProperty(exports, "CollectionOfEntity", { enumerable: true, get: function () { return CollectionOfEntity_1.CollectionOfEntity; } }); |
@@ -11,2 +11,5 @@ export { Entity } from './core/Entity.js'; | ||
export { SchemaValidator } from './core/SchemaValidator.js'; | ||
export { Attribute } from './core/Attribute.js'; | ||
export { CollectionOfAttributes } from './core/CollectionOfAttributes.js'; | ||
export { AbstractCollectionOfAttributes } from './core/AbstractCollectionOfAttributes.js'; | ||
export { CollectionOfEntity } from './core/CollectionOfEntity.js'; | ||
@@ -13,0 +16,0 @@ export { CollectionOfEnhancedEntity } from './core/CollectionOfEnhancedEntity.js'; |
@@ -27,1 +27,6 @@ import type { TOrAnother } from '../../types'; | ||
} | ||
export interface IAttribute<Props extends Record<any, any> = Record<any, any>> { | ||
clone(): IAttribute<Props>; | ||
hash(): string; | ||
equals(a: IAttribute<Props> | undefined | null): boolean; | ||
} |
@@ -11,2 +11,5 @@ export { Entity } from './core/Entity'; | ||
export { SchemaValidator } from './core/SchemaValidator'; | ||
export { Attribute } from './core/Attribute'; | ||
export { CollectionOfAttributes } from './core/CollectionOfAttributes'; | ||
export { AbstractCollectionOfAttributes } from './core/AbstractCollectionOfAttributes'; | ||
export { CollectionOfEntity } from './core/CollectionOfEntity'; | ||
@@ -39,2 +42,2 @@ export { CollectionOfEnhancedEntity } from './core/CollectionOfEnhancedEntity'; | ||
export type { DomainErrorJSON, ApplicationErrorJSON, RuntimeErrorJSON, PreviousErrorJSON, PreviousError, DomainErrorHiddenProp, IDomainError, IApplicationError, IRuntimeError, } from './core/errors/types'; | ||
export type { RelatedEntity, RelatedEnhancedEntity, IDomainEvent, EventListener, ResultFn, ResultReturnType, } from './core/types'; | ||
export type { RelatedEntity, RelatedEnhancedEntity, IDomainEvent, EventListener, ResultFn, ResultReturnType, IEntity, IAttribute, } from './core/types'; |
{ | ||
"name": "@piggly/ddd-toolkit", | ||
"version": "3.3.2", | ||
"version": "3.4.0", | ||
"description": "A bunch of tools to use Model-Driven Design and Domain-Driven Design architecture in a back-end application.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
395192
214
10495