tsv2-library 1.1.0-dev-alpha.3 → 1.1.0-dev-alpha.4

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.
@@ -6894,7 +6894,7 @@ const useToast = () => {
6894
6894
  return toastMethod;
6895
6895
  };
6896
6896
  const buildFileURL = (name, width2, height) => {
6897
- const BASE_URL2 = new URL("https://dev-api.tagsamurai.local/fam").origin;
6897
+ const BASE_URL2 = new URL("https://dev-api.tagsamurai.local").origin;
6898
6898
  let url = (name == null ? void 0 : name.startsWith("http")) ? name : `${BASE_URL2}/file-storage/api/file/${name == null ? void 0 : name.replace(/^\/+/, "")}`;
6899
6899
  if (width2 || height) {
6900
6900
  const params = new URLSearchParams();
@@ -8187,8 +8187,8 @@ const unListenSidebarChanges = (type, callback) => {
8187
8187
  const getBaseURL$2 = (env) => {
8188
8188
  if (window.Cypress) {
8189
8189
  return Cypress.env("CY_" + env);
8190
- } else if ({ "VITE_APP_TAGSAMURAI_API": "https://dev-api.tagsamurai.local/fam", "VITE_APP_ASSETS_URL": "https://assets.tagsamurai.com", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyDVIruh-_m2OSyt3-dtgrztj6laUaUABKc", "VITE_APP_WSS_RFID_READER_API": "wss://dev-api.tagsamurai.local/rfid-reader-go/", "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false }) {
8191
- return { "VITE_APP_TAGSAMURAI_API": "https://dev-api.tagsamurai.local/fam", "VITE_APP_ASSETS_URL": "https://assets.tagsamurai.com", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyDVIruh-_m2OSyt3-dtgrztj6laUaUABKc", "VITE_APP_WSS_RFID_READER_API": "wss://dev-api.tagsamurai.local/rfid-reader-go/", "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false }["VITE_" + env];
8190
+ } else if ({ "VITE_APP_TAGSAMURAI_API": "https://dev-api.tagsamurai.local", "VITE_APP_ASSETS_URL": "https://assets.tagsamurai.com", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyDVIruh-_m2OSyt3-dtgrztj6laUaUABKc", "VITE_APP_WSS_RFID_READER_API": "wss://dev-api.tagsamurai.local/rfid-reader-go/", "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false }) {
8191
+ return { "VITE_APP_TAGSAMURAI_API": "https://dev-api.tagsamurai.local", "VITE_APP_ASSETS_URL": "https://assets.tagsamurai.com", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyDVIruh-_m2OSyt3-dtgrztj6laUaUABKc", "VITE_APP_WSS_RFID_READER_API": "wss://dev-api.tagsamurai.local/rfid-reader-go/", "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false }["VITE_" + env];
8192
8192
  }
8193
8193
  return process.env["VUE_" + env];
8194
8194
  };
@@ -13130,7 +13130,7 @@ const getSeverityByAssetStatus = (status) => {
13130
13130
  return severity;
13131
13131
  };
13132
13132
  const api$1 = ({ headers = {}, params = {} } = {}) => {
13133
- const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
13133
+ const BASE_URL2 = "https://dev-api.tagsamurai.local";
13134
13134
  const instance = axios.create({
13135
13135
  baseURL: `${BASE_URL2}/fam/settings-user-role/v2/auth`,
13136
13136
  headers: {
@@ -13265,7 +13265,7 @@ const formatCurrencyField = (value) => {
13265
13265
  const getUser$1 = () => JSON.parse(localStorage.getItem("user") ?? "{}");
13266
13266
  const API$i = ({ headers = {}, params = {} } = {}) => {
13267
13267
  const user = getUser$1();
13268
- const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
13268
+ const BASE_URL2 = "https://dev-api.tagsamurai.local";
13269
13269
  const instance = axios.create({
13270
13270
  baseURL: `${BASE_URL2}/global-settings`,
13271
13271
  headers: {
@@ -13402,7 +13402,7 @@ const API$h = ({
13402
13402
  usePrefix = true
13403
13403
  } = {}) => {
13404
13404
  const user = JSON.parse(localStorage.getItem("user") ?? "{}");
13405
- const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
13405
+ const BASE_URL2 = "https://dev-api.tagsamurai.local";
13406
13406
  const instance = axios.create({
13407
13407
  baseURL: `${BASE_URL2}/fam/assets/v2${usePrefix ? "/assets" : ""}`,
13408
13408
  headers: {
@@ -13488,7 +13488,7 @@ const API$g = ({
13488
13488
  params = {}
13489
13489
  } = {}) => {
13490
13490
  const user = JSON.parse(localStorage.getItem("user") ?? "{}");
13491
- const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
13491
+ const BASE_URL2 = "https://dev-api.tagsamurai.local";
13492
13492
  const instance = axios.create({
13493
13493
  baseURL: `${BASE_URL2}/fam/settings-attribute/v2/asset-name`,
13494
13494
  headers: {
@@ -13536,7 +13536,7 @@ const API$f = ({
13536
13536
  params = {}
13537
13537
  } = {}) => {
13538
13538
  const user = JSON.parse(localStorage.getItem("user") ?? "{}");
13539
- const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
13539
+ const BASE_URL2 = "https://dev-api.tagsamurai.local";
13540
13540
  const instance = axios.create({
13541
13541
  baseURL: `${BASE_URL2}/fam/settings-attribute/v2/brands`,
13542
13542
  headers: {
@@ -13580,7 +13580,7 @@ const DataLockService = {
13580
13580
  };
13581
13581
  const API$d = ({ headers = {}, params = {} } = {}) => {
13582
13582
  const user = JSON.parse(localStorage.getItem("user")) ?? {};
13583
- const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
13583
+ const BASE_URL2 = "https://dev-api.tagsamurai.local";
13584
13584
  const instance = axios.create({
13585
13585
  baseURL: `${BASE_URL2}/fam/disposal/v2`,
13586
13586
  headers: {
@@ -13609,7 +13609,7 @@ const API$c = ({
13609
13609
  params = {}
13610
13610
  } = {}) => {
13611
13611
  const user = JSON.parse(localStorage.getItem("user") ?? "{}");
13612
- const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
13612
+ const BASE_URL2 = "https://dev-api.tagsamurai.local";
13613
13613
  const instance = axios.create({
13614
13614
  baseURL: `${BASE_URL2}/fam/settings-attribute/v2/`,
13615
13615
  headers: {
@@ -13634,7 +13634,7 @@ const TreeServices = {
13634
13634
  const API$b = ({ headers = {}, params = {} } = {}) => {
13635
13635
  const user = JSON.parse(localStorage.getItem("user") ?? "{}");
13636
13636
  const instance = axios.create({
13637
- baseURL: "https://dev-api.tagsamurai.local/fam/fam/routine/v2/",
13637
+ baseURL: "https://dev-api.tagsamurai.local/fam/routine/v2/",
13638
13638
  headers: {
13639
13639
  "Content-type": "application/json",
13640
13640
  "Authorization": `Bearer ${user.token}`,
@@ -26334,7 +26334,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
26334
26334
  });
26335
26335
  const API$a = ({ headers = {}, params = {} } = {}) => {
26336
26336
  const user = JSON.parse(localStorage.getItem("user") ?? "{}");
26337
- const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
26337
+ const BASE_URL2 = "https://dev-api.tagsamurai.local";
26338
26338
  const instance = axios.create({
26339
26339
  baseURL: `${BASE_URL2}/fam/settings-attribute/v2`,
26340
26340
  headers: {
@@ -30941,7 +30941,7 @@ const parseAssetStaticFilter = (filter4) => {
30941
30941
  });
30942
30942
  return parsedFilter;
30943
30943
  };
30944
- const apiEnv = "https://dev-api.tagsamurai.local/fam";
30944
+ const apiEnv = "https://dev-api.tagsamurai.local";
30945
30945
  const BASE_URL = window.Cypress ? "https://localhost:9080" : apiEnv;
30946
30946
  const api = ({ headers = {}, params = {} } = {}) => {
30947
30947
  const user = JSON.parse(localStorage.getItem("user") ?? "{}");
@@ -31268,8 +31268,8 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
31268
31268
  const getBaseURL$1 = (env) => {
31269
31269
  if (window.Cypress) {
31270
31270
  return Cypress.env("CY_" + env);
31271
- } else if ({ "VITE_APP_TAGSAMURAI_API": "https://dev-api.tagsamurai.local/fam", "VITE_APP_ASSETS_URL": "https://assets.tagsamurai.com", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyDVIruh-_m2OSyt3-dtgrztj6laUaUABKc", "VITE_APP_WSS_RFID_READER_API": "wss://dev-api.tagsamurai.local/rfid-reader-go/", "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false }) {
31272
- return { "VITE_APP_TAGSAMURAI_API": "https://dev-api.tagsamurai.local/fam", "VITE_APP_ASSETS_URL": "https://assets.tagsamurai.com", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyDVIruh-_m2OSyt3-dtgrztj6laUaUABKc", "VITE_APP_WSS_RFID_READER_API": "wss://dev-api.tagsamurai.local/rfid-reader-go/", "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false }["VITE_" + env];
31271
+ } else if ({ "VITE_APP_TAGSAMURAI_API": "https://dev-api.tagsamurai.local", "VITE_APP_ASSETS_URL": "https://assets.tagsamurai.com", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyDVIruh-_m2OSyt3-dtgrztj6laUaUABKc", "VITE_APP_WSS_RFID_READER_API": "wss://dev-api.tagsamurai.local/rfid-reader-go/", "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false }) {
31272
+ return { "VITE_APP_TAGSAMURAI_API": "https://dev-api.tagsamurai.local", "VITE_APP_ASSETS_URL": "https://assets.tagsamurai.com", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyDVIruh-_m2OSyt3-dtgrztj6laUaUABKc", "VITE_APP_WSS_RFID_READER_API": "wss://dev-api.tagsamurai.local/rfid-reader-go/", "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false }["VITE_" + env];
31273
31273
  }
31274
31274
  return process.env["VUE_" + env];
31275
31275
  };
@@ -31518,8 +31518,8 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
31518
31518
  const getBaseURL = (env) => {
31519
31519
  if (window.Cypress) {
31520
31520
  return Cypress.env("CY_" + env);
31521
- } else if ({ "VITE_APP_TAGSAMURAI_API": "https://dev-api.tagsamurai.local/fam", "VITE_APP_ASSETS_URL": "https://assets.tagsamurai.com", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyDVIruh-_m2OSyt3-dtgrztj6laUaUABKc", "VITE_APP_WSS_RFID_READER_API": "wss://dev-api.tagsamurai.local/rfid-reader-go/", "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false }) {
31522
- return { "VITE_APP_TAGSAMURAI_API": "https://dev-api.tagsamurai.local/fam", "VITE_APP_ASSETS_URL": "https://assets.tagsamurai.com", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyDVIruh-_m2OSyt3-dtgrztj6laUaUABKc", "VITE_APP_WSS_RFID_READER_API": "wss://dev-api.tagsamurai.local/rfid-reader-go/", "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false }["VITE_" + env];
31521
+ } else if ({ "VITE_APP_TAGSAMURAI_API": "https://dev-api.tagsamurai.local", "VITE_APP_ASSETS_URL": "https://assets.tagsamurai.com", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyDVIruh-_m2OSyt3-dtgrztj6laUaUABKc", "VITE_APP_WSS_RFID_READER_API": "wss://dev-api.tagsamurai.local/rfid-reader-go/", "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false }) {
31522
+ return { "VITE_APP_TAGSAMURAI_API": "https://dev-api.tagsamurai.local", "VITE_APP_ASSETS_URL": "https://assets.tagsamurai.com", "VITE_GOOGLE_MAPS_API_KEY": "AIzaSyDVIruh-_m2OSyt3-dtgrztj6laUaUABKc", "VITE_APP_WSS_RFID_READER_API": "wss://dev-api.tagsamurai.local/rfid-reader-go/", "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true, "SSR": false }["VITE_" + env];
31523
31523
  }
31524
31524
  return process.env["VUE_" + env];
31525
31525
  };
@@ -38460,7 +38460,7 @@ const getErrorCode = (error) => {
38460
38460
  };
38461
38461
  const API$7 = ({ headers = {}, params = {} } = {}) => {
38462
38462
  const user = JSON.parse(localStorage.getItem("user")) ?? {};
38463
- const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
38463
+ const BASE_URL2 = "https://dev-api.tagsamurai.local";
38464
38464
  const instance = axios.create({
38465
38465
  baseURL: `${BASE_URL2}/fam/iot/v2`,
38466
38466
  headers: {
@@ -38837,7 +38837,7 @@ const API$6 = ({
38837
38837
  params = {}
38838
38838
  } = {}) => {
38839
38839
  const user = JSON.parse(localStorage.getItem("user") ?? "{}");
38840
- const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
38840
+ const BASE_URL2 = "https://dev-api.tagsamurai.local";
38841
38841
  const instance = axios.create({
38842
38842
  baseURL: `${BASE_URL2}/fam/tag/v2/scan-log`,
38843
38843
  headers: {
@@ -71229,7 +71229,7 @@ const API$5 = ({
71229
71229
  params = {}
71230
71230
  } = {}) => {
71231
71231
  const user = JSON.parse(localStorage.getItem("user") ?? "{}");
71232
- const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
71232
+ const BASE_URL2 = "https://dev-api.tagsamurai.local";
71233
71233
  const instance = axios.create({
71234
71234
  baseURL: `${BASE_URL2}/fam/tag/v2/qr`,
71235
71235
  headers: {
@@ -71647,7 +71647,7 @@ const API$4 = ({
71647
71647
  params = {}
71648
71648
  } = {}) => {
71649
71649
  const user = JSON.parse(localStorage.getItem("user") ?? "{}");
71650
- const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
71650
+ const BASE_URL2 = "https://dev-api.tagsamurai.local";
71651
71651
  const instance = axios.create({
71652
71652
  baseURL: `${BASE_URL2}/fam/damage-repair-ticketing/v2/damage`,
71653
71653
  headers: {
@@ -71950,7 +71950,7 @@ const API$3 = ({
71950
71950
  params = {}
71951
71951
  } = {}) => {
71952
71952
  const user = JSON.parse(localStorage.getItem("user") ?? "{}");
71953
- const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
71953
+ const BASE_URL2 = "https://dev-api.tagsamurai.local";
71954
71954
  const instance = axios.create({
71955
71955
  baseURL: `${BASE_URL2}/fam/missing-tracking/v2/missing`,
71956
71956
  headers: {
@@ -71973,7 +71973,7 @@ const API$2 = ({
71973
71973
  params = {}
71974
71974
  } = {}) => {
71975
71975
  const user = JSON.parse(localStorage.getItem("user") ?? "{}");
71976
- const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
71976
+ const BASE_URL2 = "https://dev-api.tagsamurai.local";
71977
71977
  const instance = axios.create({
71978
71978
  baseURL: `${BASE_URL2}/fam/missing-tracking/v2/tracking`,
71979
71979
  headers: {
@@ -72133,7 +72133,7 @@ const API$1 = ({
72133
72133
  params = {}
72134
72134
  } = {}) => {
72135
72135
  const user = JSON.parse(localStorage.getItem("user") ?? "{}");
72136
- const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
72136
+ const BASE_URL2 = "https://dev-api.tagsamurai.local";
72137
72137
  const instance = axios.create({
72138
72138
  baseURL: `${BASE_URL2}/fam/tag/v2/tag-transaction`,
72139
72139
  headers: {
@@ -72304,7 +72304,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
72304
72304
  const getUser = () => JSON.parse(localStorage.getItem("user") ?? "{}");
72305
72305
  const API = ({ headers = {}, params = {} } = {}) => {
72306
72306
  const user = getUser();
72307
- const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
72307
+ const BASE_URL2 = "https://dev-api.tagsamurai.local";
72308
72308
  const instance = axios.create({
72309
72309
  baseURL: `${BASE_URL2}/global-settings`,
72310
72310
  headers: {