tsv2-library 1.0.61-alpha.42 → 1.0.61-alpha.44

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.
@@ -1,4 +1,13 @@
1
1
  export type ReportTagBody = {
2
+ data: {
3
+ reportData: {
4
+ qr: boolean;
5
+ rfid: boolean;
6
+ };
7
+ asset: string;
8
+ }[];
9
+ };
10
+ export type ReportTagData = {
2
11
  qr: boolean;
3
12
  rfid: boolean;
4
13
  };
@@ -6,6 +6,6 @@ export interface ServiceOptions {
6
6
  }
7
7
  export declare const API: ({ headers, params, }?: ServiceOptions) => AxiosInstance;
8
8
  declare const _default: {
9
- reportTag: (id: string, body: ReportTagBody) => Promise<AxiosResponse<any, any>>;
9
+ reportTag: (body: ReportTagBody) => Promise<AxiosResponse<any, any>>;
10
10
  };
11
11
  export default _default;
@@ -55407,6 +55407,9 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
55407
55407
  }
55408
55408
  );
55409
55409
  const imagePreview = computedAsync(async () => {
55410
+ if (!thumbnailString.value || errorLoadImage.value) {
55411
+ return Placeholder;
55412
+ }
55410
55413
  const preview = previewString.value || imageThumbnail.value;
55411
55414
  if (typeof preview === "string") {
55412
55415
  return preview.includes("http") || preview.includes("data:image/svg+xml") ? preview : await getImageURL(preview);
@@ -65944,8 +65947,8 @@ const API = ({
65944
65947
  });
65945
65948
  return instance;
65946
65949
  };
65947
- const reportTag = (id, body) => {
65948
- return API().put(`/report/${id}`, body);
65950
+ const reportTag = (body) => {
65951
+ return API().put("/report/bulk", body);
65949
65952
  };
65950
65953
  const TagTransactionAPIs = {
65951
65954
  reportTag
@@ -66014,7 +66017,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
66014
66017
  emit("update:visible", false);
66015
66018
  }
66016
66019
  } else {
66017
- const { data: data30 } = await TagTransactionAPIs.reportTag(props.id, body);
66020
+ const { data: data30 } = await TagTransactionAPIs.reportTag({
66021
+ data: [{ asset: props.id, reportData: body }]
66022
+ });
66018
66023
  if (data30) {
66019
66024
  toast2.add({ message: props.successMessage ?? message2 });
66020
66025
  emit("reported", body);