| POST,OPTIONS | /v1/projects/{ProjectID}/bluebeam/import/preview |
|---|
export class BluebeamRow
{
public RowNo: number;
public Subject: string;
public PageLabel: string;
public PageIndex?: number;
public Author: string;
public Date: string;
public Status: string;
public Color: string;
public Comments: string;
public Label: string;
public Layer: string;
public Space: string;
public Length?: number;
public Area?: number;
public Count?: number;
public Volume?: number;
public Measurement: string;
public X?: number;
public Y?: number;
public Width?: number;
public Height?: number;
public Extras: { [index:string]: string; } = {};
public constructor(init?: Partial<BluebeamRow>) { (Object as any).assign(this, init); }
}
export class BluebeamMappedRow
{
public RowNo: number;
public Target: string;
public Title: string;
public Description: string;
public Area: string;
public Trade: string;
public AssignedSub: string;
public Priority: string;
public Quantity?: number;
public QuantityKind: string;
public Unit: string;
public TaskSeq?: number;
public Reason: string;
public Source: BluebeamRow;
public constructor(init?: Partial<BluebeamMappedRow>) { (Object as any).assign(this, init); }
}
export class BluebeamPreviewResponse
{
public ResponseStatus: ResponseStatus;
public FileName: string;
public RowCount: number;
public Columns: string[] = [];
public Rows: BluebeamMappedRow[] = [];
public PunchProposed: number;
public RfiProposed: number;
public QuantityProposed: number;
public SkipProposed: number;
public constructor(init?: Partial<BluebeamPreviewResponse>) { (Object as any).assign(this, init); }
}
export class BluebeamPreviewRequest
{
public ProjectID: number;
public constructor(init?: Partial<BluebeamPreviewRequest>) { (Object as any).assign(this, init); }
}
TypeScript BluebeamPreviewRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/projects/{ProjectID}/bluebeam/import/preview HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ProjectID: 0
}
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
}
},
FileName: String,
RowCount: 0,
Columns:
[
String
],
Rows:
[
{
RowNo: 0,
Target: String,
Title: String,
Description: String,
Area: String,
Trade: String,
AssignedSub: String,
Priority: String,
Quantity: 0,
QuantityKind: String,
Unit: String,
TaskSeq: 0,
Reason: String,
Source:
{
RowNo: 0,
Subject: String,
PageLabel: String,
PageIndex: 0,
Author: String,
Date: String,
Status: String,
Color: String,
Comments: String,
Label: String,
Layer: String,
Space: String,
Length: 0,
Area: 0,
Count: 0,
Volume: 0,
Measurement: String,
X: 0,
Y: 0,
Width: 0,
Height: 0,
Extras:
{
String: String
}
}
}
],
PunchProposed: 0,
RfiProposed: 0,
QuantityProposed: 0,
SkipProposed: 0
}