@yuuvis/client-core 2.1.32 → 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.
|
@@ -9,6 +9,7 @@ export declare const SystemType: {
|
|
|
9
9
|
DOCUMENT: string;
|
|
10
10
|
FOLDER: string;
|
|
11
11
|
AUDIT: string;
|
|
12
|
+
RELATIONSHIP: string;
|
|
12
13
|
SOT: string;
|
|
13
14
|
};
|
|
14
15
|
export declare const SystemResult: {
|
|
@@ -30,6 +31,10 @@ export declare const RetentionField: {
|
|
|
30
31
|
RETENTION_START: string;
|
|
31
32
|
DESTRUCTION_DATE: string;
|
|
32
33
|
};
|
|
34
|
+
export declare const RelationshipTypeField: {
|
|
35
|
+
SOURCE_ID: string;
|
|
36
|
+
TARGET_ID: string;
|
|
37
|
+
};
|
|
33
38
|
export declare const BaseObjectTypeField: {
|
|
34
39
|
PARENT_ID: string;
|
|
35
40
|
PARENT_OBJECT_TYPE_ID: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ObjectTypeFieldInternalType, ObjectTypeFieldType } from
|
|
1
|
+
import { ObjectTypeFieldInternalType, ObjectTypeFieldType } from '../object-form/object-form.interface';
|
|
2
2
|
/**
|
|
3
3
|
* Virtual object types.
|
|
4
4
|
* They are a combination of an object type ID and/or a list of SOTs
|
|
@@ -17,6 +17,7 @@ export interface SystemDefinition {
|
|
|
17
17
|
lastModificationDate: any;
|
|
18
18
|
objectTypes: ObjectType[];
|
|
19
19
|
secondaryObjectTypes: SecondaryObjectType[];
|
|
20
|
+
relationships: Relationship[];
|
|
20
21
|
i18n: Localization;
|
|
21
22
|
allFields: Record<string, SchemaResponseFieldDefinition>;
|
|
22
23
|
}
|
|
@@ -43,6 +44,15 @@ export interface ObjectType extends _ObjectTypeBase {
|
|
|
43
44
|
static?: boolean;
|
|
44
45
|
}[];
|
|
45
46
|
}
|
|
47
|
+
export interface Relationship {
|
|
48
|
+
id: string;
|
|
49
|
+
label?: string;
|
|
50
|
+
allowedSourceTypes: string[];
|
|
51
|
+
allowedTargetTypes: string[];
|
|
52
|
+
fields: ObjectTypeField[];
|
|
53
|
+
}
|
|
54
|
+
export interface RelationshipType {
|
|
55
|
+
}
|
|
46
56
|
/**
|
|
47
57
|
* Interface providing secondary object type
|
|
48
58
|
*/
|
|
@@ -85,6 +95,7 @@ export interface SchemaResponse {
|
|
|
85
95
|
typeDocumentDefinition: SchemaResponseDocumentTypeDefinition[];
|
|
86
96
|
typeFolderDefinition: SchemaResponseFolderTypeDefinition[];
|
|
87
97
|
typeSecondaryDefinition: SchemaResponseDocumentTypeDefinition[];
|
|
98
|
+
typeRelationshipDefinition: SchemaResponseRelationDefinition[];
|
|
88
99
|
}
|
|
89
100
|
/**
|
|
90
101
|
* Interface for create the schema from the servers schema type definition response
|
|
@@ -102,6 +113,14 @@ export interface SchemaResponseTypeDefinition {
|
|
|
102
113
|
}[];
|
|
103
114
|
classification: string[];
|
|
104
115
|
}
|
|
116
|
+
export interface SchemaResponseRelationDefinition extends SchemaResponseTypeDefinition {
|
|
117
|
+
allowedSourceType: {
|
|
118
|
+
objectTypeReference: string;
|
|
119
|
+
}[];
|
|
120
|
+
allowedTargetType: {
|
|
121
|
+
objectTypeReference: string;
|
|
122
|
+
}[];
|
|
123
|
+
}
|
|
105
124
|
export type SchemaResponseFolderTypeDefinition = SchemaResponseTypeDefinition;
|
|
106
125
|
export interface SchemaResponseDocumentTypeDefinition extends SchemaResponseTypeDefinition {
|
|
107
126
|
contentStreamAllowed?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { AuthData } from './../auth/auth.service';
|
|
3
|
-
import { ClassificationEntry, GenericObjectType, Localization, ObjectType, ObjectTypeField, ObjectTypePermissions, SchemaResponse, SecondaryObjectType, SystemDefinition } from './system.interface';
|
|
3
|
+
import { ClassificationEntry, GenericObjectType, Localization, ObjectType, ObjectTypeField, ObjectTypePermissions, Relationship, SchemaResponse, SecondaryObjectType, SystemDefinition } from './system.interface';
|
|
4
4
|
import { ObjectTypeFieldInternalType } from '../object-form/object-form.interface';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
@@ -33,6 +33,7 @@ export declare class SystemService {
|
|
|
33
33
|
* @param withLabel Whether or not to also add the types label
|
|
34
34
|
*/
|
|
35
35
|
getSecondaryObjectType(objectTypeId: string, withLabel?: boolean): SecondaryObjectType | undefined;
|
|
36
|
+
getRelationship(id: string, withLabel?: boolean): Relationship | undefined;
|
|
36
37
|
/**
|
|
37
38
|
* Get the base document type all documents belong to
|
|
38
39
|
* @param withLabel Whether or not to also add the types label
|