@platform-modules/foreign-ministry 1.1.40 → 1.1.42

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 (42) hide show
  1. package/.env +11 -3
  2. package/dist/data-source.js +17 -1
  3. package/dist/index.d.ts +8 -0
  4. package/dist/index.js +8 -0
  5. package/dist/models/GroupModel.d.ts +16 -0
  6. package/dist/models/GroupModel.js +44 -0
  7. package/dist/models/GroupNamesModel.d.ts +6 -0
  8. package/dist/models/GroupNamesModel.js +34 -0
  9. package/dist/models/HelpContentMappedCategoriesModel.d.ts +6 -0
  10. package/dist/models/HelpContentMappedCategoriesModel.js +34 -0
  11. package/dist/models/HelpContentMappedTagsModel.d.ts +6 -0
  12. package/dist/models/HelpContentMappedTagsModel.js +34 -0
  13. package/dist/models/HelpContentTagsModel.d.ts +5 -0
  14. package/dist/models/HelpContentTagsModel.js +29 -0
  15. package/dist/models/TransferMissionApprovalModel.d.ts +21 -0
  16. package/dist/models/TransferMissionApprovalModel.js +75 -0
  17. package/dist/models/TransferMissionAttachmentModel.d.ts +11 -0
  18. package/dist/models/TransferMissionAttachmentModel.js +52 -0
  19. package/dist/models/TransferMissionChatModel.d.ts +19 -0
  20. package/dist/models/TransferMissionChatModel.js +78 -0
  21. package/dist/models/TransferMissionRequestModel.d.ts +36 -0
  22. package/dist/models/TransferMissionRequestModel.js +132 -0
  23. package/dist/models/TransferMissionWorkflowModel.d.ts +17 -0
  24. package/dist/models/TransferMissionWorkflowModel.js +62 -0
  25. package/dist/models/WorkScheduleModel.d.ts +19 -0
  26. package/dist/models/WorkScheduleModel.js +60 -0
  27. package/dist/models/questionTagsModel.d.ts +6 -0
  28. package/dist/models/questionTagsModel.js +34 -0
  29. package/package.json +1 -1
  30. package/src/data-source.ts +17 -1
  31. package/src/index.ts +8 -0
  32. package/src/models/GroupModel.ts +30 -0
  33. package/src/models/GroupNamesModel.ts +22 -0
  34. package/src/models/TransferMissionApprovalModel.ts +49 -0
  35. package/src/models/TransferMissionAttachmentModel.ts +31 -0
  36. package/src/models/TransferMissionChatModel.ts +66 -0
  37. package/src/models/TransferMissionRequestModel.ts +94 -0
  38. package/src/models/TransferMissionWorkflowModel.ts +39 -0
  39. package/src/models/WorkScheduleModel.ts +47 -0
  40. package/dist/models/TelephoneDirectoryModel.d.ts +0 -22
  41. package/dist/models/TelephoneDirectoryModel.js +0 -96
  42. package/src/models/TelephoneDirectoryModel.ts +0 -69
@@ -0,0 +1,94 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum TransferMissionStatus {
5
+ PENDING = "Pending",
6
+ ASSIGNED = "Assigned",
7
+ IN_PROGRESS = "In Progress",
8
+ APPROVED = "Approved",
9
+ REJECTED = "Rejected"
10
+ }
11
+
12
+ @Entity({ name: 'transfer_mission_requests' })
13
+ export class TransferMissionRequests extends BaseModel {
14
+
15
+ @Column({ type: 'int', nullable: true })
16
+ req_user_department_id: number | null;
17
+
18
+ @Column({ type: 'int', nullable: true })
19
+ req_user_section_id: number | null;
20
+
21
+ @Column({ type: 'int', nullable: true })
22
+ service_id: number | null;
23
+
24
+ @Column({ type: 'int', nullable: true })
25
+ sub_service_id: number | null;
26
+
27
+ @Column({ type: 'int', nullable: false })
28
+ user_id: number;
29
+
30
+ @Column({ type: 'enum', enum: TransferMissionStatus, default: TransferMissionStatus.PENDING, nullable: false })
31
+ status: TransferMissionStatus;
32
+
33
+ @Column({ type: 'varchar', nullable: true })
34
+ workflow_execution_id: string | null;
35
+
36
+ // New columns
37
+ @Column({ type: 'varchar', length: 50, nullable: true })
38
+ graduation_year: string | null;
39
+
40
+ @Column({ type: 'varchar', length: 100, nullable: true })
41
+ country: string | null;
42
+
43
+ @Column({ type: 'varchar', length: 255, nullable: true })
44
+ educational_institution: string | null;
45
+
46
+ @Column({ type: 'varchar', length: 255, nullable: true })
47
+ specialization: string | null;
48
+
49
+ @Column({ type: 'varchar', length: 255, nullable: true })
50
+ qualification: string | null;
51
+
52
+ @Column({ type: 'varchar', length: 50, nullable: true })
53
+ conversation_level: string | null;
54
+
55
+ @Column({ type: 'varchar', length: 50, nullable: true })
56
+ writing_level: string | null;
57
+
58
+ @Column({ type: 'varchar', length: 50, nullable: true })
59
+ reading_level: string | null;
60
+
61
+ @Column({ type: 'varchar', length: 100, nullable: true })
62
+ language: string | null;
63
+
64
+ @Column({ type: 'int', nullable: true })
65
+ number_of_children: number | null;
66
+
67
+ @Column({ type: 'int', nullable: true })
68
+ number_of_wives: number | null;
69
+
70
+ @Column({ type: 'varchar', length: 50, nullable: true })
71
+ marital_status: string | null;
72
+
73
+ @Column({ type: 'date', nullable: true })
74
+ date_of_transfer: Date | null;
75
+
76
+ @Column({ type: 'date', nullable: true })
77
+ date_of_transfer_to_it: Date | null;
78
+
79
+ @Column({ type: 'varchar', length: 255, nullable: true })
80
+ position_in_the_mission: string | null;
81
+
82
+ @Column({ type: 'text', nullable: true })
83
+ missions: string | null;
84
+
85
+ @Column({ type: 'text', nullable: true })
86
+ this_year_evaluation: string | null;
87
+
88
+ @Column({ type: 'varchar', length: 50, nullable: true })
89
+ last_year: string | null;
90
+
91
+ @Column({ type: 'text', nullable: true })
92
+ missions_you_would_like_to_work_in: string | null;
93
+ }
94
+
@@ -0,0 +1,39 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum TransferMissionWorkFlowStatus {
5
+ COMPLETED = "Completed",
6
+ NOT_YET_STARTED = "Not Yet Started",
7
+ PENDING = "Pending"
8
+ }
9
+
10
+ @Entity({ name: 'transfer_mission_workflows' })
11
+ export class TransferMissionWorkFlow extends BaseModel {
12
+ @Column({ type: 'integer', nullable: false })
13
+ request_id: number;
14
+
15
+ @Column({ type: 'integer', nullable: true })
16
+ service_id: number | null;
17
+
18
+ @Column({ type: 'integer', nullable: true })
19
+ sub_service_id: number | null;
20
+
21
+ @Column({ type: 'varchar', length: 500, nullable: false })
22
+ content: string;
23
+
24
+ @Column({ type: 'enum', enum: TransferMissionWorkFlowStatus, default: TransferMissionWorkFlowStatus.NOT_YET_STARTED, nullable: false })
25
+ status: TransferMissionWorkFlowStatus;
26
+
27
+ @Column({ type: 'integer', nullable: true })
28
+ user_id: number | null;
29
+
30
+ @Column({ type: 'integer', nullable: true })
31
+ role_id: number | null;
32
+
33
+ @Column({ type: 'integer', nullable: true })
34
+ department_id: number | null;
35
+
36
+ @Column({ type: 'integer', nullable: true })
37
+ section_id: number | null;
38
+ }
39
+
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @author
3
+ * Amnet Digital
4
+ * @date
5
+ * 2024-12-20
6
+ * @Model
7
+ * WorkSchedule
8
+ * @usage
9
+ * Work Schedule Information will store
10
+ */
11
+
12
+ import { Column, Entity } from "typeorm";
13
+ import { BaseModel } from './BaseModel';
14
+
15
+ @Entity({ name: 'work_schedules' })
16
+ export class WorkSchedule extends BaseModel {
17
+ @Column({ type: 'date', nullable: false })
18
+ from_date: Date;
19
+
20
+ @Column({ type: 'date', nullable: false })
21
+ to_date: Date;
22
+
23
+ @Column({ type: 'time', nullable: false })
24
+ from_time: string;
25
+
26
+ @Column({ type: 'time', nullable: false })
27
+ to_time: string;
28
+
29
+ @Column({ type: 'text', nullable: true })
30
+ reason: string | null;
31
+
32
+ constructor(
33
+ from_date: Date,
34
+ to_date: Date,
35
+ from_time: string,
36
+ to_time: string,
37
+ reason?: string
38
+ ) {
39
+ super();
40
+ this.from_date = from_date;
41
+ this.to_date = to_date;
42
+ this.from_time = from_time;
43
+ this.to_time = to_time;
44
+ this.reason = reason || null;
45
+ }
46
+ }
47
+
@@ -1,22 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class TelephoneDirectory extends BaseModel {
3
- id: number;
4
- category: "FM" | "Embassy";
5
- name: string;
6
- position: string;
7
- diplomatic_title: string;
8
- embassy_name: string;
9
- email: string;
10
- contact_number: string;
11
- extension_number: string;
12
- fax_number: string;
13
- location: string;
14
- department_id: number;
15
- employee_id: number | null;
16
- street: string;
17
- city: string;
18
- state: string;
19
- zip_code: string;
20
- country: string;
21
- photo_url: string;
22
- }
@@ -1,96 +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.TelephoneDirectory = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- let TelephoneDirectory = class TelephoneDirectory extends BaseModel_1.BaseModel {
16
- };
17
- exports.TelephoneDirectory = TelephoneDirectory;
18
- __decorate([
19
- (0, typeorm_1.PrimaryGeneratedColumn)(),
20
- __metadata("design:type", Number)
21
- ], TelephoneDirectory.prototype, "id", void 0);
22
- __decorate([
23
- (0, typeorm_1.Column)({ type: "enum", enum: ["FM", "Embassy"], nullable: false }),
24
- __metadata("design:type", String)
25
- ], TelephoneDirectory.prototype, "category", void 0);
26
- __decorate([
27
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
28
- __metadata("design:type", String)
29
- ], TelephoneDirectory.prototype, "name", void 0);
30
- __decorate([
31
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
32
- __metadata("design:type", String)
33
- ], TelephoneDirectory.prototype, "position", void 0);
34
- __decorate([
35
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
36
- __metadata("design:type", String)
37
- ], TelephoneDirectory.prototype, "diplomatic_title", void 0);
38
- __decorate([
39
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
40
- __metadata("design:type", String)
41
- ], TelephoneDirectory.prototype, "embassy_name", void 0);
42
- __decorate([
43
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
44
- __metadata("design:type", String)
45
- ], TelephoneDirectory.prototype, "email", void 0);
46
- __decorate([
47
- (0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
48
- __metadata("design:type", String)
49
- ], TelephoneDirectory.prototype, "contact_number", void 0);
50
- __decorate([
51
- (0, typeorm_1.Column)({ type: "varchar", length: 10, nullable: true }),
52
- __metadata("design:type", String)
53
- ], TelephoneDirectory.prototype, "extension_number", void 0);
54
- __decorate([
55
- (0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
56
- __metadata("design:type", String)
57
- ], TelephoneDirectory.prototype, "fax_number", void 0);
58
- __decorate([
59
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
60
- __metadata("design:type", String)
61
- ], TelephoneDirectory.prototype, "location", void 0);
62
- __decorate([
63
- (0, typeorm_1.Column)({ nullable: true }),
64
- __metadata("design:type", Number)
65
- ], TelephoneDirectory.prototype, "department_id", void 0);
66
- __decorate([
67
- (0, typeorm_1.Column)({ type: "int", nullable: true }),
68
- __metadata("design:type", Object)
69
- ], TelephoneDirectory.prototype, "employee_id", void 0);
70
- __decorate([
71
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
72
- __metadata("design:type", String)
73
- ], TelephoneDirectory.prototype, "street", void 0);
74
- __decorate([
75
- (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
76
- __metadata("design:type", String)
77
- ], TelephoneDirectory.prototype, "city", void 0);
78
- __decorate([
79
- (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
80
- __metadata("design:type", String)
81
- ], TelephoneDirectory.prototype, "state", void 0);
82
- __decorate([
83
- (0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
84
- __metadata("design:type", String)
85
- ], TelephoneDirectory.prototype, "zip_code", void 0);
86
- __decorate([
87
- (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
88
- __metadata("design:type", String)
89
- ], TelephoneDirectory.prototype, "country", void 0);
90
- __decorate([
91
- (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
92
- __metadata("design:type", String)
93
- ], TelephoneDirectory.prototype, "photo_url", void 0);
94
- exports.TelephoneDirectory = TelephoneDirectory = __decorate([
95
- (0, typeorm_1.Entity)({ name: "telephone_directory" })
96
- ], TelephoneDirectory);
@@ -1,69 +0,0 @@
1
- import { Entity, Column, PrimaryGeneratedColumn } from "typeorm";
2
- import { BaseModel } from './BaseModel';
3
-
4
- @Entity({ name: "telephone_directory" })
5
- export class TelephoneDirectory extends BaseModel {
6
- @PrimaryGeneratedColumn()
7
- id: number;
8
-
9
- // General Information
10
- @Column({ type: "enum", enum: ["FM", "Embassy"], nullable: false })
11
- category: "FM" | "Embassy"; // Mandatory - to differentiate FM and Embassy
12
-
13
- @Column({ type: "varchar", length: 255, nullable: false })
14
- name: string;
15
-
16
- @Column({ type: "varchar", length: 255, nullable: true })
17
- position: string; // Position/Title
18
-
19
- @Column({ type: "varchar", length: 255, nullable: true })
20
- diplomatic_title: string; // Diplomatic Title
21
-
22
- @Column({ type: "varchar", length: 255, nullable: true })
23
- embassy_name: string; // Embassy name for M&C wise search (for Embassy category)
24
-
25
- // Email & Contact Information
26
- @Column({ type: "varchar", length: 255, nullable: false })
27
- email: string; // Mandatory
28
-
29
- @Column({ type: "varchar", length: 20, nullable: true })
30
- contact_number: string; // Optional
31
-
32
- @Column({ type: "varchar", length: 10, nullable: true })
33
- extension_number: string; // Extension Number - can be generic or linked to employee
34
-
35
- @Column({ type: "varchar", length: 20, nullable: true })
36
- fax_number: string; // Optional
37
-
38
- @Column({ type: "varchar", length: 255, nullable: true })
39
- location: string; // Optional
40
-
41
- // Department Information
42
- @Column({ nullable: true })
43
- department_id: number; // Reference to departments table
44
-
45
- // Additional fields for employee profile linkage
46
- @Column({ type: "int", nullable: true })
47
- employee_id: number | null; // If extension is linked to employee profile
48
-
49
- // Business Postal Address Information (Optional)
50
- @Column({ type: "varchar", length: 255, nullable: true })
51
- street: string;
52
-
53
- @Column({ type: "varchar", length: 100, nullable: true })
54
- city: string;
55
-
56
- @Column({ type: "varchar", length: 100, nullable: true })
57
- state: string;
58
-
59
- @Column({ type: "varchar", length: 20, nullable: true })
60
- zip_code: string;
61
-
62
- @Column({ type: "varchar", length: 100, nullable: true })
63
- country: string;
64
-
65
- // Photo
66
- @Column({ type: "varchar", length: 500, nullable: true })
67
- photo_url: string;
68
- }
69
-