GET | /RestApi/sitefinity/data-intelligence/persona |
---|
"use strict";
export class PersonaRequestDto {
/** @param {{Filter?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Filter;
}
/** @typedef {'Inactive'|'Active'|'ToBeDeleted'} */
export var PersonaState;
(function (PersonaState) {
PersonaState["Inactive"] = "Inactive"
PersonaState["Active"] = "Active"
PersonaState["ToBeDeleted"] = "ToBeDeleted"
})(PersonaState || (PersonaState = {}));
export class Persona {
/** @param {{Id?:number,Name?:string,Description?:string,PhotoUrl?:string,State?:PersonaState,Threshold?:number,CreatedOn?:string,CreatedByUserId?:string,ModifiedOn?:string,ModifiedByUserId?:string,ToBeReinitializedAt?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Id;
/** @type {string} */
Name;
/** @type {string} */
Description;
/** @type {string} */
PhotoUrl;
/** @type {PersonaState} */
State;
/** @type {number} */
Threshold;
/** @type {?string} */
CreatedOn;
/** @type {string} */
CreatedByUserId;
/** @type {?string} */
ModifiedOn;
/** @type {string} */
ModifiedByUserId;
/** @type {?string} */
ToBeReinitializedAt;
}
export class PersonaListViewModel {
/** @param {{Personаs?:IList<Persona>,DecAppUrl?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {IList<Persona>} */
Personаs;
/** @type {string} */
DecAppUrl;
}
JavaScript PersonaRequestDto 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/persona 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 }