@ftvs/jssdk 1.4.4 → 1.4.5

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +26 -5
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -186,15 +186,33 @@ interface GetAppInfoResult {
186
186
  */
187
187
  deviceId: string;
188
188
  /**
189
- * 平台
189
+ * 设备名称
190
190
  */
191
- platform: string;
191
+ deviceName: string;
192
+ /**
193
+ * 设备类型
194
+ * `1`机顶盒/电视
195
+ * `2`触摸屏设备(平板/手机)
196
+ */
197
+ deviceType: Number;
198
+ /**
199
+ * 渠道缩写
200
+ * `cmcc` 移动
201
+ * `unicom` 联通
202
+ * `telecom` 电信
203
+ */
204
+ channel: string;
205
+ /**
206
+ * 渠道中文名称
207
+ *
208
+ */
209
+ channelText: string;
192
210
  /**
193
211
  * App版本
194
212
  */
195
213
  version: string;
196
214
  /**
197
- * 维度
215
+ * 纬度
198
216
  */
199
217
  latitude: string;
200
218
  /**
@@ -219,8 +237,11 @@ interface GetAppInfoResult {
219
237
  * // 结果类似:
220
238
  * //{
221
239
  * // "deviceId": "9afe0aab4be06ce5",
222
- * // "platform": "android",
223
- * // "version": "0.0.1",
240
+ * // "deviceType": 1,
241
+ * // "deviceName": 'ALN-AL10',
242
+ * // "channel": 'unicomtest',
243
+ * // "channelText": '联通测试',
244
+ * // "version": "1.1.0",
224
245
  * // "isLogin": true,
225
246
  * // "latitude": "26.61858",
226
247
  * // "longitude": "106.64360",
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@ftvs/jssdk","version":"1.4.4","description":"未来电视 JSSDK。","license":"MIT","main":"./lib/index.js","module":"./lib/index.es.js","types":"./lib/index.d.ts","files":["lib"],"dependencies":{"uuid":"^9.0.0"},"standard-version":{"scripts":{"postchangelog":"npm run docs:gen-log && git add docs/changelog.md && git commit -m \"chore: 同步更新日志\""}},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}
1
+ {"name":"@ftvs/jssdk","version":"1.4.5","description":"未来电视 JSSDK。","license":"MIT","main":"./lib/index.js","module":"./lib/index.es.js","types":"./lib/index.d.ts","files":["lib"],"dependencies":{"uuid":"^9.0.0"},"standard-version":{"scripts":{"postchangelog":"npm run docs:gen-log && git add docs/changelog.md && git commit -m \"chore: 同步更新日志\""}},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}