drimion 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -219,7 +219,7 @@ function resolvePackageManager() {
219
219
  if (true) {
220
220
  return {
221
221
  __PKG_NAME__: "drimion",
222
- __PKG_VERSION__: "0.1.8",
222
+ __PKG_VERSION__: "0.1.10",
223
223
  __PKG_REPOSITORY__: "git+https://github.com/bramadl/drimion.git"
224
224
  };
225
225
  }
@@ -20,7 +20,9 @@ export type {{className}}Metadata = {
20
20
  * Decide wether you want to use `IQuery` or `ICommand` then change the `IUseCase` usage into one of them.
21
21
  */
22
22
  export class {{className}} implements IUseCase<{{className}}Input, {{className}}Output> {
23
- async execute(input: {{className}}Input): Promise<IResult<{{className}}Output, string, {{className}}Metadata>> {
23
+ public constructor() {}
24
+
25
+ public async execute(input: {{className}}Input): Promise<IResult<{{className}}Output, string, {{className}}Metadata>> {
24
26
  // implement use case
25
27
  throw new Error("Method not implemented")
26
28
  }
@@ -50,7 +50,7 @@ export abstract class BaseRepository<T extends Entity<IEntityProps>, ID = UID> {
50
50
  * @param id The entity's unique identifier.
51
51
  * @returns A `Result` containing the entity if found, or an error if not.
52
52
  */
53
- abstract findById(id: ID): Promise<IResult<T, string>>;
53
+ abstract findById(id: ID): Promise<IResult<T | null, string>>;
54
54
 
55
55
  /**
56
56
  * @description
@@ -71,3 +71,7 @@ export type {
71
71
  // ── Utils ──────────────────────────────────────────────────────────────────
72
72
  export { DeepFreeze, StableStringify } from "./utils/object.utils";
73
73
  export { InvalidPropsType } from "./utils/type.utils";
74
+
75
+ import validator from "./libs/validator";
76
+
77
+ export { validator };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drimion",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "Headless DDD primitives CLI for TypeScript — own your domain",
5
5
  "keywords": [
6
6
  "ddd",