@platform-modules/foreign-ministry 1.3.243 → 1.3.246
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/.env +5 -12
- 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/MissionTravelClassConfigModel.d.ts +10 -0
- package/dist/models/MissionTravelClassConfigModel.js +50 -0
- package/dist/models/MissionTravelPerdiemModel.d.ts +10 -0
- package/dist/models/MissionTravelPerdiemModel.js +54 -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/dist/models/ProjectContactsModel.d.ts +3 -1
- package/dist/models/ProjectContactsModel.js +7 -2
- package/package.json +24 -24
- package/src/data-source.ts +550 -510
- package/src/index.ts +402 -382
- package/src/models/DiplomaticAcademyRequestModel.ts +80 -80
- 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/LMSExternalEntityTrainedPersonModel.ts +45 -45
- package/src/models/LanguageCourseRequestModel.ts +67 -67
- package/src/models/LeaveConfigModel.ts +71 -71
- 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/MissionTravelApprovalModel.ts +101 -101
- package/src/models/MissionTravelAttachmentModel.ts +56 -56
- package/src/models/MissionTravelChatModel.ts +52 -52
- package/src/models/MissionTravelPersonModel.ts +105 -105
- package/src/models/MissionTravelWorkflowModel.ts +54 -54
- 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/ProjectContactsModel.ts +7 -1
- package/src/models/ProjectFaqModel.ts +36 -36
- package/src/models/ProjectInvoicesModel.ts +41 -41
- package/src/models/ProjectModel.ts +75 -75
- package/src/models/SectionModel.ts +35 -35
- package/src/models/ServicesNotificationConfigsModel.ts +55 -55
|
@@ -0,0 +1,65 @@
|
|
|
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.NationalDayCelebrationsRequestChat = exports.NationalDayCelebrationsMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var NationalDayCelebrationsMessageType;
|
|
16
|
+
(function (NationalDayCelebrationsMessageType) {
|
|
17
|
+
NationalDayCelebrationsMessageType["TEXT"] = "text";
|
|
18
|
+
NationalDayCelebrationsMessageType["IMAGE"] = "image";
|
|
19
|
+
NationalDayCelebrationsMessageType["VIDEO"] = "video";
|
|
20
|
+
NationalDayCelebrationsMessageType["FILE"] = "file";
|
|
21
|
+
NationalDayCelebrationsMessageType["LINK"] = "link";
|
|
22
|
+
})(NationalDayCelebrationsMessageType || (exports.NationalDayCelebrationsMessageType = NationalDayCelebrationsMessageType = {}));
|
|
23
|
+
let NationalDayCelebrationsRequestChat = class NationalDayCelebrationsRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.NationalDayCelebrationsRequestChat = NationalDayCelebrationsRequestChat;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], NationalDayCelebrationsRequestChat.prototype, "request_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], NationalDayCelebrationsRequestChat.prototype, "service_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], NationalDayCelebrationsRequestChat.prototype, "sub_service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], NationalDayCelebrationsRequestChat.prototype, "user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], NationalDayCelebrationsRequestChat.prototype, "role_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], NationalDayCelebrationsRequestChat.prototype, "message", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({
|
|
52
|
+
type: 'enum',
|
|
53
|
+
enum: NationalDayCelebrationsMessageType,
|
|
54
|
+
default: NationalDayCelebrationsMessageType.TEXT,
|
|
55
|
+
nullable: false,
|
|
56
|
+
}),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], NationalDayCelebrationsRequestChat.prototype, "messageType", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], NationalDayCelebrationsRequestChat.prototype, "status", void 0);
|
|
63
|
+
exports.NationalDayCelebrationsRequestChat = NationalDayCelebrationsRequestChat = __decorate([
|
|
64
|
+
(0, typeorm_1.Entity)({ name: 'national_day_celebrations_chats' })
|
|
65
|
+
], NationalDayCelebrationsRequestChat);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum NationalDayCelebrationsRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
APPROVED = "Approved",
|
|
7
|
+
REJECTED = "Rejected",
|
|
8
|
+
CANCELLED = "Cancelled"
|
|
9
|
+
}
|
|
10
|
+
export declare class NationalDayCelebrationsRequests 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
|
+
status: NationalDayCelebrationsRequestStatus;
|
|
17
|
+
workflow_execution_id: string | null;
|
|
18
|
+
amount: string | null;
|
|
19
|
+
reason: string | null;
|
|
20
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.NationalDayCelebrationsRequests = exports.NationalDayCelebrationsRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var NationalDayCelebrationsRequestStatus;
|
|
16
|
+
(function (NationalDayCelebrationsRequestStatus) {
|
|
17
|
+
NationalDayCelebrationsRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
NationalDayCelebrationsRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
NationalDayCelebrationsRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
NationalDayCelebrationsRequestStatus["APPROVED"] = "Approved";
|
|
21
|
+
NationalDayCelebrationsRequestStatus["REJECTED"] = "Rejected";
|
|
22
|
+
NationalDayCelebrationsRequestStatus["CANCELLED"] = "Cancelled";
|
|
23
|
+
})(NationalDayCelebrationsRequestStatus || (exports.NationalDayCelebrationsRequestStatus = NationalDayCelebrationsRequestStatus = {}));
|
|
24
|
+
let NationalDayCelebrationsRequests = class NationalDayCelebrationsRequests extends BaseModel_1.BaseModel {
|
|
25
|
+
};
|
|
26
|
+
exports.NationalDayCelebrationsRequests = NationalDayCelebrationsRequests;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], NationalDayCelebrationsRequests.prototype, "req_user_department_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], NationalDayCelebrationsRequests.prototype, "req_user_section_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], NationalDayCelebrationsRequests.prototype, "service_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], NationalDayCelebrationsRequests.prototype, "sub_service_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], NationalDayCelebrationsRequests.prototype, "user_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({
|
|
49
|
+
type: 'enum',
|
|
50
|
+
enum: NationalDayCelebrationsRequestStatus,
|
|
51
|
+
default: NationalDayCelebrationsRequestStatus.PENDING,
|
|
52
|
+
nullable: false,
|
|
53
|
+
}),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], NationalDayCelebrationsRequests.prototype, "status", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], NationalDayCelebrationsRequests.prototype, "workflow_execution_id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 15, scale: 2, nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], NationalDayCelebrationsRequests.prototype, "amount", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], NationalDayCelebrationsRequests.prototype, "reason", void 0);
|
|
68
|
+
exports.NationalDayCelebrationsRequests = NationalDayCelebrationsRequests = __decorate([
|
|
69
|
+
(0, typeorm_1.Entity)({ name: 'national_day_celebrations_requests' })
|
|
70
|
+
], NationalDayCelebrationsRequests);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum NationalDayCelebrationsWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class NationalDayCelebrationsWorkFlow extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: NationalDayCelebrationsWorkFlowStatus;
|
|
13
|
+
user_id: number | null;
|
|
14
|
+
role_id: number | null;
|
|
15
|
+
department_id: number | null;
|
|
16
|
+
section_id: number | null;
|
|
17
|
+
}
|
|
@@ -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);
|
|
@@ -6,5 +6,7 @@ export declare class ProjectContacts extends BaseModel {
|
|
|
6
6
|
email_id: string;
|
|
7
7
|
name: string;
|
|
8
8
|
designation: string;
|
|
9
|
-
|
|
9
|
+
/** Optional FK to departments.id */
|
|
10
|
+
department_id: number | null;
|
|
11
|
+
constructor(project_id?: number, contact_type?: string, phone_number?: string, email_id?: string, name?: string, designation?: string, department_id?: number | null);
|
|
10
12
|
}
|
|
@@ -13,7 +13,7 @@ exports.ProjectContacts = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
let ProjectContacts = class ProjectContacts extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(project_id, contact_type, phone_number, email_id, name, designation) {
|
|
16
|
+
constructor(project_id, contact_type, phone_number, email_id, name, designation, department_id) {
|
|
17
17
|
super();
|
|
18
18
|
this.project_id = project_id ?? 0;
|
|
19
19
|
this.contact_type = contact_type ?? '';
|
|
@@ -21,6 +21,7 @@ let ProjectContacts = class ProjectContacts extends BaseModel_1.BaseModel {
|
|
|
21
21
|
this.email_id = email_id ?? '';
|
|
22
22
|
this.name = name ?? '';
|
|
23
23
|
this.designation = designation ?? '';
|
|
24
|
+
this.department_id = department_id ?? null;
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
exports.ProjectContacts = ProjectContacts;
|
|
@@ -48,7 +49,11 @@ __decorate([
|
|
|
48
49
|
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
49
50
|
__metadata("design:type", String)
|
|
50
51
|
], ProjectContacts.prototype, "designation", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], ProjectContacts.prototype, "department_id", void 0);
|
|
51
56
|
exports.ProjectContacts = ProjectContacts = __decorate([
|
|
52
57
|
(0, typeorm_1.Entity)({ name: 'project_contacts' }),
|
|
53
|
-
__metadata("design:paramtypes", [Number, String, String, String, String, String])
|
|
58
|
+
__metadata("design:paramtypes", [Number, String, String, String, String, String, Object])
|
|
54
59
|
], ProjectContacts);
|
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.246",
|
|
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
|
+
}
|