@finbourne/lusid 0.11.3838 → 0.11.3863

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (388) hide show
  1. package/lib/api/allocationsApi.d.ts +1 -1
  2. package/lib/api/allocationsApi.js +1 -1
  3. package/lib/api/apis.d.ts +3 -1
  4. package/lib/api/apis.js +3 -1
  5. package/lib/api/applicationMetadataApi.d.ts +1 -1
  6. package/lib/api/applicationMetadataApi.js +1 -1
  7. package/lib/api/complexMarketDataApi.d.ts +1 -1
  8. package/lib/api/complexMarketDataApi.js +1 -1
  9. package/lib/api/cutLabelDefinitionsApi.d.ts +1 -1
  10. package/lib/api/cutLabelDefinitionsApi.js +1 -1
  11. package/lib/api/dataTypesApi.d.ts +1 -1
  12. package/lib/api/dataTypesApi.js +1 -1
  13. package/lib/api/derivedTransactionPortfoliosApi.d.ts +1 -1
  14. package/lib/api/derivedTransactionPortfoliosApi.js +1 -1
  15. package/lib/api/entitiesApi.d.ts +1 -1
  16. package/lib/api/entitiesApi.js +1 -1
  17. package/lib/api/instrumentsApi.d.ts +1 -1
  18. package/lib/api/instrumentsApi.js +1 -1
  19. package/lib/api/legalEntitiesApi.d.ts +76 -1
  20. package/lib/api/legalEntitiesApi.js +426 -10
  21. package/lib/api/ordersApi.d.ts +1 -1
  22. package/lib/api/ordersApi.js +1 -1
  23. package/lib/api/personsApi.d.ts +113 -0
  24. package/lib/api/personsApi.js +571 -0
  25. package/lib/api/portfolioGroupsApi.d.ts +72 -1
  26. package/lib/api/portfolioGroupsApi.js +432 -40
  27. package/lib/api/portfoliosApi.d.ts +71 -0
  28. package/lib/api/portfoliosApi.js +432 -40
  29. package/lib/api/propertyDefinitionsApi.d.ts +1 -1
  30. package/lib/api/propertyDefinitionsApi.js +1 -1
  31. package/lib/api/quotesApi.d.ts +1 -1
  32. package/lib/api/quotesApi.js +1 -1
  33. package/lib/api/reconciliationsApi.d.ts +1 -1
  34. package/lib/api/reconciliationsApi.js +1 -1
  35. package/lib/api/referencePortfolioApi.d.ts +1 -1
  36. package/lib/api/referencePortfolioApi.js +1 -1
  37. package/lib/api/scopesApi.d.ts +1 -1
  38. package/lib/api/scopesApi.js +1 -1
  39. package/lib/api/searchApi.d.ts +1 -1
  40. package/lib/api/searchApi.js +1 -1
  41. package/lib/api/systemConfigurationApi.d.ts +1 -1
  42. package/lib/api/systemConfigurationApi.js +1 -1
  43. package/lib/api/transactionPortfoliosApi.d.ts +1 -1
  44. package/lib/api/transactionPortfoliosApi.js +1 -1
  45. package/lib/apis.d.ts +2 -0
  46. package/lib/model/accessControlledAction.d.ts +1 -1
  47. package/lib/model/accessControlledAction.js +1 -1
  48. package/lib/model/accessControlledResource.d.ts +1 -1
  49. package/lib/model/accessControlledResource.js +1 -1
  50. package/lib/model/accessMetadataValue.d.ts +29 -0
  51. package/lib/model/accessMetadataValue.js +39 -0
  52. package/lib/model/actionId.d.ts +1 -1
  53. package/lib/model/actionId.js +1 -1
  54. package/lib/model/adjustHolding.d.ts +1 -1
  55. package/lib/model/adjustHolding.js +1 -1
  56. package/lib/model/adjustHoldingRequest.d.ts +1 -1
  57. package/lib/model/adjustHoldingRequest.js +1 -1
  58. package/lib/model/aggregatedReturn.d.ts +1 -1
  59. package/lib/model/aggregatedReturn.js +1 -1
  60. package/lib/model/aggregatedReturnsRequest.d.ts +1 -1
  61. package/lib/model/aggregatedReturnsRequest.js +1 -1
  62. package/lib/model/allocation.d.ts +1 -1
  63. package/lib/model/allocation.js +1 -1
  64. package/lib/model/allocationRequest.d.ts +1 -1
  65. package/lib/model/allocationRequest.js +1 -1
  66. package/lib/model/allocationSetRequest.d.ts +1 -1
  67. package/lib/model/allocationSetRequest.js +1 -1
  68. package/lib/model/annulQuotesResponse.d.ts +1 -1
  69. package/lib/model/annulQuotesResponse.js +1 -1
  70. package/lib/model/annulStructuredDataResponse.d.ts +1 -1
  71. package/lib/model/annulStructuredDataResponse.js +1 -1
  72. package/lib/model/change.d.ts +1 -1
  73. package/lib/model/change.js +1 -1
  74. package/lib/model/completePortfolio.d.ts +1 -1
  75. package/lib/model/completePortfolio.js +1 -1
  76. package/lib/model/complexMarketData.d.ts +1 -1
  77. package/lib/model/complexMarketData.js +1 -1
  78. package/lib/model/complexMarketDataId.d.ts +1 -1
  79. package/lib/model/complexMarketDataId.js +1 -1
  80. package/lib/model/constituentsAdjustmentHeader.d.ts +1 -1
  81. package/lib/model/constituentsAdjustmentHeader.js +1 -1
  82. package/lib/model/counterpartyRiskInformation.d.ts +1 -1
  83. package/lib/model/counterpartyRiskInformation.js +1 -1
  84. package/lib/model/createCutLabelDefinitionRequest.d.ts +1 -1
  85. package/lib/model/createCutLabelDefinitionRequest.js +1 -1
  86. package/lib/model/createDerivedPropertyDefinitionRequest.d.ts +1 -1
  87. package/lib/model/createDerivedPropertyDefinitionRequest.js +1 -1
  88. package/lib/model/createDerivedTransactionPortfolioRequest.d.ts +1 -1
  89. package/lib/model/createDerivedTransactionPortfolioRequest.js +1 -1
  90. package/lib/model/createPortfolioDetails.d.ts +1 -1
  91. package/lib/model/createPortfolioDetails.js +1 -1
  92. package/lib/model/createPortfolioGroupRequest.d.ts +1 -1
  93. package/lib/model/createPortfolioGroupRequest.js +1 -1
  94. package/lib/model/createPropertyDefinitionRequest.d.ts +1 -1
  95. package/lib/model/createPropertyDefinitionRequest.js +1 -1
  96. package/lib/model/createReferencePortfolioRequest.d.ts +1 -1
  97. package/lib/model/createReferencePortfolioRequest.js +1 -1
  98. package/lib/model/createTransactionPortfolioRequest.d.ts +1 -1
  99. package/lib/model/createTransactionPortfolioRequest.js +1 -1
  100. package/lib/model/creditRating.d.ts +1 -1
  101. package/lib/model/creditRating.js +1 -1
  102. package/lib/model/currencyAndAmount.d.ts +1 -1
  103. package/lib/model/currencyAndAmount.js +1 -1
  104. package/lib/model/cutLabelDefinition.d.ts +1 -1
  105. package/lib/model/cutLabelDefinition.js +1 -1
  106. package/lib/model/cutLocalTime.d.ts +1 -1
  107. package/lib/model/cutLocalTime.js +1 -1
  108. package/lib/model/dataType.d.ts +1 -1
  109. package/lib/model/dataType.js +1 -1
  110. package/lib/model/dateRange.d.ts +1 -1
  111. package/lib/model/dateRange.js +1 -1
  112. package/lib/model/deleteInstrumentResponse.d.ts +1 -1
  113. package/lib/model/deleteInstrumentResponse.js +1 -1
  114. package/lib/model/deletedEntityResponse.d.ts +1 -1
  115. package/lib/model/deletedEntityResponse.js +1 -1
  116. package/lib/model/errorDetail.d.ts +1 -1
  117. package/lib/model/errorDetail.js +1 -1
  118. package/lib/model/expandedGroup.d.ts +1 -1
  119. package/lib/model/expandedGroup.js +1 -1
  120. package/lib/model/fieldDefinition.d.ts +1 -1
  121. package/lib/model/fieldDefinition.js +1 -1
  122. package/lib/model/fieldValue.d.ts +1 -1
  123. package/lib/model/fieldValue.js +1 -1
  124. package/lib/model/fileResponse.d.ts +1 -1
  125. package/lib/model/fileResponse.js +1 -1
  126. package/lib/model/getComplexMarketDataResponse.d.ts +1 -1
  127. package/lib/model/getComplexMarketDataResponse.js +1 -1
  128. package/lib/model/getInstrumentsResponse.d.ts +1 -1
  129. package/lib/model/getInstrumentsResponse.js +1 -1
  130. package/lib/model/getQuotesResponse.d.ts +1 -1
  131. package/lib/model/getQuotesResponse.js +1 -1
  132. package/lib/model/getReferencePortfolioConstituentsResponse.d.ts +1 -1
  133. package/lib/model/getReferencePortfolioConstituentsResponse.js +1 -1
  134. package/lib/model/holdingAdjustment.d.ts +1 -1
  135. package/lib/model/holdingAdjustment.js +1 -1
  136. package/lib/model/holdingsAdjustment.d.ts +1 -1
  137. package/lib/model/holdingsAdjustment.js +1 -1
  138. package/lib/model/holdingsAdjustmentHeader.d.ts +1 -1
  139. package/lib/model/holdingsAdjustmentHeader.js +1 -1
  140. package/lib/model/iUnitDefinitionDto.d.ts +1 -1
  141. package/lib/model/iUnitDefinitionDto.js +1 -1
  142. package/lib/model/idSelectorDefinition.d.ts +1 -1
  143. package/lib/model/idSelectorDefinition.js +1 -1
  144. package/lib/model/identifierPartSchema.d.ts +1 -1
  145. package/lib/model/identifierPartSchema.js +1 -1
  146. package/lib/model/industryClassifier.d.ts +1 -1
  147. package/lib/model/industryClassifier.js +1 -1
  148. package/lib/model/instrument.d.ts +1 -1
  149. package/lib/model/instrument.js +1 -1
  150. package/lib/model/instrumentDefinition.d.ts +1 -1
  151. package/lib/model/instrumentDefinition.js +1 -1
  152. package/lib/model/instrumentIdTypeDescriptor.d.ts +1 -1
  153. package/lib/model/instrumentIdTypeDescriptor.js +1 -1
  154. package/lib/model/instrumentIdValue.d.ts +1 -1
  155. package/lib/model/instrumentIdValue.js +1 -1
  156. package/lib/model/labelValueSet.d.ts +1 -1
  157. package/lib/model/labelValueSet.js +1 -1
  158. package/lib/model/legalEntity.d.ts +1 -1
  159. package/lib/model/legalEntity.js +1 -1
  160. package/lib/model/link.d.ts +1 -1
  161. package/lib/model/link.js +1 -1
  162. package/lib/model/lusidInstrument.d.ts +1 -1
  163. package/lib/model/lusidInstrument.js +1 -1
  164. package/lib/model/lusidProblemDetails.d.ts +1 -1
  165. package/lib/model/lusidProblemDetails.js +1 -1
  166. package/lib/model/lusidValidationProblemDetails.d.ts +1 -1
  167. package/lib/model/lusidValidationProblemDetails.js +1 -1
  168. package/lib/model/metricValue.d.ts +1 -1
  169. package/lib/model/metricValue.js +1 -1
  170. package/lib/model/models.d.ts +6 -0
  171. package/lib/model/models.js +18 -0
  172. package/lib/model/order.d.ts +1 -1
  173. package/lib/model/order.js +1 -1
  174. package/lib/model/orderRequest.d.ts +1 -1
  175. package/lib/model/orderRequest.js +1 -1
  176. package/lib/model/orderSetRequest.d.ts +1 -1
  177. package/lib/model/orderSetRequest.js +1 -1
  178. package/lib/model/otcConfirmation.d.ts +1 -1
  179. package/lib/model/otcConfirmation.js +1 -1
  180. package/lib/model/outputTransaction.d.ts +1 -1
  181. package/lib/model/outputTransaction.js +1 -1
  182. package/lib/model/pagedResourceListOfAllocation.d.ts +1 -1
  183. package/lib/model/pagedResourceListOfAllocation.js +1 -1
  184. package/lib/model/pagedResourceListOfCutLabelDefinition.d.ts +1 -1
  185. package/lib/model/pagedResourceListOfCutLabelDefinition.js +1 -1
  186. package/lib/model/pagedResourceListOfInstrument.d.ts +1 -1
  187. package/lib/model/pagedResourceListOfInstrument.js +1 -1
  188. package/lib/model/pagedResourceListOfLegalEntity.d.ts +1 -1
  189. package/lib/model/pagedResourceListOfLegalEntity.js +1 -1
  190. package/lib/model/pagedResourceListOfOrder.d.ts +1 -1
  191. package/lib/model/pagedResourceListOfOrder.js +1 -1
  192. package/lib/model/pagedResourceListOfPortfolioGroupSearchResult.d.ts +1 -1
  193. package/lib/model/pagedResourceListOfPortfolioGroupSearchResult.js +1 -1
  194. package/lib/model/pagedResourceListOfPortfolioSearchResult.d.ts +1 -1
  195. package/lib/model/pagedResourceListOfPortfolioSearchResult.js +1 -1
  196. package/lib/model/pagedResourceListOfPropertyDefinitionSearchResult.d.ts +1 -1
  197. package/lib/model/pagedResourceListOfPropertyDefinitionSearchResult.js +1 -1
  198. package/lib/model/performanceReturn.d.ts +1 -1
  199. package/lib/model/performanceReturn.js +1 -1
  200. package/lib/model/performanceReturnsMetric.d.ts +1 -1
  201. package/lib/model/performanceReturnsMetric.js +1 -1
  202. package/lib/model/perpetualProperty.d.ts +1 -1
  203. package/lib/model/perpetualProperty.js +1 -1
  204. package/lib/model/portfolio.d.ts +1 -1
  205. package/lib/model/portfolio.js +1 -1
  206. package/lib/model/portfolioCashFlow.d.ts +1 -1
  207. package/lib/model/portfolioCashFlow.js +1 -1
  208. package/lib/model/portfolioDetails.d.ts +1 -1
  209. package/lib/model/portfolioDetails.js +1 -1
  210. package/lib/model/portfolioGroup.d.ts +1 -1
  211. package/lib/model/portfolioGroup.js +1 -1
  212. package/lib/model/portfolioGroupProperties.d.ts +1 -1
  213. package/lib/model/portfolioGroupProperties.js +1 -1
  214. package/lib/model/portfolioGroupSearchResult.d.ts +1 -1
  215. package/lib/model/portfolioGroupSearchResult.js +1 -1
  216. package/lib/model/portfolioHolding.d.ts +1 -1
  217. package/lib/model/portfolioHolding.js +1 -1
  218. package/lib/model/portfolioProperties.d.ts +1 -1
  219. package/lib/model/portfolioProperties.js +1 -1
  220. package/lib/model/portfolioReconciliationRequest.d.ts +1 -1
  221. package/lib/model/portfolioReconciliationRequest.js +1 -1
  222. package/lib/model/portfolioSearchResult.d.ts +1 -1
  223. package/lib/model/portfolioSearchResult.js +1 -1
  224. package/lib/model/portfoliosReconciliationRequest.d.ts +1 -1
  225. package/lib/model/portfoliosReconciliationRequest.js +1 -1
  226. package/lib/model/processedCommand.d.ts +1 -1
  227. package/lib/model/processedCommand.js +1 -1
  228. package/lib/model/property.d.ts +1 -1
  229. package/lib/model/property.js +1 -1
  230. package/lib/model/propertyDefinition.d.ts +1 -1
  231. package/lib/model/propertyDefinition.js +1 -1
  232. package/lib/model/propertyDefinitionSearchResult.d.ts +1 -1
  233. package/lib/model/propertyDefinitionSearchResult.js +1 -1
  234. package/lib/model/propertyInterval.d.ts +1 -1
  235. package/lib/model/propertyInterval.js +1 -1
  236. package/lib/model/propertyValue.d.ts +1 -1
  237. package/lib/model/propertyValue.js +1 -1
  238. package/lib/model/quote.d.ts +1 -1
  239. package/lib/model/quote.js +1 -1
  240. package/lib/model/quoteId.d.ts +1 -1
  241. package/lib/model/quoteId.js +1 -1
  242. package/lib/model/quoteSeriesId.d.ts +1 -1
  243. package/lib/model/quoteSeriesId.js +1 -1
  244. package/lib/model/realisedGainLoss.d.ts +1 -1
  245. package/lib/model/realisedGainLoss.js +1 -1
  246. package/lib/model/reconciliationBreak.d.ts +1 -1
  247. package/lib/model/reconciliationBreak.js +1 -1
  248. package/lib/model/referenceData.d.ts +1 -1
  249. package/lib/model/referenceData.js +1 -1
  250. package/lib/model/referencePortfolioConstituent.d.ts +1 -1
  251. package/lib/model/referencePortfolioConstituent.js +1 -1
  252. package/lib/model/referencePortfolioConstituentRequest.d.ts +1 -1
  253. package/lib/model/referencePortfolioConstituentRequest.js +1 -1
  254. package/lib/model/resourceId.d.ts +1 -1
  255. package/lib/model/resourceId.js +1 -1
  256. package/lib/model/resourceListOfAccessControlledResource.d.ts +1 -1
  257. package/lib/model/resourceListOfAccessControlledResource.js +1 -1
  258. package/lib/model/resourceListOfAccessMetadataValueOf.d.ts +49 -0
  259. package/lib/model/resourceListOfAccessMetadataValueOf.js +54 -0
  260. package/lib/model/resourceListOfAggregatedReturn.d.ts +1 -1
  261. package/lib/model/resourceListOfAggregatedReturn.js +1 -1
  262. package/lib/model/resourceListOfAllocation.d.ts +1 -1
  263. package/lib/model/resourceListOfAllocation.js +1 -1
  264. package/lib/model/resourceListOfChange.d.ts +1 -1
  265. package/lib/model/resourceListOfChange.js +1 -1
  266. package/lib/model/resourceListOfConstituentsAdjustmentHeader.d.ts +1 -1
  267. package/lib/model/resourceListOfConstituentsAdjustmentHeader.js +1 -1
  268. package/lib/model/resourceListOfDataType.d.ts +1 -1
  269. package/lib/model/resourceListOfDataType.js +1 -1
  270. package/lib/model/resourceListOfHoldingsAdjustmentHeader.d.ts +1 -1
  271. package/lib/model/resourceListOfHoldingsAdjustmentHeader.js +1 -1
  272. package/lib/model/resourceListOfIUnitDefinitionDto.d.ts +1 -1
  273. package/lib/model/resourceListOfIUnitDefinitionDto.js +1 -1
  274. package/lib/model/resourceListOfInstrumentIdTypeDescriptor.d.ts +1 -1
  275. package/lib/model/resourceListOfInstrumentIdTypeDescriptor.js +1 -1
  276. package/lib/model/resourceListOfOrder.d.ts +1 -1
  277. package/lib/model/resourceListOfOrder.js +1 -1
  278. package/lib/model/resourceListOfPerformanceReturn.d.ts +1 -1
  279. package/lib/model/resourceListOfPerformanceReturn.js +1 -1
  280. package/lib/model/resourceListOfPortfolio.d.ts +1 -1
  281. package/lib/model/resourceListOfPortfolio.js +1 -1
  282. package/lib/model/resourceListOfPortfolioCashFlow.d.ts +1 -1
  283. package/lib/model/resourceListOfPortfolioCashFlow.js +1 -1
  284. package/lib/model/resourceListOfPortfolioGroup.d.ts +1 -1
  285. package/lib/model/resourceListOfPortfolioGroup.js +1 -1
  286. package/lib/model/resourceListOfProcessedCommand.d.ts +1 -1
  287. package/lib/model/resourceListOfProcessedCommand.js +1 -1
  288. package/lib/model/resourceListOfPropertyDefinition.d.ts +1 -1
  289. package/lib/model/resourceListOfPropertyDefinition.js +1 -1
  290. package/lib/model/resourceListOfPropertyInterval.d.ts +1 -1
  291. package/lib/model/resourceListOfPropertyInterval.js +1 -1
  292. package/lib/model/resourceListOfQuote.d.ts +1 -1
  293. package/lib/model/resourceListOfQuote.js +1 -1
  294. package/lib/model/resourceListOfReconciliationBreak.d.ts +1 -1
  295. package/lib/model/resourceListOfReconciliationBreak.js +1 -1
  296. package/lib/model/resourceListOfScopeDefinition.d.ts +1 -1
  297. package/lib/model/resourceListOfScopeDefinition.js +1 -1
  298. package/lib/model/scopeDefinition.d.ts +1 -1
  299. package/lib/model/scopeDefinition.js +1 -1
  300. package/lib/model/sideConfigurationData.d.ts +1 -1
  301. package/lib/model/sideConfigurationData.js +1 -1
  302. package/lib/model/stream.d.ts +1 -1
  303. package/lib/model/stream.js +1 -1
  304. package/lib/model/targetTaxLot.d.ts +1 -1
  305. package/lib/model/targetTaxLot.js +1 -1
  306. package/lib/model/targetTaxLotRequest.d.ts +1 -1
  307. package/lib/model/targetTaxLotRequest.js +1 -1
  308. package/lib/model/transaction.d.ts +1 -1
  309. package/lib/model/transaction.js +1 -1
  310. package/lib/model/transactionConfigurationData.d.ts +1 -1
  311. package/lib/model/transactionConfigurationData.js +1 -1
  312. package/lib/model/transactionConfigurationDataRequest.d.ts +1 -1
  313. package/lib/model/transactionConfigurationDataRequest.js +1 -1
  314. package/lib/model/transactionConfigurationMovementData.d.ts +1 -1
  315. package/lib/model/transactionConfigurationMovementData.js +1 -1
  316. package/lib/model/transactionConfigurationMovementDataRequest.d.ts +1 -1
  317. package/lib/model/transactionConfigurationMovementDataRequest.js +1 -1
  318. package/lib/model/transactionConfigurationTypeAlias.d.ts +1 -1
  319. package/lib/model/transactionConfigurationTypeAlias.js +1 -1
  320. package/lib/model/transactionPrice.d.ts +1 -1
  321. package/lib/model/transactionPrice.js +1 -1
  322. package/lib/model/transactionPropertyMapping.d.ts +1 -1
  323. package/lib/model/transactionPropertyMapping.js +1 -1
  324. package/lib/model/transactionPropertyMappingRequest.d.ts +1 -1
  325. package/lib/model/transactionPropertyMappingRequest.js +1 -1
  326. package/lib/model/transactionQueryParameters.d.ts +1 -1
  327. package/lib/model/transactionQueryParameters.js +1 -1
  328. package/lib/model/transactionRequest.d.ts +1 -1
  329. package/lib/model/transactionRequest.js +1 -1
  330. package/lib/model/transactionSetConfigurationData.d.ts +1 -1
  331. package/lib/model/transactionSetConfigurationData.js +1 -1
  332. package/lib/model/updateCutLabelDefinitionRequest.d.ts +1 -1
  333. package/lib/model/updateCutLabelDefinitionRequest.js +1 -1
  334. package/lib/model/updateInstrumentIdentifierRequest.d.ts +1 -1
  335. package/lib/model/updateInstrumentIdentifierRequest.js +1 -1
  336. package/lib/model/updatePortfolioGroupRequest.d.ts +1 -1
  337. package/lib/model/updatePortfolioGroupRequest.js +1 -1
  338. package/lib/model/updatePortfolioRequest.d.ts +1 -1
  339. package/lib/model/updatePortfolioRequest.js +1 -1
  340. package/lib/model/updatePropertyDefinitionRequest.d.ts +1 -1
  341. package/lib/model/updatePropertyDefinitionRequest.js +1 -1
  342. package/lib/model/upsertComplexMarketDataRequest.d.ts +1 -1
  343. package/lib/model/upsertComplexMarketDataRequest.js +1 -1
  344. package/lib/model/upsertInstrumentPropertiesResponse.d.ts +1 -1
  345. package/lib/model/upsertInstrumentPropertiesResponse.js +1 -1
  346. package/lib/model/upsertInstrumentPropertyRequest.d.ts +1 -1
  347. package/lib/model/upsertInstrumentPropertyRequest.js +1 -1
  348. package/lib/model/upsertInstrumentsResponse.d.ts +1 -1
  349. package/lib/model/upsertInstrumentsResponse.js +1 -1
  350. package/lib/model/upsertLegalEntityAccessMetadataRequest.d.ts +29 -0
  351. package/lib/model/upsertLegalEntityAccessMetadataRequest.js +31 -0
  352. package/lib/model/upsertLegalEntityRequest.d.ts +1 -1
  353. package/lib/model/upsertLegalEntityRequest.js +1 -1
  354. package/lib/model/upsertPersonAccessMetadataRequest.d.ts +29 -0
  355. package/lib/model/upsertPersonAccessMetadataRequest.js +31 -0
  356. package/lib/model/upsertPortfolioAccessMetadataRequest.d.ts +29 -0
  357. package/lib/model/upsertPortfolioAccessMetadataRequest.js +31 -0
  358. package/lib/model/upsertPortfolioGroupAccessMetadataRequest.d.ts +29 -0
  359. package/lib/model/upsertPortfolioGroupAccessMetadataRequest.js +31 -0
  360. package/lib/model/upsertPortfolioTransactionsResponse.d.ts +1 -1
  361. package/lib/model/upsertPortfolioTransactionsResponse.js +1 -1
  362. package/lib/model/upsertQuoteRequest.d.ts +1 -1
  363. package/lib/model/upsertQuoteRequest.js +1 -1
  364. package/lib/model/upsertQuotesResponse.d.ts +1 -1
  365. package/lib/model/upsertQuotesResponse.js +1 -1
  366. package/lib/model/upsertReferencePortfolioConstituentsRequest.d.ts +1 -1
  367. package/lib/model/upsertReferencePortfolioConstituentsRequest.js +1 -1
  368. package/lib/model/upsertReferencePortfolioConstituentsResponse.d.ts +1 -1
  369. package/lib/model/upsertReferencePortfolioConstituentsResponse.js +1 -1
  370. package/lib/model/upsertReturnsResponse.d.ts +1 -1
  371. package/lib/model/upsertReturnsResponse.js +1 -1
  372. package/lib/model/upsertStructuredDataResponse.d.ts +1 -1
  373. package/lib/model/upsertStructuredDataResponse.js +1 -1
  374. package/lib/model/upsertTransactionPropertiesResponse.d.ts +1 -1
  375. package/lib/model/upsertTransactionPropertiesResponse.js +1 -1
  376. package/lib/model/user.d.ts +1 -1
  377. package/lib/model/user.js +1 -1
  378. package/lib/model/version.d.ts +1 -1
  379. package/lib/model/version.js +1 -1
  380. package/lib/model/versionSummaryDto.d.ts +1 -1
  381. package/lib/model/versionSummaryDto.js +1 -1
  382. package/lib/model/versionedResourceListOfOutputTransaction.d.ts +1 -1
  383. package/lib/model/versionedResourceListOfOutputTransaction.js +1 -1
  384. package/lib/model/versionedResourceListOfPortfolioHolding.d.ts +1 -1
  385. package/lib/model/versionedResourceListOfPortfolioHolding.js +1 -1
  386. package/lib/model/versionedResourceListOfTransaction.d.ts +1 -1
  387. package/lib/model/versionedResourceListOfTransaction.js +1 -1
  388. package/package.json +1 -1
@@ -57,7 +57,7 @@ exports.PortfoliosApi = exports.PortfoliosApiApiKeys = void 0;
57
57
  * LUSID API
58
58
  * # Introduction This page documents the [LUSID APIs](https://www.lusid.com/api/swagger), which allows authorised clients to query and update their data within the LUSID platform. SDKs to interact with the LUSID APIs are available in the following languages and frameworks: * [C#](https://github.com/finbourne/lusid-sdk-csharp) * [Java](https://github.com/finbourne/lusid-sdk-java) * [JavaScript](https://github.com/finbourne/lusid-sdk-js) * [Python](https://github.com/finbourne/lusid-sdk-python) * [Angular](https://github.com/finbourne/lusid-sdk-angular) The LUSID platform is made up of a number of sub-applications. You can find the API / swagger documentation by following the links in the table below. | Application | Description | API / Swagger Documentation | | ----- | ----- | ---- | | LUSID | Open, API-first, developer-friendly investment data platform. | [Swagger](https://www.lusid.com/api/swagger/index.html) | | Web app | User-facing front end for LUSID. | [Swagger](https://www.lusid.com/app/swagger/index.html) | | Scheduler | Automated job scheduler. | [Swagger](https://www.lusid.com/scheduler2/swagger/index.html) | | Insights |Monitoring and troubleshooting service. | [Swagger](https://www.lusid.com/insights/swagger/index.html) | | Identity | Identity management for LUSID (in conjuction with Access) | [Swagger](https://www.lusid.com/identity/swagger/index.html) | | Access | Access control for LUSID (in conjunction with Identity) | [Swagger](https://www.lusid.com/access/swagger/index.html) | | Drive | Secure file repository and manager for collaboration. | [Swagger](https://www.lusid.com/drive/swagger/index.html) | | Luminesce | Data virtualisation service (query data from multiple providers, including LUSID) | [Swagger](https://www.lusid.com/honeycomb/swagger/index.html) | | Notification | Notification service. | [Swagger](https://www.lusid.com/notifications/swagger/index.html) | | Configuration | File store for secrets and other sensitive information. | [Swagger](https://www.lusid.com/configuration/swagger/index.html) | # Error Codes | Code|Name|Description | | ---|---|--- | | <a name=\"-10\">-10</a>|Server Configuration Error| | | <a name=\"-1\">-1</a>|Unknown error|An unexpected error was encountered on our side. | | <a name=\"102\">102</a>|Version Not Found| | | <a name=\"103\">103</a>|Api Rate Limit Violation| | | <a name=\"104\">104</a>|Instrument Not Found| | | <a name=\"105\">105</a>|Property Not Found| | | <a name=\"106\">106</a>|Portfolio Recursion Depth| | | <a name=\"108\">108</a>|Group Not Found| | | <a name=\"109\">109</a>|Portfolio Not Found| | | <a name=\"110\">110</a>|Property Schema Not Found| | | <a name=\"111\">111</a>|Portfolio Ancestry Not Found| | | <a name=\"112\">112</a>|Portfolio With Id Already Exists| | | <a name=\"113\">113</a>|Orphaned Portfolio| | | <a name=\"119\">119</a>|Missing Base Claims| | | <a name=\"121\">121</a>|Property Not Defined| | | <a name=\"122\">122</a>|Cannot Delete System Property| | | <a name=\"123\">123</a>|Cannot Modify Immutable Property Field| | | <a name=\"124\">124</a>|Property Already Exists| | | <a name=\"125\">125</a>|Invalid Property Life Time| | | <a name=\"126\">126</a>|Property Constraint Style Excludes Properties| | | <a name=\"127\">127</a>|Cannot Modify Default Data Type| | | <a name=\"128\">128</a>|Group Already Exists| | | <a name=\"129\">129</a>|No Such Data Type| | | <a name=\"130\">130</a>|Undefined Value For Data Type| | | <a name=\"131\">131</a>|Unsupported Value Type Defined On Data Type| | | <a name=\"132\">132</a>|Validation Error| | | <a name=\"133\">133</a>|Loop Detected In Group Hierarchy| | | <a name=\"134\">134</a>|Undefined Acceptable Values| | | <a name=\"135\">135</a>|Sub Group Already Exists| | | <a name=\"138\">138</a>|Price Source Not Found| | | <a name=\"139\">139</a>|Analytic Store Not Found| | | <a name=\"141\">141</a>|Analytic Store Already Exists| | | <a name=\"143\">143</a>|Client Instrument Already Exists| | | <a name=\"144\">144</a>|Duplicate In Parameter Set| | | <a name=\"147\">147</a>|Results Not Found| | | <a name=\"148\">148</a>|Order Field Not In Result Set| | | <a name=\"149\">149</a>|Operation Failed| | | <a name=\"150\">150</a>|Elastic Search Error| | | <a name=\"151\">151</a>|Invalid Parameter Value| | | <a name=\"153\">153</a>|Command Processing Failure| | | <a name=\"154\">154</a>|Entity State Construction Failure| | | <a name=\"155\">155</a>|Entity Timeline Does Not Exist| | | <a name=\"156\">156</a>|Concurrency Conflict Failure| | | <a name=\"157\">157</a>|Invalid Request| | | <a name=\"158\">158</a>|Event Publish Unknown| | | <a name=\"159\">159</a>|Event Query Failure| | | <a name=\"160\">160</a>|Blob Did Not Exist| | | <a name=\"162\">162</a>|Sub System Request Failure| | | <a name=\"163\">163</a>|Sub System Configuration Failure| | | <a name=\"165\">165</a>|Failed To Delete| | | <a name=\"166\">166</a>|Upsert Client Instrument Failure| | | <a name=\"167\">167</a>|Illegal As At Interval| | | <a name=\"168\">168</a>|Illegal Bitemporal Query| | | <a name=\"169\">169</a>|Invalid Alternate Id| | | <a name=\"170\">170</a>|Cannot Add Source Portfolio Property Explicitly| | | <a name=\"171\">171</a>|Entity Already Exists In Group| | | <a name=\"173\">173</a>|Entity With Id Already Exists| | | <a name=\"174\">174</a>|Derived Portfolio Details Do Not Exist| | | <a name=\"176\">176</a>|Portfolio With Name Already Exists| | | <a name=\"177\">177</a>|Invalid Transactions| | | <a name=\"178\">178</a>|Reference Portfolio Not Found| | | <a name=\"179\">179</a>|Duplicate Id| | | <a name=\"180\">180</a>|Command Retrieval Failure| | | <a name=\"181\">181</a>|Data Filter Application Failure| | | <a name=\"182\">182</a>|Search Failed| | | <a name=\"183\">183</a>|Movements Engine Configuration Key Failure| | | <a name=\"184\">184</a>|Fx Rate Source Not Found| | | <a name=\"185\">185</a>|Accrual Source Not Found| | | <a name=\"186\">186</a>|Access Denied| | | <a name=\"187\">187</a>|Invalid Identity Token| | | <a name=\"188\">188</a>|Invalid Request Headers| | | <a name=\"189\">189</a>|Price Not Found| | | <a name=\"190\">190</a>|Invalid Sub Holding Keys Provided| | | <a name=\"191\">191</a>|Duplicate Sub Holding Keys Provided| | | <a name=\"192\">192</a>|Cut Definition Not Found| | | <a name=\"193\">193</a>|Cut Definition Invalid| | | <a name=\"194\">194</a>|Time Variant Property Deletion Date Unspecified| | | <a name=\"195\">195</a>|Perpetual Property Deletion Date Specified| | | <a name=\"196\">196</a>|Time Variant Property Upsert Date Unspecified| | | <a name=\"197\">197</a>|Perpetual Property Upsert Date Specified| | | <a name=\"200\">200</a>|Invalid Unit For Data Type| | | <a name=\"201\">201</a>|Invalid Type For Data Type| | | <a name=\"202\">202</a>|Invalid Value For Data Type| | | <a name=\"203\">203</a>|Unit Not Defined For Data Type| | | <a name=\"204\">204</a>|Units Not Supported On Data Type| | | <a name=\"205\">205</a>|Cannot Specify Units On Data Type| | | <a name=\"206\">206</a>|Unit Schema Inconsistent With Data Type| | | <a name=\"207\">207</a>|Unit Definition Not Specified| | | <a name=\"208\">208</a>|Duplicate Unit Definitions Specified| | | <a name=\"209\">209</a>|Invalid Units Definition| | | <a name=\"210\">210</a>|Invalid Instrument Identifier Unit| | | <a name=\"211\">211</a>|Holdings Adjustment Does Not Exist| | | <a name=\"212\">212</a>|Could Not Build Excel Url| | | <a name=\"213\">213</a>|Could Not Get Excel Version| | | <a name=\"214\">214</a>|Instrument By Code Not Found| | | <a name=\"215\">215</a>|Entity Schema Does Not Exist| | | <a name=\"216\">216</a>|Feature Not Supported On Portfolio Type| | | <a name=\"217\">217</a>|Quote Not Found| | | <a name=\"218\">218</a>|Invalid Quote Identifier| | | <a name=\"219\">219</a>|Invalid Metric For Data Type| | | <a name=\"220\">220</a>|Invalid Instrument Definition| | | <a name=\"221\">221</a>|Instrument Upsert Failure| | | <a name=\"222\">222</a>|Reference Portfolio Request Not Supported| | | <a name=\"223\">223</a>|Transaction Portfolio Request Not Supported| | | <a name=\"224\">224</a>|Invalid Property Value Assignment| | | <a name=\"230\">230</a>|Transaction Type Not Found| | | <a name=\"231\">231</a>|Transaction Type Duplication| | | <a name=\"232\">232</a>|Portfolio Does Not Exist At Given Date| | | <a name=\"233\">233</a>|Query Parser Failure| | | <a name=\"234\">234</a>|Duplicate Constituent| | | <a name=\"235\">235</a>|Unresolved Instrument Constituent| | | <a name=\"236\">236</a>|Unresolved Instrument In Transition| | | <a name=\"237\">237</a>|Missing Side Definitions| | | <a name=\"299\">299</a>|Invalid Recipe| | | <a name=\"300\">300</a>|Missing Recipe| | | <a name=\"301\">301</a>|Dependencies| | | <a name=\"304\">304</a>|Portfolio Preprocess Failure| | | <a name=\"310\">310</a>|Valuation Engine Failure| | | <a name=\"311\">311</a>|Task Factory Failure| | | <a name=\"312\">312</a>|Task Evaluation Failure| | | <a name=\"313\">313</a>|Task Generation Failure| | | <a name=\"314\">314</a>|Engine Configuration Failure| | | <a name=\"315\">315</a>|Model Specification Failure| | | <a name=\"320\">320</a>|Market Data Key Failure| | | <a name=\"321\">321</a>|Market Resolver Failure| | | <a name=\"322\">322</a>|Market Data Failure| | | <a name=\"330\">330</a>|Curve Failure| | | <a name=\"331\">331</a>|Volatility Surface Failure| | | <a name=\"332\">332</a>|Volatility Cube Failure| | | <a name=\"350\">350</a>|Instrument Failure| | | <a name=\"351\">351</a>|Cash Flows Failure| | | <a name=\"352\">352</a>|Reference Data Failure| | | <a name=\"360\">360</a>|Aggregation Failure| | | <a name=\"361\">361</a>|Aggregation Measure Failure| | | <a name=\"370\">370</a>|Result Retrieval Failure| | | <a name=\"371\">371</a>|Result Processing Failure| | | <a name=\"372\">372</a>|Vendor Result Processing Failure| | | <a name=\"373\">373</a>|Vendor Result Mapping Failure| | | <a name=\"374\">374</a>|Vendor Library Unauthorised| | | <a name=\"375\">375</a>|Vendor Connectivity Error| | | <a name=\"376\">376</a>|Vendor Interface Error| | | <a name=\"377\">377</a>|Vendor Pricing Failure| | | <a name=\"378\">378</a>|Vendor Translation Failure| | | <a name=\"379\">379</a>|Vendor Key Mapping Failure| | | <a name=\"380\">380</a>|Vendor Reflection Failure| | | <a name=\"381\">381</a>|Vendor Process Failure| | | <a name=\"382\">382</a>|Vendor System Failure| | | <a name=\"390\">390</a>|Attempt To Upsert Duplicate Quotes| | | <a name=\"391\">391</a>|Corporate Action Source Does Not Exist| | | <a name=\"392\">392</a>|Corporate Action Source Already Exists| | | <a name=\"393\">393</a>|Instrument Identifier Already In Use| | | <a name=\"394\">394</a>|Properties Not Found| | | <a name=\"395\">395</a>|Batch Operation Aborted| | | <a name=\"400\">400</a>|Invalid Iso4217 Currency Code| | | <a name=\"401\">401</a>|Cannot Assign Instrument Identifier To Currency| | | <a name=\"402\">402</a>|Cannot Assign Currency Identifier To Non Currency| | | <a name=\"403\">403</a>|Currency Instrument Cannot Be Deleted| | | <a name=\"404\">404</a>|Currency Instrument Cannot Have Economic Definition| | | <a name=\"405\">405</a>|Currency Instrument Cannot Have Lookthrough Portfolio| | | <a name=\"406\">406</a>|Cannot Create Currency Instrument With Multiple Identifiers| | | <a name=\"407\">407</a>|Specified Currency Is Undefined| | | <a name=\"410\">410</a>|Index Does Not Exist| | | <a name=\"411\">411</a>|Sort Field Does Not Exist| | | <a name=\"413\">413</a>|Negative Pagination Parameters| | | <a name=\"414\">414</a>|Invalid Search Syntax| | | <a name=\"415\">415</a>|Filter Execution Timeout| | | <a name=\"420\">420</a>|Side Definition Inconsistent| | | <a name=\"450\">450</a>|Invalid Quote Access Metadata Rule| | | <a name=\"451\">451</a>|Access Metadata Not Found| | | <a name=\"452\">452</a>|Invalid Access Metadata Identifier| | | <a name=\"460\">460</a>|Standard Resource Not Found| | | <a name=\"461\">461</a>|Standard Resource Conflict| | | <a name=\"462\">462</a>|Calendar Not Found| | | <a name=\"463\">463</a>|Date In A Calendar Not Found| | | <a name=\"464\">464</a>|Invalid Date Source Data| | | <a name=\"465\">465</a>|Invalid Timezone| | | <a name=\"601\">601</a>|Person Identifier Already In Use| | | <a name=\"602\">602</a>|Person Not Found| | | <a name=\"603\">603</a>|Cannot Set Identifier| | | <a name=\"617\">617</a>|Invalid Recipe Specification In Request| | | <a name=\"618\">618</a>|Inline Recipe Deserialisation Failure| | | <a name=\"619\">619</a>|Identifier Types Not Set For Entity| | | <a name=\"620\">620</a>|Cannot Delete All Client Defined Identifiers| | | <a name=\"650\">650</a>|The Order requested was not found.| | | <a name=\"654\">654</a>|The Allocation requested was not found.| | | <a name=\"655\">655</a>|Cannot build the fx forward target with the given holdings.| | | <a name=\"656\">656</a>|Group does not contain expected entities.| | | <a name=\"665\">665</a>|Destination directory not found| | | <a name=\"667\">667</a>|Relation definition already exists| | | <a name=\"672\">672</a>|Could not retrieve file contents| | | <a name=\"673\">673</a>|Missing entitlements for entities in Group| | | <a name=\"674\">674</a>|Next Best Action not found| | | <a name=\"676\">676</a>|Relation definition not defined| | | <a name=\"677\">677</a>|Invalid entity identifier for relation| | | <a name=\"681\">681</a>|Sorting by specified field not supported|One or more of the provided fields to order by were either invalid or not supported. | | <a name=\"682\">682</a>|Too many fields to sort by|The number of fields to sort the data by exceeds the number allowed by the endpoint | | <a name=\"684\">684</a>|Sequence Not Found| | | <a name=\"685\">685</a>|Sequence Already Exists| | | <a name=\"686\">686</a>|Non-cycling sequence has been exhausted| | | <a name=\"687\">687</a>|Legal Entity Identifier Already In Use| | | <a name=\"688\">688</a>|Legal Entity Not Found| | | <a name=\"689\">689</a>|The supplied pagination token is invalid| | | <a name=\"690\">690</a>|Property Type Is Not Supported| | | <a name=\"691\">691</a>|Multiple Tax-lots For Currency Type Is Not Supported| | | <a name=\"692\">692</a>|This endpoint does not support impersonation| | | <a name=\"693\">693</a>|Entity type is not supported for Relationship| | | <a name=\"694\">694</a>|Relationship Validation Failure| | | <a name=\"695\">695</a>|Relationship Not Found| | | <a name=\"697\">697</a>|Derived Property Formula No Longer Valid| | | <a name=\"698\">698</a>|Story is not available| | | <a name=\"703\">703</a>|Corporate Action Does Not Exist| | | <a name=\"720\">720</a>|The provided sort and filter combination is not valid| | | <a name=\"721\">721</a>|A2B generation failed| | | <a name=\"722\">722</a>|Aggregated Return Calculation Failure| | | <a name=\"723\">723</a>|Custom Entity Definition Identifier Already In Use| | | <a name=\"724\">724</a>|Custom Entity Definition Not Found| | | <a name=\"725\">725</a>|The Placement requested was not found.| | | <a name=\"726\">726</a>|The Execution requested was not found.| | | <a name=\"727\">727</a>|The Block requested was not found.| | | <a name=\"728\">728</a>|The Participation requested was not found.| | | <a name=\"729\">729</a>|The Package requested was not found.| | | <a name=\"730\">730</a>|The OrderInstruction requested was not found.| | | <a name=\"732\">732</a>|Custom Entity not found.| | | <a name=\"733\">733</a>|Custom Entity Identifier already in use.| | | <a name=\"735\">735</a>|Calculation Failed.| | | <a name=\"736\">736</a>|An expected key on HttpResponse is missing.| | | <a name=\"737\">737</a>|A required fee detail is missing.| | | <a name=\"738\">738</a>|Zero rows were returned from Luminesce| | | <a name=\"739\">739</a>|Provided Weekend Mask was invalid| | | <a name=\"742\">742</a>|Custom Entity fields do not match the definition| | | <a name=\"746\">746</a>|The provided sequence is not valid.| | | <a name=\"751\">751</a>|The type of the Custom Entity is different than the type provided in the definition.| | | <a name=\"752\">752</a>|Luminesce process returned an error.| | | <a name=\"753\">753</a>|File name or content incompatible with operation.| | | <a name=\"755\">755</a>|Schema of response from Drive is not as expected.| | | <a name=\"757\">757</a>|Schema of response from Luminesce is not as expected.| | | <a name=\"758\">758</a>|Luminesce timed out.| |
59
59
  *
60
- * The version of the OpenAPI document: 0.11.3838
60
+ * The version of the OpenAPI document: 0.11.3863
61
61
  * Contact: info@finbourne.com
62
62
  *
63
63
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -150,6 +150,102 @@ var PortfoliosApi = /** @class */ (function () {
150
150
  PortfoliosApi.prototype.addInterceptor = function (interceptor) {
151
151
  this.interceptors.push(interceptor);
152
152
  };
153
+ /**
154
+ * Delete the Portfolio Access Metadata Rule that exactly matches the provided identifier parts
155
+ * @summary [EARLY ACCESS] DeleteKeyFromPortfolioAccessMetadata: Delete a Portfolio Access Metadata Rule
156
+ * @param scope The scope of the Quote Access Metadata Rule to retrieve.
157
+ * @param code Portfolio code
158
+ * @param metadataKey The metadataKey identifying the access metadata entry to delete
159
+ * @param effectiveAt The effective date to delete at, if this is not supplied, it will delete all data found
160
+ */
161
+ PortfoliosApi.prototype.deleteKeyFromPortfolioAccessMetadata = function (scope, code, metadataKey, effectiveAt, options) {
162
+ if (options === void 0) { options = { headers: {} }; }
163
+ return __awaiter(this, void 0, void 0, function () {
164
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_1, _i, _a, interceptor;
165
+ var _this = this;
166
+ return __generator(this, function (_b) {
167
+ localVarPath = this.basePath + '/api/portfolios/{scope}/{code}/metadata/{metadataKey}'
168
+ .replace('{' + 'scope' + '}', encodeURIComponent(String(scope)))
169
+ .replace('{' + 'code' + '}', encodeURIComponent(String(code)))
170
+ .replace('{' + 'metadataKey' + '}', encodeURIComponent(String(metadataKey)));
171
+ localVarQueryParameters = {};
172
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
173
+ produces = ['text/plain', 'application/json', 'text/json'];
174
+ // give precedence to 'application/json'
175
+ if (produces.indexOf('application/json') >= 0) {
176
+ localVarHeaderParams.Accept = 'application/json';
177
+ }
178
+ else {
179
+ localVarHeaderParams.Accept = produces.join(',');
180
+ }
181
+ localVarFormParams = {};
182
+ // verify required parameter 'scope' is not null or undefined
183
+ if (scope === null || scope === undefined) {
184
+ throw new Error('Required parameter scope was null or undefined when calling deleteKeyFromPortfolioAccessMetadata.');
185
+ }
186
+ // verify required parameter 'code' is not null or undefined
187
+ if (code === null || code === undefined) {
188
+ throw new Error('Required parameter code was null or undefined when calling deleteKeyFromPortfolioAccessMetadata.');
189
+ }
190
+ // verify required parameter 'metadataKey' is not null or undefined
191
+ if (metadataKey === null || metadataKey === undefined) {
192
+ throw new Error('Required parameter metadataKey was null or undefined when calling deleteKeyFromPortfolioAccessMetadata.');
193
+ }
194
+ if (effectiveAt !== undefined) {
195
+ localVarQueryParameters['effectiveAt'] = models_1.ObjectSerializer.serialize(effectiveAt, "string");
196
+ }
197
+ Object.assign(localVarHeaderParams, options.headers);
198
+ localVarUseFormData = false;
199
+ localVarRequestOptions = {
200
+ method: 'DELETE',
201
+ qs: localVarQueryParameters,
202
+ headers: localVarHeaderParams,
203
+ uri: localVarPath,
204
+ useQuerystring: this._useQuerystring,
205
+ json: true,
206
+ };
207
+ authenticationPromise = Promise.resolve();
208
+ if (this.authentications.oauth2.accessToken) {
209
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.oauth2.applyToRequest(localVarRequestOptions); });
210
+ }
211
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
212
+ interceptorPromise = authenticationPromise;
213
+ _loop_1 = function (interceptor) {
214
+ interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
215
+ };
216
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
217
+ interceptor = _a[_i];
218
+ _loop_1(interceptor);
219
+ }
220
+ return [2 /*return*/, interceptorPromise.then(function () {
221
+ if (Object.keys(localVarFormParams).length) {
222
+ if (localVarUseFormData) {
223
+ localVarRequestOptions.formData = localVarFormParams;
224
+ }
225
+ else {
226
+ localVarRequestOptions.form = localVarFormParams;
227
+ }
228
+ }
229
+ return new Promise(function (resolve, reject) {
230
+ request_1.default(localVarRequestOptions, function (error, response, body) {
231
+ if (error) {
232
+ reject(error);
233
+ }
234
+ else {
235
+ body = models_1.ObjectSerializer.deserialize(body, "DeletedEntityResponse");
236
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
237
+ resolve({ response: response, body: body });
238
+ }
239
+ else {
240
+ reject(new HttpError(response, body, response.statusCode));
241
+ }
242
+ }
243
+ });
244
+ });
245
+ })];
246
+ });
247
+ });
248
+ };
153
249
  /**
154
250
  * Delete a particular portfolio. The deletion will take effect from the portfolio\'s creation datetime. This means that the portfolio will no longer exist at any effective datetime, as per the asAt datetime of deletion.
155
251
  * @summary DeletePortfolio: Delete portfolio
@@ -159,7 +255,7 @@ var PortfoliosApi = /** @class */ (function () {
159
255
  PortfoliosApi.prototype.deletePortfolio = function (scope, code, options) {
160
256
  if (options === void 0) { options = { headers: {} }; }
161
257
  return __awaiter(this, void 0, void 0, function () {
162
- var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_1, _i, _a, interceptor;
258
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_2, _i, _a, interceptor;
163
259
  var _this = this;
164
260
  return __generator(this, function (_b) {
165
261
  localVarPath = this.basePath + '/api/portfolios/{scope}/{code}'
@@ -200,12 +296,12 @@ var PortfoliosApi = /** @class */ (function () {
200
296
  }
201
297
  authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
202
298
  interceptorPromise = authenticationPromise;
203
- _loop_1 = function (interceptor) {
299
+ _loop_2 = function (interceptor) {
204
300
  interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
205
301
  };
206
302
  for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
207
303
  interceptor = _a[_i];
208
- _loop_1(interceptor);
304
+ _loop_2(interceptor);
209
305
  }
210
306
  return [2 /*return*/, interceptorPromise.then(function () {
211
307
  if (Object.keys(localVarFormParams).length) {
@@ -247,7 +343,7 @@ var PortfoliosApi = /** @class */ (function () {
247
343
  PortfoliosApi.prototype.deletePortfolioProperties = function (scope, code, propertyKeys, effectiveAt, options) {
248
344
  if (options === void 0) { options = { headers: {} }; }
249
345
  return __awaiter(this, void 0, void 0, function () {
250
- var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_2, _i, _a, interceptor;
346
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_3, _i, _a, interceptor;
251
347
  var _this = this;
252
348
  return __generator(this, function (_b) {
253
349
  localVarPath = this.basePath + '/api/portfolios/{scope}/{code}/properties'
@@ -298,12 +394,12 @@ var PortfoliosApi = /** @class */ (function () {
298
394
  }
299
395
  authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
300
396
  interceptorPromise = authenticationPromise;
301
- _loop_2 = function (interceptor) {
397
+ _loop_3 = function (interceptor) {
302
398
  interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
303
399
  };
304
400
  for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
305
401
  interceptor = _a[_i];
306
- _loop_2(interceptor);
402
+ _loop_3(interceptor);
307
403
  }
308
404
  return [2 /*return*/, interceptorPromise.then(function () {
309
405
  if (Object.keys(localVarFormParams).length) {
@@ -348,7 +444,7 @@ var PortfoliosApi = /** @class */ (function () {
348
444
  PortfoliosApi.prototype.deletePortfolioReturns = function (scope, code, returnScope, returnCode, fromEffectiveAt, toEffectiveAt, period, options) {
349
445
  if (options === void 0) { options = { headers: {} }; }
350
446
  return __awaiter(this, void 0, void 0, function () {
351
- var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_3, _i, _a, interceptor;
447
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_4, _i, _a, interceptor;
352
448
  var _this = this;
353
449
  return __generator(this, function (_b) {
354
450
  localVarPath = this.basePath + '/api/portfolios/{scope}/{code}/returns/{returnScope}/{returnCode}/$delete'
@@ -416,12 +512,12 @@ var PortfoliosApi = /** @class */ (function () {
416
512
  }
417
513
  authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
418
514
  interceptorPromise = authenticationPromise;
419
- _loop_3 = function (interceptor) {
515
+ _loop_4 = function (interceptor) {
420
516
  interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
421
517
  };
422
518
  for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
423
519
  interceptor = _a[_i];
424
- _loop_3(interceptor);
520
+ _loop_4(interceptor);
425
521
  }
426
522
  return [2 /*return*/, interceptorPromise.then(function () {
427
523
  if (Object.keys(localVarFormParams).length) {
@@ -464,7 +560,7 @@ var PortfoliosApi = /** @class */ (function () {
464
560
  PortfoliosApi.prototype.getPortfolio = function (scope, code, effectiveAt, asAt, propertyKeys, options) {
465
561
  if (options === void 0) { options = { headers: {} }; }
466
562
  return __awaiter(this, void 0, void 0, function () {
467
- var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_4, _i, _a, interceptor;
563
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_5, _i, _a, interceptor;
468
564
  var _this = this;
469
565
  return __generator(this, function (_b) {
470
566
  localVarPath = this.basePath + '/api/portfolios/{scope}/{code}'
@@ -514,12 +610,12 @@ var PortfoliosApi = /** @class */ (function () {
514
610
  }
515
611
  authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
516
612
  interceptorPromise = authenticationPromise;
517
- _loop_4 = function (interceptor) {
613
+ _loop_5 = function (interceptor) {
518
614
  interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
519
615
  };
520
616
  for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
521
617
  interceptor = _a[_i];
522
- _loop_4(interceptor);
618
+ _loop_5(interceptor);
523
619
  }
524
620
  return [2 /*return*/, interceptorPromise.then(function () {
525
621
  if (Object.keys(localVarFormParams).length) {
@@ -565,7 +661,7 @@ var PortfoliosApi = /** @class */ (function () {
565
661
  PortfoliosApi.prototype.getPortfolioAggregatedReturns = function (scope, code, returnScope, returnCode, aggregatedReturnsRequest, fromEffectiveAt, toEffectiveAt, asAt, options) {
566
662
  if (options === void 0) { options = { headers: {} }; }
567
663
  return __awaiter(this, void 0, void 0, function () {
568
- var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_5, _i, _a, interceptor;
664
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_6, _i, _a, interceptor;
569
665
  var _this = this;
570
666
  return __generator(this, function (_b) {
571
667
  localVarPath = this.basePath + '/api/portfolios/{scope}/{code}/returns/{returnScope}/{returnCode}/$aggregated'
@@ -630,12 +726,12 @@ var PortfoliosApi = /** @class */ (function () {
630
726
  }
631
727
  authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
632
728
  interceptorPromise = authenticationPromise;
633
- _loop_5 = function (interceptor) {
729
+ _loop_6 = function (interceptor) {
634
730
  interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
635
731
  };
636
732
  for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
637
733
  interceptor = _a[_i];
638
- _loop_5(interceptor);
734
+ _loop_6(interceptor);
639
735
  }
640
736
  return [2 /*return*/, interceptorPromise.then(function () {
641
737
  if (Object.keys(localVarFormParams).length) {
@@ -680,7 +776,7 @@ var PortfoliosApi = /** @class */ (function () {
680
776
  PortfoliosApi.prototype.getPortfolioCommands = function (scope, code, fromAsAt, toAsAt, filter, page, limit, options) {
681
777
  if (options === void 0) { options = { headers: {} }; }
682
778
  return __awaiter(this, void 0, void 0, function () {
683
- var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_6, _i, _a, interceptor;
779
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_7, _i, _a, interceptor;
684
780
  var _this = this;
685
781
  return __generator(this, function (_b) {
686
782
  localVarPath = this.basePath + '/api/portfolios/{scope}/{code}/commands'
@@ -736,12 +832,12 @@ var PortfoliosApi = /** @class */ (function () {
736
832
  }
737
833
  authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
738
834
  interceptorPromise = authenticationPromise;
739
- _loop_6 = function (interceptor) {
835
+ _loop_7 = function (interceptor) {
740
836
  interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
741
837
  };
742
838
  for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
743
839
  interceptor = _a[_i];
744
- _loop_6(interceptor);
840
+ _loop_7(interceptor);
745
841
  }
746
842
  return [2 /*return*/, interceptorPromise.then(function () {
747
843
  if (Object.keys(localVarFormParams).length) {
@@ -772,6 +868,100 @@ var PortfoliosApi = /** @class */ (function () {
772
868
  });
773
869
  });
774
870
  };
871
+ /**
872
+ * Pass the scope and portfolio code parameters to retrieve the AccessMetadata associated with a portfolio
873
+ * @summary [EARLY ACCESS] GetPortfolioMetadata: Get access metadata rules for a portfolio
874
+ * @param scope The scope of the Portfolio Access Metadata Rule to retrieve.
875
+ * @param code Portfolio code
876
+ * @param effectiveAt The effectiveAt datetime at which to retrieve the access metadata rule.
877
+ * @param asAt The asAt datetime at which to retrieve the portfolio access metadata.
878
+ */
879
+ PortfoliosApi.prototype.getPortfolioMetadata = function (scope, code, effectiveAt, asAt, options) {
880
+ if (options === void 0) { options = { headers: {} }; }
881
+ return __awaiter(this, void 0, void 0, function () {
882
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_8, _i, _a, interceptor;
883
+ var _this = this;
884
+ return __generator(this, function (_b) {
885
+ localVarPath = this.basePath + '/api/portfolios/{scope}/{code}/metadata'
886
+ .replace('{' + 'scope' + '}', encodeURIComponent(String(scope)))
887
+ .replace('{' + 'code' + '}', encodeURIComponent(String(code)));
888
+ localVarQueryParameters = {};
889
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
890
+ produces = ['text/plain', 'application/json', 'text/json'];
891
+ // give precedence to 'application/json'
892
+ if (produces.indexOf('application/json') >= 0) {
893
+ localVarHeaderParams.Accept = 'application/json';
894
+ }
895
+ else {
896
+ localVarHeaderParams.Accept = produces.join(',');
897
+ }
898
+ localVarFormParams = {};
899
+ // verify required parameter 'scope' is not null or undefined
900
+ if (scope === null || scope === undefined) {
901
+ throw new Error('Required parameter scope was null or undefined when calling getPortfolioMetadata.');
902
+ }
903
+ // verify required parameter 'code' is not null or undefined
904
+ if (code === null || code === undefined) {
905
+ throw new Error('Required parameter code was null or undefined when calling getPortfolioMetadata.');
906
+ }
907
+ if (effectiveAt !== undefined) {
908
+ localVarQueryParameters['effectiveAt'] = models_1.ObjectSerializer.serialize(effectiveAt, "string");
909
+ }
910
+ if (asAt !== undefined) {
911
+ localVarQueryParameters['asAt'] = models_1.ObjectSerializer.serialize(asAt, "Date");
912
+ }
913
+ Object.assign(localVarHeaderParams, options.headers);
914
+ localVarUseFormData = false;
915
+ localVarRequestOptions = {
916
+ method: 'GET',
917
+ qs: localVarQueryParameters,
918
+ headers: localVarHeaderParams,
919
+ uri: localVarPath,
920
+ useQuerystring: this._useQuerystring,
921
+ json: true,
922
+ };
923
+ authenticationPromise = Promise.resolve();
924
+ if (this.authentications.oauth2.accessToken) {
925
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.oauth2.applyToRequest(localVarRequestOptions); });
926
+ }
927
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
928
+ interceptorPromise = authenticationPromise;
929
+ _loop_8 = function (interceptor) {
930
+ interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
931
+ };
932
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
933
+ interceptor = _a[_i];
934
+ _loop_8(interceptor);
935
+ }
936
+ return [2 /*return*/, interceptorPromise.then(function () {
937
+ if (Object.keys(localVarFormParams).length) {
938
+ if (localVarUseFormData) {
939
+ localVarRequestOptions.formData = localVarFormParams;
940
+ }
941
+ else {
942
+ localVarRequestOptions.form = localVarFormParams;
943
+ }
944
+ }
945
+ return new Promise(function (resolve, reject) {
946
+ request_1.default(localVarRequestOptions, function (error, response, body) {
947
+ if (error) {
948
+ reject(error);
949
+ }
950
+ else {
951
+ body = models_1.ObjectSerializer.deserialize(body, "{ [key: string]: Array<AccessMetadataValue>; }");
952
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
953
+ resolve({ response: response, body: body });
954
+ }
955
+ else {
956
+ reject(new HttpError(response, body, response.statusCode));
957
+ }
958
+ }
959
+ });
960
+ });
961
+ })];
962
+ });
963
+ });
964
+ };
775
965
  /**
776
966
  * List all the properties of a particular portfolio.
777
967
  * @summary GetPortfolioProperties: Get portfolio properties
@@ -783,7 +973,7 @@ var PortfoliosApi = /** @class */ (function () {
783
973
  PortfoliosApi.prototype.getPortfolioProperties = function (scope, code, effectiveAt, asAt, options) {
784
974
  if (options === void 0) { options = { headers: {} }; }
785
975
  return __awaiter(this, void 0, void 0, function () {
786
- var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_7, _i, _a, interceptor;
976
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_9, _i, _a, interceptor;
787
977
  var _this = this;
788
978
  return __generator(this, function (_b) {
789
979
  localVarPath = this.basePath + '/api/portfolios/{scope}/{code}/properties'
@@ -830,12 +1020,12 @@ var PortfoliosApi = /** @class */ (function () {
830
1020
  }
831
1021
  authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
832
1022
  interceptorPromise = authenticationPromise;
833
- _loop_7 = function (interceptor) {
1023
+ _loop_9 = function (interceptor) {
834
1024
  interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
835
1025
  };
836
1026
  for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
837
1027
  interceptor = _a[_i];
838
- _loop_7(interceptor);
1028
+ _loop_9(interceptor);
839
1029
  }
840
1030
  return [2 /*return*/, interceptorPromise.then(function () {
841
1031
  if (Object.keys(localVarFormParams).length) {
@@ -881,7 +1071,7 @@ var PortfoliosApi = /** @class */ (function () {
881
1071
  PortfoliosApi.prototype.getPortfolioReturns = function (scope, code, returnScope, returnCode, fromEffectiveAt, toEffectiveAt, period, asAt, options) {
882
1072
  if (options === void 0) { options = { headers: {} }; }
883
1073
  return __awaiter(this, void 0, void 0, function () {
884
- var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_8, _i, _a, interceptor;
1074
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_10, _i, _a, interceptor;
885
1075
  var _this = this;
886
1076
  return __generator(this, function (_b) {
887
1077
  localVarPath = this.basePath + '/api/portfolios/{scope}/{code}/returns/{returnScope}/{returnCode}'
@@ -944,12 +1134,12 @@ var PortfoliosApi = /** @class */ (function () {
944
1134
  }
945
1135
  authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
946
1136
  interceptorPromise = authenticationPromise;
947
- _loop_8 = function (interceptor) {
1137
+ _loop_10 = function (interceptor) {
948
1138
  interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
949
1139
  };
950
1140
  for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
951
1141
  interceptor = _a[_i];
952
- _loop_8(interceptor);
1142
+ _loop_10(interceptor);
953
1143
  }
954
1144
  return [2 /*return*/, interceptorPromise.then(function () {
955
1145
  if (Object.keys(localVarFormParams).length) {
@@ -980,6 +1170,106 @@ var PortfoliosApi = /** @class */ (function () {
980
1170
  });
981
1171
  });
982
1172
  };
1173
+ /**
1174
+ * Get a specific portfolio access metadata rule by specifying the corresponding identifier parts No matching will be performed through this endpoint. To retrieve a rule, it is necessary to specify, exactly, the identifier of the rule
1175
+ * @summary [EARLY ACCESS] GetPortfoliosAccessMetadataByKey: Get an entry identified by a metadataKey in the access metadata object
1176
+ * @param scope The scope of the Portfolio Access Metadata Rule to retrieve.
1177
+ * @param code The code of the portfolio
1178
+ * @param metadataKey Key of the metadata to retrieve
1179
+ * @param effectiveAt The effective date of the rule
1180
+ * @param asAt The asAt datetime at which to retrieve the portfolio access metadata.
1181
+ */
1182
+ PortfoliosApi.prototype.getPortfoliosAccessMetadataByKey = function (scope, code, metadataKey, effectiveAt, asAt, options) {
1183
+ if (options === void 0) { options = { headers: {} }; }
1184
+ return __awaiter(this, void 0, void 0, function () {
1185
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_11, _i, _a, interceptor;
1186
+ var _this = this;
1187
+ return __generator(this, function (_b) {
1188
+ localVarPath = this.basePath + '/api/portfolios/{scope}/{code}/metadata/{metadataKey}'
1189
+ .replace('{' + 'scope' + '}', encodeURIComponent(String(scope)))
1190
+ .replace('{' + 'code' + '}', encodeURIComponent(String(code)))
1191
+ .replace('{' + 'metadataKey' + '}', encodeURIComponent(String(metadataKey)));
1192
+ localVarQueryParameters = {};
1193
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1194
+ produces = ['text/plain', 'application/json', 'text/json'];
1195
+ // give precedence to 'application/json'
1196
+ if (produces.indexOf('application/json') >= 0) {
1197
+ localVarHeaderParams.Accept = 'application/json';
1198
+ }
1199
+ else {
1200
+ localVarHeaderParams.Accept = produces.join(',');
1201
+ }
1202
+ localVarFormParams = {};
1203
+ // verify required parameter 'scope' is not null or undefined
1204
+ if (scope === null || scope === undefined) {
1205
+ throw new Error('Required parameter scope was null or undefined when calling getPortfoliosAccessMetadataByKey.');
1206
+ }
1207
+ // verify required parameter 'code' is not null or undefined
1208
+ if (code === null || code === undefined) {
1209
+ throw new Error('Required parameter code was null or undefined when calling getPortfoliosAccessMetadataByKey.');
1210
+ }
1211
+ // verify required parameter 'metadataKey' is not null or undefined
1212
+ if (metadataKey === null || metadataKey === undefined) {
1213
+ throw new Error('Required parameter metadataKey was null or undefined when calling getPortfoliosAccessMetadataByKey.');
1214
+ }
1215
+ if (effectiveAt !== undefined) {
1216
+ localVarQueryParameters['effectiveAt'] = models_1.ObjectSerializer.serialize(effectiveAt, "string");
1217
+ }
1218
+ if (asAt !== undefined) {
1219
+ localVarQueryParameters['asAt'] = models_1.ObjectSerializer.serialize(asAt, "Date");
1220
+ }
1221
+ Object.assign(localVarHeaderParams, options.headers);
1222
+ localVarUseFormData = false;
1223
+ localVarRequestOptions = {
1224
+ method: 'GET',
1225
+ qs: localVarQueryParameters,
1226
+ headers: localVarHeaderParams,
1227
+ uri: localVarPath,
1228
+ useQuerystring: this._useQuerystring,
1229
+ json: true,
1230
+ };
1231
+ authenticationPromise = Promise.resolve();
1232
+ if (this.authentications.oauth2.accessToken) {
1233
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.oauth2.applyToRequest(localVarRequestOptions); });
1234
+ }
1235
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
1236
+ interceptorPromise = authenticationPromise;
1237
+ _loop_11 = function (interceptor) {
1238
+ interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
1239
+ };
1240
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1241
+ interceptor = _a[_i];
1242
+ _loop_11(interceptor);
1243
+ }
1244
+ return [2 /*return*/, interceptorPromise.then(function () {
1245
+ if (Object.keys(localVarFormParams).length) {
1246
+ if (localVarUseFormData) {
1247
+ localVarRequestOptions.formData = localVarFormParams;
1248
+ }
1249
+ else {
1250
+ localVarRequestOptions.form = localVarFormParams;
1251
+ }
1252
+ }
1253
+ return new Promise(function (resolve, reject) {
1254
+ request_1.default(localVarRequestOptions, function (error, response, body) {
1255
+ if (error) {
1256
+ reject(error);
1257
+ }
1258
+ else {
1259
+ body = models_1.ObjectSerializer.deserialize(body, "Array<AccessMetadataValue>");
1260
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1261
+ resolve({ response: response, body: body });
1262
+ }
1263
+ else {
1264
+ reject(new HttpError(response, body, response.statusCode));
1265
+ }
1266
+ }
1267
+ });
1268
+ });
1269
+ })];
1270
+ });
1271
+ });
1272
+ };
983
1273
  /**
984
1274
  * List all the portfolios matching particular criteria.
985
1275
  * @summary ListPortfolios: List portfolios
@@ -995,7 +1285,7 @@ var PortfoliosApi = /** @class */ (function () {
995
1285
  PortfoliosApi.prototype.listPortfolios = function (effectiveAt, asAt, page, start, limit, filter, query, propertyKeys, options) {
996
1286
  if (options === void 0) { options = { headers: {} }; }
997
1287
  return __awaiter(this, void 0, void 0, function () {
998
- var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_9, _i, _a, interceptor;
1288
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_12, _i, _a, interceptor;
999
1289
  var _this = this;
1000
1290
  return __generator(this, function (_b) {
1001
1291
  localVarPath = this.basePath + '/api/portfolios';
@@ -1050,12 +1340,12 @@ var PortfoliosApi = /** @class */ (function () {
1050
1340
  }
1051
1341
  authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
1052
1342
  interceptorPromise = authenticationPromise;
1053
- _loop_9 = function (interceptor) {
1343
+ _loop_12 = function (interceptor) {
1054
1344
  interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
1055
1345
  };
1056
1346
  for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1057
1347
  interceptor = _a[_i];
1058
- _loop_9(interceptor);
1348
+ _loop_12(interceptor);
1059
1349
  }
1060
1350
  return [2 /*return*/, interceptorPromise.then(function () {
1061
1351
  if (Object.keys(localVarFormParams).length) {
@@ -1101,7 +1391,7 @@ var PortfoliosApi = /** @class */ (function () {
1101
1391
  PortfoliosApi.prototype.listPortfoliosForScope = function (scope, effectiveAt, asAt, page, start, limit, filter, propertyKeys, options) {
1102
1392
  if (options === void 0) { options = { headers: {} }; }
1103
1393
  return __awaiter(this, void 0, void 0, function () {
1104
- var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_10, _i, _a, interceptor;
1394
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_13, _i, _a, interceptor;
1105
1395
  var _this = this;
1106
1396
  return __generator(this, function (_b) {
1107
1397
  localVarPath = this.basePath + '/api/portfolios/{scope}'
@@ -1158,12 +1448,12 @@ var PortfoliosApi = /** @class */ (function () {
1158
1448
  }
1159
1449
  authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
1160
1450
  interceptorPromise = authenticationPromise;
1161
- _loop_10 = function (interceptor) {
1451
+ _loop_13 = function (interceptor) {
1162
1452
  interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
1163
1453
  };
1164
1454
  for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1165
1455
  interceptor = _a[_i];
1166
- _loop_10(interceptor);
1456
+ _loop_13(interceptor);
1167
1457
  }
1168
1458
  return [2 /*return*/, interceptorPromise.then(function () {
1169
1459
  if (Object.keys(localVarFormParams).length) {
@@ -1205,7 +1495,7 @@ var PortfoliosApi = /** @class */ (function () {
1205
1495
  PortfoliosApi.prototype.updatePortfolio = function (scope, code, updatePortfolioRequest, effectiveAt, options) {
1206
1496
  if (options === void 0) { options = { headers: {} }; }
1207
1497
  return __awaiter(this, void 0, void 0, function () {
1208
- var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_11, _i, _a, interceptor;
1498
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_14, _i, _a, interceptor;
1209
1499
  var _this = this;
1210
1500
  return __generator(this, function (_b) {
1211
1501
  localVarPath = this.basePath + '/api/portfolios/{scope}/{code}'
@@ -1254,12 +1544,12 @@ var PortfoliosApi = /** @class */ (function () {
1254
1544
  }
1255
1545
  authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
1256
1546
  interceptorPromise = authenticationPromise;
1257
- _loop_11 = function (interceptor) {
1547
+ _loop_14 = function (interceptor) {
1258
1548
  interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
1259
1549
  };
1260
1550
  for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1261
1551
  interceptor = _a[_i];
1262
- _loop_11(interceptor);
1552
+ _loop_14(interceptor);
1263
1553
  }
1264
1554
  return [2 /*return*/, interceptorPromise.then(function () {
1265
1555
  if (Object.keys(localVarFormParams).length) {
@@ -1290,6 +1580,108 @@ var PortfoliosApi = /** @class */ (function () {
1290
1580
  });
1291
1581
  });
1292
1582
  };
1583
+ /**
1584
+ * Update or insert one Portfolio Access Metadata Rule in a single scope. An item will be updated if it already exists and inserted if it does not. The response will return the successfully updated or inserted Portfolio Access Metadata Rule or failure message if unsuccessful It is important to always check to verify success (or failure). Multiple rules for a metadataKey can exists with different effective at dates, when resources are accessed the rule that is active for the current time will be fetched
1585
+ * @summary [EARLY ACCESS] UpsertPortfolioAccessMetadata: Upsert a Portfolio Access Metadata Rule associated with specific metadataKey. This creates or updates the data in LUSID.
1586
+ * @param scope The scope to use when updating or inserting the Portfolio Access Metadata Rule.
1587
+ * @param code Portfolio code
1588
+ * @param metadataKey Key of the access metadata to upsert
1589
+ * @param upsertPortfolioAccessMetadataRequest The Portfolio Access Metadata Rule to update or insert
1590
+ * @param effectiveAt The date this rule will effective from
1591
+ */
1592
+ PortfoliosApi.prototype.upsertPortfolioAccessMetadata = function (scope, code, metadataKey, upsertPortfolioAccessMetadataRequest, effectiveAt, options) {
1593
+ if (options === void 0) { options = { headers: {} }; }
1594
+ return __awaiter(this, void 0, void 0, function () {
1595
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_15, _i, _a, interceptor;
1596
+ var _this = this;
1597
+ return __generator(this, function (_b) {
1598
+ localVarPath = this.basePath + '/api/portfolios/{scope}/{code}/metadata/{metadataKey}'
1599
+ .replace('{' + 'scope' + '}', encodeURIComponent(String(scope)))
1600
+ .replace('{' + 'code' + '}', encodeURIComponent(String(code)))
1601
+ .replace('{' + 'metadataKey' + '}', encodeURIComponent(String(metadataKey)));
1602
+ localVarQueryParameters = {};
1603
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1604
+ produces = ['text/plain', 'application/json', 'text/json'];
1605
+ // give precedence to 'application/json'
1606
+ if (produces.indexOf('application/json') >= 0) {
1607
+ localVarHeaderParams.Accept = 'application/json';
1608
+ }
1609
+ else {
1610
+ localVarHeaderParams.Accept = produces.join(',');
1611
+ }
1612
+ localVarFormParams = {};
1613
+ // verify required parameter 'scope' is not null or undefined
1614
+ if (scope === null || scope === undefined) {
1615
+ throw new Error('Required parameter scope was null or undefined when calling upsertPortfolioAccessMetadata.');
1616
+ }
1617
+ // verify required parameter 'code' is not null or undefined
1618
+ if (code === null || code === undefined) {
1619
+ throw new Error('Required parameter code was null or undefined when calling upsertPortfolioAccessMetadata.');
1620
+ }
1621
+ // verify required parameter 'metadataKey' is not null or undefined
1622
+ if (metadataKey === null || metadataKey === undefined) {
1623
+ throw new Error('Required parameter metadataKey was null or undefined when calling upsertPortfolioAccessMetadata.');
1624
+ }
1625
+ // verify required parameter 'upsertPortfolioAccessMetadataRequest' is not null or undefined
1626
+ if (upsertPortfolioAccessMetadataRequest === null || upsertPortfolioAccessMetadataRequest === undefined) {
1627
+ throw new Error('Required parameter upsertPortfolioAccessMetadataRequest was null or undefined when calling upsertPortfolioAccessMetadata.');
1628
+ }
1629
+ if (effectiveAt !== undefined) {
1630
+ localVarQueryParameters['effectiveAt'] = models_1.ObjectSerializer.serialize(effectiveAt, "string");
1631
+ }
1632
+ Object.assign(localVarHeaderParams, options.headers);
1633
+ localVarUseFormData = false;
1634
+ localVarRequestOptions = {
1635
+ method: 'PUT',
1636
+ qs: localVarQueryParameters,
1637
+ headers: localVarHeaderParams,
1638
+ uri: localVarPath,
1639
+ useQuerystring: this._useQuerystring,
1640
+ json: true,
1641
+ body: models_1.ObjectSerializer.serialize(upsertPortfolioAccessMetadataRequest, "UpsertPortfolioAccessMetadataRequest")
1642
+ };
1643
+ authenticationPromise = Promise.resolve();
1644
+ if (this.authentications.oauth2.accessToken) {
1645
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.oauth2.applyToRequest(localVarRequestOptions); });
1646
+ }
1647
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
1648
+ interceptorPromise = authenticationPromise;
1649
+ _loop_15 = function (interceptor) {
1650
+ interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
1651
+ };
1652
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1653
+ interceptor = _a[_i];
1654
+ _loop_15(interceptor);
1655
+ }
1656
+ return [2 /*return*/, interceptorPromise.then(function () {
1657
+ if (Object.keys(localVarFormParams).length) {
1658
+ if (localVarUseFormData) {
1659
+ localVarRequestOptions.formData = localVarFormParams;
1660
+ }
1661
+ else {
1662
+ localVarRequestOptions.form = localVarFormParams;
1663
+ }
1664
+ }
1665
+ return new Promise(function (resolve, reject) {
1666
+ request_1.default(localVarRequestOptions, function (error, response, body) {
1667
+ if (error) {
1668
+ reject(error);
1669
+ }
1670
+ else {
1671
+ body = models_1.ObjectSerializer.deserialize(body, "ResourceListOfAccessMetadataValueOf");
1672
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1673
+ resolve({ response: response, body: body });
1674
+ }
1675
+ else {
1676
+ reject(new HttpError(response, body, response.statusCode));
1677
+ }
1678
+ }
1679
+ });
1680
+ });
1681
+ })];
1682
+ });
1683
+ });
1684
+ };
1293
1685
  /**
1294
1686
  * Create or update one or more properties for a particular portfolio. A property is updated if it already exists and created if it does not. All properties must be from the \'Portfolio\' domain. Properties have an <i>effectiveFrom</i> datetime from which the property is valid, and an <i>effectiveUntil</i> datetime until which it is valid. Not supplying an <i>effectiveUntil</i> datetime results in the property being valid indefinitely, or until the next <i>effectiveFrom</i> datetime of the property.
1295
1687
  * @summary UpsertPortfolioProperties: Upsert portfolio properties
@@ -1300,7 +1692,7 @@ var PortfoliosApi = /** @class */ (function () {
1300
1692
  PortfoliosApi.prototype.upsertPortfolioProperties = function (scope, code, requestBody, options) {
1301
1693
  if (options === void 0) { options = { headers: {} }; }
1302
1694
  return __awaiter(this, void 0, void 0, function () {
1303
- var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_12, _i, _a, interceptor;
1695
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_16, _i, _a, interceptor;
1304
1696
  var _this = this;
1305
1697
  return __generator(this, function (_b) {
1306
1698
  localVarPath = this.basePath + '/api/portfolios/{scope}/{code}/properties'
@@ -1346,12 +1738,12 @@ var PortfoliosApi = /** @class */ (function () {
1346
1738
  }
1347
1739
  authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
1348
1740
  interceptorPromise = authenticationPromise;
1349
- _loop_12 = function (interceptor) {
1741
+ _loop_16 = function (interceptor) {
1350
1742
  interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
1351
1743
  };
1352
1744
  for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1353
1745
  interceptor = _a[_i];
1354
- _loop_12(interceptor);
1746
+ _loop_16(interceptor);
1355
1747
  }
1356
1748
  return [2 /*return*/, interceptorPromise.then(function () {
1357
1749
  if (Object.keys(localVarFormParams).length) {
@@ -1394,7 +1786,7 @@ var PortfoliosApi = /** @class */ (function () {
1394
1786
  PortfoliosApi.prototype.upsertPortfolioReturns = function (scope, code, returnScope, returnCode, performanceReturn, options) {
1395
1787
  if (options === void 0) { options = { headers: {} }; }
1396
1788
  return __awaiter(this, void 0, void 0, function () {
1397
- var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_13, _i, _a, interceptor;
1789
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_17, _i, _a, interceptor;
1398
1790
  var _this = this;
1399
1791
  return __generator(this, function (_b) {
1400
1792
  localVarPath = this.basePath + '/api/portfolios/{scope}/{code}/returns/{returnScope}/{returnCode}'
@@ -1450,12 +1842,12 @@ var PortfoliosApi = /** @class */ (function () {
1450
1842
  }
1451
1843
  authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
1452
1844
  interceptorPromise = authenticationPromise;
1453
- _loop_13 = function (interceptor) {
1845
+ _loop_17 = function (interceptor) {
1454
1846
  interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
1455
1847
  };
1456
1848
  for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1457
1849
  interceptor = _a[_i];
1458
- _loop_13(interceptor);
1850
+ _loop_17(interceptor);
1459
1851
  }
1460
1852
  return [2 /*return*/, interceptorPromise.then(function () {
1461
1853
  if (Object.keys(localVarFormParams).length) {