plac-micro-common 1.3.43 → 1.3.44

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.
@@ -1,5 +1,5 @@
1
1
  import { _BaseEntity } from "../_base_entity";
2
- import { ApplicationStatus, AppPhLaRelation } from "../../types";
2
+ import { AppFormType, ApplicationStatus, AppPhLaRelation } from "../../types";
3
3
  import { OrganizationBranchEntity, OrganizationEntity, OrganizationStaffEntity } from "../core";
4
4
  import { AppCoverageEntity } from "./app_coverage.entity";
5
5
  import { AppPersonEntity } from "./app_person.entity";
@@ -10,7 +10,11 @@ import { AppDocumentEntity } from "./app_document.entity";
10
10
  import { AppPaymentEntity } from "./app_payment.entity";
11
11
  export declare class ApplicationEntity extends _BaseEntity {
12
12
  id: string;
13
+ form_type: AppFormType;
13
14
  application_no: string;
15
+ cover_note_no?: string | null;
16
+ policy_no?: string | null;
17
+ receipt_no?: string | null;
14
18
  ph_la_relation: AppPhLaRelation;
15
19
  external_ref?: string | null;
16
20
  legacy_id?: string | null;
@@ -30,9 +30,30 @@ __decorate([
30
30
  __metadata("design:type", String)
31
31
  ], ApplicationEntity.prototype, "id", void 0);
32
32
  __decorate([
33
- (0, typeorm_1.Column)({ type: "varchar", length: 50, unique: true }),
33
+ (0, typeorm_1.Column)({
34
+ type: "varchar",
35
+ length: 10,
36
+ comment: (0, utils_1.enumToCommentString)(types_1.AppFormType),
37
+ default: types_1.AppFormType.FullUnderwriting,
38
+ }),
39
+ __metadata("design:type", String)
40
+ ], ApplicationEntity.prototype, "form_type", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: "varchar", length: 25, unique: true }),
34
43
  __metadata("design:type", String)
35
44
  ], ApplicationEntity.prototype, "application_no", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: "varchar", length: 25, nullable: true, unique: true }),
47
+ __metadata("design:type", Object)
48
+ ], ApplicationEntity.prototype, "cover_note_no", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: "varchar", length: 25, nullable: true, unique: true }),
51
+ __metadata("design:type", Object)
52
+ ], ApplicationEntity.prototype, "policy_no", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: "varchar", length: 25, nullable: true, unique: true }),
55
+ __metadata("design:type", Object)
56
+ ], ApplicationEntity.prototype, "receipt_no", void 0);
36
57
  __decorate([
37
58
  (0, typeorm_1.Column)({
38
59
  type: "varchar",
@@ -1,3 +1,7 @@
1
+ export declare enum AppFormType {
2
+ FullUnderwriting = "full_uw",
3
+ Simplified = "sio"
4
+ }
1
5
  export declare enum ApplicationStatus {
2
6
  New = "new",// Agent drafting
3
7
  Completed = "completed",// Agent completed but not yet submitted
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppPaymentStatus = exports.AppPaymentType = exports.AppDocumentType = exports.UwAnswerValueType = exports.AppCoverageType = exports.AppPhLaRelation = exports.AppPersonRole = exports.ApplicationActionType = exports.ApplicationStatus = void 0;
3
+ exports.AppPaymentStatus = exports.AppPaymentType = exports.AppDocumentType = exports.UwAnswerValueType = exports.AppCoverageType = exports.AppPhLaRelation = exports.AppPersonRole = exports.ApplicationActionType = exports.ApplicationStatus = exports.AppFormType = void 0;
4
+ var AppFormType;
5
+ (function (AppFormType) {
6
+ AppFormType["FullUnderwriting"] = "full_uw";
7
+ AppFormType["Simplified"] = "sio";
8
+ })(AppFormType || (exports.AppFormType = AppFormType = {}));
4
9
  var ApplicationStatus;
5
10
  (function (ApplicationStatus) {
6
11
  ApplicationStatus["New"] = "new";
@@ -17,7 +17,9 @@ export declare enum ChannelType {
17
17
  }
18
18
  export declare enum DocumentType {
19
19
  Application = "application",
20
- Policy = "policy",
21
20
  Claim = "claim",
21
+ CoverNote = "cover_note",
22
+ OfficialReceipt = "official_receipt",
23
+ Policy = "policy",
22
24
  Quotation = "quotation"
23
25
  }
@@ -23,7 +23,9 @@ var ChannelType;
23
23
  var DocumentType;
24
24
  (function (DocumentType) {
25
25
  DocumentType["Application"] = "application";
26
- DocumentType["Policy"] = "policy";
27
26
  DocumentType["Claim"] = "claim";
27
+ DocumentType["CoverNote"] = "cover_note";
28
+ DocumentType["OfficialReceipt"] = "official_receipt";
29
+ DocumentType["Policy"] = "policy";
28
30
  DocumentType["Quotation"] = "quotation";
29
31
  })(DocumentType || (exports.DocumentType = DocumentType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.3.43",
3
+ "version": "1.3.44",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {