first pass of update to Windream 8

This commit is contained in:
Jonathan Jenne
2023-06-15 09:52:03 +02:00
parent 234eb6726e
commit 200d6058cf
61 changed files with 3285 additions and 169235 deletions

View File

@@ -0,0 +1,60 @@
import
{
ResponseContainerDTO,
IdLocationNameIdentityDTO,
IdLocationNameIdentityResponseDTO
} from "./Windream.WebService";
export interface IAnnotationsControllerDTO
{
GetAnnotations(parameter: GetAnnotationsDTO): GetAnnotationsResponseContainerDTO;
Create(parameter: CreateAnnotationDTO): CreateAnnotationResponseContainerDTO;
}
export interface AnnotationContentDTO
{
Title: String;
Text: String;
}
export interface AnnotationDTO extends AnnotationContentDTO
{
CreationDate: String;
Creator: String;
CreatedByRequestingUser: Boolean;
Id: number;
}
export interface AnnotationResponseDTO
{
CreationDate: String;
Creator: String;
CreatedByRequestingUser: Boolean;
Id: number;
Title: String;
Text: String;
}
export interface CreateAnnotationDTO
{
Item: IdLocationNameIdentityDTO;
Annotation: AnnotationContentDTO;
}
export interface CreateAnnotationResponseContainerDTO extends ResponseContainerDTO
{
Annotation: AnnotationResponseDTO;
Item: IdLocationNameIdentityResponseDTO;
}
export interface GetAnnotationsDTO
{
Item: IdLocationNameIdentityDTO;
}
export interface GetAnnotationsResponseContainerDTO extends ResponseContainerDTO
{
Annotations: AnnotationResponseDTO[];
Item: IdLocationNameIdentityResponseDTO;
}

View File

@@ -0,0 +1,38 @@
import
{
AttributeResponseDTO,
NameValuePairDTO,
WSValueType,
ResponseContainerDTO,
ObjectTypeResponseContainerDTO
} from "./Windream.WebService";
export interface IAttributesController
{
GetAttributes(parameter: AttributeFlagsValuesDTO): GetAttributesResponseContainerDTO;
}
export const enum AttributeFlagsDTO
{
NonSortable = 256
}
export interface AttributeFlagsValuesDTO
{
AttributeFlags: AttributeFlagsDTO;
Values: string[];
}
export interface GetAttributesResponseContainerDTO extends ResponseContainerDTO
{
Attributes: AttributeResponseDTO[];
}
export interface GetAllAttributesResponseContainerDTO extends ResponseContainerDTO
{
RelationalAttributes: AttributeResponseDTO[];
SystemAttributes: AttributeResponseDTO[];
TypeSpecificAttributes: ObjectTypeResponseContainerDTO[];
VirtualAttributes: AttributeResponseDTO[];
}

View File

@@ -0,0 +1,6 @@
import { ResponseContainerDTO } from "./Windream.WebService";
export interface IAuthenticationController
{
Logout(): ResponseContainerDTO;
}

View File

@@ -0,0 +1,122 @@
import
{
AttributeDTO,
ResponseContainerDTO,
AttributeResponseDTO,
IdLocationNameIdentityDTO,
LocationNameIdentityDTO,
IdLocationNameIdentityResponseDTO,
ObjectTypeIdentityDTO,
ItemResponseContainerDTO,
ExistingItemIdentityDTO,
ResponseDetailsType,
WSAttributeFlags,
ItemEntityDTO,
NewItemIdentityDTO
} from './Windream.WebService';
export interface IDirectoriesController
{
Create(parameter: CreateDirectoryDTO): DirectoryResponseContainerDTO;
CreateBulk(parameters: CreateDirectoryDTO[]): DirectoryResponseContainerDTO[];
Delete(parameter: DeleteDirectoryDTO): DirectoryResponseContainerDTO;
DeleteBulk(parameters: DeleteDirectoryDTO[]): DirectoryResponseContainerDTO[];
Update(parameter: UpdateDirectoryDTO): DirectoryResponseContainerDTO;
UpdateBulk(parameters: UpdateDirectoryDTO[]): DirectoryResponseContainerDTO[];
GetDetails(id: Number): DirectoryResponseContainerDTO;
GetDetails(parameter: GetDirectoryDetailsDTO): DirectoryResponseContainerDTO;
GetDetailsBulk(parameters: GetDirectoryDetailsDTO[]): DirectoryResponseContainerDTO[];
GetSubObjects(parameter: GetSubObjectsDTO): ItemResponseContainerDTO[];
Move(parameter: MoveDirectoryDTO): DirectoryResponseContainerDTO;
MoveBulk(parameters: MoveDirectoryDTO[]): DirectoryResponseContainerDTO[];
Copy(parameter: CopyDirectoryDTO): DirectoryResponseContainerDTO;
CopyBulk(parameters: CopyDirectoryDTO[]): DirectoryResponseContainerDTO[];
}
export const enum CopyDirectoryFlags
{
FolderOnly = 0,
WithFiles = 2,
WithSubTree = 4
}
export const enum SubObjectFlags
{
None = 1,
IncludePreVersions = 2,
Recursive = 4
}
export interface CopyDirectoryDTO
{
Flags: CopyDirectoryFlags;
Item: IdLocationNameIdentityDTO;
Target: LocationNameIdentityDTO;
}
export interface CreateDirectoryDTO
{
CreateTree: boolean;
Item: NewDirectoryDTO;
ResponseDetails: ResponseDetailsType;
}
export interface DeleteDirectoryDTO
{
Item: IdLocationNameIdentityDTO;
Recursive: boolean;
ResponseDetails: ResponseDetailsType;
}
export interface DirectoryResponseContainerDTO extends ResponseContainerDTO
{
Item: DirectoryResponseDTO;
}
export interface DirectoryResponseDTO extends IdLocationNameIdentityResponseDTO
{
Attributes: AttributeResponseDTO[];
ObjectType: ObjectTypeIdentityDTO;
ParentWindreamObject: IdLocationNameIdentityResponseDTO;
}
export interface ExistingDirectoryIdentityDTO extends ExistingItemIdentityDTO
{
Attributes: AttributeDTO[];
ObjectType: ObjectTypeIdentityDTO;
}
export interface GetDirectoryDetailsDTO
{
AttributeFlags: WSAttributeFlags;
Item: IdLocationNameIdentityDTO;
Values: string[];
}
export interface GetSubObjectsDTO
{
Entity: ItemEntityDTO;
Filter: string;
Flags: SubObjectFlags;
Item: IdLocationNameIdentityDTO;
}
export interface MoveDirectoryDTO
{
Item: IdLocationNameIdentityDTO;
ResponseDetails: ResponseDetailsType;
Target: LocationNameIdentityDTO;
}
export interface NewDirectoryDTO extends NewItemIdentityDTO
{
Attributes: AttributeDTO[];
ObjectType: ObjectTypeIdentityDTO;
}
export interface UpdateDirectoryDTO
{
Item: ExistingDirectoryIdentityDTO;
ResponseDetails: ResponseDetailsType;
}

View File

@@ -0,0 +1,267 @@
import
{
AttributeResponseDTO,
AttributeDTO,
ResponseContainerDTO,
ItemContainerDTO,
LocationNameIdentityDTO,
IdLocationNameIdentityDTO,
ResponseDetailsType,
IdLocationNameEntityIdentityResponseDTO,
IdLocationNameIdentityResponseDTO,
ExistingItemIdentityDTO,
ObjectTypeIdentityDTO,
WSAttributeFlags,
NewItemIdentityDTO,
ItemResponseContainerDTO
} from "./Windream.WebService";
import { IndexingDetailsResponseDTO } from './Windream.WebService.Indexing';
export interface IDocumentsController
{
Create(parameter: CreateDocumentDTO): DocumentResponseContainerDTO;
CreateBulk(parameters: CreateDocumentDTO[]): DocumentResponseContainerDTO[];
Delete(parameter: DeleteDocumentDTO): DocumentResponseContainerDTO;
DeleteBulk(parameters: DeleteDocumentDTO[]): DocumentResponseContainerDTO[];
Update(parameter: UpdateDocumentDTO): DocumentResponseContainerDTO;
UpdateBulk(parameters: UpdateDocumentDTO[]): DocumentResponseContainerDTO[];
GetDetails(id: Number): DocumentResponseContainerDTO;
GetDetails(parameter: GetDocumentDetailsDTO): DocumentResponseContainerDTO;
GetDetailsBulk(parameters: GetDocumentDetailsDTO[]): DocumentResponseContainerDTO[];
GetHistory(parameters: GetDocumentDetailsDTO): HistoryResponseContainerDTO[];
Move(parameter: MoveDocumentDTO): DocumentResponseContainerDTO;
MoveBulk(parameters: MoveDocumentDTO[]): DocumentResponseContainerDTO[];
Copy(parameter: CopyDocumentDTO): DocumentResponseContainerDTO;
CopyBulk(parameters: CopyDocumentDTO[]): DocumentResponseContainerDTO[];
UndoCheckOut(parameter: DocumentItemContainerDTO): DocumentResponseContainerDTO;
UndoCheckOutBulk(parameters: DocumentItemContainerDTO[]): DocumentResponseContainerDTO[];
Archive(parameter: DocumentItemContainerDTO): DocumentResponseContainerDTO;
ArchiveBulk(parameters: DocumentItemContainerDTO[]): DocumentResponseContainerDTO[];
HtmlPreview(parameter: HtmlPreviewDTO): HtmlPreviewResponseContainerDTO;
Download(parameter: DownloadDocumentDTO): ResponseContainerDTO;
Upload(parameter: UploadDocumentDTO): DocumentResponseContainerDTO;
GetBinarySize(parameter: DocumentItemContainerDTO): DocumentResponseContainerDTO;
}
export const enum CopyDocumentFlags
{
DocumentOnly = 0,
WithPreVersions = 1
}
export const enum DeleteDocumentFlags
{
IncludePreVersions = 2
}
export const enum DownloadFlags
{
Checkout = 1
}
export const enum UploadFlags
{
CreateObject = 1,
CheckIn = 2,
CreateNewVersion = 4,
UseDefaultLocation = 8
}
export interface DownloadDocumentDTO
{
Flags: DownloadFlags;
Item: IdLocationNameIdentityDTO;
}
export interface DownloadIDocumentResponseContainerDTO extends ItemResponseContainerDTO
{
ContentLength: number;
Stream: any;
}
export interface UploadDocumentDTO
{
Flags: UploadFlags;
Item: IdLocationNameIdentityDTO;
Stream: any;
}
export interface UploadDocumentResponseContainerDTO extends DocumentResponseContainerDTO
{
IndexingDetails: IndexingDetailsResponseDTO;
}
export interface CopyDocumentDTO
{
Flags: CopyDocumentFlags;
Item: IdLocationNameIdentityDTO;
ResponseDetails: ResponseDetailsType;
Target: LocationNameIdentityDTO;
}
export interface CreateDocumentDTO
{
CreateFolder: boolean;
Item: NewDocumentDTO;
ResponseDetails: ResponseDetailsType;
}
export interface DeleteDocumentDTO
{
Flags: DeleteDocumentFlags;
Item: IdLocationNameIdentityDTO;
ResponseDetails: ResponseDetailsType;
}
export interface DocumentItemContainerDTO extends ItemContainerDTO
{
}
export interface DocumentResponseContainerDTO extends ResponseContainerDTO
{
Item: DocumentResponseDTO;
}
export interface DocumentResponseDTO extends IdLocationNameEntityIdentityResponseDTO
{
Attributes: AttributeResponseDTO[];
ObjectType: ObjectTypeIdentityDTO;
ParentWindreamObject: IdLocationNameIdentityResponseDTO;
}
export interface ExistingDocumentDTO extends ExistingItemIdentityDTO
{
Attributes: AttributeDTO[];
ObjectType: ObjectTypeIdentityDTO;
}
export interface GetDocumentDetailsDTO
{
AttributeFlags: WSAttributeFlags;
Item: IdLocationNameIdentityDTO;
Values: string[];
}
export interface MoveDocumentDTO
{
IncludePreVersions: boolean;
Item: IdLocationNameIdentityDTO;
ResponseDetails: ResponseDetailsType;
Target: LocationNameIdentityDTO;
}
export interface NewDocumentDTO extends NewItemIdentityDTO
{
Attributes: AttributeDTO[];
ObjectType: ObjectTypeIdentityDTO;
}
export interface UpdateDocumentDTO
{
CreateNewVersion: boolean;
Item: ExistingDocumentDTO;
ResponseDetails: ResponseDetailsType;
}
export interface HistoryResponseContainerDTO extends DocumentResponseContainerDTO
{
History: HistoryItemResponseDTO[];
CanAddNewEntries: boolean;
}
export interface HistoryItemResponseDTO
{
HistoryDate: string;
HistoryCreatorName: string;
HistoryAction: string;
HistoryComment: string;
}
export interface HistoryItemContainerDTO
{
HistoryComment: string;
Item: IdLocationNameIdentityDTO;
}
export interface HtmlPreviewDTO
{
AbsoluteCacheDir: string;
AbsoluteTemplatePath: string;
FontDpi: number;
GraphicType: GraphicType;
HttpUrlPrefix: string;
Item: IdLocationNameIdentityDTO;
JpegQuality: number;
NumberOfPages: number;
Resolution: ResolutionDTO;
}
export interface HtmlPreviewResponseContainerDTO extends ItemResponseContainerDTO
{
PreviewUrl: string;
}
export interface ResolutionDTO
{
Height: number;
Width: number;
}
export const enum GraphicType
{
Undefined = 0,
Jpeg = 1,
Gif = 2,
Png = 3
}
export const enum LifecyclePeriodNorms {
None = 131072,
MonthFirst = 262144,
MonthLast = 524288,
QuarterFirst = 1048576,
QuarterLast = 2097152,
YearFirst = 4194304,
YearLast = 8388608
}
export const enum LifecyclePeriodUnits {
Day = 16777216,
Week = 33554432,
Month = 67108864,
Year = 134217728
}
export const enum LifecyclePeriodBases {
EndEditPeriod = 1,
Created = 16384,
Updated = 32768,
EndPreviousPeriod = 65536
}
export interface LifecycleParameterDTO {
Start: string,
End: string,
Norm: LifecyclePeriodNorms;
Unit: LifecyclePeriodUnits;
Period: number;
PeriodBase: LifecyclePeriodBases;
IsLifeCycleRuleChanged: boolean;
IsManualChanged: boolean;
IsManualEdit: boolean;
IsManualMove: boolean;
IsNoAutoMove: boolean;
IsNoSelfContained: boolean;
}
export interface LifecycleResponseContainerDTO extends ResponseContainerDTO {
Document: LifecycleResponseDTO;
ObjectType: LifecycleResponseDTO;
}
export interface LifecycleResponseDTO {
Editable: LifecycleParameterDTO;
Archived: LifecycleParameterDTO;
}

View File

@@ -0,0 +1,71 @@
import
{
IdLocationNameIdentityDTO,
ResponseContainerDTO
} from "./Windream.WebService";
import { DocumentResponseDTO } from "./Windream.WebService.Documents";
import { AttributeFlagsValuesDTO } from "./Windream.WebService.Attributes";
export interface IFavoritesControllerDTO
{
GetMyWindreamFolders(): MyWindreamFolderResponseContainerDTO[];
GetFavorites(parameter: GetFavoritesContentDTO): FavoritesItemResponseContainerDTO[];
AddFavorites(parameter: SetFavoritesContentDTO): FavoritesItemResponseContainerDTO[];
RemoveFavorites(parameter: SetFavoritesContentDTO): FavoritesItemResponseContainerDTO[];
}
export enum MyWindreamSections
{
Undefined = 0,
Global = 1,
Private = 2
}
export enum MyWindreamObjectTypes
{
Undefined = 0,
Folder = 1,
FavoritesFolder = 4,
RecycleBin = 9,
PrivateFolder = 11,
PrivateUser = 12
}
export interface FavoritesFolderIdentityDTO
{
MyWindreamSection: MyWindreamSections;
Location: String;
}
export interface FavoritesItemResponseContainerDTO extends ResponseContainerDTO
{
Item: DocumentResponseDTO;
FavoritesFolder: FavoritesFolderIdentityDTO;
}
export interface GetFavoritesContentDTO extends AttributeFlagsValuesDTO
{
FavoritesFolder: FavoritesFolderIdentityDTO;
}
export interface MyWindreamFolderResponseContainerDTO extends ResponseContainerDTO
{
Item: NodeLeafResponseDTO;
}
export interface NodeLeafResponseDTO
{
MyWindreamType: MyWindreamObjectTypes;
NodeLeafId: number;
ParentId: number;
Name: String;
DisplayName: String;
}
export interface SetFavoritesContentDTO
{
Items: IdLocationNameIdentityDTO;
FavoritesFolder: FavoritesFolderIdentityDTO;
}

View File

@@ -0,0 +1,4 @@
export interface IndexingDetailsResponseDTO
{
IndexEventRequired: boolean;
}

View File

@@ -0,0 +1,12 @@
import { ItemResponseContainerDTO } from "./Windream.WebService";
export interface IJournalControllerDTO
{
GetLastModifiedDocuments(parameter: GetLastModifiedDocumentsDTO): ItemResponseContainerDTO[];
}
export interface GetLastModifiedDocumentsDTO
{
NumberOfResults: number;
}

View File

@@ -0,0 +1,49 @@
import
{
IdLocationNameIdentityDTO,
IdLocationNameEntityIdentityResponseDTO,
ItemResponseDTO,
ObjectTypeIdentityDTO,
ResponseContainerDTO,
SortConditionDTO,
IdLocationNameEntityIdentityDTO
} from "./Windream.WebService";
export interface INavigationControllerDTO
{
FetchNodes(parameter: FetchNodesDTO): FetchNodesResponseContainerDTO;
FullRootlineFetchNodes(parameter: FetchNodesDTO): FullRootlineFetchNodesResponseContainerDTO;
}
export interface FetchNodesDTO
{
Item: IdLocationNameEntityIdentityDTO;
Sorting: SortConditionDTO;
Values: String[];
}
export interface FetchNodesResponseContainerDTO extends ResponseContainerDTO
{
Rootline: IdLocationNameEntityIdentityResponseDTO[];
Children: ItemResponseDTO[];
Item: ItemResponseDTO;
}
export interface FullRootlineFetchNodesResponseContainerDTO extends ResponseContainerDTO
{
Rootline: FullRootlineWSObjectIdentityDTO[];
Children: ItemResponseDTO[];
Item: ItemResponseDTO;
}
export interface FullRootlineWSObjectIdentityDTO extends IdLocationNameEntityIdentityResponseDTO
{
Children: RootlineChildItemDTO[];
ObjectType: ObjectTypeIdentityDTO;
}
export interface RootlineChildItemDTO extends IdLocationNameEntityIdentityResponseDTO
{
ObjectType: ObjectTypeIdentityDTO;
}

View File

@@ -0,0 +1,161 @@
import
{
AttributeResponseDTO,
IdNameIdentityDTO,
ObjectTypeEntityDTO,
ResponseContainerDTO,
WSAttributeFlags,
WSValueType,
VectorDetailsDTO
} from './Windream.WebService';
export interface IObjectTypesController
{
GetIndexMaskData(parameter: GetIndexMaskDataDTO): IndexMaskDataResponseContainerDTO;
GetObjectType(parameter: IGetObjectTypeDTO): IObjectTypeResponseContainerDTO;
GetObjectTypes(): IObjectTypeResponseContainerDTO[];
}
export interface GetIndexMaskDataDTO
{
Item: ObjectTypeIdentityDTO;
IndexMaskMode?: IndexMaskModes;
}
export interface IndexMaskDataResponseContainerDTO extends ResponseContainerDTO
{
TabPages: IndexMaskTabPageResponseDTO[];
}
export interface IndexMaskTabPageResponseDTO
{
Id: number;
Name: String;
Title: String;
ScriptTrigger: IndexMaskScriptTriggerDTO;
Elements: ElementResponseDTO[];
Styles: StylesResponseDTO;
}
export interface ElementResponseDTO
{
Id: String;
LabelFor?: String;
LabelRef?: String;
TabPageId: number;
Type: IndexMaskElementTypes;
Index: IndexResponseDTO;
Title: String;
ScriptTrigger: IndexMaskScriptTriggerDTO;
TabOrder: number;
Name: String;
IsReadOnly: Boolean;
Position: ElementPositionResponseDTO;
Size: ElementSizeResponseDTO;
Styles: StylesResponseDTO;
Min?: number;
Max?: number;
MaxLength?: number;
Values: Object[];
}
export interface ElementSizeResponseDTO
{
Width: number;
Height: number;
}
export interface IGetObjectTypeDTO
{
AttributeFlags: WSAttributeFlags;
Item: ObjectTypeIdentityDTO;
Values: string[];
}
export interface ObjectTypeFullIdentityDTO extends IdNameIdentityDTO
{
Entity: ObjectTypeEntityDTO;
}
export interface ObjectTypeIdentityDTO extends IdNameIdentityDTO
{
}
export interface IObjectTypeResponseContainerDTO extends ResponseContainerDTO
{
Item: IObjectTypeResponseDTO;
}
export interface IObjectTypeResponseDTO extends ObjectTypeFullIdentityDTO
{
Attributes: AttributeResponseDTO[];
ObjectType: ObjectTypeFullIdentityDTO;
}
export enum IndexMaskModes
{
Default = 0,
Indexing = 1,
Searching = 2
}
export enum IndexMaskElementTypes
{
Undefined = 0,
Image = 1,
Label = 2,
Frame = 3,
TextBox = 4,
TextArea = 5,
Button = 6,
CheckBox = 7,
ListBox = 8,
ComboBox = 9,
DropDownList = 10,
DatePicker = 11,
Clipboard = 12,
Option = 13,
CheckBoxList = 14,
List = 15,
FlexGrid = 16,
TimePicker = 17,
DateTimePicker = 18
}
export interface ElementPositionResponseDTO
{
X: number;
Y: number;
}
export interface IndexMaskScriptTriggerDTO
{
OnBlur: Boolean;
OnFocus: Boolean;
OnChange: Boolean;
OnClick: Boolean;
}
export interface IndexResponseDTO
{
Column: String;
GlobalName: String;
ObjectTypeSpecificName: String;
DisplayName: String;
Type: WSValueType;
UnderlyingType?: WSValueType;
IsRequired: Boolean;
IsReadOnly: Boolean;
DefaultValue: Object;
VectorDetails?: VectorDetailsDTO;
}
export interface StylesResponseDTO
{
BackgroundImage: String;
BackgroundColor: String;
TextColor: String;
}

View File

@@ -0,0 +1,124 @@
import
{
SortDirection,
ResponseContainerDTO,
IdLocationNameEntityIdentityDTO,
BaseEntityDTO,
ItemResponseDTO,
SortConditionDTO
} from "./Windream.WebService";
export interface ISearchController
{
Search(parameter: SearchDTO): SearchResponseContainerDTO;
GetResult(parameter: GetSearchResultDTO): SearchResponseContainerDTO;
DisposeSearch(parameter: DisposeSearchDTO): ResponseContainerDTO;
}
export const enum SearchAttributeFlagsDTO
{
Default = 0,
Objecttype = 2,
Values = 16,
System = 32,
OnlySearchable = 128
}
export const enum SearchMode
{
Undefined = 0,
Synchronous = 1,
Asynchronous = 2
}
export const enum SearchOperator
{
Undefined = 0,
Equal = 1,
NotEqual = 2,
Lesser = 3,
Greater = 4,
LesserEqual = 5,
GreaterEqual = 6,
StringLike = 7,
BitSet = 8,
BitNotSet = 9,
In = 10,
NotIn = 11,
Exists = 12,
NotExists = 13,
StringNotLike = 14,
InSubTree = 15,
NotInSubTree = 16,
SetExactMatch = 17,
NotSetExactMatch = 18,
SetMatchesAny = 19,
NotSetMatchesAny = 20,
SetMatchesAll = 21,
NotSetMatchesAll = 22,
FulltextSpecial = 23,
Between = 24,
BetweenEqual = 25
}
export const enum SearchRelation
{
Undefined = 0,
And = 1,
Or = 2,
GroupBy = 3,
Having = 4
}
export const enum SearchState
{
Searching = 0,
Finished = 1,
Error = 2,
Extracting = 3
}
export interface DisposeSearchDTO
{
ResultId: String;
}
export interface GetSearchResultDTO
{
Amount: number;
DisposeResult: boolean;
Offset: number;
SearchId: String;
}
export interface SearchConditionDTO
{
AutoWildcards?: boolean;
Column?: string;
LeftBrackets?: number;
Name?: string;
RightBrackets?: number;
SearchOperator: SearchOperator;
SearchRelation?: SearchRelation;
Value: any | null;
SubItems?: IdLocationNameEntityIdentityDTO[];
}
export interface SearchDTO
{
AttributeFlags?: SearchAttributeFlagsDTO;
Conditions: SearchConditionDTO[];
Entity: BaseEntityDTO;
Mode: SearchMode;
Sorting?: SortConditionDTO;
Values?: string[];
}
export interface SearchResponseContainerDTO extends ResponseContainerDTO
{
Count: number;
Result: ItemResponseDTO[];
ResultId: String;
State: SearchState;
}

View File

@@ -0,0 +1,252 @@
// As found in WINDREAMLib
export const enum WMObjectStatus
{
WMObjectStatusCreated = 0,
WMObjectStatusLocked = 1,
WMObjectStatusDeleted = 2,
WMObjectStatusNew = 4,
WMObjectStatusIndexEdit = 4,
WMObjectStatusSaved = 8,
WMObjectStatusSystemEdit = 8,
WMObjectStatusReadOnly = 16,
WMObjectStatusDirty = 32,
WMObjectStatusVirtual = 64,
WMObjectStatusNoContentRead = 64,
WMObjectStatusAdminEdit = 128,
WMObjectStatusTTSUserDeleted = 128,
WMObjectStatusEdit = 256,
WMObjectStatusNoIndex = 512,
WMObjectStatusHasExtension = 1024,
WMObjectStatusLoggedIn = 1024,
WMObjectStatusAttrDBIndex = 1024,
WMObjectStatusPreVersion = 2048,
WMObjectStatusFulltextNeed = 4096,
WMObjectStatusMainUser = 4096,
WMObjectStatusArchived = 8192,
WMObjectStatusDelegateUser = 8192,
WMObjectStatusRefresh = 16384,
WMObjectStatusWorkLockEditOnly = 16384,
WMObjectStatusNoRights = 32768,
WMObjectStatusTemporary = 65536,
WMObjectStatusFulltextError = 131072,
WMObjectStatusPermanentLock = 262144,
WMObjectStatusRelationLock = 524288,
WMObjectStatusOTArchivedEditable = 524288,
WMObjectStatusMarkedForArchive = 1048576,
WMObjectStatusManualArchived = 2097152,
WMObjectStatusObjectDefault = 2097152,
WMObjectStatusSBX = 4194304,
WMObjectStatusTypeAssigned = 4194304,
WMObjectStatusCheckOutEditOnly = 8388608,
WMObjectStatusOwnerRights = 8388608,
WMObjectStatusVersionable = 16777216,
WMObjectStatusInUse = 16777216,
WMObjectStatusInactive = 33554432,
WMObjectStatusManualFulltext = 33554432,
WMObjectStatusAsyncProxyBinary = 33554432,
WMObjectStatusBinaryReadOnly = 67108864,
WMObjectStatusArchiveCertified = 67108864,
WMObjectStatusParentOwnerRights = 67108864,
WMObjectStatusUserWorkLock = 134217728,
WMObjectStatusExternalHistory = 268435456,
WMObjectStatusSubscribe = 268435456,
WMObjectStatusLifeCycleEditDenied = 536870912,
WMObjectStatusHSMBinary = 1073741824
}
export const enum WSAttributeFlags
{
Default = 0,
Objecttype = 2,
Parent = 4,
ValuesOnly = 8,
Values = 16,
System = 32,
IndexmaskData = 64,
OnlySearchable = 128,
NonSortable = 256,
Virtual = 512,
Global = 1024
}
export const enum WSValueType
{
Undefined = 0,
Int = 1,
Int64 = 2,
String = 3,
Double = 4,
Vector = 5,
Boolean = 6,
Float = 7,
DateTime = 8,
Date = 9,
Decimal = 10
}
export const enum BaseEntityDTO
{
DocumentAndMap = 0,
Document = 1,
Folder = 2
}
export const enum ItemEntityDTO
{
DocumentAndMap = 0,
Document = 1,
Folder = 2
}
export interface ExistingItemIdentityDTO extends IdLocationNameIdentityDTO
{
}
export interface IdLocationNameEntityIdentityDTO extends IdLocationNameIdentityDTO
{
Entity: BaseEntityDTO;
}
export interface IdLocationNameEntityIdentityResponseDTO extends IdLocationNameIdentityResponseDTO
{
Entity: BaseEntityDTO;
}
export interface IdLocationNameIdentityDTO extends LocationNameIdentityDTO
{
Id: number;
}
export interface IdLocationNameIdentityResponseDTO extends IdLocationNameIdentityDTO
{
LocationComplete: string;
}
export interface IdNameIdentityDTO extends NameIdentityDTO
{
Id: number;
}
export interface ItemContainerDTO
{
Item: IdLocationNameIdentityDTO;
}
export interface ItemResponseDTO extends IdLocationNameEntityIdentityResponseDTO
{
Attributes: AttributeResponseDTO[];
ObjectType: ObjectTypeIdentityDTO;
ParentWindreamObject: IdLocationNameEntityIdentityResponseDTO;
}
export interface LocationNameIdentityDTO extends NameIdentityDTO
{
Location: string;
}
export interface NameIdentityDTO
{
Name: string;
}
export interface NameValuePairDTO extends NameIdentityDTO
{
Value: any;
}
export interface NewItemIdentityDTO extends LocationNameIdentityDTO
{
}
export interface VectorDetailsDTO
{
EntriesLimit?: number;
}
export interface AttributeResponseDTO
{
DisplayName: string;
IsSortable: boolean;
IsSystem: boolean;
Name: string;
Type: WSValueType;
UnderlyingType?: WSValueType;
Value: any;
VectorDetails?: VectorDetailsDTO;
}
export interface AttributeDTO extends NameValuePairDTO
{
}
export interface ErrorResponseDTO
{
ErrorCode: number;
Message: string;
}
export const enum ObjectTypeEntityDTO
{
DocumentAndMap = 0,
Document = 1,
Folder = 2,
ObjectType = 10
}
export interface GetObjectTypeDTO
{
AttributeFlags: WSAttributeFlags;
Item: ObjectTypeIdentityDTO;
Values: string[];
}
export interface ObjectTypeFullIdentityDTO extends IdNameIdentityDTO
{
Entity: ObjectTypeEntityDTO;
}
export interface ObjectTypeIdentityDTO extends IdNameIdentityDTO
{
}
export interface ObjectTypeResponseContainerDTO extends ResponseContainerDTO
{
Item: ObjectTypeResponseDTO;
}
export interface ObjectTypeResponseDTO extends ObjectTypeFullIdentityDTO
{
Attributes: AttributeResponseDTO[];
ObjectType: ObjectTypeFullIdentityDTO;
}
export const enum ResponseDetailsType
{
Always = 0,
Failed = 1,
Succeeded = 2,
None = 3
}
export interface ItemResponseContainerDTO extends ResponseContainerDTO
{
Item: IdLocationNameEntityIdentityResponseDTO;
}
export interface ResponseContainerDTO
{
Error?: ErrorResponseDTO;
HasErrors: boolean;
}
export const enum SortDirection
{
Ascending = 0,
Descending = 1
}
export interface SortConditionDTO
{
AttributeName: string;
Direction: SortDirection;
}