@platform-modules/civil-aviation-authority 1.0.1 → 1.0.2

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.
@@ -1,100 +1,100 @@
1
-
2
- import { Column, Entity ,BeforeInsert,BeforeUpdate } from "typeorm";
3
- import { BaseModel } from './BaseModel';
4
-
5
- @Entity({ name: 'users' })
6
- export class User extends BaseModel {
7
-
8
- @Column({ nullable: true })
9
- first_name: string;
10
-
11
- @Column({ nullable: true })
12
- last_name: string;
13
-
14
- @Column({ nullable: true })
15
- full_name: string;
16
-
17
- @Column({ nullable: true })
18
- password: string;
19
-
20
- @Column({ nullable: true })
21
- mobile: string;
22
-
23
- @Column({ nullable: true })
24
- email: string;
25
-
26
- @Column({ nullable: true })
27
- address: string;
28
-
29
- @Column({ nullable: true })
30
- city: string;
31
-
32
- @Column({ nullable: true })
33
- state: string;
34
-
35
- @Column({ nullable: true })
36
- country: string;
37
-
38
- @Column({ nullable: true })
39
- pincode: string;
40
-
41
- @Column({ nullable: true, default: true })
42
- is_active: boolean;
43
-
44
- @Column({ nullable: true })
45
- EncryptPassword: string;
46
-
47
- @Column({ nullable: true })
48
- roleId: number;
49
-
50
- // @Column({ nullable: true })
51
- // contract_start_date: string;
52
-
53
- // @Column({ nullable: true })
54
- // contract_end_date: string;
55
-
56
- @Column({ nullable: true })
57
- company: string;
58
-
59
- constructor(
60
- first_name: string,
61
- last_name: string,
62
- full_name: string,
63
- password: string,
64
- mobile: string,
65
- email: string,
66
- address: string,
67
- city: string,
68
- state: string,
69
- country: string,
70
- pincode: string,
71
- is_active: boolean,
72
- EncryptPassword: string,
73
- roleId: number,
74
- // contract_start_date: string,
75
- // contract_end_date: string,
76
- company: string
77
-
78
- ) {
79
- super();
80
- this.first_name = first_name,
81
- this.last_name = last_name,
82
- this.full_name = full_name ,
83
- this.password = password,
84
- this.EncryptPassword = EncryptPassword,
85
- this.mobile = mobile,
86
- this.email = email,
87
- this.is_active = is_active,
88
- this.address = address,
89
- this.city = city,
90
- this.state = state,
91
- this.country = country,
92
- this.pincode = pincode,
93
- this.roleId = roleId,
94
- // this.contract_start_date = contract_start_date,
95
- // this.contract_end_date = contract_end_date,
96
- this.company = company
97
- }
98
- }
99
-
100
-
1
+
2
+ import { Column, Entity ,BeforeInsert,BeforeUpdate } from "typeorm";
3
+ import { BaseModel } from './BaseModel';
4
+
5
+ @Entity({ name: 'users' })
6
+ export class User extends BaseModel {
7
+
8
+ @Column({ nullable: true })
9
+ first_name: string;
10
+
11
+ @Column({ nullable: true })
12
+ last_name: string;
13
+
14
+ @Column({ nullable: true })
15
+ full_name: string;
16
+
17
+ @Column({ nullable: true })
18
+ password: string;
19
+
20
+ @Column({ nullable: true })
21
+ mobile: string;
22
+
23
+ @Column({ nullable: true })
24
+ email: string;
25
+
26
+ @Column({ nullable: true })
27
+ address: string;
28
+
29
+ @Column({ nullable: true })
30
+ city: string;
31
+
32
+ @Column({ nullable: true })
33
+ state: string;
34
+
35
+ @Column({ nullable: true })
36
+ country: string;
37
+
38
+ @Column({ nullable: true })
39
+ pincode: string;
40
+
41
+ @Column({ nullable: true, default: true })
42
+ is_active: boolean;
43
+
44
+ @Column({ nullable: true })
45
+ EncryptPassword: string;
46
+
47
+ @Column({ nullable: true })
48
+ roleId: number;
49
+
50
+ // @Column({ nullable: true })
51
+ // contract_start_date: string;
52
+
53
+ // @Column({ nullable: true })
54
+ // contract_end_date: string;
55
+
56
+ @Column({ nullable: true })
57
+ company: string;
58
+
59
+ constructor(
60
+ first_name: string,
61
+ last_name: string,
62
+ full_name: string,
63
+ password: string,
64
+ mobile: string,
65
+ email: string,
66
+ address: string,
67
+ city: string,
68
+ state: string,
69
+ country: string,
70
+ pincode: string,
71
+ is_active: boolean,
72
+ EncryptPassword: string,
73
+ roleId: number,
74
+ // contract_start_date: string,
75
+ // contract_end_date: string,
76
+ company: string
77
+
78
+ ) {
79
+ super();
80
+ this.first_name = first_name,
81
+ this.last_name = last_name,
82
+ this.full_name = full_name ,
83
+ this.password = password,
84
+ this.EncryptPassword = EncryptPassword,
85
+ this.mobile = mobile,
86
+ this.email = email,
87
+ this.is_active = is_active,
88
+ this.address = address,
89
+ this.city = city,
90
+ this.state = state,
91
+ this.country = country,
92
+ this.pincode = pincode,
93
+ this.roleId = roleId,
94
+ // this.contract_start_date = contract_start_date,
95
+ // this.contract_end_date = contract_end_date,
96
+ this.company = company
97
+ }
98
+ }
99
+
100
+
package/src/scripts.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { AppDataSource } from './data-source';
2
-
3
- AppDataSource.initialize()
4
- .then(() => {
5
- console.log('✅ Database schema synchronized successfully.');
6
- })
7
- .catch((error: any) => {
8
- console.error('❌ Error during schema synchronization:', error);
9
- process.exit(1);
10
- });
1
+ import { AppDataSource } from './data-source';
2
+
3
+ AppDataSource.initialize()
4
+ .then(() => {
5
+ console.log('✅ Database schema synchronized successfully.');
6
+ })
7
+ .catch((error: any) => {
8
+ console.error('❌ Error during schema synchronization:', error);
9
+ process.exit(1);
10
+ });
package/tsconfig.json CHANGED
@@ -1,16 +1,16 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "module": "CommonJS",
5
- "declaration": true,
6
- "outDir": "./dist",
7
- "strict": true,
8
- "esModuleInterop": true,
9
- "skipLibCheck": true,
10
- "strictPropertyInitialization": false,
11
- "experimentalDecorators": true,
12
- "emitDecoratorMetadata": true
13
- },
14
- "include": ["src"],
15
- "exclude": ["node_modules", "dist"]
16
- }
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "module": "CommonJS",
5
+ "declaration": true,
6
+ "outDir": "./dist",
7
+ "strict": true,
8
+ "esModuleInterop": true,
9
+ "skipLibCheck": true,
10
+ "strictPropertyInitialization": false,
11
+ "experimentalDecorators": true,
12
+ "emitDecoratorMetadata": true
13
+ },
14
+ "include": ["src"],
15
+ "exclude": ["node_modules", "dist"]
16
+ }
package/.env DELETED
@@ -1,5 +0,0 @@
1
- DB_HOST=localhost
2
- DB_PORT=5433
3
- DB_USER=postgres
4
- DB_PASS=123
5
- DB_NAME=CAA
package/.gitkeep DELETED
File without changes
@@ -1,61 +0,0 @@
1
-
2
- import { Column, Entity } from "typeorm";
3
- import { BaseModel } from './BaseModel';
4
- export enum ProblemLevel {
5
- HIGH = "High",
6
- MEDIUM = "Medium",
7
- LOW = "Low",
8
- }
9
- @Entity({ name: 'IT_Help_Desk_Requests' })
10
- export class ITHelpDeskRequests extends BaseModel {
11
-
12
- @Column({ nullable: false })
13
- department: string;
14
-
15
- @Column({ nullable: false })
16
- service_type: string;
17
-
18
- @Column({
19
- type: "enum",
20
- enum: ProblemLevel,
21
- default: ProblemLevel.MEDIUM,
22
- nullable: false,
23
- })
24
- problem: ProblemLevel;
25
-
26
- @Column({ nullable: false })
27
- description: string;
28
-
29
- @Column({ nullable: false })
30
- extn_num: string;
31
-
32
- @Column({ nullable: false })
33
- contact_num: string;
34
-
35
- @Column({ type: "date", nullable: false })
36
- request_date: Date;
37
-
38
- @Column({ nullable: true })
39
- attachment_url: string;
40
-
41
- constructor(
42
- department: string,
43
- service_type: string,
44
- problem: ProblemLevel,
45
- description: string,
46
- extn_num: string,
47
- contact_num: string,
48
- request_date: Date,
49
- attachment_url: string
50
- ) {
51
- super();
52
- this.department = department,
53
- this.service_type = service_type,
54
- this.problem = problem ,
55
- this.description = description,
56
- this.extn_num = extn_num,
57
- this.contact_num = contact_num,
58
- this.request_date = request_date,
59
- this.attachment_url = attachment_url
60
- }
61
- }