@platform-modules/foreign-ministry 1.1.45 → 1.1.47
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/dist/models/LeaveAttachmentsModel.d.ts +6 -2
- package/dist/models/LeaveAttachmentsModel.js +27 -7
- package/dist/models/MounringLeaveRelationModel.d.ts +1 -0
- package/dist/models/MounringLeaveRelationModel.js +4 -0
- package/package.json +1 -1
- package/src/models/LeaveAttachmentsModel.ts +21 -5
- package/src/models/MounringLeaveRelationModel.ts +3 -0
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
2
|
export declare class LeaveAttachments extends BaseModel {
|
|
3
3
|
leave_request_id: number;
|
|
4
|
-
files: string;
|
|
5
4
|
attached_by_user_id: number;
|
|
6
|
-
|
|
5
|
+
file_url: string;
|
|
6
|
+
file_name: string;
|
|
7
|
+
file_type: string;
|
|
8
|
+
file_size: number | null;
|
|
9
|
+
chat_id: number | null;
|
|
10
|
+
constructor(leave_request_id: number, file_url: string, file_name: string, file_type: string, file_size: number | null, chat_id: number | null, attached_by_user_id: number);
|
|
7
11
|
}
|
|
@@ -14,10 +14,14 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
//This model is used to store the store the leave apporval matrix(HOD, Manager, HR, Director) based on leave type along with the levels
|
|
16
16
|
let LeaveAttachments = class LeaveAttachments extends BaseModel_1.BaseModel {
|
|
17
|
-
constructor(leave_request_id,
|
|
17
|
+
constructor(leave_request_id, file_url, file_name, file_type, file_size, chat_id, attached_by_user_id) {
|
|
18
18
|
super();
|
|
19
19
|
this.leave_request_id = leave_request_id;
|
|
20
|
-
this.
|
|
20
|
+
this.file_url = file_url;
|
|
21
|
+
this.file_name = file_name;
|
|
22
|
+
this.file_type = file_type;
|
|
23
|
+
this.file_size = file_size;
|
|
24
|
+
this.chat_id = chat_id;
|
|
21
25
|
this.attached_by_user_id = attached_by_user_id;
|
|
22
26
|
}
|
|
23
27
|
};
|
|
@@ -26,15 +30,31 @@ __decorate([
|
|
|
26
30
|
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
27
31
|
__metadata("design:type", Number)
|
|
28
32
|
], LeaveAttachments.prototype, "leave_request_id", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], LeaveAttachments.prototype, "files", void 0);
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
35
35
|
__metadata("design:type", Number)
|
|
36
36
|
], LeaveAttachments.prototype, "attached_by_user_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], LeaveAttachments.prototype, "file_url", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], LeaveAttachments.prototype, "file_name", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], LeaveAttachments.prototype, "file_type", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], LeaveAttachments.prototype, "file_size", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], LeaveAttachments.prototype, "chat_id", void 0);
|
|
37
57
|
exports.LeaveAttachments = LeaveAttachments = __decorate([
|
|
38
58
|
(0, typeorm_1.Entity)({ name: 'leave_attachments' }),
|
|
39
|
-
__metadata("design:paramtypes", [Number, String, Number])
|
|
59
|
+
__metadata("design:paramtypes", [Number, String, String, String, Object, Object, Number])
|
|
40
60
|
], LeaveAttachments);
|
|
@@ -23,6 +23,10 @@ __decorate([
|
|
|
23
23
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
25
|
], MounringLeaveRelations.prototype, "mounring_leave_relation", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], MounringLeaveRelations.prototype, "days_allowed", void 0);
|
|
26
30
|
exports.MounringLeaveRelations = MounringLeaveRelations = __decorate([
|
|
27
31
|
(0, typeorm_1.Entity)({ name: 'mounring_leave_relations' }),
|
|
28
32
|
__metadata("design:paramtypes", [String])
|
package/package.json
CHANGED
|
@@ -5,17 +5,33 @@ import { BaseModel } from './BaseModel';
|
|
|
5
5
|
export class LeaveAttachments extends BaseModel {
|
|
6
6
|
@Column({ type: 'int', nullable: false })
|
|
7
7
|
leave_request_id: number;
|
|
8
|
-
|
|
9
|
-
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
10
|
-
files: string;
|
|
11
8
|
|
|
12
9
|
@Column({ type: 'int', nullable: false })
|
|
13
10
|
attached_by_user_id: number;
|
|
14
11
|
|
|
15
|
-
|
|
12
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
13
|
+
file_url: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
16
|
+
file_name: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
19
|
+
file_type: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'bigint', nullable: true })
|
|
22
|
+
file_size: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'integer', nullable: true })
|
|
25
|
+
chat_id: number | null;
|
|
26
|
+
|
|
27
|
+
constructor(leave_request_id: number, file_url: string, file_name: string, file_type: string, file_size: number | null, chat_id: number | null, attached_by_user_id: number) {
|
|
16
28
|
super();
|
|
17
29
|
this.leave_request_id = leave_request_id;
|
|
18
|
-
this.
|
|
30
|
+
this.file_url = file_url;
|
|
31
|
+
this.file_name = file_name;
|
|
32
|
+
this.file_type = file_type;
|
|
33
|
+
this.file_size = file_size;
|
|
34
|
+
this.chat_id = chat_id;
|
|
19
35
|
this.attached_by_user_id = attached_by_user_id;
|
|
20
36
|
}
|
|
21
37
|
}
|
|
@@ -7,6 +7,9 @@ export class MounringLeaveRelations extends BaseModel {
|
|
|
7
7
|
@Column({ type: 'varchar', length: 100, nullable: false })
|
|
8
8
|
mounring_leave_relation: string;
|
|
9
9
|
|
|
10
|
+
@Column({ type: 'int', nullable: true })
|
|
11
|
+
days_allowed: number | null;
|
|
12
|
+
|
|
10
13
|
constructor(mounring_leave_relation: string) {
|
|
11
14
|
super();
|
|
12
15
|
this.mounring_leave_relation = mounring_leave_relation;
|