admins-components 5.0.4 → 5.0.5
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/dist/admins-components.cjs +77 -77
- package/dist/admins-components.js +20308 -20259
- package/dist/src/utils/configService.d.ts +11 -0
- package/dist/src/utils/services.d.ts +3 -2
- package/dist/src/utils/useVueKeycloak.d.ts +2 -0
- package/package.json +1 -1
|
@@ -32,6 +32,16 @@ export interface SearchImagesWidgetConfig {
|
|
|
32
32
|
widgetUrl: string;
|
|
33
33
|
viewId: string;
|
|
34
34
|
}
|
|
35
|
+
export interface KeycloakConfigResponse {
|
|
36
|
+
name: string;
|
|
37
|
+
environments: KeycloakConfig[];
|
|
38
|
+
}
|
|
39
|
+
export interface KeycloakConfig {
|
|
40
|
+
name: string;
|
|
41
|
+
url: string;
|
|
42
|
+
realm: string;
|
|
43
|
+
silentSsoCheckUrl?: string;
|
|
44
|
+
}
|
|
35
45
|
export interface Rank {
|
|
36
46
|
value: number;
|
|
37
47
|
label: string;
|
|
@@ -56,6 +66,7 @@ export declare class ConfigService {
|
|
|
56
66
|
getPostsConfig: HttpRequest<undefined, GetWidgetDetailsRouteParams, undefined, GetSearchPostsWidgetDetailsResponse>;
|
|
57
67
|
getImagesConfig: HttpRequest<undefined, GetWidgetDetailsRouteParams, undefined, GetSearchImagesWidgetDetailsResponse>;
|
|
58
68
|
getPresenceConfig: HttpRequest<undefined, GetWidgetDetailsRouteParams, undefined, GetPresenceWidgetDetailsResponse>;
|
|
69
|
+
getKeycloakConfig: HttpRequest<undefined, GetWidgetDetailsRouteParams, undefined, KeycloakConfigResponse>;
|
|
59
70
|
sites: HttpRequest<undefined, undefined, undefined, Site[]>;
|
|
60
71
|
constructor(apiurl: string);
|
|
61
72
|
}
|
|
@@ -16,6 +16,7 @@ export interface HttpRequest<TPayload, TRouteParams, TQueryParams, TResponse> {
|
|
|
16
16
|
queryParams: Ref<TQueryParams>;
|
|
17
17
|
routeParams: Ref<TRouteParams>;
|
|
18
18
|
payload: Ref<TPayload>;
|
|
19
|
+
sendKeycloakBearer?: Ref<boolean>;
|
|
19
20
|
}
|
|
20
21
|
export declare enum Methods {
|
|
21
22
|
GET = 0,
|
|
@@ -32,6 +33,6 @@ export declare class FetchDetails {
|
|
|
32
33
|
method: Methods;
|
|
33
34
|
fetchMethode: typeof useFetch;
|
|
34
35
|
isIpInUrl: (url: string) => boolean;
|
|
35
|
-
constructor(baseUrl: string, relativeUrl: string, method: Methods, errorMessages: Map<number, string>, contentType?: string | null, defaultRequestHeaders?: Record<string, string
|
|
36
|
+
constructor(baseUrl: string, relativeUrl: string, method: Methods, errorMessages: Map<number, string>, contentType?: string | null, defaultRequestHeaders?: Record<string, string>, sendKeycloakBearer?: boolean);
|
|
36
37
|
}
|
|
37
|
-
export declare function initRequest<TPayload, TRouteParams, TQueryParams, TResponse>(fetchDetails: FetchDetails, payload: TPayload, routeParams: TRouteParams, queryParams: TQueryParams): HttpRequest<TPayload, TRouteParams, TQueryParams, TResponse>;
|
|
38
|
+
export declare function initRequest<TPayload, TRouteParams, TQueryParams, TResponse>(fetchDetails: FetchDetails, payload: TPayload, routeParams: TRouteParams, queryParams: TQueryParams, sendKeycloakBearer?: boolean): HttpRequest<TPayload, TRouteParams, TQueryParams, TResponse>;
|