@platform-modules/foreign-ministry 1.1.5 → 1.1.6
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 +11 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/models/StayAfterHoursApprovalModel.d.ts +21 -0
- package/dist/models/StayAfterHoursApprovalModel.js +75 -0
- package/dist/models/StayAfterHoursAttachmentModel.d.ts +11 -0
- package/dist/models/StayAfterHoursAttachmentModel.js +52 -0
- package/dist/models/StayAfterHoursChatModel.d.ts +16 -0
- package/dist/models/StayAfterHoursChatModel.js +52 -0
- package/dist/models/StayAfterHoursRequestModel.d.ts +27 -0
- package/dist/models/StayAfterHoursRequestModel.js +96 -0
- package/dist/models/StayAfterHoursWorkflowModel.d.ts +13 -0
- package/dist/models/StayAfterHoursWorkflowModel.js +46 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -0
- package/src/index.ts +5 -0
- package/src/models/StayAfterHoursApprovalModel.ts +49 -0
- package/src/models/StayAfterHoursAttachmentModel.ts +31 -0
- package/src/models/StayAfterHoursChatModel.ts +33 -0
- package/src/models/StayAfterHoursRequestModel.ts +66 -0
- package/src/models/StayAfterHoursWorkflowModel.ts +27 -0
package/dist/data-source.js
CHANGED
|
@@ -73,6 +73,11 @@ const EarlyCheckoutApprovalModel_1 = require("./models/EarlyCheckoutApprovalMode
|
|
|
73
73
|
const EarlyCheckoutAttachmentModel_1 = require("./models/EarlyCheckoutAttachmentModel");
|
|
74
74
|
const EarlyCheckoutChatModel_1 = require("./models/EarlyCheckoutChatModel");
|
|
75
75
|
const EarlyCheckoutWorkflowModel_1 = require("./models/EarlyCheckoutWorkflowModel");
|
|
76
|
+
const StayAfterHoursRequestModel_1 = require("./models/StayAfterHoursRequestModel");
|
|
77
|
+
const StayAfterHoursApprovalModel_1 = require("./models/StayAfterHoursApprovalModel");
|
|
78
|
+
const StayAfterHoursAttachmentModel_1 = require("./models/StayAfterHoursAttachmentModel");
|
|
79
|
+
const StayAfterHoursChatModel_1 = require("./models/StayAfterHoursChatModel");
|
|
80
|
+
const StayAfterHoursWorkflowModel_1 = require("./models/StayAfterHoursWorkflowModel");
|
|
76
81
|
const WorkflowTask_1 = require("./models/WorkflowTask");
|
|
77
82
|
const WorkflowTaskNames_1 = require("./models/WorkflowTaskNames");
|
|
78
83
|
const WorkflowDefinitions_1 = require("./models/WorkflowDefinitions");
|
|
@@ -162,6 +167,11 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
162
167
|
EarlyCheckoutApprovalModel_1.EarlyCheckoutApprovalDetails,
|
|
163
168
|
EarlyCheckoutAttachmentModel_1.EarlyCheckoutRequestAttachment,
|
|
164
169
|
EarlyCheckoutChatModel_1.EarlyCheckoutRequestChat,
|
|
165
|
-
EarlyCheckoutWorkflowModel_1.EarlyCheckoutWorkFlow
|
|
170
|
+
EarlyCheckoutWorkflowModel_1.EarlyCheckoutWorkFlow,
|
|
171
|
+
StayAfterHoursRequestModel_1.StayAfterHoursRequests,
|
|
172
|
+
StayAfterHoursApprovalModel_1.StayAfterHoursApprovalDetails,
|
|
173
|
+
StayAfterHoursAttachmentModel_1.StayAfterHoursRequestAttachment,
|
|
174
|
+
StayAfterHoursChatModel_1.StayAfterHoursRequestChat,
|
|
175
|
+
StayAfterHoursWorkflowModel_1.StayAfterHoursWorkFlow
|
|
166
176
|
],
|
|
167
177
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -72,3 +72,8 @@ export * from './models/EarlyCheckoutApprovalModel';
|
|
|
72
72
|
export * from './models/EarlyCheckoutAttachmentModel';
|
|
73
73
|
export * from './models/EarlyCheckoutChatModel';
|
|
74
74
|
export * from './models/EarlyCheckoutWorkflowModel';
|
|
75
|
+
export * from './models/StayAfterHoursRequestModel';
|
|
76
|
+
export * from './models/StayAfterHoursApprovalModel';
|
|
77
|
+
export * from './models/StayAfterHoursAttachmentModel';
|
|
78
|
+
export * from './models/StayAfterHoursChatModel';
|
|
79
|
+
export * from './models/StayAfterHoursWorkflowModel';
|
package/dist/index.js
CHANGED
|
@@ -88,3 +88,8 @@ __exportStar(require("./models/EarlyCheckoutApprovalModel"), exports);
|
|
|
88
88
|
__exportStar(require("./models/EarlyCheckoutAttachmentModel"), exports);
|
|
89
89
|
__exportStar(require("./models/EarlyCheckoutChatModel"), exports);
|
|
90
90
|
__exportStar(require("./models/EarlyCheckoutWorkflowModel"), exports);
|
|
91
|
+
__exportStar(require("./models/StayAfterHoursRequestModel"), exports);
|
|
92
|
+
__exportStar(require("./models/StayAfterHoursApprovalModel"), exports);
|
|
93
|
+
__exportStar(require("./models/StayAfterHoursAttachmentModel"), exports);
|
|
94
|
+
__exportStar(require("./models/StayAfterHoursChatModel"), exports);
|
|
95
|
+
__exportStar(require("./models/StayAfterHoursWorkflowModel"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum StayAfterHoursApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class StayAfterHoursApprovalDetails extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
level: number;
|
|
13
|
+
approver_role_id: number;
|
|
14
|
+
department_id: number | null;
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
approver_user_id: number | null;
|
|
17
|
+
delegate_user_id: number | null;
|
|
18
|
+
approved_by: number | null;
|
|
19
|
+
comment: string;
|
|
20
|
+
approval_status: StayAfterHoursApprovalStatus;
|
|
21
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StayAfterHoursApprovalDetails = exports.StayAfterHoursApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var StayAfterHoursApprovalStatus;
|
|
16
|
+
(function (StayAfterHoursApprovalStatus) {
|
|
17
|
+
StayAfterHoursApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
StayAfterHoursApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
StayAfterHoursApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
StayAfterHoursApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(StayAfterHoursApprovalStatus || (exports.StayAfterHoursApprovalStatus = StayAfterHoursApprovalStatus = {}));
|
|
22
|
+
let StayAfterHoursApprovalDetails = class StayAfterHoursApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.StayAfterHoursApprovalDetails = StayAfterHoursApprovalDetails;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], StayAfterHoursApprovalDetails.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], StayAfterHoursApprovalDetails.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], StayAfterHoursApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], StayAfterHoursApprovalDetails.prototype, "level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], StayAfterHoursApprovalDetails.prototype, "approver_role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], StayAfterHoursApprovalDetails.prototype, "department_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], StayAfterHoursApprovalDetails.prototype, "section_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], StayAfterHoursApprovalDetails.prototype, "approver_user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], StayAfterHoursApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], StayAfterHoursApprovalDetails.prototype, "approved_by", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], StayAfterHoursApprovalDetails.prototype, "comment", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: StayAfterHoursApprovalStatus, default: StayAfterHoursApprovalStatus.PENDING, nullable: false }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], StayAfterHoursApprovalDetails.prototype, "approval_status", void 0);
|
|
73
|
+
exports.StayAfterHoursApprovalDetails = StayAfterHoursApprovalDetails = __decorate([
|
|
74
|
+
(0, typeorm_1.Entity)({ name: 'stay_after_hours_approvals' })
|
|
75
|
+
], StayAfterHoursApprovalDetails);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class StayAfterHoursRequestAttachment extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number | null;
|
|
5
|
+
sub_service_id: number | null;
|
|
6
|
+
file_url: string;
|
|
7
|
+
file_name: string;
|
|
8
|
+
file_type: string;
|
|
9
|
+
file_size: number | null;
|
|
10
|
+
chat_id: number | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StayAfterHoursRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let StayAfterHoursRequestAttachment = class StayAfterHoursRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.StayAfterHoursRequestAttachment = StayAfterHoursRequestAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], StayAfterHoursRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], StayAfterHoursRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], StayAfterHoursRequestAttachment.prototype, "sub_service_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], StayAfterHoursRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], StayAfterHoursRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], StayAfterHoursRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], StayAfterHoursRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], StayAfterHoursRequestAttachment.prototype, "chat_id", void 0);
|
|
50
|
+
exports.StayAfterHoursRequestAttachment = StayAfterHoursRequestAttachment = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'stay_after_hours_attachments' })
|
|
52
|
+
], StayAfterHoursRequestAttachment);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum StayAfterHoursMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class StayAfterHoursRequestChat extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
sub_service_id: number | null;
|
|
13
|
+
user_id: number;
|
|
14
|
+
message: string;
|
|
15
|
+
messageType: StayAfterHoursMessageType;
|
|
16
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StayAfterHoursRequestChat = exports.StayAfterHoursMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var StayAfterHoursMessageType;
|
|
16
|
+
(function (StayAfterHoursMessageType) {
|
|
17
|
+
StayAfterHoursMessageType["TEXT"] = "text";
|
|
18
|
+
StayAfterHoursMessageType["IMAGE"] = "image";
|
|
19
|
+
StayAfterHoursMessageType["VIDEO"] = "video";
|
|
20
|
+
StayAfterHoursMessageType["FILE"] = "file";
|
|
21
|
+
StayAfterHoursMessageType["LINK"] = "link";
|
|
22
|
+
})(StayAfterHoursMessageType || (exports.StayAfterHoursMessageType = StayAfterHoursMessageType = {}));
|
|
23
|
+
let StayAfterHoursRequestChat = class StayAfterHoursRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.StayAfterHoursRequestChat = StayAfterHoursRequestChat;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], StayAfterHoursRequestChat.prototype, "request_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], StayAfterHoursRequestChat.prototype, "service_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], StayAfterHoursRequestChat.prototype, "sub_service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], StayAfterHoursRequestChat.prototype, "user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], StayAfterHoursRequestChat.prototype, "message", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: StayAfterHoursMessageType, default: StayAfterHoursMessageType.TEXT, nullable: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], StayAfterHoursRequestChat.prototype, "messageType", void 0);
|
|
50
|
+
exports.StayAfterHoursRequestChat = StayAfterHoursRequestChat = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'stay_after_hours_chats' })
|
|
52
|
+
], StayAfterHoursRequestChat);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum StayAfterHoursStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
APPROVED = "Approved",
|
|
7
|
+
REJECTED = "Rejected"
|
|
8
|
+
}
|
|
9
|
+
export declare class StayAfterHoursRequests extends BaseModel {
|
|
10
|
+
req_user_department_id: number | null;
|
|
11
|
+
req_user_section_id: number | null;
|
|
12
|
+
service_id: number | null;
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
user_id: number;
|
|
15
|
+
permit_number: string;
|
|
16
|
+
job_number: string;
|
|
17
|
+
date_from: string;
|
|
18
|
+
date_to: string;
|
|
19
|
+
duration_from: string;
|
|
20
|
+
duration_to: string;
|
|
21
|
+
nature_of_assigned_work: string;
|
|
22
|
+
office_numbers_to_enter: string;
|
|
23
|
+
department: number;
|
|
24
|
+
comments: string | null;
|
|
25
|
+
status: StayAfterHoursStatus;
|
|
26
|
+
workflow_execution_id: string | null;
|
|
27
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StayAfterHoursRequests = exports.StayAfterHoursStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var StayAfterHoursStatus;
|
|
16
|
+
(function (StayAfterHoursStatus) {
|
|
17
|
+
StayAfterHoursStatus["PENDING"] = "Pending";
|
|
18
|
+
StayAfterHoursStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
StayAfterHoursStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
StayAfterHoursStatus["APPROVED"] = "Approved";
|
|
21
|
+
StayAfterHoursStatus["REJECTED"] = "Rejected";
|
|
22
|
+
})(StayAfterHoursStatus || (exports.StayAfterHoursStatus = StayAfterHoursStatus = {}));
|
|
23
|
+
let StayAfterHoursRequests = class StayAfterHoursRequests extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.StayAfterHoursRequests = StayAfterHoursRequests;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], StayAfterHoursRequests.prototype, "req_user_department_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], StayAfterHoursRequests.prototype, "req_user_section_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], StayAfterHoursRequests.prototype, "service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], StayAfterHoursRequests.prototype, "sub_service_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], StayAfterHoursRequests.prototype, "user_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], StayAfterHoursRequests.prototype, "permit_number", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], StayAfterHoursRequests.prototype, "job_number", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], StayAfterHoursRequests.prototype, "date_from", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], StayAfterHoursRequests.prototype, "date_to", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: false }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], StayAfterHoursRequests.prototype, "duration_from", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: false }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], StayAfterHoursRequests.prototype, "duration_to", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], StayAfterHoursRequests.prototype, "nature_of_assigned_work", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], StayAfterHoursRequests.prototype, "office_numbers_to_enter", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
80
|
+
__metadata("design:type", Number)
|
|
81
|
+
], StayAfterHoursRequests.prototype, "department", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], StayAfterHoursRequests.prototype, "comments", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: StayAfterHoursStatus, default: StayAfterHoursStatus.PENDING, nullable: false }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], StayAfterHoursRequests.prototype, "status", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
92
|
+
__metadata("design:type", Object)
|
|
93
|
+
], StayAfterHoursRequests.prototype, "workflow_execution_id", void 0);
|
|
94
|
+
exports.StayAfterHoursRequests = StayAfterHoursRequests = __decorate([
|
|
95
|
+
(0, typeorm_1.Entity)({ name: 'stay_after_hours_requests' })
|
|
96
|
+
], StayAfterHoursRequests);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum StayAfterHoursWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class StayAfterHoursWorkFlow extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: StayAfterHoursWorkFlowStatus;
|
|
13
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StayAfterHoursWorkFlow = exports.StayAfterHoursWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var StayAfterHoursWorkFlowStatus;
|
|
16
|
+
(function (StayAfterHoursWorkFlowStatus) {
|
|
17
|
+
StayAfterHoursWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
StayAfterHoursWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
StayAfterHoursWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
})(StayAfterHoursWorkFlowStatus || (exports.StayAfterHoursWorkFlowStatus = StayAfterHoursWorkFlowStatus = {}));
|
|
21
|
+
let StayAfterHoursWorkFlow = class StayAfterHoursWorkFlow extends BaseModel_1.BaseModel {
|
|
22
|
+
};
|
|
23
|
+
exports.StayAfterHoursWorkFlow = StayAfterHoursWorkFlow;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], StayAfterHoursWorkFlow.prototype, "request_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], StayAfterHoursWorkFlow.prototype, "service_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], StayAfterHoursWorkFlow.prototype, "sub_service_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], StayAfterHoursWorkFlow.prototype, "content", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: StayAfterHoursWorkFlowStatus, default: StayAfterHoursWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], StayAfterHoursWorkFlow.prototype, "status", void 0);
|
|
44
|
+
exports.StayAfterHoursWorkFlow = StayAfterHoursWorkFlow = __decorate([
|
|
45
|
+
(0, typeorm_1.Entity)({ name: 'stay_after_hours_workflows' })
|
|
46
|
+
], StayAfterHoursWorkFlow);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -75,6 +75,11 @@ import { EarlyCheckoutApprovalDetails } from './models/EarlyCheckoutApprovalMode
|
|
|
75
75
|
import { EarlyCheckoutRequestAttachment } from './models/EarlyCheckoutAttachmentModel';
|
|
76
76
|
import { EarlyCheckoutRequestChat } from './models/EarlyCheckoutChatModel';
|
|
77
77
|
import { EarlyCheckoutWorkFlow } from './models/EarlyCheckoutWorkflowModel';
|
|
78
|
+
import { StayAfterHoursRequests } from './models/StayAfterHoursRequestModel';
|
|
79
|
+
import { StayAfterHoursApprovalDetails } from './models/StayAfterHoursApprovalModel';
|
|
80
|
+
import { StayAfterHoursRequestAttachment } from './models/StayAfterHoursAttachmentModel';
|
|
81
|
+
import { StayAfterHoursRequestChat } from './models/StayAfterHoursChatModel';
|
|
82
|
+
import { StayAfterHoursWorkFlow } from './models/StayAfterHoursWorkflowModel';
|
|
78
83
|
|
|
79
84
|
|
|
80
85
|
import { WorkflowTask } from './models/WorkflowTask';
|
|
@@ -169,5 +174,10 @@ export const AppDataSource = new DataSource({
|
|
|
169
174
|
,EarlyCheckoutRequestAttachment
|
|
170
175
|
,EarlyCheckoutRequestChat
|
|
171
176
|
,EarlyCheckoutWorkFlow
|
|
177
|
+
,StayAfterHoursRequests
|
|
178
|
+
,StayAfterHoursApprovalDetails
|
|
179
|
+
,StayAfterHoursRequestAttachment
|
|
180
|
+
,StayAfterHoursRequestChat
|
|
181
|
+
,StayAfterHoursWorkFlow
|
|
172
182
|
],
|
|
173
183
|
});
|
package/src/index.ts
CHANGED
|
@@ -72,3 +72,8 @@ export * from './models/EarlyCheckoutApprovalModel';
|
|
|
72
72
|
export * from './models/EarlyCheckoutAttachmentModel';
|
|
73
73
|
export * from './models/EarlyCheckoutChatModel';
|
|
74
74
|
export * from './models/EarlyCheckoutWorkflowModel';
|
|
75
|
+
export * from './models/StayAfterHoursRequestModel';
|
|
76
|
+
export * from './models/StayAfterHoursApprovalModel';
|
|
77
|
+
export * from './models/StayAfterHoursAttachmentModel';
|
|
78
|
+
export * from './models/StayAfterHoursChatModel';
|
|
79
|
+
export * from './models/StayAfterHoursWorkflowModel';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum StayAfterHoursApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'stay_after_hours_approvals' })
|
|
12
|
+
export class StayAfterHoursApprovalDetails extends BaseModel {
|
|
13
|
+
@Column({ type: 'integer', nullable: false })
|
|
14
|
+
request_id: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'integer', nullable: true })
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'integer', nullable: true })
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'integer', nullable: false })
|
|
23
|
+
level: number;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'integer', nullable: false })
|
|
26
|
+
approver_role_id: number;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
department_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'integer', nullable: true })
|
|
32
|
+
section_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'integer', nullable: true })
|
|
35
|
+
approver_user_id: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'integer', nullable: true })
|
|
38
|
+
delegate_user_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'integer', nullable: true })
|
|
41
|
+
approved_by: number | null;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'varchar', length: 500, nullable: true, default: '' })
|
|
44
|
+
comment: string;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'enum', enum: StayAfterHoursApprovalStatus, default: StayAfterHoursApprovalStatus.PENDING, nullable: false })
|
|
47
|
+
approval_status: StayAfterHoursApprovalStatus;
|
|
48
|
+
}
|
|
49
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'stay_after_hours_attachments' })
|
|
5
|
+
export class StayAfterHoursRequestAttachment extends BaseModel {
|
|
6
|
+
|
|
7
|
+
@Column({ type: 'integer', nullable: false })
|
|
8
|
+
request_id: number;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'integer', nullable: true })
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'integer', nullable: true })
|
|
14
|
+
sub_service_id: number | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
17
|
+
file_url: string;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
20
|
+
file_name: string;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
23
|
+
file_type: string;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'bigint', nullable: true })
|
|
26
|
+
file_size: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
chat_id: number | null;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum StayAfterHoursMessageType {
|
|
5
|
+
TEXT = "text",
|
|
6
|
+
IMAGE = "image",
|
|
7
|
+
VIDEO = "video",
|
|
8
|
+
FILE = "file",
|
|
9
|
+
LINK = "link"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'stay_after_hours_chats' })
|
|
13
|
+
export class StayAfterHoursRequestChat extends BaseModel {
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'integer', nullable: false })
|
|
16
|
+
request_id: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'integer', nullable: true })
|
|
19
|
+
service_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'integer', nullable: true })
|
|
22
|
+
sub_service_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'integer', nullable: false })
|
|
25
|
+
user_id: number;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'text', nullable: false })
|
|
28
|
+
message: string;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'enum', enum: StayAfterHoursMessageType, default: StayAfterHoursMessageType.TEXT, nullable: false })
|
|
31
|
+
messageType: StayAfterHoursMessageType;
|
|
32
|
+
}
|
|
33
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum StayAfterHoursStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
ASSIGNED = "Assigned",
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
APPROVED = "Approved",
|
|
9
|
+
REJECTED = "Rejected"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'stay_after_hours_requests' })
|
|
13
|
+
export class StayAfterHoursRequests extends BaseModel {
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'int', nullable: true })
|
|
16
|
+
req_user_department_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: true })
|
|
19
|
+
req_user_section_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', nullable: true })
|
|
22
|
+
service_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'int', nullable: true })
|
|
25
|
+
sub_service_id: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'int', nullable: false })
|
|
28
|
+
user_id: number;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'varchar', length: 100, nullable: false })
|
|
31
|
+
permit_number: string;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'varchar', length: 100, nullable: false })
|
|
34
|
+
job_number: string;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'date', nullable: false })
|
|
37
|
+
date_from: string;
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'date', nullable: false })
|
|
40
|
+
date_to: string;
|
|
41
|
+
|
|
42
|
+
@Column({ type: 'time', nullable: false })
|
|
43
|
+
duration_from: string;
|
|
44
|
+
|
|
45
|
+
@Column({ type: 'time', nullable: false })
|
|
46
|
+
duration_to: string;
|
|
47
|
+
|
|
48
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
49
|
+
nature_of_assigned_work: string;
|
|
50
|
+
|
|
51
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
52
|
+
office_numbers_to_enter: string;
|
|
53
|
+
|
|
54
|
+
@Column({ type: 'int', nullable: false })
|
|
55
|
+
department: number;
|
|
56
|
+
|
|
57
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
58
|
+
comments: string | null;
|
|
59
|
+
|
|
60
|
+
@Column({ type: 'enum', enum: StayAfterHoursStatus, default: StayAfterHoursStatus.PENDING, nullable: false })
|
|
61
|
+
status: StayAfterHoursStatus;
|
|
62
|
+
|
|
63
|
+
@Column({ type: 'varchar', nullable: true })
|
|
64
|
+
workflow_execution_id: string | null;
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum StayAfterHoursWorkFlowStatus {
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
+
PENDING = "Pending"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'stay_after_hours_workflows' })
|
|
11
|
+
export class StayAfterHoursWorkFlow extends BaseModel {
|
|
12
|
+
@Column({ type: 'integer', nullable: false })
|
|
13
|
+
request_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'integer', nullable: true })
|
|
16
|
+
service_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'integer', nullable: true })
|
|
19
|
+
sub_service_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
22
|
+
content: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'enum', enum: StayAfterHoursWorkFlowStatus, default: StayAfterHoursWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
25
|
+
status: StayAfterHoursWorkFlowStatus;
|
|
26
|
+
}
|
|
27
|
+
|