@platform-modules/foreign-ministry 1.2.8 → 1.2.10
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 +7 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -3
- package/dist/models/DiplomaticClubSubscriptionMasterModel.d.ts +7 -6
- package/dist/models/DiplomaticClubSubscriptionMasterModel.js +29 -9
- package/dist/models/DiplomaticTitlesMasterModel.d.ts +4 -0
- package/dist/models/DiplomaticTitlesMasterModel.js +18 -0
- package/dist/models/EarlyCheckoutBalanceModel.js +2 -2
- package/dist/models/RoutingGroupUsersModel.d.ts +7 -0
- package/dist/models/{DiplomaticClubCardChatModel.js → RoutingGroupUsersModel.js} +20 -17
- package/dist/models/StayAfterHoursBalanceModel.js +2 -2
- package/package.json +1 -1
- package/src/data-source.ts +8 -1
- package/src/index.ts +2 -1
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +27 -8
- package/src/models/DiplomaticRequestsModel.ts +154 -154
- package/src/models/DiplomaticTitlesMasterModel.ts +14 -0
- package/src/models/EarlyCheckoutBalanceModel.ts +2 -2
- package/src/models/RoutingGroupUsersModel.ts +26 -0
- package/src/models/StayAfterHoursBalanceModel.ts +2 -2
- 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/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/SubscriptionAmountModel.d.ts +0 -67
- package/dist/models/SubscriptionAmountModel.js +0 -114
package/dist/data-source.js
CHANGED
|
@@ -122,6 +122,9 @@ const GroupModel_1 = require("./models/GroupModel");
|
|
|
122
122
|
const WorkScheduleModel_1 = require("./models/WorkScheduleModel");
|
|
123
123
|
const JobsModel_1 = require("./models/JobsModel");
|
|
124
124
|
const TelephoneDirectoryModel_1 = require("./models/TelephoneDirectoryModel");
|
|
125
|
+
const RoutingGroupsModel_1 = require("./models/RoutingGroupsModel");
|
|
126
|
+
const RoutingGroupUsersModel_1 = require("./models/RoutingGroupUsersModel");
|
|
127
|
+
const IssueTypesModel_1 = require("./models/IssueTypesModel");
|
|
125
128
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
126
129
|
type: 'postgres',
|
|
127
130
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -248,6 +251,9 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
248
251
|
GroupModel_1.Group,
|
|
249
252
|
WorkScheduleModel_1.WorkSchedule,
|
|
250
253
|
JobsModel_1.Jobs,
|
|
251
|
-
TelephoneDirectoryModel_1.TelephoneDirectory
|
|
254
|
+
TelephoneDirectoryModel_1.TelephoneDirectory,
|
|
255
|
+
RoutingGroupsModel_1.RoutingGroups,
|
|
256
|
+
IssueTypesModel_1.IssueTypes,
|
|
257
|
+
RoutingGroupUsersModel_1.RoutingGroupUsers
|
|
252
258
|
],
|
|
253
259
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ export * from './models/HelpdeskCategoriesModel';
|
|
|
90
90
|
export * from './models/HelpdeskSubCategoriesModel';
|
|
91
91
|
export * from './models/IssueTypesModel';
|
|
92
92
|
export * from './models/RoutingGroupsModel';
|
|
93
|
+
export * from './models/RoutingGroupUsersModel';
|
|
93
94
|
export * from './models/CurrencyModel';
|
|
94
95
|
export * from './models/TransferMissionRequestModel';
|
|
95
96
|
export * from './models/TransferMissionApprovalModel';
|
|
@@ -158,7 +159,7 @@ export * from './models/UserEducationDetailsModel';
|
|
|
158
159
|
export { ProfileUpdateRequestStatus } from './models/ProfileUpdateRequestsModel';
|
|
159
160
|
export * from './models/DiplomaticTitlesMasterModel';
|
|
160
161
|
export { TitleCategory } from './models/DiplomaticTitlesMasterModel';
|
|
161
|
-
export { SubscriptionType } from './models/DiplomaticClubSubscriptionMasterModel';
|
|
162
162
|
export * from './models/CountryMasterModel';
|
|
163
163
|
export * from './models/NationalityMasterModel';
|
|
164
164
|
export * from './models/OfficeMasterModel';
|
|
165
|
+
export * from './models/RoutingGroupsModel';
|
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.
|
|
17
|
+
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 = void 0;
|
|
18
18
|
__exportStar(require("./models/user"), exports);
|
|
19
19
|
__exportStar(require("./models/role"), exports);
|
|
20
20
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -107,6 +107,7 @@ __exportStar(require("./models/HelpdeskCategoriesModel"), exports);
|
|
|
107
107
|
__exportStar(require("./models/HelpdeskSubCategoriesModel"), exports);
|
|
108
108
|
__exportStar(require("./models/IssueTypesModel"), exports);
|
|
109
109
|
__exportStar(require("./models/RoutingGroupsModel"), exports);
|
|
110
|
+
__exportStar(require("./models/RoutingGroupUsersModel"), exports);
|
|
110
111
|
__exportStar(require("./models/CurrencyModel"), exports);
|
|
111
112
|
__exportStar(require("./models/TransferMissionRequestModel"), exports);
|
|
112
113
|
__exportStar(require("./models/TransferMissionApprovalModel"), exports);
|
|
@@ -190,8 +191,7 @@ Object.defineProperty(exports, "ProfileUpdateRequestStatus", { enumerable: true,
|
|
|
190
191
|
__exportStar(require("./models/DiplomaticTitlesMasterModel"), exports);
|
|
191
192
|
var DiplomaticTitlesMasterModel_1 = require("./models/DiplomaticTitlesMasterModel");
|
|
192
193
|
Object.defineProperty(exports, "TitleCategory", { enumerable: true, get: function () { return DiplomaticTitlesMasterModel_1.TitleCategory; } });
|
|
193
|
-
var DiplomaticClubSubscriptionMasterModel_1 = require("./models/DiplomaticClubSubscriptionMasterModel");
|
|
194
|
-
Object.defineProperty(exports, "SubscriptionType", { enumerable: true, get: function () { return DiplomaticClubSubscriptionMasterModel_1.SubscriptionType; } });
|
|
195
194
|
__exportStar(require("./models/CountryMasterModel"), exports);
|
|
196
195
|
__exportStar(require("./models/NationalityMasterModel"), exports);
|
|
197
196
|
__exportStar(require("./models/OfficeMasterModel"), exports);
|
|
197
|
+
__exportStar(require("./models/RoutingGroupsModel"), exports);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum SubscriptionType {
|
|
3
|
-
SINGLE = "Single",
|
|
4
|
-
FAMILY = "Family"
|
|
5
|
-
}
|
|
6
2
|
export declare class DiplomaticClubSubscriptionMaster extends BaseModel {
|
|
7
|
-
subscription_type:
|
|
3
|
+
subscription_type: string;
|
|
8
4
|
subscription_amount: number;
|
|
9
5
|
currency: string | null;
|
|
10
|
-
|
|
6
|
+
description: string | null;
|
|
7
|
+
is_active: boolean;
|
|
8
|
+
effective_from: Date | null;
|
|
9
|
+
effective_to: Date | null;
|
|
10
|
+
subscription_period: string | null;
|
|
11
|
+
constructor(subscription_type: string, subscription_amount: number, currency?: string | null, description?: string | null, effective_from?: Date | null, effective_to?: Date | null, subscription_period?: string | null);
|
|
11
12
|
}
|
|
@@ -9,25 +9,25 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DiplomaticClubSubscriptionMaster =
|
|
12
|
+
exports.DiplomaticClubSubscriptionMaster = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var SubscriptionType;
|
|
16
|
-
(function (SubscriptionType) {
|
|
17
|
-
SubscriptionType["SINGLE"] = "Single";
|
|
18
|
-
SubscriptionType["FAMILY"] = "Family";
|
|
19
|
-
})(SubscriptionType || (exports.SubscriptionType = SubscriptionType = {}));
|
|
20
15
|
let DiplomaticClubSubscriptionMaster = class DiplomaticClubSubscriptionMaster extends BaseModel_1.BaseModel {
|
|
21
|
-
constructor(subscription_type, subscription_amount, currency) {
|
|
16
|
+
constructor(subscription_type, subscription_amount, currency, description, effective_from, effective_to, subscription_period) {
|
|
22
17
|
super();
|
|
23
18
|
this.subscription_type = subscription_type;
|
|
24
19
|
this.subscription_amount = subscription_amount;
|
|
25
20
|
this.currency = currency || null;
|
|
21
|
+
this.description = description || null;
|
|
22
|
+
this.is_active = true;
|
|
23
|
+
this.effective_from = effective_from || null;
|
|
24
|
+
this.effective_to = effective_to || null;
|
|
25
|
+
this.subscription_period = subscription_period || null;
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
exports.DiplomaticClubSubscriptionMaster = DiplomaticClubSubscriptionMaster;
|
|
29
29
|
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: '
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], DiplomaticClubSubscriptionMaster.prototype, "subscription_type", void 0);
|
|
33
33
|
__decorate([
|
|
@@ -38,7 +38,27 @@ __decorate([
|
|
|
38
38
|
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true }),
|
|
39
39
|
__metadata("design:type", Object)
|
|
40
40
|
], DiplomaticClubSubscriptionMaster.prototype, "currency", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], DiplomaticClubSubscriptionMaster.prototype, "description", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], DiplomaticClubSubscriptionMaster.prototype, "is_active", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], DiplomaticClubSubscriptionMaster.prototype, "effective_from", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], DiplomaticClubSubscriptionMaster.prototype, "effective_to", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], DiplomaticClubSubscriptionMaster.prototype, "subscription_period", void 0);
|
|
41
61
|
exports.DiplomaticClubSubscriptionMaster = DiplomaticClubSubscriptionMaster = __decorate([
|
|
42
62
|
(0, typeorm_1.Entity)({ name: 'diplomatic_club_subscription_master' }),
|
|
43
|
-
__metadata("design:paramtypes", [String, Number, Object])
|
|
63
|
+
__metadata("design:paramtypes", [String, Number, Object, Object, Object, Object, Object])
|
|
44
64
|
], DiplomaticClubSubscriptionMaster);
|
|
@@ -5,6 +5,10 @@ export declare enum TitleCategory {
|
|
|
5
5
|
}
|
|
6
6
|
export declare class DiplomaticTitlesMaster extends BaseModel {
|
|
7
7
|
title: string;
|
|
8
|
+
title_in_arabic: string | null;
|
|
8
9
|
category: TitleCategory;
|
|
10
|
+
description: string | null;
|
|
11
|
+
is_active: boolean;
|
|
12
|
+
display_order: number;
|
|
9
13
|
constructor(title: string, category: TitleCategory);
|
|
10
14
|
}
|
|
@@ -22,6 +22,8 @@ let DiplomaticTitlesMaster = class DiplomaticTitlesMaster extends BaseModel_1.Ba
|
|
|
22
22
|
super();
|
|
23
23
|
this.title = title;
|
|
24
24
|
this.category = category;
|
|
25
|
+
this.is_active = true;
|
|
26
|
+
this.display_order = 0;
|
|
25
27
|
}
|
|
26
28
|
};
|
|
27
29
|
exports.DiplomaticTitlesMaster = DiplomaticTitlesMaster;
|
|
@@ -29,10 +31,26 @@ __decorate([
|
|
|
29
31
|
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
30
32
|
__metadata("design:type", String)
|
|
31
33
|
], DiplomaticTitlesMaster.prototype, "title", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], DiplomaticTitlesMaster.prototype, "title_in_arabic", void 0);
|
|
32
38
|
__decorate([
|
|
33
39
|
(0, typeorm_1.Column)({ type: 'enum', enum: TitleCategory, nullable: false, default: TitleCategory.EMPLOYEE }),
|
|
34
40
|
__metadata("design:type", String)
|
|
35
41
|
], DiplomaticTitlesMaster.prototype, "category", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], DiplomaticTitlesMaster.prototype, "description", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
48
|
+
__metadata("design:type", Boolean)
|
|
49
|
+
], DiplomaticTitlesMaster.prototype, "is_active", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], DiplomaticTitlesMaster.prototype, "display_order", void 0);
|
|
36
54
|
exports.DiplomaticTitlesMaster = DiplomaticTitlesMaster = __decorate([
|
|
37
55
|
(0, typeorm_1.Entity)({ name: 'diplomatic_titles_master' }),
|
|
38
56
|
__metadata("design:paramtypes", [String, String])
|
|
@@ -26,11 +26,11 @@ __decorate([
|
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], EarlyCheckoutBalance.prototype, "user_id", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({
|
|
29
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
30
30
|
__metadata("design:type", Number)
|
|
31
31
|
], EarlyCheckoutBalance.prototype, "balance", void 0);
|
|
32
32
|
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({
|
|
33
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
34
34
|
__metadata("design:type", Number)
|
|
35
35
|
], EarlyCheckoutBalance.prototype, "total_balance", void 0);
|
|
36
36
|
exports.EarlyCheckoutBalance = EarlyCheckoutBalance = __decorate([
|
|
@@ -9,28 +9,31 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.RoutingGroupUsers = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let
|
|
15
|
+
let RoutingGroupUsers = class RoutingGroupUsers extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(routing_group_id, user_id, is_active = true) {
|
|
17
|
+
super();
|
|
18
|
+
this.routing_group_id = routing_group_id;
|
|
19
|
+
this.user_id = user_id;
|
|
20
|
+
this.is_active = is_active;
|
|
21
|
+
}
|
|
16
22
|
};
|
|
17
|
-
exports.
|
|
23
|
+
exports.RoutingGroupUsers = RoutingGroupUsers;
|
|
18
24
|
__decorate([
|
|
19
|
-
(0, typeorm_1.Column)({ type: 'int'
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
20
26
|
__metadata("design:type", Number)
|
|
21
|
-
],
|
|
27
|
+
], RoutingGroupUsers.prototype, "routing_group_id", void 0);
|
|
22
28
|
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({ type: 'int'
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
24
30
|
__metadata("design:type", Number)
|
|
25
|
-
],
|
|
31
|
+
], RoutingGroupUsers.prototype, "user_id", void 0);
|
|
26
32
|
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({ type: '
|
|
28
|
-
__metadata("design:type",
|
|
29
|
-
],
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.
|
|
32
|
-
__metadata("design:
|
|
33
|
-
],
|
|
34
|
-
exports.DiplomaticClubCardChat = DiplomaticClubCardChat = __decorate([
|
|
35
|
-
(0, typeorm_1.Entity)({ name: 'diplomatic_club_card_chats' })
|
|
36
|
-
], DiplomaticClubCardChat);
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
34
|
+
__metadata("design:type", Boolean)
|
|
35
|
+
], RoutingGroupUsers.prototype, "is_active", void 0);
|
|
36
|
+
exports.RoutingGroupUsers = RoutingGroupUsers = __decorate([
|
|
37
|
+
(0, typeorm_1.Entity)({ name: 'routing_group_users' }),
|
|
38
|
+
__metadata("design:paramtypes", [Number, Number, Boolean])
|
|
39
|
+
], RoutingGroupUsers);
|
|
@@ -26,11 +26,11 @@ __decorate([
|
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], StayAfterHoursBalance.prototype, "user_id", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({
|
|
29
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
30
30
|
__metadata("design:type", Number)
|
|
31
31
|
], StayAfterHoursBalance.prototype, "balance", void 0);
|
|
32
32
|
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({
|
|
33
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
34
34
|
__metadata("design:type", Number)
|
|
35
35
|
], StayAfterHoursBalance.prototype, "total_balance", void 0);
|
|
36
36
|
exports.StayAfterHoursBalance = StayAfterHoursBalance = __decorate([
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -127,6 +127,10 @@ import { Group } from './models/GroupModel';
|
|
|
127
127
|
import { WorkSchedule } from './models/WorkScheduleModel';
|
|
128
128
|
import { Jobs } from './models/JobsModel';
|
|
129
129
|
import { TelephoneDirectory } from './models/TelephoneDirectoryModel'
|
|
130
|
+
import { RoutingGroups } from './models/RoutingGroupsModel';
|
|
131
|
+
import { RoutingGroupUsers } from './models/RoutingGroupUsersModel';
|
|
132
|
+
import { IssueTypes } from './models/IssueTypesModel';
|
|
133
|
+
|
|
130
134
|
export const AppDataSource = new DataSource({
|
|
131
135
|
type: 'postgres',
|
|
132
136
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -253,6 +257,9 @@ export const AppDataSource = new DataSource({
|
|
|
253
257
|
Group,
|
|
254
258
|
WorkSchedule,
|
|
255
259
|
Jobs,
|
|
256
|
-
TelephoneDirectory
|
|
260
|
+
TelephoneDirectory,
|
|
261
|
+
RoutingGroups,
|
|
262
|
+
IssueTypes,
|
|
263
|
+
RoutingGroupUsers
|
|
257
264
|
],
|
|
258
265
|
});
|
package/src/index.ts
CHANGED
|
@@ -90,6 +90,7 @@ export * from './models/HelpdeskCategoriesModel';
|
|
|
90
90
|
export * from './models/HelpdeskSubCategoriesModel';
|
|
91
91
|
export * from './models/IssueTypesModel';
|
|
92
92
|
export * from './models/RoutingGroupsModel';
|
|
93
|
+
export * from './models/RoutingGroupUsersModel';
|
|
93
94
|
export * from './models/CurrencyModel';
|
|
94
95
|
export * from './models/TransferMissionRequestModel';
|
|
95
96
|
export * from './models/TransferMissionApprovalModel';
|
|
@@ -158,7 +159,7 @@ export * from './models/UserEducationDetailsModel';
|
|
|
158
159
|
export { ProfileUpdateRequestStatus } from './models/ProfileUpdateRequestsModel';
|
|
159
160
|
export * from './models/DiplomaticTitlesMasterModel';
|
|
160
161
|
export { TitleCategory } from './models/DiplomaticTitlesMasterModel';
|
|
161
|
-
export { SubscriptionType } from './models/DiplomaticClubSubscriptionMasterModel';
|
|
162
162
|
export * from './models/CountryMasterModel';
|
|
163
163
|
export * from './models/NationalityMasterModel';
|
|
164
164
|
export * from './models/OfficeMasterModel';
|
|
165
|
+
export * from './models/RoutingGroupsModel';
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { Column, Entity } from "typeorm";
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
3
|
|
|
4
|
-
export enum SubscriptionType {
|
|
5
|
-
SINGLE = "Single",
|
|
6
|
-
FAMILY = "Family"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
4
|
@Entity({ name: 'diplomatic_club_subscription_master' })
|
|
10
5
|
export class DiplomaticClubSubscriptionMaster extends BaseModel {
|
|
11
|
-
@Column({ type: '
|
|
12
|
-
subscription_type:
|
|
6
|
+
@Column({ type: 'varchar', length: 100 })
|
|
7
|
+
subscription_type: string; // e.g., "Single", "Family"
|
|
13
8
|
|
|
14
9
|
@Column({ type: 'decimal', precision: 10, scale: 2 })
|
|
15
10
|
subscription_amount: number;
|
|
@@ -17,15 +12,39 @@ export class DiplomaticClubSubscriptionMaster extends BaseModel {
|
|
|
17
12
|
@Column({ type: 'varchar', length: 10, nullable: true })
|
|
18
13
|
currency: string | null;
|
|
19
14
|
|
|
15
|
+
@Column({ type: 'text', nullable: true })
|
|
16
|
+
description: string | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'boolean', default: true })
|
|
19
|
+
is_active: boolean;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'date', nullable: true })
|
|
22
|
+
effective_from: Date | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'date', nullable: true })
|
|
25
|
+
effective_to: Date | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'varchar', length: 20, nullable: true })
|
|
28
|
+
subscription_period: string | null; // e.g., "Monthly", "Yearly"
|
|
29
|
+
|
|
20
30
|
constructor(
|
|
21
|
-
subscription_type:
|
|
31
|
+
subscription_type: string,
|
|
22
32
|
subscription_amount: number,
|
|
23
33
|
currency?: string | null,
|
|
34
|
+
description?: string | null,
|
|
35
|
+
effective_from?: Date | null,
|
|
36
|
+
effective_to?: Date | null,
|
|
37
|
+
subscription_period?: string | null
|
|
24
38
|
) {
|
|
25
39
|
super();
|
|
26
40
|
this.subscription_type = subscription_type;
|
|
27
41
|
this.subscription_amount = subscription_amount;
|
|
28
42
|
this.currency = currency || null;
|
|
43
|
+
this.description = description || null;
|
|
44
|
+
this.is_active = true;
|
|
45
|
+
this.effective_from = effective_from || null;
|
|
46
|
+
this.effective_to = effective_to || null;
|
|
47
|
+
this.subscription_period = subscription_period || null;
|
|
29
48
|
}
|
|
30
49
|
}
|
|
31
50
|
|