@trackunit/iris-app-runtime-core 0.3.163 → 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 +16 -4
- package/index.esm.js +16 -5
- package/package.json +1 -1
- package/src/CustomerRuntime.d.ts +5 -0
- package/src/index.d.ts +1 -0
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,17 +347,21 @@ const NavigationRuntime = {
|
|
|
340
347
|
const api = yield getHostConnector();
|
|
341
348
|
return api.gotoFleetApp(options);
|
|
342
349
|
}),
|
|
343
|
-
|
|
350
|
+
gotoCustomerHome: (customerId, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
344
351
|
const api = yield getHostConnector();
|
|
345
|
-
return api.
|
|
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();
|
|
349
356
|
return api.gotoMyExports(exportId);
|
|
350
357
|
}),
|
|
351
|
-
gotoAdmin: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
358
|
+
gotoAdmin: (url) => __awaiter(void 0, void 0, void 0, function* () {
|
|
359
|
+
const api = yield getHostConnector();
|
|
360
|
+
return api.gotoAdmin(url);
|
|
361
|
+
}),
|
|
362
|
+
reloadManager: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
352
363
|
const api = yield getHostConnector();
|
|
353
|
-
return api.
|
|
364
|
+
return api.reloadManager();
|
|
354
365
|
}),
|
|
355
366
|
hasAccessTo: (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
356
367
|
const api = yield getHostConnector();
|
|
@@ -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,17 +343,21 @@ const NavigationRuntime = {
|
|
|
336
343
|
const api = yield getHostConnector();
|
|
337
344
|
return api.gotoFleetApp(options);
|
|
338
345
|
}),
|
|
339
|
-
|
|
346
|
+
gotoCustomerHome: (customerId, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
340
347
|
const api = yield getHostConnector();
|
|
341
|
-
return api.
|
|
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();
|
|
345
352
|
return api.gotoMyExports(exportId);
|
|
346
353
|
}),
|
|
347
|
-
gotoAdmin: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
354
|
+
gotoAdmin: (url) => __awaiter(void 0, void 0, void 0, function* () {
|
|
355
|
+
const api = yield getHostConnector();
|
|
356
|
+
return api.gotoAdmin(url);
|
|
357
|
+
}),
|
|
358
|
+
reloadManager: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
348
359
|
const api = yield getHostConnector();
|
|
349
|
-
return api.
|
|
360
|
+
return api.reloadManager();
|
|
350
361
|
}),
|
|
351
362
|
hasAccessTo: (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
352
363
|
const api = yield getHostConnector();
|
|
@@ -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
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";
|