@platform-modules/foreign-ministry 1.3.242 → 1.3.245
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 +40 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +20 -0
- package/dist/models/HousingRentalAccommodationApprovalModel.d.ts +22 -0
- package/dist/models/HousingRentalAccommodationApprovalModel.js +84 -0
- package/dist/models/HousingRentalAccommodationAttachmentModel.d.ts +11 -0
- package/dist/models/HousingRentalAccommodationAttachmentModel.js +52 -0
- package/dist/models/HousingRentalAccommodationChatModel.d.ts +18 -0
- package/dist/models/HousingRentalAccommodationChatModel.js +65 -0
- package/dist/models/HousingRentalAccommodationRequestModel.d.ts +20 -0
- package/dist/models/HousingRentalAccommodationRequestModel.js +70 -0
- package/dist/models/HousingRentalAccommodationWorkflowModel.d.ts +17 -0
- package/dist/models/HousingRentalAccommodationWorkflowModel.js +67 -0
- package/dist/models/HousingRentalVehicleApprovalModel.d.ts +22 -0
- package/dist/models/HousingRentalVehicleApprovalModel.js +84 -0
- package/dist/models/HousingRentalVehicleAttachmentModel.d.ts +11 -0
- package/dist/models/HousingRentalVehicleAttachmentModel.js +52 -0
- package/dist/models/HousingRentalVehicleChatModel.d.ts +18 -0
- package/dist/models/HousingRentalVehicleChatModel.js +65 -0
- package/dist/models/HousingRentalVehicleRequestModel.d.ts +22 -0
- package/dist/models/HousingRentalVehicleRequestModel.js +78 -0
- package/dist/models/HousingRentalVehicleWorkflowModel.d.ts +17 -0
- package/dist/models/HousingRentalVehicleWorkflowModel.js +67 -0
- package/dist/models/MissionContractsApprovalModel.d.ts +22 -0
- package/dist/models/MissionContractsApprovalModel.js +84 -0
- package/dist/models/MissionContractsAttachmentModel.d.ts +11 -0
- package/dist/models/MissionContractsAttachmentModel.js +52 -0
- package/dist/models/MissionContractsChatModel.d.ts +18 -0
- package/dist/models/MissionContractsChatModel.js +65 -0
- package/dist/models/MissionContractsRequestModel.d.ts +26 -0
- package/dist/models/MissionContractsRequestModel.js +90 -0
- package/dist/models/MissionContractsWorkflowModel.d.ts +17 -0
- package/dist/models/MissionContractsWorkflowModel.js +67 -0
- package/dist/models/NationalDayCelebrationsApprovalModel.d.ts +22 -0
- package/dist/models/NationalDayCelebrationsApprovalModel.js +84 -0
- package/dist/models/NationalDayCelebrationsAttachmentModel.d.ts +11 -0
- package/dist/models/NationalDayCelebrationsAttachmentModel.js +52 -0
- package/dist/models/NationalDayCelebrationsChatModel.d.ts +18 -0
- package/dist/models/NationalDayCelebrationsChatModel.js +65 -0
- package/dist/models/NationalDayCelebrationsRequestModel.d.ts +20 -0
- package/dist/models/NationalDayCelebrationsRequestModel.js +70 -0
- package/dist/models/NationalDayCelebrationsWorkflowModel.d.ts +17 -0
- package/dist/models/NationalDayCelebrationsWorkflowModel.js +67 -0
- package/package.json +24 -24
- package/src/data-source.ts +40 -0
- package/src/index.ts +20 -0
- package/src/models/HousingRentalAccommodationApprovalModel.ts +56 -0
- package/src/models/HousingRentalAccommodationAttachmentModel.ts +29 -0
- package/src/models/HousingRentalAccommodationChatModel.ts +42 -0
- package/src/models/HousingRentalAccommodationRequestModel.ts +46 -0
- package/src/models/HousingRentalAccommodationWorkflowModel.ts +43 -0
- package/src/models/HousingRentalVehicleApprovalModel.ts +56 -0
- package/src/models/HousingRentalVehicleAttachmentModel.ts +29 -0
- package/src/models/HousingRentalVehicleChatModel.ts +42 -0
- package/src/models/HousingRentalVehicleRequestModel.ts +52 -0
- package/src/models/HousingRentalVehicleWorkflowModel.ts +43 -0
- package/src/models/MissionContractsApprovalModel.ts +56 -0
- package/src/models/MissionContractsAttachmentModel.ts +29 -0
- package/src/models/MissionContractsChatModel.ts +42 -0
- package/src/models/MissionContractsRequestModel.ts +62 -0
- package/src/models/MissionContractsWorkflowModel.ts +43 -0
- package/src/models/NationalDayCelebrationsApprovalModel.ts +56 -0
- package/src/models/NationalDayCelebrationsAttachmentModel.ts +29 -0
- package/src/models/NationalDayCelebrationsChatModel.ts +42 -0
- package/src/models/NationalDayCelebrationsRequestModel.ts +46 -0
- package/src/models/NationalDayCelebrationsWorkflowModel.ts +43 -0
- package/src/models/ProjectFaqModel.ts +36 -36
- package/src/models/ProjectInvoicesModel.ts +41 -41
|
@@ -0,0 +1,67 @@
|
|
|
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.NationalDayCelebrationsWorkFlow = exports.NationalDayCelebrationsWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var NationalDayCelebrationsWorkFlowStatus;
|
|
16
|
+
(function (NationalDayCelebrationsWorkFlowStatus) {
|
|
17
|
+
NationalDayCelebrationsWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
NationalDayCelebrationsWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
NationalDayCelebrationsWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
})(NationalDayCelebrationsWorkFlowStatus || (exports.NationalDayCelebrationsWorkFlowStatus = NationalDayCelebrationsWorkFlowStatus = {}));
|
|
21
|
+
let NationalDayCelebrationsWorkFlow = class NationalDayCelebrationsWorkFlow extends BaseModel_1.BaseModel {
|
|
22
|
+
};
|
|
23
|
+
exports.NationalDayCelebrationsWorkFlow = NationalDayCelebrationsWorkFlow;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], NationalDayCelebrationsWorkFlow.prototype, "request_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], NationalDayCelebrationsWorkFlow.prototype, "service_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], NationalDayCelebrationsWorkFlow.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
|
+
], NationalDayCelebrationsWorkFlow.prototype, "content", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({
|
|
42
|
+
type: 'enum',
|
|
43
|
+
enum: NationalDayCelebrationsWorkFlowStatus,
|
|
44
|
+
default: NationalDayCelebrationsWorkFlowStatus.NOT_YET_STARTED,
|
|
45
|
+
nullable: false,
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], NationalDayCelebrationsWorkFlow.prototype, "status", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], NationalDayCelebrationsWorkFlow.prototype, "user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], NationalDayCelebrationsWorkFlow.prototype, "role_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], NationalDayCelebrationsWorkFlow.prototype, "department_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], NationalDayCelebrationsWorkFlow.prototype, "section_id", void 0);
|
|
65
|
+
exports.NationalDayCelebrationsWorkFlow = NationalDayCelebrationsWorkFlow = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)({ name: 'national_day_celebrations_workflows' })
|
|
67
|
+
], NationalDayCelebrationsWorkFlow);
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@platform-modules/foreign-ministry",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"main": "dist/index.js",
|
|
5
|
-
"types": "dist/index.d.ts",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "tsc",
|
|
8
|
-
"dev": "ts-node src/scripts.ts"
|
|
9
|
-
},
|
|
10
|
-
"publishConfig": {
|
|
11
|
-
"access": "public"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"moment-timezone": "^0.6.0",
|
|
15
|
-
"pg": "^8.16.0",
|
|
16
|
-
"typeorm": "^0.3.17"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@types/moment-timezone": "^0.5.30",
|
|
20
|
-
"dotenv": "^16.5.0",
|
|
21
|
-
"ts-node": "^10.9.2",
|
|
22
|
-
"typescript": "^5.2.0"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@platform-modules/foreign-ministry",
|
|
3
|
+
"version": "1.3.245",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc",
|
|
8
|
+
"dev": "ts-node src/scripts.ts"
|
|
9
|
+
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"moment-timezone": "^0.6.0",
|
|
15
|
+
"pg": "^8.16.0",
|
|
16
|
+
"typeorm": "^0.3.17"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/moment-timezone": "^0.5.30",
|
|
20
|
+
"dotenv": "^16.5.0",
|
|
21
|
+
"ts-node": "^10.9.2",
|
|
22
|
+
"typescript": "^5.2.0"
|
|
23
|
+
}
|
|
24
|
+
}
|
package/src/data-source.ts
CHANGED
|
@@ -212,6 +212,26 @@ import { TransferAllowanceApprovalDetails } from './models/TransferAllowanceAppr
|
|
|
212
212
|
import { TransferAllowanceRequestAttachment } from './models/TransferAllowanceAttachmentModel';
|
|
213
213
|
import { TransferAllowanceRequestChat } from './models/TransferAllowanceChatModel';
|
|
214
214
|
import { TransferAllowanceWorkFlow } from './models/TransferAllowanceWorkflowModel';
|
|
215
|
+
import { MissionContractsRequests } from './models/MissionContractsRequestModel';
|
|
216
|
+
import { MissionContractsApprovalDetails } from './models/MissionContractsApprovalModel';
|
|
217
|
+
import { MissionContractsRequestAttachment } from './models/MissionContractsAttachmentModel';
|
|
218
|
+
import { MissionContractsRequestChat } from './models/MissionContractsChatModel';
|
|
219
|
+
import { MissionContractsWorkFlow } from './models/MissionContractsWorkflowModel';
|
|
220
|
+
import { NationalDayCelebrationsRequests } from './models/NationalDayCelebrationsRequestModel';
|
|
221
|
+
import { NationalDayCelebrationsApprovalDetails } from './models/NationalDayCelebrationsApprovalModel';
|
|
222
|
+
import { NationalDayCelebrationsRequestAttachment } from './models/NationalDayCelebrationsAttachmentModel';
|
|
223
|
+
import { NationalDayCelebrationsRequestChat } from './models/NationalDayCelebrationsChatModel';
|
|
224
|
+
import { NationalDayCelebrationsWorkFlow } from './models/NationalDayCelebrationsWorkflowModel';
|
|
225
|
+
import { HousingRentalVehicleRequests } from './models/HousingRentalVehicleRequestModel';
|
|
226
|
+
import { HousingRentalVehicleApprovalDetails } from './models/HousingRentalVehicleApprovalModel';
|
|
227
|
+
import { HousingRentalVehicleRequestAttachment } from './models/HousingRentalVehicleAttachmentModel';
|
|
228
|
+
import { HousingRentalVehicleRequestChat } from './models/HousingRentalVehicleChatModel';
|
|
229
|
+
import { HousingRentalVehicleWorkFlow } from './models/HousingRentalVehicleWorkflowModel';
|
|
230
|
+
import { HousingRentalAccommodationRequests } from './models/HousingRentalAccommodationRequestModel';
|
|
231
|
+
import { HousingRentalAccommodationApprovalDetails } from './models/HousingRentalAccommodationApprovalModel';
|
|
232
|
+
import { HousingRentalAccommodationRequestAttachment } from './models/HousingRentalAccommodationAttachmentModel';
|
|
233
|
+
import { HousingRentalAccommodationRequestChat } from './models/HousingRentalAccommodationChatModel';
|
|
234
|
+
import { HousingRentalAccommodationWorkFlow } from './models/HousingRentalAccommodationWorkflowModel';
|
|
215
235
|
import { MeetingAttendees } from './models/MeetingAttendeeModel';
|
|
216
236
|
import { MeetingDocumentsPermission } from './models/MeetingDocumentsPermissionModel';
|
|
217
237
|
import { AppointmentRequests } from './models/AppointmentRequestModel';
|
|
@@ -465,6 +485,26 @@ export const AppDataSource = new DataSource({
|
|
|
465
485
|
TransferAllowanceRequestAttachment,
|
|
466
486
|
TransferAllowanceRequestChat,
|
|
467
487
|
TransferAllowanceWorkFlow,
|
|
488
|
+
MissionContractsRequests,
|
|
489
|
+
MissionContractsApprovalDetails,
|
|
490
|
+
MissionContractsRequestAttachment,
|
|
491
|
+
MissionContractsRequestChat,
|
|
492
|
+
MissionContractsWorkFlow,
|
|
493
|
+
NationalDayCelebrationsRequests,
|
|
494
|
+
NationalDayCelebrationsApprovalDetails,
|
|
495
|
+
NationalDayCelebrationsRequestAttachment,
|
|
496
|
+
NationalDayCelebrationsRequestChat,
|
|
497
|
+
NationalDayCelebrationsWorkFlow,
|
|
498
|
+
HousingRentalVehicleRequests,
|
|
499
|
+
HousingRentalVehicleApprovalDetails,
|
|
500
|
+
HousingRentalVehicleRequestAttachment,
|
|
501
|
+
HousingRentalVehicleRequestChat,
|
|
502
|
+
HousingRentalVehicleWorkFlow,
|
|
503
|
+
HousingRentalAccommodationRequests,
|
|
504
|
+
HousingRentalAccommodationApprovalDetails,
|
|
505
|
+
HousingRentalAccommodationRequestAttachment,
|
|
506
|
+
HousingRentalAccommodationRequestChat,
|
|
507
|
+
HousingRentalAccommodationWorkFlow,
|
|
468
508
|
MeetingAttendees,
|
|
469
509
|
MeetingDocumentsPermission,
|
|
470
510
|
AppointmentRequests,
|
package/src/index.ts
CHANGED
|
@@ -313,6 +313,26 @@ export * from './models/TransferAllowanceApprovalModel';
|
|
|
313
313
|
export * from './models/TransferAllowanceAttachmentModel';
|
|
314
314
|
export * from './models/TransferAllowanceChatModel';
|
|
315
315
|
export * from './models/TransferAllowanceWorkflowModel';
|
|
316
|
+
export * from './models/MissionContractsRequestModel';
|
|
317
|
+
export * from './models/MissionContractsApprovalModel';
|
|
318
|
+
export * from './models/MissionContractsAttachmentModel';
|
|
319
|
+
export * from './models/MissionContractsChatModel';
|
|
320
|
+
export * from './models/MissionContractsWorkflowModel';
|
|
321
|
+
export * from './models/NationalDayCelebrationsRequestModel';
|
|
322
|
+
export * from './models/NationalDayCelebrationsApprovalModel';
|
|
323
|
+
export * from './models/NationalDayCelebrationsAttachmentModel';
|
|
324
|
+
export * from './models/NationalDayCelebrationsChatModel';
|
|
325
|
+
export * from './models/NationalDayCelebrationsWorkflowModel';
|
|
326
|
+
export * from './models/HousingRentalVehicleRequestModel';
|
|
327
|
+
export * from './models/HousingRentalVehicleApprovalModel';
|
|
328
|
+
export * from './models/HousingRentalVehicleAttachmentModel';
|
|
329
|
+
export * from './models/HousingRentalVehicleChatModel';
|
|
330
|
+
export * from './models/HousingRentalVehicleWorkflowModel';
|
|
331
|
+
export * from './models/HousingRentalAccommodationRequestModel';
|
|
332
|
+
export * from './models/HousingRentalAccommodationApprovalModel';
|
|
333
|
+
export * from './models/HousingRentalAccommodationAttachmentModel';
|
|
334
|
+
export * from './models/HousingRentalAccommodationChatModel';
|
|
335
|
+
export * from './models/HousingRentalAccommodationWorkflowModel';
|
|
316
336
|
// Appointment Models (export entities only to avoid name collisions)
|
|
317
337
|
export { AppointmentRequests, AppointmentRequestStatus } from './models/AppointmentRequestModel';
|
|
318
338
|
export { AppointmentApprovalDetails } from './models/AppointmentApprovalModel';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum HousingRentalAccommodationApprovalStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'housing_rental_accommodation_approvals' })
|
|
12
|
+
export class HousingRentalAccommodationApprovalDetails 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({
|
|
47
|
+
type: 'enum',
|
|
48
|
+
enum: HousingRentalAccommodationApprovalStatus,
|
|
49
|
+
default: HousingRentalAccommodationApprovalStatus.PENDING,
|
|
50
|
+
nullable: false,
|
|
51
|
+
})
|
|
52
|
+
approval_status: HousingRentalAccommodationApprovalStatus;
|
|
53
|
+
|
|
54
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
55
|
+
is_allowed: boolean;
|
|
56
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'housing_rental_accommodation_attachments' })
|
|
5
|
+
export class HousingRentalAccommodationRequestAttachment extends BaseModel {
|
|
6
|
+
@Column({ type: 'integer', nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'integer', nullable: true })
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'integer', nullable: true })
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
16
|
+
file_url: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
19
|
+
file_name: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
22
|
+
file_type: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'bigint', nullable: true })
|
|
25
|
+
file_size: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'integer', nullable: true })
|
|
28
|
+
chat_id: number | null;
|
|
29
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum HousingRentalAccommodationMessageType {
|
|
5
|
+
TEXT = 'text',
|
|
6
|
+
IMAGE = 'image',
|
|
7
|
+
VIDEO = 'video',
|
|
8
|
+
FILE = 'file',
|
|
9
|
+
LINK = 'link',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'housing_rental_accommodation_chats' })
|
|
13
|
+
export class HousingRentalAccommodationRequestChat extends BaseModel {
|
|
14
|
+
@Column({ type: 'integer', nullable: false })
|
|
15
|
+
request_id: number;
|
|
16
|
+
|
|
17
|
+
@Column({ type: 'integer', nullable: true })
|
|
18
|
+
service_id: number | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'integer', nullable: true })
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'integer', nullable: false })
|
|
24
|
+
user_id: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'integer', nullable: true })
|
|
27
|
+
role_id: number;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'text', nullable: false })
|
|
30
|
+
message: string;
|
|
31
|
+
|
|
32
|
+
@Column({
|
|
33
|
+
type: 'enum',
|
|
34
|
+
enum: HousingRentalAccommodationMessageType,
|
|
35
|
+
default: HousingRentalAccommodationMessageType.TEXT,
|
|
36
|
+
nullable: false,
|
|
37
|
+
})
|
|
38
|
+
messageType: HousingRentalAccommodationMessageType;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'text', nullable: true })
|
|
41
|
+
status: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum HousingRentalAccommodationRequestStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
ASSIGNED = 'Assigned',
|
|
7
|
+
IN_PROGRESS = 'In Progress',
|
|
8
|
+
APPROVED = 'Approved',
|
|
9
|
+
REJECTED = 'Rejected',
|
|
10
|
+
CANCELLED = 'Cancelled',
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Entity({ name: 'housing_rental_accommodation_requests' })
|
|
14
|
+
export class HousingRentalAccommodationRequests extends BaseModel {
|
|
15
|
+
@Column({ type: 'int', nullable: true })
|
|
16
|
+
req_user_department_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: true })
|
|
19
|
+
req_user_section_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', nullable: true })
|
|
22
|
+
service_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'int', nullable: true })
|
|
25
|
+
sub_service_id: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'int', nullable: false })
|
|
28
|
+
user_id: number;
|
|
29
|
+
|
|
30
|
+
@Column({
|
|
31
|
+
type: 'enum',
|
|
32
|
+
enum: HousingRentalAccommodationRequestStatus,
|
|
33
|
+
default: HousingRentalAccommodationRequestStatus.PENDING,
|
|
34
|
+
nullable: false,
|
|
35
|
+
})
|
|
36
|
+
status: HousingRentalAccommodationRequestStatus;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'varchar', nullable: true })
|
|
39
|
+
workflow_execution_id: string | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
42
|
+
mission_location: string | null;
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'decimal', precision: 15, scale: 2, nullable: true })
|
|
45
|
+
cost: string | null;
|
|
46
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum HousingRentalAccommodationWorkFlowStatus {
|
|
5
|
+
COMPLETED = 'Completed',
|
|
6
|
+
NOT_YET_STARTED = 'Not Yet Started',
|
|
7
|
+
PENDING = 'Pending',
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'housing_rental_accommodation_workflows' })
|
|
11
|
+
export class HousingRentalAccommodationWorkFlow 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({
|
|
25
|
+
type: 'enum',
|
|
26
|
+
enum: HousingRentalAccommodationWorkFlowStatus,
|
|
27
|
+
default: HousingRentalAccommodationWorkFlowStatus.NOT_YET_STARTED,
|
|
28
|
+
nullable: false,
|
|
29
|
+
})
|
|
30
|
+
status: HousingRentalAccommodationWorkFlowStatus;
|
|
31
|
+
|
|
32
|
+
@Column({ type: 'integer', nullable: true })
|
|
33
|
+
user_id: number | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: 'integer', nullable: true })
|
|
36
|
+
role_id: number | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'integer', nullable: true })
|
|
39
|
+
department_id: number | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'integer', nullable: true })
|
|
42
|
+
section_id: number | null;
|
|
43
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum HousingRentalVehicleApprovalStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'housing_rental_vehicle_approvals' })
|
|
12
|
+
export class HousingRentalVehicleApprovalDetails 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({
|
|
47
|
+
type: 'enum',
|
|
48
|
+
enum: HousingRentalVehicleApprovalStatus,
|
|
49
|
+
default: HousingRentalVehicleApprovalStatus.PENDING,
|
|
50
|
+
nullable: false,
|
|
51
|
+
})
|
|
52
|
+
approval_status: HousingRentalVehicleApprovalStatus;
|
|
53
|
+
|
|
54
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
55
|
+
is_allowed: boolean;
|
|
56
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'housing_rental_vehicle_attachments' })
|
|
5
|
+
export class HousingRentalVehicleRequestAttachment extends BaseModel {
|
|
6
|
+
@Column({ type: 'integer', nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'integer', nullable: true })
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'integer', nullable: true })
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
16
|
+
file_url: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
19
|
+
file_name: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
22
|
+
file_type: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'bigint', nullable: true })
|
|
25
|
+
file_size: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'integer', nullable: true })
|
|
28
|
+
chat_id: number | null;
|
|
29
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum HousingRentalVehicleMessageType {
|
|
5
|
+
TEXT = 'text',
|
|
6
|
+
IMAGE = 'image',
|
|
7
|
+
VIDEO = 'video',
|
|
8
|
+
FILE = 'file',
|
|
9
|
+
LINK = 'link',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'housing_rental_vehicle_chats' })
|
|
13
|
+
export class HousingRentalVehicleRequestChat extends BaseModel {
|
|
14
|
+
@Column({ type: 'integer', nullable: false })
|
|
15
|
+
request_id: number;
|
|
16
|
+
|
|
17
|
+
@Column({ type: 'integer', nullable: true })
|
|
18
|
+
service_id: number | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'integer', nullable: true })
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'integer', nullable: false })
|
|
24
|
+
user_id: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'integer', nullable: true })
|
|
27
|
+
role_id: number;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'text', nullable: false })
|
|
30
|
+
message: string;
|
|
31
|
+
|
|
32
|
+
@Column({
|
|
33
|
+
type: 'enum',
|
|
34
|
+
enum: HousingRentalVehicleMessageType,
|
|
35
|
+
default: HousingRentalVehicleMessageType.TEXT,
|
|
36
|
+
nullable: false,
|
|
37
|
+
})
|
|
38
|
+
messageType: HousingRentalVehicleMessageType;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'text', nullable: true })
|
|
41
|
+
status: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum HousingRentalVehicleRequestStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
ASSIGNED = 'Assigned',
|
|
7
|
+
IN_PROGRESS = 'In Progress',
|
|
8
|
+
APPROVED = 'Approved',
|
|
9
|
+
REJECTED = 'Rejected',
|
|
10
|
+
CANCELLED = 'Cancelled',
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Entity({ name: 'housing_rental_vehicle_requests' })
|
|
14
|
+
export class HousingRentalVehicleRequests extends BaseModel {
|
|
15
|
+
@Column({ type: 'int', nullable: true })
|
|
16
|
+
req_user_department_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: true })
|
|
19
|
+
req_user_section_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', nullable: true })
|
|
22
|
+
service_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'int', nullable: true })
|
|
25
|
+
sub_service_id: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'int', nullable: false })
|
|
28
|
+
user_id: number;
|
|
29
|
+
|
|
30
|
+
@Column({
|
|
31
|
+
type: 'enum',
|
|
32
|
+
enum: HousingRentalVehicleRequestStatus,
|
|
33
|
+
default: HousingRentalVehicleRequestStatus.PENDING,
|
|
34
|
+
nullable: false,
|
|
35
|
+
})
|
|
36
|
+
status: HousingRentalVehicleRequestStatus;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'varchar', nullable: true })
|
|
39
|
+
workflow_execution_id: string | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'varchar', length: 200, nullable: true })
|
|
42
|
+
vehicle_type: string | null;
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'varchar', length: 300, nullable: true })
|
|
45
|
+
category: string | null;
|
|
46
|
+
|
|
47
|
+
@Column({ type: 'text', nullable: true })
|
|
48
|
+
reason: string | null;
|
|
49
|
+
|
|
50
|
+
@Column({ type: 'text', nullable: true })
|
|
51
|
+
remark: string | null;
|
|
52
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum HousingRentalVehicleWorkFlowStatus {
|
|
5
|
+
COMPLETED = 'Completed',
|
|
6
|
+
NOT_YET_STARTED = 'Not Yet Started',
|
|
7
|
+
PENDING = 'Pending',
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'housing_rental_vehicle_workflows' })
|
|
11
|
+
export class HousingRentalVehicleWorkFlow 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({
|
|
25
|
+
type: 'enum',
|
|
26
|
+
enum: HousingRentalVehicleWorkFlowStatus,
|
|
27
|
+
default: HousingRentalVehicleWorkFlowStatus.NOT_YET_STARTED,
|
|
28
|
+
nullable: false,
|
|
29
|
+
})
|
|
30
|
+
status: HousingRentalVehicleWorkFlowStatus;
|
|
31
|
+
|
|
32
|
+
@Column({ type: 'integer', nullable: true })
|
|
33
|
+
user_id: number | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: 'integer', nullable: true })
|
|
36
|
+
role_id: number | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'integer', nullable: true })
|
|
39
|
+
department_id: number | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'integer', nullable: true })
|
|
42
|
+
section_id: number | null;
|
|
43
|
+
}
|