@apps-in-toss/native-modules 1.5.0 → 1.5.2

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.
@@ -73,7 +73,7 @@
73
73
  },
74
74
  {
75
75
  "identifier": "eventLog",
76
- "dts": "export type Primitive = string | number | boolean | null | undefined | symbol;\nexport interface EventLogParams {\n\tlog_name: string;\n\tlog_type: \"debug\" | \"info\" | \"warn\" | \"error\" | \"screen\" | \"impression\" | \"click\";\n\tparams: Record<string, Primitive>;\n}\n/**\n * @category 로깅\n * @kind function\n * @name eventLog\n * @description\n * 이벤트 로그를 기록하는 함수예요.\n *\n * 이 함수는 앱 내에서 발생하는 다양한 이벤트를 로깅하는 데 사용돼요. 디버깅, 정보 제공, 경고, 오류 등 다양한 유형의 로그를 기록할 수 있어요. 샌드박스 환경에서는 콘솔에 로그가 출력되고, 실제 환경에서는 로그 시스템에 기록돼요.\n *\n * @param {Object} params 로그 기록에 필요한 매개변수 객체예요.\n * @param {string} params.log_name 로그의 이름이에요.\n * @param {'debug' | 'info' | 'warn' | 'error' | 'screen' | 'impression' | 'click'} params.log_type 로그의 유형이에요.\n * @param {Record<string, Primitive>} params.params 로그에 포함할 추가 매개변수 객체예요.\n *\n * @returns {Promise<void>} 로그 기록이 완료되면 해결되는 Promise예요.\n *\n * @example\n * ### 이벤트 로그 기록하기\n *\n * ```tsx\n * import { eventLog } from '@apps-in-toss/framework';\n *\n * function logUserAction() {\n * eventLog({\n * log_name: 'user_action',\n * log_type: 'info',\n * params: {\n * action: 'button_click',\n * screen: 'main',\n * userId: 12345\n * }\n * });\n * }\n * ```\n */\nexport declare function eventLog(params: EventLogParams): Promise<void>;\n\nexport {};\n"
76
+ "dts": "export type Primitive = string | number | boolean | null | undefined | symbol;\nexport interface EventLogParams {\n\tlog_name: string;\n\tlog_type: \"debug\" | \"info\" | \"warn\" | \"error\" | \"event\" | \"screen\" | \"impression\" | \"click\";\n\tparams: Record<string, Primitive>;\n}\n/**\n * @category 로깅\n * @kind function\n * @name eventLog\n * @description\n * 이벤트 로그를 기록하는 함수예요.\n *\n * 이 함수는 앱 내에서 발생하는 다양한 이벤트를 로깅하는 데 사용돼요. 디버깅, 정보 제공, 경고, 오류 등 다양한 유형의 로그를 기록할 수 있어요. 샌드박스 환경에서는 콘솔에 로그가 출력되고, 실제 환경에서는 로그 시스템에 기록돼요.\n *\n * @param {Object} params 로그 기록에 필요한 매개변수 객체예요.\n * @param {string} params.log_name 로그의 이름이에요.\n * @param {'debug' | 'info' | 'warn' | 'error' | 'event' | 'screen' | 'impression' | 'click'} params.log_type 로그의 유형이에요.\n * @param {Record<string, Primitive>} params.params 로그에 포함할 추가 매개변수 객체예요.\n *\n * @returns {Promise<void>} 로그 기록이 완료되면 해결되는 Promise예요.\n *\n * @example\n * ### 이벤트 로그 기록하기\n *\n * ```tsx\n * import { eventLog } from '@apps-in-toss/framework';\n *\n * function logUserAction() {\n * eventLog({\n * log_name: 'user_action',\n * log_type: 'info',\n * params: {\n * action: 'button_click',\n * screen: 'main',\n * userId: 12345\n * }\n * });\n * }\n * ```\n */\nexport declare function eventLog(params: EventLogParams): Promise<void>;\n\nexport {};\n"
77
77
  },
78
78
  {
79
79
  "identifier": "getTossShareLink",
package/dist/index.d.cts CHANGED
@@ -2159,7 +2159,7 @@ interface Spec extends TurboModule {
2159
2159
  clearStorage: (arg: CompatiblePlaceholderArgument) => Promise<void>;
2160
2160
  eventLog: (params: {
2161
2161
  log_name: string;
2162
- log_type: 'debug' | 'info' | 'warn' | 'error' | 'screen' | 'impression' | 'click';
2162
+ log_type: 'debug' | 'info' | 'warn' | 'error' | 'event' | 'screen' | 'impression' | 'click';
2163
2163
  params: Record<string, string>;
2164
2164
  }) => Promise<void>;
2165
2165
  getTossShareLink: (params: object) => Promise<{
@@ -2257,7 +2257,7 @@ type Primitive = string | number | boolean | null | undefined | symbol;
2257
2257
 
2258
2258
  interface EventLogParams {
2259
2259
  log_name: string;
2260
- log_type: 'debug' | 'info' | 'warn' | 'error' | 'screen' | 'impression' | 'click';
2260
+ log_type: 'debug' | 'info' | 'warn' | 'error' | 'event' | 'screen' | 'impression' | 'click';
2261
2261
  params: Record<string, Primitive>;
2262
2262
  }
2263
2263
  /**
@@ -2271,7 +2271,7 @@ interface EventLogParams {
2271
2271
  *
2272
2272
  * @param {Object} params 로그 기록에 필요한 매개변수 객체예요.
2273
2273
  * @param {string} params.log_name 로그의 이름이에요.
2274
- * @param {'debug' | 'info' | 'warn' | 'error' | 'screen' | 'impression' | 'click'} params.log_type 로그의 유형이에요.
2274
+ * @param {'debug' | 'info' | 'warn' | 'error' | 'event' | 'screen' | 'impression' | 'click'} params.log_type 로그의 유형이에요.
2275
2275
  * @param {Record<string, Primitive>} params.params 로그에 포함할 추가 매개변수 객체예요.
2276
2276
  *
2277
2277
  * @returns {Promise<void>} 로그 기록이 완료되면 해결되는 Promise예요.
package/dist/index.d.ts CHANGED
@@ -2159,7 +2159,7 @@ interface Spec extends TurboModule {
2159
2159
  clearStorage: (arg: CompatiblePlaceholderArgument) => Promise<void>;
2160
2160
  eventLog: (params: {
2161
2161
  log_name: string;
2162
- log_type: 'debug' | 'info' | 'warn' | 'error' | 'screen' | 'impression' | 'click';
2162
+ log_type: 'debug' | 'info' | 'warn' | 'error' | 'event' | 'screen' | 'impression' | 'click';
2163
2163
  params: Record<string, string>;
2164
2164
  }) => Promise<void>;
2165
2165
  getTossShareLink: (params: object) => Promise<{
@@ -2257,7 +2257,7 @@ type Primitive = string | number | boolean | null | undefined | symbol;
2257
2257
 
2258
2258
  interface EventLogParams {
2259
2259
  log_name: string;
2260
- log_type: 'debug' | 'info' | 'warn' | 'error' | 'screen' | 'impression' | 'click';
2260
+ log_type: 'debug' | 'info' | 'warn' | 'error' | 'event' | 'screen' | 'impression' | 'click';
2261
2261
  params: Record<string, Primitive>;
2262
2262
  }
2263
2263
  /**
@@ -2271,7 +2271,7 @@ interface EventLogParams {
2271
2271
  *
2272
2272
  * @param {Object} params 로그 기록에 필요한 매개변수 객체예요.
2273
2273
  * @param {string} params.log_name 로그의 이름이에요.
2274
- * @param {'debug' | 'info' | 'warn' | 'error' | 'screen' | 'impression' | 'click'} params.log_type 로그의 유형이에요.
2274
+ * @param {'debug' | 'info' | 'warn' | 'error' | 'event' | 'screen' | 'impression' | 'click'} params.log_type 로그의 유형이에요.
2275
2275
  * @param {Record<string, Primitive>} params.params 로그에 포함할 추가 매개변수 객체예요.
2276
2276
  *
2277
2277
  * @returns {Promise<void>} 로그 기록이 완료되면 해결되는 Promise예요.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/native-modules",
3
3
  "type": "module",
4
- "version": "1.5.0",
4
+ "version": "1.5.2",
5
5
  "description": "Native Modules for Apps In Toss",
6
6
  "scripts": {
7
7
  "prepack": "yarn build",
@@ -43,7 +43,7 @@
43
43
  "vitest": "^3.2.4"
44
44
  },
45
45
  "dependencies": {
46
- "@apps-in-toss/types": "^1.5.0",
46
+ "@apps-in-toss/types": "^1.5.2",
47
47
  "es-toolkit": "^1.39.3"
48
48
  },
49
49
  "peerDependencies": {
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "80e646a4924c5d91fce00b30ec1a43075853cadc"
57
+ "gitHead": "8224b90876f7d9e0feac0cd38ef80be42a5d784f"
58
58
  }
@@ -59,7 +59,7 @@ interface Spec extends __TurboModule {
59
59
  clearStorage: (arg: CompatiblePlaceholderArgument) => Promise<void>;
60
60
  eventLog: (params: {
61
61
  log_name: string;
62
- log_type: 'debug' | 'info' | 'warn' | 'error' | 'screen' | 'impression' | 'click';
62
+ log_type: 'debug' | 'info' | 'warn' | 'error' | 'event' | 'screen' | 'impression' | 'click';
63
63
  params: Record<string, string>;
64
64
  }) => Promise<void>;
65
65
  getTossShareLink: (params: object) => Promise<{ shareLink: string }>;
@@ -12,7 +12,7 @@ function normalizeParams(params: Record<string, Primitive>): Record<string, stri
12
12
 
13
13
  export interface EventLogParams {
14
14
  log_name: string;
15
- log_type: 'debug' | 'info' | 'warn' | 'error' | 'screen' | 'impression' | 'click';
15
+ log_type: 'debug' | 'info' | 'warn' | 'error' | 'event' | 'screen' | 'impression' | 'click';
16
16
  params: Record<string, Primitive>;
17
17
  }
18
18
 
@@ -27,7 +27,7 @@ export interface EventLogParams {
27
27
  *
28
28
  * @param {Object} params 로그 기록에 필요한 매개변수 객체예요.
29
29
  * @param {string} params.log_name 로그의 이름이에요.
30
- * @param {'debug' | 'info' | 'warn' | 'error' | 'screen' | 'impression' | 'click'} params.log_type 로그의 유형이에요.
30
+ * @param {'debug' | 'info' | 'warn' | 'error' | 'event' | 'screen' | 'impression' | 'click'} params.log_type 로그의 유형이에요.
31
31
  * @param {Record<string, Primitive>} params.params 로그에 포함할 추가 매개변수 객체예요.
32
32
  *
33
33
  * @returns {Promise<void>} 로그 기록이 완료되면 해결되는 Promise예요.