diff --git a/apps/st/src/components/statistics/input/SubmitDailog.tsx b/apps/st/src/components/statistics/input/SubmitDailog.tsx
index 6d0bbbd12..b286117b7 100644
--- a/apps/st/src/components/statistics/input/SubmitDailog.tsx
+++ b/apps/st/src/components/statistics/input/SubmitDailog.tsx
@@ -37,7 +37,7 @@ function formatPhoneWithHyphen(value: string): string {
return `${digits.slice(0, 3)}-${digits.slice(3, 6)}-${digits.slice(6, 10)}`;
}
-const PHONE_FIELDS: (keyof StatisticsInputSubmitInfoFormData)[] = ["locgCttpc", "locgCnfirmPh"];
+const PHONE_FIELDS: (keyof StatisticsInputSubmitInfoFormData)[] = ["laePicTelNo", "laeIdfrTelNo"];
interface SubmitDialogProps {
open: boolean;
@@ -48,26 +48,26 @@ interface SubmitDialogProps {
}
const defaultValues: StatisticsInputSubmitInfoFormData = {
- locgCharger: "",
- locgJob: "",
- locgDept: "",
- locgCttpc: "",
- locgCnfirmNm: "",
- locgCnfirmJob: "",
- locgCnfirmDept: "",
- locgCnfirmPh: "",
+ laePicNm: "",
+ laeKbrdrJbgdNm: "",
+ laeKbrdrDeptNm: "",
+ laePicTelNo: "",
+ laeIdfrNm: "",
+ laeIdfrJbgdNm: "",
+ laeIdfrDeptNm: "",
+ laeIdfrTelNo: "",
};
function statusInfoToFormData(info: SewerageSupplyRateStatusInfo): StatisticsInputSubmitInfoFormData {
return {
- locgCharger: info.locgCharger ?? "",
- locgJob: info.locgJob ?? "",
- locgDept: info.locgDept ?? "",
- locgCttpc: info.locgCttpc ?? "",
- locgCnfirmNm: info.locgCnfirmNm ?? "",
- locgCnfirmJob: info.locgCnfirmJob ?? "",
- locgCnfirmDept: info.locgCnfirmDept ?? "",
- locgCnfirmPh: info.locgCnfirmPh ?? "",
+ laePicNm: info.laePicNm ?? "",
+ laeKbrdrJbgdNm: info.laeKbrdrJbgdNm ?? "",
+ laeKbrdrDeptNm: info.laeKbrdrDeptNm ?? "",
+ laePicTelNo: info.laePicTelNo ?? "",
+ laeIdfrNm: info.laeIdfrNm ?? "",
+ laeIdfrJbgdNm: info.laeIdfrJbgdNm ?? "",
+ laeIdfrDeptNm: info.laeIdfrDeptNm ?? "",
+ laeIdfrTelNo: info.laeIdfrTelNo ?? "",
};
}
@@ -95,14 +95,14 @@ const SubmitDailog = ({ open, onOpenChange, statusInfo, onConfirm }: SubmitDialo
}
const rows: { name: keyof StatisticsInputSubmitInfoFormData; label: string; placeholder: string }[] = [
- { name: "locgCharger", label: "작성자 명", placeholder: "작성자 명 입력" },
- { name: "locgJob", label: "작성자 직제", placeholder: "작성자 직제 입력" },
- { name: "locgDept", label: "작성자 부서", placeholder: "작성자 부서 입력" },
- { name: "locgCttpc", label: "작성자 연락처", placeholder: "작성자 연락처 입력" },
- { name: "locgCnfirmNm", label: "승인자명", placeholder: "승인자명 입력" },
- { name: "locgCnfirmJob", label: "승인자 직제", placeholder: "승인자 직제 입력" },
- { name: "locgCnfirmDept", label: "승인자 부서", placeholder: "승인자 부서 입력" },
- { name: "locgCnfirmPh", label: "승인자 연락처", placeholder: "승인자 연락처" },
+ { name: "laePicNm", label: "작성자 명", placeholder: "작성자 명 입력" },
+ { name: "laeKbrdrJbgdNm", label: "작성자 직제", placeholder: "작성자 직제 입력" },
+ { name: "laeKbrdrDeptNm", label: "작성자 부서", placeholder: "작성자 부서 입력" },
+ { name: "laePicTelNo", label: "작성자 연락처", placeholder: "작성자 연락처 입력" },
+ { name: "laeIdfrNm", label: "승인자명", placeholder: "승인자명 입력" },
+ { name: "laeIdfrJbgdNm", label: "승인자 직제", placeholder: "승인자 직제 입력" },
+ { name: "laeIdfrDeptNm", label: "승인자 부서", placeholder: "승인자 부서 입력" },
+ { name: "laeIdfrTelNo", label: "승인자 연락처", placeholder: "승인자 연락처" },
];
return (
diff --git a/apps/st/src/components/statistics/management/LogHistory.tsx b/apps/st/src/components/statistics/management/LogHistory.tsx
new file mode 100644
index 000000000..5950c1125
--- /dev/null
+++ b/apps/st/src/components/statistics/management/LogHistory.tsx
@@ -0,0 +1,7 @@
+const LogHistory = () => {
+ return (
+ <>>
+ );
+};
+
+export default LogHistory;
\ No newline at end of file
diff --git a/apps/st/src/components/type/SearchForm.type.ts b/apps/st/src/components/type/SearchForm.type.ts
index f3668b56c..b6fd4211d 100644
--- a/apps/st/src/components/type/SearchForm.type.ts
+++ b/apps/st/src/components/type/SearchForm.type.ts
@@ -18,7 +18,6 @@ export type SearchFormProps = {
onReset?: () => void;
onValuesChange?: (values: SearchFormValues) => void;
defaultValues?: SearchFormValues;
- isStatusMenu?: boolean;
};
export const defaultSearchFormProps: Required
> = {
@@ -28,5 +27,4 @@ export const defaultSearchFormProps: Required 00. 통계 입력 현황
@@ -10,15 +10,15 @@ export const StatsInputStatusInpColumn = {
{ name: 'gugun', fieldName: 'gugun', header: { text: '시군구' }, editable: false },
{ name: 'menuCd', fieldName: 'menuCd', header: { text: '메뉴코드' }, visible: false, editable: false },
{ name: 'menuNm', fieldName: 'menuNm', header: { text: '구분' }, editable: false, width: 220 },
- { name: 'locgStatusNm', fieldName: 'locgStatusNm', header: { text: '진행상황' }, editable: false },
- { name: 'inputRate', fieldName: 'inputRate', header: { text: '작성률' }, editable: false, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
- { name: 'locgCharger', fieldName: 'locgCharger', header: { text: '작성자' }, editable: false },
- { name: 'locgCttpc', fieldName: 'locgCttpc', header: { text: '작성자연락처' }, editable: false },
- { name: 'locgDept', fieldName: 'locgDept', header: { text: '부서' }, editable: false },
- { name: 'locgJob', fieldName: 'locgJob', header: { text: '직제' }, editable: false },
- { name: 'locgCnfirmNm', fieldName: 'locgCnfirmNm', header: { text: '승인자' }, editable: false },
- { name: 'locgCnfirmDept', fieldName: 'locgCnfirmDept', header: { text: '부서' }, editable: false },
- { name: 'locgCnfirmJob', fieldName: 'locgCnfirmJob', header: { text: '직제' }, editable: false },
+ { name: 'laeSbmsnSttsCdNm', fieldName: 'laeSbmsnSttsCdNm', header: { text: '진행상황' }, editable: false },
+ // { name: 'inputRate', fieldName: 'inputRate', header: { text: '작성률' }, editable: false, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
+ { name: 'laePicNm', fieldName: 'laePicNm', header: { text: '작성자' }, editable: false },
+ { name: 'laePicTelNo', fieldName: 'laePicTelNo', header: { text: '작성자연락처' }, editable: false },
+ { name: 'laeKbrdrDeptNm', fieldName: 'laeKbrdrDeptNm', header: { text: '부서' }, editable: false },
+ { name: 'laeKbrdrJbgdNm', fieldName: 'laeKbrdrJbgdNm', header: { text: '직제' }, editable: false },
+ { name: 'laeIdfrNm', fieldName: 'laeIdfrNm', header: { text: '승인자' }, editable: false },
+ { name: 'laeIdfrDeptNm', fieldName: 'laeIdfrDeptNm', header: { text: '부서' }, editable: false },
+ { name: 'laeIdfrJbgdNm', fieldName: 'laeIdfrJbgdNm', header: { text: '직제' }, editable: false },
{ name: 'returnOpinionSm', fieldName: 'returnOpinionSm', header: { text: '반려사유' }, editable: false },
],
@@ -32,15 +32,15 @@ export const StatsInputStatusInpColumn = {
hideChildHeaders: false,
header: { text: '하수도사업자' },
items: [
- 'locgStatusNm',
- 'inputRate',
- 'locgCharger',
- 'locgCttpc',
- 'locgDept',
- 'locgJob',
- 'locgCnfirmNm',
- 'locgCnfirmDept',
- 'locgCnfirmJob',
+ 'laeSbmsnSttsCdNm',
+ // 'inputRate',
+ 'laePicNm',
+ 'laePicTelNo',
+ 'laeKbrdrDeptNm',
+ 'laeKbrdrJbgdNm',
+ 'laeIdfrNm',
+ 'laeIdfrDeptNm',
+ 'laeIdfrJbgdNm',
'returnOpinionSm'
],
},
diff --git a/apps/st/src/entities/statistics/api/statistics-input-sew-supply-rate-service.ts b/apps/st/src/entities/statistics/api/statistics-input-sew-supply-rate-service.ts
index dbd9d3fb8..ba6d10874 100644
--- a/apps/st/src/entities/statistics/api/statistics-input-sew-supply-rate-service.ts
+++ b/apps/st/src/entities/statistics/api/statistics-input-sew-supply-rate-service.ts
@@ -1,7 +1,7 @@
-import axios from "axios";
import { ENDPOINT } from "@/shared/config";
+import { stClient } from "@/shared/api/client";
-import {
+import {
type StatisticsInputSewSupplyRateService,
type SewerageSupplyRateRequestParams,
type SewerageSupplyRateApiResponse,
@@ -12,39 +12,33 @@ import {
export class StatisticsInputSewSupplyRateApiService implements StatisticsInputSewSupplyRateService {
public async getSewerageSupplyRateList(params: SewerageSupplyRateRequestParams): Promise {
- const response = await axios.get (
+ const response = await stClient.get(
`${ENDPOINT.ST_SERVICE.INPUT}/sewerage-supply-rate`,
- {
- params: params
- }
+ { params }
);
-
return response.data;
}
public async checkInputPeriod(params: string): Promise {
- const response = await axios.get (
+ const response = await stClient.get(
`${ENDPOINT.ST_SERVICE.INPUTCOMMON}/check-input-period?year=${params}`,
);
-
return response.data;
}
public async saveSewerageSupplyRate(params: SewerageSupplyRateSaveRequest): Promise {
- const response = await axios.post (
+ const response = await stClient.post(
`${ENDPOINT.ST_SERVICE.INPUT}/sewerage-supply-rate`,
- params
+ params,
);
-
return response.data;
}
public async submitSewerageSupplyRate(params: SewerageSupplyRateSaveRequest): Promise {
- const response = await axios.post (
+ const response = await stClient.post(
`${ENDPOINT.ST_SERVICE.INPUT}/sewerage-supply-rate/submit`,
- params
+ params,
);
-
return response.data;
}
}
diff --git a/apps/st/src/entities/statistics/api/statistics-input-status-service.ts b/apps/st/src/entities/statistics/api/statistics-input-status-service.ts
index 5dd094e66..cd3c55a5f 100644
--- a/apps/st/src/entities/statistics/api/statistics-input-status-service.ts
+++ b/apps/st/src/entities/statistics/api/statistics-input-status-service.ts
@@ -1,7 +1,7 @@
-import axios from "axios";
import { ENDPOINT } from "@/shared/config";
+import { stClient } from "@/shared/api/client";
-import type {
+import type {
StatisticsInputStatusService,
StatsInputStatusListRequestParams,
StatsInputStatusListApiResponse,
@@ -9,15 +9,12 @@ import type {
export class StatisticsInputStatusApiService implements StatisticsInputStatusService {
public async getStatisticsInputStatusList(param: StatsInputStatusListRequestParams): Promise {
- const response = await axios.get (
+ const response = await stClient.get(
`${ENDPOINT.ST_SERVICE.INPUT}/stats-input-status`,
- {
- params: param
- }
+ { params: param },
);
-
return response.data;
- };
+ }
}
export const StatisticsInputStatusApi = new StatisticsInputStatusApiService();
\ No newline at end of file
diff --git a/apps/st/src/entities/statistics/api/statistics-management-service.ts b/apps/st/src/entities/statistics/api/statistics-management-service.ts
index 309a7b2f3..1e2a6336d 100644
--- a/apps/st/src/entities/statistics/api/statistics-management-service.ts
+++ b/apps/st/src/entities/statistics/api/statistics-management-service.ts
@@ -1,5 +1,5 @@
-import axios from "axios";
import { ENDPOINT } from "@/shared/config";
+import { stClient } from "@/shared/api/client";
import {
@@ -38,7 +38,7 @@ export class StatisticsManagementApiService {
public async getStatsInputStatusList(
params: { yr?: string; bsnmCd?: string; sido?: string; gugun?: string }
): Promise {
- const response = await axios.get(
+ const response = await stClient.get(
`${ENDPOINT.ST_SERVICE.REVIEW}/input-status`,
{ params }
);
@@ -52,7 +52,7 @@ export class StatisticsManagementApiService {
public async getSewerageSupplyRateReviewList(
params: SewerageSupplyRateReviewRequestParams
): Promise {
- const response = await axios.get(
+ const response = await stClient.get(
`${ENDPOINT.ST_SERVICE.REVIEW}/supply-rate`,
{ params }
);
@@ -66,7 +66,7 @@ export class StatisticsManagementApiService {
public async getSewagePipeReviewRegionalList(
params: SewagePipeReviewRequestParams
): Promise {
- const response = await axios.get(
+ const response = await stClient.get(
`${ENDPOINT.ST_SERVICE.REVIEW}/sewer-pipe/regional-status`,
{ params }
);
@@ -80,7 +80,7 @@ export class StatisticsManagementApiService {
public async getSewagePipeFacilityList(
params: SewagePipeReviewRequestParams
): Promise {
- const response = await axios.get(
+ const response = await stClient.get(
`${ENDPOINT.ST_SERVICE.REVIEW}/sewer-pipe/facility-status`,
{ params }
);
@@ -99,7 +99,7 @@ export class StatisticsManagementApiService {
gugun?: string;
}
): Promise {
- const response = await axios.get(
+ const response = await stClient.get(
`${ENDPOINT.ST_SERVICE.REVIEW}/sewer-pipe/type-status`,
{ params }
);
@@ -118,7 +118,7 @@ export class StatisticsManagementApiService {
gugun?: string;
}
): Promise {
- const response = await axios.get(
+ const response = await stClient.get(
`${ENDPOINT.ST_SERVICE.REVIEW}/sewer-pipe/diam-status`,
{ params }
);
@@ -132,7 +132,7 @@ export class StatisticsManagementApiService {
public async getSewerPipeMtcList(
params: SewerPipeMtcRequestParams
): Promise {
- const response = await axios.get(
+ const response = await stClient.get(
`${ENDPOINT.ST_SERVICE.REVIEW}/sewer-pipe-mtc/repair`,
{ params }
);
@@ -151,7 +151,7 @@ export class StatisticsManagementApiService {
gugun?: string;
}
): Promise {
- const response = await axios.get(
+ const response = await stClient.get(
`${ENDPOINT.ST_SERVICE.REVIEW}/sewer-pipe-mtc/dredging`,
{ params }
);
@@ -170,7 +170,7 @@ export class StatisticsManagementApiService {
gugun?: string;
}
): Promise {
- const response = await axios.get(
+ const response = await stClient.get(
`${ENDPOINT.ST_SERVICE.REVIEW}/sewer-reservoir/facilities`,
{ params }
);
@@ -189,7 +189,7 @@ export class StatisticsManagementApiService {
gugun?: string;
}
): Promise {
- const response = await axios.get(
+ const response = await stClient.get(
`${ENDPOINT.ST_SERVICE.REVIEW}/sewer-reservoir/pumping-stations`,
{ params }
);
@@ -209,7 +209,7 @@ export class StatisticsManagementApiService {
bscFctNm?: string; // 펌프장명 (시설명)
}
): Promise {
- const response = await axios.get(
+ const response = await stClient.get(
`${ENDPOINT.ST_SERVICE.REVIEW}/mediation-pump-stations`,
{ params }
);
diff --git a/apps/st/src/entities/statistics/api/statistics-service.ts b/apps/st/src/entities/statistics/api/statistics-service.ts
index 8455e68c5..f75163e5c 100644
--- a/apps/st/src/entities/statistics/api/statistics-service.ts
+++ b/apps/st/src/entities/statistics/api/statistics-service.ts
@@ -1,33 +1,26 @@
-import axios from "axios";
import { ENDPOINT } from "@/shared/config";
+import { stClient } from "@/shared/api/client";
import {
type StatisticsService,
type SearchCondition,
type ApiResponse,
- type Sgg
+ type Sgg,
} from "../model/statistics-interface";
export class StatisticsAPiService implements StatisticsService {
-
public async getSidoList(): Promise> {
- const response = await axios.get>(
+ const response = await stClient.get>(
`${ENDPOINT.ST_SERVICE.COMMON}/search-condition`,
);
-
return response.data;
- };
+ }
public async getSggList(sidoName: string): Promise> {
- const response = await axios.get>(
+ const response = await stClient.get>(
`${ENDPOINT.ST_SERVICE.COMMON}/sgg`,
- {
- params: {
- sidoName: sidoName,
- },
- }
+ { params: { sidoName } },
);
-
return response.data;
}
}
diff --git a/apps/st/src/entities/statistics/model/statistics-input-status-interface.ts b/apps/st/src/entities/statistics/model/statistics-input-status-interface.ts
index 47637923f..b0fa51d0d 100644
--- a/apps/st/src/entities/statistics/model/statistics-input-status-interface.ts
+++ b/apps/st/src/entities/statistics/model/statistics-input-status-interface.ts
@@ -13,15 +13,15 @@ export interface StatsInputStatusList {
gugun?: string;
menuCd?: string;
menuNm?: string;
- locgStatusNm?: string;
+ laeSbmsnSttsCdNm?: string;
inputRate?: number;
- locgCharger?: string;
- locgCttpc?: string;
- locgDept?: string;
- locgJob?: string;
- locgCnfirmNm?: string;
- locgCnfirmDept?: string;
- locgCnfirmJob?: string;
+ laePicNm?: string;
+ laePicTelNo?: string;
+ laeKbrdrDeptNm?: string;
+ laeKbrdrJbgdNm?: string;
+ laeIdfrNm?: string;
+ laeIdfrDeptNm?: string;
+ laeIdfrJbgdNm?: string;
returnOpinionSm?: string;
}
diff --git a/apps/st/src/entities/statistics/model/statistics-input-submit-info-schema.ts b/apps/st/src/entities/statistics/model/statistics-input-submit-info-schema.ts
index fb3380b6b..623d037df 100644
--- a/apps/st/src/entities/statistics/model/statistics-input-submit-info-schema.ts
+++ b/apps/st/src/entities/statistics/model/statistics-input-submit-info-schema.ts
@@ -2,14 +2,14 @@ import { z } from "zod";
export const statisticsInputSubmitInfoSchema = z.object({
// 작성자 명, 작성자 직제, 작성자 부서, 작성자 연락처, 승인자명, 승인자 직제, 승인자 부서, 승인자 연락처 (전부 필수)
- locgCharger: z.string().min(1, "작성자 명을 입력하세요"),
- locgJob: z.string().min(1, "작성자 직제를 입력하세요"),
- locgDept: z.string().min(1, "작성자 부서를 입력하세요"),
- locgCttpc: z.string().min(1, "작성자 연락처를 입력하세요"),
- locgCnfirmNm: z.string().min(1, "승인자명을 입력하세요"),
- locgCnfirmJob: z.string().min(1, "승인자 직제를 입력하세요"),
- locgCnfirmDept: z.string().min(1, "승인자 부서를 입력하세요"),
- locgCnfirmPh: z.string().min(1, "승인자 연락처를 입력하세요"),
+ laePicNm: z.string().min(1, "작성자 명을 입력하세요"),
+ laeKbrdrJbgdNm: z.string().min(1, "작성자 직제를 입력하세요"),
+ laeKbrdrDeptNm: z.string().min(1, "작성자 부서를 입력하세요"),
+ laePicTelNo: z.string().min(1, "작성자 연락처를 입력하세요"),
+ laeIdfrNm: z.string().min(1, "승인자명을 입력하세요"),
+ laeIdfrJbgdNm: z.string().min(1, "승인자 직제를 입력하세요"),
+ laeIdfrDeptNm: z.string().min(1, "승인자 부서를 입력하세요"),
+ laeIdfrTelNo: z.string().min(1, "승인자 연락처를 입력하세요"),
});
export type StatisticsInputSubmitInfoFormData = z.infer<
diff --git a/apps/st/src/entities/statistics/model/statistics-sewage-supply-rate-input-interface.ts b/apps/st/src/entities/statistics/model/statistics-sewage-supply-rate-input-interface.ts
index 8ed9340ea..f9ba8843d 100644
--- a/apps/st/src/entities/statistics/model/statistics-sewage-supply-rate-input-interface.ts
+++ b/apps/st/src/entities/statistics/model/statistics-sewage-supply-rate-input-interface.ts
@@ -2,29 +2,29 @@ import type { ApiResponse } from "./statistics-interface";
// 하수도 보급률 데이터 항목
export interface SewerageSupplyRateStatusInfo {
- locgStatus: string | null;
- locgDt: string | null;
- locgCharger: string | null;
- locgCttpc: string | null;
- locgJob: string | null;
+ laeSbmsnSttsCd: string | null;
+ laeSbmsnYmd: string | null;
+ laePicNm: string | null;
+ laePicTelNo: string | null;
+ laeKbrdrJbgdNm: string | null;
prvnStatus: string | null;
dcsnStatus: string | null;
wrterOpinionSm: string | null;
chckerOpinionSm: string | null;
returnOpinionSm: string | null;
- locgCnfirmDept: string | null;
- locgCnfirmJob: string | null;
- locgCnfirmNm: string | null;
- locgCnfirmPh: string | null;
- locgDept: string | null;
+ laeIdfrDeptNm: string | null;
+ laeIdfrJbgdNm: string | null;
+ laeIdfrNm: string | null;
+ laeIdfrTelNo: string | null;
+ laeKbrdrDeptNm: string | null;
}
export interface SewerageSupplyRateCommonInfo {
sewerBzmnArea: number;
sewerBzmnCd: string;
- sewerBzmnFrgnrPoplSm: number;
- sewerBzmnPoplSm: number;
- sewerBzmnTotalPopl: number;
+ sewerBzmnFrgnrWholPpltnCnt: number;
+ sewerBzmnDomplWholPpltnCnt: number;
+ sewerBzmnWholPpltnCnt: number;
piplFcltyExtn: number;
piplPlanExtn: number;
swagePplPsplyRt: number;
@@ -135,17 +135,17 @@ export interface SewerageSupplyRateSaveRequest {
ctpvNm: string;
sewerBzmnCd: string;
userId: string;
- sewerBzmnFrgnrPoplSm?: number;
+ sewerBzmnFrgnrWholPpltnCnt?: number;
saveList?: SewerageSupplyRateSaveItem[];
submitList?: SewerageSupplyRateSaveItem[];
- locgCharger?: string;
- locgJob?: string;
- locgDept?: string;
- locgCttpc?: string;
- locgCnfirmNm?: string;
- locgCnfirmJob?: string;
- locgCnfirmDept?: string;
- locgCnfirmPh?: string;
+ laePicNm?: string;
+ laeKbrdrJbgdNm?: string;
+ laeKbrdrDeptNm?: string;
+ laePicTelNo?: string;
+ laeIdfrNm?: string;
+ laeIdfrJbgdNm?: string;
+ laeIdfrDeptNm?: string;
+ laeIdfrTelNo?: string;
superAdmin?: string;
}
diff --git a/apps/st/src/shared/api/client.ts b/apps/st/src/shared/api/client.ts
index f4696eb1d..a973ae6b4 100644
--- a/apps/st/src/shared/api/client.ts
+++ b/apps/st/src/shared/api/client.ts
@@ -1,11 +1,18 @@
+import axios, { type AxiosInstance } from "axios";
import { Client } from "@common/network";
-import { BASE_URL } from "../config/api";
-import { SITE_ID } from "../config/env";
+import { BASE_URL, ST_SERVICE_BASE_URL } from "../config/api";
+import { AUTH_USER_ID, CLAIM_NAME, SITE_ID } from "../config/env";
import { setCookie } from "../lib";
+import Cookies from "js-cookie";
setCookie("site-id-key", SITE_ID);
export const client = Client.getInstance({
baseURL: BASE_URL,
siteId: SITE_ID,
+});
+
+export const stClient = Client.getInstance({
+ baseURL: ST_SERVICE_BASE_URL,
+ siteId: SITE_ID,
});
\ No newline at end of file
diff --git a/apps/st/src/shared/config/api.ts b/apps/st/src/shared/config/api.ts
index cc38d4c34..6624c3f8a 100644
--- a/apps/st/src/shared/config/api.ts
+++ b/apps/st/src/shared/config/api.ts
@@ -2,6 +2,8 @@ import { PROXY_HOST } from "./env";
export const BASE_URL = `${PROXY_HOST}/server`;
+export const ST_SERVICE_BASE_URL = `${PROXY_HOST}/server`;
+
export const ENDPOINT = {
ATTACH_SERVICE: {
TUS_UPLOAD: "/attach-service/api/v1/tus/upload",