@trackunit/iris-app-runtime-core 0.3.7 → 0.3.9
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/index.cjs +8 -0
- package/package.json +3 -3
- package/src/RestRuntime.d.ts +1 -1
- package/src/SiteRuntime.d.ts +5 -0
- package/src/index.d.ts +1 -0
package/index.cjs
CHANGED
|
@@ -251,6 +251,13 @@ const RestRuntime = {
|
|
|
251
251
|
},
|
|
252
252
|
};
|
|
253
253
|
|
|
254
|
+
const SiteRuntime = {
|
|
255
|
+
getSiteInfo: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
256
|
+
const api = yield getHostConnector();
|
|
257
|
+
return api.getSiteInfo();
|
|
258
|
+
}),
|
|
259
|
+
};
|
|
260
|
+
|
|
254
261
|
const ToastRuntime = {
|
|
255
262
|
addToast(toast) {
|
|
256
263
|
var _a, _b;
|
|
@@ -297,6 +304,7 @@ exports.GlobalSelectionRuntime = GlobalSelectionRuntime;
|
|
|
297
304
|
exports.NavigationRuntime = NavigationRuntime;
|
|
298
305
|
exports.ParamsRuntime = ParamsRuntime;
|
|
299
306
|
exports.RestRuntime = RestRuntime;
|
|
307
|
+
exports.SiteRuntime = SiteRuntime;
|
|
300
308
|
exports.ToastRuntime = ToastRuntime;
|
|
301
309
|
exports.TokenRuntime = TokenRuntime;
|
|
302
310
|
exports.UserSubscriptionRuntime = UserSubscriptionRuntime;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-runtime-core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./index.cjs",
|
|
7
7
|
"type": "commonjs",
|
|
8
8
|
"types": "./src/index.d.ts",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@trackunit/iris-app-runtime-core-api": "0.3.
|
|
11
|
-
"@trackunit/react-core-contexts-api": "0.2.
|
|
10
|
+
"@trackunit/iris-app-runtime-core-api": "0.3.8",
|
|
11
|
+
"@trackunit/react-core-contexts-api": "0.2.9"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {}
|
|
14
14
|
}
|
package/src/RestRuntime.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BodyType, HttpResponse, RequestParams } from "@trackunit/iris-app-runtime-core-api";
|
|
2
|
-
export
|
|
2
|
+
export type RestRunTimeResponse = HttpResponse<any, any>;
|
|
3
3
|
export interface IRestRuntime {
|
|
4
4
|
apiHost: string;
|
|
5
5
|
request: (path: string, method: string, requestParams?: RequestParams | undefined, body?: unknown, bodyType?: BodyType | undefined, secureByDefault?: boolean | undefined) => Promise<RestRunTimeResponse>;
|
package/src/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from "./HostConnector";
|
|
|
10
10
|
export * from "./NavigationRuntime";
|
|
11
11
|
export * from "./ParamsRuntime";
|
|
12
12
|
export * from "./RestRuntime";
|
|
13
|
+
export * from "./SiteRuntime";
|
|
13
14
|
export * from "./ToastRuntime";
|
|
14
15
|
export * from "./TokenRuntime";
|
|
15
16
|
export * from "./UserSubscriptionRuntime";
|