@bi-nova/services 1.6.1 → 1.6.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.
package/dist/index.d.mts CHANGED
@@ -631,7 +631,7 @@ declare const DyErrorMessage: Record<number, string>;
631
631
  * @Author: wutao
632
632
  * @Date: 2026-04-21
633
633
  * @LastEditors: wutao
634
- * @LastEditTime: 2026-08-17 14:59:58
634
+ * @LastEditTime: 2026-09-03 18:00:19
635
635
  */
636
636
  /**
637
637
  * 展示广告类型
@@ -650,14 +650,14 @@ type DisplayAdPriority = 'wechat-first' | 'custom-first' | 'wechat-only' | 'cust
650
650
  */
651
651
  interface DisplayAdActionConfig {
652
652
  /** 动作类型 */
653
- type?: 'miniProgram' | 'internal' | 'web' | 'none';
653
+ type?: 'miniProgram' | 'internal' | 'web' | 'api' | 'none';
654
654
  /** 跳转小程序的 appId */
655
655
  appId?: string;
656
656
  /** 跳转页面路径 */
657
657
  path?: string;
658
658
  /** 小程序打开模式 */
659
659
  miniProgramOpenMode?: 'full' | 'half';
660
- /** H5 跳转地址 */
660
+ /** H5 跳转地址或接口请求地址 */
661
661
  url?: string;
662
662
  }
663
663
  /**
@@ -703,7 +703,7 @@ interface DisplayCustomAdConfig {
703
703
  /** 素材填充模式 */
704
704
  fitMode?: 'contain' | 'cover';
705
705
  /** 跳转类型 */
706
- jumpType?: 'miniProgram' | 'internal' | 'web' | 'none';
706
+ jumpType?: 'miniProgram' | 'internal' | 'web' | 'api' | 'none';
707
707
  /** 点击动作配置 */
708
708
  action?: DisplayAdActionConfig;
709
709
  /** 兼容字段:跳转小程序的 appId */
@@ -752,8 +752,8 @@ interface AdvertPlatformConfig {
752
752
  /** 广告标识文案 */
753
753
  badgeText?: string | null;
754
754
  /** 自研广告跳转类型 */
755
- jumpType?: 'miniprogram' | 'miniProgram' | 'internal' | 'web' | 'none';
756
- /** Web 跳转地址 */
755
+ jumpType?: 'miniprogram' | 'miniProgram' | 'internal' | 'web' | 'api' | 'none';
756
+ /** Web 跳转地址或接口请求地址 */
757
757
  jumpUrl?: string | null;
758
758
  /** 目标小程序 appId */
759
759
  targetAppId?: string | null;
@@ -827,7 +827,7 @@ interface AdvertConfigItem {
827
827
  * @Author: wutao
828
828
  * @Date: 2026-04-21
829
829
  * @LastEditors: wutao
830
- * @LastEditTime: 2026-04-22
830
+ * @LastEditTime: 2026-09-03 18:00:19
831
831
  */
832
832
 
833
833
  /**
@@ -840,6 +840,8 @@ interface GetDisplayAdOptions {
840
840
  placementId?: string;
841
841
  /** 小程序 appId */
842
842
  appId: string;
843
+ /** 用户唯一标识,接入方提供时透传 */
844
+ userId?: number;
843
845
  /** 广告展示类型 */
844
846
  type?: DisplayAdType;
845
847
  }
package/dist/index.d.ts CHANGED
@@ -631,7 +631,7 @@ declare const DyErrorMessage: Record<number, string>;
631
631
  * @Author: wutao
632
632
  * @Date: 2026-04-21
633
633
  * @LastEditors: wutao
634
- * @LastEditTime: 2026-08-17 14:59:58
634
+ * @LastEditTime: 2026-09-03 18:00:19
635
635
  */
636
636
  /**
637
637
  * 展示广告类型
@@ -650,14 +650,14 @@ type DisplayAdPriority = 'wechat-first' | 'custom-first' | 'wechat-only' | 'cust
650
650
  */
651
651
  interface DisplayAdActionConfig {
652
652
  /** 动作类型 */
653
- type?: 'miniProgram' | 'internal' | 'web' | 'none';
653
+ type?: 'miniProgram' | 'internal' | 'web' | 'api' | 'none';
654
654
  /** 跳转小程序的 appId */
655
655
  appId?: string;
656
656
  /** 跳转页面路径 */
657
657
  path?: string;
658
658
  /** 小程序打开模式 */
659
659
  miniProgramOpenMode?: 'full' | 'half';
660
- /** H5 跳转地址 */
660
+ /** H5 跳转地址或接口请求地址 */
661
661
  url?: string;
662
662
  }
663
663
  /**
@@ -703,7 +703,7 @@ interface DisplayCustomAdConfig {
703
703
  /** 素材填充模式 */
704
704
  fitMode?: 'contain' | 'cover';
705
705
  /** 跳转类型 */
706
- jumpType?: 'miniProgram' | 'internal' | 'web' | 'none';
706
+ jumpType?: 'miniProgram' | 'internal' | 'web' | 'api' | 'none';
707
707
  /** 点击动作配置 */
708
708
  action?: DisplayAdActionConfig;
709
709
  /** 兼容字段:跳转小程序的 appId */
@@ -752,8 +752,8 @@ interface AdvertPlatformConfig {
752
752
  /** 广告标识文案 */
753
753
  badgeText?: string | null;
754
754
  /** 自研广告跳转类型 */
755
- jumpType?: 'miniprogram' | 'miniProgram' | 'internal' | 'web' | 'none';
756
- /** Web 跳转地址 */
755
+ jumpType?: 'miniprogram' | 'miniProgram' | 'internal' | 'web' | 'api' | 'none';
756
+ /** Web 跳转地址或接口请求地址 */
757
757
  jumpUrl?: string | null;
758
758
  /** 目标小程序 appId */
759
759
  targetAppId?: string | null;
@@ -827,7 +827,7 @@ interface AdvertConfigItem {
827
827
  * @Author: wutao
828
828
  * @Date: 2026-04-21
829
829
  * @LastEditors: wutao
830
- * @LastEditTime: 2026-04-22
830
+ * @LastEditTime: 2026-09-03 18:00:19
831
831
  */
832
832
 
833
833
  /**
@@ -840,6 +840,8 @@ interface GetDisplayAdOptions {
840
840
  placementId?: string;
841
841
  /** 小程序 appId */
842
842
  appId: string;
843
+ /** 用户唯一标识,接入方提供时透传 */
844
+ userId?: number;
843
845
  /** 广告展示类型 */
844
846
  type?: DisplayAdType;
845
847
  }