@platform-modules/foreign-ministry 1.3.139 → 1.3.141

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 (33) hide show
  1. package/dist/data-source.js +12 -0
  2. package/dist/index.d.ts +10 -0
  3. package/dist/index.js +23 -1
  4. package/dist/models/AppointmentApprovalModel.d.ts +22 -0
  5. package/dist/models/AppointmentApprovalModel.js +84 -0
  6. package/dist/models/AppointmentAttachmentModel.d.ts +11 -0
  7. package/dist/models/AppointmentAttachmentModel.js +52 -0
  8. package/dist/models/AppointmentAttendeeModel.d.ts +14 -0
  9. package/dist/models/AppointmentAttendeeModel.js +47 -0
  10. package/dist/models/AppointmentChatModel.d.ts +19 -0
  11. package/dist/models/AppointmentChatModel.js +77 -0
  12. package/dist/models/AppointmentRequestModel.d.ts +47 -0
  13. package/dist/models/AppointmentRequestModel.js +126 -0
  14. package/dist/models/AppointmentWorkflowModel.d.ts +17 -0
  15. package/dist/models/AppointmentWorkflowModel.js +62 -0
  16. package/dist/models/ProfileUpdateRequestsModel.d.ts +2 -0
  17. package/dist/models/ProfileUpdateRequestsModel.js +8 -0
  18. package/dist/models/UserEmploymentDetailsModel.d.ts +1 -0
  19. package/dist/models/UserEmploymentDetailsModel.js +4 -0
  20. package/dist/models/UserPersonalDetailsModel.d.ts +1 -0
  21. package/dist/models/UserPersonalDetailsModel.js +4 -0
  22. package/package.json +1 -1
  23. package/src/data-source.ts +387 -375
  24. package/src/index.ts +301 -289
  25. package/src/models/AppointmentApprovalModel.ts +57 -0
  26. package/src/models/AppointmentAttachmentModel.ts +30 -0
  27. package/src/models/AppointmentAttendeeModel.ts +28 -0
  28. package/src/models/AppointmentChatModel.ts +64 -0
  29. package/src/models/AppointmentRequestModel.ts +93 -0
  30. package/src/models/AppointmentWorkflowModel.ts +39 -0
  31. package/src/models/ProfileUpdateRequestsModel.ts +8 -0
  32. package/src/models/UserEmploymentDetailsModel.ts +4 -0
  33. package/src/models/UserPersonalDetailsModel.ts +4 -0
@@ -0,0 +1,62 @@
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.AppointmentWorkFlow = exports.AppointmentWorkFlowStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var AppointmentWorkFlowStatus;
16
+ (function (AppointmentWorkFlowStatus) {
17
+ AppointmentWorkFlowStatus["COMPLETED"] = "Completed";
18
+ AppointmentWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
19
+ AppointmentWorkFlowStatus["PENDING"] = "Pending";
20
+ })(AppointmentWorkFlowStatus || (exports.AppointmentWorkFlowStatus = AppointmentWorkFlowStatus = {}));
21
+ let AppointmentWorkFlow = class AppointmentWorkFlow extends BaseModel_1.BaseModel {
22
+ };
23
+ exports.AppointmentWorkFlow = AppointmentWorkFlow;
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
26
+ __metadata("design:type", Number)
27
+ ], AppointmentWorkFlow.prototype, "appointment_id", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
30
+ __metadata("design:type", Object)
31
+ ], AppointmentWorkFlow.prototype, "service_id", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
34
+ __metadata("design:type", Object)
35
+ ], AppointmentWorkFlow.prototype, "sub_service_id", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
38
+ __metadata("design:type", String)
39
+ ], AppointmentWorkFlow.prototype, "content", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ type: 'enum', enum: AppointmentWorkFlowStatus, default: AppointmentWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
42
+ __metadata("design:type", String)
43
+ ], AppointmentWorkFlow.prototype, "status", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
46
+ __metadata("design:type", Object)
47
+ ], AppointmentWorkFlow.prototype, "user_id", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
50
+ __metadata("design:type", Object)
51
+ ], AppointmentWorkFlow.prototype, "role_id", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
54
+ __metadata("design:type", Object)
55
+ ], AppointmentWorkFlow.prototype, "department_id", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
58
+ __metadata("design:type", Object)
59
+ ], AppointmentWorkFlow.prototype, "section_id", void 0);
60
+ exports.AppointmentWorkFlow = AppointmentWorkFlow = __decorate([
61
+ (0, typeorm_1.Entity)({ name: 'appointment_workflows' })
62
+ ], AppointmentWorkFlow);
@@ -100,6 +100,7 @@ export declare class ProfileUpdateRequests extends BaseModel {
100
100
  efficiency_rating_for_the_year_month: string | null;
101
101
  retirement_termination_of_service_date: Date | null;
102
102
  reason_for_leaving_service: string | null;
103
+ contract_copy: string | null;
103
104
  experience_activity: {
104
105
  type_of_job?: string;
105
106
  organization?: string;
@@ -116,6 +117,7 @@ export declare class ProfileUpdateRequests extends BaseModel {
116
117
  study_end_date: Date | null;
117
118
  training_course_start_date: Date | null;
118
119
  training_course_end_date: Date | null;
120
+ type_of_study: string | null;
119
121
  employee_arabic_name: string | null;
120
122
  embassy_id: number | null;
121
123
  father_name: string | null;
@@ -392,6 +392,10 @@ __decorate([
392
392
  (0, typeorm_1.Column)({ type: 'text', nullable: true }),
393
393
  __metadata("design:type", Object)
394
394
  ], ProfileUpdateRequests.prototype, "reason_for_leaving_service", void 0);
395
+ __decorate([
396
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
397
+ __metadata("design:type", Object)
398
+ ], ProfileUpdateRequests.prototype, "contract_copy", void 0);
395
399
  __decorate([
396
400
  (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
397
401
  __metadata("design:type", Object)
@@ -412,6 +416,10 @@ __decorate([
412
416
  (0, typeorm_1.Column)({ type: 'date', nullable: true }),
413
417
  __metadata("design:type", Object)
414
418
  ], ProfileUpdateRequests.prototype, "training_course_end_date", void 0);
419
+ __decorate([
420
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
421
+ __metadata("design:type", Object)
422
+ ], ProfileUpdateRequests.prototype, "type_of_study", void 0);
415
423
  __decorate([
416
424
  (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
417
425
  __metadata("design:type", Object)
@@ -46,6 +46,7 @@ export declare class UserEmploymentDetails extends BaseModel {
46
46
  efficiency_rating_for_the_year_month: string | null;
47
47
  retirement_termination_of_service_date: Date | null;
48
48
  reason_for_leaving_service: string | null;
49
+ contract_copy: string | null;
49
50
  experience_activity: {
50
51
  type_of_job?: string;
51
52
  organization?: string;
@@ -184,6 +184,10 @@ __decorate([
184
184
  (0, typeorm_1.Column)({ type: 'text', nullable: true }),
185
185
  __metadata("design:type", Object)
186
186
  ], UserEmploymentDetails.prototype, "reason_for_leaving_service", void 0);
187
+ __decorate([
188
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
189
+ __metadata("design:type", Object)
190
+ ], UserEmploymentDetails.prototype, "contract_copy", void 0);
187
191
  __decorate([
188
192
  (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
189
193
  __metadata("design:type", Object)
@@ -66,4 +66,5 @@ export declare class UserPersonalDetails extends BaseModel {
66
66
  educational_institute: string | null;
67
67
  qualification: string | null;
68
68
  education_country: number | null;
69
+ type_of_study: string | null;
69
70
  }
@@ -168,6 +168,10 @@ __decorate([
168
168
  (0, typeorm_1.Column)({ type: 'int', nullable: true }),
169
169
  __metadata("design:type", Object)
170
170
  ], UserPersonalDetails.prototype, "education_country", void 0);
171
+ __decorate([
172
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
173
+ __metadata("design:type", Object)
174
+ ], UserPersonalDetails.prototype, "type_of_study", void 0);
171
175
  exports.UserPersonalDetails = UserPersonalDetails = __decorate([
172
176
  (0, typeorm_1.Entity)({ name: 'user_personal_details' })
173
177
  ], UserPersonalDetails);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.3.139",
3
+ "version": "1.3.141",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {