vayu-ts 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +202 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +17 -0
  5. package/dist/openapi/apis/AuthApi.d.ts +26 -0
  6. package/dist/openapi/apis/AuthApi.js +93 -0
  7. package/dist/openapi/apis/ContractsApi.d.ts +72 -0
  8. package/dist/openapi/apis/ContractsApi.js +307 -0
  9. package/dist/openapi/apis/CreditsApi.d.ts +57 -0
  10. package/dist/openapi/apis/CreditsApi.js +248 -0
  11. package/dist/openapi/apis/CustomersApi.d.ts +89 -0
  12. package/dist/openapi/apis/CustomersApi.js +388 -0
  13. package/dist/openapi/apis/EventsApi.d.ts +91 -0
  14. package/dist/openapi/apis/EventsApi.js +408 -0
  15. package/dist/openapi/apis/IntegrationsApi.d.ts +41 -0
  16. package/dist/openapi/apis/IntegrationsApi.js +170 -0
  17. package/dist/openapi/apis/InvoicesApi.d.ts +41 -0
  18. package/dist/openapi/apis/InvoicesApi.js +166 -0
  19. package/dist/openapi/apis/MetersApi.d.ts +73 -0
  20. package/dist/openapi/apis/MetersApi.js +316 -0
  21. package/dist/openapi/apis/PlansApi.d.ts +56 -0
  22. package/dist/openapi/apis/PlansApi.js +235 -0
  23. package/dist/openapi/apis/ReportsApi.d.ts +41 -0
  24. package/dist/openapi/apis/ReportsApi.js +166 -0
  25. package/dist/openapi/apis/WebhooksApi.d.ts +25 -0
  26. package/dist/openapi/apis/WebhooksApi.js +101 -0
  27. package/dist/openapi/apis/baseapi.d.ts +33 -0
  28. package/dist/openapi/apis/baseapi.js +41 -0
  29. package/dist/openapi/apis/exception.d.ts +19 -0
  30. package/dist/openapi/apis/exception.js +22 -0
  31. package/dist/openapi/auth/auth.d.ts +54 -0
  32. package/dist/openapi/auth/auth.js +50 -0
  33. package/dist/openapi/configuration.d.ts +63 -0
  34. package/dist/openapi/configuration.js +34 -0
  35. package/dist/openapi/http/http.d.ts +142 -0
  36. package/dist/openapi/http/http.js +229 -0
  37. package/dist/openapi/http/isomorphic-fetch.d.ts +5 -0
  38. package/dist/openapi/http/isomorphic-fetch.js +33 -0
  39. package/dist/openapi/index.d.ts +10 -0
  40. package/dist/openapi/index.js +38 -0
  41. package/dist/openapi/middleware.d.ts +54 -0
  42. package/dist/openapi/middleware.js +16 -0
  43. package/dist/openapi/models/AggregationMethod.d.ts +40 -0
  44. package/dist/openapi/models/AggregationMethod.js +46 -0
  45. package/dist/openapi/models/AggregationOperator.d.ts +24 -0
  46. package/dist/openapi/models/AggregationOperator.js +28 -0
  47. package/dist/openapi/models/BillingCycleStatus.d.ts +15 -0
  48. package/dist/openapi/models/BillingCycleStatus.js +19 -0
  49. package/dist/openapi/models/BillingInterval.d.ts +18 -0
  50. package/dist/openapi/models/BillingInterval.js +22 -0
  51. package/dist/openapi/models/Condition.d.ts +29 -0
  52. package/dist/openapi/models/Condition.js +31 -0
  53. package/dist/openapi/models/ContractStatus.d.ts +18 -0
  54. package/dist/openapi/models/ContractStatus.js +22 -0
  55. package/dist/openapi/models/CreateContractRequest.d.ts +43 -0
  56. package/dist/openapi/models/CreateContractRequest.js +49 -0
  57. package/dist/openapi/models/CreateContractResponse.d.ts +29 -0
  58. package/dist/openapi/models/CreateContractResponse.js +31 -0
  59. package/dist/openapi/models/CreateCustomerRequest.d.ts +35 -0
  60. package/dist/openapi/models/CreateCustomerRequest.js +37 -0
  61. package/dist/openapi/models/CreateCustomerResponse.d.ts +29 -0
  62. package/dist/openapi/models/CreateCustomerResponse.js +31 -0
  63. package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +38 -0
  64. package/dist/openapi/models/CreateCustomerResponseCustomer.js +55 -0
  65. package/dist/openapi/models/CreditLedgerEntry.d.ts +32 -0
  66. package/dist/openapi/models/CreditLedgerEntry.js +49 -0
  67. package/dist/openapi/models/Criterion.d.ts +31 -0
  68. package/dist/openapi/models/Criterion.js +43 -0
  69. package/dist/openapi/models/CriterionOperator.d.ts +23 -0
  70. package/dist/openapi/models/CriterionOperator.js +27 -0
  71. package/dist/openapi/models/Currency.d.ts +17 -0
  72. package/dist/openapi/models/Currency.js +21 -0
  73. package/dist/openapi/models/DeductCreditsRequest.d.ts +35 -0
  74. package/dist/openapi/models/DeductCreditsRequest.js +37 -0
  75. package/dist/openapi/models/DeleteContractResponse.d.ts +29 -0
  76. package/dist/openapi/models/DeleteContractResponse.js +31 -0
  77. package/dist/openapi/models/DeleteContractResponseContract.d.ts +47 -0
  78. package/dist/openapi/models/DeleteContractResponseContract.js +73 -0
  79. package/dist/openapi/models/DeleteCustomerResponse.d.ts +29 -0
  80. package/dist/openapi/models/DeleteCustomerResponse.js +31 -0
  81. package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +39 -0
  82. package/dist/openapi/models/DeleteCustomerResponseCustomer.js +61 -0
  83. package/dist/openapi/models/DeleteEventResponse.d.ts +29 -0
  84. package/dist/openapi/models/DeleteEventResponse.js +31 -0
  85. package/dist/openapi/models/DeleteEventResponseEvent.d.ts +56 -0
  86. package/dist/openapi/models/DeleteEventResponseEvent.js +82 -0
  87. package/dist/openapi/models/DeleteMeterResponse.d.ts +29 -0
  88. package/dist/openapi/models/DeleteMeterResponse.js +31 -0
  89. package/dist/openapi/models/DeleteMeterResponseMeter.d.ts +43 -0
  90. package/dist/openapi/models/DeleteMeterResponseMeter.js +73 -0
  91. package/dist/openapi/models/DeletePlanResponse.d.ts +29 -0
  92. package/dist/openapi/models/DeletePlanResponse.js +31 -0
  93. package/dist/openapi/models/DeletePlanResponsePlan.d.ts +39 -0
  94. package/dist/openapi/models/DeletePlanResponsePlan.js +67 -0
  95. package/dist/openapi/models/Event.d.ts +49 -0
  96. package/dist/openapi/models/Event.js +55 -0
  97. package/dist/openapi/models/EventsDryRunRequest.d.ts +29 -0
  98. package/dist/openapi/models/EventsDryRunRequest.js +31 -0
  99. package/dist/openapi/models/EventsDryRunResponse.d.ts +29 -0
  100. package/dist/openapi/models/EventsDryRunResponse.js +31 -0
  101. package/dist/openapi/models/EventsDryRunResponseObject.d.ts +32 -0
  102. package/dist/openapi/models/EventsDryRunResponseObject.js +43 -0
  103. package/dist/openapi/models/EventsDryRunResponseObjectEvent.d.ts +35 -0
  104. package/dist/openapi/models/EventsDryRunResponseObjectEvent.js +61 -0
  105. package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.d.ts +41 -0
  106. package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.js +61 -0
  107. package/dist/openapi/models/Filter.d.ts +32 -0
  108. package/dist/openapi/models/Filter.js +34 -0
  109. package/dist/openapi/models/GetCommitmentReportResponse.d.ts +44 -0
  110. package/dist/openapi/models/GetCommitmentReportResponse.js +115 -0
  111. package/dist/openapi/models/GetContractResponse.d.ts +29 -0
  112. package/dist/openapi/models/GetContractResponse.js +31 -0
  113. package/dist/openapi/models/GetContractResponseContract.d.ts +46 -0
  114. package/dist/openapi/models/GetContractResponseContract.js +67 -0
  115. package/dist/openapi/models/GetCustomerResponse.d.ts +29 -0
  116. package/dist/openapi/models/GetCustomerResponse.js +31 -0
  117. package/dist/openapi/models/GetEventResponse.d.ts +29 -0
  118. package/dist/openapi/models/GetEventResponse.js +31 -0
  119. package/dist/openapi/models/GetEventResponseEvent.d.ts +55 -0
  120. package/dist/openapi/models/GetEventResponseEvent.js +76 -0
  121. package/dist/openapi/models/GetInvoiceResponse.d.ts +29 -0
  122. package/dist/openapi/models/GetInvoiceResponse.js +31 -0
  123. package/dist/openapi/models/GetInvoiceResponseInvoice.d.ts +50 -0
  124. package/dist/openapi/models/GetInvoiceResponseInvoice.js +79 -0
  125. package/dist/openapi/models/GetMeterResponse.d.ts +29 -0
  126. package/dist/openapi/models/GetMeterResponse.js +31 -0
  127. package/dist/openapi/models/GetMeterResponseMeter.d.ts +42 -0
  128. package/dist/openapi/models/GetMeterResponseMeter.js +67 -0
  129. package/dist/openapi/models/GetPlanResponse.d.ts +29 -0
  130. package/dist/openapi/models/GetPlanResponse.js +31 -0
  131. package/dist/openapi/models/GetPlanResponsePlan.d.ts +38 -0
  132. package/dist/openapi/models/GetPlanResponsePlan.js +61 -0
  133. package/dist/openapi/models/GetProductsUsageReportResponse.d.ts +44 -0
  134. package/dist/openapi/models/GetProductsUsageReportResponse.js +115 -0
  135. package/dist/openapi/models/GrantCreditsRequest.d.ts +35 -0
  136. package/dist/openapi/models/GrantCreditsRequest.js +37 -0
  137. package/dist/openapi/models/InvalidEvent.d.ts +33 -0
  138. package/dist/openapi/models/InvalidEvent.js +37 -0
  139. package/dist/openapi/models/LineItem.d.ts +35 -0
  140. package/dist/openapi/models/LineItem.js +37 -0
  141. package/dist/openapi/models/ListContractsResponse.d.ts +32 -0
  142. package/dist/openapi/models/ListContractsResponse.js +49 -0
  143. package/dist/openapi/models/ListCreditLedgerEntriesResponse.d.ts +32 -0
  144. package/dist/openapi/models/ListCreditLedgerEntriesResponse.js +31 -0
  145. package/dist/openapi/models/ListCustomersResponse.d.ts +32 -0
  146. package/dist/openapi/models/ListCustomersResponse.js +49 -0
  147. package/dist/openapi/models/ListInvoicesResponse.d.ts +32 -0
  148. package/dist/openapi/models/ListInvoicesResponse.js +49 -0
  149. package/dist/openapi/models/ListMetersResponse.d.ts +32 -0
  150. package/dist/openapi/models/ListMetersResponse.js +49 -0
  151. package/dist/openapi/models/ListPlansResponse.d.ts +32 -0
  152. package/dist/openapi/models/ListPlansResponse.js +49 -0
  153. package/dist/openapi/models/LoginRequest.d.ts +31 -0
  154. package/dist/openapi/models/LoginRequest.js +31 -0
  155. package/dist/openapi/models/LoginResponse.d.ts +31 -0
  156. package/dist/openapi/models/LoginResponse.js +31 -0
  157. package/dist/openapi/models/Meter.d.ts +39 -0
  158. package/dist/openapi/models/Meter.js +49 -0
  159. package/dist/openapi/models/NetSuiteExportSalesOrderRequest.d.ts +30 -0
  160. package/dist/openapi/models/NetSuiteExportSalesOrderRequest.js +43 -0
  161. package/dist/openapi/models/NetSuiteSyncInvoicesRequest.d.ts +34 -0
  162. package/dist/openapi/models/NetSuiteSyncInvoicesRequest.js +47 -0
  163. package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.d.ts +39 -0
  164. package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.js +85 -0
  165. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataEntity.d.ts +28 -0
  166. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataEntity.js +31 -0
  167. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.d.ts +29 -0
  168. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.js +31 -0
  169. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.d.ts +33 -0
  170. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.js +55 -0
  171. package/dist/openapi/models/NetSuiteSyncInvoicesResponse.d.ts +29 -0
  172. package/dist/openapi/models/NetSuiteSyncInvoicesResponse.js +37 -0
  173. package/dist/openapi/models/NotificationEventType.d.ts +17 -0
  174. package/dist/openapi/models/NotificationEventType.js +21 -0
  175. package/dist/openapi/models/ObjectSerializer.d.ts +106 -0
  176. package/dist/openapi/models/ObjectSerializer.js +488 -0
  177. package/dist/openapi/models/PaymentTerm.d.ts +15 -0
  178. package/dist/openapi/models/PaymentTerm.js +19 -0
  179. package/dist/openapi/models/Period.d.ts +32 -0
  180. package/dist/openapi/models/Period.js +40 -0
  181. package/dist/openapi/models/PlanBillingData.d.ts +37 -0
  182. package/dist/openapi/models/PlanBillingData.js +58 -0
  183. package/dist/openapi/models/PlanStatus.d.ts +19 -0
  184. package/dist/openapi/models/PlanStatus.js +23 -0
  185. package/dist/openapi/models/QueryEventsResponse.d.ts +32 -0
  186. package/dist/openapi/models/QueryEventsResponse.js +31 -0
  187. package/dist/openapi/models/QueryEventsResponseEventsInner.d.ts +52 -0
  188. package/dist/openapi/models/QueryEventsResponseEventsInner.js +73 -0
  189. package/dist/openapi/models/SendEventsRequest.d.ts +29 -0
  190. package/dist/openapi/models/SendEventsRequest.js +31 -0
  191. package/dist/openapi/models/SendEventsResponse.d.ts +37 -0
  192. package/dist/openapi/models/SendEventsResponse.js +37 -0
  193. package/dist/openapi/models/UpdateCustomerRequest.d.ts +35 -0
  194. package/dist/openapi/models/UpdateCustomerRequest.js +37 -0
  195. package/dist/openapi/models/UpdateCustomerResponse.d.ts +29 -0
  196. package/dist/openapi/models/UpdateCustomerResponse.js +31 -0
  197. package/dist/openapi/models/UpdateMeterRequest.d.ts +39 -0
  198. package/dist/openapi/models/UpdateMeterRequest.js +49 -0
  199. package/dist/openapi/models/UpdateMeterResponse.d.ts +29 -0
  200. package/dist/openapi/models/UpdateMeterResponse.js +31 -0
  201. package/dist/openapi/models/WebhookSubscribeRequest.d.ts +30 -0
  202. package/dist/openapi/models/WebhookSubscribeRequest.js +37 -0
  203. package/dist/openapi/models/all.d.ts +79 -0
  204. package/dist/openapi/models/all.js +95 -0
  205. package/dist/openapi/rxjsStub.d.ts +10 -0
  206. package/dist/openapi/rxjsStub.js +31 -0
  207. package/dist/openapi/servers.d.ts +39 -0
  208. package/dist/openapi/servers.js +52 -0
  209. package/dist/openapi/types/ObjectParamAPI.d.ts +825 -0
  210. package/dist/openapi/types/ObjectParamAPI.js +590 -0
  211. package/dist/openapi/types/ObservableAPI.d.ts +532 -0
  212. package/dist/openapi/types/ObservableAPI.js +1060 -0
  213. package/dist/openapi/types/PromiseAPI.d.ts +509 -0
  214. package/dist/openapi/types/PromiseAPI.js +684 -0
  215. package/dist/openapi/util.d.ts +15 -0
  216. package/dist/openapi/util.js +42 -0
  217. package/dist/sdk/clients/ContractsClient.d.ts +10 -0
  218. package/dist/sdk/clients/ContractsClient.js +42 -0
  219. package/dist/sdk/clients/CustomersClient.d.ts +11 -0
  220. package/dist/sdk/clients/CustomersClient.js +47 -0
  221. package/dist/sdk/clients/EventsClient.d.ts +11 -0
  222. package/dist/sdk/clients/EventsClient.js +49 -0
  223. package/dist/sdk/clients/InvoicesClient.d.ts +7 -0
  224. package/dist/sdk/clients/InvoicesClient.js +32 -0
  225. package/dist/sdk/clients/MetersClient.d.ts +10 -0
  226. package/dist/sdk/clients/MetersClient.js +42 -0
  227. package/dist/sdk/clients/PlansClient.d.ts +8 -0
  228. package/dist/sdk/clients/PlansClient.js +37 -0
  229. package/dist/sdk/clients/index.d.ts +6 -0
  230. package/dist/sdk/clients/index.js +22 -0
  231. package/dist/sdk/index.d.ts +13 -0
  232. package/dist/sdk/index.js +59 -0
  233. package/dist/sdk/services/configuration.service.d.ts +21 -0
  234. package/dist/sdk/services/configuration.service.js +104 -0
  235. package/dist/sdk/services/index.d.ts +1 -0
  236. package/dist/sdk/services/index.js +17 -0
  237. package/dist/sdk/types/Contracts.d.ts +1 -0
  238. package/dist/sdk/types/Contracts.js +2 -0
  239. package/dist/sdk/types/Customers.d.ts +1 -0
  240. package/dist/sdk/types/Customers.js +2 -0
  241. package/dist/sdk/types/Events.d.ts +1 -0
  242. package/dist/sdk/types/Events.js +2 -0
  243. package/dist/sdk/types/Invoices.d.ts +1 -0
  244. package/dist/sdk/types/Invoices.js +2 -0
  245. package/dist/sdk/types/Meters.d.ts +1 -0
  246. package/dist/sdk/types/Meters.js +2 -0
  247. package/dist/sdk/types/Plans.d.ts +1 -0
  248. package/dist/sdk/types/Plans.js +2 -0
  249. package/dist/sdk/types/index.d.ts +7 -0
  250. package/dist/sdk/types/index.js +23 -0
  251. package/dist/sdk/types/pagination-options.d.ts +4 -0
  252. package/dist/sdk/types/pagination-options.js +2 -0
  253. package/dist/types.d.ts +1 -0
  254. package/dist/types.js +17 -0
  255. package/package.json +51 -0
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.canConsumeForm = exports.isCodeInRange = void 0;
4
+ /**
5
+ * Returns if a specific http code is in a given code range
6
+ * where the code range is defined as a combination of digits
7
+ * and "X" (the letter X) with a length of 3
8
+ *
9
+ * @param codeRange string with length 3 consisting of digits and "X" (the letter X)
10
+ * @param code the http status code to be checked against the code range
11
+ */
12
+ function isCodeInRange(codeRange, code) {
13
+ // This is how the default value is encoded in OAG
14
+ if (codeRange === "0") {
15
+ return true;
16
+ }
17
+ if (codeRange == code.toString()) {
18
+ return true;
19
+ }
20
+ else {
21
+ const codeString = code.toString();
22
+ if (codeString.length != codeRange.length) {
23
+ return false;
24
+ }
25
+ for (let i = 0; i < codeString.length; i++) {
26
+ if (codeRange.charAt(i) != "X" && codeRange.charAt(i) != codeString.charAt(i)) {
27
+ return false;
28
+ }
29
+ }
30
+ return true;
31
+ }
32
+ }
33
+ exports.isCodeInRange = isCodeInRange;
34
+ /**
35
+ * Returns if it can consume form
36
+ *
37
+ * @param consumes array
38
+ */
39
+ function canConsumeForm(contentTypes) {
40
+ return contentTypes.indexOf('multipart/form-data') !== -1;
41
+ }
42
+ exports.canConsumeForm = canConsumeForm;
@@ -0,0 +1,10 @@
1
+ import type { CreateContractRequest } from '../../openapi';
2
+ import type { PaginationOptions } from '../types';
3
+ export declare class ContractsClient {
4
+ private client;
5
+ constructor();
6
+ list(pagination?: PaginationOptions): Promise<import("../types").ListContractsResponse>;
7
+ get(id: string): Promise<import("../types").GetContractResponse>;
8
+ create(payload: CreateContractRequest): Promise<import("../types").CreateContractResponse>;
9
+ delete(id: string): Promise<import("../types").DeleteContractResponse>;
10
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ContractsClient = void 0;
13
+ const openapi_1 = require("../../openapi");
14
+ const services_1 = require("../services");
15
+ class ContractsClient {
16
+ constructor() {
17
+ this.client = services_1.ConfigurationService.instance.generateNewClient(openapi_1.ContractsApi);
18
+ }
19
+ list(pagination) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const cursor = pagination === null || pagination === void 0 ? void 0 : pagination.cursor;
22
+ const limit = pagination === null || pagination === void 0 ? void 0 : pagination.limit;
23
+ return this.client.listContracts(limit, cursor);
24
+ });
25
+ }
26
+ get(id) {
27
+ return __awaiter(this, void 0, void 0, function* () {
28
+ return this.client.getContract(id);
29
+ });
30
+ }
31
+ create(payload) {
32
+ return __awaiter(this, void 0, void 0, function* () {
33
+ return this.client.createContract(payload);
34
+ });
35
+ }
36
+ delete(id) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ return this.client.deleteContract(id);
39
+ });
40
+ }
41
+ }
42
+ exports.ContractsClient = ContractsClient;
@@ -0,0 +1,11 @@
1
+ import type { CreateCustomerRequest, UpdateCustomerRequest } from '../../openapi';
2
+ import type { PaginationOptions } from '../types';
3
+ export declare class CustomersClient {
4
+ private client;
5
+ constructor();
6
+ list(paginationOptions?: PaginationOptions): Promise<import("../types").ListCustomersResponse>;
7
+ get(id: string): Promise<import("../types").GetCustomerResponse>;
8
+ create(payload: CreateCustomerRequest): Promise<import("../types").CreateCustomerResponse>;
9
+ update(id: string, payload: UpdateCustomerRequest): Promise<import("../types").UpdateCustomerResponse>;
10
+ delete(id: string): Promise<import("../types").DeleteCustomerResponse>;
11
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CustomersClient = void 0;
13
+ const openapi_1 = require("../../openapi");
14
+ const services_1 = require("../services");
15
+ class CustomersClient {
16
+ constructor() {
17
+ this.client = services_1.ConfigurationService.instance.generateNewClient(openapi_1.CustomersApi);
18
+ }
19
+ list(paginationOptions) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const cursor = paginationOptions === null || paginationOptions === void 0 ? void 0 : paginationOptions.cursor;
22
+ const limit = paginationOptions === null || paginationOptions === void 0 ? void 0 : paginationOptions.limit;
23
+ return this.client.listCustomers(limit, cursor);
24
+ });
25
+ }
26
+ get(id) {
27
+ return __awaiter(this, void 0, void 0, function* () {
28
+ return this.client.getCustomer(id);
29
+ });
30
+ }
31
+ create(payload) {
32
+ return __awaiter(this, void 0, void 0, function* () {
33
+ return this.client.createCustomer(payload);
34
+ });
35
+ }
36
+ update(id, payload) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ return this.client.updateCustomer(payload, id);
39
+ });
40
+ }
41
+ delete(id) {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ return this.client.deleteCustomer(id);
44
+ });
45
+ }
46
+ }
47
+ exports.CustomersClient = CustomersClient;
@@ -0,0 +1,11 @@
1
+ import type { Event } from '../../openapi';
2
+ import type { PaginationOptions } from '../types';
3
+ export declare class EventsClient {
4
+ private client;
5
+ constructor();
6
+ get(ref: string): Promise<import("../types").GetEventResponse>;
7
+ delete(ref: string): Promise<import("../types").DeleteEventResponse>;
8
+ query(startTime: Date, endTime: Date, eventName: string, paginationOptions?: PaginationOptions): Promise<import("../types").QueryEventsResponse>;
9
+ send(events: Event[]): Promise<import("../types").SendEventsResponse>;
10
+ dryRun(events: Event[]): Promise<import("../types").EventsDryRunResponse>;
11
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.EventsClient = void 0;
13
+ const openapi_1 = require("../../openapi");
14
+ const services_1 = require("../services");
15
+ class EventsClient {
16
+ constructor() {
17
+ this.client = services_1.ConfigurationService.instance.generateNewClient(openapi_1.EventsApi);
18
+ }
19
+ get(ref) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ return this.client.getEventByRefId(ref);
22
+ });
23
+ }
24
+ delete(ref) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ return this.client.deleteEventByRefId(ref);
27
+ });
28
+ }
29
+ query(startTime, endTime, eventName, paginationOptions) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ const cursor = paginationOptions === null || paginationOptions === void 0 ? void 0 : paginationOptions.cursor;
32
+ const limit = paginationOptions === null || paginationOptions === void 0 ? void 0 : paginationOptions.limit;
33
+ return this.client.queryEvents(startTime, endTime, eventName, limit, cursor);
34
+ });
35
+ }
36
+ send(events) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ return this.client.sendEvents({ events });
39
+ });
40
+ }
41
+ dryRun(events) {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ return this.client.sendEventsDryRun({
44
+ events,
45
+ });
46
+ });
47
+ }
48
+ }
49
+ exports.EventsClient = EventsClient;
@@ -0,0 +1,7 @@
1
+ import type { PaginationOptions } from '../types';
2
+ export declare class InvoicesClient {
3
+ private client;
4
+ constructor();
5
+ list(pagination?: PaginationOptions): Promise<import("../types").ListInvoicesResponse>;
6
+ get(id: string): Promise<import("../types").GetInvoiceResponse>;
7
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.InvoicesClient = void 0;
13
+ const openapi_1 = require("../../openapi");
14
+ const services_1 = require("../services");
15
+ class InvoicesClient {
16
+ constructor() {
17
+ this.client = services_1.ConfigurationService.instance.generateNewClient(openapi_1.InvoicesApi);
18
+ }
19
+ list(pagination) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const cursor = pagination === null || pagination === void 0 ? void 0 : pagination.cursor;
22
+ const limit = pagination === null || pagination === void 0 ? void 0 : pagination.limit;
23
+ return this.client.listInvoices(limit, cursor);
24
+ });
25
+ }
26
+ get(id) {
27
+ return __awaiter(this, void 0, void 0, function* () {
28
+ return this.client.getInvoice(id);
29
+ });
30
+ }
31
+ }
32
+ exports.InvoicesClient = InvoicesClient;
@@ -0,0 +1,10 @@
1
+ import type { UpdateMeterRequest } from '../../openapi';
2
+ import type { PaginationOptions } from '../types';
3
+ export declare class MetersClient {
4
+ private client;
5
+ constructor();
6
+ list(pagination?: PaginationOptions): Promise<import("../types").ListMetersResponse>;
7
+ get(id: string): Promise<import("../types").GetMeterResponse>;
8
+ update(id: string, payload: UpdateMeterRequest): Promise<import("../types").UpdateMeterResponse>;
9
+ delete(id: string): Promise<import("../types").DeleteMeterResponse>;
10
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MetersClient = void 0;
13
+ const openapi_1 = require("../../openapi");
14
+ const services_1 = require("../services");
15
+ class MetersClient {
16
+ constructor() {
17
+ this.client = services_1.ConfigurationService.instance.generateNewClient(openapi_1.MetersApi);
18
+ }
19
+ list(pagination) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const cursor = pagination === null || pagination === void 0 ? void 0 : pagination.cursor;
22
+ const limit = pagination === null || pagination === void 0 ? void 0 : pagination.limit;
23
+ return this.client.listMeters(limit, cursor);
24
+ });
25
+ }
26
+ get(id) {
27
+ return __awaiter(this, void 0, void 0, function* () {
28
+ return this.client.getMeter(id);
29
+ });
30
+ }
31
+ update(id, payload) {
32
+ return __awaiter(this, void 0, void 0, function* () {
33
+ return this.client.updateMeter(payload, id);
34
+ });
35
+ }
36
+ delete(id) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ return this.client.deleteMeter(id);
39
+ });
40
+ }
41
+ }
42
+ exports.MetersClient = MetersClient;
@@ -0,0 +1,8 @@
1
+ import type { PaginationOptions } from '../types';
2
+ export declare class PlansClient {
3
+ private client;
4
+ constructor();
5
+ list(pagination?: PaginationOptions): Promise<import("../types").ListPlansResponse>;
6
+ get(id: string): Promise<import("../types").GetPlanResponse>;
7
+ delete(id: string): Promise<import("../types").DeletePlanResponse>;
8
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PlansClient = void 0;
13
+ const openapi_1 = require("../../openapi");
14
+ const services_1 = require("../services");
15
+ class PlansClient {
16
+ constructor() {
17
+ this.client = services_1.ConfigurationService.instance.generateNewClient(openapi_1.PlansApi);
18
+ }
19
+ list(pagination) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const cursor = pagination === null || pagination === void 0 ? void 0 : pagination.cursor;
22
+ const limit = pagination === null || pagination === void 0 ? void 0 : pagination.limit;
23
+ return this.client.listPlans(limit, cursor);
24
+ });
25
+ }
26
+ get(id) {
27
+ return __awaiter(this, void 0, void 0, function* () {
28
+ return this.client.getPlan(id);
29
+ });
30
+ }
31
+ delete(id) {
32
+ return __awaiter(this, void 0, void 0, function* () {
33
+ return this.client.deletePlan(id);
34
+ });
35
+ }
36
+ }
37
+ exports.PlansClient = PlansClient;
@@ -0,0 +1,6 @@
1
+ export * from './ContractsClient';
2
+ export * from './CustomersClient';
3
+ export * from './EventsClient';
4
+ export * from './InvoicesClient';
5
+ export * from './MetersClient';
6
+ export * from './PlansClient';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ContractsClient"), exports);
18
+ __exportStar(require("./CustomersClient"), exports);
19
+ __exportStar(require("./EventsClient"), exports);
20
+ __exportStar(require("./InvoicesClient"), exports);
21
+ __exportStar(require("./MetersClient"), exports);
22
+ __exportStar(require("./PlansClient"), exports);
@@ -0,0 +1,13 @@
1
+ import { ContractsClient, CustomersClient, EventsClient, InvoicesClient, MetersClient, PlansClient } from './clients';
2
+ export declare class Vayu {
3
+ private configurationManager;
4
+ constructor(apiKey: string, baseUrl?: string);
5
+ login(): Promise<void>;
6
+ get events(): EventsClient;
7
+ get customers(): CustomersClient;
8
+ get meters(): MetersClient;
9
+ get plans(): PlansClient;
10
+ get contracts(): ContractsClient;
11
+ get invoices(): InvoicesClient;
12
+ }
13
+ export * from './types';
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
17
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18
+ return new (P || (P = Promise))(function (resolve, reject) {
19
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
20
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
21
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
22
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
23
+ });
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.Vayu = void 0;
27
+ const clients_1 = require("./clients");
28
+ const services_1 = require("./services");
29
+ class Vayu {
30
+ constructor(apiKey, baseUrl) {
31
+ const baseServer = services_1.ConfigurationService.generateServerConfiguration(baseUrl);
32
+ this.configurationManager = services_1.ConfigurationService.initialize(apiKey, baseServer);
33
+ }
34
+ login() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ yield this.configurationManager.generateToken();
37
+ });
38
+ }
39
+ get events() {
40
+ return new clients_1.EventsClient();
41
+ }
42
+ get customers() {
43
+ return new clients_1.CustomersClient();
44
+ }
45
+ get meters() {
46
+ return new clients_1.MetersClient();
47
+ }
48
+ get plans() {
49
+ return new clients_1.PlansClient();
50
+ }
51
+ get contracts() {
52
+ return new clients_1.ContractsClient();
53
+ }
54
+ get invoices() {
55
+ return new clients_1.InvoicesClient();
56
+ }
57
+ }
58
+ exports.Vayu = Vayu;
59
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,21 @@
1
+ import type { BaseServerConfiguration, Configuration } from '../../openapi';
2
+ export declare class ConfigurationService {
3
+ private apiKey;
4
+ private baseServer;
5
+ private static _instance;
6
+ static get instance(): ConfigurationService;
7
+ static initialize(apiKey: string, baseServer: BaseServerConfiguration): ConfigurationService;
8
+ static generateServerConfiguration(baseUrl?: string): BaseServerConfiguration;
9
+ private accessToken;
10
+ private expiresAt;
11
+ constructor(apiKey: string, baseServer: BaseServerConfiguration);
12
+ generateNewClient<T extends {
13
+ new (config: Configuration): InstanceType<T>;
14
+ }>(ClientClass: T): InstanceType<T>;
15
+ generateToken(): Promise<{
16
+ accessToken: string;
17
+ expiresAt: number | undefined;
18
+ }>;
19
+ validateIsLoggedIn(): void;
20
+ private get configuration();
21
+ }
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ConfigurationService = void 0;
16
+ const jsonwebtoken_1 = __importDefault(require("jsonwebtoken"));
17
+ const openapi_1 = require("../../openapi");
18
+ const EXPIRATION_THRESHOLD = 1000 * 60 * 5;
19
+ const BASE_URLS_MAP = new Map([
20
+ ['https://connect.withvayu.com', openapi_1.server1],
21
+ ['https://staging-connect.withvayu.com', openapi_1.server2],
22
+ ]);
23
+ /* eslint-disable no-underscore-dangle */
24
+ class ConfigurationService {
25
+ static get instance() {
26
+ if (!ConfigurationService._instance) {
27
+ throw new Error('ConfigurationService not initialized');
28
+ }
29
+ return ConfigurationService._instance;
30
+ }
31
+ static initialize(apiKey, baseServer) {
32
+ if (ConfigurationService._instance) {
33
+ throw new Error('ConfigurationService already initialized');
34
+ }
35
+ ConfigurationService._instance = new ConfigurationService(apiKey, baseServer);
36
+ return ConfigurationService._instance;
37
+ }
38
+ static generateServerConfiguration(baseUrl) {
39
+ if (!baseUrl) {
40
+ return openapi_1.server1;
41
+ }
42
+ const baseServer = BASE_URLS_MAP.get(baseUrl);
43
+ return baseServer !== null && baseServer !== void 0 ? baseServer : new openapi_1.ServerConfiguration(baseUrl, {});
44
+ }
45
+ constructor(apiKey, baseServer) {
46
+ this.apiKey = apiKey;
47
+ this.baseServer = baseServer;
48
+ this.expiresAt = Date.now();
49
+ }
50
+ generateNewClient(ClientClass) {
51
+ this.validateIsLoggedIn();
52
+ const newClient = new ClientClass(this.configuration);
53
+ return newClient;
54
+ }
55
+ generateToken() {
56
+ var _a;
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ const authClient = new openapi_1.AuthApi((0, openapi_1.createConfiguration)({
59
+ baseServer: this.baseServer,
60
+ }));
61
+ const login = yield authClient.login({
62
+ refreshToken: this.apiKey,
63
+ });
64
+ this.accessToken = login.accessToken;
65
+ const decodedJWT = jsonwebtoken_1.default.decode(this.accessToken);
66
+ if (!decodedJWT) {
67
+ throw new Error('Invalid JWT token');
68
+ }
69
+ this.expiresAt = (_a = decodedJWT.exp) !== null && _a !== void 0 ? _a : Date.now() + 1000 * 60 * 15;
70
+ return {
71
+ accessToken: login.accessToken,
72
+ expiresAt: decodedJWT.exp,
73
+ };
74
+ });
75
+ }
76
+ validateIsLoggedIn() {
77
+ if (!this.accessToken) {
78
+ throw new Error('Please login first');
79
+ }
80
+ }
81
+ get configuration() {
82
+ return (0, openapi_1.createConfiguration)({
83
+ baseServer: this.baseServer,
84
+ authMethods: {
85
+ default: {
86
+ getName: () => 'Logged In',
87
+ applySecurityAuthentication: () => this.validateIsLoggedIn(),
88
+ },
89
+ },
90
+ promiseMiddleware: [{
91
+ pre: (context) => __awaiter(this, void 0, void 0, function* () {
92
+ if (this.expiresAt <= Date.now() + EXPIRATION_THRESHOLD) {
93
+ yield this.generateToken();
94
+ }
95
+ context.setHeaderParam('Authorization', `Bearer ${this.accessToken}`);
96
+ return context;
97
+ }),
98
+ post: (context) => __awaiter(this, void 0, void 0, function* () { return (context); }),
99
+ }],
100
+ });
101
+ }
102
+ }
103
+ exports.ConfigurationService = ConfigurationService;
104
+ ConfigurationService._instance = null;
@@ -0,0 +1 @@
1
+ export * from './configuration.service';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./configuration.service"), exports);
@@ -0,0 +1 @@
1
+ export type { GetContractResponseContract as Contract, ListContractsResponse, GetContractResponse, CreateContractRequest, CreateContractResponse, DeleteContractResponse, } from '../../openapi';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type { CreateCustomerResponseCustomer as Customer, CreateCustomerRequest, CreateCustomerResponse, DeleteCustomerResponse, GetCustomerResponse, ListCustomersResponse, UpdateCustomerRequest, UpdateCustomerResponse, } from '../../openapi';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type { GetEventResponse, DeleteEventResponse, QueryEventsResponse, Event, SendEventsResponse, EventsDryRunResponse, } from '../../openapi';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type { GetInvoiceResponseInvoice as Invoice, ListInvoicesResponse, GetInvoiceResponse, } from '../../openapi';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type { Meter, GetMeterResponse, ListMetersResponse, UpdateMeterRequest, UpdateMeterResponse, DeleteMeterResponse, } from '../../openapi';