@platform-modules/civil-aviation-authority 1.0.32 → 1.0.33

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.
@@ -50,7 +50,7 @@ __decorate([
50
50
  __metadata("design:type", WorkflowDefinitions_1.WorkflowDefinitions)
51
51
  ], WorkflowHierarchy.prototype, "workflow_definition", void 0);
52
52
  exports.WorkflowHierarchy = WorkflowHierarchy = __decorate([
53
- (0, typeorm_1.Entity)({ name: 'workflow_approval_steps' }),
53
+ (0, typeorm_1.Entity)({ name: 'workflow_hierarchy' }),
54
54
  (0, typeorm_1.Unique)(['workflow_definition_id', 'step_order']),
55
55
  __metadata("design:paramtypes", [Number, Number, Number, Number, Boolean])
56
56
  ], WorkflowHierarchy);
@@ -29,6 +29,6 @@ __decorate([
29
29
  __metadata("design:type", Number)
30
30
  ], WorkflowTask.prototype, "task_id", void 0);
31
31
  exports.WorkflowTask = WorkflowTask = __decorate([
32
- (0, typeorm_1.Entity)({ name: 'workflow_task' }),
32
+ (0, typeorm_1.Entity)({ name: 'workflow_tasks' }),
33
33
  __metadata("design:paramtypes", [String, Number])
34
34
  ], WorkflowTask);
@@ -1,5 +1,7 @@
1
1
  import { BaseModel } from './BaseModel';
2
2
  export declare class WorkflowTaskNames extends BaseModel {
3
3
  name: string;
4
- constructor(name: string);
4
+ task_id: number;
5
+ description: string;
6
+ constructor(name: string, task_id: number, description: string);
5
7
  }
@@ -13,9 +13,11 @@ exports.WorkflowTaskNames = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
15
  let WorkflowTaskNames = class WorkflowTaskNames extends BaseModel_1.BaseModel {
16
- constructor(name) {
16
+ constructor(name, task_id, description) {
17
17
  super();
18
18
  this.name = name;
19
+ this.task_id = task_id;
20
+ this.description = description;
19
21
  }
20
22
  };
21
23
  exports.WorkflowTaskNames = WorkflowTaskNames;
@@ -23,7 +25,15 @@ __decorate([
23
25
  (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
24
26
  __metadata("design:type", String)
25
27
  ], WorkflowTaskNames.prototype, "name", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
30
+ __metadata("design:type", Number)
31
+ ], WorkflowTaskNames.prototype, "task_id", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true }),
34
+ __metadata("design:type", String)
35
+ ], WorkflowTaskNames.prototype, "description", void 0);
26
36
  exports.WorkflowTaskNames = WorkflowTaskNames = __decorate([
27
37
  (0, typeorm_1.Entity)({ name: 'workflow_task_names' }),
28
- __metadata("design:paramtypes", [String])
38
+ __metadata("design:paramtypes", [String, Number, String])
29
39
  ], WorkflowTaskNames);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -2,7 +2,7 @@ import { Column, Entity, ManyToOne, JoinColumn, Unique } from "typeorm";
2
2
  import { BaseModel } from './BaseModel';
3
3
  import { WorkflowDefinitions } from './WorkflowDefinitions';
4
4
 
5
- @Entity({ name: 'workflow_approval_steps' })
5
+ @Entity({ name: 'workflow_hierarchy' })
6
6
  @Unique(['workflow_definition_id', 'step_order'])
7
7
  export class WorkflowHierarchy extends BaseModel {
8
8
 
@@ -1,7 +1,7 @@
1
1
  import { Column, Entity } from "typeorm";
2
2
  import { BaseModel } from './BaseModel';
3
3
 
4
- @Entity({ name: 'workflow_task' })
4
+ @Entity({ name: 'workflow_tasks' })
5
5
  export class WorkflowTask extends BaseModel {
6
6
 
7
7
  @Column({ type: 'varchar', length: 100, nullable: false })
@@ -7,10 +7,20 @@ export class WorkflowTaskNames extends BaseModel {
7
7
  @Column({ type: 'varchar', length: 100, nullable: false })
8
8
  name: string;
9
9
 
10
+ @Column({ type: 'integer', nullable: false })
11
+ task_id: number;
12
+
13
+ @Column({ type: 'varchar', length: 200, nullable: true })
14
+ description: string;
15
+
10
16
  constructor(
11
- name: string
17
+ name: string,
18
+ task_id: number,
19
+ description: string
12
20
  ) {
13
21
  super();
14
22
  this.name = name;
23
+ this.task_id = task_id;
24
+ this.description = description;
15
25
  }
16
26
  }