| Requires any of the roles: | Agent, Administrator |
| POST,OPTIONS | /v1/Rfp/SchedulePreview |
|---|
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 RfpSchedulePreviewRequest
{
public Proposal: ProjectProposal;
public constructor(init?: Partial<RfpSchedulePreviewRequest>) { (Object as any).assign(this, init); }
}
TypeScript RfpSchedulePreviewRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Rfp/SchedulePreview HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<RfpSchedulePreviewRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Proposal>
<BidDueDate>String</BidDueDate>
<ClientName>String</ClientName>
<ContractDurationDays>0</ContractDurationDays>
<EstimatedEndDate>0001-01-01T00:00:00</EstimatedEndDate>
<EstimatedStartDate>0001-01-01T00:00:00</EstimatedStartDate>
<ProjectDescription>String</ProjectDescription>
<ProjectLocation>String</ProjectLocation>
<ProjectName>String</ProjectName>
<ProjectType>String</ProjectType>
<RfpDocumentID>0</RfpDocumentID>
<Scope>String</Scope>
<Tasks>
<ProposedTask>
<Category>String</Category>
<DependsOn xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:int>0</d5p1:int>
</DependsOn>
<DurationDays>0</DurationDays>
<EstimatedEndDate>0001-01-01T00:00:00</EstimatedEndDate>
<EstimatedStartDate>0001-01-01T00:00:00</EstimatedStartDate>
<Name>String</Name>
<Notes>String</Notes>
<Quantity>0</Quantity>
<Resourcing>
<Equipment>
<ResourcedEquipment>
<DurationDays>0</DurationDays>
<EquipmentID>0</EquipmentID>
<EquipmentName>String</EquipmentName>
<IsInCatalog>false</IsInCatalog>
<MakeModel>String</MakeModel>
<Notes>String</Notes>
<Quantity>0</Quantity>
<SourceReference>String</SourceReference>
<SuggestedEquipmentID>0</SuggestedEquipmentID>
<SuggestedEquipmentName>String</SuggestedEquipmentName>
</ResourcedEquipment>
</Equipment>
<Materials>
<ResourcedMaterial>
<IsInCatalog>false</IsInCatalog>
<MakeModel>String</MakeModel>
<MaterialID>0</MaterialID>
<MaterialName>String</MaterialName>
<Notes>String</Notes>
<Quantity>0</Quantity>
<SourceReference>String</SourceReference>
<SuggestedMaterialID>0</SuggestedMaterialID>
<SuggestedMaterialName>String</SuggestedMaterialName>
<Unit>String</Unit>
</ResourcedMaterial>
</Materials>
<Positions>
<ResourcedPosition>
<ContactID>0</ContactID>
<Headcount>0</Headcount>
<Hours>0</Hours>
<IsInCatalog>false</IsInCatalog>
<Notes>String</Notes>
<PositionTag>String</PositionTag>
<SourceReference>String</SourceReference>
</ResourcedPosition>
</Positions>
</Resourcing>
<Seq>0</Seq>
<SourceItemNumber>String</SourceItemNumber>
<SourceReference>String</SourceReference>
<Unit>String</Unit>
</ProposedTask>
</Tasks>
</Proposal>
</RfpSchedulePreviewRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<RfpProposalResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<CrewPlan>
<CrewPlanLine>
<NaiveTotal>0</NaiveTotal>
<Needed>0</Needed>
<PositionTag>String</PositionTag>
<TaskAssignments>0</TaskAssignments>
</CrewPlanLine>
</CrewPlan>
<Proposal>
<BidDueDate>String</BidDueDate>
<ClientName>String</ClientName>
<ContractDurationDays>0</ContractDurationDays>
<EstimatedEndDate>0001-01-01T00:00:00</EstimatedEndDate>
<EstimatedStartDate>0001-01-01T00:00:00</EstimatedStartDate>
<ProjectDescription>String</ProjectDescription>
<ProjectLocation>String</ProjectLocation>
<ProjectName>String</ProjectName>
<ProjectType>String</ProjectType>
<RfpDocumentID>0</RfpDocumentID>
<Scope>String</Scope>
<Tasks>
<ProposedTask>
<Category>String</Category>
<DependsOn xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:int>0</d5p1:int>
</DependsOn>
<DurationDays>0</DurationDays>
<EstimatedEndDate>0001-01-01T00:00:00</EstimatedEndDate>
<EstimatedStartDate>0001-01-01T00:00:00</EstimatedStartDate>
<Name>String</Name>
<Notes>String</Notes>
<Quantity>0</Quantity>
<Resourcing>
<Equipment>
<ResourcedEquipment>
<DurationDays>0</DurationDays>
<EquipmentID>0</EquipmentID>
<EquipmentName>String</EquipmentName>
<IsInCatalog>false</IsInCatalog>
<MakeModel>String</MakeModel>
<Notes>String</Notes>
<Quantity>0</Quantity>
<SourceReference>String</SourceReference>
<SuggestedEquipmentID>0</SuggestedEquipmentID>
<SuggestedEquipmentName>String</SuggestedEquipmentName>
</ResourcedEquipment>
</Equipment>
<Materials>
<ResourcedMaterial>
<IsInCatalog>false</IsInCatalog>
<MakeModel>String</MakeModel>
<MaterialID>0</MaterialID>
<MaterialName>String</MaterialName>
<Notes>String</Notes>
<Quantity>0</Quantity>
<SourceReference>String</SourceReference>
<SuggestedMaterialID>0</SuggestedMaterialID>
<SuggestedMaterialName>String</SuggestedMaterialName>
<Unit>String</Unit>
</ResourcedMaterial>
</Materials>
<Positions>
<ResourcedPosition>
<ContactID>0</ContactID>
<Headcount>0</Headcount>
<Hours>0</Hours>
<IsInCatalog>false</IsInCatalog>
<Notes>String</Notes>
<PositionTag>String</PositionTag>
<SourceReference>String</SourceReference>
</ResourcedPosition>
</Positions>
</Resourcing>
<Seq>0</Seq>
<SourceItemNumber>String</SourceItemNumber>
<SourceReference>String</SourceReference>
<Unit>String</Unit>
</ProposedTask>
</Tasks>
</Proposal>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<RfpDocumentID>0</RfpDocumentID>
</RfpProposalResponse>