@manycore/budget-plugin-api 0.0.1-alpha.2 → 0.0.1-alpha.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manycore/budget-plugin-api",
3
- "version": "0.0.1-alpha.2",
3
+ "version": "0.0.1-alpha.3",
4
4
  "title": "@manycore/budget-plugin-api",
5
5
  "description": "清单插件平台二开应用的API",
6
6
  "license": "MIT",
@@ -69,6 +69,7 @@ var ListingService = /*#__PURE__*/function (_ServService) {
69
69
  }
70
70
  }]);
71
71
  }(ServService);
72
+ __decorate([anno.decl.event(), __metadata("design:type", Object)], ListingService.prototype, "syncDesignEvent", void 0);
72
73
  __decorate([anno.decl.api(), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Object)], ListingService.prototype, "getDetail", null);
73
74
  __decorate([anno.decl.api(), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Object)], ListingService.prototype, "updateCells", null);
74
75
  __decorate([anno.decl.api(), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Object)], ListingService.prototype, "lock", null);
@@ -17,6 +17,12 @@ var __metadata = this && this.__metadata || function (k, v) {
17
17
  if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
18
18
  };
19
19
  import { anno, API_UNSUPPORT, ServService } from 'servkit';
20
+ export var SyncDesignStatus;
21
+ (function (SyncDesignStatus) {
22
+ SyncDesignStatus["success"] = "success";
23
+ SyncDesignStatus["error"] = "error";
24
+ SyncDesignStatus["loading"] = "loading";
25
+ })(SyncDesignStatus || (SyncDesignStatus = {}));
20
26
  var SappUiToastService = /*#__PURE__*/function (_ServService) {
21
27
  function SappUiToastService() {
22
28
  _classCallCheck(this, SappUiToastService);
@@ -69,6 +75,11 @@ var SappUiToastService = /*#__PURE__*/function (_ServService) {
69
75
  value: function loading(msg) {
70
76
  return API_UNSUPPORT();
71
77
  }
78
+ }, {
79
+ key: "setSyncDesignStatus",
80
+ value: function setSyncDesignStatus(status) {
81
+ return API_UNSUPPORT();
82
+ }
72
83
  }]);
73
84
  }(ServService);
74
85
  __decorate([anno.decl.api(), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Object)], SappUiToastService.prototype, "success", null);
@@ -76,6 +87,7 @@ __decorate([anno.decl.api(), __metadata("design:type", Function), __metadata("de
76
87
  __decorate([anno.decl.api(), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Object)], SappUiToastService.prototype, "info", null);
77
88
  __decorate([anno.decl.api(), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Object)], SappUiToastService.prototype, "warning", null);
78
89
  __decorate([anno.decl.api(), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Object)], SappUiToastService.prototype, "loading", null);
90
+ __decorate([anno.decl.api(), __metadata("design:type", Function), __metadata("design:paramtypes", [String]), __metadata("design:returntype", Object)], SappUiToastService.prototype, "setSyncDesignStatus", null);
79
91
  SappUiToastService = __decorate([anno.decl({
80
92
  id: 's.app.ui.',
81
93
  version: '1.0.0'
@@ -1,5 +1,5 @@
1
1
  import { ServService } from 'servkit';
2
- import type { ServAPIRetn } from 'servkit';
2
+ import type { ServAPIRetn, ServEventer } from 'servkit';
3
3
  /**
4
4
  * 表格元信息
5
5
  */
@@ -193,6 +193,7 @@ export interface IListingLockParams {
193
193
  * 清单插件平台API,给插件提供读写清单数据的api
194
194
  */
195
195
  export declare class ListingService extends ServService {
196
+ syncDesignEvent: ServEventer<void>;
196
197
  /**
197
198
  * 读清单数据
198
199
  */
@@ -1,5 +1,10 @@
1
1
  import { ServService } from 'servkit';
2
2
  import type { ServAPIRetn } from 'servkit';
3
+ export declare enum SyncDesignStatus {
4
+ success = "success",
5
+ error = "error",
6
+ loading = "loading"
7
+ }
3
8
  export interface IToastConfig {
4
9
  title: string;
5
10
  content: string;
@@ -30,4 +35,5 @@ export declare class SappUiToastService extends ServService {
30
35
  * @param msg 可以传字符串,也可以传 T
31
36
  */
32
37
  loading(msg: string | IToastConfig): ServAPIRetn<void>;
38
+ setSyncDesignStatus(status: SyncDesignStatus): ServAPIRetn<void>;
33
39
  }