import { IWorkflowSubscriptionService } from "../../@types/lib" ; import { ITargetInfoProps } from "../../@types/utils" ; import { Base , Request } from "../utils" ; /**
 * Workflow Subscription Service
 */ export const WorkflowSubscriptionService = ( ( url , targetInfo ? ) => { let wfs = new Base ( targetInfo ) ; wfs . targetInfo . defaultToWebFl = true ; wfs . targetInfo . endpoint = "SP.WorkflowServices.WorkflowSubscriptionService.Current" ; if ( url ) { wfs . targetInfo . url = url ; } Request . addMethods ( wfs , { __metadata : { type : "SP.WorkflowServices.WorkflowSubscriptionService" } } ) ; return wfs ; } ) as any as IWorkflowSubscriptionService ;