tsv2-library 0.2.52 → 0.2.53

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.
@@ -6011,7 +6011,7 @@ const yr = wn, {
6011
6011
  headers: t = {},
6012
6012
  params: n = {}
6013
6013
  } = {}) => {
6014
- const r = JSON.parse(localStorage.getItem("user") ?? "{}"), i = e === "Group" ? "https://dev-api-groups.tagsamurai.com" : "https://dev-api-asset-attributes.tagsamurai.com";
6014
+ const r = JSON.parse(localStorage.getItem("user") ?? "{}"), i = e === "Group" ? "https://dev-api-groups.tagsamurai.com" : "https://dev-api-attributes.tagsamurai.com";
6015
6015
  return yr.create({
6016
6016
  baseURL: `${i}/v2/`,
6017
6017
  headers: {
@@ -35399,7 +35399,7 @@ const One = async (e) => {
35399
35399
  e === "group" ? "groupSidebarChanged" : "categorySidebarChanged",
35400
35400
  t
35401
35401
  );
35402
- }, j2e = (e) => window.Cypress ? Cypress.env("CY_" + e) : { VITE_APP_GROUPS_API: "https://dev-api-groups.tagsamurai.com", VITE_APP_ASSETS_V2_API: "https://dev-api-assets-v2.tagsamurai.com", VITE_APP_ATTRIBUTES_API: "https://dev-api-asset-attributes.tagsamurai.com", VITE_APP_TAG_API: "https://dev-api-tag.tagsamurai.com", VITE_APP_FILE_MANAGER_API: "https://dev-api-file-manager.tagsamurai.com", VITE_APP_MISSING_API: "https://dev-api-missing.tagsamurai.com", VITE_APP_TRACKING_V2_API: "https://dev-api-tracking-v2.tagsamurai.com", VITE_APP_DAMAGE_API: "https://dev-api-damage.tagsamurai.com", VITE_APP_ASSETS_URL: "https://assets.tagsamurai.com", VITE_APP_TRANSFERS_V2_API: "https://dev-api-transfers-v2.tagsamurai.com", VITE_APP_USERS_V2_API: "https://dev-api-users-v2.tagsamurai.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 }["VITE_" + e], J2e = (e) => e ? new URL(e).hostname : "";
35402
+ }, j2e = (e) => window.Cypress ? Cypress.env("CY_" + e) : { VITE_APP_USERS_V2_API: "https://dev-api-users-v2.tagsamurai.com", VITE_APP_GROUPS_API: "https://dev-api-groups.tagsamurai.com", VITE_APP_ATTRIBUTES_API: "https://dev-api-attributes.tagsamurai.com", VITE_APP_TAG_API: "https://dev-api-tags.tagsamurai.com", VITE_APP_ASSETS_V2_API: "https://dev-api-assets-v2.tagsamurai.com", VITE_APP_DAMAGE_API: "https://dev-api-damage.tagsamurai.com", VITE_APP_MISSING_API: "https://dev-api-missing.tagsamurai.com", VITE_APP_TRACKING_V2_API: "https://dev-api-tracking-v2.tagsamurai.com", VITE_APP_ASSETS_URL: "https://dev-api-assets.tagsamurai.com", VITE_APP_ROUTINE_API: "https://dev-api-routine.tagsamurai.com", VITE_APP_DISPOSALS_V2_API: "https://dev-api-disposals-v2.tagsamurai.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 }["VITE_" + e], J2e = (e) => e ? new URL(e).hostname : "";
35403
35403
  /*!
35404
35404
  * shared v9.13.1
35405
35405
  * (c) 2024 kazuya kawaguchi
@@ -50376,7 +50376,7 @@ const bde = {
50376
50376
  headers: e = {},
50377
50377
  params: t = {}
50378
50378
  } = {}) => {
50379
- const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "https://dev-api-asset-attributes.tagsamurai.com";
50379
+ const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "https://dev-api-attributes.tagsamurai.com";
50380
50380
  return yr.create({
50381
50381
  baseURL: `${r}/v2/asset-name`,
50382
50382
  headers: {
@@ -69442,7 +69442,7 @@ const rve = ({
69442
69442
  headers: e = {},
69443
69443
  params: t = {}
69444
69444
  } = {}) => {
69445
- const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "https://dev-api-tag.tagsamurai.com";
69445
+ const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "https://dev-api-tags.tagsamurai.com";
69446
69446
  return yr.create({
69447
69447
  baseURL: `${r}/v2/qr`,
69448
69448
  headers: {
@@ -69509,9 +69509,9 @@ const rve = ({
69509
69509
  { label: "Left (Default)", value: "left" },
69510
69510
  { label: "Right", value: "right" }
69511
69511
  ]), u = oe("left"), d = oe("Q*2D1AB4"), f = oe(""), h = oe([]), m = me(() => o.visible), p = me(
69512
- () => "https://assets.tagsamurai.com/img/ts-full-horizontal.png"
69512
+ () => "https://dev-api-assets.tagsamurai.com/img/ts-full-horizontal.png"
69513
69513
  ), v = me(
69514
- () => "https://assets.tagsamurai.com/img/not-printed.png"
69514
+ () => "https://dev-api-assets.tagsamurai.com/img/not-printed.png"
69515
69515
  ), _ = me(() => !l.value || l.value < 1), b = me(() => u.value === "left" ? l.value && l.value > 2 ? 4 : 2 : l.value && l.value >= 2 ? 4 : 2), y = async () => {
69516
69516
  try {
69517
69517
  if (_.value)
@@ -70037,7 +70037,7 @@ const Dve = /* @__PURE__ */ Kh(Mve, [["__scopeId", "data-v-349deb23"]]), Ove = (
70037
70037
  headers: e = {},
70038
70038
  params: t = {}
70039
70039
  } = {}) => {
70040
- const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "https://dev-api-tag.tagsamurai.com";
70040
+ const n = JSON.parse(localStorage.getItem("user") ?? "{}"), r = "https://dev-api-tags.tagsamurai.com";
70041
70041
  return yr.create({
70042
70042
  baseURL: `${r}/v2/tag-transaction`,
70043
70043
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsv2-library",
3
- "version": "0.2.52",
3
+ "version": "0.2.53",
4
4
  "author": "fixedassetv2-fe",
5
5
  "license": "ISC",
6
6
  "homepage": "https://github.com/fixedassetv2-fe/tsv2-library#readme",
@@ -19,7 +19,7 @@ interface CancelReportDisposalQueryParams {
19
19
 
20
20
  export const API = ({ headers = {}, params = {} } = {}): AxiosInstance => {
21
21
  const user = JSON.parse(localStorage.getItem('user') as string) ?? {};
22
- const BASE_URL = 'https://dev-api-disposals-v2.tagsamurai.com';
22
+ const BASE_URL = import.meta.env.VITE_APP_DISPOSALS_V2_API;
23
23
 
24
24
  const instance = axios.create({
25
25
  baseURL: `${BASE_URL}/v2`,
@@ -43,7 +43,7 @@ export const API = ({ headers = {}, params = {} } = {}): AxiosInstance => {
43
43
  const user = JSON.parse(localStorage.getItem('user') ?? '{}');
44
44
 
45
45
  const instance = axios.create({
46
- baseURL: 'https://dev-api-routine.tagsamurai.com/v2/',
46
+ baseURL: import.meta.env.VITE_APP_ROUTINE_API + '/v2/',
47
47
  headers: {
48
48
  'Content-type': 'application/json',
49
49
  'Authorization': `Bearer ${user.token}`,