tsv2-library 1.1.0-dev-alpha.45 → 1.1.0-dev-alpha.47

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.1.0-dev-alpha.45",
4
+ "version": "1.1.0-dev-alpha.47",
5
5
  "license": "ISC",
6
6
  "homepage": "https://github.com/fixedassetv2-fe/tsv2-library#readme",
7
7
  "repository": {
@@ -1,5 +1,6 @@
1
1
  import { DefineComponent, Slot } from 'vue';
2
2
  import { FilterOption } from '@/types/filterOption.type';
3
+ import { FilterField } from '@/types/filterField.type';
3
4
 
4
5
  export interface DialogSelectAssetFilterModels {
5
6
  assetName?: string[];
@@ -261,6 +262,12 @@ export interface DialogSelectAssetProps {
261
262
  * @param params this is required
262
263
  */
263
264
  fetchFunction?: (params: QueryParams) => Promise<FetchResponse | undefined>;
265
+ /**
266
+ * The function to fetch filter options for AssetFilters.
267
+ *
268
+ * Overrides the default handleFetchOptions when provided.
269
+ */
270
+ fetchOptionFunction?: FilterField<QueryParams>['fetchOptionFn'];
264
271
  }
265
272
 
266
273
  /**
@@ -72,10 +72,12 @@ const getAssetNameList = (
72
72
  return API({ params }).get('/');
73
73
  };
74
74
 
75
- const getUnpairedAssetName = (
75
+ const postUnpairedAssetName = (
76
76
  params: GetAssetNameListQueryParams,
77
77
  ): Promise<AxiosResponse> => {
78
- return API({ params }).get('/unpaired');
78
+ const body = buildBodyParams(params);
79
+
80
+ return API().post('/unpaired/list', body);
79
81
  };
80
82
 
81
83
  const getOptions = (
@@ -101,7 +103,7 @@ export default {
101
103
  getAssetNameDetail,
102
104
  getAssetNameList,
103
105
  getAssetsByAssetName,
104
- getUnpairedAssetName,
106
+ postUnpairedAssetName,
105
107
  getAssetNameDropdown,
106
108
  getOptions,
107
109
  postAssetNameList,