@platform-modules/foreign-ministry 1.1.41 → 1.1.43
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/data-source.js +5 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/models/GroupNamesModel.js +1 -1
- package/dist/models/JobsModel.d.ts +17 -0
- package/dist/models/JobsModel.js +49 -0
- package/dist/models/WorkScheduleModel.d.ts +19 -0
- package/dist/models/WorkScheduleModel.js +60 -0
- package/package.json +1 -1
- package/src/data-source.ts +5 -1
- package/src/index.ts +2 -0
- package/src/models/GroupNamesModel.ts +1 -1
- package/src/models/JobsModel.ts +37 -0
- package/src/models/WorkScheduleModel.ts +47 -0
package/dist/data-source.js
CHANGED
|
@@ -98,6 +98,8 @@ const TransferMissionChatModel_1 = require("./models/TransferMissionChatModel");
|
|
|
98
98
|
const TransferMissionWorkflowModel_1 = require("./models/TransferMissionWorkflowModel");
|
|
99
99
|
const GroupNamesModel_1 = require("./models/GroupNamesModel");
|
|
100
100
|
const GroupModel_1 = require("./models/GroupModel");
|
|
101
|
+
const WorkScheduleModel_1 = require("./models/WorkScheduleModel");
|
|
102
|
+
const JobsModel_1 = require("./models/JobsModel");
|
|
101
103
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
102
104
|
type: 'postgres',
|
|
103
105
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -200,6 +202,8 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
200
202
|
TransferMissionChatModel_1.TransferMissionRequestChat,
|
|
201
203
|
TransferMissionWorkflowModel_1.TransferMissionWorkFlow,
|
|
202
204
|
GroupNamesModel_1.GroupNames,
|
|
203
|
-
GroupModel_1.Group
|
|
205
|
+
GroupModel_1.Group,
|
|
206
|
+
WorkScheduleModel_1.WorkSchedule,
|
|
207
|
+
JobsModel_1.Jobs
|
|
204
208
|
],
|
|
205
209
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -98,3 +98,5 @@ export * from './models/TransferMissionChatModel';
|
|
|
98
98
|
export * from './models/TransferMissionWorkflowModel';
|
|
99
99
|
export * from './models/GroupNamesModel';
|
|
100
100
|
export * from './models/GroupModel';
|
|
101
|
+
export * from './models/WorkScheduleModel';
|
|
102
|
+
export * from './models/JobsModel';
|
package/dist/index.js
CHANGED
|
@@ -114,3 +114,5 @@ __exportStar(require("./models/TransferMissionChatModel"), exports);
|
|
|
114
114
|
__exportStar(require("./models/TransferMissionWorkflowModel"), exports);
|
|
115
115
|
__exportStar(require("./models/GroupNamesModel"), exports);
|
|
116
116
|
__exportStar(require("./models/GroupModel"), exports);
|
|
117
|
+
__exportStar(require("./models/WorkScheduleModel"), exports);
|
|
118
|
+
__exportStar(require("./models/JobsModel"), exports);
|
|
@@ -25,7 +25,7 @@ __decorate([
|
|
|
25
25
|
__metadata("design:type", String)
|
|
26
26
|
], GroupNames.prototype, "name", void 0);
|
|
27
27
|
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ nullable:
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
30
|
], GroupNames.prototype, "description", void 0);
|
|
31
31
|
exports.GroupNames = GroupNames = __decorate([
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author
|
|
3
|
+
* Amnet Digital
|
|
4
|
+
* @date
|
|
5
|
+
* 2024-12-20
|
|
6
|
+
* @Model
|
|
7
|
+
* Jobs
|
|
8
|
+
* @usage
|
|
9
|
+
* Jobs Information will store
|
|
10
|
+
*/
|
|
11
|
+
import { BaseModel } from './BaseModel';
|
|
12
|
+
export declare class Jobs extends BaseModel {
|
|
13
|
+
title: string;
|
|
14
|
+
grade: number;
|
|
15
|
+
description: string;
|
|
16
|
+
constructor(title: string, grade: number, description: string);
|
|
17
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author
|
|
4
|
+
* Amnet Digital
|
|
5
|
+
* @date
|
|
6
|
+
* 2024-12-20
|
|
7
|
+
* @Model
|
|
8
|
+
* Jobs
|
|
9
|
+
* @usage
|
|
10
|
+
* Jobs Information will store
|
|
11
|
+
*/
|
|
12
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
13
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
16
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17
|
+
};
|
|
18
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.Jobs = void 0;
|
|
23
|
+
const typeorm_1 = require("typeorm");
|
|
24
|
+
const BaseModel_1 = require("./BaseModel");
|
|
25
|
+
let Jobs = class Jobs extends BaseModel_1.BaseModel {
|
|
26
|
+
constructor(title, grade, description) {
|
|
27
|
+
super();
|
|
28
|
+
this.title = title;
|
|
29
|
+
this.grade = grade;
|
|
30
|
+
this.description = description;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.Jobs = Jobs;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Jobs.prototype, "title", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], Jobs.prototype, "grade", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Jobs.prototype, "description", void 0);
|
|
46
|
+
exports.Jobs = Jobs = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: 'jobs' }),
|
|
48
|
+
__metadata("design:paramtypes", [String, Number, String])
|
|
49
|
+
], Jobs);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author
|
|
3
|
+
* Amnet Digital
|
|
4
|
+
* @date
|
|
5
|
+
* 2024-12-20
|
|
6
|
+
* @Model
|
|
7
|
+
* WorkSchedule
|
|
8
|
+
* @usage
|
|
9
|
+
* Work Schedule Information will store
|
|
10
|
+
*/
|
|
11
|
+
import { BaseModel } from './BaseModel';
|
|
12
|
+
export declare class WorkSchedule extends BaseModel {
|
|
13
|
+
from_date: Date;
|
|
14
|
+
to_date: Date;
|
|
15
|
+
from_time: string;
|
|
16
|
+
to_time: string;
|
|
17
|
+
reason: string | null;
|
|
18
|
+
constructor(from_date: Date, to_date: Date, from_time: string, to_time: string, reason?: string);
|
|
19
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author
|
|
4
|
+
* Amnet Digital
|
|
5
|
+
* @date
|
|
6
|
+
* 2024-12-20
|
|
7
|
+
* @Model
|
|
8
|
+
* WorkSchedule
|
|
9
|
+
* @usage
|
|
10
|
+
* Work Schedule Information will store
|
|
11
|
+
*/
|
|
12
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
13
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
16
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17
|
+
};
|
|
18
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.WorkSchedule = void 0;
|
|
23
|
+
const typeorm_1 = require("typeorm");
|
|
24
|
+
const BaseModel_1 = require("./BaseModel");
|
|
25
|
+
let WorkSchedule = class WorkSchedule extends BaseModel_1.BaseModel {
|
|
26
|
+
constructor(from_date, to_date, from_time, to_time, reason) {
|
|
27
|
+
super();
|
|
28
|
+
this.from_date = from_date;
|
|
29
|
+
this.to_date = to_date;
|
|
30
|
+
this.from_time = from_time;
|
|
31
|
+
this.to_time = to_time;
|
|
32
|
+
this.reason = reason || null;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.WorkSchedule = WorkSchedule;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
38
|
+
__metadata("design:type", Date)
|
|
39
|
+
], WorkSchedule.prototype, "from_date", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
42
|
+
__metadata("design:type", Date)
|
|
43
|
+
], WorkSchedule.prototype, "to_date", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: false }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], WorkSchedule.prototype, "from_time", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: false }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], WorkSchedule.prototype, "to_time", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], WorkSchedule.prototype, "reason", void 0);
|
|
56
|
+
exports.WorkSchedule = WorkSchedule = __decorate([
|
|
57
|
+
(0, typeorm_1.Entity)({ name: 'work_schedules' }),
|
|
58
|
+
__metadata("design:paramtypes", [Date,
|
|
59
|
+
Date, String, String, String])
|
|
60
|
+
], WorkSchedule);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -103,6 +103,8 @@ import { TransferMissionRequestChat } from './models/TransferMissionChatModel';
|
|
|
103
103
|
import { TransferMissionWorkFlow } from './models/TransferMissionWorkflowModel';
|
|
104
104
|
import { GroupNames } from './models/GroupNamesModel';
|
|
105
105
|
import { Group } from './models/GroupModel';
|
|
106
|
+
import { WorkSchedule } from './models/WorkScheduleModel';
|
|
107
|
+
import { Jobs } from './models/JobsModel';
|
|
106
108
|
export const AppDataSource = new DataSource({
|
|
107
109
|
type: 'postgres',
|
|
108
110
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -205,6 +207,8 @@ export const AppDataSource = new DataSource({
|
|
|
205
207
|
TransferMissionRequestChat,
|
|
206
208
|
TransferMissionWorkFlow,
|
|
207
209
|
GroupNames,
|
|
208
|
-
Group
|
|
210
|
+
Group,
|
|
211
|
+
WorkSchedule,
|
|
212
|
+
Jobs
|
|
209
213
|
],
|
|
210
214
|
});
|
package/src/index.ts
CHANGED
|
@@ -98,3 +98,5 @@ export * from './models/TransferMissionChatModel';
|
|
|
98
98
|
export * from './models/TransferMissionWorkflowModel';
|
|
99
99
|
export * from './models/GroupNamesModel';
|
|
100
100
|
export * from './models/GroupModel';
|
|
101
|
+
export * from './models/WorkScheduleModel';
|
|
102
|
+
export * from './models/JobsModel';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author
|
|
3
|
+
* Amnet Digital
|
|
4
|
+
* @date
|
|
5
|
+
* 2024-12-20
|
|
6
|
+
* @Model
|
|
7
|
+
* Jobs
|
|
8
|
+
* @usage
|
|
9
|
+
* Jobs Information will store
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import { Column, Entity } from "typeorm";
|
|
13
|
+
import { BaseModel } from './BaseModel';
|
|
14
|
+
|
|
15
|
+
@Entity({ name: 'jobs' })
|
|
16
|
+
export class Jobs extends BaseModel {
|
|
17
|
+
@Column({ type: 'varchar', nullable: false })
|
|
18
|
+
title: string;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'integer', nullable: false })
|
|
21
|
+
grade: number;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'text', nullable: false })
|
|
24
|
+
description: string;
|
|
25
|
+
|
|
26
|
+
constructor(
|
|
27
|
+
title: string,
|
|
28
|
+
grade: number,
|
|
29
|
+
description: string
|
|
30
|
+
) {
|
|
31
|
+
super();
|
|
32
|
+
this.title = title;
|
|
33
|
+
this.grade = grade;
|
|
34
|
+
this.description = description;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author
|
|
3
|
+
* Amnet Digital
|
|
4
|
+
* @date
|
|
5
|
+
* 2024-12-20
|
|
6
|
+
* @Model
|
|
7
|
+
* WorkSchedule
|
|
8
|
+
* @usage
|
|
9
|
+
* Work Schedule Information will store
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import { Column, Entity } from "typeorm";
|
|
13
|
+
import { BaseModel } from './BaseModel';
|
|
14
|
+
|
|
15
|
+
@Entity({ name: 'work_schedules' })
|
|
16
|
+
export class WorkSchedule extends BaseModel {
|
|
17
|
+
@Column({ type: 'date', nullable: false })
|
|
18
|
+
from_date: Date;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'date', nullable: false })
|
|
21
|
+
to_date: Date;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'time', nullable: false })
|
|
24
|
+
from_time: string;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'time', nullable: false })
|
|
27
|
+
to_time: string;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'text', nullable: true })
|
|
30
|
+
reason: string | null;
|
|
31
|
+
|
|
32
|
+
constructor(
|
|
33
|
+
from_date: Date,
|
|
34
|
+
to_date: Date,
|
|
35
|
+
from_time: string,
|
|
36
|
+
to_time: string,
|
|
37
|
+
reason?: string
|
|
38
|
+
) {
|
|
39
|
+
super();
|
|
40
|
+
this.from_date = from_date;
|
|
41
|
+
this.to_date = to_date;
|
|
42
|
+
this.from_time = from_time;
|
|
43
|
+
this.to_time = to_time;
|
|
44
|
+
this.reason = reason || null;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|