@rongcloud/engine 5.9.0-alpha.2 → 5.9.0-alpha.4
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/index.d.ts +30 -9
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1469,11 +1469,13 @@ declare enum ErrorCode {
|
|
|
1469
1469
|
/**
|
|
1470
1470
|
* 不支持V4已读回执功能
|
|
1471
1471
|
* @since 5.9.0
|
|
1472
|
+
* @hidden
|
|
1472
1473
|
*/
|
|
1473
1474
|
READ_RECEIPT_V4_NOT_SUPPORT = 34292,
|
|
1474
1475
|
/**
|
|
1475
1476
|
* 不支持更新v4已读回执信息
|
|
1476
1477
|
* @since 5.9.0
|
|
1478
|
+
* @hidden
|
|
1477
1479
|
*/
|
|
1478
1480
|
READ_RECEIPT_V4_UPDATE_NOT_SUPPORT = 34293,
|
|
1479
1481
|
/**
|
|
@@ -2324,7 +2326,8 @@ declare enum LogTagId {
|
|
|
2324
2326
|
L_CLOUD_CONFIG_DATA_E = "L-cloud_config_data_error",
|
|
2325
2327
|
L_CLOUD_SET_CACHE_O = "L-cloud_set_cache-O",
|
|
2326
2328
|
L_CLOUD_GET_CACHE_O = "L-cloud_get_cache-O",
|
|
2327
|
-
L_CLOUD_MSG_NTF_O = "L-cloud_msg_ntf-O"
|
|
2329
|
+
L_CLOUD_MSG_NTF_O = "L-cloud_msg_ntf-O",
|
|
2330
|
+
L_CLOUD_SET_AREA_CODE_O = "L-cloud_set_area_code-O"
|
|
2328
2331
|
}
|
|
2329
2332
|
|
|
2330
2333
|
/** 统计数据标签 */
|
|
@@ -2824,6 +2827,7 @@ interface IReadReceiptInfo {
|
|
|
2824
2827
|
* 已读回执事件通知数据
|
|
2825
2828
|
* @category Interface
|
|
2826
2829
|
* @since 5.9.0
|
|
2830
|
+
* @hidden
|
|
2827
2831
|
*/
|
|
2828
2832
|
interface IReadReceiptData {
|
|
2829
2833
|
privateReadReceipt?: IPrivateReadReceiptData;
|
|
@@ -2833,6 +2837,7 @@ interface IReadReceiptData {
|
|
|
2833
2837
|
* 单聊已读回执事件通知数据
|
|
2834
2838
|
* @category Interface
|
|
2835
2839
|
* @since 5.9.0
|
|
2840
|
+
* @hidden
|
|
2836
2841
|
*/
|
|
2837
2842
|
interface IPrivateReadReceiptData extends IConversationOption {
|
|
2838
2843
|
/**
|
|
@@ -2844,6 +2849,7 @@ interface IPrivateReadReceiptData extends IConversationOption {
|
|
|
2844
2849
|
* 群聊已读回执事件通知数据
|
|
2845
2850
|
* @category Interface
|
|
2846
2851
|
* @since 5.9.0
|
|
2852
|
+
* @hidden
|
|
2847
2853
|
*/
|
|
2848
2854
|
interface IGroupReadReceiptData extends IConversationOption {
|
|
2849
2855
|
/**
|
|
@@ -2863,6 +2869,7 @@ interface IGroupReadReceiptData extends IConversationOption {
|
|
|
2863
2869
|
* 多端同步会话已读状态事件数据
|
|
2864
2870
|
* @category Interface
|
|
2865
2871
|
* @since 5.9.0
|
|
2872
|
+
* @hidden
|
|
2866
2873
|
*/
|
|
2867
2874
|
interface ISyncReadStatusData extends IConversationOption {
|
|
2868
2875
|
/**
|
|
@@ -4551,7 +4558,7 @@ declare abstract class BasicStatistic {
|
|
|
4551
4558
|
/**
|
|
4552
4559
|
* 内部质量数据统计接口,仅限 IMLib 与 RTCLib 内部使用
|
|
4553
4560
|
*/
|
|
4554
|
-
|
|
4561
|
+
record: (tag: string, content?: Content | undefined, traceId?: string | undefined) => void;
|
|
4555
4562
|
/**
|
|
4556
4563
|
* 创建事务追踪 ID,全局唯一,便于跨进程、异步事务追踪,需要考虑多进程
|
|
4557
4564
|
*/
|
|
@@ -4714,9 +4721,15 @@ declare enum AreaCode {
|
|
|
4714
4721
|
*/
|
|
4715
4722
|
NA = 3,
|
|
4716
4723
|
/**
|
|
4717
|
-
*
|
|
4724
|
+
* 新加坡数据中心
|
|
4725
|
+
* @deprecated 请使用 `AreaCode.SG_B`
|
|
4726
|
+
* @hidden
|
|
4718
4727
|
*/
|
|
4719
4728
|
SG_A = 4,
|
|
4729
|
+
/**
|
|
4730
|
+
* 新加坡 B 企业合作数据中心
|
|
4731
|
+
*/
|
|
4732
|
+
SG_B = 4,
|
|
4720
4733
|
/**
|
|
4721
4734
|
* 沙特数据中心
|
|
4722
4735
|
*/
|
|
@@ -4739,8 +4752,7 @@ interface IStaticConfig {
|
|
|
4739
4752
|
declare abstract class BasicStaticConfigManager {
|
|
4740
4753
|
protected readonly appkey: string;
|
|
4741
4754
|
protected readonly logger: BasicLogger;
|
|
4742
|
-
|
|
4743
|
-
constructor(appkey: string, logger: BasicLogger, areaCode?: AreaCode);
|
|
4755
|
+
constructor(appkey: string, logger: BasicLogger);
|
|
4744
4756
|
protected staticUrls: string[];
|
|
4745
4757
|
protected abstract getCache(): string | null;
|
|
4746
4758
|
protected abstract setCache(data: string): void;
|
|
@@ -4755,7 +4767,6 @@ declare abstract class BasicStaticConfigManager {
|
|
|
4755
4767
|
* 循环请求
|
|
4756
4768
|
*/
|
|
4757
4769
|
private _requestHandle;
|
|
4758
|
-
setAreaCode(areaCode: AreaCode): void;
|
|
4759
4770
|
}
|
|
4760
4771
|
|
|
4761
4772
|
declare type INaviCache = {
|
|
@@ -4854,8 +4865,7 @@ declare class WebsocketStaticConfigManager extends BasicStaticConfigManager {
|
|
|
4854
4865
|
readonly appkey: string;
|
|
4855
4866
|
readonly logger: BasicLogger;
|
|
4856
4867
|
private runtime;
|
|
4857
|
-
|
|
4858
|
-
constructor(appkey: string, logger: BasicLogger, runtime: IRuntime, areaCode?: AreaCode);
|
|
4868
|
+
constructor(appkey: string, logger: BasicLogger, runtime: IRuntime);
|
|
4859
4869
|
private _storageKey;
|
|
4860
4870
|
protected getCache(): string | null;
|
|
4861
4871
|
protected setCache(data: string): void;
|
|
@@ -6469,7 +6479,7 @@ interface IWatcher {
|
|
|
6469
6479
|
* 群聊消息送达状态通知
|
|
6470
6480
|
*/
|
|
6471
6481
|
groupMessageDeliveredStatus?: IGroupMessageDeliveredStatusListener;
|
|
6472
|
-
readReceiptReceived?: (conversation: IConversationOption,
|
|
6482
|
+
readReceiptReceived?: (conversation: IConversationOption, message: string, sentTime: number, senderUserId: string) => void;
|
|
6473
6483
|
messageReceiptRequest?: (conversation: IConversationOption, messageUId: string, senderUserId: string) => void;
|
|
6474
6484
|
messageReceiptResponse?: (conversation: IConversationOption, receivedUserId: string, messageUIdList: string[]) => void;
|
|
6475
6485
|
/**
|
|
@@ -8710,6 +8720,17 @@ declare class UrlCenter {
|
|
|
8710
8720
|
* @returns 获取云控地址
|
|
8711
8721
|
*/
|
|
8712
8722
|
getCloudControllerUrl(areaCode?: number): string[];
|
|
8723
|
+
/**
|
|
8724
|
+
* @returns 获取区域码
|
|
8725
|
+
* @description 优先使用用户设置的区域码,如果用户没有设置区域码,那么使用默认区域码,默认区域码为北京
|
|
8726
|
+
*/
|
|
8727
|
+
getAreaCode(): AreaCode;
|
|
8728
|
+
/**
|
|
8729
|
+
* 设置区域码
|
|
8730
|
+
* @param areaCode 区域码
|
|
8731
|
+
* @returns 是否设置成功
|
|
8732
|
+
*/
|
|
8733
|
+
setAreaCode(areaCode: AreaCode): boolean;
|
|
8713
8734
|
}
|
|
8714
8735
|
declare const urlCenter: UrlCenter;
|
|
8715
8736
|
|