@platform-modules/foreign-ministry 1.3.307 → 1.3.309

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,11 +1,12 @@
1
1
  import { BaseModel } from './BaseModel';
2
- export declare enum EmployeeOfMonthSupportNominationMessageType {
3
- TEXT = "text",
4
- IMAGE = "image",
5
- VIDEO = "video",
6
- FILE = "file",
7
- LINK = "link"
8
- }
2
+ export declare const EmployeeOfMonthSupportNominationMessageType: {
3
+ readonly TEXT: "text";
4
+ readonly IMAGE: "image";
5
+ readonly VIDEO: "video";
6
+ readonly FILE: "file";
7
+ readonly LINK: "link";
8
+ };
9
+ export type EmployeeOfMonthSupportNominationMessageType = (typeof EmployeeOfMonthSupportNominationMessageType)[keyof typeof EmployeeOfMonthSupportNominationMessageType];
9
10
  export declare class EmployeeOfMonthSupportNominationRequestChat extends BaseModel {
10
11
  request_id: number;
11
12
  service_id: number | null;
@@ -13,6 +14,6 @@ export declare class EmployeeOfMonthSupportNominationRequestChat extends BaseMod
13
14
  user_id: number;
14
15
  role_id: number | null;
15
16
  message: string;
16
- message_type: EmployeeOfMonthSupportNominationMessageType;
17
+ message_type: string;
17
18
  status: string | null;
18
19
  }
@@ -12,14 +12,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.EmployeeOfMonthSupportNominationRequestChat = exports.EmployeeOfMonthSupportNominationMessageType = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
- var EmployeeOfMonthSupportNominationMessageType;
16
- (function (EmployeeOfMonthSupportNominationMessageType) {
17
- EmployeeOfMonthSupportNominationMessageType["TEXT"] = "text";
18
- EmployeeOfMonthSupportNominationMessageType["IMAGE"] = "image";
19
- EmployeeOfMonthSupportNominationMessageType["VIDEO"] = "video";
20
- EmployeeOfMonthSupportNominationMessageType["FILE"] = "file";
21
- EmployeeOfMonthSupportNominationMessageType["LINK"] = "link";
22
- })(EmployeeOfMonthSupportNominationMessageType || (exports.EmployeeOfMonthSupportNominationMessageType = EmployeeOfMonthSupportNominationMessageType = {}));
15
+ exports.EmployeeOfMonthSupportNominationMessageType = {
16
+ TEXT: 'text',
17
+ IMAGE: 'image',
18
+ VIDEO: 'video',
19
+ FILE: 'file',
20
+ LINK: 'link',
21
+ };
23
22
  let EmployeeOfMonthSupportNominationRequestChat = class EmployeeOfMonthSupportNominationRequestChat extends BaseModel_1.BaseModel {
24
23
  };
25
24
  exports.EmployeeOfMonthSupportNominationRequestChat = EmployeeOfMonthSupportNominationRequestChat;
@@ -49,10 +48,9 @@ __decorate([
49
48
  ], EmployeeOfMonthSupportNominationRequestChat.prototype, "message", void 0);
50
49
  __decorate([
51
50
  (0, typeorm_1.Column)({
52
- type: 'enum',
53
- enum: EmployeeOfMonthSupportNominationMessageType,
54
- enumName: 'eom_support_nomination_message_type_enum',
55
- default: EmployeeOfMonthSupportNominationMessageType.TEXT,
51
+ type: 'varchar',
52
+ length: 32,
53
+ default: exports.EmployeeOfMonthSupportNominationMessageType.TEXT,
56
54
  nullable: false,
57
55
  }),
58
56
  __metadata("design:type", String)
@@ -1,10 +1,11 @@
1
1
  import { BaseModel } from './BaseModel';
2
- export declare enum EmployeeOfMonthSupportNominationRequestStatus {
3
- PENDING = "Pending",
4
- IN_PROGRESS = "In Progress",
5
- APPROVED = "Approved",
6
- REJECTED = "Rejected"
7
- }
2
+ export declare const EmployeeOfMonthSupportNominationRequestStatus: {
3
+ readonly PENDING: "Pending";
4
+ readonly IN_PROGRESS: "In Progress";
5
+ readonly APPROVED: "Approved";
6
+ readonly REJECTED: "Rejected";
7
+ };
8
+ export type EmployeeOfMonthSupportNominationRequestStatus = (typeof EmployeeOfMonthSupportNominationRequestStatus)[keyof typeof EmployeeOfMonthSupportNominationRequestStatus];
8
9
  export type EomSupportNominationRatingScores = {
9
10
  professional_ethics_teamwork: number;
10
11
  additional_responsibilities_adaptability: number;
@@ -21,7 +22,7 @@ export declare class EmployeeOfMonthSupportNominationRequests extends BaseModel
21
22
  job_number: string;
22
23
  last_annual_assessment: string;
23
24
  rating_scores: EomSupportNominationRatingScores;
24
- status: EmployeeOfMonthSupportNominationRequestStatus;
25
+ status: string;
25
26
  workflow_execution_id: string | null;
26
27
  comments: string | null;
27
28
  }
@@ -12,13 +12,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.EmployeeOfMonthSupportNominationRequests = exports.EmployeeOfMonthSupportNominationRequestStatus = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
- var EmployeeOfMonthSupportNominationRequestStatus;
16
- (function (EmployeeOfMonthSupportNominationRequestStatus) {
17
- EmployeeOfMonthSupportNominationRequestStatus["PENDING"] = "Pending";
18
- EmployeeOfMonthSupportNominationRequestStatus["IN_PROGRESS"] = "In Progress";
19
- EmployeeOfMonthSupportNominationRequestStatus["APPROVED"] = "Approved";
20
- EmployeeOfMonthSupportNominationRequestStatus["REJECTED"] = "Rejected";
21
- })(EmployeeOfMonthSupportNominationRequestStatus || (exports.EmployeeOfMonthSupportNominationRequestStatus = EmployeeOfMonthSupportNominationRequestStatus = {}));
15
+ exports.EmployeeOfMonthSupportNominationRequestStatus = {
16
+ PENDING: 'Pending',
17
+ IN_PROGRESS: 'In Progress',
18
+ APPROVED: 'Approved',
19
+ REJECTED: 'Rejected',
20
+ };
22
21
  let EmployeeOfMonthSupportNominationRequests = class EmployeeOfMonthSupportNominationRequests extends BaseModel_1.BaseModel {
23
22
  };
24
23
  exports.EmployeeOfMonthSupportNominationRequests = EmployeeOfMonthSupportNominationRequests;
@@ -56,10 +55,9 @@ __decorate([
56
55
  ], EmployeeOfMonthSupportNominationRequests.prototype, "rating_scores", void 0);
57
56
  __decorate([
58
57
  (0, typeorm_1.Column)({
59
- type: 'enum',
60
- enum: EmployeeOfMonthSupportNominationRequestStatus,
61
- enumName: 'eom_support_nomination_request_status_enum',
62
- default: EmployeeOfMonthSupportNominationRequestStatus.PENDING,
58
+ type: 'varchar',
59
+ length: 32,
60
+ default: exports.EmployeeOfMonthSupportNominationRequestStatus.PENDING,
63
61
  nullable: false,
64
62
  }),
65
63
  __metadata("design:type", String)
@@ -1,10 +1,11 @@
1
1
  import { BaseModel } from './BaseModel';
2
- export declare enum EmployeeOfMonthSupportNominationWorkFlowStatus {
3
- PENDING = "Pending",
4
- IN_PROGRESS = "In Progress",
5
- COMPLETED = "Completed",
6
- FAILED = "Failed"
7
- }
2
+ export declare const EmployeeOfMonthSupportNominationWorkFlowStatus: {
3
+ readonly PENDING: "Pending";
4
+ readonly IN_PROGRESS: "In Progress";
5
+ readonly COMPLETED: "Completed";
6
+ readonly FAILED: "Failed";
7
+ };
8
+ export type EmployeeOfMonthSupportNominationWorkFlowStatus = (typeof EmployeeOfMonthSupportNominationWorkFlowStatus)[keyof typeof EmployeeOfMonthSupportNominationWorkFlowStatus];
8
9
  export declare class EmployeeOfMonthSupportNominationWorkFlow extends BaseModel {
9
10
  request_id: number;
10
11
  service_id: number | null;
@@ -15,5 +16,5 @@ export declare class EmployeeOfMonthSupportNominationWorkFlow extends BaseModel
15
16
  section_id: number | null;
16
17
  task_name: string;
17
18
  description: string | null;
18
- status: EmployeeOfMonthSupportNominationWorkFlowStatus;
19
+ status: string;
19
20
  }
@@ -12,13 +12,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.EmployeeOfMonthSupportNominationWorkFlow = exports.EmployeeOfMonthSupportNominationWorkFlowStatus = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
- var EmployeeOfMonthSupportNominationWorkFlowStatus;
16
- (function (EmployeeOfMonthSupportNominationWorkFlowStatus) {
17
- EmployeeOfMonthSupportNominationWorkFlowStatus["PENDING"] = "Pending";
18
- EmployeeOfMonthSupportNominationWorkFlowStatus["IN_PROGRESS"] = "In Progress";
19
- EmployeeOfMonthSupportNominationWorkFlowStatus["COMPLETED"] = "Completed";
20
- EmployeeOfMonthSupportNominationWorkFlowStatus["FAILED"] = "Failed";
21
- })(EmployeeOfMonthSupportNominationWorkFlowStatus || (exports.EmployeeOfMonthSupportNominationWorkFlowStatus = EmployeeOfMonthSupportNominationWorkFlowStatus = {}));
15
+ exports.EmployeeOfMonthSupportNominationWorkFlowStatus = {
16
+ PENDING: 'Pending',
17
+ IN_PROGRESS: 'In Progress',
18
+ COMPLETED: 'Completed',
19
+ FAILED: 'Failed',
20
+ };
22
21
  let EmployeeOfMonthSupportNominationWorkFlow = class EmployeeOfMonthSupportNominationWorkFlow extends BaseModel_1.BaseModel {
23
22
  };
24
23
  exports.EmployeeOfMonthSupportNominationWorkFlow = EmployeeOfMonthSupportNominationWorkFlow;
@@ -60,10 +59,9 @@ __decorate([
60
59
  ], EmployeeOfMonthSupportNominationWorkFlow.prototype, "description", void 0);
61
60
  __decorate([
62
61
  (0, typeorm_1.Column)({
63
- type: 'enum',
64
- enum: EmployeeOfMonthSupportNominationWorkFlowStatus,
65
- enumName: 'eom_support_nomination_workflow_status_enum',
66
- default: EmployeeOfMonthSupportNominationWorkFlowStatus.PENDING,
62
+ type: 'varchar',
63
+ length: 32,
64
+ default: exports.EmployeeOfMonthSupportNominationWorkFlowStatus.PENDING,
67
65
  nullable: false,
68
66
  }),
69
67
  __metadata("design:type", String)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.3.307",
3
+ "version": "1.3.309",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -1,13 +1,16 @@
1
1
  import { Column, Entity } from 'typeorm';
2
2
  import { BaseModel } from './BaseModel';
3
3
 
4
- export enum EmployeeOfMonthSupportNominationMessageType {
5
- TEXT = 'text',
6
- IMAGE = 'image',
7
- VIDEO = 'video',
8
- FILE = 'file',
9
- LINK = 'link',
10
- }
4
+ export const EmployeeOfMonthSupportNominationMessageType = {
5
+ TEXT: 'text',
6
+ IMAGE: 'image',
7
+ VIDEO: 'video',
8
+ FILE: 'file',
9
+ LINK: 'link',
10
+ } as const;
11
+
12
+ export type EmployeeOfMonthSupportNominationMessageType =
13
+ (typeof EmployeeOfMonthSupportNominationMessageType)[keyof typeof EmployeeOfMonthSupportNominationMessageType];
11
14
 
12
15
  @Entity({ name: 'employee_of_month_support_nomination_chats' })
13
16
  export class EmployeeOfMonthSupportNominationRequestChat extends BaseModel {
@@ -30,13 +33,12 @@ export class EmployeeOfMonthSupportNominationRequestChat extends BaseModel {
30
33
  message: string;
31
34
 
32
35
  @Column({
33
- type: 'enum',
34
- enum: EmployeeOfMonthSupportNominationMessageType,
35
- enumName: 'eom_support_nomination_message_type_enum',
36
+ type: 'varchar',
37
+ length: 32,
36
38
  default: EmployeeOfMonthSupportNominationMessageType.TEXT,
37
39
  nullable: false,
38
40
  })
39
- message_type: EmployeeOfMonthSupportNominationMessageType;
41
+ message_type: string;
40
42
 
41
43
  @Column({ type: 'text', nullable: true })
42
44
  status: string | null;
@@ -1,12 +1,15 @@
1
1
  import { Column, Entity } from 'typeorm';
2
2
  import { BaseModel } from './BaseModel';
3
3
 
4
- export enum EmployeeOfMonthSupportNominationRequestStatus {
5
- PENDING = 'Pending',
6
- IN_PROGRESS = 'In Progress',
7
- APPROVED = 'Approved',
8
- REJECTED = 'Rejected',
9
- }
4
+ export const EmployeeOfMonthSupportNominationRequestStatus = {
5
+ PENDING: 'Pending',
6
+ IN_PROGRESS: 'In Progress',
7
+ APPROVED: 'Approved',
8
+ REJECTED: 'Rejected',
9
+ } as const;
10
+
11
+ export type EmployeeOfMonthSupportNominationRequestStatus =
12
+ (typeof EmployeeOfMonthSupportNominationRequestStatus)[keyof typeof EmployeeOfMonthSupportNominationRequestStatus];
10
13
 
11
14
  export type EomSupportNominationRatingScores = {
12
15
  professional_ethics_teamwork: number;
@@ -43,13 +46,12 @@ export class EmployeeOfMonthSupportNominationRequests extends BaseModel {
43
46
  rating_scores: EomSupportNominationRatingScores;
44
47
 
45
48
  @Column({
46
- type: 'enum',
47
- enum: EmployeeOfMonthSupportNominationRequestStatus,
48
- enumName: 'eom_support_nomination_request_status_enum',
49
+ type: 'varchar',
50
+ length: 32,
49
51
  default: EmployeeOfMonthSupportNominationRequestStatus.PENDING,
50
52
  nullable: false,
51
53
  })
52
- status: EmployeeOfMonthSupportNominationRequestStatus;
54
+ status: string;
53
55
 
54
56
  @Column({ type: 'varchar', length: 255, nullable: true })
55
57
  workflow_execution_id: string | null;
@@ -1,12 +1,15 @@
1
1
  import { Column, Entity } from 'typeorm';
2
2
  import { BaseModel } from './BaseModel';
3
3
 
4
- export enum EmployeeOfMonthSupportNominationWorkFlowStatus {
5
- PENDING = 'Pending',
6
- IN_PROGRESS = 'In Progress',
7
- COMPLETED = 'Completed',
8
- FAILED = 'Failed',
9
- }
4
+ export const EmployeeOfMonthSupportNominationWorkFlowStatus = {
5
+ PENDING: 'Pending',
6
+ IN_PROGRESS: 'In Progress',
7
+ COMPLETED: 'Completed',
8
+ FAILED: 'Failed',
9
+ } as const;
10
+
11
+ export type EmployeeOfMonthSupportNominationWorkFlowStatus =
12
+ (typeof EmployeeOfMonthSupportNominationWorkFlowStatus)[keyof typeof EmployeeOfMonthSupportNominationWorkFlowStatus];
10
13
 
11
14
  @Entity({ name: 'employee_of_month_support_nomination_workflows' })
12
15
  export class EmployeeOfMonthSupportNominationWorkFlow extends BaseModel {
@@ -38,11 +41,10 @@ export class EmployeeOfMonthSupportNominationWorkFlow extends BaseModel {
38
41
  description: string | null;
39
42
 
40
43
  @Column({
41
- type: 'enum',
42
- enum: EmployeeOfMonthSupportNominationWorkFlowStatus,
43
- enumName: 'eom_support_nomination_workflow_status_enum',
44
+ type: 'varchar',
45
+ length: 32,
44
46
  default: EmployeeOfMonthSupportNominationWorkFlowStatus.PENDING,
45
47
  nullable: false,
46
48
  })
47
- status: EmployeeOfMonthSupportNominationWorkFlowStatus;
49
+ status: string;
48
50
  }