plac-micro-common 1.3.102 → 1.3.104

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.
@@ -44,6 +44,10 @@ exports.UW_FORM_TEMPLATE = `
44
44
  border-bottom: none !important;
45
45
  }
46
46
 
47
+ .form-table .sub {
48
+ border: none !important;
49
+ }
50
+
47
51
  .form-field-line {
48
52
  border-bottom: 1px solid #000;
49
53
  min-height: 18px;
@@ -96,6 +100,14 @@ exports.UW_FORM_TEMPLATE = `
96
100
  page-break-inside: avoid;
97
101
  break-inside: avoid;
98
102
  }
103
+
104
+ .underline-field {
105
+ display: inline-block;
106
+ width: 180px; /* Adjust as needed */
107
+ text-align: center;
108
+ border-bottom: 1px solid #000;
109
+ min-height: 20px;
110
+ }
99
111
  </style>
100
112
 
101
113
  </head>
@@ -104,6 +116,10 @@ exports.UW_FORM_TEMPLATE = `
104
116
  + '<input type="checkbox" ' + (value===true ? 'checked' : '' ) + ' />' + '<span>មាន / Yes</span>' + '&nbsp;&nbsp;'
105
117
  + '<input type="checkbox" ' + (value===false ? 'checked' : '' ) + ' />' + '<span>មិនមាន / No</span>' + '</div>' ; } %>
106
118
 
119
+ <% function yesNotCheckbox(value, name) { return '<div class="flex items-center gap-2" style="margin-top:3px;">'
120
+ + '<input type="checkbox" ' + (value===true ? 'checked' : '' ) + ' />' + '<span>មែន / Yes</span>' + '&nbsp;&nbsp;'
121
+ + '<input type="checkbox" ' + (value===false ? 'checked' : '' ) + ' />' + '<span>មិនមែន / No</span>' + '</div>' ; } %>
122
+
107
123
 
108
124
  <% function renderField(value) { const hasValue=value && value.toString().trim();
109
125
  return '<div style="border-bottom:1px solid #000;min-height:18px;width:100%;display:block;margin-top:4px;">' +
@@ -554,13 +570,34 @@ exports.UW_FORM_TEMPLATE = `
554
570
  <span>ម្ចាស់បណ្ណសន្យារ៉ាប់រងជាពលរដ្ឋអាមេរិក ឬ ជាប់ពន្ធស្នាក់នៅអាមេរិក ឬ
555
571
  មានសិទ្ធិកាន់</span>
556
572
  <span> Green Card </span>
557
- <span>។ </span>
573
+ <span>? </span>
558
574
  <p>
559
575
  <span>The Policyholder is USA citizen / USA resident for tax purpose or holding
560
576
  Green
561
- Card.</span>
577
+ Card ?</span>
562
578
  </p>
563
- <%- yesNoCheckbox(ph_is_not_us_citizen) %>
579
+ <%- yesNotCheckbox(fatca_info.is_fatca) %>
580
+ <table class="table w-full table-fixed border-collapse form-table">
581
+ <colgroup>
582
+ <col style="width: 25%">
583
+ <col style="width: 70%">
584
+ </colgroup>
585
+ <tr>
586
+ <td class="sub p-2.5 pl-0">
587
+ <span class="label">US TIN#:</span>
588
+ <span class="underline-field">
589
+ <%= fatca_info.us_tin_no || " " %>
590
+ </span>
591
+ </td>
592
+ <td class="sub p-2.5 pl-0">
593
+ <span class="label">លេខកូដលើកលែងFATCA / FATCA Exemption Code (ប្រសិនបើមាន):</span>
594
+ <span class="underline-field">
595
+ <%= fatca_info.fatca_exempt_code || " " %>
596
+ </span>
597
+ </td>
598
+ </tr>
599
+ <tr>
600
+ </table>
564
601
  </td>
565
602
  </tr>
566
603
  </thead>
@@ -20,6 +20,8 @@ export declare class AppPersonEntity extends _BaseEntity {
20
20
  nationality_id?: string | null;
21
21
  marital_status_id?: string | null;
22
22
  occupation_id?: string | null;
23
+ occupation_detail?: string | null;
24
+ number_of_children?: number | null;
23
25
  identifier_type?: IdentifierType | null;
24
26
  identifier_no?: string | null;
25
27
  phone_number?: string | null;
@@ -92,6 +92,14 @@ __decorate([
92
92
  (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
93
93
  __metadata("design:type", Object)
94
94
  ], AppPersonEntity.prototype, "occupation_id", void 0);
95
+ __decorate([
96
+ (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
97
+ __metadata("design:type", Object)
98
+ ], AppPersonEntity.prototype, "occupation_detail", void 0);
99
+ __decorate([
100
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
101
+ __metadata("design:type", Object)
102
+ ], AppPersonEntity.prototype, "number_of_children", void 0);
95
103
  __decorate([
96
104
  (0, typeorm_1.Index)(),
97
105
  (0, typeorm_1.Column)({
@@ -61,6 +61,7 @@ export declare class ApplicationEntity extends _BaseEntity {
61
61
  reviewed_remark?: string | null;
62
62
  is_active: boolean;
63
63
  is_migrated: boolean;
64
+ metadata?: Record<string, any> | null;
64
65
  org: OrganizationEntity;
65
66
  owner_org_staff: OrganizationStaffEntity;
66
67
  assigned_org_staff?: OrganizationStaffEntity | null;
@@ -298,6 +298,10 @@ __decorate([
298
298
  (0, typeorm_1.Column)({ type: "boolean", default: false }),
299
299
  __metadata("design:type", Boolean)
300
300
  ], ApplicationEntity.prototype, "is_migrated", void 0);
301
+ __decorate([
302
+ (0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
303
+ __metadata("design:type", Object)
304
+ ], ApplicationEntity.prototype, "metadata", void 0);
301
305
  __decorate([
302
306
  (0, typeorm_1.ManyToOne)(() => core_1.OrganizationEntity, { onDelete: "RESTRICT" }),
303
307
  (0, typeorm_1.JoinColumn)({ name: "org_id" }),
@@ -14,6 +14,7 @@ export declare class CustomerIndividualProfileEntity extends _BaseEntity {
14
14
  marital_status_id?: string | null;
15
15
  nationality_id?: string | null;
16
16
  occupation_id?: string | null;
17
+ number_of_children?: number | null;
17
18
  customer: CustomerEntity;
18
19
  marital_status?: MaritalStatusEntity;
19
20
  nationality?: NationalityEntity;
@@ -69,6 +69,10 @@ __decorate([
69
69
  (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
70
70
  __metadata("design:type", Object)
71
71
  ], CustomerIndividualProfileEntity.prototype, "occupation_id", void 0);
72
+ __decorate([
73
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
74
+ __metadata("design:type", Object)
75
+ ], CustomerIndividualProfileEntity.prototype, "number_of_children", void 0);
72
76
  __decorate([
73
77
  (0, typeorm_1.OneToOne)(() => customer_entity_1.CustomerEntity, (c) => c.individual_profile, {
74
78
  onDelete: "CASCADE",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.3.102",
3
+ "version": "1.3.104",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -0,0 +1,2 @@
1
+ allowBuilds:
2
+ '@nestjs/core': set this to true or false