tsv2-library 1.1.0-dev-alpha.1 → 1.1.0-dev-alpha.3
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 +25 -25
- package/dist/tsv2-library.umd.js +3 -3
- package/package.json +1 -1
- package/src/services/assetBrand.service.ts +1 -1
- package/src/services/assetDamage.service.ts +1 -1
- package/src/services/assetMissing.service.ts +1 -1
- package/src/services/assetName.service.ts +1 -1
- package/src/services/assets.service.ts +1 -1
- package/src/services/auth.service.ts +1 -1
- package/src/services/damage.service.ts +1 -1
- package/src/services/dataLock.service.ts +1 -1
- package/src/services/deviceIOT.service.ts +1 -1
- package/src/services/disposal.service.ts +1 -1
- package/src/services/missing.service.ts +1 -1
- package/src/services/role.service.ts +1 -1
- package/src/services/routine.service.ts +1 -1
- package/src/services/scanLog.service.ts +1 -1
- package/src/services/settingsAttribute.service.ts +1 -1
- package/src/services/tagQr.service.ts +1 -1
- package/src/services/tagRfid.service.ts +1 -1
- package/src/services/tagTransaction.service.ts +1 -1
- package/src/services/tracking.service.ts +1 -1
- package/src/services/transferTransaction.service.ts +1 -1
- package/src/services/tree.service.ts +1 -1
- package/src/services/user.service.ts +1 -1
package/dist/tsv2-library.es.js
CHANGED
|
@@ -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 ({ "
|
|
8191
|
-
return { "
|
|
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];
|
|
8192
8192
|
}
|
|
8193
8193
|
return process.env["VUE_" + env];
|
|
8194
8194
|
};
|
|
@@ -13132,7 +13132,7 @@ const getSeverityByAssetStatus = (status) => {
|
|
|
13132
13132
|
const api$1 = ({ headers = {}, params = {} } = {}) => {
|
|
13133
13133
|
const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
|
|
13134
13134
|
const instance = axios.create({
|
|
13135
|
-
baseURL: `${BASE_URL2}/settings-user-role/v2/auth`,
|
|
13135
|
+
baseURL: `${BASE_URL2}/fam/settings-user-role/v2/auth`,
|
|
13136
13136
|
headers: {
|
|
13137
13137
|
"Content-type": "application/json",
|
|
13138
13138
|
...headers
|
|
@@ -13404,7 +13404,7 @@ const API$h = ({
|
|
|
13404
13404
|
const user = JSON.parse(localStorage.getItem("user") ?? "{}");
|
|
13405
13405
|
const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
|
|
13406
13406
|
const instance = axios.create({
|
|
13407
|
-
baseURL: `${BASE_URL2}/assets/v2${usePrefix ? "/assets" : ""}`,
|
|
13407
|
+
baseURL: `${BASE_URL2}/fam/assets/v2${usePrefix ? "/assets" : ""}`,
|
|
13408
13408
|
headers: {
|
|
13409
13409
|
"Content-type": "application/json",
|
|
13410
13410
|
"Authorization": `Bearer ${user.token}`,
|
|
@@ -13490,7 +13490,7 @@ const API$g = ({
|
|
|
13490
13490
|
const user = JSON.parse(localStorage.getItem("user") ?? "{}");
|
|
13491
13491
|
const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
|
|
13492
13492
|
const instance = axios.create({
|
|
13493
|
-
baseURL: `${BASE_URL2}/settings-attribute/v2/asset-name`,
|
|
13493
|
+
baseURL: `${BASE_URL2}/fam/settings-attribute/v2/asset-name`,
|
|
13494
13494
|
headers: {
|
|
13495
13495
|
"Content-type": "application/json",
|
|
13496
13496
|
"Authorization": `Bearer ${user.token}`,
|
|
@@ -13538,7 +13538,7 @@ const API$f = ({
|
|
|
13538
13538
|
const user = JSON.parse(localStorage.getItem("user") ?? "{}");
|
|
13539
13539
|
const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
|
|
13540
13540
|
const instance = axios.create({
|
|
13541
|
-
baseURL: `${BASE_URL2}/settings-attribute/v2/brands`,
|
|
13541
|
+
baseURL: `${BASE_URL2}/fam/settings-attribute/v2/brands`,
|
|
13542
13542
|
headers: {
|
|
13543
13543
|
"Content-type": "application/json",
|
|
13544
13544
|
"Authorization": `Bearer ${user.token}`,
|
|
@@ -13557,7 +13557,7 @@ const API$e = ({ headers = {}, params = {} } = {}) => {
|
|
|
13557
13557
|
const user = JSON.parse(localStorage.getItem("user")) ?? {};
|
|
13558
13558
|
const BASE_URL2 = getBaseURL$2("APP_TAGSAMURAI_API");
|
|
13559
13559
|
const instance = axios.create({
|
|
13560
|
-
baseURL: `${BASE_URL2}/settings-attribute/v2`,
|
|
13560
|
+
baseURL: `${BASE_URL2}/fam/settings-attribute/v2`,
|
|
13561
13561
|
headers: {
|
|
13562
13562
|
"Content-Type": "application/json",
|
|
13563
13563
|
"Authorization": `Bearer ${user.token}`,
|
|
@@ -13582,7 +13582,7 @@ const API$d = ({ headers = {}, params = {} } = {}) => {
|
|
|
13582
13582
|
const user = JSON.parse(localStorage.getItem("user")) ?? {};
|
|
13583
13583
|
const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
|
|
13584
13584
|
const instance = axios.create({
|
|
13585
|
-
baseURL: `${BASE_URL2}/disposal/v2`,
|
|
13585
|
+
baseURL: `${BASE_URL2}/fam/disposal/v2`,
|
|
13586
13586
|
headers: {
|
|
13587
13587
|
"Content-type": "application/json",
|
|
13588
13588
|
"Authorization": `Bearer ${user.token}`,
|
|
@@ -13611,7 +13611,7 @@ const API$c = ({
|
|
|
13611
13611
|
const user = JSON.parse(localStorage.getItem("user") ?? "{}");
|
|
13612
13612
|
const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
|
|
13613
13613
|
const instance = axios.create({
|
|
13614
|
-
baseURL: `${BASE_URL2}/settings-attribute/v2/`,
|
|
13614
|
+
baseURL: `${BASE_URL2}/fam/settings-attribute/v2/`,
|
|
13615
13615
|
headers: {
|
|
13616
13616
|
"Content-type": "application/json",
|
|
13617
13617
|
"Authorization": `Bearer ${user.token}`,
|
|
@@ -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/routine/v2/",
|
|
13637
|
+
baseURL: "https://dev-api.tagsamurai.local/fam/fam/routine/v2/",
|
|
13638
13638
|
headers: {
|
|
13639
13639
|
"Content-type": "application/json",
|
|
13640
13640
|
"Authorization": `Bearer ${user.token}`,
|
|
@@ -26336,7 +26336,7 @@ const API$a = ({ headers = {}, params = {} } = {}) => {
|
|
|
26336
26336
|
const user = JSON.parse(localStorage.getItem("user") ?? "{}");
|
|
26337
26337
|
const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
|
|
26338
26338
|
const instance = axios.create({
|
|
26339
|
-
baseURL: `${BASE_URL2}/settings-attribute/v2`,
|
|
26339
|
+
baseURL: `${BASE_URL2}/fam/settings-attribute/v2`,
|
|
26340
26340
|
headers: {
|
|
26341
26341
|
"Content-type": "application/json",
|
|
26342
26342
|
"Authorization": `Bearer ${user.token}`,
|
|
@@ -30946,7 +30946,7 @@ const BASE_URL = window.Cypress ? "https://localhost:9080" : apiEnv;
|
|
|
30946
30946
|
const api = ({ headers = {}, params = {} } = {}) => {
|
|
30947
30947
|
const user = JSON.parse(localStorage.getItem("user") ?? "{}");
|
|
30948
30948
|
const instance = axios.create({
|
|
30949
|
-
baseURL: `${BASE_URL}/transfer/v2/transaction`,
|
|
30949
|
+
baseURL: `${BASE_URL}/fam/transfer/v2/transaction`,
|
|
30950
30950
|
headers: {
|
|
30951
30951
|
"Authorization": `Bearer ${user.token}`,
|
|
30952
30952
|
"Content-type": "application/json",
|
|
@@ -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 ({ "
|
|
31272
|
-
return { "
|
|
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];
|
|
31273
31273
|
}
|
|
31274
31274
|
return process.env["VUE_" + env];
|
|
31275
31275
|
};
|
|
@@ -31277,7 +31277,7 @@ const API$9 = ({ headers = {}, params = {} } = {}) => {
|
|
|
31277
31277
|
const user = JSON.parse(localStorage.getItem("user")) ?? {};
|
|
31278
31278
|
const BASE_URL2 = getBaseURL$1("APP_TAGSAMURAI_API");
|
|
31279
31279
|
const instance = axios.create({
|
|
31280
|
-
baseURL: `${BASE_URL2}/damage-repair-ticketing/v2/damage`,
|
|
31280
|
+
baseURL: `${BASE_URL2}/fam/damage-repair-ticketing/v2/damage`,
|
|
31281
31281
|
headers: {
|
|
31282
31282
|
"Content-type": "application/json",
|
|
31283
31283
|
"Authorization": `Bearer ${user.token}`,
|
|
@@ -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 ({ "
|
|
31522
|
-
return { "
|
|
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];
|
|
31523
31523
|
}
|
|
31524
31524
|
return process.env["VUE_" + env];
|
|
31525
31525
|
};
|
|
@@ -31527,7 +31527,7 @@ const API$8 = ({ headers = {}, params = {} } = {}) => {
|
|
|
31527
31527
|
const user = JSON.parse(localStorage.getItem("user")) ?? {};
|
|
31528
31528
|
const BASE_URL2 = getBaseURL("APP_TAGSAMURAI_API");
|
|
31529
31529
|
const instance = axios.create({
|
|
31530
|
-
baseURL: `${BASE_URL2}/tracking/v2/missing`,
|
|
31530
|
+
baseURL: `${BASE_URL2}/fam/tracking/v2/missing`,
|
|
31531
31531
|
headers: {
|
|
31532
31532
|
"Content-type": "application/json",
|
|
31533
31533
|
"Authorization": `Bearer ${user.token}`,
|
|
@@ -38462,7 +38462,7 @@ const API$7 = ({ headers = {}, params = {} } = {}) => {
|
|
|
38462
38462
|
const user = JSON.parse(localStorage.getItem("user")) ?? {};
|
|
38463
38463
|
const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
|
|
38464
38464
|
const instance = axios.create({
|
|
38465
|
-
baseURL: `${BASE_URL2}/iot/v2`,
|
|
38465
|
+
baseURL: `${BASE_URL2}/fam/iot/v2`,
|
|
38466
38466
|
headers: {
|
|
38467
38467
|
"Content-type": "application/json",
|
|
38468
38468
|
"Authorization": `Bearer ${user.token}`,
|
|
@@ -38839,7 +38839,7 @@ const API$6 = ({
|
|
|
38839
38839
|
const user = JSON.parse(localStorage.getItem("user") ?? "{}");
|
|
38840
38840
|
const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
|
|
38841
38841
|
const instance = axios.create({
|
|
38842
|
-
baseURL: `${BASE_URL2}/tag/v2/scan-log`,
|
|
38842
|
+
baseURL: `${BASE_URL2}/fam/tag/v2/scan-log`,
|
|
38843
38843
|
headers: {
|
|
38844
38844
|
"Content-type": "application/json",
|
|
38845
38845
|
"Authorization": `Bearer ${user.token}`,
|
|
@@ -71231,7 +71231,7 @@ const API$5 = ({
|
|
|
71231
71231
|
const user = JSON.parse(localStorage.getItem("user") ?? "{}");
|
|
71232
71232
|
const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
|
|
71233
71233
|
const instance = axios.create({
|
|
71234
|
-
baseURL: `${BASE_URL2}/tag/v2/qr`,
|
|
71234
|
+
baseURL: `${BASE_URL2}/fam/tag/v2/qr`,
|
|
71235
71235
|
headers: {
|
|
71236
71236
|
"Content-type": "application/json",
|
|
71237
71237
|
"Authorization": `Bearer ${user.token}`,
|
|
@@ -71649,7 +71649,7 @@ const API$4 = ({
|
|
|
71649
71649
|
const user = JSON.parse(localStorage.getItem("user") ?? "{}");
|
|
71650
71650
|
const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
|
|
71651
71651
|
const instance = axios.create({
|
|
71652
|
-
baseURL: `${BASE_URL2}/damage-repair-ticketing/v2/damage`,
|
|
71652
|
+
baseURL: `${BASE_URL2}/fam/damage-repair-ticketing/v2/damage`,
|
|
71653
71653
|
headers: {
|
|
71654
71654
|
Authorization: `Bearer ${user.token}`,
|
|
71655
71655
|
...headers
|
|
@@ -71952,7 +71952,7 @@ const API$3 = ({
|
|
|
71952
71952
|
const user = JSON.parse(localStorage.getItem("user") ?? "{}");
|
|
71953
71953
|
const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
|
|
71954
71954
|
const instance = axios.create({
|
|
71955
|
-
baseURL: `${BASE_URL2}/missing-tracking/v2/missing`,
|
|
71955
|
+
baseURL: `${BASE_URL2}/fam/missing-tracking/v2/missing`,
|
|
71956
71956
|
headers: {
|
|
71957
71957
|
"Content-type": "application/json",
|
|
71958
71958
|
"Authorization": `Bearer ${user.token}`,
|
|
@@ -71975,7 +71975,7 @@ const API$2 = ({
|
|
|
71975
71975
|
const user = JSON.parse(localStorage.getItem("user") ?? "{}");
|
|
71976
71976
|
const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
|
|
71977
71977
|
const instance = axios.create({
|
|
71978
|
-
baseURL: `${BASE_URL2}/missing-tracking/v2/tracking`,
|
|
71978
|
+
baseURL: `${BASE_URL2}/fam/missing-tracking/v2/tracking`,
|
|
71979
71979
|
headers: {
|
|
71980
71980
|
"Content-type": "application/json",
|
|
71981
71981
|
"Authorization": `Bearer ${user.token}`,
|
|
@@ -72135,7 +72135,7 @@ const API$1 = ({
|
|
|
72135
72135
|
const user = JSON.parse(localStorage.getItem("user") ?? "{}");
|
|
72136
72136
|
const BASE_URL2 = "https://dev-api.tagsamurai.local/fam";
|
|
72137
72137
|
const instance = axios.create({
|
|
72138
|
-
baseURL: `${BASE_URL2}/tag/v2/tag-transaction`,
|
|
72138
|
+
baseURL: `${BASE_URL2}/fam/tag/v2/tag-transaction`,
|
|
72139
72139
|
headers: {
|
|
72140
72140
|
"Content-type": "application/json",
|
|
72141
72141
|
"Authorization": `Bearer ${user.token}`,
|