plac-micro-common 1.3.70 → 1.3.72
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/application/app_underwriting_answer.entity.d.ts +3 -0
- package/dist/models/application/app_underwriting_answer.entity.js +12 -0
- package/dist/models/application/application.entity.js +1 -1
- package/dist/models/application/underwriting_question.entity.d.ts +5 -1
- package/dist/models/application/underwriting_question.entity.js +19 -0
- package/dist/models/application/underwriting_question_components.entity.d.ts +16 -0
- package/dist/models/application/underwriting_question_components.entity.js +75 -0
- package/dist/models/core/product/product.entity.d.ts +2 -1
- package/dist/models/core/product/product.entity.js +9 -0
- package/dist/types/application.type.d.ts +5 -3
- package/dist/types/application.type.js +5 -3
- package/dist/types/general.type.d.ts +1 -0
- package/dist/types/general.type.js +1 -0
- package/dist/types/notification.type.d.ts +47 -0
- package/dist/types/notification.type.js +58 -0
- package/dist/utils/frontend/data.util.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,16 +3,19 @@ import { ApplicationEntity } from "./application.entity";
|
|
|
3
3
|
import { AppCoverageEntity } from "./app_coverage.entity";
|
|
4
4
|
import { UnderwritingQuestionEntity } from "./underwriting_question.entity";
|
|
5
5
|
import { AppPersonEntity } from "./app_person.entity";
|
|
6
|
+
import { UnderwritingQuestionComponentEntity } from "./underwriting_question_components.entity";
|
|
6
7
|
export declare class AppUnderwritingAnswerEntity extends _BaseEntity {
|
|
7
8
|
id: string;
|
|
8
9
|
application_id: string;
|
|
9
10
|
application_person_id: string | null;
|
|
10
11
|
app_coverage_id: string | null;
|
|
11
12
|
question_id: string;
|
|
13
|
+
question_component_id?: string | null;
|
|
12
14
|
value: string | null;
|
|
13
15
|
remark?: string | null;
|
|
14
16
|
application?: ApplicationEntity;
|
|
15
17
|
application_person?: AppPersonEntity | null;
|
|
16
18
|
app_coverage?: AppCoverageEntity | null;
|
|
17
19
|
question?: UnderwritingQuestionEntity;
|
|
20
|
+
question_component?: UnderwritingQuestionComponentEntity | null;
|
|
18
21
|
}
|
|
@@ -16,6 +16,7 @@ const application_entity_1 = require("./application.entity");
|
|
|
16
16
|
const app_coverage_entity_1 = require("./app_coverage.entity");
|
|
17
17
|
const underwriting_question_entity_1 = require("./underwriting_question.entity");
|
|
18
18
|
const app_person_entity_1 = require("./app_person.entity");
|
|
19
|
+
const underwriting_question_components_entity_1 = require("./underwriting_question_components.entity");
|
|
19
20
|
let AppUnderwritingAnswerEntity = class AppUnderwritingAnswerEntity extends _base_entity_1._BaseEntity {
|
|
20
21
|
};
|
|
21
22
|
exports.AppUnderwritingAnswerEntity = AppUnderwritingAnswerEntity;
|
|
@@ -43,6 +44,10 @@ __decorate([
|
|
|
43
44
|
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
44
45
|
__metadata("design:type", String)
|
|
45
46
|
], AppUnderwritingAnswerEntity.prototype, "question_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], AppUnderwritingAnswerEntity.prototype, "question_component_id", void 0);
|
|
46
51
|
__decorate([
|
|
47
52
|
(0, typeorm_1.Column)({ type: "varchar", length: 2000 }),
|
|
48
53
|
__metadata("design:type", Object)
|
|
@@ -71,6 +76,13 @@ __decorate([
|
|
|
71
76
|
(0, typeorm_1.JoinColumn)({ name: "question_id" }),
|
|
72
77
|
__metadata("design:type", underwriting_question_entity_1.UnderwritingQuestionEntity)
|
|
73
78
|
], AppUnderwritingAnswerEntity.prototype, "question", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.ManyToOne)(() => underwriting_question_components_entity_1.UnderwritingQuestionComponentEntity, {
|
|
81
|
+
onDelete: "RESTRICT",
|
|
82
|
+
}),
|
|
83
|
+
(0, typeorm_1.JoinColumn)({ name: "question_component_id" }),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], AppUnderwritingAnswerEntity.prototype, "question_component", void 0);
|
|
74
86
|
exports.AppUnderwritingAnswerEntity = AppUnderwritingAnswerEntity = __decorate([
|
|
75
87
|
(0, typeorm_1.Entity)({ schema: "application", name: "app_underwriting_answers" }),
|
|
76
88
|
(0, typeorm_1.Unique)("uq_app_uw_ans_scope_question", [
|
|
@@ -34,7 +34,7 @@ __decorate([
|
|
|
34
34
|
type: "varchar",
|
|
35
35
|
length: 10,
|
|
36
36
|
comment: (0, utils_1.enumToCommentString)(types_1.AppFormType),
|
|
37
|
-
default: types_1.AppFormType.
|
|
37
|
+
default: types_1.AppFormType.Base,
|
|
38
38
|
}),
|
|
39
39
|
__metadata("design:type", String)
|
|
40
40
|
], ApplicationEntity.prototype, "form_type", void 0);
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { _BaseEntity } from "../_base_entity";
|
|
2
|
-
import { UwAnswerValueType } from "../../types";
|
|
2
|
+
import { AppFormType, UwAnswerValueType } from "../../types";
|
|
3
|
+
import { UnderwritingQuestionComponentEntity } from "./underwriting_question_components.entity";
|
|
3
4
|
export declare class UnderwritingQuestionEntity extends _BaseEntity {
|
|
4
5
|
id: string;
|
|
6
|
+
question_app_form_type: AppFormType;
|
|
7
|
+
group_code?: string;
|
|
5
8
|
question_code: string;
|
|
6
9
|
question_text: string;
|
|
7
10
|
question_text_kh?: string;
|
|
@@ -13,4 +16,5 @@ export declare class UnderwritingQuestionEntity extends _BaseEntity {
|
|
|
13
16
|
sequence_no: number;
|
|
14
17
|
meta?: Record<string, any>;
|
|
15
18
|
is_active: boolean;
|
|
19
|
+
components?: UnderwritingQuestionComponentEntity[];
|
|
16
20
|
}
|
|
@@ -14,6 +14,7 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const _base_entity_1 = require("../_base_entity");
|
|
15
15
|
const types_1 = require("../../types");
|
|
16
16
|
const utils_1 = require("../../utils");
|
|
17
|
+
const underwriting_question_components_entity_1 = require("./underwriting_question_components.entity");
|
|
17
18
|
let UnderwritingQuestionEntity = class UnderwritingQuestionEntity extends _base_entity_1._BaseEntity {
|
|
18
19
|
};
|
|
19
20
|
exports.UnderwritingQuestionEntity = UnderwritingQuestionEntity;
|
|
@@ -21,6 +22,20 @@ __decorate([
|
|
|
21
22
|
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
22
23
|
__metadata("design:type", String)
|
|
23
24
|
], UnderwritingQuestionEntity.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({
|
|
27
|
+
type: "varchar",
|
|
28
|
+
length: 10,
|
|
29
|
+
comment: (0, utils_1.enumToCommentString)(types_1.AppFormType),
|
|
30
|
+
default: types_1.AppFormType.Base,
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], UnderwritingQuestionEntity.prototype, "question_app_form_type", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Index)(),
|
|
36
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], UnderwritingQuestionEntity.prototype, "group_code", void 0);
|
|
24
39
|
__decorate([
|
|
25
40
|
(0, typeorm_1.Index)(),
|
|
26
41
|
(0, typeorm_1.Column)({ type: "varchar", length: 50, unique: true }),
|
|
@@ -70,6 +85,10 @@ __decorate([
|
|
|
70
85
|
(0, typeorm_1.Column)({ type: "boolean", default: true }),
|
|
71
86
|
__metadata("design:type", Boolean)
|
|
72
87
|
], UnderwritingQuestionEntity.prototype, "is_active", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.OneToMany)(() => underwriting_question_components_entity_1.UnderwritingQuestionComponentEntity, (c) => c.question),
|
|
90
|
+
__metadata("design:type", Array)
|
|
91
|
+
], UnderwritingQuestionEntity.prototype, "components", void 0);
|
|
73
92
|
exports.UnderwritingQuestionEntity = UnderwritingQuestionEntity = __decorate([
|
|
74
93
|
(0, typeorm_1.Entity)({ schema: "application", name: "underwriting_questions" })
|
|
75
94
|
], UnderwritingQuestionEntity);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UwAnswerValueType } from "../../types";
|
|
2
|
+
import { _BaseEntity } from "../_base_entity";
|
|
3
|
+
import { UnderwritingQuestionEntity } from "./underwriting_question.entity";
|
|
4
|
+
export declare class UnderwritingQuestionComponentEntity extends _BaseEntity {
|
|
5
|
+
id: string;
|
|
6
|
+
question_id: string;
|
|
7
|
+
component_code: string;
|
|
8
|
+
label: string;
|
|
9
|
+
label_kh?: string;
|
|
10
|
+
value_type: UwAnswerValueType;
|
|
11
|
+
is_required: boolean;
|
|
12
|
+
sequence_no: number;
|
|
13
|
+
meta?: Record<string, any>;
|
|
14
|
+
is_active: boolean;
|
|
15
|
+
question?: UnderwritingQuestionEntity;
|
|
16
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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.UnderwritingQuestionComponentEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const utils_1 = require("../../utils");
|
|
15
|
+
const types_1 = require("../../types");
|
|
16
|
+
const _base_entity_1 = require("../_base_entity");
|
|
17
|
+
const underwriting_question_entity_1 = require("./underwriting_question.entity");
|
|
18
|
+
let UnderwritingQuestionComponentEntity = class UnderwritingQuestionComponentEntity extends _base_entity_1._BaseEntity {
|
|
19
|
+
};
|
|
20
|
+
exports.UnderwritingQuestionComponentEntity = UnderwritingQuestionComponentEntity;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], UnderwritingQuestionComponentEntity.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Index)(),
|
|
27
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], UnderwritingQuestionComponentEntity.prototype, "question_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50 }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], UnderwritingQuestionComponentEntity.prototype, "component_code", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "text" }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], UnderwritingQuestionComponentEntity.prototype, "label", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], UnderwritingQuestionComponentEntity.prototype, "label_kh", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({
|
|
44
|
+
type: "varchar",
|
|
45
|
+
length: 20,
|
|
46
|
+
comment: (0, utils_1.enumToCommentString)(types_1.UwAnswerValueType),
|
|
47
|
+
}),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], UnderwritingQuestionComponentEntity.prototype, "value_type", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false }),
|
|
52
|
+
__metadata("design:type", Boolean)
|
|
53
|
+
], UnderwritingQuestionComponentEntity.prototype, "is_required", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "integer", default: 1 }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], UnderwritingQuestionComponentEntity.prototype, "sequence_no", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], UnderwritingQuestionComponentEntity.prototype, "meta", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true }),
|
|
64
|
+
__metadata("design:type", Boolean)
|
|
65
|
+
], UnderwritingQuestionComponentEntity.prototype, "is_active", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.ManyToOne)(() => underwriting_question_entity_1.UnderwritingQuestionEntity, (q) => q.id, {
|
|
68
|
+
onDelete: "CASCADE",
|
|
69
|
+
}),
|
|
70
|
+
(0, typeorm_1.JoinColumn)({ name: "question_id" }),
|
|
71
|
+
__metadata("design:type", underwriting_question_entity_1.UnderwritingQuestionEntity)
|
|
72
|
+
], UnderwritingQuestionComponentEntity.prototype, "question", void 0);
|
|
73
|
+
exports.UnderwritingQuestionComponentEntity = UnderwritingQuestionComponentEntity = __decorate([
|
|
74
|
+
(0, typeorm_1.Entity)({ schema: "application", name: "underwriting_question_components" })
|
|
75
|
+
], UnderwritingQuestionComponentEntity);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _BaseEntity } from "../../_base_entity";
|
|
2
|
-
import { ProductCode } from "../../../types";
|
|
2
|
+
import { AppFormType, ProductCode } from "../../../types";
|
|
3
3
|
import { ProductTypeEntity } from "./product_type.entity";
|
|
4
4
|
import { ProductTermEntity } from "./product_term.entity";
|
|
5
5
|
import { ProductPaymentModeEntity } from "./product_payment_mode.entity";
|
|
@@ -9,6 +9,7 @@ export declare class ProductEntity extends _BaseEntity {
|
|
|
9
9
|
id: string;
|
|
10
10
|
product_type_id: string;
|
|
11
11
|
product_code: ProductCode;
|
|
12
|
+
product_app_form_type: AppFormType;
|
|
12
13
|
name: string;
|
|
13
14
|
name_kh: string | null;
|
|
14
15
|
is_active: boolean;
|
|
@@ -39,6 +39,15 @@ __decorate([
|
|
|
39
39
|
}),
|
|
40
40
|
__metadata("design:type", String)
|
|
41
41
|
], ProductEntity.prototype, "product_code", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({
|
|
44
|
+
type: "varchar",
|
|
45
|
+
length: 10,
|
|
46
|
+
comment: (0, utils_1.enumToCommentString)(types_1.AppFormType),
|
|
47
|
+
default: types_1.AppFormType.Base,
|
|
48
|
+
}),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], ProductEntity.prototype, "product_app_form_type", void 0);
|
|
42
51
|
__decorate([
|
|
43
52
|
(0, typeorm_1.Column)({ type: "varchar", length: 255 }),
|
|
44
53
|
__metadata("design:type", String)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare enum AppFormType {
|
|
2
|
-
|
|
2
|
+
Base = "base",
|
|
3
3
|
Simplified = "sio"
|
|
4
4
|
}
|
|
5
5
|
export declare enum ApplicationStatus {
|
|
@@ -50,9 +50,11 @@ export declare enum AppCoverageType {
|
|
|
50
50
|
}
|
|
51
51
|
export declare enum UwAnswerValueType {
|
|
52
52
|
Boolean = "boolean",
|
|
53
|
-
Text = "text",
|
|
54
|
-
Number = "number",
|
|
55
53
|
Date = "date",
|
|
54
|
+
Dropdown = "dropdown",
|
|
55
|
+
Number = "number",
|
|
56
|
+
Text = "text",
|
|
57
|
+
TextArea = "text_area",
|
|
56
58
|
YesOrNo = "yesno"
|
|
57
59
|
}
|
|
58
60
|
export declare enum AppDocumentType {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AppPaymentStatus = exports.AppPaymentType = exports.AppDocumentType = exports.UwAnswerValueType = exports.AppCoverageType = exports.AppPhLaRelation = exports.AppPersonRole = exports.ApplicationActionType = exports.ApplicationStatus = exports.AppFormType = void 0;
|
|
4
4
|
var AppFormType;
|
|
5
5
|
(function (AppFormType) {
|
|
6
|
-
AppFormType["
|
|
6
|
+
AppFormType["Base"] = "base";
|
|
7
7
|
AppFormType["Simplified"] = "sio";
|
|
8
8
|
})(AppFormType || (exports.AppFormType = AppFormType = {}));
|
|
9
9
|
var ApplicationStatus;
|
|
@@ -60,9 +60,11 @@ var AppCoverageType;
|
|
|
60
60
|
var UwAnswerValueType;
|
|
61
61
|
(function (UwAnswerValueType) {
|
|
62
62
|
UwAnswerValueType["Boolean"] = "boolean";
|
|
63
|
-
UwAnswerValueType["Text"] = "text";
|
|
64
|
-
UwAnswerValueType["Number"] = "number";
|
|
65
63
|
UwAnswerValueType["Date"] = "date";
|
|
64
|
+
UwAnswerValueType["Dropdown"] = "dropdown";
|
|
65
|
+
UwAnswerValueType["Number"] = "number";
|
|
66
|
+
UwAnswerValueType["Text"] = "text";
|
|
67
|
+
UwAnswerValueType["TextArea"] = "text_area";
|
|
66
68
|
UwAnswerValueType["YesOrNo"] = "yesno";
|
|
67
69
|
})(UwAnswerValueType || (exports.UwAnswerValueType = UwAnswerValueType = {}));
|
|
68
70
|
var AppDocumentType;
|
|
@@ -26,6 +26,7 @@ var AddressType;
|
|
|
26
26
|
AddressType["Home"] = "home";
|
|
27
27
|
AddressType["Work"] = "work";
|
|
28
28
|
AddressType["Billing"] = "billing";
|
|
29
|
+
AddressType["PlaceOfBirth"] = "pob";
|
|
29
30
|
AddressType["Other"] = "other";
|
|
30
31
|
})(AddressType || (exports.AddressType = AddressType = {}));
|
|
31
32
|
var IdentifierType;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare enum ETargetType {
|
|
2
|
+
USER = "user",
|
|
3
|
+
ROLE = "role"
|
|
4
|
+
}
|
|
5
|
+
export declare enum EEventRouteKeyType {
|
|
6
|
+
APP_SUBMIT = "app.submit",
|
|
7
|
+
APP_ACCEPT = "app.accept",
|
|
8
|
+
APP_RESUBMIT = "app.resubmit",
|
|
9
|
+
APP_EDIT_REQUIRED = "app.edit_required",
|
|
10
|
+
APP_MORE_DOC_REQUIRED = "app.more_doc_required",
|
|
11
|
+
APP_TAKE_ACTION = "app.take_action",
|
|
12
|
+
APP_REJECT = "app.reject"
|
|
13
|
+
}
|
|
14
|
+
export declare enum EEventType {
|
|
15
|
+
USER_ACTION = "user_action",
|
|
16
|
+
SYSTEM_EVENT = "system_event",
|
|
17
|
+
SCHEDULED_JOB = "scheduled_job",
|
|
18
|
+
EXTERNAL_B2B_EVENT = "external_b2b_event"
|
|
19
|
+
}
|
|
20
|
+
export declare enum ESourceServiceType {
|
|
21
|
+
APPLICATION_SERVICE = "application_service",
|
|
22
|
+
AUTH_SERVICE = "auth_service",
|
|
23
|
+
QUOTATION_SERVICE = "quotation_service",
|
|
24
|
+
RABBITMQ = "rabbitmq"
|
|
25
|
+
}
|
|
26
|
+
export declare enum EDeliveryStatusType {
|
|
27
|
+
PENDING = "pending",
|
|
28
|
+
SENT = "sent",
|
|
29
|
+
FAILED = "failed"
|
|
30
|
+
}
|
|
31
|
+
export declare enum ERecipientType {
|
|
32
|
+
USER = "user",
|
|
33
|
+
CUSTOMER = "customer"
|
|
34
|
+
}
|
|
35
|
+
export declare enum EPriorityType {
|
|
36
|
+
LOW = "low",
|
|
37
|
+
MEDIUM = "medium",
|
|
38
|
+
HIGH = "high"
|
|
39
|
+
}
|
|
40
|
+
export declare enum EChannelType {
|
|
41
|
+
EMAIL = "email",
|
|
42
|
+
SMS = "sms",
|
|
43
|
+
WEB = "web",
|
|
44
|
+
TELEGRAM = "telegram",
|
|
45
|
+
DEVICE = "device",
|
|
46
|
+
IN_APP = "in_app"
|
|
47
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EChannelType = exports.EPriorityType = exports.ERecipientType = exports.EDeliveryStatusType = exports.ESourceServiceType = exports.EEventType = exports.EEventRouteKeyType = exports.ETargetType = void 0;
|
|
4
|
+
var ETargetType;
|
|
5
|
+
(function (ETargetType) {
|
|
6
|
+
ETargetType["USER"] = "user";
|
|
7
|
+
ETargetType["ROLE"] = "role";
|
|
8
|
+
})(ETargetType || (exports.ETargetType = ETargetType = {}));
|
|
9
|
+
var EEventRouteKeyType;
|
|
10
|
+
(function (EEventRouteKeyType) {
|
|
11
|
+
EEventRouteKeyType["APP_SUBMIT"] = "app.submit";
|
|
12
|
+
EEventRouteKeyType["APP_ACCEPT"] = "app.accept";
|
|
13
|
+
EEventRouteKeyType["APP_RESUBMIT"] = "app.resubmit";
|
|
14
|
+
EEventRouteKeyType["APP_EDIT_REQUIRED"] = "app.edit_required";
|
|
15
|
+
EEventRouteKeyType["APP_MORE_DOC_REQUIRED"] = "app.more_doc_required";
|
|
16
|
+
EEventRouteKeyType["APP_TAKE_ACTION"] = "app.take_action";
|
|
17
|
+
EEventRouteKeyType["APP_REJECT"] = "app.reject";
|
|
18
|
+
})(EEventRouteKeyType || (exports.EEventRouteKeyType = EEventRouteKeyType = {}));
|
|
19
|
+
var EEventType;
|
|
20
|
+
(function (EEventType) {
|
|
21
|
+
EEventType["USER_ACTION"] = "user_action";
|
|
22
|
+
EEventType["SYSTEM_EVENT"] = "system_event";
|
|
23
|
+
EEventType["SCHEDULED_JOB"] = "scheduled_job";
|
|
24
|
+
EEventType["EXTERNAL_B2B_EVENT"] = "external_b2b_event";
|
|
25
|
+
})(EEventType || (exports.EEventType = EEventType = {}));
|
|
26
|
+
var ESourceServiceType;
|
|
27
|
+
(function (ESourceServiceType) {
|
|
28
|
+
ESourceServiceType["APPLICATION_SERVICE"] = "application_service";
|
|
29
|
+
ESourceServiceType["AUTH_SERVICE"] = "auth_service";
|
|
30
|
+
ESourceServiceType["QUOTATION_SERVICE"] = "quotation_service";
|
|
31
|
+
ESourceServiceType["RABBITMQ"] = "rabbitmq";
|
|
32
|
+
})(ESourceServiceType || (exports.ESourceServiceType = ESourceServiceType = {}));
|
|
33
|
+
var EDeliveryStatusType;
|
|
34
|
+
(function (EDeliveryStatusType) {
|
|
35
|
+
EDeliveryStatusType["PENDING"] = "pending";
|
|
36
|
+
EDeliveryStatusType["SENT"] = "sent";
|
|
37
|
+
EDeliveryStatusType["FAILED"] = "failed";
|
|
38
|
+
})(EDeliveryStatusType || (exports.EDeliveryStatusType = EDeliveryStatusType = {}));
|
|
39
|
+
var ERecipientType;
|
|
40
|
+
(function (ERecipientType) {
|
|
41
|
+
ERecipientType["USER"] = "user";
|
|
42
|
+
ERecipientType["CUSTOMER"] = "customer";
|
|
43
|
+
})(ERecipientType || (exports.ERecipientType = ERecipientType = {}));
|
|
44
|
+
var EPriorityType;
|
|
45
|
+
(function (EPriorityType) {
|
|
46
|
+
EPriorityType["LOW"] = "low";
|
|
47
|
+
EPriorityType["MEDIUM"] = "medium";
|
|
48
|
+
EPriorityType["HIGH"] = "high";
|
|
49
|
+
})(EPriorityType || (exports.EPriorityType = EPriorityType = {}));
|
|
50
|
+
var EChannelType;
|
|
51
|
+
(function (EChannelType) {
|
|
52
|
+
EChannelType["EMAIL"] = "email";
|
|
53
|
+
EChannelType["SMS"] = "sms";
|
|
54
|
+
EChannelType["WEB"] = "web";
|
|
55
|
+
EChannelType["TELEGRAM"] = "telegram";
|
|
56
|
+
EChannelType["DEVICE"] = "device";
|
|
57
|
+
EChannelType["IN_APP"] = "in_app";
|
|
58
|
+
})(EChannelType || (exports.EChannelType = EChannelType = {}));
|
|
@@ -3,7 +3,7 @@ export declare function getGenderDesc(val: Gender): "Male" | "Female";
|
|
|
3
3
|
export declare function getAppPhLaRelationDesc(val: AppPhLaRelation): "PH = LA" | "PH != LA";
|
|
4
4
|
export declare function getIdentifierTypeDesc(val: IdentifierType): "Other" | "National ID" | "Passport" | "Birth Certificate" | "Tax ID" | "Company Registration";
|
|
5
5
|
export declare function getContactTypeDesc(val: ContactType): "Other" | "Phone Number" | "Email" | "Website" | "Social Media";
|
|
6
|
-
export declare function getAddressTypeDesc(val: AddressType): "Other" | "Home" | "Work" | "Billing";
|
|
6
|
+
export declare function getAddressTypeDesc(val: AddressType): "Other" | AddressType.PlaceOfBirth | "Home" | "Work" | "Billing";
|
|
7
7
|
export declare function getAppDocumentTypeDesc(val: AppDocumentType): "Other" | "National ID" | "Passport" | "Application Form" | "Quotation Form" | "Claim Form";
|
|
8
8
|
export declare function getAppActionTypeDesc(val: ApplicationActionType): ApplicationActionType.Created | ApplicationActionType.DraftSaved | ApplicationActionType.Completed | ApplicationActionType.EditCompleted | ApplicationActionType.TakenForReview | ApplicationActionType.Assigned | ApplicationActionType.Unassigned | ApplicationActionType.DocumentRemoved | ApplicationActionType.DataUpdated | "Submit" | "Re-Submit" | "Approve" | "Reject" | "Request Edit" | "Request More Documents" | "Cancel" | "Transfer" | "Add Note" | "Upload Document";
|
|
9
9
|
export declare function getOrgTypeDesc(val: OrgType): "Internal" | "Bank" | "Micro Finance" | "Agency" | "Broker";
|