@platform-modules/foreign-ministry 1.3.58 → 1.3.59
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/data-source.js +1 -7
- package/dist/index.d.ts +0 -5
- package/dist/index.js +1 -10
- package/dist/models/JobsModel.d.ts +3 -1
- package/dist/models/JobsModel.js +12 -2
- package/dist/models/MissionTravelPersonModel.d.ts +2 -2
- package/dist/models/MissionTravelPersonModel.js +4 -4
- package/dist/models/RegisterVacancyRequestModel.d.ts +1 -1
- package/dist/models/RegisterVacancyRequestModel.js +3 -3
- package/dist/models/TelephoneDirectoryModel.js +1 -1
- package/package.json +1 -1
- package/src/data-source.ts +1 -7
- package/src/index.ts +0 -6
- package/src/models/DiplomaticClubCardMembersModel.ts +75 -75
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +26 -26
- package/src/models/DiplomaticRequestsModel.ts +157 -157
- package/src/models/JobsModel.ts +11 -1
- package/src/models/MissionTravelPersonModel.ts +4 -4
- package/src/models/MissionTravelRequestModel.ts +1 -0
- package/src/models/RegisterVacancyRequestModel.ts +2 -2
- package/src/models/TelephoneDirectoryModel.ts +1 -1
- package/dist/models/DiplomaticClubCardApprovalModel.d.ts +0 -16
- package/dist/models/DiplomaticClubCardApprovalModel.js +0 -58
- package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +0 -9
- package/dist/models/DiplomaticClubCardAttachmentModel.js +0 -44
- package/dist/models/DiplomaticClubCardChatModel.d.ts +0 -7
- package/dist/models/DiplomaticClubCardChatModel.js +0 -36
- package/dist/models/DiplomaticClubCardMemberModel.d.ts +0 -13
- package/dist/models/DiplomaticClubCardMemberModel.js +0 -60
- package/dist/models/DiplomaticClubCardRequestModel.d.ts +0 -33
- package/dist/models/DiplomaticClubCardRequestModel.js +0 -98
- package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +0 -12
- package/dist/models/DiplomaticClubCardWorkFlowModel.js +0 -42
- package/dist/models/DiplomaticServiceDetailsModel.d.ts +0 -20
- package/dist/models/DiplomaticServiceDetailsModel.js +0 -65
- package/dist/models/DiplomaticSettingsModel.d.ts +0 -11
- package/dist/models/DiplomaticSettingsModel.js +0 -59
- package/dist/models/DiplomaticTitleModel.d.ts +0 -12
- package/dist/models/DiplomaticTitleModel.js +0 -45
- package/dist/models/PassportRequestApprovalModel.d.ts +0 -22
- package/dist/models/PassportRequestApprovalModel.js +0 -91
- package/dist/models/PassportRequestAttachmentModel.d.ts +0 -10
- package/dist/models/PassportRequestAttachmentModel.js +0 -54
- package/dist/models/PassportRequestChatModel.d.ts +0 -8
- package/dist/models/PassportRequestChatModel.js +0 -44
- package/dist/models/PassportRequestDependentModel.d.ts +0 -20
- package/dist/models/PassportRequestDependentModel.js +0 -85
- package/dist/models/PassportRequestModel.d.ts +0 -40
- package/dist/models/PassportRequestModel.js +0 -128
- package/dist/models/PassportRequestWorkFlowModel.d.ts +0 -15
- package/dist/models/PassportRequestWorkFlowModel.js +0 -60
- package/dist/models/SecurityAttachmentsModel.d.ts +0 -16
- package/dist/models/SecurityAttachmentsModel.js +0 -60
- package/dist/models/SecurityChatsModel.d.ts +0 -26
- package/dist/models/SecurityChatsModel.js +0 -84
- package/dist/models/SecurityDeptMainRequestModel.d.ts +0 -38
- package/dist/models/SecurityDeptMainRequestModel.js +0 -116
- package/dist/models/SubscriptionAmountModel.d.ts +0 -67
- package/dist/models/SubscriptionAmountModel.js +0 -114
- package/src/models/SecurityAttachmentsModel.ts +0 -38
- package/src/models/SecurityChatsModel.ts +0 -72
- package/src/models/SecurityDeptMainRequestModel.ts +0 -108
package/dist/data-source.js
CHANGED
|
@@ -138,9 +138,6 @@ const HelpdeskKnowledgeBase_1 = require("./models/HelpdeskKnowledgeBase");
|
|
|
138
138
|
const DiplomaticTitlesMasterModel_1 = require("./models/DiplomaticTitlesMasterModel");
|
|
139
139
|
const DiplomaticOrganizationMasterModel_1 = require("./models/DiplomaticOrganizationMasterModel");
|
|
140
140
|
const DiplomaticClubSubscriptionMasterModel_1 = require("./models/DiplomaticClubSubscriptionMasterModel");
|
|
141
|
-
const SecurityDeptMainRequestModel_1 = require("./models/SecurityDeptMainRequestModel");
|
|
142
|
-
const SecurityAttachmentsModel_1 = require("./models/SecurityAttachmentsModel");
|
|
143
|
-
const SecurityChatsModel_1 = require("./models/SecurityChatsModel");
|
|
144
141
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
145
142
|
type: 'postgres',
|
|
146
143
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -283,9 +280,6 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
283
280
|
HelpdeskAutoClosureConfig_1.HelpdeskAutoClosureConfig,
|
|
284
281
|
DiplomaticTitlesMasterModel_1.DiplomaticTitlesMaster,
|
|
285
282
|
DiplomaticOrganizationMasterModel_1.DiplomaticOrganizationMaster,
|
|
286
|
-
DiplomaticClubSubscriptionMasterModel_1.DiplomaticClubSubscriptionMaster
|
|
287
|
-
SecurityDeptMainRequestModel_1.SecurityDeptMainRequest,
|
|
288
|
-
SecurityAttachmentsModel_1.SecurityAttachment,
|
|
289
|
-
SecurityChatsModel_1.SecurityChat
|
|
283
|
+
DiplomaticClubSubscriptionMasterModel_1.DiplomaticClubSubscriptionMaster
|
|
290
284
|
],
|
|
291
285
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -184,11 +184,6 @@ export { RetiredCardWorkFlowStatus } from './models/RetiredCardWorkFlowModel';
|
|
|
184
184
|
export * from './models/RetiredCardChatsModel';
|
|
185
185
|
export { RetiredCardMessageType } from './models/RetiredCardChatsModel';
|
|
186
186
|
export * from './models/RetiredCardAttachmentsModel';
|
|
187
|
-
export * from './models/SecurityDeptMainRequestModel';
|
|
188
|
-
export { SecurityDeptRequestStatus, SecurityDeptAccessType } from './models/SecurityDeptMainRequestModel';
|
|
189
|
-
export * from './models/SecurityAttachmentsModel';
|
|
190
|
-
export * from './models/SecurityChatsModel';
|
|
191
|
-
export { SecurityDeptMessageType } from './models/SecurityChatsModel';
|
|
192
187
|
export * from './models/GatePassRequestsModel';
|
|
193
188
|
export { GatePassRequestStatus, GatePassType } from './models/GatePassRequestsModel';
|
|
194
189
|
export * from './models/GatePassVisitorsModel';
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.TravelClass = exports.MissionTravelWorkFlowStatus = exports.MissionTravelApprovalStatus = exports.AllowanceRatio = exports.DecisionType = exports.MissionType = exports.MissionTravelStatus = exports.GatePassMessageType = exports.GatePassWorkFlowStatus = exports.GatePassApprovalStatus = exports.GatePassType = exports.GatePassRequestStatus = exports.
|
|
17
|
+
exports.TravelClass = exports.MissionTravelWorkFlowStatus = exports.MissionTravelApprovalStatus = exports.AllowanceRatio = exports.DecisionType = exports.MissionType = exports.MissionTravelStatus = exports.GatePassMessageType = exports.GatePassWorkFlowStatus = exports.GatePassApprovalStatus = exports.GatePassType = exports.GatePassRequestStatus = exports.RetiredCardMessageType = exports.RetiredCardWorkFlowStatus = exports.RetiredCardApprovalStatus = exports.RetiredCardAccessType = exports.RetiredCardRequestStatus = exports.TitleCategory = exports.ProfileUpdateRequestStatus = exports.StayAfterHoursTransactionStatus = exports.StayAfterHoursTransaction = exports.StayAfterHoursBalance = exports.EarlyCheckoutTransactionStatus = exports.EarlyCheckoutTransaction = exports.EarlyCheckoutFrequency = exports.EarlyCheckoutConfiguration = exports.EarlyCheckoutBalance = exports.LeaveTransactionStatus = exports.LeaveTransaction = exports.LeaveConfigurationGrades = exports.enumFrequency = exports.LeaveConfiguration = exports.ParcelDepartmentCategory = void 0;
|
|
18
18
|
__exportStar(require("./models/user"), exports);
|
|
19
19
|
__exportStar(require("./models/role"), exports);
|
|
20
20
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -223,15 +223,6 @@ __exportStar(require("./models/RetiredCardChatsModel"), exports);
|
|
|
223
223
|
var RetiredCardChatsModel_1 = require("./models/RetiredCardChatsModel");
|
|
224
224
|
Object.defineProperty(exports, "RetiredCardMessageType", { enumerable: true, get: function () { return RetiredCardChatsModel_1.RetiredCardMessageType; } });
|
|
225
225
|
__exportStar(require("./models/RetiredCardAttachmentsModel"), exports);
|
|
226
|
-
// Security Department Models
|
|
227
|
-
__exportStar(require("./models/SecurityDeptMainRequestModel"), exports);
|
|
228
|
-
var SecurityDeptMainRequestModel_1 = require("./models/SecurityDeptMainRequestModel");
|
|
229
|
-
Object.defineProperty(exports, "SecurityDeptRequestStatus", { enumerable: true, get: function () { return SecurityDeptMainRequestModel_1.SecurityDeptRequestStatus; } });
|
|
230
|
-
Object.defineProperty(exports, "SecurityDeptAccessType", { enumerable: true, get: function () { return SecurityDeptMainRequestModel_1.SecurityDeptAccessType; } });
|
|
231
|
-
__exportStar(require("./models/SecurityAttachmentsModel"), exports);
|
|
232
|
-
__exportStar(require("./models/SecurityChatsModel"), exports);
|
|
233
|
-
var SecurityChatsModel_1 = require("./models/SecurityChatsModel");
|
|
234
|
-
Object.defineProperty(exports, "SecurityDeptMessageType", { enumerable: true, get: function () { return SecurityChatsModel_1.SecurityDeptMessageType; } });
|
|
235
226
|
// Gate Pass Models
|
|
236
227
|
__exportStar(require("./models/GatePassRequestsModel"), exports);
|
|
237
228
|
var GatePassRequestsModel_1 = require("./models/GatePassRequestsModel");
|
|
@@ -13,5 +13,7 @@ export declare class Jobs extends BaseModel {
|
|
|
13
13
|
title: string;
|
|
14
14
|
grade: number;
|
|
15
15
|
description: string;
|
|
16
|
-
|
|
16
|
+
location: string | null;
|
|
17
|
+
job_description: string | null;
|
|
18
|
+
constructor(title: string, grade: number, description: string, location?: string | null, job_description?: string | null);
|
|
17
19
|
}
|
package/dist/models/JobsModel.js
CHANGED
|
@@ -23,11 +23,13 @@ exports.Jobs = void 0;
|
|
|
23
23
|
const typeorm_1 = require("typeorm");
|
|
24
24
|
const BaseModel_1 = require("./BaseModel");
|
|
25
25
|
let Jobs = class Jobs extends BaseModel_1.BaseModel {
|
|
26
|
-
constructor(title, grade, description) {
|
|
26
|
+
constructor(title, grade, description, location, job_description) {
|
|
27
27
|
super();
|
|
28
28
|
this.title = title;
|
|
29
29
|
this.grade = grade;
|
|
30
30
|
this.description = description;
|
|
31
|
+
this.location = location || null;
|
|
32
|
+
this.job_description = job_description || null;
|
|
31
33
|
}
|
|
32
34
|
};
|
|
33
35
|
exports.Jobs = Jobs;
|
|
@@ -43,7 +45,15 @@ __decorate([
|
|
|
43
45
|
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
44
46
|
__metadata("design:type", String)
|
|
45
47
|
], Jobs.prototype, "description", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], Jobs.prototype, "location", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], Jobs.prototype, "job_description", void 0);
|
|
46
56
|
exports.Jobs = Jobs = __decorate([
|
|
47
57
|
(0, typeorm_1.Entity)({ name: 'jobs' }),
|
|
48
|
-
__metadata("design:paramtypes", [String, Number, String])
|
|
58
|
+
__metadata("design:paramtypes", [String, Number, String, Object, Object])
|
|
49
59
|
], Jobs);
|
|
@@ -10,7 +10,7 @@ export declare class MissionTravelPersons extends BaseModel {
|
|
|
10
10
|
sub_service_id: number | null;
|
|
11
11
|
travel_person_name: string;
|
|
12
12
|
user_id: number | null;
|
|
13
|
-
|
|
13
|
+
country_name: string | null;
|
|
14
14
|
allowance_ratio: AllowanceRatio | null;
|
|
15
15
|
travel_from_date: Date | null;
|
|
16
16
|
travel_to_date: Date | null;
|
|
@@ -22,5 +22,5 @@ export declare class MissionTravelPersons extends BaseModel {
|
|
|
22
22
|
travel_agent_name: string | null;
|
|
23
23
|
allowance_amount: number | null;
|
|
24
24
|
grade: number | null;
|
|
25
|
-
constructor(request_id: number, service_id: number | null, sub_service_id: number | null, travel_person_name: string, user_id: number | null,
|
|
25
|
+
constructor(request_id: number, service_id: number | null, sub_service_id: number | null, travel_person_name: string, user_id: number | null, country_name: string | null, allowance_ratio: AllowanceRatio | null, travel_from_date: Date | null, travel_to_date: Date | null, travel_class: string | null, number_of_days: number | null, hotel_name: string | null, hotel_rating: number | null, hotel_price: number | null, travel_agent_name: string | null, allowance_amount: number | null, grade: number | null);
|
|
26
26
|
}
|
|
@@ -19,14 +19,14 @@ var AllowanceRatio;
|
|
|
19
19
|
AllowanceRatio["RATIO_50"] = "50";
|
|
20
20
|
})(AllowanceRatio || (exports.AllowanceRatio = AllowanceRatio = {}));
|
|
21
21
|
let MissionTravelPersons = class MissionTravelPersons extends BaseModel_1.BaseModel {
|
|
22
|
-
constructor(request_id, service_id, sub_service_id, travel_person_name, user_id,
|
|
22
|
+
constructor(request_id, service_id, sub_service_id, travel_person_name, user_id, country_name, allowance_ratio, travel_from_date, travel_to_date, travel_class, number_of_days, hotel_name, hotel_rating, hotel_price, travel_agent_name, allowance_amount, grade) {
|
|
23
23
|
super();
|
|
24
24
|
this.request_id = request_id;
|
|
25
25
|
this.service_id = service_id;
|
|
26
26
|
this.sub_service_id = sub_service_id;
|
|
27
27
|
this.travel_person_name = travel_person_name;
|
|
28
28
|
this.user_id = user_id;
|
|
29
|
-
this.
|
|
29
|
+
this.country_name = country_name;
|
|
30
30
|
this.allowance_ratio = allowance_ratio;
|
|
31
31
|
this.travel_from_date = travel_from_date;
|
|
32
32
|
this.travel_to_date = travel_to_date;
|
|
@@ -62,9 +62,9 @@ __decorate([
|
|
|
62
62
|
__metadata("design:type", Object)
|
|
63
63
|
], MissionTravelPersons.prototype, "user_id", void 0);
|
|
64
64
|
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ type: '
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
66
66
|
__metadata("design:type", Object)
|
|
67
|
-
], MissionTravelPersons.prototype, "
|
|
67
|
+
], MissionTravelPersons.prototype, "country_name", void 0);
|
|
68
68
|
__decorate([
|
|
69
69
|
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true }),
|
|
70
70
|
__metadata("design:type", Object)
|
|
@@ -13,7 +13,7 @@ export declare class RegisterVacancyRequests extends BaseModel {
|
|
|
13
13
|
sub_service_id: number | null;
|
|
14
14
|
user_id: number;
|
|
15
15
|
MandC_id: number;
|
|
16
|
-
|
|
16
|
+
name_of_positions: string;
|
|
17
17
|
description: string | null;
|
|
18
18
|
salary: string;
|
|
19
19
|
currency_type: string | null;
|
|
@@ -48,9 +48,9 @@ __decorate([
|
|
|
48
48
|
__metadata("design:type", Number)
|
|
49
49
|
], RegisterVacancyRequests.prototype, "MandC_id", void 0);
|
|
50
50
|
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: '
|
|
52
|
-
__metadata("design:type",
|
|
53
|
-
], RegisterVacancyRequests.prototype, "
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], RegisterVacancyRequests.prototype, "name_of_positions", void 0);
|
|
54
54
|
__decorate([
|
|
55
55
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
56
56
|
__metadata("design:type", Object)
|
|
@@ -42,7 +42,7 @@ __decorate([
|
|
|
42
42
|
__metadata("design:type", Number)
|
|
43
43
|
], TelephoneDirectory.prototype, "id", void 0);
|
|
44
44
|
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: "enum", enum: ["FM", "Embassy"], nullable: false }),
|
|
45
|
+
(0, typeorm_1.Column)({ type: "enum", enum: ["FM", "Embassy", "M&C"], nullable: false }),
|
|
46
46
|
__metadata("design:type", String)
|
|
47
47
|
], TelephoneDirectory.prototype, "category", void 0);
|
|
48
48
|
__decorate([
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -144,9 +144,6 @@ import { HelpdeskKnowledgeBase } from './models/HelpdeskKnowledgeBase'
|
|
|
144
144
|
import { DiplomaticTitlesMaster } from './models/DiplomaticTitlesMasterModel'
|
|
145
145
|
import { DiplomaticOrganizationMaster } from './models/DiplomaticOrganizationMasterModel'
|
|
146
146
|
import { DiplomaticClubSubscriptionMaster } from './models/DiplomaticClubSubscriptionMasterModel'
|
|
147
|
-
import { SecurityDeptMainRequest } from './models/SecurityDeptMainRequestModel';
|
|
148
|
-
import { SecurityAttachment } from './models/SecurityAttachmentsModel';
|
|
149
|
-
import { SecurityChat } from './models/SecurityChatsModel';
|
|
150
147
|
|
|
151
148
|
|
|
152
149
|
export const AppDataSource = new DataSource({
|
|
@@ -291,9 +288,6 @@ export const AppDataSource = new DataSource({
|
|
|
291
288
|
HelpdeskAutoClosureConfig,
|
|
292
289
|
DiplomaticTitlesMaster,
|
|
293
290
|
DiplomaticOrganizationMaster,
|
|
294
|
-
DiplomaticClubSubscriptionMaster
|
|
295
|
-
SecurityDeptMainRequest,
|
|
296
|
-
SecurityAttachment,
|
|
297
|
-
SecurityChat
|
|
291
|
+
DiplomaticClubSubscriptionMaster
|
|
298
292
|
],
|
|
299
293
|
});
|
package/src/index.ts
CHANGED
|
@@ -185,12 +185,6 @@ export { RetiredCardWorkFlowStatus } from './models/RetiredCardWorkFlowModel';
|
|
|
185
185
|
export * from './models/RetiredCardChatsModel';
|
|
186
186
|
export { RetiredCardMessageType } from './models/RetiredCardChatsModel';
|
|
187
187
|
export * from './models/RetiredCardAttachmentsModel';
|
|
188
|
-
// Security Department Models
|
|
189
|
-
export * from './models/SecurityDeptMainRequestModel';
|
|
190
|
-
export { SecurityDeptRequestStatus, SecurityDeptAccessType } from './models/SecurityDeptMainRequestModel';
|
|
191
|
-
export * from './models/SecurityAttachmentsModel';
|
|
192
|
-
export * from './models/SecurityChatsModel';
|
|
193
|
-
export { SecurityDeptMessageType } from './models/SecurityChatsModel';
|
|
194
188
|
// Gate Pass Models
|
|
195
189
|
export * from './models/GatePassRequestsModel';
|
|
196
190
|
export { GatePassRequestStatus, GatePassType } from './models/GatePassRequestsModel';
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import { Column, Entity, ManyToOne, JoinColumn, OneToMany } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
import { DiplomaticRequests } from "./DiplomaticRequestsModel";
|
|
4
|
-
import type { DiplomaticClubCardPhotos } from './DiplomaticClubCardPhotosModel';
|
|
5
|
-
|
|
6
|
-
export enum MembershipType {
|
|
7
|
-
SINGLE = "Single",
|
|
8
|
-
FAMILY = "Family"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export enum RequestType {
|
|
12
|
-
EMPLOYEE_SELF = "Employee Self",
|
|
13
|
-
NON_EMPLOYEE = "Non Employee"
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export enum MemberType {
|
|
17
|
-
PRIMARY = "Primary",
|
|
18
|
-
FAMILY_MEMBER = "Family Member"
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@Entity({ name: 'diplomatic_club_card_members' })
|
|
22
|
-
export class DiplomaticClubCardMembers extends BaseModel {
|
|
23
|
-
@Column({ type: 'int' })
|
|
24
|
-
diplomatic_request_id: number;
|
|
25
|
-
|
|
26
|
-
@Column({ type: 'varchar', length: 255 })
|
|
27
|
-
family_member_name: string;
|
|
28
|
-
|
|
29
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
30
|
-
relation: string | null;
|
|
31
|
-
|
|
32
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
33
|
-
title: string | null;
|
|
34
|
-
|
|
35
|
-
@Column({ type: 'int', nullable: true })
|
|
36
|
-
diplomatic_title_id: number | null;
|
|
37
|
-
|
|
38
|
-
@Column({ type: 'date', nullable: true })
|
|
39
|
-
expiry_date: Date | null;
|
|
40
|
-
|
|
41
|
-
@Column({ type: 'text', nullable: true })
|
|
42
|
-
photo_url: string | null;
|
|
43
|
-
|
|
44
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
45
|
-
membership_id: string | null;
|
|
46
|
-
|
|
47
|
-
@ManyToOne(() => DiplomaticRequests, dr => dr.diplomaticClubCardMembers)
|
|
48
|
-
@JoinColumn({ name: 'diplomatic_request_id' })
|
|
49
|
-
diplomaticRequest?: DiplomaticRequests;
|
|
50
|
-
|
|
51
|
-
@OneToMany('DiplomaticClubCardPhotos', 'diplomaticMember', { nullable: true })
|
|
52
|
-
photos?: DiplomaticClubCardPhotos[];
|
|
53
|
-
|
|
54
|
-
constructor(
|
|
55
|
-
diplomatic_request_id: number,
|
|
56
|
-
family_member_name: string,
|
|
57
|
-
relation?: string | null,
|
|
58
|
-
title?: string | null,
|
|
59
|
-
diplomatic_title_id?: number | null,
|
|
60
|
-
expiry_date?: Date | null,
|
|
61
|
-
photo_url?: string | null,
|
|
62
|
-
membership_id?: string | null
|
|
63
|
-
) {
|
|
64
|
-
super();
|
|
65
|
-
this.diplomatic_request_id = diplomatic_request_id;
|
|
66
|
-
this.family_member_name = family_member_name;
|
|
67
|
-
this.relation = relation || null;
|
|
68
|
-
this.title = title || null;
|
|
69
|
-
this.diplomatic_title_id = diplomatic_title_id || null;
|
|
70
|
-
this.expiry_date = expiry_date || null;
|
|
71
|
-
this.photo_url = photo_url || null;
|
|
72
|
-
this.membership_id = membership_id || null;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
1
|
+
import { Column, Entity, ManyToOne, JoinColumn, OneToMany } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { DiplomaticRequests } from "./DiplomaticRequestsModel";
|
|
4
|
+
import type { DiplomaticClubCardPhotos } from './DiplomaticClubCardPhotosModel';
|
|
5
|
+
|
|
6
|
+
export enum MembershipType {
|
|
7
|
+
SINGLE = "Single",
|
|
8
|
+
FAMILY = "Family"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export enum RequestType {
|
|
12
|
+
EMPLOYEE_SELF = "Employee Self",
|
|
13
|
+
NON_EMPLOYEE = "Non Employee"
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export enum MemberType {
|
|
17
|
+
PRIMARY = "Primary",
|
|
18
|
+
FAMILY_MEMBER = "Family Member"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@Entity({ name: 'diplomatic_club_card_members' })
|
|
22
|
+
export class DiplomaticClubCardMembers extends BaseModel {
|
|
23
|
+
@Column({ type: 'int' })
|
|
24
|
+
diplomatic_request_id: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'varchar', length: 255 })
|
|
27
|
+
family_member_name: string;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
30
|
+
relation: string | null;
|
|
31
|
+
|
|
32
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
33
|
+
title: string | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: 'int', nullable: true })
|
|
36
|
+
diplomatic_title_id: number | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'date', nullable: true })
|
|
39
|
+
expiry_date: Date | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'text', nullable: true })
|
|
42
|
+
photo_url: string | null;
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
45
|
+
membership_id: string | null;
|
|
46
|
+
|
|
47
|
+
@ManyToOne(() => DiplomaticRequests, dr => dr.diplomaticClubCardMembers)
|
|
48
|
+
@JoinColumn({ name: 'diplomatic_request_id' })
|
|
49
|
+
diplomaticRequest?: DiplomaticRequests;
|
|
50
|
+
|
|
51
|
+
@OneToMany('DiplomaticClubCardPhotos', 'diplomaticMember', { nullable: true })
|
|
52
|
+
photos?: DiplomaticClubCardPhotos[];
|
|
53
|
+
|
|
54
|
+
constructor(
|
|
55
|
+
diplomatic_request_id: number,
|
|
56
|
+
family_member_name: string,
|
|
57
|
+
relation?: string | null,
|
|
58
|
+
title?: string | null,
|
|
59
|
+
diplomatic_title_id?: number | null,
|
|
60
|
+
expiry_date?: Date | null,
|
|
61
|
+
photo_url?: string | null,
|
|
62
|
+
membership_id?: string | null
|
|
63
|
+
) {
|
|
64
|
+
super();
|
|
65
|
+
this.diplomatic_request_id = diplomatic_request_id;
|
|
66
|
+
this.family_member_name = family_member_name;
|
|
67
|
+
this.relation = relation || null;
|
|
68
|
+
this.title = title || null;
|
|
69
|
+
this.diplomatic_title_id = diplomatic_title_id || null;
|
|
70
|
+
this.expiry_date = expiry_date || null;
|
|
71
|
+
this.photo_url = photo_url || null;
|
|
72
|
+
this.membership_id = membership_id || null;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'diplomatic_club_subscription_master' })
|
|
5
|
-
export class DiplomaticClubSubscriptionMaster extends BaseModel {
|
|
6
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
7
|
-
subscription_type: string | null; // Type: Single or Family
|
|
8
|
-
|
|
9
|
-
@Column({ type: 'decimal', precision: 10, scale: 2 })
|
|
10
|
-
subscription_amount: number;
|
|
11
|
-
|
|
12
|
-
@Column({ type: 'varchar', length: 10, nullable: true })
|
|
13
|
-
currency: string | null;
|
|
14
|
-
|
|
15
|
-
constructor(
|
|
16
|
-
subscription_type: string,
|
|
17
|
-
subscription_amount: number,
|
|
18
|
-
currency?: string | null,
|
|
19
|
-
) {
|
|
20
|
-
super();
|
|
21
|
-
this.subscription_type = subscription_type;
|
|
22
|
-
this.subscription_amount = subscription_amount;
|
|
23
|
-
this.currency = currency || null;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'diplomatic_club_subscription_master' })
|
|
5
|
+
export class DiplomaticClubSubscriptionMaster extends BaseModel {
|
|
6
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
7
|
+
subscription_type: string | null; // Type: Single or Family
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'decimal', precision: 10, scale: 2 })
|
|
10
|
+
subscription_amount: number;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', length: 10, nullable: true })
|
|
13
|
+
currency: string | null;
|
|
14
|
+
|
|
15
|
+
constructor(
|
|
16
|
+
subscription_type: string,
|
|
17
|
+
subscription_amount: number,
|
|
18
|
+
currency?: string | null,
|
|
19
|
+
) {
|
|
20
|
+
super();
|
|
21
|
+
this.subscription_type = subscription_type;
|
|
22
|
+
this.subscription_amount = subscription_amount;
|
|
23
|
+
this.currency = currency || null;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|