@bi-nova/services 1.5.2-beta.202608051525 → 1.6.0-beta.202608131817

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
@@ -632,7 +632,7 @@ declare const DyErrorMessage: Record<number, string>;
632
632
  * @Author: wutao
633
633
  * @Date: 2026-04-21
634
634
  * @LastEditors: wutao
635
- * @LastEditTime: 2026-04-27
635
+ * @LastEditTime: 2026-08-13 15:02:40
636
636
  */
637
637
  /**
638
638
  * 展示广告类型
@@ -663,17 +663,31 @@ interface DisplayAdActionConfig {
663
663
  * 自定义广告内容配置
664
664
  */
665
665
  interface DisplayCustomAdConfig {
666
+ /** 后端广告配置 ID */
667
+ configId?: number | string;
668
+ /** 广告位 ID */
669
+ placementId?: string;
670
+ /** 广告配置名称 */
671
+ configName?: string;
672
+ /** 原始广告平台编码 */
673
+ advertPlatform?: AdvertPlatform;
674
+ /** 自研素材类型 */
675
+ mediaType?: 'image' | 'video';
666
676
  /** 图片地址 */
667
677
  image?: string;
668
678
  /** 视频地址 */
669
679
  video?: string;
670
680
  /** 视频封面地址 */
671
681
  poster?: string;
672
- /** 广告标题 */
673
- title?: string;
674
- /** 广告描述 */
682
+ /** 开屏底部整图素材地址 */
683
+ bottomImage?: string;
684
+ /** 兼容字段:广告主名称,开屏组件不再消费 */
685
+ advertiserName?: string;
686
+ /** 兼容字段:广告主 Logo,开屏组件不再消费 */
687
+ advertiserLogo?: string;
688
+ /** 兼容字段:广告描述,开屏组件不再消费 */
675
689
  description?: string;
676
- /** 按钮文案 */
690
+ /** 兼容字段:按钮文案,开屏组件不再消费 */
677
691
  buttonText?: string;
678
692
  /** 角标文案 */
679
693
  badgeText?: string;
@@ -685,6 +699,10 @@ interface DisplayCustomAdConfig {
685
699
  muted?: boolean;
686
700
  /** 广告规格 */
687
701
  adSpec?: number;
702
+ /** 素材填充模式 */
703
+ fitMode?: 'contain' | 'cover';
704
+ /** 跳转类型 */
705
+ jumpType?: 'miniProgram' | 'internal' | 'web' | 'none';
688
706
  /** 点击动作配置 */
689
707
  action?: DisplayAdActionConfig;
690
708
  /** 兼容字段:跳转小程序的 appId */
@@ -712,6 +730,34 @@ interface AdvertPlatformConfig {
712
730
  adId?: string;
713
731
  /** 平台应用 ID */
714
732
  appId?: string;
733
+ /** 自研素材类型 */
734
+ mediaType?: 'image' | 'video';
735
+ /** 自研图片素材地址,Banner 直接使用该字段 */
736
+ image?: string | null;
737
+ /** 自研视频素材地址 */
738
+ video?: string | null;
739
+ /** 视频封面地址 */
740
+ poster?: string | null;
741
+ /** 广告主名称 */
742
+ advertiserName?: string | null;
743
+ /** 广告主 Logo */
744
+ advertiserLogo?: string | null;
745
+ /** 广告描述 */
746
+ description?: string | null;
747
+ /** 按钮文案 */
748
+ buttonText?: string | null;
749
+ /** 广告标识文案 */
750
+ badgeText?: string | null;
751
+ /** 自研广告跳转类型 */
752
+ jumpType?: 'miniprogram' | 'miniProgram' | 'internal' | 'web' | 'none';
753
+ /** Web 跳转地址 */
754
+ jumpUrl?: string | null;
755
+ /** 目标小程序 appId */
756
+ targetAppId?: string | null;
757
+ /** 目标页面路径 */
758
+ targetPath?: string | null;
759
+ /** 开屏底部图片地址 */
760
+ bottomImage?: string | null;
715
761
  /** 扩展字段 */
716
762
  [key: string]: any;
717
763
  }
@@ -720,7 +766,17 @@ interface AdvertPlatformConfig {
720
766
  */
721
767
  interface AdvertConfigItem {
722
768
  /** 配置 ID */
723
- id?: number;
769
+ id?: number | string;
770
+ /** 商户名称 */
771
+ merchantName?: string | null;
772
+ /** 账号 ID */
773
+ accountId?: number | string | null;
774
+ /** 账号名称 */
775
+ accountName?: string | null;
776
+ /** 应用 ID */
777
+ appId?: string | null;
778
+ /** 应用名称 */
779
+ appName?: string | null;
724
780
  /** 广告位 ID */
725
781
  placementId?: string;
726
782
  /** 配置名称 */
@@ -729,6 +785,10 @@ interface AdvertConfigItem {
729
785
  advertPlatform: AdvertPlatform;
730
786
  /** 广告平台描述 */
731
787
  advertPlatformDesc?: string;
788
+ /** 广告位置类型 */
789
+ positionType?: string | number | null;
790
+ /** 广告位置类型描述 */
791
+ positionTypeDesc?: string | null;
732
792
  /** 优先级,值越小优先级越高 */
733
793
  priority?: number;
734
794
  /** 权重,同优先级下值越大优先级越高 */
@@ -736,21 +796,23 @@ interface AdvertConfigItem {
736
796
  /** 平台配置 */
737
797
  platformConfig?: AdvertPlatformConfig | null;
738
798
  /** 生效开始时间 */
739
- startTime?: string;
799
+ startTime?: string | null;
740
800
  /** 生效结束时间 */
741
- endTime?: string;
801
+ endTime?: string | null;
802
+ /** 日期投放配置 */
803
+ dateConfig?: Record<string, any> | null;
742
804
  /** 状态:1 启用,0 禁用 */
743
805
  status?: number;
744
806
  /** 备注 */
745
- remark?: string;
807
+ remark?: string | null;
746
808
  /** 创建时间 */
747
809
  createTime?: string;
748
810
  /** 更新时间 */
749
811
  updateTime?: string;
750
812
  /** 创建人 */
751
- creator?: string;
813
+ creator?: string | null;
752
814
  /** 更新人 */
753
- updater?: string;
815
+ updater?: string | null;
754
816
  /** 扩展字段 */
755
817
  [key: string]: any;
756
818
  }
package/dist/index.d.ts CHANGED
@@ -632,7 +632,7 @@ declare const DyErrorMessage: Record<number, string>;
632
632
  * @Author: wutao
633
633
  * @Date: 2026-04-21
634
634
  * @LastEditors: wutao
635
- * @LastEditTime: 2026-04-27
635
+ * @LastEditTime: 2026-08-13 15:02:40
636
636
  */
637
637
  /**
638
638
  * 展示广告类型
@@ -663,17 +663,31 @@ interface DisplayAdActionConfig {
663
663
  * 自定义广告内容配置
664
664
  */
665
665
  interface DisplayCustomAdConfig {
666
+ /** 后端广告配置 ID */
667
+ configId?: number | string;
668
+ /** 广告位 ID */
669
+ placementId?: string;
670
+ /** 广告配置名称 */
671
+ configName?: string;
672
+ /** 原始广告平台编码 */
673
+ advertPlatform?: AdvertPlatform;
674
+ /** 自研素材类型 */
675
+ mediaType?: 'image' | 'video';
666
676
  /** 图片地址 */
667
677
  image?: string;
668
678
  /** 视频地址 */
669
679
  video?: string;
670
680
  /** 视频封面地址 */
671
681
  poster?: string;
672
- /** 广告标题 */
673
- title?: string;
674
- /** 广告描述 */
682
+ /** 开屏底部整图素材地址 */
683
+ bottomImage?: string;
684
+ /** 兼容字段:广告主名称,开屏组件不再消费 */
685
+ advertiserName?: string;
686
+ /** 兼容字段:广告主 Logo,开屏组件不再消费 */
687
+ advertiserLogo?: string;
688
+ /** 兼容字段:广告描述,开屏组件不再消费 */
675
689
  description?: string;
676
- /** 按钮文案 */
690
+ /** 兼容字段:按钮文案,开屏组件不再消费 */
677
691
  buttonText?: string;
678
692
  /** 角标文案 */
679
693
  badgeText?: string;
@@ -685,6 +699,10 @@ interface DisplayCustomAdConfig {
685
699
  muted?: boolean;
686
700
  /** 广告规格 */
687
701
  adSpec?: number;
702
+ /** 素材填充模式 */
703
+ fitMode?: 'contain' | 'cover';
704
+ /** 跳转类型 */
705
+ jumpType?: 'miniProgram' | 'internal' | 'web' | 'none';
688
706
  /** 点击动作配置 */
689
707
  action?: DisplayAdActionConfig;
690
708
  /** 兼容字段:跳转小程序的 appId */
@@ -712,6 +730,34 @@ interface AdvertPlatformConfig {
712
730
  adId?: string;
713
731
  /** 平台应用 ID */
714
732
  appId?: string;
733
+ /** 自研素材类型 */
734
+ mediaType?: 'image' | 'video';
735
+ /** 自研图片素材地址,Banner 直接使用该字段 */
736
+ image?: string | null;
737
+ /** 自研视频素材地址 */
738
+ video?: string | null;
739
+ /** 视频封面地址 */
740
+ poster?: string | null;
741
+ /** 广告主名称 */
742
+ advertiserName?: string | null;
743
+ /** 广告主 Logo */
744
+ advertiserLogo?: string | null;
745
+ /** 广告描述 */
746
+ description?: string | null;
747
+ /** 按钮文案 */
748
+ buttonText?: string | null;
749
+ /** 广告标识文案 */
750
+ badgeText?: string | null;
751
+ /** 自研广告跳转类型 */
752
+ jumpType?: 'miniprogram' | 'miniProgram' | 'internal' | 'web' | 'none';
753
+ /** Web 跳转地址 */
754
+ jumpUrl?: string | null;
755
+ /** 目标小程序 appId */
756
+ targetAppId?: string | null;
757
+ /** 目标页面路径 */
758
+ targetPath?: string | null;
759
+ /** 开屏底部图片地址 */
760
+ bottomImage?: string | null;
715
761
  /** 扩展字段 */
716
762
  [key: string]: any;
717
763
  }
@@ -720,7 +766,17 @@ interface AdvertPlatformConfig {
720
766
  */
721
767
  interface AdvertConfigItem {
722
768
  /** 配置 ID */
723
- id?: number;
769
+ id?: number | string;
770
+ /** 商户名称 */
771
+ merchantName?: string | null;
772
+ /** 账号 ID */
773
+ accountId?: number | string | null;
774
+ /** 账号名称 */
775
+ accountName?: string | null;
776
+ /** 应用 ID */
777
+ appId?: string | null;
778
+ /** 应用名称 */
779
+ appName?: string | null;
724
780
  /** 广告位 ID */
725
781
  placementId?: string;
726
782
  /** 配置名称 */
@@ -729,6 +785,10 @@ interface AdvertConfigItem {
729
785
  advertPlatform: AdvertPlatform;
730
786
  /** 广告平台描述 */
731
787
  advertPlatformDesc?: string;
788
+ /** 广告位置类型 */
789
+ positionType?: string | number | null;
790
+ /** 广告位置类型描述 */
791
+ positionTypeDesc?: string | null;
732
792
  /** 优先级,值越小优先级越高 */
733
793
  priority?: number;
734
794
  /** 权重,同优先级下值越大优先级越高 */
@@ -736,21 +796,23 @@ interface AdvertConfigItem {
736
796
  /** 平台配置 */
737
797
  platformConfig?: AdvertPlatformConfig | null;
738
798
  /** 生效开始时间 */
739
- startTime?: string;
799
+ startTime?: string | null;
740
800
  /** 生效结束时间 */
741
- endTime?: string;
801
+ endTime?: string | null;
802
+ /** 日期投放配置 */
803
+ dateConfig?: Record<string, any> | null;
742
804
  /** 状态:1 启用,0 禁用 */
743
805
  status?: number;
744
806
  /** 备注 */
745
- remark?: string;
807
+ remark?: string | null;
746
808
  /** 创建时间 */
747
809
  createTime?: string;
748
810
  /** 更新时间 */
749
811
  updateTime?: string;
750
812
  /** 创建人 */
751
- creator?: string;
813
+ creator?: string | null;
752
814
  /** 更新人 */
753
- updater?: string;
815
+ updater?: string | null;
754
816
  /** 扩展字段 */
755
817
  [key: string]: any;
756
818
  }