@platform-modules/civil-aviation-authority 2.2.94 → 2.2.95

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.
@@ -69,6 +69,8 @@ const SecurityAwarenessApprovalModel_1 = require("./models/SecurityAwarenessAppr
69
69
  const SecurityAwarenessAttachmentModel_1 = require("./models/SecurityAwarenessAttachmentModel");
70
70
  const SecurityAwarenessChatModel_1 = require("./models/SecurityAwarenessChatModel");
71
71
  const SecurityAwarenessWorkflowModel_1 = require("./models/SecurityAwarenessWorkflowModel");
72
+ const GroupNamesModel_1 = require("./models/GroupNamesModel");
73
+ const GroupModel_1 = require("./models/GroupModel");
72
74
  exports.AppDataSource = new typeorm_1.DataSource({
73
75
  type: 'postgres',
74
76
  host: process.env.DB_HOST || 'localhost',
@@ -141,6 +143,8 @@ exports.AppDataSource = new typeorm_1.DataSource({
141
143
  SecurityAwarenessApprovalModel_1.SecurityAwarenessApproval,
142
144
  SecurityAwarenessAttachmentModel_1.SecurityAwarenessAttachment,
143
145
  SecurityAwarenessChatModel_1.SecurityAwarenessChat,
144
- SecurityAwarenessWorkflowModel_1.SecurityAwarenessWorkFlow
146
+ SecurityAwarenessWorkflowModel_1.SecurityAwarenessWorkFlow,
147
+ GroupNamesModel_1.GroupNames,
148
+ GroupModel_1.Group
145
149
  ],
146
150
  });
package/dist/index.d.ts CHANGED
@@ -58,3 +58,5 @@ export * from './models/SecurityAwarenessApprovalModel';
58
58
  export * from './models/SecurityAwarenessAttachmentModel';
59
59
  export * from './models/SecurityAwarenessChatModel';
60
60
  export * from './models/SecurityAwarenessWorkflowModel';
61
+ export * from './models/GroupNamesModel';
62
+ export * from './models/GroupModel';
package/dist/index.js CHANGED
@@ -78,3 +78,5 @@ __exportStar(require("./models/SecurityAwarenessApprovalModel"), exports);
78
78
  __exportStar(require("./models/SecurityAwarenessAttachmentModel"), exports);
79
79
  __exportStar(require("./models/SecurityAwarenessChatModel"), exports);
80
80
  __exportStar(require("./models/SecurityAwarenessWorkflowModel"), exports);
81
+ __exportStar(require("./models/GroupNamesModel"), exports);
82
+ __exportStar(require("./models/GroupModel"), exports);
@@ -0,0 +1,16 @@
1
+ /** *
2
+ @author
3
+ Amnet Digital
4
+ @date
5
+ 2024-05-20
6
+ @Model
7
+ Group
8
+ @usage
9
+ Group Information will store
10
+ */
11
+ import { BaseModel } from './BaseModel';
12
+ export declare class Group extends BaseModel {
13
+ group_id: number;
14
+ user_id: number;
15
+ constructor(group_id: number, user_id: number);
16
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /** *
3
+ @author
4
+ Amnet Digital
5
+ @date
6
+ 2024-05-20
7
+ @Model
8
+ Group
9
+ @usage
10
+ Group Information will store
11
+ */
12
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
13
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15
+ 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;
16
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
17
+ };
18
+ var __metadata = (this && this.__metadata) || function (k, v) {
19
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.Group = void 0;
23
+ const typeorm_1 = require("typeorm");
24
+ const BaseModel_1 = require("./BaseModel");
25
+ let Group = class Group extends BaseModel_1.BaseModel {
26
+ constructor(group_id, user_id) {
27
+ super();
28
+ this.group_id = group_id;
29
+ this.user_id = user_id;
30
+ }
31
+ };
32
+ exports.Group = Group;
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
35
+ __metadata("design:type", Number)
36
+ ], Group.prototype, "group_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
39
+ __metadata("design:type", Number)
40
+ ], Group.prototype, "user_id", void 0);
41
+ exports.Group = Group = __decorate([
42
+ (0, typeorm_1.Entity)({ name: 'Groups' }),
43
+ __metadata("design:paramtypes", [Number, Number])
44
+ ], Group);
@@ -0,0 +1,6 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class GroupNames extends BaseModel {
3
+ name: string;
4
+ description: string;
5
+ constructor(name: string, description: string);
6
+ }
@@ -0,0 +1,34 @@
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.GroupNames = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let GroupNames = class GroupNames extends BaseModel_1.BaseModel {
16
+ constructor(name, description) {
17
+ super();
18
+ this.name = name;
19
+ this.description = description;
20
+ }
21
+ };
22
+ exports.GroupNames = GroupNames;
23
+ __decorate([
24
+ (0, typeorm_1.Column)({ nullable: false }),
25
+ __metadata("design:type", String)
26
+ ], GroupNames.prototype, "name", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ nullable: false }),
29
+ __metadata("design:type", String)
30
+ ], GroupNames.prototype, "description", void 0);
31
+ exports.GroupNames = GroupNames = __decorate([
32
+ (0, typeorm_1.Entity)({ name: 'group_names' }),
33
+ __metadata("design:paramtypes", [String, String])
34
+ ], GroupNames);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.2.94",
3
+ "version": "2.2.95",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -67,6 +67,8 @@ import { SecurityAwarenessApproval } from './models/SecurityAwarenessApprovalMod
67
67
  import { SecurityAwarenessAttachment } from './models/SecurityAwarenessAttachmentModel';
68
68
  import { SecurityAwarenessChat } from './models/SecurityAwarenessChatModel';
69
69
  import { SecurityAwarenessWorkFlow } from './models/SecurityAwarenessWorkflowModel';
70
+ import { GroupNames } from './models/GroupNamesModel';
71
+ import { Group } from './models/GroupModel';
70
72
 
71
73
  export const AppDataSource = new DataSource({
72
74
  type: 'postgres',
@@ -140,6 +142,8 @@ export const AppDataSource = new DataSource({
140
142
  SecurityAwarenessApproval,
141
143
  SecurityAwarenessAttachment,
142
144
  SecurityAwarenessChat,
143
- SecurityAwarenessWorkFlow
145
+ SecurityAwarenessWorkFlow,
146
+ GroupNames,
147
+ Group
144
148
  ],
145
149
  });
package/src/index.ts CHANGED
@@ -62,3 +62,5 @@ export * from './models/SecurityAwarenessApprovalModel';
62
62
  export * from './models/SecurityAwarenessAttachmentModel';
63
63
  export * from './models/SecurityAwarenessChatModel';
64
64
  export * from './models/SecurityAwarenessWorkflowModel';
65
+ export * from './models/GroupNamesModel';
66
+ export * from './models/GroupModel';
@@ -0,0 +1,31 @@
1
+ /** *
2
+ @author
3
+ Amnet Digital
4
+ @date
5
+ 2024-05-20
6
+ @Model
7
+ Group
8
+ @usage
9
+ Group Information will store
10
+ */
11
+
12
+ import { Column, Entity } from "typeorm";
13
+ import { BaseModel } from './BaseModel';
14
+
15
+
16
+ @Entity({ name: 'Groups' })
17
+ export class Group extends BaseModel {
18
+
19
+ @Column({ type: 'bigint', nullable: false })
20
+ group_id: number;
21
+
22
+ @Column({ type: 'bigint', nullable: false })
23
+ user_id: number;
24
+
25
+ constructor(group_id: number, user_id: number) {
26
+ super();
27
+ this.group_id = group_id
28
+ this.user_id = user_id
29
+ }
30
+ }
31
+
@@ -0,0 +1,22 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'group_names' })
5
+ export class GroupNames extends BaseModel {
6
+
7
+ @Column({ nullable: false })
8
+ name: string;
9
+
10
+ @Column({ nullable: false })
11
+ description: string;
12
+
13
+ constructor(
14
+ name: string,
15
+ description: string
16
+ ) {
17
+ super();
18
+ this.name = name;
19
+ this.description = description;
20
+ }
21
+ }
22
+