fams-ts 1.0.3 → 1.0.5

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.
@@ -2,38 +2,162 @@
2
2
  * Auto-generated by custom Python script.
3
3
  * Do not edit manually.
4
4
  */
5
- export interface Body_add_approval_comment_approvals__id__comment__post {
6
- userId: string;
5
+ export interface AIEDetailResponse {
6
+ id: string;
7
+ budgetHeadCode: string;
8
+ referenceNo: string;
9
+ amount: number;
10
+ purpose?: string;
11
+ status: string;
12
+ createdAt: string;
13
+ }
14
+ export interface AddApprovalCommentRequest {
7
15
  comment: string;
8
16
  }
9
- export interface Body_add_approval_instruction_approvals__id__instruction__post {
10
- createdBy: string;
17
+ export interface AddApprovalInstructionRequest {
11
18
  instruction: string;
12
19
  amount: number;
13
20
  payTo: string;
14
21
  payFrom: string;
15
22
  authority: string;
16
23
  }
17
- export interface Body_create_authority_approvals_authority__post {
24
+ export interface ApprovalCommentResponse {
25
+ id: string;
26
+ commentedBy?: string;
27
+ comment: string;
28
+ createdAt: string;
29
+ }
30
+ export interface ApprovalDocumentUrlResponse {
31
+ id: string;
32
+ documentUrl: string;
33
+ }
34
+ export interface ApprovalInstructionResponse {
35
+ id: string;
36
+ createdBy?: string;
37
+ instruction: string;
38
+ amount: number;
39
+ payToId: string;
40
+ payFromCode: string;
41
+ authorityId: string;
42
+ aieReference?: string;
43
+ aie?: AIEDetailResponse;
44
+ createdAt: string;
45
+ }
46
+ export interface ApprovalStatusResponse {
47
+ id: string;
48
+ status: string;
49
+ currentStage?: string;
50
+ }
51
+ export interface ApprovePaymentApprovalRequest {
52
+ nextStage: string;
53
+ comment?: string;
54
+ processMetadata?: string;
55
+ }
56
+ export interface AttachmentResponse {
57
+ id: string;
58
+ fileUrl: string;
59
+ fileName: string;
60
+ description?: string;
61
+ uploadedBy?: string;
62
+ createdAt?: string;
63
+ }
64
+ export interface AuthorityResponse {
65
+ id: string;
66
+ name: string;
67
+ role: string;
68
+ reference: string;
69
+ }
70
+ export interface Body_upload_attachment_approvals__id__attach__post {
71
+ file: string;
72
+ description?: string;
73
+ }
74
+ export interface Body_upload_payment_approval_approvals_upload__post {
75
+ file: string;
76
+ processMetadata?: string;
77
+ }
78
+ export interface CreateAuthorityRequest {
18
79
  name: string;
19
80
  role: string;
20
81
  reference: string;
21
82
  }
22
- export interface Body_create_destination_approvals_destination__post {
83
+ export interface CreateDestinationRequest {
23
84
  name: string;
24
85
  type: string;
25
86
  reference: string;
26
87
  }
27
- export interface Body_upload_payment_approval_approvals_upload__post {
28
- paymentId: string;
29
- createdBy: string;
30
- file: string;
88
+ export interface DestinationResponse {
89
+ id: string;
90
+ name: string;
91
+ type: string;
92
+ reference: string;
93
+ }
94
+ export interface GLPostingResponse {
95
+ id: string;
96
+ glPosted: boolean;
31
97
  }
32
98
  export interface HTTPValidationError {
33
99
  detail?: ValidationError[];
34
100
  }
101
+ export interface PaymentApprovalDetailResponse {
102
+ id: string;
103
+ paymentId: string;
104
+ documentUrl: string;
105
+ status: string;
106
+ currentStage?: string;
107
+ pvNumber?: string;
108
+ voucher?: PaymentVoucherDetailResponse;
109
+ glPosted?: boolean;
110
+ processMetadata?: any;
111
+ createdBy?: string;
112
+ createdAt: string;
113
+ attachments?: AttachmentResponse[];
114
+ comments?: ApprovalCommentResponse[];
115
+ instructions?: ApprovalInstructionResponse[];
116
+ }
117
+ export interface PaymentApprovalResponse {
118
+ id: string;
119
+ paymentId: string;
120
+ documentUrl: string;
121
+ status: string;
122
+ currentStage?: string;
123
+ processMetadata?: any;
124
+ }
125
+ export interface PaymentApprovalSummaryResponse {
126
+ id: string;
127
+ paymentId: string;
128
+ status: string;
129
+ currentStage?: string;
130
+ createdBy?: string;
131
+ createdAt: string;
132
+ documentUrl: string;
133
+ processMetadata?: any;
134
+ }
135
+ export interface PaymentStatusResponse {
136
+ id: string;
137
+ status: string;
138
+ }
139
+ export interface PaymentVoucherDetailResponse {
140
+ id: string;
141
+ pvNumber: string;
142
+ amount: number;
143
+ payeeName: string;
144
+ description?: string;
145
+ status: string;
146
+ createdAt: string;
147
+ }
148
+ export interface RejectPaymentApprovalRequest {
149
+ reason: string;
150
+ }
151
+ export interface ReturnPaymentApprovalRequest {
152
+ reason: string;
153
+ targetStage?: string;
154
+ }
35
155
  export interface ValidationError {
36
156
  loc: number | string[];
37
157
  msg: string;
38
158
  type: string;
39
159
  }
160
+ export interface VoucherResponse {
161
+ id: string;
162
+ pvNumber: string;
163
+ }
package/dist/budget.d.ts CHANGED
@@ -15,6 +15,23 @@ export interface AIEResponse {
15
15
  amount: string;
16
16
  purpose: string;
17
17
  status: string;
18
+ instructionId?: string;
19
+ createdAt: string;
20
+ }
21
+ export interface BudgetHeadCreateRequest {
22
+ code: string;
23
+ name: string;
24
+ accountCode: string;
25
+ appropriation: number | string;
26
+ }
27
+ export interface BudgetHeadResponse {
28
+ id: string;
29
+ code: string;
30
+ name: string;
31
+ accountCode: string;
32
+ appropriation: string;
33
+ commitments: string;
34
+ available: string;
18
35
  }
19
36
  export interface HTTPValidationError {
20
37
  detail?: ValidationError[];
package/dist/index.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  * Auto-generated index.
3
3
  */
4
4
  export { AccountCreateRequest, AccountResponse, Body_open_period_master_periods_open__period_code___post, HTTPValidationError, OpeningBalanceRequest, OpeningBalanceResponse, PeriodResponse, ValidationError } from './account';
5
- export { Body_add_approval_comment_approvals__id__comment__post, Body_add_approval_instruction_approvals__id__instruction__post, Body_create_authority_approvals_authority__post, Body_create_destination_approvals_destination__post, Body_upload_payment_approval_approvals_upload__post } from './approvals';
5
+ export { AIEDetailResponse, AddApprovalCommentRequest, AddApprovalInstructionRequest, ApprovalCommentResponse, ApprovalDocumentUrlResponse, ApprovalInstructionResponse, ApprovalStatusResponse, ApprovePaymentApprovalRequest, AttachmentResponse, AuthorityResponse, Body_upload_attachment_approvals__id__attach__post, Body_upload_payment_approval_approvals_upload__post, CreateAuthorityRequest, CreateDestinationRequest, DestinationResponse, GLPostingResponse, PaymentApprovalDetailResponse, PaymentApprovalResponse, PaymentApprovalSummaryResponse, PaymentStatusResponse, PaymentVoucherDetailResponse, RejectPaymentApprovalRequest, ReturnPaymentApprovalRequest, VoucherResponse } from './approvals';
6
6
  export { ActiveSessionSchema, AssignUserRoleSchema, ChangePasswordSchema, CreateDepartmentSchema, CreatePermissionSchema, CreateRoleSchema, DepartmentSchema, LoginResponseSchema, PermissionSchema, RefreshTokenSchema, RoleSchema, SessionSchema, UpdateRoleSchema, UserInfoSchema, UserLoginSchema, UserRegisterSchema } from './auth';
7
- export { AIERequest, AIEResponse } from './budget';
7
+ export { AIERequest, AIEResponse, BudgetHeadCreateRequest, BudgetHeadResponse } from './budget';
8
8
  export { PaymentLineCreateRequest, PaymentLineResponse, PaymentVoucherCreateRequest, PaymentVoucherResponse } from './expenditure';
9
9
  export { RecordReceipt } from './receipts';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fams-ts",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "TypeScript types for FAMS Backend (Auto-generated)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",