@uniai-fe/uds-templates 0.5.17 → 0.5.19

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.5.17",
3
+ "version": "0.5.19",
4
4
  "description": "UNIAI Design System; UI Templates Package",
5
5
  "type": "module",
6
6
  "private": false,
@@ -419,31 +419,55 @@ export interface API_Res_LoginRole {
419
419
  }
420
420
 
421
421
  /**
422
- * 로그인 API; 응답 성공 데이터
422
+ * 로그인 API; 세션정보 응답 데이터
423
423
  * @route /auth/user/login
424
- * @property {string} access_token 엑세스 토큰
424
+ * @route /auth/user/refresh
425
425
  * @property {string} token_type 엑세스 토큰 타입 (ex, bearer)
426
+ * @property {string} access_token 엑세스 토큰
426
427
  * @property {number} expires_in 토큰 유효기간 (초 단위)
427
- * @property {API_Res_LoginUserInfo} user_info 로그인 유저 정보
428
- * @property {API_Res_LoginGroup[]} [groups] 소속 그룹 목록
429
- * @property {API_Res_LoginGroup[]} [ancestor_groups] 상위 그룹 목록
430
- * @property {API_Res_LoginRole[]} [roles] 역할 목록
428
+ * @property {string} refresh_token 리프레시 토큰
429
+ * @property {number} refresh_expires_in 리프레시 토큰 유효기간 (초 단위)
431
430
  */
432
- export interface API_Res_LoginData {
433
- /**
434
- * 엑세스 토큰
435
- */
436
- access_token: string;
431
+ export interface API_Res_LoginToken {
437
432
  /**
438
433
  * 엑세스 토큰 타입
439
434
  * - bearer
440
435
  */
441
436
  token_type: string;
437
+ /**
438
+ * 엑세스 토큰
439
+ */
440
+ access_token: string;
442
441
  /**
443
442
  * 토큰 유효기간
444
443
  * - 초 단위
445
444
  */
446
445
  expires_in: number;
446
+ /**
447
+ * 리프레시 토큰
448
+ */
449
+ refresh_token: string;
450
+ /**
451
+ * 토큰 유효기간
452
+ * - 초 단위
453
+ */
454
+ refresh_expires_in: number;
455
+ }
456
+
457
+ /**
458
+ * 로그인 API; 응답 성공 데이터
459
+ * @route /auth/user/login
460
+ * @property {string} token_type 엑세스 토큰 타입 (ex, bearer)
461
+ * @property {string} access_token 엑세스 토큰
462
+ * @property {number} expires_in 토큰 유효기간 (초 단위)
463
+ * @property {string} refresh_token 리프레시 토큰
464
+ * @property {number} refresh_expires_in 리프레시 토큰 유효기간 (초 단위)
465
+ * @property {API_Res_LoginUserInfo} user_info 로그인 유저 정보
466
+ * @property {API_Res_LoginGroup[]} [groups] 소속 그룹 목록
467
+ * @property {API_Res_LoginGroup[]} [ancestor_groups] 상위 그룹 목록
468
+ * @property {API_Res_LoginRole[]} [roles] 역할 목록
469
+ */
470
+ export interface API_Res_LoginData extends API_Res_LoginToken {
447
471
  /**
448
472
  * 로그인 유저 정보
449
473
  */
@@ -40,10 +40,10 @@ export const getWeatherOpenWeatherMapNow = async (
40
40
  ).json();
41
41
 
42
42
  /**
43
- * 글로벌 날씨 API; 예보 날씨 (4 days) fetch
43
+ * 글로벌 날씨 API; 예보 날씨 (5 days / 3 hour forecast) fetch
44
44
  * @method GET
45
- * @route https://pro.openweathermap.org/data/2.5/weather/forecast/hourly
46
- * @see https://openweathermap.org/api/hourly-forecast
45
+ * @route https://api.openweathermap.org/data/2.5/forecast
46
+ * @see https://openweathermap.org/forecast5
47
47
  * @param {WeatherGeoCoordinate} params - API 요청 파라미터
48
48
  * @param {number} params.lat - 위도
49
49
  * @param {number} params.lon - 경도
@@ -82,7 +82,7 @@ export const useQueryWeatherOpenWeatherMapNow = (
82
82
  };
83
83
 
84
84
  /**
85
- * 글로벌 날씨 API; 예보 날씨 (4 days) react query
85
+ * 글로벌 날씨 API; 예보 날씨 (5 days / 3 hour forecast) react query
86
86
  * @method GET
87
87
  */
88
88
  export const useQueryWeatherOpenWeatherMapForecast = (
@@ -12,10 +12,9 @@ import { getOpenWeatherMapLang } from "../../utils/locale";
12
12
  */
13
13
  const API_BASE_CURRENT = "https://api.openweathermap.org/data/2.5/weather";
14
14
  /**
15
- * 글로벌 날씨 API; 예보 날씨 URL
15
+ * 글로벌 날씨 API; 예보 날씨 URL (5 days / 3 hour forecast)
16
16
  */
17
- const API_BASE_FORECAST =
18
- "https://pro.openweathermap.org/data/2.5/forecast/hourly";
17
+ const API_BASE_FORECAST = "https://api.openweathermap.org/data/2.5/forecast";
19
18
 
20
19
  const COMMON_OPTIONS = {
21
20
  units: "metric", // 섭씨 온도