@rongcloud/plugin-call 5.1.1 → 5.1.2-alpha.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.
@@ -84,6 +84,19 @@ export interface IRCCallInitOptions {
84
84
  */
85
85
  lang?: RCCallLanguage;
86
86
  }
87
+ /**
88
+ * 呼叫、挂断推送信息
89
+ */
90
+ export interface IPushConfig {
91
+ /**
92
+ * 推送标题
93
+ */
94
+ pushTitle?: string;
95
+ /**
96
+ * 推送内容
97
+ */
98
+ pushContent?: string;
99
+ }
87
100
  /**
88
101
  * session上的监听
89
102
  */
@@ -175,6 +188,14 @@ export interface IRCCallSessionOptions {
175
188
  */
176
189
  produceType?: ProduceTypes;
177
190
  isCrossAppkey?: boolean;
191
+ /**
192
+ * 呼叫推送配置
193
+ */
194
+ callPushConfig?: IPushConfig;
195
+ /**
196
+ * 挂断推送配置
197
+ */
198
+ hungupPushConfig?: IPushConfig;
178
199
  }
179
200
  export interface IRCTrackBitrate {
180
201
  /**
@@ -1,4 +1,4 @@
1
- import { ISessionListener, IRCCallInitOptions, IValidationResult, IMediaStreamConstraints } from './interface';
1
+ import { ISessionListener, IRCCallInitOptions, IValidationResult, IMediaStreamConstraints, IPushConfig } from './interface';
2
2
  export declare const validateCallInitOptions: (options: IRCCallInitOptions) => IValidationResult;
3
3
  /**
4
4
  * 校验registerSessionListener参数
@@ -9,6 +9,7 @@ export declare const validateMediaType: (mediaType: number) => IValidationResult
9
9
  export declare const validateExtra: (extra: string) => IValidationResult;
10
10
  export declare const validatePushTitle: (pushTitle: string) => IValidationResult;
11
11
  export declare const validatePushContent: (pushContent: string) => IValidationResult;
12
+ export declare const validatePushConfig: (pushConfig: IPushConfig) => IValidationResult[];
12
13
  export declare const validateUserIds: (userIds: string[]) => IValidationResult;
13
14
  export declare const validateMediaStreamConstraints: (constraints: IMediaStreamConstraints) => IValidationResult;
14
15
  //# sourceMappingURL=validation.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rongcloud/plugin-call",
3
- "version": "5.1.1",
3
+ "version": "5.1.2-alpha.2",
4
4
  "description": "@rongcloud/plugin-call",
5
5
  "main": "./dist/index.js",
6
6
  "__attrs__": {
@@ -32,11 +32,11 @@
32
32
  "node": ">=10.0.0"
33
33
  },
34
34
  "peerDependencies": {
35
- "@rongcloud/engine": "^5.5.4",
35
+ "@rongcloud/engine": "^5.7.0",
36
36
  "@rongcloud/plugin-rtc": "^5.5.1"
37
37
  },
38
38
  "dependencies": {
39
- "@rongcloud/plugin-call-engine": "^5.0.10"
39
+ "@rongcloud/plugin-call-engine": "^5.1.2-alpha.1"
40
40
  },
41
- "__commit__": "ba3fba8044d94f2fb2d74a189c4ecc3adbad8e46"
41
+ "__commit__": "8d4f8b00cda704283faad34d0e81a4e048e09d08"
42
42
  }