@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 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.7",
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.6",
11
- "@trackunit/react-core-contexts-api": "0.2.8"
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
  }
@@ -1,5 +1,5 @@
1
1
  import { BodyType, HttpResponse, RequestParams } from "@trackunit/iris-app-runtime-core-api";
2
- export declare type RestRunTimeResponse = HttpResponse<any, any>;
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>;
@@ -0,0 +1,5 @@
1
+ import { SiteInfo } from "@trackunit/iris-app-runtime-core-api";
2
+ export interface ISiteRuntime {
3
+ getSiteInfo: () => Promise<SiteInfo>;
4
+ }
5
+ export declare const SiteRuntime: ISiteRuntime;
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";