ngx-edu-sharing-metaqs2 0.9.33 → 0.9.35
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/README.md +31 -0
- package/_index.scss +8 -0
- package/esm2022/lib/collection-count-history/collection-count-history.component.mjs +3 -3
- package/esm2022/lib/components/donut-chart/donut-chart.component.mjs +6 -6
- package/esm2022/lib/components/donut-chart/donut-chart.model.mjs +1 -1
- package/esm2022/lib/components/donut-chart/donut-chart.pipe.mjs +6 -5
- package/esm2022/lib/components/donut-chart-tooltip/donut-chart-tooltip.component.mjs +79 -0
- package/esm2022/lib/components/filter/datepicker/datepicker.component.mjs +3 -8
- package/esm2022/lib/components/node-list/node-list.component.mjs +13 -9
- package/esm2022/lib/components/quality-matrix/quality_matrix.mjs +195 -36
- package/esm2022/lib/components/quality-matrix/scroll-marker.directive.mjs +17 -0
- package/esm2022/lib/config-helper.service.mjs +5 -4
- package/esm2022/lib/core/tooltip.service.mjs +146 -0
- package/esm2022/lib/counts-with-history/counts-with-history.component.mjs +4 -4
- package/esm2022/lib/java-api/api/authProxyController.service.mjs +12 -93
- package/esm2022/lib/java-api/api/collectionAPI.service.mjs +91 -178
- package/esm2022/lib/java-api/api/editorsAPI.service.mjs +14 -102
- package/esm2022/lib/java-api/api/filterAPI.service.mjs +50 -129
- package/esm2022/lib/java-api/api/replicationSourceAPI.service.mjs +20 -130
- package/esm2022/lib/java-api/api.base.service.mjs +66 -0
- package/esm2022/lib/java-api/configuration.mjs +9 -1
- package/esm2022/lib/java-api/model/missingAttributeResult.mjs +2 -0
- package/esm2022/lib/java-api/model/models.mjs +2 -1
- package/esm2022/lib/ng-meta-widgets-lib.module.mjs +18 -11
- package/esm2022/lib/tree-collection-details/tree-collection-details.component.mjs +3 -7
- package/esm2022/lib/tree-search-counts/tree-search-counts.component.mjs +4 -6
- package/esm2022/public-api.mjs +6 -3
- package/esm2022/web-components.mjs +36 -0
- package/fesm2022/ngx-edu-sharing-metaqs2.mjs +1051 -1003
- package/fesm2022/ngx-edu-sharing-metaqs2.mjs.map +1 -1
- package/lib/components/donut-chart/donut-chart.component.d.ts +1 -1
- package/lib/components/donut-chart/donut-chart.model.d.ts +1 -0
- package/lib/components/donut-chart/donut-chart.pipe.d.ts +1 -1
- package/lib/components/donut-chart-tooltip/donut-chart-tooltip.component.d.ts +14 -0
- package/lib/components/node-list/node-list.component.d.ts +9 -5
- package/lib/components/quality-matrix/quality_matrix.d.ts +25 -6
- package/lib/components/quality-matrix/scroll-marker.directive.d.ts +7 -0
- package/lib/config-helper.service.d.ts +2 -0
- package/lib/core/tooltip.service.d.ts +61 -0
- package/lib/java-api/api/authProxyController.service.d.ts +4 -9
- package/lib/java-api/api/collectionAPI.service.d.ts +47 -25
- package/lib/java-api/api/editorsAPI.service.d.ts +5 -10
- package/lib/java-api/api/filterAPI.service.d.ts +27 -9
- package/lib/java-api/api/replicationSourceAPI.service.d.ts +4 -9
- package/lib/java-api/api.base.service.d.ts +12 -0
- package/lib/java-api/configuration.d.ts +3 -1
- package/lib/java-api/model/missingAttributeResult.d.ts +16 -0
- package/lib/java-api/model/models.d.ts +1 -0
- package/lib/ng-meta-widgets-lib.module.d.ts +34 -32
- package/package.json +4 -1
- package/public-api.d.ts +5 -2
- package/web-components.d.ts +7 -0
|
@@ -16,5 +16,5 @@ export declare class DonutChartComponent implements OnInit {
|
|
|
16
16
|
ngOnInit(): void;
|
|
17
17
|
trackByFn(index: number, slice: DonutSlice): number;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<DonutChartComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DonutChartComponent, "metaqs2-donut-chart", never, { "radius": { "alias": "radius"; "required": false; }; "viewBox": { "alias": "viewBox"; "required": false; }; "borderSize": { "alias": "borderSize"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never,
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DonutChartComponent, "metaqs2-donut-chart", never, { "radius": { "alias": "radius"; "required": false; }; "viewBox": { "alias": "viewBox"; "required": false; }; "borderSize": { "alias": "borderSize"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
20
|
}
|
|
@@ -11,6 +11,6 @@ export declare class DonutChartPipe implements PipeTransform {
|
|
|
11
11
|
getCoordFromDegrees(angle: number, radius: number, svgSize: number): string;
|
|
12
12
|
percentToDegrees(percent: number): number;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<DonutChartPipe, never>;
|
|
14
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<DonutChartPipe, "slicesWithCommandsAndOffset",
|
|
14
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DonutChartPipe, "slicesWithCommandsAndOffset", true>;
|
|
15
15
|
}
|
|
16
16
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DonutSlice } from '../donut-chart/donut-chart.model';
|
|
2
|
+
import { DataTooltip } from '../../core/tooltip.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface DonutChartTooltipData {
|
|
5
|
+
data: Array<[DonutSlice, DonutSlice]>;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function transformDonutChartData(data: DonutSlice[]): Array<[DonutSlice, DonutSlice]>;
|
|
9
|
+
export declare class DonutChartTooltipComponent implements DataTooltip<DonutChartTooltipData> {
|
|
10
|
+
animationState: boolean;
|
|
11
|
+
readonly data: DonutChartTooltipData;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DonutChartTooltipComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DonutChartTooltipComponent, "metaqs2-donut-chart-tooltip", never, {}, {}, never, never, false, never>;
|
|
14
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
-
import { CollectionAPIService, CollectionWithMissingAttributes, MaterialWithMissingAttributes } from '../../java-api';
|
|
3
|
+
import { CollectionAPIService, CollectionWithMissingAttributes, MaterialWithMissingAttributes, MissingAttributeResult } from '../../java-api';
|
|
4
4
|
import { WrappedResponse } from '../../wrap-observable.pipe';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class NodeListComponent implements OnChanges, OnDestroy {
|
|
@@ -14,11 +14,15 @@ export declare class NodeListComponent implements OnChanges, OnDestroy {
|
|
|
14
14
|
*/
|
|
15
15
|
countChanged: EventEmitter<number>;
|
|
16
16
|
/**
|
|
17
|
-
* default max count of nodes that should be shown
|
|
17
|
+
* default max count of nodes that should be shown in view
|
|
18
18
|
*/
|
|
19
19
|
readonly DEFAULT_LIMIT = 25;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
/**
|
|
21
|
+
* default count to fetch from api
|
|
22
|
+
*/
|
|
23
|
+
readonly FETCH_LIMIT = 200;
|
|
24
|
+
wrappedData$: Observable<WrappedResponse<MissingAttributeResult>>;
|
|
25
|
+
data: BehaviorSubject<MissingAttributeResult | undefined>;
|
|
22
26
|
count: number | null;
|
|
23
27
|
private destroyed$;
|
|
24
28
|
/**
|
|
@@ -26,7 +30,7 @@ export declare class NodeListComponent implements OnChanges, OnDestroy {
|
|
|
26
30
|
*/
|
|
27
31
|
showAll: boolean;
|
|
28
32
|
constructor(collectionAPIService: CollectionAPIService);
|
|
29
|
-
ngOnChanges(
|
|
33
|
+
ngOnChanges(_changes: SimpleChanges): Promise<void>;
|
|
30
34
|
ngOnDestroy(): void;
|
|
31
35
|
refresh(): Promise<void>;
|
|
32
36
|
editNode(node: MaterialWithMissingAttributes | CollectionWithMissingAttributes): void;
|
|
@@ -1,22 +1,33 @@
|
|
|
1
|
+
import { AfterViewChecked } from '@angular/core';
|
|
1
2
|
import { BehaviorSubject } from 'rxjs';
|
|
2
3
|
import { MetaApiService } from '../../meta-api.service';
|
|
3
|
-
import { QualityMatrix, QualityMatrixHeader, QualityMatrixRow } from '../../java-api';
|
|
4
|
+
import { FilterValue, QualityMatrix, QualityMatrixHeader, QualityMatrixRow } from '../../java-api';
|
|
4
5
|
import { FormControl, FormGroup, FormRecord } from '@angular/forms';
|
|
5
6
|
import { EditorialLinkService } from '../editorial-link-service/editorial-link.service';
|
|
6
7
|
import { DateTime } from 'luxon';
|
|
7
8
|
import { DonutSlice } from '../donut-chart/donut-chart.model';
|
|
8
|
-
import { FilterValue } from '../../java-api';
|
|
9
9
|
import { KeyValue } from '@angular/common';
|
|
10
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
11
|
+
import { TooltipService } from '../../core/tooltip.service';
|
|
10
12
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class QualityMatrixComponent {
|
|
13
|
+
export declare class QualityMatrixComponent implements AfterViewChecked {
|
|
12
14
|
private readonly metaApi;
|
|
13
15
|
private readonly linkService;
|
|
16
|
+
private readonly overlay;
|
|
17
|
+
private readonly tooltipService;
|
|
18
|
+
private readonly ref;
|
|
19
|
+
private readonly scrollLeft;
|
|
20
|
+
private readonly scrollWidth;
|
|
21
|
+
readonly isLeftScrollable: import("@angular/core").Signal<boolean>;
|
|
22
|
+
readonly isRightScrollable: import("@angular/core").Signal<boolean | undefined>;
|
|
23
|
+
private readonly issueTypeHeader;
|
|
14
24
|
filteredColumns: QualityMatrixHeader[];
|
|
15
25
|
datatableColumns: Array<string>;
|
|
16
26
|
showHistoricalData: FormControl<boolean | null>;
|
|
17
27
|
onlySourcesWithMaterial: FormControl<boolean | null>;
|
|
18
28
|
categoryControls: FormRecord<FormControl<string[]>>;
|
|
19
29
|
isLoading: import("@angular/core").WritableSignal<boolean>;
|
|
30
|
+
private readonly scrollMarkers;
|
|
20
31
|
readonly categoryFilterValues: Map<string, FilterValue[]>;
|
|
21
32
|
readonly recentQualityMatrix$: BehaviorSubject<QualityMatrix>;
|
|
22
33
|
readonly pastQualityMatrix$: BehaviorSubject<QualityMatrix | null>;
|
|
@@ -24,8 +35,11 @@ export declare class QualityMatrixComponent {
|
|
|
24
35
|
start: FormControl<DateTime<boolean>>;
|
|
25
36
|
end: FormControl<DateTime<boolean>>;
|
|
26
37
|
}>;
|
|
38
|
+
private readonly tooltips;
|
|
39
|
+
protected readonly DateTime: typeof DateTime;
|
|
27
40
|
pageTitle: string;
|
|
28
|
-
constructor(metaApi: MetaApiService, linkService: EditorialLinkService);
|
|
41
|
+
constructor(metaApi: MetaApiService, linkService: EditorialLinkService, overlay: Overlay, tooltipService: TooltipService);
|
|
42
|
+
ngAfterViewChecked(): void;
|
|
29
43
|
filterIdent(_index: number, item: KeyValue<string, FormControl<string[]>>): string;
|
|
30
44
|
get qualityMatrix(): QualityMatrix;
|
|
31
45
|
get sourceColumns(): string[];
|
|
@@ -49,7 +63,12 @@ export declare class QualityMatrixComponent {
|
|
|
49
63
|
trend?: string;
|
|
50
64
|
};
|
|
51
65
|
getDonutSlices(row: QualityMatrixRow, column: QualityMatrixHeader): DonutSlice[];
|
|
52
|
-
|
|
66
|
+
showTooltip(row: QualityMatrixRow, column: QualityMatrixHeader, cell: HTMLElement): void;
|
|
67
|
+
hideTooltip(cell: HTMLElement): void;
|
|
68
|
+
findHorizontalScrollContainer(element: Element): Element | null;
|
|
69
|
+
scrollToRight(): void;
|
|
70
|
+
scrollToLeft(): void;
|
|
71
|
+
onScroll(): void;
|
|
53
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<QualityMatrixComponent, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QualityMatrixComponent, "metaqs2-quality-matrix-v2", never, { "pageTitle": { "alias": "pageTitle"; "required": false; }; }, {}, never, never,
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QualityMatrixComponent, "metaqs2-quality-matrix-v2", never, { "pageTitle": { "alias": "pageTitle"; "required": false; }; }, {}, never, never, true, never>;
|
|
55
74
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ScrollMarkerDirective {
|
|
4
|
+
element: ElementRef<any>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollMarkerDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollMarkerDirective, "[metaqs2ScrollMarker]", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class NgMetaWidgetsLibConfiguration {
|
|
3
4
|
apiPath: string;
|
|
4
5
|
eduSharingPath: string;
|
|
5
6
|
}
|
|
7
|
+
export declare const NG_META_WIDGETS_LIB_CONFIGURATION: InjectionToken<NgMetaWidgetsLibConfiguration>;
|
|
6
8
|
/**
|
|
7
9
|
* helper class to provide configuration values
|
|
8
10
|
*/
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ComponentRef, InjectionToken, Injector, Renderer2, Type } from '@angular/core';
|
|
2
|
+
import { ConnectedPosition, OverlayConfig, OverlayRef } from '@angular/cdk/overlay';
|
|
3
|
+
import { ComponentPortal } from '@angular/cdk/portal';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare const TOOLTIP_DATA: InjectionToken<unknown>;
|
|
6
|
+
export declare const TOOLTIP_REF: InjectionToken<TooltipRef<unknown>>;
|
|
7
|
+
export interface TooltipRef<T> {
|
|
8
|
+
markForClose(): void;
|
|
9
|
+
cancelCloseAction(): void;
|
|
10
|
+
readonly overlay: OverlayRef;
|
|
11
|
+
readonly component: ComponentRef<T> | undefined;
|
|
12
|
+
open(): void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare class TooltipRefImpl<T> implements TooltipRef<T> {
|
|
18
|
+
private readonly renderer;
|
|
19
|
+
readonly overlay: OverlayRef;
|
|
20
|
+
private readonly openTimeout;
|
|
21
|
+
private readonly closeTimeout;
|
|
22
|
+
private readonly onOpen;
|
|
23
|
+
private readonly onClose;
|
|
24
|
+
openTimeoutRef: number | undefined;
|
|
25
|
+
closeTimeoutRef: number | undefined;
|
|
26
|
+
component: ComponentRef<T>;
|
|
27
|
+
private unlistenMouseEnter;
|
|
28
|
+
private unlistenMouseLeave;
|
|
29
|
+
portal: ComponentPortal<T>;
|
|
30
|
+
constructor(renderer: Renderer2, overlay: OverlayRef, openTimeout?: number, closeTimeout?: number, onOpen?: () => void, onClose?: () => void);
|
|
31
|
+
cancelCloseAction(): void;
|
|
32
|
+
open(): void;
|
|
33
|
+
openTooltip(): void;
|
|
34
|
+
markForClose(): void;
|
|
35
|
+
closeTooltip(): void;
|
|
36
|
+
}
|
|
37
|
+
export declare const centerPositionStrategy: Array<ConnectedPosition>;
|
|
38
|
+
export declare const borderPositionStrategy: Array<ConnectedPosition>;
|
|
39
|
+
export type DataTooltipHelper<T> = {
|
|
40
|
+
[key in never]: T;
|
|
41
|
+
};
|
|
42
|
+
export interface DataTooltip<T> extends DataTooltipHelper<T> {
|
|
43
|
+
}
|
|
44
|
+
type DataTypeOfTooltip<T> = T extends DataTooltip<infer U> ? U : never;
|
|
45
|
+
export interface TooltipConfig<TData> {
|
|
46
|
+
injector?: Injector;
|
|
47
|
+
closeTimeout?: number;
|
|
48
|
+
openTimeout?: number;
|
|
49
|
+
data: TData;
|
|
50
|
+
onClose?: () => void;
|
|
51
|
+
onOpen?: () => void;
|
|
52
|
+
overlayConfig?: OverlayConfig;
|
|
53
|
+
}
|
|
54
|
+
export declare class TooltipService {
|
|
55
|
+
private readonly overlay;
|
|
56
|
+
private readonly renderer;
|
|
57
|
+
create<TComponent extends DataTooltip<DataTypeOfTooltip<TComponent>>>(component: Type<TComponent>, config: TooltipConfig<DataTypeOfTooltip<TComponent>>): TooltipRef<TComponent>;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipService, never>;
|
|
59
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TooltipService>;
|
|
60
|
+
}
|
|
61
|
+
export {};
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import { HttpClient,
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Configuration } from '../configuration';
|
|
4
|
+
import { BaseService } from '../api.base.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AuthProxyControllerService {
|
|
6
|
+
export declare class AuthProxyControllerService extends BaseService {
|
|
6
7
|
protected httpClient: HttpClient;
|
|
7
|
-
|
|
8
|
-
defaultHeaders: HttpHeaders;
|
|
9
|
-
configuration: Configuration;
|
|
10
|
-
encoder: HttpParameterCodec;
|
|
11
|
-
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
12
|
-
private addToHttpParams;
|
|
13
|
-
private addToHttpParamsRecursive;
|
|
8
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
14
9
|
/**
|
|
15
10
|
* @param jSESSIONID
|
|
16
11
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
@@ -1,44 +1,41 @@
|
|
|
1
|
-
import { HttpClient,
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { CollectionWithMissingAttributes } from '../model/collectionWithMissingAttributes';
|
|
4
3
|
import { EduCollection } from '../model/eduCollection';
|
|
5
|
-
import {
|
|
4
|
+
import { Filter } from '../model/filter';
|
|
6
5
|
import { MatrixWithCounts } from '../model/matrixWithCounts';
|
|
6
|
+
import { MissingAttributeResult } from '../model/missingAttributeResult';
|
|
7
7
|
import { QualityMatrix } from '../model/qualityMatrix';
|
|
8
8
|
import { Configuration } from '../configuration';
|
|
9
|
+
import { BaseService } from '../api.base.service';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class CollectionAPIService {
|
|
11
|
+
export declare class CollectionAPIService extends BaseService {
|
|
11
12
|
protected httpClient: HttpClient;
|
|
12
|
-
|
|
13
|
-
defaultHeaders: HttpHeaders;
|
|
14
|
-
configuration: Configuration;
|
|
15
|
-
encoder: HttpParameterCodec;
|
|
16
|
-
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
17
|
-
private addToHttpParams;
|
|
18
|
-
private addToHttpParamsRecursive;
|
|
13
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
19
14
|
/**
|
|
20
15
|
* Get collections where a specific attribute is missing
|
|
21
|
-
* A list of collections where a certain attribute is missing or empty belonging to the collection and its sub-collections specified by <code>node_id</code>. The <code>missingAttr</code> parameter specifies the attribute that is missing in the materials. The List of possible keywords are: <ul> <li>
|
|
16
|
+
* A list of collections where a certain attribute is missing or empty belonging to the collection and its sub-collections specified by <code>node_id</code>. The <code>missingAttr</code> parameter specifies the attribute that is missing in the materials. The List of possible keywords are: <ul> <li>without_description</li> <li>without_tags</li> <li>without_title</li> <li>without_education_level</li> </ul> These values can be obtained from <code>/filters/collection/issues</code>
|
|
22
17
|
* @param collectionId
|
|
23
18
|
* @param missingAttr
|
|
19
|
+
* @param from
|
|
20
|
+
* @param size
|
|
24
21
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
25
22
|
* @param reportProgress flag to report request and response progress.
|
|
26
23
|
*/
|
|
27
|
-
getCollectionsWithMissingAttribute(collectionId: string, missingAttr: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
24
|
+
getCollectionsWithMissingAttribute(collectionId: string, missingAttr: string, from?: number, size?: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
28
25
|
httpHeaderAccept?: 'application/json';
|
|
29
26
|
context?: HttpContext;
|
|
30
27
|
transferCache?: boolean;
|
|
31
|
-
}): Observable<
|
|
32
|
-
getCollectionsWithMissingAttribute(collectionId: string, missingAttr: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
28
|
+
}): Observable<MissingAttributeResult>;
|
|
29
|
+
getCollectionsWithMissingAttribute(collectionId: string, missingAttr: string, from?: number, size?: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
33
30
|
httpHeaderAccept?: 'application/json';
|
|
34
31
|
context?: HttpContext;
|
|
35
32
|
transferCache?: boolean;
|
|
36
|
-
}): Observable<HttpResponse<
|
|
37
|
-
getCollectionsWithMissingAttribute(collectionId: string, missingAttr: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
33
|
+
}): Observable<HttpResponse<MissingAttributeResult>>;
|
|
34
|
+
getCollectionsWithMissingAttribute(collectionId: string, missingAttr: string, from?: number, size?: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
38
35
|
httpHeaderAccept?: 'application/json';
|
|
39
36
|
context?: HttpContext;
|
|
40
37
|
transferCache?: boolean;
|
|
41
|
-
}): Observable<HttpEvent<
|
|
38
|
+
}): Observable<HttpEvent<MissingAttributeResult>>;
|
|
42
39
|
/**
|
|
43
40
|
* Get completeness matrix
|
|
44
41
|
* Return matrix with count of material with issues for collections
|
|
@@ -114,6 +111,29 @@ export declare class CollectionAPIService {
|
|
|
114
111
|
}): Observable<HttpEvent<{
|
|
115
112
|
[key: string]: number;
|
|
116
113
|
}>>;
|
|
114
|
+
/**
|
|
115
|
+
* Get Material Count
|
|
116
|
+
* Return a list of counts aggregated by collection and license )
|
|
117
|
+
* @param collectionId
|
|
118
|
+
* @param filter
|
|
119
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
120
|
+
* @param reportProgress flag to report request and response progress.
|
|
121
|
+
*/
|
|
122
|
+
getMaterialCountMatrixByLicenseGroup1(collectionId: string, filter?: Array<Filter>, observe?: 'body', reportProgress?: boolean, options?: {
|
|
123
|
+
httpHeaderAccept?: 'application/json';
|
|
124
|
+
context?: HttpContext;
|
|
125
|
+
transferCache?: boolean;
|
|
126
|
+
}): Observable<QualityMatrix>;
|
|
127
|
+
getMaterialCountMatrixByLicenseGroup1(collectionId: string, filter?: Array<Filter>, observe?: 'response', reportProgress?: boolean, options?: {
|
|
128
|
+
httpHeaderAccept?: 'application/json';
|
|
129
|
+
context?: HttpContext;
|
|
130
|
+
transferCache?: boolean;
|
|
131
|
+
}): Observable<HttpResponse<QualityMatrix>>;
|
|
132
|
+
getMaterialCountMatrixByLicenseGroup1(collectionId: string, filter?: Array<Filter>, observe?: 'events', reportProgress?: boolean, options?: {
|
|
133
|
+
httpHeaderAccept?: 'application/json';
|
|
134
|
+
context?: HttpContext;
|
|
135
|
+
transferCache?: boolean;
|
|
136
|
+
}): Observable<HttpEvent<QualityMatrix>>;
|
|
117
137
|
/**
|
|
118
138
|
* Get material count by collection and type
|
|
119
139
|
* Returns matrix with count of material for collections aggregated by material type
|
|
@@ -139,27 +159,29 @@ export declare class CollectionAPIService {
|
|
|
139
159
|
}): Observable<HttpEvent<QualityMatrix>>;
|
|
140
160
|
/**
|
|
141
161
|
* Get materials where a specific attribute is missing
|
|
142
|
-
* A list of materials where a certain attribute is missing or empty belonging to the collection and its sub-collections specified by <code>node_id</code>. The <code>missingAttr</code> parameter specifies the attribute that is missing in the materials. The List of possible keywords are: <ul> <li> without_description
|
|
162
|
+
* A list of materials where a certain attribute is missing or empty belonging to the collection and its sub-collections specified by <code>node_id</code>. The <code>missingAttr</code> parameter specifies the attribute that is missing in the materials. The List of possible keywords are: <ul> <li> without_description</li> <li>without_target_group</li> <li>without_title</li> <li>without_education_level</li> <li>without_license</li> <li>without_category</li> <li>without_taxonomy_id</li> <li>without_publisher</li> </ul> These values can be obtained from <code>/filters/material/issues</code>
|
|
143
163
|
* @param nodeId
|
|
144
164
|
* @param missingAttr
|
|
165
|
+
* @param from
|
|
166
|
+
* @param size
|
|
145
167
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
146
168
|
* @param reportProgress flag to report request and response progress.
|
|
147
169
|
*/
|
|
148
|
-
getMaterialsWithMissingAttribute(nodeId: string, missingAttr: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
170
|
+
getMaterialsWithMissingAttribute(nodeId: string, missingAttr: string, from?: number, size?: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
149
171
|
httpHeaderAccept?: 'application/json';
|
|
150
172
|
context?: HttpContext;
|
|
151
173
|
transferCache?: boolean;
|
|
152
|
-
}): Observable<
|
|
153
|
-
getMaterialsWithMissingAttribute(nodeId: string, missingAttr: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
174
|
+
}): Observable<MissingAttributeResult>;
|
|
175
|
+
getMaterialsWithMissingAttribute(nodeId: string, missingAttr: string, from?: number, size?: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
154
176
|
httpHeaderAccept?: 'application/json';
|
|
155
177
|
context?: HttpContext;
|
|
156
178
|
transferCache?: boolean;
|
|
157
|
-
}): Observable<HttpResponse<
|
|
158
|
-
getMaterialsWithMissingAttribute(nodeId: string, missingAttr: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
179
|
+
}): Observable<HttpResponse<MissingAttributeResult>>;
|
|
180
|
+
getMaterialsWithMissingAttribute(nodeId: string, missingAttr: string, from?: number, size?: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
159
181
|
httpHeaderAccept?: 'application/json';
|
|
160
182
|
context?: HttpContext;
|
|
161
183
|
transferCache?: boolean;
|
|
162
|
-
}): Observable<HttpEvent<
|
|
184
|
+
}): Observable<HttpEvent<MissingAttributeResult>>;
|
|
163
185
|
/**
|
|
164
186
|
* Get all top-level collections
|
|
165
187
|
* Returns id and name of all top-level collections.
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import { HttpClient,
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Filter } from '../model/filter';
|
|
4
4
|
import { MaterialCountDto } from '../model/materialCountDto';
|
|
5
5
|
import { MaterialCountFilter } from '../model/materialCountFilter';
|
|
6
6
|
import { MatrixWithCounts } from '../model/matrixWithCounts';
|
|
7
7
|
import { Configuration } from '../configuration';
|
|
8
|
+
import { BaseService } from '../api.base.service';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class EditorsAPIService {
|
|
10
|
+
export declare class EditorsAPIService extends BaseService {
|
|
10
11
|
protected httpClient: HttpClient;
|
|
11
|
-
|
|
12
|
-
defaultHeaders: HttpHeaders;
|
|
13
|
-
configuration: Configuration;
|
|
14
|
-
encoder: HttpParameterCodec;
|
|
15
|
-
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
16
|
-
private addToHttpParams;
|
|
17
|
-
private addToHttpParamsRecursive;
|
|
12
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
18
13
|
/**
|
|
19
14
|
* Get completeness matrix for disciplinary portals
|
|
20
15
|
* Return matrix with count of material with issues for all disciplinary portals
|
|
@@ -61,7 +56,7 @@ export declare class EditorsAPIService {
|
|
|
61
56
|
}): Observable<HttpEvent<Array<MaterialCountDto>>>;
|
|
62
57
|
/**
|
|
63
58
|
* Get Material Count
|
|
64
|
-
* Return a list of counts aggregated by discipline )
|
|
59
|
+
* Return a list of counts aggregated by discipline and license )
|
|
65
60
|
* @param filter
|
|
66
61
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
67
62
|
* @param reportProgress flag to report request and response progress.
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import { HttpClient,
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Filter } from '../model/filter';
|
|
4
4
|
import { Configuration } from '../configuration';
|
|
5
|
+
import { BaseService } from '../api.base.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FilterAPIService {
|
|
7
|
+
export declare class FilterAPIService extends BaseService {
|
|
7
8
|
protected httpClient: HttpClient;
|
|
8
|
-
|
|
9
|
-
defaultHeaders: HttpHeaders;
|
|
10
|
-
configuration: Configuration;
|
|
11
|
-
encoder: HttpParameterCodec;
|
|
12
|
-
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
13
|
-
private addToHttpParams;
|
|
14
|
-
private addToHttpParamsRecursive;
|
|
9
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
15
10
|
/**
|
|
16
11
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
17
12
|
* @param reportProgress flag to report request and response progress.
|
|
@@ -70,6 +65,8 @@ export declare class FilterAPIService {
|
|
|
70
65
|
transferCache?: boolean;
|
|
71
66
|
}): Observable<HttpEvent<Array<string>>>;
|
|
72
67
|
/**
|
|
68
|
+
* Get Material Types
|
|
69
|
+
* Returns a map of http://w3id.org/openeduhub/vocabs/new_lrt_aggregated/ material types to their corresponding http://w3id.org/openeduhub/vocabs/new_lrt types
|
|
73
70
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
74
71
|
* @param reportProgress flag to report request and response progress.
|
|
75
72
|
*/
|
|
@@ -94,6 +91,27 @@ export declare class FilterAPIService {
|
|
|
94
91
|
}): Observable<HttpEvent<{
|
|
95
92
|
[key: string]: Array<string>;
|
|
96
93
|
}>>;
|
|
94
|
+
/**
|
|
95
|
+
* Get Public Endpoints
|
|
96
|
+
* Returns a list of all public endpoints that are allowed for guests
|
|
97
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
98
|
+
* @param reportProgress flag to report request and response progress.
|
|
99
|
+
*/
|
|
100
|
+
getPublicEndpoints(observe?: 'body', reportProgress?: boolean, options?: {
|
|
101
|
+
httpHeaderAccept?: 'application/json';
|
|
102
|
+
context?: HttpContext;
|
|
103
|
+
transferCache?: boolean;
|
|
104
|
+
}): Observable<Array<string>>;
|
|
105
|
+
getPublicEndpoints(observe?: 'response', reportProgress?: boolean, options?: {
|
|
106
|
+
httpHeaderAccept?: 'application/json';
|
|
107
|
+
context?: HttpContext;
|
|
108
|
+
transferCache?: boolean;
|
|
109
|
+
}): Observable<HttpResponse<Array<string>>>;
|
|
110
|
+
getPublicEndpoints(observe?: 'events', reportProgress?: boolean, options?: {
|
|
111
|
+
httpHeaderAccept?: 'application/json';
|
|
112
|
+
context?: HttpContext;
|
|
113
|
+
transferCache?: boolean;
|
|
114
|
+
}): Observable<HttpEvent<Array<string>>>;
|
|
97
115
|
/**
|
|
98
116
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
99
117
|
* @param reportProgress flag to report request and response progress.
|
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import { HttpClient,
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Filter } from '../model/filter';
|
|
4
4
|
import { MatrixWithCounts } from '../model/matrixWithCounts';
|
|
5
5
|
import { QualityMatrix } from '../model/qualityMatrix';
|
|
6
6
|
import { Configuration } from '../configuration';
|
|
7
|
+
import { BaseService } from '../api.base.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class ReplicationSourceAPIService {
|
|
9
|
+
export declare class ReplicationSourceAPIService extends BaseService {
|
|
9
10
|
protected httpClient: HttpClient;
|
|
10
|
-
|
|
11
|
-
defaultHeaders: HttpHeaders;
|
|
12
|
-
configuration: Configuration;
|
|
13
|
-
encoder: HttpParameterCodec;
|
|
14
|
-
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
15
|
-
private addToHttpParams;
|
|
16
|
-
private addToHttpParamsRecursive;
|
|
11
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
17
12
|
/**
|
|
18
13
|
* Get completeness matrix for replication sources
|
|
19
14
|
* Return matrix with count of material with issues for all replication sources
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
|
|
2
|
+
import { Configuration } from './configuration';
|
|
3
|
+
export declare class BaseService {
|
|
4
|
+
protected basePath: string;
|
|
5
|
+
defaultHeaders: HttpHeaders;
|
|
6
|
+
configuration: Configuration;
|
|
7
|
+
encoder: HttpParameterCodec;
|
|
8
|
+
constructor(basePath?: string | string[], configuration?: Configuration);
|
|
9
|
+
protected canConsumeForm(consumes: string[]): boolean;
|
|
10
|
+
protected addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams;
|
|
11
|
+
protected addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams;
|
|
12
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpParameterCodec } from '@angular/common/http';
|
|
1
|
+
import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
|
|
2
2
|
import { Param } from './param';
|
|
3
3
|
export interface ConfigurationParameters {
|
|
4
4
|
/**
|
|
@@ -100,5 +100,7 @@ export declare class Configuration {
|
|
|
100
100
|
*/
|
|
101
101
|
isJsonMime(mime: string): boolean;
|
|
102
102
|
lookupCredential(key: string): string | undefined;
|
|
103
|
+
addCredentialToHeaders(credentialKey: string, headerName: string, headers: HttpHeaders, prefix?: string): HttpHeaders;
|
|
104
|
+
addCredentialToQuery(credentialKey: string, paramName: string, query: HttpParams): HttpParams;
|
|
103
105
|
private defaultEncodeParam;
|
|
104
106
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
import { CollectionWithMissingAttributes } from './collectionWithMissingAttributes';
|
|
11
|
+
import { MaterialWithMissingAttributes } from './materialWithMissingAttributes';
|
|
12
|
+
export interface MissingAttributeResult {
|
|
13
|
+
total?: number;
|
|
14
|
+
materials?: Array<MaterialWithMissingAttributes>;
|
|
15
|
+
collections?: Array<CollectionWithMissingAttributes>;
|
|
16
|
+
}
|
|
@@ -8,6 +8,7 @@ export * from './materialCountFilter';
|
|
|
8
8
|
export * from './materialWithMissingAttributes';
|
|
9
9
|
export * from './matrixRowWithCounts';
|
|
10
10
|
export * from './matrixWithCounts';
|
|
11
|
+
export * from './missingAttributeResult';
|
|
11
12
|
export * from './qualityMatrix';
|
|
12
13
|
export * from './qualityMatrixHeader';
|
|
13
14
|
export * from './qualityMatrixReplicationSourceCounts';
|