<back to all web services

ConversionRequestDto

The following routes are available for this service:
GET/RestApi/sitefinity/data-intelligence/conversion
"use strict";
export class ConversionRequestDto {
    /** @param {{Filter?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Filter;
}
/** @typedef {'Inactive'|'Initializing'|'Active'|'ToBeDeleted'|'Error'|'Pending'|'Expired'} */
export var CalculationState;
(function (CalculationState) {
    CalculationState["Inactive"] = "Inactive"
    CalculationState["Initializing"] = "Initializing"
    CalculationState["Active"] = "Active"
    CalculationState["ToBeDeleted"] = "ToBeDeleted"
    CalculationState["Error"] = "Error"
    CalculationState["Pending"] = "Pending"
    CalculationState["Expired"] = "Expired"
})(CalculationState || (CalculationState = {}));
/** @typedef {'ExactMatch'|'Contains'|'StartsWith'|'EndsWith'|'UrlStrippedMatch'} */
export var MatchingOperator;
(function (MatchingOperator) {
    MatchingOperator["ExactMatch"] = "ExactMatch"
    MatchingOperator["Contains"] = "Contains"
    MatchingOperator["StartsWith"] = "StartsWith"
    MatchingOperator["EndsWith"] = "EndsWith"
    MatchingOperator["UrlStrippedMatch"] = "UrlStrippedMatch"
})(MatchingOperator || (MatchingOperator = {}));
export class ConditionPart {
    /** @param {{Id?:number,Predicate?:string,IsNegated?:boolean,PredicateOperator?:MatchingOperator,ObjectOperator?:MatchingOperator,Objects?:string[],ClientAttribute?:string,ContactPropertyId?:string,ObjectMetadata?:{ [index: string]: string; },UrlParameters?:{ [index: string]: string; }}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    Id;
    /** @type {string} */
    Predicate;
    /** @type {boolean} */
    IsNegated;
    /** @type {MatchingOperator} */
    PredicateOperator;
    /** @type {MatchingOperator} */
    ObjectOperator;
    /** @type {string[]} */
    Objects;
    /** @type {string} */
    ClientAttribute;
    /** @type {?string} */
    ContactPropertyId;
    /** @type {{ [index: string]: string; }} */
    ObjectMetadata;
    /** @type {{ [index: string]: string; }} */
    UrlParameters;
}
export class ConditionExpression {
    /** @param {{Relation?:string,Parts?:IList<ConditionPart>}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Relation;
    /** @type {IList<ConditionPart>} */
    Parts;
}
export class Conversion {
    /** @param {{Id?:number,Name?:string,State?:CalculationState,InputDays?:number,CreatedOn?:string,ModifiedOn?:string,CreatedByUserId?:string,ModifiedByUserId?:string,Definition?:ConditionExpression,ClientFilter?:ConditionExpression,CanBeModified?:boolean,CanBeDeleted?:boolean,ContentRecommendationsEnabled?:boolean,AttributionCalculatedOn?:string,DecisionTreeId?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    Id;
    /** @type {string} */
    Name;
    /** @type {CalculationState} */
    State;
    /** @type {?number} */
    InputDays;
    /** @type {string} */
    CreatedOn;
    /** @type {string} */
    ModifiedOn;
    /** @type {string} */
    CreatedByUserId;
    /** @type {string} */
    ModifiedByUserId;
    /** @type {ConditionExpression} */
    Definition;
    /** @type {ConditionExpression} */
    ClientFilter;
    /** @type {boolean} */
    CanBeModified;
    /** @type {boolean} */
    CanBeDeleted;
    /** @type {boolean} */
    ContentRecommendationsEnabled;
    /** @type {?string} */
    AttributionCalculatedOn;
    /** @type {?number} */
    DecisionTreeId;
}
export class ConversionsViewModel {
    /** @param {{Conversions?:IList<Conversion>}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {IList<Conversion>} */
    Conversions;
}

JavaScript ConversionRequestDto DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /RestApi/sitefinity/data-intelligence/conversion HTTP/1.1 
Host: www.asg.com.au 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}