fams-ts 1.0.24 → 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.
- package/dist/approvals.d.ts +51 -3
- package/dist/auth.d.ts +6 -0
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/approvals.d.ts
CHANGED
|
@@ -40,9 +40,10 @@ export interface AddApprovalCommentRequest {
|
|
|
40
40
|
export interface AddApprovalInstructionRequest {
|
|
41
41
|
instruction: string;
|
|
42
42
|
amount: number | string;
|
|
43
|
-
payTo
|
|
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
|
|
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
|
|
120
|
+
payToId?: string;
|
|
94
121
|
payFromCode: string;
|
|
95
122
|
budgetHeadCode: string;
|
|
96
123
|
authorityId: string;
|
|
@@ -200,6 +227,7 @@ export interface CreateFolderRequest {
|
|
|
200
227
|
description?: string;
|
|
201
228
|
departmentId?: string;
|
|
202
229
|
color?: string;
|
|
230
|
+
visibility?: 'PUBLIC' | 'PRIVATE';
|
|
203
231
|
}
|
|
204
232
|
export interface DeleteFolderResponse {
|
|
205
233
|
id: string;
|
|
@@ -249,10 +277,27 @@ export interface FolderResponse {
|
|
|
249
277
|
departmentId?: string;
|
|
250
278
|
department?: DepartmentSummaryResponse;
|
|
251
279
|
color?: string;
|
|
280
|
+
visibility?: 'PUBLIC' | 'PRIVATE';
|
|
252
281
|
approvalCount?: number;
|
|
253
282
|
createdAt: string;
|
|
254
283
|
updatedAt?: string;
|
|
255
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
|
+
}
|
|
256
301
|
export interface GLPostingResponse {
|
|
257
302
|
id: string;
|
|
258
303
|
glPosted: boolean;
|
|
@@ -278,6 +323,7 @@ export interface PaymentApprovalDetailResponse {
|
|
|
278
323
|
currentStage?: string;
|
|
279
324
|
pvNumber?: string;
|
|
280
325
|
voucher?: PaymentVoucherDetailResponse;
|
|
326
|
+
fx?: ApprovalForexDetailResponse;
|
|
281
327
|
glPosted?: boolean;
|
|
282
328
|
processMetadata?: any;
|
|
283
329
|
createdBy?: string;
|
|
@@ -305,6 +351,7 @@ export interface PaymentApprovalSummaryResponse {
|
|
|
305
351
|
documentUrl: string;
|
|
306
352
|
documentFileName?: string;
|
|
307
353
|
pvNumber?: string;
|
|
354
|
+
fx?: ApprovalForexDetailResponse;
|
|
308
355
|
glPosted?: boolean;
|
|
309
356
|
processMetadata?: any;
|
|
310
357
|
}
|
|
@@ -410,6 +457,7 @@ export interface UpdateFolderRequest {
|
|
|
410
457
|
name?: string;
|
|
411
458
|
description?: string;
|
|
412
459
|
color?: string;
|
|
460
|
+
visibility?: 'PUBLIC' | 'PRIVATE';
|
|
413
461
|
}
|
|
414
462
|
export interface ValidationError {
|
|
415
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/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
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_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, 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';
|