@trackunit/iris-app-runtime-core 1.4.67 → 1.4.70

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
@@ -15,6 +15,9 @@ const setupHostConnector = (subscribedMethods) => {
15
15
  onFilterBarValuesChanged: doNothingByDefault,
16
16
  onTokenChanged: doNothingByDefault,
17
17
  onAssetSortingStateChanged: doNothingByDefault,
18
+ onAssetsFilterBarValuesChanged: doNothingByDefault,
19
+ onCustomersFilterBarValuesChanged: doNothingByDefault,
20
+ onSitesFilterBarValuesChanged: doNothingByDefault,
18
21
  ...subscribedMethods,
19
22
  };
20
23
  const connection = penpal.connectToParent({ methods });
@@ -61,6 +64,13 @@ const AssetRuntime = {
61
64
  },
62
65
  };
63
66
 
67
+ const AssetsFilterBarRuntime = {
68
+ getAssetsFilterBarValues: async () => {
69
+ const api = await getHostConnector();
70
+ return api.getAssetsFilterBarValues();
71
+ },
72
+ };
73
+
64
74
  const AssetSortingRuntime = {
65
75
  getAssetSortingState: async () => {
66
76
  const api = await getHostConnector();
@@ -103,6 +113,20 @@ const CurrentUserRuntime = {
103
113
  },
104
114
  };
105
115
 
116
+ const CustomerRuntime = {
117
+ getCustomerInfo: async () => {
118
+ const api = await getHostConnector();
119
+ return api.getCustomerInfo();
120
+ },
121
+ };
122
+
123
+ const CustomersFilterBarRuntime = {
124
+ getCustomersFilterBarValues: async () => {
125
+ const api = await getHostConnector();
126
+ return api.getCustomersFilterBarValues();
127
+ },
128
+ };
129
+
106
130
  /**
107
131
  * Get the value of a custom field from a raw value.
108
132
  *
@@ -306,13 +330,6 @@ const isValidCustomFieldValue = (value) => {
306
330
  isNull);
307
331
  };
308
332
 
309
- const CustomerRuntime = {
310
- getCustomerInfo: async () => {
311
- const api = await getHostConnector();
312
- return api.getCustomerInfo();
313
- },
314
- };
315
-
316
333
  const EnvironmentRuntime = {
317
334
  getEnvironmentContext: async () => {
318
335
  const api = await getHostConnector();
@@ -437,6 +454,13 @@ const SiteRuntime = {
437
454
  },
438
455
  };
439
456
 
457
+ const SitesFilterBarRuntime = {
458
+ getSitesFilterBarValues: async () => {
459
+ const api = await getHostConnector();
460
+ return api.getSitesFilterBarValues();
461
+ },
462
+ };
463
+
440
464
  const ThemeCssRuntime = {
441
465
  getThemeCssProperties: async () => {
442
466
  const api = await getHostConnector();
@@ -478,10 +502,12 @@ const UserSubscriptionRuntime = {
478
502
  exports.AnalyticsContextRuntime = AnalyticsContextRuntime;
479
503
  exports.AssetRuntime = AssetRuntime;
480
504
  exports.AssetSortingRuntime = AssetSortingRuntime;
505
+ exports.AssetsFilterBarRuntime = AssetsFilterBarRuntime;
481
506
  exports.ConfirmationDialogRuntime = ConfirmationDialogRuntime;
482
507
  exports.CurrentUserPreferenceRuntime = CurrentUserPreferenceRuntime;
483
508
  exports.CurrentUserRuntime = CurrentUserRuntime;
484
509
  exports.CustomerRuntime = CustomerRuntime;
510
+ exports.CustomersFilterBarRuntime = CustomersFilterBarRuntime;
485
511
  exports.EnvironmentRuntime = EnvironmentRuntime;
486
512
  exports.EventRuntime = EventRuntime;
487
513
  exports.FilterBarRuntime = FilterBarRuntime;
@@ -492,6 +518,7 @@ exports.ParamsRuntime = ParamsRuntime;
492
518
  exports.RestRuntime = RestRuntime;
493
519
  exports.RouterRuntime = RouterRuntime;
494
520
  exports.SiteRuntime = SiteRuntime;
521
+ exports.SitesFilterBarRuntime = SitesFilterBarRuntime;
495
522
  exports.ThemeCssRuntime = ThemeCssRuntime;
496
523
  exports.ToastRuntime = ToastRuntime;
497
524
  exports.TokenRuntime = TokenRuntime;
package/index.esm.js CHANGED
@@ -13,6 +13,9 @@ const setupHostConnector = (subscribedMethods) => {
13
13
  onFilterBarValuesChanged: doNothingByDefault,
14
14
  onTokenChanged: doNothingByDefault,
15
15
  onAssetSortingStateChanged: doNothingByDefault,
16
+ onAssetsFilterBarValuesChanged: doNothingByDefault,
17
+ onCustomersFilterBarValuesChanged: doNothingByDefault,
18
+ onSitesFilterBarValuesChanged: doNothingByDefault,
16
19
  ...subscribedMethods,
17
20
  };
18
21
  const connection = connectToParent({ methods });
@@ -59,6 +62,13 @@ const AssetRuntime = {
59
62
  },
60
63
  };
61
64
 
65
+ const AssetsFilterBarRuntime = {
66
+ getAssetsFilterBarValues: async () => {
67
+ const api = await getHostConnector();
68
+ return api.getAssetsFilterBarValues();
69
+ },
70
+ };
71
+
62
72
  const AssetSortingRuntime = {
63
73
  getAssetSortingState: async () => {
64
74
  const api = await getHostConnector();
@@ -101,6 +111,20 @@ const CurrentUserRuntime = {
101
111
  },
102
112
  };
103
113
 
114
+ const CustomerRuntime = {
115
+ getCustomerInfo: async () => {
116
+ const api = await getHostConnector();
117
+ return api.getCustomerInfo();
118
+ },
119
+ };
120
+
121
+ const CustomersFilterBarRuntime = {
122
+ getCustomersFilterBarValues: async () => {
123
+ const api = await getHostConnector();
124
+ return api.getCustomersFilterBarValues();
125
+ },
126
+ };
127
+
104
128
  /**
105
129
  * Get the value of a custom field from a raw value.
106
130
  *
@@ -304,13 +328,6 @@ const isValidCustomFieldValue = (value) => {
304
328
  isNull);
305
329
  };
306
330
 
307
- const CustomerRuntime = {
308
- getCustomerInfo: async () => {
309
- const api = await getHostConnector();
310
- return api.getCustomerInfo();
311
- },
312
- };
313
-
314
331
  const EnvironmentRuntime = {
315
332
  getEnvironmentContext: async () => {
316
333
  const api = await getHostConnector();
@@ -435,6 +452,13 @@ const SiteRuntime = {
435
452
  },
436
453
  };
437
454
 
455
+ const SitesFilterBarRuntime = {
456
+ getSitesFilterBarValues: async () => {
457
+ const api = await getHostConnector();
458
+ return api.getSitesFilterBarValues();
459
+ },
460
+ };
461
+
438
462
  const ThemeCssRuntime = {
439
463
  getThemeCssProperties: async () => {
440
464
  const api = await getHostConnector();
@@ -473,4 +497,4 @@ const UserSubscriptionRuntime = {
473
497
  },
474
498
  };
475
499
 
476
- export { AnalyticsContextRuntime, AssetRuntime, AssetSortingRuntime, ConfirmationDialogRuntime, CurrentUserPreferenceRuntime, CurrentUserRuntime, CustomerRuntime, EnvironmentRuntime, EventRuntime, FilterBarRuntime, ModalDialogRuntime, NavigationRuntime, OemBrandingContextRuntime, ParamsRuntime, RestRuntime, RouterRuntime, SiteRuntime, ThemeCssRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, getCustomFieldValueForDisplayInUI, getCustomFieldValueToSaveFromRawValue, getDateValue, getHostConnector, getStringValue, isValidCustomFieldValue, setupHostConnector };
500
+ export { AnalyticsContextRuntime, AssetRuntime, AssetSortingRuntime, AssetsFilterBarRuntime, ConfirmationDialogRuntime, CurrentUserPreferenceRuntime, CurrentUserRuntime, CustomerRuntime, CustomersFilterBarRuntime, EnvironmentRuntime, EventRuntime, FilterBarRuntime, ModalDialogRuntime, NavigationRuntime, OemBrandingContextRuntime, ParamsRuntime, RestRuntime, RouterRuntime, SiteRuntime, SitesFilterBarRuntime, ThemeCssRuntime, 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": "1.4.67",
3
+ "version": "1.4.70",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -9,8 +9,8 @@
9
9
  "dependencies": {
10
10
  "penpal": "^6.2.2",
11
11
  "jest-fetch-mock": "^3.0.3",
12
- "@trackunit/react-core-contexts-api": "1.4.66",
13
- "@trackunit/iris-app-runtime-core-api": "1.3.67"
12
+ "@trackunit/react-core-contexts-api": "1.4.69",
13
+ "@trackunit/iris-app-runtime-core-api": "1.3.70"
14
14
  },
15
15
  "module": "./index.esm.js",
16
16
  "main": "./index.cjs.js",
@@ -0,0 +1,5 @@
1
+ import { FilterBarValues } from "@trackunit/react-core-contexts-api";
2
+ export interface AssetsFilterBarRuntimeApi {
3
+ getAssetsFilterBarValues: () => Promise<FilterBarValues>;
4
+ }
5
+ export declare const AssetsFilterBarRuntime: AssetsFilterBarRuntimeApi;
@@ -0,0 +1,5 @@
1
+ import { FilterBarValues } from "@trackunit/react-core-contexts-api";
2
+ export interface CustomersFilterBarRuntimeApi {
3
+ getCustomersFilterBarValues: () => Promise<FilterBarValues>;
4
+ }
5
+ export declare const CustomersFilterBarRuntime: CustomersFilterBarRuntimeApi;
@@ -1,5 +1,10 @@
1
1
  import { FilterBarValues } from "@trackunit/react-core-contexts-api";
2
2
  export interface FilterBarRuntimeApi {
3
+ /**
4
+ * Gets the filter bar values.
5
+ *
6
+ * @deprecated Use {@link AssetsFilterBarRuntime.getAssetsFilterBarValues} instead.
7
+ */
3
8
  getFilterBarValues: () => Promise<FilterBarValues>;
4
9
  }
5
10
  export declare const FilterBarRuntime: FilterBarRuntimeApi;
@@ -0,0 +1,5 @@
1
+ import { FilterBarValues } from "@trackunit/react-core-contexts-api";
2
+ export interface SitesFilterBarRuntimeApi {
3
+ getSitesFilterBarValues: () => Promise<FilterBarValues>;
4
+ }
5
+ export declare const SitesFilterBarRuntime: SitesFilterBarRuntimeApi;
package/src/index.d.ts CHANGED
@@ -1,12 +1,14 @@
1
1
  export * from "@trackunit/iris-app-runtime-core-api";
2
2
  export * from "./AnalyticsRuntime";
3
3
  export * from "./AssetRuntime";
4
+ export * from "./AssetsFilterBarRuntime";
4
5
  export * from "./AssetSortingRuntime";
5
6
  export * from "./ConfirmationDialogRuntime";
6
7
  export * from "./CurrentPreferenceUserRuntime";
7
8
  export * from "./CurrentUserRuntime";
8
- export * from "./CustomFieldRuntime";
9
9
  export * from "./CustomerRuntime";
10
+ export * from "./CustomersFilterBarRuntime";
11
+ export * from "./CustomFieldRuntime";
10
12
  export * from "./EnvironmentRuntime";
11
13
  export * from "./EventRuntime";
12
14
  export * from "./FilterBarRuntime";
@@ -18,6 +20,7 @@ export * from "./ParamsRuntime";
18
20
  export * from "./RestRuntime";
19
21
  export * from "./RouterRuntime";
20
22
  export * from "./SiteRuntime";
23
+ export * from "./SitesFilterBarRuntime";
21
24
  export * from "./ThemeCssRuntime";
22
25
  export * from "./ToastRuntime";
23
26
  export * from "./TokenRuntime";