@platform-modules/civil-aviation-authority 1.0.44 → 1.0.45

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,5 +1,5 @@
1
1
  DB_HOST=localhost
2
2
  DB_PORT=5433
3
- DB_USER=netflix_user
4
- DB_PASS=netflix_user
3
+ DB_USER=postgres
4
+ DB_PASS=123
5
5
  DB_NAME=CAA
@@ -22,5 +22,6 @@ export declare class ITHelpDeskRequests extends BaseModel {
22
22
  reporting_manager: number;
23
23
  assigned_to: number;
24
24
  status: status;
25
- constructor(department: string, service_type: string, problem: string, request_for: ContactFor, description: string, extn_num: string, contact_num: string, request_date: Date, attachment_url: string, reporting_manager: number, assigned_to: number, status: status);
25
+ workflow_execution_id: string | null;
26
+ constructor(department: string, service_type: string, problem: string, request_for: ContactFor, description: string, extn_num: string, contact_num: string, request_date: Date, attachment_url: string, reporting_manager: number, assigned_to: number, status: status, workflow_execution_id?: string);
26
27
  }
@@ -24,7 +24,7 @@ var status;
24
24
  status["REJECTED"] = "Rejected";
25
25
  })(status || (exports.status = status = {}));
26
26
  let ITHelpDeskRequests = class ITHelpDeskRequests extends BaseModel_1.BaseModel {
27
- constructor(department, service_type, problem, request_for, description, extn_num, contact_num, request_date, attachment_url, reporting_manager, assigned_to, status) {
27
+ constructor(department, service_type, problem, request_for, description, extn_num, contact_num, request_date, attachment_url, reporting_manager, assigned_to, status, workflow_execution_id) {
28
28
  super();
29
29
  this.department = department,
30
30
  this.service_type = service_type,
@@ -37,7 +37,8 @@ let ITHelpDeskRequests = class ITHelpDeskRequests extends BaseModel_1.BaseModel
37
37
  this.attachment_url = attachment_url,
38
38
  this.reporting_manager = reporting_manager,
39
39
  this.assigned_to = assigned_to,
40
- this.status = status;
40
+ this.status = status,
41
+ this.workflow_execution_id = workflow_execution_id || null;
41
42
  }
42
43
  };
43
44
  exports.ITHelpDeskRequests = ITHelpDeskRequests;
@@ -103,7 +104,11 @@ __decorate([
103
104
  }),
104
105
  __metadata("design:type", String)
105
106
  ], ITHelpDeskRequests.prototype, "status", void 0);
107
+ __decorate([
108
+ (0, typeorm_1.Column)({ type: "varchar", nullable: true }),
109
+ __metadata("design:type", Object)
110
+ ], ITHelpDeskRequests.prototype, "workflow_execution_id", void 0);
106
111
  exports.ITHelpDeskRequests = ITHelpDeskRequests = __decorate([
107
112
  (0, typeorm_1.Entity)({ name: 'IT_Help_Desk_Requests' }),
108
- __metadata("design:paramtypes", [String, String, String, String, String, String, String, Date, String, Number, Number, String])
113
+ __metadata("design:paramtypes", [String, String, String, String, String, String, String, Date, String, Number, Number, String, String])
109
114
  ], ITHelpDeskRequests);
@@ -18,7 +18,6 @@ var ApprovalStatus;
18
18
  ApprovalStatus["APPROVED"] = "Approved";
19
19
  ApprovalStatus["REJECTED"] = "Rejected";
20
20
  })(ApprovalStatus || (exports.ApprovalStatus = ApprovalStatus = {}));
21
- //This model is used to store the store the leave apporval details of the user for the leave request
22
21
  let ItApprovalDetails = class ItApprovalDetails extends BaseModel_1.BaseModel {
23
22
  constructor(request_id, approver_user_id, approver_role_id, comment, approval_status, level) {
24
23
  super();
@@ -3,9 +3,10 @@ import { WorkflowDefinitions } from './WorkflowDefinitions';
3
3
  export declare class WorkflowHierarchy extends BaseModel {
4
4
  workflow_definition_id: number;
5
5
  department_id: number;
6
- approval_level_id: number;
6
+ section_id: number;
7
+ approval_id: number;
7
8
  step_order: number;
8
9
  is_required: boolean;
9
10
  workflow_definition: WorkflowDefinitions;
10
- constructor(workflow_definition_id: number, department_id: number, approval_level_id: number, step_order: number, is_required?: boolean);
11
+ constructor(workflow_definition_id: number, department_id: number, section_id: number, approval_id: number, step_order: number, is_required?: boolean);
11
12
  }
@@ -14,11 +14,12 @@ 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, approval_level_id, step_order, is_required) {
17
+ constructor(workflow_definition_id, department_id, section_id, approval_id, step_order, is_required) {
18
18
  super();
19
19
  this.workflow_definition_id = workflow_definition_id;
20
20
  this.department_id = department_id;
21
- this.approval_level_id = approval_level_id;
21
+ this.section_id = section_id;
22
+ this.approval_id = approval_id;
22
23
  this.step_order = step_order;
23
24
  this.is_required = is_required !== undefined ? is_required : true;
24
25
  }
@@ -29,13 +30,17 @@ __decorate([
29
30
  __metadata("design:type", Number)
30
31
  ], WorkflowHierarchy.prototype, "workflow_definition_id", void 0);
31
32
  __decorate([
32
- (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
33
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
33
34
  __metadata("design:type", Number)
34
35
  ], WorkflowHierarchy.prototype, "department_id", void 0);
35
36
  __decorate([
36
- (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
37
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
38
+ __metadata("design:type", Number)
39
+ ], WorkflowHierarchy.prototype, "section_id", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
37
42
  __metadata("design:type", Number)
38
- ], WorkflowHierarchy.prototype, "approval_level_id", void 0);
43
+ ], WorkflowHierarchy.prototype, "approval_id", void 0);
39
44
  __decorate([
40
45
  (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
41
46
  __metadata("design:type", Number)
@@ -52,5 +57,5 @@ __decorate([
52
57
  exports.WorkflowHierarchy = WorkflowHierarchy = __decorate([
53
58
  (0, typeorm_1.Entity)({ name: 'workflow_hierarchy' }),
54
59
  (0, typeorm_1.Unique)(['workflow_definition_id', 'step_order']),
55
- __metadata("design:paramtypes", [Number, Number, Number, Number, Boolean])
60
+ __metadata("design:paramtypes", [Number, Number, Number, Number, Number, Boolean])
56
61
  ], WorkflowHierarchy);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -62,6 +62,9 @@ export class ITHelpDeskRequests extends BaseModel {
62
62
  })
63
63
  status: status;
64
64
 
65
+ @Column({ type: "varchar", nullable: true })
66
+ workflow_execution_id: string | null;
67
+
65
68
  constructor(
66
69
  department: string,
67
70
  service_type: string,
@@ -75,6 +78,7 @@ export class ITHelpDeskRequests extends BaseModel {
75
78
  reporting_manager: number,
76
79
  assigned_to: number,
77
80
  status: status,
81
+ workflow_execution_id?: string,
78
82
  ) {
79
83
  super();
80
84
  this.department = department,
@@ -88,6 +92,7 @@ export class ITHelpDeskRequests extends BaseModel {
88
92
  this.attachment_url = attachment_url,
89
93
  this.reporting_manager = reporting_manager,
90
94
  this.assigned_to = assigned_to,
91
- this.status = status
95
+ this.status = status,
96
+ this.workflow_execution_id = workflow_execution_id || null
92
97
  }
93
98
  }
@@ -8,7 +8,6 @@ export enum ApprovalStatus {
8
8
  REJECTED = "Rejected"
9
9
  }
10
10
 
11
- //This model is used to store the store the leave apporval details of the user for the leave request
12
11
  @Entity({ name: 'it_approvals' })
13
12
  export class ItApprovalDetails extends BaseModel {
14
13
  @Column({ type: 'int', nullable: false })
@@ -9,11 +9,14 @@ export class WorkflowHierarchy extends BaseModel {
9
9
  @Column({ type: 'integer', nullable: false })
10
10
  workflow_definition_id: number;
11
11
 
12
- @Column({ type: 'integer', nullable: false })
12
+ @Column({ type: 'integer', nullable: true })
13
13
  department_id: number;
14
14
 
15
- @Column({ type: 'integer', nullable: false })
16
- approval_level_id: number;
15
+ @Column({ type: 'integer', nullable: true })
16
+ section_id: number;
17
+
18
+ @Column({ type: 'integer', nullable: true })
19
+ approval_id: number;
17
20
 
18
21
  @Column({ type: 'integer', nullable: false })
19
22
  step_order: number;
@@ -28,14 +31,16 @@ export class WorkflowHierarchy extends BaseModel {
28
31
  constructor(
29
32
  workflow_definition_id: number,
30
33
  department_id: number,
31
- approval_level_id: number,
34
+ section_id: number,
35
+ approval_id: number,
32
36
  step_order: number,
33
37
  is_required?: boolean
34
38
  ) {
35
39
  super();
36
40
  this.workflow_definition_id = workflow_definition_id;
37
41
  this.department_id = department_id;
38
- this.approval_level_id = approval_level_id;
42
+ this.section_id = section_id;
43
+ this.approval_id = approval_id;
39
44
  this.step_order = step_order;
40
45
  this.is_required = is_required !== undefined ? is_required : true;
41
46
  }
@@ -1,5 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class ITServicesTypes extends BaseModel {
3
- name: string;
4
- constructor(name: string);
5
- }
@@ -1,29 +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.ITServicesTypes = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- let ITServicesTypes = class ITServicesTypes extends BaseModel_1.BaseModel {
16
- constructor(name) {
17
- super();
18
- this.name = name;
19
- }
20
- };
21
- exports.ITServicesTypes = ITServicesTypes;
22
- __decorate([
23
- (0, typeorm_1.Column)({ nullable: false }),
24
- __metadata("design:type", String)
25
- ], ITServicesTypes.prototype, "name", void 0);
26
- exports.ITServicesTypes = ITServicesTypes = __decorate([
27
- (0, typeorm_1.Entity)({ name: 'IT_Services_Types' }),
28
- __metadata("design:paramtypes", [String])
29
- ], ITServicesTypes);