@platform-modules/foreign-ministry 1.1.111 → 1.1.112
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 +1 -41
- package/dist/index.d.ts +10 -0
- package/dist/index.js +12 -1
- 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/DiplomaticClubCardMembersModel.d.ts +26 -0
- package/dist/models/DiplomaticClubCardMembersModel.js +85 -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/DiplomaticTitlesMasterModel.d.ts +6 -1
- package/dist/models/DiplomaticTitlesMasterModel.js +13 -3
- package/dist/models/DiplomaticWorkFlowModel.d.ts +20 -0
- package/dist/models/DiplomaticWorkFlowModel.js +77 -0
- package/package.json +1 -1
- package/src/data-source.ts +1 -43
- package/src/index.ts +10 -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/DiplomaticTitlesMasterModel.ts +10 -1
- package/src/models/DiplomaticWorkFlowModel.ts +59 -0
package/dist/data-source.js
CHANGED
|
@@ -122,26 +122,6 @@ 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");
|
|
145
125
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
146
126
|
type: 'postgres',
|
|
147
127
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -268,26 +248,6 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
268
248
|
GroupModel_1.Group,
|
|
269
249
|
WorkScheduleModel_1.WorkSchedule,
|
|
270
250
|
JobsModel_1.Jobs,
|
|
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
|
|
251
|
+
TelephoneDirectoryModel_1.TelephoneDirectory
|
|
292
252
|
],
|
|
293
253
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -121,6 +121,15 @@ 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';
|
|
124
133
|
export * from './models/M&CMasterModel';
|
|
125
134
|
export * from './models/LeaveBalanceModel';
|
|
126
135
|
export * from './models/LeaveConfigModel';
|
|
@@ -148,6 +157,7 @@ export * from './models/UserEmploymentDetailsModel';
|
|
|
148
157
|
export * from './models/UserEducationDetailsModel';
|
|
149
158
|
export { ProfileUpdateRequestStatus } from './models/ProfileUpdateRequestsModel';
|
|
150
159
|
export * from './models/DiplomaticTitlesMasterModel';
|
|
160
|
+
export { TitleCategory } from './models/DiplomaticTitlesMasterModel';
|
|
151
161
|
export * from './models/CountryMasterModel';
|
|
152
162
|
export * from './models/NationalityMasterModel';
|
|
153
163
|
export * from './models/OfficeMasterModel';
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ 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.ProfileUpdateRequestStatus = 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;
|
|
17
|
+
exports.TitleCategory = exports.ProfileUpdateRequestStatus = 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
18
|
__exportStar(require("./models/user"), exports);
|
|
19
19
|
__exportStar(require("./models/role"), exports);
|
|
20
20
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -138,6 +138,15 @@ __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);
|
|
141
150
|
__exportStar(require("./models/M&CMasterModel"), exports);
|
|
142
151
|
__exportStar(require("./models/LeaveBalanceModel"), exports);
|
|
143
152
|
__exportStar(require("./models/LeaveConfigModel"), exports);
|
|
@@ -179,6 +188,8 @@ __exportStar(require("./models/UserEducationDetailsModel"), exports);
|
|
|
179
188
|
var ProfileUpdateRequestsModel_1 = require("./models/ProfileUpdateRequestsModel");
|
|
180
189
|
Object.defineProperty(exports, "ProfileUpdateRequestStatus", { enumerable: true, get: function () { return ProfileUpdateRequestsModel_1.ProfileUpdateRequestStatus; } });
|
|
181
190
|
__exportStar(require("./models/DiplomaticTitlesMasterModel"), exports);
|
|
191
|
+
var DiplomaticTitlesMasterModel_1 = require("./models/DiplomaticTitlesMasterModel");
|
|
192
|
+
Object.defineProperty(exports, "TitleCategory", { enumerable: true, get: function () { return DiplomaticTitlesMasterModel_1.TitleCategory; } });
|
|
182
193
|
__exportStar(require("./models/CountryMasterModel"), exports);
|
|
183
194
|
__exportStar(require("./models/NationalityMasterModel"), exports);
|
|
184
195
|
__exportStar(require("./models/OfficeMasterModel"), 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,26 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { DiplomaticRequests } from "./DiplomaticRequestsModel";
|
|
3
|
+
export declare enum MembershipType {
|
|
4
|
+
SINGLE = "Single",
|
|
5
|
+
FAMILY = "Family"
|
|
6
|
+
}
|
|
7
|
+
export declare enum RequestType {
|
|
8
|
+
EMPLOYEE_SELF = "Employee Self",
|
|
9
|
+
NON_EMPLOYEE = "Non Employee"
|
|
10
|
+
}
|
|
11
|
+
export declare enum MemberType {
|
|
12
|
+
PRIMARY = "Primary",
|
|
13
|
+
FAMILY_MEMBER = "Family Member"
|
|
14
|
+
}
|
|
15
|
+
export declare class DiplomaticClubCardMembers extends BaseModel {
|
|
16
|
+
diplomatic_request_id: number;
|
|
17
|
+
family_member_name: string;
|
|
18
|
+
relation: string | null;
|
|
19
|
+
title: string | null;
|
|
20
|
+
diplomatic_title_id: number | null;
|
|
21
|
+
expiry_date: Date | null;
|
|
22
|
+
photo_url: string | null;
|
|
23
|
+
membership_id: string | null;
|
|
24
|
+
diplomaticRequest?: DiplomaticRequests;
|
|
25
|
+
constructor(diplomatic_request_id: number, family_member_name: string, relation?: string | null, title?: string | null, diplomatic_title_id?: number | null, expiry_date?: Date | null, photo_url?: string | null, membership_id?: string | null);
|
|
26
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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.DiplomaticClubCardMembers = exports.MemberType = exports.RequestType = exports.MembershipType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const DiplomaticRequestsModel_1 = require("./DiplomaticRequestsModel");
|
|
16
|
+
var MembershipType;
|
|
17
|
+
(function (MembershipType) {
|
|
18
|
+
MembershipType["SINGLE"] = "Single";
|
|
19
|
+
MembershipType["FAMILY"] = "Family";
|
|
20
|
+
})(MembershipType || (exports.MembershipType = MembershipType = {}));
|
|
21
|
+
var RequestType;
|
|
22
|
+
(function (RequestType) {
|
|
23
|
+
RequestType["EMPLOYEE_SELF"] = "Employee Self";
|
|
24
|
+
RequestType["NON_EMPLOYEE"] = "Non Employee";
|
|
25
|
+
})(RequestType || (exports.RequestType = RequestType = {}));
|
|
26
|
+
var MemberType;
|
|
27
|
+
(function (MemberType) {
|
|
28
|
+
MemberType["PRIMARY"] = "Primary";
|
|
29
|
+
MemberType["FAMILY_MEMBER"] = "Family Member";
|
|
30
|
+
})(MemberType || (exports.MemberType = MemberType = {}));
|
|
31
|
+
let DiplomaticClubCardMembers = class DiplomaticClubCardMembers extends BaseModel_1.BaseModel {
|
|
32
|
+
constructor(diplomatic_request_id, family_member_name, relation, title, diplomatic_title_id, expiry_date, photo_url, membership_id) {
|
|
33
|
+
super();
|
|
34
|
+
this.diplomatic_request_id = diplomatic_request_id;
|
|
35
|
+
this.family_member_name = family_member_name;
|
|
36
|
+
this.relation = relation || null;
|
|
37
|
+
this.title = title || null;
|
|
38
|
+
this.diplomatic_title_id = diplomatic_title_id || null;
|
|
39
|
+
this.expiry_date = expiry_date || null;
|
|
40
|
+
this.photo_url = photo_url || null;
|
|
41
|
+
this.membership_id = membership_id || null;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.DiplomaticClubCardMembers = DiplomaticClubCardMembers;
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], DiplomaticClubCardMembers.prototype, "diplomatic_request_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], DiplomaticClubCardMembers.prototype, "family_member_name", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], DiplomaticClubCardMembers.prototype, "relation", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], DiplomaticClubCardMembers.prototype, "title", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], DiplomaticClubCardMembers.prototype, "diplomatic_title_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], DiplomaticClubCardMembers.prototype, "expiry_date", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], DiplomaticClubCardMembers.prototype, "photo_url", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], DiplomaticClubCardMembers.prototype, "membership_id", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.ManyToOne)(() => DiplomaticRequestsModel_1.DiplomaticRequests, dr => dr.diplomaticClubCardMembers),
|
|
79
|
+
(0, typeorm_1.JoinColumn)({ name: 'diplomatic_request_id' }),
|
|
80
|
+
__metadata("design:type", DiplomaticRequestsModel_1.DiplomaticRequests)
|
|
81
|
+
], DiplomaticClubCardMembers.prototype, "diplomaticRequest", void 0);
|
|
82
|
+
exports.DiplomaticClubCardMembers = DiplomaticClubCardMembers = __decorate([
|
|
83
|
+
(0, typeorm_1.Entity)({ name: 'diplomatic_club_card_members' }),
|
|
84
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object])
|
|
85
|
+
], DiplomaticClubCardMembers);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class DiplomaticClubSubscriptionMaster extends BaseModel {
|
|
3
|
+
subscription_type: string;
|
|
4
|
+
subscription_amount: number;
|
|
5
|
+
currency: string | null;
|
|
6
|
+
description: string | null;
|
|
7
|
+
is_active: boolean;
|
|
8
|
+
effective_from: Date | null;
|
|
9
|
+
effective_to: Date | null;
|
|
10
|
+
subscription_period: string | null;
|
|
11
|
+
constructor(subscription_type: string, subscription_amount: number, currency?: string | null, description?: string | null, effective_from?: Date | null, effective_to?: Date | null, subscription_period?: string | null);
|
|
12
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.DiplomaticClubSubscriptionMaster = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let DiplomaticClubSubscriptionMaster = class DiplomaticClubSubscriptionMaster extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(subscription_type, subscription_amount, currency, description, effective_from, effective_to, subscription_period) {
|
|
17
|
+
super();
|
|
18
|
+
this.subscription_type = subscription_type;
|
|
19
|
+
this.subscription_amount = subscription_amount;
|
|
20
|
+
this.currency = currency || null;
|
|
21
|
+
this.description = description || null;
|
|
22
|
+
this.is_active = true;
|
|
23
|
+
this.effective_from = effective_from || null;
|
|
24
|
+
this.effective_to = effective_to || null;
|
|
25
|
+
this.subscription_period = subscription_period || null;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.DiplomaticClubSubscriptionMaster = DiplomaticClubSubscriptionMaster;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], DiplomaticClubSubscriptionMaster.prototype, "subscription_type", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2 }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], DiplomaticClubSubscriptionMaster.prototype, "subscription_amount", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], DiplomaticClubSubscriptionMaster.prototype, "currency", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], DiplomaticClubSubscriptionMaster.prototype, "description", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], DiplomaticClubSubscriptionMaster.prototype, "is_active", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], DiplomaticClubSubscriptionMaster.prototype, "effective_from", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], DiplomaticClubSubscriptionMaster.prototype, "effective_to", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], DiplomaticClubSubscriptionMaster.prototype, "subscription_period", void 0);
|
|
61
|
+
exports.DiplomaticClubSubscriptionMaster = DiplomaticClubSubscriptionMaster = __decorate([
|
|
62
|
+
(0, typeorm_1.Entity)({ name: 'diplomatic_club_subscription_master' }),
|
|
63
|
+
__metadata("design:paramtypes", [String, Number, Object, Object, Object, Object, Object])
|
|
64
|
+
], DiplomaticClubSubscriptionMaster);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import type { DiplomaticApprovals } from './DiplomaticApprovalsModel';
|
|
3
|
+
import type { DiplomaticWorkFlow } from './DiplomaticWorkFlowModel';
|
|
4
|
+
import type { DiplomaticAttachments } from './DiplomaticAttachmentsModel';
|
|
5
|
+
import type { DiplomaticChats } from './DiplomaticChatsModel';
|
|
6
|
+
import type { DiplomaticClubCardMembers } from './DiplomaticClubCardMembersModel';
|
|
7
|
+
export declare enum DiplomaticRequestStatus {
|
|
8
|
+
DRAFT = "Draft",
|
|
9
|
+
SUBMITTED = "Submitted",
|
|
10
|
+
PENDING = "Pending",
|
|
11
|
+
IN_PROGRESS = "In Progress",
|
|
12
|
+
APPROVED = "Approved",
|
|
13
|
+
REJECTED = "Rejected",
|
|
14
|
+
COMPLETED = "Completed",
|
|
15
|
+
CANCELLED = "Cancelled"
|
|
16
|
+
}
|
|
17
|
+
export declare class DiplomaticRequests extends BaseModel {
|
|
18
|
+
user_id: number;
|
|
19
|
+
employee_id: string;
|
|
20
|
+
employee_name: string;
|
|
21
|
+
grade: string | null;
|
|
22
|
+
designation_id: number | null;
|
|
23
|
+
department_id: number | null;
|
|
24
|
+
email_address: string;
|
|
25
|
+
contact_number: string;
|
|
26
|
+
request_date: Date;
|
|
27
|
+
request_status: DiplomaticRequestStatus;
|
|
28
|
+
request_close_date: Date | null;
|
|
29
|
+
end_date: Date | null;
|
|
30
|
+
remarks: string | null;
|
|
31
|
+
current_approval_level: number | null;
|
|
32
|
+
current_approver_id: number | null;
|
|
33
|
+
service_id: number | null;
|
|
34
|
+
sub_service_id: number | null;
|
|
35
|
+
member_name: string | null;
|
|
36
|
+
membership_type: string | null;
|
|
37
|
+
diplomatic_title_id: number | null;
|
|
38
|
+
location: string | null;
|
|
39
|
+
request_type: string | null;
|
|
40
|
+
expiry_date: Date | null;
|
|
41
|
+
photo_url: string | null;
|
|
42
|
+
membership_id: string | null;
|
|
43
|
+
organization: string | null;
|
|
44
|
+
subscription_amount: number | null;
|
|
45
|
+
section_id: number | null;
|
|
46
|
+
reporting_manager: number | null;
|
|
47
|
+
workflow_execution_id: string | null;
|
|
48
|
+
diplomaticClubCardMembers?: DiplomaticClubCardMembers[];
|
|
49
|
+
approvals?: DiplomaticApprovals[];
|
|
50
|
+
workflows?: DiplomaticWorkFlow[];
|
|
51
|
+
attachments?: DiplomaticAttachments[];
|
|
52
|
+
chats?: DiplomaticChats[];
|
|
53
|
+
constructor(user_id: number, employee_id: string, employee_name: string, email_address: string, contact_number: string, service_id: number | null, sub_service_id: number | null, section_id: number | null, reporting_manager: number | null);
|
|
54
|
+
}
|