plac-micro-common 1.3.111 → 1.3.113
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.
|
@@ -21,7 +21,7 @@ import { SourceSubTypeEntity } from "./source_sub_type.entity";
|
|
|
21
21
|
import { SourceCodeEntity } from "./source_code.entity";
|
|
22
22
|
import { PaymentMethodEntity } from "./payment_method.entity";
|
|
23
23
|
import { OrgReferralEntity } from "./org_referral.entity";
|
|
24
|
-
export declare const CORE_ENTITIES: readonly [typeof GeoProvinceEntity, typeof GeoDistrictEntity, typeof GeoCommuneEntity, typeof GeoVillageEntity, typeof MaritalStatusEntity, typeof NationalityEntity, typeof NumberSeriesEntity, typeof OrganizationEntity, typeof OrganizationBranchEntity, typeof OrganizationChannelEntity, typeof OrganizationDepartmentEntity, typeof OrganizationPositionEntity, typeof OrganizationStaffEntity, typeof OrganizationStaffBranchEntity, typeof OrganizationStaffReportingLineEntity, typeof OrgReferralEntity, typeof OccupationEntity, typeof PaymentMethodEntity, typeof RelationshipEntity, typeof StaffEntity, typeof import("./product").CashValueEntity, typeof import("./product").DeathBenefitEntity, typeof import("./product").PaymentModeEntity, typeof import("./product").PremiumRateConditionEntity, typeof import("./product").PremiumRateValueEntity, typeof import("./product").ProductEntity, typeof import("./product").ProductOrgEntity, typeof import("./product").ProductTypeEntity, typeof import("./product").ProductPaymentModeEntity, typeof import("./product").ProductRiderEntity, typeof import("./product").ProductTermEntity, typeof import("./product").ProductPlanEntity, typeof import("./product").PromotionEntity, typeof import("./product").PromotionOrgEntity, typeof import("./product").PromotionProductEntity, typeof import("./product").RiderEntity, typeof import("./product").SurrenderValueEntity, typeof import("./product").TermEntity, typeof import("./finance").ExchangeRateEntity, typeof import("./finance").ExchangeRateLogEntity, typeof import("./finance").ExchangeRateSyncLogEntity];
|
|
24
|
+
export declare const CORE_ENTITIES: readonly [typeof GeoProvinceEntity, typeof GeoDistrictEntity, typeof GeoCommuneEntity, typeof GeoVillageEntity, typeof MaritalStatusEntity, typeof NationalityEntity, typeof NumberSeriesEntity, typeof OrganizationEntity, typeof OrganizationBranchEntity, typeof OrganizationChannelEntity, typeof OrganizationDepartmentEntity, typeof OrganizationPositionEntity, typeof OrganizationStaffEntity, typeof OrganizationStaffBranchEntity, typeof OrganizationStaffReportingLineEntity, typeof OrgReferralEntity, typeof OccupationEntity, typeof PaymentMethodEntity, typeof RelationshipEntity, typeof StaffEntity, typeof SourceTypeEntity, typeof SourceSubTypeEntity, typeof SourceCodeEntity, typeof import("./product").CashValueEntity, typeof import("./product").DeathBenefitEntity, typeof import("./product").PaymentModeEntity, typeof import("./product").PremiumRateConditionEntity, typeof import("./product").PremiumRateValueEntity, typeof import("./product").ProductEntity, typeof import("./product").ProductOrgEntity, typeof import("./product").ProductTypeEntity, typeof import("./product").ProductPaymentModeEntity, typeof import("./product").ProductRiderEntity, typeof import("./product").ProductTermEntity, typeof import("./product").ProductPlanEntity, typeof import("./product").PromotionEntity, typeof import("./product").PromotionOrgEntity, typeof import("./product").PromotionProductEntity, typeof import("./product").RiderEntity, typeof import("./product").SurrenderValueEntity, typeof import("./product").TermEntity, typeof import("./finance").ExchangeRateEntity, typeof import("./finance").ExchangeRateLogEntity, typeof import("./finance").ExchangeRateSyncLogEntity];
|
|
25
25
|
export { GeoProvinceEntity, GeoDistrictEntity, GeoCommuneEntity, GeoVillageEntity, MaritalStatusEntity, NationalityEntity, NumberSeriesEntity, OrganizationEntity, OrganizationBranchEntity, OrganizationChannelEntity, OrganizationDepartmentEntity, OrganizationPositionEntity, OrganizationStaffEntity, OrganizationStaffBranchEntity, OrganizationStaffReportingLineEntity, OrgReferralEntity, OccupationEntity, PaymentMethodEntity, RelationshipEntity, StaffEntity, SourceTypeEntity, SourceSubTypeEntity, SourceCodeEntity, };
|
|
26
26
|
export * from "./product";
|
|
27
27
|
export * from "./finance";
|
|
@@ -89,6 +89,9 @@ exports.CORE_ENTITIES = [
|
|
|
89
89
|
relationship_entity_1.RelationshipEntity,
|
|
90
90
|
//
|
|
91
91
|
staffs_entity_1.StaffEntity,
|
|
92
|
+
source_type_entity_1.SourceTypeEntity,
|
|
93
|
+
source_sub_type_entity_1.SourceSubTypeEntity,
|
|
94
|
+
source_code_entity_1.SourceCodeEntity,
|
|
92
95
|
//
|
|
93
96
|
...product_1.PRODUCT_ENTITIES,
|
|
94
97
|
...finance_1.FINANCE_ENTITIES,
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { _BaseGeneralEntity } from "../_base_general_entity";
|
|
2
2
|
import { SourceSubTypeEntity } from "./source_sub_type.entity";
|
|
3
3
|
import { SourceTypeEntity } from "./source_type.entity";
|
|
4
|
+
import { OrganizationEntity } from "./organization.entity";
|
|
5
|
+
import { OrganizationStaffEntity } from "./org_staff.entity";
|
|
4
6
|
export declare class SourceCodeEntity extends _BaseGeneralEntity {
|
|
5
7
|
code: string;
|
|
6
8
|
source_type_id: string;
|
|
7
9
|
source_sub_type_id?: string | null;
|
|
8
10
|
org_id?: string | null;
|
|
11
|
+
org_staff_id?: string | null;
|
|
9
12
|
source_type: SourceTypeEntity;
|
|
10
13
|
source_sub_type?: SourceSubTypeEntity | null;
|
|
14
|
+
org?: OrganizationEntity | null;
|
|
15
|
+
org_staff?: OrganizationStaffEntity | null;
|
|
11
16
|
}
|
|
@@ -14,6 +14,8 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const _base_general_entity_1 = require("../_base_general_entity");
|
|
15
15
|
const source_sub_type_entity_1 = require("./source_sub_type.entity");
|
|
16
16
|
const source_type_entity_1 = require("./source_type.entity");
|
|
17
|
+
const organization_entity_1 = require("./organization.entity");
|
|
18
|
+
const org_staff_entity_1 = require("./org_staff.entity");
|
|
17
19
|
let SourceCodeEntity = class SourceCodeEntity extends _base_general_entity_1._BaseGeneralEntity {
|
|
18
20
|
};
|
|
19
21
|
exports.SourceCodeEntity = SourceCodeEntity;
|
|
@@ -33,14 +35,30 @@ __decorate([
|
|
|
33
35
|
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
34
36
|
__metadata("design:type", Object)
|
|
35
37
|
], SourceCodeEntity.prototype, "org_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], SourceCodeEntity.prototype, "org_staff_id", void 0);
|
|
36
42
|
__decorate([
|
|
37
43
|
(0, typeorm_1.ManyToOne)(() => source_type_entity_1.SourceTypeEntity, { onDelete: "RESTRICT" }),
|
|
44
|
+
(0, typeorm_1.JoinColumn)({ name: "source_type_id" }),
|
|
38
45
|
__metadata("design:type", source_type_entity_1.SourceTypeEntity)
|
|
39
46
|
], SourceCodeEntity.prototype, "source_type", void 0);
|
|
40
47
|
__decorate([
|
|
41
48
|
(0, typeorm_1.ManyToOne)(() => source_sub_type_entity_1.SourceSubTypeEntity, { onDelete: "RESTRICT" }),
|
|
49
|
+
(0, typeorm_1.JoinColumn)({ name: "source_sub_type_id" }),
|
|
42
50
|
__metadata("design:type", Object)
|
|
43
51
|
], SourceCodeEntity.prototype, "source_sub_type", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.ManyToOne)(() => organization_entity_1.OrganizationEntity, { onDelete: "RESTRICT" }),
|
|
54
|
+
(0, typeorm_1.JoinColumn)({ name: "org_id" }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], SourceCodeEntity.prototype, "org", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.ManyToOne)(() => org_staff_entity_1.OrganizationStaffEntity, { onDelete: "RESTRICT" }),
|
|
59
|
+
(0, typeorm_1.JoinColumn)({ name: "org_staff_id" }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], SourceCodeEntity.prototype, "org_staff", void 0);
|
|
44
62
|
exports.SourceCodeEntity = SourceCodeEntity = __decorate([
|
|
45
63
|
(0, typeorm_1.Entity)({ name: "source_codes", schema: "core" })
|
|
46
64
|
], SourceCodeEntity);
|
package/package.json
CHANGED
package/pnpm-workspace.yaml
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
allowBuilds:
|
|
2
|
-
'@nestjs/core': true
|
|
2
|
+
'@nestjs/core': set this to true or false
|