@platform-modules/foreign-ministry 1.3.96 → 1.3.97

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
@@ -183,6 +183,8 @@ export * from './models/RoutingGroupUsersModel';
183
183
  export * from './models/HelpdeskKnowledgeBase';
184
184
  export * from './models/HelpdeskAutoClosureConfig';
185
185
  export * from './models/MilestoneTitleModel';
186
+ export * from './models/WorkScheduleTypeNameModel';
187
+ export * from './models/LocationModel';
186
188
  export * from './models/EmployeeCardRequestsModel';
187
189
  export * from './models/EmployeeCardApprovalsModel';
188
190
  export * from './models/EmployeeCardWorkFlowModel';
package/dist/index.js CHANGED
@@ -217,6 +217,8 @@ __exportStar(require("./models/RoutingGroupUsersModel"), exports);
217
217
  __exportStar(require("./models/HelpdeskKnowledgeBase"), exports);
218
218
  __exportStar(require("./models/HelpdeskAutoClosureConfig"), exports);
219
219
  __exportStar(require("./models/MilestoneTitleModel"), exports);
220
+ __exportStar(require("./models/WorkScheduleTypeNameModel"), exports);
221
+ __exportStar(require("./models/LocationModel"), exports);
220
222
  __exportStar(require("./models/EmployeeCardRequestsModel"), exports);
221
223
  __exportStar(require("./models/EmployeeCardApprovalsModel"), exports);
222
224
  __exportStar(require("./models/EmployeeCardWorkFlowModel"), exports);
@@ -0,0 +1,12 @@
1
+ export declare class Location {
2
+ id: number;
3
+ name: string;
4
+ description: string;
5
+ is_active: boolean;
6
+ is_deleted: boolean;
7
+ created_by: string;
8
+ updated_by: string;
9
+ created_at: Date;
10
+ updated_at: Date;
11
+ constructor(name?: string, description?: string);
12
+ }
@@ -0,0 +1,62 @@
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.Location = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ let Location = class Location {
15
+ constructor(name, description) {
16
+ if (name)
17
+ this.name = name;
18
+ if (description)
19
+ this.description = description;
20
+ }
21
+ };
22
+ exports.Location = Location;
23
+ __decorate([
24
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
25
+ __metadata("design:type", Number)
26
+ ], Location.prototype, "id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
29
+ __metadata("design:type", String)
30
+ ], Location.prototype, "name", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
33
+ __metadata("design:type", String)
34
+ ], Location.prototype, "description", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'boolean', default: true }),
37
+ __metadata("design:type", Boolean)
38
+ ], Location.prototype, "is_active", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'boolean', default: false }),
41
+ __metadata("design:type", Boolean)
42
+ ], Location.prototype, "is_deleted", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
45
+ __metadata("design:type", String)
46
+ ], Location.prototype, "created_by", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
49
+ __metadata("design:type", String)
50
+ ], Location.prototype, "updated_by", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.CreateDateColumn)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
53
+ __metadata("design:type", Date)
54
+ ], Location.prototype, "created_at", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.UpdateDateColumn)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
57
+ __metadata("design:type", Date)
58
+ ], Location.prototype, "updated_at", void 0);
59
+ exports.Location = Location = __decorate([
60
+ (0, typeorm_1.Entity)('locations'),
61
+ __metadata("design:paramtypes", [String, String])
62
+ ], Location);
@@ -10,10 +10,13 @@
10
10
  */
11
11
  import { BaseModel } from './BaseModel';
12
12
  export declare class WorkSchedule extends BaseModel {
13
+ schedule_type_name_id: number | null;
14
+ location_id: number | null;
15
+ number_of_days: number | null;
13
16
  from_date: Date;
14
17
  to_date: Date;
15
18
  from_time: string;
16
19
  to_time: string;
17
20
  reason: string | null;
18
- constructor(from_date: Date, to_date: Date, from_time: string, to_time: string, reason?: string);
21
+ constructor(from_date: Date, to_date: Date, from_time: string, to_time: string, reason?: string, schedule_type_name_id?: number, location_id?: number, number_of_days?: number);
19
22
  }
@@ -23,16 +23,31 @@ exports.WorkSchedule = void 0;
23
23
  const typeorm_1 = require("typeorm");
24
24
  const BaseModel_1 = require("./BaseModel");
25
25
  let WorkSchedule = class WorkSchedule extends BaseModel_1.BaseModel {
26
- constructor(from_date, to_date, from_time, to_time, reason) {
26
+ constructor(from_date, to_date, from_time, to_time, reason, schedule_type_name_id, location_id, number_of_days) {
27
27
  super();
28
28
  this.from_date = from_date;
29
29
  this.to_date = to_date;
30
30
  this.from_time = from_time;
31
31
  this.to_time = to_time;
32
32
  this.reason = reason || null;
33
+ this.schedule_type_name_id = schedule_type_name_id || null;
34
+ this.location_id = location_id || null;
35
+ this.number_of_days = number_of_days || null;
33
36
  }
34
37
  };
35
38
  exports.WorkSchedule = WorkSchedule;
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
41
+ __metadata("design:type", Object)
42
+ ], WorkSchedule.prototype, "schedule_type_name_id", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
45
+ __metadata("design:type", Object)
46
+ ], WorkSchedule.prototype, "location_id", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
49
+ __metadata("design:type", Object)
50
+ ], WorkSchedule.prototype, "number_of_days", void 0);
36
51
  __decorate([
37
52
  (0, typeorm_1.Column)({ type: 'date', nullable: false }),
38
53
  __metadata("design:type", Date)
@@ -56,5 +71,5 @@ __decorate([
56
71
  exports.WorkSchedule = WorkSchedule = __decorate([
57
72
  (0, typeorm_1.Entity)({ name: 'work_schedules' }),
58
73
  __metadata("design:paramtypes", [Date,
59
- Date, String, String, String])
74
+ Date, String, String, String, Number, Number, Number])
60
75
  ], WorkSchedule);
@@ -0,0 +1,12 @@
1
+ export declare class WorkScheduleTypeName {
2
+ id: number;
3
+ name: string;
4
+ description: string;
5
+ is_active: boolean;
6
+ is_deleted: boolean;
7
+ created_by: string;
8
+ updated_by: string;
9
+ created_at: Date;
10
+ updated_at: Date;
11
+ constructor(name?: string, description?: string);
12
+ }
@@ -0,0 +1,62 @@
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.WorkScheduleTypeName = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ let WorkScheduleTypeName = class WorkScheduleTypeName {
15
+ constructor(name, description) {
16
+ if (name)
17
+ this.name = name;
18
+ if (description)
19
+ this.description = description;
20
+ }
21
+ };
22
+ exports.WorkScheduleTypeName = WorkScheduleTypeName;
23
+ __decorate([
24
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
25
+ __metadata("design:type", Number)
26
+ ], WorkScheduleTypeName.prototype, "id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
29
+ __metadata("design:type", String)
30
+ ], WorkScheduleTypeName.prototype, "name", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
33
+ __metadata("design:type", String)
34
+ ], WorkScheduleTypeName.prototype, "description", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'boolean', default: true }),
37
+ __metadata("design:type", Boolean)
38
+ ], WorkScheduleTypeName.prototype, "is_active", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'boolean', default: false }),
41
+ __metadata("design:type", Boolean)
42
+ ], WorkScheduleTypeName.prototype, "is_deleted", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
45
+ __metadata("design:type", String)
46
+ ], WorkScheduleTypeName.prototype, "created_by", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
49
+ __metadata("design:type", String)
50
+ ], WorkScheduleTypeName.prototype, "updated_by", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.CreateDateColumn)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
53
+ __metadata("design:type", Date)
54
+ ], WorkScheduleTypeName.prototype, "created_at", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.UpdateDateColumn)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
57
+ __metadata("design:type", Date)
58
+ ], WorkScheduleTypeName.prototype, "updated_at", void 0);
59
+ exports.WorkScheduleTypeName = WorkScheduleTypeName = __decorate([
60
+ (0, typeorm_1.Entity)('work_schedule_type_names'),
61
+ __metadata("design:paramtypes", [String, String])
62
+ ], WorkScheduleTypeName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.3.96",
3
+ "version": "1.3.97",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -183,6 +183,8 @@ export * from './models/RoutingGroupUsersModel';
183
183
  export * from './models/HelpdeskKnowledgeBase';
184
184
  export * from './models/HelpdeskAutoClosureConfig';
185
185
  export * from './models/MilestoneTitleModel';
186
+ export * from './models/WorkScheduleTypeNameModel';
187
+ export * from './models/LocationModel';
186
188
  export * from './models/EmployeeCardRequestsModel';
187
189
  export * from './models/EmployeeCardApprovalsModel';
188
190
  export * from './models/EmployeeCardWorkFlowModel';
@@ -0,0 +1,42 @@
1
+ import {
2
+ Entity,
3
+ PrimaryGeneratedColumn,
4
+ Column,
5
+ CreateDateColumn,
6
+ UpdateDateColumn
7
+ } from 'typeorm';
8
+
9
+ @Entity('locations')
10
+ export class Location {
11
+ @PrimaryGeneratedColumn()
12
+ id: number;
13
+
14
+ @Column({ type: 'varchar', length: 255, nullable: false })
15
+ name: string;
16
+
17
+ @Column({ type: 'text', nullable: true })
18
+ description: string;
19
+
20
+ @Column({ type: 'boolean', default: true })
21
+ is_active: boolean;
22
+
23
+ @Column({ type: 'boolean', default: false })
24
+ is_deleted: boolean;
25
+
26
+ @Column({ type: 'varchar', nullable: true })
27
+ created_by: string;
28
+
29
+ @Column({ type: 'varchar', nullable: true })
30
+ updated_by: string;
31
+
32
+ @CreateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
33
+ created_at: Date;
34
+
35
+ @UpdateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
36
+ updated_at: Date;
37
+
38
+ constructor(name?: string, description?: string) {
39
+ if (name) this.name = name;
40
+ if (description) this.description = description;
41
+ }
42
+ }
@@ -14,6 +14,15 @@ import { BaseModel } from './BaseModel';
14
14
 
15
15
  @Entity({ name: 'work_schedules' })
16
16
  export class WorkSchedule extends BaseModel {
17
+ @Column({ type: 'int', nullable: true })
18
+ schedule_type_name_id: number | null;
19
+
20
+ @Column({ type: 'int', nullable: true })
21
+ location_id: number | null;
22
+
23
+ @Column({ type: 'int', nullable: true })
24
+ number_of_days: number | null;
25
+
17
26
  @Column({ type: 'date', nullable: false })
18
27
  from_date: Date;
19
28
 
@@ -34,7 +43,10 @@ export class WorkSchedule extends BaseModel {
34
43
  to_date: Date,
35
44
  from_time: string,
36
45
  to_time: string,
37
- reason?: string
46
+ reason?: string,
47
+ schedule_type_name_id?: number,
48
+ location_id?: number,
49
+ number_of_days?: number
38
50
  ) {
39
51
  super();
40
52
  this.from_date = from_date;
@@ -42,6 +54,9 @@ export class WorkSchedule extends BaseModel {
42
54
  this.from_time = from_time;
43
55
  this.to_time = to_time;
44
56
  this.reason = reason || null;
57
+ this.schedule_type_name_id = schedule_type_name_id || null;
58
+ this.location_id = location_id || null;
59
+ this.number_of_days = number_of_days || null;
45
60
  }
46
61
  }
47
62
 
@@ -0,0 +1,42 @@
1
+ import {
2
+ Entity,
3
+ PrimaryGeneratedColumn,
4
+ Column,
5
+ CreateDateColumn,
6
+ UpdateDateColumn
7
+ } from 'typeorm';
8
+
9
+ @Entity('work_schedule_type_names')
10
+ export class WorkScheduleTypeName {
11
+ @PrimaryGeneratedColumn()
12
+ id: number;
13
+
14
+ @Column({ type: 'varchar', length: 255, nullable: false })
15
+ name: string;
16
+
17
+ @Column({ type: 'text', nullable: true })
18
+ description: string;
19
+
20
+ @Column({ type: 'boolean', default: true })
21
+ is_active: boolean;
22
+
23
+ @Column({ type: 'boolean', default: false })
24
+ is_deleted: boolean;
25
+
26
+ @Column({ type: 'varchar', nullable: true })
27
+ created_by: string;
28
+
29
+ @Column({ type: 'varchar', nullable: true })
30
+ updated_by: string;
31
+
32
+ @CreateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
33
+ created_at: Date;
34
+
35
+ @UpdateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
36
+ updated_at: Date;
37
+
38
+ constructor(name?: string, description?: string) {
39
+ if (name) this.name = name;
40
+ if (description) this.description = description;
41
+ }
42
+ }