"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
    for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.VoidAuth = exports.OAuth = exports.ApiKeyAuth = exports.HttpBasicAuth = exports.ObjectSerializer = void 0;
__exportStar(require("./accessControlledAction"), exports);
__exportStar(require("./accessControlledResource"), exports);
__exportStar(require("./accessMetadataValue"), exports);
__exportStar(require("./actionId"), exports);
__exportStar(require("./adjustHolding"), exports);
__exportStar(require("./adjustHoldingRequest"), exports);
__exportStar(require("./aggregateSpec"), exports);
__exportStar(require("./aggregationContext"), exports);
__exportStar(require("./aggregationMeasureFailureDetail"), exports);
__exportStar(require("./aggregationOptions"), exports);
__exportStar(require("./aggregationRequest"), exports);
__exportStar(require("./aggregationResponseNodeOfDictionaryOfStringToObject"), exports);
__exportStar(require("./aggregationResult"), exports);
__exportStar(require("./allocation"), exports);
__exportStar(require("./allocationRequest"), exports);
__exportStar(require("./allocationSetRequest"), exports);
__exportStar(require("./annulQuotesResponse"), exports);
__exportStar(require("./annulSingleStructuredDataResponse"), exports);
__exportStar(require("./annulStructuredDataResponse"), exports);
__exportStar(require("./bondInstrument"), exports);
__exportStar(require("./bondInstrumentAllOf"), exports);
__exportStar(require("./cdsDetailSpecification"), exports);
__exportStar(require("./cdsInstrument"), exports);
__exportStar(require("./cdsInstrumentAllOf"), exports);
__exportStar(require("./change"), exports);
__exportStar(require("./completePortfolio"), exports);
__exportStar(require("./configurationRecipe"), exports);
__exportStar(require("./configurationRecipeSnippet"), exports);
__exportStar(require("./constituentsAdjustmentHeader"), exports);
__exportStar(require("./corporateAction"), exports);
__exportStar(require("./corporateActionSource"), exports);
__exportStar(require("./corporateActionTransition"), exports);
__exportStar(require("./corporateActionTransitionComponent"), exports);
__exportStar(require("./corporateActionTransitionComponentRequest"), exports);
__exportStar(require("./corporateActionTransitionRequest"), exports);
__exportStar(require("./createCorporateActionSourceRequest"), exports);
__exportStar(require("./createCutLabelDefinitionRequest"), exports);
__exportStar(require("./createDataTypeRequest"), exports);
__exportStar(require("./createDerivedTransactionPortfolioRequest"), exports);
__exportStar(require("./createPortfolioDetails"), exports);
__exportStar(require("./createPortfolioGroupRequest"), exports);
__exportStar(require("./createPropertyDefinitionRequest"), exports);
__exportStar(require("./createRecipeRequest"), exports);
__exportStar(require("./createReferencePortfolioRequest"), exports);
__exportStar(require("./createResults"), exports);
__exportStar(require("./createTransactionPortfolioRequest"), exports);
__exportStar(require("./createUnitDefinition"), exports);
__exportStar(require("./currencyAndAmount"), exports);
__exportStar(require("./cutLabelDefinition"), exports);
__exportStar(require("./cutLocalTime"), exports);
__exportStar(require("./dataDefinition"), exports);
__exportStar(require("./dataMapping"), exports);
__exportStar(require("./dataType"), exports);
__exportStar(require("./deleteInstrumentPropertiesResponse"), exports);
__exportStar(require("./deleteInstrumentResponse"), exports);
__exportStar(require("./deletedEntityResponse"), exports);
__exportStar(require("./equityOption"), exports);
__exportStar(require("./equityOptionAllOf"), exports);
__exportStar(require("./errorDetail"), exports);
__exportStar(require("./executionRequest"), exports);
__exportStar(require("./expandedGroup"), exports);
__exportStar(require("./fieldSchema"), exports);
__exportStar(require("./fileResponse"), exports);
__exportStar(require("./fixedLeg"), exports);
__exportStar(require("./fixedLegAllOf"), exports);
__exportStar(require("./fixedLegAllOfOverrides"), exports);
__exportStar(require("./floatingLeg"), exports);
__exportStar(require("./flowConventions"), exports);
__exportStar(require("./fxForwardInstrument"), exports);
__exportStar(require("./fxForwardInstrumentAllOf"), exports);
__exportStar(require("./fxOption"), exports);
__exportStar(require("./fxOptionAllOf"), exports);
__exportStar(require("./getInstrumentsResponse"), exports);
__exportStar(require("./getQuotesResponse"), exports);
__exportStar(require("./getRecipeResponse"), exports);
__exportStar(require("./getReferencePortfolioConstituentsResponse"), exports);
__exportStar(require("./getStructuredMarketDataResponse"), exports);
__exportStar(require("./getStructuredResultDataResponse"), exports);
__exportStar(require("./holdingAdjustment"), exports);
__exportStar(require("./holdingsAdjustment"), exports);
__exportStar(require("./holdingsAdjustmentHeader"), exports);
__exportStar(require("./iUnitDefinitionDto"), exports);
__exportStar(require("./idSelectorDefinition"), exports);
__exportStar(require("./identifierPartSchema"), exports);
__exportStar(require("./indexConvention"), exports);
__exportStar(require("./inlineAggregationRequest"), exports);
__exportStar(require("./inlineValuationReconciliationRequest"), exports);
__exportStar(require("./inlineValuationsReconciliationRequest"), exports);
__exportStar(require("./instrument"), exports);
__exportStar(require("./instrumentDefinition"), exports);
__exportStar(require("./instrumentEconomicDefinition"), exports);
__exportStar(require("./instrumentIdTypeDescriptor"), exports);
__exportStar(require("./instrumentIdValue"), exports);
__exportStar(require("./instrumentLeg"), exports);
__exportStar(require("./instrumentMatch"), exports);
__exportStar(require("./instrumentSearchProperty"), exports);
__exportStar(require("./legDefinition"), exports);
__exportStar(require("./link"), exports);
__exportStar(require("./listAggregationResponse"), exports);
__exportStar(require("./lusidInstrument"), exports);
__exportStar(require("./lusidInstrumentDefinition"), exports);
__exportStar(require("./lusidProblemDetails"), exports);
__exportStar(require("./lusidValidationProblemDetails"), exports);
__exportStar(require("./marketContext"), exports);
__exportStar(require("./marketContextSuppliers"), exports);
__exportStar(require("./marketDataKeyRule"), exports);
__exportStar(require("./marketDataManifest"), exports);
__exportStar(require("./marketOptions"), exports);
__exportStar(require("./metricValue"), exports);
__exportStar(require("./modelSelection"), exports);
__exportStar(require("./nestedAggregationResponse"), exports);
__exportStar(require("./order"), exports);
__exportStar(require("./orderBySpec"), exports);
__exportStar(require("./orderRequest"), exports);
__exportStar(require("./orderSetRequest"), exports);
__exportStar(require("./outputTransaction"), exports);
__exportStar(require("./pagedResourceListOfAllocation"), exports);
__exportStar(require("./pagedResourceListOfInstrument"), exports);
__exportStar(require("./pagedResourceListOfOrder"), exports);
__exportStar(require("./pagedResourceListOfPortfolioGroup"), exports);
__exportStar(require("./pagedResourceListOfPortfolioSearchResult"), exports);
__exportStar(require("./pagedResourceListOfPropertyDefinition"), exports);
__exportStar(require("./perpetualProperty"), exports);
__exportStar(require("./person"), exports);
__exportStar(require("./portfolio"), exports);
__exportStar(require("./portfolioDetails"), exports);
__exportStar(require("./portfolioGroup"), exports);
__exportStar(require("./portfolioGroupProperties"), exports);
__exportStar(require("./portfolioHolding"), exports);
__exportStar(require("./portfolioProperties"), exports);
__exportStar(require("./portfolioReconciliationRequest"), exports);
__exportStar(require("./portfolioSearchResult"), exports);
__exportStar(require("./portfoliosReconciliationRequest"), exports);
__exportStar(require("./portfoliosReconciliationRequestPreview"), exports);
__exportStar(require("./pricingContext"), exports);
__exportStar(require("./pricingOptions"), exports);
__exportStar(require("./processedCommand"), exports);
__exportStar(require("./property"), exports);
__exportStar(require("./propertyDefinition"), exports);
__exportStar(require("./propertyFilter"), exports);
__exportStar(require("./propertySchema"), exports);
__exportStar(require("./propertyValue"), exports);
__exportStar(require("./queryableEntitiesResponse"), exports);
__exportStar(require("./quote"), exports);
__exportStar(require("./quoteAccessMetadataRule"), exports);
__exportStar(require("./quoteAccessMetadataRuleId"), exports);
__exportStar(require("./quoteId"), exports);
__exportStar(require("./quoteSeriesId"), exports);
__exportStar(require("./realisedGainLoss"), exports);
__exportStar(require("./reconciliationBreak"), exports);
__exportStar(require("./referencePortfolioConstituent"), exports);
__exportStar(require("./referencePortfolioConstituentRequest"), exports);
__exportStar(require("./resourceId"), exports);
__exportStar(require("./resourceListOfAccessControlledResource"), exports);
__exportStar(require("./resourceListOfAccessMetadataValueOf"), exports);
__exportStar(require("./resourceListOfAllocation"), exports);
__exportStar(require("./resourceListOfChange"), exports);
__exportStar(require("./resourceListOfConstituentsAdjustmentHeader"), exports);
__exportStar(require("./resourceListOfCorporateAction"), exports);
__exportStar(require("./resourceListOfCorporateActionSource"), exports);
__exportStar(require("./resourceListOfCutLabelDefinition"), exports);
__exportStar(require("./resourceListOfDataType"), exports);
__exportStar(require("./resourceListOfGetRecipeResponse"), exports);
__exportStar(require("./resourceListOfHoldingsAdjustmentHeader"), exports);
__exportStar(require("./resourceListOfIUnitDefinitionDto"), exports);
__exportStar(require("./resourceListOfInstrumentIdTypeDescriptor"), exports);
__exportStar(require("./resourceListOfOrder"), exports);
__exportStar(require("./resourceListOfPerson"), exports);
__exportStar(require("./resourceListOfPortfolio"), exports);
__exportStar(require("./resourceListOfPortfolioGroup"), exports);
__exportStar(require("./resourceListOfPortfolioSearchResult"), exports);
__exportStar(require("./resourceListOfProcessedCommand"), exports);
__exportStar(require("./resourceListOfPropertyDefinition"), exports);
__exportStar(require("./resourceListOfQuote"), exports);
__exportStar(require("./resourceListOfQuoteAccessMetadataRule"), exports);
__exportStar(require("./resourceListOfReconciliationBreak"), exports);
__exportStar(require("./resourceListOfScopeDefinition"), exports);
__exportStar(require("./resourceListOfString"), exports);
__exportStar(require("./resourceListOfValueType"), exports);
__exportStar(require("./resultDataKeyRule"), exports);
__exportStar(require("./resultDataSchema"), exports);
__exportStar(require("./results"), exports);
__exportStar(require("./schema"), exports);
__exportStar(require("./scopeDefinition"), exports);
__exportStar(require("./setPersonIdentifiersRequest"), exports);
__exportStar(require("./setPersonPropertiesRequest"), exports);
__exportStar(require("./sideConfigurationData"), exports);
__exportStar(require("./sideConfigurationDataRequest"), exports);
__exportStar(require("./stream"), exports);
__exportStar(require("./structuredMarketData"), exports);
__exportStar(require("./structuredMarketDataId"), exports);
__exportStar(require("./structuredResultData"), exports);
__exportStar(require("./structuredResultDataId"), exports);
__exportStar(require("./swapInstrument"), exports);
__exportStar(require("./swapInstrumentAllOf"), exports);
__exportStar(require("./swaption"), exports);
__exportStar(require("./swaptionAllOf"), exports);
__exportStar(require("./targetTaxLot"), exports);
__exportStar(require("./targetTaxLotRequest"), exports);
__exportStar(require("./tenor"), exports);
__exportStar(require("./tolerance"), exports);
__exportStar(require("./transaction"), exports);
__exportStar(require("./transactionConfigurationData"), exports);
__exportStar(require("./transactionConfigurationDataRequest"), exports);
__exportStar(require("./transactionConfigurationMovementData"), exports);
__exportStar(require("./transactionConfigurationMovementDataRequest"), exports);
__exportStar(require("./transactionConfigurationTypeAlias"), exports);
__exportStar(require("./transactionPrice"), exports);
__exportStar(require("./transactionPropertyMapping"), exports);
__exportStar(require("./transactionPropertyMappingRequest"), exports);
__exportStar(require("./transactionQueryParameters"), exports);
__exportStar(require("./transactionRequest"), exports);
__exportStar(require("./transactionSetConfigurationData"), exports);
__exportStar(require("./transactionSetConfigurationDataRequest"), exports);
__exportStar(require("./updateCutLabelDefinitionRequest"), exports);
__exportStar(require("./updateDataTypeRequest"), exports);
__exportStar(require("./updateInstrumentIdentifierRequest"), exports);
__exportStar(require("./updatePortfolioGroupRequest"), exports);
__exportStar(require("./updatePortfolioRequest"), exports);
__exportStar(require("./updatePropertyDefinitionRequest"), exports);
__exportStar(require("./upsertCorporateActionRequest"), exports);
__exportStar(require("./upsertCorporateActionsResponse"), exports);
__exportStar(require("./upsertInstrumentPropertiesResponse"), exports);
__exportStar(require("./upsertInstrumentPropertyRequest"), exports);
__exportStar(require("./upsertInstrumentsResponse"), exports);
__exportStar(require("./upsertOrderPropertiesRequest"), exports);
__exportStar(require("./upsertOrderPropertiesResponse"), exports);
__exportStar(require("./upsertPersonAccessMetadataRequest"), exports);
__exportStar(require("./upsertPersonRequest"), exports);
__exportStar(require("./upsertPortfolioAccessMetadataRequest"), exports);
__exportStar(require("./upsertPortfolioExecutionsResponse"), exports);
__exportStar(require("./upsertPortfolioGroupAccessMetadataRequest"), exports);
__exportStar(require("./upsertPortfolioTransactionsResponse"), exports);
__exportStar(require("./upsertQuoteAccessMetadataRuleRequest"), exports);
__exportStar(require("./upsertQuoteRequest"), exports);
__exportStar(require("./upsertQuotesResponse"), exports);
__exportStar(require("./upsertRecipeRequest"), exports);
__exportStar(require("./upsertReferencePortfolioConstituentsRequest"), exports);
__exportStar(require("./upsertReferencePortfolioConstituentsResponse"), exports);
__exportStar(require("./upsertSingleStructuredDataResponse"), exports);
__exportStar(require("./upsertStructuredDataResponse"), exports);
__exportStar(require("./upsertStructuredMarketDataRequest"), exports);
__exportStar(require("./upsertStructuredResultDataRequest"), exports);
__exportStar(require("./upsertTransactionPropertiesResponse"), exports);
__exportStar(require("./user"), exports);
__exportStar(require("./valuationReconciliationRequest"), exports);
__exportStar(require("./valuationsReconciliationRequest"), exports);
__exportStar(require("./valueTupleOfMarketDataKeyRuleToQuote"), exports);
__exportStar(require("./valueTupleOfMarketDataKeyRuleToStructuredMarketData"), exports);
__exportStar(require("./vendorModelRule"), exports);
__exportStar(require("./version"), exports);
__exportStar(require("./versionSummaryDto"), exports);
__exportStar(require("./versionedResourceListOfOutputTransaction"), exports);
__exportStar(require("./versionedResourceListOfPortfolioHolding"), exports);
__exportStar(require("./versionedResourceListOfTransaction"), exports);
__exportStar(require("./weightedInstrument"), exports);
var accessControlledAction_1 = require("./accessControlledAction");
var accessControlledResource_1 = require("./accessControlledResource");
var accessMetadataValue_1 = require("./accessMetadataValue");
var actionId_1 = require("./actionId");
var adjustHolding_1 = require("./adjustHolding");
var adjustHoldingRequest_1 = require("./adjustHoldingRequest");
var aggregateSpec_1 = require("./aggregateSpec");
var aggregationContext_1 = require("./aggregationContext");
var aggregationMeasureFailureDetail_1 = require("./aggregationMeasureFailureDetail");
var aggregationOptions_1 = require("./aggregationOptions");
var aggregationRequest_1 = require("./aggregationRequest");
var aggregationResponseNodeOfDictionaryOfStringToObject_1 = require("./aggregationResponseNodeOfDictionaryOfStringToObject");
var aggregationResult_1 = require("./aggregationResult");
var allocation_1 = require("./allocation");
var allocationRequest_1 = require("./allocationRequest");
var allocationSetRequest_1 = require("./allocationSetRequest");
var annulQuotesResponse_1 = require("./annulQuotesResponse");
var annulSingleStructuredDataResponse_1 = require("./annulSingleStructuredDataResponse");
var annulStructuredDataResponse_1 = require("./annulStructuredDataResponse");
var bondInstrument_1 = require("./bondInstrument");
var bondInstrumentAllOf_1 = require("./bondInstrumentAllOf");
var cdsDetailSpecification_1 = require("./cdsDetailSpecification");
var cdsInstrument_1 = require("./cdsInstrument");
var cdsInstrumentAllOf_1 = require("./cdsInstrumentAllOf");
var change_1 = require("./change");
var completePortfolio_1 = require("./completePortfolio");
var configurationRecipe_1 = require("./configurationRecipe");
var configurationRecipeSnippet_1 = require("./configurationRecipeSnippet");
var constituentsAdjustmentHeader_1 = require("./constituentsAdjustmentHeader");
var corporateAction_1 = require("./corporateAction");
var corporateActionSource_1 = require("./corporateActionSource");
var corporateActionTransition_1 = require("./corporateActionTransition");
var corporateActionTransitionComponent_1 = require("./corporateActionTransitionComponent");
var corporateActionTransitionComponentRequest_1 = require("./corporateActionTransitionComponentRequest");
var corporateActionTransitionRequest_1 = require("./corporateActionTransitionRequest");
var createCorporateActionSourceRequest_1 = require("./createCorporateActionSourceRequest");
var createCutLabelDefinitionRequest_1 = require("./createCutLabelDefinitionRequest");
var createDataTypeRequest_1 = require("./createDataTypeRequest");
var createDerivedTransactionPortfolioRequest_1 = require("./createDerivedTransactionPortfolioRequest");
var createPortfolioDetails_1 = require("./createPortfolioDetails");
var createPortfolioGroupRequest_1 = require("./createPortfolioGroupRequest");
var createPropertyDefinitionRequest_1 = require("./createPropertyDefinitionRequest");
var createRecipeRequest_1 = require("./createRecipeRequest");
var createReferencePortfolioRequest_1 = require("./createReferencePortfolioRequest");
var createResults_1 = require("./createResults");
var createTransactionPortfolioRequest_1 = require("./createTransactionPortfolioRequest");
var createUnitDefinition_1 = require("./createUnitDefinition");
var currencyAndAmount_1 = require("./currencyAndAmount");
var cutLabelDefinition_1 = require("./cutLabelDefinition");
var cutLocalTime_1 = require("./cutLocalTime");
var dataDefinition_1 = require("./dataDefinition");
var dataMapping_1 = require("./dataMapping");
var dataType_1 = require("./dataType");
var deleteInstrumentPropertiesResponse_1 = require("./deleteInstrumentPropertiesResponse");
var deleteInstrumentResponse_1 = require("./deleteInstrumentResponse");
var deletedEntityResponse_1 = require("./deletedEntityResponse");
var equityOption_1 = require("./equityOption");
var equityOptionAllOf_1 = require("./equityOptionAllOf");
var errorDetail_1 = require("./errorDetail");
var executionRequest_1 = require("./executionRequest");
var expandedGroup_1 = require("./expandedGroup");
var fieldSchema_1 = require("./fieldSchema");
var fileResponse_1 = require("./fileResponse");
var fixedLeg_1 = require("./fixedLeg");
var fixedLegAllOf_1 = require("./fixedLegAllOf");
var fixedLegAllOfOverrides_1 = require("./fixedLegAllOfOverrides");
var floatingLeg_1 = require("./floatingLeg");
var flowConventions_1 = require("./flowConventions");
var fxForwardInstrument_1 = require("./fxForwardInstrument");
var fxForwardInstrumentAllOf_1 = require("./fxForwardInstrumentAllOf");
var fxOption_1 = require("./fxOption");
var fxOptionAllOf_1 = require("./fxOptionAllOf");
var getInstrumentsResponse_1 = require("./getInstrumentsResponse");
var getQuotesResponse_1 = require("./getQuotesResponse");
var getRecipeResponse_1 = require("./getRecipeResponse");
var getReferencePortfolioConstituentsResponse_1 = require("./getReferencePortfolioConstituentsResponse");
var getStructuredMarketDataResponse_1 = require("./getStructuredMarketDataResponse");
var getStructuredResultDataResponse_1 = require("./getStructuredResultDataResponse");
var holdingAdjustment_1 = require("./holdingAdjustment");
var holdingsAdjustment_1 = require("./holdingsAdjustment");
var holdingsAdjustmentHeader_1 = require("./holdingsAdjustmentHeader");
var iUnitDefinitionDto_1 = require("./iUnitDefinitionDto");
var idSelectorDefinition_1 = require("./idSelectorDefinition");
var identifierPartSchema_1 = require("./identifierPartSchema");
var indexConvention_1 = require("./indexConvention");
var inlineAggregationRequest_1 = require("./inlineAggregationRequest");
var inlineValuationReconciliationRequest_1 = require("./inlineValuationReconciliationRequest");
var inlineValuationsReconciliationRequest_1 = require("./inlineValuationsReconciliationRequest");
var instrument_1 = require("./instrument");
var instrumentDefinition_1 = require("./instrumentDefinition");
var instrumentEconomicDefinition_1 = require("./instrumentEconomicDefinition");
var instrumentIdTypeDescriptor_1 = require("./instrumentIdTypeDescriptor");
var instrumentIdValue_1 = require("./instrumentIdValue");
var instrumentLeg_1 = require("./instrumentLeg");
var instrumentMatch_1 = require("./instrumentMatch");
var instrumentSearchProperty_1 = require("./instrumentSearchProperty");
var legDefinition_1 = require("./legDefinition");
var link_1 = require("./link");
var listAggregationResponse_1 = require("./listAggregationResponse");
var lusidInstrument_1 = require("./lusidInstrument");
var lusidInstrumentDefinition_1 = require("./lusidInstrumentDefinition");
var lusidProblemDetails_1 = require("./lusidProblemDetails");
var lusidValidationProblemDetails_1 = require("./lusidValidationProblemDetails");
var marketContext_1 = require("./marketContext");
var marketContextSuppliers_1 = require("./marketContextSuppliers");
var marketDataKeyRule_1 = require("./marketDataKeyRule");
var marketDataManifest_1 = require("./marketDataManifest");
var marketOptions_1 = require("./marketOptions");
var metricValue_1 = require("./metricValue");
var modelSelection_1 = require("./modelSelection");
var nestedAggregationResponse_1 = require("./nestedAggregationResponse");
var order_1 = require("./order");
var orderBySpec_1 = require("./orderBySpec");
var orderRequest_1 = require("./orderRequest");
var orderSetRequest_1 = require("./orderSetRequest");
var outputTransaction_1 = require("./outputTransaction");
var pagedResourceListOfAllocation_1 = require("./pagedResourceListOfAllocation");
var pagedResourceListOfInstrument_1 = require("./pagedResourceListOfInstrument");
var pagedResourceListOfOrder_1 = require("./pagedResourceListOfOrder");
var pagedResourceListOfPortfolioGroup_1 = require("./pagedResourceListOfPortfolioGroup");
var pagedResourceListOfPortfolioSearchResult_1 = require("./pagedResourceListOfPortfolioSearchResult");
var pagedResourceListOfPropertyDefinition_1 = require("./pagedResourceListOfPropertyDefinition");
var perpetualProperty_1 = require("./perpetualProperty");
var person_1 = require("./person");
var portfolio_1 = require("./portfolio");
var portfolioDetails_1 = require("./portfolioDetails");
var portfolioGroup_1 = require("./portfolioGroup");
var portfolioGroupProperties_1 = require("./portfolioGroupProperties");
var portfolioHolding_1 = require("./portfolioHolding");
var portfolioProperties_1 = require("./portfolioProperties");
var portfolioReconciliationRequest_1 = require("./portfolioReconciliationRequest");
var portfolioSearchResult_1 = require("./portfolioSearchResult");
var portfoliosReconciliationRequest_1 = require("./portfoliosReconciliationRequest");
var portfoliosReconciliationRequestPreview_1 = require("./portfoliosReconciliationRequestPreview");
var pricingContext_1 = require("./pricingContext");
var pricingOptions_1 = require("./pricingOptions");
var processedCommand_1 = require("./processedCommand");
var property_1 = require("./property");
var propertyDefinition_1 = require("./propertyDefinition");
var propertyFilter_1 = require("./propertyFilter");
var propertySchema_1 = require("./propertySchema");
var propertyValue_1 = require("./propertyValue");
var queryableEntitiesResponse_1 = require("./queryableEntitiesResponse");
var quote_1 = require("./quote");
var quoteAccessMetadataRule_1 = require("./quoteAccessMetadataRule");
var quoteAccessMetadataRuleId_1 = require("./quoteAccessMetadataRuleId");
var quoteId_1 = require("./quoteId");
var quoteSeriesId_1 = require("./quoteSeriesId");
var realisedGainLoss_1 = require("./realisedGainLoss");
var reconciliationBreak_1 = require("./reconciliationBreak");
var referencePortfolioConstituent_1 = require("./referencePortfolioConstituent");
var referencePortfolioConstituentRequest_1 = require("./referencePortfolioConstituentRequest");
var resourceId_1 = require("./resourceId");
var resourceListOfAccessControlledResource_1 = require("./resourceListOfAccessControlledResource");
var resourceListOfAccessMetadataValueOf_1 = require("./resourceListOfAccessMetadataValueOf");
var resourceListOfAllocation_1 = require("./resourceListOfAllocation");
var resourceListOfChange_1 = require("./resourceListOfChange");
var resourceListOfConstituentsAdjustmentHeader_1 = require("./resourceListOfConstituentsAdjustmentHeader");
var resourceListOfCorporateAction_1 = require("./resourceListOfCorporateAction");
var resourceListOfCorporateActionSource_1 = require("./resourceListOfCorporateActionSource");
var resourceListOfCutLabelDefinition_1 = require("./resourceListOfCutLabelDefinition");
var resourceListOfDataType_1 = require("./resourceListOfDataType");
var resourceListOfGetRecipeResponse_1 = require("./resourceListOfGetRecipeResponse");
var resourceListOfHoldingsAdjustmentHeader_1 = require("./resourceListOfHoldingsAdjustmentHeader");
var resourceListOfIUnitDefinitionDto_1 = require("./resourceListOfIUnitDefinitionDto");
var resourceListOfInstrumentIdTypeDescriptor_1 = require("./resourceListOfInstrumentIdTypeDescriptor");
var resourceListOfOrder_1 = require("./resourceListOfOrder");
var resourceListOfPerson_1 = require("./resourceListOfPerson");
var resourceListOfPortfolio_1 = require("./resourceListOfPortfolio");
var resourceListOfPortfolioGroup_1 = require("./resourceListOfPortfolioGroup");
var resourceListOfPortfolioSearchResult_1 = require("./resourceListOfPortfolioSearchResult");
var resourceListOfProcessedCommand_1 = require("./resourceListOfProcessedCommand");
var resourceListOfPropertyDefinition_1 = require("./resourceListOfPropertyDefinition");
var resourceListOfQuote_1 = require("./resourceListOfQuote");
var resourceListOfQuoteAccessMetadataRule_1 = require("./resourceListOfQuoteAccessMetadataRule");
var resourceListOfReconciliationBreak_1 = require("./resourceListOfReconciliationBreak");
var resourceListOfScopeDefinition_1 = require("./resourceListOfScopeDefinition");
var resourceListOfString_1 = require("./resourceListOfString");
var resourceListOfValueType_1 = require("./resourceListOfValueType");
var resultDataKeyRule_1 = require("./resultDataKeyRule");
var resultDataSchema_1 = require("./resultDataSchema");
var results_1 = require("./results");
var schema_1 = require("./schema");
var scopeDefinition_1 = require("./scopeDefinition");
var setPersonIdentifiersRequest_1 = require("./setPersonIdentifiersRequest");
var setPersonPropertiesRequest_1 = require("./setPersonPropertiesRequest");
var sideConfigurationData_1 = require("./sideConfigurationData");
var sideConfigurationDataRequest_1 = require("./sideConfigurationDataRequest");
var stream_1 = require("./stream");
var structuredMarketData_1 = require("./structuredMarketData");
var structuredMarketDataId_1 = require("./structuredMarketDataId");
var structuredResultData_1 = require("./structuredResultData");
var structuredResultDataId_1 = require("./structuredResultDataId");
var swapInstrument_1 = require("./swapInstrument");
var swapInstrumentAllOf_1 = require("./swapInstrumentAllOf");
var swaption_1 = require("./swaption");
var swaptionAllOf_1 = require("./swaptionAllOf");
var targetTaxLot_1 = require("./targetTaxLot");
var targetTaxLotRequest_1 = require("./targetTaxLotRequest");
var tenor_1 = require("./tenor");
var tolerance_1 = require("./tolerance");
var transaction_1 = require("./transaction");
var transactionConfigurationData_1 = require("./transactionConfigurationData");
var transactionConfigurationDataRequest_1 = require("./transactionConfigurationDataRequest");
var transactionConfigurationMovementData_1 = require("./transactionConfigurationMovementData");
var transactionConfigurationMovementDataRequest_1 = require("./transactionConfigurationMovementDataRequest");
var transactionConfigurationTypeAlias_1 = require("./transactionConfigurationTypeAlias");
var transactionPrice_1 = require("./transactionPrice");
var transactionPropertyMapping_1 = require("./transactionPropertyMapping");
var transactionPropertyMappingRequest_1 = require("./transactionPropertyMappingRequest");
var transactionQueryParameters_1 = require("./transactionQueryParameters");
var transactionRequest_1 = require("./transactionRequest");
var transactionSetConfigurationData_1 = require("./transactionSetConfigurationData");
var transactionSetConfigurationDataRequest_1 = require("./transactionSetConfigurationDataRequest");
var updateCutLabelDefinitionRequest_1 = require("./updateCutLabelDefinitionRequest");
var updateDataTypeRequest_1 = require("./updateDataTypeRequest");
var updateInstrumentIdentifierRequest_1 = require("./updateInstrumentIdentifierRequest");
var updatePortfolioGroupRequest_1 = require("./updatePortfolioGroupRequest");
var updatePortfolioRequest_1 = require("./updatePortfolioRequest");
var updatePropertyDefinitionRequest_1 = require("./updatePropertyDefinitionRequest");
var upsertCorporateActionRequest_1 = require("./upsertCorporateActionRequest");
var upsertCorporateActionsResponse_1 = require("./upsertCorporateActionsResponse");
var upsertInstrumentPropertiesResponse_1 = require("./upsertInstrumentPropertiesResponse");
var upsertInstrumentPropertyRequest_1 = require("./upsertInstrumentPropertyRequest");
var upsertInstrumentsResponse_1 = require("./upsertInstrumentsResponse");
var upsertOrderPropertiesRequest_1 = require("./upsertOrderPropertiesRequest");
var upsertOrderPropertiesResponse_1 = require("./upsertOrderPropertiesResponse");
var upsertPersonAccessMetadataRequest_1 = require("./upsertPersonAccessMetadataRequest");
var upsertPersonRequest_1 = require("./upsertPersonRequest");
var upsertPortfolioAccessMetadataRequest_1 = require("./upsertPortfolioAccessMetadataRequest");
var upsertPortfolioExecutionsResponse_1 = require("./upsertPortfolioExecutionsResponse");
var upsertPortfolioGroupAccessMetadataRequest_1 = require("./upsertPortfolioGroupAccessMetadataRequest");
var upsertPortfolioTransactionsResponse_1 = require("./upsertPortfolioTransactionsResponse");
var upsertQuoteAccessMetadataRuleRequest_1 = require("./upsertQuoteAccessMetadataRuleRequest");
var upsertQuoteRequest_1 = require("./upsertQuoteRequest");
var upsertQuotesResponse_1 = require("./upsertQuotesResponse");
var upsertRecipeRequest_1 = require("./upsertRecipeRequest");
var upsertReferencePortfolioConstituentsRequest_1 = require("./upsertReferencePortfolioConstituentsRequest");
var upsertReferencePortfolioConstituentsResponse_1 = require("./upsertReferencePortfolioConstituentsResponse");
var upsertSingleStructuredDataResponse_1 = require("./upsertSingleStructuredDataResponse");
var upsertStructuredDataResponse_1 = require("./upsertStructuredDataResponse");
var upsertStructuredMarketDataRequest_1 = require("./upsertStructuredMarketDataRequest");
var upsertStructuredResultDataRequest_1 = require("./upsertStructuredResultDataRequest");
var upsertTransactionPropertiesResponse_1 = require("./upsertTransactionPropertiesResponse");
var user_1 = require("./user");
var valuationReconciliationRequest_1 = require("./valuationReconciliationRequest");
var valuationsReconciliationRequest_1 = require("./valuationsReconciliationRequest");
var valueTupleOfMarketDataKeyRuleToQuote_1 = require("./valueTupleOfMarketDataKeyRuleToQuote");
var valueTupleOfMarketDataKeyRuleToStructuredMarketData_1 = require("./valueTupleOfMarketDataKeyRuleToStructuredMarketData");
var vendorModelRule_1 = require("./vendorModelRule");
var version_1 = require("./version");
var versionSummaryDto_1 = require("./versionSummaryDto");
var versionedResourceListOfOutputTransaction_1 = require("./versionedResourceListOfOutputTransaction");
var versionedResourceListOfPortfolioHolding_1 = require("./versionedResourceListOfPortfolioHolding");
var versionedResourceListOfTransaction_1 = require("./versionedResourceListOfTransaction");
var weightedInstrument_1 = require("./weightedInstrument");
/* tslint:disable:no-unused-variable */
var primitives = [
    "string",
    "boolean",
    "double",
    "integer",
    "long",
    "float",
    "number",
    "any"
];
var enumsMap = {
    "AggregateSpec.OpEnum": aggregateSpec_1.AggregateSpec.OpEnum,
    "AggregationResult.ValueTypeEnum": aggregationResult_1.AggregationResult.ValueTypeEnum,
    "BondInstrument.InstrumentTypeEnum": bondInstrument_1.BondInstrument.InstrumentTypeEnum,
    "BondInstrumentAllOf.InstrumentTypeEnum": bondInstrumentAllOf_1.BondInstrumentAllOf.InstrumentTypeEnum,
    "CdsDetailSpecification.SeniorityEnum": cdsDetailSpecification_1.CdsDetailSpecification.SeniorityEnum,
    "CdsDetailSpecification.RestructuringTypeEnum": cdsDetailSpecification_1.CdsDetailSpecification.RestructuringTypeEnum,
    "CdsInstrument.InstrumentTypeEnum": cdsInstrument_1.CdsInstrument.InstrumentTypeEnum,
    "CdsInstrumentAllOf.InstrumentTypeEnum": cdsInstrumentAllOf_1.CdsInstrumentAllOf.InstrumentTypeEnum,
    "CompletePortfolio.TypeEnum": completePortfolio_1.CompletePortfolio.TypeEnum,
    "CreateDataTypeRequest.TypeValueRangeEnum": createDataTypeRequest_1.CreateDataTypeRequest.TypeValueRangeEnum,
    "CreateDataTypeRequest.ValueTypeEnum": createDataTypeRequest_1.CreateDataTypeRequest.ValueTypeEnum,
    "CreateDataTypeRequest.UnitSchemaEnum": createDataTypeRequest_1.CreateDataTypeRequest.UnitSchemaEnum,
    "CreateDerivedTransactionPortfolioRequest.AccountingMethodEnum": createDerivedTransactionPortfolioRequest_1.CreateDerivedTransactionPortfolioRequest.AccountingMethodEnum,
    "CreatePropertyDefinitionRequest.DomainEnum": createPropertyDefinitionRequest_1.CreatePropertyDefinitionRequest.DomainEnum,
    "CreatePropertyDefinitionRequest.LifeTimeEnum": createPropertyDefinitionRequest_1.CreatePropertyDefinitionRequest.LifeTimeEnum,
    "CreateResults.FormatEnum": createResults_1.CreateResults.FormatEnum,
    "CreateTransactionPortfolioRequest.AccountingMethodEnum": createTransactionPortfolioRequest_1.CreateTransactionPortfolioRequest.AccountingMethodEnum,
    "DataType.TypeValueRangeEnum": dataType_1.DataType.TypeValueRangeEnum,
    "DataType.ValueTypeEnum": dataType_1.DataType.ValueTypeEnum,
    "DataType.UnitSchemaEnum": dataType_1.DataType.UnitSchemaEnum,
    "EquityOption.InstrumentTypeEnum": equityOption_1.EquityOption.InstrumentTypeEnum,
    "EquityOptionAllOf.InstrumentTypeEnum": equityOptionAllOf_1.EquityOptionAllOf.InstrumentTypeEnum,
    "FieldSchema.TypeEnum": fieldSchema_1.FieldSchema.TypeEnum,
    "FixedLeg.InstrumentTypeEnum": fixedLeg_1.FixedLeg.InstrumentTypeEnum,
    "FixedLegAllOf.InstrumentTypeEnum": fixedLegAllOf_1.FixedLegAllOf.InstrumentTypeEnum,
    "FloatingLeg.InstrumentTypeEnum": floatingLeg_1.FloatingLeg.InstrumentTypeEnum,
    "FlowConventions.DayCountConventionEnum": flowConventions_1.FlowConventions.DayCountConventionEnum,
    "FlowConventions.RollConventionEnum": flowConventions_1.FlowConventions.RollConventionEnum,
    "FxForwardInstrument.InstrumentTypeEnum": fxForwardInstrument_1.FxForwardInstrument.InstrumentTypeEnum,
    "FxForwardInstrumentAllOf.InstrumentTypeEnum": fxForwardInstrumentAllOf_1.FxForwardInstrumentAllOf.InstrumentTypeEnum,
    "FxOption.InstrumentTypeEnum": fxOption_1.FxOption.InstrumentTypeEnum,
    "FxOptionAllOf.InstrumentTypeEnum": fxOptionAllOf_1.FxOptionAllOf.InstrumentTypeEnum,
    "GetReferencePortfolioConstituentsResponse.WeightTypeEnum": getReferencePortfolioConstituentsResponse_1.GetReferencePortfolioConstituentsResponse.WeightTypeEnum,
    "GetReferencePortfolioConstituentsResponse.PeriodTypeEnum": getReferencePortfolioConstituentsResponse_1.GetReferencePortfolioConstituentsResponse.PeriodTypeEnum,
    "HoldingsAdjustment.UnmatchedHoldingMethodEnum": holdingsAdjustment_1.HoldingsAdjustment.UnmatchedHoldingMethodEnum,
    "HoldingsAdjustmentHeader.UnmatchedHoldingMethodEnum": holdingsAdjustmentHeader_1.HoldingsAdjustmentHeader.UnmatchedHoldingMethodEnum,
    "IUnitDefinitionDto.SchemaEnum": iUnitDefinitionDto_1.IUnitDefinitionDto.SchemaEnum,
    "IndexConvention.DayCountConventionEnum": indexConvention_1.IndexConvention.DayCountConventionEnum,
    "Instrument.StateEnum": instrument_1.Instrument.StateEnum,
    "InstrumentLeg.InstrumentTypeEnum": instrumentLeg_1.InstrumentLeg.InstrumentTypeEnum,
    "LegDefinition.StubTypeEnum": legDefinition_1.LegDefinition.StubTypeEnum,
    "LegDefinition.PayReceiveEnum": legDefinition_1.LegDefinition.PayReceiveEnum,
    "LegDefinition.NotionalExchangeTypeEnum": legDefinition_1.LegDefinition.NotionalExchangeTypeEnum,
    "LusidInstrument.InstrumentTypeEnum": lusidInstrument_1.LusidInstrument.InstrumentTypeEnum,
    "MarketContextSuppliers.CommodityEnum": marketContextSuppliers_1.MarketContextSuppliers.CommodityEnum,
    "MarketContextSuppliers.CreditEnum": marketContextSuppliers_1.MarketContextSuppliers.CreditEnum,
    "MarketContextSuppliers.EquityEnum": marketContextSuppliers_1.MarketContextSuppliers.EquityEnum,
    "MarketContextSuppliers.FxEnum": marketContextSuppliers_1.MarketContextSuppliers.FxEnum,
    "MarketContextSuppliers.RatesEnum": marketContextSuppliers_1.MarketContextSuppliers.RatesEnum,
    "MarketDataKeyRule.SupplierEnum": marketDataKeyRule_1.MarketDataKeyRule.SupplierEnum,
    "MarketDataKeyRule.QuoteTypeEnum": marketDataKeyRule_1.MarketDataKeyRule.QuoteTypeEnum,
    "MarketOptions.DefaultSupplierEnum": marketOptions_1.MarketOptions.DefaultSupplierEnum,
    "MarketOptions.DefaultInstrumentCodeTypeEnum": marketOptions_1.MarketOptions.DefaultInstrumentCodeTypeEnum,
    "MarketOptions.ManifestLevelOfDetailEnum": marketOptions_1.MarketOptions.ManifestLevelOfDetailEnum,
    "ModelSelection.LibraryEnum": modelSelection_1.ModelSelection.LibraryEnum,
    "ModelSelection.ModelEnum": modelSelection_1.ModelSelection.ModelEnum,
    "OrderBySpec.SortOrderEnum": orderBySpec_1.OrderBySpec.SortOrderEnum,
    "OutputTransaction.TransactionStatusEnum": outputTransaction_1.OutputTransaction.TransactionStatusEnum,
    "Portfolio.TypeEnum": portfolio_1.Portfolio.TypeEnum,
    "PortfolioSearchResult.TypeEnum": portfolioSearchResult_1.PortfolioSearchResult.TypeEnum,
    "PropertyDefinition.ValueTypeEnum": propertyDefinition_1.PropertyDefinition.ValueTypeEnum,
    "PropertyDefinition.LifeTimeEnum": propertyDefinition_1.PropertyDefinition.LifeTimeEnum,
    "PropertyDefinition.TypeEnum": propertyDefinition_1.PropertyDefinition.TypeEnum,
    "PropertyDefinition.UnitSchemaEnum": propertyDefinition_1.PropertyDefinition.UnitSchemaEnum,
    "PropertyDefinition.DomainEnum": propertyDefinition_1.PropertyDefinition.DomainEnum,
    "PropertyFilter.OperatorEnum": propertyFilter_1.PropertyFilter.OperatorEnum,
    "PropertyFilter.RightOperandTypeEnum": propertyFilter_1.PropertyFilter.RightOperandTypeEnum,
    "QuoteSeriesId.InstrumentIdTypeEnum": quoteSeriesId_1.QuoteSeriesId.InstrumentIdTypeEnum,
    "QuoteSeriesId.QuoteTypeEnum": quoteSeriesId_1.QuoteSeriesId.QuoteTypeEnum,
    "ResourceListOfValueType.ValuesEnum": resourceListOfValueType_1.ResourceListOfValueType.ValuesEnum,
    "ResultDataKeyRule.SupplierEnum": resultDataKeyRule_1.ResultDataKeyRule.SupplierEnum,
    "Results.FormatEnum": results_1.Results.FormatEnum,
    "SwapInstrument.InstrumentTypeEnum": swapInstrument_1.SwapInstrument.InstrumentTypeEnum,
    "SwapInstrumentAllOf.InstrumentTypeEnum": swapInstrumentAllOf_1.SwapInstrumentAllOf.InstrumentTypeEnum,
    "Swaption.PayOrReceiveFixedEnum": swaption_1.Swaption.PayOrReceiveFixedEnum,
    "Swaption.DeliveryMethodEnum": swaption_1.Swaption.DeliveryMethodEnum,
    "Swaption.InstrumentTypeEnum": swaption_1.Swaption.InstrumentTypeEnum,
    "SwaptionAllOf.PayOrReceiveFixedEnum": swaptionAllOf_1.SwaptionAllOf.PayOrReceiveFixedEnum,
    "SwaptionAllOf.DeliveryMethodEnum": swaptionAllOf_1.SwaptionAllOf.DeliveryMethodEnum,
    "SwaptionAllOf.InstrumentTypeEnum": swaptionAllOf_1.SwaptionAllOf.InstrumentTypeEnum,
    "Tenor.UnitEnum": tenor_1.Tenor.UnitEnum,
    "Tolerance.TypeEnum": tolerance_1.Tolerance.TypeEnum,
    "TransactionConfigurationMovementData.MovementTypesEnum": transactionConfigurationMovementData_1.TransactionConfigurationMovementData.MovementTypesEnum,
    "TransactionConfigurationMovementDataRequest.MovementTypesEnum": transactionConfigurationMovementDataRequest_1.TransactionConfigurationMovementDataRequest.MovementTypesEnum,
    "TransactionConfigurationTypeAlias.TransactionRolesEnum": transactionConfigurationTypeAlias_1.TransactionConfigurationTypeAlias.TransactionRolesEnum,
    "TransactionPrice.TypeEnum": transactionPrice_1.TransactionPrice.TypeEnum,
    "TransactionQueryParameters.QueryModeEnum": transactionQueryParameters_1.TransactionQueryParameters.QueryModeEnum,
    "UpdateDataTypeRequest.TypeValueRangeEnum": updateDataTypeRequest_1.UpdateDataTypeRequest.TypeValueRangeEnum,
    "UpdateDataTypeRequest.ValueTypeEnum": updateDataTypeRequest_1.UpdateDataTypeRequest.ValueTypeEnum,
    "UpdateDataTypeRequest.UnitSchemaEnum": updateDataTypeRequest_1.UpdateDataTypeRequest.UnitSchemaEnum,
    "UpsertReferencePortfolioConstituentsRequest.WeightTypeEnum": upsertReferencePortfolioConstituentsRequest_1.UpsertReferencePortfolioConstituentsRequest.WeightTypeEnum,
    "UpsertReferencePortfolioConstituentsRequest.PeriodTypeEnum": upsertReferencePortfolioConstituentsRequest_1.UpsertReferencePortfolioConstituentsRequest.PeriodTypeEnum,
    "VendorModelRule.SupplierEnum": vendorModelRule_1.VendorModelRule.SupplierEnum,
};
var typeMap = {
    "AccessControlledAction": accessControlledAction_1.AccessControlledAction,
    "AccessControlledResource": accessControlledResource_1.AccessControlledResource,
    "AccessMetadataValue": accessMetadataValue_1.AccessMetadataValue,
    "ActionId": actionId_1.ActionId,
    "AdjustHolding": adjustHolding_1.AdjustHolding,
    "AdjustHoldingRequest": adjustHoldingRequest_1.AdjustHoldingRequest,
    "AggregateSpec": aggregateSpec_1.AggregateSpec,
    "AggregationContext": aggregationContext_1.AggregationContext,
    "AggregationMeasureFailureDetail": aggregationMeasureFailureDetail_1.AggregationMeasureFailureDetail,
    "AggregationOptions": aggregationOptions_1.AggregationOptions,
    "AggregationRequest": aggregationRequest_1.AggregationRequest,
    "AggregationResponseNodeOfDictionaryOfStringToObject": aggregationResponseNodeOfDictionaryOfStringToObject_1.AggregationResponseNodeOfDictionaryOfStringToObject,
    "AggregationResult": aggregationResult_1.AggregationResult,
    "Allocation": allocation_1.Allocation,
    "AllocationRequest": allocationRequest_1.AllocationRequest,
    "AllocationSetRequest": allocationSetRequest_1.AllocationSetRequest,
    "AnnulQuotesResponse": annulQuotesResponse_1.AnnulQuotesResponse,
    "AnnulSingleStructuredDataResponse": annulSingleStructuredDataResponse_1.AnnulSingleStructuredDataResponse,
    "AnnulStructuredDataResponse": annulStructuredDataResponse_1.AnnulStructuredDataResponse,
    "BondInstrument": bondInstrument_1.BondInstrument,
    "BondInstrumentAllOf": bondInstrumentAllOf_1.BondInstrumentAllOf,
    "CdsDetailSpecification": cdsDetailSpecification_1.CdsDetailSpecification,
    "CdsInstrument": cdsInstrument_1.CdsInstrument,
    "CdsInstrumentAllOf": cdsInstrumentAllOf_1.CdsInstrumentAllOf,
    "Change": change_1.Change,
    "CompletePortfolio": completePortfolio_1.CompletePortfolio,
    "ConfigurationRecipe": configurationRecipe_1.ConfigurationRecipe,
    "ConfigurationRecipeSnippet": configurationRecipeSnippet_1.ConfigurationRecipeSnippet,
    "ConstituentsAdjustmentHeader": constituentsAdjustmentHeader_1.ConstituentsAdjustmentHeader,
    "CorporateAction": corporateAction_1.CorporateAction,
    "CorporateActionSource": corporateActionSource_1.CorporateActionSource,
    "CorporateActionTransition": corporateActionTransition_1.CorporateActionTransition,
    "CorporateActionTransitionComponent": corporateActionTransitionComponent_1.CorporateActionTransitionComponent,
    "CorporateActionTransitionComponentRequest": corporateActionTransitionComponentRequest_1.CorporateActionTransitionComponentRequest,
    "CorporateActionTransitionRequest": corporateActionTransitionRequest_1.CorporateActionTransitionRequest,
    "CreateCorporateActionSourceRequest": createCorporateActionSourceRequest_1.CreateCorporateActionSourceRequest,
    "CreateCutLabelDefinitionRequest": createCutLabelDefinitionRequest_1.CreateCutLabelDefinitionRequest,
    "CreateDataTypeRequest": createDataTypeRequest_1.CreateDataTypeRequest,
    "CreateDerivedTransactionPortfolioRequest": createDerivedTransactionPortfolioRequest_1.CreateDerivedTransactionPortfolioRequest,
    "CreatePortfolioDetails": createPortfolioDetails_1.CreatePortfolioDetails,
    "CreatePortfolioGroupRequest": createPortfolioGroupRequest_1.CreatePortfolioGroupRequest,
    "CreatePropertyDefinitionRequest": createPropertyDefinitionRequest_1.CreatePropertyDefinitionRequest,
    "CreateRecipeRequest": createRecipeRequest_1.CreateRecipeRequest,
    "CreateReferencePortfolioRequest": createReferencePortfolioRequest_1.CreateReferencePortfolioRequest,
    "CreateResults": createResults_1.CreateResults,
    "CreateTransactionPortfolioRequest": createTransactionPortfolioRequest_1.CreateTransactionPortfolioRequest,
    "CreateUnitDefinition": createUnitDefinition_1.CreateUnitDefinition,
    "CurrencyAndAmount": currencyAndAmount_1.CurrencyAndAmount,
    "CutLabelDefinition": cutLabelDefinition_1.CutLabelDefinition,
    "CutLocalTime": cutLocalTime_1.CutLocalTime,
    "DataDefinition": dataDefinition_1.DataDefinition,
    "DataMapping": dataMapping_1.DataMapping,
    "DataType": dataType_1.DataType,
    "DeleteInstrumentPropertiesResponse": deleteInstrumentPropertiesResponse_1.DeleteInstrumentPropertiesResponse,
    "DeleteInstrumentResponse": deleteInstrumentResponse_1.DeleteInstrumentResponse,
    "DeletedEntityResponse": deletedEntityResponse_1.DeletedEntityResponse,
    "EquityOption": equityOption_1.EquityOption,
    "EquityOptionAllOf": equityOptionAllOf_1.EquityOptionAllOf,
    "ErrorDetail": errorDetail_1.ErrorDetail,
    "ExecutionRequest": executionRequest_1.ExecutionRequest,
    "ExpandedGroup": expandedGroup_1.ExpandedGroup,
    "FieldSchema": fieldSchema_1.FieldSchema,
    "FileResponse": fileResponse_1.FileResponse,
    "FixedLeg": fixedLeg_1.FixedLeg,
    "FixedLegAllOf": fixedLegAllOf_1.FixedLegAllOf,
    "FixedLegAllOfOverrides": fixedLegAllOfOverrides_1.FixedLegAllOfOverrides,
    "FloatingLeg": floatingLeg_1.FloatingLeg,
    "FlowConventions": flowConventions_1.FlowConventions,
    "FxForwardInstrument": fxForwardInstrument_1.FxForwardInstrument,
    "FxForwardInstrumentAllOf": fxForwardInstrumentAllOf_1.FxForwardInstrumentAllOf,
    "FxOption": fxOption_1.FxOption,
    "FxOptionAllOf": fxOptionAllOf_1.FxOptionAllOf,
    "GetInstrumentsResponse": getInstrumentsResponse_1.GetInstrumentsResponse,
    "GetQuotesResponse": getQuotesResponse_1.GetQuotesResponse,
    "GetRecipeResponse": getRecipeResponse_1.GetRecipeResponse,
    "GetReferencePortfolioConstituentsResponse": getReferencePortfolioConstituentsResponse_1.GetReferencePortfolioConstituentsResponse,
    "GetStructuredMarketDataResponse": getStructuredMarketDataResponse_1.GetStructuredMarketDataResponse,
    "GetStructuredResultDataResponse": getStructuredResultDataResponse_1.GetStructuredResultDataResponse,
    "HoldingAdjustment": holdingAdjustment_1.HoldingAdjustment,
    "HoldingsAdjustment": holdingsAdjustment_1.HoldingsAdjustment,
    "HoldingsAdjustmentHeader": holdingsAdjustmentHeader_1.HoldingsAdjustmentHeader,
    "IUnitDefinitionDto": iUnitDefinitionDto_1.IUnitDefinitionDto,
    "IdSelectorDefinition": idSelectorDefinition_1.IdSelectorDefinition,
    "IdentifierPartSchema": identifierPartSchema_1.IdentifierPartSchema,
    "IndexConvention": indexConvention_1.IndexConvention,
    "InlineAggregationRequest": inlineAggregationRequest_1.InlineAggregationRequest,
    "InlineValuationReconciliationRequest": inlineValuationReconciliationRequest_1.InlineValuationReconciliationRequest,
    "InlineValuationsReconciliationRequest": inlineValuationsReconciliationRequest_1.InlineValuationsReconciliationRequest,
    "Instrument": instrument_1.Instrument,
    "InstrumentDefinition": instrumentDefinition_1.InstrumentDefinition,
    "InstrumentEconomicDefinition": instrumentEconomicDefinition_1.InstrumentEconomicDefinition,
    "InstrumentIdTypeDescriptor": instrumentIdTypeDescriptor_1.InstrumentIdTypeDescriptor,
    "InstrumentIdValue": instrumentIdValue_1.InstrumentIdValue,
    "InstrumentLeg": instrumentLeg_1.InstrumentLeg,
    "InstrumentMatch": instrumentMatch_1.InstrumentMatch,
    "InstrumentSearchProperty": instrumentSearchProperty_1.InstrumentSearchProperty,
    "LegDefinition": legDefinition_1.LegDefinition,
    "Link": link_1.Link,
    "ListAggregationResponse": listAggregationResponse_1.ListAggregationResponse,
    "LusidInstrument": lusidInstrument_1.LusidInstrument,
    "LusidInstrumentDefinition": lusidInstrumentDefinition_1.LusidInstrumentDefinition,
    "LusidProblemDetails": lusidProblemDetails_1.LusidProblemDetails,
    "LusidValidationProblemDetails": lusidValidationProblemDetails_1.LusidValidationProblemDetails,
    "MarketContext": marketContext_1.MarketContext,
    "MarketContextSuppliers": marketContextSuppliers_1.MarketContextSuppliers,
    "MarketDataKeyRule": marketDataKeyRule_1.MarketDataKeyRule,
    "MarketDataManifest": marketDataManifest_1.MarketDataManifest,
    "MarketOptions": marketOptions_1.MarketOptions,
    "MetricValue": metricValue_1.MetricValue,
    "ModelSelection": modelSelection_1.ModelSelection,
    "NestedAggregationResponse": nestedAggregationResponse_1.NestedAggregationResponse,
    "Order": order_1.Order,
    "OrderBySpec": orderBySpec_1.OrderBySpec,
    "OrderRequest": orderRequest_1.OrderRequest,
    "OrderSetRequest": orderSetRequest_1.OrderSetRequest,
    "OutputTransaction": outputTransaction_1.OutputTransaction,
    "PagedResourceListOfAllocation": pagedResourceListOfAllocation_1.PagedResourceListOfAllocation,
    "PagedResourceListOfInstrument": pagedResourceListOfInstrument_1.PagedResourceListOfInstrument,
    "PagedResourceListOfOrder": pagedResourceListOfOrder_1.PagedResourceListOfOrder,
    "PagedResourceListOfPortfolioGroup": pagedResourceListOfPortfolioGroup_1.PagedResourceListOfPortfolioGroup,
    "PagedResourceListOfPortfolioSearchResult": pagedResourceListOfPortfolioSearchResult_1.PagedResourceListOfPortfolioSearchResult,
    "PagedResourceListOfPropertyDefinition": pagedResourceListOfPropertyDefinition_1.PagedResourceListOfPropertyDefinition,
    "PerpetualProperty": perpetualProperty_1.PerpetualProperty,
    "Person": person_1.Person,
    "Portfolio": portfolio_1.Portfolio,
    "PortfolioDetails": portfolioDetails_1.PortfolioDetails,
    "PortfolioGroup": portfolioGroup_1.PortfolioGroup,
    "PortfolioGroupProperties": portfolioGroupProperties_1.PortfolioGroupProperties,
    "PortfolioHolding": portfolioHolding_1.PortfolioHolding,
    "PortfolioProperties": portfolioProperties_1.PortfolioProperties,
    "PortfolioReconciliationRequest": portfolioReconciliationRequest_1.PortfolioReconciliationRequest,
    "PortfolioSearchResult": portfolioSearchResult_1.PortfolioSearchResult,
    "PortfoliosReconciliationRequest": portfoliosReconciliationRequest_1.PortfoliosReconciliationRequest,
    "PortfoliosReconciliationRequestPreview": portfoliosReconciliationRequestPreview_1.PortfoliosReconciliationRequestPreview,
    "PricingContext": pricingContext_1.PricingContext,
    "PricingOptions": pricingOptions_1.PricingOptions,
    "ProcessedCommand": processedCommand_1.ProcessedCommand,
    "Property": property_1.Property,
    "PropertyDefinition": propertyDefinition_1.PropertyDefinition,
    "PropertyFilter": propertyFilter_1.PropertyFilter,
    "PropertySchema": propertySchema_1.PropertySchema,
    "PropertyValue": propertyValue_1.PropertyValue,
    "QueryableEntitiesResponse": queryableEntitiesResponse_1.QueryableEntitiesResponse,
    "Quote": quote_1.Quote,
    "QuoteAccessMetadataRule": quoteAccessMetadataRule_1.QuoteAccessMetadataRule,
    "QuoteAccessMetadataRuleId": quoteAccessMetadataRuleId_1.QuoteAccessMetadataRuleId,
    "QuoteId": quoteId_1.QuoteId,
    "QuoteSeriesId": quoteSeriesId_1.QuoteSeriesId,
    "RealisedGainLoss": realisedGainLoss_1.RealisedGainLoss,
    "ReconciliationBreak": reconciliationBreak_1.ReconciliationBreak,
    "ReferencePortfolioConstituent": referencePortfolioConstituent_1.ReferencePortfolioConstituent,
    "ReferencePortfolioConstituentRequest": referencePortfolioConstituentRequest_1.ReferencePortfolioConstituentRequest,
    "ResourceId": resourceId_1.ResourceId,
    "ResourceListOfAccessControlledResource": resourceListOfAccessControlledResource_1.ResourceListOfAccessControlledResource,
    "ResourceListOfAccessMetadataValueOf": resourceListOfAccessMetadataValueOf_1.ResourceListOfAccessMetadataValueOf,
    "ResourceListOfAllocation": resourceListOfAllocation_1.ResourceListOfAllocation,
    "ResourceListOfChange": resourceListOfChange_1.ResourceListOfChange,
    "ResourceListOfConstituentsAdjustmentHeader": resourceListOfConstituentsAdjustmentHeader_1.ResourceListOfConstituentsAdjustmentHeader,
    "ResourceListOfCorporateAction": resourceListOfCorporateAction_1.ResourceListOfCorporateAction,
    "ResourceListOfCorporateActionSource": resourceListOfCorporateActionSource_1.ResourceListOfCorporateActionSource,
    "ResourceListOfCutLabelDefinition": resourceListOfCutLabelDefinition_1.ResourceListOfCutLabelDefinition,
    "ResourceListOfDataType": resourceListOfDataType_1.ResourceListOfDataType,
    "ResourceListOfGetRecipeResponse": resourceListOfGetRecipeResponse_1.ResourceListOfGetRecipeResponse,
    "ResourceListOfHoldingsAdjustmentHeader": resourceListOfHoldingsAdjustmentHeader_1.ResourceListOfHoldingsAdjustmentHeader,
    "ResourceListOfIUnitDefinitionDto": resourceListOfIUnitDefinitionDto_1.ResourceListOfIUnitDefinitionDto,
    "ResourceListOfInstrumentIdTypeDescriptor": resourceListOfInstrumentIdTypeDescriptor_1.ResourceListOfInstrumentIdTypeDescriptor,
    "ResourceListOfOrder": resourceListOfOrder_1.ResourceListOfOrder,
    "ResourceListOfPerson": resourceListOfPerson_1.ResourceListOfPerson,
    "ResourceListOfPortfolio": resourceListOfPortfolio_1.ResourceListOfPortfolio,
    "ResourceListOfPortfolioGroup": resourceListOfPortfolioGroup_1.ResourceListOfPortfolioGroup,
    "ResourceListOfPortfolioSearchResult": resourceListOfPortfolioSearchResult_1.ResourceListOfPortfolioSearchResult,
    "ResourceListOfProcessedCommand": resourceListOfProcessedCommand_1.ResourceListOfProcessedCommand,
    "ResourceListOfPropertyDefinition": resourceListOfPropertyDefinition_1.ResourceListOfPropertyDefinition,
    "ResourceListOfQuote": resourceListOfQuote_1.ResourceListOfQuote,
    "ResourceListOfQuoteAccessMetadataRule": resourceListOfQuoteAccessMetadataRule_1.ResourceListOfQuoteAccessMetadataRule,
    "ResourceListOfReconciliationBreak": resourceListOfReconciliationBreak_1.ResourceListOfReconciliationBreak,
    "ResourceListOfScopeDefinition": resourceListOfScopeDefinition_1.ResourceListOfScopeDefinition,
    "ResourceListOfString": resourceListOfString_1.ResourceListOfString,
    "ResourceListOfValueType": resourceListOfValueType_1.ResourceListOfValueType,
    "ResultDataKeyRule": resultDataKeyRule_1.ResultDataKeyRule,
    "ResultDataSchema": resultDataSchema_1.ResultDataSchema,
    "Results": results_1.Results,
    "Schema": schema_1.Schema,
    "ScopeDefinition": scopeDefinition_1.ScopeDefinition,
    "SetPersonIdentifiersRequest": setPersonIdentifiersRequest_1.SetPersonIdentifiersRequest,
    "SetPersonPropertiesRequest": setPersonPropertiesRequest_1.SetPersonPropertiesRequest,
    "SideConfigurationData": sideConfigurationData_1.SideConfigurationData,
    "SideConfigurationDataRequest": sideConfigurationDataRequest_1.SideConfigurationDataRequest,
    "Stream": stream_1.Stream,
    "StructuredMarketData": structuredMarketData_1.StructuredMarketData,
    "StructuredMarketDataId": structuredMarketDataId_1.StructuredMarketDataId,
    "StructuredResultData": structuredResultData_1.StructuredResultData,
    "StructuredResultDataId": structuredResultDataId_1.StructuredResultDataId,
    "SwapInstrument": swapInstrument_1.SwapInstrument,
    "SwapInstrumentAllOf": swapInstrumentAllOf_1.SwapInstrumentAllOf,
    "Swaption": swaption_1.Swaption,
    "SwaptionAllOf": swaptionAllOf_1.SwaptionAllOf,
    "TargetTaxLot": targetTaxLot_1.TargetTaxLot,
    "TargetTaxLotRequest": targetTaxLotRequest_1.TargetTaxLotRequest,
    "Tenor": tenor_1.Tenor,
    "Tolerance": tolerance_1.Tolerance,
    "Transaction": transaction_1.Transaction,
    "TransactionConfigurationData": transactionConfigurationData_1.TransactionConfigurationData,
    "TransactionConfigurationDataRequest": transactionConfigurationDataRequest_1.TransactionConfigurationDataRequest,
    "TransactionConfigurationMovementData": transactionConfigurationMovementData_1.TransactionConfigurationMovementData,
    "TransactionConfigurationMovementDataRequest": transactionConfigurationMovementDataRequest_1.TransactionConfigurationMovementDataRequest,
    "TransactionConfigurationTypeAlias": transactionConfigurationTypeAlias_1.TransactionConfigurationTypeAlias,
    "TransactionPrice": transactionPrice_1.TransactionPrice,
    "TransactionPropertyMapping": transactionPropertyMapping_1.TransactionPropertyMapping,
    "TransactionPropertyMappingRequest": transactionPropertyMappingRequest_1.TransactionPropertyMappingRequest,
    "TransactionQueryParameters": transactionQueryParameters_1.TransactionQueryParameters,
    "TransactionRequest": transactionRequest_1.TransactionRequest,
    "TransactionSetConfigurationData": transactionSetConfigurationData_1.TransactionSetConfigurationData,
    "TransactionSetConfigurationDataRequest": transactionSetConfigurationDataRequest_1.TransactionSetConfigurationDataRequest,
    "UpdateCutLabelDefinitionRequest": updateCutLabelDefinitionRequest_1.UpdateCutLabelDefinitionRequest,
    "UpdateDataTypeRequest": updateDataTypeRequest_1.UpdateDataTypeRequest,
    "UpdateInstrumentIdentifierRequest": updateInstrumentIdentifierRequest_1.UpdateInstrumentIdentifierRequest,
    "UpdatePortfolioGroupRequest": updatePortfolioGroupRequest_1.UpdatePortfolioGroupRequest,
    "UpdatePortfolioRequest": updatePortfolioRequest_1.UpdatePortfolioRequest,
    "UpdatePropertyDefinitionRequest": updatePropertyDefinitionRequest_1.UpdatePropertyDefinitionRequest,
    "UpsertCorporateActionRequest": upsertCorporateActionRequest_1.UpsertCorporateActionRequest,
    "UpsertCorporateActionsResponse": upsertCorporateActionsResponse_1.UpsertCorporateActionsResponse,
    "UpsertInstrumentPropertiesResponse": upsertInstrumentPropertiesResponse_1.UpsertInstrumentPropertiesResponse,
    "UpsertInstrumentPropertyRequest": upsertInstrumentPropertyRequest_1.UpsertInstrumentPropertyRequest,
    "UpsertInstrumentsResponse": upsertInstrumentsResponse_1.UpsertInstrumentsResponse,
    "UpsertOrderPropertiesRequest": upsertOrderPropertiesRequest_1.UpsertOrderPropertiesRequest,
    "UpsertOrderPropertiesResponse": upsertOrderPropertiesResponse_1.UpsertOrderPropertiesResponse,
    "UpsertPersonAccessMetadataRequest": upsertPersonAccessMetadataRequest_1.UpsertPersonAccessMetadataRequest,
    "UpsertPersonRequest": upsertPersonRequest_1.UpsertPersonRequest,
    "UpsertPortfolioAccessMetadataRequest": upsertPortfolioAccessMetadataRequest_1.UpsertPortfolioAccessMetadataRequest,
    "UpsertPortfolioExecutionsResponse": upsertPortfolioExecutionsResponse_1.UpsertPortfolioExecutionsResponse,
    "UpsertPortfolioGroupAccessMetadataRequest": upsertPortfolioGroupAccessMetadataRequest_1.UpsertPortfolioGroupAccessMetadataRequest,
    "UpsertPortfolioTransactionsResponse": upsertPortfolioTransactionsResponse_1.UpsertPortfolioTransactionsResponse,
    "UpsertQuoteAccessMetadataRuleRequest": upsertQuoteAccessMetadataRuleRequest_1.UpsertQuoteAccessMetadataRuleRequest,
    "UpsertQuoteRequest": upsertQuoteRequest_1.UpsertQuoteRequest,
    "UpsertQuotesResponse": upsertQuotesResponse_1.UpsertQuotesResponse,
    "UpsertRecipeRequest": upsertRecipeRequest_1.UpsertRecipeRequest,
    "UpsertReferencePortfolioConstituentsRequest": upsertReferencePortfolioConstituentsRequest_1.UpsertReferencePortfolioConstituentsRequest,
    "UpsertReferencePortfolioConstituentsResponse": upsertReferencePortfolioConstituentsResponse_1.UpsertReferencePortfolioConstituentsResponse,
    "UpsertSingleStructuredDataResponse": upsertSingleStructuredDataResponse_1.UpsertSingleStructuredDataResponse,
    "UpsertStructuredDataResponse": upsertStructuredDataResponse_1.UpsertStructuredDataResponse,
    "UpsertStructuredMarketDataRequest": upsertStructuredMarketDataRequest_1.UpsertStructuredMarketDataRequest,
    "UpsertStructuredResultDataRequest": upsertStructuredResultDataRequest_1.UpsertStructuredResultDataRequest,
    "UpsertTransactionPropertiesResponse": upsertTransactionPropertiesResponse_1.UpsertTransactionPropertiesResponse,
    "User": user_1.User,
    "ValuationReconciliationRequest": valuationReconciliationRequest_1.ValuationReconciliationRequest,
    "ValuationsReconciliationRequest": valuationsReconciliationRequest_1.ValuationsReconciliationRequest,
    "ValueTupleOfMarketDataKeyRuleToQuote": valueTupleOfMarketDataKeyRuleToQuote_1.ValueTupleOfMarketDataKeyRuleToQuote,
    "ValueTupleOfMarketDataKeyRuleToStructuredMarketData": valueTupleOfMarketDataKeyRuleToStructuredMarketData_1.ValueTupleOfMarketDataKeyRuleToStructuredMarketData,
    "VendorModelRule": vendorModelRule_1.VendorModelRule,
    "Version": version_1.Version,
    "VersionSummaryDto": versionSummaryDto_1.VersionSummaryDto,
    "VersionedResourceListOfOutputTransaction": versionedResourceListOfOutputTransaction_1.VersionedResourceListOfOutputTransaction,
    "VersionedResourceListOfPortfolioHolding": versionedResourceListOfPortfolioHolding_1.VersionedResourceListOfPortfolioHolding,
    "VersionedResourceListOfTransaction": versionedResourceListOfTransaction_1.VersionedResourceListOfTransaction,
    "WeightedInstrument": weightedInstrument_1.WeightedInstrument,
};
var ObjectSerializer = /** @class */ (function () {
    function ObjectSerializer() {
    }
    ObjectSerializer.findCorrectType = function (data, expectedType) {
        if (data == undefined) {
            return expectedType;
        }
        else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) {
            return expectedType;
        }
        else if (expectedType === "Date") {
            return expectedType;
        }
        else {
            if (enumsMap[expectedType]) {
                return expectedType;
            }
            if (!typeMap[expectedType]) {
                return expectedType; // w/e we don't know the type
            }
            // Check the discriminator
            var discriminatorProperty = typeMap[expectedType].discriminator;
            if (discriminatorProperty == null) {
                return expectedType; // the type does not have a discriminator. use it.
            }
            else {
                if (data[discriminatorProperty]) {
                    var discriminatorType = data[discriminatorProperty];
                    if (typeMap[discriminatorType]) {
                        return discriminatorType; // use the type given in the discriminator
                    }
                    else {
                        return expectedType; // discriminator did not map to a type
                    }
                }
                else {
                    return expectedType; // discriminator was not present (or an empty string)
                }
            }
        }
    };
    ObjectSerializer.serialize = function (data, type) {
        if (data == undefined) {
            return data;
        }
        else if (primitives.indexOf(type.toLowerCase()) !== -1) {
            return data;
        }
        else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
            var subType = type.replace("Array<", ""); // Array<Type> => Type>
            subType = subType.substring(0, subType.length - 1); // Type> => Type
            var transformedData = [];
            for (var index in data) {
                var date = data[index];
                transformedData.push(ObjectSerializer.serialize(date, subType));
            }
            return transformedData;
        }
        else if (type === "Date") {
            return data.toISOString();
        }
        else {
            if (enumsMap[type]) {
                return data;
            }
            if (!typeMap[type]) { // in case we dont know the type
                return data;
            }
            // Get the actual type of this object
            type = this.findCorrectType(data, type);
            // get the map for the correct type.
            var attributeTypes = typeMap[type].getAttributeTypeMap();
            var instance = {};
            for (var index in attributeTypes) {
                var attributeType = attributeTypes[index];
                instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type);
            }
            return instance;
        }
    };
    ObjectSerializer.deserialize = function (data, type) {
        // polymorphism may change the actual type.
        type = ObjectSerializer.findCorrectType(data, type);
        if (data == undefined) {
            return data;
        }
        else if (primitives.indexOf(type.toLowerCase()) !== -1) {
            return data;
        }
        else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
            var subType = type.replace("Array<", ""); // Array<Type> => Type>
            subType = subType.substring(0, subType.length - 1); // Type> => Type
            var transformedData = [];
            for (var index in data) {
                var date = data[index];
                transformedData.push(ObjectSerializer.deserialize(date, subType));
            }
            return transformedData;
        }
        else if (type === "Date") {
            return new Date(data);
        }
        else {
            if (enumsMap[type]) { // is Enum
                return data;
            }
            if (!typeMap[type]) { // dont know the type
                return data;
            }
            var instance = new typeMap[type]();
            var attributeTypes = typeMap[type].getAttributeTypeMap();
            for (var index in attributeTypes) {
                var attributeType = attributeTypes[index];
                instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type);
            }
            return instance;
        }
    };
    return ObjectSerializer;
}());
exports.ObjectSerializer = ObjectSerializer;
var HttpBasicAuth = /** @class */ (function () {
    function HttpBasicAuth() {
        this.username = '';
        this.password = '';
    }
    HttpBasicAuth.prototype.applyToRequest = function (requestOptions) {
        requestOptions.auth = {
            username: this.username, password: this.password
        };
    };
    return HttpBasicAuth;
}());
exports.HttpBasicAuth = HttpBasicAuth;
var ApiKeyAuth = /** @class */ (function () {
    function ApiKeyAuth(location, paramName) {
        this.location = location;
        this.paramName = paramName;
        this.apiKey = '';
    }
    ApiKeyAuth.prototype.applyToRequest = function (requestOptions) {
        if (this.location == "query") {
            requestOptions.qs[this.paramName] = this.apiKey;
        }
        else if (this.location == "header" && requestOptions && requestOptions.headers) {
            requestOptions.headers[this.paramName] = this.apiKey;
        }
    };
    return ApiKeyAuth;
}());
exports.ApiKeyAuth = ApiKeyAuth;
var OAuth = /** @class */ (function () {
    function OAuth() {
        this.accessToken = '';
    }
    OAuth.prototype.applyToRequest = function (requestOptions) {
        if (requestOptions && requestOptions.headers) {
            requestOptions.headers["Authorization"] = "Bearer " + this.accessToken;
        }
    };
    return OAuth;
}());
exports.OAuth = OAuth;
var VoidAuth = /** @class */ (function () {
    function VoidAuth() {
        this.username = '';
        this.password = '';
    }
    VoidAuth.prototype.applyToRequest = function (_) {
        // Do nothing
    };
    return VoidAuth;
}());
exports.VoidAuth = VoidAuth;
