@trackunit/iris-app-runtime-core 0.3.164 → 0.3.165

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.js CHANGED
@@ -291,6 +291,13 @@ const isValidCustomFieldValue = (value) => {
291
291
  isNull);
292
292
  };
293
293
 
294
+ const CustomerRuntime = {
295
+ getCustomerInfo: () => __awaiter(void 0, void 0, void 0, function* () {
296
+ const api = yield getHostConnector();
297
+ return api.getCustomerInfo();
298
+ }),
299
+ };
300
+
294
301
  const EnvironmentRuntime = {
295
302
  getEnvironmentContext: () => __awaiter(void 0, void 0, void 0, function* () {
296
303
  const api = yield getHostConnector();
@@ -340,9 +347,9 @@ const NavigationRuntime = {
340
347
  const api = yield getHostConnector();
341
348
  return api.gotoFleetApp(options);
342
349
  }),
343
- gotoCustomer: (customerId) => __awaiter(void 0, void 0, void 0, function* () {
350
+ gotoCustomerHome: (customerId, options) => __awaiter(void 0, void 0, void 0, function* () {
344
351
  const api = yield getHostConnector();
345
- return api.gotoCustomer(customerId);
352
+ return api.gotoCustomerHome(customerId, options);
346
353
  }),
347
354
  gotoMyExports: (exportId) => __awaiter(void 0, void 0, void 0, function* () {
348
355
  const api = yield getHostConnector();
@@ -352,6 +359,10 @@ const NavigationRuntime = {
352
359
  const api = yield getHostConnector();
353
360
  return api.gotoAdmin(url);
354
361
  }),
362
+ reloadManager: () => __awaiter(void 0, void 0, void 0, function* () {
363
+ const api = yield getHostConnector();
364
+ return api.reloadManager();
365
+ }),
355
366
  hasAccessTo: (options) => __awaiter(void 0, void 0, void 0, function* () {
356
367
  const api = yield getHostConnector();
357
368
  return api.hasAccessTo(options);
@@ -439,6 +450,7 @@ exports.AssetSortingRuntime = AssetSortingRuntime;
439
450
  exports.ConfirmationDialogRuntime = ConfirmationDialogRuntime;
440
451
  exports.CurrentUserPreferenceRuntime = CurrentUserPreferenceRuntime;
441
452
  exports.CurrentUserRuntime = CurrentUserRuntime;
453
+ exports.CustomerRuntime = CustomerRuntime;
442
454
  exports.EnvironmentRuntime = EnvironmentRuntime;
443
455
  exports.EventRuntime = EventRuntime;
444
456
  exports.FilterBarRuntime = FilterBarRuntime;
package/index.esm.js CHANGED
@@ -287,6 +287,13 @@ const isValidCustomFieldValue = (value) => {
287
287
  isNull);
288
288
  };
289
289
 
290
+ const CustomerRuntime = {
291
+ getCustomerInfo: () => __awaiter(void 0, void 0, void 0, function* () {
292
+ const api = yield getHostConnector();
293
+ return api.getCustomerInfo();
294
+ }),
295
+ };
296
+
290
297
  const EnvironmentRuntime = {
291
298
  getEnvironmentContext: () => __awaiter(void 0, void 0, void 0, function* () {
292
299
  const api = yield getHostConnector();
@@ -336,9 +343,9 @@ const NavigationRuntime = {
336
343
  const api = yield getHostConnector();
337
344
  return api.gotoFleetApp(options);
338
345
  }),
339
- gotoCustomer: (customerId) => __awaiter(void 0, void 0, void 0, function* () {
346
+ gotoCustomerHome: (customerId, options) => __awaiter(void 0, void 0, void 0, function* () {
340
347
  const api = yield getHostConnector();
341
- return api.gotoCustomer(customerId);
348
+ return api.gotoCustomerHome(customerId, options);
342
349
  }),
343
350
  gotoMyExports: (exportId) => __awaiter(void 0, void 0, void 0, function* () {
344
351
  const api = yield getHostConnector();
@@ -348,6 +355,10 @@ const NavigationRuntime = {
348
355
  const api = yield getHostConnector();
349
356
  return api.gotoAdmin(url);
350
357
  }),
358
+ reloadManager: () => __awaiter(void 0, void 0, void 0, function* () {
359
+ const api = yield getHostConnector();
360
+ return api.reloadManager();
361
+ }),
351
362
  hasAccessTo: (options) => __awaiter(void 0, void 0, void 0, function* () {
352
363
  const api = yield getHostConnector();
353
364
  return api.hasAccessTo(options);
@@ -429,4 +440,4 @@ const UserSubscriptionRuntime = {
429
440
  }),
430
441
  };
431
442
 
432
- export { AnalyticsContextRuntime, AssetRuntime, AssetSortingRuntime, ConfirmationDialogRuntime, CurrentUserPreferenceRuntime, CurrentUserRuntime, EnvironmentRuntime, EventRuntime, FilterBarRuntime, NavigationRuntime, OemBrandingContextRuntime, ParamsRuntime, RestRuntime, RouterRuntime, SiteRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, getCustomFieldValueForDisplayInUI, getCustomFieldValueToSaveFromRawValue, getDateValue, getHostConnector, getStringValue, isValidCustomFieldValue, setupHostConnector };
443
+ export { AnalyticsContextRuntime, AssetRuntime, AssetSortingRuntime, ConfirmationDialogRuntime, CurrentUserPreferenceRuntime, CurrentUserRuntime, CustomerRuntime, EnvironmentRuntime, EventRuntime, FilterBarRuntime, NavigationRuntime, OemBrandingContextRuntime, ParamsRuntime, RestRuntime, RouterRuntime, SiteRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, getCustomFieldValueForDisplayInUI, getCustomFieldValueToSaveFromRawValue, getDateValue, getHostConnector, getStringValue, isValidCustomFieldValue, setupHostConnector };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-runtime-core",
3
- "version": "0.3.164",
3
+ "version": "0.3.165",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -0,0 +1,5 @@
1
+ import { CustomerInfo } from "@trackunit/iris-app-runtime-core-api";
2
+ export interface ICustomerRuntime {
3
+ getCustomerInfo: () => Promise<CustomerInfo>;
4
+ }
5
+ export declare const CustomerRuntime: ICustomerRuntime;
package/src/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export * from "./ConfirmationDialogRuntime";
6
6
  export * from "./CurrentPreferenceUserRuntime";
7
7
  export * from "./CurrentUserRuntime";
8
8
  export * from "./CustomFieldRuntime";
9
+ export * from "./CustomerRuntime";
9
10
  export * from "./EnvironmentRuntime";
10
11
  export * from "./EventRuntime";
11
12
  export * from "./FilterBarRuntime";