| GET | /v1/forms/{FormUID}/reports |
|---|
"use strict";
export class FormReportBar {
/** @param {{Id?:string,Label?:string,N?:number,Value?:number,Text?:string,Tone?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Id;
/** @type {string} */
Label;
/** @type {number} */
N;
/** @type {number} */
Value;
/** @type {string} */
Text;
/** @type {string} */
Tone;
}
export class FormReportResponse {
/** @param {{Submissions?:number,Decided?:number,Approved?:number,RateText?:string,DecisionText?:string,Drafts?:number,Sla?:number,DraftDays?:number,IsRecord?:boolean,Weeks?:FormReportBar[],Stages?:FormReportBar[],Pages?:FormReportBar[],Started?:number,SubmittedPct?:number,DropFrom?:string,DropN?:number,Durations?:FormReportBar[],Fields?:FormReportBar[],Field?:string,FieldLabel?:string,Options?:FormReportBar[],Reasons?:FormReportBar[],ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Submissions;
/** @type {number} */
Decided;
/** @type {number} */
Approved;
/** @type {string} */
RateText;
/** @type {string} */
DecisionText;
/** @type {number} */
Drafts;
/** @type {number} */
Sla;
/** @type {number} */
DraftDays;
/** @type {boolean} */
IsRecord;
/** @type {FormReportBar[]} */
Weeks = [];
/** @type {FormReportBar[]} */
Stages = [];
/** @type {FormReportBar[]} */
Pages = [];
/** @type {number} */
Started;
/** @type {number} */
SubmittedPct;
/** @type {string} */
DropFrom;
/** @type {number} */
DropN;
/** @type {FormReportBar[]} */
Durations = [];
/** @type {FormReportBar[]} */
Fields = [];
/** @type {string} */
Field;
/** @type {string} */
FieldLabel;
/** @type {FormReportBar[]} */
Options = [];
/** @type {FormReportBar[]} */
Reasons = [];
/** @type {ResponseStatus} */
ResponseStatus;
}
export class FormReportRequest {
/** @param {{FormUID?:string,Field?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
FormUID;
/** @type {string} */
Field;
}
JavaScript FormReportRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/forms/{FormUID}/reports HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Submissions":0,"Decided":0,"Approved":0,"RateText":"String","DecisionText":"String","Drafts":0,"Sla":0,"DraftDays":0,"IsRecord":false,"Weeks":[{"Id":"String","Label":"String","N":0,"Value":0,"Text":"String","Tone":"String"}],"Stages":[{"Id":"String","Label":"String","N":0,"Value":0,"Text":"String","Tone":"String"}],"Pages":[{"Id":"String","Label":"String","N":0,"Value":0,"Text":"String","Tone":"String"}],"Started":0,"SubmittedPct":0,"DropFrom":"String","DropN":0,"Durations":[{"Id":"String","Label":"String","N":0,"Value":0,"Text":"String","Tone":"String"}],"Fields":[{"Id":"String","Label":"String","N":0,"Value":0,"Text":"String","Tone":"String"}],"Field":"String","FieldLabel":"String","Options":[{"Id":"String","Label":"String","N":0,"Value":0,"Text":"String","Tone":"String"}],"Reasons":[{"Id":"String","Label":"String","N":0,"Value":0,"Text":"String","Tone":"String"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}