vayu-ts 0.2.6 → 0.2.7-test

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 (300) hide show
  1. package/dist/openapi/apis/AuthApi.js +47 -61
  2. package/dist/openapi/apis/ContractsApi.js +203 -232
  3. package/dist/openapi/apis/CreditsApi.js +162 -186
  4. package/dist/openapi/apis/CustomersApi.d.ts +15 -0
  5. package/dist/openapi/apis/CustomersApi.js +378 -353
  6. package/dist/openapi/apis/EventsApi.js +282 -316
  7. package/dist/openapi/apis/IntegrationsApi.js +105 -124
  8. package/dist/openapi/apis/InvoicesApi.js +100 -119
  9. package/dist/openapi/apis/MetersApi.js +211 -240
  10. package/dist/openapi/apis/PlansApi.js +150 -174
  11. package/dist/openapi/apis/ProductConsumptionsApi.d.ts +25 -0
  12. package/dist/openapi/apis/ProductConsumptionsApi.js +82 -0
  13. package/dist/openapi/apis/ReportsApi.js +100 -119
  14. package/dist/openapi/apis/WebhooksApi.js +55 -69
  15. package/dist/openapi/auth/auth.d.ts +1 -0
  16. package/dist/openapi/auth/auth.js +2 -13
  17. package/dist/openapi/http/http.d.ts +7 -20
  18. package/dist/openapi/http/http.js +15 -25
  19. package/dist/openapi/index.d.ts +3 -3
  20. package/dist/openapi/index.js +2 -1
  21. package/dist/openapi/models/Address.d.ts +3 -0
  22. package/dist/openapi/models/Address.js +1 -0
  23. package/dist/openapi/models/AggregationMethod.d.ts +3 -0
  24. package/dist/openapi/models/AggregationMethod.js +1 -0
  25. package/dist/openapi/models/Condition.d.ts +3 -0
  26. package/dist/openapi/models/Condition.js +1 -0
  27. package/dist/openapi/models/Contact.d.ts +4 -1
  28. package/dist/openapi/models/Contact.js +3 -2
  29. package/dist/openapi/models/ContractStatus.d.ts +1 -0
  30. package/dist/openapi/models/ContractStatus.js +1 -0
  31. package/dist/openapi/models/CreateContractRequest.d.ts +3 -0
  32. package/dist/openapi/models/CreateContractRequest.js +1 -0
  33. package/dist/openapi/models/CreateContractResponse.d.ts +3 -0
  34. package/dist/openapi/models/CreateContractResponse.js +1 -0
  35. package/dist/openapi/models/CreateCustomerRequest.d.ts +3 -0
  36. package/dist/openapi/models/CreateCustomerRequest.js +1 -0
  37. package/dist/openapi/models/CreateCustomerResponse.d.ts +3 -0
  38. package/dist/openapi/models/CreateCustomerResponse.js +1 -0
  39. package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +3 -0
  40. package/dist/openapi/models/CreateCustomerResponseCustomer.js +1 -0
  41. package/dist/openapi/models/CreditLedgerEntry.d.ts +3 -0
  42. package/dist/openapi/models/CreditLedgerEntry.js +1 -0
  43. package/dist/openapi/models/Criterion.d.ts +3 -0
  44. package/dist/openapi/models/Criterion.js +1 -0
  45. package/dist/openapi/models/CriterionOperator.d.ts +3 -1
  46. package/dist/openapi/models/CriterionOperator.js +2 -0
  47. package/dist/openapi/models/DeductCreditsRequest.d.ts +3 -0
  48. package/dist/openapi/models/DeductCreditsRequest.js +1 -0
  49. package/dist/openapi/models/DeleteContractResponse.d.ts +3 -0
  50. package/dist/openapi/models/DeleteContractResponse.js +1 -0
  51. package/dist/openapi/models/DeleteContractResponseContract.d.ts +3 -0
  52. package/dist/openapi/models/DeleteContractResponseContract.js +1 -0
  53. package/dist/openapi/models/DeleteCustomerResponse.d.ts +3 -0
  54. package/dist/openapi/models/DeleteCustomerResponse.js +1 -0
  55. package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +3 -0
  56. package/dist/openapi/models/DeleteCustomerResponseCustomer.js +1 -0
  57. package/dist/openapi/models/DeleteEventResponse.d.ts +3 -0
  58. package/dist/openapi/models/DeleteEventResponse.js +1 -0
  59. package/dist/openapi/models/DeleteEventResponseEvent.d.ts +3 -0
  60. package/dist/openapi/models/DeleteEventResponseEvent.js +1 -0
  61. package/dist/openapi/models/DeleteMeterResponse.d.ts +3 -0
  62. package/dist/openapi/models/DeleteMeterResponse.js +1 -0
  63. package/dist/openapi/models/DeleteMeterResponseMeter.d.ts +3 -0
  64. package/dist/openapi/models/DeleteMeterResponseMeter.js +1 -0
  65. package/dist/openapi/models/DeletePlanResponse.d.ts +3 -0
  66. package/dist/openapi/models/DeletePlanResponse.js +1 -0
  67. package/dist/openapi/models/DeletePlanResponsePlan.d.ts +3 -0
  68. package/dist/openapi/models/DeletePlanResponsePlan.js +1 -0
  69. package/dist/openapi/models/Event.d.ts +3 -0
  70. package/dist/openapi/models/Event.js +1 -0
  71. package/dist/openapi/models/EventsDryRunRequest.d.ts +3 -0
  72. package/dist/openapi/models/EventsDryRunRequest.js +1 -0
  73. package/dist/openapi/models/EventsDryRunResponse.d.ts +3 -0
  74. package/dist/openapi/models/EventsDryRunResponse.js +1 -0
  75. package/dist/openapi/models/EventsDryRunResponseObject.d.ts +3 -0
  76. package/dist/openapi/models/EventsDryRunResponseObject.js +1 -0
  77. package/dist/openapi/models/EventsDryRunResponseObjectEvent.d.ts +3 -0
  78. package/dist/openapi/models/EventsDryRunResponseObjectEvent.js +1 -0
  79. package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.d.ts +3 -0
  80. package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.js +1 -0
  81. package/dist/openapi/models/Filter.d.ts +3 -0
  82. package/dist/openapi/models/Filter.js +1 -0
  83. package/dist/openapi/models/FullDayPeriod.d.ts +3 -0
  84. package/dist/openapi/models/FullDayPeriod.js +1 -0
  85. package/dist/openapi/models/GetCommitmentReportResponse.d.ts +5 -0
  86. package/dist/openapi/models/GetCommitmentReportResponse.js +13 -0
  87. package/dist/openapi/models/GetContractResponse.d.ts +3 -0
  88. package/dist/openapi/models/GetContractResponse.js +1 -0
  89. package/dist/openapi/models/GetContractResponseContract.d.ts +3 -0
  90. package/dist/openapi/models/GetContractResponseContract.js +1 -0
  91. package/dist/openapi/models/GetCustomerProductsConsumptionsResponse.d.ts +32 -0
  92. package/dist/openapi/models/GetCustomerProductsConsumptionsResponse.js +32 -0
  93. package/dist/openapi/models/GetCustomerResponse.d.ts +3 -0
  94. package/dist/openapi/models/GetCustomerResponse.js +1 -0
  95. package/dist/openapi/models/GetEventResponse.d.ts +3 -0
  96. package/dist/openapi/models/GetEventResponse.js +1 -0
  97. package/dist/openapi/models/GetEventResponseEvent.d.ts +3 -0
  98. package/dist/openapi/models/GetEventResponseEvent.js +1 -0
  99. package/dist/openapi/models/GetInvoiceResponse.d.ts +3 -0
  100. package/dist/openapi/models/GetInvoiceResponse.js +1 -0
  101. package/dist/openapi/models/GetInvoiceResponseInvoice.d.ts +3 -0
  102. package/dist/openapi/models/GetInvoiceResponseInvoice.js +1 -0
  103. package/dist/openapi/models/GetMeterResponse.d.ts +3 -0
  104. package/dist/openapi/models/GetMeterResponse.js +1 -0
  105. package/dist/openapi/models/GetMeterResponseMeter.d.ts +3 -0
  106. package/dist/openapi/models/GetMeterResponseMeter.js +1 -0
  107. package/dist/openapi/models/GetPlanResponse.d.ts +3 -0
  108. package/dist/openapi/models/GetPlanResponse.js +1 -0
  109. package/dist/openapi/models/GetPlanResponsePlan.d.ts +3 -0
  110. package/dist/openapi/models/GetPlanResponsePlan.js +1 -0
  111. package/dist/openapi/models/GetProductConsumptionResponse.d.ts +32 -0
  112. package/dist/openapi/models/GetProductConsumptionResponse.js +32 -0
  113. package/dist/openapi/models/GetProductConsumptionResponseProductConsumption.d.ts +59 -0
  114. package/dist/openapi/models/GetProductConsumptionResponseProductConsumption.js +74 -0
  115. package/dist/openapi/models/GetProductsUsageReportResponse.d.ts +5 -0
  116. package/dist/openapi/models/GetProductsUsageReportResponse.js +13 -0
  117. package/dist/openapi/models/GrantCreditsRequest.d.ts +3 -0
  118. package/dist/openapi/models/GrantCreditsRequest.js +1 -0
  119. package/dist/openapi/models/InvalidEvent.d.ts +3 -0
  120. package/dist/openapi/models/InvalidEvent.js +1 -0
  121. package/dist/openapi/models/LineItem.d.ts +3 -0
  122. package/dist/openapi/models/LineItem.js +1 -0
  123. package/dist/openapi/models/LineItemRevenueBreakdown.d.ts +3 -0
  124. package/dist/openapi/models/LineItemRevenueBreakdown.js +1 -0
  125. package/dist/openapi/models/ListContractsResponse.d.ts +3 -0
  126. package/dist/openapi/models/ListContractsResponse.js +1 -0
  127. package/dist/openapi/models/ListCreditLedgerEntriesResponse.d.ts +3 -0
  128. package/dist/openapi/models/ListCreditLedgerEntriesResponse.js +1 -0
  129. package/dist/openapi/models/ListCustomersResponse.d.ts +3 -0
  130. package/dist/openapi/models/ListCustomersResponse.js +1 -0
  131. package/dist/openapi/models/ListInvoicesResponse.d.ts +3 -0
  132. package/dist/openapi/models/ListInvoicesResponse.js +1 -0
  133. package/dist/openapi/models/ListMetersResponse.d.ts +3 -0
  134. package/dist/openapi/models/ListMetersResponse.js +1 -0
  135. package/dist/openapi/models/ListPlansResponse.d.ts +3 -0
  136. package/dist/openapi/models/ListPlansResponse.js +1 -0
  137. package/dist/openapi/models/LoginRequest.d.ts +3 -0
  138. package/dist/openapi/models/LoginRequest.js +1 -0
  139. package/dist/openapi/models/LoginResponse.d.ts +3 -0
  140. package/dist/openapi/models/LoginResponse.js +1 -0
  141. package/dist/openapi/models/Meter.d.ts +3 -0
  142. package/dist/openapi/models/Meter.js +1 -0
  143. package/dist/openapi/models/NetSuiteExportSalesOrderRequest.d.ts +3 -0
  144. package/dist/openapi/models/NetSuiteExportSalesOrderRequest.js +1 -0
  145. package/dist/openapi/models/NetSuiteSyncInvoicesRequest.d.ts +3 -0
  146. package/dist/openapi/models/NetSuiteSyncInvoicesRequest.js +1 -0
  147. package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.d.ts +3 -0
  148. package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.js +1 -0
  149. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataEntity.d.ts +3 -0
  150. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataEntity.js +1 -0
  151. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.d.ts +3 -0
  152. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.js +1 -0
  153. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.d.ts +3 -0
  154. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.js +1 -0
  155. package/dist/openapi/models/NetSuiteSyncInvoicesResponse.d.ts +3 -0
  156. package/dist/openapi/models/NetSuiteSyncInvoicesResponse.js +1 -0
  157. package/dist/openapi/models/NotificationEventType.d.ts +2 -1
  158. package/dist/openapi/models/NotificationEventType.js +1 -0
  159. package/dist/openapi/models/ObjectSerializer.d.ts +6 -0
  160. package/dist/openapi/models/ObjectSerializer.js +68 -11
  161. package/dist/openapi/models/PlanBillingData.d.ts +5 -1
  162. package/dist/openapi/models/PlanBillingData.js +2 -1
  163. package/dist/openapi/models/PlanDuration.d.ts +30 -0
  164. package/dist/openapi/models/PlanDuration.js +25 -0
  165. package/dist/openapi/models/ProductConsumption.d.ts +59 -0
  166. package/dist/openapi/models/ProductConsumption.js +74 -0
  167. package/dist/openapi/models/QueryEventsResponse.d.ts +3 -0
  168. package/dist/openapi/models/QueryEventsResponse.js +1 -0
  169. package/dist/openapi/models/QueryEventsResponseEventsInner.d.ts +3 -0
  170. package/dist/openapi/models/QueryEventsResponseEventsInner.js +1 -0
  171. package/dist/openapi/models/SendEventsRequest.d.ts +3 -0
  172. package/dist/openapi/models/SendEventsRequest.js +1 -0
  173. package/dist/openapi/models/SendEventsResponse.d.ts +3 -0
  174. package/dist/openapi/models/SendEventsResponse.js +1 -0
  175. package/dist/openapi/models/UnlimitedDuration.d.ts +14 -0
  176. package/dist/openapi/models/UnlimitedDuration.js +18 -0
  177. package/dist/openapi/models/UpdateCustomerRequest.d.ts +3 -0
  178. package/dist/openapi/models/UpdateCustomerRequest.js +1 -0
  179. package/dist/openapi/models/UpdateCustomerResponse.d.ts +3 -0
  180. package/dist/openapi/models/UpdateCustomerResponse.js +1 -0
  181. package/dist/openapi/models/UpdateMeterRequest.d.ts +3 -0
  182. package/dist/openapi/models/UpdateMeterRequest.js +1 -0
  183. package/dist/openapi/models/UpdateMeterResponse.d.ts +3 -0
  184. package/dist/openapi/models/UpdateMeterResponse.js +1 -0
  185. package/dist/openapi/models/WebhookSubscribeRequest.d.ts +3 -0
  186. package/dist/openapi/models/WebhookSubscribeRequest.js +1 -0
  187. package/dist/openapi/models/all.d.ts +6 -0
  188. package/dist/openapi/models/all.js +6 -0
  189. package/dist/openapi/servers.js +2 -3
  190. package/dist/openapi/types/ObservableAPI.d.ts +71 -38
  191. package/dist/openapi/types/ObservableAPI.js +172 -105
  192. package/dist/openapi/types/PromiseAPI.d.ts +69 -38
  193. package/dist/openapi/types/PromiseAPI.js +85 -42
  194. package/dist/openapi-v2/apis/AuthenticationApi.js +35 -49
  195. package/dist/openapi-v2/apis/CustomersApi.js +230 -269
  196. package/dist/openapi-v2/apis/EntitlementsApi.js +98 -122
  197. package/dist/openapi-v2/apis/EventsApi.js +136 -165
  198. package/dist/openapi-v2/apis/InvoicesApi.js +214 -253
  199. package/dist/openapi-v2/apis/ProductsApi.js +182 -216
  200. package/dist/openapi-v2/auth/auth.d.ts +1 -0
  201. package/dist/openapi-v2/http/http.d.ts +7 -20
  202. package/dist/openapi-v2/http/http.js +15 -25
  203. package/dist/openapi-v2/index.d.ts +2 -2
  204. package/dist/openapi-v2/models/APICreateCustomerPayload.d.ts +3 -0
  205. package/dist/openapi-v2/models/APICreateCustomerPayload.js +1 -0
  206. package/dist/openapi-v2/models/APICreateInvoicePayload.d.ts +3 -0
  207. package/dist/openapi-v2/models/APICreateInvoicePayload.js +1 -0
  208. package/dist/openapi-v2/models/APICreateProductPayload.d.ts +3 -0
  209. package/dist/openapi-v2/models/APICreateProductPayload.js +1 -0
  210. package/dist/openapi-v2/models/APICustomer.d.ts +3 -0
  211. package/dist/openapi-v2/models/APICustomer.js +1 -0
  212. package/dist/openapi-v2/models/APIEntitlement.d.ts +3 -0
  213. package/dist/openapi-v2/models/APIEntitlement.js +1 -0
  214. package/dist/openapi-v2/models/APIEvent.d.ts +3 -0
  215. package/dist/openapi-v2/models/APIEvent.js +1 -0
  216. package/dist/openapi-v2/models/APIIngestEventPayload.d.ts +3 -0
  217. package/dist/openapi-v2/models/APIIngestEventPayload.js +1 -0
  218. package/dist/openapi-v2/models/APIInvoice.d.ts +3 -0
  219. package/dist/openapi-v2/models/APIInvoice.js +1 -0
  220. package/dist/openapi-v2/models/APIInvoiceBillingPeriod.d.ts +3 -0
  221. package/dist/openapi-v2/models/APIInvoiceBillingPeriod.js +1 -0
  222. package/dist/openapi-v2/models/APIProduct.d.ts +3 -0
  223. package/dist/openapi-v2/models/APIProduct.js +1 -0
  224. package/dist/openapi-v2/models/APIQueryPayloadAPICustomer.d.ts +3 -0
  225. package/dist/openapi-v2/models/APIQueryPayloadAPICustomer.js +1 -0
  226. package/dist/openapi-v2/models/APIQueryPayloadAPIEntitlement.d.ts +3 -0
  227. package/dist/openapi-v2/models/APIQueryPayloadAPIEntitlement.js +1 -0
  228. package/dist/openapi-v2/models/APIQueryPayloadAPIEvent.d.ts +3 -0
  229. package/dist/openapi-v2/models/APIQueryPayloadAPIEvent.js +1 -0
  230. package/dist/openapi-v2/models/APIQueryPayloadAPIInvoice.d.ts +3 -0
  231. package/dist/openapi-v2/models/APIQueryPayloadAPIInvoice.js +1 -0
  232. package/dist/openapi-v2/models/APIQueryPayloadAPIProduct.d.ts +3 -0
  233. package/dist/openapi-v2/models/APIQueryPayloadAPIProduct.js +1 -0
  234. package/dist/openapi-v2/models/APIUpdateCustomerPayload.d.ts +3 -0
  235. package/dist/openapi-v2/models/APIUpdateCustomerPayload.js +1 -0
  236. package/dist/openapi-v2/models/APIUpdateInvoicePayload.d.ts +3 -0
  237. package/dist/openapi-v2/models/APIUpdateInvoicePayload.js +1 -0
  238. package/dist/openapi-v2/models/APIUpdateProductPayload.d.ts +3 -0
  239. package/dist/openapi-v2/models/APIUpdateProductPayload.js +1 -0
  240. package/dist/openapi-v2/models/Aggregation.d.ts +3 -0
  241. package/dist/openapi-v2/models/Aggregation.js +1 -0
  242. package/dist/openapi-v2/models/Condition.d.ts +3 -0
  243. package/dist/openapi-v2/models/Condition.js +1 -0
  244. package/dist/openapi-v2/models/Criterion.d.ts +3 -0
  245. package/dist/openapi-v2/models/Criterion.js +1 -0
  246. package/dist/openapi-v2/models/CriterionValue.d.ts +3 -0
  247. package/dist/openapi-v2/models/CriterionValue.js +1 -0
  248. package/dist/openapi-v2/models/EntitlementRevision.d.ts +3 -0
  249. package/dist/openapi-v2/models/EntitlementRevision.js +1 -0
  250. package/dist/openapi-v2/models/IngestEventToTheSystem201Response.d.ts +3 -0
  251. package/dist/openapi-v2/models/IngestEventToTheSystem201Response.js +1 -0
  252. package/dist/openapi-v2/models/InvoiceProductBreakdown.d.ts +3 -0
  253. package/dist/openapi-v2/models/InvoiceProductBreakdown.js +1 -0
  254. package/dist/openapi-v2/models/Login200Response.d.ts +3 -0
  255. package/dist/openapi-v2/models/Login200Response.js +1 -0
  256. package/dist/openapi-v2/models/LoginRequest.d.ts +3 -0
  257. package/dist/openapi-v2/models/LoginRequest.js +1 -0
  258. package/dist/openapi-v2/models/ObjectSerializer.js +51 -11
  259. package/dist/openapi-v2/models/Pricing.d.ts +3 -0
  260. package/dist/openapi-v2/models/Pricing.js +1 -0
  261. package/dist/openapi-v2/models/PricingTiersInner.d.ts +3 -0
  262. package/dist/openapi-v2/models/PricingTiersInner.js +1 -0
  263. package/dist/openapi-v2/models/ProductBreakdown.d.ts +3 -0
  264. package/dist/openapi-v2/models/ProductBreakdown.js +1 -0
  265. package/dist/openapi-v2/models/QueryResultAPICustomer.d.ts +3 -0
  266. package/dist/openapi-v2/models/QueryResultAPICustomer.js +1 -0
  267. package/dist/openapi-v2/models/QueryResultAPIEntitlement.d.ts +3 -0
  268. package/dist/openapi-v2/models/QueryResultAPIEntitlement.js +1 -0
  269. package/dist/openapi-v2/models/QueryResultAPIEvent.d.ts +3 -0
  270. package/dist/openapi-v2/models/QueryResultAPIEvent.js +1 -0
  271. package/dist/openapi-v2/models/QueryResultAPIInvoice.d.ts +3 -0
  272. package/dist/openapi-v2/models/QueryResultAPIInvoice.js +1 -0
  273. package/dist/openapi-v2/models/QueryResultAPIProduct.d.ts +3 -0
  274. package/dist/openapi-v2/models/QueryResultAPIProduct.js +1 -0
  275. package/dist/openapi-v2/models/ReviseEntitlementPayload.d.ts +3 -0
  276. package/dist/openapi-v2/models/ReviseEntitlementPayload.js +1 -0
  277. package/dist/openapi-v2/servers.js +2 -3
  278. package/dist/openapi-v2/types/ObservableAPI.js +50 -50
  279. package/dist/sdk/clients/ContractsClient.js +10 -27
  280. package/dist/sdk/clients/CustomersClient.js +14 -35
  281. package/dist/sdk/clients/EventsClient.js +13 -32
  282. package/dist/sdk/clients/InvoicesClient.js +6 -19
  283. package/dist/sdk/clients/MetersClient.js +10 -27
  284. package/dist/sdk/clients/PlansClient.js +8 -23
  285. package/dist/sdk/clients/ProductsConsumptionsClient.d.ts +5 -0
  286. package/dist/sdk/clients/ProductsConsumptionsClient.js +14 -0
  287. package/dist/sdk/clients/WebhooksClient.js +2 -13
  288. package/dist/sdk/clients/index.d.ts +1 -0
  289. package/dist/sdk/clients/index.js +1 -0
  290. package/dist/sdk/index.d.ts +2 -1
  291. package/dist/sdk/index.js +5 -13
  292. package/dist/sdk/services/configuration.service.js +21 -33
  293. package/dist/sdk-v2/clients/CustomersClient.js +12 -33
  294. package/dist/sdk-v2/clients/EntitlementsClient.js +6 -21
  295. package/dist/sdk-v2/clients/EventsClient.js +8 -25
  296. package/dist/sdk-v2/clients/InvoicesClient.js +12 -33
  297. package/dist/sdk-v2/clients/ProductsClient.js +10 -29
  298. package/dist/sdk-v2/index.js +2 -13
  299. package/dist/sdk-v2/services/configuration.service.js +22 -34
  300. package/package.json +1 -1
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.EventsApiResponseProcessor = exports.EventsApiRequestFactory = void 0;
13
4
  // TODO: better import syntax?
@@ -25,64 +16,58 @@ class EventsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
25
16
  * Delete an event by refId
26
17
  * @param refId
27
18
  */
28
- deleteEventByRefId(refId, _options) {
29
- var _a, _b, _c;
30
- return __awaiter(this, void 0, void 0, function* () {
31
- let _config = _options || this.configuration;
32
- // verify required parameter 'refId' is not null or undefined
33
- if (refId === null || refId === undefined) {
34
- throw new baseapi_1.RequiredError("EventsApi", "deleteEventByRefId", "refId");
35
- }
36
- // Path Params
37
- const localVarPath = '/events/{refId}'
38
- .replace('{' + 'refId' + '}', encodeURIComponent(String(refId)));
39
- // Make Request Context
40
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
41
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
42
- let authMethod;
43
- // Apply auth methods
44
- authMethod = _config.authMethods["BearerAuthorizer"];
45
- if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
46
- yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
47
- }
48
- const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
49
- if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
50
- yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
51
- }
52
- return requestContext;
53
- });
19
+ async deleteEventByRefId(refId, _options) {
20
+ let _config = _options || this.configuration;
21
+ // verify required parameter 'refId' is not null or undefined
22
+ if (refId === null || refId === undefined) {
23
+ throw new baseapi_1.RequiredError("EventsApi", "deleteEventByRefId", "refId");
24
+ }
25
+ // Path Params
26
+ const localVarPath = '/events/{refId}'
27
+ .replace('{' + 'refId' + '}', encodeURIComponent(String(refId)));
28
+ // Make Request Context
29
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
30
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
31
+ let authMethod;
32
+ // Apply auth methods
33
+ authMethod = _config.authMethods["BearerAuthorizer"];
34
+ if (authMethod?.applySecurityAuthentication) {
35
+ await authMethod?.applySecurityAuthentication(requestContext);
36
+ }
37
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
38
+ if (defaultAuth?.applySecurityAuthentication) {
39
+ await defaultAuth?.applySecurityAuthentication(requestContext);
40
+ }
41
+ return requestContext;
54
42
  }
55
43
  /**
56
44
  * Use this endpoint to get a specific event using its reference ID.
57
45
  * Get event by refId
58
46
  * @param refId
59
47
  */
60
- getEventByRefId(refId, _options) {
61
- var _a, _b, _c;
62
- return __awaiter(this, void 0, void 0, function* () {
63
- let _config = _options || this.configuration;
64
- // verify required parameter 'refId' is not null or undefined
65
- if (refId === null || refId === undefined) {
66
- throw new baseapi_1.RequiredError("EventsApi", "getEventByRefId", "refId");
67
- }
68
- // Path Params
69
- const localVarPath = '/events/{refId}'
70
- .replace('{' + 'refId' + '}', encodeURIComponent(String(refId)));
71
- // Make Request Context
72
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
73
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
74
- let authMethod;
75
- // Apply auth methods
76
- authMethod = _config.authMethods["BearerAuthorizer"];
77
- if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
78
- yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
79
- }
80
- const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
81
- if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
82
- yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
83
- }
84
- return requestContext;
85
- });
48
+ async getEventByRefId(refId, _options) {
49
+ let _config = _options || this.configuration;
50
+ // verify required parameter 'refId' is not null or undefined
51
+ if (refId === null || refId === undefined) {
52
+ throw new baseapi_1.RequiredError("EventsApi", "getEventByRefId", "refId");
53
+ }
54
+ // Path Params
55
+ const localVarPath = '/events/{refId}'
56
+ .replace('{' + 'refId' + '}', encodeURIComponent(String(refId)));
57
+ // Make Request Context
58
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
59
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
60
+ let authMethod;
61
+ // Apply auth methods
62
+ authMethod = _config.authMethods["BearerAuthorizer"];
63
+ if (authMethod?.applySecurityAuthentication) {
64
+ await authMethod?.applySecurityAuthentication(requestContext);
65
+ }
66
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
67
+ if (defaultAuth?.applySecurityAuthentication) {
68
+ await defaultAuth?.applySecurityAuthentication(requestContext);
69
+ }
70
+ return requestContext;
86
71
  }
87
72
  /**
88
73
  * Fetch events occurring within a specified timestamp range. An optional event name can be provided to further filter the events.
@@ -93,131 +78,122 @@ class EventsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
93
78
  * @param limit
94
79
  * @param cursor
95
80
  */
96
- queryEvents(startTime, endTime, eventName, limit, cursor, _options) {
97
- var _a, _b, _c;
98
- return __awaiter(this, void 0, void 0, function* () {
99
- let _config = _options || this.configuration;
100
- // verify required parameter 'startTime' is not null or undefined
101
- if (startTime === null || startTime === undefined) {
102
- throw new baseapi_1.RequiredError("EventsApi", "queryEvents", "startTime");
103
- }
104
- // verify required parameter 'endTime' is not null or undefined
105
- if (endTime === null || endTime === undefined) {
106
- throw new baseapi_1.RequiredError("EventsApi", "queryEvents", "endTime");
107
- }
108
- // Path Params
109
- const localVarPath = '/events';
110
- // Make Request Context
111
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
112
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
113
- // Query Params
114
- if (startTime !== undefined) {
115
- requestContext.setQueryParam("startTime", ObjectSerializer_1.ObjectSerializer.serialize(startTime, "Date", "date-time"));
116
- }
117
- // Query Params
118
- if (endTime !== undefined) {
119
- requestContext.setQueryParam("endTime", ObjectSerializer_1.ObjectSerializer.serialize(endTime, "Date", "date-time"));
120
- }
121
- // Query Params
122
- if (eventName !== undefined) {
123
- requestContext.setQueryParam("eventName", ObjectSerializer_1.ObjectSerializer.serialize(eventName, "string", ""));
124
- }
125
- // Query Params
126
- if (limit !== undefined) {
127
- requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
128
- }
129
- // Query Params
130
- if (cursor !== undefined) {
131
- requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
132
- }
133
- let authMethod;
134
- // Apply auth methods
135
- authMethod = _config.authMethods["BearerAuthorizer"];
136
- if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
137
- yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
138
- }
139
- const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
140
- if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
141
- yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
142
- }
143
- return requestContext;
144
- });
81
+ async queryEvents(startTime, endTime, eventName, limit, cursor, _options) {
82
+ let _config = _options || this.configuration;
83
+ // verify required parameter 'startTime' is not null or undefined
84
+ if (startTime === null || startTime === undefined) {
85
+ throw new baseapi_1.RequiredError("EventsApi", "queryEvents", "startTime");
86
+ }
87
+ // verify required parameter 'endTime' is not null or undefined
88
+ if (endTime === null || endTime === undefined) {
89
+ throw new baseapi_1.RequiredError("EventsApi", "queryEvents", "endTime");
90
+ }
91
+ // Path Params
92
+ const localVarPath = '/events';
93
+ // Make Request Context
94
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
95
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
96
+ // Query Params
97
+ if (startTime !== undefined) {
98
+ requestContext.setQueryParam("startTime", ObjectSerializer_1.ObjectSerializer.serialize(startTime, "Date", "date-time"));
99
+ }
100
+ // Query Params
101
+ if (endTime !== undefined) {
102
+ requestContext.setQueryParam("endTime", ObjectSerializer_1.ObjectSerializer.serialize(endTime, "Date", "date-time"));
103
+ }
104
+ // Query Params
105
+ if (eventName !== undefined) {
106
+ requestContext.setQueryParam("eventName", ObjectSerializer_1.ObjectSerializer.serialize(eventName, "string", ""));
107
+ }
108
+ // Query Params
109
+ if (limit !== undefined) {
110
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
111
+ }
112
+ // Query Params
113
+ if (cursor !== undefined) {
114
+ requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
115
+ }
116
+ let authMethod;
117
+ // Apply auth methods
118
+ authMethod = _config.authMethods["BearerAuthorizer"];
119
+ if (authMethod?.applySecurityAuthentication) {
120
+ await authMethod?.applySecurityAuthentication(requestContext);
121
+ }
122
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
123
+ if (defaultAuth?.applySecurityAuthentication) {
124
+ await defaultAuth?.applySecurityAuthentication(requestContext);
125
+ }
126
+ return requestContext;
145
127
  }
146
128
  /**
147
129
  * Use this endpoint to send an array of events for processing and storage. Make sure to comply with the request schema for each event.
148
130
  * Submit a batch of events for ingestion
149
131
  * @param sendEventsRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \'/events\' Up to 1000 events or a total payload max size of 256KB
150
132
  */
151
- sendEvents(sendEventsRequest, _options) {
152
- var _a, _b, _c;
153
- return __awaiter(this, void 0, void 0, function* () {
154
- let _config = _options || this.configuration;
155
- // verify required parameter 'sendEventsRequest' is not null or undefined
156
- if (sendEventsRequest === null || sendEventsRequest === undefined) {
157
- throw new baseapi_1.RequiredError("EventsApi", "sendEvents", "sendEventsRequest");
158
- }
159
- // Path Params
160
- const localVarPath = '/events';
161
- // Make Request Context
162
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
163
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
164
- // Body Params
165
- const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
166
- "application/json"
167
- ]);
168
- requestContext.setHeaderParam("Content-Type", contentType);
169
- const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(sendEventsRequest, "SendEventsRequest", ""), contentType);
170
- requestContext.setBody(serializedBody);
171
- let authMethod;
172
- // Apply auth methods
173
- authMethod = _config.authMethods["BearerAuthorizer"];
174
- if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
175
- yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
176
- }
177
- const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
178
- if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
179
- yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
180
- }
181
- return requestContext;
182
- });
133
+ async sendEvents(sendEventsRequest, _options) {
134
+ let _config = _options || this.configuration;
135
+ // verify required parameter 'sendEventsRequest' is not null or undefined
136
+ if (sendEventsRequest === null || sendEventsRequest === undefined) {
137
+ throw new baseapi_1.RequiredError("EventsApi", "sendEvents", "sendEventsRequest");
138
+ }
139
+ // Path Params
140
+ const localVarPath = '/events';
141
+ // Make Request Context
142
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
143
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
144
+ // Body Params
145
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
146
+ "application/json"
147
+ ]);
148
+ requestContext.setHeaderParam("Content-Type", contentType);
149
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(sendEventsRequest, "SendEventsRequest", ""), contentType);
150
+ requestContext.setBody(serializedBody);
151
+ let authMethod;
152
+ // Apply auth methods
153
+ authMethod = _config.authMethods["BearerAuthorizer"];
154
+ if (authMethod?.applySecurityAuthentication) {
155
+ await authMethod?.applySecurityAuthentication(requestContext);
156
+ }
157
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
158
+ if (defaultAuth?.applySecurityAuthentication) {
159
+ await defaultAuth?.applySecurityAuthentication(requestContext);
160
+ }
161
+ return requestContext;
183
162
  }
184
163
  /**
185
164
  * Use this endpoint to send an array of events for processing. Make sure to comply with the request schema for each event. NOTE: this is a dry run and will not result in actual storage of the events.
186
165
  * Submit a batch of events for testing
187
166
  * @param eventsDryRunRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \'/events\' Up to 1000 events or a total payload max size of 256KB
188
167
  */
189
- sendEventsDryRun(eventsDryRunRequest, _options) {
190
- var _a, _b, _c;
191
- return __awaiter(this, void 0, void 0, function* () {
192
- let _config = _options || this.configuration;
193
- // verify required parameter 'eventsDryRunRequest' is not null or undefined
194
- if (eventsDryRunRequest === null || eventsDryRunRequest === undefined) {
195
- throw new baseapi_1.RequiredError("EventsApi", "sendEventsDryRun", "eventsDryRunRequest");
196
- }
197
- // Path Params
198
- const localVarPath = '/events/dry-run';
199
- // Make Request Context
200
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
201
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
202
- // Body Params
203
- const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
204
- "application/json"
205
- ]);
206
- requestContext.setHeaderParam("Content-Type", contentType);
207
- const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(eventsDryRunRequest, "EventsDryRunRequest", ""), contentType);
208
- requestContext.setBody(serializedBody);
209
- let authMethod;
210
- // Apply auth methods
211
- authMethod = _config.authMethods["BearerAuthorizer"];
212
- if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
213
- yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
214
- }
215
- const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
216
- if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
217
- yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
218
- }
219
- return requestContext;
220
- });
168
+ async sendEventsDryRun(eventsDryRunRequest, _options) {
169
+ let _config = _options || this.configuration;
170
+ // verify required parameter 'eventsDryRunRequest' is not null or undefined
171
+ if (eventsDryRunRequest === null || eventsDryRunRequest === undefined) {
172
+ throw new baseapi_1.RequiredError("EventsApi", "sendEventsDryRun", "eventsDryRunRequest");
173
+ }
174
+ // Path Params
175
+ const localVarPath = '/events/dry-run';
176
+ // Make Request Context
177
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
178
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
179
+ // Body Params
180
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
181
+ "application/json"
182
+ ]);
183
+ requestContext.setHeaderParam("Content-Type", contentType);
184
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(eventsDryRunRequest, "EventsDryRunRequest", ""), contentType);
185
+ requestContext.setBody(serializedBody);
186
+ let authMethod;
187
+ // Apply auth methods
188
+ authMethod = _config.authMethods["BearerAuthorizer"];
189
+ if (authMethod?.applySecurityAuthentication) {
190
+ await authMethod?.applySecurityAuthentication(requestContext);
191
+ }
192
+ const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
193
+ if (defaultAuth?.applySecurityAuthentication) {
194
+ await defaultAuth?.applySecurityAuthentication(requestContext);
195
+ }
196
+ return requestContext;
221
197
  }
222
198
  }
223
199
  exports.EventsApiRequestFactory = EventsApiRequestFactory;
@@ -229,35 +205,33 @@ class EventsApiResponseProcessor {
229
205
  * @params response Response returned by the server for a request to deleteEventByRefId
230
206
  * @throws ApiException if the response code was not in [200, 299]
231
207
  */
232
- deleteEventByRefIdWithHttpInfo(response) {
233
- return __awaiter(this, void 0, void 0, function* () {
234
- const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
235
- if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
236
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeleteEventResponse", "");
237
- return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
238
- }
239
- if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
240
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
241
- }
242
- if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
243
- throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
244
- }
245
- if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
246
- throw new exception_1.ApiException(response.httpStatusCode, "Not Found", undefined, response.headers);
247
- }
248
- if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
249
- throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
250
- }
251
- if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
252
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
253
- }
254
- // Work around for missing responses in specification, e.g. for petstore.yaml
255
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
256
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeleteEventResponse", "");
257
- return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
258
- }
259
- throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
260
- });
208
+ async deleteEventByRefIdWithHttpInfo(response) {
209
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
210
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
211
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "DeleteEventResponse", "");
212
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
213
+ }
214
+ if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
215
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
216
+ }
217
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
218
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
219
+ }
220
+ if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
221
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", undefined, response.headers);
222
+ }
223
+ if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
224
+ throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
225
+ }
226
+ if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
227
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
228
+ }
229
+ // Work around for missing responses in specification, e.g. for petstore.yaml
230
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
231
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "DeleteEventResponse", "");
232
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
233
+ }
234
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
261
235
  }
262
236
  /**
263
237
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
@@ -266,35 +240,33 @@ class EventsApiResponseProcessor {
266
240
  * @params response Response returned by the server for a request to getEventByRefId
267
241
  * @throws ApiException if the response code was not in [200, 299]
268
242
  */
269
- getEventByRefIdWithHttpInfo(response) {
270
- return __awaiter(this, void 0, void 0, function* () {
271
- const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
272
- if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
273
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetEventResponse", "");
274
- return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
275
- }
276
- if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
277
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
278
- }
279
- if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
280
- throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
281
- }
282
- if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
283
- throw new exception_1.ApiException(response.httpStatusCode, "Not Found", undefined, response.headers);
284
- }
285
- if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
286
- throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
287
- }
288
- if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
289
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
290
- }
291
- // Work around for missing responses in specification, e.g. for petstore.yaml
292
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
293
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetEventResponse", "");
294
- return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
295
- }
296
- throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
297
- });
243
+ async getEventByRefIdWithHttpInfo(response) {
244
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
245
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
246
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "GetEventResponse", "");
247
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
248
+ }
249
+ if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
250
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
251
+ }
252
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
253
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
254
+ }
255
+ if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
256
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", undefined, response.headers);
257
+ }
258
+ if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
259
+ throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
260
+ }
261
+ if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
262
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
263
+ }
264
+ // Work around for missing responses in specification, e.g. for petstore.yaml
265
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
266
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "GetEventResponse", "");
267
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
268
+ }
269
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
298
270
  }
299
271
  /**
300
272
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
@@ -303,32 +275,30 @@ class EventsApiResponseProcessor {
303
275
  * @params response Response returned by the server for a request to queryEvents
304
276
  * @throws ApiException if the response code was not in [200, 299]
305
277
  */
306
- queryEventsWithHttpInfo(response) {
307
- return __awaiter(this, void 0, void 0, function* () {
308
- const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
309
- if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
310
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "QueryEventsResponse", "");
311
- return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
312
- }
313
- if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
314
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
315
- }
316
- if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
317
- throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
318
- }
319
- if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
320
- throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
321
- }
322
- if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
323
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
324
- }
325
- // Work around for missing responses in specification, e.g. for petstore.yaml
326
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
327
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "QueryEventsResponse", "");
328
- return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
329
- }
330
- throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
331
- });
278
+ async queryEventsWithHttpInfo(response) {
279
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
280
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
281
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "QueryEventsResponse", "");
282
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
283
+ }
284
+ if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
285
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
286
+ }
287
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
288
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
289
+ }
290
+ if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
291
+ throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
292
+ }
293
+ if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
294
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
295
+ }
296
+ // Work around for missing responses in specification, e.g. for petstore.yaml
297
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
298
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "QueryEventsResponse", "");
299
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
300
+ }
301
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
332
302
  }
333
303
  /**
334
304
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
@@ -337,35 +307,33 @@ class EventsApiResponseProcessor {
337
307
  * @params response Response returned by the server for a request to sendEvents
338
308
  * @throws ApiException if the response code was not in [200, 299]
339
309
  */
340
- sendEventsWithHttpInfo(response) {
341
- return __awaiter(this, void 0, void 0, function* () {
342
- const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
343
- if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
344
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SendEventsResponse", "");
345
- return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
346
- }
347
- if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
348
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
349
- }
350
- if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
351
- throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
352
- }
353
- if ((0, util_1.isCodeInRange)("413", response.httpStatusCode)) {
354
- throw new exception_1.ApiException(response.httpStatusCode, "Request Entity Too Large", undefined, response.headers);
355
- }
356
- if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
357
- throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
358
- }
359
- if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
360
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
361
- }
362
- // Work around for missing responses in specification, e.g. for petstore.yaml
363
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
364
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "SendEventsResponse", "");
365
- return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
366
- }
367
- throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
368
- });
310
+ async sendEventsWithHttpInfo(response) {
311
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
312
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
313
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "SendEventsResponse", "");
314
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
315
+ }
316
+ if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
317
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
318
+ }
319
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
320
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
321
+ }
322
+ if ((0, util_1.isCodeInRange)("413", response.httpStatusCode)) {
323
+ throw new exception_1.ApiException(response.httpStatusCode, "Request Entity Too Large", undefined, response.headers);
324
+ }
325
+ if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
326
+ throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
327
+ }
328
+ if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
329
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
330
+ }
331
+ // Work around for missing responses in specification, e.g. for petstore.yaml
332
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
333
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "SendEventsResponse", "");
334
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
335
+ }
336
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
369
337
  }
370
338
  /**
371
339
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
@@ -374,35 +342,33 @@ class EventsApiResponseProcessor {
374
342
  * @params response Response returned by the server for a request to sendEventsDryRun
375
343
  * @throws ApiException if the response code was not in [200, 299]
376
344
  */
377
- sendEventsDryRunWithHttpInfo(response) {
378
- return __awaiter(this, void 0, void 0, function* () {
379
- const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
380
- if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
381
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "EventsDryRunResponse", "");
382
- return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
383
- }
384
- if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
385
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
386
- }
387
- if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
388
- throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
389
- }
390
- if ((0, util_1.isCodeInRange)("413", response.httpStatusCode)) {
391
- throw new exception_1.ApiException(response.httpStatusCode, "Request Entity Too Large", undefined, response.headers);
392
- }
393
- if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
394
- throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
395
- }
396
- if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
397
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
398
- }
399
- // Work around for missing responses in specification, e.g. for petstore.yaml
400
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
401
- const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "EventsDryRunResponse", "");
402
- return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
403
- }
404
- throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
405
- });
345
+ async sendEventsDryRunWithHttpInfo(response) {
346
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
347
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
348
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "EventsDryRunResponse", "");
349
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
350
+ }
351
+ if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
352
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
353
+ }
354
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
355
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
356
+ }
357
+ if ((0, util_1.isCodeInRange)("413", response.httpStatusCode)) {
358
+ throw new exception_1.ApiException(response.httpStatusCode, "Request Entity Too Large", undefined, response.headers);
359
+ }
360
+ if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
361
+ throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
362
+ }
363
+ if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
364
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
365
+ }
366
+ // Work around for missing responses in specification, e.g. for petstore.yaml
367
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
368
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "EventsDryRunResponse", "");
369
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
370
+ }
371
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
406
372
  }
407
373
  }
408
374
  exports.EventsApiResponseProcessor = EventsApiResponseProcessor;