@finbourne/lusid 0.11.4715 → 0.11.4720

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 (575) hide show
  1. package/lib/api/aggregationApi.d.ts +1 -1
  2. package/lib/api/aggregationApi.js +1 -1
  3. package/lib/api/allocationsApi.d.ts +1 -1
  4. package/lib/api/allocationsApi.js +1 -1
  5. package/lib/api/apis.d.ts +3 -1
  6. package/lib/api/apis.js +3 -1
  7. package/lib/api/applicationMetadataApi.d.ts +1 -1
  8. package/lib/api/applicationMetadataApi.js +1 -1
  9. package/lib/api/calendarsApi.d.ts +232 -0
  10. package/lib/api/calendarsApi.js +1253 -0
  11. package/lib/api/complexMarketDataApi.d.ts +1 -1
  12. package/lib/api/complexMarketDataApi.js +1 -1
  13. package/lib/api/configurationRecipeApi.d.ts +1 -1
  14. package/lib/api/configurationRecipeApi.js +1 -1
  15. package/lib/api/corporateActionSourcesApi.d.ts +1 -1
  16. package/lib/api/corporateActionSourcesApi.js +1 -1
  17. package/lib/api/cutLabelDefinitionsApi.d.ts +1 -1
  18. package/lib/api/cutLabelDefinitionsApi.js +1 -1
  19. package/lib/api/dataTypesApi.d.ts +1 -1
  20. package/lib/api/dataTypesApi.js +1 -1
  21. package/lib/api/derivedTransactionPortfoliosApi.d.ts +1 -1
  22. package/lib/api/derivedTransactionPortfoliosApi.js +1 -1
  23. package/lib/api/entitiesApi.d.ts +1 -1
  24. package/lib/api/entitiesApi.js +1 -1
  25. package/lib/api/instrumentsApi.d.ts +1 -1
  26. package/lib/api/instrumentsApi.js +1 -1
  27. package/lib/api/legalEntitiesApi.d.ts +1 -1
  28. package/lib/api/legalEntitiesApi.js +1 -1
  29. package/lib/api/ordersApi.d.ts +1 -1
  30. package/lib/api/ordersApi.js +1 -1
  31. package/lib/api/personsApi.d.ts +1 -1
  32. package/lib/api/personsApi.js +1 -1
  33. package/lib/api/portfolioGroupsApi.d.ts +1 -1
  34. package/lib/api/portfolioGroupsApi.js +1 -1
  35. package/lib/api/portfoliosApi.js +1 -1
  36. package/lib/api/propertyDefinitionsApi.d.ts +1 -1
  37. package/lib/api/propertyDefinitionsApi.js +1 -1
  38. package/lib/api/quotesApi.d.ts +1 -1
  39. package/lib/api/quotesApi.js +1 -1
  40. package/lib/api/reconciliationsApi.d.ts +1 -1
  41. package/lib/api/reconciliationsApi.js +1 -1
  42. package/lib/api/referencePortfolioApi.d.ts +1 -1
  43. package/lib/api/referencePortfolioApi.js +1 -1
  44. package/lib/api/relationshipDefinitionsApi.d.ts +1 -1
  45. package/lib/api/relationshipDefinitionsApi.js +1 -1
  46. package/lib/api/relationshipsApi.d.ts +1 -1
  47. package/lib/api/relationshipsApi.js +1 -1
  48. package/lib/api/scopesApi.d.ts +1 -1
  49. package/lib/api/scopesApi.js +1 -1
  50. package/lib/api/searchApi.d.ts +1 -1
  51. package/lib/api/searchApi.js +1 -1
  52. package/lib/api/sequencesApi.d.ts +1 -1
  53. package/lib/api/sequencesApi.js +1 -1
  54. package/lib/api/systemConfigurationApi.d.ts +1 -1
  55. package/lib/api/systemConfigurationApi.js +1 -1
  56. package/lib/api/transactionPortfoliosApi.d.ts +1 -1
  57. package/lib/api/transactionPortfoliosApi.js +1 -1
  58. package/lib/apis.d.ts +2 -0
  59. package/lib/model/a2BBreakdown.d.ts +1 -1
  60. package/lib/model/a2BBreakdown.js +1 -1
  61. package/lib/model/a2BCategory.d.ts +1 -1
  62. package/lib/model/a2BCategory.js +1 -1
  63. package/lib/model/a2BDataRecord.d.ts +1 -1
  64. package/lib/model/a2BDataRecord.js +1 -1
  65. package/lib/model/a2BMovementRecord.d.ts +1 -1
  66. package/lib/model/a2BMovementRecord.js +1 -1
  67. package/lib/model/accessControlledAction.d.ts +1 -1
  68. package/lib/model/accessControlledAction.js +1 -1
  69. package/lib/model/accessControlledResource.d.ts +1 -1
  70. package/lib/model/accessControlledResource.js +1 -1
  71. package/lib/model/accessMetadataValue.d.ts +1 -1
  72. package/lib/model/accessMetadataValue.js +1 -1
  73. package/lib/model/actionId.d.ts +1 -1
  74. package/lib/model/actionId.js +1 -1
  75. package/lib/model/addBusinessDaysToDateRequest.d.ts +28 -0
  76. package/lib/model/addBusinessDaysToDateRequest.js +46 -0
  77. package/lib/model/addBusinessDaysToDateResponse.d.ts +28 -0
  78. package/lib/model/addBusinessDaysToDateResponse.js +34 -0
  79. package/lib/model/adjustHolding.d.ts +1 -1
  80. package/lib/model/adjustHolding.js +1 -1
  81. package/lib/model/adjustHoldingRequest.d.ts +1 -1
  82. package/lib/model/adjustHoldingRequest.js +1 -1
  83. package/lib/model/aggregateSpec.d.ts +1 -1
  84. package/lib/model/aggregateSpec.js +1 -1
  85. package/lib/model/aggregatedReturn.d.ts +1 -1
  86. package/lib/model/aggregatedReturn.js +1 -1
  87. package/lib/model/aggregatedReturnsRequest.d.ts +1 -1
  88. package/lib/model/aggregatedReturnsRequest.js +1 -1
  89. package/lib/model/aggregatedReturnsResponse.d.ts +1 -1
  90. package/lib/model/aggregatedReturnsResponse.js +1 -1
  91. package/lib/model/aggregationContext.d.ts +1 -1
  92. package/lib/model/aggregationContext.js +1 -1
  93. package/lib/model/aggregationMeasureFailureDetail.d.ts +1 -1
  94. package/lib/model/aggregationMeasureFailureDetail.js +1 -1
  95. package/lib/model/aggregationOptions.d.ts +1 -1
  96. package/lib/model/aggregationOptions.js +1 -1
  97. package/lib/model/allocation.d.ts +1 -1
  98. package/lib/model/allocation.js +1 -1
  99. package/lib/model/allocationRequest.d.ts +1 -1
  100. package/lib/model/allocationRequest.js +1 -1
  101. package/lib/model/allocationSetRequest.d.ts +1 -1
  102. package/lib/model/allocationSetRequest.js +1 -1
  103. package/lib/model/annulQuotesResponse.d.ts +1 -1
  104. package/lib/model/annulQuotesResponse.js +1 -1
  105. package/lib/model/annulSingleStructuredDataResponse.d.ts +1 -1
  106. package/lib/model/annulSingleStructuredDataResponse.js +1 -1
  107. package/lib/model/annulStructuredDataResponse.d.ts +1 -1
  108. package/lib/model/annulStructuredDataResponse.js +1 -1
  109. package/lib/model/calendar.d.ts +33 -0
  110. package/lib/model/calendar.js +56 -0
  111. package/lib/model/calendarDate.d.ts +37 -0
  112. package/lib/model/calendarDate.js +76 -0
  113. package/lib/model/cashLadderRecord.d.ts +1 -1
  114. package/lib/model/cashLadderRecord.js +1 -1
  115. package/lib/model/change.d.ts +1 -1
  116. package/lib/model/change.js +1 -1
  117. package/lib/model/completePortfolio.d.ts +1 -1
  118. package/lib/model/completePortfolio.js +1 -1
  119. package/lib/model/completeRelationship.d.ts +1 -1
  120. package/lib/model/completeRelationship.js +1 -1
  121. package/lib/model/complexMarketData.d.ts +1 -1
  122. package/lib/model/complexMarketData.js +1 -1
  123. package/lib/model/complexMarketDataId.d.ts +1 -1
  124. package/lib/model/complexMarketDataId.js +1 -1
  125. package/lib/model/configurationRecipe.d.ts +1 -1
  126. package/lib/model/configurationRecipe.js +1 -1
  127. package/lib/model/configurationRecipeSnippet.d.ts +1 -1
  128. package/lib/model/configurationRecipeSnippet.js +1 -1
  129. package/lib/model/constituentsAdjustmentHeader.d.ts +1 -1
  130. package/lib/model/constituentsAdjustmentHeader.js +1 -1
  131. package/lib/model/corporateAction.d.ts +1 -1
  132. package/lib/model/corporateAction.js +1 -1
  133. package/lib/model/corporateActionSource.d.ts +1 -1
  134. package/lib/model/corporateActionSource.js +1 -1
  135. package/lib/model/corporateActionTransition.d.ts +1 -1
  136. package/lib/model/corporateActionTransition.js +1 -1
  137. package/lib/model/corporateActionTransitionComponent.d.ts +1 -1
  138. package/lib/model/corporateActionTransitionComponent.js +1 -1
  139. package/lib/model/corporateActionTransitionComponentRequest.d.ts +1 -1
  140. package/lib/model/corporateActionTransitionComponentRequest.js +1 -1
  141. package/lib/model/corporateActionTransitionRequest.d.ts +1 -1
  142. package/lib/model/corporateActionTransitionRequest.js +1 -1
  143. package/lib/model/counterpartyRiskInformation.d.ts +1 -1
  144. package/lib/model/counterpartyRiskInformation.js +1 -1
  145. package/lib/model/createCalendarRequest.d.ts +32 -0
  146. package/lib/model/createCalendarRequest.js +51 -0
  147. package/lib/model/createCorporateActionSourceRequest.d.ts +1 -1
  148. package/lib/model/createCorporateActionSourceRequest.js +1 -1
  149. package/lib/model/createCutLabelDefinitionRequest.d.ts +1 -1
  150. package/lib/model/createCutLabelDefinitionRequest.js +1 -1
  151. package/lib/model/createDateRequest.d.ts +35 -0
  152. package/lib/model/createDateRequest.js +66 -0
  153. package/lib/model/createDerivedPropertyDefinitionRequest.d.ts +1 -1
  154. package/lib/model/createDerivedPropertyDefinitionRequest.js +1 -1
  155. package/lib/model/createDerivedTransactionPortfolioRequest.d.ts +1 -1
  156. package/lib/model/createDerivedTransactionPortfolioRequest.js +1 -1
  157. package/lib/model/createPortfolioDetails.d.ts +1 -1
  158. package/lib/model/createPortfolioDetails.js +1 -1
  159. package/lib/model/createPortfolioGroupRequest.d.ts +1 -1
  160. package/lib/model/createPortfolioGroupRequest.js +1 -1
  161. package/lib/model/createPropertyDefinitionRequest.d.ts +1 -1
  162. package/lib/model/createPropertyDefinitionRequest.js +1 -1
  163. package/lib/model/createReferencePortfolioRequest.d.ts +1 -1
  164. package/lib/model/createReferencePortfolioRequest.js +1 -1
  165. package/lib/model/createRelationshipDefinitionRequest.d.ts +1 -1
  166. package/lib/model/createRelationshipDefinitionRequest.js +1 -1
  167. package/lib/model/createRelationshipRequest.d.ts +1 -1
  168. package/lib/model/createRelationshipRequest.js +1 -1
  169. package/lib/model/createSequenceRequest.d.ts +1 -1
  170. package/lib/model/createSequenceRequest.js +1 -1
  171. package/lib/model/createTransactionPortfolioRequest.d.ts +1 -1
  172. package/lib/model/createTransactionPortfolioRequest.js +1 -1
  173. package/lib/model/creditRating.d.ts +1 -1
  174. package/lib/model/creditRating.js +1 -1
  175. package/lib/model/currencyAndAmount.d.ts +1 -1
  176. package/lib/model/currencyAndAmount.js +1 -1
  177. package/lib/model/cutLabelDefinition.d.ts +1 -1
  178. package/lib/model/cutLabelDefinition.js +1 -1
  179. package/lib/model/cutLocalTime.d.ts +1 -1
  180. package/lib/model/cutLocalTime.js +1 -1
  181. package/lib/model/dataType.d.ts +1 -1
  182. package/lib/model/dataType.js +1 -1
  183. package/lib/model/dateAttributes.d.ts +32 -0
  184. package/lib/model/dateAttributes.js +66 -0
  185. package/lib/model/dateRange.d.ts +1 -1
  186. package/lib/model/dateRange.js +1 -1
  187. package/lib/model/dayOfWeek.d.ts +20 -0
  188. package/lib/model/dayOfWeek.js +24 -0
  189. package/lib/model/deleteInstrumentResponse.d.ts +1 -1
  190. package/lib/model/deleteInstrumentResponse.js +1 -1
  191. package/lib/model/deleteRelationshipRequest.d.ts +1 -1
  192. package/lib/model/deleteRelationshipRequest.js +1 -1
  193. package/lib/model/deletedEntityResponse.d.ts +1 -1
  194. package/lib/model/deletedEntityResponse.js +1 -1
  195. package/lib/model/dependencySourceFilter.d.ts +1 -1
  196. package/lib/model/dependencySourceFilter.js +1 -1
  197. package/lib/model/entityIdentifier.d.ts +1 -1
  198. package/lib/model/entityIdentifier.js +1 -1
  199. package/lib/model/errorDetail.d.ts +1 -1
  200. package/lib/model/errorDetail.js +1 -1
  201. package/lib/model/expandedGroup.d.ts +1 -1
  202. package/lib/model/expandedGroup.js +1 -1
  203. package/lib/model/fieldDefinition.d.ts +1 -1
  204. package/lib/model/fieldDefinition.js +1 -1
  205. package/lib/model/fieldSchema.d.ts +1 -1
  206. package/lib/model/fieldSchema.js +1 -1
  207. package/lib/model/fieldValue.d.ts +1 -1
  208. package/lib/model/fieldValue.js +1 -1
  209. package/lib/model/fileResponse.d.ts +1 -1
  210. package/lib/model/fileResponse.js +1 -1
  211. package/lib/model/getComplexMarketDataResponse.d.ts +1 -1
  212. package/lib/model/getComplexMarketDataResponse.js +1 -1
  213. package/lib/model/getInstrumentsResponse.d.ts +1 -1
  214. package/lib/model/getInstrumentsResponse.js +1 -1
  215. package/lib/model/getQuotesResponse.d.ts +1 -1
  216. package/lib/model/getQuotesResponse.js +1 -1
  217. package/lib/model/getRecipeResponse.d.ts +1 -1
  218. package/lib/model/getRecipeResponse.js +1 -1
  219. package/lib/model/getReferencePortfolioConstituentsResponse.d.ts +1 -1
  220. package/lib/model/getReferencePortfolioConstituentsResponse.js +1 -1
  221. package/lib/model/holdingAdjustment.d.ts +1 -1
  222. package/lib/model/holdingAdjustment.js +1 -1
  223. package/lib/model/holdingContext.d.ts +1 -1
  224. package/lib/model/holdingContext.js +1 -1
  225. package/lib/model/holdingsAdjustment.d.ts +1 -1
  226. package/lib/model/holdingsAdjustment.js +1 -1
  227. package/lib/model/holdingsAdjustmentHeader.d.ts +1 -1
  228. package/lib/model/holdingsAdjustmentHeader.js +1 -1
  229. package/lib/model/iUnitDefinitionDto.d.ts +1 -1
  230. package/lib/model/iUnitDefinitionDto.js +1 -1
  231. package/lib/model/idSelectorDefinition.d.ts +1 -1
  232. package/lib/model/idSelectorDefinition.js +1 -1
  233. package/lib/model/identifierPartSchema.d.ts +1 -1
  234. package/lib/model/identifierPartSchema.js +1 -1
  235. package/lib/model/industryClassifier.d.ts +1 -1
  236. package/lib/model/industryClassifier.js +1 -1
  237. package/lib/model/inlineValuationRequest.d.ts +1 -1
  238. package/lib/model/inlineValuationRequest.js +1 -1
  239. package/lib/model/instrument.d.ts +1 -1
  240. package/lib/model/instrument.js +1 -1
  241. package/lib/model/instrumentDefinition.d.ts +1 -1
  242. package/lib/model/instrumentDefinition.js +1 -1
  243. package/lib/model/instrumentIdTypeDescriptor.d.ts +1 -1
  244. package/lib/model/instrumentIdTypeDescriptor.js +1 -1
  245. package/lib/model/instrumentIdValue.d.ts +1 -1
  246. package/lib/model/instrumentIdValue.js +1 -1
  247. package/lib/model/isBusinessDayResponse.d.ts +29 -0
  248. package/lib/model/isBusinessDayResponse.js +39 -0
  249. package/lib/model/labelValueSet.d.ts +1 -1
  250. package/lib/model/labelValueSet.js +1 -1
  251. package/lib/model/legalEntity.d.ts +1 -1
  252. package/lib/model/legalEntity.js +1 -1
  253. package/lib/model/link.d.ts +1 -1
  254. package/lib/model/link.js +1 -1
  255. package/lib/model/listAggregationResponse.d.ts +1 -1
  256. package/lib/model/listAggregationResponse.js +1 -1
  257. package/lib/model/lusidInstrument.d.ts +1 -1
  258. package/lib/model/lusidInstrument.js +1 -1
  259. package/lib/model/lusidProblemDetails.d.ts +1 -1
  260. package/lib/model/lusidProblemDetails.js +1 -1
  261. package/lib/model/lusidUniqueId.d.ts +1 -1
  262. package/lib/model/lusidUniqueId.js +1 -1
  263. package/lib/model/lusidValidationProblemDetails.d.ts +1 -1
  264. package/lib/model/lusidValidationProblemDetails.js +1 -1
  265. package/lib/model/marketContext.d.ts +1 -1
  266. package/lib/model/marketContext.js +1 -1
  267. package/lib/model/marketContextSuppliers.d.ts +1 -1
  268. package/lib/model/marketContextSuppliers.js +1 -1
  269. package/lib/model/marketDataKeyRule.d.ts +1 -1
  270. package/lib/model/marketDataKeyRule.js +1 -1
  271. package/lib/model/marketDataSpecificRule.d.ts +1 -1
  272. package/lib/model/marketDataSpecificRule.js +1 -1
  273. package/lib/model/marketOptions.d.ts +1 -1
  274. package/lib/model/marketOptions.js +1 -1
  275. package/lib/model/metricValue.d.ts +1 -1
  276. package/lib/model/metricValue.js +1 -1
  277. package/lib/model/modelOptions.d.ts +1 -1
  278. package/lib/model/modelOptions.js +1 -1
  279. package/lib/model/modelSelection.d.ts +1 -1
  280. package/lib/model/modelSelection.js +1 -1
  281. package/lib/model/models.d.ts +13 -0
  282. package/lib/model/models.js +39 -0
  283. package/lib/model/nextValueInSequenceResponse.d.ts +1 -1
  284. package/lib/model/nextValueInSequenceResponse.js +1 -1
  285. package/lib/model/order.d.ts +1 -1
  286. package/lib/model/order.js +1 -1
  287. package/lib/model/orderBySpec.d.ts +1 -1
  288. package/lib/model/orderBySpec.js +1 -1
  289. package/lib/model/orderRequest.d.ts +1 -1
  290. package/lib/model/orderRequest.js +1 -1
  291. package/lib/model/orderSetRequest.d.ts +1 -1
  292. package/lib/model/orderSetRequest.js +1 -1
  293. package/lib/model/otcConfirmation.d.ts +1 -1
  294. package/lib/model/otcConfirmation.js +1 -1
  295. package/lib/model/outputTransaction.d.ts +1 -1
  296. package/lib/model/outputTransaction.js +1 -1
  297. package/lib/model/pagedResourceListOfAllocation.d.ts +1 -1
  298. package/lib/model/pagedResourceListOfAllocation.js +1 -1
  299. package/lib/model/pagedResourceListOfCalendar.d.ts +49 -0
  300. package/lib/model/pagedResourceListOfCalendar.js +54 -0
  301. package/lib/model/pagedResourceListOfCorporateActionSource.d.ts +1 -1
  302. package/lib/model/pagedResourceListOfCorporateActionSource.js +1 -1
  303. package/lib/model/pagedResourceListOfCutLabelDefinition.d.ts +1 -1
  304. package/lib/model/pagedResourceListOfCutLabelDefinition.js +1 -1
  305. package/lib/model/pagedResourceListOfInstrument.d.ts +1 -1
  306. package/lib/model/pagedResourceListOfInstrument.js +1 -1
  307. package/lib/model/pagedResourceListOfLegalEntity.d.ts +1 -1
  308. package/lib/model/pagedResourceListOfLegalEntity.js +1 -1
  309. package/lib/model/pagedResourceListOfOrder.d.ts +1 -1
  310. package/lib/model/pagedResourceListOfOrder.js +1 -1
  311. package/lib/model/pagedResourceListOfPortfolioGroupSearchResult.d.ts +1 -1
  312. package/lib/model/pagedResourceListOfPortfolioGroupSearchResult.js +1 -1
  313. package/lib/model/pagedResourceListOfPortfolioSearchResult.d.ts +1 -1
  314. package/lib/model/pagedResourceListOfPortfolioSearchResult.js +1 -1
  315. package/lib/model/pagedResourceListOfPropertyDefinitionSearchResult.d.ts +1 -1
  316. package/lib/model/pagedResourceListOfPropertyDefinitionSearchResult.js +1 -1
  317. package/lib/model/pagedResourceListOfRelationshipDefinition.d.ts +1 -1
  318. package/lib/model/pagedResourceListOfRelationshipDefinition.js +1 -1
  319. package/lib/model/pagedResourceListOfSequenceDefinition.d.ts +1 -1
  320. package/lib/model/pagedResourceListOfSequenceDefinition.js +1 -1
  321. package/lib/model/performanceReturn.d.ts +1 -1
  322. package/lib/model/performanceReturn.js +1 -1
  323. package/lib/model/performanceReturnsMetric.d.ts +1 -1
  324. package/lib/model/performanceReturnsMetric.js +1 -1
  325. package/lib/model/perpetualProperty.d.ts +1 -1
  326. package/lib/model/perpetualProperty.js +1 -1
  327. package/lib/model/portfolio.d.ts +1 -1
  328. package/lib/model/portfolio.js +1 -1
  329. package/lib/model/portfolioCashFlow.d.ts +1 -1
  330. package/lib/model/portfolioCashFlow.js +1 -1
  331. package/lib/model/portfolioCashLadder.d.ts +1 -1
  332. package/lib/model/portfolioCashLadder.js +1 -1
  333. package/lib/model/portfolioDetails.d.ts +1 -1
  334. package/lib/model/portfolioDetails.js +1 -1
  335. package/lib/model/portfolioEntityId.d.ts +1 -1
  336. package/lib/model/portfolioEntityId.js +1 -1
  337. package/lib/model/portfolioGroup.d.ts +1 -1
  338. package/lib/model/portfolioGroup.js +1 -1
  339. package/lib/model/portfolioGroupProperties.d.ts +1 -1
  340. package/lib/model/portfolioGroupProperties.js +1 -1
  341. package/lib/model/portfolioGroupSearchResult.d.ts +1 -1
  342. package/lib/model/portfolioGroupSearchResult.js +1 -1
  343. package/lib/model/portfolioHolding.d.ts +1 -1
  344. package/lib/model/portfolioHolding.js +1 -1
  345. package/lib/model/portfolioProperties.d.ts +1 -1
  346. package/lib/model/portfolioProperties.js +1 -1
  347. package/lib/model/portfolioReconciliationRequest.d.ts +1 -1
  348. package/lib/model/portfolioReconciliationRequest.js +1 -1
  349. package/lib/model/portfolioSearchResult.d.ts +1 -1
  350. package/lib/model/portfolioSearchResult.js +1 -1
  351. package/lib/model/portfoliosReconciliationRequest.d.ts +1 -1
  352. package/lib/model/portfoliosReconciliationRequest.js +1 -1
  353. package/lib/model/pricingContext.d.ts +1 -1
  354. package/lib/model/pricingContext.js +1 -1
  355. package/lib/model/pricingOptions.d.ts +1 -1
  356. package/lib/model/pricingOptions.js +1 -1
  357. package/lib/model/processedCommand.d.ts +1 -1
  358. package/lib/model/processedCommand.js +1 -1
  359. package/lib/model/property.d.ts +1 -1
  360. package/lib/model/property.js +1 -1
  361. package/lib/model/propertyDefinition.d.ts +1 -1
  362. package/lib/model/propertyDefinition.js +1 -1
  363. package/lib/model/propertyDefinitionSearchResult.d.ts +1 -1
  364. package/lib/model/propertyDefinitionSearchResult.js +1 -1
  365. package/lib/model/propertyFilter.d.ts +1 -1
  366. package/lib/model/propertyFilter.js +1 -1
  367. package/lib/model/propertyInterval.d.ts +1 -1
  368. package/lib/model/propertyInterval.js +1 -1
  369. package/lib/model/propertyValue.d.ts +1 -1
  370. package/lib/model/propertyValue.js +1 -1
  371. package/lib/model/quote.d.ts +1 -1
  372. package/lib/model/quote.js +1 -1
  373. package/lib/model/quoteId.d.ts +1 -1
  374. package/lib/model/quoteId.js +1 -1
  375. package/lib/model/quoteSeriesId.d.ts +1 -1
  376. package/lib/model/quoteSeriesId.js +1 -1
  377. package/lib/model/realisedGainLoss.d.ts +1 -1
  378. package/lib/model/realisedGainLoss.js +1 -1
  379. package/lib/model/reconciliationBreak.d.ts +1 -1
  380. package/lib/model/reconciliationBreak.js +1 -1
  381. package/lib/model/referenceData.d.ts +1 -1
  382. package/lib/model/referenceData.js +1 -1
  383. package/lib/model/referencePortfolioConstituent.d.ts +1 -1
  384. package/lib/model/referencePortfolioConstituent.js +1 -1
  385. package/lib/model/referencePortfolioConstituentRequest.d.ts +1 -1
  386. package/lib/model/referencePortfolioConstituentRequest.js +1 -1
  387. package/lib/model/relatedEntity.d.ts +1 -1
  388. package/lib/model/relatedEntity.js +1 -1
  389. package/lib/model/relationship.d.ts +1 -1
  390. package/lib/model/relationship.js +1 -1
  391. package/lib/model/relationshipDefinition.d.ts +1 -1
  392. package/lib/model/relationshipDefinition.js +1 -1
  393. package/lib/model/resourceId.d.ts +1 -1
  394. package/lib/model/resourceId.js +1 -1
  395. package/lib/model/resourceListOfAccessControlledResource.d.ts +1 -1
  396. package/lib/model/resourceListOfAccessControlledResource.js +1 -1
  397. package/lib/model/resourceListOfAccessMetadataValueOf.d.ts +1 -1
  398. package/lib/model/resourceListOfAccessMetadataValueOf.js +1 -1
  399. package/lib/model/resourceListOfAllocation.d.ts +1 -1
  400. package/lib/model/resourceListOfAllocation.js +1 -1
  401. package/lib/model/resourceListOfCalendarDate.d.ts +49 -0
  402. package/lib/model/resourceListOfCalendarDate.js +54 -0
  403. package/lib/model/resourceListOfChange.d.ts +1 -1
  404. package/lib/model/resourceListOfChange.js +1 -1
  405. package/lib/model/resourceListOfConstituentsAdjustmentHeader.d.ts +1 -1
  406. package/lib/model/resourceListOfConstituentsAdjustmentHeader.js +1 -1
  407. package/lib/model/resourceListOfCorporateAction.d.ts +1 -1
  408. package/lib/model/resourceListOfCorporateAction.js +1 -1
  409. package/lib/model/resourceListOfDataType.d.ts +1 -1
  410. package/lib/model/resourceListOfDataType.js +1 -1
  411. package/lib/model/resourceListOfGetRecipeResponse.d.ts +1 -1
  412. package/lib/model/resourceListOfGetRecipeResponse.js +1 -1
  413. package/lib/model/resourceListOfHoldingsAdjustmentHeader.d.ts +1 -1
  414. package/lib/model/resourceListOfHoldingsAdjustmentHeader.js +1 -1
  415. package/lib/model/resourceListOfIUnitDefinitionDto.d.ts +1 -1
  416. package/lib/model/resourceListOfIUnitDefinitionDto.js +1 -1
  417. package/lib/model/resourceListOfInstrumentIdTypeDescriptor.d.ts +1 -1
  418. package/lib/model/resourceListOfInstrumentIdTypeDescriptor.js +1 -1
  419. package/lib/model/resourceListOfLegalEntity.d.ts +1 -1
  420. package/lib/model/resourceListOfLegalEntity.js +1 -1
  421. package/lib/model/resourceListOfOrder.d.ts +1 -1
  422. package/lib/model/resourceListOfOrder.js +1 -1
  423. package/lib/model/resourceListOfPerformanceReturn.d.ts +1 -1
  424. package/lib/model/resourceListOfPerformanceReturn.js +1 -1
  425. package/lib/model/resourceListOfPortfolio.d.ts +1 -1
  426. package/lib/model/resourceListOfPortfolio.js +1 -1
  427. package/lib/model/resourceListOfPortfolioCashFlow.d.ts +1 -1
  428. package/lib/model/resourceListOfPortfolioCashFlow.js +1 -1
  429. package/lib/model/resourceListOfPortfolioCashLadder.d.ts +1 -1
  430. package/lib/model/resourceListOfPortfolioCashLadder.js +1 -1
  431. package/lib/model/resourceListOfPortfolioGroup.d.ts +1 -1
  432. package/lib/model/resourceListOfPortfolioGroup.js +1 -1
  433. package/lib/model/resourceListOfProcessedCommand.d.ts +1 -1
  434. package/lib/model/resourceListOfProcessedCommand.js +1 -1
  435. package/lib/model/resourceListOfPropertyDefinition.d.ts +1 -1
  436. package/lib/model/resourceListOfPropertyDefinition.js +1 -1
  437. package/lib/model/resourceListOfPropertyInterval.d.ts +1 -1
  438. package/lib/model/resourceListOfPropertyInterval.js +1 -1
  439. package/lib/model/resourceListOfQuote.d.ts +1 -1
  440. package/lib/model/resourceListOfQuote.js +1 -1
  441. package/lib/model/resourceListOfReconciliationBreak.d.ts +1 -1
  442. package/lib/model/resourceListOfReconciliationBreak.js +1 -1
  443. package/lib/model/resourceListOfRelationship.d.ts +1 -1
  444. package/lib/model/resourceListOfRelationship.js +1 -1
  445. package/lib/model/resourceListOfScopeDefinition.d.ts +1 -1
  446. package/lib/model/resourceListOfScopeDefinition.js +1 -1
  447. package/lib/model/responseMetaData.d.ts +1 -1
  448. package/lib/model/responseMetaData.js +1 -1
  449. package/lib/model/resultDataSchema.d.ts +1 -1
  450. package/lib/model/resultDataSchema.js +1 -1
  451. package/lib/model/resultKeyRule.d.ts +1 -1
  452. package/lib/model/resultKeyRule.js +1 -1
  453. package/lib/model/scopeDefinition.d.ts +1 -1
  454. package/lib/model/scopeDefinition.js +1 -1
  455. package/lib/model/sequenceDefinition.d.ts +1 -1
  456. package/lib/model/sequenceDefinition.js +1 -1
  457. package/lib/model/setLegalEntityIdentifiersRequest.d.ts +1 -1
  458. package/lib/model/setLegalEntityIdentifiersRequest.js +1 -1
  459. package/lib/model/setLegalEntityPropertiesRequest.d.ts +1 -1
  460. package/lib/model/setLegalEntityPropertiesRequest.js +1 -1
  461. package/lib/model/sideConfigurationData.d.ts +1 -1
  462. package/lib/model/sideConfigurationData.js +1 -1
  463. package/lib/model/stream.d.ts +1 -1
  464. package/lib/model/stream.js +1 -1
  465. package/lib/model/targetTaxLot.d.ts +1 -1
  466. package/lib/model/targetTaxLot.js +1 -1
  467. package/lib/model/targetTaxLotRequest.d.ts +1 -1
  468. package/lib/model/targetTaxLotRequest.js +1 -1
  469. package/lib/model/transaction.d.ts +1 -1
  470. package/lib/model/transaction.js +1 -1
  471. package/lib/model/transactionConfigurationData.d.ts +1 -1
  472. package/lib/model/transactionConfigurationData.js +1 -1
  473. package/lib/model/transactionConfigurationDataRequest.d.ts +1 -1
  474. package/lib/model/transactionConfigurationDataRequest.js +1 -1
  475. package/lib/model/transactionConfigurationMovementData.d.ts +1 -1
  476. package/lib/model/transactionConfigurationMovementData.js +1 -1
  477. package/lib/model/transactionConfigurationMovementDataRequest.d.ts +1 -1
  478. package/lib/model/transactionConfigurationMovementDataRequest.js +1 -1
  479. package/lib/model/transactionConfigurationTypeAlias.d.ts +1 -1
  480. package/lib/model/transactionConfigurationTypeAlias.js +1 -1
  481. package/lib/model/transactionPrice.d.ts +1 -1
  482. package/lib/model/transactionPrice.js +1 -1
  483. package/lib/model/transactionPropertyMapping.d.ts +1 -1
  484. package/lib/model/transactionPropertyMapping.js +1 -1
  485. package/lib/model/transactionPropertyMappingRequest.d.ts +1 -1
  486. package/lib/model/transactionPropertyMappingRequest.js +1 -1
  487. package/lib/model/transactionQueryParameters.d.ts +1 -1
  488. package/lib/model/transactionQueryParameters.js +1 -1
  489. package/lib/model/transactionRequest.d.ts +1 -1
  490. package/lib/model/transactionRequest.js +1 -1
  491. package/lib/model/transactionSetConfigurationData.d.ts +1 -1
  492. package/lib/model/transactionSetConfigurationData.js +1 -1
  493. package/lib/model/updateCalendarRequest.d.ts +29 -0
  494. package/lib/model/updateCalendarRequest.js +41 -0
  495. package/lib/model/updateCutLabelDefinitionRequest.d.ts +1 -1
  496. package/lib/model/updateCutLabelDefinitionRequest.js +1 -1
  497. package/lib/model/updateInstrumentIdentifierRequest.d.ts +1 -1
  498. package/lib/model/updateInstrumentIdentifierRequest.js +1 -1
  499. package/lib/model/updatePortfolioGroupRequest.d.ts +1 -1
  500. package/lib/model/updatePortfolioGroupRequest.js +1 -1
  501. package/lib/model/updatePortfolioRequest.d.ts +1 -1
  502. package/lib/model/updatePortfolioRequest.js +1 -1
  503. package/lib/model/updatePropertyDefinitionRequest.d.ts +1 -1
  504. package/lib/model/updatePropertyDefinitionRequest.js +1 -1
  505. package/lib/model/updateRelationshipDefinitionRequest.d.ts +1 -1
  506. package/lib/model/updateRelationshipDefinitionRequest.js +1 -1
  507. package/lib/model/upsertComplexMarketDataRequest.d.ts +1 -1
  508. package/lib/model/upsertComplexMarketDataRequest.js +1 -1
  509. package/lib/model/upsertCorporateActionRequest.d.ts +1 -1
  510. package/lib/model/upsertCorporateActionRequest.js +1 -1
  511. package/lib/model/upsertCorporateActionsResponse.d.ts +1 -1
  512. package/lib/model/upsertCorporateActionsResponse.js +1 -1
  513. package/lib/model/upsertInstrumentPropertiesResponse.d.ts +1 -1
  514. package/lib/model/upsertInstrumentPropertiesResponse.js +1 -1
  515. package/lib/model/upsertInstrumentPropertyRequest.d.ts +1 -1
  516. package/lib/model/upsertInstrumentPropertyRequest.js +1 -1
  517. package/lib/model/upsertInstrumentsResponse.d.ts +1 -1
  518. package/lib/model/upsertInstrumentsResponse.js +1 -1
  519. package/lib/model/upsertLegalEntityAccessMetadataRequest.d.ts +1 -1
  520. package/lib/model/upsertLegalEntityAccessMetadataRequest.js +1 -1
  521. package/lib/model/upsertLegalEntityRequest.d.ts +1 -1
  522. package/lib/model/upsertLegalEntityRequest.js +1 -1
  523. package/lib/model/upsertPersonAccessMetadataRequest.d.ts +1 -1
  524. package/lib/model/upsertPersonAccessMetadataRequest.js +1 -1
  525. package/lib/model/upsertPortfolioAccessMetadataRequest.d.ts +1 -1
  526. package/lib/model/upsertPortfolioAccessMetadataRequest.js +1 -1
  527. package/lib/model/upsertPortfolioGroupAccessMetadataRequest.d.ts +1 -1
  528. package/lib/model/upsertPortfolioGroupAccessMetadataRequest.js +1 -1
  529. package/lib/model/upsertPortfolioTransactionsResponse.d.ts +1 -1
  530. package/lib/model/upsertPortfolioTransactionsResponse.js +1 -1
  531. package/lib/model/upsertQuoteRequest.d.ts +1 -1
  532. package/lib/model/upsertQuoteRequest.js +1 -1
  533. package/lib/model/upsertQuotesResponse.d.ts +1 -1
  534. package/lib/model/upsertQuotesResponse.js +1 -1
  535. package/lib/model/upsertRecipeRequest.d.ts +1 -1
  536. package/lib/model/upsertRecipeRequest.js +1 -1
  537. package/lib/model/upsertReferencePortfolioConstituentsRequest.d.ts +1 -1
  538. package/lib/model/upsertReferencePortfolioConstituentsRequest.js +1 -1
  539. package/lib/model/upsertReferencePortfolioConstituentsResponse.d.ts +1 -1
  540. package/lib/model/upsertReferencePortfolioConstituentsResponse.js +1 -1
  541. package/lib/model/upsertReturnsResponse.d.ts +1 -1
  542. package/lib/model/upsertReturnsResponse.js +1 -1
  543. package/lib/model/upsertSingleStructuredDataResponse.d.ts +1 -1
  544. package/lib/model/upsertSingleStructuredDataResponse.js +1 -1
  545. package/lib/model/upsertStructuredDataResponse.d.ts +1 -1
  546. package/lib/model/upsertStructuredDataResponse.js +1 -1
  547. package/lib/model/upsertTransactionPropertiesResponse.d.ts +1 -1
  548. package/lib/model/upsertTransactionPropertiesResponse.js +1 -1
  549. package/lib/model/user.d.ts +1 -1
  550. package/lib/model/user.js +1 -1
  551. package/lib/model/valuationRequest.d.ts +1 -1
  552. package/lib/model/valuationRequest.js +1 -1
  553. package/lib/model/valuationSchedule.d.ts +1 -1
  554. package/lib/model/valuationSchedule.js +1 -1
  555. package/lib/model/vendorModelRule.d.ts +1 -1
  556. package/lib/model/vendorModelRule.js +1 -1
  557. package/lib/model/version.d.ts +1 -1
  558. package/lib/model/version.js +1 -1
  559. package/lib/model/versionSummaryDto.d.ts +1 -1
  560. package/lib/model/versionSummaryDto.js +1 -1
  561. package/lib/model/versionedResourceListOfA2BDataRecord.d.ts +1 -1
  562. package/lib/model/versionedResourceListOfA2BDataRecord.js +1 -1
  563. package/lib/model/versionedResourceListOfA2BMovementRecord.d.ts +1 -1
  564. package/lib/model/versionedResourceListOfA2BMovementRecord.js +1 -1
  565. package/lib/model/versionedResourceListOfOutputTransaction.d.ts +1 -1
  566. package/lib/model/versionedResourceListOfOutputTransaction.js +1 -1
  567. package/lib/model/versionedResourceListOfPortfolioHolding.d.ts +1 -1
  568. package/lib/model/versionedResourceListOfPortfolioHolding.js +1 -1
  569. package/lib/model/versionedResourceListOfTransaction.d.ts +1 -1
  570. package/lib/model/versionedResourceListOfTransaction.js +1 -1
  571. package/lib/model/weekendMask.d.ts +27 -0
  572. package/lib/model/weekendMask.js +36 -0
  573. package/lib/model/weightedInstrument.d.ts +1 -1
  574. package/lib/model/weightedInstrument.js +1 -1
  575. package/package.json +1 -1
@@ -0,0 +1,1253 @@
1
+ "use strict";
2
+ /**
3
+ * LUSID API
4
+ * # 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=\"175\">175</a>|Entity Not In Group| | | <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.| | | <a name=\"763\">763</a>|Invalid Lusid Entity Identifier Unit| | | <a name=\"768\">768</a>|Fee rule not found.| | | <a name=\"769\">769</a>|Cannot update the base currency of a portfolio with transactions loaded| | | <a name=\"771\">771</a>|Transaction configuration source not found| | | <a name=\"774\">774</a>|Compliance rule not found.| | | <a name=\"775\">775</a>|Fund accounting document cannot be processed.| | | <a name=\"778\">778</a>|Unable to look up FX rate from trade ccy to portfolio ccy for some of the trades.| | | <a name=\"782\">782</a>|The Property definition dataType is not matching the derivation formula dataType| | | <a name=\"783\">783</a>|The Property definition domain is not supported for derived properties| | | <a name=\"788\">788</a>|Compliance run not found failure.| | | <a name=\"790\">790</a>|Custom Entity has missing or invalid identifiers| | | <a name=\"791\">791</a>|Custom Entity definition already exists| | | <a name=\"792\">792</a>|Compliance PropertyKey is missing.| | | <a name=\"793\">793</a>|Compliance Criteria Value for matching is missing.| | | <a name=\"800\">800</a>|Can not upsert an instrument event of this type.| | | <a name=\"801\">801</a>|The instrument event does not exist.| | | <a name=\"802\">802</a>|The Instrument event is missing salient information.| | | <a name=\"803\">803</a>|The Instrument event could not be processed.| | | <a name=\"804\">804</a>|Some data requested does not follow the order graph assumptions.| |
5
+ *
6
+ * The version of the OpenAPI document: 0.11.4720
7
+ * Contact: info@finbourne.com
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ var __extends = (this && this.__extends) || (function () {
14
+ var extendStatics = function (d, b) {
15
+ extendStatics = Object.setPrototypeOf ||
16
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
17
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
18
+ return extendStatics(d, b);
19
+ };
20
+ return function (d, b) {
21
+ extendStatics(d, b);
22
+ function __() { this.constructor = d; }
23
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
24
+ };
25
+ })();
26
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
27
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
28
+ return new (P || (P = Promise))(function (resolve, reject) {
29
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
30
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
31
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
32
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
33
+ });
34
+ };
35
+ var __generator = (this && this.__generator) || function (thisArg, body) {
36
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
37
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
38
+ function verb(n) { return function (v) { return step([n, v]); }; }
39
+ function step(op) {
40
+ if (f) throw new TypeError("Generator is already executing.");
41
+ while (_) try {
42
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
43
+ if (y = 0, t) op = [op[0] & 2, t.value];
44
+ switch (op[0]) {
45
+ case 0: case 1: t = op; break;
46
+ case 4: _.label++; return { value: op[1], done: false };
47
+ case 5: _.label++; y = op[1]; op = [0]; continue;
48
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
49
+ default:
50
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
51
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
52
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
53
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
54
+ if (t[2]) _.ops.pop();
55
+ _.trys.pop(); continue;
56
+ }
57
+ op = body.call(thisArg, _);
58
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
59
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
60
+ }
61
+ };
62
+ var __importDefault = (this && this.__importDefault) || function (mod) {
63
+ return (mod && mod.__esModule) ? mod : { "default": mod };
64
+ };
65
+ Object.defineProperty(exports, "__esModule", { value: true });
66
+ exports.CalendarsApi = exports.CalendarsApiApiKeys = void 0;
67
+ var request_1 = __importDefault(require("request"));
68
+ var models_1 = require("../model/models");
69
+ var models_2 = require("../model/models");
70
+ var HttpError = /** @class */ (function (_super) {
71
+ __extends(HttpError, _super);
72
+ function HttpError(response, body, statusCode) {
73
+ var _this = _super.call(this, 'HTTP request failed') || this;
74
+ _this.response = response;
75
+ _this.body = body;
76
+ _this.statusCode = statusCode;
77
+ _this.name = 'HttpError';
78
+ return _this;
79
+ }
80
+ return HttpError;
81
+ }(Error));
82
+ var defaultBasePath = 'https://fbn-prd.lusid.com/api';
83
+ // ===============================================
84
+ // This file is autogenerated - Please do not edit
85
+ // ===============================================
86
+ var CalendarsApiApiKeys;
87
+ (function (CalendarsApiApiKeys) {
88
+ })(CalendarsApiApiKeys = exports.CalendarsApiApiKeys || (exports.CalendarsApiApiKeys = {}));
89
+ var CalendarsApi = /** @class */ (function () {
90
+ function CalendarsApi(basePathOrUsername, password, basePath) {
91
+ this._basePath = defaultBasePath;
92
+ this._defaultHeaders = {};
93
+ this._useQuerystring = false;
94
+ this.authentications = {
95
+ 'default': new models_1.VoidAuth(),
96
+ 'oauth2': new models_2.OAuth(),
97
+ };
98
+ this.interceptors = [];
99
+ if (password) {
100
+ if (basePath) {
101
+ this.basePath = basePath;
102
+ }
103
+ }
104
+ else {
105
+ if (basePathOrUsername) {
106
+ this.basePath = basePathOrUsername;
107
+ }
108
+ }
109
+ }
110
+ Object.defineProperty(CalendarsApi.prototype, "useQuerystring", {
111
+ set: function (value) {
112
+ this._useQuerystring = value;
113
+ },
114
+ enumerable: false,
115
+ configurable: true
116
+ });
117
+ Object.defineProperty(CalendarsApi.prototype, "basePath", {
118
+ get: function () {
119
+ return this._basePath;
120
+ },
121
+ set: function (basePath) {
122
+ this._basePath = basePath;
123
+ },
124
+ enumerable: false,
125
+ configurable: true
126
+ });
127
+ Object.defineProperty(CalendarsApi.prototype, "defaultHeaders", {
128
+ get: function () {
129
+ return this._defaultHeaders;
130
+ },
131
+ set: function (defaultHeaders) {
132
+ this._defaultHeaders = defaultHeaders;
133
+ },
134
+ enumerable: false,
135
+ configurable: true
136
+ });
137
+ CalendarsApi.prototype.setDefaultAuthentication = function (auth) {
138
+ this.authentications.default = auth;
139
+ };
140
+ CalendarsApi.prototype.setApiKey = function (key, value) {
141
+ this.authentications[CalendarsApiApiKeys[key]].apiKey = value;
142
+ };
143
+ Object.defineProperty(CalendarsApi.prototype, "accessToken", {
144
+ set: function (token) {
145
+ this.authentications.oauth2.accessToken = token;
146
+ },
147
+ enumerable: false,
148
+ configurable: true
149
+ });
150
+ CalendarsApi.prototype.addInterceptor = function (interceptor) {
151
+ this.interceptors.push(interceptor);
152
+ };
153
+ /**
154
+ * A Business day is defined as a point in time that: * Does not represent a day in the calendar\'s weekend * Does not represent a day in the calendar\'s list of holidays (e.g. Christmas Day in the UK) All dates specified must be UTC and the upper bound of a calendar is not inclusive e.g. From: 2020-12-24-00-00-00: Adding 3 business days returns 2020-12-30, assuming Saturday and Sunday are weekends, and the 25th and 28th are holidays. Adding -2 business days returns 2020-12-22 under the same assumptions. If the provided number of days to add is zero, returns a failure.
155
+ * @summary [EARLY ACCESS] AddBusinessDaysToDate: Adds the requested number of Business Days to the provided date.
156
+ * @param scope Scope within which to search for the calendars
157
+ * @param addBusinessDaysToDateRequest Request Details: start date, number of days to add (which can be negative, but not zero), calendar codes and optionally an AsAt date for searching the calendar store
158
+ */
159
+ CalendarsApi.prototype.addBusinessDaysToDate = function (scope, addBusinessDaysToDateRequest, options) {
160
+ if (options === void 0) { options = { headers: {} }; }
161
+ return __awaiter(this, void 0, void 0, function () {
162
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_1, _i, _a, interceptor;
163
+ var _this = this;
164
+ return __generator(this, function (_b) {
165
+ localVarPath = this.basePath + '/api/calendars/businessday/{scope}/add'
166
+ .replace('{' + 'scope' + '}', encodeURIComponent(String(scope)));
167
+ localVarQueryParameters = {};
168
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
169
+ produces = ['text/plain', 'application/json', 'text/json'];
170
+ // give precedence to 'application/json'
171
+ if (produces.indexOf('application/json') >= 0) {
172
+ localVarHeaderParams.Accept = 'application/json';
173
+ }
174
+ else {
175
+ localVarHeaderParams.Accept = produces.join(',');
176
+ }
177
+ localVarFormParams = {};
178
+ // verify required parameter 'scope' is not null or undefined
179
+ if (scope === null || scope === undefined) {
180
+ throw new Error('Required parameter scope was null or undefined when calling addBusinessDaysToDate.');
181
+ }
182
+ // verify required parameter 'addBusinessDaysToDateRequest' is not null or undefined
183
+ if (addBusinessDaysToDateRequest === null || addBusinessDaysToDateRequest === undefined) {
184
+ throw new Error('Required parameter addBusinessDaysToDateRequest was null or undefined when calling addBusinessDaysToDate.');
185
+ }
186
+ Object.assign(localVarHeaderParams, options.headers);
187
+ localVarUseFormData = false;
188
+ localVarRequestOptions = {
189
+ method: 'POST',
190
+ qs: localVarQueryParameters,
191
+ headers: localVarHeaderParams,
192
+ uri: localVarPath,
193
+ useQuerystring: this._useQuerystring,
194
+ json: true,
195
+ body: models_1.ObjectSerializer.serialize(addBusinessDaysToDateRequest, "AddBusinessDaysToDateRequest")
196
+ };
197
+ authenticationPromise = Promise.resolve();
198
+ if (this.authentications.oauth2.accessToken) {
199
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.oauth2.applyToRequest(localVarRequestOptions); });
200
+ }
201
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
202
+ interceptorPromise = authenticationPromise;
203
+ _loop_1 = function (interceptor) {
204
+ interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
205
+ };
206
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
207
+ interceptor = _a[_i];
208
+ _loop_1(interceptor);
209
+ }
210
+ return [2 /*return*/, interceptorPromise.then(function () {
211
+ if (Object.keys(localVarFormParams).length) {
212
+ if (localVarUseFormData) {
213
+ localVarRequestOptions.formData = localVarFormParams;
214
+ }
215
+ else {
216
+ localVarRequestOptions.form = localVarFormParams;
217
+ }
218
+ }
219
+ return new Promise(function (resolve, reject) {
220
+ request_1.default(localVarRequestOptions, function (error, response, body) {
221
+ if (error) {
222
+ reject(error);
223
+ }
224
+ else {
225
+ body = models_1.ObjectSerializer.deserialize(body, "AddBusinessDaysToDateResponse");
226
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
227
+ resolve({ response: response, body: body });
228
+ }
229
+ else {
230
+ reject(new HttpError(response, body, response.statusCode));
231
+ }
232
+ }
233
+ });
234
+ });
235
+ })];
236
+ });
237
+ });
238
+ };
239
+ /**
240
+ * Add an event to the calendar. These Events can be a maximum of 24 hours and must be specified in UTC. A local date will be calculated by the system and applied to the calendar before processing.
241
+ * @summary [EARLY ACCESS] AddDateToCalendar: Add a date to a calendar
242
+ * @param scope Scope of the calendar
243
+ * @param code Code of the calendar
244
+ * @param createDateRequest Add date to calendar request
245
+ */
246
+ CalendarsApi.prototype.addDateToCalendar = function (scope, code, createDateRequest, options) {
247
+ if (options === void 0) { options = { headers: {} }; }
248
+ return __awaiter(this, void 0, void 0, function () {
249
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_2, _i, _a, interceptor;
250
+ var _this = this;
251
+ return __generator(this, function (_b) {
252
+ localVarPath = this.basePath + '/api/calendars/generic/{scope}/{code}/dates'
253
+ .replace('{' + 'scope' + '}', encodeURIComponent(String(scope)))
254
+ .replace('{' + 'code' + '}', encodeURIComponent(String(code)));
255
+ localVarQueryParameters = {};
256
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
257
+ produces = ['text/plain', 'application/json', 'text/json'];
258
+ // give precedence to 'application/json'
259
+ if (produces.indexOf('application/json') >= 0) {
260
+ localVarHeaderParams.Accept = 'application/json';
261
+ }
262
+ else {
263
+ localVarHeaderParams.Accept = produces.join(',');
264
+ }
265
+ localVarFormParams = {};
266
+ // verify required parameter 'scope' is not null or undefined
267
+ if (scope === null || scope === undefined) {
268
+ throw new Error('Required parameter scope was null or undefined when calling addDateToCalendar.');
269
+ }
270
+ // verify required parameter 'code' is not null or undefined
271
+ if (code === null || code === undefined) {
272
+ throw new Error('Required parameter code was null or undefined when calling addDateToCalendar.');
273
+ }
274
+ // verify required parameter 'createDateRequest' is not null or undefined
275
+ if (createDateRequest === null || createDateRequest === undefined) {
276
+ throw new Error('Required parameter createDateRequest was null or undefined when calling addDateToCalendar.');
277
+ }
278
+ Object.assign(localVarHeaderParams, options.headers);
279
+ localVarUseFormData = false;
280
+ localVarRequestOptions = {
281
+ method: 'PUT',
282
+ qs: localVarQueryParameters,
283
+ headers: localVarHeaderParams,
284
+ uri: localVarPath,
285
+ useQuerystring: this._useQuerystring,
286
+ json: true,
287
+ body: models_1.ObjectSerializer.serialize(createDateRequest, "CreateDateRequest")
288
+ };
289
+ authenticationPromise = Promise.resolve();
290
+ if (this.authentications.oauth2.accessToken) {
291
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.oauth2.applyToRequest(localVarRequestOptions); });
292
+ }
293
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
294
+ interceptorPromise = authenticationPromise;
295
+ _loop_2 = function (interceptor) {
296
+ interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
297
+ };
298
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
299
+ interceptor = _a[_i];
300
+ _loop_2(interceptor);
301
+ }
302
+ return [2 /*return*/, interceptorPromise.then(function () {
303
+ if (Object.keys(localVarFormParams).length) {
304
+ if (localVarUseFormData) {
305
+ localVarRequestOptions.formData = localVarFormParams;
306
+ }
307
+ else {
308
+ localVarRequestOptions.form = localVarFormParams;
309
+ }
310
+ }
311
+ return new Promise(function (resolve, reject) {
312
+ request_1.default(localVarRequestOptions, function (error, response, body) {
313
+ if (error) {
314
+ reject(error);
315
+ }
316
+ else {
317
+ body = models_1.ObjectSerializer.deserialize(body, "CalendarDate");
318
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
319
+ resolve({ response: response, body: body });
320
+ }
321
+ else {
322
+ reject(new HttpError(response, body, response.statusCode));
323
+ }
324
+ }
325
+ });
326
+ });
327
+ })];
328
+ });
329
+ });
330
+ };
331
+ /**
332
+ * Create a calendar in a generic form which can be used to store date events.
333
+ * @summary [EARLY ACCESS] CreateCalendar: Create a calendar in its generic form
334
+ * @param createCalendarRequest A request to create the calendar
335
+ */
336
+ CalendarsApi.prototype.createCalendar = function (createCalendarRequest, options) {
337
+ if (options === void 0) { options = { headers: {} }; }
338
+ return __awaiter(this, void 0, void 0, function () {
339
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_3, _i, _a, interceptor;
340
+ var _this = this;
341
+ return __generator(this, function (_b) {
342
+ localVarPath = this.basePath + '/api/calendars/generic';
343
+ localVarQueryParameters = {};
344
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
345
+ produces = ['text/plain', 'application/json', 'text/json'];
346
+ // give precedence to 'application/json'
347
+ if (produces.indexOf('application/json') >= 0) {
348
+ localVarHeaderParams.Accept = 'application/json';
349
+ }
350
+ else {
351
+ localVarHeaderParams.Accept = produces.join(',');
352
+ }
353
+ localVarFormParams = {};
354
+ // verify required parameter 'createCalendarRequest' is not null or undefined
355
+ if (createCalendarRequest === null || createCalendarRequest === undefined) {
356
+ throw new Error('Required parameter createCalendarRequest was null or undefined when calling createCalendar.');
357
+ }
358
+ Object.assign(localVarHeaderParams, options.headers);
359
+ localVarUseFormData = false;
360
+ localVarRequestOptions = {
361
+ method: 'POST',
362
+ qs: localVarQueryParameters,
363
+ headers: localVarHeaderParams,
364
+ uri: localVarPath,
365
+ useQuerystring: this._useQuerystring,
366
+ json: true,
367
+ body: models_1.ObjectSerializer.serialize(createCalendarRequest, "CreateCalendarRequest")
368
+ };
369
+ authenticationPromise = Promise.resolve();
370
+ if (this.authentications.oauth2.accessToken) {
371
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.oauth2.applyToRequest(localVarRequestOptions); });
372
+ }
373
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
374
+ interceptorPromise = authenticationPromise;
375
+ _loop_3 = function (interceptor) {
376
+ interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
377
+ };
378
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
379
+ interceptor = _a[_i];
380
+ _loop_3(interceptor);
381
+ }
382
+ return [2 /*return*/, interceptorPromise.then(function () {
383
+ if (Object.keys(localVarFormParams).length) {
384
+ if (localVarUseFormData) {
385
+ localVarRequestOptions.formData = localVarFormParams;
386
+ }
387
+ else {
388
+ localVarRequestOptions.form = localVarFormParams;
389
+ }
390
+ }
391
+ return new Promise(function (resolve, reject) {
392
+ request_1.default(localVarRequestOptions, function (error, response, body) {
393
+ if (error) {
394
+ reject(error);
395
+ }
396
+ else {
397
+ body = models_1.ObjectSerializer.deserialize(body, "Calendar");
398
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
399
+ resolve({ response: response, body: body });
400
+ }
401
+ else {
402
+ reject(new HttpError(response, body, response.statusCode));
403
+ }
404
+ }
405
+ });
406
+ });
407
+ })];
408
+ });
409
+ });
410
+ };
411
+ /**
412
+ * Delete a calendar and all of its respective dates
413
+ * @summary [EARLY ACCESS] DeleteCalendar: Delete a calendar
414
+ * @param scope Scope of the calendar
415
+ * @param code Code of the calendar
416
+ */
417
+ CalendarsApi.prototype.deleteCalendar = function (scope, code, options) {
418
+ if (options === void 0) { options = { headers: {} }; }
419
+ return __awaiter(this, void 0, void 0, function () {
420
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_4, _i, _a, interceptor;
421
+ var _this = this;
422
+ return __generator(this, function (_b) {
423
+ localVarPath = this.basePath + '/api/calendars/generic/{scope}/{code}'
424
+ .replace('{' + 'scope' + '}', encodeURIComponent(String(scope)))
425
+ .replace('{' + 'code' + '}', encodeURIComponent(String(code)));
426
+ localVarQueryParameters = {};
427
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
428
+ produces = ['text/plain', 'application/json', 'text/json'];
429
+ // give precedence to 'application/json'
430
+ if (produces.indexOf('application/json') >= 0) {
431
+ localVarHeaderParams.Accept = 'application/json';
432
+ }
433
+ else {
434
+ localVarHeaderParams.Accept = produces.join(',');
435
+ }
436
+ localVarFormParams = {};
437
+ // verify required parameter 'scope' is not null or undefined
438
+ if (scope === null || scope === undefined) {
439
+ throw new Error('Required parameter scope was null or undefined when calling deleteCalendar.');
440
+ }
441
+ // verify required parameter 'code' is not null or undefined
442
+ if (code === null || code === undefined) {
443
+ throw new Error('Required parameter code was null or undefined when calling deleteCalendar.');
444
+ }
445
+ Object.assign(localVarHeaderParams, options.headers);
446
+ localVarUseFormData = false;
447
+ localVarRequestOptions = {
448
+ method: 'DELETE',
449
+ qs: localVarQueryParameters,
450
+ headers: localVarHeaderParams,
451
+ uri: localVarPath,
452
+ useQuerystring: this._useQuerystring,
453
+ json: true,
454
+ };
455
+ authenticationPromise = Promise.resolve();
456
+ if (this.authentications.oauth2.accessToken) {
457
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.oauth2.applyToRequest(localVarRequestOptions); });
458
+ }
459
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
460
+ interceptorPromise = authenticationPromise;
461
+ _loop_4 = function (interceptor) {
462
+ interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
463
+ };
464
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
465
+ interceptor = _a[_i];
466
+ _loop_4(interceptor);
467
+ }
468
+ return [2 /*return*/, interceptorPromise.then(function () {
469
+ if (Object.keys(localVarFormParams).length) {
470
+ if (localVarUseFormData) {
471
+ localVarRequestOptions.formData = localVarFormParams;
472
+ }
473
+ else {
474
+ localVarRequestOptions.form = localVarFormParams;
475
+ }
476
+ }
477
+ return new Promise(function (resolve, reject) {
478
+ request_1.default(localVarRequestOptions, function (error, response, body) {
479
+ if (error) {
480
+ reject(error);
481
+ }
482
+ else {
483
+ body = models_1.ObjectSerializer.deserialize(body, "Calendar");
484
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
485
+ resolve({ response: response, body: body });
486
+ }
487
+ else {
488
+ reject(new HttpError(response, body, response.statusCode));
489
+ }
490
+ }
491
+ });
492
+ });
493
+ })];
494
+ });
495
+ });
496
+ };
497
+ /**
498
+ * Remove a date from a calendar.
499
+ * @summary [EARLY ACCESS] DeleteDateFromCalendar: Remove a date from a calendar
500
+ * @param scope Scope of the calendar
501
+ * @param code Code of the calendar
502
+ * @param dateId Identifier of the date to be removed
503
+ */
504
+ CalendarsApi.prototype.deleteDateFromCalendar = function (scope, code, dateId, options) {
505
+ if (options === void 0) { options = { headers: {} }; }
506
+ return __awaiter(this, void 0, void 0, function () {
507
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_5, _i, _a, interceptor;
508
+ var _this = this;
509
+ return __generator(this, function (_b) {
510
+ localVarPath = this.basePath + '/api/calendars/generic/{scope}/{code}/dates/{dateId}'
511
+ .replace('{' + 'scope' + '}', encodeURIComponent(String(scope)))
512
+ .replace('{' + 'code' + '}', encodeURIComponent(String(code)))
513
+ .replace('{' + 'dateId' + '}', encodeURIComponent(String(dateId)));
514
+ localVarQueryParameters = {};
515
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
516
+ produces = ['text/plain', 'application/json', 'text/json'];
517
+ // give precedence to 'application/json'
518
+ if (produces.indexOf('application/json') >= 0) {
519
+ localVarHeaderParams.Accept = 'application/json';
520
+ }
521
+ else {
522
+ localVarHeaderParams.Accept = produces.join(',');
523
+ }
524
+ localVarFormParams = {};
525
+ // verify required parameter 'scope' is not null or undefined
526
+ if (scope === null || scope === undefined) {
527
+ throw new Error('Required parameter scope was null or undefined when calling deleteDateFromCalendar.');
528
+ }
529
+ // verify required parameter 'code' is not null or undefined
530
+ if (code === null || code === undefined) {
531
+ throw new Error('Required parameter code was null or undefined when calling deleteDateFromCalendar.');
532
+ }
533
+ // verify required parameter 'dateId' is not null or undefined
534
+ if (dateId === null || dateId === undefined) {
535
+ throw new Error('Required parameter dateId was null or undefined when calling deleteDateFromCalendar.');
536
+ }
537
+ Object.assign(localVarHeaderParams, options.headers);
538
+ localVarUseFormData = false;
539
+ localVarRequestOptions = {
540
+ method: 'DELETE',
541
+ qs: localVarQueryParameters,
542
+ headers: localVarHeaderParams,
543
+ uri: localVarPath,
544
+ useQuerystring: this._useQuerystring,
545
+ json: true,
546
+ };
547
+ authenticationPromise = Promise.resolve();
548
+ if (this.authentications.oauth2.accessToken) {
549
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.oauth2.applyToRequest(localVarRequestOptions); });
550
+ }
551
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
552
+ interceptorPromise = authenticationPromise;
553
+ _loop_5 = function (interceptor) {
554
+ interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
555
+ };
556
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
557
+ interceptor = _a[_i];
558
+ _loop_5(interceptor);
559
+ }
560
+ return [2 /*return*/, interceptorPromise.then(function () {
561
+ if (Object.keys(localVarFormParams).length) {
562
+ if (localVarUseFormData) {
563
+ localVarRequestOptions.formData = localVarFormParams;
564
+ }
565
+ else {
566
+ localVarRequestOptions.form = localVarFormParams;
567
+ }
568
+ }
569
+ return new Promise(function (resolve, reject) {
570
+ request_1.default(localVarRequestOptions, function (error, response, body) {
571
+ if (error) {
572
+ reject(error);
573
+ }
574
+ else {
575
+ body = models_1.ObjectSerializer.deserialize(body, "CalendarDate");
576
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
577
+ resolve({ response: response, body: body });
578
+ }
579
+ else {
580
+ reject(new HttpError(response, body, response.statusCode));
581
+ }
582
+ }
583
+ });
584
+ });
585
+ })];
586
+ });
587
+ });
588
+ };
589
+ /**
590
+ * Returns an ordered array of dates. The dates will only fall on business days as defined by the scope and calendar codes in the valuation schedule. Valuations are made at a frequency defined by the valuation schedule\'s tenor, e.g. every day (\"1D\"), every other week (\"2W\") etc. These dates will be adjusted onto business days as defined by the schedule\'s rollConvention.
591
+ * @summary [EARLY ACCESS] GenerateSchedule: Generate an ordered schedule of dates.
592
+ * @param scope Scope of the calendars to use
593
+ * @param valuationSchedule The ValuationSchedule to generate schedule dates from
594
+ * @param asAt Optional AsAt for searching the calendar store. Defaults to Latest.
595
+ */
596
+ CalendarsApi.prototype.generateSchedule = function (scope, valuationSchedule, asAt, options) {
597
+ if (options === void 0) { options = { headers: {} }; }
598
+ return __awaiter(this, void 0, void 0, function () {
599
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_6, _i, _a, interceptor;
600
+ var _this = this;
601
+ return __generator(this, function (_b) {
602
+ localVarPath = this.basePath + '/api/calendars/schedule/{scope}'
603
+ .replace('{' + 'scope' + '}', encodeURIComponent(String(scope)));
604
+ localVarQueryParameters = {};
605
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
606
+ produces = ['text/plain', 'application/json', 'text/json'];
607
+ // give precedence to 'application/json'
608
+ if (produces.indexOf('application/json') >= 0) {
609
+ localVarHeaderParams.Accept = 'application/json';
610
+ }
611
+ else {
612
+ localVarHeaderParams.Accept = produces.join(',');
613
+ }
614
+ localVarFormParams = {};
615
+ // verify required parameter 'scope' is not null or undefined
616
+ if (scope === null || scope === undefined) {
617
+ throw new Error('Required parameter scope was null or undefined when calling generateSchedule.');
618
+ }
619
+ // verify required parameter 'valuationSchedule' is not null or undefined
620
+ if (valuationSchedule === null || valuationSchedule === undefined) {
621
+ throw new Error('Required parameter valuationSchedule was null or undefined when calling generateSchedule.');
622
+ }
623
+ if (asAt !== undefined) {
624
+ localVarQueryParameters['asAt'] = models_1.ObjectSerializer.serialize(asAt, "Date");
625
+ }
626
+ Object.assign(localVarHeaderParams, options.headers);
627
+ localVarUseFormData = false;
628
+ localVarRequestOptions = {
629
+ method: 'POST',
630
+ qs: localVarQueryParameters,
631
+ headers: localVarHeaderParams,
632
+ uri: localVarPath,
633
+ useQuerystring: this._useQuerystring,
634
+ json: true,
635
+ body: models_1.ObjectSerializer.serialize(valuationSchedule, "ValuationSchedule")
636
+ };
637
+ authenticationPromise = Promise.resolve();
638
+ if (this.authentications.oauth2.accessToken) {
639
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.oauth2.applyToRequest(localVarRequestOptions); });
640
+ }
641
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
642
+ interceptorPromise = authenticationPromise;
643
+ _loop_6 = function (interceptor) {
644
+ interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
645
+ };
646
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
647
+ interceptor = _a[_i];
648
+ _loop_6(interceptor);
649
+ }
650
+ return [2 /*return*/, interceptorPromise.then(function () {
651
+ if (Object.keys(localVarFormParams).length) {
652
+ if (localVarUseFormData) {
653
+ localVarRequestOptions.formData = localVarFormParams;
654
+ }
655
+ else {
656
+ localVarRequestOptions.form = localVarFormParams;
657
+ }
658
+ }
659
+ return new Promise(function (resolve, reject) {
660
+ request_1.default(localVarRequestOptions, function (error, response, body) {
661
+ if (error) {
662
+ reject(error);
663
+ }
664
+ else {
665
+ body = models_1.ObjectSerializer.deserialize(body, "Array<Date>");
666
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
667
+ resolve({ response: response, body: body });
668
+ }
669
+ else {
670
+ reject(new HttpError(response, body, response.statusCode));
671
+ }
672
+ }
673
+ });
674
+ });
675
+ })];
676
+ });
677
+ });
678
+ };
679
+ /**
680
+ * Retrieve a generic calendar by a specific ID at a point in AsAt time
681
+ * @summary [EARLY ACCESS] GetCalendar: Get a calendar in its generic form
682
+ * @param scope Scope of the calendar identifier
683
+ * @param code Code of the calendar identifier
684
+ * @param asAt The AsAt datetime at which to retrieve the calendar
685
+ */
686
+ CalendarsApi.prototype.getCalendar = function (scope, code, asAt, options) {
687
+ if (options === void 0) { options = { headers: {} }; }
688
+ return __awaiter(this, void 0, void 0, function () {
689
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_7, _i, _a, interceptor;
690
+ var _this = this;
691
+ return __generator(this, function (_b) {
692
+ localVarPath = this.basePath + '/api/calendars/generic/{scope}/{code}'
693
+ .replace('{' + 'scope' + '}', encodeURIComponent(String(scope)))
694
+ .replace('{' + 'code' + '}', encodeURIComponent(String(code)));
695
+ localVarQueryParameters = {};
696
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
697
+ produces = ['text/plain', 'application/json', 'text/json'];
698
+ // give precedence to 'application/json'
699
+ if (produces.indexOf('application/json') >= 0) {
700
+ localVarHeaderParams.Accept = 'application/json';
701
+ }
702
+ else {
703
+ localVarHeaderParams.Accept = produces.join(',');
704
+ }
705
+ localVarFormParams = {};
706
+ // verify required parameter 'scope' is not null or undefined
707
+ if (scope === null || scope === undefined) {
708
+ throw new Error('Required parameter scope was null or undefined when calling getCalendar.');
709
+ }
710
+ // verify required parameter 'code' is not null or undefined
711
+ if (code === null || code === undefined) {
712
+ throw new Error('Required parameter code was null or undefined when calling getCalendar.');
713
+ }
714
+ if (asAt !== undefined) {
715
+ localVarQueryParameters['asAt'] = models_1.ObjectSerializer.serialize(asAt, "Date");
716
+ }
717
+ Object.assign(localVarHeaderParams, options.headers);
718
+ localVarUseFormData = false;
719
+ localVarRequestOptions = {
720
+ method: 'GET',
721
+ qs: localVarQueryParameters,
722
+ headers: localVarHeaderParams,
723
+ uri: localVarPath,
724
+ useQuerystring: this._useQuerystring,
725
+ json: true,
726
+ };
727
+ authenticationPromise = Promise.resolve();
728
+ if (this.authentications.oauth2.accessToken) {
729
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.oauth2.applyToRequest(localVarRequestOptions); });
730
+ }
731
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
732
+ interceptorPromise = authenticationPromise;
733
+ _loop_7 = function (interceptor) {
734
+ interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
735
+ };
736
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
737
+ interceptor = _a[_i];
738
+ _loop_7(interceptor);
739
+ }
740
+ return [2 /*return*/, interceptorPromise.then(function () {
741
+ if (Object.keys(localVarFormParams).length) {
742
+ if (localVarUseFormData) {
743
+ localVarRequestOptions.formData = localVarFormParams;
744
+ }
745
+ else {
746
+ localVarRequestOptions.form = localVarFormParams;
747
+ }
748
+ }
749
+ return new Promise(function (resolve, reject) {
750
+ request_1.default(localVarRequestOptions, function (error, response, body) {
751
+ if (error) {
752
+ reject(error);
753
+ }
754
+ else {
755
+ body = models_1.ObjectSerializer.deserialize(body, "Calendar");
756
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
757
+ resolve({ response: response, body: body });
758
+ }
759
+ else {
760
+ reject(new HttpError(response, body, response.statusCode));
761
+ }
762
+ }
763
+ });
764
+ });
765
+ })];
766
+ });
767
+ });
768
+ };
769
+ /**
770
+ * Get dates from a specific calendar within a specific window of effective time, at a point in AsAt time. Providing an id filter can further refine the results.
771
+ * @summary [EARLY ACCESS] GetDates: Get dates for a specific calendar
772
+ * @param scope Scope of the calendar
773
+ * @param code Code of the calendar
774
+ * @param fromEffectiveAt Where the effective window of dates should begin from
775
+ * @param toEffectiveAt Where the effective window of dates should end
776
+ * @param asAt AsAt the dates should be retrieved at
777
+ * @param idFilter An additional filter that will filter dates based on their identifer
778
+ */
779
+ CalendarsApi.prototype.getDates = function (scope, code, fromEffectiveAt, toEffectiveAt, asAt, idFilter, options) {
780
+ if (options === void 0) { options = { headers: {} }; }
781
+ return __awaiter(this, void 0, void 0, function () {
782
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_8, _i, _a, interceptor;
783
+ var _this = this;
784
+ return __generator(this, function (_b) {
785
+ localVarPath = this.basePath + '/api/calendars/generic/{scope}/{code}/dates'
786
+ .replace('{' + 'scope' + '}', encodeURIComponent(String(scope)))
787
+ .replace('{' + 'code' + '}', encodeURIComponent(String(code)));
788
+ localVarQueryParameters = {};
789
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
790
+ produces = ['text/plain', 'application/json', 'text/json'];
791
+ // give precedence to 'application/json'
792
+ if (produces.indexOf('application/json') >= 0) {
793
+ localVarHeaderParams.Accept = 'application/json';
794
+ }
795
+ else {
796
+ localVarHeaderParams.Accept = produces.join(',');
797
+ }
798
+ localVarFormParams = {};
799
+ // verify required parameter 'scope' is not null or undefined
800
+ if (scope === null || scope === undefined) {
801
+ throw new Error('Required parameter scope was null or undefined when calling getDates.');
802
+ }
803
+ // verify required parameter 'code' is not null or undefined
804
+ if (code === null || code === undefined) {
805
+ throw new Error('Required parameter code was null or undefined when calling getDates.');
806
+ }
807
+ if (fromEffectiveAt !== undefined) {
808
+ localVarQueryParameters['fromEffectiveAt'] = models_1.ObjectSerializer.serialize(fromEffectiveAt, "string");
809
+ }
810
+ if (toEffectiveAt !== undefined) {
811
+ localVarQueryParameters['toEffectiveAt'] = models_1.ObjectSerializer.serialize(toEffectiveAt, "string");
812
+ }
813
+ if (asAt !== undefined) {
814
+ localVarQueryParameters['asAt'] = models_1.ObjectSerializer.serialize(asAt, "Date");
815
+ }
816
+ if (idFilter !== undefined) {
817
+ localVarQueryParameters['idFilter'] = models_1.ObjectSerializer.serialize(idFilter, "Array<string>");
818
+ }
819
+ Object.assign(localVarHeaderParams, options.headers);
820
+ localVarUseFormData = false;
821
+ localVarRequestOptions = {
822
+ method: 'GET',
823
+ qs: localVarQueryParameters,
824
+ headers: localVarHeaderParams,
825
+ uri: localVarPath,
826
+ useQuerystring: this._useQuerystring,
827
+ json: true,
828
+ };
829
+ authenticationPromise = Promise.resolve();
830
+ if (this.authentications.oauth2.accessToken) {
831
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.oauth2.applyToRequest(localVarRequestOptions); });
832
+ }
833
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
834
+ interceptorPromise = authenticationPromise;
835
+ _loop_8 = function (interceptor) {
836
+ interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
837
+ };
838
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
839
+ interceptor = _a[_i];
840
+ _loop_8(interceptor);
841
+ }
842
+ return [2 /*return*/, interceptorPromise.then(function () {
843
+ if (Object.keys(localVarFormParams).length) {
844
+ if (localVarUseFormData) {
845
+ localVarRequestOptions.formData = localVarFormParams;
846
+ }
847
+ else {
848
+ localVarRequestOptions.form = localVarFormParams;
849
+ }
850
+ }
851
+ return new Promise(function (resolve, reject) {
852
+ request_1.default(localVarRequestOptions, function (error, response, body) {
853
+ if (error) {
854
+ reject(error);
855
+ }
856
+ else {
857
+ body = models_1.ObjectSerializer.deserialize(body, "ResourceListOfCalendarDate");
858
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
859
+ resolve({ response: response, body: body });
860
+ }
861
+ else {
862
+ reject(new HttpError(response, body, response.statusCode));
863
+ }
864
+ }
865
+ });
866
+ });
867
+ })];
868
+ });
869
+ });
870
+ };
871
+ /**
872
+ * A Business DateTime is defined as a point in time that: * Does not represent a day that overlaps with the calendars WeekendMask * If the calendar is a \"Holiday Calendar\" Does not overlap with any dates in the calendar * If the calendar is a \"TradingHours Calendar\" Does overlap with a date in the calendar All dates specified must be UTC and the upper bound of a calendar is not inclusive e.g. From: 2020-12-25-00-00-00 To: 2020-12-26-00-00-00 IsBusinessDay(2020-12-26-00-00-00) == false
873
+ * @summary [EARLY ACCESS] IsBusinessDateTime: Check whether a DateTime is a \"Business DateTime\"
874
+ * @param dateTime DateTime to check - This DateTime must be UTC
875
+ * @param scope Scope of the calendar
876
+ * @param code Code of the calendar
877
+ * @param asAt AsAt for the request
878
+ */
879
+ CalendarsApi.prototype.isBusinessDateTime = function (dateTime, scope, code, 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_9, _i, _a, interceptor;
883
+ var _this = this;
884
+ return __generator(this, function (_b) {
885
+ localVarPath = this.basePath + '/api/calendars/businessday/{scope}/{code}'
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 'dateTime' is not null or undefined
900
+ if (dateTime === null || dateTime === undefined) {
901
+ throw new Error('Required parameter dateTime was null or undefined when calling isBusinessDateTime.');
902
+ }
903
+ // verify required parameter 'scope' is not null or undefined
904
+ if (scope === null || scope === undefined) {
905
+ throw new Error('Required parameter scope was null or undefined when calling isBusinessDateTime.');
906
+ }
907
+ // verify required parameter 'code' is not null or undefined
908
+ if (code === null || code === undefined) {
909
+ throw new Error('Required parameter code was null or undefined when calling isBusinessDateTime.');
910
+ }
911
+ if (dateTime !== undefined) {
912
+ localVarQueryParameters['dateTime'] = models_1.ObjectSerializer.serialize(dateTime, "Date");
913
+ }
914
+ if (asAt !== undefined) {
915
+ localVarQueryParameters['asAt'] = models_1.ObjectSerializer.serialize(asAt, "Date");
916
+ }
917
+ Object.assign(localVarHeaderParams, options.headers);
918
+ localVarUseFormData = false;
919
+ localVarRequestOptions = {
920
+ method: 'GET',
921
+ qs: localVarQueryParameters,
922
+ headers: localVarHeaderParams,
923
+ uri: localVarPath,
924
+ useQuerystring: this._useQuerystring,
925
+ json: true,
926
+ };
927
+ authenticationPromise = Promise.resolve();
928
+ if (this.authentications.oauth2.accessToken) {
929
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.oauth2.applyToRequest(localVarRequestOptions); });
930
+ }
931
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
932
+ interceptorPromise = authenticationPromise;
933
+ _loop_9 = function (interceptor) {
934
+ interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
935
+ };
936
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
937
+ interceptor = _a[_i];
938
+ _loop_9(interceptor);
939
+ }
940
+ return [2 /*return*/, interceptorPromise.then(function () {
941
+ if (Object.keys(localVarFormParams).length) {
942
+ if (localVarUseFormData) {
943
+ localVarRequestOptions.formData = localVarFormParams;
944
+ }
945
+ else {
946
+ localVarRequestOptions.form = localVarFormParams;
947
+ }
948
+ }
949
+ return new Promise(function (resolve, reject) {
950
+ request_1.default(localVarRequestOptions, function (error, response, body) {
951
+ if (error) {
952
+ reject(error);
953
+ }
954
+ else {
955
+ body = models_1.ObjectSerializer.deserialize(body, "IsBusinessDayResponse");
956
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
957
+ resolve({ response: response, body: body });
958
+ }
959
+ else {
960
+ reject(new HttpError(response, body, response.statusCode));
961
+ }
962
+ }
963
+ });
964
+ });
965
+ })];
966
+ });
967
+ });
968
+ };
969
+ /**
970
+ * List calendars at a point in AsAt time.
971
+ * @summary [EARLY ACCESS] ListCalendars: List Calendars
972
+ * @param asAt The AsAt datetime at which to retrieve the calendars
973
+ * @param page The pagination token to use to continue listing calendars from a previous call to list calendars. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, and asAt fields must not have changed since the original request. Also, if set, a start value cannot be provided.
974
+ * @param limit When paginating, limit the number of returned results to this many.
975
+ * @param filter Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.
976
+ */
977
+ CalendarsApi.prototype.listCalendars = function (asAt, page, limit, filter, options) {
978
+ if (options === void 0) { options = { headers: {} }; }
979
+ return __awaiter(this, void 0, void 0, function () {
980
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_10, _i, _a, interceptor;
981
+ var _this = this;
982
+ return __generator(this, function (_b) {
983
+ localVarPath = this.basePath + '/api/calendars/generic';
984
+ localVarQueryParameters = {};
985
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
986
+ produces = ['text/plain', 'application/json', 'text/json'];
987
+ // give precedence to 'application/json'
988
+ if (produces.indexOf('application/json') >= 0) {
989
+ localVarHeaderParams.Accept = 'application/json';
990
+ }
991
+ else {
992
+ localVarHeaderParams.Accept = produces.join(',');
993
+ }
994
+ localVarFormParams = {};
995
+ if (asAt !== undefined) {
996
+ localVarQueryParameters['asAt'] = models_1.ObjectSerializer.serialize(asAt, "Date");
997
+ }
998
+ if (page !== undefined) {
999
+ localVarQueryParameters['page'] = models_1.ObjectSerializer.serialize(page, "string");
1000
+ }
1001
+ if (limit !== undefined) {
1002
+ localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
1003
+ }
1004
+ if (filter !== undefined) {
1005
+ localVarQueryParameters['filter'] = models_1.ObjectSerializer.serialize(filter, "string");
1006
+ }
1007
+ Object.assign(localVarHeaderParams, options.headers);
1008
+ localVarUseFormData = false;
1009
+ localVarRequestOptions = {
1010
+ method: 'GET',
1011
+ qs: localVarQueryParameters,
1012
+ headers: localVarHeaderParams,
1013
+ uri: localVarPath,
1014
+ useQuerystring: this._useQuerystring,
1015
+ json: true,
1016
+ };
1017
+ authenticationPromise = Promise.resolve();
1018
+ if (this.authentications.oauth2.accessToken) {
1019
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.oauth2.applyToRequest(localVarRequestOptions); });
1020
+ }
1021
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
1022
+ interceptorPromise = authenticationPromise;
1023
+ _loop_10 = function (interceptor) {
1024
+ interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
1025
+ };
1026
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1027
+ interceptor = _a[_i];
1028
+ _loop_10(interceptor);
1029
+ }
1030
+ return [2 /*return*/, interceptorPromise.then(function () {
1031
+ if (Object.keys(localVarFormParams).length) {
1032
+ if (localVarUseFormData) {
1033
+ localVarRequestOptions.formData = localVarFormParams;
1034
+ }
1035
+ else {
1036
+ localVarRequestOptions.form = localVarFormParams;
1037
+ }
1038
+ }
1039
+ return new Promise(function (resolve, reject) {
1040
+ request_1.default(localVarRequestOptions, function (error, response, body) {
1041
+ if (error) {
1042
+ reject(error);
1043
+ }
1044
+ else {
1045
+ body = models_1.ObjectSerializer.deserialize(body, "PagedResourceListOfCalendar");
1046
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1047
+ resolve({ response: response, body: body });
1048
+ }
1049
+ else {
1050
+ reject(new HttpError(response, body, response.statusCode));
1051
+ }
1052
+ }
1053
+ });
1054
+ });
1055
+ })];
1056
+ });
1057
+ });
1058
+ };
1059
+ /**
1060
+ * List calendars at a point in AsAt time.
1061
+ * @summary [EARLY ACCESS] ListCalendarsInScope: List all calenders in a specified scope
1062
+ * @param scope Scope of the calendars
1063
+ * @param asAt The AsAt datetime at which to retrieve the calendars
1064
+ * @param page The pagination token to use to continue listing calendars from a previous call to list calendars. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, and asAt fields must not have changed since the original request. Also, if set, a start value cannot be provided.
1065
+ * @param start When paginating, skip this number of results.
1066
+ * @param limit When paginating, limit the number of returned results to this many.
1067
+ * @param filter Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.
1068
+ */
1069
+ CalendarsApi.prototype.listCalendarsInScope = function (scope, asAt, page, start, limit, filter, options) {
1070
+ if (options === void 0) { options = { headers: {} }; }
1071
+ return __awaiter(this, void 0, void 0, function () {
1072
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_11, _i, _a, interceptor;
1073
+ var _this = this;
1074
+ return __generator(this, function (_b) {
1075
+ localVarPath = this.basePath + '/api/calendars/generic/{scope}'
1076
+ .replace('{' + 'scope' + '}', encodeURIComponent(String(scope)));
1077
+ localVarQueryParameters = {};
1078
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1079
+ produces = ['text/plain', 'application/json', 'text/json'];
1080
+ // give precedence to 'application/json'
1081
+ if (produces.indexOf('application/json') >= 0) {
1082
+ localVarHeaderParams.Accept = 'application/json';
1083
+ }
1084
+ else {
1085
+ localVarHeaderParams.Accept = produces.join(',');
1086
+ }
1087
+ localVarFormParams = {};
1088
+ // verify required parameter 'scope' is not null or undefined
1089
+ if (scope === null || scope === undefined) {
1090
+ throw new Error('Required parameter scope was null or undefined when calling listCalendarsInScope.');
1091
+ }
1092
+ if (asAt !== undefined) {
1093
+ localVarQueryParameters['asAt'] = models_1.ObjectSerializer.serialize(asAt, "Date");
1094
+ }
1095
+ if (page !== undefined) {
1096
+ localVarQueryParameters['page'] = models_1.ObjectSerializer.serialize(page, "string");
1097
+ }
1098
+ if (start !== undefined) {
1099
+ localVarQueryParameters['start'] = models_1.ObjectSerializer.serialize(start, "number");
1100
+ }
1101
+ if (limit !== undefined) {
1102
+ localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
1103
+ }
1104
+ if (filter !== undefined) {
1105
+ localVarQueryParameters['filter'] = models_1.ObjectSerializer.serialize(filter, "string");
1106
+ }
1107
+ Object.assign(localVarHeaderParams, options.headers);
1108
+ localVarUseFormData = false;
1109
+ localVarRequestOptions = {
1110
+ method: 'GET',
1111
+ qs: localVarQueryParameters,
1112
+ headers: localVarHeaderParams,
1113
+ uri: localVarPath,
1114
+ useQuerystring: this._useQuerystring,
1115
+ json: true,
1116
+ };
1117
+ authenticationPromise = Promise.resolve();
1118
+ if (this.authentications.oauth2.accessToken) {
1119
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.oauth2.applyToRequest(localVarRequestOptions); });
1120
+ }
1121
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
1122
+ interceptorPromise = authenticationPromise;
1123
+ _loop_11 = function (interceptor) {
1124
+ interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
1125
+ };
1126
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1127
+ interceptor = _a[_i];
1128
+ _loop_11(interceptor);
1129
+ }
1130
+ return [2 /*return*/, interceptorPromise.then(function () {
1131
+ if (Object.keys(localVarFormParams).length) {
1132
+ if (localVarUseFormData) {
1133
+ localVarRequestOptions.formData = localVarFormParams;
1134
+ }
1135
+ else {
1136
+ localVarRequestOptions.form = localVarFormParams;
1137
+ }
1138
+ }
1139
+ return new Promise(function (resolve, reject) {
1140
+ request_1.default(localVarRequestOptions, function (error, response, body) {
1141
+ if (error) {
1142
+ reject(error);
1143
+ }
1144
+ else {
1145
+ body = models_1.ObjectSerializer.deserialize(body, "PagedResourceListOfCalendar");
1146
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1147
+ resolve({ response: response, body: body });
1148
+ }
1149
+ else {
1150
+ reject(new HttpError(response, body, response.statusCode));
1151
+ }
1152
+ }
1153
+ });
1154
+ });
1155
+ })];
1156
+ });
1157
+ });
1158
+ };
1159
+ /**
1160
+ * Update the calendars WeekendMask, SourceProvider or Properties
1161
+ * @summary [EARLY ACCESS] UpdateCalendar: Update a calendar
1162
+ * @param scope Scope of the request
1163
+ * @param code Code of the request
1164
+ * @param updateCalendarRequest The new state of the calendar
1165
+ */
1166
+ CalendarsApi.prototype.updateCalendar = function (scope, code, updateCalendarRequest, options) {
1167
+ if (options === void 0) { options = { headers: {} }; }
1168
+ return __awaiter(this, void 0, void 0, function () {
1169
+ var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_12, _i, _a, interceptor;
1170
+ var _this = this;
1171
+ return __generator(this, function (_b) {
1172
+ localVarPath = this.basePath + '/api/calendars/generic/{scope}/{code}'
1173
+ .replace('{' + 'scope' + '}', encodeURIComponent(String(scope)))
1174
+ .replace('{' + 'code' + '}', encodeURIComponent(String(code)));
1175
+ localVarQueryParameters = {};
1176
+ localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1177
+ produces = ['text/plain', 'application/json', 'text/json'];
1178
+ // give precedence to 'application/json'
1179
+ if (produces.indexOf('application/json') >= 0) {
1180
+ localVarHeaderParams.Accept = 'application/json';
1181
+ }
1182
+ else {
1183
+ localVarHeaderParams.Accept = produces.join(',');
1184
+ }
1185
+ localVarFormParams = {};
1186
+ // verify required parameter 'scope' is not null or undefined
1187
+ if (scope === null || scope === undefined) {
1188
+ throw new Error('Required parameter scope was null or undefined when calling updateCalendar.');
1189
+ }
1190
+ // verify required parameter 'code' is not null or undefined
1191
+ if (code === null || code === undefined) {
1192
+ throw new Error('Required parameter code was null or undefined when calling updateCalendar.');
1193
+ }
1194
+ // verify required parameter 'updateCalendarRequest' is not null or undefined
1195
+ if (updateCalendarRequest === null || updateCalendarRequest === undefined) {
1196
+ throw new Error('Required parameter updateCalendarRequest was null or undefined when calling updateCalendar.');
1197
+ }
1198
+ Object.assign(localVarHeaderParams, options.headers);
1199
+ localVarUseFormData = false;
1200
+ localVarRequestOptions = {
1201
+ method: 'POST',
1202
+ qs: localVarQueryParameters,
1203
+ headers: localVarHeaderParams,
1204
+ uri: localVarPath,
1205
+ useQuerystring: this._useQuerystring,
1206
+ json: true,
1207
+ body: models_1.ObjectSerializer.serialize(updateCalendarRequest, "UpdateCalendarRequest")
1208
+ };
1209
+ authenticationPromise = Promise.resolve();
1210
+ if (this.authentications.oauth2.accessToken) {
1211
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.oauth2.applyToRequest(localVarRequestOptions); });
1212
+ }
1213
+ authenticationPromise = authenticationPromise.then(function () { return _this.authentications.default.applyToRequest(localVarRequestOptions); });
1214
+ interceptorPromise = authenticationPromise;
1215
+ _loop_12 = function (interceptor) {
1216
+ interceptorPromise = interceptorPromise.then(function () { return interceptor(localVarRequestOptions); });
1217
+ };
1218
+ for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
1219
+ interceptor = _a[_i];
1220
+ _loop_12(interceptor);
1221
+ }
1222
+ return [2 /*return*/, interceptorPromise.then(function () {
1223
+ if (Object.keys(localVarFormParams).length) {
1224
+ if (localVarUseFormData) {
1225
+ localVarRequestOptions.formData = localVarFormParams;
1226
+ }
1227
+ else {
1228
+ localVarRequestOptions.form = localVarFormParams;
1229
+ }
1230
+ }
1231
+ return new Promise(function (resolve, reject) {
1232
+ request_1.default(localVarRequestOptions, function (error, response, body) {
1233
+ if (error) {
1234
+ reject(error);
1235
+ }
1236
+ else {
1237
+ body = models_1.ObjectSerializer.deserialize(body, "Calendar");
1238
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1239
+ resolve({ response: response, body: body });
1240
+ }
1241
+ else {
1242
+ reject(new HttpError(response, body, response.statusCode));
1243
+ }
1244
+ }
1245
+ });
1246
+ });
1247
+ })];
1248
+ });
1249
+ });
1250
+ };
1251
+ return CalendarsApi;
1252
+ }());
1253
+ exports.CalendarsApi = CalendarsApi;