@platform-modules/foreign-ministry 1.1.63 → 1.1.64
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/index.d.ts
CHANGED
|
@@ -86,7 +86,6 @@ export * from './models/GeneralServiceApprovalsModel';
|
|
|
86
86
|
export * from './models/GeneralServiceWorkFlowModel';
|
|
87
87
|
export * from './models/GeneralServiceChatsModel';
|
|
88
88
|
export * from './models/GeneralServiceAttachmentsModel';
|
|
89
|
-
export * from './models/StationeryRequestsModel';
|
|
90
89
|
export * from './models/HelpdeskCategoriesModel';
|
|
91
90
|
export * from './models/HelpdeskSubCategoriesModel';
|
|
92
91
|
export * from './models/IssueTypesModel';
|
|
@@ -102,3 +101,5 @@ export * from './models/GroupModel';
|
|
|
102
101
|
export * from './models/WorkScheduleModel';
|
|
103
102
|
export * from './models/JobsModel';
|
|
104
103
|
export * from './models/TelephoneDirectoryModel';
|
|
104
|
+
export * from './models/StationeryRequestsModel';
|
|
105
|
+
export * from './models/StationeryMaterialMasterModel';
|
package/dist/index.js
CHANGED
|
@@ -102,7 +102,6 @@ __exportStar(require("./models/GeneralServiceApprovalsModel"), exports);
|
|
|
102
102
|
__exportStar(require("./models/GeneralServiceWorkFlowModel"), exports);
|
|
103
103
|
__exportStar(require("./models/GeneralServiceChatsModel"), exports);
|
|
104
104
|
__exportStar(require("./models/GeneralServiceAttachmentsModel"), exports);
|
|
105
|
-
__exportStar(require("./models/StationeryRequestsModel"), exports);
|
|
106
105
|
__exportStar(require("./models/HelpdeskCategoriesModel"), exports);
|
|
107
106
|
__exportStar(require("./models/HelpdeskSubCategoriesModel"), exports);
|
|
108
107
|
__exportStar(require("./models/IssueTypesModel"), exports);
|
|
@@ -118,3 +117,5 @@ __exportStar(require("./models/GroupModel"), exports);
|
|
|
118
117
|
__exportStar(require("./models/WorkScheduleModel"), exports);
|
|
119
118
|
__exportStar(require("./models/JobsModel"), exports);
|
|
120
119
|
__exportStar(require("./models/TelephoneDirectoryModel"), exports);
|
|
120
|
+
__exportStar(require("./models/StationeryRequestsModel"), exports);
|
|
121
|
+
__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);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -86,7 +86,6 @@ export * from './models/GeneralServiceApprovalsModel';
|
|
|
86
86
|
export * from './models/GeneralServiceWorkFlowModel';
|
|
87
87
|
export * from './models/GeneralServiceChatsModel';
|
|
88
88
|
export * from './models/GeneralServiceAttachmentsModel';
|
|
89
|
-
export * from './models/StationeryRequestsModel';
|
|
90
89
|
export * from './models/HelpdeskCategoriesModel';
|
|
91
90
|
export * from './models/HelpdeskSubCategoriesModel';
|
|
92
91
|
export * from './models/IssueTypesModel';
|
|
@@ -101,4 +100,6 @@ export * from './models/GroupNamesModel';
|
|
|
101
100
|
export * from './models/GroupModel';
|
|
102
101
|
export * from './models/WorkScheduleModel';
|
|
103
102
|
export * from './models/JobsModel';
|
|
104
|
-
export * from './models/TelephoneDirectoryModel'
|
|
103
|
+
export * from './models/TelephoneDirectoryModel';
|
|
104
|
+
export * from './models/StationeryRequestsModel';
|
|
105
|
+
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
|
+
|