| GET | /api/riskstore/results/portfolio-event-set-configurations | Search portfolio event set configuration rows by analysis or analysis configuration |
|---|
"use strict";
export class QueryBase {
/** @param {{skip?:number,take?:number,orderBy?:string,orderByDesc?:string,include?:string,fields?:string,meta?:{ [index:string]: string; }}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?number} */
skip;
/** @type {?number} */
take;
/** @type {string} */
orderBy;
/** @type {string} */
orderByDesc;
/** @type {string} */
include;
/** @type {string} */
fields;
/** @type {{ [index:string]: string; }} */
meta;
}
/** @typedef T {any} */
export class QueryDb extends QueryBase {
/** @param {{skip?:number,take?:number,orderBy?:string,orderByDesc?:string,include?:string,fields?:string,meta?:{ [index:string]: string; }}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
}
export class AnalysisPortfolioEventSetConfiguration {
/** @param {{id?:number,analysisId?:number,analysisConfigurationId?:number,portfolioName?:string,modelId?:string,rowIdentifier?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
id;
/** @type {number} */
analysisId;
/** @type {number} */
analysisConfigurationId;
/** @type {string} */
portfolioName;
/** @type {string} */
modelId;
/** @type {string} */
rowIdentifier;
}
export class FindAnalysisPortfolioEventSetConfigurations extends QueryDb {
/** @param {{ids?:number[],analysisId?:number,analysisIds?:number[],analysisConfigurationId?:number,analysisConfigurationIds?:number[],portfolioName?:string,skip?:number,take?:number,orderBy?:string,orderByDesc?:string,include?:string,fields?:string,meta?:{ [index:string]: string; }}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {number[]} */
ids;
/** @type {?number} */
analysisId;
/** @type {number[]} */
analysisIds;
/** @type {?number} */
analysisConfigurationId;
/** @type {number[]} */
analysisConfigurationIds;
/** @type {string} */
portfolioName;
}
/** @typedef {'NotSet'|'PortfolioMetrics'|'Curve'|'YLT'|'TailIntensity'|'DealYlt'|'DealElt'|'DealEltWithIndustryLoss'|'PortfolioElt'|'PortfolioEltWithIndustryLoss'|'EventSetGeneration'|'PortfolioRaps'|'DealRaps'} */
export var ResultOutputLevel;
(function (ResultOutputLevel) {
ResultOutputLevel["NotSet"] = "NotSet"
ResultOutputLevel["PortfolioMetrics"] = "PortfolioMetrics"
ResultOutputLevel["Curve"] = "Curve"
ResultOutputLevel["YLT"] = "YLT"
ResultOutputLevel["TailIntensity"] = "TailIntensity"
ResultOutputLevel["DealYlt"] = "DealYlt"
ResultOutputLevel["DealElt"] = "DealElt"
ResultOutputLevel["DealEltWithIndustryLoss"] = "DealEltWithIndustryLoss"
ResultOutputLevel["PortfolioElt"] = "PortfolioElt"
ResultOutputLevel["PortfolioEltWithIndustryLoss"] = "PortfolioEltWithIndustryLoss"
ResultOutputLevel["EventSetGeneration"] = "EventSetGeneration"
ResultOutputLevel["PortfolioRaps"] = "PortfolioRaps"
ResultOutputLevel["DealRaps"] = "DealRaps"
})(ResultOutputLevel || (ResultOutputLevel = {}));
/** @typedef {number} */
export var ProcessingStatus;
(function (ProcessingStatus) {
ProcessingStatus[ProcessingStatus["New"] = 0] = "New"
ProcessingStatus[ProcessingStatus["Processing"] = 1] = "Processing"
ProcessingStatus[ProcessingStatus["Failed"] = 10] = "Failed"
ProcessingStatus[ProcessingStatus["Successful"] = 20] = "Successful"
})(ProcessingStatus || (ProcessingStatus = {}));
export class AnalysisConfiguration {
/** @param {{id?:number,analysisId?:number,windowStartDate?:string,windowEndDate?:string,standardEnabled?:boolean,runOffEnabled?:boolean,aggregateEnabled?:boolean,occurrenceEnabled?:boolean,nettEnabled?:boolean,grossEnabled?:boolean,tailIntensityPercentageStart?:number,tailIntensityPercentageEnd?:number,metaRiskId?:number,outputLevel?:ResultOutputLevel,processingStatus?:ProcessingStatus,eventLossFloorStartRange?:number,eventLossFloorEndRange?:number,analysisPortfolioEventSetConfigurations?:AnalysisPortfolioEventSetConfiguration[],rowIdentifier?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
id;
/** @type {number} */
analysisId;
/** @type {?string} */
windowStartDate;
/** @type {?string} */
windowEndDate;
/** @type {boolean} */
standardEnabled;
/** @type {boolean} */
runOffEnabled;
/** @type {boolean} */
aggregateEnabled;
/** @type {boolean} */
occurrenceEnabled;
/** @type {boolean} */
nettEnabled;
/** @type {boolean} */
grossEnabled;
/** @type {?number} */
tailIntensityPercentageStart;
/** @type {?number} */
tailIntensityPercentageEnd;
/** @type {number} */
metaRiskId;
/** @type {ResultOutputLevel} */
outputLevel;
/** @type {ProcessingStatus} */
processingStatus;
/** @type {?number} */
eventLossFloorStartRange;
/** @type {?number} */
eventLossFloorEndRange;
/** @type {AnalysisPortfolioEventSetConfiguration[]} */
analysisPortfolioEventSetConfigurations;
/** @type {string} */
rowIdentifier;
}
/** @typedef {'NotSet'|'S'|'B'} */
export var TransactionType;
(function (TransactionType) {
TransactionType["NotSet"] = "NotSet"
TransactionType["S"] = "S"
TransactionType["B"] = "B"
})(TransactionType || (TransactionType = {}));
export class AnalysisPortfolioAllocation {
/** @param {{id?:number,analysisDealId?:number,portfolioName?:string,allocationPercentage?:number,rowIdentifier?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
id;
/** @type {number} */
analysisDealId;
/** @type {string} */
portfolioName;
/** @type {number} */
allocationPercentage;
/** @type {string} */
rowIdentifier;
}
export class AnalysisDeal {
/** @param {{id?:number,analysisId?:number,sourceDealId?:string,dealRef?:string,sourceDealSystem?:string,eventSetId?:number,rol?:number,limit?:number,inceptionDate?:string,expiryDate?:string,transactionType?:TransactionType,allocations?:AnalysisPortfolioAllocation[],perspectiveIdOverride?:number,eventSetIdOverride?:number,modelAsOfDateOverride?:string,sourceModelSystemOverride?:string,sourceModelIdOverride?:string,sourceEventSetIdOverride?:string,eventSourceSystemOverride?:string,rowIdentifier?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
id;
/** @type {number} */
analysisId;
/** @type {string} */
sourceDealId;
/** @type {string} */
dealRef;
/** @type {string} */
sourceDealSystem;
/** @type {number} */
eventSetId;
/** @type {number} */
rol;
/** @type {number} */
limit;
/** @type {string} */
inceptionDate;
/** @type {string} */
expiryDate;
/** @type {TransactionType} */
transactionType;
/** @type {AnalysisPortfolioAllocation[]} */
allocations;
/** @type {?number} */
perspectiveIdOverride;
/** @type {?number} */
eventSetIdOverride;
/** @type {?string} */
modelAsOfDateOverride;
/** @type {string} */
sourceModelSystemOverride;
/** @type {string} */
sourceModelIdOverride;
/** @type {string} */
sourceEventSetIdOverride;
/** @type {string} */
eventSourceSystemOverride;
/** @type {string} */
rowIdentifier;
}
export class AnalysisEventIdFilter {
/** @param {{id?:number,analysisId?:number,eventSourceId?:number,eventId?:number,rowIdentifier?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
id;
/** @type {number} */
analysisId;
/** @type {number} */
eventSourceId;
/** @type {number} */
eventId;
/** @type {string} */
rowIdentifier;
}
/** @typedef {'NotSet'|'Persistence'|'Archival'} */
export var MessageType;
(function (MessageType) {
MessageType["NotSet"] = "NotSet"
MessageType["Persistence"] = "Persistence"
MessageType["Archival"] = "Archival"
})(MessageType || (MessageType = {}));
export class MessageTracking {
/** @param {{id?:string,analysisId?:number,processingStatus?:ProcessingStatus,messageType?:MessageType,createdDateUtc?:string,updatedDateUtc?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id;
/** @type {?number} */
analysisId;
/** @type {ProcessingStatus} */
processingStatus;
/** @type {MessageType} */
messageType;
/** @type {string} */
createdDateUtc;
/** @type {string} */
updatedDateUtc;
}
export class Analysis {
/** @param {{id?:number,name?:string,modelAsOfDate?:string,perspectiveId?:number,configurations?:AnalysisConfiguration[],deals?:AnalysisDeal[],eventIdFilters?:AnalysisEventIdFilter[],createdBy?:string,createdDateUtc?:string,completedDateUtc?:string,legacyAnalysisId?:number,resultPersistenceTracking?:MessageTracking[],processingStatus?:ProcessingStatus,saveResults?:boolean,eventSourceSystem?:string,updatedDateUtc?:string,isExpired?:boolean,rowIdentifier?:string,errorMessage?:string,ignoreSimulationCountMismatch?:boolean,finalStatus?:ProcessingStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
id;
/** @type {string} */
name;
/** @type {?string} */
modelAsOfDate;
/** @type {number} */
perspectiveId;
/** @type {AnalysisConfiguration[]} */
configurations;
/** @type {AnalysisDeal[]} */
deals;
/** @type {AnalysisEventIdFilter[]} */
eventIdFilters;
/** @type {string} */
createdBy;
/** @type {string} */
createdDateUtc;
/** @type {?string} */
completedDateUtc;
/** @type {?number} */
legacyAnalysisId;
/** @type {MessageTracking[]} */
resultPersistenceTracking;
/** @type {ProcessingStatus} */
processingStatus;
/** @type {boolean} */
saveResults;
/** @type {string} */
eventSourceSystem;
/** @type {string} */
updatedDateUtc;
/** @type {boolean} */
isExpired;
/** @type {string} */
rowIdentifier;
/** @type {string} */
errorMessage;
/**
* @type {boolean}
* @description Take the minimum simulation count when we have different simulations between event sets */
ignoreSimulationCountMismatch;
/** @type {ProcessingStatus} */
finalStatus;
}
/** @typedef T {any} */
export class QueryResponse {
/** @param {{offset?:number,total?:number,results?:T[],meta?:{ [index:string]: string; },responseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
offset;
/** @type {number} */
total;
/** @type {T[]} */
results;
/** @type {{ [index:string]: string; }} */
meta;
/** @type {ResponseStatus} */
responseStatus;
}
JavaScript FindAnalysisPortfolioEventSetConfigurations DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/riskstore/results/portfolio-event-set-configurations HTTP/1.1 Host: riskstoreng-dev.nephila.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<QueryResponseOfAnalysisPortfolioEventSetConfiguratione3Twhsvh xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
<Offset>0</Offset>
<Total>0</Total>
<Results xmlns:d2p1="http://schemas.datacontract.org/2004/07/Nephila.RiskStore.ServiceModel.Types">
<d2p1:AnalysisPortfolioEventSetConfiguration>
<d2p1:AnalysisConfigurationId>0</d2p1:AnalysisConfigurationId>
<d2p1:AnalysisId>0</d2p1:AnalysisId>
<d2p1:Id>0</d2p1:Id>
<d2p1:ModelId>String</d2p1:ModelId>
<d2p1:PortfolioName>String</d2p1:PortfolioName>
<d2p1:RowIdentifier>00000000-0000-0000-0000-000000000000</d2p1:RowIdentifier>
</d2p1:AnalysisPortfolioEventSetConfiguration>
</Results>
<Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</Meta>
<ResponseStatus>
<ErrorCode>String</ErrorCode>
<Message>String</Message>
<StackTrace>String</StackTrace>
<Errors>
<ResponseError>
<ErrorCode>String</ErrorCode>
<FieldName>String</FieldName>
<Message>String</Message>
<Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</Meta>
</ResponseError>
</Errors>
<Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</Meta>
</ResponseStatus>
</QueryResponseOfAnalysisPortfolioEventSetConfiguratione3Twhsvh>