@platform-modules/foreign-ministry 1.1.104 → 1.1.105

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 (168) hide show
  1. package/.env +11 -3
  2. package/dist/data-source.js +48 -14
  3. package/dist/index.d.ts +33 -7
  4. package/dist/index.js +48 -7
  5. package/dist/models/CountryMasterModel.d.ts +11 -0
  6. package/dist/models/CountryMasterModel.js +55 -0
  7. package/dist/models/DiplomaticTitlesMasterModel.d.ts +3 -7
  8. package/dist/models/DiplomaticTitlesMasterModel.js +9 -16
  9. package/dist/models/EarlyCheckoutBalanceModel.d.ts +7 -0
  10. package/dist/models/{DiplomaticClubCardChatModel.js → EarlyCheckoutBalanceModel.js} +21 -18
  11. package/dist/models/EarlyCheckoutConfigModel.d.ts +18 -0
  12. package/dist/models/EarlyCheckoutConfigModel.js +80 -0
  13. package/dist/models/EarlyCheckoutTransactionModel.d.ts +19 -0
  14. package/dist/models/EarlyCheckoutTransactionModel.js +66 -0
  15. package/dist/models/FinancialApprovalsModel.d.ts +1 -0
  16. package/dist/models/FinancialApprovalsModel.js +4 -0
  17. package/dist/models/FinancialGradeModel.d.ts +4 -3
  18. package/dist/models/FinancialGradeModel.js +12 -7
  19. package/dist/models/GeneralServiceApprovalsModel.d.ts +4 -1
  20. package/dist/models/GeneralServiceApprovalsModel.js +9 -0
  21. package/dist/models/HelpContentMappedCategoriesModel.d.ts +6 -0
  22. package/dist/models/HelpContentMappedCategoriesModel.js +34 -0
  23. package/dist/models/HelpContentMappedTagsModel.d.ts +6 -0
  24. package/dist/models/HelpContentMappedTagsModel.js +34 -0
  25. package/dist/models/HelpContentTagsModel.d.ts +5 -0
  26. package/dist/models/HelpContentTagsModel.js +29 -0
  27. package/dist/models/LeaveApprovalsModel.d.ts +4 -2
  28. package/dist/models/LeaveApprovalsModel.js +8 -2
  29. package/dist/models/LeaveBalanceModel.d.ts +8 -0
  30. package/dist/models/{PassportRequestChatModel.js → LeaveBalanceModel.js} +23 -23
  31. package/dist/models/LeaveConfigGradesModel.d.ts +19 -0
  32. package/dist/models/LeaveConfigGradesModel.js +100 -0
  33. package/dist/models/LeaveConfigModel.d.ts +20 -0
  34. package/dist/models/LeaveConfigModel.js +90 -0
  35. package/dist/models/LeaveTransactionModel.d.ts +20 -0
  36. package/dist/models/LeaveTransactionModel.js +71 -0
  37. package/dist/models/LeaveTypesModel.d.ts +7 -1
  38. package/dist/models/LeaveTypesModel.js +20 -5
  39. package/dist/models/M&CMasterModel.d.ts +9 -0
  40. package/dist/models/M&CMasterModel.js +49 -0
  41. package/dist/models/NationalityMasterModel.d.ts +10 -0
  42. package/dist/models/{DiplomaticClubCardAttachmentModel.js → NationalityMasterModel.js} +29 -22
  43. package/dist/models/OfficeMasterModel.d.ts +12 -0
  44. package/dist/models/OfficeMasterModel.js +59 -0
  45. package/dist/models/ProfileUpdateRequestsModel.d.ts +106 -0
  46. package/dist/models/ProfileUpdateRequestsModel.js +409 -0
  47. package/dist/models/RegisterVacancyApprovalModel.d.ts +23 -0
  48. package/dist/models/RegisterVacancyApprovalModel.js +83 -0
  49. package/dist/models/RegisterVacancyAttachmentModel.d.ts +11 -0
  50. package/dist/models/RegisterVacancyAttachmentModel.js +52 -0
  51. package/dist/models/RegisterVacancyChatModel.d.ts +19 -0
  52. package/dist/models/RegisterVacancyChatModel.js +78 -0
  53. package/dist/models/RegisterVacancyRequestModel.d.ts +22 -0
  54. package/dist/models/RegisterVacancyRequestModel.js +76 -0
  55. package/dist/models/RegisterVacancyWorkflowModel.d.ts +17 -0
  56. package/dist/models/RegisterVacancyWorkflowModel.js +62 -0
  57. package/dist/models/StationeryMaterialMasterModel.d.ts +11 -0
  58. package/dist/models/StationeryMaterialMasterModel.js +56 -0
  59. package/dist/models/StationeryRequestsModel.d.ts +26 -0
  60. package/dist/models/StationeryRequestsModel.js +89 -0
  61. package/dist/models/StayAfterHoursBalanceModel.d.ts +7 -0
  62. package/dist/models/StayAfterHoursBalanceModel.js +39 -0
  63. package/dist/models/StayAfterHoursTransactionModel.d.ts +19 -0
  64. package/dist/models/StayAfterHoursTransactionModel.js +66 -0
  65. package/dist/models/TelephoneDirectoryModel.d.ts +3 -2
  66. package/dist/models/TelephoneDirectoryModel.js +11 -6
  67. package/dist/models/TransferMissionApprovalModel.d.ts +2 -0
  68. package/dist/models/TransferMissionApprovalModel.js +8 -0
  69. package/dist/models/UpdateAttendanceApprovalModel.d.ts +1 -0
  70. package/dist/models/UpdateAttendanceApprovalModel.js +4 -0
  71. package/dist/models/UserEducationDetailsModel.d.ts +12 -0
  72. package/dist/models/UserEducationDetailsModel.js +44 -0
  73. package/dist/models/UserEmploymentDetailsModel.d.ts +50 -0
  74. package/dist/models/UserEmploymentDetailsModel.js +193 -0
  75. package/dist/models/UserPersonalDetailsModel.d.ts +48 -0
  76. package/dist/models/UserPersonalDetailsModel.js +185 -0
  77. package/dist/models/questionTagsModel.d.ts +6 -0
  78. package/dist/models/questionTagsModel.js +34 -0
  79. package/dist/models/user.d.ts +2 -1
  80. package/dist/models/user.js +7 -2
  81. package/package.json +1 -1
  82. package/src/data-source.ts +52 -16
  83. package/src/index.ts +33 -7
  84. package/src/models/CountryMasterModel.ts +34 -0
  85. package/src/models/DiplomaticTitlesMasterModel.ts +9 -20
  86. package/src/models/EarlyCheckoutBalanceModel.ts +22 -0
  87. package/src/models/EarlyCheckoutConfigModel.ts +57 -0
  88. package/src/models/EarlyCheckoutTransactionModel.ts +53 -0
  89. package/src/models/FinancialApprovalsModel.ts +4 -0
  90. package/src/models/FinancialGradeModel.ts +13 -8
  91. package/src/models/GeneralServiceApprovalsModel.ts +10 -1
  92. package/src/models/LeaveApprovalsModel.ts +7 -2
  93. package/src/models/LeaveBalanceModel.ts +26 -0
  94. package/src/models/LeaveConfigGradesModel.ts +72 -0
  95. package/src/models/LeaveConfigModel.ts +64 -0
  96. package/src/models/LeaveTransactionModel.ts +58 -0
  97. package/src/models/LeaveTypesModel.ts +27 -11
  98. package/src/models/M&CMasterModel.ts +37 -0
  99. package/src/models/NationalityMasterModel.ts +31 -0
  100. package/src/models/OfficeMasterModel.ts +37 -0
  101. package/src/models/ProfileUpdateRequestsModel.ts +317 -0
  102. package/src/models/RegisterVacancyApprovalModel.ts +55 -0
  103. package/src/models/RegisterVacancyAttachmentModel.ts +31 -0
  104. package/src/models/RegisterVacancyChatModel.ts +66 -0
  105. package/src/models/RegisterVacancyRequestModel.ts +53 -0
  106. package/src/models/RegisterVacancyWorkflowModel.ts +39 -0
  107. package/src/models/StationeryMaterialMasterModel.ts +35 -0
  108. package/src/models/StationeryRequestsModel.ts +62 -0
  109. package/src/models/StayAfterHoursBalanceModel.ts +22 -0
  110. package/src/models/StayAfterHoursTransactionModel.ts +53 -0
  111. package/src/models/TelephoneDirectoryModel.ts +8 -4
  112. package/src/models/TransferMissionApprovalModel.ts +6 -0
  113. package/src/models/TransferMissionRequestModel.ts +1 -0
  114. package/src/models/UpdateAttendanceApprovalModel.ts +3 -0
  115. package/src/models/UserEducationDetailsModel.ts +26 -0
  116. package/src/models/UserEmploymentDetailsModel.ts +141 -0
  117. package/src/models/UserPersonalDetailsModel.ts +137 -0
  118. package/src/models/user.ts +5 -0
  119. package/dist/models/DiplomaticApprovalsModel.d.ts +0 -24
  120. package/dist/models/DiplomaticApprovalsModel.js +0 -94
  121. package/dist/models/DiplomaticAttachmentsModel.d.ts +0 -11
  122. package/dist/models/DiplomaticAttachmentsModel.js +0 -53
  123. package/dist/models/DiplomaticChatsModel.d.ts +0 -20
  124. package/dist/models/DiplomaticChatsModel.js +0 -70
  125. package/dist/models/DiplomaticClubCardApprovalModel.d.ts +0 -16
  126. package/dist/models/DiplomaticClubCardApprovalModel.js +0 -58
  127. package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +0 -9
  128. package/dist/models/DiplomaticClubCardChatModel.d.ts +0 -7
  129. package/dist/models/DiplomaticClubCardMemberModel.d.ts +0 -13
  130. package/dist/models/DiplomaticClubCardMemberModel.js +0 -60
  131. package/dist/models/DiplomaticClubCardMembersModel.d.ts +0 -26
  132. package/dist/models/DiplomaticClubCardMembersModel.js +0 -85
  133. package/dist/models/DiplomaticClubCardRequestModel.d.ts +0 -33
  134. package/dist/models/DiplomaticClubCardRequestModel.js +0 -98
  135. package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +0 -12
  136. package/dist/models/DiplomaticClubCardWorkFlowModel.js +0 -42
  137. package/dist/models/DiplomaticClubSubscriptionMasterModel.d.ts +0 -12
  138. package/dist/models/DiplomaticClubSubscriptionMasterModel.js +0 -64
  139. package/dist/models/DiplomaticRequestsModel.d.ts +0 -54
  140. package/dist/models/DiplomaticRequestsModel.js +0 -186
  141. package/dist/models/DiplomaticServiceDetailsModel.d.ts +0 -20
  142. package/dist/models/DiplomaticServiceDetailsModel.js +0 -65
  143. package/dist/models/DiplomaticSettingsModel.d.ts +0 -11
  144. package/dist/models/DiplomaticSettingsModel.js +0 -59
  145. package/dist/models/DiplomaticTitleModel.d.ts +0 -12
  146. package/dist/models/DiplomaticTitleModel.js +0 -45
  147. package/dist/models/DiplomaticWorkFlowModel.d.ts +0 -20
  148. package/dist/models/DiplomaticWorkFlowModel.js +0 -77
  149. package/dist/models/PassportRequestApprovalModel.d.ts +0 -22
  150. package/dist/models/PassportRequestApprovalModel.js +0 -91
  151. package/dist/models/PassportRequestAttachmentModel.d.ts +0 -10
  152. package/dist/models/PassportRequestAttachmentModel.js +0 -54
  153. package/dist/models/PassportRequestChatModel.d.ts +0 -8
  154. package/dist/models/PassportRequestDependentModel.d.ts +0 -20
  155. package/dist/models/PassportRequestDependentModel.js +0 -85
  156. package/dist/models/PassportRequestModel.d.ts +0 -40
  157. package/dist/models/PassportRequestModel.js +0 -128
  158. package/dist/models/PassportRequestWorkFlowModel.d.ts +0 -15
  159. package/dist/models/PassportRequestWorkFlowModel.js +0 -60
  160. package/dist/models/SubscriptionAmountModel.d.ts +0 -67
  161. package/dist/models/SubscriptionAmountModel.js +0 -114
  162. package/src/models/DiplomaticApprovalsModel.ts +0 -77
  163. package/src/models/DiplomaticAttachmentsModel.ts +0 -37
  164. package/src/models/DiplomaticChatsModel.ts +0 -53
  165. package/src/models/DiplomaticClubCardMembersModel.ts +0 -71
  166. package/src/models/DiplomaticClubSubscriptionMasterModel.ts +0 -50
  167. package/src/models/DiplomaticRequestsModel.ts +0 -154
  168. package/src/models/DiplomaticWorkFlowModel.ts +0 -59
@@ -1,154 +0,0 @@
1
- import { Column, Entity, OneToOne, OneToMany, ManyToOne, JoinColumn } from "typeorm";
2
- import { BaseModel } from './BaseModel';
3
-
4
- // Import types only (not for runtime)
5
- import type { DiplomaticApprovals } from './DiplomaticApprovalsModel';
6
- import type { DiplomaticWorkFlow } from './DiplomaticWorkFlowModel';
7
- import type { DiplomaticAttachments } from './DiplomaticAttachmentsModel';
8
- import type { DiplomaticChats } from './DiplomaticChatsModel';
9
- import type { DiplomaticClubCardMembers } from './DiplomaticClubCardMembersModel';
10
-
11
- export enum DiplomaticRequestStatus {
12
- DRAFT = "Draft",
13
- SUBMITTED = "Submitted",
14
- PENDING = "Pending",
15
- IN_PROGRESS = "In Progress",
16
- APPROVED = "Approved",
17
- REJECTED = "Rejected",
18
- COMPLETED = "Completed",
19
- CANCELLED = "Cancelled"
20
- }
21
-
22
- @Entity({ name: 'diplomatic_requests' })
23
- export class DiplomaticRequests extends BaseModel {
24
- @Column({ type: 'int' })
25
- user_id: number;
26
-
27
- @Column({ type: 'varchar', length: 100 })
28
- employee_id: string;
29
-
30
- @Column({ type: 'varchar', length: 255 })
31
- employee_name: string;
32
-
33
- @Column({ type: 'varchar', length: 100, nullable: true })
34
- grade: string | null;
35
-
36
- @Column({ type: 'int', nullable: true })
37
- designation_id: number | null;
38
-
39
- @Column({ type: 'int', nullable: true })
40
- department_id: number | null;
41
-
42
- @Column({ type: 'varchar', length: 255 })
43
- email_address: string;
44
-
45
- @Column({ type: 'varchar', length: 20 })
46
- contact_number: string;
47
-
48
- @Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
49
- request_date: Date;
50
-
51
- @Column({ type: 'enum', enum: DiplomaticRequestStatus, default: DiplomaticRequestStatus.PENDING })
52
- request_status: DiplomaticRequestStatus;
53
-
54
- @Column({ type: 'timestamp', nullable: true })
55
- request_close_date: Date | null;
56
-
57
- @Column({ type: 'date', nullable: true })
58
- end_date: Date | null;
59
-
60
- @Column({ type: 'text', nullable: true })
61
- remarks: string | null;
62
-
63
- @Column({ type: 'int', nullable: true })
64
- current_approval_level: number | null;
65
-
66
- @Column({ type: 'int', nullable: true })
67
- current_approver_id: number | null;
68
-
69
- @Column({ type: 'int', nullable: true })
70
- service_id: number | null;
71
-
72
- @Column({ type: 'int', nullable: true })
73
- sub_service_id: number | null;
74
-
75
- @Column({ type: 'varchar', length: 255, nullable: true })
76
- member_name: string | null;
77
-
78
- @Column({ type: 'varchar', length: 100, nullable: true })
79
- membership_type: string | null;
80
-
81
- @Column({ type: 'int', nullable: true })
82
- diplomatic_title_id: number | null;
83
-
84
- @Column({ type: 'varchar', length: 255, nullable: true })
85
- location: string | null;
86
-
87
- @Column({ type: 'varchar', length: 100, nullable: true })
88
- request_type: string | null;
89
-
90
- @Column({ type: 'date', nullable: true })
91
- expiry_date: Date | null;
92
-
93
- @Column({ type: 'varchar', length: 500, nullable: true })
94
- photo_url: string | null;
95
-
96
- @Column({ type: 'varchar', length: 100, nullable: true })
97
- membership_id: string | null;
98
-
99
- @Column({ type: 'varchar', length: 255, nullable: true })
100
- organization: string | null;
101
-
102
- @Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
103
- subscription_amount: number | null;
104
-
105
- @Column({ type: 'int', nullable: true })
106
- section_id: number | null;
107
-
108
- @Column({ type: 'int', nullable: true })
109
- reporting_manager: number | null;
110
-
111
- @Column({ type: 'varchar', length: 255, nullable: true })
112
- workflow_execution_id: string | null;
113
-
114
- @OneToMany('DiplomaticClubCardMembers', 'diplomaticRequest', { nullable: true })
115
- diplomaticClubCardMembers?: DiplomaticClubCardMembers[];
116
-
117
- @OneToMany('DiplomaticApprovals', 'diplomaticRequest')
118
- approvals?: DiplomaticApprovals[];
119
-
120
- @OneToMany('DiplomaticWorkFlow', 'diplomaticRequest')
121
- workflows?: DiplomaticWorkFlow[];
122
-
123
- @OneToMany('DiplomaticAttachments', 'diplomaticRequest')
124
- attachments?: DiplomaticAttachments[];
125
-
126
- @OneToMany('DiplomaticChats', 'diplomaticRequest')
127
- chats?: DiplomaticChats[];
128
-
129
- constructor(
130
- user_id: number,
131
- employee_id: string,
132
- employee_name: string,
133
- email_address: string,
134
- contact_number: string,
135
- service_id: number | null,
136
- sub_service_id: number | null,
137
- section_id: number | null,
138
- reporting_manager: number | null
139
- ) {
140
- super();
141
- this.user_id = user_id;
142
- this.employee_id = employee_id;
143
- this.employee_name = employee_name;
144
- this.email_address = email_address;
145
- this.contact_number = contact_number;
146
- this.request_date = new Date();
147
- this.request_status = DiplomaticRequestStatus.PENDING;
148
- this.service_id = service_id;
149
- this.sub_service_id = sub_service_id;
150
- this.section_id = section_id;
151
- this.reporting_manager = reporting_manager;
152
- }
153
- }
154
-
@@ -1,59 +0,0 @@
1
- import { Column, Entity, ManyToOne, JoinColumn } from "typeorm";
2
- import { BaseModel } from './BaseModel';
3
- import { DiplomaticRequests } from "./DiplomaticRequestsModel";
4
-
5
- export enum DiplomaticWorkFlowStatus {
6
- COMPLETED = "Completed",
7
- NOT_YET_STARTED = "Not Yet Started",
8
- PENDING = "Pending"
9
- }
10
-
11
- @Entity({ name: 'diplomatic_workflows' })
12
- export class DiplomaticWorkFlow extends BaseModel {
13
- @Column({ type: 'int' })
14
- diplomatic_request_id: number;
15
-
16
- @Column({ type: 'integer', nullable: true })
17
- service_id: number | null;
18
-
19
- @Column({ type: 'integer', nullable: true })
20
- sub_service_id: number | null;
21
-
22
- @Column({ type: 'varchar', length: 500, nullable: false })
23
- content: string;
24
-
25
- @Column({ type: 'enum', enum: DiplomaticWorkFlowStatus, default: DiplomaticWorkFlowStatus.NOT_YET_STARTED })
26
- status: DiplomaticWorkFlowStatus;
27
-
28
- @Column({ type: 'int', nullable: true })
29
- user_id: number | null;
30
-
31
- @Column({ type: 'int', nullable: true })
32
- step_order: number | null;
33
-
34
- @Column({ type: 'int', nullable: true })
35
- diplomatic_approval_id: number | null;
36
-
37
- @Column({ type: 'int', nullable: true })
38
- approved_by_role_id: number | null;
39
-
40
- @ManyToOne(() => DiplomaticRequests, dr => dr.workflows)
41
- @JoinColumn({ name: 'diplomatic_request_id' })
42
- diplomaticRequest?: DiplomaticRequests;
43
-
44
- constructor(
45
- diplomatic_request_id: number,
46
- content: string,
47
- status: DiplomaticWorkFlowStatus,
48
- user_id: number | null,
49
- step_order: number | null
50
- ) {
51
- super();
52
- this.diplomatic_request_id = diplomatic_request_id;
53
- this.content = content;
54
- this.status = status;
55
- this.user_id = user_id;
56
- this.step_order = step_order;
57
- }
58
- }
59
-