import { Base } from "../../"; import { SP } from "../../"; /********************************************* * IWorkflowDefinition **********************************************/ export interface IWorkflowDefinition extends WorkflowDefinitionCollections, WorkflowDefinitionMethods, Base.IBaseQuery { } /********************************************* * IWorkflowDefinitionCollection **********************************************/ export interface IWorkflowDefinitionCollection extends Base.IBaseResults, WorkflowDefinitionCollectionMethods { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IWorkflowDefinitionQueryCollection **********************************************/ export interface IWorkflowDefinitionQueryCollection extends Base.IBaseResults, WorkflowDefinitionCollectionMethods { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IWorkflowDefinitionQuery **********************************************/ export interface IWorkflowDefinitionQuery extends WorkflowDefinitionOData, WorkflowDefinitionMethods { } /********************************************* * WorkflowDefinition **********************************************/ export interface WorkflowDefinition extends Base.IBaseResult, WorkflowDefinitionProps, WorkflowDefinitionCollections, WorkflowDefinitionMethods { } /********************************************* * WorkflowDefinitionProps **********************************************/ export interface WorkflowDefinitionProps { AssociationUrl?: string; Description?: string; DisplayName?: string; DraftVersion?: string; FormField?: string; Id?: any; InitiationUrl?: string; Properties?: { results: Array }; Published?: boolean; RequiresAssociationForm?: boolean; RequiresInitiationForm?: boolean; RestrictToScope?: string; RestrictToType?: string; Xaml?: string; } /********************************************* * WorkflowDefinitionPropMethods **********************************************/ export interface WorkflowDefinitionPropMethods { } /********************************************* * WorkflowDefinitionCollections **********************************************/ export interface WorkflowDefinitionCollections extends WorkflowDefinitionPropMethods { } /********************************************* * WorkflowDefinitionCollectionMethods **********************************************/ export interface WorkflowDefinitionCollectionMethods { sort(): Base.IBaseExecution; } /********************************************* * WorkflowDefinitionOData **********************************************/ export interface WorkflowDefinitionOData extends Base.IBaseResult, WorkflowDefinitionProps, WorkflowDefinitionMethods { } /********************************************* * WorkflowDefinitionMethods **********************************************/ export interface WorkflowDefinitionMethods { setProperty(propertyName?: string, value?: string): Base.IBaseExecution; } /********************************************* * IWorkflowDeploymentService **********************************************/ export interface IWorkflowDeploymentService extends WorkflowDeploymentServiceCollections, WorkflowDeploymentServiceMethods, Base.IBaseQuery { } /********************************************* * IWorkflowDeploymentServiceCollection **********************************************/ export interface IWorkflowDeploymentServiceCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IWorkflowDeploymentServiceQueryCollection **********************************************/ export interface IWorkflowDeploymentServiceQueryCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IWorkflowDeploymentServiceQuery **********************************************/ export interface IWorkflowDeploymentServiceQuery extends WorkflowDeploymentServiceOData, WorkflowDeploymentServiceMethods { } /********************************************* * WorkflowDeploymentService **********************************************/ export interface WorkflowDeploymentService extends Base.IBaseResult, WorkflowDeploymentServiceProps, WorkflowDeploymentServiceCollections, WorkflowDeploymentServiceMethods { } /********************************************* * WorkflowDeploymentServiceProps **********************************************/ export interface WorkflowDeploymentServiceProps { Id4a81de82eeb94d6080ea5bf63e27023a?: string; } /********************************************* * WorkflowDeploymentServicePropMethods **********************************************/ export interface WorkflowDeploymentServicePropMethods { } /********************************************* * WorkflowDeploymentServiceCollections **********************************************/ export interface WorkflowDeploymentServiceCollections extends WorkflowDeploymentServicePropMethods { } /********************************************* * WorkflowDeploymentServiceOData **********************************************/ export interface WorkflowDeploymentServiceOData extends Base.IBaseResult, WorkflowDeploymentServiceProps, WorkflowDeploymentServiceMethods { } /********************************************* * WorkflowDeploymentServiceMethods **********************************************/ export interface WorkflowDeploymentServiceMethods { deleteCollateral(workflowDefinitionId?: any, leafFileName?: string): Base.IBaseExecution; deleteDefinition(definitionId?: any): Base.IBaseExecution; deprecateDefinition(definitionId?: any): Base.IBaseExecution; enumerateDefinitions(publishedOnly?: boolean): Base.IBaseCollection & SP.WorkflowServices.WorkflowDefinitionCollectionMethods; enumerateIntegratedApps(): Base.IBaseCollection; getActivitySignatures(lastChanged?: any): Base.IBaseCollection; getCollateralUri(workflowDefinitionId?: any, leafFileName?: string): Base.IBaseExecution; getDefinition(definitionId?: any): Base.IBaseExecution; isIntegratedApp(): Base.IBaseExecution; packageDefinition(definitionId?: any, packageDefaultFilename?: string, packageTitle?: string, packageDescription?: string): Base.IBaseExecution; publishDefinition(definitionId?: any): Base.IBaseExecution; saveCollateral(workflowDefinitionId?: any, leafFileName?: string, fileContent?: any): Base.IBaseExecution; validateActivity(activityXaml?: string): Base.IBaseExecution; } /********************************************* * WorkflowInstance **********************************************/ export interface WorkflowInstance { FaultInfo?: string; Id?: any; InstanceCreated?: any; LastUpdated?: any; Properties?: { results: Array }; Status?: number; UserStatus?: string; WorkflowSubscriptionId?: any; } /********************************************* * WorkflowInstanceCollections **********************************************/ export interface WorkflowInstanceCollections { } /********************************************* * IWorkflowInstanceService **********************************************/ export interface IWorkflowInstanceService extends WorkflowInstanceServiceCollections, WorkflowInstanceServiceMethods, Base.IBaseQuery { } /********************************************* * IWorkflowInstanceServiceCollection **********************************************/ export interface IWorkflowInstanceServiceCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IWorkflowInstanceServiceQueryCollection **********************************************/ export interface IWorkflowInstanceServiceQueryCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IWorkflowInstanceServiceQuery **********************************************/ export interface IWorkflowInstanceServiceQuery extends WorkflowInstanceServiceOData, WorkflowInstanceServiceMethods { } /********************************************* * WorkflowInstanceService **********************************************/ export interface WorkflowInstanceService extends Base.IBaseResult, WorkflowInstanceServiceProps, WorkflowInstanceServiceCollections, WorkflowInstanceServiceMethods { } /********************************************* * WorkflowInstanceServiceProps **********************************************/ export interface WorkflowInstanceServiceProps { Id4a81de82eeb94d6080ea5bf63e27023a?: string; } /********************************************* * WorkflowInstanceServicePropMethods **********************************************/ export interface WorkflowInstanceServicePropMethods { Current(): Base.IBaseQuery & SP.WorkflowServices.WorkflowInstanceServiceCollections & SP.WorkflowServices.WorkflowInstanceServiceMethods; } /********************************************* * WorkflowInstanceServiceCollections **********************************************/ export interface WorkflowInstanceServiceCollections extends WorkflowInstanceServicePropMethods { } /********************************************* * WorkflowInstanceServiceOData **********************************************/ export interface WorkflowInstanceServiceOData extends Base.IBaseResult, WorkflowInstanceServiceProps, WorkflowInstanceServiceMethods { Current: SP.WorkflowServices.WorkflowInstanceService & SP.WorkflowServices.WorkflowInstanceServiceCollections; } /********************************************* * WorkflowInstanceServiceMethods **********************************************/ export interface WorkflowInstanceServiceMethods { enumerateInstancesForListItem(listId?: any, itemId?: number): Base.IBaseCollection; enumerateInstancesForListItemWithOffset(listId?: any, itemId?: number, offset?: number): Base.IBaseCollection; enumerateInstancesForSite(): Base.IBaseCollection; enumerateInstancesForSiteWithOffset(offset?: number): Base.IBaseCollection; getInstance(instanceId?: any): Base.IBaseExecution; startWorkflowOnListItemBySubscriptionId(subscriptionId?: any, itemId?: number, payload?: Array): Base.IBaseExecution; } /********************************************* * IInteropService **********************************************/ export interface IInteropService extends InteropServiceCollections, InteropServiceMethods, Base.IBaseQuery { } /********************************************* * IInteropServiceCollection **********************************************/ export interface IInteropServiceCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IInteropServiceQueryCollection **********************************************/ export interface IInteropServiceQueryCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IInteropServiceQuery **********************************************/ export interface IInteropServiceQuery extends InteropServiceOData, InteropServiceMethods { } /********************************************* * InteropService **********************************************/ export interface InteropService extends Base.IBaseResult, InteropServiceProps, InteropServiceCollections, InteropServiceMethods { } /********************************************* * InteropServiceProps **********************************************/ export interface InteropServiceProps { Id4a81de82eeb94d6080ea5bf63e27023a?: string; } /********************************************* * InteropServicePropMethods **********************************************/ export interface InteropServicePropMethods { Current(): Base.IBaseQuery & SP.WorkflowServices.InteropServiceCollections & SP.WorkflowServices.InteropServiceMethods; } /********************************************* * InteropServiceCollections **********************************************/ export interface InteropServiceCollections extends InteropServicePropMethods { } /********************************************* * InteropServiceOData **********************************************/ export interface InteropServiceOData extends Base.IBaseResult, InteropServiceProps, InteropServiceMethods { Current: SP.WorkflowServices.InteropService & SP.WorkflowServices.InteropServiceCollections; } /********************************************* * InteropServiceMethods **********************************************/ export interface InteropServiceMethods { cancelWorkflow(instanceId?: any): Base.IBaseExecution; disableEvents(listId?: any, itemGuid?: any): Base.IBaseExecution; enableEvents(listId?: any, itemGuid?: any): Base.IBaseExecution; startWorkflow(associationName?: string, correlationId?: any, listId?: any, itemGuid?: any, workflowParameters?: Array): Base.IBaseExecution; } /********************************************* * IWorkflowServicesManager **********************************************/ export interface IWorkflowServicesManager extends WorkflowServicesManagerCollections, WorkflowServicesManagerMethods, Base.IBaseQuery { } /********************************************* * IWorkflowServicesManagerCollection **********************************************/ export interface IWorkflowServicesManagerCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IWorkflowServicesManagerQueryCollection **********************************************/ export interface IWorkflowServicesManagerQueryCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IWorkflowServicesManagerQuery **********************************************/ export interface IWorkflowServicesManagerQuery extends WorkflowServicesManagerOData, WorkflowServicesManagerMethods { } /********************************************* * WorkflowServicesManager **********************************************/ export interface WorkflowServicesManager extends Base.IBaseResult, WorkflowServicesManagerProps, WorkflowServicesManagerCollections, WorkflowServicesManagerMethods { } /********************************************* * WorkflowServicesManagerProps **********************************************/ export interface WorkflowServicesManagerProps { AppId?: string; IsConnected?: boolean; IsRegistered?: boolean; ScopePath?: string; ServiceHealthStatus?: number; Workflow2013Retired?: boolean; } /********************************************* * WorkflowServicesManagerPropMethods **********************************************/ export interface WorkflowServicesManagerPropMethods { Current(): Base.IBaseQuery & SP.WorkflowServices.WorkflowServicesManagerCollections & SP.WorkflowServices.WorkflowServicesManagerMethods; } /********************************************* * WorkflowServicesManagerCollections **********************************************/ export interface WorkflowServicesManagerCollections extends WorkflowServicesManagerPropMethods { } /********************************************* * WorkflowServicesManagerOData **********************************************/ export interface WorkflowServicesManagerOData extends Base.IBaseResult, WorkflowServicesManagerProps, WorkflowServicesManagerMethods { Current: SP.WorkflowServices.WorkflowServicesManager & SP.WorkflowServices.WorkflowServicesManagerCollections; } /********************************************* * WorkflowServicesManagerMethods **********************************************/ export interface WorkflowServicesManagerMethods { getWorkflowDeploymentService(): Base.IBaseExecution; getWorkflowInstanceService(): Base.IBaseQuery & SP.WorkflowServices.WorkflowInstanceServiceCollections & SP.WorkflowServices.WorkflowInstanceServiceMethods; getWorkflowInteropService(): Base.IBaseQuery & SP.WorkflowServices.InteropServiceCollections & SP.WorkflowServices.InteropServiceMethods; getWorkflowSubscriptionService(): Base.IBaseQuery & SP.WorkflowServices.WorkflowSubscriptionServiceCollections & SP.WorkflowServices.WorkflowSubscriptionServiceMethods; isIntegratedApp(): Base.IBaseExecution; } /********************************************* * IWorkflowSubscription **********************************************/ export interface IWorkflowSubscription extends WorkflowSubscriptionCollections, WorkflowSubscriptionMethods, Base.IBaseQuery { } /********************************************* * IWorkflowSubscriptionCollection **********************************************/ export interface IWorkflowSubscriptionCollection extends Base.IBaseResults, WorkflowSubscriptionCollectionMethods { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IWorkflowSubscriptionQueryCollection **********************************************/ export interface IWorkflowSubscriptionQueryCollection extends Base.IBaseResults, WorkflowSubscriptionCollectionMethods { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IWorkflowSubscriptionQuery **********************************************/ export interface IWorkflowSubscriptionQuery extends WorkflowSubscriptionOData, WorkflowSubscriptionMethods { } /********************************************* * WorkflowSubscription **********************************************/ export interface WorkflowSubscription extends Base.IBaseResult, WorkflowSubscriptionProps, WorkflowSubscriptionCollections, WorkflowSubscriptionMethods { } /********************************************* * WorkflowSubscriptionProps **********************************************/ export interface WorkflowSubscriptionProps { DefinitionId?: any; Enabled?: boolean; EventSourceId?: any; EventTypes?: { results: Array }; Id?: any; ManualStartBypassesActivationLimit?: boolean; Name?: string; ParentContentTypeId?: string; PropertyDefinitions?: { results: Array }; StatusFieldName?: string; } /********************************************* * WorkflowSubscriptionPropMethods **********************************************/ export interface WorkflowSubscriptionPropMethods { } /********************************************* * WorkflowSubscriptionCollections **********************************************/ export interface WorkflowSubscriptionCollections extends WorkflowSubscriptionPropMethods { } /********************************************* * WorkflowSubscriptionCollectionMethods **********************************************/ export interface WorkflowSubscriptionCollectionMethods { sort(): Base.IBaseExecution; } /********************************************* * WorkflowSubscriptionOData **********************************************/ export interface WorkflowSubscriptionOData extends Base.IBaseResult, WorkflowSubscriptionProps, WorkflowSubscriptionMethods { } /********************************************* * WorkflowSubscriptionMethods **********************************************/ export interface WorkflowSubscriptionMethods { getExternalVariable(name?: string): Base.IBaseExecution; setExternalVariable(name?: string, value?: string): Base.IBaseExecution; setProperty(name?: string, value?: string): Base.IBaseExecution; } /********************************************* * IWorkflowSubscriptionService **********************************************/ export interface IWorkflowSubscriptionService extends WorkflowSubscriptionServiceCollections, WorkflowSubscriptionServiceMethods, Base.IBaseQuery { } /********************************************* * IWorkflowSubscriptionServiceCollection **********************************************/ export interface IWorkflowSubscriptionServiceCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IWorkflowSubscriptionServiceQueryCollection **********************************************/ export interface IWorkflowSubscriptionServiceQueryCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IWorkflowSubscriptionServiceQuery **********************************************/ export interface IWorkflowSubscriptionServiceQuery extends WorkflowSubscriptionServiceOData, WorkflowSubscriptionServiceMethods { } /********************************************* * WorkflowSubscriptionService **********************************************/ export interface WorkflowSubscriptionService extends Base.IBaseResult, WorkflowSubscriptionServiceProps, WorkflowSubscriptionServiceCollections, WorkflowSubscriptionServiceMethods { } /********************************************* * WorkflowSubscriptionServiceProps **********************************************/ export interface WorkflowSubscriptionServiceProps { Id4a81de82eeb94d6080ea5bf63e27023a?: string; } /********************************************* * WorkflowSubscriptionServicePropMethods **********************************************/ export interface WorkflowSubscriptionServicePropMethods { Current(): Base.IBaseQuery & SP.WorkflowServices.WorkflowSubscriptionServiceCollections & SP.WorkflowServices.WorkflowSubscriptionServiceMethods; } /********************************************* * WorkflowSubscriptionServiceCollections **********************************************/ export interface WorkflowSubscriptionServiceCollections extends WorkflowSubscriptionServicePropMethods { } /********************************************* * WorkflowSubscriptionServiceOData **********************************************/ export interface WorkflowSubscriptionServiceOData extends Base.IBaseResult, WorkflowSubscriptionServiceProps, WorkflowSubscriptionServiceMethods { Current: SP.WorkflowServices.WorkflowSubscriptionService & SP.WorkflowServices.WorkflowSubscriptionServiceCollections; } /********************************************* * WorkflowSubscriptionServiceMethods **********************************************/ export interface WorkflowSubscriptionServiceMethods { deleteSubscription(subscriptionId?: any): Base.IBaseExecution; enumerateSubscriptions(): Base.IBaseCollection & SP.WorkflowServices.WorkflowSubscriptionCollectionMethods; enumerateSubscriptionsByDefinition(definitionId?: any): Base.IBaseCollection & SP.WorkflowServices.WorkflowSubscriptionCollectionMethods; enumerateSubscriptionsByEventSource(eventSourceId?: any): Base.IBaseCollection & SP.WorkflowServices.WorkflowSubscriptionCollectionMethods; enumerateSubscriptionsByList(listId?: any): Base.IBaseCollection & SP.WorkflowServices.WorkflowSubscriptionCollectionMethods; enumerateSubscriptionsByListAndParentContentType(listId?: any, parentContentTypeId?: SP.ContentTypeId, includeNoContentTypeSpecified?: boolean): Base.IBaseCollection & SP.WorkflowServices.WorkflowSubscriptionCollectionMethods; enumerateSubscriptionsByListWithContentType(listId?: any, includeContentTypeSpecified?: boolean): Base.IBaseCollection & SP.WorkflowServices.WorkflowSubscriptionCollectionMethods; getSubscription(subscriptionId?: any): Base.IBaseExecution; registerInterestInHostWebList(listId?: any, eventName?: string): Base.IBaseExecution; registerInterestInList(listId?: any, eventName?: string): Base.IBaseExecution; unregisterInterestInHostWebList(listId?: any, eventName?: string): Base.IBaseExecution; unregisterInterestInList(listId?: any, eventName?: string): Base.IBaseExecution; } /********************************************* * IWorkflowMessagingService **********************************************/ export interface IWorkflowMessagingService extends WorkflowMessagingServiceCollections, WorkflowMessagingServiceMethods, Base.IBaseQuery { } /********************************************* * IWorkflowMessagingServiceCollection **********************************************/ export interface IWorkflowMessagingServiceCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IWorkflowMessagingServiceQueryCollection **********************************************/ export interface IWorkflowMessagingServiceQueryCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IWorkflowMessagingServiceQuery **********************************************/ export interface IWorkflowMessagingServiceQuery extends WorkflowMessagingServiceOData, WorkflowMessagingServiceMethods { } /********************************************* * WorkflowMessagingService **********************************************/ export interface WorkflowMessagingService extends Base.IBaseResult, WorkflowMessagingServiceProps, WorkflowMessagingServiceCollections, WorkflowMessagingServiceMethods { } /********************************************* * WorkflowMessagingServiceProps **********************************************/ export interface WorkflowMessagingServiceProps { Id4a81de82eeb94d6080ea5bf63e27023a?: string; } /********************************************* * WorkflowMessagingServicePropMethods **********************************************/ export interface WorkflowMessagingServicePropMethods { } /********************************************* * WorkflowMessagingServiceCollections **********************************************/ export interface WorkflowMessagingServiceCollections extends WorkflowMessagingServicePropMethods { } /********************************************* * WorkflowMessagingServiceOData **********************************************/ export interface WorkflowMessagingServiceOData extends Base.IBaseResult, WorkflowMessagingServiceProps, WorkflowMessagingServiceMethods { } /********************************************* * WorkflowMessagingServiceMethods **********************************************/ export interface WorkflowMessagingServiceMethods { publishEvent(eventSourceId?: any, eventName?: string, payload?: Array): Base.IBaseExecution; }