@platform-modules/foreign-ministry 1.1.4 → 1.1.5

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.
@@ -15,6 +15,7 @@ export declare class User extends BaseModel {
15
15
  blood_group?: string;
16
16
  national_id?: number;
17
17
  mobile?: string;
18
+ office_number?: string;
18
19
  department?: number;
19
20
  section?: number;
20
21
  designation?: number;
@@ -41,5 +42,5 @@ export declare class User extends BaseModel {
41
42
  children2_name?: string;
42
43
  language_preferences?: string;
43
44
  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");
45
+ 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");
45
46
  }
@@ -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, fax_number, diplomatic_name, civil_employee_id, qualification, father_name, spouse_name, children1_name, children2_name, language_preferences, category) {
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) {
17
17
  super();
18
18
  this.employee_id = employee_id;
19
19
  this.employee_name = employee_name;
@@ -30,6 +30,7 @@ let User = class User extends BaseModel_1.BaseModel {
30
30
  this.blood_group = blood_group;
31
31
  this.national_id = national_id;
32
32
  this.mobile = mobile;
33
+ this.office_number = office_number;
33
34
  this.department = department;
34
35
  this.section = section;
35
36
  this.grade = grade;
@@ -119,6 +120,10 @@ __decorate([
119
120
  (0, typeorm_1.Column)({ nullable: true }),
120
121
  __metadata("design:type", String)
121
122
  ], User.prototype, "mobile", void 0);
123
+ __decorate([
124
+ (0, typeorm_1.Column)({ nullable: true }),
125
+ __metadata("design:type", String)
126
+ ], User.prototype, "office_number", void 0);
122
127
  __decorate([
123
128
  (0, typeorm_1.Column)({ nullable: true }),
124
129
  __metadata("design:type", Number)
@@ -225,5 +230,5 @@ __decorate([
225
230
  ], User.prototype, "category", void 0);
226
231
  exports.User = User = __decorate([
227
232
  (0, typeorm_1.Entity)({ name: 'users' }),
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])
233
+ __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])
229
234
  ], User);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -49,6 +49,9 @@ export class User extends BaseModel {
49
49
  @Column({ nullable: true })
50
50
  mobile?: string;
51
51
 
52
+ @Column({ nullable: true })
53
+ office_number?: string;
54
+
52
55
  @Column({ nullable: true })
53
56
  department?: number;
54
57
 
@@ -145,6 +148,7 @@ export class User extends BaseModel {
145
148
  blood_group?: string,
146
149
  national_id?: number,
147
150
  mobile?: string,
151
+ office_number?: string,
148
152
  department?: number,
149
153
  section?: number,
150
154
  grade?: number,
@@ -188,6 +192,7 @@ export class User extends BaseModel {
188
192
  this.blood_group = blood_group;
189
193
  this.national_id = national_id;
190
194
  this.mobile = mobile;
195
+ this.office_number = office_number;
191
196
  this.department = department;
192
197
  this.section = section;
193
198
  this.grade = grade;