Trendsic Platform Service

<back to all web services

ResourceConflictsRequest

Requires Authentication
The following routes are available for this service:
GET/v1/resource-conflicts
"use strict";
export class ResourceConflictBookingDto {
    /** @param {{Project?:string,Job?:string,Window?:string,Tag?:string,Hot?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Project;
    /** @type {string} */
    Job;
    /** @type {string} */
    Window;
    /** @type {string} */
    Tag;
    /** @type {boolean} */
    Hot;
}
export class ResourceConflictOptionDto {
    /** @param {{Id?:string,Label?:string,Note?:string,Clears?:boolean,Recommended?:boolean,Why?:string,ActionJson?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Id;
    /** @type {string} */
    Label;
    /** @type {string} */
    Note;
    /** @type {boolean} */
    Clears;
    /** @type {boolean} */
    Recommended;
    /** @type {string} */
    Why;
    /** @type {string} */
    ActionJson;
}
export class ResourceConflictDto {
    /** @param {{Id?:string,Kind?:string,Name?:string,Severity?:string,Summary?:string,Bookings?:ResourceConflictBookingDto[],Options?:ResourceConflictOptionDto[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Id;
    /** @type {string} */
    Kind;
    /** @type {string} */
    Name;
    /** @type {string} */
    Severity;
    /** @type {string} */
    Summary;
    /** @type {ResourceConflictBookingDto[]} */
    Bookings = [];
    /** @type {ResourceConflictOptionDto[]} */
    Options = [];
}
export class ResourceConflictsResponse {
    /** @param {{Conflicts?:ResourceConflictDto[],EquipmentWatched?:number,WorkersWatched?:number,CrewsWatched?:number,ResolvedInWindow?:number,CanResolve?:boolean,ResponseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ResourceConflictDto[]} */
    Conflicts = [];
    /** @type {number} */
    EquipmentWatched;
    /** @type {number} */
    WorkersWatched;
    /** @type {number} */
    CrewsWatched;
    /** @type {number} */
    ResolvedInWindow;
    /** @type {boolean} */
    CanResolve;
    /** @type {ResponseStatus} */
    ResponseStatus;
}
export class ResourceConflictsRequest {
    /** @param {{Window?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    Window;
}

JavaScript ResourceConflictsRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/resource-conflicts HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Conflicts":[{"Id":"String","Kind":"String","Name":"String","Severity":"String","Summary":"String","Bookings":[{"Project":"String","Job":"String","Window":"String","Tag":"String","Hot":false}],"Options":[{"Id":"String","Label":"String","Note":"String","Clears":false,"Recommended":false,"Why":"String","ActionJson":"String"}]}],"EquipmentWatched":0,"WorkersWatched":0,"CrewsWatched":0,"ResolvedInWindow":0,"CanResolve":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}