@platform-modules/foreign-ministry 1.1.62 → 1.1.63
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/data-source.js +1 -17
- package/dist/index.d.ts +1 -8
- package/dist/index.js +1 -8
- package/dist/models/FinancialApprovalsModel.d.ts +1 -0
- package/dist/models/FinancialApprovalsModel.js +4 -0
- package/dist/models/GeneralServiceApprovalsModel.d.ts +4 -1
- package/dist/models/GeneralServiceApprovalsModel.js +9 -0
- package/dist/models/StationeryRequestsModel.d.ts +27 -0
- package/dist/models/StationeryRequestsModel.js +93 -0
- package/package.json +1 -1
- package/src/data-source.ts +2 -18
- package/src/index.ts +2 -9
- package/src/models/FinancialApprovalsModel.ts +4 -0
- package/src/models/GeneralServiceApprovalsModel.ts +10 -1
- package/src/models/StationeryRequestsModel.ts +65 -0
- package/dist/models/DiplomaticApprovalsModel.d.ts +0 -24
- package/dist/models/DiplomaticApprovalsModel.js +0 -94
- package/dist/models/DiplomaticAttachmentsModel.d.ts +0 -11
- package/dist/models/DiplomaticAttachmentsModel.js +0 -53
- package/dist/models/DiplomaticChatsModel.d.ts +0 -20
- package/dist/models/DiplomaticChatsModel.js +0 -70
- package/dist/models/DiplomaticClubCardApprovalModel.d.ts +0 -16
- package/dist/models/DiplomaticClubCardApprovalModel.js +0 -58
- package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +0 -9
- package/dist/models/DiplomaticClubCardAttachmentModel.js +0 -44
- package/dist/models/DiplomaticClubCardChatModel.d.ts +0 -7
- package/dist/models/DiplomaticClubCardChatModel.js +0 -36
- package/dist/models/DiplomaticClubCardMemberModel.d.ts +0 -13
- package/dist/models/DiplomaticClubCardMemberModel.js +0 -60
- package/dist/models/DiplomaticClubCardMembersModel.d.ts +0 -37
- package/dist/models/DiplomaticClubCardMembersModel.js +0 -139
- package/dist/models/DiplomaticClubCardRequestModel.d.ts +0 -33
- package/dist/models/DiplomaticClubCardRequestModel.js +0 -98
- package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +0 -12
- package/dist/models/DiplomaticClubCardWorkFlowModel.js +0 -42
- package/dist/models/DiplomaticClubSubscriptionMasterModel.d.ts +0 -11
- package/dist/models/DiplomaticClubSubscriptionMasterModel.js +0 -59
- package/dist/models/DiplomaticRequestsModel.d.ts +0 -43
- package/dist/models/DiplomaticRequestsModel.js +0 -142
- package/dist/models/DiplomaticServiceDetailsModel.d.ts +0 -20
- package/dist/models/DiplomaticServiceDetailsModel.js +0 -65
- package/dist/models/DiplomaticSettingsModel.d.ts +0 -11
- package/dist/models/DiplomaticSettingsModel.js +0 -59
- package/dist/models/DiplomaticTitleModel.d.ts +0 -12
- package/dist/models/DiplomaticTitleModel.js +0 -45
- package/dist/models/DiplomaticTitlesMasterModel.d.ts +0 -13
- package/dist/models/DiplomaticTitlesMasterModel.js +0 -54
- package/dist/models/DiplomaticWorkFlowModel.d.ts +0 -18
- package/dist/models/DiplomaticWorkFlowModel.js +0 -69
- package/dist/models/PassportRequestApprovalModel.d.ts +0 -22
- package/dist/models/PassportRequestApprovalModel.js +0 -91
- package/dist/models/PassportRequestAttachmentModel.d.ts +0 -10
- package/dist/models/PassportRequestAttachmentModel.js +0 -54
- package/dist/models/PassportRequestChatModel.d.ts +0 -8
- package/dist/models/PassportRequestChatModel.js +0 -44
- package/dist/models/PassportRequestDependentModel.d.ts +0 -20
- package/dist/models/PassportRequestDependentModel.js +0 -85
- package/dist/models/PassportRequestModel.d.ts +0 -40
- package/dist/models/PassportRequestModel.js +0 -128
- package/dist/models/PassportRequestWorkFlowModel.d.ts +0 -15
- package/dist/models/PassportRequestWorkFlowModel.js +0 -60
- package/dist/models/SubscriptionAmountModel.d.ts +0 -67
- package/dist/models/SubscriptionAmountModel.js +0 -114
- package/src/models/DiplomaticApprovalsModel.ts +0 -77
- package/src/models/DiplomaticAttachmentsModel.ts +0 -37
- package/src/models/DiplomaticChatsModel.ts +0 -53
- package/src/models/DiplomaticClubCardMembersModel.ts +0 -124
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +0 -45
- package/src/models/DiplomaticRequestsModel.ts +0 -121
- package/src/models/DiplomaticTitlesMasterModel.ts +0 -39
- package/src/models/DiplomaticWorkFlowModel.ts +0 -53
package/dist/data-source.js
CHANGED
|
@@ -101,14 +101,6 @@ const GroupModel_1 = require("./models/GroupModel");
|
|
|
101
101
|
const WorkScheduleModel_1 = require("./models/WorkScheduleModel");
|
|
102
102
|
const JobsModel_1 = require("./models/JobsModel");
|
|
103
103
|
const TelephoneDirectoryModel_1 = require("./models/TelephoneDirectoryModel");
|
|
104
|
-
const DiplomaticRequestsModel_1 = require("./models/DiplomaticRequestsModel");
|
|
105
|
-
const DiplomaticApprovalsModel_1 = require("./models/DiplomaticApprovalsModel");
|
|
106
|
-
const DiplomaticWorkFlowModel_1 = require("./models/DiplomaticWorkFlowModel");
|
|
107
|
-
const DiplomaticAttachmentsModel_1 = require("./models/DiplomaticAttachmentsModel");
|
|
108
|
-
const DiplomaticChatsModel_1 = require("./models/DiplomaticChatsModel");
|
|
109
|
-
const DiplomaticClubCardMembersModel_1 = require("./models/DiplomaticClubCardMembersModel");
|
|
110
|
-
const DiplomaticTitlesMasterModel_1 = require("./models/DiplomaticTitlesMasterModel");
|
|
111
|
-
const DiplomaticClubSubscriptionMasterModel_1 = require("./models/DiplomaticClubSubscriptionMasterModel");
|
|
112
104
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
113
105
|
type: 'postgres',
|
|
114
106
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -214,14 +206,6 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
214
206
|
GroupModel_1.Group,
|
|
215
207
|
WorkScheduleModel_1.WorkSchedule,
|
|
216
208
|
JobsModel_1.Jobs,
|
|
217
|
-
TelephoneDirectoryModel_1.TelephoneDirectory
|
|
218
|
-
DiplomaticRequestsModel_1.DiplomaticRequests,
|
|
219
|
-
DiplomaticApprovalsModel_1.DiplomaticApprovals,
|
|
220
|
-
DiplomaticWorkFlowModel_1.DiplomaticWorkFlow,
|
|
221
|
-
DiplomaticAttachmentsModel_1.DiplomaticAttachments,
|
|
222
|
-
DiplomaticChatsModel_1.DiplomaticChats,
|
|
223
|
-
DiplomaticClubCardMembersModel_1.DiplomaticClubCardMembers,
|
|
224
|
-
DiplomaticTitlesMasterModel_1.DiplomaticTitlesMaster,
|
|
225
|
-
DiplomaticClubSubscriptionMasterModel_1.DiplomaticClubSubscriptionMaster
|
|
209
|
+
TelephoneDirectoryModel_1.TelephoneDirectory
|
|
226
210
|
],
|
|
227
211
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -86,6 +86,7 @@ export * from './models/GeneralServiceApprovalsModel';
|
|
|
86
86
|
export * from './models/GeneralServiceWorkFlowModel';
|
|
87
87
|
export * from './models/GeneralServiceChatsModel';
|
|
88
88
|
export * from './models/GeneralServiceAttachmentsModel';
|
|
89
|
+
export * from './models/StationeryRequestsModel';
|
|
89
90
|
export * from './models/HelpdeskCategoriesModel';
|
|
90
91
|
export * from './models/HelpdeskSubCategoriesModel';
|
|
91
92
|
export * from './models/IssueTypesModel';
|
|
@@ -101,11 +102,3 @@ export * from './models/GroupModel';
|
|
|
101
102
|
export * from './models/WorkScheduleModel';
|
|
102
103
|
export * from './models/JobsModel';
|
|
103
104
|
export * from './models/TelephoneDirectoryModel';
|
|
104
|
-
export * from './models/DiplomaticRequestsModel';
|
|
105
|
-
export * from './models/DiplomaticApprovalsModel';
|
|
106
|
-
export * from './models/DiplomaticWorkFlowModel';
|
|
107
|
-
export * from './models/DiplomaticAttachmentsModel';
|
|
108
|
-
export * from './models/DiplomaticChatsModel';
|
|
109
|
-
export * from './models/DiplomaticClubCardMembersModel';
|
|
110
|
-
export * from './models/DiplomaticTitlesMasterModel';
|
|
111
|
-
export * from './models/DiplomaticClubSubscriptionMasterModel';
|
package/dist/index.js
CHANGED
|
@@ -102,6 +102,7 @@ __exportStar(require("./models/GeneralServiceApprovalsModel"), exports);
|
|
|
102
102
|
__exportStar(require("./models/GeneralServiceWorkFlowModel"), exports);
|
|
103
103
|
__exportStar(require("./models/GeneralServiceChatsModel"), exports);
|
|
104
104
|
__exportStar(require("./models/GeneralServiceAttachmentsModel"), exports);
|
|
105
|
+
__exportStar(require("./models/StationeryRequestsModel"), exports);
|
|
105
106
|
__exportStar(require("./models/HelpdeskCategoriesModel"), exports);
|
|
106
107
|
__exportStar(require("./models/HelpdeskSubCategoriesModel"), exports);
|
|
107
108
|
__exportStar(require("./models/IssueTypesModel"), exports);
|
|
@@ -117,11 +118,3 @@ __exportStar(require("./models/GroupModel"), exports);
|
|
|
117
118
|
__exportStar(require("./models/WorkScheduleModel"), exports);
|
|
118
119
|
__exportStar(require("./models/JobsModel"), exports);
|
|
119
120
|
__exportStar(require("./models/TelephoneDirectoryModel"), exports);
|
|
120
|
-
__exportStar(require("./models/DiplomaticRequestsModel"), exports);
|
|
121
|
-
__exportStar(require("./models/DiplomaticApprovalsModel"), exports);
|
|
122
|
-
__exportStar(require("./models/DiplomaticWorkFlowModel"), exports);
|
|
123
|
-
__exportStar(require("./models/DiplomaticAttachmentsModel"), exports);
|
|
124
|
-
__exportStar(require("./models/DiplomaticChatsModel"), exports);
|
|
125
|
-
__exportStar(require("./models/DiplomaticClubCardMembersModel"), exports);
|
|
126
|
-
__exportStar(require("./models/DiplomaticTitlesMasterModel"), exports);
|
|
127
|
-
__exportStar(require("./models/DiplomaticClubSubscriptionMasterModel"), exports);
|
|
@@ -19,6 +19,7 @@ export declare class FinancialApprovals extends BaseModel {
|
|
|
19
19
|
section_id: number | null;
|
|
20
20
|
approved_by: number | null;
|
|
21
21
|
delegate_user_id: number | null;
|
|
22
|
+
is_allowed: boolean | null;
|
|
22
23
|
financialRequest?: FinancialRequests;
|
|
23
24
|
constructor(financial_request_id: number, level: number, approver_role_id: number, approval_status: FinancialApprovalStatus, department_id: number | null, section_id: number | null, approved_by: number | null, delegate_user_id: number | null);
|
|
24
25
|
}
|
|
@@ -79,6 +79,10 @@ __decorate([
|
|
|
79
79
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
80
80
|
__metadata("design:type", Object)
|
|
81
81
|
], FinancialApprovals.prototype, "delegate_user_id", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], FinancialApprovals.prototype, "is_allowed", void 0);
|
|
82
86
|
__decorate([
|
|
83
87
|
(0, typeorm_1.ManyToOne)(() => FinancialRequestsModel_1.FinancialRequests, fr => fr.approvals),
|
|
84
88
|
(0, typeorm_1.JoinColumn)({ name: 'financial_request_id' }),
|
|
@@ -4,7 +4,8 @@ export declare enum GeneralServiceApprovalStatus {
|
|
|
4
4
|
APPROVED = "Approved",
|
|
5
5
|
REJECTED = "Rejected",
|
|
6
6
|
SKIPPED = "Skipped",
|
|
7
|
-
IN_PROGRESS = "In Progress"
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
ASSIGNED = "Assigned"
|
|
8
9
|
}
|
|
9
10
|
export declare class GeneralServiceApprovals extends BaseModel {
|
|
10
11
|
request_id: number;
|
|
@@ -23,5 +24,7 @@ export declare class GeneralServiceApprovals extends BaseModel {
|
|
|
23
24
|
transfer_from_user_id: number | null;
|
|
24
25
|
transfer_to_user_id: number | null;
|
|
25
26
|
delegate_user_id: number | null;
|
|
27
|
+
action_type: string | null;
|
|
28
|
+
is_allowed: boolean | null;
|
|
26
29
|
constructor(request_id: number, level: number, approver_role_id: number, approval_status: GeneralServiceApprovalStatus, department_id: number | null, section_id: number | null, approved_by: number | null, service_id?: number | null, sub_service_id?: number | null);
|
|
27
30
|
}
|
|
@@ -19,6 +19,7 @@ var GeneralServiceApprovalStatus;
|
|
|
19
19
|
GeneralServiceApprovalStatus["REJECTED"] = "Rejected";
|
|
20
20
|
GeneralServiceApprovalStatus["SKIPPED"] = "Skipped";
|
|
21
21
|
GeneralServiceApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
22
|
+
GeneralServiceApprovalStatus["ASSIGNED"] = "Assigned";
|
|
22
23
|
})(GeneralServiceApprovalStatus || (exports.GeneralServiceApprovalStatus = GeneralServiceApprovalStatus = {}));
|
|
23
24
|
let GeneralServiceApprovals = class GeneralServiceApprovals extends BaseModel_1.BaseModel {
|
|
24
25
|
// @Column({ type: 'timestamp', nullable: true })
|
|
@@ -107,6 +108,14 @@ __decorate([
|
|
|
107
108
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
108
109
|
__metadata("design:type", Object)
|
|
109
110
|
], GeneralServiceApprovals.prototype, "delegate_user_id", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
113
|
+
__metadata("design:type", Object)
|
|
114
|
+
], GeneralServiceApprovals.prototype, "action_type", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
|
|
117
|
+
__metadata("design:type", Object)
|
|
118
|
+
], GeneralServiceApprovals.prototype, "is_allowed", void 0);
|
|
110
119
|
exports.GeneralServiceApprovals = GeneralServiceApprovals = __decorate([
|
|
111
120
|
(0, typeorm_1.Entity)({ name: 'general_service_approvals' }),
|
|
112
121
|
__metadata("design:paramtypes", [Number, Number, Number, String, Object, Object, Object, Object, Object])
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum StationeryRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
APPROVED = "Approved",
|
|
7
|
+
REJECTED = "Rejected",
|
|
8
|
+
COMPLETED = "Completed"
|
|
9
|
+
}
|
|
10
|
+
export declare class StationeryRequests extends BaseModel {
|
|
11
|
+
req_user_department_id: number | null;
|
|
12
|
+
req_user_section_id: number | null;
|
|
13
|
+
service_id: number | null;
|
|
14
|
+
sub_service_id: number | null;
|
|
15
|
+
user_id: number;
|
|
16
|
+
date_of_request_preparation: Date;
|
|
17
|
+
office: string;
|
|
18
|
+
material_type: string;
|
|
19
|
+
material_name: string;
|
|
20
|
+
quantity_required: number;
|
|
21
|
+
comments: string | null;
|
|
22
|
+
status: StationeryRequestStatus;
|
|
23
|
+
workflow_execution_id: string | null;
|
|
24
|
+
stock_available: boolean | null;
|
|
25
|
+
po_number: string | null;
|
|
26
|
+
stock_available_date: Date | null;
|
|
27
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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.StationeryRequests = exports.StationeryRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var StationeryRequestStatus;
|
|
16
|
+
(function (StationeryRequestStatus) {
|
|
17
|
+
StationeryRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
StationeryRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
StationeryRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
StationeryRequestStatus["APPROVED"] = "Approved";
|
|
21
|
+
StationeryRequestStatus["REJECTED"] = "Rejected";
|
|
22
|
+
StationeryRequestStatus["COMPLETED"] = "Completed";
|
|
23
|
+
})(StationeryRequestStatus || (exports.StationeryRequestStatus = StationeryRequestStatus = {}));
|
|
24
|
+
let StationeryRequests = class StationeryRequests extends BaseModel_1.BaseModel {
|
|
25
|
+
};
|
|
26
|
+
exports.StationeryRequests = StationeryRequests;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], StationeryRequests.prototype, "req_user_department_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], StationeryRequests.prototype, "req_user_section_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], StationeryRequests.prototype, "service_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], StationeryRequests.prototype, "sub_service_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], StationeryRequests.prototype, "user_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
49
|
+
__metadata("design:type", Date)
|
|
50
|
+
], StationeryRequests.prototype, "date_of_request_preparation", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], StationeryRequests.prototype, "office", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], StationeryRequests.prototype, "material_type", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], StationeryRequests.prototype, "material_name", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], StationeryRequests.prototype, "quantity_required", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], StationeryRequests.prototype, "comments", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: StationeryRequestStatus, default: StationeryRequestStatus.PENDING, nullable: false }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], StationeryRequests.prototype, "status", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], StationeryRequests.prototype, "workflow_execution_id", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false, nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], StationeryRequests.prototype, "stock_available", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], StationeryRequests.prototype, "po_number", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
89
|
+
__metadata("design:type", Object)
|
|
90
|
+
], StationeryRequests.prototype, "stock_available_date", void 0);
|
|
91
|
+
exports.StationeryRequests = StationeryRequests = __decorate([
|
|
92
|
+
(0, typeorm_1.Entity)({ name: 'stationery_requests' })
|
|
93
|
+
], StationeryRequests);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -105,15 +105,7 @@ import { GroupNames } from './models/GroupNamesModel';
|
|
|
105
105
|
import { Group } from './models/GroupModel';
|
|
106
106
|
import { WorkSchedule } from './models/WorkScheduleModel';
|
|
107
107
|
import { Jobs } from './models/JobsModel';
|
|
108
|
-
import { TelephoneDirectory } from './models/TelephoneDirectoryModel'
|
|
109
|
-
import { DiplomaticRequests } from './models/DiplomaticRequestsModel';
|
|
110
|
-
import { DiplomaticApprovals } from './models/DiplomaticApprovalsModel';
|
|
111
|
-
import { DiplomaticWorkFlow } from './models/DiplomaticWorkFlowModel';
|
|
112
|
-
import { DiplomaticAttachments } from './models/DiplomaticAttachmentsModel';
|
|
113
|
-
import { DiplomaticChats } from './models/DiplomaticChatsModel';
|
|
114
|
-
import { DiplomaticClubCardMembers } from './models/DiplomaticClubCardMembersModel';
|
|
115
|
-
import { DiplomaticTitlesMaster } from './models/DiplomaticTitlesMasterModel';
|
|
116
|
-
import { DiplomaticClubSubscriptionMaster } from './models/DiplomaticClubSubscriptionMasterModel';
|
|
108
|
+
import { TelephoneDirectory } from './models/TelephoneDirectoryModel'
|
|
117
109
|
export const AppDataSource = new DataSource({
|
|
118
110
|
type: 'postgres',
|
|
119
111
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -219,14 +211,6 @@ export const AppDataSource = new DataSource({
|
|
|
219
211
|
Group,
|
|
220
212
|
WorkSchedule,
|
|
221
213
|
Jobs,
|
|
222
|
-
TelephoneDirectory
|
|
223
|
-
DiplomaticRequests,
|
|
224
|
-
DiplomaticApprovals,
|
|
225
|
-
DiplomaticWorkFlow,
|
|
226
|
-
DiplomaticAttachments,
|
|
227
|
-
DiplomaticChats,
|
|
228
|
-
DiplomaticClubCardMembers,
|
|
229
|
-
DiplomaticTitlesMaster,
|
|
230
|
-
DiplomaticClubSubscriptionMaster
|
|
214
|
+
TelephoneDirectory
|
|
231
215
|
],
|
|
232
216
|
});
|
package/src/index.ts
CHANGED
|
@@ -86,6 +86,7 @@ export * from './models/GeneralServiceApprovalsModel';
|
|
|
86
86
|
export * from './models/GeneralServiceWorkFlowModel';
|
|
87
87
|
export * from './models/GeneralServiceChatsModel';
|
|
88
88
|
export * from './models/GeneralServiceAttachmentsModel';
|
|
89
|
+
export * from './models/StationeryRequestsModel';
|
|
89
90
|
export * from './models/HelpdeskCategoriesModel';
|
|
90
91
|
export * from './models/HelpdeskSubCategoriesModel';
|
|
91
92
|
export * from './models/IssueTypesModel';
|
|
@@ -100,12 +101,4 @@ export * from './models/GroupNamesModel';
|
|
|
100
101
|
export * from './models/GroupModel';
|
|
101
102
|
export * from './models/WorkScheduleModel';
|
|
102
103
|
export * from './models/JobsModel';
|
|
103
|
-
export * from './models/TelephoneDirectoryModel'
|
|
104
|
-
export * from './models/DiplomaticRequestsModel';
|
|
105
|
-
export * from './models/DiplomaticApprovalsModel';
|
|
106
|
-
export * from './models/DiplomaticWorkFlowModel';
|
|
107
|
-
export * from './models/DiplomaticAttachmentsModel';
|
|
108
|
-
export * from './models/DiplomaticChatsModel';
|
|
109
|
-
export * from './models/DiplomaticClubCardMembersModel';
|
|
110
|
-
export * from './models/DiplomaticTitlesMasterModel';
|
|
111
|
-
export * from './models/DiplomaticClubSubscriptionMasterModel';
|
|
104
|
+
export * from './models/TelephoneDirectoryModel'
|
|
@@ -45,6 +45,10 @@ export class FinancialApprovals extends BaseModel {
|
|
|
45
45
|
@Column({ type: 'int', nullable: true })
|
|
46
46
|
delegate_user_id: number | null;
|
|
47
47
|
|
|
48
|
+
// is_allowed flag: true if logged-in user is the request creator, false otherwise (for chat permissions)
|
|
49
|
+
@Column({ type: 'boolean', nullable: true })
|
|
50
|
+
is_allowed: boolean | null;
|
|
51
|
+
|
|
48
52
|
@ManyToOne(() => FinancialRequests, fr => fr.approvals)
|
|
49
53
|
@JoinColumn({ name: 'financial_request_id' })
|
|
50
54
|
financialRequest?: FinancialRequests;
|
|
@@ -6,7 +6,8 @@ export enum GeneralServiceApprovalStatus {
|
|
|
6
6
|
APPROVED = "Approved",
|
|
7
7
|
REJECTED = "Rejected",
|
|
8
8
|
SKIPPED = "Skipped",
|
|
9
|
-
IN_PROGRESS = "In Progress"
|
|
9
|
+
IN_PROGRESS = "In Progress",
|
|
10
|
+
ASSIGNED = "Assigned"
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
@Entity({ name: 'general_service_approvals' })
|
|
@@ -60,6 +61,14 @@ export class GeneralServiceApprovals extends BaseModel {
|
|
|
60
61
|
@Column({ type: 'int', nullable: true })
|
|
61
62
|
delegate_user_id: number | null; // Group who transferred from
|
|
62
63
|
|
|
64
|
+
// Stationery-specific: Action type to indicate what action is needed (for FE button handling)
|
|
65
|
+
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
66
|
+
action_type: string | null; // Values: 'approve' (L1), 'store' (Stores Office), 'finance' (Finance), 'finance_purchase', 'complete'
|
|
67
|
+
|
|
68
|
+
// is_allowed flag: true if logged-in user is the request creator, false otherwise (for chat permissions)
|
|
69
|
+
@Column({ type: 'boolean', nullable: true })
|
|
70
|
+
is_allowed: boolean | null;
|
|
71
|
+
|
|
63
72
|
// @Column({ type: 'timestamp', nullable: true })
|
|
64
73
|
// sla_start_time: Date | null; // SLA tracking start time for this assignment
|
|
65
74
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum StationeryRequestStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
ASSIGNED = "Assigned",
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
APPROVED = "Approved",
|
|
9
|
+
REJECTED = "Rejected",
|
|
10
|
+
COMPLETED = "Completed"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@Entity({ name: 'stationery_requests' })
|
|
15
|
+
export class StationeryRequests extends BaseModel {
|
|
16
|
+
@Column({ type: 'int', nullable: true })
|
|
17
|
+
req_user_department_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'int', nullable: true })
|
|
20
|
+
req_user_section_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'int', nullable: true })
|
|
23
|
+
service_id: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'int', nullable: true })
|
|
26
|
+
sub_service_id: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'int', nullable: false })
|
|
29
|
+
user_id: number;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'date', nullable: false })
|
|
32
|
+
date_of_request_preparation: Date;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
35
|
+
office: string;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
38
|
+
material_type: string;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
41
|
+
material_name: string;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'int', nullable: false })
|
|
44
|
+
quantity_required: number;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
47
|
+
comments: string | null;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'enum', enum: StationeryRequestStatus, default: StationeryRequestStatus.PENDING, nullable: false })
|
|
50
|
+
status: StationeryRequestStatus;
|
|
51
|
+
|
|
52
|
+
@Column({ type: 'varchar', nullable: true })
|
|
53
|
+
workflow_execution_id: string | null;
|
|
54
|
+
|
|
55
|
+
// Business logic fields
|
|
56
|
+
@Column({ type: 'boolean', default: false, nullable: true })
|
|
57
|
+
stock_available: boolean | null; // Whether stock is available in Stores Office
|
|
58
|
+
|
|
59
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
60
|
+
po_number: string | null; // Purchase Order number from Finance
|
|
61
|
+
|
|
62
|
+
@Column({ type: 'date', nullable: true })
|
|
63
|
+
stock_available_date: Date | null; // When stock becomes available
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
import { DiplomaticRequests } from "./DiplomaticRequestsModel";
|
|
3
|
-
export declare enum DiplomaticApprovalStatus {
|
|
4
|
-
PENDING = "Pending",
|
|
5
|
-
APPROVED = "Approved",
|
|
6
|
-
REJECTED = "Rejected",
|
|
7
|
-
IN_PROGRESS = "In Progress"
|
|
8
|
-
}
|
|
9
|
-
export declare class DiplomaticApprovals extends BaseModel {
|
|
10
|
-
diplomatic_request_id: number;
|
|
11
|
-
level: number;
|
|
12
|
-
approver_user_id: number | null;
|
|
13
|
-
approver_role_id: number;
|
|
14
|
-
comment: string | null;
|
|
15
|
-
approval_status: DiplomaticApprovalStatus;
|
|
16
|
-
action_date: Date;
|
|
17
|
-
department_id: number | null;
|
|
18
|
-
section_id: number | null;
|
|
19
|
-
approved_by: number | null;
|
|
20
|
-
delegate_user_id: number | null;
|
|
21
|
-
is_allowed: boolean;
|
|
22
|
-
diplomaticRequest?: DiplomaticRequests;
|
|
23
|
-
constructor(diplomatic_request_id: number, level: number, approver_role_id: number, approval_status: DiplomaticApprovalStatus, department_id: number | null, section_id: number | null, approved_by: number | null, delegate_user_id: number | null, is_allowed?: boolean);
|
|
24
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
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.DiplomaticApprovals = exports.DiplomaticApprovalStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
const DiplomaticRequestsModel_1 = require("./DiplomaticRequestsModel");
|
|
16
|
-
var DiplomaticApprovalStatus;
|
|
17
|
-
(function (DiplomaticApprovalStatus) {
|
|
18
|
-
DiplomaticApprovalStatus["PENDING"] = "Pending";
|
|
19
|
-
DiplomaticApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
-
DiplomaticApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
-
DiplomaticApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
22
|
-
})(DiplomaticApprovalStatus || (exports.DiplomaticApprovalStatus = DiplomaticApprovalStatus = {}));
|
|
23
|
-
let DiplomaticApprovals = class DiplomaticApprovals extends BaseModel_1.BaseModel {
|
|
24
|
-
constructor(diplomatic_request_id, level, approver_role_id, approval_status, department_id, section_id, approved_by, delegate_user_id, is_allowed = true) {
|
|
25
|
-
super();
|
|
26
|
-
this.diplomatic_request_id = diplomatic_request_id;
|
|
27
|
-
this.level = level;
|
|
28
|
-
this.approver_role_id = approver_role_id;
|
|
29
|
-
this.approval_status = approval_status;
|
|
30
|
-
this.department_id = department_id;
|
|
31
|
-
this.section_id = section_id;
|
|
32
|
-
this.approved_by = approved_by;
|
|
33
|
-
this.delegate_user_id = delegate_user_id;
|
|
34
|
-
this.is_allowed = is_allowed;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
exports.DiplomaticApprovals = DiplomaticApprovals;
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], DiplomaticApprovals.prototype, "diplomatic_request_id", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
44
|
-
__metadata("design:type", Number)
|
|
45
|
-
], DiplomaticApprovals.prototype, "level", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], DiplomaticApprovals.prototype, "approver_user_id", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
52
|
-
__metadata("design:type", Number)
|
|
53
|
-
], DiplomaticApprovals.prototype, "approver_role_id", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
56
|
-
__metadata("design:type", Object)
|
|
57
|
-
], DiplomaticApprovals.prototype, "comment", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: DiplomaticApprovalStatus, default: DiplomaticApprovalStatus.PENDING }),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], DiplomaticApprovals.prototype, "approval_status", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
64
|
-
__metadata("design:type", Date)
|
|
65
|
-
], DiplomaticApprovals.prototype, "action_date", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
68
|
-
__metadata("design:type", Object)
|
|
69
|
-
], DiplomaticApprovals.prototype, "department_id", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
72
|
-
__metadata("design:type", Object)
|
|
73
|
-
], DiplomaticApprovals.prototype, "section_id", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
76
|
-
__metadata("design:type", Object)
|
|
77
|
-
], DiplomaticApprovals.prototype, "approved_by", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
80
|
-
__metadata("design:type", Object)
|
|
81
|
-
], DiplomaticApprovals.prototype, "delegate_user_id", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
84
|
-
__metadata("design:type", Boolean)
|
|
85
|
-
], DiplomaticApprovals.prototype, "is_allowed", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, typeorm_1.ManyToOne)(() => DiplomaticRequestsModel_1.DiplomaticRequests, dr => dr.approvals),
|
|
88
|
-
(0, typeorm_1.JoinColumn)({ name: 'diplomatic_request_id' }),
|
|
89
|
-
__metadata("design:type", DiplomaticRequestsModel_1.DiplomaticRequests)
|
|
90
|
-
], DiplomaticApprovals.prototype, "diplomaticRequest", void 0);
|
|
91
|
-
exports.DiplomaticApprovals = DiplomaticApprovals = __decorate([
|
|
92
|
-
(0, typeorm_1.Entity)({ name: 'diplomatic_approvals' }),
|
|
93
|
-
__metadata("design:paramtypes", [Number, Number, Number, String, Object, Object, Object, Object, Boolean])
|
|
94
|
-
], DiplomaticApprovals);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
import { DiplomaticRequests } from "./DiplomaticRequestsModel";
|
|
3
|
-
export declare class DiplomaticAttachments extends BaseModel {
|
|
4
|
-
diplomatic_request_id: number;
|
|
5
|
-
file_url: string;
|
|
6
|
-
file_name: string;
|
|
7
|
-
file_type: string;
|
|
8
|
-
file_size: number | null;
|
|
9
|
-
diplomaticRequest?: DiplomaticRequests;
|
|
10
|
-
constructor(diplomatic_request_id: number, file_url: string, file_name: string);
|
|
11
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
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.DiplomaticAttachments = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
const DiplomaticRequestsModel_1 = require("./DiplomaticRequestsModel");
|
|
16
|
-
let DiplomaticAttachments = class DiplomaticAttachments extends BaseModel_1.BaseModel {
|
|
17
|
-
constructor(diplomatic_request_id, file_url, file_name) {
|
|
18
|
-
super();
|
|
19
|
-
this.diplomatic_request_id = diplomatic_request_id;
|
|
20
|
-
this.file_url = file_url;
|
|
21
|
-
this.file_name = file_name;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
exports.DiplomaticAttachments = DiplomaticAttachments;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], DiplomaticAttachments.prototype, "diplomatic_request_id", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500 }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], DiplomaticAttachments.prototype, "file_url", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], DiplomaticAttachments.prototype, "file_name", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], DiplomaticAttachments.prototype, "file_type", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
43
|
-
__metadata("design:type", Object)
|
|
44
|
-
], DiplomaticAttachments.prototype, "file_size", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.ManyToOne)(() => DiplomaticRequestsModel_1.DiplomaticRequests, dr => dr.attachments),
|
|
47
|
-
(0, typeorm_1.JoinColumn)({ name: 'diplomatic_request_id' }),
|
|
48
|
-
__metadata("design:type", DiplomaticRequestsModel_1.DiplomaticRequests)
|
|
49
|
-
], DiplomaticAttachments.prototype, "diplomaticRequest", void 0);
|
|
50
|
-
exports.DiplomaticAttachments = DiplomaticAttachments = __decorate([
|
|
51
|
-
(0, typeorm_1.Entity)({ name: 'diplomatic_attachments' }),
|
|
52
|
-
__metadata("design:paramtypes", [Number, String, String])
|
|
53
|
-
], DiplomaticAttachments);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
import { DiplomaticRequests } from "./DiplomaticRequestsModel";
|
|
3
|
-
export declare enum DiplomaticMessageType {
|
|
4
|
-
TEXT = "text",
|
|
5
|
-
IMAGE = "image",
|
|
6
|
-
VIDEO = "video",
|
|
7
|
-
FILE = "file",
|
|
8
|
-
AUDIO = "audio"
|
|
9
|
-
}
|
|
10
|
-
export declare class DiplomaticChats extends BaseModel {
|
|
11
|
-
diplomatic_request_id: number;
|
|
12
|
-
content: string;
|
|
13
|
-
sender_user_id: number;
|
|
14
|
-
role_id: number | null;
|
|
15
|
-
status: string | null;
|
|
16
|
-
message_type: DiplomaticMessageType | null;
|
|
17
|
-
sender_role_id: number | null;
|
|
18
|
-
diplomaticRequest?: DiplomaticRequests;
|
|
19
|
-
constructor(diplomatic_request_id: number, content: string, sender_user_id: number, sender_role_id: number);
|
|
20
|
-
}
|