@platform-modules/civil-aviation-authority 2.3.47 → 2.3.48
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.
|
@@ -4,9 +4,11 @@ export declare enum ServicesNotificationTriggerType {
|
|
|
4
4
|
EVERY_APPROVAL = "every_approval"
|
|
5
5
|
}
|
|
6
6
|
export declare class ServicesNotificationConfigs extends BaseModel {
|
|
7
|
+
service_id: number;
|
|
8
|
+
sub_service_id: number;
|
|
7
9
|
department_id: number;
|
|
8
10
|
section_id: number | null;
|
|
9
11
|
trigger: ServicesNotificationTriggerType;
|
|
10
12
|
is_active: boolean;
|
|
11
|
-
constructor(department_id: number, section_id?: number | null, trigger?: ServicesNotificationTriggerType, is_active?: boolean);
|
|
13
|
+
constructor(service_id: number, sub_service_id: number, department_id: number, section_id?: number | null, trigger?: ServicesNotificationTriggerType, is_active?: boolean);
|
|
12
14
|
}
|
|
@@ -18,8 +18,10 @@ 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(department_id, section_id = null, trigger = ServicesNotificationTriggerType.FINAL_APPROVAL, is_active = true) {
|
|
21
|
+
constructor(service_id, sub_service_id, department_id, section_id = null, trigger = ServicesNotificationTriggerType.FINAL_APPROVAL, is_active = true) {
|
|
22
22
|
super();
|
|
23
|
+
this.service_id = service_id;
|
|
24
|
+
this.sub_service_id = sub_service_id;
|
|
23
25
|
this.department_id = department_id;
|
|
24
26
|
this.section_id = section_id;
|
|
25
27
|
this.trigger = trigger;
|
|
@@ -27,6 +29,14 @@ let ServicesNotificationConfigs = class ServicesNotificationConfigs extends Base
|
|
|
27
29
|
}
|
|
28
30
|
};
|
|
29
31
|
exports.ServicesNotificationConfigs = ServicesNotificationConfigs;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], ServicesNotificationConfigs.prototype, "service_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], ServicesNotificationConfigs.prototype, "sub_service_id", void 0);
|
|
30
40
|
__decorate([
|
|
31
41
|
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
32
42
|
__metadata("design:type", Number)
|
|
@@ -50,5 +60,5 @@ __decorate([
|
|
|
50
60
|
], ServicesNotificationConfigs.prototype, "is_active", void 0);
|
|
51
61
|
exports.ServicesNotificationConfigs = ServicesNotificationConfigs = __decorate([
|
|
52
62
|
(0, typeorm_1.Entity)({ name: "services_notification_configs" }),
|
|
53
|
-
__metadata("design:paramtypes", [Number, Object, String, Boolean])
|
|
63
|
+
__metadata("design:paramtypes", [Number, Number, Number, Object, String, Boolean])
|
|
54
64
|
], ServicesNotificationConfigs);
|
package/package.json
CHANGED
|
@@ -8,6 +8,12 @@ export enum ServicesNotificationTriggerType {
|
|
|
8
8
|
|
|
9
9
|
@Entity({ name: "services_notification_configs" })
|
|
10
10
|
export class ServicesNotificationConfigs extends BaseModel {
|
|
11
|
+
@Column({ type: "integer", nullable: false })
|
|
12
|
+
service_id: number;
|
|
13
|
+
|
|
14
|
+
@Column({ type: "integer", nullable: false })
|
|
15
|
+
sub_service_id: number;
|
|
16
|
+
|
|
11
17
|
@Column({ type: "integer", nullable: false })
|
|
12
18
|
department_id: number;
|
|
13
19
|
|
|
@@ -26,12 +32,16 @@ export class ServicesNotificationConfigs extends BaseModel {
|
|
|
26
32
|
is_active: boolean;
|
|
27
33
|
|
|
28
34
|
constructor(
|
|
35
|
+
service_id: number,
|
|
36
|
+
sub_service_id: number,
|
|
29
37
|
department_id: number,
|
|
30
38
|
section_id: number | null = null,
|
|
31
39
|
trigger: ServicesNotificationTriggerType = ServicesNotificationTriggerType.FINAL_APPROVAL,
|
|
32
40
|
is_active: boolean = true
|
|
33
41
|
) {
|
|
34
42
|
super();
|
|
43
|
+
this.service_id = service_id;
|
|
44
|
+
this.sub_service_id = sub_service_id;
|
|
35
45
|
this.department_id = department_id;
|
|
36
46
|
this.section_id = section_id;
|
|
37
47
|
this.trigger = trigger;
|