@tagsamurai/fats-api-services 1.0.0-alpha.264 → 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
|
@@ -1404,6 +1404,10 @@ const AccountingServices = {
|
|
|
1404
1404
|
getDepreciationGroupDropdown: () => {
|
|
1405
1405
|
return DepreciationGroupAPI.get("/dropdown");
|
|
1406
1406
|
},
|
|
1407
|
+
//https://dev-api.tagsamurai.com/settings-attribute-go/v2/account-code/dropdown
|
|
1408
|
+
getAccountDropdown: () => {
|
|
1409
|
+
return AccountCodeAPI.get("/dropdown");
|
|
1410
|
+
},
|
|
1407
1411
|
// Depreciation Method API Services
|
|
1408
1412
|
getDepreciationMethod: () => {
|
|
1409
1413
|
return DepreciationMethodAPI.get("");
|
|
@@ -1417,7 +1421,7 @@ const AccountingServices = {
|
|
|
1417
1421
|
return DepreciationMethodAPI.put("/cancel");
|
|
1418
1422
|
},
|
|
1419
1423
|
// Depreciation Group API Services
|
|
1420
|
-
|
|
1424
|
+
getDepreciationGroupList: (params) => {
|
|
1421
1425
|
return DepreciationGroupAPI.get("", { params });
|
|
1422
1426
|
},
|
|
1423
1427
|
deleteDepreciationGroup: (id) => {
|
package/api-services.system.js
CHANGED
|
@@ -1411,6 +1411,10 @@ System.register(["axios"], function(exports, module) {
|
|
|
1411
1411
|
getDepreciationGroupDropdown: () => {
|
|
1412
1412
|
return DepreciationGroupAPI.get("/dropdown");
|
|
1413
1413
|
},
|
|
1414
|
+
//https://dev-api.tagsamurai.com/settings-attribute-go/v2/account-code/dropdown
|
|
1415
|
+
getAccountDropdown: () => {
|
|
1416
|
+
return AccountCodeAPI.get("/dropdown");
|
|
1417
|
+
},
|
|
1414
1418
|
// Depreciation Method API Services
|
|
1415
1419
|
getDepreciationMethod: () => {
|
|
1416
1420
|
return DepreciationMethodAPI.get("");
|
|
@@ -1424,7 +1428,7 @@ System.register(["axios"], function(exports, module) {
|
|
|
1424
1428
|
return DepreciationMethodAPI.put("/cancel");
|
|
1425
1429
|
},
|
|
1426
1430
|
// Depreciation Group API Services
|
|
1427
|
-
|
|
1431
|
+
getDepreciationGroupList: (params) => {
|
|
1428
1432
|
return DepreciationGroupAPI.get("", { params });
|
|
1429
1433
|
},
|
|
1430
1434
|
deleteDepreciationGroup: (id) => {
|
package/package.json
CHANGED
|
@@ -2,19 +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 { 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
|
+
getAccountDropdown: () => Promise<AxiosResponse<ShortFetchListResponse<AccountCodeDropdown>>>;
|
|
9
10
|
getDepreciationMethod: () => Promise<AxiosResponse>;
|
|
10
11
|
changeDepreciationMethod: (body: string) => Promise<AxiosResponse>;
|
|
11
12
|
cancelChangeDepreciationMethod: () => Promise<AxiosResponse>;
|
|
12
|
-
|
|
13
|
+
getDepreciationGroupList: (params?: GetDepreciactionListParams) => Promise<AxiosResponse<FetchListResponse<DepreciationGroupList>>>;
|
|
13
14
|
deleteDepreciationGroup: (id: string[]) => Promise<AxiosResponse>;
|
|
14
15
|
createNewDepreciationGroup: (body: PostDepreciationGroup) => Promise<AxiosResponse>;
|
|
15
16
|
editDepreciationGroup: (body: PostDepreciationGroup, id: string) => Promise<AxiosResponse>;
|
|
16
17
|
getFilterOptions: (params: GetDepreciactionOptionParams) => Promise<AxiosResponse>;
|
|
17
|
-
getAccountCodeList: (params?: TableParams) => Promise<AxiosResponse
|
|
18
|
+
getAccountCodeList: (params?: TableParams) => Promise<AxiosResponse<FetchListResponse<AccountCodeList>>>;
|
|
18
19
|
deleteAccountCode: (id: string[]) => Promise<AxiosResponse>;
|
|
19
20
|
createNewAccountCode: (body: PostAccountCode) => Promise<AxiosResponse>;
|
|
20
21
|
editAccountCode: (body: PostAccountCode, id: string) => Promise<AxiosResponse>;
|
|
@@ -2,10 +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
|
}
|
|
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
|
+
}
|