@polyv/request-core 2.0.0 → 2.2.0
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/interface/index.d.ts +1 -0
- package/interface/index.js +1 -1
- package/interface/polyv.d.ts +31 -0
- package/interface/polyv.js +7 -0
- package/package.json +1 -1
package/interface/index.d.ts
CHANGED
package/interface/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './polyv';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 保利威域名信息
|
|
3
|
+
*/
|
|
4
|
+
export interface PolyvDomainInfo {
|
|
5
|
+
/**
|
|
6
|
+
* 观看页域名
|
|
7
|
+
* @default https://live.polyv.cn
|
|
8
|
+
*/
|
|
9
|
+
watchPageDomain?: string;
|
|
10
|
+
/**
|
|
11
|
+
* 后台 api 域名
|
|
12
|
+
* @default https://live.polyv.net
|
|
13
|
+
*/
|
|
14
|
+
backstageApiDomain?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 直播 api 域名
|
|
17
|
+
* @default https://api.polyv.net
|
|
18
|
+
*/
|
|
19
|
+
polyvApiDomain?: string;
|
|
20
|
+
/**
|
|
21
|
+
* 聊天室 api 域名
|
|
22
|
+
* @default https://apichat.polyv.net
|
|
23
|
+
*/
|
|
24
|
+
chatApiDomain?: string;
|
|
25
|
+
/**
|
|
26
|
+
* 静态域名
|
|
27
|
+
* @default https://liveimages.videocc.net
|
|
28
|
+
*/
|
|
29
|
+
staticDomain?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const defaultPolyvDomainInfo: Required<PolyvDomainInfo>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const defaultPolyvDomainInfo = {
|
|
2
|
+
backstageApiDomain: 'https://live.polyv.net',
|
|
3
|
+
polyvApiDomain: 'https://api.polyv.net',
|
|
4
|
+
chatApiDomain: 'https://apichat.polyv.net',
|
|
5
|
+
staticDomain: 'https://liveimages.videocc.net',
|
|
6
|
+
watchPageDomain: 'https://live.polyv.cn',
|
|
7
|
+
};
|