vayu-ts 0.3.4 → 0.3.7

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 (172) hide show
  1. package/dist/openapi/apis/AuthApi.js +8 -4
  2. package/dist/openapi/apis/CatalogProductsApi.js +46 -23
  3. package/dist/openapi/apis/CloudUsageSubmissionApi.js +8 -4
  4. package/dist/openapi/apis/ContractsApi.js +48 -22
  5. package/dist/openapi/apis/CreditsApi.js +24 -12
  6. package/dist/openapi/apis/CustomFieldsApi.d.ts +89 -0
  7. package/dist/openapi/apis/CustomFieldsApi.js +377 -0
  8. package/dist/openapi/apis/CustomersApi.js +124 -52
  9. package/dist/openapi/apis/EventsApi.d.ts +116 -1
  10. package/dist/openapi/apis/EventsApi.js +605 -25
  11. package/dist/openapi/apis/InvoicesApi.js +26 -13
  12. package/dist/openapi/apis/MeasurementsApi.js +36 -18
  13. package/dist/openapi/apis/MetersApi.js +38 -19
  14. package/dist/openapi/apis/PlansApi.d.ts +56 -0
  15. package/dist/openapi/apis/PlansApi.js +225 -0
  16. package/dist/openapi/apis/ProductConsumptionsApi.js +12 -4
  17. package/dist/openapi/apis/WebhooksApi.js +12 -4
  18. package/dist/openapi/index.d.ts +1 -1
  19. package/dist/openapi/index.js +3 -1
  20. package/dist/openapi/models/BillingInterval.d.ts +18 -0
  21. package/dist/openapi/models/BillingInterval.js +22 -0
  22. package/dist/openapi/models/ConflictErrorResponse.d.ts +42 -0
  23. package/dist/openapi/models/ConflictErrorResponse.js +52 -0
  24. package/dist/openapi/models/Contact.js +1 -1
  25. package/dist/openapi/models/CreateContractRequest.d.ts +6 -0
  26. package/dist/openapi/models/CreateContractRequest.js +12 -0
  27. package/dist/openapi/models/CreateCustomFieldRequest.d.ts +71 -0
  28. package/dist/openapi/models/CreateCustomFieldRequest.js +90 -0
  29. package/dist/openapi/models/CreateCustomFieldResponse.d.ts +32 -0
  30. package/dist/openapi/models/CreateCustomFieldResponse.js +32 -0
  31. package/dist/openapi/models/CreateCustomFieldResponseCustomField.d.ts +74 -0
  32. package/dist/openapi/models/CreateCustomFieldResponseCustomField.js +108 -0
  33. package/dist/openapi/models/CreateCustomerRequest.d.ts +20 -0
  34. package/dist/openapi/models/CreateCustomerRequest.js +30 -0
  35. package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +20 -0
  36. package/dist/openapi/models/CreateCustomerResponseCustomer.js +30 -0
  37. package/dist/openapi/models/CustomFieldEntities.d.ts +20 -0
  38. package/dist/openapi/models/CustomFieldEntities.js +24 -0
  39. package/dist/openapi/models/CustomFieldValueTypes.d.ts +2 -1
  40. package/dist/openapi/models/CustomFieldValueTypes.js +1 -0
  41. package/dist/openapi/models/DeleteContractResponseContract.d.ts +6 -0
  42. package/dist/openapi/models/DeleteContractResponseContract.js +12 -0
  43. package/dist/openapi/models/DeleteCustomFieldResponse.d.ts +32 -0
  44. package/dist/openapi/models/DeleteCustomFieldResponse.js +32 -0
  45. package/dist/openapi/models/DeleteCustomFieldResponseCustomField.d.ts +75 -0
  46. package/dist/openapi/models/DeleteCustomFieldResponseCustomField.js +114 -0
  47. package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +20 -0
  48. package/dist/openapi/models/DeleteCustomerResponseCustomer.js +30 -0
  49. package/dist/openapi/models/DeletePlanResponse.d.ts +32 -0
  50. package/dist/openapi/models/DeletePlanResponse.js +32 -0
  51. package/dist/openapi/models/DeletePlanResponsePlan.d.ts +42 -0
  52. package/dist/openapi/models/DeletePlanResponsePlan.js +68 -0
  53. package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.d.ts +1 -1
  54. package/dist/openapi/models/GetContractResponseContract.d.ts +6 -0
  55. package/dist/openapi/models/GetContractResponseContract.js +12 -0
  56. package/dist/openapi/models/GetCustomFieldResponse.d.ts +32 -0
  57. package/dist/openapi/models/GetCustomFieldResponse.js +32 -0
  58. package/dist/openapi/models/GetCustomerByNameResponseCustomer.d.ts +20 -0
  59. package/dist/openapi/models/GetCustomerByNameResponseCustomer.js +30 -0
  60. package/dist/openapi/models/GetPlanResponse.d.ts +32 -0
  61. package/dist/openapi/models/GetPlanResponse.js +32 -0
  62. package/dist/openapi/models/GetPlanResponsePlan.d.ts +41 -0
  63. package/dist/openapi/models/GetPlanResponsePlan.js +62 -0
  64. package/dist/openapi/models/InternalServerErrorResponse.d.ts +42 -0
  65. package/dist/openapi/models/InternalServerErrorResponse.js +52 -0
  66. package/dist/openapi/models/ListCustomFieldsResponse.d.ts +35 -0
  67. package/dist/openapi/models/ListCustomFieldsResponse.js +50 -0
  68. package/dist/openapi/models/ListPlansResponse.d.ts +35 -0
  69. package/dist/openapi/models/ListPlansResponse.js +50 -0
  70. package/dist/openapi/models/NotFoundErrorResponse.d.ts +42 -0
  71. package/dist/openapi/models/NotFoundErrorResponse.js +52 -0
  72. package/dist/openapi/models/NotificationEventType.d.ts +5 -1
  73. package/dist/openapi/models/NotificationEventType.js +4 -0
  74. package/dist/openapi/models/ObjectSerializer.d.ts +51 -0
  75. package/dist/openapi/models/ObjectSerializer.js +176 -0
  76. package/dist/openapi/models/PlanBillingData.d.ts +41 -0
  77. package/dist/openapi/models/PlanBillingData.js +59 -0
  78. package/dist/openapi/models/PlanDuration.d.ts +30 -0
  79. package/dist/openapi/models/PlanDuration.js +25 -0
  80. package/dist/openapi/models/PlanStatus.d.ts +19 -0
  81. package/dist/openapi/models/PlanStatus.js +23 -0
  82. package/dist/openapi/models/ProductGroupCommitment.d.ts +8 -0
  83. package/dist/openapi/models/ProductGroupCommitment.js +12 -1
  84. package/dist/openapi/models/ProductGroupProductsInnerCommitment.d.ts +8 -0
  85. package/dist/openapi/models/ProductGroupProductsInnerCommitment.js +12 -1
  86. package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.d.ts +4 -4
  87. package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.js +2 -2
  88. package/dist/openapi/models/ProductGroupProductsInnerCommitmentSchedulingDuration.d.ts +41 -0
  89. package/dist/openapi/models/ProductGroupProductsInnerCommitmentSchedulingDuration.js +48 -0
  90. package/dist/openapi/models/ProductGroupProductsInnerPricing.d.ts +3 -1
  91. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.d.ts +6 -0
  92. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.js +12 -0
  93. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.d.ts +2 -0
  94. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.js +6 -0
  95. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.d.ts +2 -0
  96. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.js +6 -0
  97. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf5.d.ts +42 -0
  98. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf5.js +48 -0
  99. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf6.d.ts +42 -0
  100. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf6.js +48 -0
  101. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOfDiscount.d.ts +53 -0
  102. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOfDiscount.js +58 -0
  103. package/dist/openapi/models/QueryEventsResponse.d.ts +3 -3
  104. package/dist/openapi/models/QueryEventsResponse.js +18 -0
  105. package/dist/openapi/models/RateLimitErrorResponse.d.ts +42 -0
  106. package/dist/openapi/models/RateLimitErrorResponse.js +52 -0
  107. package/dist/openapi/models/RequestTooLongErrorResponse.d.ts +42 -0
  108. package/dist/openapi/models/RequestTooLongErrorResponse.js +52 -0
  109. package/dist/openapi/models/UnauthorizedErrorResponse.d.ts +42 -0
  110. package/dist/openapi/models/UnauthorizedErrorResponse.js +52 -0
  111. package/dist/openapi/models/UnlimitedDuration.d.ts +14 -0
  112. package/dist/openapi/models/UnlimitedDuration.js +18 -0
  113. package/dist/openapi/models/UpdateCustomFieldRequest.d.ts +71 -0
  114. package/dist/openapi/models/UpdateCustomFieldRequest.js +90 -0
  115. package/dist/openapi/models/UpdateCustomFieldResponse.d.ts +32 -0
  116. package/dist/openapi/models/UpdateCustomFieldResponse.js +32 -0
  117. package/dist/openapi/models/UpdateCustomerRequest.d.ts +20 -0
  118. package/dist/openapi/models/UpdateCustomerRequest.js +30 -0
  119. package/dist/openapi/models/V2DeleteEventResponse.d.ts +32 -0
  120. package/dist/openapi/models/V2DeleteEventResponse.js +32 -0
  121. package/dist/openapi/models/V2DeleteEventsByRefsRequest.d.ts +31 -0
  122. package/dist/openapi/models/V2DeleteEventsByRefsRequest.js +32 -0
  123. package/dist/openapi/models/V2DeleteEventsByRefsResponse.d.ts +35 -0
  124. package/dist/openapi/models/V2DeleteEventsByRefsResponse.js +32 -0
  125. package/dist/openapi/models/V2EventsDryRunRequest.d.ts +32 -0
  126. package/dist/openapi/models/V2EventsDryRunRequest.js +32 -0
  127. package/dist/openapi/models/V2EventsDryRunResponse.d.ts +32 -0
  128. package/dist/openapi/models/V2EventsDryRunResponse.js +32 -0
  129. package/dist/openapi/models/V2GetEventResponse.d.ts +32 -0
  130. package/dist/openapi/models/V2GetEventResponse.js +32 -0
  131. package/dist/openapi/models/V2QueryEventsAggregationRequest.d.ts +45 -0
  132. package/dist/openapi/models/V2QueryEventsAggregationRequest.js +70 -0
  133. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInner.d.ts +39 -0
  134. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInner.js +62 -0
  135. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregation.d.ts +35 -0
  136. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregation.js +44 -0
  137. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregationFieldArithmetic.d.ts +38 -0
  138. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregationFieldArithmetic.js +45 -0
  139. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInner.d.ts +43 -0
  140. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInner.js +54 -0
  141. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInnerValue.d.ts +30 -0
  142. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInnerValue.js +25 -0
  143. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerSqlFullQuery.d.ts +34 -0
  144. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerSqlFullQuery.js +38 -0
  145. package/dist/openapi/models/V2QueryEventsAggregationRequestPeriod.d.ts +32 -0
  146. package/dist/openapi/models/V2QueryEventsAggregationRequestPeriod.js +38 -0
  147. package/dist/openapi/models/V2QueryEventsAggregationResponse.d.ts +42 -0
  148. package/dist/openapi/models/V2QueryEventsAggregationResponse.js +52 -0
  149. package/dist/openapi/models/V2QueryEventsAggregationResponseDataPointsInner.d.ts +34 -0
  150. package/dist/openapi/models/V2QueryEventsAggregationResponseDataPointsInner.js +38 -0
  151. package/dist/openapi/models/V2QueryEventsResponse.d.ts +35 -0
  152. package/dist/openapi/models/V2QueryEventsResponse.js +50 -0
  153. package/dist/openapi/models/V2SendEventsRequest.d.ts +32 -0
  154. package/dist/openapi/models/V2SendEventsRequest.js +32 -0
  155. package/dist/openapi/models/V2SendEventsResponse.d.ts +40 -0
  156. package/dist/openapi/models/V2SendEventsResponse.js +38 -0
  157. package/dist/openapi/models/ValidationErrorResponse.d.ts +51 -0
  158. package/dist/openapi/models/ValidationErrorResponse.js +60 -0
  159. package/dist/openapi/models/ValidationErrorResponseParamsInner.d.ts +38 -0
  160. package/dist/openapi/models/ValidationErrorResponseParamsInner.js +38 -0
  161. package/dist/openapi/models/WebhookSubscribeRequest.d.ts +1 -0
  162. package/dist/openapi/models/WebhookSubscribeRequest.js +6 -0
  163. package/dist/openapi/models/all.d.ts +51 -0
  164. package/dist/openapi/models/all.js +51 -0
  165. package/dist/openapi/types/ObservableAPI.d.ts +235 -2
  166. package/dist/openapi/types/ObservableAPI.js +476 -5
  167. package/dist/openapi/types/PromiseAPI.d.ts +231 -2
  168. package/dist/openapi/types/PromiseAPI.js +320 -18
  169. package/dist/sdk/clients/EventsClient.js +1 -1
  170. package/dist/sdk/clients/WebhooksClient.d.ts +2 -0
  171. package/dist/sdk/clients/WebhooksClient.js +14 -0
  172. package/package.json +1 -1
@@ -410,16 +410,20 @@ class CustomersApiResponseProcessor {
410
410
  return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
411
411
  }
412
412
  if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
413
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
413
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
414
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
414
415
  }
415
416
  if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
416
- throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
417
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
418
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
417
419
  }
418
420
  if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
419
- throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
421
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
422
+ throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
420
423
  }
421
424
  if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
422
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
425
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
426
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
423
427
  }
424
428
  // Work around for missing responses in specification, e.g. for petstore.yaml
425
429
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
@@ -442,16 +446,20 @@ class CustomersApiResponseProcessor {
442
446
  return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
443
447
  }
444
448
  if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
445
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
449
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
450
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
446
451
  }
447
452
  if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
448
- throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
453
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
454
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
449
455
  }
450
456
  if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
451
- throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
457
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
458
+ throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
452
459
  }
453
460
  if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
454
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
461
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
462
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
455
463
  }
456
464
  // Work around for missing responses in specification, e.g. for petstore.yaml
457
465
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
@@ -474,19 +482,24 @@ class CustomersApiResponseProcessor {
474
482
  return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
475
483
  }
476
484
  if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
477
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
485
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
486
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
478
487
  }
479
488
  if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
480
- throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
489
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
490
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
481
491
  }
482
492
  if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
483
- throw new exception_1.ApiException(response.httpStatusCode, "Not Found", undefined, response.headers);
493
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotFoundErrorResponse", "");
494
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
484
495
  }
485
496
  if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
486
- throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
497
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
498
+ throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
487
499
  }
488
500
  if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
489
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
501
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
502
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
490
503
  }
491
504
  // Work around for missing responses in specification, e.g. for petstore.yaml
492
505
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
@@ -509,19 +522,24 @@ class CustomersApiResponseProcessor {
509
522
  return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
510
523
  }
511
524
  if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
512
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
525
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
526
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
513
527
  }
514
528
  if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
515
- throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
529
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
530
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
516
531
  }
517
532
  if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
518
- throw new exception_1.ApiException(response.httpStatusCode, "Not Found", undefined, response.headers);
533
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotFoundErrorResponse", "");
534
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
519
535
  }
520
536
  if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
521
- throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
537
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
538
+ throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
522
539
  }
523
540
  if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
524
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
541
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
542
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
525
543
  }
526
544
  // Work around for missing responses in specification, e.g. for petstore.yaml
527
545
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
@@ -544,16 +562,24 @@ class CustomersApiResponseProcessor {
544
562
  return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
545
563
  }
546
564
  if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
547
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
565
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
566
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
548
567
  }
549
568
  if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
550
- throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
569
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
570
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
571
+ }
572
+ if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
573
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotFoundErrorResponse", "");
574
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
551
575
  }
552
576
  if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
553
- throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
577
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
578
+ throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
554
579
  }
555
580
  if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
556
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
581
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
582
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
557
583
  }
558
584
  // Work around for missing responses in specification, e.g. for petstore.yaml
559
585
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
@@ -576,16 +602,24 @@ class CustomersApiResponseProcessor {
576
602
  return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
577
603
  }
578
604
  if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
579
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
605
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
606
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
580
607
  }
581
608
  if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
582
- throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
609
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
610
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
611
+ }
612
+ if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
613
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotFoundErrorResponse", "");
614
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
583
615
  }
584
616
  if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
585
- throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
617
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
618
+ throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
586
619
  }
587
620
  if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
588
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
621
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
622
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
589
623
  }
590
624
  // Work around for missing responses in specification, e.g. for petstore.yaml
591
625
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
@@ -608,16 +642,24 @@ class CustomersApiResponseProcessor {
608
642
  return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
609
643
  }
610
644
  if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
611
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
645
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
646
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
612
647
  }
613
648
  if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
614
- throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
649
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
650
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
651
+ }
652
+ if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
653
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotFoundErrorResponse", "");
654
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
615
655
  }
616
656
  if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
617
- throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
657
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
658
+ throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
618
659
  }
619
660
  if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
620
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
661
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
662
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
621
663
  }
622
664
  // Work around for missing responses in specification, e.g. for petstore.yaml
623
665
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
@@ -640,16 +682,24 @@ class CustomersApiResponseProcessor {
640
682
  return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
641
683
  }
642
684
  if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
643
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
685
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
686
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
644
687
  }
645
688
  if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
646
- throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
689
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
690
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
691
+ }
692
+ if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
693
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotFoundErrorResponse", "");
694
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
647
695
  }
648
696
  if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
649
- throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
697
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
698
+ throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
650
699
  }
651
700
  if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
652
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
701
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
702
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
653
703
  }
654
704
  // Work around for missing responses in specification, e.g. for petstore.yaml
655
705
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
@@ -672,16 +722,24 @@ class CustomersApiResponseProcessor {
672
722
  return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
673
723
  }
674
724
  if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
675
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
725
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
726
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
676
727
  }
677
728
  if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
678
- throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
729
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
730
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
731
+ }
732
+ if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
733
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotFoundErrorResponse", "");
734
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
679
735
  }
680
736
  if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
681
- throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
737
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
738
+ throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
682
739
  }
683
740
  if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
684
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
741
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
742
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
685
743
  }
686
744
  // Work around for missing responses in specification, e.g. for petstore.yaml
687
745
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
@@ -704,19 +762,24 @@ class CustomersApiResponseProcessor {
704
762
  return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
705
763
  }
706
764
  if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
707
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
765
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
766
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
708
767
  }
709
768
  if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
710
- throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
769
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
770
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
711
771
  }
712
772
  if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
713
- throw new exception_1.ApiException(response.httpStatusCode, "Not Found", undefined, response.headers);
773
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotFoundErrorResponse", "");
774
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
714
775
  }
715
776
  if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
716
- throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
777
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
778
+ throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
717
779
  }
718
780
  if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
719
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
781
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
782
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
720
783
  }
721
784
  // Work around for missing responses in specification, e.g. for petstore.yaml
722
785
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
@@ -739,16 +802,20 @@ class CustomersApiResponseProcessor {
739
802
  return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
740
803
  }
741
804
  if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
742
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
805
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
806
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
743
807
  }
744
808
  if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
745
- throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
809
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
810
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
746
811
  }
747
812
  if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
748
- throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
813
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
814
+ throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
749
815
  }
750
816
  if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
751
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
817
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
818
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
752
819
  }
753
820
  // Work around for missing responses in specification, e.g. for petstore.yaml
754
821
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
@@ -771,19 +838,24 @@ class CustomersApiResponseProcessor {
771
838
  return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
772
839
  }
773
840
  if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
774
- throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
841
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ValidationErrorResponse", "");
842
+ throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", body, response.headers);
775
843
  }
776
844
  if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
777
- throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
845
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "UnauthorizedErrorResponse", "");
846
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", body, response.headers);
778
847
  }
779
848
  if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
780
- throw new exception_1.ApiException(response.httpStatusCode, "Not Found", undefined, response.headers);
849
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "NotFoundErrorResponse", "");
850
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
781
851
  }
782
852
  if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
783
- throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
853
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "RateLimitErrorResponse", "");
854
+ throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", body, response.headers);
784
855
  }
785
856
  if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
786
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
857
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "InternalServerErrorResponse", "");
858
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
787
859
  }
788
860
  // Work around for missing responses in specification, e.g. for petstore.yaml
789
861
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
@@ -10,6 +10,17 @@ import { GetEventResponse } from '../models/GetEventResponse';
10
10
  import { QueryEventsResponse } from '../models/QueryEventsResponse';
11
11
  import { SendEventsRequest } from '../models/SendEventsRequest';
12
12
  import { SendEventsResponse } from '../models/SendEventsResponse';
13
+ import { V2DeleteEventResponse } from '../models/V2DeleteEventResponse';
14
+ import { V2DeleteEventsByRefsRequest } from '../models/V2DeleteEventsByRefsRequest';
15
+ import { V2DeleteEventsByRefsResponse } from '../models/V2DeleteEventsByRefsResponse';
16
+ import { V2EventsDryRunRequest } from '../models/V2EventsDryRunRequest';
17
+ import { V2EventsDryRunResponse } from '../models/V2EventsDryRunResponse';
18
+ import { V2GetEventResponse } from '../models/V2GetEventResponse';
19
+ import { V2QueryEventsAggregationRequest } from '../models/V2QueryEventsAggregationRequest';
20
+ import { V2QueryEventsAggregationResponse } from '../models/V2QueryEventsAggregationResponse';
21
+ import { V2QueryEventsResponse } from '../models/V2QueryEventsResponse';
22
+ import { V2SendEventsRequest } from '../models/V2SendEventsRequest';
23
+ import { V2SendEventsResponse } from '../models/V2SendEventsResponse';
13
24
  /**
14
25
  * no description
15
26
  */
@@ -38,10 +49,11 @@ export declare class EventsApiRequestFactory extends BaseAPIRequestFactory {
38
49
  * @param startTime
39
50
  * @param endTime
40
51
  * @param eventName
52
+ * @param customerAlias
41
53
  * @param limit
42
54
  * @param cursor
43
55
  */
44
- queryEvents(startTime: Date, endTime: Date, eventName?: string, limit?: number, cursor?: string, _options?: Configuration): Promise<RequestContext>;
56
+ queryEvents(startTime: Date, endTime: Date, eventName?: string, customerAlias?: string, limit?: number, cursor?: string, _options?: Configuration): Promise<RequestContext>;
45
57
  /**
46
58
  * Use this endpoint to send an array of events for processing and storage. Make sure to comply with the request schema for each event.
47
59
  * Submit a batch of events for ingestion
@@ -54,6 +66,53 @@ export declare class EventsApiRequestFactory extends BaseAPIRequestFactory {
54
66
  * @param eventsDryRunRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \&#39;/events\&#39; Up to 1000 events or a total payload max size of 256KB
55
67
  */
56
68
  sendEventsDryRun(eventsDryRunRequest: EventsDryRunRequest, _options?: Configuration): Promise<RequestContext>;
69
+ /**
70
+ * Use this endpoint to remove a specific event using its reference ID (v2).
71
+ * Delete an event by refId (v2)
72
+ * @param refId
73
+ */
74
+ v2DeleteEventByRefId(refId: string, _options?: Configuration): Promise<RequestContext>;
75
+ /**
76
+ * Delete multiple events, identified by ref, in a single request (v2).
77
+ * Delete events by refs (v2)
78
+ * @param v2DeleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
79
+ */
80
+ v2DeleteEventsByRefs(v2DeleteEventsByRefsRequest: V2DeleteEventsByRefsRequest, _options?: Configuration): Promise<RequestContext>;
81
+ /**
82
+ * Use this endpoint to get a specific event using its reference ID (v2).
83
+ * Get event by refId (v2)
84
+ * @param refId
85
+ */
86
+ v2GetEventByRefId(refId: string, _options?: Configuration): Promise<RequestContext>;
87
+ /**
88
+ * Fetch events occurring within a specified timestamp range via the events-service (ClickHouse-backed).
89
+ * Query events by timestamp period and optional event name (v2)
90
+ * @param startTime
91
+ * @param endTime
92
+ * @param eventName
93
+ * @param customerAlias
94
+ * @param limit
95
+ * @param cursor
96
+ */
97
+ v2QueryEvents(startTime: Date, endTime: Date, eventName?: string, customerAlias?: string, limit?: number, cursor?: string, _options?: Configuration): Promise<RequestContext>;
98
+ /**
99
+ * Aggregate events by meters and time grouping via the events-service.
100
+ * Aggregate events (v2)
101
+ * @param v2QueryEventsAggregationRequest Configuration for aggregating events by meters and time grouping.
102
+ */
103
+ v2QueryEventsAggregation(v2QueryEventsAggregationRequest: V2QueryEventsAggregationRequest, _options?: Configuration): Promise<RequestContext>;
104
+ /**
105
+ * Submit a batch of events for ingestion via the events-service.
106
+ * Submit a batch of events for ingestion (v2)
107
+ * @param v2SendEventsRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
108
+ */
109
+ v2SendEvents(v2SendEventsRequest: V2SendEventsRequest, _options?: Configuration): Promise<RequestContext>;
110
+ /**
111
+ * Submit a batch of events for testing via the events-service. NOTE: this is a dry run and will not store the events.
112
+ * Submit a batch of events for testing (v2)
113
+ * @param v2EventsDryRunRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
114
+ */
115
+ v2SendEventsDryRun(v2EventsDryRunRequest: V2EventsDryRunRequest, _options?: Configuration): Promise<RequestContext>;
57
116
  }
58
117
  export declare class EventsApiResponseProcessor {
59
118
  /**
@@ -104,4 +163,60 @@ export declare class EventsApiResponseProcessor {
104
163
  * @throws ApiException if the response code was not in [200, 299]
105
164
  */
106
165
  sendEventsDryRunWithHttpInfo(response: ResponseContext): Promise<HttpInfo<EventsDryRunResponse>>;
166
+ /**
167
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
168
+ * to the expected objects
169
+ *
170
+ * @params response Response returned by the server for a request to v2DeleteEventByRefId
171
+ * @throws ApiException if the response code was not in [200, 299]
172
+ */
173
+ v2DeleteEventByRefIdWithHttpInfo(response: ResponseContext): Promise<HttpInfo<V2DeleteEventResponse>>;
174
+ /**
175
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
176
+ * to the expected objects
177
+ *
178
+ * @params response Response returned by the server for a request to v2DeleteEventsByRefs
179
+ * @throws ApiException if the response code was not in [200, 299]
180
+ */
181
+ v2DeleteEventsByRefsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<V2DeleteEventsByRefsResponse>>;
182
+ /**
183
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
184
+ * to the expected objects
185
+ *
186
+ * @params response Response returned by the server for a request to v2GetEventByRefId
187
+ * @throws ApiException if the response code was not in [200, 299]
188
+ */
189
+ v2GetEventByRefIdWithHttpInfo(response: ResponseContext): Promise<HttpInfo<V2GetEventResponse>>;
190
+ /**
191
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
192
+ * to the expected objects
193
+ *
194
+ * @params response Response returned by the server for a request to v2QueryEvents
195
+ * @throws ApiException if the response code was not in [200, 299]
196
+ */
197
+ v2QueryEventsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<V2QueryEventsResponse>>;
198
+ /**
199
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
200
+ * to the expected objects
201
+ *
202
+ * @params response Response returned by the server for a request to v2QueryEventsAggregation
203
+ * @throws ApiException if the response code was not in [200, 299]
204
+ */
205
+ v2QueryEventsAggregationWithHttpInfo(response: ResponseContext): Promise<HttpInfo<V2QueryEventsAggregationResponse>>;
206
+ /**
207
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
208
+ * to the expected objects
209
+ *
210
+ * @params response Response returned by the server for a request to v2SendEvents
211
+ * @throws ApiException if the response code was not in [200, 299]
212
+ */
213
+ v2SendEventsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<V2SendEventsResponse>>;
214
+ /**
215
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
216
+ * to the expected objects
217
+ *
218
+ * @params response Response returned by the server for a request to v2SendEventsDryRun
219
+ * @throws ApiException if the response code was not in [200, 299]
220
+ */
221
+ v2SendEventsDryRunWithHttpInfo(response: ResponseContext): Promise<HttpInfo<V2EventsDryRunResponse>>;
107
222
  }