@platform-modules/foreign-ministry 1.1.41 → 1.1.42
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/WorkScheduleModel.d.ts +19 -0
- package/dist/models/WorkScheduleModel.js +60 -0
- package/package.json +1 -1
- package/src/data-source.ts +3 -1
- package/src/index.ts +1 -0
- package/src/models/WorkScheduleModel.ts +47 -0
package/dist/data-source.js
CHANGED
|
@@ -98,6 +98,7 @@ 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");
|
|
101
102
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
102
103
|
type: 'postgres',
|
|
103
104
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -200,6 +201,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
200
201
|
TransferMissionChatModel_1.TransferMissionRequestChat,
|
|
201
202
|
TransferMissionWorkflowModel_1.TransferMissionWorkFlow,
|
|
202
203
|
GroupNamesModel_1.GroupNames,
|
|
203
|
-
GroupModel_1.Group
|
|
204
|
+
GroupModel_1.Group,
|
|
205
|
+
WorkScheduleModel_1.WorkSchedule
|
|
204
206
|
],
|
|
205
207
|
});
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -114,3 +114,4 @@ __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);
|
|
@@ -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,7 @@ 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';
|
|
106
107
|
export const AppDataSource = new DataSource({
|
|
107
108
|
type: 'postgres',
|
|
108
109
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -205,6 +206,7 @@ export const AppDataSource = new DataSource({
|
|
|
205
206
|
TransferMissionRequestChat,
|
|
206
207
|
TransferMissionWorkFlow,
|
|
207
208
|
GroupNames,
|
|
208
|
-
Group
|
|
209
|
+
Group,
|
|
210
|
+
WorkSchedule
|
|
209
211
|
],
|
|
210
212
|
});
|
package/src/index.ts
CHANGED
|
@@ -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
|
+
|