@platform-modules/foreign-ministry 1.3.216 → 1.3.218
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 +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/models/AppointmentRequestModel.d.ts +2 -0
- package/dist/models/AppointmentRequestModel.js +8 -0
- package/dist/models/MediaDraftAttachmentModel.d.ts +11 -0
- package/dist/models/MediaDraftAttachmentModel.js +52 -0
- package/dist/models/MediaDraftRequestModel.d.ts +29 -0
- package/dist/models/MediaDraftRequestModel.js +114 -0
- package/package.json +1 -1
- package/src/data-source.ts +4 -0
- package/src/index.ts +2 -0
- package/src/models/AppointmentRequestModel.ts +6 -0
- package/src/models/MediaDraftAttachmentModel.ts +29 -0
- package/src/models/MediaDraftRequestModel.ts +86 -0
package/dist/data-source.js
CHANGED
|
@@ -207,6 +207,8 @@ const MediaApprovalModel_1 = require("./models/MediaApprovalModel");
|
|
|
207
207
|
const MediaAttachmentModel_1 = require("./models/MediaAttachmentModel");
|
|
208
208
|
const MediaChatModel_1 = require("./models/MediaChatModel");
|
|
209
209
|
const MediaWorkflowModel_1 = require("./models/MediaWorkflowModel");
|
|
210
|
+
const MediaDraftRequestModel_1 = require("./models/MediaDraftRequestModel");
|
|
211
|
+
const MediaDraftAttachmentModel_1 = require("./models/MediaDraftAttachmentModel");
|
|
210
212
|
const ProjectModel_1 = require("./models/ProjectModel");
|
|
211
213
|
const TemplateModel_1 = require("./models/TemplateModel");
|
|
212
214
|
const ProjectMilestoneDocumentsModel_1 = require("./models/ProjectMilestoneDocumentsModel");
|
|
@@ -429,6 +431,8 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
429
431
|
MediaAttachmentModel_1.MediaRequestAttachment,
|
|
430
432
|
MediaChatModel_1.MediaRequestChat,
|
|
431
433
|
MediaWorkflowModel_1.MediaWorkFlow,
|
|
434
|
+
MediaDraftRequestModel_1.MediaDraftRequests,
|
|
435
|
+
MediaDraftAttachmentModel_1.MediaDraftAttachment,
|
|
432
436
|
ProjectModel_1.Projects,
|
|
433
437
|
TemplateModel_1.Templates,
|
|
434
438
|
ProjectMilestoneDocumentsModel_1.ProjectMilestoneDocuments,
|
package/dist/index.d.ts
CHANGED
|
@@ -304,6 +304,8 @@ export * from './models/MediaApprovalModel';
|
|
|
304
304
|
export * from './models/MediaAttachmentModel';
|
|
305
305
|
export * from './models/MediaChatModel';
|
|
306
306
|
export * from './models/MediaWorkflowModel';
|
|
307
|
+
export * from './models/MediaDraftRequestModel';
|
|
308
|
+
export * from './models/MediaDraftAttachmentModel';
|
|
307
309
|
export * from './models/ProjectModel';
|
|
308
310
|
export * from './models/TemplateModel';
|
|
309
311
|
export * from './models/ProjectScopeModel';
|
package/dist/index.js
CHANGED
|
@@ -378,6 +378,8 @@ __exportStar(require("./models/MediaApprovalModel"), exports);
|
|
|
378
378
|
__exportStar(require("./models/MediaAttachmentModel"), exports);
|
|
379
379
|
__exportStar(require("./models/MediaChatModel"), exports);
|
|
380
380
|
__exportStar(require("./models/MediaWorkflowModel"), exports);
|
|
381
|
+
__exportStar(require("./models/MediaDraftRequestModel"), exports);
|
|
382
|
+
__exportStar(require("./models/MediaDraftAttachmentModel"), exports);
|
|
381
383
|
__exportStar(require("./models/ProjectModel"), exports);
|
|
382
384
|
__exportStar(require("./models/TemplateModel"), exports);
|
|
383
385
|
__exportStar(require("./models/ProjectScopeModel"), exports);
|
|
@@ -61,4 +61,6 @@ export declare class AppointmentRequests extends BaseModel {
|
|
|
61
61
|
/** When true, workflow includes Under Secretary Approval step; when false or null, that step is skipped. */
|
|
62
62
|
is_under_secretery_approval_required: boolean | null;
|
|
63
63
|
is_gate_pass_applied: boolean | null;
|
|
64
|
+
online_appointment_details: string | null;
|
|
65
|
+
appointment_link: string | null;
|
|
64
66
|
}
|
|
@@ -174,6 +174,14 @@ __decorate([
|
|
|
174
174
|
(0, typeorm_1.Column)({ type: 'boolean', default: false, nullable: true }),
|
|
175
175
|
__metadata("design:type", Object)
|
|
176
176
|
], AppointmentRequests.prototype, "is_gate_pass_applied", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
179
|
+
__metadata("design:type", Object)
|
|
180
|
+
], AppointmentRequests.prototype, "online_appointment_details", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
183
|
+
__metadata("design:type", Object)
|
|
184
|
+
], AppointmentRequests.prototype, "appointment_link", void 0);
|
|
177
185
|
exports.AppointmentRequests = AppointmentRequests = __decorate([
|
|
178
186
|
(0, typeorm_1.Entity)({ name: 'appointment_requests' })
|
|
179
187
|
], AppointmentRequests);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class MediaDraftAttachment extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number | null;
|
|
5
|
+
sub_service_id: number | null;
|
|
6
|
+
file_url: string;
|
|
7
|
+
file_name: string;
|
|
8
|
+
file_type: string;
|
|
9
|
+
file_size: number | null;
|
|
10
|
+
chat_id: number | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.MediaDraftAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let MediaDraftAttachment = class MediaDraftAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.MediaDraftAttachment = MediaDraftAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], MediaDraftAttachment.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], MediaDraftAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], MediaDraftAttachment.prototype, "sub_service_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], MediaDraftAttachment.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], MediaDraftAttachment.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], MediaDraftAttachment.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], MediaDraftAttachment.prototype, "file_size", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], MediaDraftAttachment.prototype, "chat_id", void 0);
|
|
50
|
+
exports.MediaDraftAttachment = MediaDraftAttachment = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'media_draft_attachments' })
|
|
52
|
+
], MediaDraftAttachment);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { MediaRequestStatus, MediaAuthorPublisher, MediaCategory, MediaRequestType, MediaClassification, MediaNotificationType, MediaYesNo } from './MediaRequestModel';
|
|
3
|
+
/**
|
|
4
|
+
* Draft media requests – same structure as media_requests except
|
|
5
|
+
* workflow_execution_id and is_political_option_required_from are excluded.
|
|
6
|
+
*/
|
|
7
|
+
export declare class MediaDraftRequests extends BaseModel {
|
|
8
|
+
req_user_department_id: number | null;
|
|
9
|
+
req_user_section_id: number | null;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
user_id: number;
|
|
13
|
+
status: MediaRequestStatus;
|
|
14
|
+
title: string | null;
|
|
15
|
+
summary_abstract: string | null;
|
|
16
|
+
description: string | null;
|
|
17
|
+
author_publisher: MediaAuthorPublisher | null;
|
|
18
|
+
category: MediaCategory | null;
|
|
19
|
+
request_type: MediaRequestType | null;
|
|
20
|
+
classification: MediaClassification | null;
|
|
21
|
+
target_audience: string | null;
|
|
22
|
+
publish_date: string | null;
|
|
23
|
+
expiry_date: string | null;
|
|
24
|
+
hide_flag: boolean | null;
|
|
25
|
+
reason_for_hiding: string | null;
|
|
26
|
+
notification_type: MediaNotificationType | null;
|
|
27
|
+
popup_mandatory: MediaYesNo | null;
|
|
28
|
+
popup_duration: string | null;
|
|
29
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
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.MediaDraftRequests = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const MediaRequestModel_1 = require("./MediaRequestModel");
|
|
16
|
+
/**
|
|
17
|
+
* Draft media requests – same structure as media_requests except
|
|
18
|
+
* workflow_execution_id and is_political_option_required_from are excluded.
|
|
19
|
+
*/
|
|
20
|
+
let MediaDraftRequests = class MediaDraftRequests extends BaseModel_1.BaseModel {
|
|
21
|
+
};
|
|
22
|
+
exports.MediaDraftRequests = MediaDraftRequests;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
25
|
+
__metadata("design:type", Object)
|
|
26
|
+
], MediaDraftRequests.prototype, "req_user_department_id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], MediaDraftRequests.prototype, "req_user_section_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], MediaDraftRequests.prototype, "service_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], MediaDraftRequests.prototype, "sub_service_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], MediaDraftRequests.prototype, "user_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({
|
|
45
|
+
type: 'enum',
|
|
46
|
+
enum: MediaRequestModel_1.MediaRequestStatus,
|
|
47
|
+
default: MediaRequestModel_1.MediaRequestStatus.DRAFT,
|
|
48
|
+
nullable: false,
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], MediaDraftRequests.prototype, "status", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], MediaDraftRequests.prototype, "title", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], MediaDraftRequests.prototype, "summary_abstract", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], MediaDraftRequests.prototype, "description", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: MediaRequestModel_1.MediaAuthorPublisher, nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], MediaDraftRequests.prototype, "author_publisher", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: MediaRequestModel_1.MediaCategory, nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], MediaDraftRequests.prototype, "category", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: MediaRequestModel_1.MediaRequestType, nullable: true }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], MediaDraftRequests.prototype, "request_type", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: MediaRequestModel_1.MediaClassification, nullable: true }),
|
|
78
|
+
__metadata("design:type", Object)
|
|
79
|
+
], MediaDraftRequests.prototype, "classification", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], MediaDraftRequests.prototype, "target_audience", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], MediaDraftRequests.prototype, "publish_date", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
90
|
+
__metadata("design:type", Object)
|
|
91
|
+
], MediaDraftRequests.prototype, "expiry_date", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false, nullable: true }),
|
|
94
|
+
__metadata("design:type", Object)
|
|
95
|
+
], MediaDraftRequests.prototype, "hide_flag", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
98
|
+
__metadata("design:type", Object)
|
|
99
|
+
], MediaDraftRequests.prototype, "reason_for_hiding", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: MediaRequestModel_1.MediaNotificationType, nullable: true }),
|
|
102
|
+
__metadata("design:type", Object)
|
|
103
|
+
], MediaDraftRequests.prototype, "notification_type", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: MediaRequestModel_1.MediaYesNo, nullable: true }),
|
|
106
|
+
__metadata("design:type", Object)
|
|
107
|
+
], MediaDraftRequests.prototype, "popup_mandatory", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
110
|
+
__metadata("design:type", Object)
|
|
111
|
+
], MediaDraftRequests.prototype, "popup_duration", void 0);
|
|
112
|
+
exports.MediaDraftRequests = MediaDraftRequests = __decorate([
|
|
113
|
+
(0, typeorm_1.Entity)({ name: 'media_draft_requests' })
|
|
114
|
+
], MediaDraftRequests);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -213,6 +213,8 @@ import { MediaApprovalDetails } from './models/MediaApprovalModel';
|
|
|
213
213
|
import { MediaRequestAttachment } from './models/MediaAttachmentModel';
|
|
214
214
|
import { MediaRequestChat } from './models/MediaChatModel';
|
|
215
215
|
import { MediaWorkFlow } from './models/MediaWorkflowModel';
|
|
216
|
+
import { MediaDraftRequests } from './models/MediaDraftRequestModel';
|
|
217
|
+
import { MediaDraftAttachment } from './models/MediaDraftAttachmentModel';
|
|
216
218
|
import { Projects } from './models/ProjectModel';
|
|
217
219
|
import { Templates } from './models/TemplateModel';
|
|
218
220
|
import { ProjectMilestoneDocuments } from './models/ProjectMilestoneDocumentsModel';
|
|
@@ -436,6 +438,8 @@ export const AppDataSource = new DataSource({
|
|
|
436
438
|
MediaRequestAttachment,
|
|
437
439
|
MediaRequestChat,
|
|
438
440
|
MediaWorkFlow,
|
|
441
|
+
MediaDraftRequests,
|
|
442
|
+
MediaDraftAttachment,
|
|
439
443
|
Projects,
|
|
440
444
|
Templates,
|
|
441
445
|
ProjectMilestoneDocuments,
|
package/src/index.ts
CHANGED
|
@@ -316,6 +316,8 @@ export * from './models/MediaApprovalModel';
|
|
|
316
316
|
export * from './models/MediaAttachmentModel';
|
|
317
317
|
export * from './models/MediaChatModel';
|
|
318
318
|
export * from './models/MediaWorkflowModel';
|
|
319
|
+
export * from './models/MediaDraftRequestModel';
|
|
320
|
+
export * from './models/MediaDraftAttachmentModel';
|
|
319
321
|
export * from './models/ProjectModel';
|
|
320
322
|
export * from './models/TemplateModel';
|
|
321
323
|
export * from './models/ProjectScopeModel';
|
|
@@ -132,5 +132,11 @@ export class AppointmentRequests extends BaseModel {
|
|
|
132
132
|
|
|
133
133
|
@Column({ type: 'boolean', default: false, nullable: true })
|
|
134
134
|
is_gate_pass_applied: boolean | null;
|
|
135
|
+
|
|
136
|
+
@Column({ type: 'text', nullable: true })
|
|
137
|
+
online_appointment_details: string | null;
|
|
138
|
+
|
|
139
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
140
|
+
appointment_link: string | null;
|
|
135
141
|
}
|
|
136
142
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'media_draft_attachments' })
|
|
5
|
+
export class MediaDraftAttachment extends BaseModel {
|
|
6
|
+
@Column({ type: 'integer', nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'integer', nullable: true })
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'integer', nullable: true })
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
16
|
+
file_url: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
19
|
+
file_name: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
22
|
+
file_type: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'bigint', nullable: true })
|
|
25
|
+
file_size: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'integer', nullable: true })
|
|
28
|
+
chat_id: number | null;
|
|
29
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
import {
|
|
4
|
+
MediaRequestStatus,
|
|
5
|
+
MediaAuthorPublisher,
|
|
6
|
+
MediaCategory,
|
|
7
|
+
MediaRequestType,
|
|
8
|
+
MediaClassification,
|
|
9
|
+
MediaNotificationType,
|
|
10
|
+
MediaYesNo,
|
|
11
|
+
} from './MediaRequestModel';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Draft media requests – same structure as media_requests except
|
|
15
|
+
* workflow_execution_id and is_political_option_required_from are excluded.
|
|
16
|
+
*/
|
|
17
|
+
@Entity({ name: 'media_draft_requests' })
|
|
18
|
+
export class MediaDraftRequests extends BaseModel {
|
|
19
|
+
@Column({ type: 'int', nullable: true })
|
|
20
|
+
req_user_department_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'int', nullable: true })
|
|
23
|
+
req_user_section_id: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'int', nullable: true })
|
|
26
|
+
service_id: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'int', nullable: true })
|
|
29
|
+
sub_service_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'int', nullable: false })
|
|
32
|
+
user_id: number;
|
|
33
|
+
|
|
34
|
+
@Column({
|
|
35
|
+
type: 'enum',
|
|
36
|
+
enum: MediaRequestStatus,
|
|
37
|
+
default: MediaRequestStatus.DRAFT,
|
|
38
|
+
nullable: false,
|
|
39
|
+
})
|
|
40
|
+
status: MediaRequestStatus;
|
|
41
|
+
|
|
42
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
43
|
+
title: string | null;
|
|
44
|
+
|
|
45
|
+
@Column({ type: 'text', nullable: true })
|
|
46
|
+
summary_abstract: string | null;
|
|
47
|
+
|
|
48
|
+
@Column({ type: 'text', nullable: true })
|
|
49
|
+
description: string | null;
|
|
50
|
+
|
|
51
|
+
@Column({ type: 'enum', enum: MediaAuthorPublisher, nullable: true })
|
|
52
|
+
author_publisher: MediaAuthorPublisher | null;
|
|
53
|
+
|
|
54
|
+
@Column({ type: 'enum', enum: MediaCategory, nullable: true })
|
|
55
|
+
category: MediaCategory | null;
|
|
56
|
+
|
|
57
|
+
@Column({ type: 'enum', enum: MediaRequestType, nullable: true })
|
|
58
|
+
request_type: MediaRequestType | null;
|
|
59
|
+
|
|
60
|
+
@Column({ type: 'enum', enum: MediaClassification, nullable: true })
|
|
61
|
+
classification: MediaClassification | null;
|
|
62
|
+
|
|
63
|
+
@Column({ type: 'text', nullable: true })
|
|
64
|
+
target_audience: string | null;
|
|
65
|
+
|
|
66
|
+
@Column({ type: 'date', nullable: true })
|
|
67
|
+
publish_date: string | null;
|
|
68
|
+
|
|
69
|
+
@Column({ type: 'date', nullable: true })
|
|
70
|
+
expiry_date: string | null;
|
|
71
|
+
|
|
72
|
+
@Column({ type: 'boolean', default: false, nullable: true })
|
|
73
|
+
hide_flag: boolean | null;
|
|
74
|
+
|
|
75
|
+
@Column({ type: 'text', nullable: true })
|
|
76
|
+
reason_for_hiding: string | null;
|
|
77
|
+
|
|
78
|
+
@Column({ type: 'enum', enum: MediaNotificationType, nullable: true })
|
|
79
|
+
notification_type: MediaNotificationType | null;
|
|
80
|
+
|
|
81
|
+
@Column({ type: 'enum', enum: MediaYesNo, nullable: true })
|
|
82
|
+
popup_mandatory: MediaYesNo | null;
|
|
83
|
+
|
|
84
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
85
|
+
popup_duration: string | null;
|
|
86
|
+
}
|