@platform-modules/foreign-ministry 1.0.28 → 1.0.29

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.
Files changed (55) hide show
  1. package/.env +2 -2
  2. package/dist/data-source.js +42 -3
  3. package/dist/index.d.ts +14 -2
  4. package/dist/index.js +14 -2
  5. package/dist/models/ConversationModel.d.ts +16 -0
  6. package/dist/models/ConversationModel.js +64 -0
  7. package/dist/models/ConversationParticipantModel.d.ts +14 -0
  8. package/dist/models/ConversationParticipantModel.js +68 -0
  9. package/dist/models/DepartmentsModel.d.ts +7 -0
  10. package/dist/models/DepartmentsModel.js +39 -0
  11. package/dist/models/DesignationModel.d.ts +6 -0
  12. package/dist/models/DesignationModel.js +34 -0
  13. package/dist/models/DivisionModel.d.ts +6 -0
  14. package/dist/models/DivisionModel.js +34 -0
  15. package/dist/models/LeaveApprovalsModel.d.ts +15 -0
  16. package/dist/models/{LeaveApprovalDetailsModel.js → LeaveApprovalsModel.js} +23 -7
  17. package/dist/models/LeaveAttachmentsModel.d.ts +7 -0
  18. package/dist/models/LeaveAttachmentsModel.js +40 -0
  19. package/dist/models/LeaveChatModel.d.ts +7 -0
  20. package/dist/models/LeaveChatModel.js +40 -0
  21. package/dist/models/LeaveSettingsModel.d.ts +7 -0
  22. package/dist/models/{LeaveApprovalMatrixModel.js → LeaveSettingsModel.js} +14 -14
  23. package/dist/models/LeaveWorkFlowModel.d.ts +13 -0
  24. package/dist/models/LeaveWorkFlowModel.js +51 -0
  25. package/dist/models/MessageModel.d.ts +27 -0
  26. package/dist/models/MessageModel.js +108 -0
  27. package/dist/models/SectionModel.d.ts +8 -0
  28. package/dist/models/SectionModel.js +44 -0
  29. package/dist/models/faqsModel.d.ts +11 -0
  30. package/dist/models/faqsModel.js +57 -0
  31. package/dist/models/questionTagsModel.d.ts +6 -0
  32. package/dist/models/questionTagsModel.js +34 -0
  33. package/dist/models/user.d.ts +29 -16
  34. package/dist/models/user.js +99 -39
  35. package/package.json +1 -1
  36. package/src/data-source.ts +44 -3
  37. package/src/index.ts +15 -3
  38. package/src/models/ConversationModel.ts +48 -0
  39. package/src/models/ConversationParticipantModel.ts +51 -0
  40. package/src/models/DepartmentsModel.ts +26 -0
  41. package/src/models/DesignationModel.ts +19 -0
  42. package/src/models/DivisionModel.ts +19 -0
  43. package/src/models/LeaveApprovalsModel.ts +41 -0
  44. package/src/models/LeaveAttachmentsModel.ts +21 -0
  45. package/src/models/LeaveChatModel.ts +21 -0
  46. package/src/models/{LeaveApprovalMatrixModel.ts → LeaveSettingsModel.ts} +6 -6
  47. package/src/models/LeaveWorkFlowModel.ts +32 -0
  48. package/src/models/MessageModel.ts +93 -0
  49. package/src/models/SectionModel.ts +31 -0
  50. package/src/models/faqsModel.ts +43 -0
  51. package/src/models/questionTagsModel.ts +22 -0
  52. package/src/models/user.ts +111 -60
  53. package/dist/models/LeaveApprovalDetailsModel.d.ts +0 -8
  54. package/dist/models/LeaveApprovalMatrixModel.d.ts +0 -7
  55. package/src/models/LeaveApprovalDetailsModel.ts +0 -25
@@ -1,100 +1,151 @@
1
-
2
- import { Column, Entity ,BeforeInsert,BeforeUpdate } from "typeorm";
1
+ import { Column, Entity } from "typeorm";
3
2
  import { BaseModel } from './BaseModel';
4
3
 
5
4
  @Entity({ name: 'users' })
6
5
  export class User extends BaseModel {
7
6
 
7
+ @Column({ type: 'bigint', nullable: true })
8
+ employee_id?: number;
9
+
10
+ @Column({ nullable: true })
11
+ employee_name?: string;
12
+
8
13
  @Column({ nullable: true })
9
- first_name: string;
14
+ employee_arabic_name?: string;
15
+
16
+ @Column({ nullable: true, type: 'date' })
17
+ date_of_birth?: string;
10
18
 
11
19
  @Column({ nullable: true })
12
- last_name: string;
20
+ region_of_birth?: string;
13
21
 
14
22
  @Column({ nullable: true })
15
- full_name: string;
23
+ country_of_birth?: string;
24
+
25
+ @Column({ nullable: true, type: 'date' })
26
+ date_of_joining?: string;
27
+
28
+ @Column({ nullable: true ,type: 'date'})
29
+ last_promotion_date?: string;
16
30
 
17
31
  @Column({ nullable: true })
18
- password: string;
32
+ gender?: string;
19
33
 
20
34
  @Column({ nullable: true })
21
- mobile: string;
35
+ marital_status?: string;
22
36
 
23
37
  @Column({ nullable: true })
24
- email: string;
38
+ nationality?: string;
25
39
 
26
40
  @Column({ nullable: true })
27
- address: string;
41
+ email?: string;
28
42
 
29
43
  @Column({ nullable: true })
30
- city: string;
44
+ blood_group?: string;
45
+
46
+ @Column({ type: 'bigint', nullable: true })
47
+ national_id?: number;
31
48
 
32
49
  @Column({ nullable: true })
33
- state: string;
50
+ mobile?: string;
34
51
 
35
52
  @Column({ nullable: true })
36
- country: string;
53
+ department?: number;
37
54
 
38
55
  @Column({ nullable: true })
39
- pincode: string;
56
+ section?: number;
40
57
 
41
- @Column({ nullable: true, default: true })
42
- is_active: boolean;
58
+ @Column({ nullable: true })
59
+ designation?: number;
43
60
 
44
61
  @Column({ nullable: true })
45
- EncryptPassword: string;
62
+ grade?: number;
46
63
 
47
64
  @Column({ nullable: true })
48
- roleId: number;
65
+ location?: string;
49
66
 
50
- // @Column({ nullable: true })
51
- // contract_start_date: string;
67
+ @Column({ nullable: true })
68
+ country?: string;
52
69
 
53
- // @Column({ nullable: true })
54
- // contract_end_date: string;
70
+ @Column({ nullable: true , default: false})
71
+ is_admin?: boolean;
55
72
 
56
73
  @Column({ nullable: true })
57
- company: string;
74
+ division?: number;
58
75
 
59
- constructor(
60
- first_name: string,
61
- last_name: string,
62
- full_name: string,
63
- password: string,
64
- mobile: string,
65
- email: string,
66
- address: string,
67
- city: string,
68
- state: string,
69
- country: string,
70
- pincode: string,
71
- is_active: boolean,
72
- EncryptPassword: string,
73
- roleId: number,
74
- // contract_start_date: string,
75
- // contract_end_date: string,
76
- company: string
76
+ @Column({ nullable: true })
77
+ reporting_to?: number;
77
78
 
79
+ @Column({ nullable: true })
80
+ address?: string;
81
+
82
+ @Column({ nullable: true })
83
+ residential_status?: string;
84
+
85
+ @Column({ nullable: true })
86
+ religion?: string;
87
+
88
+ @Column({ nullable: true })
89
+ avatar?: string;
90
+
91
+ constructor(
92
+ employee_id?: number,
93
+ employee_name?: string,
94
+ employee_arabic_name?: string,
95
+ date_of_birth?: string,
96
+ region_of_birth?: string,
97
+ country_of_birth?: string,
98
+ date_of_joining?: string,
99
+ last_promotion_date?: string,
100
+ gender?: string,
101
+ marital_status?: string,
102
+ nationality?: string,
103
+ email?: string,
104
+ blood_group?: string,
105
+ national_id?: number,
106
+ mobile?: string,
107
+ department?: number,
108
+ section?: number,
109
+ grade?: number,
110
+ location?: string,
111
+ country?: string,
112
+ is_admin?: boolean,
113
+ division?: number,
114
+ reporting_to?: number,
115
+ address?: string,
116
+ residential_status?: string,
117
+ religion?: string,
118
+ designation?: number,
119
+ avatar?: string,
78
120
  ) {
79
121
  super();
80
- this.first_name = first_name,
81
- this.last_name = last_name,
82
- this.full_name = full_name ,
83
- this.password = password,
84
- this.EncryptPassword = EncryptPassword,
85
- this.mobile = mobile,
86
- this.email = email,
87
- this.is_active = is_active,
88
- this.address = address,
89
- this.city = city,
90
- this.state = state,
91
- this.country = country,
92
- this.pincode = pincode,
93
- this.roleId = roleId,
94
- // this.contract_start_date = contract_start_date,
95
- // this.contract_end_date = contract_end_date,
96
- this.company = company
122
+ this.employee_id = employee_id;
123
+ this.employee_name = employee_name;
124
+ this.employee_arabic_name = employee_arabic_name;
125
+ this.date_of_birth = date_of_birth;
126
+ this.region_of_birth = region_of_birth;
127
+ this.country_of_birth = country_of_birth;
128
+ this.date_of_joining = date_of_joining;
129
+ this.last_promotion_date = last_promotion_date;
130
+ this.gender = gender;
131
+ this.marital_status = marital_status;
132
+ this.nationality = nationality;
133
+ this.email = email;
134
+ this.blood_group = blood_group;
135
+ this.national_id = national_id;
136
+ this.mobile = mobile;
137
+ this.department = department;
138
+ this.section = section;
139
+ this.grade = grade;
140
+ this.location = location;
141
+ this.country = country;
142
+ this.is_admin = is_admin;
143
+ this.division = division;
144
+ this.reporting_to = reporting_to;
145
+ this.address = address;
146
+ this.residential_status = residential_status;
147
+ this.religion = religion;
148
+ this.designation = designation;
149
+ this.avatar = avatar;
97
150
  }
98
- }
99
-
100
-
151
+ }
@@ -1,8 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class LeaveApprovalDetails extends BaseModel {
3
- leave_request_id: number;
4
- level: number;
5
- approver_id: number;
6
- approval_status: number;
7
- constructor(leave_request_id: number, approver_id: number, approval_status: number, level: number);
8
- }
@@ -1,7 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class LeaveApprovalMatrix extends BaseModel {
3
- leave_type: number;
4
- level: number;
5
- approval_matrix: number;
6
- constructor(leave_type: number, level: number, approval_matrix: number);
7
- }
@@ -1,25 +0,0 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from './BaseModel';
3
- //This model is used to store the store the leave apporval details of the user for the leave request
4
- @Entity({ name: 'leave_approval_details' })
5
- export class LeaveApprovalDetails extends BaseModel {
6
- @Column({ type: 'int', nullable: false })
7
- leave_request_id: number;
8
-
9
- @Column({ type: 'int', nullable: false })
10
- level: number;
11
-
12
- @Column({ type: 'int', nullable: false })
13
- approver_id: number;
14
-
15
- @Column({ type: 'int', nullable: false })
16
- approval_status: number;
17
-
18
- constructor(leave_request_id: number, approver_id: number, approval_status: number, level: number) {
19
- super();
20
- this.leave_request_id = leave_request_id;
21
- this.approver_id = approver_id;
22
- this.approval_status = approval_status;
23
- this.level = level;
24
- }
25
- }