tsv2-library 0.1.90 → 0.1.91

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.
@@ -16,6 +16,11 @@ export interface DialogAssetNameDetailProps {
16
16
  */
17
17
  id: string;
18
18
 
19
+ /**
20
+ * The query params for fetching assets.
21
+ */
22
+ params?: { [key: string]: string };
23
+
19
24
  /**
20
25
  * Specifies the visibility of the dialog.
21
26
  * @defaultValue false
@@ -61029,6 +61029,7 @@ const z2 = /* @__PURE__ */ De({
61029
61029
  props: {
61030
61030
  header: { default: "Asset Name Detail" },
61031
61031
  id: {},
61032
+ params: {},
61032
61033
  visible: { type: Boolean }
61033
61034
  },
61034
61035
  emits: ["update:visible"],
@@ -61042,11 +61043,11 @@ const z2 = /* @__PURE__ */ De({
61042
61043
  }
61043
61044
  }, h = async (f) => {
61044
61045
  try {
61045
- const { data: m } = await Ju.getAssetsByAssetName(
61046
+ const m = r.params ? { ...f, ...r.params } : f, { data: p } = await Ju.getAssetsByAssetName(
61046
61047
  r.id,
61047
- f
61048
+ m
61048
61049
  );
61049
- return m.data;
61050
+ return p.data;
61050
61051
  } catch (m) {
61051
61052
  n.add({ error: m, message: "Error, failed to load assets" });
61052
61053
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsv2-library",
3
- "version": "0.1.90",
3
+ "version": "0.1.91",
4
4
  "author": "fixedassetv2-fe",
5
5
  "license": "ISC",
6
6
  "homepage": "https://github.com/fixedassetv2-fe/tsv2-library#readme",
@@ -16,6 +16,11 @@ export interface DialogAssetNameDetailProps {
16
16
  */
17
17
  id: string;
18
18
 
19
+ /**
20
+ * The query params for fetching assets.
21
+ */
22
+ params?: { [key: string]: string };
23
+
19
24
  /**
20
25
  * Specifies the visibility of the dialog.
21
26
  * @defaultValue false