@platform-modules/foreign-ministry 1.1.109 → 1.1.111
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 +41 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.js +0 -9
- package/dist/models/FinancialApprovalsModel.d.ts +1 -0
- package/dist/models/FinancialApprovalsModel.js +4 -0
- package/dist/models/StationeryRequestsModel.d.ts +1 -0
- package/dist/models/StationeryRequestsModel.js +4 -0
- package/package.json +1 -1
- package/src/data-source.ts +43 -1
- package/src/index.ts +0 -9
- package/src/models/FinancialApprovalsModel.ts +4 -0
- package/src/models/StationeryRequestsModel.ts +3 -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 -26
- package/dist/models/DiplomaticClubCardMembersModel.js +0 -85
- 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 -12
- package/dist/models/DiplomaticClubSubscriptionMasterModel.js +0 -64
- package/dist/models/DiplomaticRequestsModel.d.ts +0 -54
- package/dist/models/DiplomaticRequestsModel.js +0 -186
- 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/DiplomaticWorkFlowModel.d.ts +0 -20
- package/dist/models/DiplomaticWorkFlowModel.js +0 -77
- 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 -71
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +0 -50
- package/src/models/DiplomaticRequestsModel.ts +0 -154
- package/src/models/DiplomaticWorkFlowModel.ts +0 -59
package/dist/data-source.js
CHANGED
|
@@ -122,6 +122,26 @@ const GroupModel_1 = require("./models/GroupModel");
|
|
|
122
122
|
const WorkScheduleModel_1 = require("./models/WorkScheduleModel");
|
|
123
123
|
const JobsModel_1 = require("./models/JobsModel");
|
|
124
124
|
const TelephoneDirectoryModel_1 = require("./models/TelephoneDirectoryModel");
|
|
125
|
+
const M_CMasterModel_1 = require("./models/M&CMasterModel");
|
|
126
|
+
const LeaveBalanceModel_1 = require("./models/LeaveBalanceModel");
|
|
127
|
+
const LeaveConfigModel_1 = require("./models/LeaveConfigModel");
|
|
128
|
+
const LeaveConfigGradesModel_1 = require("./models/LeaveConfigGradesModel");
|
|
129
|
+
const LeaveTransactionModel_1 = require("./models/LeaveTransactionModel");
|
|
130
|
+
const EarlyCheckoutBalanceModel_1 = require("./models/EarlyCheckoutBalanceModel");
|
|
131
|
+
const EarlyCheckoutConfigModel_1 = require("./models/EarlyCheckoutConfigModel");
|
|
132
|
+
const EarlyCheckoutTransactionModel_1 = require("./models/EarlyCheckoutTransactionModel");
|
|
133
|
+
const StayAfterHoursBalanceModel_1 = require("./models/StayAfterHoursBalanceModel");
|
|
134
|
+
const StayAfterHoursTransactionModel_1 = require("./models/StayAfterHoursTransactionModel");
|
|
135
|
+
const StationeryRequestsModel_1 = require("./models/StationeryRequestsModel");
|
|
136
|
+
const StationeryMaterialMasterModel_1 = require("./models/StationeryMaterialMasterModel");
|
|
137
|
+
const ProfileUpdateRequestsModel_1 = require("./models/ProfileUpdateRequestsModel");
|
|
138
|
+
const UserPersonalDetailsModel_1 = require("./models/UserPersonalDetailsModel");
|
|
139
|
+
const UserEmploymentDetailsModel_1 = require("./models/UserEmploymentDetailsModel");
|
|
140
|
+
const UserEducationDetailsModel_1 = require("./models/UserEducationDetailsModel");
|
|
141
|
+
const DiplomaticTitlesMasterModel_1 = require("./models/DiplomaticTitlesMasterModel");
|
|
142
|
+
const CountryMasterModel_1 = require("./models/CountryMasterModel");
|
|
143
|
+
const NationalityMasterModel_1 = require("./models/NationalityMasterModel");
|
|
144
|
+
const OfficeMasterModel_1 = require("./models/OfficeMasterModel");
|
|
125
145
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
126
146
|
type: 'postgres',
|
|
127
147
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -248,6 +268,26 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
248
268
|
GroupModel_1.Group,
|
|
249
269
|
WorkScheduleModel_1.WorkSchedule,
|
|
250
270
|
JobsModel_1.Jobs,
|
|
251
|
-
TelephoneDirectoryModel_1.TelephoneDirectory
|
|
271
|
+
TelephoneDirectoryModel_1.TelephoneDirectory,
|
|
272
|
+
M_CMasterModel_1.MandCMaster,
|
|
273
|
+
LeaveBalanceModel_1.LeaveBalance,
|
|
274
|
+
LeaveConfigModel_1.LeaveConfiguration,
|
|
275
|
+
LeaveConfigGradesModel_1.LeaveConfigurationGrades,
|
|
276
|
+
LeaveTransactionModel_1.LeaveTransaction,
|
|
277
|
+
EarlyCheckoutBalanceModel_1.EarlyCheckoutBalance,
|
|
278
|
+
EarlyCheckoutConfigModel_1.EarlyCheckoutConfiguration,
|
|
279
|
+
EarlyCheckoutTransactionModel_1.EarlyCheckoutTransaction,
|
|
280
|
+
StayAfterHoursBalanceModel_1.StayAfterHoursBalance,
|
|
281
|
+
StayAfterHoursTransactionModel_1.StayAfterHoursTransaction,
|
|
282
|
+
StationeryRequestsModel_1.StationeryRequests,
|
|
283
|
+
StationeryMaterialMasterModel_1.StationeryMaterialMaster,
|
|
284
|
+
ProfileUpdateRequestsModel_1.ProfileUpdateRequests,
|
|
285
|
+
UserPersonalDetailsModel_1.UserPersonalDetails,
|
|
286
|
+
UserEmploymentDetailsModel_1.UserEmploymentDetails,
|
|
287
|
+
UserEducationDetailsModel_1.UserEducationDetails,
|
|
288
|
+
DiplomaticTitlesMasterModel_1.DiplomaticTitlesMaster,
|
|
289
|
+
CountryMasterModel_1.CountryMaster,
|
|
290
|
+
NationalityMasterModel_1.NationalityMaster,
|
|
291
|
+
OfficeMasterModel_1.OfficeMaster
|
|
252
292
|
],
|
|
253
293
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -121,15 +121,6 @@ export * from './models/GroupNamesModel';
|
|
|
121
121
|
export * from './models/GroupModel';
|
|
122
122
|
export * from './models/WorkScheduleModel';
|
|
123
123
|
export * from './models/JobsModel';
|
|
124
|
-
export * from './models/TelephoneDirectoryModel';
|
|
125
|
-
export * from './models/DiplomaticRequestsModel';
|
|
126
|
-
export * from './models/DiplomaticApprovalsModel';
|
|
127
|
-
export * from './models/DiplomaticWorkFlowModel';
|
|
128
|
-
export * from './models/DiplomaticAttachmentsModel';
|
|
129
|
-
export * from './models/DiplomaticChatsModel';
|
|
130
|
-
export * from './models/DiplomaticClubCardMembersModel';
|
|
131
|
-
export * from './models/DiplomaticTitlesMasterModel';
|
|
132
|
-
export * from './models/DiplomaticClubSubscriptionMasterModel';
|
|
133
124
|
export * from './models/M&CMasterModel';
|
|
134
125
|
export * from './models/LeaveBalanceModel';
|
|
135
126
|
export * from './models/LeaveConfigModel';
|
package/dist/index.js
CHANGED
|
@@ -138,15 +138,6 @@ __exportStar(require("./models/GroupNamesModel"), exports);
|
|
|
138
138
|
__exportStar(require("./models/GroupModel"), exports);
|
|
139
139
|
__exportStar(require("./models/WorkScheduleModel"), exports);
|
|
140
140
|
__exportStar(require("./models/JobsModel"), exports);
|
|
141
|
-
__exportStar(require("./models/TelephoneDirectoryModel"), exports);
|
|
142
|
-
__exportStar(require("./models/DiplomaticRequestsModel"), exports);
|
|
143
|
-
__exportStar(require("./models/DiplomaticApprovalsModel"), exports);
|
|
144
|
-
__exportStar(require("./models/DiplomaticWorkFlowModel"), exports);
|
|
145
|
-
__exportStar(require("./models/DiplomaticAttachmentsModel"), exports);
|
|
146
|
-
__exportStar(require("./models/DiplomaticChatsModel"), exports);
|
|
147
|
-
__exportStar(require("./models/DiplomaticClubCardMembersModel"), exports);
|
|
148
|
-
__exportStar(require("./models/DiplomaticTitlesMasterModel"), exports);
|
|
149
|
-
__exportStar(require("./models/DiplomaticClubSubscriptionMasterModel"), exports);
|
|
150
141
|
__exportStar(require("./models/M&CMasterModel"), exports);
|
|
151
142
|
__exportStar(require("./models/LeaveBalanceModel"), exports);
|
|
152
143
|
__exportStar(require("./models/LeaveConfigModel"), exports);
|
|
@@ -20,6 +20,7 @@ export declare class FinancialApprovals extends BaseModel {
|
|
|
20
20
|
approved_by: number | null;
|
|
21
21
|
delegate_user_id: number | null;
|
|
22
22
|
is_allowed: boolean | null;
|
|
23
|
+
action_type: string | null;
|
|
23
24
|
financialRequest?: FinancialRequests;
|
|
24
25
|
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);
|
|
25
26
|
}
|
|
@@ -83,6 +83,10 @@ __decorate([
|
|
|
83
83
|
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: true }),
|
|
84
84
|
__metadata("design:type", Object)
|
|
85
85
|
], FinancialApprovals.prototype, "is_allowed", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true, default: 'approve' }),
|
|
88
|
+
__metadata("design:type", Object)
|
|
89
|
+
], FinancialApprovals.prototype, "action_type", void 0);
|
|
86
90
|
__decorate([
|
|
87
91
|
(0, typeorm_1.ManyToOne)(() => FinancialRequestsModel_1.FinancialRequests, fr => fr.approvals),
|
|
88
92
|
(0, typeorm_1.JoinColumn)({ name: 'financial_request_id' }),
|
|
@@ -16,6 +16,7 @@ export declare class StationeryRequests extends BaseModel {
|
|
|
16
16
|
date_of_request_preparation: Date;
|
|
17
17
|
office_id: number;
|
|
18
18
|
material_id: number;
|
|
19
|
+
material_name: string;
|
|
19
20
|
quantity_required: number;
|
|
20
21
|
comments: string | null;
|
|
21
22
|
status: StationeryRequestStatus;
|
|
@@ -56,6 +56,10 @@ __decorate([
|
|
|
56
56
|
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
57
57
|
__metadata("design:type", Number)
|
|
58
58
|
], StationeryRequests.prototype, "material_id", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], StationeryRequests.prototype, "material_name", void 0);
|
|
59
63
|
__decorate([
|
|
60
64
|
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
61
65
|
__metadata("design:type", Number)
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -127,6 +127,28 @@ import { Group } from './models/GroupModel';
|
|
|
127
127
|
import { WorkSchedule } from './models/WorkScheduleModel';
|
|
128
128
|
import { Jobs } from './models/JobsModel';
|
|
129
129
|
import { TelephoneDirectory } from './models/TelephoneDirectoryModel'
|
|
130
|
+
import { MandCMaster } from './models/M&CMasterModel'
|
|
131
|
+
import { LeaveBalance } from './models/LeaveBalanceModel'
|
|
132
|
+
import { LeaveConfiguration } from './models/LeaveConfigModel'
|
|
133
|
+
import { LeaveConfigurationGrades } from './models/LeaveConfigGradesModel'
|
|
134
|
+
import { LeaveTransaction } from './models/LeaveTransactionModel'
|
|
135
|
+
import { EarlyCheckoutBalance } from './models/EarlyCheckoutBalanceModel'
|
|
136
|
+
import { EarlyCheckoutConfiguration } from './models/EarlyCheckoutConfigModel'
|
|
137
|
+
import { EarlyCheckoutTransaction } from './models/EarlyCheckoutTransactionModel'
|
|
138
|
+
import { StayAfterHoursBalance } from './models/StayAfterHoursBalanceModel'
|
|
139
|
+
import { StayAfterHoursTransaction } from './models/StayAfterHoursTransactionModel'
|
|
140
|
+
import {StationeryRequests} from './models/StationeryRequestsModel'
|
|
141
|
+
import {StationeryMaterialMaster} from './models/StationeryMaterialMasterModel'
|
|
142
|
+
import { ProfileUpdateRequests } from './models/ProfileUpdateRequestsModel'
|
|
143
|
+
import { UserPersonalDetails } from './models/UserPersonalDetailsModel'
|
|
144
|
+
import { UserEmploymentDetails } from './models/UserEmploymentDetailsModel'
|
|
145
|
+
import { UserEducationDetails } from './models/UserEducationDetailsModel'
|
|
146
|
+
import { DiplomaticTitlesMaster } from './models/DiplomaticTitlesMasterModel'
|
|
147
|
+
import { CountryMaster } from './models/CountryMasterModel'
|
|
148
|
+
import { NationalityMaster } from './models/NationalityMasterModel'
|
|
149
|
+
import { OfficeMaster } from './models/OfficeMasterModel'
|
|
150
|
+
|
|
151
|
+
|
|
130
152
|
export const AppDataSource = new DataSource({
|
|
131
153
|
type: 'postgres',
|
|
132
154
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -253,6 +275,26 @@ export const AppDataSource = new DataSource({
|
|
|
253
275
|
Group,
|
|
254
276
|
WorkSchedule,
|
|
255
277
|
Jobs,
|
|
256
|
-
TelephoneDirectory
|
|
278
|
+
TelephoneDirectory,
|
|
279
|
+
MandCMaster,
|
|
280
|
+
LeaveBalance,
|
|
281
|
+
LeaveConfiguration,
|
|
282
|
+
LeaveConfigurationGrades,
|
|
283
|
+
LeaveTransaction,
|
|
284
|
+
EarlyCheckoutBalance,
|
|
285
|
+
EarlyCheckoutConfiguration,
|
|
286
|
+
EarlyCheckoutTransaction,
|
|
287
|
+
StayAfterHoursBalance,
|
|
288
|
+
StayAfterHoursTransaction,
|
|
289
|
+
StationeryRequests,
|
|
290
|
+
StationeryMaterialMaster,
|
|
291
|
+
ProfileUpdateRequests,
|
|
292
|
+
UserPersonalDetails,
|
|
293
|
+
UserEmploymentDetails,
|
|
294
|
+
UserEducationDetails,
|
|
295
|
+
DiplomaticTitlesMaster,
|
|
296
|
+
CountryMaster,
|
|
297
|
+
NationalityMaster,
|
|
298
|
+
OfficeMaster
|
|
257
299
|
],
|
|
258
300
|
});
|
package/src/index.ts
CHANGED
|
@@ -121,15 +121,6 @@ export * from './models/GroupNamesModel';
|
|
|
121
121
|
export * from './models/GroupModel';
|
|
122
122
|
export * from './models/WorkScheduleModel';
|
|
123
123
|
export * from './models/JobsModel';
|
|
124
|
-
export * from './models/TelephoneDirectoryModel';
|
|
125
|
-
export * from './models/DiplomaticRequestsModel';
|
|
126
|
-
export * from './models/DiplomaticApprovalsModel';
|
|
127
|
-
export * from './models/DiplomaticWorkFlowModel';
|
|
128
|
-
export * from './models/DiplomaticAttachmentsModel';
|
|
129
|
-
export * from './models/DiplomaticChatsModel';
|
|
130
|
-
export * from './models/DiplomaticClubCardMembersModel';
|
|
131
|
-
export * from './models/DiplomaticTitlesMasterModel';
|
|
132
|
-
export * from './models/DiplomaticClubSubscriptionMasterModel';
|
|
133
124
|
export * from './models/M&CMasterModel';
|
|
134
125
|
export * from './models/LeaveBalanceModel';
|
|
135
126
|
export * from './models/LeaveConfigModel';
|
|
@@ -49,6 +49,10 @@ export class FinancialApprovals extends BaseModel {
|
|
|
49
49
|
@Column({ type: 'boolean', default: true, nullable: true })
|
|
50
50
|
is_allowed: boolean | null;
|
|
51
51
|
|
|
52
|
+
// action_type: Indicates the type of action required (e.g., 'approve', 'hr_preview')
|
|
53
|
+
@Column({ type: 'varchar', length: 50, nullable: true, default: 'approve' })
|
|
54
|
+
action_type: string | null;
|
|
55
|
+
|
|
52
56
|
@ManyToOne(() => FinancialRequests, fr => fr.approvals)
|
|
53
57
|
@JoinColumn({ name: 'financial_request_id' })
|
|
54
58
|
financialRequest?: FinancialRequests;
|
|
@@ -37,6 +37,9 @@ export class StationeryRequests extends BaseModel {
|
|
|
37
37
|
@Column({ type: 'int', nullable: false })
|
|
38
38
|
material_id: number; // Reference to stationery_material_master table
|
|
39
39
|
|
|
40
|
+
@Column({ type: 'int', nullable: false })
|
|
41
|
+
material_name: string; // Reference to stationery_material_type_master table
|
|
42
|
+
|
|
40
43
|
@Column({ type: 'int', nullable: false })
|
|
41
44
|
quantity_required: number;
|
|
42
45
|
|
|
@@ -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
|
-
}
|
|
@@ -1,70 +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.DiplomaticChats = exports.DiplomaticMessageType = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
const DiplomaticRequestsModel_1 = require("./DiplomaticRequestsModel");
|
|
16
|
-
var DiplomaticMessageType;
|
|
17
|
-
(function (DiplomaticMessageType) {
|
|
18
|
-
DiplomaticMessageType["TEXT"] = "text";
|
|
19
|
-
DiplomaticMessageType["IMAGE"] = "image";
|
|
20
|
-
DiplomaticMessageType["VIDEO"] = "video";
|
|
21
|
-
DiplomaticMessageType["FILE"] = "file";
|
|
22
|
-
DiplomaticMessageType["AUDIO"] = "audio";
|
|
23
|
-
})(DiplomaticMessageType || (exports.DiplomaticMessageType = DiplomaticMessageType = {}));
|
|
24
|
-
let DiplomaticChats = class DiplomaticChats extends BaseModel_1.BaseModel {
|
|
25
|
-
constructor(diplomatic_request_id, content, sender_user_id, sender_role_id) {
|
|
26
|
-
super();
|
|
27
|
-
this.diplomatic_request_id = diplomatic_request_id;
|
|
28
|
-
this.content = content;
|
|
29
|
-
this.sender_user_id = sender_user_id;
|
|
30
|
-
this.sender_role_id = sender_role_id;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
exports.DiplomaticChats = DiplomaticChats;
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
36
|
-
__metadata("design:type", Number)
|
|
37
|
-
], DiplomaticChats.prototype, "diplomatic_request_id", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'text' }),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], DiplomaticChats.prototype, "content", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
44
|
-
__metadata("design:type", Number)
|
|
45
|
-
], DiplomaticChats.prototype, "sender_user_id", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], DiplomaticChats.prototype, "role_id", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
52
|
-
__metadata("design:type", Object)
|
|
53
|
-
], DiplomaticChats.prototype, "status", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
56
|
-
__metadata("design:type", Object)
|
|
57
|
-
], DiplomaticChats.prototype, "message_type", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
60
|
-
__metadata("design:type", Object)
|
|
61
|
-
], DiplomaticChats.prototype, "sender_role_id", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, typeorm_1.ManyToOne)(() => DiplomaticRequestsModel_1.DiplomaticRequests, dr => dr.chats),
|
|
64
|
-
(0, typeorm_1.JoinColumn)({ name: 'diplomatic_request_id' }),
|
|
65
|
-
__metadata("design:type", DiplomaticRequestsModel_1.DiplomaticRequests)
|
|
66
|
-
], DiplomaticChats.prototype, "diplomaticRequest", void 0);
|
|
67
|
-
exports.DiplomaticChats = DiplomaticChats = __decorate([
|
|
68
|
-
(0, typeorm_1.Entity)({ name: 'diplomatic_chats' }),
|
|
69
|
-
__metadata("design:paramtypes", [Number, String, Number, Number])
|
|
70
|
-
], DiplomaticChats);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum DiplomaticClubCardApprovalStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
APPROVED = "Approved",
|
|
5
|
-
REJECTED = "Rejected"
|
|
6
|
-
}
|
|
7
|
-
export declare class DiplomaticClubCardApprovals extends BaseModel {
|
|
8
|
-
request_id: number;
|
|
9
|
-
approver_user_id: number;
|
|
10
|
-
approver_role_id: number | null;
|
|
11
|
-
step_order: number;
|
|
12
|
-
status: DiplomaticClubCardApprovalStatus;
|
|
13
|
-
comments: string | null;
|
|
14
|
-
approved_at: Date | null;
|
|
15
|
-
rejected_at: Date | null;
|
|
16
|
-
}
|
|
@@ -1,58 +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.DiplomaticClubCardApprovals = exports.DiplomaticClubCardApprovalStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var DiplomaticClubCardApprovalStatus;
|
|
16
|
-
(function (DiplomaticClubCardApprovalStatus) {
|
|
17
|
-
DiplomaticClubCardApprovalStatus["PENDING"] = "Pending";
|
|
18
|
-
DiplomaticClubCardApprovalStatus["APPROVED"] = "Approved";
|
|
19
|
-
DiplomaticClubCardApprovalStatus["REJECTED"] = "Rejected";
|
|
20
|
-
})(DiplomaticClubCardApprovalStatus || (exports.DiplomaticClubCardApprovalStatus = DiplomaticClubCardApprovalStatus = {}));
|
|
21
|
-
let DiplomaticClubCardApprovals = class DiplomaticClubCardApprovals extends BaseModel_1.BaseModel {
|
|
22
|
-
};
|
|
23
|
-
exports.DiplomaticClubCardApprovals = DiplomaticClubCardApprovals;
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
26
|
-
__metadata("design:type", Number)
|
|
27
|
-
], DiplomaticClubCardApprovals.prototype, "request_id", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
30
|
-
__metadata("design:type", Number)
|
|
31
|
-
], DiplomaticClubCardApprovals.prototype, "approver_user_id", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
34
|
-
__metadata("design:type", Object)
|
|
35
|
-
], DiplomaticClubCardApprovals.prototype, "approver_role_id", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false, default: 0 }),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], DiplomaticClubCardApprovals.prototype, "step_order", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: DiplomaticClubCardApprovalStatus, default: DiplomaticClubCardApprovalStatus.PENDING, nullable: false }),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], DiplomaticClubCardApprovals.prototype, "status", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
46
|
-
__metadata("design:type", Object)
|
|
47
|
-
], DiplomaticClubCardApprovals.prototype, "comments", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
50
|
-
__metadata("design:type", Object)
|
|
51
|
-
], DiplomaticClubCardApprovals.prototype, "approved_at", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
54
|
-
__metadata("design:type", Object)
|
|
55
|
-
], DiplomaticClubCardApprovals.prototype, "rejected_at", void 0);
|
|
56
|
-
exports.DiplomaticClubCardApprovals = DiplomaticClubCardApprovals = __decorate([
|
|
57
|
-
(0, typeorm_1.Entity)({ name: 'diplomatic_club_card_approvals' })
|
|
58
|
-
], DiplomaticClubCardApprovals);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class DiplomaticClubCardAttachments extends BaseModel {
|
|
3
|
-
request_id: number;
|
|
4
|
-
member_id: number | null;
|
|
5
|
-
file_name: string;
|
|
6
|
-
file_path: string;
|
|
7
|
-
file_type: string | null;
|
|
8
|
-
attachment_type: string | null;
|
|
9
|
-
}
|