@platform-modules/foreign-ministry 1.3.137 → 1.3.139
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 +6 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/models/GiftAttachmentModel.d.ts +9 -0
- package/dist/models/GiftAttachmentModel.js +50 -0
- package/dist/models/GiftsModel.d.ts +17 -0
- package/dist/models/GiftsModel.js +66 -0
- package/dist/models/HallHistoryModel.d.ts +10 -0
- package/dist/models/HallHistoryModel.js +54 -0
- package/dist/models/MeetingRequestModel.d.ts +1 -0
- package/dist/models/MeetingRequestModel.js +4 -0
- package/package.json +1 -1
- package/src/data-source.ts +6 -0
- package/src/index.ts +4 -0
- package/src/models/GiftAttachmentModel.ts +30 -0
- package/src/models/GiftsModel.ts +53 -0
- package/src/models/HallHistoryModel.ts +41 -0
- package/src/models/MeetingRequestModel.ts +3 -0
package/dist/data-source.js
CHANGED
|
@@ -176,6 +176,9 @@ const HallAttachmentModel_1 = require("./models/HallAttachmentModel");
|
|
|
176
176
|
const HallChatModel_1 = require("./models/HallChatModel");
|
|
177
177
|
const HallWorkflowModel_1 = require("./models/HallWorkflowModel");
|
|
178
178
|
const HallMasterModel_1 = require("./models/HallMasterModel");
|
|
179
|
+
const HallHistoryModel_1 = require("./models/HallHistoryModel");
|
|
180
|
+
const GiftsModel_1 = require("./models/GiftsModel");
|
|
181
|
+
const GiftAttachmentModel_1 = require("./models/GiftAttachmentModel");
|
|
179
182
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
180
183
|
type: 'postgres',
|
|
181
184
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -357,5 +360,8 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
357
360
|
HallChatModel_1.HallRequestChat,
|
|
358
361
|
HallWorkflowModel_1.HallWorkFlow,
|
|
359
362
|
HallMasterModel_1.HallMaster,
|
|
363
|
+
HallHistoryModel_1.HallHistory,
|
|
364
|
+
GiftsModel_1.Gifts,
|
|
365
|
+
GiftAttachmentModel_1.GiftAttachments,
|
|
360
366
|
],
|
|
361
367
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -266,6 +266,9 @@ export * from './models/HallAttachmentModel';
|
|
|
266
266
|
export * from './models/HallChatModel';
|
|
267
267
|
export * from './models/HallWorkflowModel';
|
|
268
268
|
export * from './models/HallMasterModel';
|
|
269
|
+
export * from './models/HallHistoryModel';
|
|
270
|
+
export * from './models/GiftsModel';
|
|
271
|
+
export * from './models/GiftAttachmentModel';
|
|
269
272
|
export * from './models/EmployeeMilestonesModel';
|
|
270
273
|
export * from './models/EmployeeMilestoneDetailsModel';
|
|
271
274
|
export * from './models/MissionTravelPassportExpiryNotificationConfigModel';
|
package/dist/index.js
CHANGED
|
@@ -327,6 +327,9 @@ __exportStar(require("./models/HallAttachmentModel"), exports);
|
|
|
327
327
|
__exportStar(require("./models/HallChatModel"), exports);
|
|
328
328
|
__exportStar(require("./models/HallWorkflowModel"), exports);
|
|
329
329
|
__exportStar(require("./models/HallMasterModel"), exports);
|
|
330
|
+
__exportStar(require("./models/HallHistoryModel"), exports);
|
|
331
|
+
__exportStar(require("./models/GiftsModel"), exports);
|
|
332
|
+
__exportStar(require("./models/GiftAttachmentModel"), exports);
|
|
330
333
|
// Employee Milestones Models
|
|
331
334
|
__exportStar(require("./models/EmployeeMilestonesModel"), exports);
|
|
332
335
|
__exportStar(require("./models/EmployeeMilestoneDetailsModel"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class GiftAttachments extends BaseModel {
|
|
3
|
+
gift_id: number | null;
|
|
4
|
+
file_url: string;
|
|
5
|
+
file_name: string | null;
|
|
6
|
+
file_type: string | null;
|
|
7
|
+
file_size: number | null;
|
|
8
|
+
constructor(gift_id?: number | null, file_url?: string, file_name?: string | null, file_type?: string | null, file_size?: number | null);
|
|
9
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.GiftAttachments = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let GiftAttachments = class GiftAttachments extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(gift_id, file_url, file_name, file_type, file_size) {
|
|
17
|
+
super();
|
|
18
|
+
this.gift_id = gift_id ?? null;
|
|
19
|
+
if (file_url)
|
|
20
|
+
this.file_url = file_url;
|
|
21
|
+
this.file_name = file_name ?? null;
|
|
22
|
+
this.file_type = file_type ?? null;
|
|
23
|
+
this.file_size = file_size ?? null;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.GiftAttachments = GiftAttachments;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], GiftAttachments.prototype, "gift_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 1000, nullable: false }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], GiftAttachments.prototype, "file_url", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], GiftAttachments.prototype, "file_name", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], GiftAttachments.prototype, "file_type", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], GiftAttachments.prototype, "file_size", void 0);
|
|
47
|
+
exports.GiftAttachments = GiftAttachments = __decorate([
|
|
48
|
+
(0, typeorm_1.Entity)({ name: 'gift_attachments' }),
|
|
49
|
+
__metadata("design:paramtypes", [Object, String, Object, Object, Object])
|
|
50
|
+
], GiftAttachments);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum GiftExchangeType {
|
|
3
|
+
MINISTRY_TO_MINISTRY = "Ministry to Ministry",
|
|
4
|
+
MINISTRY_TO_EMBASSY = "Ministry to Embassy",
|
|
5
|
+
MANDC_TO_MINISTRY = "M&C to Ministry",
|
|
6
|
+
MINISTRY_TO_COMPANY = "Ministry to Company"
|
|
7
|
+
}
|
|
8
|
+
export declare class Gifts extends BaseModel {
|
|
9
|
+
meeting_id: number | null;
|
|
10
|
+
gift_type: GiftExchangeType | null;
|
|
11
|
+
description: string | null;
|
|
12
|
+
date_of_exchange: string | null;
|
|
13
|
+
location_id: number | null;
|
|
14
|
+
gift_given_by: string | null;
|
|
15
|
+
gift_received_by: string | null;
|
|
16
|
+
constructor(meeting_id?: number | null, gift_type?: GiftExchangeType | null, description?: string | null, date_of_exchange?: string | null, location_id?: number | null, gift_given_by?: string | null, gift_received_by?: string | null);
|
|
17
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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.Gifts = exports.GiftExchangeType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var GiftExchangeType;
|
|
16
|
+
(function (GiftExchangeType) {
|
|
17
|
+
GiftExchangeType["MINISTRY_TO_MINISTRY"] = "Ministry to Ministry";
|
|
18
|
+
GiftExchangeType["MINISTRY_TO_EMBASSY"] = "Ministry to Embassy";
|
|
19
|
+
GiftExchangeType["MANDC_TO_MINISTRY"] = "M&C to Ministry";
|
|
20
|
+
GiftExchangeType["MINISTRY_TO_COMPANY"] = "Ministry to Company";
|
|
21
|
+
})(GiftExchangeType || (exports.GiftExchangeType = GiftExchangeType = {}));
|
|
22
|
+
let Gifts = class Gifts extends BaseModel_1.BaseModel {
|
|
23
|
+
constructor(meeting_id, gift_type, description, date_of_exchange, location_id, gift_given_by, gift_received_by) {
|
|
24
|
+
super();
|
|
25
|
+
this.meeting_id = meeting_id ?? null;
|
|
26
|
+
this.gift_type = gift_type ?? null;
|
|
27
|
+
this.description = description ?? null;
|
|
28
|
+
this.date_of_exchange = date_of_exchange ?? null;
|
|
29
|
+
this.location_id = location_id ?? null;
|
|
30
|
+
this.gift_given_by = gift_given_by ?? null;
|
|
31
|
+
this.gift_received_by = gift_received_by ?? null;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.Gifts = Gifts;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], Gifts.prototype, "meeting_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: GiftExchangeType, nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], Gifts.prototype, "gift_type", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], Gifts.prototype, "description", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], Gifts.prototype, "date_of_exchange", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], Gifts.prototype, "location_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], Gifts.prototype, "gift_given_by", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], Gifts.prototype, "gift_received_by", void 0);
|
|
63
|
+
exports.Gifts = Gifts = __decorate([
|
|
64
|
+
(0, typeorm_1.Entity)({ name: 'gifts' }),
|
|
65
|
+
__metadata("design:paramtypes", [Object, Object, Object, Object, Object, Object, Object])
|
|
66
|
+
], Gifts);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class HallHistory extends BaseModel {
|
|
3
|
+
hall_id: number | null;
|
|
4
|
+
location_id: number | null;
|
|
5
|
+
department_id: number | null;
|
|
6
|
+
booked_date: string | null;
|
|
7
|
+
from_time: string | null;
|
|
8
|
+
to_time: string | null;
|
|
9
|
+
constructor(hall_id?: number | null, location_id?: number | null, department_id?: number | null, booked_date?: string | null, from_time?: string | null, to_time?: string | null);
|
|
10
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HallHistory = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let HallHistory = class HallHistory extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(hall_id, location_id, department_id, booked_date, from_time, to_time) {
|
|
17
|
+
super();
|
|
18
|
+
this.hall_id = hall_id ?? null;
|
|
19
|
+
this.location_id = location_id ?? null;
|
|
20
|
+
this.department_id = department_id ?? null;
|
|
21
|
+
this.booked_date = booked_date ?? null;
|
|
22
|
+
this.from_time = from_time ?? null;
|
|
23
|
+
this.to_time = to_time ?? null;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.HallHistory = HallHistory;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], HallHistory.prototype, "hall_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], HallHistory.prototype, "location_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], HallHistory.prototype, "department_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], HallHistory.prototype, "booked_date", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], HallHistory.prototype, "from_time", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], HallHistory.prototype, "to_time", void 0);
|
|
51
|
+
exports.HallHistory = HallHistory = __decorate([
|
|
52
|
+
(0, typeorm_1.Entity)({ name: 'hall_histories' }),
|
|
53
|
+
__metadata("design:paramtypes", [Object, Object, Object, Object, Object, Object])
|
|
54
|
+
], HallHistory);
|
|
@@ -62,6 +62,7 @@ export declare class MeetingRequests extends BaseModel {
|
|
|
62
62
|
external_attendees_required_gate_pass: YesNo | null;
|
|
63
63
|
online_meeting_details: OnlineMeetingDetails | null;
|
|
64
64
|
meeting_link: string | null;
|
|
65
|
+
agenda: string | null;
|
|
65
66
|
meeting_location: MeetingLocation | null;
|
|
66
67
|
status: MeetingRequestStatus;
|
|
67
68
|
workflow_execution_id: string | null;
|
|
@@ -157,6 +157,10 @@ __decorate([
|
|
|
157
157
|
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
158
158
|
__metadata("design:type", Object)
|
|
159
159
|
], MeetingRequests.prototype, "meeting_link", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
162
|
+
__metadata("design:type", Object)
|
|
163
|
+
], MeetingRequests.prototype, "agenda", void 0);
|
|
160
164
|
__decorate([
|
|
161
165
|
(0, typeorm_1.Column)({ type: 'enum', enum: MeetingLocation, nullable: true }),
|
|
162
166
|
__metadata("design:type", Object)
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -182,6 +182,9 @@ import { HallRequestAttachment } from './models/HallAttachmentModel';
|
|
|
182
182
|
import { HallRequestChat } from './models/HallChatModel';
|
|
183
183
|
import { HallWorkFlow } from './models/HallWorkflowModel';
|
|
184
184
|
import { HallMaster } from './models/HallMasterModel';
|
|
185
|
+
import { HallHistory } from './models/HallHistoryModel';
|
|
186
|
+
import { Gifts } from './models/GiftsModel';
|
|
187
|
+
import { GiftAttachments } from './models/GiftAttachmentModel';
|
|
185
188
|
|
|
186
189
|
|
|
187
190
|
export const AppDataSource = new DataSource({
|
|
@@ -365,5 +368,8 @@ export const AppDataSource = new DataSource({
|
|
|
365
368
|
HallRequestChat,
|
|
366
369
|
HallWorkFlow,
|
|
367
370
|
HallMaster,
|
|
371
|
+
HallHistory,
|
|
372
|
+
Gifts,
|
|
373
|
+
GiftAttachments,
|
|
368
374
|
],
|
|
369
375
|
});
|
package/src/index.ts
CHANGED
|
@@ -275,6 +275,10 @@ export * from './models/HallChatModel';
|
|
|
275
275
|
export * from './models/HallWorkflowModel';
|
|
276
276
|
export * from './models/HallMasterModel';
|
|
277
277
|
|
|
278
|
+
export * from './models/HallHistoryModel';
|
|
279
|
+
export * from './models/GiftsModel';
|
|
280
|
+
export * from './models/GiftAttachmentModel';
|
|
281
|
+
|
|
278
282
|
// Employee Milestones Models
|
|
279
283
|
export * from './models/EmployeeMilestonesModel';
|
|
280
284
|
export * from './models/EmployeeMilestoneDetailsModel';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'gift_attachments' })
|
|
5
|
+
export class GiftAttachments extends BaseModel {
|
|
6
|
+
@Column({ type: 'int', nullable: true })
|
|
7
|
+
gift_id: number | null;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'varchar', length: 1000, nullable: false })
|
|
10
|
+
file_url: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
13
|
+
file_name: string | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
16
|
+
file_type: string | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: true })
|
|
19
|
+
file_size: number | null;
|
|
20
|
+
|
|
21
|
+
constructor(gift_id?: number | null, file_url?: string, file_name?: string | null, file_type?: string | null, file_size?: number | null) {
|
|
22
|
+
super();
|
|
23
|
+
this.gift_id = gift_id ?? null;
|
|
24
|
+
if (file_url) this.file_url = file_url;
|
|
25
|
+
this.file_name = file_name ?? null;
|
|
26
|
+
this.file_type = file_type ?? null;
|
|
27
|
+
this.file_size = file_size ?? null;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum GiftExchangeType {
|
|
5
|
+
MINISTRY_TO_MINISTRY = 'Ministry to Ministry',
|
|
6
|
+
MINISTRY_TO_EMBASSY = 'Ministry to Embassy',
|
|
7
|
+
MANDC_TO_MINISTRY = 'M&C to Ministry',
|
|
8
|
+
MINISTRY_TO_COMPANY = 'Ministry to Company'
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'gifts' })
|
|
12
|
+
export class Gifts extends BaseModel {
|
|
13
|
+
@Column({ type: 'int', nullable: true })
|
|
14
|
+
meeting_id: number | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'enum', enum: GiftExchangeType, nullable: true })
|
|
17
|
+
gift_type: GiftExchangeType | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'text', nullable: true })
|
|
20
|
+
description: string | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'date', nullable: true })
|
|
23
|
+
date_of_exchange: string | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'int', nullable: true })
|
|
26
|
+
location_id: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
29
|
+
gift_given_by: string | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
32
|
+
gift_received_by: string | null;
|
|
33
|
+
|
|
34
|
+
constructor(
|
|
35
|
+
meeting_id?: number | null,
|
|
36
|
+
gift_type?: GiftExchangeType | null,
|
|
37
|
+
description?: string | null,
|
|
38
|
+
date_of_exchange?: string | null,
|
|
39
|
+
location_id?: number | null,
|
|
40
|
+
gift_given_by?: string | null,
|
|
41
|
+
gift_received_by?: string | null
|
|
42
|
+
) {
|
|
43
|
+
super();
|
|
44
|
+
this.meeting_id = meeting_id ?? null;
|
|
45
|
+
this.gift_type = gift_type ?? null;
|
|
46
|
+
this.description = description ?? null;
|
|
47
|
+
this.date_of_exchange = date_of_exchange ?? null;
|
|
48
|
+
this.location_id = location_id ?? null;
|
|
49
|
+
this.gift_given_by = gift_given_by ?? null;
|
|
50
|
+
this.gift_received_by = gift_received_by ?? null;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'hall_histories' })
|
|
5
|
+
export class HallHistory extends BaseModel {
|
|
6
|
+
@Column({ type: 'int', nullable: true })
|
|
7
|
+
hall_id: number | null;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'int', nullable: true })
|
|
10
|
+
location_id: number | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'int', nullable: true })
|
|
13
|
+
department_id: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'date', nullable: true })
|
|
16
|
+
booked_date: string | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
19
|
+
from_time: string | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
22
|
+
to_time: string | null;
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
hall_id?: number | null,
|
|
26
|
+
location_id?: number | null,
|
|
27
|
+
department_id?: number | null,
|
|
28
|
+
booked_date?: string | null,
|
|
29
|
+
from_time?: string | null,
|
|
30
|
+
to_time?: string | null
|
|
31
|
+
) {
|
|
32
|
+
super();
|
|
33
|
+
this.hall_id = hall_id ?? null;
|
|
34
|
+
this.location_id = location_id ?? null;
|
|
35
|
+
this.department_id = department_id ?? null;
|
|
36
|
+
this.booked_date = booked_date ?? null;
|
|
37
|
+
this.from_time = from_time ?? null;
|
|
38
|
+
this.to_time = to_time ?? null;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
@@ -121,6 +121,9 @@ export class MeetingRequests extends BaseModel {
|
|
|
121
121
|
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
122
122
|
meeting_link: string | null;
|
|
123
123
|
|
|
124
|
+
@Column({ type: 'text', nullable: true })
|
|
125
|
+
agenda: string | null;
|
|
126
|
+
|
|
124
127
|
@Column({ type: 'enum', enum: MeetingLocation, nullable: true })
|
|
125
128
|
meeting_location: MeetingLocation | null;
|
|
126
129
|
|