| POST,OPTIONS | /v1/projects/{ProjectID}/bluebeam/import/preview |
|---|
"use strict";
export class BluebeamRow {
/** @param {{RowNo?:number,Subject?:string,PageLabel?:string,PageIndex?:number,Author?:string,Date?:string,Status?:string,Color?:string,Comments?:string,Label?:string,Layer?:string,Space?:string,Length?:number,Area?:number,Count?:number,Volume?:number,Measurement?:string,X?:number,Y?:number,Width?:number,Height?:number,Extras?:{ [index:string]: string; }}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
RowNo;
/** @type {string} */
Subject;
/** @type {string} */
PageLabel;
/** @type {?number} */
PageIndex;
/** @type {string} */
Author;
/** @type {string} */
Date;
/** @type {string} */
Status;
/** @type {string} */
Color;
/** @type {string} */
Comments;
/** @type {string} */
Label;
/** @type {string} */
Layer;
/** @type {string} */
Space;
/** @type {?number} */
Length;
/** @type {?number} */
Area;
/** @type {?number} */
Count;
/** @type {?number} */
Volume;
/** @type {string} */
Measurement;
/** @type {?number} */
X;
/** @type {?number} */
Y;
/** @type {?number} */
Width;
/** @type {?number} */
Height;
/** @type {{ [index:string]: string; }} */
Extras = {};
}
export class BluebeamMappedRow {
/** @param {{RowNo?:number,Target?:string,Title?:string,Description?:string,Area?:string,Trade?:string,AssignedSub?:string,Priority?:string,Quantity?:number,QuantityKind?:string,Unit?:string,TaskSeq?:number,Reason?:string,Source?:BluebeamRow}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
RowNo;
/** @type {string} */
Target;
/** @type {string} */
Title;
/** @type {string} */
Description;
/** @type {string} */
Area;
/** @type {string} */
Trade;
/** @type {string} */
AssignedSub;
/** @type {string} */
Priority;
/** @type {?number} */
Quantity;
/** @type {string} */
QuantityKind;
/** @type {string} */
Unit;
/** @type {?number} */
TaskSeq;
/** @type {string} */
Reason;
/** @type {BluebeamRow} */
Source;
}
export class BluebeamPreviewResponse {
/** @param {{ResponseStatus?:ResponseStatus,FileName?:string,RowCount?:number,Columns?:string[],Rows?:BluebeamMappedRow[],PunchProposed?:number,RfiProposed?:number,QuantityProposed?:number,SkipProposed?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {string} */
FileName;
/** @type {number} */
RowCount;
/** @type {string[]} */
Columns = [];
/** @type {BluebeamMappedRow[]} */
Rows = [];
/** @type {number} */
PunchProposed;
/** @type {number} */
RfiProposed;
/** @type {number} */
QuantityProposed;
/** @type {number} */
SkipProposed;
}
export class BluebeamPreviewRequest {
/** @param {{ProjectID?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
ProjectID;
}
JavaScript 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
}