@platform-modules/foreign-ministry 1.3.259 → 1.3.261

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
@@ -81,6 +81,7 @@ export * from './models/MissionBankAccountAttachmentModel';
81
81
  export * from './models/MissionBankAccountChatModel';
82
82
  export * from './models/MissionBankAccountWorkflowModel';
83
83
  export * from './models/AnnualTravelTicketRequestModel';
84
+ export * from './models/AmbassadorSpecialAccountAmountRequestModel';
84
85
  export * from './models/StayAfterHoursRequestModel';
85
86
  export * from './models/StayAfterHoursApprovalModel';
86
87
  export * from './models/StayAfterHoursAttachmentModel';
package/dist/index.js CHANGED
@@ -98,6 +98,7 @@ __exportStar(require("./models/MissionBankAccountAttachmentModel"), exports);
98
98
  __exportStar(require("./models/MissionBankAccountChatModel"), exports);
99
99
  __exportStar(require("./models/MissionBankAccountWorkflowModel"), exports);
100
100
  __exportStar(require("./models/AnnualTravelTicketRequestModel"), exports);
101
+ __exportStar(require("./models/AmbassadorSpecialAccountAmountRequestModel"), exports);
101
102
  __exportStar(require("./models/StayAfterHoursRequestModel"), exports);
102
103
  __exportStar(require("./models/StayAfterHoursApprovalModel"), exports);
103
104
  __exportStar(require("./models/StayAfterHoursAttachmentModel"), exports);
@@ -0,0 +1,25 @@
1
+ import { BaseModel } from './BaseModel';
2
+ /** Same lifecycle labels as mission bank account for shared workflow tables. */
3
+ export declare enum AmbassadorSpecialAccountAmountRequestStatus {
4
+ PENDING = "Pending",
5
+ ASSIGNED = "Assigned",
6
+ IN_PROGRESS = "In Progress",
7
+ APPROVED = "Approved",
8
+ REJECTED = "Rejected"
9
+ }
10
+ export declare class AmbassadorSpecialAccountAmountRequests extends BaseModel {
11
+ req_user_department_id: number | null;
12
+ req_user_section_id: number | null;
13
+ service_id: number | null;
14
+ sub_service_id: number | null;
15
+ user_id: number;
16
+ ambassador_name: string;
17
+ amount_required: string | number;
18
+ amount_spent_last_year: string | number;
19
+ /** Summary / references for past-year invoices; file copies use attachments API. */
20
+ invoices_past_year: string;
21
+ /** Calendar year this special account request applies to (one request per year). */
22
+ request_for_year: number;
23
+ status: AmbassadorSpecialAccountAmountRequestStatus;
24
+ workflow_execution_id: string | null;
25
+ }
@@ -0,0 +1,82 @@
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.AmbassadorSpecialAccountAmountRequests = exports.AmbassadorSpecialAccountAmountRequestStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ /** Same lifecycle labels as mission bank account for shared workflow tables. */
16
+ var AmbassadorSpecialAccountAmountRequestStatus;
17
+ (function (AmbassadorSpecialAccountAmountRequestStatus) {
18
+ AmbassadorSpecialAccountAmountRequestStatus["PENDING"] = "Pending";
19
+ AmbassadorSpecialAccountAmountRequestStatus["ASSIGNED"] = "Assigned";
20
+ AmbassadorSpecialAccountAmountRequestStatus["IN_PROGRESS"] = "In Progress";
21
+ AmbassadorSpecialAccountAmountRequestStatus["APPROVED"] = "Approved";
22
+ AmbassadorSpecialAccountAmountRequestStatus["REJECTED"] = "Rejected";
23
+ })(AmbassadorSpecialAccountAmountRequestStatus || (exports.AmbassadorSpecialAccountAmountRequestStatus = AmbassadorSpecialAccountAmountRequestStatus = {}));
24
+ let AmbassadorSpecialAccountAmountRequests = class AmbassadorSpecialAccountAmountRequests extends BaseModel_1.BaseModel {
25
+ };
26
+ exports.AmbassadorSpecialAccountAmountRequests = AmbassadorSpecialAccountAmountRequests;
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
29
+ __metadata("design:type", Object)
30
+ ], AmbassadorSpecialAccountAmountRequests.prototype, "req_user_department_id", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
33
+ __metadata("design:type", Object)
34
+ ], AmbassadorSpecialAccountAmountRequests.prototype, "req_user_section_id", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
37
+ __metadata("design:type", Object)
38
+ ], AmbassadorSpecialAccountAmountRequests.prototype, "service_id", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
41
+ __metadata("design:type", Object)
42
+ ], AmbassadorSpecialAccountAmountRequests.prototype, "sub_service_id", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
45
+ __metadata("design:type", Number)
46
+ ], AmbassadorSpecialAccountAmountRequests.prototype, "user_id", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
49
+ __metadata("design:type", String)
50
+ ], AmbassadorSpecialAccountAmountRequests.prototype, "ambassador_name", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 15, scale: 2, nullable: false }),
53
+ __metadata("design:type", Object)
54
+ ], AmbassadorSpecialAccountAmountRequests.prototype, "amount_required", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 15, scale: 2, nullable: false }),
57
+ __metadata("design:type", Object)
58
+ ], AmbassadorSpecialAccountAmountRequests.prototype, "amount_spent_last_year", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
61
+ __metadata("design:type", String)
62
+ ], AmbassadorSpecialAccountAmountRequests.prototype, "invoices_past_year", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
65
+ __metadata("design:type", Number)
66
+ ], AmbassadorSpecialAccountAmountRequests.prototype, "request_for_year", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.Column)({
69
+ type: 'enum',
70
+ enum: AmbassadorSpecialAccountAmountRequestStatus,
71
+ default: AmbassadorSpecialAccountAmountRequestStatus.PENDING,
72
+ nullable: false,
73
+ }),
74
+ __metadata("design:type", String)
75
+ ], AmbassadorSpecialAccountAmountRequests.prototype, "status", void 0);
76
+ __decorate([
77
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
78
+ __metadata("design:type", Object)
79
+ ], AmbassadorSpecialAccountAmountRequests.prototype, "workflow_execution_id", void 0);
80
+ exports.AmbassadorSpecialAccountAmountRequests = AmbassadorSpecialAccountAmountRequests = __decorate([
81
+ (0, typeorm_1.Entity)({ name: 'ambassador_special_account_amount_requests' })
82
+ ], AmbassadorSpecialAccountAmountRequests);
@@ -35,11 +35,11 @@ __decorate([
35
35
  __metadata("design:type", Object)
36
36
  ], MissionBankAccountApprovalDetails.prototype, "sub_service_id", void 0);
37
37
  __decorate([
38
- (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
38
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
39
39
  __metadata("design:type", Number)
40
40
  ], MissionBankAccountApprovalDetails.prototype, "level", void 0);
41
41
  __decorate([
42
- (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
42
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
43
43
  __metadata("design:type", Number)
44
44
  ], MissionBankAccountApprovalDetails.prototype, "approver_role_id", void 0);
45
45
  __decorate([
@@ -28,7 +28,7 @@ __decorate([
28
28
  __metadata("design:type", Object)
29
29
  ], MissionBankAccountRequestAttachment.prototype, "sub_service_id", void 0);
30
30
  __decorate([
31
- (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
31
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
32
32
  __metadata("design:type", String)
33
33
  ], MissionBankAccountRequestAttachment.prototype, "file_url", void 0);
34
34
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.3.259",
3
+ "version": "1.3.261",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -81,6 +81,7 @@ export * from './models/MissionBankAccountAttachmentModel';
81
81
  export * from './models/MissionBankAccountChatModel';
82
82
  export * from './models/MissionBankAccountWorkflowModel';
83
83
  export * from './models/AnnualTravelTicketRequestModel';
84
+ export * from './models/AmbassadorSpecialAccountAmountRequestModel';
84
85
  export * from './models/StayAfterHoursRequestModel';
85
86
  export * from './models/StayAfterHoursApprovalModel';
86
87
  export * from './models/StayAfterHoursAttachmentModel';
@@ -0,0 +1,57 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ /** Same lifecycle labels as mission bank account for shared workflow tables. */
5
+ export enum AmbassadorSpecialAccountAmountRequestStatus {
6
+ PENDING = 'Pending',
7
+ ASSIGNED = 'Assigned',
8
+ IN_PROGRESS = 'In Progress',
9
+ APPROVED = 'Approved',
10
+ REJECTED = 'Rejected',
11
+ }
12
+
13
+ @Entity({ name: 'ambassador_special_account_amount_requests' })
14
+ export class AmbassadorSpecialAccountAmountRequests extends BaseModel {
15
+ @Column({ type: 'int', nullable: true })
16
+ req_user_department_id: number | null;
17
+
18
+ @Column({ type: 'int', nullable: true })
19
+ req_user_section_id: number | null;
20
+
21
+ @Column({ type: 'int', nullable: true })
22
+ service_id: number | null;
23
+
24
+ @Column({ type: 'int', nullable: true })
25
+ sub_service_id: number | null;
26
+
27
+ @Column({ type: 'int', nullable: false })
28
+ user_id: number;
29
+
30
+ @Column({ type: 'varchar', length: 255, nullable: false })
31
+ ambassador_name: string;
32
+
33
+ @Column({ type: 'decimal', precision: 15, scale: 2, nullable: false })
34
+ amount_required: string | number;
35
+
36
+ @Column({ type: 'decimal', precision: 15, scale: 2, nullable: false })
37
+ amount_spent_last_year: string | number;
38
+
39
+ /** Summary / references for past-year invoices; file copies use attachments API. */
40
+ @Column({ type: 'text', nullable: false })
41
+ invoices_past_year: string;
42
+
43
+ /** Calendar year this special account request applies to (one request per year). */
44
+ @Column({ type: 'int', nullable: false })
45
+ request_for_year: number;
46
+
47
+ @Column({
48
+ type: 'enum',
49
+ enum: AmbassadorSpecialAccountAmountRequestStatus,
50
+ default: AmbassadorSpecialAccountAmountRequestStatus.PENDING,
51
+ nullable: false,
52
+ })
53
+ status: AmbassadorSpecialAccountAmountRequestStatus;
54
+
55
+ @Column({ type: 'varchar', nullable: true })
56
+ workflow_execution_id: string | null;
57
+ }
@@ -19,10 +19,10 @@ export class MissionBankAccountApprovalDetails extends BaseModel {
19
19
  @Column({ type: 'integer', nullable: true })
20
20
  sub_service_id: number | null;
21
21
 
22
- @Column({ type: 'integer', nullable: false })
22
+ @Column({ type: 'integer', nullable: true })
23
23
  level: number;
24
24
 
25
- @Column({ type: 'integer', nullable: false })
25
+ @Column({ type: 'integer', nullable: true })
26
26
  approver_role_id: number;
27
27
 
28
28
  @Column({ type: 'integer', nullable: true })
@@ -13,7 +13,7 @@ export class MissionBankAccountRequestAttachment extends BaseModel {
13
13
  @Column({ type: 'integer', nullable: true })
14
14
  sub_service_id: number | null;
15
15
 
16
- @Column({ type: 'varchar', length: 500, nullable: false })
16
+ @Column({ type: 'varchar', length: 500, nullable: true })
17
17
  file_url: string;
18
18
 
19
19
  @Column({ type: 'varchar', length: 255, nullable: true })