@platform-modules/foreign-ministry 1.1.76 → 1.1.78

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 (135) hide show
  1. package/.env +23 -3
  2. package/dist/data-source.js +32 -16
  3. package/dist/index.d.ts +25 -8
  4. package/dist/index.js +40 -8
  5. package/dist/models/EarlyCheckoutBalanceModel.d.ts +7 -0
  6. package/dist/models/EarlyCheckoutBalanceModel.js +39 -0
  7. package/dist/models/EarlyCheckoutConfigModel.d.ts +18 -0
  8. package/dist/models/EarlyCheckoutConfigModel.js +80 -0
  9. package/dist/models/EarlyCheckoutTransactionModel.d.ts +19 -0
  10. package/dist/models/EarlyCheckoutTransactionModel.js +66 -0
  11. package/dist/models/FinancialApprovalsModel.d.ts +1 -0
  12. package/dist/models/FinancialApprovalsModel.js +4 -0
  13. package/dist/models/FinancialGradeModel.d.ts +4 -3
  14. package/dist/models/FinancialGradeModel.js +12 -7
  15. package/dist/models/GeneralServiceApprovalsModel.d.ts +4 -1
  16. package/dist/models/GeneralServiceApprovalsModel.js +9 -0
  17. package/dist/models/LeaveApprovalDetailsModel.d.ts +13 -0
  18. package/dist/models/LeaveApprovalDetailsModel.js +51 -0
  19. package/dist/models/LeaveApprovalMatrixModel.d.ts +7 -0
  20. package/dist/models/{DiplomaticClubCardChatModel.js → LeaveApprovalMatrixModel.js} +18 -14
  21. package/dist/models/LeaveApprovalsModel.d.ts +2 -1
  22. package/dist/models/LeaveApprovalsModel.js +7 -2
  23. package/dist/models/LeaveBalanceModel.d.ts +8 -0
  24. package/dist/models/{PassportRequestChatModel.js → LeaveBalanceModel.js} +23 -23
  25. package/dist/models/LeaveConfigGradesModel.d.ts +19 -0
  26. package/dist/models/LeaveConfigGradesModel.js +100 -0
  27. package/dist/models/LeaveConfigModel.d.ts +20 -0
  28. package/dist/models/LeaveConfigModel.js +90 -0
  29. package/dist/models/LeaveTransactionModel.d.ts +20 -0
  30. package/dist/models/LeaveTransactionModel.js +71 -0
  31. package/dist/models/LeaveTypesModel.d.ts +7 -1
  32. package/dist/models/LeaveTypesModel.js +20 -5
  33. package/dist/models/M&CMasterModel.d.ts +9 -0
  34. package/dist/models/M&CMasterModel.js +49 -0
  35. package/dist/models/ProfileUpdateRequestsModel.d.ts +106 -0
  36. package/dist/models/ProfileUpdateRequestsModel.js +409 -0
  37. package/dist/models/StationeryMaterialMasterModel.d.ts +11 -0
  38. package/dist/models/{DiplomaticTitlesMasterModel.js → StationeryMaterialMasterModel.js} +25 -23
  39. package/dist/models/StationeryRequestsModel.d.ts +27 -0
  40. package/dist/models/StationeryRequestsModel.js +93 -0
  41. package/dist/models/StayAfterHoursBalanceModel.d.ts +7 -0
  42. package/dist/models/StayAfterHoursBalanceModel.js +39 -0
  43. package/dist/models/StayAfterHoursTransactionModel.d.ts +19 -0
  44. package/dist/models/StayAfterHoursTransactionModel.js +66 -0
  45. package/dist/models/UpdateAttendanceApprovalModel.d.ts +1 -0
  46. package/dist/models/UpdateAttendanceApprovalModel.js +4 -0
  47. package/dist/models/UpdateAttendenceRequestModel.d.ts +28 -0
  48. package/dist/models/UpdateAttendenceRequestModel.js +86 -0
  49. package/dist/models/UserEducationDetailsModel.d.ts +12 -0
  50. package/dist/models/UserEducationDetailsModel.js +44 -0
  51. package/dist/models/UserEmploymentDetailsModel.d.ts +50 -0
  52. package/dist/models/UserEmploymentDetailsModel.js +193 -0
  53. package/dist/models/UserPersonalDetailsModel.d.ts +48 -0
  54. package/dist/models/UserPersonalDetailsModel.js +185 -0
  55. package/dist/models/user.d.ts +2 -1
  56. package/dist/models/user.js +7 -2
  57. package/package.json +1 -1
  58. package/src/data-source.ts +35 -17
  59. package/src/index.ts +25 -8
  60. package/src/models/EarlyCheckoutBalanceModel.ts +22 -0
  61. package/src/models/EarlyCheckoutConfigModel.ts +57 -0
  62. package/src/models/EarlyCheckoutTransactionModel.ts +53 -0
  63. package/src/models/FinancialApprovalsModel.ts +4 -0
  64. package/src/models/FinancialGradeModel.ts +13 -8
  65. package/src/models/GeneralServiceApprovalsModel.ts +10 -1
  66. package/src/models/LeaveApprovalsModel.ts +5 -1
  67. package/src/models/LeaveBalanceModel.ts +26 -0
  68. package/src/models/LeaveConfigGradesModel.Ts +72 -0
  69. package/src/models/LeaveConfigModel.ts +64 -0
  70. package/src/models/LeaveTransactionModel.ts +58 -0
  71. package/src/models/LeaveTypesModel.ts +27 -11
  72. package/src/models/M&CMasterModel.ts +37 -0
  73. package/src/models/ProfileUpdateRequestsModel.ts +317 -0
  74. package/src/models/StationeryMaterialMasterModel.ts +35 -0
  75. package/src/models/StationeryRequestsModel.ts +65 -0
  76. package/src/models/StayAfterHoursBalanceModel.ts +22 -0
  77. package/src/models/StayAfterHoursTransactionModel.ts +53 -0
  78. package/src/models/UpdateAttendanceApprovalModel.ts +3 -0
  79. package/src/models/UserEducationDetailsModel.ts +26 -0
  80. package/src/models/UserEmploymentDetailsModel.ts +141 -0
  81. package/src/models/UserPersonalDetailsModel.ts +137 -0
  82. package/src/models/user.ts +5 -0
  83. package/dist/models/DiplomaticApprovalsModel.d.ts +0 -24
  84. package/dist/models/DiplomaticApprovalsModel.js +0 -94
  85. package/dist/models/DiplomaticAttachmentsModel.d.ts +0 -11
  86. package/dist/models/DiplomaticAttachmentsModel.js +0 -53
  87. package/dist/models/DiplomaticChatsModel.d.ts +0 -20
  88. package/dist/models/DiplomaticChatsModel.js +0 -70
  89. package/dist/models/DiplomaticClubCardApprovalModel.d.ts +0 -16
  90. package/dist/models/DiplomaticClubCardApprovalModel.js +0 -58
  91. package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +0 -9
  92. package/dist/models/DiplomaticClubCardAttachmentModel.js +0 -44
  93. package/dist/models/DiplomaticClubCardChatModel.d.ts +0 -7
  94. package/dist/models/DiplomaticClubCardMemberModel.d.ts +0 -13
  95. package/dist/models/DiplomaticClubCardMemberModel.js +0 -60
  96. package/dist/models/DiplomaticClubCardMembersModel.d.ts +0 -26
  97. package/dist/models/DiplomaticClubCardMembersModel.js +0 -85
  98. package/dist/models/DiplomaticClubCardRequestModel.d.ts +0 -33
  99. package/dist/models/DiplomaticClubCardRequestModel.js +0 -98
  100. package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +0 -12
  101. package/dist/models/DiplomaticClubCardWorkFlowModel.js +0 -42
  102. package/dist/models/DiplomaticClubSubscriptionMasterModel.d.ts +0 -12
  103. package/dist/models/DiplomaticClubSubscriptionMasterModel.js +0 -64
  104. package/dist/models/DiplomaticRequestsModel.d.ts +0 -53
  105. package/dist/models/DiplomaticRequestsModel.js +0 -182
  106. package/dist/models/DiplomaticServiceDetailsModel.d.ts +0 -20
  107. package/dist/models/DiplomaticServiceDetailsModel.js +0 -65
  108. package/dist/models/DiplomaticSettingsModel.d.ts +0 -11
  109. package/dist/models/DiplomaticSettingsModel.js +0 -59
  110. package/dist/models/DiplomaticTitleModel.d.ts +0 -12
  111. package/dist/models/DiplomaticTitleModel.js +0 -45
  112. package/dist/models/DiplomaticTitlesMasterModel.d.ts +0 -13
  113. package/dist/models/DiplomaticWorkFlowModel.d.ts +0 -18
  114. package/dist/models/DiplomaticWorkFlowModel.js +0 -69
  115. package/dist/models/PassportRequestApprovalModel.d.ts +0 -22
  116. package/dist/models/PassportRequestApprovalModel.js +0 -91
  117. package/dist/models/PassportRequestAttachmentModel.d.ts +0 -10
  118. package/dist/models/PassportRequestAttachmentModel.js +0 -54
  119. package/dist/models/PassportRequestChatModel.d.ts +0 -8
  120. package/dist/models/PassportRequestDependentModel.d.ts +0 -20
  121. package/dist/models/PassportRequestDependentModel.js +0 -85
  122. package/dist/models/PassportRequestModel.d.ts +0 -40
  123. package/dist/models/PassportRequestModel.js +0 -128
  124. package/dist/models/PassportRequestWorkFlowModel.d.ts +0 -15
  125. package/dist/models/PassportRequestWorkFlowModel.js +0 -60
  126. package/dist/models/SubscriptionAmountModel.d.ts +0 -67
  127. package/dist/models/SubscriptionAmountModel.js +0 -114
  128. package/src/models/DiplomaticApprovalsModel.ts +0 -77
  129. package/src/models/DiplomaticAttachmentsModel.ts +0 -37
  130. package/src/models/DiplomaticChatsModel.ts +0 -53
  131. package/src/models/DiplomaticClubCardMembersModel.ts +0 -71
  132. package/src/models/DiplomaticClubSubscriptionMasterModel.ts +0 -50
  133. package/src/models/DiplomaticRequestsModel.ts +0 -151
  134. package/src/models/DiplomaticTitlesMasterModel.ts +0 -39
  135. package/src/models/DiplomaticWorkFlowModel.ts +0 -53
@@ -1,151 +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: 'text', nullable: true })
58
- remarks: string | null;
59
-
60
- @Column({ type: 'int', nullable: true })
61
- current_approval_level: number | null;
62
-
63
- @Column({ type: 'int', nullable: true })
64
- current_approver_id: number | null;
65
-
66
- @Column({ type: 'int', nullable: true })
67
- service_id: number | null;
68
-
69
- @Column({ type: 'int', nullable: true })
70
- sub_service_id: number | null;
71
-
72
- @Column({ type: 'varchar', length: 255, nullable: true })
73
- member_name: string | null;
74
-
75
- @Column({ type: 'varchar', length: 100, nullable: true })
76
- membership_type: string | null;
77
-
78
- @Column({ type: 'int', nullable: true })
79
- diplomatic_title_id: number | null;
80
-
81
- @Column({ type: 'varchar', length: 255, nullable: true })
82
- location: string | null;
83
-
84
- @Column({ type: 'varchar', length: 100, nullable: true })
85
- request_type: string | null;
86
-
87
- @Column({ type: 'date', nullable: true })
88
- expiry_date: Date | null;
89
-
90
- @Column({ type: 'varchar', length: 500, nullable: true })
91
- photo_url: string | null;
92
-
93
- @Column({ type: 'varchar', length: 100, nullable: true })
94
- membership_id: string | null;
95
-
96
- @Column({ type: 'varchar', length: 255, nullable: true })
97
- organization: string | null;
98
-
99
- @Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
100
- subscription_amount: number | null;
101
-
102
- @Column({ type: 'int', nullable: true })
103
- section_id: number | null;
104
-
105
- @Column({ type: 'int', nullable: true })
106
- reporting_manager: number | null;
107
-
108
- @Column({ type: 'varchar', length: 255, nullable: true })
109
- workflow_execution_id: string | null;
110
-
111
- @OneToMany('DiplomaticClubCardMembers', 'diplomaticRequest', { nullable: true })
112
- diplomaticClubCardMembers?: DiplomaticClubCardMembers[];
113
-
114
- @OneToMany('DiplomaticApprovals', 'diplomaticRequest')
115
- approvals?: DiplomaticApprovals[];
116
-
117
- @OneToMany('DiplomaticWorkFlow', 'diplomaticRequest')
118
- workflows?: DiplomaticWorkFlow[];
119
-
120
- @OneToMany('DiplomaticAttachments', 'diplomaticRequest')
121
- attachments?: DiplomaticAttachments[];
122
-
123
- @OneToMany('DiplomaticChats', 'diplomaticRequest')
124
- chats?: DiplomaticChats[];
125
-
126
- constructor(
127
- user_id: number,
128
- employee_id: string,
129
- employee_name: string,
130
- email_address: string,
131
- contact_number: string,
132
- service_id: number | null,
133
- sub_service_id: number | null,
134
- section_id: number | null,
135
- reporting_manager: number | null
136
- ) {
137
- super();
138
- this.user_id = user_id;
139
- this.employee_id = employee_id;
140
- this.employee_name = employee_name;
141
- this.email_address = email_address;
142
- this.contact_number = contact_number;
143
- this.request_date = new Date();
144
- this.request_status = DiplomaticRequestStatus.PENDING;
145
- this.service_id = service_id;
146
- this.sub_service_id = sub_service_id;
147
- this.section_id = section_id;
148
- this.reporting_manager = reporting_manager;
149
- }
150
- }
151
-
@@ -1,39 +0,0 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from './BaseModel';
3
-
4
- export enum TitleCategory {
5
- EMPLOYEE = "Employee",
6
- NON_EMPLOYEE = "Non Employee"
7
- }
8
-
9
- @Entity({ name: 'diplomatic_titles_master' })
10
- export class DiplomaticTitlesMaster extends BaseModel {
11
- @Column({ type: 'varchar', length: 255 })
12
- title_name: string;
13
-
14
- @Column({ type: 'enum', enum: TitleCategory })
15
- category: TitleCategory;
16
-
17
- @Column({ type: 'text', nullable: true })
18
- description: string | null;
19
-
20
- @Column({ type: 'boolean', default: true })
21
- is_active: boolean;
22
-
23
- @Column({ type: 'int', default: 0 })
24
- display_order: number;
25
-
26
- constructor(
27
- title_name: string,
28
- category: TitleCategory,
29
- description?: string | null
30
- ) {
31
- super();
32
- this.title_name = title_name;
33
- this.category = category;
34
- this.description = description || null;
35
- this.is_active = true;
36
- this.display_order = 0;
37
- }
38
- }
39
-
@@ -1,53 +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: 'varchar', length: 500 })
17
- content: string;
18
-
19
- @Column({ type: 'enum', enum: DiplomaticWorkFlowStatus, default: DiplomaticWorkFlowStatus.NOT_YET_STARTED })
20
- status: DiplomaticWorkFlowStatus;
21
-
22
- @Column({ type: 'int', nullable: true })
23
- user_id: number | null;
24
-
25
- @Column({ type: 'int', nullable: true })
26
- step_order: number | null;
27
-
28
- @Column({ type: 'int', nullable: true })
29
- diplomatic_approval_id: number | null;
30
-
31
- @Column({ type: 'int', nullable: true })
32
- approved_by_role_id: number | null;
33
-
34
- @ManyToOne(() => DiplomaticRequests, dr => dr.workflows)
35
- @JoinColumn({ name: 'diplomatic_request_id' })
36
- diplomaticRequest?: DiplomaticRequests;
37
-
38
- constructor(
39
- diplomatic_request_id: number,
40
- content: string,
41
- status: DiplomaticWorkFlowStatus,
42
- user_id: number | null,
43
- step_order: number | null
44
- ) {
45
- super();
46
- this.diplomatic_request_id = diplomatic_request_id;
47
- this.content = content;
48
- this.status = status;
49
- this.user_id = user_id;
50
- this.step_order = step_order;
51
- }
52
- }
53
-