tsv2-library 1.0.2-beta.3 → 1.0.3-alpha.2
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/dist/tsv2-library.es.js
CHANGED
|
@@ -4511,7 +4511,7 @@ const qi = ({
|
|
|
4511
4511
|
headers: e = {},
|
|
4512
4512
|
params: t = {}
|
|
4513
4513
|
} = {}) => {
|
|
4514
|
-
const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "";
|
|
4514
|
+
const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "https://dev-api.tagsamurai.com";
|
|
4515
4515
|
return Mr.create({
|
|
4516
4516
|
baseURL: `${r}/assets/v2/assets`,
|
|
4517
4517
|
headers: {
|
|
@@ -4541,7 +4541,7 @@ const qi = ({
|
|
|
4541
4541
|
headers: e = {},
|
|
4542
4542
|
params: t = {}
|
|
4543
4543
|
} = {}) => {
|
|
4544
|
-
const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "";
|
|
4544
|
+
const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "https://dev-api.tagsamurai.com";
|
|
4545
4545
|
return Mr.create({
|
|
4546
4546
|
baseURL: `${r}/settings-attribute/v2/asset-name`,
|
|
4547
4547
|
headers: {
|
|
@@ -4562,7 +4562,7 @@ const qi = ({
|
|
|
4562
4562
|
headers: e = {},
|
|
4563
4563
|
params: t = {}
|
|
4564
4564
|
} = {}) => {
|
|
4565
|
-
const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "";
|
|
4565
|
+
const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "https://dev-api.tagsamurai.com";
|
|
4566
4566
|
return Mr.create({
|
|
4567
4567
|
baseURL: `${r}/settings-attribute/v2/brands`,
|
|
4568
4568
|
headers: {
|
|
@@ -4575,7 +4575,7 @@ const qi = ({
|
|
|
4575
4575
|
}, XEe = {
|
|
4576
4576
|
getAssetBrandDropdown: () => Cte().get("/dropdown")
|
|
4577
4577
|
}, fp = ({ headers: e = {}, params: t = {} } = {}) => {
|
|
4578
|
-
const n = JSON.parse(localStorage.getItem("user")) ?? {}, r = "";
|
|
4578
|
+
const n = JSON.parse(localStorage.getItem("user")) ?? {}, r = "https://dev-api.tagsamurai.com";
|
|
4579
4579
|
return Mr.create({
|
|
4580
4580
|
baseURL: `${r}/disposal/v2`,
|
|
4581
4581
|
headers: {
|
|
@@ -4594,7 +4594,7 @@ const qi = ({
|
|
|
4594
4594
|
headers: t = {},
|
|
4595
4595
|
params: n = {}
|
|
4596
4596
|
} = {}) => {
|
|
4597
|
-
const r = JSON.parse(localStorage.getItem("user") ?? "{}"), i = "";
|
|
4597
|
+
const r = JSON.parse(localStorage.getItem("user") ?? "{}"), i = "https://dev-api.tagsamurai.com";
|
|
4598
4598
|
return Mr.create({
|
|
4599
4599
|
baseURL: `${i}/settings-attribute/v2/`,
|
|
4600
4600
|
headers: {
|
|
@@ -4606,12 +4606,12 @@ const qi = ({
|
|
|
4606
4606
|
});
|
|
4607
4607
|
}, Ate = {
|
|
4608
4608
|
getTreeList: (e, t) => Nte({ type: e, params: t }).get(
|
|
4609
|
-
e === "Group" ? "/tree" : "/category/tree"
|
|
4609
|
+
e === "Group" ? "/group/tree" : "/category/tree"
|
|
4610
4610
|
)
|
|
4611
4611
|
}, Mte = ({ headers: e = {}, params: t = {} } = {}) => {
|
|
4612
4612
|
const n = JSON.parse(localStorage.getItem("user") ?? "{}");
|
|
4613
4613
|
return Mr.create({
|
|
4614
|
-
baseURL: "/routine/v2/",
|
|
4614
|
+
baseURL: "https://dev-api.tagsamurai.com/routine/v2/",
|
|
4615
4615
|
headers: {
|
|
4616
4616
|
"Content-type": "application/json",
|
|
4617
4617
|
Authorization: `Bearer ${n.token}`,
|
|
@@ -32483,7 +32483,7 @@ const xde = async (e) => {
|
|
|
32483
32483
|
e.removeAllGroups();
|
|
32484
32484
|
}
|
|
32485
32485
|
};
|
|
32486
|
-
}, So = (e) => e ?
|
|
32486
|
+
}, So = (e) => e ? `https://dev-api.tagsamurai.com/file-manager/v2/files/${e}` : void 0, wl = (e) => {
|
|
32487
32487
|
const { transactionRoles: t } = JSON.parse(
|
|
32488
32488
|
localStorage.getItem("user") ?? "{}"
|
|
32489
32489
|
);
|
|
@@ -33626,7 +33626,7 @@ const xde = async (e) => {
|
|
|
33626
33626
|
e === "group" ? "groupSidebarChanged" : "categorySidebarChanged",
|
|
33627
33627
|
t
|
|
33628
33628
|
);
|
|
33629
|
-
}, fUe = (e) => window.Cypress ? Cypress.env("CY_" + e) : { VITE_APP_TAGSAMURAI_API: "", VITE_APP_WSS_RFID_READER_API: "wss://
|
|
33629
|
+
}, fUe = (e) => window.Cypress ? Cypress.env("CY_" + e) : { VITE_APP_TAGSAMURAI_API: "https://dev-api.tagsamurai.com", VITE_APP_WSS_RFID_READER_API: "wss://dev-api.tagsamurai.com/rfid-reader-go", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 }["VITE_" + e], hUe = (e) => e ? new URL(e).hostname : "";
|
|
33630
33630
|
/*!
|
|
33631
33631
|
* shared v9.13.1
|
|
33632
33632
|
* (c) 2024 kazuya kawaguchi
|
|
@@ -36852,7 +36852,7 @@ const Ehe = (e) => e.trim().replace(/\s+/g, "_"), Do = () => {
|
|
|
36852
36852
|
}
|
|
36853
36853
|
return t;
|
|
36854
36854
|
}, Vhe = ({ headers: e = {}, params: t = {} } = {}) => {
|
|
36855
|
-
const n = "", r = Mr.create({
|
|
36855
|
+
const n = "https://dev-api.tagsamurai.com", r = Mr.create({
|
|
36856
36856
|
baseURL: `${n}/settings-user-role/v2/auth`,
|
|
36857
36857
|
headers: {
|
|
36858
36858
|
"Content-type": "application/json",
|
|
@@ -37707,7 +37707,7 @@ const dpe = {
|
|
|
37707
37707
|
}, 1e3), !0;
|
|
37708
37708
|
};
|
|
37709
37709
|
}
|
|
37710
|
-
}, ppe = "", mpe = window.Cypress ? "https://localhost:9080" : ppe, gpe = JSON.parse(localStorage.getItem("user") ?? "{}"), vpe = ({ headers: e = {}, params: t = {} } = {}) => Mr.create({
|
|
37710
|
+
}, ppe = "https://dev-api.tagsamurai.com", mpe = window.Cypress ? "https://localhost:9080" : ppe, gpe = JSON.parse(localStorage.getItem("user") ?? "{}"), vpe = ({ headers: e = {}, params: t = {} } = {}) => Mr.create({
|
|
37711
37711
|
baseURL: `${mpe}/transfer/v2/transaction`,
|
|
37712
37712
|
headers: {
|
|
37713
37713
|
Authorization: `Bearer ${gpe.token}`,
|
|
@@ -37950,7 +37950,7 @@ const dpe = {
|
|
|
37950
37950
|
_: 1
|
|
37951
37951
|
}, 8, ["visible", "pt"]));
|
|
37952
37952
|
}
|
|
37953
|
-
}), Gpe = (e) => window.Cypress ? Cypress.env("CY_" + e) : { VITE_APP_TAGSAMURAI_API: "", VITE_APP_WSS_RFID_READER_API: "wss://
|
|
37953
|
+
}), Gpe = (e) => window.Cypress ? Cypress.env("CY_" + e) : { VITE_APP_TAGSAMURAI_API: "https://dev-api.tagsamurai.com", VITE_APP_WSS_RFID_READER_API: "wss://dev-api.tagsamurai.com/rfid-reader-go", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 }["VITE_" + e], zpe = ({ headers: e = {}, params: t = {} } = {}) => {
|
|
37954
37954
|
const n = JSON.parse(localStorage.getItem("user")) ?? {}, r = Gpe("APP_TAGSAMURAI_API");
|
|
37955
37955
|
return Mr.create({
|
|
37956
37956
|
baseURL: `${r}/repair/v2`,
|
|
@@ -38197,7 +38197,7 @@ const dpe = {
|
|
|
38197
38197
|
_: 1
|
|
38198
38198
|
}, 8, ["visible"]));
|
|
38199
38199
|
}
|
|
38200
|
-
}), p0e = (e) => window.Cypress ? Cypress.env("CY_" + e) : { VITE_APP_TAGSAMURAI_API: "", VITE_APP_WSS_RFID_READER_API: "wss://
|
|
38200
|
+
}), p0e = (e) => window.Cypress ? Cypress.env("CY_" + e) : { VITE_APP_TAGSAMURAI_API: "https://dev-api.tagsamurai.com", VITE_APP_WSS_RFID_READER_API: "wss://dev-api.tagsamurai.com/rfid-reader-go", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 }["VITE_" + e], m0e = ({ headers: e = {}, params: t = {} } = {}) => {
|
|
38201
38201
|
const n = JSON.parse(localStorage.getItem("user")) ?? {}, r = p0e("APP_TAGSAMURAI_API");
|
|
38202
38202
|
return Mr.create({
|
|
38203
38203
|
baseURL: `${r}/repair/v2`,
|
|
@@ -45189,7 +45189,7 @@ const Mve = { class: "flex items-center gap-3 w-full" }, Dve = {
|
|
|
45189
45189
|
))
|
|
45190
45190
|
return e.message;
|
|
45191
45191
|
}, Pve = ({ headers: e = {}, params: t = {} } = {}) => {
|
|
45192
|
-
const n = JSON.parse(localStorage.getItem("user")) ?? {}, r = "";
|
|
45192
|
+
const n = JSON.parse(localStorage.getItem("user")) ?? {}, r = "https://dev-api.tagsamurai.com";
|
|
45193
45193
|
return Mr.create({
|
|
45194
45194
|
baseURL: `${r}/iot/v2`,
|
|
45195
45195
|
headers: {
|
|
@@ -45205,7 +45205,7 @@ const Mve = { class: "flex items-center gap-3 w-full" }, Dve = {
|
|
|
45205
45205
|
serialNumber: JSON.stringify(e)
|
|
45206
45206
|
}
|
|
45207
45207
|
}).get("/reader")
|
|
45208
|
-
}, ZS = "
|
|
45208
|
+
}, ZS = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPW51bGw7c2VsZi5vbm1lc3NhZ2U9cz0+e2NvbnN0IGU9cy5kYXRhO3N3aXRjaChlLmNvbW1hbmQpe2Nhc2Uic3luYyI6byhlKTticmVhaztjYXNlImNvbm5lY3QiOnQoZSk7YnJlYWs7Y2FzZSJzY2FuIjpkKGUpO2JyZWFrO2Nhc2Uic3RvcHNjYW4iOmMoZSk7YnJlYWt9fTtjb25zdCBvPSh7dXNlcklkOnN9KT0+e2E9PW51bGx8fGEuY2xvc2UoKSxhPW5ldyBXZWJTb2NrZXQoIndzczovL2Rldi1hcGkudGFnc2Ft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GkudGFnc2FtdXJhaS5jb20vcmZpZC1yZWFkZXItZ28vIiksYS5vbm9wZW49KCk9PnthPT1udWxsfHxhLnNlbmQoSlNPTi5zdHJpbmdpZnkoe2RhdGE6e2NvbW1hbmQ6cyx1c2VySWQ6ZSxzb3VyY2U6ImFwcCIsc2VyaWFsTnVtYmVyOm4samVuaXNEZXZpY2U6cH0sZXZlbnQ6InJlYWRlciJ9KSkscG9zdE1lc3NhZ2Uoe3N0YXR1czoic2Nhbl9zdGFydGVkIn0pfSxhLm9ubWVzc2FnZT1yPT57cG9zdE1lc3NhZ2Uoe3N0YXR1czoic2Nhbm5lZCIsLi4uSlNPTi5wYXJzZShyLmRhdGEpfSl9LGEub25lcnJvcj1yPT57YT09bnVsbHx8YS5jbG9zZSgpLHBvc3RNZXNzYWdlKHtzdGF0dXM6InNjYW5fZXJyb3IiLGVycm9yOnJ9KX19LGM9KHt1c2VySWQ6c30pPT57YT09bnVsbHx8YS5jbG9zZSgpLGE9bmV3IFdlYlNvY2tldCgid3NzOi8vZGV2LWFwaS50YWdzYW11cmFpLmNvbS9yZmlkLXJlYWRlci1nby8iKSxhLm9ub3Blbj0oKT0+e2E9PW51bGx8fGEuc2VuZChKU09OLnN0cmluZ2lmeSh7ZGF0YTp7Y29tbWFuZDoic3RvcHNjYW4iLHVzZXJJZDpzLHNvdXJjZToiYXBwIn0sZXZlbnQ6InJlYWRlciJ9KSl9LGEub25tZXNzYWdlPWU9Pntjb25zdHtkYXRhOm59PWU7biYmKGE9PW51bGx8fGEuY2xvc2UoKSxhPW51bGwscG9zdE1lc3NhZ2Uoe3N0YXR1czoic2Nhbl9zdG9wcGVkIn0pKX19fSkoKTsK", A_ = typeof window < "u" && window.Blob && new Blob([atob(ZS)], { type: "text/javascript;charset=utf-8" });
|
|
45209
45209
|
function QS() {
|
|
45210
45210
|
let e;
|
|
45211
45211
|
try {
|
|
@@ -71326,7 +71326,7 @@ const xRe = {
|
|
|
71326
71326
|
headers: e = {},
|
|
71327
71327
|
params: t = {}
|
|
71328
71328
|
} = {}) => {
|
|
71329
|
-
const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "";
|
|
71329
|
+
const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "https://dev-api.tagsamurai.com";
|
|
71330
71330
|
return Mr.create({
|
|
71331
71331
|
baseURL: `${r}/tag/v2/qr`,
|
|
71332
71332
|
headers: {
|
|
@@ -71587,7 +71587,7 @@ const ixe = /* @__PURE__ */ Tl(axe, [["__scopeId", "data-v-974dcb37"]]), oxe = (
|
|
|
71587
71587
|
headers: e = {},
|
|
71588
71588
|
params: t = {}
|
|
71589
71589
|
} = {}) => {
|
|
71590
|
-
const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "";
|
|
71590
|
+
const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "https://dev-api.tagsamurai.com";
|
|
71591
71591
|
return Mr.create({
|
|
71592
71592
|
baseURL: `${r}/repair/v2`,
|
|
71593
71593
|
headers: {
|
|
@@ -71818,7 +71818,7 @@ const ixe = /* @__PURE__ */ Tl(axe, [["__scopeId", "data-v-974dcb37"]]), oxe = (
|
|
|
71818
71818
|
headers: e = {},
|
|
71819
71819
|
params: t = {}
|
|
71820
71820
|
} = {}) => {
|
|
71821
|
-
const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "";
|
|
71821
|
+
const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "https://dev-api.tagsamurai.com";
|
|
71822
71822
|
return Mr.create({
|
|
71823
71823
|
baseURL: `${r}/tracking/v2`,
|
|
71824
71824
|
headers: {
|
|
@@ -71834,7 +71834,7 @@ const ixe = /* @__PURE__ */ Tl(axe, [["__scopeId", "data-v-974dcb37"]]), oxe = (
|
|
|
71834
71834
|
headers: e = {},
|
|
71835
71835
|
params: t = {}
|
|
71836
71836
|
} = {}) => {
|
|
71837
|
-
const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "";
|
|
71837
|
+
const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "https://dev-api.tagsamurai.com";
|
|
71838
71838
|
return Mr.create({
|
|
71839
71839
|
baseURL: `${r}/tracking/v2/tracking`,
|
|
71840
71840
|
headers: {
|
|
@@ -71953,7 +71953,7 @@ const ixe = /* @__PURE__ */ Tl(axe, [["__scopeId", "data-v-974dcb37"]]), oxe = (
|
|
|
71953
71953
|
headers: e = {},
|
|
71954
71954
|
params: t = {}
|
|
71955
71955
|
} = {}) => {
|
|
71956
|
-
const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "";
|
|
71956
|
+
const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "https://dev-api.tagsamurai.com";
|
|
71957
71957
|
return Mr.create({
|
|
71958
71958
|
baseURL: `${r}/tag/v2/tag-transaction`,
|
|
71959
71959
|
headers: {
|