@platform-modules/civil-aviation-authority 2.3.46 → 2.3.47

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/index.d.ts CHANGED
@@ -190,6 +190,8 @@ export { NewResourceRequestStatus } from './models/NewResourceRequestModel';
190
190
  export * from './models/CountryMasterModel';
191
191
  export * from './models/LocationModel';
192
192
  export * from './models/NationalityMasterModel';
193
+ export * from './models/ServicesNotificationConfigModel';
194
+ export { ServicesNotificationTriggerType } from './models/ServicesNotificationConfigModel';
193
195
  export * from './models/TrainingRoomNotificationConfigModel';
194
196
  export { NotificationFrequency } from './models/TrainingRoomNotificationConfigModel';
195
197
  export * from './models/MissionTravelPassportExpiryNotificationConfigModel';
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.RequestForCoverageWorkFlowStatus = exports.RequestForCoverageNewsSize = exports.RequestForCoverageRequestStatus = exports.ServiceTransferRequestType = exports.SalaryDetailsType = exports.ServiceTransferRequestStatus = exports.TemporaryAssignmentRequestType = exports.TemporaryAssignmentRequestStatus = exports.SecondmentRequestStatus = exports.TrainingRoomBookingChatStatus = exports.TrainingRoomBookingMessageType = exports.TrainingRoomBookingRequestChat = exports.TrainingRoomBookingRequestAttachment = exports.TrainingRoomBookingWorkFlowStatus = exports.TrainingRoomBookingApprovalStatus = exports.TrainingRoomBookingRoomType = exports.TrainingRoomBookingRequestStatus = exports.AnnualTrainingPlanChatStatus = exports.AnnualTrainingPlanMessageType = exports.AnnualTrainingPlanRequestChat = exports.AnnualTrainingPlanRequestAttachment = exports.AnnualTrainingPlanWorkFlowStatus = exports.AnnualTrainingPlanApprovalStatus = exports.AnnualTrainingPlanPlace = exports.AnnualTrainingPlanRequestStatus = exports.StudyLeaveChatStatus = exports.StudyLeaveMessageType = exports.StudyLeaveRequestChat = exports.StudyLeaveRequestAttachment = exports.StudyLeaveWorkFlowStatus = exports.StudyLeaveApprovalStatus = exports.StudyLeaveRequestStatus = exports.TrainingMessageType = exports.TrainingRequestChat = exports.TrainingRequestAttachment = exports.TrainingWorkFlowStatus = exports.TrainingApprovalStatus = exports.TrainingRequestStatus = exports.HrServiceChatStatus = exports.HrServiceMessageType = exports.HrServiceRequestChat = exports.HrServiceRequestAttachment = exports.HrServiceWorkFlowStatus = exports.HrServiceApprovalStatus = exports.HrServiceRequestStatus = exports.LogisticsVehicleMaintenanceWorkFlowStatus = exports.LogisticsVehicleMaintenanceMessageType = exports.LogisticsVehicleMaintenanceApprovalStatus = exports.VehicleMaintenanceStatus = exports.VehicleMaintenanceType = void 0;
18
- exports.NotificationFrequency = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = void 0;
18
+ exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = void 0;
19
19
  __exportStar(require("./models/user"), exports);
20
20
  __exportStar(require("./models/role"), exports);
21
21
  __exportStar(require("./models/user-sessions"), exports);
@@ -283,7 +283,11 @@ __exportStar(require("./models/CountryMasterModel"), exports);
283
283
  __exportStar(require("./models/LocationModel"), exports);
284
284
  // Nationality Master
285
285
  __exportStar(require("./models/NationalityMasterModel"), exports);
286
- // Training Room Notification Configuration
286
+ // Services Notification Configuration
287
+ __exportStar(require("./models/ServicesNotificationConfigModel"), exports);
288
+ var ServicesNotificationConfigModel_1 = require("./models/ServicesNotificationConfigModel");
289
+ Object.defineProperty(exports, "ServicesNotificationTriggerType", { enumerable: true, get: function () { return ServicesNotificationConfigModel_1.ServicesNotificationTriggerType; } });
290
+ // Training Room Notification Configuration (deprecated - use ServicesNotificationConfigModel)
287
291
  __exportStar(require("./models/TrainingRoomNotificationConfigModel"), exports);
288
292
  var TrainingRoomNotificationConfigModel_1 = require("./models/TrainingRoomNotificationConfigModel");
289
293
  Object.defineProperty(exports, "NotificationFrequency", { enumerable: true, get: function () { return TrainingRoomNotificationConfigModel_1.NotificationFrequency; } });
@@ -0,0 +1,12 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum ServicesNotificationTriggerType {
3
+ FINAL_APPROVAL = "final_approval",
4
+ EVERY_APPROVAL = "every_approval"
5
+ }
6
+ export declare class ServicesNotificationConfigs extends BaseModel {
7
+ department_id: number;
8
+ section_id: number | null;
9
+ trigger: ServicesNotificationTriggerType;
10
+ is_active: boolean;
11
+ constructor(department_id: number, section_id?: number | null, trigger?: ServicesNotificationTriggerType, is_active?: boolean);
12
+ }
@@ -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.ServicesNotificationConfigs = exports.ServicesNotificationTriggerType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var ServicesNotificationTriggerType;
16
+ (function (ServicesNotificationTriggerType) {
17
+ ServicesNotificationTriggerType["FINAL_APPROVAL"] = "final_approval";
18
+ ServicesNotificationTriggerType["EVERY_APPROVAL"] = "every_approval";
19
+ })(ServicesNotificationTriggerType || (exports.ServicesNotificationTriggerType = ServicesNotificationTriggerType = {}));
20
+ let ServicesNotificationConfigs = class ServicesNotificationConfigs extends BaseModel_1.BaseModel {
21
+ constructor(department_id, section_id = null, trigger = ServicesNotificationTriggerType.FINAL_APPROVAL, is_active = true) {
22
+ super();
23
+ this.department_id = department_id;
24
+ this.section_id = section_id;
25
+ this.trigger = trigger;
26
+ this.is_active = is_active;
27
+ }
28
+ };
29
+ exports.ServicesNotificationConfigs = ServicesNotificationConfigs;
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
32
+ __metadata("design:type", Number)
33
+ ], ServicesNotificationConfigs.prototype, "department_id", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], ServicesNotificationConfigs.prototype, "section_id", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({
40
+ type: "enum",
41
+ enum: ServicesNotificationTriggerType,
42
+ nullable: false,
43
+ default: ServicesNotificationTriggerType.FINAL_APPROVAL
44
+ }),
45
+ __metadata("design:type", String)
46
+ ], ServicesNotificationConfigs.prototype, "trigger", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: "boolean", nullable: false, default: true }),
49
+ __metadata("design:type", Boolean)
50
+ ], ServicesNotificationConfigs.prototype, "is_active", void 0);
51
+ exports.ServicesNotificationConfigs = ServicesNotificationConfigs = __decorate([
52
+ (0, typeorm_1.Entity)({ name: "services_notification_configs" }),
53
+ __metadata("design:paramtypes", [Number, Object, String, Boolean])
54
+ ], ServicesNotificationConfigs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.46",
3
+ "version": "2.3.47",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -206,7 +206,11 @@ export * from './models/LocationModel';
206
206
  // Nationality Master
207
207
  export * from './models/NationalityMasterModel';
208
208
 
209
- // Training Room Notification Configuration
209
+ // Services Notification Configuration
210
+ export * from './models/ServicesNotificationConfigModel';
211
+ export { ServicesNotificationTriggerType } from './models/ServicesNotificationConfigModel';
212
+
213
+ // Training Room Notification Configuration (deprecated - use ServicesNotificationConfigModel)
210
214
  export * from './models/TrainingRoomNotificationConfigModel';
211
215
  export {NotificationFrequency} from './models/TrainingRoomNotificationConfigModel';
212
216
 
@@ -0,0 +1,40 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum ServicesNotificationTriggerType {
5
+ FINAL_APPROVAL = "final_approval",
6
+ EVERY_APPROVAL = "every_approval"
7
+ }
8
+
9
+ @Entity({ name: "services_notification_configs" })
10
+ export class ServicesNotificationConfigs extends BaseModel {
11
+ @Column({ type: "integer", nullable: false })
12
+ department_id: number;
13
+
14
+ @Column({ type: "integer", nullable: true })
15
+ section_id: number | null;
16
+
17
+ @Column({
18
+ type: "enum",
19
+ enum: ServicesNotificationTriggerType,
20
+ nullable: false,
21
+ default: ServicesNotificationTriggerType.FINAL_APPROVAL
22
+ })
23
+ trigger: ServicesNotificationTriggerType;
24
+
25
+ @Column({ type: "boolean", nullable: false, default: true })
26
+ is_active: boolean;
27
+
28
+ constructor(
29
+ department_id: number,
30
+ section_id: number | null = null,
31
+ trigger: ServicesNotificationTriggerType = ServicesNotificationTriggerType.FINAL_APPROVAL,
32
+ is_active: boolean = true
33
+ ) {
34
+ super();
35
+ this.department_id = department_id;
36
+ this.section_id = section_id;
37
+ this.trigger = trigger;
38
+ this.is_active = is_active;
39
+ }
40
+ }