tsv2-library 1.1.0-dev-alpha.14 → 1.1.0-dev-alpha.15

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.14",
4
+ "version": "1.1.0-dev-alpha.15",
5
5
  "license": "ISC",
6
6
  "homepage": "https://github.com/fixedassetv2-fe/tsv2-library#readme",
7
7
  "repository": {
@@ -9,6 +9,7 @@ import {
9
9
  } from '@/dto/assets.dto';
10
10
  import { AssetOptionField } from '@/components/v2/DialogSelectAsset/DialogSelectAsset.vue.d';
11
11
  import { buildBodyParams } from '@/utils';
12
+ import { QueryParams } from '@/components/v2/DataTable/DataTable.vue.d';
12
13
 
13
14
  export interface ServiceOptions {
14
15
  headers?: Record<string, unknown>;
@@ -57,6 +58,9 @@ const getAllAssets = (
57
58
  return API({ params }).get('/');
58
59
  };
59
60
 
61
+ /**
62
+ * @deprecated - use postAssetAvailableList instead
63
+ */
60
64
  const getAvailableAssets = (
61
65
  params: GetAvailableAssetsQueryParams,
62
66
  ): Promise<AxiosResponse> => {
@@ -84,6 +88,13 @@ const getAssetsById = (
84
88
  return API({ params: { _id, ...params } }).get('/by-id');
85
89
  };
86
90
 
91
+ const postAvailableListOptions = (
92
+ params?: QueryParams,
93
+ ): Promise<AxiosResponse> => {
94
+ const body = buildBodyParams(params);
95
+ return API().post('/available/list/options', body);
96
+ };
97
+
87
98
  const getOptions = (
88
99
  endpoint?: 'unlinked' | 'by-id',
89
100
  params?: Partial<Record<AssetOptionField, boolean>> & {
@@ -149,6 +160,7 @@ export default {
149
160
  postAssetOption,
150
161
  getAvailableAssets,
151
162
  postAssetAvailableList,
163
+ postAvailableListOptions,
152
164
  getAssetsById,
153
165
  getAssetDetail,
154
166
  matchAssetWithTag,