@yuuvis/client-core 3.0.1 → 3.1.0
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/fesm2022/yuuvis-client-core.mjs +1814 -1535
- package/fesm2022/yuuvis-client-core.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yuuvis-client-core.d.ts +211 -71
package/package.json
CHANGED
|
@@ -1026,13 +1026,13 @@ declare class AppCacheService {
|
|
|
1026
1026
|
* @param value The value to store.
|
|
1027
1027
|
* @returns An Observable that emits true when the operation is successful.
|
|
1028
1028
|
*/
|
|
1029
|
-
setItem<T =
|
|
1029
|
+
setItem<T = unknown>(key: string, value: T): Observable<boolean>;
|
|
1030
1030
|
/**
|
|
1031
1031
|
* Get item from storage.
|
|
1032
1032
|
* @param key The key of the item to retrieve.
|
|
1033
1033
|
* @returns An Observable that emits the retrieved value.
|
|
1034
1034
|
*/
|
|
1035
|
-
getItem<T =
|
|
1035
|
+
getItem<T = unknown>(key: string): Observable<T>;
|
|
1036
1036
|
/**
|
|
1037
1037
|
* Remove item from storage.
|
|
1038
1038
|
* @param key The key of the item to remove.
|
|
@@ -1044,31 +1044,165 @@ declare class AppCacheService {
|
|
|
1044
1044
|
* @param filter A function to filter which keys to clear.
|
|
1045
1045
|
* @returns An Observable that emits true when the operation is successful.
|
|
1046
1046
|
*/
|
|
1047
|
-
clear(filter?: (key:
|
|
1047
|
+
clear(filter?: (key: string) => boolean): Observable<boolean>;
|
|
1048
1048
|
/**
|
|
1049
1049
|
* Get all storage keys.
|
|
1050
1050
|
* @returns An Observable that emits an array of all storage keys.
|
|
1051
1051
|
*/
|
|
1052
1052
|
getStorageKeys(): Observable<string[]>;
|
|
1053
|
-
setStorage(options:
|
|
1053
|
+
setStorage(options: Record<string, unknown>): Observable<unknown>;
|
|
1054
1054
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppCacheService, never>;
|
|
1055
1055
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppCacheService>;
|
|
1056
1056
|
}
|
|
1057
1057
|
|
|
1058
|
-
interface
|
|
1059
|
-
|
|
1060
|
-
|
|
1058
|
+
interface CatalogLocalization {
|
|
1059
|
+
locale: string;
|
|
1060
|
+
label: string;
|
|
1061
|
+
description: string;
|
|
1061
1062
|
}
|
|
1062
|
-
interface
|
|
1063
|
-
|
|
1064
|
-
|
|
1063
|
+
interface CatalogLocalizationPayload {
|
|
1064
|
+
columnNames: string[];
|
|
1065
|
+
value: string[][];
|
|
1065
1066
|
}
|
|
1067
|
+
declare const LOCALIZATION_COLUMNS: string[];
|
|
1068
|
+
/** Property wrapper as returned by the OData catalog API */
|
|
1069
|
+
interface CatalogApiPropertyValue {
|
|
1070
|
+
value: unknown;
|
|
1071
|
+
}
|
|
1072
|
+
/** Single object in the OData response `objects` array */
|
|
1073
|
+
interface CatalogApiObject {
|
|
1074
|
+
properties: Record<string, CatalogApiPropertyValue>;
|
|
1075
|
+
}
|
|
1076
|
+
/** OData catalog response envelope */
|
|
1077
|
+
interface CatalogApiResponse {
|
|
1078
|
+
objects: CatalogApiObject[];
|
|
1079
|
+
numItems: number;
|
|
1080
|
+
hasMoreItems: boolean;
|
|
1081
|
+
totalNumItems: number;
|
|
1082
|
+
}
|
|
1083
|
+
/** A catalog entry mapped from the raw OData response */
|
|
1066
1084
|
interface CatalogEntry {
|
|
1085
|
+
/** UUID of the catalog entry (system:objectId) */
|
|
1086
|
+
objectId: string;
|
|
1087
|
+
/** The entry key / name (system:nativeId) */
|
|
1088
|
+
name: string;
|
|
1089
|
+
/** The catalog this entry belongs to (system:catalogNativeId) */
|
|
1090
|
+
catalogName: string;
|
|
1091
|
+
/** Localized labels and descriptions */
|
|
1092
|
+
localizations: CatalogLocalization[];
|
|
1093
|
+
/** Validity start date (ISO 8601), if set */
|
|
1094
|
+
validFrom?: string;
|
|
1095
|
+
/** Validity end date (ISO 8601), if set */
|
|
1096
|
+
validUntil?: string;
|
|
1097
|
+
/** Additional catalog-specific properties (app prefix stripped) */
|
|
1098
|
+
properties: Record<string, unknown>;
|
|
1099
|
+
}
|
|
1100
|
+
/** Paginated result of catalog entries */
|
|
1101
|
+
interface CatalogResult {
|
|
1102
|
+
entries: CatalogEntry[];
|
|
1103
|
+
hasMoreItems: boolean;
|
|
1104
|
+
totalNumItems: number;
|
|
1105
|
+
}
|
|
1106
|
+
/** A catalog (system:catalog) — mapped from a DmsObject */
|
|
1107
|
+
interface Catalog {
|
|
1108
|
+
/** UUID of the catalog object */
|
|
1109
|
+
objectId: string;
|
|
1110
|
+
/** Technical name (system:nativeId), unique per tenant, immutable */
|
|
1067
1111
|
name: string;
|
|
1068
|
-
|
|
1112
|
+
}
|
|
1113
|
+
/** Payload for creating a catalog */
|
|
1114
|
+
interface CatalogPayload {
|
|
1115
|
+
/** Technical name. Must be unique per tenant and is immutable after creation. */
|
|
1116
|
+
name: string;
|
|
1117
|
+
}
|
|
1118
|
+
/** Payload for creating a new catalog entry */
|
|
1119
|
+
interface CatalogEntryCreatePayload {
|
|
1120
|
+
/** Technical name (system:nativeId). Unique within the catalog, immutable. */
|
|
1121
|
+
name: string;
|
|
1122
|
+
/** Catalog-specific SOT ids. Added on top of `system:catalogEntry`. */
|
|
1123
|
+
secondaryObjectTypeIds?: string[];
|
|
1124
|
+
localizations?: CatalogLocalization[];
|
|
1125
|
+
validFrom?: string;
|
|
1126
|
+
validUntil?: string;
|
|
1127
|
+
/** Catalog-specific properties — keyed by FULL prefix (e.g. `appCountries:continent`). */
|
|
1128
|
+
properties?: Record<string, unknown>;
|
|
1129
|
+
}
|
|
1130
|
+
/** Payload for updating a catalog entry. `name` and `catalogName` are immutable. */
|
|
1131
|
+
interface CatalogEntryUpdatePayload {
|
|
1132
|
+
catalogName: string;
|
|
1133
|
+
localizations?: CatalogLocalization[];
|
|
1134
|
+
/** Pass `null` to clear the value. */
|
|
1135
|
+
validFrom?: string | null;
|
|
1136
|
+
/** Pass `null` to clear the value. */
|
|
1137
|
+
validUntil?: string | null;
|
|
1138
|
+
}
|
|
1139
|
+
/** A property filter for OData $filter */
|
|
1140
|
+
interface CatalogPropertyFilter {
|
|
1141
|
+
/** Property name WITHOUT its app prefix (e.g. 'continent', not 'appCatalogtest:continent') */
|
|
1142
|
+
property: string;
|
|
1143
|
+
/** The value to compare against */
|
|
1144
|
+
value: string;
|
|
1145
|
+
}
|
|
1146
|
+
/** Options for querying catalog entries */
|
|
1147
|
+
interface CatalogQueryOptions {
|
|
1148
|
+
/** Maximum number of entries to return (maps to $top, default 50) */
|
|
1149
|
+
top?: number;
|
|
1150
|
+
/** Number of entries to skip (maps to $skip, default 0) */
|
|
1151
|
+
skip?: number;
|
|
1152
|
+
/** Include expired/not-yet-valid entries */
|
|
1153
|
+
includeInvalidEntries?: boolean;
|
|
1154
|
+
/** Autocomplete prefix — maps to startswith(displayValue, '...') */
|
|
1155
|
+
autocompletePrefix?: string;
|
|
1156
|
+
/** Property filters — combined with 'and' */
|
|
1157
|
+
filters?: CatalogPropertyFilter[];
|
|
1158
|
+
/**
|
|
1159
|
+
* BCP-47 locale tag (e.g. `de`, `en`). Forwarded as `Accept-Language`.
|
|
1160
|
+
* Drives `startswith(displayValue,'…')` matching and the row of
|
|
1161
|
+
* `system:localization` returned in the response. When omitted, the
|
|
1162
|
+
* backend default applies.
|
|
1163
|
+
*/
|
|
1164
|
+
locale?: string;
|
|
1069
1165
|
}
|
|
1070
1166
|
|
|
1071
1167
|
declare class CatalogService {
|
|
1168
|
+
#private;
|
|
1169
|
+
static readonly CATALOG_BASE = "/dms/catalogs/odata";
|
|
1170
|
+
catalogs: i0.WritableSignal<Catalog[]>;
|
|
1171
|
+
/** Fetch the list of catalogs and publish to the `catalogs` signal. */
|
|
1172
|
+
loadCatalogs(): Observable<Catalog[]>;
|
|
1173
|
+
/**
|
|
1174
|
+
* Create a new catalog. Returns the new objectId.
|
|
1175
|
+
*/
|
|
1176
|
+
createCatalog(payload: CatalogPayload): Observable<string>;
|
|
1177
|
+
/** Delete a catalog by objectId. */
|
|
1178
|
+
deleteCatalog(objectId: string): Observable<unknown>;
|
|
1179
|
+
/** Create a new entry in the given catalog. Returns the new objectId. */
|
|
1180
|
+
createEntry(catalogName: string, payload: CatalogEntryCreatePayload): Observable<string>;
|
|
1181
|
+
/**
|
|
1182
|
+
* Update mutable fields of a catalog entry. Sparse: only fields present in `update`
|
|
1183
|
+
* are sent. Pass `null` for `validFrom`/`validUntil` to clear them.
|
|
1184
|
+
*/
|
|
1185
|
+
updateEntry(objectId: string, update: CatalogEntryUpdatePayload): Observable<DmsObject>;
|
|
1186
|
+
/** Delete a catalog entry by objectId. */
|
|
1187
|
+
deleteEntry(objectId: string): Observable<unknown>;
|
|
1188
|
+
/**
|
|
1189
|
+
* Get a specific catalog entry by name (use case 1).
|
|
1190
|
+
* Validity filtering does NOT apply — all existing entries are returned.
|
|
1191
|
+
* Returns 404 if the entry does not exist. Pass `locale` to receive
|
|
1192
|
+
* `system:localization` rows resolved against `Accept-Language`.
|
|
1193
|
+
*/
|
|
1194
|
+
getEntry(catalogName: string, entryName: string, locale?: string): Observable<CatalogEntry>;
|
|
1195
|
+
/**
|
|
1196
|
+
* Get catalog entries with optional filtering and pagination (use cases 2 & 3).
|
|
1197
|
+
* By default only valid entries are returned. Pass `options.locale` to drive
|
|
1198
|
+
* `startswith(displayValue,'…')` matching and the localized response rows.
|
|
1199
|
+
*/
|
|
1200
|
+
getEntries(catalogName: string, options?: CatalogQueryOptions): Observable<CatalogResult>;
|
|
1201
|
+
/**
|
|
1202
|
+
* Autocomplete / filtered search (convenience wrapper for use case 3).
|
|
1203
|
+
* Searches the localized display value using startswith().
|
|
1204
|
+
*/
|
|
1205
|
+
autocomplete(catalogName: string, prefix: string, options?: CatalogQueryOptions): Observable<CatalogResult>;
|
|
1072
1206
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogService, never>;
|
|
1073
1207
|
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogService>;
|
|
1074
1208
|
}
|
|
@@ -1684,6 +1818,41 @@ declare class IdmService {
|
|
|
1684
1818
|
static ɵprov: i0.ɵɵInjectableDeclaration<IdmService>;
|
|
1685
1819
|
}
|
|
1686
1820
|
|
|
1821
|
+
interface Localization {
|
|
1822
|
+
[key: string]: string;
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
/**
|
|
1826
|
+
* Service managing localizations. The localizations are fetched
|
|
1827
|
+
* during app initialization and stored in this service for
|
|
1828
|
+
* later use.
|
|
1829
|
+
*
|
|
1830
|
+
* Localizations could be extended by providing custom key-value pairs.
|
|
1831
|
+
*/
|
|
1832
|
+
declare class LocalizationService {
|
|
1833
|
+
#private;
|
|
1834
|
+
fetchLocalizations(): Observable<Localization>;
|
|
1835
|
+
getLocalizedResource(key: string): string;
|
|
1836
|
+
getLocalizedLabel(id: string): string;
|
|
1837
|
+
getLocalizedDescription(id: string): string;
|
|
1838
|
+
/**
|
|
1839
|
+
* Extend localizations with custom key-value pairs. This allows to add custom localizations without
|
|
1840
|
+
* modifying the localizations provided by the backend. The extension is applied
|
|
1841
|
+
* on top of the localizations fetched from the backend, so it can be used to override
|
|
1842
|
+
* existing localizations as well.
|
|
1843
|
+
* @param localizations Record of key-value pairs for localizations, where the key is the language
|
|
1844
|
+
* code (e.g. 'en', 'de', ...) and the value is a record of key-value pairs for localizations.
|
|
1845
|
+
* Example:
|
|
1846
|
+
* {
|
|
1847
|
+
* en: { 'key1': 'value1', 'key2': 'value2' },
|
|
1848
|
+
* de: { 'key1': 'wert1', 'key2': 'wert2' }
|
|
1849
|
+
* }
|
|
1850
|
+
*/
|
|
1851
|
+
extendLocalizations(localizations: Record<string, Localization>): void;
|
|
1852
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationService, never>;
|
|
1853
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LocalizationService>;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1687
1856
|
/**
|
|
1688
1857
|
* Interface providing a default logger, that is used for the Dependency-Injection (DI) token.
|
|
1689
1858
|
*/
|
|
@@ -1796,6 +1965,8 @@ declare const SystemType: {
|
|
|
1796
1965
|
FOLDER: string;
|
|
1797
1966
|
AUDIT: string;
|
|
1798
1967
|
ITEM: string;
|
|
1968
|
+
CATALOG: string;
|
|
1969
|
+
CATALOG_ENTRY: string;
|
|
1799
1970
|
RELATIONSHIP: string;
|
|
1800
1971
|
SOT: string;
|
|
1801
1972
|
};
|
|
@@ -1822,6 +1993,13 @@ declare const RelationshipTypeField: {
|
|
|
1822
1993
|
SOURCE_ID: string;
|
|
1823
1994
|
TARGET_ID: string;
|
|
1824
1995
|
};
|
|
1996
|
+
declare const CatalogTypeField: {
|
|
1997
|
+
NATIVE_ID: string;
|
|
1998
|
+
CATALOG_NATIVE_ID: string;
|
|
1999
|
+
DATE_VALID_FROM: string;
|
|
2000
|
+
DATE_VALID_UNTIL: string;
|
|
2001
|
+
LOCALIZATION: string;
|
|
2002
|
+
};
|
|
1825
2003
|
declare const BaseObjectTypeField: {
|
|
1826
2004
|
PARENT_ID: string;
|
|
1827
2005
|
PARENT_OBJECT_TYPE_ID: string;
|
|
@@ -1880,8 +2058,6 @@ declare enum ContentStreamAllowed {
|
|
|
1880
2058
|
}
|
|
1881
2059
|
declare enum Classification {
|
|
1882
2060
|
STRING_CATALOG_I18N = "i18n:catalog",
|
|
1883
|
-
STRING_CATALOG_CUSTOM = "custom:catalog",
|
|
1884
|
-
STRING_CATALOG_DYNAMIC = "dynamic:catalog",
|
|
1885
2061
|
STRING_CATALOG = "catalog",
|
|
1886
2062
|
STRING_ORGANIZATION = "id:organization",
|
|
1887
2063
|
STRING_ORGANIZATION_SET = "id:organization:set",
|
|
@@ -1947,7 +2123,6 @@ interface SystemDefinition {
|
|
|
1947
2123
|
objectTypes: ObjectType[];
|
|
1948
2124
|
secondaryObjectTypes: SecondaryObjectType[];
|
|
1949
2125
|
relationships: Relationship[];
|
|
1950
|
-
i18n: Localization;
|
|
1951
2126
|
allFields: Record<string, SchemaResponseFieldDefinition>;
|
|
1952
2127
|
}
|
|
1953
2128
|
interface GenericObjectType extends ObjectType {
|
|
@@ -1995,6 +2170,7 @@ interface _ObjectTypeFieldBase {
|
|
|
1995
2170
|
queryable?: boolean;
|
|
1996
2171
|
classifications?: string[];
|
|
1997
2172
|
resolution?: string;
|
|
2173
|
+
catalog?: string;
|
|
1998
2174
|
columnDefinitions?: SchemaResponseFieldDefinition[];
|
|
1999
2175
|
}
|
|
2000
2176
|
/**
|
|
@@ -2009,10 +2185,6 @@ interface ObjectTypeField extends _ObjectTypeFieldBase {
|
|
|
2009
2185
|
_internalType: ObjectTypeFieldInternalType;
|
|
2010
2186
|
label?: string;
|
|
2011
2187
|
}
|
|
2012
|
-
interface VisibleObjectTag {
|
|
2013
|
-
tagName: string;
|
|
2014
|
-
tagValues?: unknown[];
|
|
2015
|
-
}
|
|
2016
2188
|
/**
|
|
2017
2189
|
* Base definition of the kind of data we'll receive
|
|
2018
2190
|
* from the backend asking for native schema
|
|
@@ -2074,9 +2246,6 @@ interface ApplicableSecondaries {
|
|
|
2074
2246
|
primarySOTs: SecondaryObjectType[];
|
|
2075
2247
|
extendingSOTs: SecondaryObjectType[];
|
|
2076
2248
|
}
|
|
2077
|
-
interface Localization {
|
|
2078
|
-
[key: string]: string;
|
|
2079
|
-
}
|
|
2080
2249
|
interface UserPermissions {
|
|
2081
2250
|
create: UserPermissionsSection;
|
|
2082
2251
|
read: UserPermissionsSection;
|
|
@@ -2691,36 +2860,12 @@ declare class SystemService {
|
|
|
2691
2860
|
id: string;
|
|
2692
2861
|
fields: ObjectTypeField[];
|
|
2693
2862
|
};
|
|
2694
|
-
/**
|
|
2695
|
-
* Get the resolved object tags
|
|
2696
|
-
*/
|
|
2697
|
-
getResolvedTags(objectTypeId: string): {
|
|
2698
|
-
id: string;
|
|
2699
|
-
tagName: string;
|
|
2700
|
-
tagValues: any;
|
|
2701
|
-
fields: ObjectTypeField[];
|
|
2702
|
-
}[];
|
|
2703
2863
|
/**
|
|
2704
2864
|
* Get a list of classifications for a given object type including the
|
|
2705
2865
|
* classifications of its static secondary object types
|
|
2706
2866
|
* @param objectTypeId ID of the object type
|
|
2707
2867
|
*/
|
|
2708
2868
|
getResolvedClassifications(objectTypeId: string): string[];
|
|
2709
|
-
/**
|
|
2710
|
-
* Visible tags are defined by a classification on the object type (e.g. 'tag[tenkolibri:process,1,2,3]').
|
|
2711
|
-
*
|
|
2712
|
-
* The example will only return tags with the name 'tenkolibri:process'
|
|
2713
|
-
* and values of either 1, 2 or 3. All other tags will be ignored.
|
|
2714
|
-
*
|
|
2715
|
-
* @param objectTypeId ID of the object type to get the visible tags for
|
|
2716
|
-
* @returns object where the property name is the name of the tag and its value are the visible values
|
|
2717
|
-
* for that tag (if values is emoty all values are allowed)
|
|
2718
|
-
*/
|
|
2719
|
-
getVisibleTags(objectTypeId: string): {
|
|
2720
|
-
[tagName: string]: any[];
|
|
2721
|
-
};
|
|
2722
|
-
private fetchVisibleTags;
|
|
2723
|
-
filterVisibleTags(objectTypeId: string, tagsValue: Array<Array<any>>): Array<Array<any>>;
|
|
2724
2869
|
/**
|
|
2725
2870
|
* Get the icon for an object type. This will return an SVG as a string.
|
|
2726
2871
|
* @param objectTypeId ID of the object type
|
|
@@ -2733,9 +2878,17 @@ declare class SystemService {
|
|
|
2733
2878
|
* @param fallback ID of a fallback icon that should be used if the given object type has no icon yet
|
|
2734
2879
|
*/
|
|
2735
2880
|
getObjectTypeIconUri(objectTypeId: string, fallback?: string): string;
|
|
2736
|
-
|
|
2881
|
+
/**
|
|
2882
|
+
* @deprecated use LocalizationService.getLocalizedResource instead
|
|
2883
|
+
*/
|
|
2737
2884
|
getLocalizedResource(key: string): string;
|
|
2885
|
+
/**
|
|
2886
|
+
* @deprecated use LocalizationService.getLocalizedResource instead
|
|
2887
|
+
*/
|
|
2738
2888
|
getLocalizedLabel(id: string): string;
|
|
2889
|
+
/**
|
|
2890
|
+
* @deprecated use LocalizationService.getLocalizedResource instead
|
|
2891
|
+
*/
|
|
2739
2892
|
getLocalizedDescription(id: string): string;
|
|
2740
2893
|
/**
|
|
2741
2894
|
* Determine whether or not the given object type field is a system field
|
|
@@ -2750,19 +2903,19 @@ declare class SystemService {
|
|
|
2750
2903
|
* @param user The user to load the system definition for
|
|
2751
2904
|
*/
|
|
2752
2905
|
getSystemDefinition(authData?: AuthData): Observable<boolean>;
|
|
2753
|
-
setPermissions(
|
|
2906
|
+
setPermissions(permissions: ObjectTypePermissions): void;
|
|
2754
2907
|
/**
|
|
2755
2908
|
* Create the schema from the servers schema response
|
|
2756
2909
|
* @param schemaResponse Response from the backend
|
|
2757
2910
|
*/
|
|
2758
|
-
setSchema(schemaResponse: SchemaResponse
|
|
2911
|
+
setSchema(schemaResponse: SchemaResponse): void;
|
|
2759
2912
|
/**
|
|
2760
2913
|
* Fetch a collection of form models.
|
|
2761
2914
|
* @param objectTypeIDs Object type IDs to fetch form model for
|
|
2762
2915
|
* @param situation Form situation
|
|
2763
2916
|
* @returns Object where the object type id is key and the form model is the value
|
|
2764
2917
|
*/
|
|
2765
|
-
getObjectTypeForms(objectTypeIDs: string[], situation: string): Observable<Record<string,
|
|
2918
|
+
getObjectTypeForms(objectTypeIDs: string[], situation: string): Observable<Record<string, unknown>>;
|
|
2766
2919
|
/**
|
|
2767
2920
|
* Get the form model of an object type.
|
|
2768
2921
|
*
|
|
@@ -2770,7 +2923,7 @@ declare class SystemService {
|
|
|
2770
2923
|
* @param situation The form situation to be fetched
|
|
2771
2924
|
* @returns Form model
|
|
2772
2925
|
*/
|
|
2773
|
-
getObjectTypeForm(objectTypeId: string, situation: string): Observable<
|
|
2926
|
+
getObjectTypeForm(objectTypeId: string, situation: string): Observable<unknown>;
|
|
2774
2927
|
/**
|
|
2775
2928
|
* Generates an internal type for a given object type field.
|
|
2776
2929
|
* Adding this to a form element or object type field enables us to render forms
|
|
@@ -2778,8 +2931,9 @@ declare class SystemService {
|
|
|
2778
2931
|
* have to evaluate the conditions for every form element on every digest cycle.
|
|
2779
2932
|
* @param type propertyType of the ObjectTypeField
|
|
2780
2933
|
* @param classifications classifications of the ObjectTypeField
|
|
2934
|
+
* @param catalog catalog reference of the ObjectTypeField
|
|
2781
2935
|
*/
|
|
2782
|
-
getInternalFormElementType(type: string, classifications?: string[]): ObjectTypeFieldInternalType;
|
|
2936
|
+
getInternalFormElementType(type: string, classifications?: string[], catalog?: string): ObjectTypeFieldInternalType;
|
|
2783
2937
|
getObjectTypeField(id: string): ObjectTypeField | undefined;
|
|
2784
2938
|
/**
|
|
2785
2939
|
* Extract classifications from object type fields classification
|
|
@@ -2793,12 +2947,11 @@ declare class SystemService {
|
|
|
2793
2947
|
* @param classifications Object type fields classification property (schema)
|
|
2794
2948
|
*/
|
|
2795
2949
|
getClassifications(classifications: string[]): Map<string, ClassificationEntry>;
|
|
2796
|
-
toFormElement(field: ObjectTypeField):
|
|
2950
|
+
toFormElement(field: ObjectTypeField): unknown;
|
|
2797
2951
|
updateAuthData(data: Partial<AuthData>): Observable<boolean>;
|
|
2798
|
-
updateLocalizations(iso: string): Observable<any>;
|
|
2799
2952
|
fetchResources(id: string): Observable<{
|
|
2800
|
-
global:
|
|
2801
|
-
tenant:
|
|
2953
|
+
global: unknown;
|
|
2954
|
+
tenant: unknown;
|
|
2802
2955
|
}>;
|
|
2803
2956
|
static ɵfac: i0.ɵɵFactoryDeclaration<SystemService, never>;
|
|
2804
2957
|
static ɵprov: i0.ɵɵInjectableDeclaration<SystemService>;
|
|
@@ -3066,20 +3219,10 @@ declare const provideUser: (user: YuvUser) => Provider;
|
|
|
3066
3219
|
*/
|
|
3067
3220
|
declare class UserService {
|
|
3068
3221
|
#private;
|
|
3069
|
-
private backend;
|
|
3070
|
-
private translate;
|
|
3071
|
-
private logger;
|
|
3072
|
-
private system;
|
|
3073
|
-
private eventService;
|
|
3074
|
-
private config;
|
|
3075
3222
|
user$: Observable<YuvUser | undefined>;
|
|
3076
3223
|
globalSettings: Map<any, any>;
|
|
3077
3224
|
userPermissions?: UserPermissions;
|
|
3078
|
-
|
|
3079
|
-
* @ignore
|
|
3080
|
-
*/
|
|
3081
|
-
constructor(backend: BackendService, translate: TranslateService, logger: Logger, system: SystemService, eventService: EventService, config: ConfigService);
|
|
3082
|
-
private getUiDirection;
|
|
3225
|
+
canCreateObjects: boolean;
|
|
3083
3226
|
/**
|
|
3084
3227
|
* Set a new current user
|
|
3085
3228
|
* @param user The user to be set as current user
|
|
@@ -3092,7 +3235,6 @@ declare class UserService {
|
|
|
3092
3235
|
get hasManageSettingsRole(): boolean;
|
|
3093
3236
|
get isAdvancedUser(): boolean;
|
|
3094
3237
|
get isRetentionManager(): boolean;
|
|
3095
|
-
canCreateObjects: boolean;
|
|
3096
3238
|
/**
|
|
3097
3239
|
* Change the users client locale
|
|
3098
3240
|
* @param iso ISO locale string to be set as new client locale
|
|
@@ -3100,8 +3242,6 @@ declare class UserService {
|
|
|
3100
3242
|
changeClientLocale(iso: string, persist?: boolean): void;
|
|
3101
3243
|
saveUserSettings(settings: Partial<UserSettings>): Observable<any>;
|
|
3102
3244
|
fetchUserSettings(): Observable<UserSettings>;
|
|
3103
|
-
private setUserPermissions;
|
|
3104
|
-
private mapPermissions;
|
|
3105
3245
|
/**
|
|
3106
3246
|
* Search for a user based on a search term
|
|
3107
3247
|
* @param term Search term
|
|
@@ -3416,5 +3556,5 @@ interface YuvClientCoreConfig {
|
|
|
3416
3556
|
}
|
|
3417
3557
|
declare const provideYuvClientCore: (options?: YuvClientCoreConfig, customEvents?: string[], customEventsTrustedOrigin?: string[], disableBeforeUnloadProtection?: boolean, disablePopstateDialogProtection?: boolean) => EnvironmentProviders;
|
|
3418
3558
|
|
|
3419
|
-
export { AFO_STATE, AVAILABLE_BACKEND_APPS, AdministrationRoles, ApiBase, AppCacheService, AuditField, AuditService, AuthService, BackendService, BaseObjectTypeField, BpmService, CLIENT_APP_REQUIREMENTS, CORE_CONFIG, CUSTOM_CONFIG, CUSTOM_YUV_EVENT_PREFIX, CatalogService, Classification, ClassificationPrefix, ClientCacheService, ClientDefaultsObjectTypeField, ClipboardService, ColumnConfigSkipFields, ConfigService, ConnectionService, ContentStreamAllowed, ContentStreamField, CoreConfig, DeviceScreenOrientation, DeviceService, DialogCloseGuard, Direction, DmsObject, DmsService, EventService, FileSizePipe, IdmService, InternalFieldType, KeysPipe, LocaleCurrencyPipe, LocaleDatePipe, LocaleDecimalPipe, LocaleNumberPipe, LocalePercentPipe, Logger, LoginStateName, NativeNotificationService, NotificationService, ObjectConfigService, ObjectFormControl, ObjectFormControlWrapper, ObjectFormGroup, ObjectTag, ObjectTypeClassification, ObjectTypePropertyClassification, Operator, OperatorLabel, ParentField, PendingChangesGuard, PendingChangesService, PredictionService, ProcessAction, RelationshipTypeField, RetentionField, RetentionService, SafeHtmlPipe, SafeUrlPipe, SearchService, SearchUtils, SecondaryObjectTypeClassification, SessionStorageService, Situation, Sort, SystemResult, SystemSOT, SystemService, SystemType, TENANT_HEADER, TabGuardDirective, ToastService, UploadService, UserRoles, UserService, UserStorageService, Utils, YUV_USER, YuvError, YuvEventType, YuvUser, init_moduleFnc, provideAvailabilityManagement, provideBeforeUnloadProtection, provideNavigationProtection, providePopstateDialogProtection, provideRequirements, provideUser, provideYuvClientCore };
|
|
3420
|
-
export type { AggregateResult, Aggregation, AggregationEntry, ApplicableSecondaries, AuditEntry, AuditQueryOptions, AuditQueryResult, AuthData, AvailabilityState,
|
|
3559
|
+
export { AFO_STATE, AVAILABLE_BACKEND_APPS, AdministrationRoles, ApiBase, AppCacheService, AuditField, AuditService, AuthService, BackendService, BaseObjectTypeField, BpmService, CLIENT_APP_REQUIREMENTS, CORE_CONFIG, CUSTOM_CONFIG, CUSTOM_YUV_EVENT_PREFIX, CatalogService, CatalogTypeField, Classification, ClassificationPrefix, ClientCacheService, ClientDefaultsObjectTypeField, ClipboardService, ColumnConfigSkipFields, ConfigService, ConnectionService, ContentStreamAllowed, ContentStreamField, CoreConfig, DeviceScreenOrientation, DeviceService, DialogCloseGuard, Direction, DmsObject, DmsService, EventService, FileSizePipe, IdmService, InternalFieldType, KeysPipe, LOCALIZATION_COLUMNS, LocaleCurrencyPipe, LocaleDatePipe, LocaleDecimalPipe, LocaleNumberPipe, LocalePercentPipe, LocalizationService, Logger, LoginStateName, NativeNotificationService, NotificationService, ObjectConfigService, ObjectFormControl, ObjectFormControlWrapper, ObjectFormGroup, ObjectTag, ObjectTypeClassification, ObjectTypePropertyClassification, Operator, OperatorLabel, ParentField, PendingChangesGuard, PendingChangesService, PredictionService, ProcessAction, RelationshipTypeField, RetentionField, RetentionService, SafeHtmlPipe, SafeUrlPipe, SearchService, SearchUtils, SecondaryObjectTypeClassification, SessionStorageService, Situation, Sort, SystemResult, SystemSOT, SystemService, SystemType, TENANT_HEADER, TabGuardDirective, ToastService, UploadService, UserRoles, UserService, UserStorageService, Utils, YUV_USER, YuvError, YuvEventType, YuvUser, init_moduleFnc, provideAvailabilityManagement, provideBeforeUnloadProtection, provideNavigationProtection, providePopstateDialogProtection, provideRequirements, provideUser, provideYuvClientCore };
|
|
3560
|
+
export type { AggregateResult, Aggregation, AggregationEntry, ApplicableSecondaries, AuditEntry, AuditQueryOptions, AuditQueryResult, AuthData, AvailabilityState, CacheEntry, Catalog, CatalogApiObject, CatalogApiPropertyValue, CatalogApiResponse, CatalogEntry, CatalogEntryCreatePayload, CatalogEntryUpdatePayload, CatalogLocalization, CatalogLocalizationPayload, CatalogPayload, CatalogPropertyFilter, CatalogQueryOptions, CatalogResult, ClassificationEntry, ClipboardData, ClipboardDataMode, ClipboardStore, ConfigTypeOption, ConnectionState, ContentStream$1 as ContentStream, CoreApiBatchResponse, CoreApiObject, CoreApiObjectProperty, CoreApiResponse, CreatedObject, DateRange, DeviceScreen, DeviceScreenBounds, DmsObjectAuditInfo, DmsObjectPermissions, DmsObjectTag, FetchTaskOptions, FilesizeRange, FlavoredDmsObject, FormElementBoolean, FormElementDatetime, FormElementDecimal, FormElementInteger, FormElementString, FormElementTable, FormattedMailTo, GenericObjectType, HttpDeleteOptions, HttpOptions, ILogger, IdmCachedUser, IdmUserCache, IdmUserResponse, InboxTask, IsAny, Localization, LoginDeviceResult, LoginState, ObjectConfig, ObjectConfigAction, ObjectConfigBadge, ObjectConfigBucket, ObjectConfigIcon, ObjectConfigProperty, ObjectConfigRecord, ObjectCopyOptions, ObjectCreateFlavor, ObjectDeleteError, ObjectDeleteOptions, ObjectDeleteResult, ObjectFormModel, ObjectMoveOptions, ObjectOptions, ObjectType, ObjectTypeField, ObjectTypeFieldInternalType, ObjectTypeFieldType, ObjectTypeFlavor, ObjectTypePermissions, OrganizationSetEntry, PredictionClassifyResult, PredictionClassifyResultItem, PredictionExtractResult, PredictionExtractResultItem, Process, ProcessCreatePayload, ProcessPostPayload, ProcessUser, ProcessVariable, ProgressStatus, ProgressStatusItem, RangeValue, Relationship, RendererType, Requirements, ResolvedObjectConfig, ResolvedObjectConfigItem, RetentionState, SchemaResponse, SchemaResponseDocumentTypeDefinition, SchemaResponseFieldDefinition, SchemaResponseFolderTypeDefinition, SchemaResponseRelationDefinition, SchemaResponseTypeDefinition, ScreenSize, SearchFilter, SearchQuery, SearchResponse, SearchResult, SearchResultContent, SearchResultItem, SearchResultPermissions, SecondaryObjectType, SortOption, StoredObjectConfig, StoredToken, SystemDefinition, TableFilter, ToastLevel, ToastOptions, ToastPosition, Trigger, UploadResult, UserPermissions, UserPermissionsSection, UserSettings, VirtualObjectType, YuvAvailableBackendApps, YuvClientCoreConfig, YuvConfig, YuvConfigLanguages, YuvEvent, YuvEventCreatedData, YuvEventDeletedData, YuvEventUpdatedData, YuvFormGroup, YuvFormGroupWrapper, YuvInitError, YuvMessage, _ObjectTypeBase, _ObjectTypeFieldBase };
|