@nx-ddd/indexed-db 19.0.0-preview.28 → 19.0.0-preview.3

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.
@@ -1,4 +1,4 @@
1
- import { Entity } from '@nx-ddd/common/domain';
1
+ import { Entity } from '@nx-ddd/common/domain/models';
2
2
  export interface IndexedDbConverter<E extends Entity> {
3
3
  fromIndexedDb(): E;
4
4
  toIndexedDb(): object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx-ddd/indexed-db",
3
- "version": "19.0.0-preview.28",
3
+ "version": "19.0.0-preview.3",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "homepage": "https://github.com/xx-machina/plaform/tree/main/packages/@nx-ddd/indexed-db",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "peerDependencies": {
12
12
  "@angular/core": "19.1.4",
13
- "@nx-ddd/common": "19.0.0-preview.28",
13
+ "@nx-ddd/common": "19.0.0-preview.3",
14
14
  "tslib": "^2.3.0"
15
15
  },
16
16
  "dependencies": {},
@@ -1,4 +1,5 @@
1
- import { Entity, Repository } from '@nx-ddd/common/domain';
1
+ import { Entity } from '@nx-ddd/common/domain/models';
2
+ import { Repository } from '@nx-ddd/common/domain/repository';
2
3
  import { IndexedDbConverter } from '../converter';
3
4
  export declare abstract class IndexedDbRepository<E extends Entity> extends Repository<E> {
4
5
  protected converter: IndexedDbConverter<E>;
@@ -7,7 +8,7 @@ export declare abstract class IndexedDbRepository<E extends Entity> extends Repo
7
8
  get(params: {
8
9
  id: string;
9
10
  }): Promise<E>;
10
- create(data: Omit<E, 'id' | 'createdAt' | 'updatedAt'> & Partial<Pick<E, 'id'>>): Promise<E>;
11
+ create(entity: Partial<E>): Promise<E>;
11
12
  update(entity: Partial<E>): Promise<void>;
12
13
  delete(entity: any): Promise<void>;
13
14
  }
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IndexedDbRepository = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const core_1 = require("@angular/core");
6
- const domain_1 = require("@nx-ddd/common/domain");
7
- let IndexedDbRepository = class IndexedDbRepository extends domain_1.Repository {
6
+ const repository_1 = require("@nx-ddd/common/domain/repository");
7
+ let IndexedDbRepository = class IndexedDbRepository extends repository_1.Repository {
8
8
  constructor(converter) {
9
9
  super();
10
10
  this.converter = converter;
@@ -15,7 +15,7 @@ let IndexedDbRepository = class IndexedDbRepository extends domain_1.Repository
15
15
  get(params) {
16
16
  throw new Error('Not implemented!');
17
17
  }
18
- create(data) {
18
+ create(entity) {
19
19
  throw new Error('Not implemented!');
20
20
  }
21
21
  update(entity) {
@@ -1 +1 @@
1
- {"version":3,"file":"repository.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/indexed-db/src/lib/repository/repository.ts"],"names":[],"mappings":";;;;AAAA,wCAA2C;AAC3C,kDAA2D;AAIpD,IAAe,mBAAmB,GAAlC,MAAe,mBAAsC,SAAQ,mBAAa;IAC/E,YACY,SAAgC;QAE1C,KAAK,EAAE,CAAC;QAFE,cAAS,GAAT,SAAS,CAAuB;IAG5C,CAAC;IAED,IAAI;QACF,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;IAED,GAAG,CAAC,MAAoB;QACtB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,CAAC,IAAwE;QAC7E,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,CAAC,MAAkB;QACvB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,CAAC,MAAW;QAChB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;CACF,CAAA;AA1BqB,kDAAmB;8BAAnB,mBAAmB;IADxC,IAAA,iBAAU,GAAE;;GACS,mBAAmB,CA0BxC"}
1
+ {"version":3,"file":"repository.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/indexed-db/src/lib/repository/repository.ts"],"names":[],"mappings":";;;;AAAA,wCAA2C;AAE3C,iEAA8D;AAIvD,IAAe,mBAAmB,GAAlC,MAAe,mBAAsC,SAAQ,uBAAa;IAC/E,YACY,SAAgC;QAE1C,KAAK,EAAE,CAAC;QAFE,cAAS,GAAT,SAAS,CAAuB;IAG5C,CAAC;IAED,IAAI;QACF,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;IAED,GAAG,CAAC,MAAoB;QACtB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,CAAC,MAAkB;QACvB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,CAAC,MAAkB;QACvB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,CAAC,MAAW;QAChB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;CACF,CAAA;AA1BqB,kDAAmB;8BAAnB,mBAAmB;IADxC,IAAA,iBAAU,GAAE;;GACS,mBAAmB,CA0BxC"}