@platform-modules/foreign-ministry 1.3.265 → 1.3.266
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 +5 -10
- package/dist/data-source.js +6 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -2
- package/dist/models/AnnualTravelTicketPriceConfigurationItemModel.d.ts +16 -0
- package/dist/models/AnnualTravelTicketPriceConfigurationItemModel.js +59 -0
- package/dist/models/AnnualTravelTicketPriceConfigurationModel.d.ts +16 -0
- package/dist/models/AnnualTravelTicketPriceConfigurationModel.js +58 -0
- package/dist/models/AnnualTravelTicketRequestModel.d.ts +12 -13
- package/dist/models/AnnualTravelTicketRequestModel.js +9 -25
- package/dist/models/EmbassyMasterModel.d.ts +16 -0
- package/dist/models/EmbassyMasterModel.js +75 -0
- package/dist/models/UserDependentsModel.d.ts +18 -0
- package/dist/models/UserDependentsModel.js +94 -0
- package/package.json +1 -1
- package/src/data-source.ts +566 -560
- package/src/index.ts +427 -427
- package/src/models/AnnualTravelTicketPriceConfigurationItemModel.ts +36 -0
- package/src/models/AnnualTravelTicketPriceConfigurationModel.ts +35 -0
- package/src/models/AnnualTravelTicketRequestModel.ts +42 -50
- package/src/models/DiplomaticAcademyRequestModel.ts +80 -80
- package/src/models/DocumentationFileModel.ts +40 -40
- package/src/models/FinancialWorkFlowModel.ts +15 -15
- package/src/models/GatePassVisitorsModel.ts +7 -7
- package/src/models/LMSExternalEntityTrainedPersonModel.ts +45 -45
- package/src/models/LanguageCourseRequestModel.ts +67 -67
- package/src/models/LeaveConfigModel.ts +71 -71
- package/src/models/MissionTravelApprovalModel.ts +101 -101
- package/src/models/MissionTravelAttachmentModel.ts +56 -56
- package/src/models/MissionTravelChatModel.ts +52 -52
- package/src/models/MissionTravelPersonModel.ts +105 -105
- package/src/models/MissionTravelWorkflowModel.ts +54 -54
- package/src/models/PollOptionsModel.ts +26 -26
- package/src/models/PollVotesModel.ts +37 -37
- package/src/models/PollsModel.ts +49 -49
- package/src/models/ProjectContactsModel.ts +51 -51
- package/src/models/ProjectFaqModel.ts +36 -36
- package/src/models/ProjectInvoicesModel.ts +41 -41
- package/src/models/ProjectModel.ts +75 -75
- package/src/models/ProjectTasksModel.ts +75 -75
- package/src/models/ResignationTerminationApprovalModel.ts +9 -9
- package/src/models/ResignationTerminationRequestModel.ts +17 -17
- package/src/models/SectionModel.ts +35 -35
- package/src/models/ServicesNotificationConfigsModel.ts +55 -55
- package/src/models/TelephoneDirectoryModel.ts +20 -20
- package/dist/models/IneligibleForEvaluationModel.d.ts +0 -8
- package/dist/models/IneligibleForEvaluationModel.js +0 -44
- package/dist/models/MissionTravelClassConfigModel.d.ts +0 -10
- package/dist/models/MissionTravelClassConfigModel.js +0 -50
- package/dist/models/MissionTravelPerdiemModel.d.ts +0 -10
- package/dist/models/MissionTravelPerdiemModel.js +0 -54
- package/src/models/IneligibleForEvaluationModel.ts +0 -25
package/.env
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
DB_HOST = 164.52.222.169
|
|
8
|
-
DB_USER = postgres_admin_user
|
|
9
|
-
DB_PASS = pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
10
|
-
DB_NAME= FM
|
|
1
|
+
DB_HOST=localhost
|
|
2
|
+
DB_PORT=5432
|
|
3
|
+
DB_USER=postgres
|
|
4
|
+
DB_PASS=Fa@123
|
|
5
|
+
DB_NAME=FM
|
package/dist/data-source.js
CHANGED
|
@@ -65,6 +65,9 @@ const SalaryCertificateRequestsModel_1 = require("./models/SalaryCertificateRequ
|
|
|
65
65
|
const AllowanceRequestsModel_1 = require("./models/AllowanceRequestsModel");
|
|
66
66
|
const ReimbursementRequestsModel_1 = require("./models/ReimbursementRequestsModel");
|
|
67
67
|
const BankAccountChangeRequestsModel_1 = require("./models/BankAccountChangeRequestsModel");
|
|
68
|
+
const AnnualTravelTicketRequestModel_1 = require("./models/AnnualTravelTicketRequestModel");
|
|
69
|
+
const AnnualTravelTicketPriceConfigurationModel_1 = require("./models/AnnualTravelTicketPriceConfigurationModel");
|
|
70
|
+
const AnnualTravelTicketPriceConfigurationItemModel_1 = require("./models/AnnualTravelTicketPriceConfigurationItemModel");
|
|
68
71
|
const FinancialChatsModel_1 = require("./models/FinancialChatsModel");
|
|
69
72
|
const FinancialWorkFlowModel_1 = require("./models/FinancialWorkFlowModel");
|
|
70
73
|
const FinancialAttachmentsModel_1 = require("./models/FinancialAttachmentsModel");
|
|
@@ -349,6 +352,9 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
349
352
|
AllowanceRequestsModel_1.AllowanceRequests,
|
|
350
353
|
ReimbursementRequestsModel_1.ReimbursementRequests,
|
|
351
354
|
BankAccountChangeRequestsModel_1.BankAccountChangeRequests,
|
|
355
|
+
AnnualTravelTicketRequestModel_1.AnnualTravelTicketRequests,
|
|
356
|
+
AnnualTravelTicketPriceConfigurationModel_1.AnnualTravelTicketPriceConfiguration,
|
|
357
|
+
AnnualTravelTicketPriceConfigurationItemModel_1.AnnualTravelTicketPriceConfigurationItem,
|
|
352
358
|
FinancialChatsModel_1.FinancialChats,
|
|
353
359
|
FinancialWorkFlowModel_1.FinancialWorkFlow,
|
|
354
360
|
FinancialAttachmentsModel_1.FinancialAttachments,
|
package/dist/index.d.ts
CHANGED
|
@@ -81,6 +81,8 @@ export * from './models/MissionBankAccountAttachmentModel';
|
|
|
81
81
|
export * from './models/MissionBankAccountChatModel';
|
|
82
82
|
export * from './models/MissionBankAccountWorkflowModel';
|
|
83
83
|
export * from './models/AnnualTravelTicketRequestModel';
|
|
84
|
+
export * from './models/AnnualTravelTicketPriceConfigurationModel';
|
|
85
|
+
export * from './models/AnnualTravelTicketPriceConfigurationItemModel';
|
|
84
86
|
export * from './models/AmbassadorSpecialAccountAmountRequestModel';
|
|
85
87
|
export * from './models/StayAfterHoursRequestModel';
|
|
86
88
|
export * from './models/StayAfterHoursApprovalModel';
|
|
@@ -401,4 +403,3 @@ export * from './models/MissionTravelPassportExpiryNotificationConfigModel';
|
|
|
401
403
|
export * from './models/ServicesNotificationConfigsModel';
|
|
402
404
|
export { ServicesNotificationTriggerType } from './models/ServicesNotificationConfigsModel';
|
|
403
405
|
export * from './models/MoodleUsersModel';
|
|
404
|
-
export * from './models/IneligibleForEvaluationModel';
|
package/dist/index.js
CHANGED
|
@@ -98,6 +98,8 @@ __exportStar(require("./models/MissionBankAccountAttachmentModel"), exports);
|
|
|
98
98
|
__exportStar(require("./models/MissionBankAccountChatModel"), exports);
|
|
99
99
|
__exportStar(require("./models/MissionBankAccountWorkflowModel"), exports);
|
|
100
100
|
__exportStar(require("./models/AnnualTravelTicketRequestModel"), exports);
|
|
101
|
+
__exportStar(require("./models/AnnualTravelTicketPriceConfigurationModel"), exports);
|
|
102
|
+
__exportStar(require("./models/AnnualTravelTicketPriceConfigurationItemModel"), exports);
|
|
101
103
|
__exportStar(require("./models/AmbassadorSpecialAccountAmountRequestModel"), exports);
|
|
102
104
|
__exportStar(require("./models/StayAfterHoursRequestModel"), exports);
|
|
103
105
|
__exportStar(require("./models/StayAfterHoursApprovalModel"), exports);
|
|
@@ -486,5 +488,3 @@ var ServicesNotificationConfigsModel_1 = require("./models/ServicesNotificationC
|
|
|
486
488
|
Object.defineProperty(exports, "ServicesNotificationTriggerType", { enumerable: true, get: function () { return ServicesNotificationConfigsModel_1.ServicesNotificationTriggerType; } });
|
|
487
489
|
// Moodle Users Model
|
|
488
490
|
__exportStar(require("./models/MoodleUsersModel"), exports);
|
|
489
|
-
// Evaluation
|
|
490
|
-
__exportStar(require("./models/IneligibleForEvaluationModel"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { AnnualTravelTicketPriceConfiguration } from './AnnualTravelTicketPriceConfigurationModel';
|
|
3
|
+
/**
|
|
4
|
+
* Individual price slab within an annual travel ticket pricing configuration.
|
|
5
|
+
* age_from is inclusive and age_to is exclusive to allow adjacent ranges.
|
|
6
|
+
*/
|
|
7
|
+
export declare class AnnualTravelTicketPriceConfigurationItem extends BaseModel {
|
|
8
|
+
configuration_id: number;
|
|
9
|
+
configuration: AnnualTravelTicketPriceConfiguration;
|
|
10
|
+
ticket_class: string | null;
|
|
11
|
+
age_from: number;
|
|
12
|
+
age_to: number;
|
|
13
|
+
price: number | string;
|
|
14
|
+
currency_code: string | null;
|
|
15
|
+
notes: string | null;
|
|
16
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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.AnnualTravelTicketPriceConfigurationItem = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const AnnualTravelTicketPriceConfigurationModel_1 = require("./AnnualTravelTicketPriceConfigurationModel");
|
|
16
|
+
/**
|
|
17
|
+
* Individual price slab within an annual travel ticket pricing configuration.
|
|
18
|
+
* age_from is inclusive and age_to is exclusive to allow adjacent ranges.
|
|
19
|
+
*/
|
|
20
|
+
let AnnualTravelTicketPriceConfigurationItem = class AnnualTravelTicketPriceConfigurationItem extends BaseModel_1.BaseModel {
|
|
21
|
+
};
|
|
22
|
+
exports.AnnualTravelTicketPriceConfigurationItem = AnnualTravelTicketPriceConfigurationItem;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], AnnualTravelTicketPriceConfigurationItem.prototype, "configuration_id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.ManyToOne)(() => AnnualTravelTicketPriceConfigurationModel_1.AnnualTravelTicketPriceConfiguration, (configuration) => configuration.price_slabs, { onDelete: 'CASCADE' }),
|
|
29
|
+
(0, typeorm_1.JoinColumn)({ name: 'configuration_id' }),
|
|
30
|
+
__metadata("design:type", AnnualTravelTicketPriceConfigurationModel_1.AnnualTravelTicketPriceConfiguration)
|
|
31
|
+
], AnnualTravelTicketPriceConfigurationItem.prototype, "configuration", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], AnnualTravelTicketPriceConfigurationItem.prototype, "ticket_class", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], AnnualTravelTicketPriceConfigurationItem.prototype, "age_from", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], AnnualTravelTicketPriceConfigurationItem.prototype, "age_to", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 12, scale: 2, nullable: false }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], AnnualTravelTicketPriceConfigurationItem.prototype, "price", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true, default: 'OMR' }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], AnnualTravelTicketPriceConfigurationItem.prototype, "currency_code", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], AnnualTravelTicketPriceConfigurationItem.prototype, "notes", void 0);
|
|
56
|
+
exports.AnnualTravelTicketPriceConfigurationItem = AnnualTravelTicketPriceConfigurationItem = __decorate([
|
|
57
|
+
(0, typeorm_1.Entity)({ name: 'annual_travel_ticket_price_configuration_items' }),
|
|
58
|
+
(0, typeorm_1.Unique)(['configuration_id', 'ticket_class', 'age_from', 'age_to'])
|
|
59
|
+
], AnnualTravelTicketPriceConfigurationItem);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { AnnualTravelTicketPriceConfigurationItem } from './AnnualTravelTicketPriceConfigurationItemModel';
|
|
3
|
+
/**
|
|
4
|
+
* Admin configuration for annual travel ticket pricing.
|
|
5
|
+
* One record per year (and optional service/sub-service pair), with multiple age slabs.
|
|
6
|
+
*/
|
|
7
|
+
export declare class AnnualTravelTicketPriceConfiguration extends BaseModel {
|
|
8
|
+
service_id: number | null;
|
|
9
|
+
sub_service_id: number | null;
|
|
10
|
+
ticket_year: number;
|
|
11
|
+
configuration_name: string | null;
|
|
12
|
+
currency_code: string | null;
|
|
13
|
+
description: string | null;
|
|
14
|
+
is_active: boolean;
|
|
15
|
+
price_slabs?: AnnualTravelTicketPriceConfigurationItem[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.AnnualTravelTicketPriceConfiguration = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const AnnualTravelTicketPriceConfigurationItemModel_1 = require("./AnnualTravelTicketPriceConfigurationItemModel");
|
|
16
|
+
/**
|
|
17
|
+
* Admin configuration for annual travel ticket pricing.
|
|
18
|
+
* One record per year (and optional service/sub-service pair), with multiple age slabs.
|
|
19
|
+
*/
|
|
20
|
+
let AnnualTravelTicketPriceConfiguration = class AnnualTravelTicketPriceConfiguration extends BaseModel_1.BaseModel {
|
|
21
|
+
};
|
|
22
|
+
exports.AnnualTravelTicketPriceConfiguration = AnnualTravelTicketPriceConfiguration;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
25
|
+
__metadata("design:type", Object)
|
|
26
|
+
], AnnualTravelTicketPriceConfiguration.prototype, "service_id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], AnnualTravelTicketPriceConfiguration.prototype, "sub_service_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], AnnualTravelTicketPriceConfiguration.prototype, "ticket_year", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], AnnualTravelTicketPriceConfiguration.prototype, "configuration_name", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true, default: 'OMR' }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], AnnualTravelTicketPriceConfiguration.prototype, "currency_code", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], AnnualTravelTicketPriceConfiguration.prototype, "description", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], AnnualTravelTicketPriceConfiguration.prototype, "is_active", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.OneToMany)(() => AnnualTravelTicketPriceConfigurationItemModel_1.AnnualTravelTicketPriceConfigurationItem, (item) => item.configuration),
|
|
53
|
+
__metadata("design:type", Array)
|
|
54
|
+
], AnnualTravelTicketPriceConfiguration.prototype, "price_slabs", void 0);
|
|
55
|
+
exports.AnnualTravelTicketPriceConfiguration = AnnualTravelTicketPriceConfiguration = __decorate([
|
|
56
|
+
(0, typeorm_1.Entity)({ name: 'annual_travel_ticket_price_configurations' }),
|
|
57
|
+
(0, typeorm_1.Unique)(['service_id', 'sub_service_id', 'ticket_year'])
|
|
58
|
+
], AnnualTravelTicketPriceConfiguration);
|
|
@@ -3,6 +3,13 @@ export declare enum AnnualTravelTicketPermanentResidence {
|
|
|
3
3
|
SALALAH = "Salalah",
|
|
4
4
|
MUSANDAM = "Musandam"
|
|
5
5
|
}
|
|
6
|
+
export interface AnnualTravelTicketFamilyDetail {
|
|
7
|
+
person_name: string;
|
|
8
|
+
relation: string;
|
|
9
|
+
age: number;
|
|
10
|
+
age_category: string;
|
|
11
|
+
price: number | string;
|
|
12
|
+
}
|
|
6
13
|
/** Aligns with mission bank account request lifecycle for shared workflow UI. */
|
|
7
14
|
export declare enum AnnualTravelTicketRequestStatus {
|
|
8
15
|
PENDING = "Pending",
|
|
@@ -21,20 +28,12 @@ export declare class AnnualTravelTicketRequests extends BaseModel {
|
|
|
21
28
|
applicant_name: string;
|
|
22
29
|
civil_id_or_passport_number: string;
|
|
23
30
|
permanent_residence: AnnualTravelTicketPermanentResidence;
|
|
24
|
-
/**
|
|
25
|
-
family_details:
|
|
26
|
-
children_ticket_price: string | number | null;
|
|
27
|
-
employee_spouse_ticket_price: string | number | null;
|
|
31
|
+
/** Traveler list with person name, relation, age, age category, and price. */
|
|
32
|
+
family_details: AnnualTravelTicketFamilyDetail[] | null;
|
|
28
33
|
bank_account_number: string;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
/** Optional structured travelers (e.g. children) for age rules; JSON array. */
|
|
33
|
-
children_travelers_json: Record<string, unknown>[] | null;
|
|
34
|
-
/** Client confirms dependents match HR/profile before submit. */
|
|
35
|
-
profile_children_synced_with_profile: boolean;
|
|
36
|
-
/** Notes on unused ticket carry-forward (max 7 years; children until age 21). */
|
|
37
|
-
carry_forward_notes: string | null;
|
|
34
|
+
travel_from: string;
|
|
35
|
+
travel_to: string;
|
|
36
|
+
date_of_travel: string;
|
|
38
37
|
status: AnnualTravelTicketRequestStatus;
|
|
39
38
|
workflow_execution_id: string | null;
|
|
40
39
|
}
|
|
@@ -62,41 +62,25 @@ __decorate([
|
|
|
62
62
|
__metadata("design:type", String)
|
|
63
63
|
], AnnualTravelTicketRequests.prototype, "permanent_residence", void 0);
|
|
64
64
|
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ type: '
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
66
66
|
__metadata("design:type", Object)
|
|
67
67
|
], AnnualTravelTicketRequests.prototype, "family_details", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ type: 'decimal', precision: 12, scale: 2, nullable: true }),
|
|
70
|
-
__metadata("design:type", Object)
|
|
71
|
-
], AnnualTravelTicketRequests.prototype, "children_ticket_price", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({ type: 'decimal', precision: 12, scale: 2, nullable: true }),
|
|
74
|
-
__metadata("design:type", Object)
|
|
75
|
-
], AnnualTravelTicketRequests.prototype, "employee_spouse_ticket_price", void 0);
|
|
76
68
|
__decorate([
|
|
77
69
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
78
70
|
__metadata("design:type", String)
|
|
79
71
|
], AnnualTravelTicketRequests.prototype, "bank_account_number", void 0);
|
|
80
72
|
__decorate([
|
|
81
|
-
(0, typeorm_1.Column)({ type: '
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
82
74
|
__metadata("design:type", String)
|
|
83
|
-
], AnnualTravelTicketRequests.prototype, "
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
86
|
-
__metadata("design:type", Number)
|
|
87
|
-
], AnnualTravelTicketRequests.prototype, "ticket_entitlement_year", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
90
|
-
__metadata("design:type", Object)
|
|
91
|
-
], AnnualTravelTicketRequests.prototype, "children_travelers_json", void 0);
|
|
75
|
+
], AnnualTravelTicketRequests.prototype, "travel_from", void 0);
|
|
92
76
|
__decorate([
|
|
93
|
-
(0, typeorm_1.Column)({ type: '
|
|
94
|
-
__metadata("design:type",
|
|
95
|
-
], AnnualTravelTicketRequests.prototype, "
|
|
77
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], AnnualTravelTicketRequests.prototype, "travel_to", void 0);
|
|
96
80
|
__decorate([
|
|
97
|
-
(0, typeorm_1.Column)({ type: '
|
|
98
|
-
__metadata("design:type",
|
|
99
|
-
], AnnualTravelTicketRequests.prototype, "
|
|
81
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], AnnualTravelTicketRequests.prototype, "date_of_travel", void 0);
|
|
100
84
|
__decorate([
|
|
101
85
|
(0, typeorm_1.Column)({
|
|
102
86
|
type: 'enum',
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class EmbassyMaster extends BaseModel {
|
|
3
|
+
embassy_name: string;
|
|
4
|
+
embassy_name_arabic: string | null;
|
|
5
|
+
country_id: number | null;
|
|
6
|
+
city: string | null;
|
|
7
|
+
address: string | null;
|
|
8
|
+
phone: string | null;
|
|
9
|
+
fax: string | null;
|
|
10
|
+
email: string | null;
|
|
11
|
+
website: string | null;
|
|
12
|
+
description: string | null;
|
|
13
|
+
is_active: boolean;
|
|
14
|
+
display_order: number;
|
|
15
|
+
constructor(embassy_name: string);
|
|
16
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EmbassyMaster = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let EmbassyMaster = class EmbassyMaster extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(embassy_name) {
|
|
17
|
+
super();
|
|
18
|
+
this.embassy_name = embassy_name;
|
|
19
|
+
this.is_active = true;
|
|
20
|
+
this.display_order = 0;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.EmbassyMaster = EmbassyMaster;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], EmbassyMaster.prototype, "embassy_name", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], EmbassyMaster.prototype, "embassy_name_arabic", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], EmbassyMaster.prototype, "country_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], EmbassyMaster.prototype, "city", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], EmbassyMaster.prototype, "address", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], EmbassyMaster.prototype, "phone", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], EmbassyMaster.prototype, "fax", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], EmbassyMaster.prototype, "email", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], EmbassyMaster.prototype, "website", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], EmbassyMaster.prototype, "description", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
66
|
+
__metadata("design:type", Boolean)
|
|
67
|
+
], EmbassyMaster.prototype, "is_active", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], EmbassyMaster.prototype, "display_order", void 0);
|
|
72
|
+
exports.EmbassyMaster = EmbassyMaster = __decorate([
|
|
73
|
+
(0, typeorm_1.Entity)({ name: 'embassy_master' }),
|
|
74
|
+
__metadata("design:paramtypes", [String])
|
|
75
|
+
], EmbassyMaster);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class UserDependents extends BaseModel {
|
|
3
|
+
user_id: number;
|
|
4
|
+
first_name: string | null;
|
|
5
|
+
last_name: string | null;
|
|
6
|
+
family_name: string | null;
|
|
7
|
+
dob: Date | null;
|
|
8
|
+
age: number | null;
|
|
9
|
+
relation_type: string | null;
|
|
10
|
+
passport_available: boolean;
|
|
11
|
+
passport_number: string | null;
|
|
12
|
+
passport_type: string | null;
|
|
13
|
+
passport_issue_date: Date | null;
|
|
14
|
+
passport_place_of_issue: string | null;
|
|
15
|
+
passport_expiry_date: Date | null;
|
|
16
|
+
is_active: boolean;
|
|
17
|
+
constructor(user_id?: number, first_name?: string, last_name?: string, family_name?: string, dob?: Date, age?: number, relation_type?: string, passport_available?: boolean, passport_number?: string, passport_type?: string, passport_issue_date?: Date, passport_place_of_issue?: string, passport_expiry_date?: Date);
|
|
18
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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.UserDependents = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let UserDependents = class UserDependents extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(user_id, first_name, last_name, family_name, dob, age, relation_type, passport_available, passport_number, passport_type, passport_issue_date, passport_place_of_issue, passport_expiry_date) {
|
|
17
|
+
super();
|
|
18
|
+
this.user_id = user_id || 0;
|
|
19
|
+
this.first_name = first_name || null;
|
|
20
|
+
this.last_name = last_name || null;
|
|
21
|
+
this.family_name = family_name || null;
|
|
22
|
+
this.dob = dob || null;
|
|
23
|
+
this.age = age || null;
|
|
24
|
+
this.relation_type = relation_type || null;
|
|
25
|
+
this.passport_available = passport_available || false;
|
|
26
|
+
this.passport_number = passport_number || null;
|
|
27
|
+
this.passport_type = passport_type || null;
|
|
28
|
+
this.passport_issue_date = passport_issue_date || null;
|
|
29
|
+
this.passport_place_of_issue = passport_place_of_issue || null;
|
|
30
|
+
this.passport_expiry_date = passport_expiry_date || null;
|
|
31
|
+
this.is_active = true;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.UserDependents = UserDependents;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], UserDependents.prototype, "user_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], UserDependents.prototype, "first_name", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], UserDependents.prototype, "last_name", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], UserDependents.prototype, "family_name", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], UserDependents.prototype, "dob", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], UserDependents.prototype, "age", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], UserDependents.prototype, "relation_type", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
65
|
+
__metadata("design:type", Boolean)
|
|
66
|
+
], UserDependents.prototype, "passport_available", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], UserDependents.prototype, "passport_number", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], UserDependents.prototype, "passport_type", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], UserDependents.prototype, "passport_issue_date", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], UserDependents.prototype, "passport_place_of_issue", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], UserDependents.prototype, "passport_expiry_date", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
89
|
+
__metadata("design:type", Boolean)
|
|
90
|
+
], UserDependents.prototype, "is_active", void 0);
|
|
91
|
+
exports.UserDependents = UserDependents = __decorate([
|
|
92
|
+
(0, typeorm_1.Entity)({ name: 'user_dependents' }),
|
|
93
|
+
__metadata("design:paramtypes", [Number, String, String, String, Date, Number, String, Boolean, String, String, Date, String, Date])
|
|
94
|
+
], UserDependents);
|