@platform-modules/civil-aviation-authority 2.0.16 → 2.0.17

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.
package/.env CHANGED
@@ -1,11 +1,11 @@
1
- # DB_HOST=localhost
2
- # DB_PORT=5433
3
- # DB_USER=postgres
4
- # DB_PASS=123
5
- # DB_NAME=CAA
1
+ DB_HOST=localhost
2
+ DB_PORT=5433
3
+ DB_USER=postgres
4
+ DB_PASS=123
5
+ DB_NAME=CAA
6
6
 
7
- DB_HOST=164.52.222.169
8
- DB_PORT=5432
9
- DB_USER=postgres_admin_user
10
- DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
11
- DB_NAME=CAA
7
+ # DB_HOST=164.52.222.169
8
+ # DB_PORT=5432
9
+ # DB_USER=postgres_admin_user
10
+ # DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
11
+ # DB_NAME=CAA
@@ -1,6 +1,7 @@
1
1
  import { BaseModel } from './BaseModel';
2
2
  export declare enum LogisticsApprovalStatus {
3
3
  PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
4
5
  APPROVED = "Approved",
5
6
  REJECTED = "Rejected"
6
7
  }
@@ -15,6 +15,7 @@ const BaseModel_1 = require("./BaseModel");
15
15
  var LogisticsApprovalStatus;
16
16
  (function (LogisticsApprovalStatus) {
17
17
  LogisticsApprovalStatus["PENDING"] = "Pending";
18
+ LogisticsApprovalStatus["IN_PROGRESS"] = "In Progress";
18
19
  LogisticsApprovalStatus["APPROVED"] = "Approved";
19
20
  LogisticsApprovalStatus["REJECTED"] = "Rejected";
20
21
  })(LogisticsApprovalStatus || (exports.LogisticsApprovalStatus = LogisticsApprovalStatus = {}));
@@ -11,6 +11,7 @@ export declare class WorkflowHierarchy extends BaseModel {
11
11
  task: any | null;
12
12
  step_order: number;
13
13
  is_required: boolean;
14
+ task_type: string | null;
14
15
  workflow_definition: WorkflowDefinitions;
15
- constructor(workflow_definition_id: number, department_id: number, section_id: number, approval_role_id: number, approval_user_id: number, step_order: number, is_required?: boolean, taskname?: string, status?: string, task?: any);
16
+ constructor(workflow_definition_id: number, department_id: number, section_id: number, approval_role_id: number, approval_user_id: number, step_order: number, is_required?: boolean, taskname?: string, status?: string, task?: any, task_type?: string);
16
17
  }
@@ -14,7 +14,7 @@ const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
15
  const WorkflowDefinitions_1 = require("./WorkflowDefinitions");
16
16
  let WorkflowHierarchy = class WorkflowHierarchy extends BaseModel_1.BaseModel {
17
- constructor(workflow_definition_id, department_id, section_id, approval_role_id, approval_user_id, step_order, is_required, taskname, status, task) {
17
+ constructor(workflow_definition_id, department_id, section_id, approval_role_id, approval_user_id, step_order, is_required, taskname, status, task, task_type) {
18
18
  super();
19
19
  this.workflow_definition_id = workflow_definition_id;
20
20
  this.department_id = department_id;
@@ -26,6 +26,7 @@ let WorkflowHierarchy = class WorkflowHierarchy extends BaseModel_1.BaseModel {
26
26
  this.taskname = taskname || null;
27
27
  this.status = status || null;
28
28
  this.task = task || null;
29
+ this.task_type = task_type || null;
29
30
  }
30
31
  };
31
32
  exports.WorkflowHierarchy = WorkflowHierarchy;
@@ -69,6 +70,10 @@ __decorate([
69
70
  (0, typeorm_1.Column)({ type: 'boolean', default: true }),
70
71
  __metadata("design:type", Boolean)
71
72
  ], WorkflowHierarchy.prototype, "is_required", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
75
+ __metadata("design:type", Object)
76
+ ], WorkflowHierarchy.prototype, "task_type", void 0);
72
77
  __decorate([
73
78
  (0, typeorm_1.ManyToOne)(() => WorkflowDefinitions_1.WorkflowDefinitions, { onDelete: 'CASCADE' }),
74
79
  (0, typeorm_1.JoinColumn)({ name: 'workflow_definition_id' }),
@@ -77,5 +82,5 @@ __decorate([
77
82
  exports.WorkflowHierarchy = WorkflowHierarchy = __decorate([
78
83
  (0, typeorm_1.Entity)({ name: 'workflow_hierarchy' }),
79
84
  (0, typeorm_1.Unique)(['workflow_definition_id', 'step_order']),
80
- __metadata("design:paramtypes", [Number, Number, Number, Number, Number, Number, Boolean, String, String, Object])
85
+ __metadata("design:paramtypes", [Number, Number, Number, Number, Number, Number, Boolean, String, String, Object, String])
81
86
  ], WorkflowHierarchy);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -4,6 +4,7 @@ import { BaseModel } from './BaseModel';
4
4
 
5
5
  export enum LogisticsApprovalStatus {
6
6
  PENDING = "Pending",
7
+ IN_PROGRESS = "In Progress",
7
8
  APPROVED = "Approved",
8
9
  REJECTED = "Rejected"
9
10
  }
@@ -36,6 +36,9 @@ export class WorkflowHierarchy extends BaseModel {
36
36
  @Column({ type: 'boolean', default: true })
37
37
  is_required: boolean;
38
38
 
39
+ @Column({ type: 'varchar',length: 255, nullable:true })
40
+ task_type: string | null;
41
+
39
42
  @ManyToOne(() => WorkflowDefinitions, { onDelete: 'CASCADE' })
40
43
  @JoinColumn({ name: 'workflow_definition_id' })
41
44
  workflow_definition: WorkflowDefinitions;
@@ -50,7 +53,8 @@ export class WorkflowHierarchy extends BaseModel {
50
53
  is_required?: boolean,
51
54
  taskname?: string,
52
55
  status?: string,
53
- task?: any
56
+ task?: any,
57
+ task_type?:string
54
58
  ) {
55
59
  super();
56
60
  this.workflow_definition_id = workflow_definition_id;
@@ -63,5 +67,6 @@ export class WorkflowHierarchy extends BaseModel {
63
67
  this.taskname = taskname || null;
64
68
  this.status = status || null;
65
69
  this.task = task || null;
70
+ this.task_type = task_type || null;
66
71
  }
67
72
  }