@platform-modules/foreign-ministry 1.1.42 → 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 +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/GroupNamesModel.js +1 -1
- package/dist/models/JobsModel.d.ts +17 -0
- package/dist/models/JobsModel.js +49 -0
- package/package.json +1 -1
- package/src/data-source.ts +3 -1
- package/src/index.ts +1 -0
- package/src/models/GroupNamesModel.ts +1 -1
- package/src/models/JobsModel.ts +37 -0
package/dist/data-source.js
CHANGED
|
@@ -99,6 +99,7 @@ const TransferMissionWorkflowModel_1 = require("./models/TransferMissionWorkflow
|
|
|
99
99
|
const GroupNamesModel_1 = require("./models/GroupNamesModel");
|
|
100
100
|
const GroupModel_1 = require("./models/GroupModel");
|
|
101
101
|
const WorkScheduleModel_1 = require("./models/WorkScheduleModel");
|
|
102
|
+
const JobsModel_1 = require("./models/JobsModel");
|
|
102
103
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
103
104
|
type: 'postgres',
|
|
104
105
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -202,6 +203,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
202
203
|
TransferMissionWorkflowModel_1.TransferMissionWorkFlow,
|
|
203
204
|
GroupNamesModel_1.GroupNames,
|
|
204
205
|
GroupModel_1.Group,
|
|
205
|
-
WorkScheduleModel_1.WorkSchedule
|
|
206
|
+
WorkScheduleModel_1.WorkSchedule,
|
|
207
|
+
JobsModel_1.Jobs
|
|
206
208
|
],
|
|
207
209
|
});
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -115,3 +115,4 @@ __exportStar(require("./models/TransferMissionWorkflowModel"), exports);
|
|
|
115
115
|
__exportStar(require("./models/GroupNamesModel"), exports);
|
|
116
116
|
__exportStar(require("./models/GroupModel"), exports);
|
|
117
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);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -104,6 +104,7 @@ import { TransferMissionWorkFlow } from './models/TransferMissionWorkflowModel';
|
|
|
104
104
|
import { GroupNames } from './models/GroupNamesModel';
|
|
105
105
|
import { Group } from './models/GroupModel';
|
|
106
106
|
import { WorkSchedule } from './models/WorkScheduleModel';
|
|
107
|
+
import { Jobs } from './models/JobsModel';
|
|
107
108
|
export const AppDataSource = new DataSource({
|
|
108
109
|
type: 'postgres',
|
|
109
110
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -207,6 +208,7 @@ export const AppDataSource = new DataSource({
|
|
|
207
208
|
TransferMissionWorkFlow,
|
|
208
209
|
GroupNames,
|
|
209
210
|
Group,
|
|
210
|
-
WorkSchedule
|
|
211
|
+
WorkSchedule,
|
|
212
|
+
Jobs
|
|
211
213
|
],
|
|
212
214
|
});
|
package/src/index.ts
CHANGED
|
@@ -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
|
+
|