@platform-modules/foreign-ministry 1.3.80 → 1.3.82
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/index.d.ts +5 -0
- package/dist/index.js +6 -0
- package/dist/models/DocumentTranslationApprovalModel.d.ts +22 -0
- package/dist/models/DocumentTranslationApprovalModel.js +79 -0
- package/dist/models/DocumentTranslationAttachmentModel.d.ts +11 -0
- package/dist/models/DocumentTranslationAttachmentModel.js +52 -0
- package/dist/models/DocumentTranslationChatModel.d.ts +19 -0
- package/dist/models/DocumentTranslationChatModel.js +78 -0
- package/dist/models/DocumentTranslationRequestModel.d.ts +25 -0
- package/dist/models/DocumentTranslationRequestModel.js +74 -0
- package/dist/models/DocumentTranslationWorkflowModel.d.ts +17 -0
- package/dist/models/DocumentTranslationWorkflowModel.js +62 -0
- package/package.json +1 -1
- package/src/index.ts +7 -1
- package/src/models/DocumentTranslationApprovalModel.ts +52 -0
- package/src/models/DocumentTranslationAttachmentModel.ts +31 -0
- package/src/models/DocumentTranslationChatModel.ts +66 -0
- package/src/models/DocumentTranslationRequestModel.ts +54 -0
- package/src/models/DocumentTranslationWorkflowModel.ts +39 -0
package/dist/index.d.ts
CHANGED
|
@@ -214,3 +214,8 @@ export { MissionTravelWorkFlowStatus } from './models/MissionTravelWorkflowModel
|
|
|
214
214
|
export * from './models/MissionTravelChatModel';
|
|
215
215
|
export * from './models/TravelClassEnum';
|
|
216
216
|
export { TravelClass } from './models/TravelClassEnum';
|
|
217
|
+
export * from './models/DocumentTranslationRequestModel';
|
|
218
|
+
export * from './models/DocumentTranslationApprovalModel';
|
|
219
|
+
export * from './models/DocumentTranslationAttachmentModel';
|
|
220
|
+
export * from './models/DocumentTranslationChatModel';
|
|
221
|
+
export * from './models/DocumentTranslationWorkflowModel';
|
package/dist/index.js
CHANGED
|
@@ -272,3 +272,9 @@ __exportStar(require("./models/MissionTravelChatModel"), exports);
|
|
|
272
272
|
__exportStar(require("./models/TravelClassEnum"), exports);
|
|
273
273
|
var TravelClassEnum_1 = require("./models/TravelClassEnum");
|
|
274
274
|
Object.defineProperty(exports, "TravelClass", { enumerable: true, get: function () { return TravelClassEnum_1.TravelClass; } });
|
|
275
|
+
// Document Translation Models
|
|
276
|
+
__exportStar(require("./models/DocumentTranslationRequestModel"), exports);
|
|
277
|
+
__exportStar(require("./models/DocumentTranslationApprovalModel"), exports);
|
|
278
|
+
__exportStar(require("./models/DocumentTranslationAttachmentModel"), exports);
|
|
279
|
+
__exportStar(require("./models/DocumentTranslationChatModel"), exports);
|
|
280
|
+
__exportStar(require("./models/DocumentTranslationWorkflowModel"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum DocumentTranslationApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class DocumentTranslationApprovalDetails extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
level: number;
|
|
13
|
+
approver_role_id: number;
|
|
14
|
+
department_id: number | null;
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
approver_user_id: number | null;
|
|
17
|
+
delegate_user_id: number | null;
|
|
18
|
+
approved_by: number | null;
|
|
19
|
+
comment: string;
|
|
20
|
+
approval_status: DocumentTranslationApprovalStatus;
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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.DocumentTranslationApprovalDetails = exports.DocumentTranslationApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var DocumentTranslationApprovalStatus;
|
|
16
|
+
(function (DocumentTranslationApprovalStatus) {
|
|
17
|
+
DocumentTranslationApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
DocumentTranslationApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
DocumentTranslationApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
DocumentTranslationApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(DocumentTranslationApprovalStatus || (exports.DocumentTranslationApprovalStatus = DocumentTranslationApprovalStatus = {}));
|
|
22
|
+
let DocumentTranslationApprovalDetails = class DocumentTranslationApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.DocumentTranslationApprovalDetails = DocumentTranslationApprovalDetails;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], DocumentTranslationApprovalDetails.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], DocumentTranslationApprovalDetails.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], DocumentTranslationApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], DocumentTranslationApprovalDetails.prototype, "level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], DocumentTranslationApprovalDetails.prototype, "approver_role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], DocumentTranslationApprovalDetails.prototype, "department_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], DocumentTranslationApprovalDetails.prototype, "section_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], DocumentTranslationApprovalDetails.prototype, "approver_user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], DocumentTranslationApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], DocumentTranslationApprovalDetails.prototype, "approved_by", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], DocumentTranslationApprovalDetails.prototype, "comment", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: DocumentTranslationApprovalStatus, default: DocumentTranslationApprovalStatus.PENDING, nullable: false }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], DocumentTranslationApprovalDetails.prototype, "approval_status", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
75
|
+
__metadata("design:type", Boolean)
|
|
76
|
+
], DocumentTranslationApprovalDetails.prototype, "is_allowed", void 0);
|
|
77
|
+
exports.DocumentTranslationApprovalDetails = DocumentTranslationApprovalDetails = __decorate([
|
|
78
|
+
(0, typeorm_1.Entity)({ name: 'document_translation_approvals' })
|
|
79
|
+
], DocumentTranslationApprovalDetails);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class DocumentTranslationRequestAttachment extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number | null;
|
|
5
|
+
sub_service_id: number | null;
|
|
6
|
+
file_url: string;
|
|
7
|
+
file_name: string;
|
|
8
|
+
file_type: string;
|
|
9
|
+
file_size: number | null;
|
|
10
|
+
chat_id: number | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.DocumentTranslationRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let DocumentTranslationRequestAttachment = class DocumentTranslationRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.DocumentTranslationRequestAttachment = DocumentTranslationRequestAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], DocumentTranslationRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], DocumentTranslationRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], DocumentTranslationRequestAttachment.prototype, "sub_service_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], DocumentTranslationRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], DocumentTranslationRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], DocumentTranslationRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], DocumentTranslationRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], DocumentTranslationRequestAttachment.prototype, "chat_id", void 0);
|
|
50
|
+
exports.DocumentTranslationRequestAttachment = DocumentTranslationRequestAttachment = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'document_translation_attachments' })
|
|
52
|
+
], DocumentTranslationRequestAttachment);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum DocumentTranslationMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class DocumentTranslationRequestChat extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
sub_service_id: number | null;
|
|
13
|
+
user_id: number;
|
|
14
|
+
role_id: number;
|
|
15
|
+
message: string;
|
|
16
|
+
messageType: DocumentTranslationMessageType;
|
|
17
|
+
status: string;
|
|
18
|
+
constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: DocumentTranslationMessageType, status?: string);
|
|
19
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.DocumentTranslationRequestChat = exports.DocumentTranslationMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const DocumentTranslationApprovalModel_1 = require("./DocumentTranslationApprovalModel");
|
|
16
|
+
var DocumentTranslationMessageType;
|
|
17
|
+
(function (DocumentTranslationMessageType) {
|
|
18
|
+
DocumentTranslationMessageType["TEXT"] = "text";
|
|
19
|
+
DocumentTranslationMessageType["IMAGE"] = "image";
|
|
20
|
+
DocumentTranslationMessageType["VIDEO"] = "video";
|
|
21
|
+
DocumentTranslationMessageType["FILE"] = "file";
|
|
22
|
+
DocumentTranslationMessageType["LINK"] = "link";
|
|
23
|
+
})(DocumentTranslationMessageType || (exports.DocumentTranslationMessageType = DocumentTranslationMessageType = {}));
|
|
24
|
+
let DocumentTranslationRequestChat = class DocumentTranslationRequestChat extends BaseModel_1.BaseModel {
|
|
25
|
+
constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
|
|
26
|
+
super();
|
|
27
|
+
this.request_id = request_id;
|
|
28
|
+
this.service_id = service_id || null;
|
|
29
|
+
this.sub_service_id = sub_service_id || null;
|
|
30
|
+
this.user_id = user_id;
|
|
31
|
+
this.role_id = role_id;
|
|
32
|
+
this.message = message;
|
|
33
|
+
this.messageType = messageType || DocumentTranslationMessageType.TEXT;
|
|
34
|
+
this.status = status || DocumentTranslationApprovalModel_1.DocumentTranslationApprovalStatus.PENDING;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.DocumentTranslationRequestChat = DocumentTranslationRequestChat;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], DocumentTranslationRequestChat.prototype, "request_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], DocumentTranslationRequestChat.prototype, "service_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], DocumentTranslationRequestChat.prototype, "sub_service_id", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], DocumentTranslationRequestChat.prototype, "user_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], DocumentTranslationRequestChat.prototype, "role_id", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], DocumentTranslationRequestChat.prototype, "message", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({
|
|
64
|
+
type: 'enum',
|
|
65
|
+
enum: DocumentTranslationMessageType,
|
|
66
|
+
default: DocumentTranslationMessageType.TEXT,
|
|
67
|
+
nullable: false
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], DocumentTranslationRequestChat.prototype, "messageType", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], DocumentTranslationRequestChat.prototype, "status", void 0);
|
|
75
|
+
exports.DocumentTranslationRequestChat = DocumentTranslationRequestChat = __decorate([
|
|
76
|
+
(0, typeorm_1.Entity)({ name: 'document_translation_chats' }),
|
|
77
|
+
__metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
|
|
78
|
+
], DocumentTranslationRequestChat);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum DocumentTranslationStatus {
|
|
3
|
+
SUBMITTED = "Submitted",
|
|
4
|
+
PENDING = "Pending",
|
|
5
|
+
ASSIGNED = "Assigned",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
export declare enum DocumentClassificationType {
|
|
11
|
+
NORMAL = "Normal",
|
|
12
|
+
CONFIDENTIAL = "Confidential"
|
|
13
|
+
}
|
|
14
|
+
export declare class DocumentTranslationRequests extends BaseModel {
|
|
15
|
+
req_user_department_id: number | null;
|
|
16
|
+
req_user_section_id: number | null;
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
sub_service_id: number | null;
|
|
19
|
+
user_id: number;
|
|
20
|
+
document_type: string;
|
|
21
|
+
document_name: string;
|
|
22
|
+
document_classification: DocumentClassificationType;
|
|
23
|
+
status: DocumentTranslationStatus;
|
|
24
|
+
workflow_execution_id: string | null;
|
|
25
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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.DocumentTranslationRequests = exports.DocumentClassificationType = exports.DocumentTranslationStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var DocumentTranslationStatus;
|
|
16
|
+
(function (DocumentTranslationStatus) {
|
|
17
|
+
DocumentTranslationStatus["SUBMITTED"] = "Submitted";
|
|
18
|
+
DocumentTranslationStatus["PENDING"] = "Pending";
|
|
19
|
+
DocumentTranslationStatus["ASSIGNED"] = "Assigned";
|
|
20
|
+
DocumentTranslationStatus["IN_PROGRESS"] = "In Progress";
|
|
21
|
+
DocumentTranslationStatus["APPROVED"] = "Approved";
|
|
22
|
+
DocumentTranslationStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(DocumentTranslationStatus || (exports.DocumentTranslationStatus = DocumentTranslationStatus = {}));
|
|
24
|
+
var DocumentClassificationType;
|
|
25
|
+
(function (DocumentClassificationType) {
|
|
26
|
+
DocumentClassificationType["NORMAL"] = "Normal";
|
|
27
|
+
DocumentClassificationType["CONFIDENTIAL"] = "Confidential";
|
|
28
|
+
})(DocumentClassificationType || (exports.DocumentClassificationType = DocumentClassificationType = {}));
|
|
29
|
+
let DocumentTranslationRequests = class DocumentTranslationRequests extends BaseModel_1.BaseModel {
|
|
30
|
+
};
|
|
31
|
+
exports.DocumentTranslationRequests = DocumentTranslationRequests;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], DocumentTranslationRequests.prototype, "req_user_department_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], DocumentTranslationRequests.prototype, "req_user_section_id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], DocumentTranslationRequests.prototype, "service_id", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], DocumentTranslationRequests.prototype, "sub_service_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], DocumentTranslationRequests.prototype, "user_id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], DocumentTranslationRequests.prototype, "document_type", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], DocumentTranslationRequests.prototype, "document_name", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: DocumentClassificationType, nullable: false }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], DocumentTranslationRequests.prototype, "document_classification", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: DocumentTranslationStatus, default: DocumentTranslationStatus.SUBMITTED, nullable: false }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], DocumentTranslationRequests.prototype, "status", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], DocumentTranslationRequests.prototype, "workflow_execution_id", void 0);
|
|
72
|
+
exports.DocumentTranslationRequests = DocumentTranslationRequests = __decorate([
|
|
73
|
+
(0, typeorm_1.Entity)({ name: 'document_translation_requests' })
|
|
74
|
+
], DocumentTranslationRequests);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum DocumentTranslationWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class DocumentTranslationWorkFlow extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: DocumentTranslationWorkFlowStatus;
|
|
13
|
+
user_id: number | null;
|
|
14
|
+
role_id: number | null;
|
|
15
|
+
department_id: number | null;
|
|
16
|
+
section_id: number | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.DocumentTranslationWorkFlow = exports.DocumentTranslationWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var DocumentTranslationWorkFlowStatus;
|
|
16
|
+
(function (DocumentTranslationWorkFlowStatus) {
|
|
17
|
+
DocumentTranslationWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
DocumentTranslationWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
DocumentTranslationWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
})(DocumentTranslationWorkFlowStatus || (exports.DocumentTranslationWorkFlowStatus = DocumentTranslationWorkFlowStatus = {}));
|
|
21
|
+
let DocumentTranslationWorkFlow = class DocumentTranslationWorkFlow extends BaseModel_1.BaseModel {
|
|
22
|
+
};
|
|
23
|
+
exports.DocumentTranslationWorkFlow = DocumentTranslationWorkFlow;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], DocumentTranslationWorkFlow.prototype, "request_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], DocumentTranslationWorkFlow.prototype, "service_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], DocumentTranslationWorkFlow.prototype, "sub_service_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], DocumentTranslationWorkFlow.prototype, "content", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: DocumentTranslationWorkFlowStatus, default: DocumentTranslationWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], DocumentTranslationWorkFlow.prototype, "status", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], DocumentTranslationWorkFlow.prototype, "user_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], DocumentTranslationWorkFlow.prototype, "role_id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], DocumentTranslationWorkFlow.prototype, "department_id", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], DocumentTranslationWorkFlow.prototype, "section_id", void 0);
|
|
60
|
+
exports.DocumentTranslationWorkFlow = DocumentTranslationWorkFlow = __decorate([
|
|
61
|
+
(0, typeorm_1.Entity)({ name: 'document_translation_workflows' })
|
|
62
|
+
], DocumentTranslationWorkFlow);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -217,4 +217,10 @@ export * from './models/MissionTravelWorkflowModel';
|
|
|
217
217
|
export { MissionTravelWorkFlowStatus } from './models/MissionTravelWorkflowModel';
|
|
218
218
|
export * from './models/MissionTravelChatModel';
|
|
219
219
|
export * from './models/TravelClassEnum';
|
|
220
|
-
export { TravelClass } from './models/TravelClassEnum';
|
|
220
|
+
export { TravelClass } from './models/TravelClassEnum';
|
|
221
|
+
// Document Translation Models
|
|
222
|
+
export * from './models/DocumentTranslationRequestModel';
|
|
223
|
+
export * from './models/DocumentTranslationApprovalModel';
|
|
224
|
+
export * from './models/DocumentTranslationAttachmentModel';
|
|
225
|
+
export * from './models/DocumentTranslationChatModel';
|
|
226
|
+
export * from './models/DocumentTranslationWorkflowModel';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum DocumentTranslationApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'document_translation_approvals' })
|
|
12
|
+
export class DocumentTranslationApprovalDetails extends BaseModel {
|
|
13
|
+
@Column({ type: 'integer', nullable: false })
|
|
14
|
+
request_id: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'integer', nullable: true })
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'integer', nullable: true })
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'integer', nullable: false })
|
|
23
|
+
level: number;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'integer', nullable: true })
|
|
26
|
+
approver_role_id: number;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
department_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'integer', nullable: true })
|
|
32
|
+
section_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'integer', nullable: true })
|
|
35
|
+
approver_user_id: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'integer', nullable: true })
|
|
38
|
+
delegate_user_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'integer', nullable: true })
|
|
41
|
+
approved_by: number | null;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'varchar', length: 500, nullable: true, default: '' })
|
|
44
|
+
comment: string;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'enum', enum: DocumentTranslationApprovalStatus, default: DocumentTranslationApprovalStatus.PENDING, nullable: false })
|
|
47
|
+
approval_status: DocumentTranslationApprovalStatus;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
50
|
+
is_allowed: boolean;
|
|
51
|
+
}
|
|
52
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'document_translation_attachments' })
|
|
5
|
+
export class DocumentTranslationRequestAttachment extends BaseModel {
|
|
6
|
+
|
|
7
|
+
@Column({ type: 'integer', nullable: false })
|
|
8
|
+
request_id: number;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'integer', nullable: true })
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'integer', nullable: true })
|
|
14
|
+
sub_service_id: number | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
17
|
+
file_url: string;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
20
|
+
file_name: string;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
23
|
+
file_type: string;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'bigint', nullable: true })
|
|
26
|
+
file_size: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
chat_id: number | null;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { DocumentTranslationApprovalStatus } from './DocumentTranslationApprovalModel';
|
|
4
|
+
|
|
5
|
+
export enum DocumentTranslationMessageType {
|
|
6
|
+
TEXT = "text",
|
|
7
|
+
IMAGE = "image",
|
|
8
|
+
VIDEO = "video",
|
|
9
|
+
FILE = "file",
|
|
10
|
+
LINK = "link"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Entity({ name: 'document_translation_chats' })
|
|
14
|
+
export class DocumentTranslationRequestChat extends BaseModel {
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'integer', nullable: false })
|
|
17
|
+
request_id: number;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'integer', nullable: true })
|
|
20
|
+
service_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'integer', nullable: true })
|
|
23
|
+
sub_service_id: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'integer', nullable: false })
|
|
26
|
+
user_id: number;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
role_id: number;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'text', nullable: false })
|
|
32
|
+
message: string;
|
|
33
|
+
|
|
34
|
+
@Column({
|
|
35
|
+
type: 'enum',
|
|
36
|
+
enum: DocumentTranslationMessageType,
|
|
37
|
+
default: DocumentTranslationMessageType.TEXT,
|
|
38
|
+
nullable: false
|
|
39
|
+
})
|
|
40
|
+
messageType: DocumentTranslationMessageType;
|
|
41
|
+
|
|
42
|
+
@Column({ type: 'text', nullable: true })
|
|
43
|
+
status: string;
|
|
44
|
+
|
|
45
|
+
constructor(
|
|
46
|
+
request_id: number,
|
|
47
|
+
user_id: number,
|
|
48
|
+
role_id: number,
|
|
49
|
+
message: string,
|
|
50
|
+
service_id?: number,
|
|
51
|
+
sub_service_id?: number,
|
|
52
|
+
messageType?: DocumentTranslationMessageType,
|
|
53
|
+
status?: string
|
|
54
|
+
) {
|
|
55
|
+
super();
|
|
56
|
+
this.request_id = request_id;
|
|
57
|
+
this.service_id = service_id || null;
|
|
58
|
+
this.sub_service_id = sub_service_id || null;
|
|
59
|
+
this.user_id = user_id;
|
|
60
|
+
this.role_id = role_id;
|
|
61
|
+
this.message = message;
|
|
62
|
+
this.messageType = messageType || DocumentTranslationMessageType.TEXT;
|
|
63
|
+
this.status = status || DocumentTranslationApprovalStatus.PENDING;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum DocumentTranslationStatus {
|
|
5
|
+
SUBMITTED = "Submitted",
|
|
6
|
+
PENDING = "Pending",
|
|
7
|
+
ASSIGNED = "Assigned",
|
|
8
|
+
IN_PROGRESS = "In Progress",
|
|
9
|
+
APPROVED = "Approved",
|
|
10
|
+
REJECTED = "Rejected"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export enum DocumentClassificationType {
|
|
14
|
+
NORMAL = "Normal",
|
|
15
|
+
CONFIDENTIAL = "Confidential"
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@Entity({ name: 'document_translation_requests' })
|
|
19
|
+
export class DocumentTranslationRequests extends BaseModel {
|
|
20
|
+
|
|
21
|
+
// Common columns
|
|
22
|
+
@Column({ type: 'int', nullable: true })
|
|
23
|
+
req_user_department_id: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'int', nullable: true })
|
|
26
|
+
req_user_section_id: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'int', nullable: true })
|
|
29
|
+
service_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'int', nullable: true })
|
|
32
|
+
sub_service_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'int', nullable: false })
|
|
35
|
+
user_id: number;
|
|
36
|
+
|
|
37
|
+
// Document Translation specific columns
|
|
38
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
39
|
+
document_type: string;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
42
|
+
document_name: string;
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'enum', enum: DocumentClassificationType, nullable: false })
|
|
45
|
+
document_classification: DocumentClassificationType;
|
|
46
|
+
|
|
47
|
+
@Column({ type: 'enum', enum: DocumentTranslationStatus, default: DocumentTranslationStatus.SUBMITTED, nullable: false })
|
|
48
|
+
status: DocumentTranslationStatus;
|
|
49
|
+
|
|
50
|
+
@Column({ type: 'varchar', nullable: true })
|
|
51
|
+
workflow_execution_id: string | null;
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum DocumentTranslationWorkFlowStatus {
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
+
PENDING = "Pending"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'document_translation_workflows' })
|
|
11
|
+
export class DocumentTranslationWorkFlow extends BaseModel {
|
|
12
|
+
@Column({ type: 'integer', nullable: false })
|
|
13
|
+
request_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'integer', nullable: true })
|
|
16
|
+
service_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'integer', nullable: true })
|
|
19
|
+
sub_service_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
22
|
+
content: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'enum', enum: DocumentTranslationWorkFlowStatus, default: DocumentTranslationWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
25
|
+
status: DocumentTranslationWorkFlowStatus;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'integer', nullable: true })
|
|
28
|
+
user_id: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'integer', nullable: true })
|
|
31
|
+
role_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'integer', nullable: true })
|
|
34
|
+
department_id: number | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'integer', nullable: true })
|
|
37
|
+
section_id: number | null;
|
|
38
|
+
}
|
|
39
|
+
|