plac-micro-common 1.3.121 → 1.3.123
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/comment/comment.entity.d.ts +20 -0
- package/dist/models/comment/comment.entity.js +95 -0
- package/dist/models/comment/comment_attachment.entity.d.ts +17 -0
- package/dist/models/comment/comment_attachment.entity.js +86 -0
- package/dist/models/comment/comment_edit.entity.d.ts +8 -0
- package/dist/models/comment/comment_edit.entity.js +42 -0
- package/dist/models/comment/comment_mention.entity.d.ts +8 -0
- package/dist/models/comment/comment_mention.entity.js +45 -0
- package/dist/models/comment/comment_outbox_event.entity.d.ts +9 -0
- package/dist/models/comment/comment_outbox_event.entity.js +47 -0
- package/dist/models/comment/comment_read.entity.d.ts +9 -0
- package/dist/models/comment/comment_read.entity.js +47 -0
- package/dist/models/comment/index.d.ts +8 -0
- package/dist/models/comment/index.js +23 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- 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/comment.type.d.ts +16 -0
- package/dist/types/comment.type.js +39 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/underwriting.type.d.ts +12 -0
- package/dist/types/underwriting.type.js +15 -1
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { _BaseEntity } from "../_base_entity";
|
|
2
|
+
import { CommentEntityType, CommentType } from "../../types";
|
|
3
|
+
import { CommentAttachmentEntity } from "./comment_attachment.entity";
|
|
4
|
+
import { CommentMentionEntity } from "./comment_mention.entity";
|
|
5
|
+
export declare class CommentEntity extends _BaseEntity {
|
|
6
|
+
id: string;
|
|
7
|
+
entity_type: CommentEntityType;
|
|
8
|
+
entity_id: string;
|
|
9
|
+
parent_id?: string | null;
|
|
10
|
+
author_id: string;
|
|
11
|
+
content?: string | null;
|
|
12
|
+
comment_type: CommentType;
|
|
13
|
+
edited_at?: Date | null;
|
|
14
|
+
is_deleted: boolean;
|
|
15
|
+
deleted_at?: Date | null;
|
|
16
|
+
deleted_by?: string | null;
|
|
17
|
+
parent?: CommentEntity | null;
|
|
18
|
+
attachments?: CommentAttachmentEntity[];
|
|
19
|
+
mentions?: CommentMentionEntity[];
|
|
20
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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.CommentEntity = 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 comment_attachment_entity_1 = require("./comment_attachment.entity");
|
|
18
|
+
const comment_mention_entity_1 = require("./comment_mention.entity");
|
|
19
|
+
let CommentEntity = class CommentEntity extends _base_entity_1._BaseEntity {
|
|
20
|
+
};
|
|
21
|
+
exports.CommentEntity = CommentEntity;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CommentEntity.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({
|
|
28
|
+
type: "varchar",
|
|
29
|
+
length: 30,
|
|
30
|
+
comment: (0, utils_1.enumToCommentString)(types_1.CommentEntityType),
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CommentEntity.prototype, "entity_type", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CommentEntity.prototype, "entity_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], CommentEntity.prototype, "parent_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], CommentEntity.prototype, "author_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], CommentEntity.prototype, "content", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({
|
|
52
|
+
type: "varchar",
|
|
53
|
+
length: 20,
|
|
54
|
+
comment: (0, utils_1.enumToCommentString)(types_1.CommentType),
|
|
55
|
+
}),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], CommentEntity.prototype, "comment_type", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "timestamptz", nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], CommentEntity.prototype, "edited_at", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false }),
|
|
64
|
+
__metadata("design:type", Boolean)
|
|
65
|
+
], CommentEntity.prototype, "is_deleted", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: "timestamptz", nullable: true }),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], CommentEntity.prototype, "deleted_at", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], CommentEntity.prototype, "deleted_by", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.ManyToOne)(() => CommentEntity, { onDelete: "CASCADE" }),
|
|
76
|
+
(0, typeorm_1.JoinColumn)({
|
|
77
|
+
name: "parent_id",
|
|
78
|
+
foreignKeyConstraintName: "FK_comments_parent",
|
|
79
|
+
}),
|
|
80
|
+
__metadata("design:type", Object)
|
|
81
|
+
], CommentEntity.prototype, "parent", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.OneToMany)(() => comment_attachment_entity_1.CommentAttachmentEntity, (attachment) => attachment.comment),
|
|
84
|
+
__metadata("design:type", Array)
|
|
85
|
+
], CommentEntity.prototype, "attachments", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.OneToMany)(() => comment_mention_entity_1.CommentMentionEntity, (mention) => mention.comment),
|
|
88
|
+
__metadata("design:type", Array)
|
|
89
|
+
], CommentEntity.prototype, "mentions", void 0);
|
|
90
|
+
exports.CommentEntity = CommentEntity = __decorate([
|
|
91
|
+
(0, typeorm_1.Entity)({ schema: "comment", name: "comments" }),
|
|
92
|
+
(0, typeorm_1.Index)("ix_comments_entity", ["entity_type", "entity_id"]),
|
|
93
|
+
(0, typeorm_1.Index)("ix_comments_parent_id", ["parent_id"]),
|
|
94
|
+
(0, typeorm_1.Index)("ix_comments_author_id", ["author_id"])
|
|
95
|
+
], CommentEntity);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { _BaseEntity } from "../_base_entity";
|
|
2
|
+
import { CommentAttachmentType, DocumentStorageProvider } from "../../types";
|
|
3
|
+
import { CommentEntity } from "./comment.entity";
|
|
4
|
+
export declare class CommentAttachmentEntity extends _BaseEntity {
|
|
5
|
+
id: string;
|
|
6
|
+
comment_id: string;
|
|
7
|
+
attachment_type: CommentAttachmentType;
|
|
8
|
+
file_name: string;
|
|
9
|
+
mime_type: string;
|
|
10
|
+
file_size_bytes: number;
|
|
11
|
+
storage_provider: DocumentStorageProvider;
|
|
12
|
+
object_key: string;
|
|
13
|
+
duration_seconds?: number | null;
|
|
14
|
+
deleted_at?: Date | null;
|
|
15
|
+
deleted_by?: string | null;
|
|
16
|
+
comment?: CommentEntity;
|
|
17
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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.CommentAttachmentEntity = 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 comment_entity_1 = require("./comment.entity");
|
|
18
|
+
let CommentAttachmentEntity = class CommentAttachmentEntity extends _base_entity_1._BaseEntity {
|
|
19
|
+
};
|
|
20
|
+
exports.CommentAttachmentEntity = CommentAttachmentEntity;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CommentAttachmentEntity.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CommentAttachmentEntity.prototype, "comment_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({
|
|
31
|
+
type: "varchar",
|
|
32
|
+
length: 20,
|
|
33
|
+
comment: (0, utils_1.enumToCommentString)(types_1.CommentAttachmentType),
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CommentAttachmentEntity.prototype, "attachment_type", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255 }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], CommentAttachmentEntity.prototype, "file_name", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100 }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], CommentAttachmentEntity.prototype, "mime_type", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer" }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], CommentAttachmentEntity.prototype, "file_size_bytes", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({
|
|
51
|
+
type: "varchar",
|
|
52
|
+
length: 20,
|
|
53
|
+
comment: (0, utils_1.enumToCommentString)(types_1.DocumentStorageProvider),
|
|
54
|
+
}),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], CommentAttachmentEntity.prototype, "storage_provider", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500 }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], CommentAttachmentEntity.prototype, "object_key", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], CommentAttachmentEntity.prototype, "duration_seconds", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "timestamptz", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], CommentAttachmentEntity.prototype, "deleted_at", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], CommentAttachmentEntity.prototype, "deleted_by", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.ManyToOne)(() => comment_entity_1.CommentEntity, (comment) => comment.attachments, {
|
|
75
|
+
onDelete: "CASCADE",
|
|
76
|
+
}),
|
|
77
|
+
(0, typeorm_1.JoinColumn)({
|
|
78
|
+
name: "comment_id",
|
|
79
|
+
foreignKeyConstraintName: "FK_comment_attachments_comment",
|
|
80
|
+
}),
|
|
81
|
+
__metadata("design:type", comment_entity_1.CommentEntity)
|
|
82
|
+
], CommentAttachmentEntity.prototype, "comment", void 0);
|
|
83
|
+
exports.CommentAttachmentEntity = CommentAttachmentEntity = __decorate([
|
|
84
|
+
(0, typeorm_1.Entity)({ schema: "comment", name: "comment_attachments" }),
|
|
85
|
+
(0, typeorm_1.Index)("ix_comment_attachments_comment_id", ["comment_id"])
|
|
86
|
+
], CommentAttachmentEntity);
|
|
@@ -0,0 +1,42 @@
|
|
|
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.CommentEditEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const _base_entity_1 = require("../_base_entity");
|
|
15
|
+
const comment_entity_1 = require("./comment.entity");
|
|
16
|
+
let CommentEditEntity = class CommentEditEntity extends _base_entity_1._BaseEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.CommentEditEntity = CommentEditEntity;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CommentEditEntity.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CommentEditEntity.prototype, "comment_id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], CommentEditEntity.prototype, "content", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.ManyToOne)(() => comment_entity_1.CommentEntity, { onDelete: "CASCADE" }),
|
|
33
|
+
(0, typeorm_1.JoinColumn)({
|
|
34
|
+
name: "comment_id",
|
|
35
|
+
foreignKeyConstraintName: "FK_comment_edits_comment",
|
|
36
|
+
}),
|
|
37
|
+
__metadata("design:type", comment_entity_1.CommentEntity)
|
|
38
|
+
], CommentEditEntity.prototype, "comment", void 0);
|
|
39
|
+
exports.CommentEditEntity = CommentEditEntity = __decorate([
|
|
40
|
+
(0, typeorm_1.Entity)({ schema: "comment", name: "comment_edits" }),
|
|
41
|
+
(0, typeorm_1.Index)("ix_comment_edits_comment_id", ["comment_id"])
|
|
42
|
+
], CommentEditEntity);
|
|
@@ -0,0 +1,45 @@
|
|
|
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.CommentMentionEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const _base_entity_1 = require("../_base_entity");
|
|
15
|
+
const comment_entity_1 = require("./comment.entity");
|
|
16
|
+
let CommentMentionEntity = class CommentMentionEntity extends _base_entity_1._BaseEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.CommentMentionEntity = CommentMentionEntity;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CommentMentionEntity.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CommentMentionEntity.prototype, "comment_id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], CommentMentionEntity.prototype, "user_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.ManyToOne)(() => comment_entity_1.CommentEntity, (comment) => comment.mentions, {
|
|
33
|
+
onDelete: "CASCADE",
|
|
34
|
+
}),
|
|
35
|
+
(0, typeorm_1.JoinColumn)({
|
|
36
|
+
name: "comment_id",
|
|
37
|
+
foreignKeyConstraintName: "FK_comment_mentions_comment",
|
|
38
|
+
}),
|
|
39
|
+
__metadata("design:type", comment_entity_1.CommentEntity)
|
|
40
|
+
], CommentMentionEntity.prototype, "comment", void 0);
|
|
41
|
+
exports.CommentMentionEntity = CommentMentionEntity = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)({ schema: "comment", name: "comment_mentions" }),
|
|
43
|
+
(0, typeorm_1.Unique)("uq_comment_mentions_comment_user", ["comment_id", "user_id"]),
|
|
44
|
+
(0, typeorm_1.Index)("ix_comment_mentions_user_id", ["user_id"])
|
|
45
|
+
], CommentMentionEntity);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { _BaseEntity } from "../_base_entity";
|
|
2
|
+
export declare class CommentOutboxEventEntity extends _BaseEntity {
|
|
3
|
+
id: string;
|
|
4
|
+
event_type: string;
|
|
5
|
+
payload: Record<string, unknown>;
|
|
6
|
+
published_at?: Date | null;
|
|
7
|
+
attempts: number;
|
|
8
|
+
last_error?: string | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.CommentOutboxEventEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const _base_entity_1 = require("../_base_entity");
|
|
15
|
+
let CommentOutboxEventEntity = class CommentOutboxEventEntity extends _base_entity_1._BaseEntity {
|
|
16
|
+
};
|
|
17
|
+
exports.CommentOutboxEventEntity = CommentOutboxEventEntity;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CommentOutboxEventEntity.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100 }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CommentOutboxEventEntity.prototype, "event_type", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "jsonb" }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], CommentOutboxEventEntity.prototype, "payload", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "timestamptz", nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], CommentOutboxEventEntity.prototype, "published_at", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "integer", default: 0 }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], CommentOutboxEventEntity.prototype, "attempts", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], CommentOutboxEventEntity.prototype, "last_error", void 0);
|
|
42
|
+
exports.CommentOutboxEventEntity = CommentOutboxEventEntity = __decorate([
|
|
43
|
+
(0, typeorm_1.Entity)({ schema: "comment", name: "outbox_events" }),
|
|
44
|
+
(0, typeorm_1.Index)("ix_comment_outbox_events_unpublished", ["created_at"], {
|
|
45
|
+
where: `"published_at" IS NULL`,
|
|
46
|
+
})
|
|
47
|
+
], CommentOutboxEventEntity);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { _BaseEntity } from "../_base_entity";
|
|
2
|
+
import { CommentEntityType } from "../../types";
|
|
3
|
+
export declare class CommentReadEntity extends _BaseEntity {
|
|
4
|
+
id: string;
|
|
5
|
+
entity_type: CommentEntityType;
|
|
6
|
+
entity_id: string;
|
|
7
|
+
user_id: string;
|
|
8
|
+
last_read_at: Date;
|
|
9
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.CommentReadEntity = 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
|
+
let CommentReadEntity = class CommentReadEntity extends _base_entity_1._BaseEntity {
|
|
18
|
+
};
|
|
19
|
+
exports.CommentReadEntity = CommentReadEntity;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CommentReadEntity.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({
|
|
26
|
+
type: "varchar",
|
|
27
|
+
length: 30,
|
|
28
|
+
comment: (0, utils_1.enumToCommentString)(types_1.CommentEntityType),
|
|
29
|
+
}),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CommentReadEntity.prototype, "entity_type", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], CommentReadEntity.prototype, "entity_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], CommentReadEntity.prototype, "user_id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: "timestamptz" }),
|
|
42
|
+
__metadata("design:type", Date)
|
|
43
|
+
], CommentReadEntity.prototype, "last_read_at", void 0);
|
|
44
|
+
exports.CommentReadEntity = CommentReadEntity = __decorate([
|
|
45
|
+
(0, typeorm_1.Entity)({ schema: "comment", name: "comment_reads" }),
|
|
46
|
+
(0, typeorm_1.Unique)("uq_comment_reads_entity_user", ["entity_type", "entity_id", "user_id"])
|
|
47
|
+
], CommentReadEntity);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CommentEntity } from "./comment.entity";
|
|
2
|
+
import { CommentAttachmentEntity } from "./comment_attachment.entity";
|
|
3
|
+
import { CommentEditEntity } from "./comment_edit.entity";
|
|
4
|
+
import { CommentMentionEntity } from "./comment_mention.entity";
|
|
5
|
+
import { CommentReadEntity } from "./comment_read.entity";
|
|
6
|
+
import { CommentOutboxEventEntity } from "./comment_outbox_event.entity";
|
|
7
|
+
export declare const COMMENT_ENTITIES: readonly [typeof CommentEntity, typeof CommentAttachmentEntity, typeof CommentEditEntity, typeof CommentMentionEntity, typeof CommentReadEntity, typeof CommentOutboxEventEntity];
|
|
8
|
+
export { CommentEntity, CommentAttachmentEntity, CommentEditEntity, CommentMentionEntity, CommentReadEntity, CommentOutboxEventEntity, };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommentOutboxEventEntity = exports.CommentReadEntity = exports.CommentMentionEntity = exports.CommentEditEntity = exports.CommentAttachmentEntity = exports.CommentEntity = exports.COMMENT_ENTITIES = void 0;
|
|
4
|
+
const comment_entity_1 = require("./comment.entity");
|
|
5
|
+
Object.defineProperty(exports, "CommentEntity", { enumerable: true, get: function () { return comment_entity_1.CommentEntity; } });
|
|
6
|
+
const comment_attachment_entity_1 = require("./comment_attachment.entity");
|
|
7
|
+
Object.defineProperty(exports, "CommentAttachmentEntity", { enumerable: true, get: function () { return comment_attachment_entity_1.CommentAttachmentEntity; } });
|
|
8
|
+
const comment_edit_entity_1 = require("./comment_edit.entity");
|
|
9
|
+
Object.defineProperty(exports, "CommentEditEntity", { enumerable: true, get: function () { return comment_edit_entity_1.CommentEditEntity; } });
|
|
10
|
+
const comment_mention_entity_1 = require("./comment_mention.entity");
|
|
11
|
+
Object.defineProperty(exports, "CommentMentionEntity", { enumerable: true, get: function () { return comment_mention_entity_1.CommentMentionEntity; } });
|
|
12
|
+
const comment_read_entity_1 = require("./comment_read.entity");
|
|
13
|
+
Object.defineProperty(exports, "CommentReadEntity", { enumerable: true, get: function () { return comment_read_entity_1.CommentReadEntity; } });
|
|
14
|
+
const comment_outbox_event_entity_1 = require("./comment_outbox_event.entity");
|
|
15
|
+
Object.defineProperty(exports, "CommentOutboxEventEntity", { enumerable: true, get: function () { return comment_outbox_event_entity_1.CommentOutboxEventEntity; } });
|
|
16
|
+
exports.COMMENT_ENTITIES = [
|
|
17
|
+
comment_entity_1.CommentEntity,
|
|
18
|
+
comment_attachment_entity_1.CommentAttachmentEntity,
|
|
19
|
+
comment_edit_entity_1.CommentEditEntity,
|
|
20
|
+
comment_mention_entity_1.CommentMentionEntity,
|
|
21
|
+
comment_read_entity_1.CommentReadEntity,
|
|
22
|
+
comment_outbox_event_entity_1.CommentOutboxEventEntity,
|
|
23
|
+
];
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
|
@@ -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);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum CommentEntityType {
|
|
2
|
+
Application = "application",
|
|
3
|
+
Policy = "policy",
|
|
4
|
+
Claim = "claim"
|
|
5
|
+
}
|
|
6
|
+
export declare enum CommentType {
|
|
7
|
+
Text = "text",
|
|
8
|
+
Attachment = "attachment",
|
|
9
|
+
Audio = "audio"
|
|
10
|
+
}
|
|
11
|
+
export declare enum CommentAttachmentType {
|
|
12
|
+
Image = "image",
|
|
13
|
+
Document = "document",
|
|
14
|
+
Audio = "audio"
|
|
15
|
+
}
|
|
16
|
+
export declare const COMMENT_ALLOWED_FILE_TYPES: Record<string, CommentAttachmentType>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.COMMENT_ALLOWED_FILE_TYPES = exports.CommentAttachmentType = exports.CommentType = exports.CommentEntityType = void 0;
|
|
4
|
+
var CommentEntityType;
|
|
5
|
+
(function (CommentEntityType) {
|
|
6
|
+
CommentEntityType["Application"] = "application";
|
|
7
|
+
CommentEntityType["Policy"] = "policy";
|
|
8
|
+
CommentEntityType["Claim"] = "claim";
|
|
9
|
+
})(CommentEntityType || (exports.CommentEntityType = CommentEntityType = {}));
|
|
10
|
+
var CommentType;
|
|
11
|
+
(function (CommentType) {
|
|
12
|
+
CommentType["Text"] = "text";
|
|
13
|
+
CommentType["Attachment"] = "attachment";
|
|
14
|
+
CommentType["Audio"] = "audio";
|
|
15
|
+
})(CommentType || (exports.CommentType = CommentType = {}));
|
|
16
|
+
var CommentAttachmentType;
|
|
17
|
+
(function (CommentAttachmentType) {
|
|
18
|
+
CommentAttachmentType["Image"] = "image";
|
|
19
|
+
CommentAttachmentType["Document"] = "document";
|
|
20
|
+
CommentAttachmentType["Audio"] = "audio";
|
|
21
|
+
})(CommentAttachmentType || (exports.CommentAttachmentType = CommentAttachmentType = {}));
|
|
22
|
+
exports.COMMENT_ALLOWED_FILE_TYPES = {
|
|
23
|
+
"image/jpeg": CommentAttachmentType.Image,
|
|
24
|
+
"image/png": CommentAttachmentType.Image,
|
|
25
|
+
"image/jpg": CommentAttachmentType.Image,
|
|
26
|
+
"image/webp": CommentAttachmentType.Image,
|
|
27
|
+
"application/pdf": CommentAttachmentType.Document,
|
|
28
|
+
"application/msword": CommentAttachmentType.Document,
|
|
29
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": CommentAttachmentType.Document,
|
|
30
|
+
"application/vnd.ms-excel": CommentAttachmentType.Document,
|
|
31
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": CommentAttachmentType.Document,
|
|
32
|
+
"application/vnd.ms-powerpoint": CommentAttachmentType.Document,
|
|
33
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation": CommentAttachmentType.Document,
|
|
34
|
+
"audio/webm": CommentAttachmentType.Audio,
|
|
35
|
+
"audio/ogg": CommentAttachmentType.Audio,
|
|
36
|
+
"audio/mp4": CommentAttachmentType.Audio,
|
|
37
|
+
"audio/mpeg": CommentAttachmentType.Audio,
|
|
38
|
+
"audio/wav": CommentAttachmentType.Audio,
|
|
39
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./auth.type";
|
|
|
3
3
|
export * from "./auth_info.type";
|
|
4
4
|
export * from "./application.type";
|
|
5
5
|
export * from "./business.type";
|
|
6
|
+
export * from "./comment.type";
|
|
6
7
|
export * from "./customer.type";
|
|
7
8
|
export * from "./finance.type";
|
|
8
9
|
export * from "./general.type";
|
package/dist/types/index.js
CHANGED
|
@@ -19,6 +19,7 @@ __exportStar(require("./auth.type"), exports);
|
|
|
19
19
|
__exportStar(require("./auth_info.type"), exports);
|
|
20
20
|
__exportStar(require("./application.type"), exports);
|
|
21
21
|
__exportStar(require("./business.type"), exports);
|
|
22
|
+
__exportStar(require("./comment.type"), exports);
|
|
22
23
|
__exportStar(require("./customer.type"), exports);
|
|
23
24
|
__exportStar(require("./finance.type"), exports);
|
|
24
25
|
__exportStar(require("./general.type"), exports);
|
|
@@ -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 = {}));
|