@apps-in-toss/types 2.9.2 → 2.10.0

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/dist/index.d.cts CHANGED
@@ -352,11 +352,24 @@ interface ShowFullScreenAdParams {
352
352
  onError: (err: unknown) => void;
353
353
  }
354
354
 
355
+ /**
356
+ * fetchTossAd(구 앱브릿지) 요청 옵션 타입.
357
+ *
358
+ * 요청은 FE가 옵션만 넘기고 native가 실제 AdRequest body를 조립한다(얇은 옵션).
359
+ * 응답은 native 위임 경로라 FE 타입이 없다 — 소비처(framework·web-bridge)가 로컬 AdResponse로 정규화한다.
360
+ */
355
361
  interface FetchTossAdOptions {
356
362
  adGroupId: string;
357
363
  sdkId: string;
358
364
  availableStyleIds: string[];
359
365
  }
366
+
367
+ /**
368
+ * tossAdEventLog(구 toss-ad 이벤트 로그) 파라미터 타입.
369
+ *
370
+ * fetchTossAd(광고 요청)와는 별개 관심사 — 이벤트 로깅 페이로드 모양만 기술한다.
371
+ * 소비처: framework·web-bridge의 tossAdEventLog.
372
+ */
360
373
  interface TossAdEventLogParams {
361
374
  log_name: string;
362
375
  log_type: string;
package/dist/index.d.ts CHANGED
@@ -352,11 +352,24 @@ interface ShowFullScreenAdParams {
352
352
  onError: (err: unknown) => void;
353
353
  }
354
354
 
355
+ /**
356
+ * fetchTossAd(구 앱브릿지) 요청 옵션 타입.
357
+ *
358
+ * 요청은 FE가 옵션만 넘기고 native가 실제 AdRequest body를 조립한다(얇은 옵션).
359
+ * 응답은 native 위임 경로라 FE 타입이 없다 — 소비처(framework·web-bridge)가 로컬 AdResponse로 정규화한다.
360
+ */
355
361
  interface FetchTossAdOptions {
356
362
  adGroupId: string;
357
363
  sdkId: string;
358
364
  availableStyleIds: string[];
359
365
  }
366
+
367
+ /**
368
+ * tossAdEventLog(구 toss-ad 이벤트 로그) 파라미터 타입.
369
+ *
370
+ * fetchTossAd(광고 요청)와는 별개 관심사 — 이벤트 로깅 페이로드 모양만 기술한다.
371
+ * 소비처: framework·web-bridge의 tossAdEventLog.
372
+ */
360
373
  interface TossAdEventLogParams {
361
374
  log_name: string;
362
375
  log_type: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/types",
3
3
  "type": "module",
4
- "version": "2.9.2",
4
+ "version": "2.10.0",
5
5
  "description": "Types for Apps In Toss",
6
6
  "scripts": {
7
7
  "typecheck": "tsc --noEmit",
@@ -0,0 +1,12 @@
1
+ /**
2
+ * fetchTossAd(구 앱브릿지) 요청 옵션 타입.
3
+ *
4
+ * 요청은 FE가 옵션만 넘기고 native가 실제 AdRequest body를 조립한다(얇은 옵션).
5
+ * 응답은 native 위임 경로라 FE 타입이 없다 — 소비처(framework·web-bridge)가 로컬 AdResponse로 정규화한다.
6
+ */
7
+
8
+ export interface FetchTossAdOptions {
9
+ adGroupId: string;
10
+ sdkId: string;
11
+ availableStyleIds: string[];
12
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * tossAdEventLog(구 toss-ad 이벤트 로그) 파라미터 타입.
3
+ *
4
+ * fetchTossAd(광고 요청)와는 별개 관심사 — 이벤트 로깅 페이로드 모양만 기술한다.
5
+ * 소비처: framework·web-bridge의 tossAdEventLog.
6
+ */
7
+ export interface TossAdEventLogParams {
8
+ log_name: string;
9
+ log_type: string;
10
+ params: Record<string, unknown>;
11
+ }
package/src/index.ts CHANGED
@@ -1,4 +1,7 @@
1
1
  export * from './permissions';
2
2
  export * from './integratedAd';
3
- export * from './tossAd';
3
+ // toss-ad 경로 공개 타입(2.6.x부터 노출). fetchAppsInTossAd(신규 배너)의 wire 타입은
4
+ // 공유하지 않고 framework·web-bridge가 각자 정의하므로 여기엔 두지 않는다.
5
+ export * from './displayAd/fetchTossAd';
6
+ export * from './displayAd/tossAdEventLog';
4
7
  export * from './googleAdMobV2';
@@ -1,11 +0,0 @@
1
- export interface FetchTossAdOptions {
2
- adGroupId: string;
3
- sdkId: string;
4
- availableStyleIds: string[];
5
- }
6
-
7
- export interface TossAdEventLogParams {
8
- log_name: string;
9
- log_type: string;
10
- params: Record<string, unknown>;
11
- }