@platform-modules/civil-aviation-authority 2.3.49 → 2.3.50

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.
@@ -8,7 +8,8 @@ export declare class ServicesNotificationConfigs extends BaseModel {
8
8
  sub_service_id: number;
9
9
  department_id: number;
10
10
  section_id: number | null;
11
+ role_id: number | null;
11
12
  trigger: ServicesNotificationTriggerType;
12
13
  is_active: boolean;
13
- constructor(service_id: number, sub_service_id: number, department_id: number, section_id?: number | null, trigger?: ServicesNotificationTriggerType, is_active?: boolean);
14
+ constructor(service_id: number, sub_service_id: number, department_id: number, section_id?: number | null, role_id?: number | null, trigger?: ServicesNotificationTriggerType, is_active?: boolean);
14
15
  }
@@ -18,12 +18,13 @@ var ServicesNotificationTriggerType;
18
18
  ServicesNotificationTriggerType["EVERY_APPROVAL"] = "every_approval";
19
19
  })(ServicesNotificationTriggerType || (exports.ServicesNotificationTriggerType = ServicesNotificationTriggerType = {}));
20
20
  let ServicesNotificationConfigs = class ServicesNotificationConfigs extends BaseModel_1.BaseModel {
21
- constructor(service_id, sub_service_id, department_id, section_id = null, trigger = ServicesNotificationTriggerType.FINAL_APPROVAL, is_active = true) {
21
+ constructor(service_id, sub_service_id, department_id, section_id = null, role_id = null, trigger = ServicesNotificationTriggerType.FINAL_APPROVAL, is_active = true) {
22
22
  super();
23
23
  this.service_id = service_id;
24
24
  this.sub_service_id = sub_service_id;
25
25
  this.department_id = department_id;
26
26
  this.section_id = section_id;
27
+ this.role_id = role_id;
27
28
  this.trigger = trigger;
28
29
  this.is_active = is_active;
29
30
  }
@@ -45,6 +46,10 @@ __decorate([
45
46
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
46
47
  __metadata("design:type", Object)
47
48
  ], ServicesNotificationConfigs.prototype, "section_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], ServicesNotificationConfigs.prototype, "role_id", void 0);
48
53
  __decorate([
49
54
  (0, typeorm_1.Column)({
50
55
  type: "enum",
@@ -60,5 +65,5 @@ __decorate([
60
65
  ], ServicesNotificationConfigs.prototype, "is_active", void 0);
61
66
  exports.ServicesNotificationConfigs = ServicesNotificationConfigs = __decorate([
62
67
  (0, typeorm_1.Entity)({ name: "services_notification_configs" }),
63
- __metadata("design:paramtypes", [Number, Number, Number, Object, String, Boolean])
68
+ __metadata("design:paramtypes", [Number, Number, Number, Object, Object, String, Boolean])
64
69
  ], ServicesNotificationConfigs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.49",
3
+ "version": "2.3.50",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -20,6 +20,9 @@ export class ServicesNotificationConfigs extends BaseModel {
20
20
  @Column({ type: "integer", nullable: true })
21
21
  section_id: number | null;
22
22
 
23
+ @Column({ type: "integer", nullable: true })
24
+ role_id: number | null;
25
+
23
26
  @Column({
24
27
  type: "enum",
25
28
  enum: ServicesNotificationTriggerType,
@@ -36,6 +39,7 @@ export class ServicesNotificationConfigs extends BaseModel {
36
39
  sub_service_id: number,
37
40
  department_id: number,
38
41
  section_id: number | null = null,
42
+ role_id: number | null = null,
39
43
  trigger: ServicesNotificationTriggerType = ServicesNotificationTriggerType.FINAL_APPROVAL,
40
44
  is_active: boolean = true
41
45
  ) {
@@ -44,6 +48,7 @@ export class ServicesNotificationConfigs extends BaseModel {
44
48
  this.sub_service_id = sub_service_id;
45
49
  this.department_id = department_id;
46
50
  this.section_id = section_id;
51
+ this.role_id = role_id;
47
52
  this.trigger = trigger;
48
53
  this.is_active = is_active;
49
54
  }