@platform-modules/foreign-ministry 1.1.2 → 1.1.4
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/models/BankNamesModel.d.ts +2 -1
- package/dist/models/BankNamesModel.js +7 -2
- package/dist/models/FinancialApprovalsModel.d.ts +2 -1
- package/dist/models/FinancialApprovalsModel.js +1 -0
- package/dist/models/user.d.ts +3 -1
- package/dist/models/user.js +12 -2
- package/package.json +1 -1
- package/src/models/BankNamesModel.ts +6 -1
- package/src/models/FinancialApprovalsModel.ts +2 -1
- package/src/models/user.ts +10 -0
|
@@ -4,6 +4,7 @@ export declare class BankNames extends BaseModel {
|
|
|
4
4
|
bank_code: string;
|
|
5
5
|
bank_description: string;
|
|
6
6
|
country: string;
|
|
7
|
+
bank_type: string;
|
|
7
8
|
is_active: boolean;
|
|
8
|
-
constructor(bank_name: string, bank_code: string, bank_description?: string, country?: string);
|
|
9
|
+
constructor(bank_name: string, bank_code: string, bank_description?: string, country?: string, bank_type?: string);
|
|
9
10
|
}
|
|
@@ -13,13 +13,14 @@ exports.BankNames = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
let BankNames = class BankNames extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(bank_name, bank_code, bank_description, country) {
|
|
16
|
+
constructor(bank_name, bank_code, bank_description, country, bank_type) {
|
|
17
17
|
super();
|
|
18
18
|
this.bank_name = bank_name;
|
|
19
19
|
this.bank_code = bank_code;
|
|
20
20
|
this.bank_description = bank_description || '';
|
|
21
21
|
this.country = country || '';
|
|
22
22
|
this.is_active = true;
|
|
23
|
+
this.bank_type = bank_type || '';
|
|
23
24
|
}
|
|
24
25
|
};
|
|
25
26
|
exports.BankNames = BankNames;
|
|
@@ -39,11 +40,15 @@ __decorate([
|
|
|
39
40
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
40
41
|
__metadata("design:type", String)
|
|
41
42
|
], BankNames.prototype, "country", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], BankNames.prototype, "bank_type", void 0);
|
|
42
47
|
__decorate([
|
|
43
48
|
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
44
49
|
__metadata("design:type", Boolean)
|
|
45
50
|
], BankNames.prototype, "is_active", void 0);
|
|
46
51
|
exports.BankNames = BankNames = __decorate([
|
|
47
52
|
(0, typeorm_1.Entity)({ name: 'bank_names' }),
|
|
48
|
-
__metadata("design:paramtypes", [String, String, String, String])
|
|
53
|
+
__metadata("design:paramtypes", [String, String, String, String, String])
|
|
49
54
|
], BankNames);
|
|
@@ -4,7 +4,8 @@ export declare enum FinancialApprovalStatus {
|
|
|
4
4
|
PENDING = "Pending",
|
|
5
5
|
APPROVED = "Approved",
|
|
6
6
|
REJECTED = "Rejected",
|
|
7
|
-
SKIPPED = "Skipped"
|
|
7
|
+
SKIPPED = "Skipped",
|
|
8
|
+
IN_PROGRESS = "In Progress"
|
|
8
9
|
}
|
|
9
10
|
export declare class FinancialApprovals extends BaseModel {
|
|
10
11
|
financial_request_id: number;
|
|
@@ -19,6 +19,7 @@ var FinancialApprovalStatus;
|
|
|
19
19
|
FinancialApprovalStatus["APPROVED"] = "Approved";
|
|
20
20
|
FinancialApprovalStatus["REJECTED"] = "Rejected";
|
|
21
21
|
FinancialApprovalStatus["SKIPPED"] = "Skipped";
|
|
22
|
+
FinancialApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
22
23
|
})(FinancialApprovalStatus || (exports.FinancialApprovalStatus = FinancialApprovalStatus = {}));
|
|
23
24
|
let FinancialApprovals = class FinancialApprovals extends BaseModel_1.BaseModel {
|
|
24
25
|
constructor(financial_request_id, level, approver_role_id, approval_status, department_id, section_id, approved_by) {
|
package/dist/models/user.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export declare class User extends BaseModel {
|
|
|
31
31
|
passport_number?: string;
|
|
32
32
|
personal_email?: string;
|
|
33
33
|
extension_number?: number;
|
|
34
|
+
fax_number?: string;
|
|
34
35
|
diplomatic_name?: string;
|
|
35
36
|
civil_employee_id?: number;
|
|
36
37
|
qualification?: string;
|
|
@@ -39,5 +40,6 @@ export declare class User extends BaseModel {
|
|
|
39
40
|
children1_name?: string;
|
|
40
41
|
children2_name?: string;
|
|
41
42
|
language_preferences?: string;
|
|
42
|
-
|
|
43
|
+
category: "FM" | "Embassy";
|
|
44
|
+
constructor(employee_id?: number, employee_name?: string, employee_arabic_name?: string, date_of_birth?: string, region_of_birth?: string, country_of_birth?: string, date_of_joining?: string, last_promotion_date?: string, gender?: string, marital_status?: string, nationality?: string, email?: string, blood_group?: string, national_id?: number, mobile?: string, department?: number, section?: number, grade?: number, location?: string, country?: string, is_admin?: boolean, division?: number, reporting_to?: number, address?: string, residential_status?: string, religion?: string, designation?: number, avatar?: string, passport_number?: string, personal_email?: string, extension_number?: number, fax_number?: string, diplomatic_name?: string, civil_employee_id?: number, qualification?: string, father_name?: string, spouse_name?: string, children1_name?: string, children2_name?: string, language_preferences?: string, category?: "FM" | "Embassy");
|
|
43
45
|
}
|
package/dist/models/user.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.User = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
let User = class User extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(employee_id, employee_name, employee_arabic_name, date_of_birth, region_of_birth, country_of_birth, date_of_joining, last_promotion_date, gender, marital_status, nationality, email, blood_group, national_id, mobile, department, section, grade, location, country, is_admin, division, reporting_to, address, residential_status, religion, designation, avatar, passport_number, personal_email, extension_number, diplomatic_name, civil_employee_id, qualification, father_name, spouse_name, children1_name, children2_name, language_preferences) {
|
|
16
|
+
constructor(employee_id, employee_name, employee_arabic_name, date_of_birth, region_of_birth, country_of_birth, date_of_joining, last_promotion_date, gender, marital_status, nationality, email, blood_group, national_id, mobile, department, section, grade, location, country, is_admin, division, reporting_to, address, residential_status, religion, designation, avatar, passport_number, personal_email, extension_number, fax_number, diplomatic_name, civil_employee_id, qualification, father_name, spouse_name, children1_name, children2_name, language_preferences, category) {
|
|
17
17
|
super();
|
|
18
18
|
this.employee_id = employee_id;
|
|
19
19
|
this.employee_name = employee_name;
|
|
@@ -46,6 +46,7 @@ let User = class User extends BaseModel_1.BaseModel {
|
|
|
46
46
|
this.passport_number = passport_number;
|
|
47
47
|
this.personal_email = personal_email;
|
|
48
48
|
this.extension_number = extension_number;
|
|
49
|
+
this.fax_number = fax_number;
|
|
49
50
|
this.diplomatic_name = diplomatic_name;
|
|
50
51
|
this.civil_employee_id = civil_employee_id;
|
|
51
52
|
this.qualification = qualification;
|
|
@@ -54,6 +55,7 @@ let User = class User extends BaseModel_1.BaseModel {
|
|
|
54
55
|
this.children1_name = children1_name;
|
|
55
56
|
this.children2_name = children2_name;
|
|
56
57
|
this.language_preferences = language_preferences;
|
|
58
|
+
this.category = category || "FM";
|
|
57
59
|
}
|
|
58
60
|
};
|
|
59
61
|
exports.User = User;
|
|
@@ -181,6 +183,10 @@ __decorate([
|
|
|
181
183
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
182
184
|
__metadata("design:type", Number)
|
|
183
185
|
], User.prototype, "extension_number", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
|
|
188
|
+
__metadata("design:type", String)
|
|
189
|
+
], User.prototype, "fax_number", void 0);
|
|
184
190
|
__decorate([
|
|
185
191
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
186
192
|
__metadata("design:type", String)
|
|
@@ -213,7 +219,11 @@ __decorate([
|
|
|
213
219
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
214
220
|
__metadata("design:type", String)
|
|
215
221
|
], User.prototype, "language_preferences", void 0);
|
|
222
|
+
__decorate([
|
|
223
|
+
(0, typeorm_1.Column)({ type: "enum", enum: ["FM", "Embassy"], nullable: false, default: "FM" }),
|
|
224
|
+
__metadata("design:type", String)
|
|
225
|
+
], User.prototype, "category", void 0);
|
|
216
226
|
exports.User = User = __decorate([
|
|
217
227
|
(0, typeorm_1.Entity)({ name: 'users' }),
|
|
218
|
-
__metadata("design:paramtypes", [Number, String, String, String, String, String, String, String, String, String, String, String, String, Number, String, Number, Number, Number, String, String, Boolean, Number, Number, String, String, String, Number, String, String, String, Number, String, Number, String, String, String, String, String, String])
|
|
228
|
+
__metadata("design:paramtypes", [Number, String, String, String, String, String, String, String, String, String, String, String, String, Number, String, Number, Number, Number, String, String, Boolean, Number, Number, String, String, String, Number, String, String, String, Number, String, String, Number, String, String, String, String, String, String, String])
|
|
219
229
|
], User);
|
package/package.json
CHANGED
|
@@ -15,6 +15,9 @@ export class BankNames extends BaseModel {
|
|
|
15
15
|
|
|
16
16
|
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
17
17
|
country: string;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
20
|
+
bank_type: string;
|
|
18
21
|
|
|
19
22
|
@Column({ type: 'boolean', default: true })
|
|
20
23
|
is_active: boolean;
|
|
@@ -23,7 +26,8 @@ export class BankNames extends BaseModel {
|
|
|
23
26
|
bank_name: string,
|
|
24
27
|
bank_code: string,
|
|
25
28
|
bank_description?: string,
|
|
26
|
-
country?: string
|
|
29
|
+
country?: string,
|
|
30
|
+
bank_type? : string
|
|
27
31
|
) {
|
|
28
32
|
super();
|
|
29
33
|
this.bank_name = bank_name;
|
|
@@ -31,6 +35,7 @@ export class BankNames extends BaseModel {
|
|
|
31
35
|
this.bank_description = bank_description || '';
|
|
32
36
|
this.country = country || '';
|
|
33
37
|
this.is_active = true;
|
|
38
|
+
this.bank_type = bank_type || ''
|
|
34
39
|
}
|
|
35
40
|
}
|
|
36
41
|
|
package/src/models/user.ts
CHANGED
|
@@ -97,6 +97,9 @@ export class User extends BaseModel {
|
|
|
97
97
|
@Column({ nullable: true })
|
|
98
98
|
extension_number?: number;
|
|
99
99
|
|
|
100
|
+
@Column({ type: "varchar", length: 20, nullable: true })
|
|
101
|
+
fax_number?: string; // Optional
|
|
102
|
+
|
|
100
103
|
@Column({ nullable: true })
|
|
101
104
|
diplomatic_name?: string;
|
|
102
105
|
|
|
@@ -123,6 +126,9 @@ export class User extends BaseModel {
|
|
|
123
126
|
@Column({ nullable: true })
|
|
124
127
|
language_preferences?: string;
|
|
125
128
|
|
|
129
|
+
@Column({ type: "enum", enum: ["FM", "Embassy"], nullable: false, default: "FM" })
|
|
130
|
+
category: "FM" | "Embassy"; // Mandatory
|
|
131
|
+
|
|
126
132
|
constructor(
|
|
127
133
|
employee_id?: number,
|
|
128
134
|
employee_name?: string,
|
|
@@ -155,6 +161,7 @@ export class User extends BaseModel {
|
|
|
155
161
|
passport_number?: string,
|
|
156
162
|
personal_email?: string,
|
|
157
163
|
extension_number?: number,
|
|
164
|
+
fax_number?: string,
|
|
158
165
|
diplomatic_name?: string,
|
|
159
166
|
civil_employee_id?: number,
|
|
160
167
|
qualification?: string,
|
|
@@ -163,6 +170,7 @@ export class User extends BaseModel {
|
|
|
163
170
|
children1_name?: string,
|
|
164
171
|
children2_name?: string,
|
|
165
172
|
language_preferences?: string,
|
|
173
|
+
category?: "FM" | "Embassy",
|
|
166
174
|
) {
|
|
167
175
|
super();
|
|
168
176
|
this.employee_id = employee_id;
|
|
@@ -196,6 +204,7 @@ export class User extends BaseModel {
|
|
|
196
204
|
this.passport_number = passport_number;
|
|
197
205
|
this.personal_email = personal_email;
|
|
198
206
|
this.extension_number = extension_number;
|
|
207
|
+
this.fax_number = fax_number;
|
|
199
208
|
this.diplomatic_name = diplomatic_name;
|
|
200
209
|
this.civil_employee_id = civil_employee_id;
|
|
201
210
|
this.qualification = qualification;
|
|
@@ -204,5 +213,6 @@ export class User extends BaseModel {
|
|
|
204
213
|
this.children1_name = children1_name;
|
|
205
214
|
this.children2_name = children2_name;
|
|
206
215
|
this.language_preferences = language_preferences;
|
|
216
|
+
this.category = category || "FM";
|
|
207
217
|
}
|
|
208
218
|
}
|