@etsoo/materialui 1.3.89 → 1.3.90

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.
@@ -1,4 +1,4 @@
1
- import { ExternalEndpoint, IApi } from "@etsoo/appscript";
1
+ import { ExternalEndpoint, IApi, InitCallDto, InitCallResult } from "@etsoo/appscript";
2
2
  import { IServiceApp } from "./IServiceApp";
3
3
  import { IServiceAppSettings } from "./IServiceAppSettings";
4
4
  import { IServicePageData } from "./IServicePage";
@@ -34,6 +34,12 @@ export declare class ServiceApp<U extends IServiceUser = IServiceUser, P extends
34
34
  * Load core system UI
35
35
  */
36
36
  loadCore(): void;
37
+ /**
38
+ * Api init call, for service application, call the core system API
39
+ * @param data Data
40
+ * @returns Result
41
+ */
42
+ apiInitCall(data: InitCallDto): Promise<InitCallResult | undefined>;
37
43
  /**
38
44
  * Go to the login page
39
45
  * @param tryLogin Try to login again
@@ -42,6 +42,14 @@ export class ServiceApp extends ReactApp {
42
42
  BridgeUtils.host.loadApp(coreName);
43
43
  }
44
44
  }
45
+ /**
46
+ * Api init call, for service application, call the core system API
47
+ * @param data Data
48
+ * @returns Result
49
+ */
50
+ async apiInitCall(data) {
51
+ return await this.coreApi.put(this.initCallApi, data);
52
+ }
45
53
  /**
46
54
  * Go to the login page
47
55
  * @param tryLogin Try to login again
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.3.89",
3
+ "version": "1.3.90",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -1,4 +1,10 @@
1
- import { BridgeUtils, ExternalEndpoint, IApi } from "@etsoo/appscript";
1
+ import {
2
+ BridgeUtils,
3
+ ExternalEndpoint,
4
+ IApi,
5
+ InitCallDto,
6
+ InitCallResult
7
+ } from "@etsoo/appscript";
2
8
  import { IServiceApp } from "./IServiceApp";
3
9
  import { IServiceAppSettings } from "./IServiceAppSettings";
4
10
  import { IServicePageData } from "./IServicePage";
@@ -70,6 +76,15 @@ export class ServiceApp<
70
76
  }
71
77
  }
72
78
 
79
+ /**
80
+ * Api init call, for service application, call the core system API
81
+ * @param data Data
82
+ * @returns Result
83
+ */
84
+ override async apiInitCall(data: InitCallDto) {
85
+ return await this.coreApi.put<InitCallResult>(this.initCallApi, data);
86
+ }
87
+
73
88
  /**
74
89
  * Go to the login page
75
90
  * @param tryLogin Try to login again