@platform-modules/civil-aviation-authority 1.0.53 → 1.0.54
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.
|
@@ -6,9 +6,7 @@ export declare abstract class Model0 {
|
|
|
6
6
|
updated_at?: Date;
|
|
7
7
|
insertCreated(): void;
|
|
8
8
|
is_deleted?: boolean;
|
|
9
|
-
logicalDelete: boolean;
|
|
10
9
|
constructor();
|
|
11
|
-
toJSON(): Record<string, any>;
|
|
12
10
|
}
|
|
13
11
|
export declare abstract class BaseModel extends Model0 {
|
|
14
12
|
id: number;
|
package/dist/models/BaseModel.js
CHANGED
|
@@ -26,18 +26,6 @@ class Model0 {
|
|
|
26
26
|
this.created_by = '';
|
|
27
27
|
this.updated_by = '';
|
|
28
28
|
this.is_deleted = false;
|
|
29
|
-
this.logicalDelete = true;
|
|
30
|
-
}
|
|
31
|
-
// Don't serialize some fields
|
|
32
|
-
toJSON() {
|
|
33
|
-
const result = {};
|
|
34
|
-
for (const x in this) {
|
|
35
|
-
if (!this.jsonIgnore.includes(x)) {
|
|
36
|
-
// @ts-ignore
|
|
37
|
-
result[x] = this[x];
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return result;
|
|
41
29
|
}
|
|
42
30
|
}
|
|
43
31
|
exports.Model0 = Model0;
|
package/package.json
CHANGED
package/src/models/BaseModel.ts
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from 'typeorm';
|
|
9
9
|
|
|
10
10
|
export abstract class Model0 {
|
|
11
|
-
jsonIgnore: string[] = ['logicalDelete', 'is_deleted', 'jsonIgnore'];
|
|
11
|
+
jsonIgnore: string[] = ['logicalDelete', 'is_deleted', 'jsonIgnore'];
|
|
12
12
|
|
|
13
13
|
@Column({ nullable: false })
|
|
14
14
|
created_by?: string = '';
|
|
@@ -32,22 +32,7 @@ export abstract class Model0 {
|
|
|
32
32
|
@Column({ nullable: true, default: false })
|
|
33
33
|
is_deleted?: boolean = false;
|
|
34
34
|
|
|
35
|
-
logicalDelete: boolean;
|
|
36
|
-
|
|
37
35
|
constructor() {
|
|
38
|
-
this.logicalDelete = true;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Don't serialize some fields
|
|
42
|
-
toJSON() {
|
|
43
|
-
const result: Record<string, any> = {};
|
|
44
|
-
for (const x in this) {
|
|
45
|
-
if (!this.jsonIgnore.includes(x)) {
|
|
46
|
-
// @ts-ignore
|
|
47
|
-
result[x] = this[x];
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return result;
|
|
51
36
|
}
|
|
52
37
|
}
|
|
53
38
|
|