@adstage/web-sdk 3.0.3 → 3.0.5
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 +1 -1
- package/dist/index.d.ts +34 -2
- package/dist/index.esm.js +1 -1
- package/dist/index.standalone.js +2 -2
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
- package/src/managers/device-info-collector.ts +1 -1
- package/src/managers/events/event-device-collector.ts +2 -4
- package/src/modules/events/events-module.ts +67 -0
- package/src/types/config.ts +1 -2
- package/src/utils/config-utils.ts +1 -7
package/dist/index.d.ts
CHANGED
|
@@ -21,8 +21,6 @@ interface AdStageConfig {
|
|
|
21
21
|
timeout?: number;
|
|
22
22
|
/** 플레이스홀더 스타일 모드 (기본값: 'subtle') */
|
|
23
23
|
placeholderMode?: 'invisible' | 'transparent' | 'subtle' | 'minimal' | 'debug' | 'legacy';
|
|
24
|
-
/** 고객 앱 버전 (선택사항, 기본값: '1.0.0') */
|
|
25
|
-
appVersion?: string;
|
|
26
24
|
}
|
|
27
25
|
/**
|
|
28
26
|
* 모듈 기본 인터페이스
|
|
@@ -451,6 +449,40 @@ declare class EventsModule implements BaseModule {
|
|
|
451
449
|
* 현재 사용자 속성 반환
|
|
452
450
|
*/
|
|
453
451
|
getUserProperties(): any;
|
|
452
|
+
/**
|
|
453
|
+
* 디바이스 정보 설정
|
|
454
|
+
*/
|
|
455
|
+
setDeviceInfo(deviceInfo: Partial<{
|
|
456
|
+
category: 'mobile' | 'desktop' | 'tablet' | 'other';
|
|
457
|
+
platform: string;
|
|
458
|
+
model: string;
|
|
459
|
+
appVersion: string;
|
|
460
|
+
osVersion: string;
|
|
461
|
+
}>): void;
|
|
462
|
+
/**
|
|
463
|
+
* 개별 디바이스 속성 설정
|
|
464
|
+
*/
|
|
465
|
+
setDeviceProperty(key: 'category' | 'platform' | 'model' | 'appVersion' | 'osVersion', value: string): void;
|
|
466
|
+
/**
|
|
467
|
+
* 사용자 제공 디바이스 정보 초기화
|
|
468
|
+
*/
|
|
469
|
+
clearDeviceInfo(): void;
|
|
470
|
+
/**
|
|
471
|
+
* 현재 사용자가 설정한 디바이스 정보 반환
|
|
472
|
+
*/
|
|
473
|
+
getUserDeviceInfo(): any;
|
|
474
|
+
/**
|
|
475
|
+
* 현재 디바이스 정보 반환
|
|
476
|
+
*/
|
|
477
|
+
getDeviceInfo(): any;
|
|
478
|
+
/**
|
|
479
|
+
* 현재 사용자 정보 반환
|
|
480
|
+
*/
|
|
481
|
+
getUserInfo(): any;
|
|
482
|
+
/**
|
|
483
|
+
* 현재 사용자 속성 반환 (별칭)
|
|
484
|
+
*/
|
|
485
|
+
getCurrentUserProperties(): any;
|
|
454
486
|
/**
|
|
455
487
|
* 이벤트 추적
|
|
456
488
|
* @param eventName 이벤트 이름
|