@platform-modules/foreign-ministry 1.2.20 → 1.2.21

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 (92) hide show
  1. package/dist/data-source.js +1 -11
  2. package/dist/index.d.ts +0 -6
  3. package/dist/index.js +0 -6
  4. package/dist/models/FinancialGradeModel.d.ts +3 -1
  5. package/dist/models/FinancialGradeModel.js +12 -2
  6. package/dist/models/LeaveRequestModel.d.ts +9 -1
  7. package/dist/models/LeaveRequestModel.js +28 -3
  8. package/dist/models/MissionTravelApprovalModel.d.ts +22 -0
  9. package/dist/models/MissionTravelApprovalModel.js +79 -0
  10. package/dist/models/MissionTravelAttachmentModel.d.ts +11 -0
  11. package/dist/models/MissionTravelAttachmentModel.js +52 -0
  12. package/dist/models/MissionTravelChatModel.d.ts +9 -0
  13. package/dist/models/MissionTravelChatModel.js +44 -0
  14. package/dist/models/MissionTravelClassConfigModel.d.ts +10 -0
  15. package/dist/models/MissionTravelClassConfigModel.js +50 -0
  16. package/dist/models/MissionTravelCostModel.d.ts +14 -0
  17. package/dist/models/MissionTravelCostModel.js +74 -0
  18. package/dist/models/MissionTravelPerdiemModel.d.ts +10 -0
  19. package/dist/models/MissionTravelPerdiemModel.js +54 -0
  20. package/dist/models/MissionTravelPersonModel.d.ts +32 -0
  21. package/dist/models/MissionTravelPersonModel.js +126 -0
  22. package/dist/models/MissionTravelRequestModel.d.ts +40 -0
  23. package/dist/models/MissionTravelRequestModel.js +138 -0
  24. package/dist/models/MissionTravelWorkflowModel.d.ts +13 -0
  25. package/dist/models/MissionTravelWorkflowModel.js +60 -0
  26. package/dist/models/user.d.ts +2 -1
  27. package/dist/models/user.js +7 -2
  28. package/package.json +1 -1
  29. package/src/data-source.ts +1 -11
  30. package/src/index.ts +1 -7
  31. package/src/models/DiplomaticClubSubscriptionMasterModel.ts +26 -26
  32. package/src/models/DiplomaticRequestsModel.ts +154 -154
  33. package/src/models/FinancialGradeModel.ts +11 -1
  34. package/src/models/LeaveConfigModel.ts +71 -71
  35. package/src/models/LeaveRequestModel.ts +21 -1
  36. package/src/models/MissionTravelApprovalModel.ts +53 -0
  37. package/src/models/MissionTravelAttachmentModel.ts +32 -0
  38. package/src/models/MissionTravelChatModel.ts +26 -0
  39. package/src/models/MissionTravelClassConfigModel.ts +39 -0
  40. package/src/models/MissionTravelCostModel.ts +64 -0
  41. package/src/models/MissionTravelPerdiemModel.ts +43 -0
  42. package/src/models/MissionTravelPersonModel.ts +116 -0
  43. package/src/models/MissionTravelRequestModel.ts +126 -0
  44. package/src/models/MissionTravelWorkflowModel.ts +38 -0
  45. package/src/models/user.ts +5 -0
  46. package/dist/models/DiplomaticClubCardApprovalModel.d.ts +0 -16
  47. package/dist/models/DiplomaticClubCardApprovalModel.js +0 -58
  48. package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +0 -9
  49. package/dist/models/DiplomaticClubCardAttachmentModel.js +0 -44
  50. package/dist/models/DiplomaticClubCardChatModel.d.ts +0 -7
  51. package/dist/models/DiplomaticClubCardChatModel.js +0 -36
  52. package/dist/models/DiplomaticClubCardMemberModel.d.ts +0 -13
  53. package/dist/models/DiplomaticClubCardMemberModel.js +0 -60
  54. package/dist/models/DiplomaticClubCardRequestModel.d.ts +0 -33
  55. package/dist/models/DiplomaticClubCardRequestModel.js +0 -98
  56. package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +0 -12
  57. package/dist/models/DiplomaticClubCardWorkFlowModel.js +0 -42
  58. package/dist/models/DiplomaticServiceDetailsModel.d.ts +0 -20
  59. package/dist/models/DiplomaticServiceDetailsModel.js +0 -65
  60. package/dist/models/DiplomaticSettingsModel.d.ts +0 -11
  61. package/dist/models/DiplomaticSettingsModel.js +0 -59
  62. package/dist/models/DiplomaticTitleModel.d.ts +0 -12
  63. package/dist/models/DiplomaticTitleModel.js +0 -45
  64. package/dist/models/EmployeeCardApprovalsModel.d.ts +0 -31
  65. package/dist/models/EmployeeCardApprovalsModel.js +0 -100
  66. package/dist/models/EmployeeCardAttachmentsModel.d.ts +0 -17
  67. package/dist/models/EmployeeCardAttachmentsModel.js +0 -69
  68. package/dist/models/EmployeeCardChatsModel.d.ts +0 -19
  69. package/dist/models/EmployeeCardChatsModel.js +0 -79
  70. package/dist/models/EmployeeCardRequestsModel.d.ts +0 -40
  71. package/dist/models/EmployeeCardRequestsModel.js +0 -126
  72. package/dist/models/EmployeeCardWorkFlowModel.d.ts +0 -34
  73. package/dist/models/EmployeeCardWorkFlowModel.js +0 -103
  74. package/dist/models/PassportRequestApprovalModel.d.ts +0 -22
  75. package/dist/models/PassportRequestApprovalModel.js +0 -91
  76. package/dist/models/PassportRequestAttachmentModel.d.ts +0 -10
  77. package/dist/models/PassportRequestAttachmentModel.js +0 -54
  78. package/dist/models/PassportRequestChatModel.d.ts +0 -8
  79. package/dist/models/PassportRequestChatModel.js +0 -44
  80. package/dist/models/PassportRequestDependentModel.d.ts +0 -20
  81. package/dist/models/PassportRequestDependentModel.js +0 -85
  82. package/dist/models/PassportRequestModel.d.ts +0 -40
  83. package/dist/models/PassportRequestModel.js +0 -128
  84. package/dist/models/PassportRequestWorkFlowModel.d.ts +0 -15
  85. package/dist/models/PassportRequestWorkFlowModel.js +0 -60
  86. package/dist/models/SubscriptionAmountModel.d.ts +0 -67
  87. package/dist/models/SubscriptionAmountModel.js +0 -114
  88. package/src/models/EmployeeCardApprovalsModel.ts +0 -87
  89. package/src/models/EmployeeCardAttachmentsModel.ts +0 -56
  90. package/src/models/EmployeeCardChatsModel.ts +0 -66
  91. package/src/models/EmployeeCardRequestsModel.ts +0 -115
  92. package/src/models/EmployeeCardWorkFlowModel.ts +0 -90
@@ -0,0 +1,39 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+ import { TravelClass } from './MissionTravelPersonModel';
4
+
5
+ @Entity({ name: 'mission_travel_class_config' })
6
+ export class MissionTravelClassConfig extends BaseModel {
7
+
8
+ @Column({ type: 'int', nullable: true })
9
+ grade: number | null;
10
+
11
+ @Column({ type: 'varchar', length: 255, nullable: true })
12
+ position: string | null;
13
+
14
+ @Column({ type: 'enum', enum: TravelClass, nullable: false })
15
+ travel_class: TravelClass;
16
+
17
+ @Column({ type: 'boolean', default: true })
18
+ is_active: boolean;
19
+
20
+ @Column({ type: 'text', nullable: true })
21
+ description: string | null;
22
+
23
+ constructor(
24
+ grade: number | null,
25
+ position: string | null,
26
+ travel_class: TravelClass,
27
+ description: string | null
28
+ ) {
29
+ super();
30
+ this.grade = grade;
31
+ this.position = position;
32
+ this.travel_class = travel_class;
33
+ this.description = description;
34
+ this.is_active = true;
35
+ }
36
+ }
37
+
38
+
39
+
@@ -0,0 +1,64 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'mission_travel_costs' })
5
+ export class MissionTravelCosts extends BaseModel {
6
+
7
+ @Column({ type: 'int', nullable: false })
8
+ request_id: number;
9
+
10
+ @Column({ type: 'int', nullable: true })
11
+ service_id: number | null;
12
+
13
+ @Column({ type: 'int', nullable: true })
14
+ sub_service_id: number | null;
15
+
16
+ @Column({ type: 'int', nullable: false })
17
+ person_id: number; // Reference to mission_travel_persons.id
18
+
19
+ @Column({ type: 'varchar', length: 255, nullable: false })
20
+ person_name: string;
21
+
22
+ @Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
23
+ allowance_amount: number | null; // Pulled from calculated allowance
24
+
25
+ @Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
26
+ ticket_charges: number | null;
27
+
28
+ @Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
29
+ hotel_charges: number | null;
30
+
31
+ @Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
32
+ others: number | null;
33
+
34
+ @Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
35
+ sub_total: number | null; // Auto-calculated: allowance + ticket + hotel + others
36
+
37
+ constructor(
38
+ request_id: number,
39
+ service_id: number | null,
40
+ sub_service_id: number | null,
41
+ person_id: number,
42
+ person_name: string,
43
+ allowance_amount: number | null,
44
+ ticket_charges: number | null,
45
+ hotel_charges: number | null,
46
+ others: number | null,
47
+ sub_total: number | null
48
+ ) {
49
+ super();
50
+ this.request_id = request_id;
51
+ this.service_id = service_id;
52
+ this.sub_service_id = sub_service_id;
53
+ this.person_id = person_id;
54
+ this.person_name = person_name;
55
+ this.allowance_amount = allowance_amount;
56
+ this.ticket_charges = ticket_charges;
57
+ this.hotel_charges = hotel_charges;
58
+ this.others = others;
59
+ this.sub_total = sub_total;
60
+ }
61
+ }
62
+
63
+
64
+
@@ -0,0 +1,43 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'mission_travel_perdiem' })
5
+ export class MissionTravelPerdiem extends BaseModel {
6
+
7
+ @Column({ type: 'int', nullable: false })
8
+ grade: number;
9
+
10
+ @Column({ type: 'decimal', precision: 10, scale: 2, nullable: false })
11
+ perdiem_amount: number;
12
+
13
+ @Column({ type: 'varchar', length: 50, nullable: true })
14
+ currency: string | null;
15
+
16
+ @Column({ type: 'date', nullable: true })
17
+ effective_from: Date | null;
18
+
19
+ @Column({ type: 'date', nullable: true })
20
+ effective_to: Date | null;
21
+
22
+ @Column({ type: 'boolean', default: true })
23
+ is_active: boolean;
24
+
25
+ constructor(
26
+ grade: number,
27
+ perdiem_amount: number,
28
+ currency: string | null,
29
+ effective_from: Date | null,
30
+ effective_to: Date | null
31
+ ) {
32
+ super();
33
+ this.grade = grade;
34
+ this.perdiem_amount = perdiem_amount;
35
+ this.currency = currency;
36
+ this.effective_from = effective_from;
37
+ this.effective_to = effective_to;
38
+ this.is_active = true;
39
+ }
40
+ }
41
+
42
+
43
+
@@ -0,0 +1,116 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum TravelClass {
5
+ ECONOMY = "Economy",
6
+ BUSINESS = "Business",
7
+ FIRST = "First"
8
+ }
9
+
10
+ export enum AllowanceRatio {
11
+ RATIO_100 = "100",
12
+ RATIO_75 = "75",
13
+ RATIO_50 = "50"
14
+ }
15
+
16
+ @Entity({ name: 'mission_travel_persons' })
17
+ export class MissionTravelPersons extends BaseModel {
18
+
19
+ @Column({ type: 'int', nullable: false })
20
+ request_id: number;
21
+
22
+ @Column({ type: 'int', nullable: true })
23
+ service_id: number | null;
24
+
25
+ @Column({ type: 'int', nullable: true })
26
+ sub_service_id: number | null;
27
+
28
+ @Column({ type: 'varchar', length: 255, nullable: false })
29
+ travel_person_name: string;
30
+
31
+ @Column({ type: 'int', nullable: true })
32
+ user_id: number | null; // If employee, link to user table
33
+
34
+ @Column({ type: 'int', nullable: true })
35
+ country_id: number | null;
36
+
37
+ @Column({ type: 'varchar', length: 10, nullable: true })
38
+ allowance_ratio: AllowanceRatio | null; // 100, 75, or 50
39
+
40
+ @Column({ type: 'date', nullable: true })
41
+ travel_from_date: Date | null;
42
+
43
+ @Column({ type: 'date', nullable: true })
44
+ travel_to_date: Date | null;
45
+
46
+ @Column({ type: 'enum', enum: TravelClass, nullable: true })
47
+ travel_class: TravelClass | null;
48
+
49
+ @Column({ type: 'int', nullable: true })
50
+ number_of_days: number | null;
51
+
52
+ @Column({ type: 'varchar', length: 255, nullable: true })
53
+ hotel_name: string | null;
54
+
55
+ @Column({ type: 'int', nullable: true })
56
+ hotel_rating: number | null;
57
+
58
+ @Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
59
+ hotel_price: number | null;
60
+
61
+ @Column({ type: 'varchar', length: 255, nullable: true })
62
+ travel_agent_name: string | null;
63
+
64
+ @Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
65
+ allowance_amount: number | null; // Auto-calculated based on ratio & perdiem
66
+
67
+ @Column({ type: 'int', nullable: true })
68
+ grade: number | null; // Employee grade for perdiem calculation
69
+
70
+ @Column({ type: 'varchar', length: 100, nullable: true })
71
+ position: string | null; // Employee position for travel class
72
+
73
+ constructor(
74
+ request_id: number,
75
+ service_id: number | null,
76
+ sub_service_id: number | null,
77
+ travel_person_name: string,
78
+ user_id: number | null,
79
+ country_id: number | null,
80
+ allowance_ratio: AllowanceRatio | null,
81
+ travel_from_date: Date | null,
82
+ travel_to_date: Date | null,
83
+ travel_class: TravelClass | null,
84
+ number_of_days: number | null,
85
+ hotel_name: string | null,
86
+ hotel_rating: number | null,
87
+ hotel_price: number | null,
88
+ travel_agent_name: string | null,
89
+ allowance_amount: number | null,
90
+ grade: number | null,
91
+ position: string | null
92
+ ) {
93
+ super();
94
+ this.request_id = request_id;
95
+ this.service_id = service_id;
96
+ this.sub_service_id = sub_service_id;
97
+ this.travel_person_name = travel_person_name;
98
+ this.user_id = user_id;
99
+ this.country_id = country_id;
100
+ this.allowance_ratio = allowance_ratio;
101
+ this.travel_from_date = travel_from_date;
102
+ this.travel_to_date = travel_to_date;
103
+ this.travel_class = travel_class;
104
+ this.number_of_days = number_of_days;
105
+ this.hotel_name = hotel_name;
106
+ this.hotel_rating = hotel_rating;
107
+ this.hotel_price = hotel_price;
108
+ this.travel_agent_name = travel_agent_name;
109
+ this.allowance_amount = allowance_amount;
110
+ this.grade = grade;
111
+ this.position = position;
112
+ }
113
+ }
114
+
115
+
116
+
@@ -0,0 +1,126 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum MissionTravelStatus {
5
+ PENDING = "Pending",
6
+ APPROVED = "Approved",
7
+ REJECTED = "Rejected",
8
+ COMPLETED = "Completed",
9
+ CANCELLED = "Cancelled"
10
+ }
11
+
12
+ export enum MissionType {
13
+ INTERNAL = "Internal",
14
+ EXTERNAL = "External"
15
+ }
16
+
17
+ export enum DecisionType {
18
+ OFFICIAL_MISSION = "Official Mission",
19
+ TRAINING_COURSE = "Training Course",
20
+ SUMMON = "Summon",
21
+ ATTACHMENT = "Attachment"
22
+ }
23
+
24
+ @Entity({ name: 'mission_travel_requests' })
25
+ export class MissionTravelRequests extends BaseModel {
26
+
27
+ @Column({ type: 'int', nullable: false })
28
+ user_id: number;
29
+
30
+ @Column({ type: 'int', nullable: true })
31
+ service_id: number | null;
32
+
33
+ @Column({ type: 'int', nullable: true })
34
+ sub_service_id: number | null;
35
+
36
+ @Column({ type: 'boolean', nullable: true, default: false })
37
+ department_participation: boolean;
38
+
39
+ @Column({ type: 'enum', enum: MissionType, nullable: true })
40
+ mission_type: MissionType | null;
41
+
42
+ @Column({ type: 'enum', enum: DecisionType, nullable: true })
43
+ decision_type: DecisionType | null;
44
+
45
+ @Column({ type: 'int', nullable: true })
46
+ country_id: number | null;
47
+
48
+ @Column({ type: 'date', nullable: true })
49
+ from_date: Date | null;
50
+
51
+ @Column({ type: 'date', nullable: true })
52
+ to_date: Date | null;
53
+
54
+ @Column({ type: 'text', nullable: true })
55
+ purpose_of_mission: string | null;
56
+
57
+ @Column({ type: 'varchar', length: 50, nullable: true })
58
+ exchange_ratio: string | null;
59
+
60
+ @Column({ type: 'int', nullable: true })
61
+ number_of_days: number | null;
62
+
63
+ @Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
64
+ mission_allowance_cost: number | null;
65
+
66
+ @Column({ type: 'varchar', length: 255, nullable: true })
67
+ hotel_name: string | null;
68
+
69
+ @Column({ type: 'int', nullable: true })
70
+ hotel_rating: number | null;
71
+
72
+ @Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
73
+ hotel_price: number | null;
74
+
75
+ @Column({ type: 'varchar', length: 255, nullable: true })
76
+ travelling_agent: string | null;
77
+
78
+ @Column({ type: 'enum', enum: MissionTravelStatus, default: MissionTravelStatus.PENDING, nullable: false })
79
+ status: MissionTravelStatus;
80
+
81
+ @Column({ type: 'varchar', nullable: true })
82
+ workflow_execution_id: string | null;
83
+
84
+ constructor(
85
+ user_id: number,
86
+ service_id: number | null,
87
+ sub_service_id: number | null,
88
+ department_participation: boolean,
89
+ mission_type: MissionType | null,
90
+ decision_type: DecisionType | null,
91
+ country_id: number | null,
92
+ from_date: Date | null,
93
+ to_date: Date | null,
94
+ purpose_of_mission: string | null,
95
+ exchange_ratio: string | null,
96
+ number_of_days: number | null,
97
+ mission_allowance_cost: number | null,
98
+ hotel_name: string | null,
99
+ hotel_rating: number | null,
100
+ hotel_price: number | null,
101
+ travelling_agent: string | null
102
+ ) {
103
+ super();
104
+ this.user_id = user_id;
105
+ this.service_id = service_id;
106
+ this.sub_service_id = sub_service_id;
107
+ this.department_participation = department_participation;
108
+ this.mission_type = mission_type;
109
+ this.decision_type = decision_type;
110
+ this.country_id = country_id;
111
+ this.from_date = from_date;
112
+ this.to_date = to_date;
113
+ this.purpose_of_mission = purpose_of_mission;
114
+ this.exchange_ratio = exchange_ratio;
115
+ this.number_of_days = number_of_days;
116
+ this.mission_allowance_cost = mission_allowance_cost;
117
+ this.hotel_name = hotel_name;
118
+ this.hotel_rating = hotel_rating;
119
+ this.hotel_price = hotel_price;
120
+ this.travelling_agent = travelling_agent;
121
+ this.status = MissionTravelStatus.PENDING;
122
+ }
123
+ }
124
+
125
+
126
+
@@ -0,0 +1,38 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'mission_travel_workflows' })
5
+ export class MissionTravelWorkFlow extends BaseModel {
6
+ @Column({ type: 'integer', nullable: false })
7
+ request_id: number;
8
+
9
+ @Column({ type: 'integer', nullable: true })
10
+ service_id: number | null;
11
+
12
+ @Column({ type: 'integer', nullable: true })
13
+ sub_service_id: number | null;
14
+
15
+ @Column({ type: 'integer', nullable: true })
16
+ user_id: number | null;
17
+
18
+ @Column({ type: 'integer', nullable: true })
19
+ role_id: number | null;
20
+
21
+ @Column({ type: 'integer', nullable: true })
22
+ department_id: number | null;
23
+
24
+ @Column({ type: 'integer', nullable: true })
25
+ section_id: number | null;
26
+
27
+ @Column({ type: 'varchar', length: 255, nullable: true })
28
+ action: string | null;
29
+
30
+ @Column({ type: 'text', nullable: true })
31
+ comment: string | null;
32
+
33
+ @Column({ type: 'timestamp', nullable: true })
34
+ action_date: Date | null;
35
+ }
36
+
37
+
38
+
@@ -135,6 +135,9 @@ export class User extends BaseModel {
135
135
  @Column({ type: "int", nullable: true , default: 0})
136
136
  mandc_number: number;
137
137
 
138
+ @Column({ nullable: true , default: false})
139
+ is_services_blocked?: boolean;
140
+
138
141
  constructor(
139
142
  employee_id?: number,
140
143
  employee_name?: string,
@@ -179,6 +182,7 @@ export class User extends BaseModel {
179
182
  language_preferences?: string,
180
183
  category?: "FM" | "Embassy",
181
184
  mandc_number?: number,
185
+ is_services_blocked?: boolean,
182
186
  ) {
183
187
  super();
184
188
  this.employee_id = employee_id;
@@ -224,5 +228,6 @@ export class User extends BaseModel {
224
228
  this.language_preferences = language_preferences;
225
229
  this.category = category || "FM";
226
230
  this.mandc_number = mandc_number || 0;
231
+ this.is_services_blocked = is_services_blocked;
227
232
  }
228
233
  }
@@ -1,16 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare enum DiplomaticClubCardApprovalStatus {
3
- PENDING = "Pending",
4
- APPROVED = "Approved",
5
- REJECTED = "Rejected"
6
- }
7
- export declare class DiplomaticClubCardApprovals extends BaseModel {
8
- request_id: number;
9
- approver_user_id: number;
10
- approver_role_id: number | null;
11
- step_order: number;
12
- status: DiplomaticClubCardApprovalStatus;
13
- comments: string | null;
14
- approved_at: Date | null;
15
- rejected_at: Date | null;
16
- }
@@ -1,58 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DiplomaticClubCardApprovals = exports.DiplomaticClubCardApprovalStatus = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- var DiplomaticClubCardApprovalStatus;
16
- (function (DiplomaticClubCardApprovalStatus) {
17
- DiplomaticClubCardApprovalStatus["PENDING"] = "Pending";
18
- DiplomaticClubCardApprovalStatus["APPROVED"] = "Approved";
19
- DiplomaticClubCardApprovalStatus["REJECTED"] = "Rejected";
20
- })(DiplomaticClubCardApprovalStatus || (exports.DiplomaticClubCardApprovalStatus = DiplomaticClubCardApprovalStatus = {}));
21
- let DiplomaticClubCardApprovals = class DiplomaticClubCardApprovals extends BaseModel_1.BaseModel {
22
- };
23
- exports.DiplomaticClubCardApprovals = DiplomaticClubCardApprovals;
24
- __decorate([
25
- (0, typeorm_1.Column)({ type: 'int', nullable: false }),
26
- __metadata("design:type", Number)
27
- ], DiplomaticClubCardApprovals.prototype, "request_id", void 0);
28
- __decorate([
29
- (0, typeorm_1.Column)({ type: 'int', nullable: false }),
30
- __metadata("design:type", Number)
31
- ], DiplomaticClubCardApprovals.prototype, "approver_user_id", void 0);
32
- __decorate([
33
- (0, typeorm_1.Column)({ type: 'int', nullable: true }),
34
- __metadata("design:type", Object)
35
- ], DiplomaticClubCardApprovals.prototype, "approver_role_id", void 0);
36
- __decorate([
37
- (0, typeorm_1.Column)({ type: 'int', nullable: false, default: 0 }),
38
- __metadata("design:type", Number)
39
- ], DiplomaticClubCardApprovals.prototype, "step_order", void 0);
40
- __decorate([
41
- (0, typeorm_1.Column)({ type: 'enum', enum: DiplomaticClubCardApprovalStatus, default: DiplomaticClubCardApprovalStatus.PENDING, nullable: false }),
42
- __metadata("design:type", String)
43
- ], DiplomaticClubCardApprovals.prototype, "status", void 0);
44
- __decorate([
45
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
46
- __metadata("design:type", Object)
47
- ], DiplomaticClubCardApprovals.prototype, "comments", void 0);
48
- __decorate([
49
- (0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
50
- __metadata("design:type", Object)
51
- ], DiplomaticClubCardApprovals.prototype, "approved_at", void 0);
52
- __decorate([
53
- (0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
54
- __metadata("design:type", Object)
55
- ], DiplomaticClubCardApprovals.prototype, "rejected_at", void 0);
56
- exports.DiplomaticClubCardApprovals = DiplomaticClubCardApprovals = __decorate([
57
- (0, typeorm_1.Entity)({ name: 'diplomatic_club_card_approvals' })
58
- ], DiplomaticClubCardApprovals);
@@ -1,9 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class DiplomaticClubCardAttachments extends BaseModel {
3
- request_id: number;
4
- member_id: number | null;
5
- file_name: string;
6
- file_path: string;
7
- file_type: string | null;
8
- attachment_type: string | null;
9
- }
@@ -1,44 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DiplomaticClubCardAttachments = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- let DiplomaticClubCardAttachments = class DiplomaticClubCardAttachments extends BaseModel_1.BaseModel {
16
- };
17
- exports.DiplomaticClubCardAttachments = DiplomaticClubCardAttachments;
18
- __decorate([
19
- (0, typeorm_1.Column)({ type: 'int', nullable: false }),
20
- __metadata("design:type", Number)
21
- ], DiplomaticClubCardAttachments.prototype, "request_id", void 0);
22
- __decorate([
23
- (0, typeorm_1.Column)({ type: 'int', nullable: true }),
24
- __metadata("design:type", Object)
25
- ], DiplomaticClubCardAttachments.prototype, "member_id", void 0);
26
- __decorate([
27
- (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
28
- __metadata("design:type", String)
29
- ], DiplomaticClubCardAttachments.prototype, "file_name", void 0);
30
- __decorate([
31
- (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
32
- __metadata("design:type", String)
33
- ], DiplomaticClubCardAttachments.prototype, "file_path", void 0);
34
- __decorate([
35
- (0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
36
- __metadata("design:type", Object)
37
- ], DiplomaticClubCardAttachments.prototype, "file_type", void 0);
38
- __decorate([
39
- (0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
40
- __metadata("design:type", Object)
41
- ], DiplomaticClubCardAttachments.prototype, "attachment_type", void 0);
42
- exports.DiplomaticClubCardAttachments = DiplomaticClubCardAttachments = __decorate([
43
- (0, typeorm_1.Entity)({ name: 'diplomatic_club_card_attachments' })
44
- ], DiplomaticClubCardAttachments);
@@ -1,7 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class DiplomaticClubCardChat extends BaseModel {
3
- request_id: number;
4
- user_id: number;
5
- message: string;
6
- message_type: string | null;
7
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DiplomaticClubCardChat = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- let DiplomaticClubCardChat = class DiplomaticClubCardChat extends BaseModel_1.BaseModel {
16
- };
17
- exports.DiplomaticClubCardChat = DiplomaticClubCardChat;
18
- __decorate([
19
- (0, typeorm_1.Column)({ type: 'int', nullable: false }),
20
- __metadata("design:type", Number)
21
- ], DiplomaticClubCardChat.prototype, "request_id", void 0);
22
- __decorate([
23
- (0, typeorm_1.Column)({ type: 'int', nullable: false }),
24
- __metadata("design:type", Number)
25
- ], DiplomaticClubCardChat.prototype, "user_id", void 0);
26
- __decorate([
27
- (0, typeorm_1.Column)({ type: 'text', nullable: false }),
28
- __metadata("design:type", String)
29
- ], DiplomaticClubCardChat.prototype, "message", void 0);
30
- __decorate([
31
- (0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
32
- __metadata("design:type", Object)
33
- ], DiplomaticClubCardChat.prototype, "message_type", void 0);
34
- exports.DiplomaticClubCardChat = DiplomaticClubCardChat = __decorate([
35
- (0, typeorm_1.Entity)({ name: 'diplomatic_club_card_chats' })
36
- ], DiplomaticClubCardChat);
@@ -1,13 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class DiplomaticClubCardMembers extends BaseModel {
3
- request_id: number;
4
- member_name: string;
5
- relation: string | null;
6
- membership_id: string | null;
7
- title: string | null;
8
- diplomatic_title_id: number | null;
9
- organization: string | null;
10
- expiry_date: Date | null;
11
- photo: string | null;
12
- subscription_amount: number | null;
13
- }