@adstage/web-sdk 2.4.9 → 2.4.10

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.cjs.js CHANGED
@@ -482,9 +482,11 @@ class AdvertisementEventTracker {
482
482
  // 광고 이벤트 데이터 구성 (DTO 구조에 맞춤)
483
483
  // 서버에서 자동 설정: orgId (API 키로부터), advertisementId, action (URL 파라미터로부터)
484
484
  const eventData = {
485
- // 필수 필드들
485
+ // 필수 필드들 (DTO 검증용)
486
486
  adType: slot?.adType || 'BANNER',
487
- platform: deviceInfo.platform, // 디바이스 정보는 deviceInfo 객체로 래핑
487
+ platform: deviceInfo.platform,
488
+ deviceId: deviceInfo.deviceId, // DTO 검증을 위해 deviceId 직접 전송
489
+ // 디바이스 정보는 deviceInfo 객체로 래핑
488
490
  deviceInfo: deviceInfo,
489
491
  // 페이지 및 슬롯 정보
490
492
  pageUrl: DOMUtils.getPageInfo().url,
package/dist/index.esm.js CHANGED
@@ -480,9 +480,11 @@ class AdvertisementEventTracker {
480
480
  // 광고 이벤트 데이터 구성 (DTO 구조에 맞춤)
481
481
  // 서버에서 자동 설정: orgId (API 키로부터), advertisementId, action (URL 파라미터로부터)
482
482
  const eventData = {
483
- // 필수 필드들
483
+ // 필수 필드들 (DTO 검증용)
484
484
  adType: slot?.adType || 'BANNER',
485
- platform: deviceInfo.platform, // 디바이스 정보는 deviceInfo 객체로 래핑
485
+ platform: deviceInfo.platform,
486
+ deviceId: deviceInfo.deviceId, // DTO 검증을 위해 deviceId 직접 전송
487
+ // 디바이스 정보는 deviceInfo 객체로 래핑
486
488
  deviceInfo: deviceInfo,
487
489
  // 페이지 및 슬롯 정보
488
490
  pageUrl: DOMUtils.getPageInfo().url,
@@ -477,9 +477,11 @@ class AdvertisementEventTracker {
477
477
  // 광고 이벤트 데이터 구성 (DTO 구조에 맞춤)
478
478
  // 서버에서 자동 설정: orgId (API 키로부터), advertisementId, action (URL 파라미터로부터)
479
479
  const eventData = {
480
- // 필수 필드들
480
+ // 필수 필드들 (DTO 검증용)
481
481
  adType: slot?.adType || 'BANNER',
482
- platform: deviceInfo.platform, // 디바이스 정보는 deviceInfo 객체로 래핑
482
+ platform: deviceInfo.platform,
483
+ deviceId: deviceInfo.deviceId, // DTO 검증을 위해 deviceId 직접 전송
484
+ // 디바이스 정보는 deviceInfo 객체로 래핑
483
485
  deviceInfo: deviceInfo,
484
486
  // 페이지 및 슬롯 정보
485
487
  pageUrl: DOMUtils.getPageInfo().url,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adstage/web-sdk",
3
- "version": "2.4.9",
3
+ "version": "2.4.10",
4
4
  "description": "AdStage Web SDK - Production-ready marketing platform SDK with React Provider support for seamless integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
@@ -53,10 +53,13 @@ export class AdvertisementEventTracker {
53
53
  // 광고 이벤트 데이터 구성 (DTO 구조에 맞춤)
54
54
  // 서버에서 자동 설정: orgId (API 키로부터), advertisementId, action (URL 파라미터로부터)
55
55
  const eventData = {
56
- // 필수 필드들
56
+ // 필수 필드들 (DTO 검증용)
57
57
  adType: slot?.adType || 'BANNER',
58
- platform: deviceInfo.platform, // 디바이스 정보는 deviceInfo 객체로 래핑
59
- deviceInfo: deviceInfo,
58
+ platform: deviceInfo.platform,
59
+ deviceId: deviceInfo.deviceId, // DTO 검증을 위해 deviceId 직접 전송
60
+
61
+ // 디바이스 정보는 deviceInfo 객체로 래핑
62
+ deviceInfo: deviceInfo,
60
63
 
61
64
  // 페이지 및 슬롯 정보
62
65
  pageUrl: DOMUtils.getPageInfo().url,