@platform-modules/foreign-ministry 1.3.191 → 1.3.193
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 +8 -0
- package/dist/index.js +8 -0
- package/dist/models/FoodHistoryModel.d.ts +1 -0
- package/dist/models/FoodHistoryModel.js +4 -0
- package/dist/models/FoodRequestModel.d.ts +1 -0
- package/dist/models/FoodRequestModel.js +4 -0
- package/dist/models/HallHistoryModel.d.ts +1 -0
- package/dist/models/HallHistoryModel.js +4 -0
- package/dist/models/HallRequestModel.d.ts +1 -0
- package/dist/models/HallRequestModel.js +4 -0
- package/dist/models/ProjectContactsModel.d.ts +10 -0
- package/dist/models/ProjectContactsModel.js +54 -0
- package/dist/models/ProjectFaqModel.d.ts +9 -0
- package/dist/models/ProjectFaqModel.js +49 -0
- package/dist/models/ProjectFaqReactionsModel.d.ts +8 -0
- package/dist/models/ProjectFaqReactionsModel.js +44 -0
- package/dist/models/ProjectInvoicesModel.d.ts +9 -0
- package/dist/models/ProjectInvoicesModel.js +49 -0
- package/dist/models/ProjectMilestonesModel.d.ts +15 -0
- package/dist/models/ProjectMilestonesModel.js +79 -0
- package/dist/models/ProjectModel.d.ts +9 -3
- package/dist/models/ProjectModel.js +39 -9
- package/dist/models/ProjectResourceUsersModel.d.ts +7 -0
- package/dist/models/ProjectResourceUsersModel.js +39 -0
- package/dist/models/ProjectResourcesModel.d.ts +9 -0
- package/dist/models/ProjectResourcesModel.js +49 -0
- package/dist/models/ProjectScopeModel.d.ts +19 -0
- package/dist/models/ProjectScopeModel.js +49 -0
- package/package.json +1 -1
- package/src/index.ts +8 -0
- package/src/models/FoodHistoryModel.ts +3 -0
- package/src/models/FoodRequestModel.ts +3 -0
- package/src/models/HallHistoryModel.ts +3 -0
- package/src/models/HallRequestModel.ts +3 -0
- package/src/models/ProjectContactsModel.ts +40 -0
- package/src/models/ProjectFaqModel.ts +35 -0
- package/src/models/ProjectFaqReactionsModel.ts +30 -0
- package/src/models/ProjectInvoicesModel.ts +35 -0
- package/src/models/ProjectMilestonesModel.ts +65 -0
- package/src/models/ProjectModel.ts +41 -11
- package/src/models/ProjectResourceUsersModel.ts +21 -0
- package/src/models/ProjectResourcesModel.ts +35 -0
- package/src/models/ProjectScopeModel.ts +46 -0
package/dist/index.d.ts
CHANGED
|
@@ -291,6 +291,14 @@ export * from './models/GiftsModel';
|
|
|
291
291
|
export * from './models/GiftAttachmentModel';
|
|
292
292
|
export * from './models/ProjectModel';
|
|
293
293
|
export * from './models/TemplateModel';
|
|
294
|
+
export * from './models/ProjectScopeModel';
|
|
295
|
+
export * from './models/ProjectMilestonesModel';
|
|
296
|
+
export * from './models/ProjectInvoicesModel';
|
|
297
|
+
export * from './models/ProjectResourcesModel';
|
|
298
|
+
export * from './models/ProjectResourceUsersModel';
|
|
299
|
+
export * from './models/ProjectFaqModel';
|
|
300
|
+
export * from './models/ProjectFaqReactionsModel';
|
|
301
|
+
export * from './models/ProjectContactsModel';
|
|
294
302
|
export * from './models/EmployeeMilestonesModel';
|
|
295
303
|
export * from './models/EmployeeMilestoneDetailsModel';
|
|
296
304
|
export * from './models/MissionTravelPassportExpiryNotificationConfigModel';
|
package/dist/index.js
CHANGED
|
@@ -364,6 +364,14 @@ __exportStar(require("./models/GiftsModel"), exports);
|
|
|
364
364
|
__exportStar(require("./models/GiftAttachmentModel"), exports);
|
|
365
365
|
__exportStar(require("./models/ProjectModel"), exports);
|
|
366
366
|
__exportStar(require("./models/TemplateModel"), exports);
|
|
367
|
+
__exportStar(require("./models/ProjectScopeModel"), exports);
|
|
368
|
+
__exportStar(require("./models/ProjectMilestonesModel"), exports);
|
|
369
|
+
__exportStar(require("./models/ProjectInvoicesModel"), exports);
|
|
370
|
+
__exportStar(require("./models/ProjectResourcesModel"), exports);
|
|
371
|
+
__exportStar(require("./models/ProjectResourceUsersModel"), exports);
|
|
372
|
+
__exportStar(require("./models/ProjectFaqModel"), exports);
|
|
373
|
+
__exportStar(require("./models/ProjectFaqReactionsModel"), exports);
|
|
374
|
+
__exportStar(require("./models/ProjectContactsModel"), exports);
|
|
367
375
|
// Employee Milestones Models
|
|
368
376
|
__exportStar(require("./models/EmployeeMilestonesModel"), exports);
|
|
369
377
|
__exportStar(require("./models/EmployeeMilestoneDetailsModel"), exports);
|
|
@@ -5,6 +5,7 @@ export declare class FoodHistory extends BaseModel {
|
|
|
5
5
|
location_id: number | null;
|
|
6
6
|
department_id: number | null;
|
|
7
7
|
booked_date: string | null;
|
|
8
|
+
recurrence_end_date: string | null;
|
|
8
9
|
from_time: string | null;
|
|
9
10
|
to_time: string | null;
|
|
10
11
|
number_of_guests: number | null;
|
|
@@ -35,6 +35,10 @@ __decorate([
|
|
|
35
35
|
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
36
36
|
__metadata("design:type", Object)
|
|
37
37
|
], FoodHistory.prototype, "booked_date", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], FoodHistory.prototype, "recurrence_end_date", void 0);
|
|
38
42
|
__decorate([
|
|
39
43
|
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
40
44
|
__metadata("design:type", Object)
|
|
@@ -9,6 +9,7 @@ export declare class FoodRequests extends BaseModel {
|
|
|
9
9
|
meeting_id: number | null;
|
|
10
10
|
appointment_id: number | null;
|
|
11
11
|
date: string | null;
|
|
12
|
+
recurrence_end_date: string | null;
|
|
12
13
|
from_time: string | null;
|
|
13
14
|
to_time: string | null;
|
|
14
15
|
number_of_guests: number | null;
|
|
@@ -48,6 +48,10 @@ __decorate([
|
|
|
48
48
|
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
49
49
|
__metadata("design:type", Object)
|
|
50
50
|
], FoodRequests.prototype, "date", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], FoodRequests.prototype, "recurrence_end_date", void 0);
|
|
51
55
|
__decorate([
|
|
52
56
|
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
53
57
|
__metadata("design:type", Object)
|
|
@@ -6,6 +6,7 @@ export declare class HallHistory extends BaseModel {
|
|
|
6
6
|
location_id: number | null;
|
|
7
7
|
department_id: number | null;
|
|
8
8
|
booked_date: string | null;
|
|
9
|
+
recurrence_end_date: string | null;
|
|
9
10
|
from_time: string | null;
|
|
10
11
|
to_time: string | null;
|
|
11
12
|
constructor(hall_id?: number | null, meeting_id?: number | null, appointment_id?: number | null, location_id?: number | null, department_id?: number | null, booked_date?: string | null, from_time?: string | null, to_time?: string | null);
|
|
@@ -50,6 +50,10 @@ __decorate([
|
|
|
50
50
|
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
51
51
|
__metadata("design:type", Object)
|
|
52
52
|
], HallHistory.prototype, "booked_date", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], HallHistory.prototype, "recurrence_end_date", void 0);
|
|
53
57
|
__decorate([
|
|
54
58
|
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
55
59
|
__metadata("design:type", Object)
|
|
@@ -10,6 +10,7 @@ export declare class HallRequests extends BaseModel {
|
|
|
10
10
|
appointment_id: number | null;
|
|
11
11
|
hall_id: number | null;
|
|
12
12
|
date: string | null;
|
|
13
|
+
recurrence_end_date: string | null;
|
|
13
14
|
from_time: string | null;
|
|
14
15
|
to_time: string | null;
|
|
15
16
|
location_id: number | null;
|
|
@@ -52,6 +52,10 @@ __decorate([
|
|
|
52
52
|
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
53
53
|
__metadata("design:type", Object)
|
|
54
54
|
], HallRequests.prototype, "date", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], HallRequests.prototype, "recurrence_end_date", void 0);
|
|
55
59
|
__decorate([
|
|
56
60
|
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
57
61
|
__metadata("design:type", Object)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class ProjectContacts extends BaseModel {
|
|
3
|
+
project_id: number;
|
|
4
|
+
contact_type: string;
|
|
5
|
+
phone_number: string;
|
|
6
|
+
email_id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
designation: string;
|
|
9
|
+
constructor(project_id?: number, contact_type?: string, phone_number?: string, email_id?: string, name?: string, designation?: string);
|
|
10
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.ProjectContacts = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ProjectContacts = class ProjectContacts extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(project_id, contact_type, phone_number, email_id, name, designation) {
|
|
17
|
+
super();
|
|
18
|
+
this.project_id = project_id ?? 0;
|
|
19
|
+
this.contact_type = contact_type ?? '';
|
|
20
|
+
this.phone_number = phone_number ?? '';
|
|
21
|
+
this.email_id = email_id ?? '';
|
|
22
|
+
this.name = name ?? '';
|
|
23
|
+
this.designation = designation ?? '';
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.ProjectContacts = ProjectContacts;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], ProjectContacts.prototype, "project_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50 }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], ProjectContacts.prototype, "contact_type", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], ProjectContacts.prototype, "phone_number", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], ProjectContacts.prototype, "email_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ProjectContacts.prototype, "name", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], ProjectContacts.prototype, "designation", void 0);
|
|
51
|
+
exports.ProjectContacts = ProjectContacts = __decorate([
|
|
52
|
+
(0, typeorm_1.Entity)({ name: 'project_contacts' }),
|
|
53
|
+
__metadata("design:paramtypes", [Number, String, String, String, String, String])
|
|
54
|
+
], ProjectContacts);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class ProjectFaqs extends BaseModel {
|
|
3
|
+
is_popular: boolean;
|
|
4
|
+
question: string;
|
|
5
|
+
project_id: number;
|
|
6
|
+
department_id: number;
|
|
7
|
+
answer: string;
|
|
8
|
+
constructor(question?: string, project_id?: number, department_id?: number, answer?: string, is_popular?: boolean);
|
|
9
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.ProjectFaqs = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ProjectFaqs = class ProjectFaqs extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(question, project_id, department_id, answer, is_popular) {
|
|
17
|
+
super();
|
|
18
|
+
this.question = question ?? '';
|
|
19
|
+
this.project_id = project_id ?? 0;
|
|
20
|
+
this.department_id = department_id ?? 0;
|
|
21
|
+
this.answer = answer ?? '';
|
|
22
|
+
this.is_popular = is_popular ?? false;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.ProjectFaqs = ProjectFaqs;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
28
|
+
__metadata("design:type", Boolean)
|
|
29
|
+
], ProjectFaqs.prototype, "is_popular", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], ProjectFaqs.prototype, "question", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], ProjectFaqs.prototype, "project_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], ProjectFaqs.prototype, "department_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], ProjectFaqs.prototype, "answer", void 0);
|
|
46
|
+
exports.ProjectFaqs = ProjectFaqs = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: 'project_faqs' }),
|
|
48
|
+
__metadata("design:paramtypes", [String, Number, Number, String, Boolean])
|
|
49
|
+
], ProjectFaqs);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class ProjectFaqReactions extends BaseModel {
|
|
3
|
+
project_id: number;
|
|
4
|
+
project_faq_id: number;
|
|
5
|
+
user_id: number;
|
|
6
|
+
is_like: boolean;
|
|
7
|
+
constructor(project_id?: number, project_faq_id?: number, user_id?: number, is_like?: boolean);
|
|
8
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.ProjectFaqReactions = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ProjectFaqReactions = class ProjectFaqReactions extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(project_id, project_faq_id, user_id, is_like) {
|
|
17
|
+
super();
|
|
18
|
+
this.project_id = project_id ?? 0;
|
|
19
|
+
this.project_faq_id = project_faq_id ?? 0;
|
|
20
|
+
this.user_id = user_id ?? 0;
|
|
21
|
+
this.is_like = is_like ?? true;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.ProjectFaqReactions = ProjectFaqReactions;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], ProjectFaqReactions.prototype, "project_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], ProjectFaqReactions.prototype, "project_faq_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], ProjectFaqReactions.prototype, "user_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
39
|
+
__metadata("design:type", Boolean)
|
|
40
|
+
], ProjectFaqReactions.prototype, "is_like", void 0);
|
|
41
|
+
exports.ProjectFaqReactions = ProjectFaqReactions = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)({ name: 'project_faq_reactions' }),
|
|
43
|
+
__metadata("design:paramtypes", [Number, Number, Number, Boolean])
|
|
44
|
+
], ProjectFaqReactions);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class ProjectInvoices extends BaseModel {
|
|
3
|
+
project_id: number;
|
|
4
|
+
invoice_link: string;
|
|
5
|
+
filename: string;
|
|
6
|
+
filesize: number;
|
|
7
|
+
filetype: string;
|
|
8
|
+
constructor(project_id?: number, invoice_link?: string, filename?: string, filesize?: number, filetype?: string);
|
|
9
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.ProjectInvoices = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ProjectInvoices = class ProjectInvoices extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(project_id, invoice_link, filename, filesize, filetype) {
|
|
17
|
+
super();
|
|
18
|
+
this.project_id = project_id ?? 0;
|
|
19
|
+
this.invoice_link = invoice_link ?? '';
|
|
20
|
+
this.filename = filename ?? '';
|
|
21
|
+
this.filesize = filesize ?? 0;
|
|
22
|
+
this.filetype = filetype ?? '';
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.ProjectInvoices = ProjectInvoices;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], ProjectInvoices.prototype, "project_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], ProjectInvoices.prototype, "invoice_link", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], ProjectInvoices.prototype, "filename", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], ProjectInvoices.prototype, "filesize", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], ProjectInvoices.prototype, "filetype", void 0);
|
|
46
|
+
exports.ProjectInvoices = ProjectInvoices = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: 'project_invoices' }),
|
|
48
|
+
__metadata("design:paramtypes", [Number, String, String, Number, String])
|
|
49
|
+
], ProjectInvoices);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class ProjectMilestones extends BaseModel {
|
|
3
|
+
project_id: number;
|
|
4
|
+
milestone_name: string;
|
|
5
|
+
vendor_names: string[] | null;
|
|
6
|
+
milestone_description: string;
|
|
7
|
+
estimated_startdate: Date | null;
|
|
8
|
+
estimated_enddate: Date | null;
|
|
9
|
+
actual_startdate: Date | null;
|
|
10
|
+
actual_enddate: Date | null;
|
|
11
|
+
checklist: string[] | null;
|
|
12
|
+
status: string;
|
|
13
|
+
phase: number;
|
|
14
|
+
constructor(project_id?: number, milestone_name?: string, vendor_names?: string[] | null, milestone_description?: string, estimated_startdate?: Date | null, estimated_enddate?: Date | null, actual_startdate?: Date | null, actual_enddate?: Date | null, checklist?: string[] | null, status?: string, phase?: number);
|
|
15
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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.ProjectMilestones = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ProjectMilestones = class ProjectMilestones extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(project_id, milestone_name, vendor_names, milestone_description, estimated_startdate, estimated_enddate, actual_startdate, actual_enddate, checklist, status, phase) {
|
|
17
|
+
super();
|
|
18
|
+
this.project_id = project_id ?? 0;
|
|
19
|
+
this.milestone_name = milestone_name ?? '';
|
|
20
|
+
this.vendor_names = vendor_names ?? null;
|
|
21
|
+
this.milestone_description = milestone_description ?? '';
|
|
22
|
+
this.estimated_startdate = estimated_startdate ?? null;
|
|
23
|
+
this.estimated_enddate = estimated_enddate ?? null;
|
|
24
|
+
this.actual_startdate = actual_startdate ?? null;
|
|
25
|
+
this.actual_enddate = actual_enddate ?? null;
|
|
26
|
+
this.checklist = checklist ?? null;
|
|
27
|
+
this.status = status ?? 'Not Started';
|
|
28
|
+
this.phase = phase ?? 1;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
exports.ProjectMilestones = ProjectMilestones;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], ProjectMilestones.prototype, "project_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], ProjectMilestones.prototype, "milestone_name", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], ProjectMilestones.prototype, "vendor_names", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], ProjectMilestones.prototype, "milestone_description", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], ProjectMilestones.prototype, "estimated_startdate", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], ProjectMilestones.prototype, "estimated_enddate", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], ProjectMilestones.prototype, "actual_startdate", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], ProjectMilestones.prototype, "actual_enddate", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], ProjectMilestones.prototype, "checklist", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, default: 'Not Started' }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], ProjectMilestones.prototype, "status", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'int', default: 1, nullable: true }),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], ProjectMilestones.prototype, "phase", void 0);
|
|
76
|
+
exports.ProjectMilestones = ProjectMilestones = __decorate([
|
|
77
|
+
(0, typeorm_1.Entity)({ name: 'project_milestones' }),
|
|
78
|
+
__metadata("design:paramtypes", [Number, String, Object, String, Object, Object, Object, Object, Object, String, Number])
|
|
79
|
+
], ProjectMilestones);
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
2
|
export declare class Projects extends BaseModel {
|
|
3
3
|
project_name: string;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
project_objective: string;
|
|
5
|
+
project_benefits: string;
|
|
6
|
+
project_risks: string;
|
|
7
|
+
project_challenges: string;
|
|
8
|
+
project_description: string;
|
|
9
|
+
project_status: string;
|
|
10
|
+
roadmap_link: string;
|
|
6
11
|
template_ids: number[] | null;
|
|
7
12
|
project_version: string;
|
|
8
|
-
|
|
13
|
+
no_of_phases: number;
|
|
14
|
+
constructor(project_name?: string, project_objective?: string, project_benefits?: string, project_risks?: string, project_challenges?: string, project_description?: string, project_status?: string, roadmap_link?: string | null, template_ids?: number[] | null, project_version?: string, no_of_phases?: number);
|
|
9
15
|
}
|
|
@@ -13,13 +13,19 @@ exports.Projects = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
let Projects = class Projects extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(project_name,
|
|
16
|
+
constructor(project_name, project_objective, project_benefits, project_risks, project_challenges, project_description, project_status, roadmap_link, template_ids, project_version, no_of_phases) {
|
|
17
17
|
super();
|
|
18
18
|
this.project_name = project_name || '';
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
19
|
+
this.project_objective = project_objective || '';
|
|
20
|
+
this.project_benefits = project_benefits || '';
|
|
21
|
+
this.project_risks = project_risks || '';
|
|
22
|
+
this.project_challenges = project_challenges || '';
|
|
23
|
+
this.project_description = project_description || '';
|
|
24
|
+
this.project_status = project_status || '';
|
|
25
|
+
this.roadmap_link = roadmap_link || '';
|
|
26
|
+
this.template_ids = template_ids || [];
|
|
22
27
|
this.project_version = project_version || '';
|
|
28
|
+
this.no_of_phases = no_of_phases ?? 0;
|
|
23
29
|
}
|
|
24
30
|
};
|
|
25
31
|
exports.Projects = Projects;
|
|
@@ -28,22 +34,46 @@ __decorate([
|
|
|
28
34
|
__metadata("design:type", String)
|
|
29
35
|
], Projects.prototype, "project_name", void 0);
|
|
30
36
|
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ type: 'text' }),
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
32
38
|
__metadata("design:type", String)
|
|
33
|
-
], Projects.prototype, "
|
|
39
|
+
], Projects.prototype, "project_objective", void 0);
|
|
34
40
|
__decorate([
|
|
35
41
|
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
36
|
-
__metadata("design:type",
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], Projects.prototype, "project_benefits", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], Projects.prototype, "project_risks", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], Projects.prototype, "project_challenges", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], Projects.prototype, "project_description", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], Projects.prototype, "project_status", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
62
|
+
__metadata("design:type", String)
|
|
37
63
|
], Projects.prototype, "roadmap_link", void 0);
|
|
38
64
|
__decorate([
|
|
39
65
|
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
40
66
|
__metadata("design:type", Object)
|
|
41
67
|
], Projects.prototype, "template_ids", void 0);
|
|
42
68
|
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
44
70
|
__metadata("design:type", String)
|
|
45
71
|
], Projects.prototype, "project_version", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0, nullable: true }),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], Projects.prototype, "no_of_phases", void 0);
|
|
46
76
|
exports.Projects = Projects = __decorate([
|
|
47
77
|
(0, typeorm_1.Entity)({ name: 'projects' }),
|
|
48
|
-
__metadata("design:paramtypes", [String, String, Object, Object, String])
|
|
78
|
+
__metadata("design:paramtypes", [String, String, String, String, String, String, String, Object, Object, String, Number])
|
|
49
79
|
], Projects);
|
|
@@ -0,0 +1,39 @@
|
|
|
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.ProjectResourceUsers = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ProjectResourceUsers = class ProjectResourceUsers extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(project_id, project_resource_id, user_id) {
|
|
17
|
+
super();
|
|
18
|
+
this.project_id = project_id ?? 0;
|
|
19
|
+
this.project_resource_id = project_resource_id ?? 0;
|
|
20
|
+
this.user_id = user_id ?? 0;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.ProjectResourceUsers = ProjectResourceUsers;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], ProjectResourceUsers.prototype, "project_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], ProjectResourceUsers.prototype, "project_resource_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], ProjectResourceUsers.prototype, "user_id", void 0);
|
|
36
|
+
exports.ProjectResourceUsers = ProjectResourceUsers = __decorate([
|
|
37
|
+
(0, typeorm_1.Entity)({ name: 'project_resource_users' }),
|
|
38
|
+
__metadata("design:paramtypes", [Number, Number, Number])
|
|
39
|
+
], ProjectResourceUsers);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class ProjectResources extends BaseModel {
|
|
3
|
+
project_id: number;
|
|
4
|
+
project_manager_id: number;
|
|
5
|
+
estimate_startdate: Date | null;
|
|
6
|
+
estimate_enddate: Date | null;
|
|
7
|
+
is_collaboration_tool_key: boolean;
|
|
8
|
+
constructor(project_id?: number, project_manager_id?: number, estimate_startdate?: Date | null, estimate_enddate?: Date | null, is_collaboration_tool_key?: boolean);
|
|
9
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.ProjectResources = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ProjectResources = class ProjectResources extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(project_id, project_manager_id, estimate_startdate, estimate_enddate, is_collaboration_tool_key) {
|
|
17
|
+
super();
|
|
18
|
+
this.project_id = project_id ?? 0;
|
|
19
|
+
this.project_manager_id = project_manager_id ?? 0;
|
|
20
|
+
this.estimate_startdate = estimate_startdate ?? null;
|
|
21
|
+
this.estimate_enddate = estimate_enddate ?? null;
|
|
22
|
+
this.is_collaboration_tool_key = is_collaboration_tool_key ?? false;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.ProjectResources = ProjectResources;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], ProjectResources.prototype, "project_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], ProjectResources.prototype, "project_manager_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], ProjectResources.prototype, "estimate_startdate", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], ProjectResources.prototype, "estimate_enddate", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
44
|
+
__metadata("design:type", Boolean)
|
|
45
|
+
], ProjectResources.prototype, "is_collaboration_tool_key", void 0);
|
|
46
|
+
exports.ProjectResources = ProjectResources = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: 'project_resources' }),
|
|
48
|
+
__metadata("design:paramtypes", [Number, Number, Object, Object, Boolean])
|
|
49
|
+
], ProjectResources);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export interface BudgetBreakdownItem {
|
|
3
|
+
phase?: string;
|
|
4
|
+
category?: string;
|
|
5
|
+
budget?: number;
|
|
6
|
+
fromdate?: string;
|
|
7
|
+
todate?: string;
|
|
8
|
+
estimated_cost?: number;
|
|
9
|
+
actual_cost?: number;
|
|
10
|
+
total_cost?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class ProjectScopes extends BaseModel {
|
|
13
|
+
scope: string;
|
|
14
|
+
outscope: string;
|
|
15
|
+
project_id: number;
|
|
16
|
+
budget_breakdown: BudgetBreakdownItem[] | null;
|
|
17
|
+
subtotal: number;
|
|
18
|
+
constructor(project_id?: number, scope?: string, outscope?: string, budget_breakdown?: BudgetBreakdownItem[] | null, subtotal?: number);
|
|
19
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.ProjectScopes = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ProjectScopes = class ProjectScopes extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(project_id, scope, outscope, budget_breakdown, subtotal) {
|
|
17
|
+
super();
|
|
18
|
+
this.project_id = project_id ?? 0;
|
|
19
|
+
this.scope = scope ?? '';
|
|
20
|
+
this.outscope = outscope ?? '';
|
|
21
|
+
this.budget_breakdown = budget_breakdown ?? null;
|
|
22
|
+
this.subtotal = subtotal ?? 0;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.ProjectScopes = ProjectScopes;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], ProjectScopes.prototype, "scope", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], ProjectScopes.prototype, "outscope", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], ProjectScopes.prototype, "project_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], ProjectScopes.prototype, "budget_breakdown", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 15, scale: 2, nullable: true }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], ProjectScopes.prototype, "subtotal", void 0);
|
|
46
|
+
exports.ProjectScopes = ProjectScopes = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: 'project_scopes' }),
|
|
48
|
+
__metadata("design:paramtypes", [Number, String, String, Object, Number])
|
|
49
|
+
], ProjectScopes);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -302,6 +302,14 @@ export * from './models/GiftsModel';
|
|
|
302
302
|
export * from './models/GiftAttachmentModel';
|
|
303
303
|
export * from './models/ProjectModel';
|
|
304
304
|
export * from './models/TemplateModel';
|
|
305
|
+
export * from './models/ProjectScopeModel';
|
|
306
|
+
export * from './models/ProjectMilestonesModel';
|
|
307
|
+
export * from './models/ProjectInvoicesModel';
|
|
308
|
+
export * from './models/ProjectResourcesModel';
|
|
309
|
+
export * from './models/ProjectResourceUsersModel';
|
|
310
|
+
export * from './models/ProjectFaqModel';
|
|
311
|
+
export * from './models/ProjectFaqReactionsModel';
|
|
312
|
+
export * from './models/ProjectContactsModel';
|
|
305
313
|
|
|
306
314
|
// Employee Milestones Models
|
|
307
315
|
export * from './models/EmployeeMilestonesModel';
|
|
@@ -18,6 +18,9 @@ export class FoodHistory extends BaseModel {
|
|
|
18
18
|
@Column({ type: 'date', nullable: true })
|
|
19
19
|
booked_date: string | null;
|
|
20
20
|
|
|
21
|
+
@Column({ type: 'date', nullable: true })
|
|
22
|
+
recurrence_end_date: string | null;
|
|
23
|
+
|
|
21
24
|
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
22
25
|
from_time: string | null;
|
|
23
26
|
|
|
@@ -28,6 +28,9 @@ export class FoodRequests extends BaseModel {
|
|
|
28
28
|
@Column({ type: 'date', nullable: true })
|
|
29
29
|
date: string | null;
|
|
30
30
|
|
|
31
|
+
@Column({ type: 'date', nullable: true })
|
|
32
|
+
recurrence_end_date: string | null;
|
|
33
|
+
|
|
31
34
|
@Column({ type: 'time', nullable: true })
|
|
32
35
|
from_time: string | null;
|
|
33
36
|
|
|
@@ -21,6 +21,9 @@ export class HallHistory extends BaseModel {
|
|
|
21
21
|
@Column({ type: 'date', nullable: true })
|
|
22
22
|
booked_date: string | null;
|
|
23
23
|
|
|
24
|
+
@Column({ type: 'date', nullable: true })
|
|
25
|
+
recurrence_end_date: string | null;
|
|
26
|
+
|
|
24
27
|
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
25
28
|
from_time: string | null;
|
|
26
29
|
|
|
@@ -31,6 +31,9 @@ export class HallRequests extends BaseModel {
|
|
|
31
31
|
@Column({ type: 'date', nullable: true })
|
|
32
32
|
date: string | null;
|
|
33
33
|
|
|
34
|
+
@Column({ type: 'date', nullable: true })
|
|
35
|
+
recurrence_end_date: string | null;
|
|
36
|
+
|
|
34
37
|
@Column({ type: 'time', nullable: true })
|
|
35
38
|
from_time: string | null;
|
|
36
39
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_contacts' })
|
|
5
|
+
export class ProjectContacts extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'varchar', length: 50 })
|
|
10
|
+
contact_type: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
13
|
+
phone_number: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
16
|
+
email_id: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
19
|
+
name: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
22
|
+
designation: string;
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
project_id?: number,
|
|
26
|
+
contact_type?: string,
|
|
27
|
+
phone_number?: string,
|
|
28
|
+
email_id?: string,
|
|
29
|
+
name?: string,
|
|
30
|
+
designation?: string
|
|
31
|
+
) {
|
|
32
|
+
super();
|
|
33
|
+
this.project_id = project_id ?? 0;
|
|
34
|
+
this.contact_type = contact_type ?? '';
|
|
35
|
+
this.phone_number = phone_number ?? '';
|
|
36
|
+
this.email_id = email_id ?? '';
|
|
37
|
+
this.name = name ?? '';
|
|
38
|
+
this.designation = designation ?? '';
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_faqs' })
|
|
5
|
+
export class ProjectFaqs extends BaseModel {
|
|
6
|
+
@Column({ type: 'boolean', default: false })
|
|
7
|
+
is_popular: boolean;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'text' })
|
|
10
|
+
question: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'int' })
|
|
13
|
+
project_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'int', nullable: true })
|
|
16
|
+
department_id: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'text', nullable: true })
|
|
19
|
+
answer: string;
|
|
20
|
+
|
|
21
|
+
constructor(
|
|
22
|
+
question?: string,
|
|
23
|
+
project_id?: number,
|
|
24
|
+
department_id?: number,
|
|
25
|
+
answer?: string,
|
|
26
|
+
is_popular?: boolean
|
|
27
|
+
) {
|
|
28
|
+
super();
|
|
29
|
+
this.question = question ?? '';
|
|
30
|
+
this.project_id = project_id ?? 0;
|
|
31
|
+
this.department_id = department_id ?? 0;
|
|
32
|
+
this.answer = answer ?? '';
|
|
33
|
+
this.is_popular = is_popular ?? false;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_faq_reactions' })
|
|
5
|
+
export class ProjectFaqReactions extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'int' })
|
|
10
|
+
project_faq_id: number;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'int' })
|
|
13
|
+
user_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'boolean', default: true })
|
|
16
|
+
is_like: boolean;
|
|
17
|
+
|
|
18
|
+
constructor(
|
|
19
|
+
project_id?: number,
|
|
20
|
+
project_faq_id?: number,
|
|
21
|
+
user_id?: number,
|
|
22
|
+
is_like?: boolean
|
|
23
|
+
) {
|
|
24
|
+
super();
|
|
25
|
+
this.project_id = project_id ?? 0;
|
|
26
|
+
this.project_faq_id = project_faq_id ?? 0;
|
|
27
|
+
this.user_id = user_id ?? 0;
|
|
28
|
+
this.is_like = is_like ?? true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_invoices' })
|
|
5
|
+
export class ProjectInvoices extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'text', nullable: true })
|
|
10
|
+
invoice_link: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
13
|
+
filename: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'bigint', nullable: true })
|
|
16
|
+
filesize: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
19
|
+
filetype: string;
|
|
20
|
+
|
|
21
|
+
constructor(
|
|
22
|
+
project_id?: number,
|
|
23
|
+
invoice_link?: string,
|
|
24
|
+
filename?: string,
|
|
25
|
+
filesize?: number,
|
|
26
|
+
filetype?: string
|
|
27
|
+
) {
|
|
28
|
+
super();
|
|
29
|
+
this.project_id = project_id ?? 0;
|
|
30
|
+
this.invoice_link = invoice_link ?? '';
|
|
31
|
+
this.filename = filename ?? '';
|
|
32
|
+
this.filesize = filesize ?? 0;
|
|
33
|
+
this.filetype = filetype ?? '';
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_milestones' })
|
|
5
|
+
export class ProjectMilestones extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'varchar', length: 255 })
|
|
10
|
+
milestone_name: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'jsonb', nullable: true })
|
|
13
|
+
vendor_names: string[] | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'text', nullable: true })
|
|
16
|
+
milestone_description: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'date', nullable: true })
|
|
19
|
+
estimated_startdate: Date | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'date', nullable: true })
|
|
22
|
+
estimated_enddate: Date | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'date', nullable: true })
|
|
25
|
+
actual_startdate: Date | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'date', nullable: true })
|
|
28
|
+
actual_enddate: Date | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'jsonb', nullable: true })
|
|
31
|
+
checklist: string[] | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'varchar', length: 50, default: 'Not Started' })
|
|
34
|
+
status: string;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'int', default: 1, nullable: true })
|
|
37
|
+
phase: number;
|
|
38
|
+
|
|
39
|
+
constructor(
|
|
40
|
+
project_id?: number,
|
|
41
|
+
milestone_name?: string,
|
|
42
|
+
vendor_names?: string[] | null,
|
|
43
|
+
milestone_description?: string,
|
|
44
|
+
estimated_startdate?: Date | null,
|
|
45
|
+
estimated_enddate?: Date | null,
|
|
46
|
+
actual_startdate?: Date | null,
|
|
47
|
+
actual_enddate?: Date | null,
|
|
48
|
+
checklist?: string[] | null,
|
|
49
|
+
status?: string,
|
|
50
|
+
phase?: number
|
|
51
|
+
) {
|
|
52
|
+
super();
|
|
53
|
+
this.project_id = project_id ?? 0;
|
|
54
|
+
this.milestone_name = milestone_name ?? '';
|
|
55
|
+
this.vendor_names = vendor_names ?? null;
|
|
56
|
+
this.milestone_description = milestone_description ?? '';
|
|
57
|
+
this.estimated_startdate = estimated_startdate ?? null;
|
|
58
|
+
this.estimated_enddate = estimated_enddate ?? null;
|
|
59
|
+
this.actual_startdate = actual_startdate ?? null;
|
|
60
|
+
this.actual_enddate = actual_enddate ?? null;
|
|
61
|
+
this.checklist = checklist ?? null;
|
|
62
|
+
this.status = status ?? 'Not Started';
|
|
63
|
+
this.phase = phase ?? 1;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -6,30 +6,60 @@ export class Projects extends BaseModel {
|
|
|
6
6
|
@Column({ type: 'varchar', length: 255 })
|
|
7
7
|
project_name: string;
|
|
8
8
|
|
|
9
|
-
@Column({ type: 'text' })
|
|
10
|
-
|
|
9
|
+
@Column({ type: 'text' , nullable: true})
|
|
10
|
+
project_objective: string;
|
|
11
11
|
|
|
12
|
-
@Column({ type: 'text', nullable: true
|
|
13
|
-
|
|
12
|
+
@Column({ type: 'text' , nullable: true})
|
|
13
|
+
project_benefits: string;
|
|
14
14
|
|
|
15
|
-
@Column({ type: '
|
|
15
|
+
@Column({ type: 'text' , nullable: true})
|
|
16
|
+
project_risks: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'text' , nullable: true})
|
|
19
|
+
project_challenges: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'text' , nullable: true})
|
|
22
|
+
project_description: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'text' , nullable: true})
|
|
25
|
+
project_status: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'text' , nullable: true})
|
|
28
|
+
roadmap_link: string;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'jsonb' , nullable: true})
|
|
16
31
|
template_ids: number[] | null;
|
|
17
32
|
|
|
18
|
-
@Column({ type: 'varchar', length: 100 })
|
|
33
|
+
@Column({ type: 'varchar', length: 100, nullable: true})
|
|
19
34
|
project_version: string;
|
|
20
35
|
|
|
36
|
+
@Column({ type: 'int', default: 0, nullable: true })
|
|
37
|
+
no_of_phases: number;
|
|
38
|
+
|
|
21
39
|
constructor(
|
|
22
40
|
project_name?: string,
|
|
23
|
-
|
|
41
|
+
project_objective?: string,
|
|
42
|
+
project_benefits?: string,
|
|
43
|
+
project_risks?: string,
|
|
44
|
+
project_challenges?: string,
|
|
45
|
+
project_description?: string,
|
|
46
|
+
project_status?: string,
|
|
24
47
|
roadmap_link?: string | null,
|
|
25
48
|
template_ids?: number[] | null,
|
|
26
|
-
project_version?: string
|
|
49
|
+
project_version?: string,
|
|
50
|
+
no_of_phases?: number
|
|
27
51
|
) {
|
|
28
52
|
super();
|
|
29
53
|
this.project_name = project_name || '';
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
32
|
-
this.
|
|
54
|
+
this.project_objective = project_objective || '';
|
|
55
|
+
this.project_benefits = project_benefits || '';
|
|
56
|
+
this.project_risks = project_risks || '';
|
|
57
|
+
this.project_challenges = project_challenges || '';
|
|
58
|
+
this.project_description = project_description || '';
|
|
59
|
+
this.project_status = project_status || '';
|
|
60
|
+
this.roadmap_link = roadmap_link || '';
|
|
61
|
+
this.template_ids = template_ids || [];
|
|
33
62
|
this.project_version = project_version || '';
|
|
63
|
+
this.no_of_phases = no_of_phases ?? 0;
|
|
34
64
|
}
|
|
35
65
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_resource_users' })
|
|
5
|
+
export class ProjectResourceUsers extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'int' })
|
|
10
|
+
project_resource_id: number;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'int' })
|
|
13
|
+
user_id: number;
|
|
14
|
+
|
|
15
|
+
constructor(project_id?: number, project_resource_id?: number, user_id?: number) {
|
|
16
|
+
super();
|
|
17
|
+
this.project_id = project_id ?? 0;
|
|
18
|
+
this.project_resource_id = project_resource_id ?? 0;
|
|
19
|
+
this.user_id = user_id ?? 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_resources' })
|
|
5
|
+
export class ProjectResources extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'int', nullable: true })
|
|
10
|
+
project_manager_id: number;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'date', nullable: true })
|
|
13
|
+
estimate_startdate: Date | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'date', nullable: true })
|
|
16
|
+
estimate_enddate: Date | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'boolean', default: false })
|
|
19
|
+
is_collaboration_tool_key: boolean;
|
|
20
|
+
|
|
21
|
+
constructor(
|
|
22
|
+
project_id?: number,
|
|
23
|
+
project_manager_id?: number,
|
|
24
|
+
estimate_startdate?: Date | null,
|
|
25
|
+
estimate_enddate?: Date | null,
|
|
26
|
+
is_collaboration_tool_key?: boolean
|
|
27
|
+
) {
|
|
28
|
+
super();
|
|
29
|
+
this.project_id = project_id ?? 0;
|
|
30
|
+
this.project_manager_id = project_manager_id ?? 0;
|
|
31
|
+
this.estimate_startdate = estimate_startdate ?? null;
|
|
32
|
+
this.estimate_enddate = estimate_enddate ?? null;
|
|
33
|
+
this.is_collaboration_tool_key = is_collaboration_tool_key ?? false;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export interface BudgetBreakdownItem {
|
|
5
|
+
phase?: string;
|
|
6
|
+
category?: string;
|
|
7
|
+
budget?: number;
|
|
8
|
+
fromdate?: string;
|
|
9
|
+
todate?: string;
|
|
10
|
+
estimated_cost?: number;
|
|
11
|
+
actual_cost?: number;
|
|
12
|
+
total_cost?: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@Entity({ name: 'project_scopes' })
|
|
16
|
+
export class ProjectScopes extends BaseModel {
|
|
17
|
+
@Column({ type: 'text', nullable: true })
|
|
18
|
+
scope: string;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'text', nullable: true })
|
|
21
|
+
outscope: string;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'int' })
|
|
24
|
+
project_id: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'jsonb', nullable: true })
|
|
27
|
+
budget_breakdown: BudgetBreakdownItem[] | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'decimal', precision: 15, scale: 2, nullable: true })
|
|
30
|
+
subtotal: number;
|
|
31
|
+
|
|
32
|
+
constructor(
|
|
33
|
+
project_id?: number,
|
|
34
|
+
scope?: string,
|
|
35
|
+
outscope?: string,
|
|
36
|
+
budget_breakdown?: BudgetBreakdownItem[] | null,
|
|
37
|
+
subtotal?: number
|
|
38
|
+
) {
|
|
39
|
+
super();
|
|
40
|
+
this.project_id = project_id ?? 0;
|
|
41
|
+
this.scope = scope ?? '';
|
|
42
|
+
this.outscope = outscope ?? '';
|
|
43
|
+
this.budget_breakdown = budget_breakdown ?? null;
|
|
44
|
+
this.subtotal = subtotal ?? 0;
|
|
45
|
+
}
|
|
46
|
+
}
|