@smartsoft001/domain-core 1.0.756 → 1.0.758
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/package.json +5 -5
- package/src/index.js +7 -4
- package/src/index.js.map +1 -1
- package/src/lib/errors.js +7 -2
- package/src/lib/errors.js.map +1 -1
- package/src/lib/interfaces.js +2 -1
- package/src/lib/interfaces.js.map +1 -1
- package/src/lib/repositories.js +9 -3
- package/src/lib/repositories.js.map +1 -1
- package/src/lib/specifications.js +9 -3
- package/src/lib/specifications.js.map +1 -1
- package/test-setup.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartsoft001/domain-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.758",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"typings": "./src/index.d.ts",
|
|
6
6
|
"dependencies": {},
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@smartsoft001/models": "1.0.
|
|
8
|
+
"@smartsoft001/models": "1.0.785",
|
|
9
9
|
"reflect-metadata": "0.1.13",
|
|
10
|
-
"@smartsoft001/utils": "1.0.
|
|
10
|
+
"@smartsoft001/utils": "1.0.820",
|
|
11
11
|
"@angular/common": "13.2.7",
|
|
12
12
|
"@angular/core": "13.2.7",
|
|
13
13
|
"lodash": "^4.17.20",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"flatted": "^3.2.4",
|
|
16
16
|
"md5": "2.3.0",
|
|
17
17
|
"rxjs": "^7.0.0",
|
|
18
|
-
"@
|
|
19
|
-
"@
|
|
18
|
+
"@smartsoft001/users": "1.0.777",
|
|
19
|
+
"@angular/platform-browser-dynamic": "13.2.7"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
(0, tslib_1.__exportStar)(require("./lib/interfaces"), exports);
|
|
5
|
+
(0, tslib_1.__exportStar)(require("./lib/errors"), exports);
|
|
6
|
+
(0, tslib_1.__exportStar)(require("./lib/repositories"), exports);
|
|
7
|
+
(0, tslib_1.__exportStar)(require("./lib/specifications"), exports);
|
|
5
8
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/shared/domain-core/src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/shared/domain-core/src/index.ts"],"names":[],"mappings":";;;AAAA,gEAAiC;AACjC,4DAA6B;AAC7B,kEAAmC;AACnC,oEAAqC"}
|
package/src/lib/errors.js
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DomainForbiddenError = exports.DomainValidationError = void 0;
|
|
4
|
+
class DomainValidationError extends Error {
|
|
2
5
|
constructor(msg) {
|
|
3
6
|
super(msg);
|
|
4
7
|
this.type = DomainValidationError;
|
|
5
8
|
}
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
exports.DomainValidationError = DomainValidationError;
|
|
11
|
+
class DomainForbiddenError extends Error {
|
|
8
12
|
constructor(msg) {
|
|
9
13
|
super(msg);
|
|
10
14
|
this.type = DomainForbiddenError;
|
|
11
15
|
}
|
|
12
16
|
}
|
|
17
|
+
exports.DomainForbiddenError = DomainForbiddenError;
|
|
13
18
|
//# sourceMappingURL=errors.js.map
|
package/src/lib/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../../libs/shared/domain-core/src/lib/errors.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../../libs/shared/domain-core/src/lib/errors.ts"],"names":[],"mappings":";;;AAAA,MAAa,qBAAsB,SAAQ,KAAK;IAG5C,YAAY,GAAG;QACX,KAAK,CAAC,GAAG,CAAC,CAAC;QAHf,SAAI,GAAG,qBAAqB,CAAC;IAI7B,CAAC;CACJ;AAND,sDAMC;AAED,MAAa,oBAAqB,SAAQ,KAAK;IAG3C,YAAY,GAAG;QACX,KAAK,CAAC,GAAG,CAAC,CAAC;QAHf,SAAI,GAAG,oBAAoB,CAAC;IAI5B,CAAC;CACJ;AAND,oDAMC"}
|
package/src/lib/interfaces.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../libs/shared/domain-core/src/lib/interfaces.ts"],"names":[],"mappings":""
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../libs/shared/domain-core/src/lib/interfaces.ts"],"names":[],"mappings":""}
|
package/src/lib/repositories.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IAttachmentRepository = exports.IItemRepository = exports.IUnitOfWork = void 0;
|
|
1
4
|
;
|
|
2
|
-
|
|
5
|
+
class IUnitOfWork {
|
|
3
6
|
}
|
|
4
|
-
|
|
7
|
+
exports.IUnitOfWork = IUnitOfWork;
|
|
8
|
+
class IItemRepository {
|
|
5
9
|
}
|
|
6
|
-
|
|
10
|
+
exports.IItemRepository = IItemRepository;
|
|
11
|
+
class IAttachmentRepository {
|
|
7
12
|
}
|
|
13
|
+
exports.IAttachmentRepository = IAttachmentRepository;
|
|
8
14
|
//# sourceMappingURL=repositories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repositories.js","sourceRoot":"","sources":["../../../../../../libs/shared/domain-core/src/lib/repositories.ts"],"names":[],"mappings":"AASC,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"repositories.js","sourceRoot":"","sources":["../../../../../../libs/shared/domain-core/src/lib/repositories.ts"],"names":[],"mappings":";;;AASC,CAAC;AAEF,MAAsB,WAAW;CAEhC;AAFD,kCAEC;AAOD,MAAsB,eAAe;CA8CpC;AA9CD,0CA8CC;AAED,MAAsB,qBAAqB;CAW1C;AAXD,sDAWC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AndSpecification = exports.OrSpecification = exports.MergeSpecification = void 0;
|
|
4
|
+
class MergeSpecification {
|
|
2
5
|
constructor(...spec) {
|
|
3
6
|
this.criteria = {};
|
|
4
7
|
spec.forEach(s => {
|
|
@@ -6,18 +9,21 @@ export class MergeSpecification {
|
|
|
6
9
|
});
|
|
7
10
|
}
|
|
8
11
|
}
|
|
9
|
-
|
|
12
|
+
exports.MergeSpecification = MergeSpecification;
|
|
13
|
+
class OrSpecification {
|
|
10
14
|
constructor(...spec) {
|
|
11
15
|
this.criteria = {
|
|
12
16
|
$or: spec.map(c => c.criteria)
|
|
13
17
|
};
|
|
14
18
|
}
|
|
15
19
|
}
|
|
16
|
-
|
|
20
|
+
exports.OrSpecification = OrSpecification;
|
|
21
|
+
class AndSpecification {
|
|
17
22
|
constructor(...spec) {
|
|
18
23
|
this.criteria = {
|
|
19
24
|
$and: spec.map(c => c.criteria)
|
|
20
25
|
};
|
|
21
26
|
}
|
|
22
27
|
}
|
|
28
|
+
exports.AndSpecification = AndSpecification;
|
|
23
29
|
//# sourceMappingURL=specifications.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"specifications.js","sourceRoot":"","sources":["../../../../../../libs/shared/domain-core/src/lib/specifications.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"specifications.js","sourceRoot":"","sources":["../../../../../../libs/shared/domain-core/src/lib/specifications.ts"],"names":[],"mappings":";;;AAEA,MAAa,kBAAkB;IAG3B,YAAY,GAAG,IAA2B;QACtC,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QAEnB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YACd,IAAI,CAAC,QAAQ,mCACN,IAAI,CAAC,QAAQ,GACb,CAAC,CAAC,QAAQ,CAChB,CAAA;QACJ,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAbD,gDAaC;AAED,MAAa,eAAe;IAGxB,YAAY,GAAG,IAA2B;QACtC,IAAI,CAAC,QAAQ,GAAG;YACZ,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;SACjC,CAAC;IACN,CAAC;CACJ;AARD,0CAQC;AAED,MAAa,gBAAgB;IAGzB,YAAY,GAAG,IAA2B;QACtC,IAAI,CAAC,QAAQ,GAAG;YACZ,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;SAClC,CAAC;IACN,CAAC;CACJ;AARD,4CAQC"}
|
package/test-setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-setup.js","sourceRoot":"","sources":["../../../../libs/shared/domain-core/test-setup.ts"],"names":[],"mappings":""
|
|
1
|
+
{"version":3,"file":"test-setup.js","sourceRoot":"","sources":["../../../../libs/shared/domain-core/test-setup.ts"],"names":[],"mappings":""}
|