vayu-ts 0.3.4 → 0.3.8
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.d.ts +4 -1
- package/dist/openapi/apis/InvoicesApi.js +42 -14
- 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 +14 -0
- package/dist/openapi/models/CreateContractRequest.js +24 -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 +243 -4
- package/dist/openapi/types/ObservableAPI.js +486 -9
- package/dist/openapi/types/PromiseAPI.d.ts +239 -4
- package/dist/openapi/types/PromiseAPI.js +330 -22
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PromiseWebhooksApi = exports.PromiseProductConsumptionsApi = exports.PromiseMetersApi = exports.PromiseMeasurementsApi = exports.PromiseInvoicesApi = exports.PromiseEventsApi = exports.PromiseCustomersApi = exports.PromiseCreditsApi = exports.PromiseContractsApi = exports.PromiseCloudUsageSubmissionApi = exports.PromiseCatalogProductsApi = exports.PromiseAuthApi = void 0;
|
|
3
|
+
exports.PromiseWebhooksApi = exports.PromiseProductConsumptionsApi = exports.PromisePlansApi = exports.PromiseMetersApi = exports.PromiseMeasurementsApi = exports.PromiseInvoicesApi = exports.PromiseEventsApi = exports.PromiseCustomersApi = exports.PromiseCustomFieldsApi = exports.PromiseCreditsApi = exports.PromiseContractsApi = exports.PromiseCloudUsageSubmissionApi = exports.PromiseCatalogProductsApi = exports.PromiseAuthApi = void 0;
|
|
4
4
|
const ObservableAPI_1 = require("./ObservableAPI");
|
|
5
5
|
class PromiseAuthApi {
|
|
6
6
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
@@ -321,9 +321,110 @@ class PromiseCreditsApi {
|
|
|
321
321
|
}
|
|
322
322
|
exports.PromiseCreditsApi = PromiseCreditsApi;
|
|
323
323
|
const ObservableAPI_6 = require("./ObservableAPI");
|
|
324
|
+
class PromiseCustomFieldsApi {
|
|
325
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
326
|
+
this.api = new ObservableAPI_6.ObservableCustomFieldsApi(configuration, requestFactory, responseProcessor);
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Create a new Custom field.
|
|
330
|
+
* Create Custom field
|
|
331
|
+
* @param createCustomFieldRequest
|
|
332
|
+
*/
|
|
333
|
+
createCustomFieldWithHttpInfo(createCustomFieldRequest, _options) {
|
|
334
|
+
const result = this.api.createCustomFieldWithHttpInfo(createCustomFieldRequest, _options);
|
|
335
|
+
return result.toPromise();
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Create a new Custom field.
|
|
339
|
+
* Create Custom field
|
|
340
|
+
* @param createCustomFieldRequest
|
|
341
|
+
*/
|
|
342
|
+
createCustomField(createCustomFieldRequest, _options) {
|
|
343
|
+
const result = this.api.createCustomField(createCustomFieldRequest, _options);
|
|
344
|
+
return result.toPromise();
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Delete a Custom field by id.
|
|
348
|
+
* Delete Custom field
|
|
349
|
+
* @param customFieldId
|
|
350
|
+
*/
|
|
351
|
+
deleteCustomFieldWithHttpInfo(customFieldId, _options) {
|
|
352
|
+
const result = this.api.deleteCustomFieldWithHttpInfo(customFieldId, _options);
|
|
353
|
+
return result.toPromise();
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Delete a Custom field by id.
|
|
357
|
+
* Delete Custom field
|
|
358
|
+
* @param customFieldId
|
|
359
|
+
*/
|
|
360
|
+
deleteCustomField(customFieldId, _options) {
|
|
361
|
+
const result = this.api.deleteCustomField(customFieldId, _options);
|
|
362
|
+
return result.toPromise();
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Get a Custom field by id.
|
|
366
|
+
* Get Custom field
|
|
367
|
+
* @param customFieldId
|
|
368
|
+
*/
|
|
369
|
+
getCustomFieldWithHttpInfo(customFieldId, _options) {
|
|
370
|
+
const result = this.api.getCustomFieldWithHttpInfo(customFieldId, _options);
|
|
371
|
+
return result.toPromise();
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Get a Custom field by id.
|
|
375
|
+
* Get Custom field
|
|
376
|
+
* @param customFieldId
|
|
377
|
+
*/
|
|
378
|
+
getCustomField(customFieldId, _options) {
|
|
379
|
+
const result = this.api.getCustomField(customFieldId, _options);
|
|
380
|
+
return result.toPromise();
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Get a list of Custom fields.
|
|
384
|
+
* List Custom fields
|
|
385
|
+
* @param [limit]
|
|
386
|
+
* @param [cursor]
|
|
387
|
+
*/
|
|
388
|
+
listCustomFieldsWithHttpInfo(limit, cursor, _options) {
|
|
389
|
+
const result = this.api.listCustomFieldsWithHttpInfo(limit, cursor, _options);
|
|
390
|
+
return result.toPromise();
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Get a list of Custom fields.
|
|
394
|
+
* List Custom fields
|
|
395
|
+
* @param [limit]
|
|
396
|
+
* @param [cursor]
|
|
397
|
+
*/
|
|
398
|
+
listCustomFields(limit, cursor, _options) {
|
|
399
|
+
const result = this.api.listCustomFields(limit, cursor, _options);
|
|
400
|
+
return result.toPromise();
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Update a Custom field by id.
|
|
404
|
+
* Update Custom field
|
|
405
|
+
* @param updateCustomFieldRequest
|
|
406
|
+
* @param customFieldId
|
|
407
|
+
*/
|
|
408
|
+
updateCustomFieldWithHttpInfo(updateCustomFieldRequest, customFieldId, _options) {
|
|
409
|
+
const result = this.api.updateCustomFieldWithHttpInfo(updateCustomFieldRequest, customFieldId, _options);
|
|
410
|
+
return result.toPromise();
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* Update a Custom field by id.
|
|
414
|
+
* Update Custom field
|
|
415
|
+
* @param updateCustomFieldRequest
|
|
416
|
+
* @param customFieldId
|
|
417
|
+
*/
|
|
418
|
+
updateCustomField(updateCustomFieldRequest, customFieldId, _options) {
|
|
419
|
+
const result = this.api.updateCustomField(updateCustomFieldRequest, customFieldId, _options);
|
|
420
|
+
return result.toPromise();
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
exports.PromiseCustomFieldsApi = PromiseCustomFieldsApi;
|
|
424
|
+
const ObservableAPI_7 = require("./ObservableAPI");
|
|
324
425
|
class PromiseCustomersApi {
|
|
325
426
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
326
|
-
this.api = new
|
|
427
|
+
this.api = new ObservableAPI_7.ObservableCustomersApi(configuration, requestFactory, responseProcessor);
|
|
327
428
|
}
|
|
328
429
|
/**
|
|
329
430
|
* Create a new Customer.
|
|
@@ -549,10 +650,10 @@ class PromiseCustomersApi {
|
|
|
549
650
|
}
|
|
550
651
|
}
|
|
551
652
|
exports.PromiseCustomersApi = PromiseCustomersApi;
|
|
552
|
-
const
|
|
653
|
+
const ObservableAPI_8 = require("./ObservableAPI");
|
|
553
654
|
class PromiseEventsApi {
|
|
554
655
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
555
|
-
this.api = new
|
|
656
|
+
this.api = new ObservableAPI_8.ObservableEventsApi(configuration, requestFactory, responseProcessor);
|
|
556
657
|
}
|
|
557
658
|
/**
|
|
558
659
|
* Use this endpoint to remove a specific event using its reference ID.
|
|
@@ -614,11 +715,12 @@ class PromiseEventsApi {
|
|
|
614
715
|
* @param startTime
|
|
615
716
|
* @param endTime
|
|
616
717
|
* @param [eventName]
|
|
718
|
+
* @param [customerAlias]
|
|
617
719
|
* @param [limit]
|
|
618
720
|
* @param [cursor]
|
|
619
721
|
*/
|
|
620
|
-
queryEventsWithHttpInfo(startTime, endTime, eventName, limit, cursor, _options) {
|
|
621
|
-
const result = this.api.queryEventsWithHttpInfo(startTime, endTime, eventName, limit, cursor, _options);
|
|
722
|
+
queryEventsWithHttpInfo(startTime, endTime, eventName, customerAlias, limit, cursor, _options) {
|
|
723
|
+
const result = this.api.queryEventsWithHttpInfo(startTime, endTime, eventName, customerAlias, limit, cursor, _options);
|
|
622
724
|
return result.toPromise();
|
|
623
725
|
}
|
|
624
726
|
/**
|
|
@@ -627,11 +729,12 @@ class PromiseEventsApi {
|
|
|
627
729
|
* @param startTime
|
|
628
730
|
* @param endTime
|
|
629
731
|
* @param [eventName]
|
|
732
|
+
* @param [customerAlias]
|
|
630
733
|
* @param [limit]
|
|
631
734
|
* @param [cursor]
|
|
632
735
|
*/
|
|
633
|
-
queryEvents(startTime, endTime, eventName, limit, cursor, _options) {
|
|
634
|
-
const result = this.api.queryEvents(startTime, endTime, eventName, limit, cursor, _options);
|
|
736
|
+
queryEvents(startTime, endTime, eventName, customerAlias, limit, cursor, _options) {
|
|
737
|
+
const result = this.api.queryEvents(startTime, endTime, eventName, customerAlias, limit, cursor, _options);
|
|
635
738
|
return result.toPromise();
|
|
636
739
|
}
|
|
637
740
|
/**
|
|
@@ -670,12 +773,148 @@ class PromiseEventsApi {
|
|
|
670
773
|
const result = this.api.sendEventsDryRun(eventsDryRunRequest, _options);
|
|
671
774
|
return result.toPromise();
|
|
672
775
|
}
|
|
776
|
+
/**
|
|
777
|
+
* Use this endpoint to remove a specific event using its reference ID (v2).
|
|
778
|
+
* Delete an event by refId (v2)
|
|
779
|
+
* @param refId
|
|
780
|
+
*/
|
|
781
|
+
v2DeleteEventByRefIdWithHttpInfo(refId, _options) {
|
|
782
|
+
const result = this.api.v2DeleteEventByRefIdWithHttpInfo(refId, _options);
|
|
783
|
+
return result.toPromise();
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* Use this endpoint to remove a specific event using its reference ID (v2).
|
|
787
|
+
* Delete an event by refId (v2)
|
|
788
|
+
* @param refId
|
|
789
|
+
*/
|
|
790
|
+
v2DeleteEventByRefId(refId, _options) {
|
|
791
|
+
const result = this.api.v2DeleteEventByRefId(refId, _options);
|
|
792
|
+
return result.toPromise();
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* Delete multiple events, identified by ref, in a single request (v2).
|
|
796
|
+
* Delete events by refs (v2)
|
|
797
|
+
* @param v2DeleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
|
|
798
|
+
*/
|
|
799
|
+
v2DeleteEventsByRefsWithHttpInfo(v2DeleteEventsByRefsRequest, _options) {
|
|
800
|
+
const result = this.api.v2DeleteEventsByRefsWithHttpInfo(v2DeleteEventsByRefsRequest, _options);
|
|
801
|
+
return result.toPromise();
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
* Delete multiple events, identified by ref, in a single request (v2).
|
|
805
|
+
* Delete events by refs (v2)
|
|
806
|
+
* @param v2DeleteEventsByRefsRequest A list of event refs to delete. The request deletes the matching events for the authenticated account.
|
|
807
|
+
*/
|
|
808
|
+
v2DeleteEventsByRefs(v2DeleteEventsByRefsRequest, _options) {
|
|
809
|
+
const result = this.api.v2DeleteEventsByRefs(v2DeleteEventsByRefsRequest, _options);
|
|
810
|
+
return result.toPromise();
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* Use this endpoint to get a specific event using its reference ID (v2).
|
|
814
|
+
* Get event by refId (v2)
|
|
815
|
+
* @param refId
|
|
816
|
+
*/
|
|
817
|
+
v2GetEventByRefIdWithHttpInfo(refId, _options) {
|
|
818
|
+
const result = this.api.v2GetEventByRefIdWithHttpInfo(refId, _options);
|
|
819
|
+
return result.toPromise();
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* Use this endpoint to get a specific event using its reference ID (v2).
|
|
823
|
+
* Get event by refId (v2)
|
|
824
|
+
* @param refId
|
|
825
|
+
*/
|
|
826
|
+
v2GetEventByRefId(refId, _options) {
|
|
827
|
+
const result = this.api.v2GetEventByRefId(refId, _options);
|
|
828
|
+
return result.toPromise();
|
|
829
|
+
}
|
|
830
|
+
/**
|
|
831
|
+
* Fetch events occurring within a specified timestamp range via the events-service (ClickHouse-backed).
|
|
832
|
+
* Query events by timestamp period and optional event name (v2)
|
|
833
|
+
* @param startTime
|
|
834
|
+
* @param endTime
|
|
835
|
+
* @param [eventName]
|
|
836
|
+
* @param [customerAlias]
|
|
837
|
+
* @param [limit]
|
|
838
|
+
* @param [cursor]
|
|
839
|
+
*/
|
|
840
|
+
v2QueryEventsWithHttpInfo(startTime, endTime, eventName, customerAlias, limit, cursor, _options) {
|
|
841
|
+
const result = this.api.v2QueryEventsWithHttpInfo(startTime, endTime, eventName, customerAlias, limit, cursor, _options);
|
|
842
|
+
return result.toPromise();
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* Fetch events occurring within a specified timestamp range via the events-service (ClickHouse-backed).
|
|
846
|
+
* Query events by timestamp period and optional event name (v2)
|
|
847
|
+
* @param startTime
|
|
848
|
+
* @param endTime
|
|
849
|
+
* @param [eventName]
|
|
850
|
+
* @param [customerAlias]
|
|
851
|
+
* @param [limit]
|
|
852
|
+
* @param [cursor]
|
|
853
|
+
*/
|
|
854
|
+
v2QueryEvents(startTime, endTime, eventName, customerAlias, limit, cursor, _options) {
|
|
855
|
+
const result = this.api.v2QueryEvents(startTime, endTime, eventName, customerAlias, limit, cursor, _options);
|
|
856
|
+
return result.toPromise();
|
|
857
|
+
}
|
|
858
|
+
/**
|
|
859
|
+
* Aggregate events by meters and time grouping via the events-service.
|
|
860
|
+
* Aggregate events (v2)
|
|
861
|
+
* @param v2QueryEventsAggregationRequest Configuration for aggregating events by meters and time grouping.
|
|
862
|
+
*/
|
|
863
|
+
v2QueryEventsAggregationWithHttpInfo(v2QueryEventsAggregationRequest, _options) {
|
|
864
|
+
const result = this.api.v2QueryEventsAggregationWithHttpInfo(v2QueryEventsAggregationRequest, _options);
|
|
865
|
+
return result.toPromise();
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* Aggregate events by meters and time grouping via the events-service.
|
|
869
|
+
* Aggregate events (v2)
|
|
870
|
+
* @param v2QueryEventsAggregationRequest Configuration for aggregating events by meters and time grouping.
|
|
871
|
+
*/
|
|
872
|
+
v2QueryEventsAggregation(v2QueryEventsAggregationRequest, _options) {
|
|
873
|
+
const result = this.api.v2QueryEventsAggregation(v2QueryEventsAggregationRequest, _options);
|
|
874
|
+
return result.toPromise();
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* Submit a batch of events for ingestion via the events-service.
|
|
878
|
+
* Submit a batch of events for ingestion (v2)
|
|
879
|
+
* @param v2SendEventsRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
|
|
880
|
+
*/
|
|
881
|
+
v2SendEventsWithHttpInfo(v2SendEventsRequest, _options) {
|
|
882
|
+
const result = this.api.v2SendEventsWithHttpInfo(v2SendEventsRequest, _options);
|
|
883
|
+
return result.toPromise();
|
|
884
|
+
}
|
|
885
|
+
/**
|
|
886
|
+
* Submit a batch of events for ingestion via the events-service.
|
|
887
|
+
* Submit a batch of events for ingestion (v2)
|
|
888
|
+
* @param v2SendEventsRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
|
|
889
|
+
*/
|
|
890
|
+
v2SendEvents(v2SendEventsRequest, _options) {
|
|
891
|
+
const result = this.api.v2SendEvents(v2SendEventsRequest, _options);
|
|
892
|
+
return result.toPromise();
|
|
893
|
+
}
|
|
894
|
+
/**
|
|
895
|
+
* Submit a batch of events for testing via the events-service. NOTE: this is a dry run and will not store the events.
|
|
896
|
+
* Submit a batch of events for testing (v2)
|
|
897
|
+
* @param v2EventsDryRunRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
|
|
898
|
+
*/
|
|
899
|
+
v2SendEventsDryRunWithHttpInfo(v2EventsDryRunRequest, _options) {
|
|
900
|
+
const result = this.api.v2SendEventsDryRunWithHttpInfo(v2EventsDryRunRequest, _options);
|
|
901
|
+
return result.toPromise();
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
* Submit a batch of events for testing via the events-service. NOTE: this is a dry run and will not store the events.
|
|
905
|
+
* Submit a batch of events for testing (v2)
|
|
906
|
+
* @param v2EventsDryRunRequest An array of events following the EventInput schema. Up to 1000 events or a total payload max size of 256KB
|
|
907
|
+
*/
|
|
908
|
+
v2SendEventsDryRun(v2EventsDryRunRequest, _options) {
|
|
909
|
+
const result = this.api.v2SendEventsDryRun(v2EventsDryRunRequest, _options);
|
|
910
|
+
return result.toPromise();
|
|
911
|
+
}
|
|
673
912
|
}
|
|
674
913
|
exports.PromiseEventsApi = PromiseEventsApi;
|
|
675
|
-
const
|
|
914
|
+
const ObservableAPI_9 = require("./ObservableAPI");
|
|
676
915
|
class PromiseInvoicesApi {
|
|
677
916
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
678
|
-
this.api = new
|
|
917
|
+
this.api = new ObservableAPI_9.ObservableInvoicesApi(configuration, requestFactory, responseProcessor);
|
|
679
918
|
}
|
|
680
919
|
/**
|
|
681
920
|
* Get a Invoice by id.
|
|
@@ -719,9 +958,12 @@ class PromiseInvoicesApi {
|
|
|
719
958
|
* @param [limit]
|
|
720
959
|
* @param [cursor]
|
|
721
960
|
* @param [customerId]
|
|
961
|
+
* @param [billingStatus] Filter invoices by their billing status
|
|
962
|
+
* @param [issuedAtFrom] Only include invoices issued on or after this timestamp
|
|
963
|
+
* @param [issuedAtTo] Only include invoices issued on or before this timestamp
|
|
722
964
|
*/
|
|
723
|
-
listInvoicesWithHttpInfo(limit, cursor, customerId, _options) {
|
|
724
|
-
const result = this.api.listInvoicesWithHttpInfo(limit, cursor, customerId, _options);
|
|
965
|
+
listInvoicesWithHttpInfo(limit, cursor, customerId, billingStatus, issuedAtFrom, issuedAtTo, _options) {
|
|
966
|
+
const result = this.api.listInvoicesWithHttpInfo(limit, cursor, customerId, billingStatus, issuedAtFrom, issuedAtTo, _options);
|
|
725
967
|
return result.toPromise();
|
|
726
968
|
}
|
|
727
969
|
/**
|
|
@@ -730,17 +972,20 @@ class PromiseInvoicesApi {
|
|
|
730
972
|
* @param [limit]
|
|
731
973
|
* @param [cursor]
|
|
732
974
|
* @param [customerId]
|
|
975
|
+
* @param [billingStatus] Filter invoices by their billing status
|
|
976
|
+
* @param [issuedAtFrom] Only include invoices issued on or after this timestamp
|
|
977
|
+
* @param [issuedAtTo] Only include invoices issued on or before this timestamp
|
|
733
978
|
*/
|
|
734
|
-
listInvoices(limit, cursor, customerId, _options) {
|
|
735
|
-
const result = this.api.listInvoices(limit, cursor, customerId, _options);
|
|
979
|
+
listInvoices(limit, cursor, customerId, billingStatus, issuedAtFrom, issuedAtTo, _options) {
|
|
980
|
+
const result = this.api.listInvoices(limit, cursor, customerId, billingStatus, issuedAtFrom, issuedAtTo, _options);
|
|
736
981
|
return result.toPromise();
|
|
737
982
|
}
|
|
738
983
|
}
|
|
739
984
|
exports.PromiseInvoicesApi = PromiseInvoicesApi;
|
|
740
|
-
const
|
|
985
|
+
const ObservableAPI_10 = require("./ObservableAPI");
|
|
741
986
|
class PromiseMeasurementsApi {
|
|
742
987
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
743
|
-
this.api = new
|
|
988
|
+
this.api = new ObservableAPI_10.ObservableMeasurementsApi(configuration, requestFactory, responseProcessor);
|
|
744
989
|
}
|
|
745
990
|
/**
|
|
746
991
|
* Create a new Measurement.
|
|
@@ -818,10 +1063,10 @@ class PromiseMeasurementsApi {
|
|
|
818
1063
|
}
|
|
819
1064
|
}
|
|
820
1065
|
exports.PromiseMeasurementsApi = PromiseMeasurementsApi;
|
|
821
|
-
const
|
|
1066
|
+
const ObservableAPI_11 = require("./ObservableAPI");
|
|
822
1067
|
class PromiseMetersApi {
|
|
823
1068
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
824
|
-
this.api = new
|
|
1069
|
+
this.api = new ObservableAPI_11.ObservableMetersApi(configuration, requestFactory, responseProcessor);
|
|
825
1070
|
}
|
|
826
1071
|
/**
|
|
827
1072
|
* Delete a Meter by id.
|
|
@@ -901,10 +1146,73 @@ class PromiseMetersApi {
|
|
|
901
1146
|
}
|
|
902
1147
|
}
|
|
903
1148
|
exports.PromiseMetersApi = PromiseMetersApi;
|
|
904
|
-
const
|
|
1149
|
+
const ObservableAPI_12 = require("./ObservableAPI");
|
|
1150
|
+
class PromisePlansApi {
|
|
1151
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
1152
|
+
this.api = new ObservableAPI_12.ObservablePlansApi(configuration, requestFactory, responseProcessor);
|
|
1153
|
+
}
|
|
1154
|
+
/**
|
|
1155
|
+
* Delete a Plan by id.
|
|
1156
|
+
* Delete Plan
|
|
1157
|
+
* @param planId
|
|
1158
|
+
*/
|
|
1159
|
+
deletePlanWithHttpInfo(planId, _options) {
|
|
1160
|
+
const result = this.api.deletePlanWithHttpInfo(planId, _options);
|
|
1161
|
+
return result.toPromise();
|
|
1162
|
+
}
|
|
1163
|
+
/**
|
|
1164
|
+
* Delete a Plan by id.
|
|
1165
|
+
* Delete Plan
|
|
1166
|
+
* @param planId
|
|
1167
|
+
*/
|
|
1168
|
+
deletePlan(planId, _options) {
|
|
1169
|
+
const result = this.api.deletePlan(planId, _options);
|
|
1170
|
+
return result.toPromise();
|
|
1171
|
+
}
|
|
1172
|
+
/**
|
|
1173
|
+
* Get a Plan by id.
|
|
1174
|
+
* Get Plan
|
|
1175
|
+
* @param planId
|
|
1176
|
+
*/
|
|
1177
|
+
getPlanWithHttpInfo(planId, _options) {
|
|
1178
|
+
const result = this.api.getPlanWithHttpInfo(planId, _options);
|
|
1179
|
+
return result.toPromise();
|
|
1180
|
+
}
|
|
1181
|
+
/**
|
|
1182
|
+
* Get a Plan by id.
|
|
1183
|
+
* Get Plan
|
|
1184
|
+
* @param planId
|
|
1185
|
+
*/
|
|
1186
|
+
getPlan(planId, _options) {
|
|
1187
|
+
const result = this.api.getPlan(planId, _options);
|
|
1188
|
+
return result.toPromise();
|
|
1189
|
+
}
|
|
1190
|
+
/**
|
|
1191
|
+
* Get a list of Plans.
|
|
1192
|
+
* List Plans
|
|
1193
|
+
* @param [limit]
|
|
1194
|
+
* @param [cursor]
|
|
1195
|
+
*/
|
|
1196
|
+
listPlansWithHttpInfo(limit, cursor, _options) {
|
|
1197
|
+
const result = this.api.listPlansWithHttpInfo(limit, cursor, _options);
|
|
1198
|
+
return result.toPromise();
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
* Get a list of Plans.
|
|
1202
|
+
* List Plans
|
|
1203
|
+
* @param [limit]
|
|
1204
|
+
* @param [cursor]
|
|
1205
|
+
*/
|
|
1206
|
+
listPlans(limit, cursor, _options) {
|
|
1207
|
+
const result = this.api.listPlans(limit, cursor, _options);
|
|
1208
|
+
return result.toPromise();
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
exports.PromisePlansApi = PromisePlansApi;
|
|
1212
|
+
const ObservableAPI_13 = require("./ObservableAPI");
|
|
905
1213
|
class PromiseProductConsumptionsApi {
|
|
906
1214
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
907
|
-
this.api = new
|
|
1215
|
+
this.api = new ObservableAPI_13.ObservableProductConsumptionsApi(configuration, requestFactory, responseProcessor);
|
|
908
1216
|
}
|
|
909
1217
|
/**
|
|
910
1218
|
* Use this action to get the consumption data for a product
|
|
@@ -926,10 +1234,10 @@ class PromiseProductConsumptionsApi {
|
|
|
926
1234
|
}
|
|
927
1235
|
}
|
|
928
1236
|
exports.PromiseProductConsumptionsApi = PromiseProductConsumptionsApi;
|
|
929
|
-
const
|
|
1237
|
+
const ObservableAPI_14 = require("./ObservableAPI");
|
|
930
1238
|
class PromiseWebhooksApi {
|
|
931
1239
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
932
|
-
this.api = new
|
|
1240
|
+
this.api = new ObservableAPI_14.ObservableWebhooksApi(configuration, requestFactory, responseProcessor);
|
|
933
1241
|
}
|
|
934
1242
|
/**
|
|
935
1243
|
* Use this endpoint to subscribe to webhooks and receive event notifications.
|
|
@@ -16,7 +16,7 @@ class EventsClient {
|
|
|
16
16
|
async query(startTime, endTime, eventName, paginationOptions) {
|
|
17
17
|
const cursor = paginationOptions?.cursor;
|
|
18
18
|
const limit = paginationOptions?.limit;
|
|
19
|
-
return this.client.queryEvents(startTime, endTime, eventName, limit, cursor);
|
|
19
|
+
return this.client.queryEvents(startTime, endTime, eventName, undefined, limit, cursor);
|
|
20
20
|
}
|
|
21
21
|
async send(events) {
|
|
22
22
|
return this.client.sendEvents({ events });
|
|
@@ -8,6 +8,8 @@ export declare class WebhooksClient {
|
|
|
8
8
|
tolerance?: number;
|
|
9
9
|
}): boolean;
|
|
10
10
|
subscribeToCommitmentCrossed(callbackUrl: string): Promise<void>;
|
|
11
|
+
subscribeToCommitmentUsageCrossed(callbackUrl: string, threshold: number): Promise<void>;
|
|
12
|
+
subscribeToCurrencyCommitmentUsageCrossed(callbackUrl: string, threshold: number): Promise<void>;
|
|
11
13
|
subscribeToAnonymousCustomerCreated(callbackUrl: string): Promise<void>;
|
|
12
14
|
private subscribe;
|
|
13
15
|
}
|
|
@@ -29,6 +29,20 @@ class WebhooksClient {
|
|
|
29
29
|
eventType: openapi_1.NotificationEventType.CommitmentCrossed,
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
+
subscribeToCommitmentUsageCrossed(callbackUrl, threshold) {
|
|
33
|
+
return this.subscribe({
|
|
34
|
+
callbackUrl,
|
|
35
|
+
eventType: openapi_1.NotificationEventType.CommitmentUsageCrossed,
|
|
36
|
+
threshold,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
subscribeToCurrencyCommitmentUsageCrossed(callbackUrl, threshold) {
|
|
40
|
+
return this.subscribe({
|
|
41
|
+
callbackUrl,
|
|
42
|
+
eventType: openapi_1.NotificationEventType.CurrencyCommitmentUsageCrossed,
|
|
43
|
+
threshold,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
32
46
|
subscribeToAnonymousCustomerCreated(callbackUrl) {
|
|
33
47
|
return this.subscribe({
|
|
34
48
|
callbackUrl,
|