@platform-modules/foreign-ministry 1.1.67 → 1.1.68
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/.env +3 -11
- package/dist/data-source.js +5 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/models/StationeryMaterialMasterModel.d.ts +11 -0
- package/dist/models/StationeryMaterialMasterModel.js +56 -0
- package/dist/models/StationeryRequestsModel.d.ts +27 -0
- package/dist/models/StationeryRequestsModel.js +93 -0
- package/package.json +1 -1
- package/src/data-source.ts +5 -2
- package/src/index.ts +3 -1
- package/src/models/StationeryMaterialMasterModel.ts +35 -0
- package/src/models/StationeryRequestsModel.ts +65 -0
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +0 -6
- package/dist/models/HelpContentMappedCategoriesModel.js +0 -34
- package/dist/models/HelpContentMappedTagsModel.d.ts +0 -6
- package/dist/models/HelpContentMappedTagsModel.js +0 -34
- package/dist/models/HelpContentTagsModel.d.ts +0 -5
- package/dist/models/HelpContentTagsModel.js +0 -29
- package/dist/models/questionTagsModel.d.ts +0 -6
- package/dist/models/questionTagsModel.js +0 -34
- /package/src/models/{LeaveConfigGradesModel.ts → LeaveConfigGradesModel.Ts} +0 -0
package/.env
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
# DB_PORT=5433
|
|
3
|
-
# DB_USER=postgres
|
|
4
|
-
# DB_PASS=123
|
|
5
|
-
# DB_NAME=FM
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
DB_HOST=164.52.222.169
|
|
1
|
+
DB_HOST=localhost
|
|
10
2
|
DB_PORT=5432
|
|
11
|
-
DB_USER=
|
|
12
|
-
DB_PASS=
|
|
3
|
+
DB_USER=postgres
|
|
4
|
+
DB_PASS=Fa@123
|
|
13
5
|
DB_NAME=FM
|
package/dist/data-source.js
CHANGED
|
@@ -111,6 +111,8 @@ const EarlyCheckoutConfigModel_1 = require("./models/EarlyCheckoutConfigModel");
|
|
|
111
111
|
const EarlyCheckoutTransactionModel_1 = require("./models/EarlyCheckoutTransactionModel");
|
|
112
112
|
const StayAfterHoursBalanceModel_1 = require("./models/StayAfterHoursBalanceModel");
|
|
113
113
|
const StayAfterHoursTransactionModel_1 = require("./models/StayAfterHoursTransactionModel");
|
|
114
|
+
const StationeryRequestsModel_1 = require("./models/StationeryRequestsModel");
|
|
115
|
+
const StationeryMaterialMasterModel_1 = require("./models/StationeryMaterialMasterModel");
|
|
114
116
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
115
117
|
type: 'postgres',
|
|
116
118
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -226,6 +228,8 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
226
228
|
EarlyCheckoutConfigModel_1.EarlyCheckoutConfiguration,
|
|
227
229
|
EarlyCheckoutTransactionModel_1.EarlyCheckoutTransaction,
|
|
228
230
|
StayAfterHoursBalanceModel_1.StayAfterHoursBalance,
|
|
229
|
-
StayAfterHoursTransactionModel_1.StayAfterHoursTransaction
|
|
231
|
+
StayAfterHoursTransactionModel_1.StayAfterHoursTransaction,
|
|
232
|
+
StationeryRequestsModel_1.StationeryRequests,
|
|
233
|
+
StationeryMaterialMasterModel_1.StationeryMaterialMaster
|
|
230
234
|
],
|
|
231
235
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -100,7 +100,6 @@ export * from './models/GroupNamesModel';
|
|
|
100
100
|
export * from './models/GroupModel';
|
|
101
101
|
export * from './models/WorkScheduleModel';
|
|
102
102
|
export * from './models/JobsModel';
|
|
103
|
-
export * from './models/TelephoneDirectoryModel';
|
|
104
103
|
export * from './models/M&CMasterModel';
|
|
105
104
|
export * from './models/LeaveBalanceModel';
|
|
106
105
|
export * from './models/LeaveConfigModel';
|
|
@@ -119,3 +118,6 @@ export * from './models/StayAfterHoursBalanceModel';
|
|
|
119
118
|
export { StayAfterHoursBalance } from './models/StayAfterHoursBalanceModel';
|
|
120
119
|
export * from './models/StayAfterHoursTransactionModel';
|
|
121
120
|
export { StayAfterHoursTransaction, StayAfterHoursTransactionStatus } from './models/StayAfterHoursTransactionModel';
|
|
121
|
+
export * from './models/TelephoneDirectoryModel';
|
|
122
|
+
export * from './models/StationeryRequestsModel';
|
|
123
|
+
export * from './models/StationeryMaterialMasterModel';
|
package/dist/index.js
CHANGED
|
@@ -117,7 +117,6 @@ __exportStar(require("./models/GroupNamesModel"), exports);
|
|
|
117
117
|
__exportStar(require("./models/GroupModel"), exports);
|
|
118
118
|
__exportStar(require("./models/WorkScheduleModel"), exports);
|
|
119
119
|
__exportStar(require("./models/JobsModel"), exports);
|
|
120
|
-
__exportStar(require("./models/TelephoneDirectoryModel"), exports);
|
|
121
120
|
__exportStar(require("./models/M&CMasterModel"), exports);
|
|
122
121
|
__exportStar(require("./models/LeaveBalanceModel"), exports);
|
|
123
122
|
__exportStar(require("./models/LeaveConfigModel"), exports);
|
|
@@ -149,3 +148,6 @@ __exportStar(require("./models/StayAfterHoursTransactionModel"), exports);
|
|
|
149
148
|
var StayAfterHoursTransactionModel_1 = require("./models/StayAfterHoursTransactionModel");
|
|
150
149
|
Object.defineProperty(exports, "StayAfterHoursTransaction", { enumerable: true, get: function () { return StayAfterHoursTransactionModel_1.StayAfterHoursTransaction; } });
|
|
151
150
|
Object.defineProperty(exports, "StayAfterHoursTransactionStatus", { enumerable: true, get: function () { return StayAfterHoursTransactionModel_1.StayAfterHoursTransactionStatus; } });
|
|
151
|
+
__exportStar(require("./models/TelephoneDirectoryModel"), exports);
|
|
152
|
+
__exportStar(require("./models/StationeryRequestsModel"), exports);
|
|
153
|
+
__exportStar(require("./models/StationeryMaterialMasterModel"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class StationeryMaterialMaster extends BaseModel {
|
|
3
|
+
material_type: string;
|
|
4
|
+
material_name: string;
|
|
5
|
+
material_code: string | null;
|
|
6
|
+
description: string | null;
|
|
7
|
+
unit_of_measure: string | null;
|
|
8
|
+
is_active: boolean;
|
|
9
|
+
display_order: number;
|
|
10
|
+
constructor(material_type: string, material_name: string);
|
|
11
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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.StationeryMaterialMaster = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let StationeryMaterialMaster = class StationeryMaterialMaster extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(material_type, material_name) {
|
|
17
|
+
super();
|
|
18
|
+
this.material_type = material_type;
|
|
19
|
+
this.material_name = material_name;
|
|
20
|
+
this.is_active = true;
|
|
21
|
+
this.display_order = 0;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.StationeryMaterialMaster = StationeryMaterialMaster;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], StationeryMaterialMaster.prototype, "material_type", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], StationeryMaterialMaster.prototype, "material_name", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], StationeryMaterialMaster.prototype, "material_code", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], StationeryMaterialMaster.prototype, "description", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], StationeryMaterialMaster.prototype, "unit_of_measure", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], StationeryMaterialMaster.prototype, "is_active", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], StationeryMaterialMaster.prototype, "display_order", void 0);
|
|
53
|
+
exports.StationeryMaterialMaster = StationeryMaterialMaster = __decorate([
|
|
54
|
+
(0, typeorm_1.Entity)({ name: 'stationery_material_master' }),
|
|
55
|
+
__metadata("design:paramtypes", [String, String])
|
|
56
|
+
], StationeryMaterialMaster);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum StationeryRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
APPROVED = "Approved",
|
|
7
|
+
REJECTED = "Rejected",
|
|
8
|
+
COMPLETED = "Completed"
|
|
9
|
+
}
|
|
10
|
+
export declare class StationeryRequests extends BaseModel {
|
|
11
|
+
req_user_department_id: number | null;
|
|
12
|
+
req_user_section_id: number | null;
|
|
13
|
+
service_id: number | null;
|
|
14
|
+
sub_service_id: number | null;
|
|
15
|
+
user_id: number;
|
|
16
|
+
date_of_request_preparation: Date;
|
|
17
|
+
office: string;
|
|
18
|
+
material_type: string;
|
|
19
|
+
material_name: string;
|
|
20
|
+
quantity_required: number;
|
|
21
|
+
comments: string | null;
|
|
22
|
+
status: StationeryRequestStatus;
|
|
23
|
+
workflow_execution_id: string | null;
|
|
24
|
+
stock_available: boolean | null;
|
|
25
|
+
po_number: string | null;
|
|
26
|
+
stock_available_date: Date | null;
|
|
27
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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.StationeryRequests = exports.StationeryRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var StationeryRequestStatus;
|
|
16
|
+
(function (StationeryRequestStatus) {
|
|
17
|
+
StationeryRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
StationeryRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
StationeryRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
StationeryRequestStatus["APPROVED"] = "Approved";
|
|
21
|
+
StationeryRequestStatus["REJECTED"] = "Rejected";
|
|
22
|
+
StationeryRequestStatus["COMPLETED"] = "Completed";
|
|
23
|
+
})(StationeryRequestStatus || (exports.StationeryRequestStatus = StationeryRequestStatus = {}));
|
|
24
|
+
let StationeryRequests = class StationeryRequests extends BaseModel_1.BaseModel {
|
|
25
|
+
};
|
|
26
|
+
exports.StationeryRequests = StationeryRequests;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], StationeryRequests.prototype, "req_user_department_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], StationeryRequests.prototype, "req_user_section_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], StationeryRequests.prototype, "service_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], StationeryRequests.prototype, "sub_service_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], StationeryRequests.prototype, "user_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
49
|
+
__metadata("design:type", Date)
|
|
50
|
+
], StationeryRequests.prototype, "date_of_request_preparation", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], StationeryRequests.prototype, "office", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], StationeryRequests.prototype, "material_type", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], StationeryRequests.prototype, "material_name", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], StationeryRequests.prototype, "quantity_required", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], StationeryRequests.prototype, "comments", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: StationeryRequestStatus, default: StationeryRequestStatus.PENDING, nullable: false }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], StationeryRequests.prototype, "status", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], StationeryRequests.prototype, "workflow_execution_id", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false, nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], StationeryRequests.prototype, "stock_available", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], StationeryRequests.prototype, "po_number", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
89
|
+
__metadata("design:type", Object)
|
|
90
|
+
], StationeryRequests.prototype, "stock_available_date", void 0);
|
|
91
|
+
exports.StationeryRequests = StationeryRequests = __decorate([
|
|
92
|
+
(0, typeorm_1.Entity)({ name: 'stationery_requests' })
|
|
93
|
+
], StationeryRequests);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -116,7 +116,8 @@ import { EarlyCheckoutConfiguration } from './models/EarlyCheckoutConfigModel'
|
|
|
116
116
|
import { EarlyCheckoutTransaction } from './models/EarlyCheckoutTransactionModel'
|
|
117
117
|
import { StayAfterHoursBalance } from './models/StayAfterHoursBalanceModel'
|
|
118
118
|
import { StayAfterHoursTransaction } from './models/StayAfterHoursTransactionModel'
|
|
119
|
-
|
|
119
|
+
import {StationeryRequests} from './models/StationeryRequestsModel'
|
|
120
|
+
import {StationeryMaterialMaster} from './models/StationeryMaterialMasterModel'
|
|
120
121
|
|
|
121
122
|
export const AppDataSource = new DataSource({
|
|
122
123
|
type: 'postgres',
|
|
@@ -233,6 +234,8 @@ export const AppDataSource = new DataSource({
|
|
|
233
234
|
EarlyCheckoutConfiguration,
|
|
234
235
|
EarlyCheckoutTransaction,
|
|
235
236
|
StayAfterHoursBalance,
|
|
236
|
-
StayAfterHoursTransaction
|
|
237
|
+
StayAfterHoursTransaction,
|
|
238
|
+
StationeryRequests,
|
|
239
|
+
StationeryMaterialMaster
|
|
237
240
|
],
|
|
238
241
|
});
|
package/src/index.ts
CHANGED
|
@@ -100,7 +100,6 @@ export * from './models/GroupNamesModel';
|
|
|
100
100
|
export * from './models/GroupModel';
|
|
101
101
|
export * from './models/WorkScheduleModel';
|
|
102
102
|
export * from './models/JobsModel';
|
|
103
|
-
export * from './models/TelephoneDirectoryModel';
|
|
104
103
|
export * from './models/M&CMasterModel';
|
|
105
104
|
export * from './models/LeaveBalanceModel';
|
|
106
105
|
export * from './models/LeaveConfigModel';
|
|
@@ -119,3 +118,6 @@ export * from './models/StayAfterHoursBalanceModel';
|
|
|
119
118
|
export { StayAfterHoursBalance } from './models/StayAfterHoursBalanceModel';
|
|
120
119
|
export * from './models/StayAfterHoursTransactionModel';
|
|
121
120
|
export { StayAfterHoursTransaction, StayAfterHoursTransactionStatus } from './models/StayAfterHoursTransactionModel';
|
|
121
|
+
export * from './models/TelephoneDirectoryModel';
|
|
122
|
+
export * from './models/StationeryRequestsModel';
|
|
123
|
+
export * from './models/StationeryMaterialMasterModel';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'stationery_material_master' })
|
|
5
|
+
export class StationeryMaterialMaster extends BaseModel {
|
|
6
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
7
|
+
material_type: string; // e.g., "Paper", "Pen", "Folder"
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
10
|
+
material_name: string; // e.g., "A4 Paper", "Blue Pen", "File Folder"
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
13
|
+
material_code: string | null; // Optional material code for identification
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'text', nullable: true })
|
|
16
|
+
description: string | null; // Description of the material
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
19
|
+
unit_of_measure: string | null; // e.g., "Pack", "Box", "Piece", "Ream"
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'boolean', default: true })
|
|
22
|
+
is_active: boolean; // Whether the material is active/available
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'int', default: 0 })
|
|
25
|
+
display_order: number; // Order for display in dropdowns
|
|
26
|
+
|
|
27
|
+
constructor(material_type: string, material_name: string) {
|
|
28
|
+
super();
|
|
29
|
+
this.material_type = material_type;
|
|
30
|
+
this.material_name = material_name;
|
|
31
|
+
this.is_active = true;
|
|
32
|
+
this.display_order = 0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum StationeryRequestStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
ASSIGNED = "Assigned",
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
APPROVED = "Approved",
|
|
9
|
+
REJECTED = "Rejected",
|
|
10
|
+
COMPLETED = "Completed"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@Entity({ name: 'stationery_requests' })
|
|
15
|
+
export class StationeryRequests extends BaseModel {
|
|
16
|
+
@Column({ type: 'int', nullable: true })
|
|
17
|
+
req_user_department_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'int', nullable: true })
|
|
20
|
+
req_user_section_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'int', nullable: true })
|
|
23
|
+
service_id: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'int', nullable: true })
|
|
26
|
+
sub_service_id: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'int', nullable: false })
|
|
29
|
+
user_id: number;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'date', nullable: false })
|
|
32
|
+
date_of_request_preparation: Date;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
35
|
+
office: string;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
38
|
+
material_type: string;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
41
|
+
material_name: string;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'int', nullable: false })
|
|
44
|
+
quantity_required: number;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
47
|
+
comments: string | null;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'enum', enum: StationeryRequestStatus, default: StationeryRequestStatus.PENDING, nullable: false })
|
|
50
|
+
status: StationeryRequestStatus;
|
|
51
|
+
|
|
52
|
+
@Column({ type: 'varchar', nullable: true })
|
|
53
|
+
workflow_execution_id: string | null;
|
|
54
|
+
|
|
55
|
+
// Business logic fields
|
|
56
|
+
@Column({ type: 'boolean', default: false, nullable: true })
|
|
57
|
+
stock_available: boolean | null; // Whether stock is available in Stores Office
|
|
58
|
+
|
|
59
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
60
|
+
po_number: string | null; // Purchase Order number from Finance
|
|
61
|
+
|
|
62
|
+
@Column({ type: 'date', nullable: true })
|
|
63
|
+
stock_available_date: Date | null; // When stock becomes available
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -1,34 +0,0 @@
|
|
|
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.HelpContentMappedCategories = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let HelpContentMappedCategories = class HelpContentMappedCategories extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(help_content_category_Id, help_content_Id) {
|
|
17
|
-
super();
|
|
18
|
-
this.help_content_category_Id = help_content_category_Id,
|
|
19
|
-
this.help_content_Id = help_content_Id;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.HelpContentMappedCategories = HelpContentMappedCategories;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
-
__metadata("design:type", Number)
|
|
26
|
-
], HelpContentMappedCategories.prototype, "help_content_category_Id", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], HelpContentMappedCategories.prototype, "help_content_Id", void 0);
|
|
31
|
-
exports.HelpContentMappedCategories = HelpContentMappedCategories = __decorate([
|
|
32
|
-
(0, typeorm_1.Entity)({ name: 'help_content_mapped_categories' }),
|
|
33
|
-
__metadata("design:paramtypes", [Number, Number])
|
|
34
|
-
], HelpContentMappedCategories);
|
|
@@ -1,34 +0,0 @@
|
|
|
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.HelpContentMappedTags = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let HelpContentMappedTags = class HelpContentMappedTags extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(help_content_tag_Id, help_content_Id) {
|
|
17
|
-
super();
|
|
18
|
-
this.help_content_tag_Id = help_content_tag_Id,
|
|
19
|
-
this.help_content_Id = help_content_Id;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.HelpContentMappedTags = HelpContentMappedTags;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
-
__metadata("design:type", Number)
|
|
26
|
-
], HelpContentMappedTags.prototype, "help_content_tag_Id", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], HelpContentMappedTags.prototype, "help_content_Id", void 0);
|
|
31
|
-
exports.HelpContentMappedTags = HelpContentMappedTags = __decorate([
|
|
32
|
-
(0, typeorm_1.Entity)({ name: 'help_content_mapped_tags' }),
|
|
33
|
-
__metadata("design:paramtypes", [Number, Number])
|
|
34
|
-
], HelpContentMappedTags);
|
|
@@ -1,29 +0,0 @@
|
|
|
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.HelpContentTags = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let HelpContentTags = class HelpContentTags extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(name) {
|
|
17
|
-
super();
|
|
18
|
-
this.name = name;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
exports.HelpContentTags = HelpContentTags;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], HelpContentTags.prototype, "name", void 0);
|
|
26
|
-
exports.HelpContentTags = HelpContentTags = __decorate([
|
|
27
|
-
(0, typeorm_1.Entity)({ name: 'help_content_tags' }),
|
|
28
|
-
__metadata("design:paramtypes", [String])
|
|
29
|
-
], HelpContentTags);
|
|
@@ -1,34 +0,0 @@
|
|
|
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.QuestionTags = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let QuestionTags = class QuestionTags extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(name, question_Id) {
|
|
17
|
-
super();
|
|
18
|
-
this.name = name,
|
|
19
|
-
this.question_Id = question_Id;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.QuestionTags = QuestionTags;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], QuestionTags.prototype, "name", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], QuestionTags.prototype, "question_Id", void 0);
|
|
31
|
-
exports.QuestionTags = QuestionTags = __decorate([
|
|
32
|
-
(0, typeorm_1.Entity)({ name: 'question_tags' }),
|
|
33
|
-
__metadata("design:paramtypes", [String, Number])
|
|
34
|
-
], QuestionTags);
|
|
File without changes
|