@platform-modules/foreign-ministry 1.3.59 → 1.3.60

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 (50) hide show
  1. package/dist/data-source.js +7 -1
  2. package/dist/index.d.ts +5 -0
  3. package/dist/index.js +10 -1
  4. package/dist/models/DiplomaticClubCardApprovalModel.d.ts +16 -0
  5. package/dist/models/DiplomaticClubCardApprovalModel.js +58 -0
  6. package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +9 -0
  7. package/dist/models/DiplomaticClubCardAttachmentModel.js +44 -0
  8. package/dist/models/DiplomaticClubCardChatModel.d.ts +7 -0
  9. package/dist/models/DiplomaticClubCardChatModel.js +36 -0
  10. package/dist/models/DiplomaticClubCardMemberModel.d.ts +13 -0
  11. package/dist/models/DiplomaticClubCardMemberModel.js +60 -0
  12. package/dist/models/DiplomaticClubCardRequestModel.d.ts +33 -0
  13. package/dist/models/DiplomaticClubCardRequestModel.js +98 -0
  14. package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +12 -0
  15. package/dist/models/DiplomaticClubCardWorkFlowModel.js +42 -0
  16. package/dist/models/DiplomaticServiceDetailsModel.d.ts +20 -0
  17. package/dist/models/DiplomaticServiceDetailsModel.js +65 -0
  18. package/dist/models/DiplomaticSettingsModel.d.ts +11 -0
  19. package/dist/models/DiplomaticSettingsModel.js +59 -0
  20. package/dist/models/DiplomaticTitleModel.d.ts +12 -0
  21. package/dist/models/DiplomaticTitleModel.js +45 -0
  22. package/dist/models/PassportRequestApprovalModel.d.ts +22 -0
  23. package/dist/models/PassportRequestApprovalModel.js +91 -0
  24. package/dist/models/PassportRequestAttachmentModel.d.ts +10 -0
  25. package/dist/models/PassportRequestAttachmentModel.js +54 -0
  26. package/dist/models/PassportRequestChatModel.d.ts +8 -0
  27. package/dist/models/PassportRequestChatModel.js +44 -0
  28. package/dist/models/PassportRequestDependentModel.d.ts +20 -0
  29. package/dist/models/PassportRequestDependentModel.js +85 -0
  30. package/dist/models/PassportRequestModel.d.ts +40 -0
  31. package/dist/models/PassportRequestModel.js +128 -0
  32. package/dist/models/PassportRequestWorkFlowModel.d.ts +15 -0
  33. package/dist/models/PassportRequestWorkFlowModel.js +60 -0
  34. package/dist/models/SecurityAttachmentsModel.d.ts +16 -0
  35. package/dist/models/SecurityAttachmentsModel.js +60 -0
  36. package/dist/models/SecurityChatsModel.d.ts +26 -0
  37. package/dist/models/SecurityChatsModel.js +84 -0
  38. package/dist/models/SecurityDeptMainRequestModel.d.ts +38 -0
  39. package/dist/models/SecurityDeptMainRequestModel.js +116 -0
  40. package/dist/models/SubscriptionAmountModel.d.ts +67 -0
  41. package/dist/models/SubscriptionAmountModel.js +114 -0
  42. package/package.json +1 -1
  43. package/src/data-source.ts +7 -1
  44. package/src/index.ts +6 -0
  45. package/src/models/DiplomaticClubCardMembersModel.ts +75 -75
  46. package/src/models/DiplomaticClubSubscriptionMasterModel.ts +26 -26
  47. package/src/models/DiplomaticRequestsModel.ts +157 -157
  48. package/src/models/SecurityAttachmentsModel.ts +38 -0
  49. package/src/models/SecurityChatsModel.ts +72 -0
  50. package/src/models/SecurityDeptMainRequestModel.ts +108 -0
@@ -0,0 +1,108 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ /**
5
+ * Security Department Request Status Enum
6
+ */
7
+ export enum SecurityDeptRequestStatus {
8
+ PENDING = "Pending",
9
+ APPROVED = "Approved",
10
+ REJECTED = "Rejected",
11
+ IN_PROGRESS = "In Progress"
12
+ }
13
+
14
+ /**
15
+ * Access Type Enum - Normal
16
+ */
17
+ export enum SecurityDeptAccessType {
18
+ NORMAL = "Normal"
19
+ }
20
+
21
+ /**
22
+ * Security Department Main Request Table
23
+ * This table stores the primary security department request data
24
+ * No workflow concept involved
25
+ */
26
+ @Entity({ name: 'security_dept_main_request' })
27
+ export class SecurityDeptMainRequest extends BaseModel {
28
+
29
+ // User and Department Information
30
+ @Column({ type: 'int', nullable: false })
31
+ user_id: number;
32
+
33
+ @Column({ type: 'int', nullable: true })
34
+ req_user_department_id: number | null;
35
+
36
+ @Column({ type: 'int', nullable: true })
37
+ req_user_section_id: number | null;
38
+
39
+ @Column({ type: 'int', nullable: true })
40
+ service_id: number | null;
41
+
42
+ @Column({ type: 'int', nullable: true })
43
+ sub_service_id: number | null;
44
+
45
+ // Request Status
46
+ @Column({ type: 'enum', enum: SecurityDeptRequestStatus, default: SecurityDeptRequestStatus.PENDING, nullable: false })
47
+ status: SecurityDeptRequestStatus;
48
+
49
+ // Security Department Request Specific Fields
50
+ @Column({ type: 'varchar', length: 255, nullable: true })
51
+ name: string | null; // Name (optional)
52
+
53
+ @Column({ type: 'varchar', length: 255, nullable: false })
54
+ former_designation_role: string; // Former Designation / Role (required)
55
+
56
+ @Column({ type: 'date', nullable: true })
57
+ retirement_effective_date: Date | null; // Retirement Effective Date
58
+
59
+ @Column({ type: 'date', nullable: true })
60
+ original_card_issue_date: Date | null; // Original Card Issue Date
61
+
62
+ @Column({ type: 'text', nullable: false })
63
+ reason_for_card_generation: string; // Reason for Card Generation (required)
64
+
65
+ @Column({ type: 'enum', enum: SecurityDeptAccessType, default: SecurityDeptAccessType.NORMAL, nullable: false })
66
+ access_type: SecurityDeptAccessType; // Normal (default)
67
+
68
+ // Photo from Profile (URL or reference)
69
+ @Column({ type: 'varchar', length: 500, nullable: true })
70
+ photo_url: string | null; // Photo pulled from profile data if exists
71
+
72
+ @Column({ type: 'varchar', length: 255, nullable: true })
73
+ photo_file_name: string | null;
74
+
75
+ constructor(
76
+ user_id: number,
77
+ req_user_department_id: number | null,
78
+ req_user_section_id: number | null,
79
+ service_id: number | null,
80
+ sub_service_id: number | null,
81
+ status: SecurityDeptRequestStatus,
82
+ name: string | null,
83
+ former_designation_role: string,
84
+ retirement_effective_date: Date | null,
85
+ original_card_issue_date: Date | null,
86
+ reason_for_card_generation: string,
87
+ access_type: SecurityDeptAccessType,
88
+ photo_url: string | null,
89
+ photo_file_name: string | null
90
+ ) {
91
+ super();
92
+ this.user_id = user_id;
93
+ this.req_user_department_id = req_user_department_id;
94
+ this.req_user_section_id = req_user_section_id;
95
+ this.service_id = service_id;
96
+ this.sub_service_id = sub_service_id;
97
+ this.status = status;
98
+ this.name = name;
99
+ this.former_designation_role = former_designation_role;
100
+ this.retirement_effective_date = retirement_effective_date;
101
+ this.original_card_issue_date = original_card_issue_date;
102
+ this.reason_for_card_generation = reason_for_card_generation;
103
+ this.access_type = access_type;
104
+ this.photo_url = photo_url;
105
+ this.photo_file_name = photo_file_name;
106
+ }
107
+ }
108
+