@livetiles/reach-plugin-types 0.5.0-preview.760 → 0.5.0-preview.764
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/lib/index.d.ts +20 -35
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -38,6 +38,22 @@ declare module "libs/shared/util/common/src/JwtHelper" {
|
|
|
38
38
|
declare module "libs/shared/util/common/src/redirect" {
|
|
39
39
|
export function redirectWithReload(redirectUrl: string): void;
|
|
40
40
|
}
|
|
41
|
+
declare module "libs/shared/util/environment/src/AnalyticsConfig" {
|
|
42
|
+
export interface DashboardConfig {
|
|
43
|
+
name: string;
|
|
44
|
+
title: string;
|
|
45
|
+
id: string;
|
|
46
|
+
}
|
|
47
|
+
export interface AnalyticsConfig {
|
|
48
|
+
regions: {
|
|
49
|
+
[key: string]: {
|
|
50
|
+
dashboardHostName: string;
|
|
51
|
+
ingestionHostName: string;
|
|
52
|
+
dashboards: DashboardConfig[];
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
41
57
|
declare module "libs/shared/util/environment/src/ZendeskConfig" {
|
|
42
58
|
export interface ZendeskConfig {
|
|
43
59
|
apiKey: string;
|
|
@@ -215,21 +231,6 @@ declare module "libs/shared/util/environment/src/MsalConfiguration" {
|
|
|
215
231
|
extraScopes: string[];
|
|
216
232
|
}
|
|
217
233
|
}
|
|
218
|
-
declare module "libs/shared/util/environment/src/AnalyticsConfig" {
|
|
219
|
-
export interface DashboardConfig {
|
|
220
|
-
name: string;
|
|
221
|
-
title: string;
|
|
222
|
-
id: string;
|
|
223
|
-
params?: string;
|
|
224
|
-
}
|
|
225
|
-
export interface AnalyticsConfig {
|
|
226
|
-
hostName: string;
|
|
227
|
-
regions?: {
|
|
228
|
-
[key: string]: string;
|
|
229
|
-
};
|
|
230
|
-
dashboards: DashboardConfig[];
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
234
|
declare module "libs/shared/util/environment/src/AppConfiguration" {
|
|
234
235
|
import { ZendeskConfig } from "libs/shared/util/environment/src/ZendeskConfig";
|
|
235
236
|
import { AuthenticationType } from "libs/shared/util/authentication/src/index";
|
|
@@ -370,6 +371,7 @@ declare module "libs/shared/util/environment/src/ClientConfigContext" {
|
|
|
370
371
|
export function prepareClientConfig(config: ClientConfig): ClientConfig;
|
|
371
372
|
}
|
|
372
373
|
declare module "libs/shared/util/environment/src/index" {
|
|
374
|
+
export * from "libs/shared/util/environment/src/AnalyticsConfig";
|
|
373
375
|
export * from "libs/shared/util/environment/src/AppConfiguration";
|
|
374
376
|
export * from "libs/shared/util/environment/src/ClientConfig";
|
|
375
377
|
export * from "libs/shared/util/environment/src/EnvironmentConfig";
|
|
@@ -2582,6 +2584,7 @@ declare module "libs/reach/util/common/src/analytics/AnalyticsContextProvider" {
|
|
|
2582
2584
|
export const AnalyticsContext: import("react").Context<ReachAnalytics>;
|
|
2583
2585
|
export function useAnalyticsContext(): {
|
|
2584
2586
|
interaction: (payload: Omit<InteractionProperties, 'module'>) => Promise<void>;
|
|
2587
|
+
load: (context: import("@livetiles/analytics").AnalyticsContext, baseUrl: string) => void;
|
|
2585
2588
|
getUser: () => import("@segment/analytics-next").User;
|
|
2586
2589
|
identify: (userId: string, traits?: Record<string, unknown>) => void;
|
|
2587
2590
|
activity: (payload: import("@livetiles/analytics").ActivityProperties) => import("@livetiles/analytics").Activity;
|
|
@@ -13114,28 +13117,10 @@ declare module "apps/reach-app/src/app/useCustomNavigation" {
|
|
|
13114
13117
|
}) => string;
|
|
13115
13118
|
};
|
|
13116
13119
|
}
|
|
13117
|
-
declare module "apps/reach-app/src/app/analytics/useAnalyticsDashboardAuth" {
|
|
13118
|
-
export const useAnalyticsDashboardAuth: () => {
|
|
13119
|
-
isValid: () => boolean;
|
|
13120
|
-
setAuthExpiry: (expires: number) => void;
|
|
13121
|
-
};
|
|
13122
|
-
}
|
|
13123
|
-
declare module "apps/reach-app/src/app/analytics/DashboardPage" {
|
|
13124
|
-
import { FC } from 'react';
|
|
13125
|
-
export interface Dashboard {
|
|
13126
|
-
name: string;
|
|
13127
|
-
title: string;
|
|
13128
|
-
url: string;
|
|
13129
|
-
}
|
|
13130
|
-
export const DashboardPage: FC<{
|
|
13131
|
-
dashboard: Dashboard;
|
|
13132
|
-
}>;
|
|
13133
|
-
}
|
|
13134
13120
|
declare module "apps/reach-app/src/app/analytics/analyticsDashboardUtils" {
|
|
13135
|
-
import {
|
|
13136
|
-
export function useDashboards():
|
|
13121
|
+
import { DashboardConfig } from "libs/shared/util/environment/src/index";
|
|
13122
|
+
export function useDashboards(): DashboardConfig[];
|
|
13137
13123
|
export function useDashboardOrigin(): string;
|
|
13138
|
-
export function hasDashboards(): boolean;
|
|
13139
13124
|
}
|
|
13140
13125
|
declare module "apps/reach-app/src/app/analytics/AnalyticsSidebarMenu" {
|
|
13141
13126
|
import { FC } from 'react';
|