fams-ts 1.0.8 → 1.0.10

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/account.d.ts CHANGED
@@ -7,12 +7,16 @@ export interface AccountCreateRequest {
7
7
  name?: string;
8
8
  type?: string;
9
9
  isActive?: boolean;
10
+ isPostable?: boolean;
11
+ defaultCreditAccountCode?: string;
10
12
  }
11
13
  export interface AccountResponse {
12
14
  code: string;
13
15
  name: string;
14
16
  type: string;
15
17
  isActive: boolean;
18
+ isPostable: boolean;
19
+ defaultCreditAccountCode?: string;
16
20
  }
17
21
  export interface Body_open_period_master_periods_open__period_code___post {
18
22
  startDate: string;
@@ -28,7 +28,7 @@ export interface AddApprovalToFolderResponse {
28
28
  id: string;
29
29
  folderId: string;
30
30
  approvalId: string;
31
- addedBy: string;
31
+ addedBy?: string;
32
32
  addedAt: string;
33
33
  }
34
34
  export interface ApprovalCommentResponse {
@@ -137,7 +137,7 @@ export interface FolderResponse {
137
137
  id: string;
138
138
  name: string;
139
139
  description?: string;
140
- createdBy: string;
140
+ createdBy?: string;
141
141
  departmentId?: string;
142
142
  department?: DepartmentSummaryResponse;
143
143
  color?: string;
package/dist/assets.d.ts CHANGED
@@ -2,9 +2,28 @@
2
2
  * Auto-generated by custom Python script.
3
3
  * Do not edit manually.
4
4
  */
5
+ export interface AssetCreateSchema {
6
+ name: string;
7
+ acquisitionDate: string;
8
+ cost: number | string;
9
+ depreciationRate: number;
10
+ description?: string;
11
+ }
5
12
  export interface HTTPValidationError {
6
13
  detail?: ValidationError[];
7
14
  }
15
+ export interface LiabilityCreateSchema {
16
+ description: string;
17
+ amount: number | string;
18
+ dueDate: string;
19
+ liabilityType: string;
20
+ }
21
+ export interface ReceivableCreateSchema {
22
+ description: string;
23
+ amount: number | string;
24
+ dueDate: string;
25
+ receivableType: string;
26
+ }
8
27
  export interface ValidationError {
9
28
  loc: number | string[];
10
29
  msg: string;
package/dist/auth.d.ts CHANGED
@@ -29,6 +29,7 @@ export interface CreatePermissionSchema {
29
29
  export interface CreateRoleSchema {
30
30
  name: string;
31
31
  code: string;
32
+ departmentId?: string;
32
33
  permissionIds?: string[];
33
34
  }
34
35
  export interface DepartmentSchema {
@@ -60,6 +61,8 @@ export interface RoleSchema {
60
61
  id: string;
61
62
  name: string;
62
63
  code: string;
64
+ departmentId?: string;
65
+ department?: DepartmentSchema;
63
66
  permissions?: PermissionSchema[];
64
67
  }
65
68
  export interface SessionSchema {
@@ -71,6 +74,7 @@ export interface SessionSchema {
71
74
  }
72
75
  export interface UpdateRoleSchema {
73
76
  name?: string;
77
+ departmentId?: string;
74
78
  permissionIds?: string[];
75
79
  }
76
80
  export interface UserInfoSchema {
@@ -85,11 +89,29 @@ export interface UserInfoSchema {
85
89
  role?: string;
86
90
  department?: string;
87
91
  isActive: boolean;
92
+ permissions?: string[];
88
93
  }
89
94
  export interface UserLoginSchema {
90
95
  username: string;
91
96
  password: string;
92
97
  }
98
+ export interface UserLookupSchema {
99
+ id: string;
100
+ username: string;
101
+ email: string;
102
+ title?: string;
103
+ firstName?: string;
104
+ middleName?: string;
105
+ lastName?: string;
106
+ avatar?: string;
107
+ role?: RoleSchema;
108
+ department?: DepartmentSchema;
109
+ isActive: boolean;
110
+ permissions?: string[];
111
+ }
112
+ export interface UserPermissionOverrideSchema {
113
+ permissionId: string;
114
+ }
93
115
  export interface UserRegisterSchema {
94
116
  username: string;
95
117
  password: string;
package/dist/budget.d.ts CHANGED
@@ -31,6 +31,7 @@ export interface BudgetHeadResponse {
31
31
  accountCode: string;
32
32
  appropriation: string;
33
33
  commitments: string;
34
+ totalActual: string;
34
35
  available: string;
35
36
  }
36
37
  export interface HTTPValidationError {
@@ -30,6 +30,7 @@ export interface PaymentVoucherResponse {
30
30
  description: string;
31
31
  status: string;
32
32
  lines: PaymentLineResponse[];
33
+ stub?: boolean;
33
34
  }
34
35
  export interface ValidationError {
35
36
  loc: number | string[];
package/dist/index.d.ts CHANGED
@@ -3,7 +3,8 @@
3
3
  */
4
4
  export { AccountCreateRequest, AccountResponse, Body_open_period_master_periods_open__period_code___post, HTTPValidationError, OpeningBalanceRequest, OpeningBalanceResponse, PeriodResponse, ValidationError } from './account';
5
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, DepartmentSummaryResponse, DestinationResponse, FolderApprovalsResponse, 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';
6
+ export { AssetCreateSchema, LiabilityCreateSchema, ReceivableCreateSchema } from './assets';
7
+ export { ActiveSessionSchema, AssignUserRoleSchema, ChangePasswordSchema, CreateDepartmentSchema, CreatePermissionSchema, CreateRoleSchema, DepartmentSchema, LoginResponseSchema, PermissionSchema, RefreshTokenSchema, RolePermissionsSchema, RoleSchema, SessionSchema, UpdateRoleSchema, UserInfoSchema, UserLoginSchema, UserLookupSchema, UserPermissionOverrideSchema, UserRegisterSchema } from './auth';
7
8
  export { AIERequest, AIEResponse, BudgetHeadCreateRequest, BudgetHeadResponse } from './budget';
8
9
  export { PaymentLineCreateRequest, PaymentLineResponse, PaymentVoucherCreateRequest, PaymentVoucherResponse } from './expenditure';
9
10
  export { RecordReceipt } from './receipts';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fams-ts",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "TypeScript types for FAMS Backend (Auto-generated)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",