fams-ts 1.0.4 → 1.0.6

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.
@@ -21,6 +21,16 @@ export interface AddApprovalInstructionRequest {
21
21
  payFrom: string;
22
22
  authority: string;
23
23
  }
24
+ export interface AddApprovalToFolderRequest {
25
+ approvalId: string;
26
+ }
27
+ export interface AddApprovalToFolderResponse {
28
+ id: string;
29
+ folderId: string;
30
+ approvalId: string;
31
+ addedBy: string;
32
+ addedAt: string;
33
+ }
24
34
  export interface ApprovalCommentResponse {
25
35
  id: string;
26
36
  commentedBy?: string;
@@ -49,7 +59,7 @@ export interface ApprovalStatusResponse {
49
59
  currentStage?: string;
50
60
  }
51
61
  export interface ApprovePaymentApprovalRequest {
52
- nextStage: string;
62
+ nextStage?: string;
53
63
  comment?: string;
54
64
  processMetadata?: string;
55
65
  }
@@ -64,7 +74,7 @@ export interface AttachmentResponse {
64
74
  export interface AuthorityResponse {
65
75
  id: string;
66
76
  name: string;
67
- role: string;
77
+ position: string;
68
78
  reference: string;
69
79
  }
70
80
  export interface Body_upload_attachment_approvals__id__attach__post {
@@ -73,22 +83,54 @@ export interface Body_upload_attachment_approvals__id__attach__post {
73
83
  }
74
84
  export interface Body_upload_payment_approval_approvals_upload__post {
75
85
  file: string;
86
+ processMetadata?: string;
76
87
  }
77
88
  export interface CreateAuthorityRequest {
78
89
  name: string;
79
- role: string;
80
- reference: string;
90
+ position: string;
91
+ reference?: string;
81
92
  }
82
93
  export interface CreateDestinationRequest {
83
94
  name: string;
84
95
  type: string;
85
- reference: string;
96
+ reference?: string;
97
+ accountNumber?: string;
98
+ bankName?: string;
99
+ bankCode?: string;
100
+ }
101
+ export interface CreateFolderRequest {
102
+ name: string;
103
+ description?: string;
104
+ departmentId?: string;
105
+ color?: string;
106
+ }
107
+ export interface DeleteFolderResponse {
108
+ id: string;
109
+ deleted: boolean;
86
110
  }
87
111
  export interface DestinationResponse {
88
112
  id: string;
89
113
  name: string;
90
114
  type: string;
91
115
  reference: string;
116
+ accountNumber?: string;
117
+ bankName?: string;
118
+ bankCode?: string;
119
+ }
120
+ export interface FolderMembershipResponse {
121
+ approvalId: string;
122
+ folders: FolderResponse[];
123
+ }
124
+ export interface FolderResponse {
125
+ id: string;
126
+ name: string;
127
+ description?: string;
128
+ createdBy: string;
129
+ departmentId?: string;
130
+ color?: string;
131
+ approvalCount?: number;
132
+ createdAt: string;
133
+ updatedAt?: string;
92
134
  }
93
135
  export interface GLPostingResponse {
94
136
  id: string;
@@ -129,6 +171,8 @@ export interface PaymentApprovalSummaryResponse {
129
171
  createdBy?: string;
130
172
  createdAt: string;
131
173
  documentUrl: string;
174
+ pvNumber?: string;
175
+ glPosted?: boolean;
132
176
  processMetadata?: any;
133
177
  }
134
178
  export interface PaymentStatusResponse {
@@ -147,10 +191,20 @@ export interface PaymentVoucherDetailResponse {
147
191
  export interface RejectPaymentApprovalRequest {
148
192
  reason: string;
149
193
  }
194
+ export interface RemoveApprovalFromFolderResponse {
195
+ folderId: string;
196
+ approvalId: string;
197
+ removed: boolean;
198
+ }
150
199
  export interface ReturnPaymentApprovalRequest {
151
200
  reason: string;
152
201
  targetStage?: string;
153
202
  }
203
+ export interface UpdateFolderRequest {
204
+ name?: string;
205
+ description?: string;
206
+ color?: string;
207
+ }
154
208
  export interface ValidationError {
155
209
  loc: number | string[];
156
210
  msg: string;
package/dist/auth.d.ts CHANGED
@@ -47,10 +47,15 @@ export interface PermissionSchema {
47
47
  id: string;
48
48
  name: string;
49
49
  code: string;
50
+ resource: string;
51
+ action: string;
50
52
  }
51
53
  export interface RefreshTokenSchema {
52
54
  refreshToken: string;
53
55
  }
56
+ export interface RolePermissionsSchema {
57
+ permissionIds: string[];
58
+ }
54
59
  export interface RoleSchema {
55
60
  id: string;
56
61
  name: string;
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 { 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
- export { ActiveSessionSchema, AssignUserRoleSchema, ChangePasswordSchema, CreateDepartmentSchema, CreatePermissionSchema, CreateRoleSchema, DepartmentSchema, LoginResponseSchema, PermissionSchema, RefreshTokenSchema, RoleSchema, SessionSchema, UpdateRoleSchema, UserInfoSchema, UserLoginSchema, UserRegisterSchema } from './auth';
5
+ export { AIEDetailResponse, AddApprovalCommentRequest, AddApprovalInstructionRequest, AddApprovalToFolderRequest, AddApprovalToFolderResponse, ApprovalCommentResponse, ApprovalDocumentUrlResponse, ApprovalInstructionResponse, ApprovalStatusResponse, ApprovePaymentApprovalRequest, AttachmentResponse, AuthorityResponse, Body_upload_attachment_approvals__id__attach__post, Body_upload_payment_approval_approvals_upload__post, CreateAuthorityRequest, CreateDestinationRequest, CreateFolderRequest, DeleteFolderResponse, DestinationResponse, FolderMembershipResponse, FolderResponse, GLPostingResponse, PaymentApprovalDetailResponse, PaymentApprovalResponse, PaymentApprovalSummaryResponse, PaymentStatusResponse, PaymentVoucherDetailResponse, RejectPaymentApprovalRequest, RemoveApprovalFromFolderResponse, ReturnPaymentApprovalRequest, UpdateFolderRequest, VoucherResponse } from './approvals';
6
+ export { ActiveSessionSchema, AssignUserRoleSchema, ChangePasswordSchema, CreateDepartmentSchema, CreatePermissionSchema, CreateRoleSchema, DepartmentSchema, LoginResponseSchema, PermissionSchema, RefreshTokenSchema, RolePermissionsSchema, RoleSchema, SessionSchema, UpdateRoleSchema, UserInfoSchema, UserLoginSchema, UserRegisterSchema } from './auth';
7
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.4",
3
+ "version": "1.0.6",
4
4
  "description": "TypeScript types for FAMS Backend (Auto-generated)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",