@platform-modules/foreign-ministry 1.3.79 → 1.3.80

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.
@@ -6,6 +6,8 @@ import { BaseModel } from './BaseModel';
6
6
  */
7
7
  export declare class UserEmploymentDetails extends BaseModel {
8
8
  user_id: number;
9
+ job_title: string | null;
10
+ man_power_number: string | null;
9
11
  date_of_decree_issuance: Date | null;
10
12
  civil_service_number: string | null;
11
13
  information_number: string | null;
@@ -27,6 +29,7 @@ export declare class UserEmploymentDetails extends BaseModel {
27
29
  entity_transferred_to: string | null;
28
30
  date_of_transfer_to: Date | null;
29
31
  job_description: string | null;
32
+ country_of_appointment: string | null;
30
33
  date_of_appointment: Date | null;
31
34
  appointment_grade: string | null;
32
35
  type_of_appointment: string | null;
@@ -24,6 +24,14 @@ __decorate([
24
24
  (0, typeorm_1.Column)({ type: 'int', nullable: false }),
25
25
  __metadata("design:type", Number)
26
26
  ], UserEmploymentDetails.prototype, "user_id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
29
+ __metadata("design:type", Object)
30
+ ], UserEmploymentDetails.prototype, "job_title", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
33
+ __metadata("design:type", Object)
34
+ ], UserEmploymentDetails.prototype, "man_power_number", void 0);
27
35
  __decorate([
28
36
  (0, typeorm_1.Column)({ type: 'date', nullable: true }),
29
37
  __metadata("design:type", Object)
@@ -108,6 +116,10 @@ __decorate([
108
116
  (0, typeorm_1.Column)({ type: 'text', nullable: true }),
109
117
  __metadata("design:type", Object)
110
118
  ], UserEmploymentDetails.prototype, "job_description", void 0);
119
+ __decorate([
120
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
121
+ __metadata("design:type", Object)
122
+ ], UserEmploymentDetails.prototype, "country_of_appointment", void 0);
111
123
  __decorate([
112
124
  (0, typeorm_1.Column)({ type: 'date', nullable: true }),
113
125
  __metadata("design:type", Object)
@@ -38,11 +38,20 @@ export declare class User extends BaseModel {
38
38
  qualification?: string;
39
39
  father_name?: string;
40
40
  spouse_name?: string;
41
- children1_name?: string;
42
- children2_name?: string;
41
+ father_age?: number;
42
+ mother_name?: string;
43
+ mother_age?: number;
44
+ spouse_age?: number;
45
+ children?: {
46
+ name: string;
47
+ age: number;
48
+ }[];
43
49
  language_preferences?: string;
44
50
  category: "FM" | "Embassy";
45
51
  mandc_number: number;
46
52
  is_services_blocked?: boolean;
47
- 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, office_number?: 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", mandc_number?: number, is_services_blocked?: boolean);
53
+ 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, office_number?: 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, father_age?: number, mother_name?: string, mother_age?: number, spouse_name?: string, spouse_age?: number, children?: {
54
+ name: string;
55
+ age: number;
56
+ }[], language_preferences?: string, category?: "FM" | "Embassy", mandc_number?: number, is_services_blocked?: boolean);
48
57
  }
@@ -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, office_number, 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, mandc_number, is_services_blocked) {
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, office_number, 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, father_age, mother_name, mother_age, spouse_name, spouse_age, children, language_preferences, category, mandc_number, is_services_blocked) {
17
17
  super();
18
18
  this.employee_id = employee_id;
19
19
  this.employee_name = employee_name;
@@ -52,9 +52,12 @@ let User = class User extends BaseModel_1.BaseModel {
52
52
  this.civil_employee_id = civil_employee_id;
53
53
  this.qualification = qualification;
54
54
  this.father_name = father_name;
55
+ this.father_age = father_age;
56
+ this.mother_name = mother_name;
57
+ this.mother_age = mother_age;
55
58
  this.spouse_name = spouse_name;
56
- this.children1_name = children1_name;
57
- this.children2_name = children2_name;
59
+ this.spouse_age = spouse_age;
60
+ this.children = children;
58
61
  this.language_preferences = language_preferences;
59
62
  this.category = category || "FM";
60
63
  this.mandc_number = mandc_number || 0;
@@ -215,13 +218,25 @@ __decorate([
215
218
  __metadata("design:type", String)
216
219
  ], User.prototype, "spouse_name", void 0);
217
220
  __decorate([
218
- (0, typeorm_1.Column)({ nullable: true }),
219
- __metadata("design:type", String)
220
- ], User.prototype, "children1_name", void 0);
221
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
222
+ __metadata("design:type", Number)
223
+ ], User.prototype, "father_age", void 0);
221
224
  __decorate([
222
225
  (0, typeorm_1.Column)({ nullable: true }),
223
226
  __metadata("design:type", String)
224
- ], User.prototype, "children2_name", void 0);
227
+ ], User.prototype, "mother_name", void 0);
228
+ __decorate([
229
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
230
+ __metadata("design:type", Number)
231
+ ], User.prototype, "mother_age", void 0);
232
+ __decorate([
233
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
234
+ __metadata("design:type", Number)
235
+ ], User.prototype, "spouse_age", void 0);
236
+ __decorate([
237
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
238
+ __metadata("design:type", Array)
239
+ ], User.prototype, "children", void 0);
225
240
  __decorate([
226
241
  (0, typeorm_1.Column)({ nullable: true }),
227
242
  __metadata("design:type", String)
@@ -240,5 +255,5 @@ __decorate([
240
255
  ], User.prototype, "is_services_blocked", void 0);
241
256
  exports.User = User = __decorate([
242
257
  (0, typeorm_1.Entity)({ name: 'users' }),
243
- __metadata("design:paramtypes", [Number, String, String, String, String, String, String, String, String, String, String, String, String, Number, String, 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, Number, Boolean])
258
+ __metadata("design:paramtypes", [Number, String, String, String, String, String, String, String, String, String, String, String, String, Number, String, String, Number, Number, Number, String, String, Boolean, Number, Number, String, String, String, Number, String, String, String, Number, String, String, Number, String, String, Number, String, Number, String, Number, Array, String, String, Number, Boolean])
244
259
  ], User);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.3.79",
3
+ "version": "1.3.80",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -12,6 +12,12 @@ export class UserEmploymentDetails extends BaseModel {
12
12
  user_id: number; // Foreign key to users table
13
13
 
14
14
  // Job Information
15
+ @Column({ type: 'varchar', length: 255, nullable: true })
16
+ job_title: string | null;
17
+
18
+ @Column({ type: 'varchar', length: 100, nullable: true })
19
+ man_power_number: string | null;
20
+
15
21
  @Column({ type: 'date', nullable: true })
16
22
  date_of_decree_issuance: Date | null;
17
23
 
@@ -77,6 +83,9 @@ export class UserEmploymentDetails extends BaseModel {
77
83
  job_description: string | null;
78
84
 
79
85
  // Appointment Information
86
+ @Column({ type: 'varchar', length: 255, nullable: true })
87
+ country_of_appointment: string | null;
88
+
80
89
  @Column({ type: 'date', nullable: true })
81
90
  date_of_appointment: Date | null;
82
91
 
@@ -118,12 +118,22 @@ export class User extends BaseModel {
118
118
 
119
119
  @Column({ nullable: true })
120
120
  spouse_name?: string;
121
+
122
+ @Column({ type: 'int', nullable: true })
123
+ father_age?: number;
121
124
 
122
125
  @Column({ nullable: true })
123
- children1_name?: string;
124
-
125
- @Column({ nullable: true })
126
- children2_name?: string;
126
+ mother_name?: string;
127
+
128
+ @Column({ type: 'int', nullable: true })
129
+ mother_age?: number;
130
+
131
+
132
+ @Column({ type: 'int', nullable: true })
133
+ spouse_age?: number;
134
+
135
+ @Column({ type: 'jsonb', nullable: true })
136
+ children?: { name: string; age: number }[];
127
137
 
128
138
 
129
139
  @Column({ nullable: true })
@@ -176,9 +186,12 @@ export class User extends BaseModel {
176
186
  civil_employee_id?: number,
177
187
  qualification?: string,
178
188
  father_name?: string,
189
+ father_age?: number,
190
+ mother_name?: string,
191
+ mother_age?: number,
179
192
  spouse_name?: string,
180
- children1_name?: string,
181
- children2_name?: string,
193
+ spouse_age?: number,
194
+ children?: { name: string; age: number }[],
182
195
  language_preferences?: string,
183
196
  category?: "FM" | "Embassy",
184
197
  mandc_number?: number,
@@ -222,9 +235,12 @@ export class User extends BaseModel {
222
235
  this.civil_employee_id = civil_employee_id;
223
236
  this.qualification = qualification;
224
237
  this.father_name = father_name;
238
+ this.father_age = father_age;
239
+ this.mother_name = mother_name;
240
+ this.mother_age = mother_age;
225
241
  this.spouse_name = spouse_name;
226
- this.children1_name = children1_name;
227
- this.children2_name = children2_name;
242
+ this.spouse_age = spouse_age;
243
+ this.children = children;
228
244
  this.language_preferences = language_preferences;
229
245
  this.category = category || "FM";
230
246
  this.mandc_number = mandc_number || 0;