@widget-js/core 24.1.1-beta.82 → 24.1.1-beta.83
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.cjs +25 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -4
- package/dist/index.d.ts +25 -4
- package/dist/index.js +25 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2278,6 +2278,7 @@ var Channel = /* @__PURE__ */ ((Channel2) => {
|
|
|
2278
2278
|
Channel2["PROCESS"] = "channel::cn.widgetjs.core.process";
|
|
2279
2279
|
Channel2["USER"] = "channel::cn.widgetjs.core.user";
|
|
2280
2280
|
Channel2["TRAY"] = "channel::cn.widgetjs.core.tray";
|
|
2281
|
+
Channel2["AI"] = "channel::cn.widgetjs.core.ai";
|
|
2281
2282
|
return Channel2;
|
|
2282
2283
|
})(Channel || {});
|
|
2283
2284
|
|
|
@@ -3483,9 +3484,6 @@ var UserApiImpl = class extends BaseApi {
|
|
|
3483
3484
|
async getUser() {
|
|
3484
3485
|
return await this.invokeMethod("getUser");
|
|
3485
3486
|
}
|
|
3486
|
-
async requestLogin() {
|
|
3487
|
-
return await this.invokeMethod("requestLogin");
|
|
3488
|
-
}
|
|
3489
3487
|
getChannel() {
|
|
3490
3488
|
return "channel::cn.widgetjs.core.user" /* USER */;
|
|
3491
3489
|
}
|
|
@@ -3530,6 +3528,30 @@ var TrayApiImpl = class extends BaseApi {
|
|
|
3530
3528
|
};
|
|
3531
3529
|
var TrayApi = new TrayApiImpl();
|
|
3532
3530
|
|
|
3531
|
+
// src/api/AiApi.ts
|
|
3532
|
+
var AiApiImpl = class extends BaseApi {
|
|
3533
|
+
addConfig(config) {
|
|
3534
|
+
return this.invokeMethod("addConfig", config);
|
|
3535
|
+
}
|
|
3536
|
+
deleteConfig(id) {
|
|
3537
|
+
return this.invokeMethod("deleteConfig", id);
|
|
3538
|
+
}
|
|
3539
|
+
updateConfig(config) {
|
|
3540
|
+
return this.invokeMethod("updateConfig", config);
|
|
3541
|
+
}
|
|
3542
|
+
getConfigList() {
|
|
3543
|
+
return this.invokeMethod("getConfigList");
|
|
3544
|
+
}
|
|
3545
|
+
getConfig(id) {
|
|
3546
|
+
return this.invokeMethod("getConfig", id);
|
|
3547
|
+
}
|
|
3548
|
+
getChannel() {
|
|
3549
|
+
return "channel::cn.widgetjs.core.ai" /* AI */;
|
|
3550
|
+
}
|
|
3551
|
+
};
|
|
3552
|
+
var AiApi = new AiApiImpl();
|
|
3553
|
+
|
|
3554
|
+
exports.AiApi = AiApi;
|
|
3533
3555
|
exports.ApiConstants = ApiConstants;
|
|
3534
3556
|
exports.AppApi = AppApi;
|
|
3535
3557
|
exports.AppApiConstants = AppApiConstants;
|