@nx-ddd/indexed-db 19.0.0-preview.3 → 19.0.0-preview.31
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/converter/converter.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx-ddd/indexed-db",
|
|
3
|
-
"version": "19.0.0-preview.
|
|
3
|
+
"version": "19.0.0-preview.31",
|
|
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.
|
|
13
|
+
"@nx-ddd/common": "19.0.0-preview.31",
|
|
14
14
|
"tslib": "^2.3.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {},
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Entity } from '@nx-ddd/common/domain
|
|
2
|
-
import { Repository } from '@nx-ddd/common/domain/repository';
|
|
1
|
+
import { Entity, Repository } from '@nx-ddd/common/domain';
|
|
3
2
|
import { IndexedDbConverter } from '../converter';
|
|
4
3
|
export declare abstract class IndexedDbRepository<E extends Entity> extends Repository<E> {
|
|
5
4
|
protected converter: IndexedDbConverter<E>;
|
|
@@ -8,7 +7,7 @@ export declare abstract class IndexedDbRepository<E extends Entity> extends Repo
|
|
|
8
7
|
get(params: {
|
|
9
8
|
id: string;
|
|
10
9
|
}): Promise<E>;
|
|
11
|
-
create(
|
|
10
|
+
create(data: Omit<E, 'id' | 'createdAt' | 'updatedAt'> & Partial<Pick<E, 'id'>>): Promise<E>;
|
|
12
11
|
update(entity: Partial<E>): Promise<void>;
|
|
13
12
|
delete(entity: any): Promise<void>;
|
|
14
13
|
}
|
package/repository/repository.js
CHANGED
|
@@ -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
|
|
7
|
-
let IndexedDbRepository = class IndexedDbRepository extends
|
|
6
|
+
const domain_1 = require("@nx-ddd/common/domain");
|
|
7
|
+
let IndexedDbRepository = class IndexedDbRepository extends domain_1.Repository {
|
|
8
8
|
constructor(converter) {
|
|
9
9
|
super();
|
|
10
10
|
this.converter = converter;
|
|
@@ -15,7 +15,7 @@ let IndexedDbRepository = class IndexedDbRepository extends repository_1.Reposit
|
|
|
15
15
|
get(params) {
|
|
16
16
|
throw new Error('Not implemented!');
|
|
17
17
|
}
|
|
18
|
-
create(
|
|
18
|
+
create(data) {
|
|
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;
|
|
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"}
|