@tagsamurai/fats-api-services 1.0.0-alpha.265 → 1.0.0-alpha.266
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/api-services.es.js
CHANGED
|
@@ -1421,7 +1421,7 @@ const AccountingServices = {
|
|
|
1421
1421
|
return DepreciationMethodAPI.put("/cancel");
|
|
1422
1422
|
},
|
|
1423
1423
|
// Depreciation Group API Services
|
|
1424
|
-
|
|
1424
|
+
getDepreciationGroupList: (params) => {
|
|
1425
1425
|
return DepreciationGroupAPI.get("", { params });
|
|
1426
1426
|
},
|
|
1427
1427
|
deleteDepreciationGroup: (id) => {
|
package/api-services.system.js
CHANGED
|
@@ -1428,7 +1428,7 @@ System.register(["axios"], function(exports, module) {
|
|
|
1428
1428
|
return DepreciationMethodAPI.put("/cancel");
|
|
1429
1429
|
},
|
|
1430
1430
|
// Depreciation Group API Services
|
|
1431
|
-
|
|
1431
|
+
getDepreciationGroupList: (params) => {
|
|
1432
1432
|
return DepreciationGroupAPI.get("", { params });
|
|
1433
1433
|
},
|
|
1434
1434
|
deleteDepreciationGroup: (id) => {
|
package/package.json
CHANGED
|
@@ -2,20 +2,20 @@ import { AxiosResponse } from 'axios';
|
|
|
2
2
|
import { PostAccountCode } from '../dto/accountCode.dto';
|
|
3
3
|
import { GetDepreciactionListParams, GetDepreciactionOptionParams, PostDepreciationGroup } from '../dto/depreciationData.dto';
|
|
4
4
|
import { TableParams } from '../types/dataTable.type';
|
|
5
|
-
import { AccountCodeDropdown, DeprecitationGroupDropdown } from '../types/accountCode.type';
|
|
6
|
-
import { ShortFetchListResponse } from '../types/fetchResponse.type';
|
|
5
|
+
import { AccountCodeDropdown, AccountCodeList, DepreciationGroupList, DeprecitationGroupDropdown } from '../types/accountCode.type';
|
|
6
|
+
import { FetchListResponse, ShortFetchListResponse } from '../types/fetchResponse.type';
|
|
7
7
|
declare const AccountingServices: {
|
|
8
8
|
getDepreciationGroupDropdown: () => Promise<AxiosResponse<ShortFetchListResponse<DeprecitationGroupDropdown>>>;
|
|
9
9
|
getAccountDropdown: () => Promise<AxiosResponse<ShortFetchListResponse<AccountCodeDropdown>>>;
|
|
10
10
|
getDepreciationMethod: () => Promise<AxiosResponse>;
|
|
11
11
|
changeDepreciationMethod: (body: string) => Promise<AxiosResponse>;
|
|
12
12
|
cancelChangeDepreciationMethod: () => Promise<AxiosResponse>;
|
|
13
|
-
|
|
13
|
+
getDepreciationGroupList: (params?: GetDepreciactionListParams) => Promise<AxiosResponse<FetchListResponse<DepreciationGroupList>>>;
|
|
14
14
|
deleteDepreciationGroup: (id: string[]) => Promise<AxiosResponse>;
|
|
15
15
|
createNewDepreciationGroup: (body: PostDepreciationGroup) => Promise<AxiosResponse>;
|
|
16
16
|
editDepreciationGroup: (body: PostDepreciationGroup, id: string) => Promise<AxiosResponse>;
|
|
17
17
|
getFilterOptions: (params: GetDepreciactionOptionParams) => Promise<AxiosResponse>;
|
|
18
|
-
getAccountCodeList: (params?: TableParams) => Promise<AxiosResponse
|
|
18
|
+
getAccountCodeList: (params?: TableParams) => Promise<AxiosResponse<FetchListResponse<AccountCodeList>>>;
|
|
19
19
|
deleteAccountCode: (id: string[]) => Promise<AxiosResponse>;
|
|
20
20
|
createNewAccountCode: (body: PostAccountCode) => Promise<AxiosResponse>;
|
|
21
21
|
editAccountCode: (body: PostAccountCode, id: string) => Promise<AxiosResponse>;
|
|
@@ -2,11 +2,19 @@ export type AccountCodeList = {
|
|
|
2
2
|
_id: string;
|
|
3
3
|
code: string;
|
|
4
4
|
name: string;
|
|
5
|
-
key: number;
|
|
6
|
-
totalAssets?: number;
|
|
7
5
|
};
|
|
8
6
|
export interface DeprecitationGroupDropdown {
|
|
9
7
|
_id: string;
|
|
10
8
|
name: string;
|
|
11
9
|
}
|
|
12
10
|
export type AccountCodeDropdown = DeprecitationGroupDropdown;
|
|
11
|
+
export interface DepreciationGroupList {
|
|
12
|
+
_id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
key: number;
|
|
15
|
+
updatedAt: string | Date;
|
|
16
|
+
usefulLife: string;
|
|
17
|
+
straightLineRate: string;
|
|
18
|
+
doubleDecreasedRate: string;
|
|
19
|
+
totalAssets: number;
|
|
20
|
+
}
|