From bab4fd2882ec3c312a0829dfd900280e46cc1636 Mon Sep 17 00:00:00 2001 From: Markus Mauch Date: Fri, 11 Mar 2016 16:41:34 +0100 Subject: [PATCH] Added a lot of Metadata Typings --- microsoft-sdk-soap/microsoft-sdk-soap.d.ts | 179 ++++++++++++++++----- 1 file changed, 143 insertions(+), 36 deletions(-) diff --git a/microsoft-sdk-soap/microsoft-sdk-soap.d.ts b/microsoft-sdk-soap/microsoft-sdk-soap.d.ts index 217710aac3..c3100e69b5 100644 --- a/microsoft-sdk-soap/microsoft-sdk-soap.d.ts +++ b/microsoft-sdk-soap/microsoft-sdk-soap.d.ts @@ -2657,22 +2657,22 @@ declare module Sdk.Mdq export interface IEntityMetadata { - ActivityTypeMask: any; + ActivityTypeMask: number; Attributes: IAttributeMetadata[]; AutoCreateAccessTeams: any; AutoRouteToOwnerQueue: boolean; - CanBeInManyToMany: boolean; - CanBePrimaryEntityInRelationship: boolean; - CanBeRelatedEntityInRelationship: boolean; - CanCreateAttributes: boolean; - CanCreateCharts: boolean; - CanCreateForms: boolean; - CanCreateViews: boolean; - CanModifyAdditionalSettings: boolean; + CanBeInManyToMany: ManagedProperty; + CanBePrimaryEntityInRelationship: ManagedProperty; + CanBeRelatedEntityInRelationship: ManagedProperty; + CanCreateAttributes: ManagedProperty; + CanCreateCharts: ManagedProperty; + CanCreateForms: ManagedProperty; + CanCreateViews: ManagedProperty; + CanModifyAdditionalSettings: ManagedProperty; CanTriggerWorkflow: boolean; - Description: string; - DisplayCollectionName: string; - DisplayName: string; + Description: Label; + DisplayCollectionName: Label; + DisplayName: Label; IconLargeName: string; IconMediumName: string; IconSmallName: string; @@ -2680,60 +2680,145 @@ declare module Sdk.Mdq IsActivity: boolean; IsActivityParty: boolean; IsAIRUpdated: boolean; - IsAuditEnabled: boolean; + IsAuditEnabled: ManagedProperty; IsAvailableOffline: boolean; IsBusinessProcessEnabled: boolean; IsChildEntity: boolean; - IsConnectionsEnabled: boolean; + IsConnectionsEnabled: ManagedProperty; IsCustomEntity: boolean; - IsCustomizable: boolean; + IsCustomizable: ManagedProperty; IsDocumentManagementEnabled: boolean; - IsDuplicateDetectionEnabled: boolean; + IsDuplicateDetectionEnabled: ManagedProperty; IsEnabledForCharts: boolean; IsImportable: boolean; IsIntersect: boolean; - IsMailMergeEnabled: boolean; + IsMailMergeEnabled: ManagedProperty; IsManaged: boolean; - IsMappable: boolean; + IsMappable: ManagedProperty; IsQuickCreateEnabled: boolean; IsReadingPaneEnabled: boolean; IsRenameable: boolean; IsValidForAdvancedFind: boolean; - IsValidForQueue: boolean; - IsVisibleInMobile: boolean; + IsValidForQueue: ManagedProperty; + IsVisibleInMobile: ManagedProperty; IsVisibleInMobileClient: boolean; LogicalName: string; - ManyToManyRelationships: any; - ManyToOneRelationships: any; + ManyToManyRelationships: ManyToManyRelationshipMetadata; + ManyToOneRelationships: OneToManyRelationshipMetadata; MetadataId: string; ObjectTypeCode: number; - OneToManyRelationships: any; - OwnershipType: string; + OneToManyRelationships: OneToManyRelationshipMetadata; + OwnershipType: "BusinessOwned" | "BusinessParented" | "None OrganizationOwned" | "TeamOwned UserOwned"; PrimaryIdAttribute: string; PrimaryImageAttribute: string; PrimaryNameAttribute: string; - Privileges: any; + Privileges: SecurityPrivilegeMetadata[]; RecurrenceBaseEntityLogicalName: string; ReportViewName: string; SchemaName: string; } + export interface SecurityPrivilegeMetadata + { + CanBeBasic: boolean; + CanBeDeep: boolean; + CanBeEntityReference: boolean; + CanBeGlobal: boolean; + CanBeLocal: boolean; + CanBeParentEntityReference: boolean; + ExtensionData: boolean; + Name: string; + PrivilegeId: string; + PrivilegeType: "Append" | "AppendTo" | "Assign" | "Create" | "Delete" | "None" | "Read" | "Share" | "Write"; + } + + export interface OneToManyRelationshipMetadata + { + AssociatedMenuConfiguration: AssociatedMenuConfiguration; + CascadeConfiguration: CascadeConfiguration; + HasChanged: any; + IntroducedVersion: any; + IsCustomizable: ManagedProperty; + IsCustomRelationship: boolean; + IsHierarchical: any; + IsManaged: boolean; + IsValidForAdvancedFind: boolean; + MetadataId: string; + ReferencedAttribute: string; + ReferencedEntity: string; + ReferencingAttribute: string; + ReferencingEntity: string; + RelationshipType: string; + SchemaName: string; + SecurityTypes: any; + } + + export interface CascadeConfiguration + { + Assign: CascadeType; + Delete: CascadeType; + ExtensionData: CascadeType; + Merge: CascadeType; + Reparent: CascadeType; + Share: CascadeType; + Unshare: CascadeType; + } + + export type CascadeType = "Active" | "Cascade" | "NoCascade" | "UserOwned"; + + export interface ManyToManyRelationshipMetadata + { + Entity1AssociatedMenuConfiguration: AssociatedMenuConfiguration; + Entity1IntersectAttribute: string; + Entity1LogicalName: string; + Entity2AssociatedMenuConfiguration: AssociatedMenuConfiguration; + Entity2IntersectAttribute: string; + Entity2LogicalName: string; + HasChanged: boolean; + IntersectEntityName: string; + IntroducedVersion: any; + IsCustomizable: ManagedProperty; + IsCustomRelationship: boolean; + IsManaged: boolean; + IsValidForAdvancedFind: boolean; + MetadataId: string; + RelationshipType: RelationshipType; + SchemaName: string; + SecurityTypes: SecurityType; + } + + export interface AssociatedMenuConfiguration + { + Behavior: AssociatedMenuBehavior; + Group: AssociatedMenuGroup; + Label: Label; + Order: number; + } + + export type AssociatedMenuBehavior = "DoNotDisplay" | "UseCollectionName" | "UseLabel"; + + export type AssociatedMenuGroup = "Details" | "Marketing" | "Sales" | "Service"; + + export type RelationshipType = "Default" | "ManyToManyRelationship" | "OneToManyRelationship"; + + export type SecurityType = "Append" | "Inheritance" | "None" | "ParentChild" | "Pointer"; + export interface IAttributeMetadata { - AttributeOf: any; - AttributeType: any; - AttributeTypeName: string; + AttributeOf: string; + AttributeType: "Customer" | "DateTime" | "Decimal" | "Double" | "EntityName" | "Integer" | "Lookup" | "ManagedProperty" | "Memo" | "Money" | "Owner" | "PartyList" | "Picklist" | "State" | "Status" | "Uniqueidentifier" | "Virtual" + AttributeTypeName: "BigIntType" | "BooleanType" | "CalendarRulesType" | "CustomerType" | "DateTimeType" | "DecimalType" | "DoubleType" | "EntityNameType" | "ImageType" | "IntegerType" | "LookupType" | "ManagedPropertyType" | "MemoType" | "MoneyType" | "OwnerType" | "PartyListType" | "PicklistType" | "StateType StatusType" | "StringType" | "UniqueidentifierType" | "VirtualType"; CalculationOf: any; CanBeSecuredForCreate: boolean; CanBeSecuredForRead: boolean; CanBeSecuredForUpdate: boolean; - CanModifyAdditionalSettings: boolean; + CanModifyAdditionalSettings: ManagedProperty; ColumnNumber: number; DefaultFormValue: any; DefaultValue: any; DeprecatedVersion: any; - Description: string; - DisplayName: string; + Description: Label; + DisplayName: Label; EntityLogicalName: string; Format: any; FormatName: string; @@ -2741,13 +2826,13 @@ declare module Sdk.Mdq IntroducedVersion: any; IsAuditEnabled: boolean; IsCustomAttribute: boolean; - IsCustomizable: boolean; + IsCustomizable: ManagedProperty; IsManaged: boolean; IsPrimaryId: boolean; IsPrimaryName: boolean; - IsRenameable: boolean; + IsRenameable: ManagedProperty; IsSecured: boolean; - IsValidForAdvancedFind: boolean; + IsValidForAdvancedFind: ManagedProperty; IsValidForCreate: boolean; IsValidForRead: boolean; IsValidForUpdate: boolean; @@ -2760,12 +2845,34 @@ declare module Sdk.Mdq OptionSet: any; Precision: any; PrecisionSource: any; - RequiredLevel: any; + RequiredLevel: ManagedProperty; SchemaName: string; Targets: string[]; YomiOf: any; } + export interface ManagedProperty + { + CanBeChanged: boolean; + ManagedPropertyLogicalName: string; + Value: T; + } + + export interface Label + { + LocalizedLabels: LocalizedLabel[]; + UserLocalizedLabel: LocalizedLabel; + } + + export interface LocalizedLabel + { + Label: string; + LangaugeCode: number; + MetadataId: string; + HasChanged: boolean; + IsManaged: boolean; + } + module ValueEnums { export enum OwnershipType @@ -2860,4 +2967,4 @@ declare module Sdk.Mdq } declare module Sdk.Mdq.ValueEnums -{ } +{ } \ No newline at end of file