@trackunit/iris-app-runtime-core 0.1.2 → 0.1.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/ParamsRuntime.d.ts +6 -0
- package/index.d.ts +1 -0
- package/index.js +16 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from "./DeveloperSettingsRuntime";
|
|
|
6
6
|
export * from "./EnvironmentRuntime";
|
|
7
7
|
export * from "./GlobalSelectionRuntime";
|
|
8
8
|
export * from "./NavigationRuntime";
|
|
9
|
+
export * from "./ParamsRuntime";
|
|
9
10
|
export * from "./RestRuntime";
|
|
10
11
|
export * from "./ToastRuntime";
|
|
11
12
|
export * from "./TokenRuntime";
|
package/index.js
CHANGED
|
@@ -1391,6 +1391,21 @@ const NavigationRuntime = {
|
|
|
1391
1391
|
})
|
|
1392
1392
|
};
|
|
1393
1393
|
|
|
1394
|
+
const ParamsRuntime = {
|
|
1395
|
+
getAppName: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1396
|
+
const api = yield getHostConnector();
|
|
1397
|
+
return api.getAppName();
|
|
1398
|
+
}),
|
|
1399
|
+
getOrgName: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1400
|
+
const api = yield getHostConnector();
|
|
1401
|
+
return api.getOrgName();
|
|
1402
|
+
}),
|
|
1403
|
+
getExtensionName: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1404
|
+
const api = yield getHostConnector();
|
|
1405
|
+
return api.getExtensionName();
|
|
1406
|
+
})
|
|
1407
|
+
};
|
|
1408
|
+
|
|
1394
1409
|
const RestRuntime = {
|
|
1395
1410
|
apiHost: "https://API_HOST",
|
|
1396
1411
|
|
|
@@ -1521,4 +1536,4 @@ const UserSubscriptionRuntime = {
|
|
|
1521
1536
|
})
|
|
1522
1537
|
};
|
|
1523
1538
|
|
|
1524
|
-
export { AssetRuntime, CurrentUserRuntime, CustomFieldRuntime, DeveloperSettingsRuntime, EnvironmentRuntime, GlobalSelectionRuntime, NavigationRuntime, RestRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, getCustomFieldValueFromRawValue };
|
|
1539
|
+
export { AssetRuntime, CurrentUserRuntime, CustomFieldRuntime, DeveloperSettingsRuntime, EnvironmentRuntime, GlobalSelectionRuntime, NavigationRuntime, ParamsRuntime, RestRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, getCustomFieldValueFromRawValue };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-runtime-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"types": "./index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@trackunit/iris-app-runtime-core-api": "0.1.
|
|
11
|
+
"@trackunit/iris-app-runtime-core-api": "0.1.3",
|
|
12
12
|
"@trackunit/react-core-contexts-api": "0.1.1"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {}
|