tsv2-library 1.0.61-alpha.84 → 1.0.61-alpha.85

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tsv2-library",
3
3
  "author": "fixedassetv2-fe",
4
- "version": "1.0.61-alpha.84",
4
+ "version": "1.0.61-alpha.85",
5
5
  "license": "ISC",
6
6
  "homepage": "https://github.com/fixedassetv2-fe/tsv2-library#readme",
7
7
  "repository": {
@@ -45,13 +45,11 @@ const getAvailableAssets = (
45
45
  return API({ params }).get('/available');
46
46
  };
47
47
 
48
- const postAssetList = (
49
- type: 'All' | 'Available',
48
+ const postAssetAvailableList = (
50
49
  params?: GetAllAssetsQueryParams | GetAvailableAssetsQueryParams,
51
50
  ): Promise<AxiosResponse> => {
52
- const assetType = type === 'Available' ? '/available' : '';
53
51
  const body = buildBodyParams(params);
54
- return API().post(`/${assetType}/list`, body);
52
+ return API().post('/available/list', body);
55
53
  };
56
54
 
57
55
  const scanAsset = (tag: string): Promise<AxiosResponse> => {
@@ -109,7 +107,7 @@ const matchAssetWithTag = (
109
107
  export default {
110
108
  getAllAssets,
111
109
  getAvailableAssets,
112
- postAssetList,
110
+ postAssetAvailableList,
113
111
  getAssetsById,
114
112
  getAssetDetail,
115
113
  matchAssetWithTag,