@yuuvis/client-core 2.1.33 → 2.1.34
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.
|
@@ -75,7 +75,8 @@ const SystemType = {
|
|
|
75
75
|
DOCUMENT: 'system:document',
|
|
76
76
|
FOLDER: 'system:folder',
|
|
77
77
|
AUDIT: 'system:audit',
|
|
78
|
-
|
|
78
|
+
RELATIONSHIP: 'system:relationship',
|
|
79
|
+
SOT: 'system:secondary'
|
|
79
80
|
};
|
|
80
81
|
const SystemResult = {
|
|
81
82
|
DELETE: 'system:deletionResult'
|
|
@@ -96,6 +97,10 @@ const RetentionField = {
|
|
|
96
97
|
RETENTION_START: 'system:rmStartOfRetention',
|
|
97
98
|
DESTRUCTION_DATE: 'system:rmDestructionDate'
|
|
98
99
|
};
|
|
100
|
+
const RelationshipTypeField = {
|
|
101
|
+
SOURCE_ID: 'system:sourceId',
|
|
102
|
+
TARGET_ID: 'system:targetId'
|
|
103
|
+
};
|
|
99
104
|
const BaseObjectTypeField = {
|
|
100
105
|
OBJECT_TYPE_ID: 'system:objectTypeId',
|
|
101
106
|
VERSION_NUMBER: 'system:versionNumber',
|
|
@@ -1492,9 +1497,11 @@ class SystemService {
|
|
|
1492
1497
|
}
|
|
1493
1498
|
else {
|
|
1494
1499
|
const iconUri = this.getObjectTypeIconUri(objectTypeId, fallback);
|
|
1495
|
-
return this.#backend
|
|
1500
|
+
return this.#backend
|
|
1501
|
+
.get(iconUri, ApiBase.none, {
|
|
1496
1502
|
responseType: 'text'
|
|
1497
|
-
})
|
|
1503
|
+
})
|
|
1504
|
+
.pipe(tap((icon) => (this.#iconCache[objectTypeId] = { uri: iconUri, icon })));
|
|
1498
1505
|
}
|
|
1499
1506
|
}
|
|
1500
1507
|
/**
|
|
@@ -1661,14 +1668,14 @@ class SystemService {
|
|
|
1661
1668
|
isFolder: false,
|
|
1662
1669
|
fields: this.#resolveObjectTypeFields(std, propertiesQA, objectTypesQA)
|
|
1663
1670
|
}));
|
|
1664
|
-
const relationships = schemaResponse.typeRelationshipDefinition.map((std) => ({
|
|
1671
|
+
const relationships = (schemaResponse.typeRelationshipDefinition || []).map((std) => ({
|
|
1665
1672
|
id: std.id,
|
|
1666
1673
|
description: std.description,
|
|
1667
1674
|
baseId: std.baseId,
|
|
1668
1675
|
fields: this.#resolveObjectTypeFields(std, propertiesQA, objectTypesQA),
|
|
1669
1676
|
// allowedSourceType
|
|
1670
|
-
allowedSourceTypes: std.allowedSourceType.map(t => t.objectTypeReference),
|
|
1671
|
-
allowedTargetTypes: std.allowedTargetType.map(t => t.objectTypeReference)
|
|
1677
|
+
allowedSourceTypes: std.allowedSourceType.map((t) => t.objectTypeReference),
|
|
1678
|
+
allowedTargetTypes: std.allowedTargetType.map((t) => t.objectTypeReference)
|
|
1672
1679
|
}));
|
|
1673
1680
|
this.system = {
|
|
1674
1681
|
version: schemaResponse.version,
|
|
@@ -5219,5 +5226,5 @@ const provideYuvClientCore = (options = { translations: [] }) => {
|
|
|
5219
5226
|
* Generated bundle index. Do not edit.
|
|
5220
5227
|
*/
|
|
5221
5228
|
|
|
5222
|
-
export { AFO_STATE, AdministrationRoles, ApiBase, AppCacheService, AuditField, AuditService, AuthService, BackendService, BaseObjectTypeField, BpmService, CORE_CONFIG, CUSTOM_CONFIG, CatalogService, Classification, ClassificationPrefix, ClientDefaultsObjectTypeField, ClipboardService, ColumnConfigSkipFields, ConfigService, ConnectionService, ContentStreamAllowed, ContentStreamField, CoreConfig, DeviceScreenOrientation, DeviceService, 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, RetentionField, RetentionService, SafeHtmlPipe, SafeUrlPipe, SearchService, SearchUtils, SecondaryObjectTypeClassification, SessionStorageService, Situation, Sort, SystemResult, SystemSOT, SystemService, SystemType, TENANT_HEADER, ToastService, UploadService, UserRoles, UserService, UserStorageService, Utils, YUV_USER, YuvError, YuvEventType, YuvUser, init_moduleFnc, provideUser, provideYuvClientCore };
|
|
5229
|
+
export { AFO_STATE, AdministrationRoles, ApiBase, AppCacheService, AuditField, AuditService, AuthService, BackendService, BaseObjectTypeField, BpmService, CORE_CONFIG, CUSTOM_CONFIG, CatalogService, Classification, ClassificationPrefix, ClientDefaultsObjectTypeField, ClipboardService, ColumnConfigSkipFields, ConfigService, ConnectionService, ContentStreamAllowed, ContentStreamField, CoreConfig, DeviceScreenOrientation, DeviceService, 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, ToastService, UploadService, UserRoles, UserService, UserStorageService, Utils, YUV_USER, YuvError, YuvEventType, YuvUser, init_moduleFnc, provideUser, provideYuvClientCore };
|
|
5223
5230
|
//# sourceMappingURL=yuuvis-client-core.mjs.map
|