@platform-modules/foreign-ministry 1.1.68 → 1.1.70
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 +16 -24
- package/dist/index.d.ts +8 -20
- package/dist/index.js +8 -34
- 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/{EarlyCheckoutBalanceModel.js → DiplomaticClubCardChatModel.js} +18 -21
- package/dist/models/DiplomaticClubCardMemberModel.d.ts +13 -0
- package/dist/models/DiplomaticClubCardMemberModel.js +60 -0
- package/dist/models/DiplomaticClubCardMembersModel.d.ts +37 -0
- package/dist/models/DiplomaticClubCardMembersModel.js +139 -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 +43 -0
- package/dist/models/DiplomaticRequestsModel.js +142 -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/DiplomaticTitlesMasterModel.d.ts +13 -0
- package/dist/models/{StationeryMaterialMasterModel.js → DiplomaticTitlesMasterModel.js} +23 -25
- package/dist/models/DiplomaticWorkFlowModel.d.ts +18 -0
- package/dist/models/DiplomaticWorkFlowModel.js +69 -0
- package/dist/models/FinancialApprovalsModel.d.ts +0 -1
- package/dist/models/FinancialApprovalsModel.js +0 -4
- package/dist/models/FinancialGradeModel.d.ts +3 -4
- package/dist/models/FinancialGradeModel.js +7 -12
- package/dist/models/GeneralServiceApprovalsModel.d.ts +1 -4
- package/dist/models/GeneralServiceApprovalsModel.js +0 -9
- package/dist/models/LeaveTypesModel.d.ts +1 -7
- package/dist/models/LeaveTypesModel.js +5 -20
- 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/{LeaveBalanceModel.js → PassportRequestChatModel.js} +23 -23
- 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/SubscriptionAmountModel.d.ts +67 -0
- package/dist/models/SubscriptionAmountModel.js +114 -0
- package/package.json +1 -1
- package/src/data-source.ts +17 -26
- package/src/index.ts +8 -20
- 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 +124 -0
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +50 -0
- package/src/models/DiplomaticRequestsModel.ts +121 -0
- package/src/models/DiplomaticTitlesMasterModel.ts +39 -0
- package/src/models/DiplomaticWorkFlowModel.ts +53 -0
- package/src/models/FinancialApprovalsModel.ts +0 -4
- package/src/models/FinancialGradeModel.ts +8 -13
- package/src/models/GeneralServiceApprovalsModel.ts +1 -10
- package/src/models/LeaveTypesModel.ts +11 -27
- package/dist/models/EarlyCheckoutBalanceModel.d.ts +0 -7
- package/dist/models/EarlyCheckoutConfigModel.d.ts +0 -18
- package/dist/models/EarlyCheckoutConfigModel.js +0 -80
- package/dist/models/EarlyCheckoutTransactionModel.d.ts +0 -19
- package/dist/models/EarlyCheckoutTransactionModel.js +0 -66
- package/dist/models/LeaveBalanceModel.d.ts +0 -8
- package/dist/models/LeaveConfigGradesModel.d.ts +0 -19
- package/dist/models/LeaveConfigGradesModel.js +0 -100
- package/dist/models/LeaveConfigModel.d.ts +0 -20
- package/dist/models/LeaveConfigModel.js +0 -90
- package/dist/models/LeaveTransactionModel.d.ts +0 -20
- package/dist/models/LeaveTransactionModel.js +0 -71
- package/dist/models/M&CMasterModel.d.ts +0 -9
- package/dist/models/M&CMasterModel.js +0 -49
- package/dist/models/StationeryMaterialMasterModel.d.ts +0 -11
- package/dist/models/StationeryRequestsModel.d.ts +0 -27
- package/dist/models/StationeryRequestsModel.js +0 -93
- package/dist/models/StayAfterHoursBalanceModel.d.ts +0 -7
- package/dist/models/StayAfterHoursBalanceModel.js +0 -39
- package/dist/models/StayAfterHoursTransactionModel.d.ts +0 -19
- package/dist/models/StayAfterHoursTransactionModel.js +0 -66
- package/src/models/EarlyCheckoutBalanceModel.ts +0 -22
- package/src/models/EarlyCheckoutConfigModel.ts +0 -57
- package/src/models/EarlyCheckoutTransactionModel.ts +0 -53
- package/src/models/LeaveBalanceModel.ts +0 -26
- package/src/models/LeaveConfigGradesModel.Ts +0 -72
- package/src/models/LeaveConfigModel.ts +0 -64
- package/src/models/LeaveTransactionModel.ts +0 -58
- package/src/models/M&CMasterModel.ts +0 -37
- package/src/models/StationeryMaterialMasterModel.ts +0 -35
- package/src/models/StationeryRequestsModel.ts +0 -65
- package/src/models/StayAfterHoursBalanceModel.ts +0 -22
- package/src/models/StayAfterHoursTransactionModel.ts +0 -53
package/dist/data-source.js
CHANGED
|
@@ -101,18 +101,14 @@ const GroupModel_1 = require("./models/GroupModel");
|
|
|
101
101
|
const WorkScheduleModel_1 = require("./models/WorkScheduleModel");
|
|
102
102
|
const JobsModel_1 = require("./models/JobsModel");
|
|
103
103
|
const TelephoneDirectoryModel_1 = require("./models/TelephoneDirectoryModel");
|
|
104
|
-
const
|
|
105
|
-
const
|
|
106
|
-
const
|
|
107
|
-
const
|
|
108
|
-
const
|
|
109
|
-
const
|
|
110
|
-
const
|
|
111
|
-
const
|
|
112
|
-
const StayAfterHoursBalanceModel_1 = require("./models/StayAfterHoursBalanceModel");
|
|
113
|
-
const StayAfterHoursTransactionModel_1 = require("./models/StayAfterHoursTransactionModel");
|
|
114
|
-
const StationeryRequestsModel_1 = require("./models/StationeryRequestsModel");
|
|
115
|
-
const StationeryMaterialMasterModel_1 = require("./models/StationeryMaterialMasterModel");
|
|
104
|
+
const DiplomaticRequestsModel_1 = require("./models/DiplomaticRequestsModel");
|
|
105
|
+
const DiplomaticApprovalsModel_1 = require("./models/DiplomaticApprovalsModel");
|
|
106
|
+
const DiplomaticWorkFlowModel_1 = require("./models/DiplomaticWorkFlowModel");
|
|
107
|
+
const DiplomaticAttachmentsModel_1 = require("./models/DiplomaticAttachmentsModel");
|
|
108
|
+
const DiplomaticChatsModel_1 = require("./models/DiplomaticChatsModel");
|
|
109
|
+
const DiplomaticClubCardMembersModel_1 = require("./models/DiplomaticClubCardMembersModel");
|
|
110
|
+
const DiplomaticTitlesMasterModel_1 = require("./models/DiplomaticTitlesMasterModel");
|
|
111
|
+
const DiplomaticClubSubscriptionMasterModel_1 = require("./models/DiplomaticClubSubscriptionMasterModel");
|
|
116
112
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
117
113
|
type: 'postgres',
|
|
118
114
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -219,17 +215,13 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
219
215
|
WorkScheduleModel_1.WorkSchedule,
|
|
220
216
|
JobsModel_1.Jobs,
|
|
221
217
|
TelephoneDirectoryModel_1.TelephoneDirectory,
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
StayAfterHoursBalanceModel_1.StayAfterHoursBalance,
|
|
231
|
-
StayAfterHoursTransactionModel_1.StayAfterHoursTransaction,
|
|
232
|
-
StationeryRequestsModel_1.StationeryRequests,
|
|
233
|
-
StationeryMaterialMasterModel_1.StationeryMaterialMaster
|
|
218
|
+
DiplomaticRequestsModel_1.DiplomaticRequests,
|
|
219
|
+
DiplomaticApprovalsModel_1.DiplomaticApprovals,
|
|
220
|
+
DiplomaticWorkFlowModel_1.DiplomaticWorkFlow,
|
|
221
|
+
DiplomaticAttachmentsModel_1.DiplomaticAttachments,
|
|
222
|
+
DiplomaticChatsModel_1.DiplomaticChats,
|
|
223
|
+
DiplomaticClubCardMembersModel_1.DiplomaticClubCardMembers,
|
|
224
|
+
DiplomaticTitlesMasterModel_1.DiplomaticTitlesMaster,
|
|
225
|
+
DiplomaticClubSubscriptionMasterModel_1.DiplomaticClubSubscriptionMaster
|
|
234
226
|
],
|
|
235
227
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -100,24 +100,12 @@ export * from './models/GroupNamesModel';
|
|
|
100
100
|
export * from './models/GroupModel';
|
|
101
101
|
export * from './models/WorkScheduleModel';
|
|
102
102
|
export * from './models/JobsModel';
|
|
103
|
-
export * from './models/M&CMasterModel';
|
|
104
|
-
export * from './models/LeaveBalanceModel';
|
|
105
|
-
export * from './models/LeaveConfigModel';
|
|
106
|
-
export { LeaveConfiguration, enumFrequency } from './models/LeaveConfigModel';
|
|
107
|
-
export * from './models/LeaveConfigGradesModel';
|
|
108
|
-
export { LeaveConfigurationGrades } from './models/LeaveConfigGradesModel';
|
|
109
|
-
export * from './models/LeaveTransactionModel';
|
|
110
|
-
export { LeaveTransaction, LeaveTransactionStatus } from './models/LeaveTransactionModel';
|
|
111
|
-
export * from './models/EarlyCheckoutBalanceModel';
|
|
112
|
-
export { EarlyCheckoutBalance } from './models/EarlyCheckoutBalanceModel';
|
|
113
|
-
export * from './models/EarlyCheckoutConfigModel';
|
|
114
|
-
export { EarlyCheckoutConfiguration, EarlyCheckoutFrequency } from './models/EarlyCheckoutConfigModel';
|
|
115
|
-
export * from './models/EarlyCheckoutTransactionModel';
|
|
116
|
-
export { EarlyCheckoutTransaction, EarlyCheckoutTransactionStatus } from './models/EarlyCheckoutTransactionModel';
|
|
117
|
-
export * from './models/StayAfterHoursBalanceModel';
|
|
118
|
-
export { StayAfterHoursBalance } from './models/StayAfterHoursBalanceModel';
|
|
119
|
-
export * from './models/StayAfterHoursTransactionModel';
|
|
120
|
-
export { StayAfterHoursTransaction, StayAfterHoursTransactionStatus } from './models/StayAfterHoursTransactionModel';
|
|
121
103
|
export * from './models/TelephoneDirectoryModel';
|
|
122
|
-
export * from './models/
|
|
123
|
-
export * from './models/
|
|
104
|
+
export * from './models/DiplomaticRequestsModel';
|
|
105
|
+
export * from './models/DiplomaticApprovalsModel';
|
|
106
|
+
export * from './models/DiplomaticWorkFlowModel';
|
|
107
|
+
export * from './models/DiplomaticAttachmentsModel';
|
|
108
|
+
export * from './models/DiplomaticChatsModel';
|
|
109
|
+
export * from './models/DiplomaticClubCardMembersModel';
|
|
110
|
+
export * from './models/DiplomaticTitlesMasterModel';
|
|
111
|
+
export * from './models/DiplomaticClubSubscriptionMasterModel';
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.StayAfterHoursTransactionStatus = exports.StayAfterHoursTransaction = exports.StayAfterHoursBalance = exports.EarlyCheckoutTransactionStatus = exports.EarlyCheckoutTransaction = exports.EarlyCheckoutFrequency = exports.EarlyCheckoutConfiguration = exports.EarlyCheckoutBalance = exports.LeaveTransactionStatus = exports.LeaveTransaction = exports.LeaveConfigurationGrades = exports.enumFrequency = exports.LeaveConfiguration = void 0;
|
|
18
17
|
__exportStar(require("./models/user"), exports);
|
|
19
18
|
__exportStar(require("./models/role"), exports);
|
|
20
19
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -117,37 +116,12 @@ __exportStar(require("./models/GroupNamesModel"), exports);
|
|
|
117
116
|
__exportStar(require("./models/GroupModel"), exports);
|
|
118
117
|
__exportStar(require("./models/WorkScheduleModel"), exports);
|
|
119
118
|
__exportStar(require("./models/JobsModel"), exports);
|
|
120
|
-
__exportStar(require("./models/M&CMasterModel"), exports);
|
|
121
|
-
__exportStar(require("./models/LeaveBalanceModel"), exports);
|
|
122
|
-
__exportStar(require("./models/LeaveConfigModel"), exports);
|
|
123
|
-
var LeaveConfigModel_1 = require("./models/LeaveConfigModel");
|
|
124
|
-
Object.defineProperty(exports, "LeaveConfiguration", { enumerable: true, get: function () { return LeaveConfigModel_1.LeaveConfiguration; } });
|
|
125
|
-
Object.defineProperty(exports, "enumFrequency", { enumerable: true, get: function () { return LeaveConfigModel_1.enumFrequency; } });
|
|
126
|
-
__exportStar(require("./models/LeaveConfigGradesModel"), exports);
|
|
127
|
-
var LeaveConfigGradesModel_1 = require("./models/LeaveConfigGradesModel");
|
|
128
|
-
Object.defineProperty(exports, "LeaveConfigurationGrades", { enumerable: true, get: function () { return LeaveConfigGradesModel_1.LeaveConfigurationGrades; } });
|
|
129
|
-
__exportStar(require("./models/LeaveTransactionModel"), exports);
|
|
130
|
-
var LeaveTransactionModel_1 = require("./models/LeaveTransactionModel");
|
|
131
|
-
Object.defineProperty(exports, "LeaveTransaction", { enumerable: true, get: function () { return LeaveTransactionModel_1.LeaveTransaction; } });
|
|
132
|
-
Object.defineProperty(exports, "LeaveTransactionStatus", { enumerable: true, get: function () { return LeaveTransactionModel_1.LeaveTransactionStatus; } });
|
|
133
|
-
__exportStar(require("./models/EarlyCheckoutBalanceModel"), exports);
|
|
134
|
-
var EarlyCheckoutBalanceModel_1 = require("./models/EarlyCheckoutBalanceModel");
|
|
135
|
-
Object.defineProperty(exports, "EarlyCheckoutBalance", { enumerable: true, get: function () { return EarlyCheckoutBalanceModel_1.EarlyCheckoutBalance; } });
|
|
136
|
-
__exportStar(require("./models/EarlyCheckoutConfigModel"), exports);
|
|
137
|
-
var EarlyCheckoutConfigModel_1 = require("./models/EarlyCheckoutConfigModel");
|
|
138
|
-
Object.defineProperty(exports, "EarlyCheckoutConfiguration", { enumerable: true, get: function () { return EarlyCheckoutConfigModel_1.EarlyCheckoutConfiguration; } });
|
|
139
|
-
Object.defineProperty(exports, "EarlyCheckoutFrequency", { enumerable: true, get: function () { return EarlyCheckoutConfigModel_1.EarlyCheckoutFrequency; } });
|
|
140
|
-
__exportStar(require("./models/EarlyCheckoutTransactionModel"), exports);
|
|
141
|
-
var EarlyCheckoutTransactionModel_1 = require("./models/EarlyCheckoutTransactionModel");
|
|
142
|
-
Object.defineProperty(exports, "EarlyCheckoutTransaction", { enumerable: true, get: function () { return EarlyCheckoutTransactionModel_1.EarlyCheckoutTransaction; } });
|
|
143
|
-
Object.defineProperty(exports, "EarlyCheckoutTransactionStatus", { enumerable: true, get: function () { return EarlyCheckoutTransactionModel_1.EarlyCheckoutTransactionStatus; } });
|
|
144
|
-
__exportStar(require("./models/StayAfterHoursBalanceModel"), exports);
|
|
145
|
-
var StayAfterHoursBalanceModel_1 = require("./models/StayAfterHoursBalanceModel");
|
|
146
|
-
Object.defineProperty(exports, "StayAfterHoursBalance", { enumerable: true, get: function () { return StayAfterHoursBalanceModel_1.StayAfterHoursBalance; } });
|
|
147
|
-
__exportStar(require("./models/StayAfterHoursTransactionModel"), exports);
|
|
148
|
-
var StayAfterHoursTransactionModel_1 = require("./models/StayAfterHoursTransactionModel");
|
|
149
|
-
Object.defineProperty(exports, "StayAfterHoursTransaction", { enumerable: true, get: function () { return StayAfterHoursTransactionModel_1.StayAfterHoursTransaction; } });
|
|
150
|
-
Object.defineProperty(exports, "StayAfterHoursTransactionStatus", { enumerable: true, get: function () { return StayAfterHoursTransactionModel_1.StayAfterHoursTransactionStatus; } });
|
|
151
119
|
__exportStar(require("./models/TelephoneDirectoryModel"), exports);
|
|
152
|
-
__exportStar(require("./models/
|
|
153
|
-
__exportStar(require("./models/
|
|
120
|
+
__exportStar(require("./models/DiplomaticRequestsModel"), exports);
|
|
121
|
+
__exportStar(require("./models/DiplomaticApprovalsModel"), exports);
|
|
122
|
+
__exportStar(require("./models/DiplomaticWorkFlowModel"), exports);
|
|
123
|
+
__exportStar(require("./models/DiplomaticAttachmentsModel"), exports);
|
|
124
|
+
__exportStar(require("./models/DiplomaticChatsModel"), exports);
|
|
125
|
+
__exportStar(require("./models/DiplomaticClubCardMembersModel"), exports);
|
|
126
|
+
__exportStar(require("./models/DiplomaticTitlesMasterModel"), exports);
|
|
127
|
+
__exportStar(require("./models/DiplomaticClubSubscriptionMasterModel"), exports);
|
|
@@ -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);
|
|
@@ -9,31 +9,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.DiplomaticClubCardChat = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let
|
|
16
|
-
constructor(user_id, balance, total_balance) {
|
|
17
|
-
super();
|
|
18
|
-
this.user_id = user_id;
|
|
19
|
-
this.balance = balance;
|
|
20
|
-
this.total_balance = total_balance;
|
|
21
|
-
}
|
|
15
|
+
let DiplomaticClubCardChat = class DiplomaticClubCardChat extends BaseModel_1.BaseModel {
|
|
22
16
|
};
|
|
23
|
-
exports.
|
|
17
|
+
exports.DiplomaticClubCardChat = DiplomaticClubCardChat;
|
|
24
18
|
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ nullable:
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], EarlyCheckoutBalance.prototype, "user_id", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
30
20
|
__metadata("design:type", Number)
|
|
31
|
-
],
|
|
21
|
+
], DiplomaticClubCardChat.prototype, "request_id", void 0);
|
|
32
22
|
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ nullable:
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
34
24
|
__metadata("design:type", Number)
|
|
35
|
-
],
|
|
36
|
-
|
|
37
|
-
(0, typeorm_1.
|
|
38
|
-
__metadata("design:
|
|
39
|
-
],
|
|
25
|
+
], DiplomaticClubCardChat.prototype, "user_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], DiplomaticClubCardChat.prototype, "message", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], DiplomaticClubCardChat.prototype, "message_type", void 0);
|
|
34
|
+
exports.DiplomaticClubCardChat = DiplomaticClubCardChat = __decorate([
|
|
35
|
+
(0, typeorm_1.Entity)({ name: 'diplomatic_club_card_chats' })
|
|
36
|
+
], DiplomaticClubCardChat);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class DiplomaticClubCardMembers extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
member_name: string;
|
|
5
|
+
relation: string | null;
|
|
6
|
+
membership_id: string | null;
|
|
7
|
+
title: string | null;
|
|
8
|
+
diplomatic_title_id: number | null;
|
|
9
|
+
organization: string | null;
|
|
10
|
+
expiry_date: Date | null;
|
|
11
|
+
photo: string | null;
|
|
12
|
+
subscription_amount: number | null;
|
|
13
|
+
}
|