@platform-modules/civil-aviation-authority 2.3.251 → 2.3.252
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/models/VipHallRequestModel.d.ts +1 -0
- package/dist/models/VipHallRequestModel.js +4 -0
- package/package.json +1 -1
- package/src/data-source.ts +6 -0
- package/src/models/VipHallRequestModel.ts +3 -0
- package/migrations/add_sla_approval_mirror_columns.sql +0 -11
package/dist/data-source.js
CHANGED
|
@@ -250,6 +250,9 @@ const MediaPublicationsApprovalModel_1 = require("./models/MediaPublicationsAppr
|
|
|
250
250
|
const MediaPublicationsAttachmentModel_1 = require("./models/MediaPublicationsAttachmentModel");
|
|
251
251
|
const MediaPublicationsChatModel_1 = require("./models/MediaPublicationsChatModel");
|
|
252
252
|
const MediaPublicationsWorkflowModel_1 = require("./models/MediaPublicationsWorkflowModel");
|
|
253
|
+
const SlaRequestModel_1 = require("./models/SlaRequestModel");
|
|
254
|
+
const ServiceSlaApprovalModel_1 = require("./models/ServiceSlaApprovalModel");
|
|
255
|
+
const SlaConfigModel_1 = require("./models/SlaConfigModel");
|
|
253
256
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
254
257
|
type: 'postgres',
|
|
255
258
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -504,5 +507,8 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
504
507
|
MediaPublicationsAttachmentModel_1.MediaPublicationsAttachment,
|
|
505
508
|
MediaPublicationsChatModel_1.MediaPublicationsChat,
|
|
506
509
|
MediaPublicationsWorkflowModel_1.MediaPublicationsWorkFlow,
|
|
510
|
+
SlaRequestModel_1.SlaRequest,
|
|
511
|
+
ServiceSlaApprovalModel_1.ServiceSlaApproval,
|
|
512
|
+
SlaConfigModel_1.SlaConfig,
|
|
507
513
|
],
|
|
508
514
|
});
|
|
@@ -38,6 +38,7 @@ export declare class VipHallRequests extends BaseModel {
|
|
|
38
38
|
project_maintenance_support_required: boolean;
|
|
39
39
|
number_of_guests: number | null;
|
|
40
40
|
special_requirements: string | null;
|
|
41
|
+
duration: string | null;
|
|
41
42
|
status: VipHallRequestStatus;
|
|
42
43
|
workflow_execution_id: string | null;
|
|
43
44
|
}
|
|
@@ -133,6 +133,10 @@ __decorate([
|
|
|
133
133
|
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
134
134
|
__metadata("design:type", Object)
|
|
135
135
|
], VipHallRequests.prototype, "special_requirements", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
138
|
+
__metadata("design:type", Object)
|
|
139
|
+
], VipHallRequests.prototype, "duration", void 0);
|
|
136
140
|
__decorate([
|
|
137
141
|
(0, typeorm_1.Column)({
|
|
138
142
|
type: "enum",
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -248,6 +248,9 @@ import { MediaPublicationsApprovalDetails } from './models/MediaPublicationsAppr
|
|
|
248
248
|
import { MediaPublicationsAttachment } from './models/MediaPublicationsAttachmentModel';
|
|
249
249
|
import { MediaPublicationsChat } from './models/MediaPublicationsChatModel';
|
|
250
250
|
import { MediaPublicationsWorkFlow } from './models/MediaPublicationsWorkflowModel';
|
|
251
|
+
import { SlaRequest } from './models/SlaRequestModel';
|
|
252
|
+
import { ServiceSlaApproval } from './models/ServiceSlaApprovalModel';
|
|
253
|
+
import { SlaConfig } from './models/SlaConfigModel';
|
|
251
254
|
|
|
252
255
|
export const AppDataSource = new DataSource({
|
|
253
256
|
type: 'postgres',
|
|
@@ -503,5 +506,8 @@ export const AppDataSource = new DataSource({
|
|
|
503
506
|
MediaPublicationsAttachment,
|
|
504
507
|
MediaPublicationsChat,
|
|
505
508
|
MediaPublicationsWorkFlow,
|
|
509
|
+
SlaRequest,
|
|
510
|
+
ServiceSlaApproval,
|
|
511
|
+
SlaConfig,
|
|
506
512
|
],
|
|
507
513
|
});
|
|
@@ -101,6 +101,9 @@ export class VipHallRequests extends BaseModel {
|
|
|
101
101
|
@Column({ type: "text", nullable: true })
|
|
102
102
|
special_requirements: string | null;
|
|
103
103
|
|
|
104
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
105
|
+
duration: string | null;
|
|
106
|
+
|
|
104
107
|
@Column({
|
|
105
108
|
type: "enum",
|
|
106
109
|
enum: VipHallRequestStatus,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
-- Mirrors native approval rows in ServiceSlaApproval (shared_models ServiceSlaApprovalModel).
|
|
2
|
-
-- Required for Conductor SlaTrackingInsertService and SLA dashboard delegate filtering.
|
|
3
|
-
-- Run once against the EmpPortal database (same DB used by Conductor_Server / Asset_Affairs_Service).
|
|
4
|
-
|
|
5
|
-
ALTER TABLE sla_approval
|
|
6
|
-
ADD COLUMN IF NOT EXISTS delegate_user_id INTEGER NULL,
|
|
7
|
-
ADD COLUMN IF NOT EXISTS approved_by INTEGER NULL,
|
|
8
|
-
ADD COLUMN IF NOT EXISTS comment VARCHAR(255) NULL;
|
|
9
|
-
|
|
10
|
-
CREATE INDEX IF NOT EXISTS idx_sla_approval_delegate_user_id
|
|
11
|
-
ON sla_approval (delegate_user_id);
|