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.
@@ -9,7 +9,7 @@ export declare const API: ({ headers, params, }?: ServiceOptions) => AxiosInstan
9
9
  declare const _default: {
10
10
  getAllAssets: (params: GetAllAssetsQueryParams) => Promise<AxiosResponse<any, any>>;
11
11
  getAvailableAssets: (params: GetAvailableAssetsQueryParams) => Promise<AxiosResponse<any, any>>;
12
- postAssetList: (type: "All" | "Available", params?: GetAllAssetsQueryParams | GetAvailableAssetsQueryParams | undefined) => Promise<AxiosResponse<any, any>>;
12
+ postAssetAvailableList: (params?: GetAllAssetsQueryParams | GetAvailableAssetsQueryParams | undefined) => Promise<AxiosResponse<any, any>>;
13
13
  getAssetsById: (_id: string, params: GetAvailableAssetsQueryParams) => Promise<AxiosResponse<any, any>>;
14
14
  getAssetDetail: (id: string, params?: GetAssetDetailParams | undefined) => Promise<AxiosResponse<any, any>>;
15
15
  matchAssetWithTag: (id: string, tag?: string | undefined) => Promise<AxiosResponse<any, any>>;
@@ -13206,10 +13206,9 @@ const getAllAssets = (params) => {
13206
13206
  const getAvailableAssets = (params) => {
13207
13207
  return API$e({ params }).get("/available");
13208
13208
  };
13209
- const postAssetList = (type, params) => {
13210
- const assetType = type === "Available" ? "/available" : "";
13209
+ const postAssetAvailableList = (params) => {
13211
13210
  const body = buildBodyParams(params);
13212
- return API$e().post(`/${assetType}/list`, body);
13211
+ return API$e().post("/available/list", body);
13213
13212
  };
13214
13213
  const scanAsset = (tag2) => {
13215
13214
  return API$e({ params: { tag: tag2 } }).get("");
@@ -13239,7 +13238,7 @@ const matchAssetWithTag = (id, tag2) => {
13239
13238
  const AssetsServices = {
13240
13239
  getAllAssets,
13241
13240
  getAvailableAssets,
13242
- postAssetList,
13241
+ postAssetAvailableList,
13243
13242
  getAssetsById,
13244
13243
  getAssetDetail,
13245
13244
  matchAssetWithTag,
@@ -30965,10 +30964,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
30965
30964
  page: 1,
30966
30965
  limit: 1
30967
30966
  };
30968
- const { data: response } = await AssetsServices.postAssetList(
30969
- "Available",
30970
- params
30971
- );
30967
+ const { data: response } = await AssetsServices.postAssetAvailableList(params);
30972
30968
  if ((_b = (_a = response == null ? void 0 : response.data) == null ? void 0 : _a.data) == null ? void 0 : _b.length) {
30973
30969
  const asset = (_c = response == null ? void 0 : response.data) == null ? void 0 : _c.data[0];
30974
30970
  const inAuditMaintenance = !!asset.auditStatus || !!asset.maintenanceStatus;