plac-micro-common 1.3.120 → 1.3.122
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/dist/models/underwriting/index.d.ts +3 -2
- package/dist/models/underwriting/index.js +8 -2
- package/dist/models/underwriting/uw_case_letter.entity.d.ts +13 -0
- package/dist/models/underwriting/uw_case_letter.entity.js +76 -0
- package/dist/types/permission.type.d.ts +2 -1
- package/dist/types/permission.type.js +2 -1
- package/dist/types/underwriting.type.d.ts +12 -0
- package/dist/types/underwriting.type.js +15 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UwCaseEntity } from "./uw_case.entity";
|
|
2
2
|
import { UwCaseEventEntity } from "./uw_case_event.entity";
|
|
3
|
-
|
|
4
|
-
export
|
|
3
|
+
import { UwCaseLetterEntity } from "./uw_case_letter.entity";
|
|
4
|
+
export declare const UNDERWRITING_ENTITIES: readonly [typeof UwCaseEntity, typeof UwCaseEventEntity, typeof UwCaseLetterEntity];
|
|
5
|
+
export { UwCaseEntity, UwCaseEventEntity, UwCaseLetterEntity };
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UwCaseEventEntity = exports.UwCaseEntity = exports.UNDERWRITING_ENTITIES = void 0;
|
|
3
|
+
exports.UwCaseLetterEntity = exports.UwCaseEventEntity = exports.UwCaseEntity = exports.UNDERWRITING_ENTITIES = void 0;
|
|
4
4
|
const uw_case_entity_1 = require("./uw_case.entity");
|
|
5
5
|
Object.defineProperty(exports, "UwCaseEntity", { enumerable: true, get: function () { return uw_case_entity_1.UwCaseEntity; } });
|
|
6
6
|
const uw_case_event_entity_1 = require("./uw_case_event.entity");
|
|
7
7
|
Object.defineProperty(exports, "UwCaseEventEntity", { enumerable: true, get: function () { return uw_case_event_entity_1.UwCaseEventEntity; } });
|
|
8
|
-
|
|
8
|
+
const uw_case_letter_entity_1 = require("./uw_case_letter.entity");
|
|
9
|
+
Object.defineProperty(exports, "UwCaseLetterEntity", { enumerable: true, get: function () { return uw_case_letter_entity_1.UwCaseLetterEntity; } });
|
|
10
|
+
exports.UNDERWRITING_ENTITIES = [
|
|
11
|
+
uw_case_entity_1.UwCaseEntity,
|
|
12
|
+
uw_case_event_entity_1.UwCaseEventEntity,
|
|
13
|
+
uw_case_letter_entity_1.UwCaseLetterEntity,
|
|
14
|
+
];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { _BaseEntity } from "../_base_entity";
|
|
2
|
+
import { UWLetterLanguage, UWLetterType } from "../../types";
|
|
3
|
+
import { UwCaseEntity } from "./uw_case.entity";
|
|
4
|
+
export declare class UwCaseLetterEntity extends _BaseEntity {
|
|
5
|
+
id: string;
|
|
6
|
+
uw_case_id: string;
|
|
7
|
+
template_type: UWLetterType;
|
|
8
|
+
language: UWLetterLanguage;
|
|
9
|
+
version: number;
|
|
10
|
+
content_body?: string | null;
|
|
11
|
+
meta?: Record<string, any> | null;
|
|
12
|
+
uw_case?: UwCaseEntity;
|
|
13
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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.UwCaseLetterEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const _base_entity_1 = require("../_base_entity");
|
|
15
|
+
const utils_1 = require("../../utils");
|
|
16
|
+
const types_1 = require("../../types");
|
|
17
|
+
const uw_case_entity_1 = require("./uw_case.entity");
|
|
18
|
+
let UwCaseLetterEntity = class UwCaseLetterEntity extends _base_entity_1._BaseEntity {
|
|
19
|
+
};
|
|
20
|
+
exports.UwCaseLetterEntity = UwCaseLetterEntity;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], UwCaseLetterEntity.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], UwCaseLetterEntity.prototype, "uw_case_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({
|
|
31
|
+
type: "varchar",
|
|
32
|
+
length: 50,
|
|
33
|
+
comment: (0, utils_1.enumToCommentString)(types_1.UWLetterType),
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], UwCaseLetterEntity.prototype, "template_type", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({
|
|
39
|
+
type: "varchar",
|
|
40
|
+
length: 5,
|
|
41
|
+
default: types_1.UWLetterLanguage.English,
|
|
42
|
+
comment: (0, utils_1.enumToCommentString)(types_1.UWLetterLanguage),
|
|
43
|
+
}),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], UwCaseLetterEntity.prototype, "language", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "int", default: 1 }),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], UwCaseLetterEntity.prototype, "version", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], UwCaseLetterEntity.prototype, "content_body", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], UwCaseLetterEntity.prototype, "meta", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.ManyToOne)(() => uw_case_entity_1.UwCaseEntity, { onDelete: "CASCADE" }),
|
|
60
|
+
(0, typeorm_1.JoinColumn)({
|
|
61
|
+
name: "uw_case_id",
|
|
62
|
+
foreignKeyConstraintName: "FK_uw_case_letters_uw_case",
|
|
63
|
+
}),
|
|
64
|
+
__metadata("design:type", uw_case_entity_1.UwCaseEntity)
|
|
65
|
+
], UwCaseLetterEntity.prototype, "uw_case", void 0);
|
|
66
|
+
exports.UwCaseLetterEntity = UwCaseLetterEntity = __decorate([
|
|
67
|
+
(0, typeorm_1.Entity)({ schema: "underwriting", name: "uw_case_letters" }),
|
|
68
|
+
(0, typeorm_1.Index)("ix_uw_case_letters_uw_case_id", ["uw_case_id"]),
|
|
69
|
+
(0, typeorm_1.Index)("ix_uw_case_letters_template_type", ["template_type"]),
|
|
70
|
+
(0, typeorm_1.Unique)("uq_uw_case_letters_case_type_lang_version", [
|
|
71
|
+
"uw_case_id",
|
|
72
|
+
"template_type",
|
|
73
|
+
"language",
|
|
74
|
+
"version",
|
|
75
|
+
])
|
|
76
|
+
], UwCaseLetterEntity);
|
|
@@ -22,7 +22,8 @@ export declare enum PermissionAction {
|
|
|
22
22
|
Transfer = "transfer",
|
|
23
23
|
Update = "update",
|
|
24
24
|
Void = "void",
|
|
25
|
-
ReadOrg = "readOrg"
|
|
25
|
+
ReadOrg = "readOrg",
|
|
26
|
+
ReadAll = "readAll"
|
|
26
27
|
}
|
|
27
28
|
export declare const PermissionResource: {
|
|
28
29
|
readonly AuditLog: "audit_log";
|
|
@@ -27,8 +27,9 @@ var PermissionAction;
|
|
|
27
27
|
PermissionAction["Transfer"] = "transfer";
|
|
28
28
|
PermissionAction["Update"] = "update";
|
|
29
29
|
PermissionAction["Void"] = "void";
|
|
30
|
-
// special - org level
|
|
30
|
+
// special - org & app level
|
|
31
31
|
PermissionAction["ReadOrg"] = "readOrg";
|
|
32
|
+
PermissionAction["ReadAll"] = "readAll";
|
|
32
33
|
})(PermissionAction || (exports.PermissionAction = PermissionAction = {}));
|
|
33
34
|
exports.PermissionResource = {
|
|
34
35
|
AuditLog: "audit_log",
|
|
@@ -98,3 +98,15 @@ export declare enum UwCaseAction {
|
|
|
98
98
|
Reassign = "reassign",
|
|
99
99
|
Release = "release"
|
|
100
100
|
}
|
|
101
|
+
export declare enum UWLetterType {
|
|
102
|
+
CounterOffer = "ctof",
|
|
103
|
+
Declined = "declined",
|
|
104
|
+
Decision = "decision",
|
|
105
|
+
MedicalExamination = "med",
|
|
106
|
+
Endorsement = "endorsement",
|
|
107
|
+
Rejected = "rejected"
|
|
108
|
+
}
|
|
109
|
+
export declare enum UWLetterLanguage {
|
|
110
|
+
English = "en",
|
|
111
|
+
Khmer = "kh"
|
|
112
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UwCaseAction = exports.UwCaseStatus = exports.DeclinedBenefitType = exports.UWDecisionType = exports.UnderwritingQuestionComponents = exports.UnderwritingBaseQuestionCode = exports.UnderwritingQuestionGroupCode = exports.UnderwritingSIOQuestionCode = void 0;
|
|
3
|
+
exports.UWLetterLanguage = exports.UWLetterType = exports.UwCaseAction = exports.UwCaseStatus = exports.DeclinedBenefitType = exports.UWDecisionType = exports.UnderwritingQuestionComponents = exports.UnderwritingBaseQuestionCode = exports.UnderwritingQuestionGroupCode = exports.UnderwritingSIOQuestionCode = void 0;
|
|
4
4
|
var UnderwritingSIOQuestionCode;
|
|
5
5
|
(function (UnderwritingSIOQuestionCode) {
|
|
6
6
|
UnderwritingSIOQuestionCode["Q_USA"] = "Q-SIO-USA";
|
|
@@ -100,3 +100,17 @@ var UwCaseAction;
|
|
|
100
100
|
UwCaseAction["Reassign"] = "reassign";
|
|
101
101
|
UwCaseAction["Release"] = "release";
|
|
102
102
|
})(UwCaseAction || (exports.UwCaseAction = UwCaseAction = {}));
|
|
103
|
+
var UWLetterType;
|
|
104
|
+
(function (UWLetterType) {
|
|
105
|
+
UWLetterType["CounterOffer"] = "ctof";
|
|
106
|
+
UWLetterType["Declined"] = "declined";
|
|
107
|
+
UWLetterType["Decision"] = "decision";
|
|
108
|
+
UWLetterType["MedicalExamination"] = "med";
|
|
109
|
+
UWLetterType["Endorsement"] = "endorsement";
|
|
110
|
+
UWLetterType["Rejected"] = "rejected";
|
|
111
|
+
})(UWLetterType || (exports.UWLetterType = UWLetterType = {}));
|
|
112
|
+
var UWLetterLanguage;
|
|
113
|
+
(function (UWLetterLanguage) {
|
|
114
|
+
UWLetterLanguage["English"] = "en";
|
|
115
|
+
UWLetterLanguage["Khmer"] = "kh";
|
|
116
|
+
})(UWLetterLanguage || (exports.UWLetterLanguage = UWLetterLanguage = {}));
|