"use strict";
/** @typedef {'NotSet'|'Standard'|'RunOff'} */
export var AnalysisType;
(function (AnalysisType) {
AnalysisType["NotSet"] = "NotSet"
AnalysisType["Standard"] = "Standard"
AnalysisType["RunOff"] = "RunOff"
})(AnalysisType || (AnalysisType = {}));
/** @typedef {'NotSet'|'Agg'|'Occ'} */
export var SimulationLossPerspective;
(function (SimulationLossPerspective) {
SimulationLossPerspective["NotSet"] = "NotSet"
SimulationLossPerspective["Agg"] = "Agg"
SimulationLossPerspective["Occ"] = "Occ"
})(SimulationLossPerspective || (SimulationLossPerspective = {}));
/** @typedef {'NotSet'|'Net'|'Gross'} */
export var ReinsurancePremiumLossType;
(function (ReinsurancePremiumLossType) {
ReinsurancePremiumLossType["NotSet"] = "NotSet"
ReinsurancePremiumLossType["Net"] = "Net"
ReinsurancePremiumLossType["Gross"] = "Gross"
})(ReinsurancePremiumLossType || (ReinsurancePremiumLossType = {}));
/** @typedef {'NotSet'|'PortfolioMetrics'|'Curve'|'YLT'|'TailIntensity'|'DealYlt'|'DealElt'|'DealEltWithIndustryLoss'|'PortfolioElt'|'PortfolioEltWithIndustryLoss'|'EventSetGeneration'|'PortfolioRaps'|'DealRaps'|'PortfolioSepyIndustryLoss'|'DealSepyIndustryLoss'} */
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["PortfolioSepyIndustryLoss"] = "PortfolioSepyIndustryLoss"
ResultOutputLevel["DealSepyIndustryLoss"] = "DealSepyIndustryLoss"
})(ResultOutputLevel || (ResultOutputLevel = {}));
export class AnalysisPortfolioEventSetResult {
/** @param {{id?:number,analysisId?:number,analysisPortfolioEventSetConfigurationId?:number,analysisResultId?:number,portfolioName?:string,rowIdentifier?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
id;
/** @type {number} */
analysisId;
/** @type {number} */
analysisPortfolioEventSetConfigurationId;
/** @type {number} */
analysisResultId;
/** @type {string} */
portfolioName;
/** @type {string} */
rowIdentifier;
}
export class AnalysisResult {
/** @param {{id?:number,analysisId?:number,analysisConfigurationId?:number,container?:string,blobName?:string,resultTableName?:string,analysisType?:AnalysisType,simulationLossPerspective?:SimulationLossPerspective,reinsurancePremiumLossType?:ReinsurancePremiumLossType,outputLevel?:ResultOutputLevel,metaRiskId?:number,analysisPortfolioEventSetResults?:AnalysisPortfolioEventSetResult[],rowIdentifier?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
id;
/** @type {number} */
analysisId;
/** @type {number} */
analysisConfigurationId;
/** @type {string} */
container;
/** @type {string} */
blobName;
/** @type {string} */
resultTableName;
/** @type {AnalysisType} */
analysisType;
/** @type {SimulationLossPerspective} */
simulationLossPerspective;
/** @type {ReinsurancePremiumLossType} */
reinsurancePremiumLossType;
/** @type {ResultOutputLevel} */
outputLevel;
/** @type {number} */
metaRiskId;
/** @type {AnalysisPortfolioEventSetResult[]} */
analysisPortfolioEventSetResults;
/** @type {string} */
rowIdentifier;
}
export class ProcessRollupOutputPersistenceRequest {
/** @param {{id?:string,outputDetails?:AnalysisResult[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id;
/** @type {AnalysisResult[]} */
outputDetails;
}
JavaScript ProcessRollupOutputPersistenceRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsonl/oneway/ProcessRollupOutputPersistenceRequest HTTP/1.1
Host: riskstoreng-dev.nephila.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id":"00000000000000000000000000000000","outputDetails":[{"id":0,"analysisId":0,"analysisConfigurationId":0,"container":"String","blobName":"String","resultTableName":"String","analysisType":"NotSet","simulationLossPerspective":"NotSet","reinsurancePremiumLossType":"NotSet","outputLevel":"NotSet","metaRiskId":0,"analysisPortfolioEventSetResults":[{"id":0,"analysisId":0,"analysisPortfolioEventSetConfigurationId":0,"analysisResultId":0,"portfolioName":"String","rowIdentifier":"00000000000000000000000000000000"}],"rowIdentifier":"00000000000000000000000000000000"}]}