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.
- package/dist/openapi/apis/AuthApi.js +8 -4
- package/dist/openapi/apis/CatalogProductsApi.js +46 -23
- package/dist/openapi/apis/CloudUsageSubmissionApi.js +8 -4
- package/dist/openapi/apis/ContractsApi.js +48 -22
- package/dist/openapi/apis/CreditsApi.js +24 -12
- package/dist/openapi/apis/CustomFieldsApi.d.ts +89 -0
- package/dist/openapi/apis/CustomFieldsApi.js +377 -0
- package/dist/openapi/apis/CustomersApi.js +124 -52
- package/dist/openapi/apis/EventsApi.d.ts +116 -1
- package/dist/openapi/apis/EventsApi.js +605 -25
- package/dist/openapi/apis/InvoicesApi.js +26 -13
- package/dist/openapi/apis/MeasurementsApi.js +36 -18
- package/dist/openapi/apis/MetersApi.js +38 -19
- package/dist/openapi/apis/PlansApi.d.ts +56 -0
- package/dist/openapi/apis/PlansApi.js +225 -0
- package/dist/openapi/apis/ProductConsumptionsApi.js +12 -4
- package/dist/openapi/apis/WebhooksApi.js +12 -4
- package/dist/openapi/index.d.ts +1 -1
- package/dist/openapi/index.js +3 -1
- package/dist/openapi/models/BillingInterval.d.ts +18 -0
- package/dist/openapi/models/BillingInterval.js +22 -0
- package/dist/openapi/models/ConflictErrorResponse.d.ts +42 -0
- package/dist/openapi/models/ConflictErrorResponse.js +52 -0
- package/dist/openapi/models/Contact.js +1 -1
- package/dist/openapi/models/CreateContractRequest.d.ts +6 -0
- package/dist/openapi/models/CreateContractRequest.js +12 -0
- package/dist/openapi/models/CreateCustomFieldRequest.d.ts +71 -0
- package/dist/openapi/models/CreateCustomFieldRequest.js +90 -0
- package/dist/openapi/models/CreateCustomFieldResponse.d.ts +32 -0
- package/dist/openapi/models/CreateCustomFieldResponse.js +32 -0
- package/dist/openapi/models/CreateCustomFieldResponseCustomField.d.ts +74 -0
- package/dist/openapi/models/CreateCustomFieldResponseCustomField.js +108 -0
- package/dist/openapi/models/CreateCustomerRequest.d.ts +20 -0
- package/dist/openapi/models/CreateCustomerRequest.js +30 -0
- package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +20 -0
- package/dist/openapi/models/CreateCustomerResponseCustomer.js +30 -0
- package/dist/openapi/models/CustomFieldEntities.d.ts +20 -0
- package/dist/openapi/models/CustomFieldEntities.js +24 -0
- package/dist/openapi/models/CustomFieldValueTypes.d.ts +2 -1
- package/dist/openapi/models/CustomFieldValueTypes.js +1 -0
- package/dist/openapi/models/DeleteContractResponseContract.d.ts +6 -0
- package/dist/openapi/models/DeleteContractResponseContract.js +12 -0
- package/dist/openapi/models/DeleteCustomFieldResponse.d.ts +32 -0
- package/dist/openapi/models/DeleteCustomFieldResponse.js +32 -0
- package/dist/openapi/models/DeleteCustomFieldResponseCustomField.d.ts +75 -0
- package/dist/openapi/models/DeleteCustomFieldResponseCustomField.js +114 -0
- package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +20 -0
- package/dist/openapi/models/DeleteCustomerResponseCustomer.js +30 -0
- package/dist/openapi/models/DeletePlanResponse.d.ts +32 -0
- package/dist/openapi/models/DeletePlanResponse.js +32 -0
- package/dist/openapi/models/DeletePlanResponsePlan.d.ts +42 -0
- package/dist/openapi/models/DeletePlanResponsePlan.js +68 -0
- package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.d.ts +1 -1
- package/dist/openapi/models/GetContractResponseContract.d.ts +6 -0
- package/dist/openapi/models/GetContractResponseContract.js +12 -0
- package/dist/openapi/models/GetCustomFieldResponse.d.ts +32 -0
- package/dist/openapi/models/GetCustomFieldResponse.js +32 -0
- package/dist/openapi/models/GetCustomerByNameResponseCustomer.d.ts +20 -0
- package/dist/openapi/models/GetCustomerByNameResponseCustomer.js +30 -0
- package/dist/openapi/models/GetPlanResponse.d.ts +32 -0
- package/dist/openapi/models/GetPlanResponse.js +32 -0
- package/dist/openapi/models/GetPlanResponsePlan.d.ts +41 -0
- package/dist/openapi/models/GetPlanResponsePlan.js +62 -0
- package/dist/openapi/models/InternalServerErrorResponse.d.ts +42 -0
- package/dist/openapi/models/InternalServerErrorResponse.js +52 -0
- package/dist/openapi/models/ListCustomFieldsResponse.d.ts +35 -0
- package/dist/openapi/models/ListCustomFieldsResponse.js +50 -0
- package/dist/openapi/models/ListPlansResponse.d.ts +35 -0
- package/dist/openapi/models/ListPlansResponse.js +50 -0
- package/dist/openapi/models/NotFoundErrorResponse.d.ts +42 -0
- package/dist/openapi/models/NotFoundErrorResponse.js +52 -0
- package/dist/openapi/models/NotificationEventType.d.ts +5 -1
- package/dist/openapi/models/NotificationEventType.js +4 -0
- package/dist/openapi/models/ObjectSerializer.d.ts +51 -0
- package/dist/openapi/models/ObjectSerializer.js +176 -0
- package/dist/openapi/models/PlanBillingData.d.ts +41 -0
- package/dist/openapi/models/PlanBillingData.js +59 -0
- package/dist/openapi/models/PlanDuration.d.ts +30 -0
- package/dist/openapi/models/PlanDuration.js +25 -0
- package/dist/openapi/models/PlanStatus.d.ts +19 -0
- package/dist/openapi/models/PlanStatus.js +23 -0
- package/dist/openapi/models/ProductGroupCommitment.d.ts +8 -0
- package/dist/openapi/models/ProductGroupCommitment.js +12 -1
- package/dist/openapi/models/ProductGroupProductsInnerCommitment.d.ts +8 -0
- package/dist/openapi/models/ProductGroupProductsInnerCommitment.js +12 -1
- package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.d.ts +4 -4
- package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.js +2 -2
- package/dist/openapi/models/ProductGroupProductsInnerCommitmentSchedulingDuration.d.ts +41 -0
- package/dist/openapi/models/ProductGroupProductsInnerCommitmentSchedulingDuration.js +48 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricing.d.ts +3 -1
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.d.ts +6 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.js +12 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.d.ts +2 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.js +6 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.d.ts +2 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.js +6 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf5.d.ts +42 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf5.js +48 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf6.d.ts +42 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf6.js +48 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOfDiscount.d.ts +53 -0
- package/dist/openapi/models/ProductGroupProductsInnerPricingOneOfDiscount.js +58 -0
- package/dist/openapi/models/QueryEventsResponse.d.ts +3 -3
- package/dist/openapi/models/QueryEventsResponse.js +18 -0
- package/dist/openapi/models/RateLimitErrorResponse.d.ts +42 -0
- package/dist/openapi/models/RateLimitErrorResponse.js +52 -0
- package/dist/openapi/models/RequestTooLongErrorResponse.d.ts +42 -0
- package/dist/openapi/models/RequestTooLongErrorResponse.js +52 -0
- package/dist/openapi/models/UnauthorizedErrorResponse.d.ts +42 -0
- package/dist/openapi/models/UnauthorizedErrorResponse.js +52 -0
- package/dist/openapi/models/UnlimitedDuration.d.ts +14 -0
- package/dist/openapi/models/UnlimitedDuration.js +18 -0
- package/dist/openapi/models/UpdateCustomFieldRequest.d.ts +71 -0
- package/dist/openapi/models/UpdateCustomFieldRequest.js +90 -0
- package/dist/openapi/models/UpdateCustomFieldResponse.d.ts +32 -0
- package/dist/openapi/models/UpdateCustomFieldResponse.js +32 -0
- package/dist/openapi/models/UpdateCustomerRequest.d.ts +20 -0
- package/dist/openapi/models/UpdateCustomerRequest.js +30 -0
- package/dist/openapi/models/V2DeleteEventResponse.d.ts +32 -0
- package/dist/openapi/models/V2DeleteEventResponse.js +32 -0
- package/dist/openapi/models/V2DeleteEventsByRefsRequest.d.ts +31 -0
- package/dist/openapi/models/V2DeleteEventsByRefsRequest.js +32 -0
- package/dist/openapi/models/V2DeleteEventsByRefsResponse.d.ts +35 -0
- package/dist/openapi/models/V2DeleteEventsByRefsResponse.js +32 -0
- package/dist/openapi/models/V2EventsDryRunRequest.d.ts +32 -0
- package/dist/openapi/models/V2EventsDryRunRequest.js +32 -0
- package/dist/openapi/models/V2EventsDryRunResponse.d.ts +32 -0
- package/dist/openapi/models/V2EventsDryRunResponse.js +32 -0
- package/dist/openapi/models/V2GetEventResponse.d.ts +32 -0
- package/dist/openapi/models/V2GetEventResponse.js +32 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequest.d.ts +45 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequest.js +70 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInner.d.ts +39 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInner.js +62 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregation.d.ts +35 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregation.js +44 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregationFieldArithmetic.d.ts +38 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregationFieldArithmetic.js +45 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInner.d.ts +43 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInner.js +54 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInnerValue.d.ts +30 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInnerValue.js +25 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerSqlFullQuery.d.ts +34 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerSqlFullQuery.js +38 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestPeriod.d.ts +32 -0
- package/dist/openapi/models/V2QueryEventsAggregationRequestPeriod.js +38 -0
- package/dist/openapi/models/V2QueryEventsAggregationResponse.d.ts +42 -0
- package/dist/openapi/models/V2QueryEventsAggregationResponse.js +52 -0
- package/dist/openapi/models/V2QueryEventsAggregationResponseDataPointsInner.d.ts +34 -0
- package/dist/openapi/models/V2QueryEventsAggregationResponseDataPointsInner.js +38 -0
- package/dist/openapi/models/V2QueryEventsResponse.d.ts +35 -0
- package/dist/openapi/models/V2QueryEventsResponse.js +50 -0
- package/dist/openapi/models/V2SendEventsRequest.d.ts +32 -0
- package/dist/openapi/models/V2SendEventsRequest.js +32 -0
- package/dist/openapi/models/V2SendEventsResponse.d.ts +40 -0
- package/dist/openapi/models/V2SendEventsResponse.js +38 -0
- package/dist/openapi/models/ValidationErrorResponse.d.ts +51 -0
- package/dist/openapi/models/ValidationErrorResponse.js +60 -0
- package/dist/openapi/models/ValidationErrorResponseParamsInner.d.ts +38 -0
- package/dist/openapi/models/ValidationErrorResponseParamsInner.js +38 -0
- package/dist/openapi/models/WebhookSubscribeRequest.d.ts +1 -0
- package/dist/openapi/models/WebhookSubscribeRequest.js +6 -0
- package/dist/openapi/models/all.d.ts +51 -0
- package/dist/openapi/models/all.js +51 -0
- package/dist/openapi/types/ObservableAPI.d.ts +235 -2
- package/dist/openapi/types/ObservableAPI.js +476 -5
- package/dist/openapi/types/PromiseAPI.d.ts +231 -2
- package/dist/openapi/types/PromiseAPI.js +320 -18
- package/dist/sdk/clients/EventsClient.js +1 -1
- package/dist/sdk/clients/WebhooksClient.d.ts +2 -0
- package/dist/sdk/clients/WebhooksClient.js +14 -0
- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 \'/events\' 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
|
}
|