@platform-modules/foreign-ministry 1.1.6 → 1.1.8
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/models/AllowanceRequestsModel.js +2 -1
- package/dist/models/BankAccountChangeRequestsModel.d.ts +2 -0
- package/dist/models/BankAccountChangeRequestsModel.js +6 -0
- package/dist/models/FinancialWorkFlowModel.d.ts +2 -1
- package/dist/models/FinancialWorkFlowModel.js +1 -0
- package/dist/models/ReimbursementRequestsModel.js +2 -1
- package/package.json +1 -1
- package/src/models/AllowanceRequestsModel.ts +5 -1
- package/src/models/BankAccountChangeRequestsModel.ts +5 -0
- package/src/models/FinancialWorkFlowModel.ts +2 -1
- package/src/models/ReimbursementRequestsModel.ts +5 -1
- 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/.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
|
|
@@ -55,7 +55,8 @@ __decorate([
|
|
|
55
55
|
__metadata("design:type", String)
|
|
56
56
|
], AllowanceRequests.prototype, "description", void 0);
|
|
57
57
|
__decorate([
|
|
58
|
-
(0, typeorm_1.OneToOne)(
|
|
58
|
+
(0, typeorm_1.OneToOne)(() => FinancialRequestsModel_1.FinancialRequests, fr => fr.allowanceRequest),
|
|
59
|
+
(0, typeorm_1.JoinColumn)({ name: 'financial_request_id' }),
|
|
59
60
|
__metadata("design:type", FinancialRequestsModel_1.FinancialRequests)
|
|
60
61
|
], AllowanceRequests.prototype, "financialRequest", void 0);
|
|
61
62
|
exports.AllowanceRequests = AllowanceRequests = __decorate([
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { FinancialRequests } from "./FinancialRequestsModel";
|
|
2
3
|
export declare class BankAccountChangeRequests extends BaseModel {
|
|
3
4
|
financial_request_id: number;
|
|
4
5
|
old_bank_name: string;
|
|
@@ -9,5 +10,6 @@ export declare class BankAccountChangeRequests extends BaseModel {
|
|
|
9
10
|
new_branch_ifsc_code: string;
|
|
10
11
|
reason_for_change: string;
|
|
11
12
|
effective_from_date: string;
|
|
13
|
+
financialRequest?: FinancialRequests;
|
|
12
14
|
constructor(financial_request_id: number, new_bank_name: string, new_account_number: string, new_account_name: string, new_branch_ifsc_code: string, reason_for_change: string, effective_from_date: string);
|
|
13
15
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.BankAccountChangeRequests = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const FinancialRequestsModel_1 = require("./FinancialRequestsModel");
|
|
15
16
|
let BankAccountChangeRequests = class BankAccountChangeRequests extends BaseModel_1.BaseModel {
|
|
16
17
|
constructor(financial_request_id, new_bank_name, new_account_number, new_account_name, new_branch_ifsc_code, reason_for_change, effective_from_date) {
|
|
17
18
|
super();
|
|
@@ -61,6 +62,11 @@ __decorate([
|
|
|
61
62
|
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
62
63
|
__metadata("design:type", String)
|
|
63
64
|
], BankAccountChangeRequests.prototype, "effective_from_date", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.OneToOne)(() => FinancialRequestsModel_1.FinancialRequests, fr => fr.bankAccountChangeRequest),
|
|
67
|
+
(0, typeorm_1.JoinColumn)({ name: 'financial_request_id' }),
|
|
68
|
+
__metadata("design:type", FinancialRequestsModel_1.FinancialRequests)
|
|
69
|
+
], BankAccountChangeRequests.prototype, "financialRequest", void 0);
|
|
64
70
|
exports.BankAccountChangeRequests = BankAccountChangeRequests = __decorate([
|
|
65
71
|
(0, typeorm_1.Entity)({ name: 'bank_account_change_requests' }),
|
|
66
72
|
__metadata("design:paramtypes", [Number, String, String, String, String, String, String])
|
|
@@ -4,7 +4,8 @@ export declare enum FinancialWorkFlowStatus {
|
|
|
4
4
|
COMPLETED = "Completed",
|
|
5
5
|
NOT_YET_STARTED = "Not Yet Started",
|
|
6
6
|
PENDING = "Pending",
|
|
7
|
-
IN_PROGRESS = "In Progress"
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
FAILED = "Failed"
|
|
8
9
|
}
|
|
9
10
|
export declare class FinancialWorkFlow extends BaseModel {
|
|
10
11
|
financial_request_id: number;
|
|
@@ -19,6 +19,7 @@ var FinancialWorkFlowStatus;
|
|
|
19
19
|
FinancialWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
20
20
|
FinancialWorkFlowStatus["PENDING"] = "Pending";
|
|
21
21
|
FinancialWorkFlowStatus["IN_PROGRESS"] = "In Progress";
|
|
22
|
+
FinancialWorkFlowStatus["FAILED"] = "Failed";
|
|
22
23
|
})(FinancialWorkFlowStatus || (exports.FinancialWorkFlowStatus = FinancialWorkFlowStatus = {}));
|
|
23
24
|
let FinancialWorkFlow = class FinancialWorkFlow extends BaseModel_1.BaseModel {
|
|
24
25
|
constructor(financial_request_id, status, approved_by_user_id, content) {
|
|
@@ -69,7 +69,8 @@ __decorate([
|
|
|
69
69
|
__metadata("design:type", Date)
|
|
70
70
|
], ReimbursementRequests.prototype, "payment_date", void 0);
|
|
71
71
|
__decorate([
|
|
72
|
-
(0, typeorm_1.OneToOne)(
|
|
72
|
+
(0, typeorm_1.OneToOne)(() => FinancialRequestsModel_1.FinancialRequests, fr => fr.reimbursementRequest),
|
|
73
|
+
(0, typeorm_1.JoinColumn)({ name: 'financial_request_id' }),
|
|
73
74
|
__metadata("design:type", FinancialRequestsModel_1.FinancialRequests)
|
|
74
75
|
], ReimbursementRequests.prototype, "financialRequest", void 0);
|
|
75
76
|
exports.ReimbursementRequests = ReimbursementRequests = __decorate([
|
package/package.json
CHANGED
|
@@ -25,7 +25,11 @@ export class AllowanceRequests extends BaseModel {
|
|
|
25
25
|
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
26
26
|
description: string;
|
|
27
27
|
|
|
28
|
-
@OneToOne('FinancialRequests', 'allowanceRequest')
|
|
28
|
+
// @OneToOne('FinancialRequests', 'allowanceRequest')
|
|
29
|
+
// financialRequest?: FinancialRequests;
|
|
30
|
+
|
|
31
|
+
@OneToOne(() => FinancialRequests, fr => fr.allowanceRequest)
|
|
32
|
+
@JoinColumn({ name: 'financial_request_id' })
|
|
29
33
|
financialRequest?: FinancialRequests;
|
|
30
34
|
|
|
31
35
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Column, Entity, OneToOne, JoinColumn } from "typeorm";
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { FinancialRequests } from "./FinancialRequestsModel";
|
|
3
4
|
|
|
4
5
|
@Entity({ name: 'bank_account_change_requests' })
|
|
5
6
|
export class BankAccountChangeRequests extends BaseModel {
|
|
@@ -33,6 +34,10 @@ export class BankAccountChangeRequests extends BaseModel {
|
|
|
33
34
|
@Column({ type: 'date', nullable: true })
|
|
34
35
|
effective_from_date: string;
|
|
35
36
|
|
|
37
|
+
@OneToOne(() => FinancialRequests, fr => fr.bankAccountChangeRequest)
|
|
38
|
+
@JoinColumn({ name: 'financial_request_id' })
|
|
39
|
+
financialRequest?: FinancialRequests;
|
|
40
|
+
|
|
36
41
|
constructor(
|
|
37
42
|
financial_request_id: number,
|
|
38
43
|
new_bank_name: string,
|
|
@@ -34,7 +34,11 @@ export class ReimbursementRequests extends BaseModel {
|
|
|
34
34
|
@Column({ type: 'date', nullable: true })
|
|
35
35
|
payment_date: Date;
|
|
36
36
|
|
|
37
|
-
@OneToOne('FinancialRequests', 'reimbursementRequest')
|
|
37
|
+
// @OneToOne('FinancialRequests', 'reimbursementRequest')
|
|
38
|
+
// financialRequest?: FinancialRequests;
|
|
39
|
+
|
|
40
|
+
@OneToOne(() => FinancialRequests, fr => fr.reimbursementRequest)
|
|
41
|
+
@JoinColumn({ name: 'financial_request_id' })
|
|
38
42
|
financialRequest?: FinancialRequests;
|
|
39
43
|
|
|
40
44
|
constructor(
|
|
@@ -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);
|