fams-ts 1.0.23 → 1.0.25

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.
@@ -40,9 +40,10 @@ export interface AddApprovalCommentRequest {
40
40
  export interface AddApprovalInstructionRequest {
41
41
  instruction: string;
42
42
  amount: number | string;
43
- payTo: InlinePaymentDestinationRequest | string;
43
+ payTo?: InlinePaymentDestinationRequest | string;
44
44
  payFrom: string;
45
45
  authority: string;
46
+ authorityTo: string;
46
47
  }
47
48
  export interface AddApprovalToFolderRequest {
48
49
  approvalId: string;
@@ -56,10 +57,20 @@ export interface AddApprovalToFolderResponse {
56
57
  }
57
58
  export interface AddCompositeApprovalInstructionRequest {
58
59
  instruction: string;
59
- payTo: InlinePaymentDestinationRequest | string;
60
+ payTo?: InlinePaymentDestinationRequest | string;
60
61
  authority: string;
62
+ authorityTo: string;
61
63
  lines?: CompositeInstructionLineRequest[];
62
64
  }
65
+ export interface ApplyApprovalForexRequest {
66
+ amount: number | string;
67
+ sourceCurrency: string;
68
+ targetCurrency: string;
69
+ provider?: string;
70
+ rate?: number | string;
71
+ rateDate?: string;
72
+ notes?: string;
73
+ }
63
74
  export interface ApprovalActorResponse {
64
75
  id: string;
65
76
  username?: string;
@@ -85,12 +96,28 @@ export interface ApprovalDocumentUrlResponse {
85
96
  id: string;
86
97
  documentUrl: string;
87
98
  }
99
+ export interface ApprovalForexDetailResponse {
100
+ id: string;
101
+ sourceCurrency: string;
102
+ targetCurrency: string;
103
+ sourceAmount: number;
104
+ rate: number;
105
+ convertedAmount: number;
106
+ provider: string;
107
+ rateDate?: string;
108
+ rateSourceUrl?: string;
109
+ mode: string;
110
+ notes?: string;
111
+ metadata?: any;
112
+ createdAt: string;
113
+ updatedAt?: string;
114
+ }
88
115
  export interface ApprovalInstructionResponse {
89
116
  id: string;
90
117
  createdBy?: string;
91
118
  instruction: string;
92
119
  amount: number;
93
- payToId: string;
120
+ payToId?: string;
94
121
  payFromCode: string;
95
122
  budgetHeadCode: string;
96
123
  authorityId: string;
@@ -160,10 +187,22 @@ export interface AuthorityResponse {
160
187
  export interface Body_upload_attachment_approvals__id__attach__post {
161
188
  file: string;
162
189
  description?: string;
190
+ fileName?: string;
191
+ }
192
+ export interface Body_upload_attachments_bulk_approvals__id__attach_bulk__post {
193
+ files: string[];
194
+ description?: string;
195
+ fileNames?: string[];
163
196
  }
164
197
  export interface Body_upload_payment_approval_approvals_upload__post {
165
198
  file: string;
166
199
  processMetadata?: string;
200
+ documentName?: string;
201
+ }
202
+ export interface Body_upload_payment_approvals_bulk_approvals_upload_bulk__post {
203
+ files: string[];
204
+ processMetadata?: string;
205
+ documentNames?: string[];
167
206
  }
168
207
  export interface CompositeInstructionLineRequest {
169
208
  amount: number | string;
@@ -188,6 +227,7 @@ export interface CreateFolderRequest {
188
227
  description?: string;
189
228
  departmentId?: string;
190
229
  color?: string;
230
+ visibility?: 'PUBLIC' | 'PRIVATE';
191
231
  }
192
232
  export interface DeleteFolderResponse {
193
233
  id: string;
@@ -222,7 +262,6 @@ export interface DocumentExportResponse {
222
262
  export interface FolderApprovalsResponse {
223
263
  folder: FolderResponse;
224
264
  approvals: PaymentApprovalSummaryResponse[];
225
- totalCount: number;
226
265
  }
227
266
  export interface FolderMembershipResponse {
228
267
  approvalId: string;
@@ -238,10 +277,27 @@ export interface FolderResponse {
238
277
  departmentId?: string;
239
278
  department?: DepartmentSummaryResponse;
240
279
  color?: string;
280
+ visibility?: 'PUBLIC' | 'PRIVATE';
241
281
  approvalCount?: number;
242
282
  createdAt: string;
243
283
  updatedAt?: string;
244
284
  }
285
+ export interface ForexRateLookupResponse {
286
+ baseCurrency: string;
287
+ targetCurrency: string;
288
+ amount: number;
289
+ providers?: string[];
290
+ quotes?: ForexRateOptionResponse[];
291
+ recommended: any;
292
+ stats: any;
293
+ }
294
+ export interface ForexRateOptionResponse {
295
+ provider: string;
296
+ rate: number;
297
+ rateDate?: string;
298
+ sourceUrl?: string;
299
+ convertedAmount: number;
300
+ }
245
301
  export interface GLPostingResponse {
246
302
  id: string;
247
303
  glPosted: boolean;
@@ -267,6 +323,7 @@ export interface PaymentApprovalDetailResponse {
267
323
  currentStage?: string;
268
324
  pvNumber?: string;
269
325
  voucher?: PaymentVoucherDetailResponse;
326
+ fx?: ApprovalForexDetailResponse;
270
327
  glPosted?: boolean;
271
328
  processMetadata?: any;
272
329
  createdBy?: string;
@@ -294,6 +351,7 @@ export interface PaymentApprovalSummaryResponse {
294
351
  documentUrl: string;
295
352
  documentFileName?: string;
296
353
  pvNumber?: string;
354
+ fx?: ApprovalForexDetailResponse;
297
355
  glPosted?: boolean;
298
356
  processMetadata?: any;
299
357
  }
@@ -399,6 +457,7 @@ export interface UpdateFolderRequest {
399
457
  name?: string;
400
458
  description?: string;
401
459
  color?: string;
460
+ visibility?: 'PUBLIC' | 'PRIVATE';
402
461
  }
403
462
  export interface ValidationError {
404
463
  loc: number | string[];
package/dist/auth.d.ts CHANGED
@@ -38,6 +38,7 @@ export interface DepartmentSchema {
38
38
  name: string;
39
39
  code: string;
40
40
  departmentalCode?: string;
41
+ departmentIdentifier?: string;
41
42
  }
42
43
  export interface HTTPValidationError {
43
44
  detail?: ValidationError[];
@@ -45,6 +46,7 @@ export interface HTTPValidationError {
45
46
  export interface LoginResponseSchema {
46
47
  session: SessionSchema;
47
48
  user: UserInfoSchema;
49
+ stageMeta: StageMetaSchema;
48
50
  }
49
51
  export interface ManagedUserRegisterSchema {
50
52
  username: string;
@@ -85,6 +87,10 @@ export interface SessionSchema {
85
87
  accessExpiry: string;
86
88
  refreshExpiry: string;
87
89
  }
90
+ export interface StageMetaSchema {
91
+ currentStage?: string;
92
+ nextStages?: string[];
93
+ }
88
94
  export interface UpdateRoleSchema {
89
95
  name?: string;
90
96
  departmentId?: string;
package/dist/budget.d.ts CHANGED
@@ -126,9 +126,6 @@ export interface BudgetHeadTransactionHistoryResponse {
126
126
  totalActual: number;
127
127
  available: number;
128
128
  transactions: BudgetHeadTransactionEntry[];
129
- totalCount: number;
130
- page: number;
131
- pageSize: number;
132
129
  }
133
130
  export interface BudgetHeadUpdateRequest {
134
131
  name?: string;
package/dist/index.d.ts CHANGED
@@ -2,12 +2,12 @@
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, SettingsCategoryRequest, SettingsCategoryResponse, ValidationError } from './account';
5
- export { AIEDetailResponse, AIEDocumentDetailsResponse, AddApprovalCommentRequest, AddApprovalInstructionRequest, AddApprovalToFolderRequest, AddApprovalToFolderResponse, AddCompositeApprovalInstructionRequest, ApprovalActorResponse, ApprovalCommentResponse, ApprovalDocumentUrlResponse, ApprovalInstructionResponse, ApprovalStageHistoryResponse, ApprovalStatusResponse, ApprovePaymentApprovalRequest, AssignApprovalRequest, AssignmentResponse, AssignmentUserSchema, AttachmentResponse, AuthorityResponse, Body_upload_attachment_approvals__id__attach__post, Body_upload_payment_approval_approvals_upload__post, CompositeInstructionLineRequest, CreateAuthorityRequest, CreateDestinationRequest, CreateFolderRequest, DeleteFolderResponse, DepartmentSummaryResponse, DestinationResponse, DocumentExportResponse, FolderApprovalsResponse, FolderMembershipResponse, FolderResponse, GLPostingResponse, InlinePaymentDestinationRequest, PaymentApprovalDetailResponse, PaymentApprovalResponse, PaymentApprovalSummaryResponse, PaymentStatusResponse, PaymentVoucherDeductionResponse, PaymentVoucherDetailResponse, PaymentVoucherDocumentDetailsResponse, PostToGLRequest, ProcessedApprovalResponse, RejectPaymentApprovalRequest, RemoveApprovalFromFolderResponse, RenameApprovalDocumentRequest, RenameApprovalDocumentResponse, ReturnPaymentApprovalRequest, SubmitApprovalRequest, UpdateFolderRequest, VoucherResponse } from './approvals';
5
+ export { AIEDetailResponse, AIEDocumentDetailsResponse, AddApprovalCommentRequest, AddApprovalInstructionRequest, AddApprovalToFolderRequest, AddApprovalToFolderResponse, AddCompositeApprovalInstructionRequest, ApplyApprovalForexRequest, ApprovalActorResponse, ApprovalCommentResponse, ApprovalDocumentUrlResponse, ApprovalForexDetailResponse, ApprovalInstructionResponse, ApprovalStageHistoryResponse, ApprovalStatusResponse, ApprovePaymentApprovalRequest, AssignApprovalRequest, AssignmentResponse, AssignmentUserSchema, AttachmentResponse, AuthorityResponse, Body_upload_attachment_approvals__id__attach__post, Body_upload_attachments_bulk_approvals__id__attach_bulk__post, Body_upload_payment_approval_approvals_upload__post, Body_upload_payment_approvals_bulk_approvals_upload_bulk__post, CompositeInstructionLineRequest, CreateAuthorityRequest, CreateDestinationRequest, CreateFolderRequest, DeleteFolderResponse, DepartmentSummaryResponse, DestinationResponse, DocumentExportResponse, FolderApprovalsResponse, FolderMembershipResponse, FolderResponse, ForexRateLookupResponse, ForexRateOptionResponse, GLPostingResponse, InlinePaymentDestinationRequest, PaymentApprovalDetailResponse, PaymentApprovalResponse, PaymentApprovalSummaryResponse, PaymentStatusResponse, PaymentVoucherDeductionResponse, PaymentVoucherDetailResponse, PaymentVoucherDocumentDetailsResponse, PostToGLRequest, ProcessedApprovalResponse, RejectPaymentApprovalRequest, RemoveApprovalFromFolderResponse, RenameApprovalDocumentRequest, RenameApprovalDocumentResponse, ReturnPaymentApprovalRequest, SubmitApprovalRequest, UpdateFolderRequest, VoucherResponse } from './approvals';
6
6
  export { AssetCreateSchema, LiabilityCreateSchema, ReceivableCreateSchema } from './assets';
7
- export { ActiveSessionSchema, AssignUserRoleSchema, ChangePasswordSchema, CreateDepartmentSchema, CreatePermissionSchema, CreateRoleSchema, DepartmentSchema, LoginResponseSchema, ManagedUserRegisterSchema, PermissionSchema, RefreshTokenSchema, RolePermissionsSchema, RoleSchema, SessionSchema, UpdateRoleSchema, UserInfoSchema, UserLoginSchema, UserLookupSchema, UserPermissionOverrideSchema } from './auth';
7
+ export { ActiveSessionSchema, AssignUserRoleSchema, ChangePasswordSchema, CreateDepartmentSchema, CreatePermissionSchema, CreateRoleSchema, DepartmentSchema, LoginResponseSchema, ManagedUserRegisterSchema, PermissionSchema, RefreshTokenSchema, RolePermissionsSchema, RoleSchema, SessionSchema, StageMetaSchema, UpdateRoleSchema, UserInfoSchema, UserLoginSchema, UserLookupSchema, UserPermissionOverrideSchema } from './auth';
8
8
  export { AIECompositeLineRequest, AIEDocumentDetailsRequest, AIELineResponse, AIERequest, AIEResponse, BudgetHeadCreateRequest, BudgetHeadResponse, BudgetHeadTransactionEntry, BudgetHeadTransactionHistoryResponse, BudgetHeadUpdateRequest, BulkBudgetHeadCreateRequest, BulkBudgetHeadCreateResponse, CompositeAIERequest, UpdateAIERequest, VoteBookEntryResponse, VoteBookResponse } from './budget';
9
9
  export { PaymentLineCreateRequest, PaymentLineResponse, PaymentVoucherCreateRequest, PaymentVoucherDeductionRequest, PaymentVoucherDocumentDetailsRequest, PaymentVoucherResponse } from './expenditure';
10
10
  export { MarkReadRequest, NotificationResponse } from './notifications';
11
11
  export { ReceiptResponse, RecordReceiptRequest } from './receipts';
12
- export { ReportExportResponse } from './reporting';
12
+ export { ReportExportAllResponse, ReportExportResponse } from './reporting';
13
13
  export { BankAccountCreateSchema, BankAccountSchema, OutstandingReceiptSchema, PaymentProcessSchema, ReceiptDepositBatchCreateSchema, ReceiptDepositBatchResponse } from './treasury';
@@ -5,6 +5,12 @@
5
5
  export interface HTTPValidationError {
6
6
  detail?: ValidationError[];
7
7
  }
8
+ export interface ReportExportAllResponse {
9
+ period: string;
10
+ format: string;
11
+ totalReports: number;
12
+ exports: ReportExportResponse[];
13
+ }
8
14
  export interface ReportExportResponse {
9
15
  format: string;
10
16
  filename: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fams-ts",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "TypeScript types for FAMS Backend (Auto-generated)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",