GET | /RestApi/sitefinity/data-intelligence/leadscore |
---|
"use strict";
export class LeadScoreRequestDto {
/** @param {{Filter?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Filter;
}
/** @typedef {'Inactive'|'Active'|'ToBeDeleted'} */
export var LeadScoreState;
(function (LeadScoreState) {
LeadScoreState["Inactive"] = "Inactive"
LeadScoreState["Active"] = "Active"
LeadScoreState["ToBeDeleted"] = "ToBeDeleted"
})(LeadScoreState || (LeadScoreState = {}));
export class LeadScoreLevel {
/** @param {{Id?:number,Name?:string,Threshold?:number,SendNotification?:boolean,Email?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Id;
/** @type {string} */
Name;
/** @type {number} */
Threshold;
/** @type {boolean} */
SendNotification;
/** @type {string} */
Email;
}
export class LeadScore {
/** @param {{Id?:number,Name?:string,State?:LeadScoreState,Levels?:IList<LeadScoreLevel>,Fields?:{ [index: string]: string; },CreatedOn?:string,CreatedByUserId?:string,ModifiedOn?:string,ModifiedByUserId?:string,ToBeReinitializedAt?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Id;
/** @type {string} */
Name;
/** @type {LeadScoreState} */
State;
/** @type {IList<LeadScoreLevel>} */
Levels;
/** @type {{ [index: string]: string; }} */
Fields;
/** @type {?string} */
CreatedOn;
/** @type {string} */
CreatedByUserId;
/** @type {?string} */
ModifiedOn;
/** @type {string} */
ModifiedByUserId;
/** @type {?string} */
ToBeReinitializedAt;
}
export class LeadScoreListViewModel {
/** @param {{LeadScores?:IList<LeadScore>,DecAppUrl?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {IList<LeadScore>} */
LeadScores;
/** @type {string} */
DecAppUrl;
}
JavaScript LeadScoreRequestDto 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.
GET /RestApi/sitefinity/data-intelligence/leadscore HTTP/1.1 Host: www.asg.com.au Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { DecAppUrl: String }