Trendsic Platform Service

<back to all web services

PursuitListRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/pursuits
"use strict";
export class PursuitActivity {
    /** @param {{PursuitActivityID?:number,PursuitID?:number,Kind?:string,Label?:string,Detail?:string,Actor?:string,CreatedAt?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    PursuitActivityID;
    /** @type {number} */
    PursuitID;
    /** @type {string} */
    Kind;
    /** @type {string} */
    Label;
    /** @type {string} */
    Detail;
    /** @type {string} */
    Actor;
    /** @type {?string} */
    CreatedAt;
}
export class Pursuit {
    /** @param {{PursuitID?:number,PursuitUID?:string,PursuitNumber?:string,Name?:string,ClientOwner?:string,WorkType?:string,Solicitation?:string,Location?:string,Scope?:string,Stage?:string,Outcome?:string,BidValue?:number,EstCost?:number,WinProbability?:number,CostOfPursuit?:number,DueDate?:string,EstimatorRfpRef?:string,AwardedProjectID?:number,OpenedAt?:string,SubmittedAt?:string,DecidedAt?:string,CreatedBy?:string,CreatedAt?:string,UpdatedAt?:string,DaysOpen?:number,WeightedValue?:number,Activity?:PursuitActivity[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    PursuitID;
    /** @type {string} */
    PursuitUID;
    /** @type {string} */
    PursuitNumber;
    /** @type {string} */
    Name;
    /** @type {string} */
    ClientOwner;
    /** @type {string} */
    WorkType;
    /** @type {string} */
    Solicitation;
    /** @type {string} */
    Location;
    /** @type {string} */
    Scope;
    /** @type {string} */
    Stage;
    /** @type {string} */
    Outcome;
    /** @type {number} */
    BidValue;
    /** @type {number} */
    EstCost;
    /** @type {number} */
    WinProbability;
    /** @type {number} */
    CostOfPursuit;
    /** @type {?string} */
    DueDate;
    /** @type {string} */
    EstimatorRfpRef;
    /** @type {?number} */
    AwardedProjectID;
    /** @type {?string} */
    OpenedAt;
    /** @type {?string} */
    SubmittedAt;
    /** @type {?string} */
    DecidedAt;
    /** @type {string} */
    CreatedBy;
    /** @type {?string} */
    CreatedAt;
    /** @type {?string} */
    UpdatedAt;
    /** @type {number} */
    DaysOpen;
    /** @type {number} */
    WeightedValue;
    /** @type {PursuitActivity[]} */
    Activity = [];
}
export class PursuitPipelineSummary {
    /** @param {{ActivePursuits?:number,PipelineValue?:number,WeightedValue?:number,WonCount?:number,DecidedCount?:number,WinRate?:number,ClosingThisWeek?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    ActivePursuits;
    /** @type {number} */
    PipelineValue;
    /** @type {number} */
    WeightedValue;
    /** @type {number} */
    WonCount;
    /** @type {number} */
    DecidedCount;
    /** @type {number} */
    WinRate;
    /** @type {number} */
    ClosingThisWeek;
}
export class PursuitListResponse {
    /** @param {{ResponseStatus?:ResponseStatus,Pursuits?:Pursuit[],Summary?:PursuitPipelineSummary}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ResponseStatus} */
    ResponseStatus;
    /** @type {Pursuit[]} */
    Pursuits = [];
    /** @type {PursuitPipelineSummary} */
    Summary;
}
export class PursuitListRequest {
    constructor(init) { Object.assign(this, init) }
}

JavaScript PursuitListRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/pursuits HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Pursuits: 
	[
		{
			PursuitID: 0,
			PursuitUID: 00000000000000000000000000000000,
			PursuitNumber: String,
			Name: String,
			ClientOwner: String,
			WorkType: String,
			Solicitation: String,
			Location: String,
			Scope: String,
			Stage: String,
			Outcome: String,
			BidValue: 0,
			EstCost: 0,
			WinProbability: 0,
			CostOfPursuit: 0,
			DueDate: 0001-01-01,
			EstimatorRfpRef: String,
			AwardedProjectID: 0,
			OpenedAt: 0001-01-01,
			SubmittedAt: 0001-01-01,
			DecidedAt: 0001-01-01,
			CreatedBy: String,
			CreatedAt: 0001-01-01,
			UpdatedAt: 0001-01-01,
			DaysOpen: 0,
			WeightedValue: 0,
			Activity: 
			[
				{
					PursuitActivityID: 0,
					PursuitID: 0,
					Kind: String,
					Label: String,
					Detail: String,
					Actor: String,
					CreatedAt: 0001-01-01
				}
			]
		}
	],
	Summary: 
	{
		ActivePursuits: 0,
		PipelineValue: 0,
		WeightedValue: 0,
		WonCount: 0,
		DecidedCount: 0,
		WinRate: 0,
		ClosingThisWeek: 0
	}
}