vayu-ts 0.2.13 → 0.2.15
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/CustomersApi.d.ts +15 -0
- package/dist/openapi/apis/CustomersApi.js +64 -0
- package/dist/openapi/apis/MeasurementsApi.d.ts +72 -0
- package/dist/openapi/apis/{PlansApi.js → MeasurementsApi.js} +106 -39
- package/dist/openapi/index.d.ts +1 -1
- package/dist/openapi/index.js +2 -4
- package/dist/openapi/models/CreateMeasurementRequest.d.ts +44 -0
- package/dist/openapi/models/{NetSuiteExportSalesOrderRequest.js → CreateMeasurementRequest.js} +21 -15
- package/dist/openapi/models/{NetSuiteSyncInvoicesRequestDataEntity.d.ts → CreateMeasurementRequestUsageDate.d.ts} +7 -2
- package/dist/openapi/models/{NetSuiteSyncInvoicesResponse.js → CreateMeasurementRequestUsageDate.js} +22 -13
- package/dist/openapi/models/{GetPlanResponse.d.ts → CreateMeasurementResponse.d.ts} +3 -3
- package/dist/openapi/models/{DeletePlanResponse.js → CreateMeasurementResponse.js} +10 -10
- package/dist/openapi/models/{GetPlanResponsePlan.d.ts → CreateMeasurementResponseMeasurement.d.ts} +13 -7
- package/dist/openapi/models/{DeletePlanResponsePlan.js → CreateMeasurementResponseMeasurement.js} +21 -21
- package/dist/openapi/models/CreditLedgerEntry.d.ts +5 -1
- package/dist/openapi/models/CreditLedgerEntry.js +27 -3
- package/dist/openapi/models/DeleteMeasurementResponse.d.ts +32 -0
- package/dist/openapi/models/{NetSuiteSyncInvoicesRequestDataEntity.js → DeleteMeasurementResponse.js} +10 -10
- package/dist/openapi/models/{DeletePlanResponsePlan.d.ts → DeleteMeasurementResponseMeasurement.d.ts} +13 -7
- package/dist/openapi/models/{GetPlanResponsePlan.js → DeleteMeasurementResponseMeasurement.js} +27 -15
- package/dist/openapi/models/{NetSuiteExportSalesOrderRequest.d.ts → GetCustomerProductsConsumptionsByAliasResponse.d.ts} +3 -4
- package/dist/openapi/models/{NetSuiteSyncInvoicesRequestDataItem.js → GetCustomerProductsConsumptionsByAliasResponse.js} +10 -10
- package/dist/openapi/models/{DeletePlanResponse.d.ts → GetMeasurementResponse.d.ts} +3 -3
- package/dist/openapi/models/{GetPlanResponse.js → GetMeasurementResponse.js} +10 -10
- package/dist/openapi/models/{ListPlansResponse.d.ts → ListMeasurementsResponse.d.ts} +3 -3
- package/dist/openapi/models/{ListPlansResponse.js → ListMeasurementsResponse.js} +10 -10
- package/dist/openapi/models/NotificationEventType.d.ts +4 -0
- package/dist/openapi/models/NotificationEventType.js +4 -0
- package/dist/openapi/models/ObjectSerializer.d.ts +9 -22
- package/dist/openapi/models/ObjectSerializer.js +27 -61
- package/dist/openapi/models/all.d.ts +9 -22
- package/dist/openapi/models/all.js +9 -22
- package/dist/openapi/types/ObservableAPI.d.ts +75 -117
- package/dist/openapi/types/ObservableAPI.js +142 -220
- package/dist/openapi/types/PromiseAPI.d.ts +73 -111
- package/dist/openapi/types/PromiseAPI.js +104 -156
- package/dist/sdk/clients/CustomersClient.d.ts +1 -0
- package/dist/sdk/clients/CustomersClient.js +3 -0
- package/dist/sdk/clients/index.d.ts +0 -1
- package/dist/sdk/clients/index.js +0 -1
- package/dist/sdk/index.d.ts +1 -2
- package/dist/sdk/index.js +0 -3
- package/dist/sdk/types/index.d.ts +0 -1
- package/dist/sdk/types/index.js +0 -1
- package/package.json +1 -1
- package/dist/openapi/apis/IntegrationsApi.d.ts +0 -41
- package/dist/openapi/apis/IntegrationsApi.js +0 -151
- package/dist/openapi/apis/PlansApi.d.ts +0 -56
- package/dist/openapi/apis/ReportsApi.d.ts +0 -41
- package/dist/openapi/apis/ReportsApi.js +0 -147
- package/dist/openapi/models/BillingInterval.d.ts +0 -18
- package/dist/openapi/models/BillingInterval.js +0 -22
- package/dist/openapi/models/ContractStatus.d.ts +0 -19
- package/dist/openapi/models/ContractStatus.js +0 -23
- package/dist/openapi/models/Currency.d.ts +0 -17
- package/dist/openapi/models/Currency.js +0 -21
- package/dist/openapi/models/GetCommitmentReportResponse.d.ts +0 -49
- package/dist/openapi/models/GetCommitmentReportResponse.js +0 -128
- package/dist/openapi/models/GetProductsUsageReportResponse.d.ts +0 -49
- package/dist/openapi/models/GetProductsUsageReportResponse.js +0 -128
- package/dist/openapi/models/NetSuiteSyncInvoicesRequest.d.ts +0 -37
- package/dist/openapi/models/NetSuiteSyncInvoicesRequest.js +0 -48
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.d.ts +0 -42
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.js +0 -86
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.d.ts +0 -32
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.d.ts +0 -36
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.js +0 -56
- package/dist/openapi/models/NetSuiteSyncInvoicesResponse.d.ts +0 -32
- package/dist/openapi/models/PaymentTerm.d.ts +0 -18
- package/dist/openapi/models/PaymentTerm.js +0 -22
- package/dist/openapi/models/PlanBillingData.d.ts +0 -41
- package/dist/openapi/models/PlanBillingData.js +0 -59
- package/dist/openapi/models/PlanDuration.d.ts +0 -30
- package/dist/openapi/models/PlanDuration.js +0 -25
- package/dist/openapi/models/PlanStatus.d.ts +0 -19
- package/dist/openapi/models/PlanStatus.js +0 -23
- package/dist/openapi/models/UnlimitedDuration.d.ts +0 -14
- package/dist/openapi/models/UnlimitedDuration.js +0 -18
- package/dist/sdk/clients/PlansClient.d.ts +0 -8
- package/dist/sdk/clients/PlansClient.js +0 -22
- package/dist/sdk/types/Plans.d.ts +0 -1
- package/dist/sdk/types/Plans.js +0 -2
|
@@ -4,36 +4,34 @@ import { CreateContractRequest } from '../models/CreateContractRequest';
|
|
|
4
4
|
import { CreateContractResponse } from '../models/CreateContractResponse';
|
|
5
5
|
import { CreateCustomerRequest } from '../models/CreateCustomerRequest';
|
|
6
6
|
import { CreateCustomerResponse } from '../models/CreateCustomerResponse';
|
|
7
|
+
import { CreateMeasurementRequest } from '../models/CreateMeasurementRequest';
|
|
8
|
+
import { CreateMeasurementResponse } from '../models/CreateMeasurementResponse';
|
|
7
9
|
import { DeductCreditsRequest } from '../models/DeductCreditsRequest';
|
|
8
10
|
import { DeleteContractResponse } from '../models/DeleteContractResponse';
|
|
9
11
|
import { DeleteCustomerResponse } from '../models/DeleteCustomerResponse';
|
|
10
12
|
import { DeleteEventResponse } from '../models/DeleteEventResponse';
|
|
13
|
+
import { DeleteMeasurementResponse } from '../models/DeleteMeasurementResponse';
|
|
11
14
|
import { DeleteMeterResponse } from '../models/DeleteMeterResponse';
|
|
12
|
-
import { DeletePlanResponse } from '../models/DeletePlanResponse';
|
|
13
15
|
import { EventsDryRunRequest } from '../models/EventsDryRunRequest';
|
|
14
16
|
import { EventsDryRunResponse } from '../models/EventsDryRunResponse';
|
|
15
|
-
import { GetCommitmentReportResponse } from '../models/GetCommitmentReportResponse';
|
|
16
17
|
import { GetContractResponse } from '../models/GetContractResponse';
|
|
18
|
+
import { GetCustomerProductsConsumptionsByAliasResponse } from '../models/GetCustomerProductsConsumptionsByAliasResponse';
|
|
17
19
|
import { GetCustomerProductsConsumptionsResponse } from '../models/GetCustomerProductsConsumptionsResponse';
|
|
18
20
|
import { GetCustomerResponse } from '../models/GetCustomerResponse';
|
|
19
21
|
import { GetEventResponse } from '../models/GetEventResponse';
|
|
20
22
|
import { GetInvoiceResponse } from '../models/GetInvoiceResponse';
|
|
23
|
+
import { GetMeasurementResponse } from '../models/GetMeasurementResponse';
|
|
21
24
|
import { GetMeterResponse } from '../models/GetMeterResponse';
|
|
22
|
-
import { GetPlanResponse } from '../models/GetPlanResponse';
|
|
23
25
|
import { GetProductConsumptionResponse } from '../models/GetProductConsumptionResponse';
|
|
24
|
-
import { GetProductsUsageReportResponse } from '../models/GetProductsUsageReportResponse';
|
|
25
26
|
import { GrantCreditsRequest } from '../models/GrantCreditsRequest';
|
|
26
27
|
import { ListContractsResponse } from '../models/ListContractsResponse';
|
|
27
28
|
import { ListCreditLedgerEntriesResponse } from '../models/ListCreditLedgerEntriesResponse';
|
|
28
29
|
import { ListCustomersResponse } from '../models/ListCustomersResponse';
|
|
29
30
|
import { ListInvoicesResponse } from '../models/ListInvoicesResponse';
|
|
31
|
+
import { ListMeasurementsResponse } from '../models/ListMeasurementsResponse';
|
|
30
32
|
import { ListMetersResponse } from '../models/ListMetersResponse';
|
|
31
|
-
import { ListPlansResponse } from '../models/ListPlansResponse';
|
|
32
33
|
import { LoginRequest } from '../models/LoginRequest';
|
|
33
34
|
import { LoginResponse } from '../models/LoginResponse';
|
|
34
|
-
import { NetSuiteExportSalesOrderRequest } from '../models/NetSuiteExportSalesOrderRequest';
|
|
35
|
-
import { NetSuiteSyncInvoicesRequest } from '../models/NetSuiteSyncInvoicesRequest';
|
|
36
|
-
import { NetSuiteSyncInvoicesResponse } from '../models/NetSuiteSyncInvoicesResponse';
|
|
37
35
|
import { QueryEventsResponse } from '../models/QueryEventsResponse';
|
|
38
36
|
import { SendEventsRequest } from '../models/SendEventsRequest';
|
|
39
37
|
import { SendEventsResponse } from '../models/SendEventsResponse';
|
|
@@ -223,6 +221,18 @@ export declare class PromiseCustomersApi {
|
|
|
223
221
|
* @param customerId
|
|
224
222
|
*/
|
|
225
223
|
getCustomerProductsConsumptions(customerId: string, _options?: Configuration): Promise<GetCustomerProductsConsumptionsResponse>;
|
|
224
|
+
/**
|
|
225
|
+
* Use this endpoint to get the products consumptions by the customer alias.
|
|
226
|
+
* Get products consumptions by customer alias
|
|
227
|
+
* @param alias
|
|
228
|
+
*/
|
|
229
|
+
getCustomerProductsConsumptionsByAliasWithHttpInfo(alias: string, _options?: Configuration): Promise<HttpInfo<GetCustomerProductsConsumptionsByAliasResponse>>;
|
|
230
|
+
/**
|
|
231
|
+
* Use this endpoint to get the products consumptions by the customer alias.
|
|
232
|
+
* Get products consumptions by customer alias
|
|
233
|
+
* @param alias
|
|
234
|
+
*/
|
|
235
|
+
getCustomerProductsConsumptionsByAlias(alias: string, _options?: Configuration): Promise<GetCustomerProductsConsumptionsByAliasResponse>;
|
|
226
236
|
/**
|
|
227
237
|
* Get a list of Customers.
|
|
228
238
|
* List Customers
|
|
@@ -325,35 +335,6 @@ export declare class PromiseEventsApi {
|
|
|
325
335
|
*/
|
|
326
336
|
sendEventsDryRun(eventsDryRunRequest: EventsDryRunRequest, _options?: Configuration): Promise<EventsDryRunResponse>;
|
|
327
337
|
}
|
|
328
|
-
import { IntegrationsApiRequestFactory, IntegrationsApiResponseProcessor } from "../apis/IntegrationsApi";
|
|
329
|
-
export declare class PromiseIntegrationsApi {
|
|
330
|
-
private api;
|
|
331
|
-
constructor(configuration: Configuration, requestFactory?: IntegrationsApiRequestFactory, responseProcessor?: IntegrationsApiResponseProcessor);
|
|
332
|
-
/**
|
|
333
|
-
* This endpoint is used to export sales order to NetSuite.
|
|
334
|
-
* Export sales order to NetSuite
|
|
335
|
-
* @param netSuiteExportSalesOrderRequest
|
|
336
|
-
*/
|
|
337
|
-
exportNetSuiteSalesOrderWithHttpInfo(netSuiteExportSalesOrderRequest: NetSuiteExportSalesOrderRequest, _options?: Configuration): Promise<HttpInfo<void>>;
|
|
338
|
-
/**
|
|
339
|
-
* This endpoint is used to export sales order to NetSuite.
|
|
340
|
-
* Export sales order to NetSuite
|
|
341
|
-
* @param netSuiteExportSalesOrderRequest
|
|
342
|
-
*/
|
|
343
|
-
exportNetSuiteSalesOrder(netSuiteExportSalesOrderRequest: NetSuiteExportSalesOrderRequest, _options?: Configuration): Promise<void>;
|
|
344
|
-
/**
|
|
345
|
-
* This endpoint is used to sync invoices to NetSuite.
|
|
346
|
-
* Sync invoices to NetSuite
|
|
347
|
-
* @param netSuiteSyncInvoicesRequest
|
|
348
|
-
*/
|
|
349
|
-
netSuiteSyncInvoicesWithHttpInfo(netSuiteSyncInvoicesRequest: NetSuiteSyncInvoicesRequest, _options?: Configuration): Promise<HttpInfo<NetSuiteSyncInvoicesResponse>>;
|
|
350
|
-
/**
|
|
351
|
-
* This endpoint is used to sync invoices to NetSuite.
|
|
352
|
-
* Sync invoices to NetSuite
|
|
353
|
-
* @param netSuiteSyncInvoicesRequest
|
|
354
|
-
*/
|
|
355
|
-
netSuiteSyncInvoices(netSuiteSyncInvoicesRequest: NetSuiteSyncInvoicesRequest, _options?: Configuration): Promise<NetSuiteSyncInvoicesResponse>;
|
|
356
|
-
}
|
|
357
338
|
import { InvoicesApiRequestFactory, InvoicesApiResponseProcessor } from "../apis/InvoicesApi";
|
|
358
339
|
export declare class PromiseInvoicesApi {
|
|
359
340
|
private api;
|
|
@@ -385,6 +366,61 @@ export declare class PromiseInvoicesApi {
|
|
|
385
366
|
*/
|
|
386
367
|
listInvoices(limit?: number, cursor?: string, _options?: Configuration): Promise<ListInvoicesResponse>;
|
|
387
368
|
}
|
|
369
|
+
import { MeasurementsApiRequestFactory, MeasurementsApiResponseProcessor } from "../apis/MeasurementsApi";
|
|
370
|
+
export declare class PromiseMeasurementsApi {
|
|
371
|
+
private api;
|
|
372
|
+
constructor(configuration: Configuration, requestFactory?: MeasurementsApiRequestFactory, responseProcessor?: MeasurementsApiResponseProcessor);
|
|
373
|
+
/**
|
|
374
|
+
* Create a new Measurement.
|
|
375
|
+
* Create Measurement
|
|
376
|
+
* @param createMeasurementRequest
|
|
377
|
+
*/
|
|
378
|
+
createMeasurementWithHttpInfo(createMeasurementRequest: CreateMeasurementRequest, _options?: Configuration): Promise<HttpInfo<CreateMeasurementResponse>>;
|
|
379
|
+
/**
|
|
380
|
+
* Create a new Measurement.
|
|
381
|
+
* Create Measurement
|
|
382
|
+
* @param createMeasurementRequest
|
|
383
|
+
*/
|
|
384
|
+
createMeasurement(createMeasurementRequest: CreateMeasurementRequest, _options?: Configuration): Promise<CreateMeasurementResponse>;
|
|
385
|
+
/**
|
|
386
|
+
* Delete a Measurement by id.
|
|
387
|
+
* Delete Measurement
|
|
388
|
+
* @param measurementId
|
|
389
|
+
*/
|
|
390
|
+
deleteMeasurementWithHttpInfo(measurementId: string, _options?: Configuration): Promise<HttpInfo<DeleteMeasurementResponse>>;
|
|
391
|
+
/**
|
|
392
|
+
* Delete a Measurement by id.
|
|
393
|
+
* Delete Measurement
|
|
394
|
+
* @param measurementId
|
|
395
|
+
*/
|
|
396
|
+
deleteMeasurement(measurementId: string, _options?: Configuration): Promise<DeleteMeasurementResponse>;
|
|
397
|
+
/**
|
|
398
|
+
* Get a Measurement by id.
|
|
399
|
+
* Get Measurement
|
|
400
|
+
* @param measurementId
|
|
401
|
+
*/
|
|
402
|
+
getMeasurementWithHttpInfo(measurementId: string, _options?: Configuration): Promise<HttpInfo<GetMeasurementResponse>>;
|
|
403
|
+
/**
|
|
404
|
+
* Get a Measurement by id.
|
|
405
|
+
* Get Measurement
|
|
406
|
+
* @param measurementId
|
|
407
|
+
*/
|
|
408
|
+
getMeasurement(measurementId: string, _options?: Configuration): Promise<GetMeasurementResponse>;
|
|
409
|
+
/**
|
|
410
|
+
* Get a list of Measurements.
|
|
411
|
+
* List Measurements
|
|
412
|
+
* @param [limit]
|
|
413
|
+
* @param [cursor]
|
|
414
|
+
*/
|
|
415
|
+
listMeasurementsWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<ListMeasurementsResponse>>;
|
|
416
|
+
/**
|
|
417
|
+
* Get a list of Measurements.
|
|
418
|
+
* List Measurements
|
|
419
|
+
* @param [limit]
|
|
420
|
+
* @param [cursor]
|
|
421
|
+
*/
|
|
422
|
+
listMeasurements(limit?: number, cursor?: string, _options?: Configuration): Promise<ListMeasurementsResponse>;
|
|
423
|
+
}
|
|
388
424
|
import { MetersApiRequestFactory, MetersApiResponseProcessor } from "../apis/MetersApi";
|
|
389
425
|
export declare class PromiseMetersApi {
|
|
390
426
|
private api;
|
|
@@ -442,49 +478,6 @@ export declare class PromiseMetersApi {
|
|
|
442
478
|
*/
|
|
443
479
|
updateMeter(updateMeterRequest: UpdateMeterRequest, meterId: string, _options?: Configuration): Promise<UpdateMeterResponse>;
|
|
444
480
|
}
|
|
445
|
-
import { PlansApiRequestFactory, PlansApiResponseProcessor } from "../apis/PlansApi";
|
|
446
|
-
export declare class PromisePlansApi {
|
|
447
|
-
private api;
|
|
448
|
-
constructor(configuration: Configuration, requestFactory?: PlansApiRequestFactory, responseProcessor?: PlansApiResponseProcessor);
|
|
449
|
-
/**
|
|
450
|
-
* Delete a Plan by id.
|
|
451
|
-
* Delete Plan
|
|
452
|
-
* @param planId
|
|
453
|
-
*/
|
|
454
|
-
deletePlanWithHttpInfo(planId: string, _options?: Configuration): Promise<HttpInfo<DeletePlanResponse>>;
|
|
455
|
-
/**
|
|
456
|
-
* Delete a Plan by id.
|
|
457
|
-
* Delete Plan
|
|
458
|
-
* @param planId
|
|
459
|
-
*/
|
|
460
|
-
deletePlan(planId: string, _options?: Configuration): Promise<DeletePlanResponse>;
|
|
461
|
-
/**
|
|
462
|
-
* Get a Plan by id.
|
|
463
|
-
* Get Plan
|
|
464
|
-
* @param planId
|
|
465
|
-
*/
|
|
466
|
-
getPlanWithHttpInfo(planId: string, _options?: Configuration): Promise<HttpInfo<GetPlanResponse>>;
|
|
467
|
-
/**
|
|
468
|
-
* Get a Plan by id.
|
|
469
|
-
* Get Plan
|
|
470
|
-
* @param planId
|
|
471
|
-
*/
|
|
472
|
-
getPlan(planId: string, _options?: Configuration): Promise<GetPlanResponse>;
|
|
473
|
-
/**
|
|
474
|
-
* Get a list of Plans.
|
|
475
|
-
* List Plans
|
|
476
|
-
* @param [limit]
|
|
477
|
-
* @param [cursor]
|
|
478
|
-
*/
|
|
479
|
-
listPlansWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<ListPlansResponse>>;
|
|
480
|
-
/**
|
|
481
|
-
* Get a list of Plans.
|
|
482
|
-
* List Plans
|
|
483
|
-
* @param [limit]
|
|
484
|
-
* @param [cursor]
|
|
485
|
-
*/
|
|
486
|
-
listPlans(limit?: number, cursor?: string, _options?: Configuration): Promise<ListPlansResponse>;
|
|
487
|
-
}
|
|
488
481
|
import { ProductConsumptionsApiRequestFactory, ProductConsumptionsApiResponseProcessor } from "../apis/ProductConsumptionsApi";
|
|
489
482
|
export declare class PromiseProductConsumptionsApi {
|
|
490
483
|
private api;
|
|
@@ -502,37 +495,6 @@ export declare class PromiseProductConsumptionsApi {
|
|
|
502
495
|
*/
|
|
503
496
|
getProductConsumption(productId: string, _options?: Configuration): Promise<GetProductConsumptionResponse>;
|
|
504
497
|
}
|
|
505
|
-
import { ReportsApiRequestFactory, ReportsApiResponseProcessor } from "../apis/ReportsApi";
|
|
506
|
-
export declare class PromiseReportsApi {
|
|
507
|
-
private api;
|
|
508
|
-
constructor(configuration: Configuration, requestFactory?: ReportsApiRequestFactory, responseProcessor?: ReportsApiResponseProcessor);
|
|
509
|
-
/**
|
|
510
|
-
* Get commitment report
|
|
511
|
-
* @param [reportId]
|
|
512
|
-
*/
|
|
513
|
-
getCommitmentReportResponseWithHttpInfo(reportId?: string, _options?: Configuration): Promise<HttpInfo<GetCommitmentReportResponse>>;
|
|
514
|
-
/**
|
|
515
|
-
* Get commitment report
|
|
516
|
-
* @param [reportId]
|
|
517
|
-
*/
|
|
518
|
-
getCommitmentReportResponse(reportId?: string, _options?: Configuration): Promise<GetCommitmentReportResponse>;
|
|
519
|
-
/**
|
|
520
|
-
* Use this endpoint to get the products usage report.
|
|
521
|
-
* Get products usage report
|
|
522
|
-
* @param [reportId]
|
|
523
|
-
* @param [limit]
|
|
524
|
-
* @param [cursor]
|
|
525
|
-
*/
|
|
526
|
-
getProductsUsageReportWithHttpInfo(reportId?: string, limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<GetProductsUsageReportResponse>>;
|
|
527
|
-
/**
|
|
528
|
-
* Use this endpoint to get the products usage report.
|
|
529
|
-
* Get products usage report
|
|
530
|
-
* @param [reportId]
|
|
531
|
-
* @param [limit]
|
|
532
|
-
* @param [cursor]
|
|
533
|
-
*/
|
|
534
|
-
getProductsUsageReport(reportId?: string, limit?: number, cursor?: string, _options?: Configuration): Promise<GetProductsUsageReportResponse>;
|
|
535
|
-
}
|
|
536
498
|
import { WebhooksApiRequestFactory, WebhooksApiResponseProcessor } from "../apis/WebhooksApi";
|
|
537
499
|
export declare class PromiseWebhooksApi {
|
|
538
500
|
private api;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PromiseWebhooksApi = exports.
|
|
3
|
+
exports.PromiseWebhooksApi = exports.PromiseProductConsumptionsApi = exports.PromiseMetersApi = exports.PromiseMeasurementsApi = exports.PromiseInvoicesApi = exports.PromiseEventsApi = exports.PromiseCustomersApi = exports.PromiseCreditsApi = exports.PromiseContractsApi = exports.PromiseAuthApi = void 0;
|
|
4
4
|
const ObservableAPI_1 = require("./ObservableAPI");
|
|
5
5
|
class PromiseAuthApi {
|
|
6
6
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
@@ -267,6 +267,24 @@ class PromiseCustomersApi {
|
|
|
267
267
|
const result = this.api.getCustomerProductsConsumptions(customerId, _options);
|
|
268
268
|
return result.toPromise();
|
|
269
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
* Use this endpoint to get the products consumptions by the customer alias.
|
|
272
|
+
* Get products consumptions by customer alias
|
|
273
|
+
* @param alias
|
|
274
|
+
*/
|
|
275
|
+
getCustomerProductsConsumptionsByAliasWithHttpInfo(alias, _options) {
|
|
276
|
+
const result = this.api.getCustomerProductsConsumptionsByAliasWithHttpInfo(alias, _options);
|
|
277
|
+
return result.toPromise();
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Use this endpoint to get the products consumptions by the customer alias.
|
|
281
|
+
* Get products consumptions by customer alias
|
|
282
|
+
* @param alias
|
|
283
|
+
*/
|
|
284
|
+
getCustomerProductsConsumptionsByAlias(alias, _options) {
|
|
285
|
+
const result = this.api.getCustomerProductsConsumptionsByAlias(alias, _options);
|
|
286
|
+
return result.toPromise();
|
|
287
|
+
}
|
|
270
288
|
/**
|
|
271
289
|
* Get a list of Customers.
|
|
272
290
|
* List Customers
|
|
@@ -415,52 +433,9 @@ class PromiseEventsApi {
|
|
|
415
433
|
}
|
|
416
434
|
exports.PromiseEventsApi = PromiseEventsApi;
|
|
417
435
|
const ObservableAPI_6 = require("./ObservableAPI");
|
|
418
|
-
class PromiseIntegrationsApi {
|
|
419
|
-
constructor(configuration, requestFactory, responseProcessor) {
|
|
420
|
-
this.api = new ObservableAPI_6.ObservableIntegrationsApi(configuration, requestFactory, responseProcessor);
|
|
421
|
-
}
|
|
422
|
-
/**
|
|
423
|
-
* This endpoint is used to export sales order to NetSuite.
|
|
424
|
-
* Export sales order to NetSuite
|
|
425
|
-
* @param netSuiteExportSalesOrderRequest
|
|
426
|
-
*/
|
|
427
|
-
exportNetSuiteSalesOrderWithHttpInfo(netSuiteExportSalesOrderRequest, _options) {
|
|
428
|
-
const result = this.api.exportNetSuiteSalesOrderWithHttpInfo(netSuiteExportSalesOrderRequest, _options);
|
|
429
|
-
return result.toPromise();
|
|
430
|
-
}
|
|
431
|
-
/**
|
|
432
|
-
* This endpoint is used to export sales order to NetSuite.
|
|
433
|
-
* Export sales order to NetSuite
|
|
434
|
-
* @param netSuiteExportSalesOrderRequest
|
|
435
|
-
*/
|
|
436
|
-
exportNetSuiteSalesOrder(netSuiteExportSalesOrderRequest, _options) {
|
|
437
|
-
const result = this.api.exportNetSuiteSalesOrder(netSuiteExportSalesOrderRequest, _options);
|
|
438
|
-
return result.toPromise();
|
|
439
|
-
}
|
|
440
|
-
/**
|
|
441
|
-
* This endpoint is used to sync invoices to NetSuite.
|
|
442
|
-
* Sync invoices to NetSuite
|
|
443
|
-
* @param netSuiteSyncInvoicesRequest
|
|
444
|
-
*/
|
|
445
|
-
netSuiteSyncInvoicesWithHttpInfo(netSuiteSyncInvoicesRequest, _options) {
|
|
446
|
-
const result = this.api.netSuiteSyncInvoicesWithHttpInfo(netSuiteSyncInvoicesRequest, _options);
|
|
447
|
-
return result.toPromise();
|
|
448
|
-
}
|
|
449
|
-
/**
|
|
450
|
-
* This endpoint is used to sync invoices to NetSuite.
|
|
451
|
-
* Sync invoices to NetSuite
|
|
452
|
-
* @param netSuiteSyncInvoicesRequest
|
|
453
|
-
*/
|
|
454
|
-
netSuiteSyncInvoices(netSuiteSyncInvoicesRequest, _options) {
|
|
455
|
-
const result = this.api.netSuiteSyncInvoices(netSuiteSyncInvoicesRequest, _options);
|
|
456
|
-
return result.toPromise();
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
exports.PromiseIntegrationsApi = PromiseIntegrationsApi;
|
|
460
|
-
const ObservableAPI_7 = require("./ObservableAPI");
|
|
461
436
|
class PromiseInvoicesApi {
|
|
462
437
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
463
|
-
this.api = new
|
|
438
|
+
this.api = new ObservableAPI_6.ObservableInvoicesApi(configuration, requestFactory, responseProcessor);
|
|
464
439
|
}
|
|
465
440
|
/**
|
|
466
441
|
* Get a Invoice by id.
|
|
@@ -502,6 +477,87 @@ class PromiseInvoicesApi {
|
|
|
502
477
|
}
|
|
503
478
|
}
|
|
504
479
|
exports.PromiseInvoicesApi = PromiseInvoicesApi;
|
|
480
|
+
const ObservableAPI_7 = require("./ObservableAPI");
|
|
481
|
+
class PromiseMeasurementsApi {
|
|
482
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
483
|
+
this.api = new ObservableAPI_7.ObservableMeasurementsApi(configuration, requestFactory, responseProcessor);
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Create a new Measurement.
|
|
487
|
+
* Create Measurement
|
|
488
|
+
* @param createMeasurementRequest
|
|
489
|
+
*/
|
|
490
|
+
createMeasurementWithHttpInfo(createMeasurementRequest, _options) {
|
|
491
|
+
const result = this.api.createMeasurementWithHttpInfo(createMeasurementRequest, _options);
|
|
492
|
+
return result.toPromise();
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Create a new Measurement.
|
|
496
|
+
* Create Measurement
|
|
497
|
+
* @param createMeasurementRequest
|
|
498
|
+
*/
|
|
499
|
+
createMeasurement(createMeasurementRequest, _options) {
|
|
500
|
+
const result = this.api.createMeasurement(createMeasurementRequest, _options);
|
|
501
|
+
return result.toPromise();
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Delete a Measurement by id.
|
|
505
|
+
* Delete Measurement
|
|
506
|
+
* @param measurementId
|
|
507
|
+
*/
|
|
508
|
+
deleteMeasurementWithHttpInfo(measurementId, _options) {
|
|
509
|
+
const result = this.api.deleteMeasurementWithHttpInfo(measurementId, _options);
|
|
510
|
+
return result.toPromise();
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* Delete a Measurement by id.
|
|
514
|
+
* Delete Measurement
|
|
515
|
+
* @param measurementId
|
|
516
|
+
*/
|
|
517
|
+
deleteMeasurement(measurementId, _options) {
|
|
518
|
+
const result = this.api.deleteMeasurement(measurementId, _options);
|
|
519
|
+
return result.toPromise();
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Get a Measurement by id.
|
|
523
|
+
* Get Measurement
|
|
524
|
+
* @param measurementId
|
|
525
|
+
*/
|
|
526
|
+
getMeasurementWithHttpInfo(measurementId, _options) {
|
|
527
|
+
const result = this.api.getMeasurementWithHttpInfo(measurementId, _options);
|
|
528
|
+
return result.toPromise();
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Get a Measurement by id.
|
|
532
|
+
* Get Measurement
|
|
533
|
+
* @param measurementId
|
|
534
|
+
*/
|
|
535
|
+
getMeasurement(measurementId, _options) {
|
|
536
|
+
const result = this.api.getMeasurement(measurementId, _options);
|
|
537
|
+
return result.toPromise();
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* Get a list of Measurements.
|
|
541
|
+
* List Measurements
|
|
542
|
+
* @param [limit]
|
|
543
|
+
* @param [cursor]
|
|
544
|
+
*/
|
|
545
|
+
listMeasurementsWithHttpInfo(limit, cursor, _options) {
|
|
546
|
+
const result = this.api.listMeasurementsWithHttpInfo(limit, cursor, _options);
|
|
547
|
+
return result.toPromise();
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Get a list of Measurements.
|
|
551
|
+
* List Measurements
|
|
552
|
+
* @param [limit]
|
|
553
|
+
* @param [cursor]
|
|
554
|
+
*/
|
|
555
|
+
listMeasurements(limit, cursor, _options) {
|
|
556
|
+
const result = this.api.listMeasurements(limit, cursor, _options);
|
|
557
|
+
return result.toPromise();
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
exports.PromiseMeasurementsApi = PromiseMeasurementsApi;
|
|
505
561
|
const ObservableAPI_8 = require("./ObservableAPI");
|
|
506
562
|
class PromiseMetersApi {
|
|
507
563
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
@@ -586,72 +642,9 @@ class PromiseMetersApi {
|
|
|
586
642
|
}
|
|
587
643
|
exports.PromiseMetersApi = PromiseMetersApi;
|
|
588
644
|
const ObservableAPI_9 = require("./ObservableAPI");
|
|
589
|
-
class PromisePlansApi {
|
|
590
|
-
constructor(configuration, requestFactory, responseProcessor) {
|
|
591
|
-
this.api = new ObservableAPI_9.ObservablePlansApi(configuration, requestFactory, responseProcessor);
|
|
592
|
-
}
|
|
593
|
-
/**
|
|
594
|
-
* Delete a Plan by id.
|
|
595
|
-
* Delete Plan
|
|
596
|
-
* @param planId
|
|
597
|
-
*/
|
|
598
|
-
deletePlanWithHttpInfo(planId, _options) {
|
|
599
|
-
const result = this.api.deletePlanWithHttpInfo(planId, _options);
|
|
600
|
-
return result.toPromise();
|
|
601
|
-
}
|
|
602
|
-
/**
|
|
603
|
-
* Delete a Plan by id.
|
|
604
|
-
* Delete Plan
|
|
605
|
-
* @param planId
|
|
606
|
-
*/
|
|
607
|
-
deletePlan(planId, _options) {
|
|
608
|
-
const result = this.api.deletePlan(planId, _options);
|
|
609
|
-
return result.toPromise();
|
|
610
|
-
}
|
|
611
|
-
/**
|
|
612
|
-
* Get a Plan by id.
|
|
613
|
-
* Get Plan
|
|
614
|
-
* @param planId
|
|
615
|
-
*/
|
|
616
|
-
getPlanWithHttpInfo(planId, _options) {
|
|
617
|
-
const result = this.api.getPlanWithHttpInfo(planId, _options);
|
|
618
|
-
return result.toPromise();
|
|
619
|
-
}
|
|
620
|
-
/**
|
|
621
|
-
* Get a Plan by id.
|
|
622
|
-
* Get Plan
|
|
623
|
-
* @param planId
|
|
624
|
-
*/
|
|
625
|
-
getPlan(planId, _options) {
|
|
626
|
-
const result = this.api.getPlan(planId, _options);
|
|
627
|
-
return result.toPromise();
|
|
628
|
-
}
|
|
629
|
-
/**
|
|
630
|
-
* Get a list of Plans.
|
|
631
|
-
* List Plans
|
|
632
|
-
* @param [limit]
|
|
633
|
-
* @param [cursor]
|
|
634
|
-
*/
|
|
635
|
-
listPlansWithHttpInfo(limit, cursor, _options) {
|
|
636
|
-
const result = this.api.listPlansWithHttpInfo(limit, cursor, _options);
|
|
637
|
-
return result.toPromise();
|
|
638
|
-
}
|
|
639
|
-
/**
|
|
640
|
-
* Get a list of Plans.
|
|
641
|
-
* List Plans
|
|
642
|
-
* @param [limit]
|
|
643
|
-
* @param [cursor]
|
|
644
|
-
*/
|
|
645
|
-
listPlans(limit, cursor, _options) {
|
|
646
|
-
const result = this.api.listPlans(limit, cursor, _options);
|
|
647
|
-
return result.toPromise();
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
exports.PromisePlansApi = PromisePlansApi;
|
|
651
|
-
const ObservableAPI_10 = require("./ObservableAPI");
|
|
652
645
|
class PromiseProductConsumptionsApi {
|
|
653
646
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
654
|
-
this.api = new
|
|
647
|
+
this.api = new ObservableAPI_9.ObservableProductConsumptionsApi(configuration, requestFactory, responseProcessor);
|
|
655
648
|
}
|
|
656
649
|
/**
|
|
657
650
|
* Use this action to get the consumption data for a product
|
|
@@ -673,55 +666,10 @@ class PromiseProductConsumptionsApi {
|
|
|
673
666
|
}
|
|
674
667
|
}
|
|
675
668
|
exports.PromiseProductConsumptionsApi = PromiseProductConsumptionsApi;
|
|
676
|
-
const
|
|
677
|
-
class PromiseReportsApi {
|
|
678
|
-
constructor(configuration, requestFactory, responseProcessor) {
|
|
679
|
-
this.api = new ObservableAPI_11.ObservableReportsApi(configuration, requestFactory, responseProcessor);
|
|
680
|
-
}
|
|
681
|
-
/**
|
|
682
|
-
* Get commitment report
|
|
683
|
-
* @param [reportId]
|
|
684
|
-
*/
|
|
685
|
-
getCommitmentReportResponseWithHttpInfo(reportId, _options) {
|
|
686
|
-
const result = this.api.getCommitmentReportResponseWithHttpInfo(reportId, _options);
|
|
687
|
-
return result.toPromise();
|
|
688
|
-
}
|
|
689
|
-
/**
|
|
690
|
-
* Get commitment report
|
|
691
|
-
* @param [reportId]
|
|
692
|
-
*/
|
|
693
|
-
getCommitmentReportResponse(reportId, _options) {
|
|
694
|
-
const result = this.api.getCommitmentReportResponse(reportId, _options);
|
|
695
|
-
return result.toPromise();
|
|
696
|
-
}
|
|
697
|
-
/**
|
|
698
|
-
* Use this endpoint to get the products usage report.
|
|
699
|
-
* Get products usage report
|
|
700
|
-
* @param [reportId]
|
|
701
|
-
* @param [limit]
|
|
702
|
-
* @param [cursor]
|
|
703
|
-
*/
|
|
704
|
-
getProductsUsageReportWithHttpInfo(reportId, limit, cursor, _options) {
|
|
705
|
-
const result = this.api.getProductsUsageReportWithHttpInfo(reportId, limit, cursor, _options);
|
|
706
|
-
return result.toPromise();
|
|
707
|
-
}
|
|
708
|
-
/**
|
|
709
|
-
* Use this endpoint to get the products usage report.
|
|
710
|
-
* Get products usage report
|
|
711
|
-
* @param [reportId]
|
|
712
|
-
* @param [limit]
|
|
713
|
-
* @param [cursor]
|
|
714
|
-
*/
|
|
715
|
-
getProductsUsageReport(reportId, limit, cursor, _options) {
|
|
716
|
-
const result = this.api.getProductsUsageReport(reportId, limit, cursor, _options);
|
|
717
|
-
return result.toPromise();
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
exports.PromiseReportsApi = PromiseReportsApi;
|
|
721
|
-
const ObservableAPI_12 = require("./ObservableAPI");
|
|
669
|
+
const ObservableAPI_10 = require("./ObservableAPI");
|
|
722
670
|
class PromiseWebhooksApi {
|
|
723
671
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
724
|
-
this.api = new
|
|
672
|
+
this.api = new ObservableAPI_10.ObservableWebhooksApi(configuration, requestFactory, responseProcessor);
|
|
725
673
|
}
|
|
726
674
|
/**
|
|
727
675
|
* Use this endpoint to subscribe to webhooks and receive event notifications.
|
|
@@ -10,4 +10,5 @@ export declare class CustomersClient {
|
|
|
10
10
|
update(id: string, payload: UpdateCustomerRequest): Promise<import("../types").UpdateCustomerResponse>;
|
|
11
11
|
delete(id: string): Promise<import("../types").DeleteCustomerResponse>;
|
|
12
12
|
listCustomerProductsConsumptions(id: string): Promise<import("../../openapi").GetCustomerProductsConsumptionsResponse>;
|
|
13
|
+
listCustomerProductsConsumptionsByAlias(alias: string): Promise<import("../../openapi").GetCustomerProductsConsumptionsByAliasResponse>;
|
|
13
14
|
}
|
|
@@ -30,5 +30,8 @@ class CustomersClient {
|
|
|
30
30
|
async listCustomerProductsConsumptions(id) {
|
|
31
31
|
return this.client.getCustomerProductsConsumptions(id);
|
|
32
32
|
}
|
|
33
|
+
async listCustomerProductsConsumptionsByAlias(alias) {
|
|
34
|
+
return this.client.getCustomerProductsConsumptionsByAlias(alias);
|
|
35
|
+
}
|
|
33
36
|
}
|
|
34
37
|
exports.CustomersClient = CustomersClient;
|
|
@@ -19,6 +19,5 @@ __exportStar(require("./CustomersClient"), exports);
|
|
|
19
19
|
__exportStar(require("./EventsClient"), exports);
|
|
20
20
|
__exportStar(require("./InvoicesClient"), exports);
|
|
21
21
|
__exportStar(require("./MetersClient"), exports);
|
|
22
|
-
__exportStar(require("./PlansClient"), exports);
|
|
23
22
|
__exportStar(require("./WebhooksClient"), exports);
|
|
24
23
|
__exportStar(require("./ProductsConsumptionsClient"), exports);
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContractsClient, CustomersClient, EventsClient, InvoicesClient, MetersClient,
|
|
1
|
+
import { ContractsClient, CustomersClient, EventsClient, InvoicesClient, MetersClient, WebhooksClient, ProductConsumptionsClient } from './clients';
|
|
2
2
|
export declare class Vayu {
|
|
3
3
|
private configurationManager;
|
|
4
4
|
constructor(apiKey: string, baseUrl?: string);
|
|
@@ -6,7 +6,6 @@ export declare class Vayu {
|
|
|
6
6
|
get events(): EventsClient;
|
|
7
7
|
get customers(): CustomersClient;
|
|
8
8
|
get meters(): MetersClient;
|
|
9
|
-
get plans(): PlansClient;
|
|
10
9
|
get contracts(): ContractsClient;
|
|
11
10
|
get invoices(): InvoicesClient;
|
|
12
11
|
get webhooks(): WebhooksClient;
|
package/dist/sdk/index.js
CHANGED
package/dist/sdk/types/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { BaseAPIRequestFactory } from './baseapi';
|
|
2
|
-
import { Configuration } from '../configuration';
|
|
3
|
-
import { RequestContext, ResponseContext, HttpInfo } from '../http/http';
|
|
4
|
-
import { NetSuiteExportSalesOrderRequest } from '../models/NetSuiteExportSalesOrderRequest';
|
|
5
|
-
import { NetSuiteSyncInvoicesRequest } from '../models/NetSuiteSyncInvoicesRequest';
|
|
6
|
-
import { NetSuiteSyncInvoicesResponse } from '../models/NetSuiteSyncInvoicesResponse';
|
|
7
|
-
/**
|
|
8
|
-
* no description
|
|
9
|
-
*/
|
|
10
|
-
export declare class IntegrationsApiRequestFactory extends BaseAPIRequestFactory {
|
|
11
|
-
/**
|
|
12
|
-
* This endpoint is used to export sales order to NetSuite.
|
|
13
|
-
* Export sales order to NetSuite
|
|
14
|
-
* @param netSuiteExportSalesOrderRequest
|
|
15
|
-
*/
|
|
16
|
-
exportNetSuiteSalesOrder(netSuiteExportSalesOrderRequest: NetSuiteExportSalesOrderRequest, _options?: Configuration): Promise<RequestContext>;
|
|
17
|
-
/**
|
|
18
|
-
* This endpoint is used to sync invoices to NetSuite.
|
|
19
|
-
* Sync invoices to NetSuite
|
|
20
|
-
* @param netSuiteSyncInvoicesRequest
|
|
21
|
-
*/
|
|
22
|
-
netSuiteSyncInvoices(netSuiteSyncInvoicesRequest: NetSuiteSyncInvoicesRequest, _options?: Configuration): Promise<RequestContext>;
|
|
23
|
-
}
|
|
24
|
-
export declare class IntegrationsApiResponseProcessor {
|
|
25
|
-
/**
|
|
26
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
27
|
-
* to the expected objects
|
|
28
|
-
*
|
|
29
|
-
* @params response Response returned by the server for a request to exportNetSuiteSalesOrder
|
|
30
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
31
|
-
*/
|
|
32
|
-
exportNetSuiteSalesOrderWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void>>;
|
|
33
|
-
/**
|
|
34
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
35
|
-
* to the expected objects
|
|
36
|
-
*
|
|
37
|
-
* @params response Response returned by the server for a request to netSuiteSyncInvoices
|
|
38
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
39
|
-
*/
|
|
40
|
-
netSuiteSyncInvoicesWithHttpInfo(response: ResponseContext): Promise<HttpInfo<NetSuiteSyncInvoicesResponse>>;
|
|
41
|
-
}
|