@acorex-platform/module-person-core-server 0.0.15 → 2.0.0-next.42
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/contracts/src/contact-assignment.actions.js.map +1 -1
- package/contracts/src/contact-assignment.utils.js +3 -2
- package/contracts/src/contact-assignment.utils.js.map +1 -1
- package/contracts/src/entities/contact-assignment/contact-assignment.entity.js +13 -0
- package/contracts/src/entities/contact-assignment/contact-assignment.entity.js.map +1 -1
- package/contracts/src/entities/contact-assignment/contact-assignment.types.js.map +1 -1
- package/contracts/src/entities/contact-assignment/index.d.ts +0 -1
- package/contracts/src/entities/contact-assignment/index.js +0 -1
- package/contracts/src/entities/contact-assignment/index.js.map +1 -1
- package/contracts/src/entities/contact-role/contact-role.entity.js +44 -40
- package/contracts/src/entities/contact-role/contact-role.entity.js.map +1 -1
- package/contracts/src/entities/contact-role/contact-role.types.d.ts +7 -1
- package/contracts/src/entities/contact-role/contact-role.types.js.map +1 -1
- package/contracts/src/entities/contact-role/index.d.ts +0 -1
- package/contracts/src/entities/contact-role/index.js +0 -1
- package/contracts/src/entities/contact-role/index.js.map +1 -1
- package/contracts/src/entities/education-level/education-level.entity.js +12 -0
- package/contracts/src/entities/education-level/education-level.entity.js.map +1 -1
- package/contracts/src/entities/education-level/education-level.types.js.map +1 -1
- package/contracts/src/entities/education-level/index.d.ts +0 -1
- package/contracts/src/entities/education-level/index.js +0 -1
- package/contracts/src/entities/education-level/index.js.map +1 -1
- package/contracts/src/entities/gender/gender.entity.js +12 -0
- package/contracts/src/entities/gender/gender.entity.js.map +1 -1
- package/contracts/src/entities/gender/gender.types.js.map +1 -1
- package/contracts/src/entities/gender/index.d.ts +0 -1
- package/contracts/src/entities/gender/index.js +0 -1
- package/contracts/src/entities/gender/index.js.map +1 -1
- package/contracts/src/entities/index.js.map +1 -1
- package/contracts/src/entities/marital-status/index.d.ts +0 -1
- package/contracts/src/entities/marital-status/index.js +0 -1
- package/contracts/src/entities/marital-status/index.js.map +1 -1
- package/contracts/src/entities/marital-status/marital-status.entity.js +12 -0
- package/contracts/src/entities/marital-status/marital-status.entity.js.map +1 -1
- package/contracts/src/entities/marital-status/marital-status.types.js.map +1 -1
- package/contracts/src/entities/person/index.d.ts +0 -1
- package/contracts/src/entities/person/index.js +0 -1
- package/contracts/src/entities/person/index.js.map +1 -1
- package/contracts/src/entities/person/person.entity.js +53 -1
- package/contracts/src/entities/person/person.entity.js.map +1 -1
- package/contracts/src/entities/person/person.types.d.ts +4 -2
- package/contracts/src/entities/person/person.types.js.map +1 -1
- package/contracts/src/entities/person-identifier-type/index.d.ts +0 -1
- package/contracts/src/entities/person-identifier-type/index.js +0 -1
- package/contracts/src/entities/person-identifier-type/index.js.map +1 -1
- package/contracts/src/entities/person-identifier-type/person-identifier-type.entity.js +13 -1
- package/contracts/src/entities/person-identifier-type/person-identifier-type.entity.js.map +1 -1
- package/contracts/src/entities/person-identifier-type/person-identifier-type.types.js.map +1 -1
- package/contracts/src/entities/person-relationship/index.d.ts +0 -1
- package/contracts/src/entities/person-relationship/index.js +0 -1
- package/contracts/src/entities/person-relationship/index.js.map +1 -1
- package/contracts/src/entities/person-relationship/person-relationship.entity.js +16 -1
- package/contracts/src/entities/person-relationship/person-relationship.entity.js.map +1 -1
- package/contracts/src/entities/person-relationship/person-relationship.types.js.map +1 -1
- package/contracts/src/entities/person-title/index.d.ts +0 -1
- package/contracts/src/entities/person-title/index.js +0 -1
- package/contracts/src/entities/person-title/index.js.map +1 -1
- package/contracts/src/entities/person-title/person-title.entity.js +13 -0
- package/contracts/src/entities/person-title/person-title.entity.js.map +1 -1
- package/contracts/src/entities/person-title/person-title.types.js.map +1 -1
- package/contracts/src/entities/religion/index.d.ts +0 -1
- package/contracts/src/entities/religion/index.js +0 -1
- package/contracts/src/entities/religion/index.js.map +1 -1
- package/contracts/src/entities/religion/religion.entity.js +12 -0
- package/contracts/src/entities/religion/religion.entity.js.map +1 -1
- package/contracts/src/entities/religion/religion.types.js.map +1 -1
- package/contracts/src/entity-catalog.d.ts +7 -0
- package/contracts/src/entity-catalog.js +29 -0
- package/contracts/src/entity-catalog.js.map +1 -0
- package/contracts/src/entity-entry.contact-assignment.d.ts +1 -0
- package/contracts/src/entity-entry.contact-assignment.js +6 -0
- package/contracts/src/entity-entry.contact-assignment.js.map +1 -0
- package/contracts/src/entity-entry.contact-role.d.ts +1 -0
- package/contracts/src/entity-entry.contact-role.js +6 -0
- package/contracts/src/entity-entry.contact-role.js.map +1 -0
- package/contracts/src/entity-entry.education-level.d.ts +1 -0
- package/contracts/src/entity-entry.education-level.js +6 -0
- package/contracts/src/entity-entry.education-level.js.map +1 -0
- package/contracts/src/entity-entry.gender.d.ts +1 -0
- package/contracts/src/entity-entry.gender.js +6 -0
- package/contracts/src/entity-entry.gender.js.map +1 -0
- package/contracts/src/entity-entry.marital-status.d.ts +1 -0
- package/contracts/src/entity-entry.marital-status.js +6 -0
- package/contracts/src/entity-entry.marital-status.js.map +1 -0
- package/contracts/src/entity-entry.person-identifier-type.d.ts +1 -0
- package/contracts/src/entity-entry.person-identifier-type.js +6 -0
- package/contracts/src/entity-entry.person-identifier-type.js.map +1 -0
- package/contracts/src/entity-entry.person-relationship.d.ts +1 -0
- package/contracts/src/entity-entry.person-relationship.js +6 -0
- package/contracts/src/entity-entry.person-relationship.js.map +1 -0
- package/contracts/src/entity-entry.person-title.d.ts +1 -0
- package/contracts/src/entity-entry.person-title.js +6 -0
- package/contracts/src/entity-entry.person-title.js.map +1 -0
- package/contracts/src/entity-entry.person.d.ts +1 -0
- package/contracts/src/entity-entry.person.js +6 -0
- package/contracts/src/entity-entry.person.js.map +1 -0
- package/contracts/src/entity-entry.religion.d.ts +1 -0
- package/contracts/src/entity-entry.religion.js +6 -0
- package/contracts/src/entity-entry.religion.js.map +1 -0
- package/contracts/src/index.d.ts +2 -0
- package/contracts/src/index.js +2 -0
- package/contracts/src/index.js.map +1 -1
- package/contracts/src/manifest.d.ts +6 -0
- package/contracts/src/manifest.js +24 -0
- package/contracts/src/manifest.js.map +1 -0
- package/contracts/src/menu.keys.js.map +1 -1
- package/contracts/src/permission.keys.d.ts +30 -9
- package/contracts/src/permission.keys.js +31 -10
- package/contracts/src/permission.keys.js.map +1 -1
- package/contracts/src/person-full-name.util.d.ts +9 -0
- package/contracts/src/person-full-name.util.js +38 -0
- package/contracts/src/person-full-name.util.js.map +1 -0
- package/contracts/src/person-relationship.actions.js.map +1 -1
- package/contracts/src/root-config.js.map +1 -1
- package/package.json +10 -11
- package/server/src/index.d.ts +2 -0
- package/server/src/index.js +8 -0
- package/server/src/index.js.map +1 -0
- package/server/src/lib/entities/index.d.ts +1 -0
- package/server/src/lib/entities/index.js +5 -0
- package/server/src/lib/entities/index.js.map +1 -0
- package/server/src/lib/entities/person-core.entity-catalog.d.ts +1 -0
- package/server/src/lib/entities/person-core.entity-catalog.js +12 -0
- package/server/src/lib/entities/person-core.entity-catalog.js.map +1 -0
- package/server/src/lib/middlewares/person-full-name.middleware.d.ts +12 -0
- package/server/src/lib/middlewares/person-full-name.middleware.js +57 -0
- package/server/src/lib/middlewares/person-full-name.middleware.js.map +1 -0
- package/server/src/lib/middlewares/person-relationship-mirror.middleware.d.ts +30 -0
- package/server/src/lib/middlewares/person-relationship-mirror.middleware.js +249 -0
- package/server/src/lib/middlewares/person-relationship-mirror.middleware.js.map +1 -0
- package/server/src/lib/person-core-entity-storage.bootstrap.d.ts +12 -0
- package/server/src/lib/person-core-entity-storage.bootstrap.js +32 -0
- package/server/src/lib/person-core-entity-storage.bootstrap.js.map +1 -0
- package/server/src/lib/person-core-server.module.js +43 -0
- package/server/src/lib/person-core-server.module.js.map +1 -0
- package/src/index.d.ts +0 -5
- package/src/index.js +0 -13
- package/src/index.js.map +0 -1
- package/src/lib/person-core-server.module.js +0 -27
- package/src/lib/person-core-server.module.js.map +0 -1
- package/src/lib/seed/contact-assignment/contact-assignment.mock.d.ts +0 -8
- package/src/lib/seed/contact-assignment/contact-assignment.mock.js +0 -51
- package/src/lib/seed/contact-assignment/contact-assignment.mock.js.map +0 -1
- package/src/lib/seed/contact-assignment/contact-assignment.seed.d.ts +0 -5
- package/src/lib/seed/contact-assignment/contact-assignment.seed.js +0 -32
- package/src/lib/seed/contact-assignment/contact-assignment.seed.js.map +0 -1
- package/src/lib/seed/contact-assignment/index.d.ts +0 -2
- package/src/lib/seed/contact-assignment/index.js +0 -6
- package/src/lib/seed/contact-assignment/index.js.map +0 -1
- package/src/lib/seed/contact-role/contact-role.mock.d.ts +0 -40
- package/src/lib/seed/contact-role/contact-role.mock.js +0 -258
- package/src/lib/seed/contact-role/contact-role.mock.js.map +0 -1
- package/src/lib/seed/contact-role/contact-role.seed.d.ts +0 -5
- package/src/lib/seed/contact-role/contact-role.seed.js +0 -31
- package/src/lib/seed/contact-role/contact-role.seed.js.map +0 -1
- package/src/lib/seed/contact-role/index.d.ts +0 -2
- package/src/lib/seed/contact-role/index.js +0 -6
- package/src/lib/seed/contact-role/index.js.map +0 -1
- package/src/lib/seed/education-level/education-level.mock.d.ts +0 -14
- package/src/lib/seed/education-level/education-level.mock.js +0 -52
- package/src/lib/seed/education-level/education-level.mock.js.map +0 -1
- package/src/lib/seed/education-level/education-level.seed.d.ts +0 -5
- package/src/lib/seed/education-level/education-level.seed.js +0 -31
- package/src/lib/seed/education-level/education-level.seed.js.map +0 -1
- package/src/lib/seed/education-level/index.d.ts +0 -2
- package/src/lib/seed/education-level/index.js +0 -6
- package/src/lib/seed/education-level/index.js.map +0 -1
- package/src/lib/seed/gender/gender.mock.d.ts +0 -28
- package/src/lib/seed/gender/gender.mock.js +0 -40
- package/src/lib/seed/gender/gender.mock.js.map +0 -1
- package/src/lib/seed/gender/gender.seed.d.ts +0 -5
- package/src/lib/seed/gender/gender.seed.js +0 -31
- package/src/lib/seed/gender/gender.seed.js.map +0 -1
- package/src/lib/seed/gender/index.d.ts +0 -2
- package/src/lib/seed/gender/index.js +0 -6
- package/src/lib/seed/gender/index.js.map +0 -1
- package/src/lib/seed/index.d.ts +0 -28
- package/src/lib/seed/index.js +0 -30
- package/src/lib/seed/index.js.map +0 -1
- package/src/lib/seed/marital-status/index.d.ts +0 -2
- package/src/lib/seed/marital-status/index.js +0 -6
- package/src/lib/seed/marital-status/index.js.map +0 -1
- package/src/lib/seed/marital-status/marital-status.mock.d.ts +0 -33
- package/src/lib/seed/marital-status/marital-status.mock.js +0 -46
- package/src/lib/seed/marital-status/marital-status.mock.js.map +0 -1
- package/src/lib/seed/marital-status/marital-status.seed.d.ts +0 -5
- package/src/lib/seed/marital-status/marital-status.seed.js +0 -31
- package/src/lib/seed/marital-status/marital-status.seed.js.map +0 -1
- package/src/lib/seed/person/index.d.ts +0 -3
- package/src/lib/seed/person/index.js +0 -7
- package/src/lib/seed/person/index.js.map +0 -1
- package/src/lib/seed/person/person-natural-ids.constants.d.ts +0 -76
- package/src/lib/seed/person/person-natural-ids.constants.js +0 -82
- package/src/lib/seed/person/person-natural-ids.constants.js.map +0 -1
- package/src/lib/seed/person/person.mock.d.ts +0 -5
- package/src/lib/seed/person/person.mock.js +0 -372
- package/src/lib/seed/person/person.mock.js.map +0 -1
- package/src/lib/seed/person/person.seed.d.ts +0 -5
- package/src/lib/seed/person/person.seed.js +0 -31
- package/src/lib/seed/person/person.seed.js.map +0 -1
- package/src/lib/seed/person-core-seed.provider.d.ts +0 -4
- package/src/lib/seed/person-core-seed.provider.js +0 -18
- package/src/lib/seed/person-core-seed.provider.js.map +0 -1
- package/src/lib/seed/person-core-seed.tokens.d.ts +0 -1
- package/src/lib/seed/person-core-seed.tokens.js +0 -7
- package/src/lib/seed/person-core-seed.tokens.js.map +0 -1
- package/src/lib/seed/person-core.seed-catalog.d.ts +0 -2
- package/src/lib/seed/person-core.seed-catalog.js +0 -31
- package/src/lib/seed/person-core.seed-catalog.js.map +0 -1
- package/src/lib/seed/person-identifier-type/index.d.ts +0 -2
- package/src/lib/seed/person-identifier-type/index.js +0 -6
- package/src/lib/seed/person-identifier-type/index.js.map +0 -1
- package/src/lib/seed/person-identifier-type/person-identifier-type.mock.d.ts +0 -4
- package/src/lib/seed/person-identifier-type/person-identifier-type.mock.js +0 -68
- package/src/lib/seed/person-identifier-type/person-identifier-type.mock.js.map +0 -1
- package/src/lib/seed/person-identifier-type/person-identifier-type.seed.d.ts +0 -5
- package/src/lib/seed/person-identifier-type/person-identifier-type.seed.js +0 -31
- package/src/lib/seed/person-identifier-type/person-identifier-type.seed.js.map +0 -1
- package/src/lib/seed/person-relationship/index.d.ts +0 -2
- package/src/lib/seed/person-relationship/index.js +0 -6
- package/src/lib/seed/person-relationship/index.js.map +0 -1
- package/src/lib/seed/person-relationship/person-relationship.mock.d.ts +0 -30
- package/src/lib/seed/person-relationship/person-relationship.mock.js +0 -156
- package/src/lib/seed/person-relationship/person-relationship.mock.js.map +0 -1
- package/src/lib/seed/person-relationship/person-relationship.seed.d.ts +0 -5
- package/src/lib/seed/person-relationship/person-relationship.seed.js +0 -31
- package/src/lib/seed/person-relationship/person-relationship.seed.js.map +0 -1
- package/src/lib/seed/person-title/index.d.ts +0 -2
- package/src/lib/seed/person-title/index.js +0 -6
- package/src/lib/seed/person-title/index.js.map +0 -1
- package/src/lib/seed/person-title/person-title.mock.d.ts +0 -43
- package/src/lib/seed/person-title/person-title.mock.js +0 -58
- package/src/lib/seed/person-title/person-title.mock.js.map +0 -1
- package/src/lib/seed/person-title/person-title.seed.d.ts +0 -5
- package/src/lib/seed/person-title/person-title.seed.js +0 -31
- package/src/lib/seed/person-title/person-title.seed.js.map +0 -1
- package/src/lib/seed/religion/index.d.ts +0 -2
- package/src/lib/seed/religion/index.js +0 -6
- package/src/lib/seed/religion/index.js.map +0 -1
- package/src/lib/seed/religion/religion.mock.d.ts +0 -5
- package/src/lib/seed/religion/religion.mock.js +0 -48
- package/src/lib/seed/religion/religion.mock.js.map +0 -1
- package/src/lib/seed/religion/religion.seed.d.ts +0 -5
- package/src/lib/seed/religion/religion.seed.js +0 -31
- package/src/lib/seed/religion/religion.seed.js.map +0 -1
- /package/{src → server/src}/lib/person-core-server.module.d.ts +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.educationLevelFactory = void 0;
|
|
4
|
+
var education_level_entity_1 = require("./entities/education-level/education-level.entity");
|
|
5
|
+
Object.defineProperty(exports, "educationLevelFactory", { enumerable: true, get: function () { return education_level_entity_1.educationLevelFactory; } });
|
|
6
|
+
//# sourceMappingURL=entity-entry.education-level.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-entry.education-level.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/entity-entry.education-level.ts"],"names":[],"mappings":";;;AAAA,4FAA0F;AAAjF,+HAAA,qBAAqB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { genderFactory } from './entities/gender/gender.entity';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.genderFactory = void 0;
|
|
4
|
+
var gender_entity_1 = require("./entities/gender/gender.entity");
|
|
5
|
+
Object.defineProperty(exports, "genderFactory", { enumerable: true, get: function () { return gender_entity_1.genderFactory; } });
|
|
6
|
+
//# sourceMappingURL=entity-entry.gender.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-entry.gender.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/entity-entry.gender.ts"],"names":[],"mappings":";;;AAAA,iEAAgE;AAAvD,8GAAA,aAAa,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { maritalStatusFactory } from './entities/marital-status/marital-status.entity';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.maritalStatusFactory = void 0;
|
|
4
|
+
var marital_status_entity_1 = require("./entities/marital-status/marital-status.entity");
|
|
5
|
+
Object.defineProperty(exports, "maritalStatusFactory", { enumerable: true, get: function () { return marital_status_entity_1.maritalStatusFactory; } });
|
|
6
|
+
//# sourceMappingURL=entity-entry.marital-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-entry.marital-status.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/entity-entry.marital-status.ts"],"names":[],"mappings":";;;AAAA,yFAAuF;AAA9E,6HAAA,oBAAoB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { personIdentifierTypeFactory } from './entities/person-identifier-type/person-identifier-type.entity';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.personIdentifierTypeFactory = void 0;
|
|
4
|
+
var person_identifier_type_entity_1 = require("./entities/person-identifier-type/person-identifier-type.entity");
|
|
5
|
+
Object.defineProperty(exports, "personIdentifierTypeFactory", { enumerable: true, get: function () { return person_identifier_type_entity_1.personIdentifierTypeFactory; } });
|
|
6
|
+
//# sourceMappingURL=entity-entry.person-identifier-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-entry.person-identifier-type.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/entity-entry.person-identifier-type.ts"],"names":[],"mappings":";;;AAAA,iHAA8G;AAArG,4IAAA,2BAA2B,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { personRelationshipFactory } from './entities/person-relationship/person-relationship.entity';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.personRelationshipFactory = void 0;
|
|
4
|
+
var person_relationship_entity_1 = require("./entities/person-relationship/person-relationship.entity");
|
|
5
|
+
Object.defineProperty(exports, "personRelationshipFactory", { enumerable: true, get: function () { return person_relationship_entity_1.personRelationshipFactory; } });
|
|
6
|
+
//# sourceMappingURL=entity-entry.person-relationship.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-entry.person-relationship.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/entity-entry.person-relationship.ts"],"names":[],"mappings":";;;AAAA,wGAAsG;AAA7F,uIAAA,yBAAyB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { personTitleFactory } from './entities/person-title/person-title.entity';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.personTitleFactory = void 0;
|
|
4
|
+
var person_title_entity_1 = require("./entities/person-title/person-title.entity");
|
|
5
|
+
Object.defineProperty(exports, "personTitleFactory", { enumerable: true, get: function () { return person_title_entity_1.personTitleFactory; } });
|
|
6
|
+
//# sourceMappingURL=entity-entry.person-title.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-entry.person-title.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/entity-entry.person-title.ts"],"names":[],"mappings":";;;AAAA,mFAAiF;AAAxE,yHAAA,kBAAkB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { personFactory } from './entities/person/person.entity';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.personFactory = void 0;
|
|
4
|
+
var person_entity_1 = require("./entities/person/person.entity");
|
|
5
|
+
Object.defineProperty(exports, "personFactory", { enumerable: true, get: function () { return person_entity_1.personFactory; } });
|
|
6
|
+
//# sourceMappingURL=entity-entry.person.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-entry.person.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/entity-entry.person.ts"],"names":[],"mappings":";;;AAAA,iEAAgE;AAAvD,8GAAA,aAAa,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { religionFactory } from './entities/religion/religion.entity';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.religionFactory = void 0;
|
|
4
|
+
var religion_entity_1 = require("./entities/religion/religion.entity");
|
|
5
|
+
Object.defineProperty(exports, "religionFactory", { enumerable: true, get: function () { return religion_entity_1.religionFactory; } });
|
|
6
|
+
//# sourceMappingURL=entity-entry.religion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-entry.religion.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/entity-entry.religion.ts"],"names":[],"mappings":";;;AAAA,uEAAsE;AAA7D,kHAAA,eAAe,OAAA"}
|
package/contracts/src/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export * from './menu.keys';
|
|
|
2
2
|
export * from './permission.keys';
|
|
3
3
|
export * from './contact-assignment.actions';
|
|
4
4
|
export * from './contact-assignment.utils';
|
|
5
|
+
export * from './person-full-name.util';
|
|
5
6
|
export * from './person-relationship.actions';
|
|
6
7
|
export * from './root-config';
|
|
8
|
+
export * from './manifest';
|
|
7
9
|
export * from './entities';
|
package/contracts/src/index.js
CHANGED
|
@@ -6,8 +6,10 @@ tslib_1.__exportStar(require("./menu.keys"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./permission.keys"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./contact-assignment.actions"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./contact-assignment.utils"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./person-full-name.util"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./person-relationship.actions"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./root-config"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./manifest"), exports);
|
|
11
13
|
//#endregion
|
|
12
14
|
tslib_1.__exportStar(require("./entities"), exports);
|
|
13
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;AAEpC,sDAA4B;AAC5B,4DAAkC;AAClC,uEAA6C;AAC7C,qEAA2C;AAC3C,kEAAwC;AACxC,wEAA8C;AAE9C,wDAA8B;AAC9B,qDAA2B;AAE3B,YAAY;AAEZ,qDAA2B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Imports ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PersonCoreManifest = void 0;
|
|
5
|
+
const root_config_1 = require("./root-config");
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ---- Manifest Definition ----
|
|
8
|
+
/**
|
|
9
|
+
* Person Core Module Manifest.
|
|
10
|
+
* Defines module metadata for shared person/demographic reference data.
|
|
11
|
+
*/
|
|
12
|
+
exports.PersonCoreManifest = {
|
|
13
|
+
name: root_config_1.RootConfig.module.name,
|
|
14
|
+
version: '1.0.0',
|
|
15
|
+
title: root_config_1.RootConfig.module.title,
|
|
16
|
+
icon: root_config_1.RootConfig.module.icon,
|
|
17
|
+
i18n: root_config_1.RootConfig.config.i18n,
|
|
18
|
+
type: 'platform',
|
|
19
|
+
domain: 'platform',
|
|
20
|
+
dependencies: ['LocationManagement'],
|
|
21
|
+
required: true,
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/manifest.ts"],"names":[],"mappings":";AAAA,+BAA+B;;;AAG/B,+CAA2C;AAE3C,YAAY;AAEZ,2CAA2C;AAE3C;;;GAGG;AACU,QAAA,kBAAkB,GAAsB;IACnD,IAAI,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;IAC5B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,wBAAU,CAAC,MAAM,CAAC,KAAK;IAC9B,IAAI,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;IAC5B,IAAI,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;IAC5B,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,UAAU;IAClB,YAAY,EAAE,CAAC,oBAAoB,CAAC;IACpC,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/
|
|
1
|
+
{"version":3,"file":"menu.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/menu.keys.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;IACnC,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,qBAAqB;IAC9B,mBAAmB,EAAE,kCAAkC;IACvD,eAAe,EAAE,8BAA8B;IAC/C,OAAO,EAAE,qBAAqB;IAC9B,eAAe,EAAE,8BAA8B;IAC/C,YAAY,EAAE,2BAA2B;IACzC,qBAAqB,EAAE,qCAAqC;IAC5D,SAAS,EAAE,uBAAuB;IAClC,YAAY,EAAE,2BAA2B;CACjC,CAAC"}
|
|
@@ -1,31 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* People & Organization capabilities used by this module.
|
|
3
|
+
* Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
|
|
4
|
+
*/
|
|
5
|
+
export declare const AXPPeopleOrganizationPermissionKeys: {
|
|
6
|
+
readonly Access: "PeopleOrganization:Permission:Access";
|
|
7
|
+
readonly ViewOrganization: "PeopleOrganization:Permission:ViewOrganization";
|
|
8
|
+
readonly MaintainOrganization: "PeopleOrganization:Permission:MaintainOrganization";
|
|
9
|
+
readonly MaintainTeams: "PeopleOrganization:Permission:MaintainTeams";
|
|
10
|
+
readonly MaintainEmployees: "PeopleOrganization:Permission:MaintainEmployees";
|
|
11
|
+
readonly ManageEmployeeActions: "PeopleOrganization:Permission:ManageEmployeeActions";
|
|
12
|
+
readonly MaintainPersons: "PeopleOrganization:Permission:MaintainPersons";
|
|
13
|
+
readonly MaintainAttendance: "PeopleOrganization:Permission:MaintainAttendance";
|
|
14
|
+
readonly ManageAttendanceActions: "PeopleOrganization:Permission:ManageAttendanceActions";
|
|
15
|
+
readonly DesignJobs: "PeopleOrganization:Permission:DesignJobs";
|
|
16
|
+
readonly Setup: "PeopleOrganization:Permission:Setup";
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Prefer {@link AXPPeopleOrganizationPermissionKeys}.
|
|
20
|
+
* Legacy nested shape kept so existing imports compile during migration.
|
|
21
|
+
*/
|
|
1
22
|
export declare const AXMPersonCorePermissionKeys: {
|
|
2
23
|
readonly PersonCore: {
|
|
3
24
|
readonly Person: {
|
|
4
|
-
readonly Management: "
|
|
25
|
+
readonly Management: "PeopleOrganization:Permission:MaintainPersons";
|
|
5
26
|
};
|
|
6
27
|
readonly EducationLevel: {
|
|
7
|
-
readonly Management: "
|
|
28
|
+
readonly Management: "PeopleOrganization:Permission:Setup";
|
|
8
29
|
};
|
|
9
30
|
readonly Gender: {
|
|
10
|
-
readonly Management: "
|
|
31
|
+
readonly Management: "PeopleOrganization:Permission:Setup";
|
|
11
32
|
};
|
|
12
33
|
readonly MaritalStatus: {
|
|
13
|
-
readonly Management: "
|
|
34
|
+
readonly Management: "PeopleOrganization:Permission:Setup";
|
|
14
35
|
};
|
|
15
36
|
readonly PersonTitle: {
|
|
16
|
-
readonly Management: "
|
|
37
|
+
readonly Management: "PeopleOrganization:Permission:Setup";
|
|
17
38
|
};
|
|
18
39
|
readonly PersonIdentifierType: {
|
|
19
|
-
readonly Management: "
|
|
40
|
+
readonly Management: "PeopleOrganization:Permission:Setup";
|
|
20
41
|
};
|
|
21
42
|
readonly PersonRelationship: {
|
|
22
|
-
readonly Management: "
|
|
43
|
+
readonly Management: "PeopleOrganization:Permission:Setup";
|
|
23
44
|
};
|
|
24
45
|
readonly Religion: {
|
|
25
|
-
readonly Management: "
|
|
46
|
+
readonly Management: "PeopleOrganization:Permission:Setup";
|
|
26
47
|
};
|
|
27
48
|
readonly ContactRole: {
|
|
28
|
-
readonly Management: "
|
|
49
|
+
readonly Management: "PeopleOrganization:Permission:Setup";
|
|
29
50
|
};
|
|
30
51
|
};
|
|
31
52
|
};
|
|
@@ -1,34 +1,55 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AXMPersonCorePermissionKeys = void 0;
|
|
3
|
+
exports.AXMPersonCorePermissionKeys = exports.AXPPeopleOrganizationPermissionKeys = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* People & Organization capabilities used by this module.
|
|
6
|
+
* Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
|
|
7
|
+
*/
|
|
8
|
+
exports.AXPPeopleOrganizationPermissionKeys = {
|
|
9
|
+
Access: 'PeopleOrganization:Permission:Access',
|
|
10
|
+
ViewOrganization: 'PeopleOrganization:Permission:ViewOrganization',
|
|
11
|
+
MaintainOrganization: 'PeopleOrganization:Permission:MaintainOrganization',
|
|
12
|
+
MaintainTeams: 'PeopleOrganization:Permission:MaintainTeams',
|
|
13
|
+
MaintainEmployees: 'PeopleOrganization:Permission:MaintainEmployees',
|
|
14
|
+
ManageEmployeeActions: 'PeopleOrganization:Permission:ManageEmployeeActions',
|
|
15
|
+
MaintainPersons: 'PeopleOrganization:Permission:MaintainPersons',
|
|
16
|
+
MaintainAttendance: 'PeopleOrganization:Permission:MaintainAttendance',
|
|
17
|
+
ManageAttendanceActions: 'PeopleOrganization:Permission:ManageAttendanceActions',
|
|
18
|
+
DesignJobs: 'PeopleOrganization:Permission:DesignJobs',
|
|
19
|
+
Setup: 'PeopleOrganization:Permission:Setup',
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated Prefer {@link AXPPeopleOrganizationPermissionKeys}.
|
|
23
|
+
* Legacy nested shape kept so existing imports compile during migration.
|
|
24
|
+
*/
|
|
4
25
|
exports.AXMPersonCorePermissionKeys = {
|
|
5
26
|
PersonCore: {
|
|
6
27
|
Person: {
|
|
7
|
-
Management:
|
|
28
|
+
Management: exports.AXPPeopleOrganizationPermissionKeys.MaintainPersons,
|
|
8
29
|
},
|
|
9
30
|
EducationLevel: {
|
|
10
|
-
Management:
|
|
31
|
+
Management: exports.AXPPeopleOrganizationPermissionKeys.Setup,
|
|
11
32
|
},
|
|
12
33
|
Gender: {
|
|
13
|
-
Management:
|
|
34
|
+
Management: exports.AXPPeopleOrganizationPermissionKeys.Setup,
|
|
14
35
|
},
|
|
15
36
|
MaritalStatus: {
|
|
16
|
-
Management:
|
|
37
|
+
Management: exports.AXPPeopleOrganizationPermissionKeys.Setup,
|
|
17
38
|
},
|
|
18
39
|
PersonTitle: {
|
|
19
|
-
Management:
|
|
40
|
+
Management: exports.AXPPeopleOrganizationPermissionKeys.Setup,
|
|
20
41
|
},
|
|
21
42
|
PersonIdentifierType: {
|
|
22
|
-
Management:
|
|
43
|
+
Management: exports.AXPPeopleOrganizationPermissionKeys.Setup,
|
|
23
44
|
},
|
|
24
45
|
PersonRelationship: {
|
|
25
|
-
Management:
|
|
46
|
+
Management: exports.AXPPeopleOrganizationPermissionKeys.Setup,
|
|
26
47
|
},
|
|
27
48
|
Religion: {
|
|
28
|
-
Management:
|
|
49
|
+
Management: exports.AXPPeopleOrganizationPermissionKeys.Setup,
|
|
29
50
|
},
|
|
30
51
|
ContactRole: {
|
|
31
|
-
Management:
|
|
52
|
+
Management: exports.AXPPeopleOrganizationPermissionKeys.Setup,
|
|
32
53
|
},
|
|
33
54
|
},
|
|
34
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/
|
|
1
|
+
{"version":3,"file":"permission.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/permission.keys.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,mCAAmC,GAAG;IACjD,MAAM,EAAE,sCAAsC;IAC9C,gBAAgB,EAAE,gDAAgD;IAClE,oBAAoB,EAAE,oDAAoD;IAC1E,aAAa,EAAE,6CAA6C;IAC5D,iBAAiB,EAAE,iDAAiD;IACpE,qBAAqB,EAAE,qDAAqD;IAC5E,eAAe,EAAE,+CAA+C;IAChE,kBAAkB,EAAE,kDAAkD;IACtE,uBAAuB,EAAE,uDAAuD;IAChF,UAAU,EAAE,0CAA0C;IACtD,KAAK,EAAE,qCAAqC;CACpC,CAAC;AAEX;;;GAGG;AACU,QAAA,2BAA2B,GAAG;IACzC,UAAU,EAAE;QACV,MAAM,EAAE;YACN,UAAU,EAAE,2CAAmC,CAAC,eAAe;SAChE;QACD,cAAc,EAAE;YACd,UAAU,EAAE,2CAAmC,CAAC,KAAK;SACtD;QACD,MAAM,EAAE;YACN,UAAU,EAAE,2CAAmC,CAAC,KAAK;SACtD;QACD,aAAa,EAAE;YACb,UAAU,EAAE,2CAAmC,CAAC,KAAK;SACtD;QACD,WAAW,EAAE;YACX,UAAU,EAAE,2CAAmC,CAAC,KAAK;SACtD;QACD,oBAAoB,EAAE;YACpB,UAAU,EAAE,2CAAmC,CAAC,KAAK;SACtD;QACD,kBAAkB,EAAE;YAClB,UAAU,EAAE,2CAAmC,CAAC,KAAK;SACtD;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,2CAAmC,CAAC,KAAK;SACtD;QACD,WAAW,EAAE;YACX,UAAU,EAAE,2CAAmC,CAAC,KAAK;SACtD;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Stored person name: firstName + " " + lastName. */
|
|
2
|
+
export declare function composePersonFullName(firstName: unknown, lastName: unknown): string;
|
|
3
|
+
/**
|
|
4
|
+
* Person write body. Create payloads sometimes nest fields under `data`
|
|
5
|
+
* while the runtime envelope keeps `entity` beside them.
|
|
6
|
+
*/
|
|
7
|
+
export declare function resolvePersonWriteTarget(data: Record<string, unknown>): Record<string, unknown>;
|
|
8
|
+
/** Sets `fullName` from first and last name already on the payload, filling gaps from `existing`. */
|
|
9
|
+
export declare function stampPersonFullName(data: Record<string, unknown>, existing?: Record<string, unknown> | null): void;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ----- Helpers -----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.composePersonFullName = composePersonFullName;
|
|
5
|
+
exports.resolvePersonWriteTarget = resolvePersonWriteTarget;
|
|
6
|
+
exports.stampPersonFullName = stampPersonFullName;
|
|
7
|
+
/** Stored person name: firstName + " " + lastName. */
|
|
8
|
+
function composePersonFullName(firstName, lastName) {
|
|
9
|
+
const first = typeof firstName === 'string' ? firstName.trim() : '';
|
|
10
|
+
const last = typeof lastName === 'string' ? lastName.trim() : '';
|
|
11
|
+
return `${first} ${last}`.trim();
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Person write body. Create payloads sometimes nest fields under `data`
|
|
15
|
+
* while the runtime envelope keeps `entity` beside them.
|
|
16
|
+
*/
|
|
17
|
+
function resolvePersonWriteTarget(data) {
|
|
18
|
+
const nested = data['data'];
|
|
19
|
+
if (nested != null &&
|
|
20
|
+
typeof nested === 'object' &&
|
|
21
|
+
!Array.isArray(nested) &&
|
|
22
|
+
!('firstName' in data) &&
|
|
23
|
+
!('lastName' in data)) {
|
|
24
|
+
return nested;
|
|
25
|
+
}
|
|
26
|
+
return data;
|
|
27
|
+
}
|
|
28
|
+
/** Sets `fullName` from first and last name already on the payload, filling gaps from `existing`. */
|
|
29
|
+
function stampPersonFullName(data, existing) {
|
|
30
|
+
const target = resolvePersonWriteTarget(data);
|
|
31
|
+
const hasFirst = 'firstName' in target;
|
|
32
|
+
const hasLast = 'lastName' in target;
|
|
33
|
+
const firstName = hasFirst ? target['firstName'] : existing === null || existing === void 0 ? void 0 : existing['firstName'];
|
|
34
|
+
const lastName = hasLast ? target['lastName'] : existing === null || existing === void 0 ? void 0 : existing['lastName'];
|
|
35
|
+
target['fullName'] = composePersonFullName(firstName, lastName);
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//# sourceMappingURL=person-full-name.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-full-name.util.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/person-full-name.util.ts"],"names":[],"mappings":";AAAA,6BAA6B;;AAG7B,sDAIC;AAMD,4DAYC;AAGD,kDAUC;AApCD,sDAAsD;AACtD,SAAgB,qBAAqB,CAAC,SAAkB,EAAE,QAAiB;IACzE,MAAM,KAAK,GAAG,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACpE,MAAM,IAAI,GAAG,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACjE,OAAO,GAAG,KAAK,IAAI,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC;AACnC,CAAC;AAED;;;GAGG;AACH,SAAgB,wBAAwB,CAAC,IAA6B;IACpE,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5B,IACE,MAAM,IAAI,IAAI;QACd,OAAO,MAAM,KAAK,QAAQ;QAC1B,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;QACtB,CAAC,CAAC,WAAW,IAAI,IAAI,CAAC;QACtB,CAAC,CAAC,UAAU,IAAI,IAAI,CAAC,EACrB,CAAC;QACD,OAAO,MAAiC,CAAC;IAC3C,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,qGAAqG;AACrG,SAAgB,mBAAmB,CACjC,IAA6B,EAC7B,QAAyC;IAEzC,MAAM,MAAM,GAAG,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAC9C,MAAM,QAAQ,GAAG,WAAW,IAAI,MAAM,CAAC;IACvC,MAAM,OAAO,GAAG,UAAU,IAAI,MAAM,CAAC;IACrC,MAAM,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,WAAW,CAAC,CAAC;IAC3E,MAAM,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,UAAU,CAAC,CAAC;IACvE,MAAM,CAAC,UAAU,CAAC,GAAG,qBAAqB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AAClE,CAAC;AAED,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-relationship.actions.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/
|
|
1
|
+
{"version":3,"file":"person-relationship.actions.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/person-relationship.actions.ts"],"names":[],"mappings":";;AAuBA,oFA8BC;AAMD,wFAgCC;AA3FD,iEAA6E;AAC7E,qEAA4J;AAE5J,+CAA2C;AAE3C,+CAA+C;AAE/C,MAAM,oBAAoB,GAAG,GAAG,wBAAU,CAAC,MAAM,CAAC,IAAI,8CAA8C,CAAC;AACrG,MAAM,eAAe,GAAG,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ACL;gBACE,IAAI,EAAE,0BAA0B;gBAChC,KAAK,EAAE,wEAAwE;gBAC/E,OAAO,EAAE;oBACP,IAAI,EAAE,oBAAoB;oBAC1B,OAAO,EAAE,mBAAmB,CAAC,QAAQ,CAAC;iBACvC;gBACD,IAAI,EAAE,mCAAmC;gBACzC,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,0BAAmB,CAAC,MAAM;gBAChC,KAAK,EAAE,8BAAqB,CAAC,SAAS;aACvC;YACD;gBACE,IAAI,EAAE,qBAAqB;gBAC3B,KAAK,EAAE,mEAAmE;gBAC1E,OAAO,EAAE;oBACP,IAAI,EAAE,eAAe;oBACrB,OAAO,EAAE,mBAAmB,CAAC,QAAQ,CAAC;iBACvC;gBACD,IAAI,EAAE,uBAAuB;gBAC7B,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,0BAAmB,CAAC,MAAM;gBAChC,KAAK,EAAE,8BAAqB,CAAC,SAAS;aACvC;SACF,GACF,CAAC;IAEF,OAAO,CAAC,YAAY,EAAE,IAAA,gCAAuB,GAAE,EAAE,IAAA,wCAA+B,GAAE,CAAC,CAAC;AACtF,CAAC;AAED,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-config.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/
|
|
1
|
+
{"version":3,"file":"root-config.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/contracts/src/root-config.ts"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,YAAY;CACrB,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,MAAM;IACN,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,eAAe;QACrC,IAAI,EAAE,kBAAkB;KACzB;IACD,QAAQ,EAAE;QACR,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,KAAK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AK,EAAE,IAAI,MAAM,CAAC,IAAI,4CAA4C;YAClE,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,6CAA6C;YACzE,IAAI,EAAE,sBAAsB;SAC7B;QACD,kBAAkB,EAAE;YAClB,IAAI,EAAE,oBAAoB;YAC1B,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,0DAA0D;YAChF,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,2DAA2D;YACvF,IAAI,EAAE,kBAAkB;SACzB;QACD,iBAAiB,EAAE;YACjB,IAAI,EAAE,mBAAmB;YACzB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,wDAAwD;YAC9E,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,yDAAyD;YACrF,IAAI,EAAE,0BAA0B;SACjC;KACF;CACO,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex-platform/module-person-core-server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "2.0.0-next.42",
|
|
4
4
|
"type": "commonjs",
|
|
5
|
-
"main": "./src/index.js",
|
|
6
|
-
"types": "./src/index.d.ts",
|
|
5
|
+
"main": "./server/src/index.js",
|
|
6
|
+
"types": "./server/src/index.d.ts",
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@
|
|
9
|
-
"@acorex-platform/module-common-server": "0.0.
|
|
8
|
+
"@acorex-platform/framework-server": "2.0.0-next.42",
|
|
9
|
+
"@acorex-platform/module-common-server": "2.0.0-next.42",
|
|
10
|
+
"@acorex-platform/module-location-management-client": "2.0.0-next.42",
|
|
11
|
+
"@acorex-platform/module-person-core-client": "2.0.0-next.42",
|
|
12
|
+
"@nestjs/common": "^11.0.0"
|
|
10
13
|
},
|
|
11
14
|
"exports": {
|
|
12
15
|
"./package.json": "./package.json",
|
|
13
16
|
".": {
|
|
14
|
-
"types": "./src/index.d.ts",
|
|
15
|
-
"default": "./src/index.js"
|
|
17
|
+
"types": "./server/src/index.d.ts",
|
|
18
|
+
"default": "./server/src/index.js"
|
|
16
19
|
},
|
|
17
20
|
"./contracts": {
|
|
18
21
|
"types": "./contracts/src/index.d.ts",
|
|
19
22
|
"default": "./contracts/src/index.js"
|
|
20
|
-
},
|
|
21
|
-
"./seed": {
|
|
22
|
-
"types": "./src/lib/seed/index.d.ts",
|
|
23
|
-
"default": "./src/lib/seed/index.js"
|
|
24
23
|
}
|
|
25
24
|
}
|
|
26
25
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.personCoreEntityCatalog = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./lib/person-core-server.module"), exports);
|
|
6
|
+
var entities_1 = require("./lib/entities");
|
|
7
|
+
Object.defineProperty(exports, "personCoreEntityCatalog", { enumerable: true, get: function () { return entities_1.personCoreEntityCatalog; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/modules/person-core/server/src/index.ts"],"names":[],"mappings":";;;;AAAA,0EAAgD;AAChD,2CAAyD;AAAhD,mHAAA,uBAAuB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './person-core.entity-catalog';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/entities/index.ts"],"names":[],"mappings":";;;AAAA,uEAA6C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const personCoreEntityCatalog: import("@acorex-platform/framework-server/domain/seed").AXPDomainEntityCatalog;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.personCoreEntityCatalog = void 0;
|
|
4
|
+
const seed_1 = require("@acorex-platform/framework-server/domain/seed");
|
|
5
|
+
const entity_catalog_1 = require("../../../../contracts/src/entity-catalog");
|
|
6
|
+
//#region ---- person-core entity catalog ----
|
|
7
|
+
exports.personCoreEntityCatalog = (0, seed_1.defineEntityCatalog)({
|
|
8
|
+
moduleName: 'person-core',
|
|
9
|
+
factories: Object.values(entity_catalog_1.personCoreLocalEntityCatalog.loaders),
|
|
10
|
+
});
|
|
11
|
+
//#endregion
|
|
12
|
+
//# sourceMappingURL=person-core.entity-catalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-core.entity-catalog.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/entities/person-core.entity-catalog.ts"],"names":[],"mappings":";;;AAAA,wEAAoF;AACpF,6EAAwF;AAExF,8CAA8C;AAEjC,QAAA,uBAAuB,GAAG,IAAA,0BAAmB,EAAC;IACzD,UAAU,EAAE,aAAa;IACzB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,6CAA4B,CAAC,OAAO,CAAC;CAC/D,CAAC,CAAC;AAEH,YAAY"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type AXPEntityOp, type EntityStorageContext, type EntityStorageMiddleware } from '@acorex-platform/framework-server/core';
|
|
2
|
+
/**
|
|
3
|
+
* Persists Person.fullName as firstName + " " + lastName on create and when a name changes.
|
|
4
|
+
*/
|
|
5
|
+
export declare class PersonFullNameMiddleware implements EntityStorageMiddleware {
|
|
6
|
+
readonly target: {
|
|
7
|
+
entity: string;
|
|
8
|
+
ops: AXPEntityOp[];
|
|
9
|
+
order: number;
|
|
10
|
+
};
|
|
11
|
+
execute(ctx: EntityStorageContext, next: () => Promise<void>): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ----- Imports -----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PersonFullNameMiddleware = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const common_1 = require("@nestjs/common");
|
|
7
|
+
const module_person_core_contracts_1 = require("@acorex-platform/module-person-core-client/contracts");
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region ----- Constants -----
|
|
10
|
+
const PERSON_ENTITY = `${module_person_core_contracts_1.RootConfig.module.name}.${module_person_core_contracts_1.RootConfig.entities.person.name}`;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region ----- Person full name middleware -----
|
|
13
|
+
/**
|
|
14
|
+
* Persists Person.fullName as firstName + " " + lastName on create and when a name changes.
|
|
15
|
+
*/
|
|
16
|
+
let PersonFullNameMiddleware = class PersonFullNameMiddleware {
|
|
17
|
+
constructor() {
|
|
18
|
+
this.target = {
|
|
19
|
+
entity: PERSON_ENTITY,
|
|
20
|
+
ops: ['create', 'update', 'upsertOne'],
|
|
21
|
+
order: 80,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
execute(ctx, next) {
|
|
25
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
const data = ctx.data;
|
|
27
|
+
if (data && typeof data === 'object' && !Array.isArray(data)) {
|
|
28
|
+
const record = data;
|
|
29
|
+
const target = (0, module_person_core_contracts_1.resolvePersonWriteTarget)(record);
|
|
30
|
+
const creating = ctx.op === 'create' || ctx.op === 'upsertOne';
|
|
31
|
+
const renaming = 'firstName' in target || 'lastName' in target;
|
|
32
|
+
if (creating || renaming) {
|
|
33
|
+
let existing = null;
|
|
34
|
+
if (!creating && ctx.id != null && ctx.id !== '' && (!('firstName' in target) || !('lastName' in target))) {
|
|
35
|
+
try {
|
|
36
|
+
const row = yield ctx.backend.getOne(ctx.entityName, String(ctx.id));
|
|
37
|
+
if (row && typeof row === 'object') {
|
|
38
|
+
existing = row;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
catch (_a) {
|
|
42
|
+
existing = null;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
(0, module_person_core_contracts_1.stampPersonFullName)(record, existing);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
yield next();
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
exports.PersonFullNameMiddleware = PersonFullNameMiddleware;
|
|
53
|
+
exports.PersonFullNameMiddleware = PersonFullNameMiddleware = tslib_1.__decorate([
|
|
54
|
+
(0, common_1.Injectable)()
|
|
55
|
+
], PersonFullNameMiddleware);
|
|
56
|
+
//#endregion
|
|
57
|
+
//# sourceMappingURL=person-full-name.middleware.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-full-name.middleware.js","sourceRoot":"","sources":["../../../../../../../libs/modules/person-core/server/src/lib/middlewares/person-full-name.middleware.ts"],"names":[],"mappings":";AAAA,6BAA6B;;;;AAO7B,2CAA4C;AAE5C,gGAA0H;AAE1H,YAAY;AAEZ,+BAA+B;AAE/B,MAAM,aAAa,GAAG,GAAG,yCAAU,CAAC,MAAM,CAAC,IAAI,IAAI,yCAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AAErF,YAAY;AAEZ,iDAAiD;AAEjD;;GAEG;AAEI,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAA9B;QACI,WAAM,GAAG;YAChB,MAAM,EAAE,aAAa;YACrB,GAAG,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,CAAkB;YACvD,KAAK,EAAE,EAAE;SACV,CAAC;IA4BJ,CAAC;IA1BO,OAAO,CAAC,GAAyB,EAAE,IAAyB;;YAChE,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;YACtB,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC7D,MAAM,MAAM,GAAG,IAA+B,CAAC;gBAC/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core';
|
|
2
|
+
/**
|
|
3
|
+
* Keeps PersonRelationship edges bidirectional:
|
|
4
|
+
* after create/update of A→B (type T), ensures B→A exists with T.inverseTypeId;
|
|
5
|
+
* after delete, removes the matching reverse edge.
|
|
6
|
+
*
|
|
7
|
+
* Recursion is prevented with an in-flight edge-key set (nested insertOne/deleteOne
|
|
8
|
+
* create fresh locals, so a locals flag cannot span the nested call).
|
|
9
|
+
*/
|
|
10
|
+
export declare class PersonRelationshipMirrorMiddleware implements EntityStorageMiddleware {
|
|
11
|
+
private readonly entityStorage;
|
|
12
|
+
private readonly logger;
|
|
13
|
+
private readonly inFlightMirrorKeys;
|
|
14
|
+
readonly target: {
|
|
15
|
+
entity: string;
|
|
16
|
+
ops: AXPEntityOp[];
|
|
17
|
+
order: number;
|
|
18
|
+
};
|
|
19
|
+
constructor(entityStorage: EntityStorageMiddlewareService);
|
|
20
|
+
execute(ctx: EntityStorageContext, next: () => Promise<void>): Promise<void>;
|
|
21
|
+
private ensureMirror;
|
|
22
|
+
private removeMirror;
|
|
23
|
+
private resolveInverseTypeId;
|
|
24
|
+
private findEdge;
|
|
25
|
+
private loadRow;
|
|
26
|
+
private loadRowById;
|
|
27
|
+
private readCreatedRow;
|
|
28
|
+
private edgeKey;
|
|
29
|
+
private asId;
|
|
30
|
+
}
|