@platform-modules/foreign-ministry 1.1.84 → 1.1.101

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.
@@ -3,7 +3,8 @@ export declare enum ApprovalStatus {
3
3
  PENDING = "Pending",
4
4
  APPROVED = "Approved",
5
5
  REJECTED = "Rejected",
6
- IN_PROGRESS = "In Progress"
6
+ IN_PROGRESS = "In Progress",
7
+ CANCELLED = "Cancelled"
7
8
  }
8
9
  export declare class LeaveApprovalDetails extends BaseModel {
9
10
  leave_request_id: number;
@@ -18,6 +18,7 @@ var ApprovalStatus;
18
18
  ApprovalStatus["APPROVED"] = "Approved";
19
19
  ApprovalStatus["REJECTED"] = "Rejected";
20
20
  ApprovalStatus["IN_PROGRESS"] = "In Progress";
21
+ ApprovalStatus["CANCELLED"] = "Cancelled";
21
22
  })(ApprovalStatus || (exports.ApprovalStatus = ApprovalStatus = {}));
22
23
  //This model is used to store the store the leave apporval details of the user for the leave request
23
24
  let LeaveApprovalDetails = class LeaveApprovalDetails extends BaseModel_1.BaseModel {
@@ -19,4 +19,5 @@ export declare class TransferMissionApprovalDetails extends BaseModel {
19
19
  approved_by: number | null;
20
20
  comment: string;
21
21
  approval_status: TransferMissionApprovalStatus;
22
+ is_allowed: boolean;
22
23
  }
@@ -74,6 +74,10 @@ __decorate([
74
74
  (0, typeorm_1.Column)({ type: 'enum', enum: TransferMissionApprovalStatus, default: TransferMissionApprovalStatus.PENDING, nullable: false }),
75
75
  __metadata("design:type", String)
76
76
  ], TransferMissionApprovalDetails.prototype, "approval_status", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
79
+ __metadata("design:type", Boolean)
80
+ ], TransferMissionApprovalDetails.prototype, "is_allowed", void 0);
77
81
  exports.TransferMissionApprovalDetails = TransferMissionApprovalDetails = __decorate([
78
82
  (0, typeorm_1.Entity)({ name: 'transfer_mission_approvals' })
79
83
  ], TransferMissionApprovalDetails);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.1.84",
3
+ "version": "1.1.101",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -6,7 +6,8 @@ export enum ApprovalStatus {
6
6
  PENDING = "Pending",
7
7
  APPROVED = "Approved",
8
8
  REJECTED = "Rejected",
9
- IN_PROGRESS = "In Progress"
9
+ IN_PROGRESS = "In Progress",
10
+ CANCELLED = "Cancelled"
10
11
  }
11
12
 
12
13
  //This model is used to store the store the leave apporval details of the user for the leave request
@@ -48,5 +48,8 @@ export class TransferMissionApprovalDetails extends BaseModel {
48
48
 
49
49
  @Column({ type: 'enum', enum: TransferMissionApprovalStatus, default: TransferMissionApprovalStatus.PENDING, nullable: false })
50
50
  approval_status: TransferMissionApprovalStatus;
51
+
52
+ @Column({ type: 'boolean', default: true, nullable: false })
53
+ is_allowed: boolean;
51
54
  }
52
55