@uniai-fe/uds-templates 0.4.23 → 0.4.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniai-fe/uds-templates",
3
- "version": "0.4.23",
3
+ "version": "0.4.24",
4
4
  "description": "UNIAI Design System; UI Templates Package",
5
5
  "type": "module",
6
6
  "private": false,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  fetchWithBody,
3
- generateBackendQueryUrl_GET,
3
+ generateQueryUrl,
4
4
  nextAPILog,
5
- } from "@uniai-fe/util-functions";
5
+ } from "@uniai-fe/util-api";
6
6
  import type {
7
7
  API_Req_GetCompanyListParams,
8
8
  API_Req_GetCctvTokenParams,
@@ -173,7 +173,7 @@ export async function getServerCompanyList({
173
173
  }
174
174
 
175
175
  // 요청 URL 구성
176
- const url = generateBackendQueryUrl_GET({
176
+ const url = generateQueryUrl({
177
177
  routeUrl,
178
178
  ...API_OPTION,
179
179
  });
@@ -42,6 +42,7 @@ export default function CCTVCamListItem({
42
42
  activeLiveState: true,
43
43
  activeTitle: false,
44
44
  isLive,
45
+ isShared: typeof cam.cam_shared === "boolean" ? cam.cam_shared : true,
45
46
  title: cam.cam_name,
46
47
  }}
47
48
  footerOptions={{ activeTitle: true, activeOpenButton: true, cam }}
@@ -118,6 +118,8 @@ export default function useCctvContext(): UseCctvContextReturn {
118
118
  onSelect: () => onSelectCompany(d.company_id),
119
119
  cam_list: d.cam_list.map((cam: CctvCompanyCameraList) => ({
120
120
  ...cam,
121
+ cam_shared:
122
+ typeof cam.cam_shared === "boolean" ? cam.cam_shared : true,
121
123
  selected: cam.cam_id === selectedCamId,
122
124
  onSelect: () => onOpenCamera(cam.cam_id),
123
125
  })),