Trendsic Platform Service

<back to all web services

RfpProposalRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/Rfp/{RfpDocumentUID}/Proposal

export class ResourcedPosition
{
    public PositionTag: string;
    public Hours?: number;
    public Headcount?: number;
    public SourceReference: string;
    public Notes: string;
    public IsInCatalog: boolean;
    public ContactID?: number;

    public constructor(init?: Partial<ResourcedPosition>) { (Object as any).assign(this, init); }
}

export class ResourcedEquipment
{
    public EquipmentID: number;
    public EquipmentName: string;
    public MakeModel: string;
    public Quantity?: number;
    public DurationDays?: number;
    public SourceReference: string;
    public Notes: string;
    public IsInCatalog: boolean;
    public SuggestedEquipmentID: number;
    public SuggestedEquipmentName: string;

    public constructor(init?: Partial<ResourcedEquipment>) { (Object as any).assign(this, init); }
}

export class ResourcedMaterial
{
    public MaterialID: number;
    public MaterialName: string;
    public MakeModel: string;
    public Quantity?: number;
    public Unit: string;
    public SourceReference: string;
    public Notes: string;
    public IsInCatalog: boolean;
    public SuggestedMaterialID: number;
    public SuggestedMaterialName: string;

    public constructor(init?: Partial<ResourcedMaterial>) { (Object as any).assign(this, init); }
}

export class TaskResourcing
{
    public Positions: ResourcedPosition[] = [];
    public Equipment: ResourcedEquipment[] = [];
    public Materials: ResourcedMaterial[] = [];

    public constructor(init?: Partial<TaskResourcing>) { (Object as any).assign(this, init); }
}

export class ProposedTask
{
    public Seq: number;
    public Name: string;
    public Category: string;
    public Quantity?: number;
    public Unit: string;
    public SourceItemNumber: string;
    public SourceReference: string;
    public Notes: string;
    public Resourcing: TaskResourcing;
    public DurationDays?: number;
    public DependsOn: number[] = [];
    public EstimatedStartDate?: string;
    public EstimatedEndDate?: string;

    public constructor(init?: Partial<ProposedTask>) { (Object as any).assign(this, init); }
}

export class ProjectProposal
{
    public RfpDocumentID: number;
    public ProjectName: string;
    public ClientName: string;
    public ProjectType: string;
    public ProjectLocation: string;
    public Scope: string;
    public ProjectDescription: string;
    public ContractDurationDays?: number;
    public BidDueDate: string;
    public EstimatedStartDate?: string;
    public EstimatedEndDate?: string;
    public Tasks: ProposedTask[] = [];

    public constructor(init?: Partial<ProjectProposal>) { (Object as any).assign(this, init); }
}

export class CrewPlanLine
{
    public PositionTag: string;
    public Needed: number;
    public NaiveTotal: number;
    public TaskAssignments: number;

    public constructor(init?: Partial<CrewPlanLine>) { (Object as any).assign(this, init); }
}

export class RfpProposalResponse
{
    public ResponseStatus: ResponseStatus;
    public RfpDocumentID: number;
    public Proposal: ProjectProposal;
    public CrewPlan: CrewPlanLine[] = [];

    public constructor(init?: Partial<RfpProposalResponse>) { (Object as any).assign(this, init); }
}

export class RfpProposalRequest
{
    public RfpDocumentUID: string;

    public constructor(init?: Partial<RfpProposalRequest>) { (Object as any).assign(this, init); }
}

TypeScript RfpProposalRequest 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/Rfp/{RfpDocumentUID}/Proposal 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
		}
	},
	RfpDocumentID: 0,
	Proposal: 
	{
		RfpDocumentID: 0,
		ProjectName: String,
		ClientName: String,
		ProjectType: String,
		ProjectLocation: String,
		Scope: String,
		ProjectDescription: String,
		ContractDurationDays: 0,
		BidDueDate: String,
		EstimatedStartDate: 0001-01-01,
		EstimatedEndDate: 0001-01-01,
		Tasks: 
		[
			{
				Seq: 0,
				Name: String,
				Category: String,
				Quantity: 0,
				Unit: String,
				SourceItemNumber: String,
				SourceReference: String,
				Notes: String,
				Resourcing: 
				{
					Positions: 
					[
						{
							PositionTag: String,
							Hours: 0,
							Headcount: 0,
							SourceReference: String,
							Notes: String,
							IsInCatalog: False,
							ContactID: 0
						}
					],
					Equipment: 
					[
						{
							EquipmentID: 0,
							EquipmentName: String,
							MakeModel: String,
							Quantity: 0,
							DurationDays: 0,
							SourceReference: String,
							Notes: String,
							IsInCatalog: False,
							SuggestedEquipmentID: 0,
							SuggestedEquipmentName: String
						}
					],
					Materials: 
					[
						{
							MaterialID: 0,
							MaterialName: String,
							MakeModel: String,
							Quantity: 0,
							Unit: String,
							SourceReference: String,
							Notes: String,
							IsInCatalog: False,
							SuggestedMaterialID: 0,
							SuggestedMaterialName: String
						}
					]
				},
				DurationDays: 0,
				DependsOn: 
				[
					0
				],
				EstimatedStartDate: 0001-01-01,
				EstimatedEndDate: 0001-01-01
			}
		]
	},
	CrewPlan: 
	[
		{
			PositionTag: String,
			Needed: 0,
			NaiveTotal: 0,
			TaskAssignments: 0
		}
	]
}