@platform-modules/foreign-ministry 1.1.107 → 1.1.109
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 +3 -11
- package/dist/data-source.js +13 -41
- package/dist/index.d.ts +15 -0
- package/dist/index.js +15 -0
- package/dist/models/DependentsPassportDetailsModel.d.ts +17 -0
- package/dist/models/DependentsPassportDetailsModel.js +73 -0
- package/dist/models/DiplomaticApprovalsModel.d.ts +24 -0
- package/dist/models/DiplomaticApprovalsModel.js +94 -0
- package/dist/models/DiplomaticAttachmentsModel.d.ts +11 -0
- package/dist/models/DiplomaticAttachmentsModel.js +53 -0
- package/dist/models/DiplomaticChatsModel.d.ts +20 -0
- package/dist/models/DiplomaticChatsModel.js +70 -0
- package/dist/models/DiplomaticClubCardApprovalModel.d.ts +16 -0
- package/dist/models/DiplomaticClubCardApprovalModel.js +58 -0
- package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +9 -0
- package/dist/models/DiplomaticClubCardAttachmentModel.js +44 -0
- package/dist/models/DiplomaticClubCardChatModel.d.ts +7 -0
- package/dist/models/{HelpContentMappedCategoriesModel.js → DiplomaticClubCardChatModel.js} +18 -16
- package/dist/models/DiplomaticClubCardMemberModel.d.ts +13 -0
- package/dist/models/DiplomaticClubCardMemberModel.js +60 -0
- package/dist/models/DiplomaticClubCardMembersModel.d.ts +26 -0
- package/dist/models/DiplomaticClubCardMembersModel.js +85 -0
- package/dist/models/DiplomaticClubCardRequestModel.d.ts +33 -0
- package/dist/models/DiplomaticClubCardRequestModel.js +98 -0
- package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +12 -0
- package/dist/models/DiplomaticClubCardWorkFlowModel.js +42 -0
- package/dist/models/DiplomaticClubSubscriptionMasterModel.d.ts +12 -0
- package/dist/models/DiplomaticClubSubscriptionMasterModel.js +64 -0
- package/dist/models/DiplomaticRequestsModel.d.ts +54 -0
- package/dist/models/DiplomaticRequestsModel.js +186 -0
- package/dist/models/DiplomaticServiceDetailsModel.d.ts +20 -0
- package/dist/models/DiplomaticServiceDetailsModel.js +65 -0
- package/dist/models/DiplomaticSettingsModel.d.ts +11 -0
- package/dist/models/DiplomaticSettingsModel.js +59 -0
- package/dist/models/DiplomaticTitleModel.d.ts +12 -0
- package/dist/models/DiplomaticTitleModel.js +45 -0
- package/dist/models/DiplomaticWorkFlowModel.d.ts +20 -0
- package/dist/models/DiplomaticWorkFlowModel.js +77 -0
- package/dist/models/PassportRequestApprovalModel.d.ts +22 -0
- package/dist/models/PassportRequestApprovalModel.js +91 -0
- package/dist/models/PassportRequestAttachmentModel.d.ts +10 -0
- package/dist/models/PassportRequestAttachmentModel.js +54 -0
- package/dist/models/PassportRequestChatModel.d.ts +8 -0
- package/dist/models/PassportRequestChatModel.js +44 -0
- package/dist/models/PassportRequestDependentModel.d.ts +20 -0
- package/dist/models/PassportRequestDependentModel.js +85 -0
- package/dist/models/PassportRequestModel.d.ts +40 -0
- package/dist/models/PassportRequestModel.js +128 -0
- package/dist/models/PassportRequestWorkFlowModel.d.ts +15 -0
- package/dist/models/PassportRequestWorkFlowModel.js +60 -0
- package/dist/models/RequestPassportApprovalModel.d.ts +22 -0
- package/dist/models/RequestPassportApprovalModel.js +79 -0
- package/dist/models/RequestPassportAttachmentModel.d.ts +11 -0
- package/dist/models/RequestPassportAttachmentModel.js +52 -0
- package/dist/models/RequestPassportChatModel.d.ts +19 -0
- package/dist/models/RequestPassportChatModel.js +78 -0
- package/dist/models/RequestPassportRequestModel.d.ts +47 -0
- package/dist/models/RequestPassportRequestModel.js +151 -0
- package/dist/models/RequestPassportWorkflowModel.d.ts +17 -0
- package/dist/models/RequestPassportWorkflowModel.js +62 -0
- package/dist/models/SubscriptionAmountModel.d.ts +67 -0
- package/dist/models/SubscriptionAmountModel.js +114 -0
- package/package.json +1 -1
- package/src/data-source.ts +13 -43
- package/src/index.ts +15 -0
- package/src/models/DependentsPassportDetailsModel.ts +46 -0
- package/src/models/DiplomaticApprovalsModel.ts +77 -0
- package/src/models/DiplomaticAttachmentsModel.ts +37 -0
- package/src/models/DiplomaticChatsModel.ts +53 -0
- package/src/models/DiplomaticClubCardMembersModel.ts +71 -0
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +50 -0
- package/src/models/DiplomaticRequestsModel.ts +154 -0
- package/src/models/DiplomaticWorkFlowModel.ts +59 -0
- package/src/models/RequestPassportApprovalModel.ts +51 -0
- package/src/models/RequestPassportAttachmentModel.ts +30 -0
- package/src/models/RequestPassportChatModel.ts +65 -0
- package/src/models/RequestPassportRequestModel.ts +112 -0
- package/src/models/RequestPassportWorkflowModel.ts +38 -0
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +0 -6
- package/dist/models/HelpContentMappedTagsModel.d.ts +0 -6
- package/dist/models/HelpContentMappedTagsModel.js +0 -34
- package/dist/models/HelpContentTagsModel.d.ts +0 -5
- package/dist/models/HelpContentTagsModel.js +0 -29
- package/dist/models/questionTagsModel.d.ts +0 -6
- package/dist/models/questionTagsModel.js +0 -34
- /package/src/models/{LeaveConfigGradesModel.ts → LeaveConfigGradesModel.Ts} +0 -0
package/.env
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
# DB_PORT=5433
|
|
3
|
-
# DB_USER=postgres
|
|
4
|
-
# DB_PASS=123
|
|
5
|
-
# DB_NAME=FM
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
DB_HOST=164.52.222.169
|
|
1
|
+
DB_HOST=localhost
|
|
10
2
|
DB_PORT=5432
|
|
11
|
-
DB_USER=
|
|
12
|
-
DB_PASS=
|
|
3
|
+
DB_USER=postgres
|
|
4
|
+
DB_PASS=Fa@123
|
|
13
5
|
DB_NAME=FM
|
package/dist/data-source.js
CHANGED
|
@@ -111,31 +111,17 @@ const RequestParcelApprovalModel_1 = require("./models/RequestParcelApprovalMode
|
|
|
111
111
|
const RequestParcelAttachmentModel_1 = require("./models/RequestParcelAttachmentModel");
|
|
112
112
|
const RequestParcelChatModel_1 = require("./models/RequestParcelChatModel");
|
|
113
113
|
const RequestParcelWorkflowModel_1 = require("./models/RequestParcelWorkflowModel");
|
|
114
|
+
const RequestPassportRequestModel_1 = require("./models/RequestPassportRequestModel");
|
|
115
|
+
const RequestPassportApprovalModel_1 = require("./models/RequestPassportApprovalModel");
|
|
116
|
+
const RequestPassportAttachmentModel_1 = require("./models/RequestPassportAttachmentModel");
|
|
117
|
+
const RequestPassportChatModel_1 = require("./models/RequestPassportChatModel");
|
|
118
|
+
const RequestPassportWorkflowModel_1 = require("./models/RequestPassportWorkflowModel");
|
|
119
|
+
const DependentsPassportDetailsModel_1 = require("./models/DependentsPassportDetailsModel");
|
|
114
120
|
const GroupNamesModel_1 = require("./models/GroupNamesModel");
|
|
115
121
|
const GroupModel_1 = require("./models/GroupModel");
|
|
116
122
|
const WorkScheduleModel_1 = require("./models/WorkScheduleModel");
|
|
117
123
|
const JobsModel_1 = require("./models/JobsModel");
|
|
118
124
|
const TelephoneDirectoryModel_1 = require("./models/TelephoneDirectoryModel");
|
|
119
|
-
const M_CMasterModel_1 = require("./models/M&CMasterModel");
|
|
120
|
-
const LeaveBalanceModel_1 = require("./models/LeaveBalanceModel");
|
|
121
|
-
const LeaveConfigModel_1 = require("./models/LeaveConfigModel");
|
|
122
|
-
const LeaveConfigGradesModel_1 = require("./models/LeaveConfigGradesModel");
|
|
123
|
-
const LeaveTransactionModel_1 = require("./models/LeaveTransactionModel");
|
|
124
|
-
const EarlyCheckoutBalanceModel_1 = require("./models/EarlyCheckoutBalanceModel");
|
|
125
|
-
const EarlyCheckoutConfigModel_1 = require("./models/EarlyCheckoutConfigModel");
|
|
126
|
-
const EarlyCheckoutTransactionModel_1 = require("./models/EarlyCheckoutTransactionModel");
|
|
127
|
-
const StayAfterHoursBalanceModel_1 = require("./models/StayAfterHoursBalanceModel");
|
|
128
|
-
const StayAfterHoursTransactionModel_1 = require("./models/StayAfterHoursTransactionModel");
|
|
129
|
-
const StationeryRequestsModel_1 = require("./models/StationeryRequestsModel");
|
|
130
|
-
const StationeryMaterialMasterModel_1 = require("./models/StationeryMaterialMasterModel");
|
|
131
|
-
const ProfileUpdateRequestsModel_1 = require("./models/ProfileUpdateRequestsModel");
|
|
132
|
-
const UserPersonalDetailsModel_1 = require("./models/UserPersonalDetailsModel");
|
|
133
|
-
const UserEmploymentDetailsModel_1 = require("./models/UserEmploymentDetailsModel");
|
|
134
|
-
const UserEducationDetailsModel_1 = require("./models/UserEducationDetailsModel");
|
|
135
|
-
const DiplomaticTitlesMasterModel_1 = require("./models/DiplomaticTitlesMasterModel");
|
|
136
|
-
const CountryMasterModel_1 = require("./models/CountryMasterModel");
|
|
137
|
-
const NationalityMasterModel_1 = require("./models/NationalityMasterModel");
|
|
138
|
-
const OfficeMasterModel_1 = require("./models/OfficeMasterModel");
|
|
139
125
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
140
126
|
type: 'postgres',
|
|
141
127
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -252,30 +238,16 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
252
238
|
RequestParcelAttachmentModel_1.RequestParcelRequestAttachment,
|
|
253
239
|
RequestParcelChatModel_1.RequestParcelRequestChat,
|
|
254
240
|
RequestParcelWorkflowModel_1.RequestParcelWorkFlow,
|
|
241
|
+
RequestPassportRequestModel_1.RequestPassportRequests,
|
|
242
|
+
RequestPassportApprovalModel_1.RequestPassportApprovalDetails,
|
|
243
|
+
RequestPassportAttachmentModel_1.RequestPassportRequestAttachment,
|
|
244
|
+
RequestPassportChatModel_1.RequestPassportRequestChat,
|
|
245
|
+
RequestPassportWorkflowModel_1.RequestPassportWorkFlow,
|
|
246
|
+
DependentsPassportDetailsModel_1.DependentsPassportDetails,
|
|
255
247
|
GroupNamesModel_1.GroupNames,
|
|
256
248
|
GroupModel_1.Group,
|
|
257
249
|
WorkScheduleModel_1.WorkSchedule,
|
|
258
250
|
JobsModel_1.Jobs,
|
|
259
|
-
TelephoneDirectoryModel_1.TelephoneDirectory
|
|
260
|
-
M_CMasterModel_1.MandCMaster,
|
|
261
|
-
LeaveBalanceModel_1.LeaveBalance,
|
|
262
|
-
LeaveConfigModel_1.LeaveConfiguration,
|
|
263
|
-
LeaveConfigGradesModel_1.LeaveConfigurationGrades,
|
|
264
|
-
LeaveTransactionModel_1.LeaveTransaction,
|
|
265
|
-
EarlyCheckoutBalanceModel_1.EarlyCheckoutBalance,
|
|
266
|
-
EarlyCheckoutConfigModel_1.EarlyCheckoutConfiguration,
|
|
267
|
-
EarlyCheckoutTransactionModel_1.EarlyCheckoutTransaction,
|
|
268
|
-
StayAfterHoursBalanceModel_1.StayAfterHoursBalance,
|
|
269
|
-
StayAfterHoursTransactionModel_1.StayAfterHoursTransaction,
|
|
270
|
-
StationeryRequestsModel_1.StationeryRequests,
|
|
271
|
-
StationeryMaterialMasterModel_1.StationeryMaterialMaster,
|
|
272
|
-
ProfileUpdateRequestsModel_1.ProfileUpdateRequests,
|
|
273
|
-
UserPersonalDetailsModel_1.UserPersonalDetails,
|
|
274
|
-
UserEmploymentDetailsModel_1.UserEmploymentDetails,
|
|
275
|
-
UserEducationDetailsModel_1.UserEducationDetails,
|
|
276
|
-
DiplomaticTitlesMasterModel_1.DiplomaticTitlesMaster,
|
|
277
|
-
CountryMasterModel_1.CountryMaster,
|
|
278
|
-
NationalityMasterModel_1.NationalityMaster,
|
|
279
|
-
OfficeMasterModel_1.OfficeMaster
|
|
251
|
+
TelephoneDirectoryModel_1.TelephoneDirectory
|
|
280
252
|
],
|
|
281
253
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -111,10 +111,25 @@ export * from './models/RequestParcelApprovalModel';
|
|
|
111
111
|
export * from './models/RequestParcelAttachmentModel';
|
|
112
112
|
export * from './models/RequestParcelChatModel';
|
|
113
113
|
export * from './models/RequestParcelWorkflowModel';
|
|
114
|
+
export * from './models/RequestPassportRequestModel';
|
|
115
|
+
export * from './models/RequestPassportApprovalModel';
|
|
116
|
+
export * from './models/RequestPassportAttachmentModel';
|
|
117
|
+
export * from './models/RequestPassportChatModel';
|
|
118
|
+
export * from './models/RequestPassportWorkflowModel';
|
|
119
|
+
export * from './models/DependentsPassportDetailsModel';
|
|
114
120
|
export * from './models/GroupNamesModel';
|
|
115
121
|
export * from './models/GroupModel';
|
|
116
122
|
export * from './models/WorkScheduleModel';
|
|
117
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';
|
|
118
133
|
export * from './models/M&CMasterModel';
|
|
119
134
|
export * from './models/LeaveBalanceModel';
|
|
120
135
|
export * from './models/LeaveConfigModel';
|
package/dist/index.js
CHANGED
|
@@ -128,10 +128,25 @@ __exportStar(require("./models/RequestParcelApprovalModel"), exports);
|
|
|
128
128
|
__exportStar(require("./models/RequestParcelAttachmentModel"), exports);
|
|
129
129
|
__exportStar(require("./models/RequestParcelChatModel"), exports);
|
|
130
130
|
__exportStar(require("./models/RequestParcelWorkflowModel"), exports);
|
|
131
|
+
__exportStar(require("./models/RequestPassportRequestModel"), exports);
|
|
132
|
+
__exportStar(require("./models/RequestPassportApprovalModel"), exports);
|
|
133
|
+
__exportStar(require("./models/RequestPassportAttachmentModel"), exports);
|
|
134
|
+
__exportStar(require("./models/RequestPassportChatModel"), exports);
|
|
135
|
+
__exportStar(require("./models/RequestPassportWorkflowModel"), exports);
|
|
136
|
+
__exportStar(require("./models/DependentsPassportDetailsModel"), exports);
|
|
131
137
|
__exportStar(require("./models/GroupNamesModel"), exports);
|
|
132
138
|
__exportStar(require("./models/GroupModel"), exports);
|
|
133
139
|
__exportStar(require("./models/WorkScheduleModel"), exports);
|
|
134
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);
|
|
135
150
|
__exportStar(require("./models/M&CMasterModel"), exports);
|
|
136
151
|
__exportStar(require("./models/LeaveBalanceModel"), exports);
|
|
137
152
|
__exportStar(require("./models/LeaveConfigModel"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { RelationType } from './RequestPassportRequestModel';
|
|
3
|
+
export declare class DependentsPassportDetails extends BaseModel {
|
|
4
|
+
request_id: number;
|
|
5
|
+
first_name: string;
|
|
6
|
+
family_name: string;
|
|
7
|
+
last_name: string;
|
|
8
|
+
gender: string;
|
|
9
|
+
nationality: string;
|
|
10
|
+
place_of_birth: string;
|
|
11
|
+
date_of_birth: Date | null;
|
|
12
|
+
job_occupation: string;
|
|
13
|
+
relation_type: RelationType | null;
|
|
14
|
+
age: number;
|
|
15
|
+
passport_request_type: string;
|
|
16
|
+
dependent_passport_number: string | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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.DependentsPassportDetails = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const RequestPassportRequestModel_1 = require("./RequestPassportRequestModel");
|
|
16
|
+
let DependentsPassportDetails = class DependentsPassportDetails extends BaseModel_1.BaseModel {
|
|
17
|
+
};
|
|
18
|
+
exports.DependentsPassportDetails = DependentsPassportDetails;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], DependentsPassportDetails.prototype, "request_id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], DependentsPassportDetails.prototype, "first_name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], DependentsPassportDetails.prototype, "family_name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], DependentsPassportDetails.prototype, "last_name", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: false }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], DependentsPassportDetails.prototype, "gender", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], DependentsPassportDetails.prototype, "nationality", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], DependentsPassportDetails.prototype, "place_of_birth", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], DependentsPassportDetails.prototype, "date_of_birth", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], DependentsPassportDetails.prototype, "job_occupation", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: RequestPassportRequestModel_1.RelationType, nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], DependentsPassportDetails.prototype, "relation_type", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], DependentsPassportDetails.prototype, "age", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], DependentsPassportDetails.prototype, "passport_request_type", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], DependentsPassportDetails.prototype, "dependent_passport_number", void 0);
|
|
71
|
+
exports.DependentsPassportDetails = DependentsPassportDetails = __decorate([
|
|
72
|
+
(0, typeorm_1.Entity)({ name: 'dependents_passport_details' })
|
|
73
|
+
], DependentsPassportDetails);
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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);
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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);
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|
|
@@ -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.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);
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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);
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.DiplomaticClubCardAttachments = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let DiplomaticClubCardAttachments = class DiplomaticClubCardAttachments extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.DiplomaticClubCardAttachments = DiplomaticClubCardAttachments;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], DiplomaticClubCardAttachments.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], DiplomaticClubCardAttachments.prototype, "member_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], DiplomaticClubCardAttachments.prototype, "file_name", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], DiplomaticClubCardAttachments.prototype, "file_path", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], DiplomaticClubCardAttachments.prototype, "file_type", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], DiplomaticClubCardAttachments.prototype, "attachment_type", void 0);
|
|
42
|
+
exports.DiplomaticClubCardAttachments = DiplomaticClubCardAttachments = __decorate([
|
|
43
|
+
(0, typeorm_1.Entity)({ name: 'diplomatic_club_card_attachments' })
|
|
44
|
+
], DiplomaticClubCardAttachments);
|