plac-micro-common 1.3.109 → 1.3.112

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.
@@ -13,6 +13,9 @@ export declare class ApplicationEntity extends _BaseEntity {
13
13
  id: string;
14
14
  form_type: AppFormType;
15
15
  source_type: AppSourceType;
16
+ source_type_id?: string | null;
17
+ source_sub_type_id?: string | null;
18
+ source_code_id?: string | null;
16
19
  application_no: string;
17
20
  cover_note_no?: string | null;
18
21
  policy_no?: string | null;
@@ -48,6 +48,18 @@ __decorate([
48
48
  }),
49
49
  __metadata("design:type", String)
50
50
  ], ApplicationEntity.prototype, "source_type", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
53
+ __metadata("design:type", Object)
54
+ ], ApplicationEntity.prototype, "source_type_id", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
57
+ __metadata("design:type", Object)
58
+ ], ApplicationEntity.prototype, "source_sub_type_id", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
61
+ __metadata("design:type", Object)
62
+ ], ApplicationEntity.prototype, "source_code_id", void 0);
51
63
  __decorate([
52
64
  (0, typeorm_1.Column)({ type: "varchar", length: 25, unique: true }),
53
65
  __metadata("design:type", String)
@@ -16,9 +16,12 @@ import { OrganizationStaffReportingLineEntity } from "./org_staff_reporting_line
16
16
  import { OccupationEntity } from "./occupation.entity";
17
17
  import { RelationshipEntity } from "./relationship.entity";
18
18
  import { StaffEntity } from "./staffs.entity";
19
+ import { SourceTypeEntity } from "./source_type.entity";
20
+ import { SourceSubTypeEntity } from "./source_sub_type.entity";
21
+ import { SourceCodeEntity } from "./source_code.entity";
19
22
  import { PaymentMethodEntity } from "./payment_method.entity";
20
23
  import { OrgReferralEntity } from "./org_referral.entity";
21
- 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];
22
- export { GeoProvinceEntity, GeoDistrictEntity, GeoCommuneEntity, GeoVillageEntity, MaritalStatusEntity, NationalityEntity, NumberSeriesEntity, OrganizationEntity, OrganizationBranchEntity, OrganizationChannelEntity, OrganizationDepartmentEntity, OrganizationPositionEntity, OrganizationStaffEntity, OrganizationStaffBranchEntity, OrganizationStaffReportingLineEntity, OrgReferralEntity, OccupationEntity, PaymentMethodEntity, RelationshipEntity, StaffEntity, };
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
+ export { GeoProvinceEntity, GeoDistrictEntity, GeoCommuneEntity, GeoVillageEntity, MaritalStatusEntity, NationalityEntity, NumberSeriesEntity, OrganizationEntity, OrganizationBranchEntity, OrganizationChannelEntity, OrganizationDepartmentEntity, OrganizationPositionEntity, OrganizationStaffEntity, OrganizationStaffBranchEntity, OrganizationStaffReportingLineEntity, OrgReferralEntity, OccupationEntity, PaymentMethodEntity, RelationshipEntity, StaffEntity, SourceTypeEntity, SourceSubTypeEntity, SourceCodeEntity, };
23
26
  export * from "./product";
24
27
  export * from "./finance";
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.StaffEntity = exports.RelationshipEntity = exports.PaymentMethodEntity = exports.OccupationEntity = exports.OrgReferralEntity = exports.OrganizationStaffReportingLineEntity = exports.OrganizationStaffBranchEntity = exports.OrganizationStaffEntity = exports.OrganizationPositionEntity = exports.OrganizationDepartmentEntity = exports.OrganizationChannelEntity = exports.OrganizationBranchEntity = exports.OrganizationEntity = exports.NumberSeriesEntity = exports.NationalityEntity = exports.MaritalStatusEntity = exports.GeoVillageEntity = exports.GeoCommuneEntity = exports.GeoDistrictEntity = exports.GeoProvinceEntity = exports.CORE_ENTITIES = void 0;
17
+ exports.SourceCodeEntity = exports.SourceSubTypeEntity = exports.SourceTypeEntity = exports.StaffEntity = exports.RelationshipEntity = exports.PaymentMethodEntity = exports.OccupationEntity = exports.OrgReferralEntity = exports.OrganizationStaffReportingLineEntity = exports.OrganizationStaffBranchEntity = exports.OrganizationStaffEntity = exports.OrganizationPositionEntity = exports.OrganizationDepartmentEntity = exports.OrganizationChannelEntity = exports.OrganizationBranchEntity = exports.OrganizationEntity = exports.NumberSeriesEntity = exports.NationalityEntity = exports.MaritalStatusEntity = exports.GeoVillageEntity = exports.GeoCommuneEntity = exports.GeoDistrictEntity = exports.GeoProvinceEntity = exports.CORE_ENTITIES = void 0;
18
18
  const geo_province_entity_1 = require("./geo_province.entity");
19
19
  Object.defineProperty(exports, "GeoProvinceEntity", { enumerable: true, get: function () { return geo_province_entity_1.GeoProvinceEntity; } });
20
20
  const geo_district_entity_1 = require("./geo_district.entity");
@@ -51,6 +51,12 @@ const relationship_entity_1 = require("./relationship.entity");
51
51
  Object.defineProperty(exports, "RelationshipEntity", { enumerable: true, get: function () { return relationship_entity_1.RelationshipEntity; } });
52
52
  const staffs_entity_1 = require("./staffs.entity");
53
53
  Object.defineProperty(exports, "StaffEntity", { enumerable: true, get: function () { return staffs_entity_1.StaffEntity; } });
54
+ const source_type_entity_1 = require("./source_type.entity");
55
+ Object.defineProperty(exports, "SourceTypeEntity", { enumerable: true, get: function () { return source_type_entity_1.SourceTypeEntity; } });
56
+ const source_sub_type_entity_1 = require("./source_sub_type.entity");
57
+ Object.defineProperty(exports, "SourceSubTypeEntity", { enumerable: true, get: function () { return source_sub_type_entity_1.SourceSubTypeEntity; } });
58
+ const source_code_entity_1 = require("./source_code.entity");
59
+ Object.defineProperty(exports, "SourceCodeEntity", { enumerable: true, get: function () { return source_code_entity_1.SourceCodeEntity; } });
54
60
  const product_1 = require("./product");
55
61
  const payment_method_entity_1 = require("./payment_method.entity");
56
62
  Object.defineProperty(exports, "PaymentMethodEntity", { enumerable: true, get: function () { return payment_method_entity_1.PaymentMethodEntity; } });
@@ -83,6 +89,9 @@ exports.CORE_ENTITIES = [
83
89
  relationship_entity_1.RelationshipEntity,
84
90
  //
85
91
  staffs_entity_1.StaffEntity,
92
+ source_type_entity_1.SourceTypeEntity,
93
+ source_sub_type_entity_1.SourceSubTypeEntity,
94
+ source_code_entity_1.SourceCodeEntity,
86
95
  //
87
96
  ...product_1.PRODUCT_ENTITIES,
88
97
  ...finance_1.FINANCE_ENTITIES,
@@ -0,0 +1,11 @@
1
+ import { _BaseGeneralEntity } from "../_base_general_entity";
2
+ import { SourceSubTypeEntity } from "./source_sub_type.entity";
3
+ import { SourceTypeEntity } from "./source_type.entity";
4
+ export declare class SourceCodeEntity extends _BaseGeneralEntity {
5
+ code: string;
6
+ source_type_id: string;
7
+ source_sub_type_id?: string | null;
8
+ org_id?: string | null;
9
+ source_type: SourceTypeEntity;
10
+ source_sub_type?: SourceSubTypeEntity | null;
11
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SourceCodeEntity = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const _base_general_entity_1 = require("../_base_general_entity");
15
+ const source_sub_type_entity_1 = require("./source_sub_type.entity");
16
+ const source_type_entity_1 = require("./source_type.entity");
17
+ let SourceCodeEntity = class SourceCodeEntity extends _base_general_entity_1._BaseGeneralEntity {
18
+ };
19
+ exports.SourceCodeEntity = SourceCodeEntity;
20
+ __decorate([
21
+ (0, typeorm_1.Column)({ type: "varchar", length: 20 }),
22
+ __metadata("design:type", String)
23
+ ], SourceCodeEntity.prototype, "code", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ type: "uuid" }),
26
+ __metadata("design:type", String)
27
+ ], SourceCodeEntity.prototype, "source_type_id", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
30
+ __metadata("design:type", Object)
31
+ ], SourceCodeEntity.prototype, "source_sub_type_id", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
34
+ __metadata("design:type", Object)
35
+ ], SourceCodeEntity.prototype, "org_id", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.ManyToOne)(() => source_type_entity_1.SourceTypeEntity, { onDelete: "RESTRICT" }),
38
+ (0, typeorm_1.JoinColumn)({ name: "source_type_id" }),
39
+ __metadata("design:type", source_type_entity_1.SourceTypeEntity)
40
+ ], SourceCodeEntity.prototype, "source_type", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.ManyToOne)(() => source_sub_type_entity_1.SourceSubTypeEntity, { onDelete: "RESTRICT" }),
43
+ (0, typeorm_1.JoinColumn)({ name: "source_sub_type_id" }),
44
+ __metadata("design:type", Object)
45
+ ], SourceCodeEntity.prototype, "source_sub_type", void 0);
46
+ exports.SourceCodeEntity = SourceCodeEntity = __decorate([
47
+ (0, typeorm_1.Entity)({ name: "source_codes", schema: "core" })
48
+ ], SourceCodeEntity);
@@ -0,0 +1,7 @@
1
+ import { _BaseGeneralEntity } from "../_base_general_entity";
2
+ import { SourceTypeEntity } from "./source_type.entity";
3
+ export declare class SourceSubTypeEntity extends _BaseGeneralEntity {
4
+ code: string;
5
+ source_type_id: string;
6
+ source_type: SourceTypeEntity;
7
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SourceSubTypeEntity = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const _base_general_entity_1 = require("../_base_general_entity");
15
+ const source_type_entity_1 = require("./source_type.entity");
16
+ let SourceSubTypeEntity = class SourceSubTypeEntity extends _base_general_entity_1._BaseGeneralEntity {
17
+ };
18
+ exports.SourceSubTypeEntity = SourceSubTypeEntity;
19
+ __decorate([
20
+ (0, typeorm_1.Column)({ type: "varchar", length: 10, unique: true }),
21
+ __metadata("design:type", String)
22
+ ], SourceSubTypeEntity.prototype, "code", void 0);
23
+ __decorate([
24
+ (0, typeorm_1.Column)({ type: "uuid" }),
25
+ __metadata("design:type", String)
26
+ ], SourceSubTypeEntity.prototype, "source_type_id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.ManyToOne)(() => source_type_entity_1.SourceTypeEntity, { onDelete: "RESTRICT" }),
29
+ (0, typeorm_1.JoinColumn)({ name: "source_type_id" }),
30
+ __metadata("design:type", source_type_entity_1.SourceTypeEntity)
31
+ ], SourceSubTypeEntity.prototype, "source_type", void 0);
32
+ exports.SourceSubTypeEntity = SourceSubTypeEntity = __decorate([
33
+ (0, typeorm_1.Entity)({ schema: "core", name: "source_sub_types" })
34
+ ], SourceSubTypeEntity);
@@ -0,0 +1,4 @@
1
+ import { _BaseGeneralEntity } from "../_base_general_entity";
2
+ export declare class SourceTypeEntity extends _BaseGeneralEntity {
3
+ code: string;
4
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SourceTypeEntity = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const _base_general_entity_1 = require("../_base_general_entity");
15
+ let SourceTypeEntity = class SourceTypeEntity extends _base_general_entity_1._BaseGeneralEntity {
16
+ };
17
+ exports.SourceTypeEntity = SourceTypeEntity;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: "varchar", length: 10, unique: true }),
20
+ __metadata("design:type", String)
21
+ ], SourceTypeEntity.prototype, "code", void 0);
22
+ exports.SourceTypeEntity = SourceTypeEntity = __decorate([
23
+ (0, typeorm_1.Entity)({ schema: "core", name: "source_types" })
24
+ ], SourceTypeEntity);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.3.109",
3
+ "version": "1.3.112",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {