drimion 0.1.6 → 0.1.7

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.6",
222
+ __PKG_VERSION__: "0.1.7",
223
223
  __PKG_REPOSITORY__: "git+https://github.com/bramadl/drimion.git"
224
224
  };
225
225
  }
@@ -1,8 +1,8 @@
1
- import { BaseRepository } from "{{importAlias}}";
1
+ import { BaseRepository, type ID, type IResult } from "@pokepulse/kernel";
2
2
  // import { {{className}} } from "./path-to-your-{{lowerName}}";
3
3
 
4
4
  export class {{className}}Repository extends BaseRepository<{{className}}> {
5
- async findById(id: string): Promise<IResult<{{className}}, string>> {
5
+ async findById(id: ID): Promise<IResult<{{className}}, string>> {
6
6
  // implement fetch logic
7
7
  throw new Error("Method not implemented")
8
8
  }
@@ -12,12 +12,12 @@ export class {{className}}Repository extends BaseRepository<{{className}}> {
12
12
  throw new Error("Method not implemented")
13
13
  }
14
14
 
15
- async delete(id: string): Promise<IResult<void, string>> {
15
+ async delete(id: ID): Promise<IResult<void, string>> {
16
16
  // implement delete
17
17
  throw new Error("Method not implemented")
18
18
  }
19
19
 
20
- async exists(id: string): Promise<boolean> {
20
+ async exists(id: ID): Promise<boolean> {
21
21
  // implement existence check
22
22
  throw new Error("Method not implemented")
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drimion",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Headless DDD primitives CLI for TypeScript — own your domain",
5
5
  "keywords": [
6
6
  "ddd",