vayu-ts 0.1.2 → 0.1.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 (262) hide show
  1. package/README.md +24 -23
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.js +17 -0
  4. package/dist/openapi/apis/AuthApi.d.ts +26 -0
  5. package/dist/openapi/apis/AuthApi.js +93 -0
  6. package/dist/openapi/apis/ContractsApi.d.ts +72 -0
  7. package/dist/openapi/apis/ContractsApi.js +307 -0
  8. package/dist/openapi/apis/CreditsApi.d.ts +57 -0
  9. package/dist/openapi/apis/CreditsApi.js +248 -0
  10. package/dist/openapi/apis/CustomersApi.d.ts +103 -0
  11. package/dist/openapi/apis/CustomersApi.js +457 -0
  12. package/dist/openapi/apis/EventsApi.d.ts +91 -0
  13. package/dist/openapi/apis/EventsApi.js +408 -0
  14. package/dist/openapi/apis/IntegrationsApi.d.ts +41 -0
  15. package/dist/openapi/apis/IntegrationsApi.js +170 -0
  16. package/dist/openapi/apis/InvoicesApi.d.ts +41 -0
  17. package/dist/openapi/apis/InvoicesApi.js +166 -0
  18. package/dist/openapi/apis/MetersApi.d.ts +73 -0
  19. package/dist/openapi/apis/MetersApi.js +316 -0
  20. package/dist/openapi/apis/PlansApi.d.ts +56 -0
  21. package/dist/openapi/apis/PlansApi.js +235 -0
  22. package/dist/openapi/apis/ReportsApi.d.ts +41 -0
  23. package/dist/openapi/apis/ReportsApi.js +166 -0
  24. package/dist/openapi/apis/WebhooksApi.d.ts +25 -0
  25. package/dist/openapi/apis/WebhooksApi.js +101 -0
  26. package/dist/openapi/apis/baseapi.d.ts +33 -0
  27. package/dist/openapi/apis/baseapi.js +41 -0
  28. package/dist/openapi/apis/exception.d.ts +19 -0
  29. package/dist/openapi/apis/exception.js +22 -0
  30. package/dist/openapi/auth/auth.d.ts +54 -0
  31. package/dist/openapi/auth/auth.js +50 -0
  32. package/dist/openapi/configuration.d.ts +63 -0
  33. package/dist/openapi/configuration.js +34 -0
  34. package/dist/openapi/http/http.d.ts +142 -0
  35. package/dist/openapi/http/http.js +229 -0
  36. package/dist/openapi/http/isomorphic-fetch.d.ts +5 -0
  37. package/dist/openapi/http/isomorphic-fetch.js +33 -0
  38. package/dist/openapi/index.d.ts +10 -0
  39. package/dist/openapi/index.js +38 -0
  40. package/dist/openapi/middleware.d.ts +54 -0
  41. package/dist/openapi/middleware.js +16 -0
  42. package/dist/openapi/models/Address.d.ts +35 -0
  43. package/dist/openapi/models/Address.js +58 -0
  44. package/dist/openapi/models/AggregationMethod.d.ts +40 -0
  45. package/dist/openapi/models/AggregationMethod.js +46 -0
  46. package/dist/openapi/models/AggregationOperator.d.ts +24 -0
  47. package/dist/openapi/models/AggregationOperator.js +28 -0
  48. package/dist/openapi/models/BillingCycleStatus.d.ts +15 -0
  49. package/dist/openapi/models/BillingCycleStatus.js +19 -0
  50. package/dist/openapi/models/BillingInterval.d.ts +18 -0
  51. package/dist/openapi/models/BillingInterval.js +22 -0
  52. package/dist/openapi/models/Condition.d.ts +29 -0
  53. package/dist/openapi/models/Condition.js +31 -0
  54. package/dist/openapi/models/Contact.d.ts +30 -0
  55. package/dist/openapi/models/Contact.js +43 -0
  56. package/dist/openapi/models/ContractStatus.d.ts +18 -0
  57. package/dist/openapi/models/ContractStatus.js +22 -0
  58. package/dist/openapi/models/CreateContractRequest.d.ts +43 -0
  59. package/dist/openapi/models/CreateContractRequest.js +49 -0
  60. package/dist/openapi/models/CreateContractResponse.d.ts +29 -0
  61. package/dist/openapi/models/CreateContractResponse.js +31 -0
  62. package/dist/openapi/models/CreateCustomerRequest.d.ts +46 -0
  63. package/dist/openapi/models/CreateCustomerRequest.js +55 -0
  64. package/dist/openapi/models/CreateCustomerResponse.d.ts +29 -0
  65. package/dist/openapi/models/CreateCustomerResponse.js +31 -0
  66. package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +49 -0
  67. package/dist/openapi/models/CreateCustomerResponseCustomer.js +73 -0
  68. package/dist/openapi/models/CreditLedgerEntry.d.ts +32 -0
  69. package/dist/openapi/models/CreditLedgerEntry.js +49 -0
  70. package/dist/openapi/models/Criterion.d.ts +31 -0
  71. package/dist/openapi/models/Criterion.js +43 -0
  72. package/dist/openapi/models/CriterionOperator.d.ts +23 -0
  73. package/dist/openapi/models/CriterionOperator.js +27 -0
  74. package/dist/openapi/models/Currency.d.ts +17 -0
  75. package/dist/openapi/models/Currency.js +21 -0
  76. package/dist/openapi/models/DeductCreditsRequest.d.ts +35 -0
  77. package/dist/openapi/models/DeductCreditsRequest.js +37 -0
  78. package/dist/openapi/models/DeleteContractResponse.d.ts +29 -0
  79. package/dist/openapi/models/DeleteContractResponse.js +31 -0
  80. package/dist/openapi/models/DeleteContractResponseContract.d.ts +47 -0
  81. package/dist/openapi/models/DeleteContractResponseContract.js +73 -0
  82. package/dist/openapi/models/DeleteCustomerResponse.d.ts +29 -0
  83. package/dist/openapi/models/DeleteCustomerResponse.js +31 -0
  84. package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +50 -0
  85. package/dist/openapi/models/DeleteCustomerResponseCustomer.js +79 -0
  86. package/dist/openapi/models/DeleteEventResponse.d.ts +29 -0
  87. package/dist/openapi/models/DeleteEventResponse.js +31 -0
  88. package/dist/openapi/models/DeleteEventResponseEvent.d.ts +56 -0
  89. package/dist/openapi/models/DeleteEventResponseEvent.js +82 -0
  90. package/dist/openapi/models/DeleteMeterResponse.d.ts +29 -0
  91. package/dist/openapi/models/DeleteMeterResponse.js +31 -0
  92. package/dist/openapi/models/DeleteMeterResponseMeter.d.ts +43 -0
  93. package/dist/openapi/models/DeleteMeterResponseMeter.js +73 -0
  94. package/dist/openapi/models/DeletePlanResponse.d.ts +29 -0
  95. package/dist/openapi/models/DeletePlanResponse.js +31 -0
  96. package/dist/openapi/models/DeletePlanResponsePlan.d.ts +39 -0
  97. package/dist/openapi/models/DeletePlanResponsePlan.js +67 -0
  98. package/dist/openapi/models/Event.d.ts +49 -0
  99. package/dist/openapi/models/Event.js +55 -0
  100. package/dist/openapi/models/EventsDryRunRequest.d.ts +29 -0
  101. package/dist/openapi/models/EventsDryRunRequest.js +31 -0
  102. package/dist/openapi/models/EventsDryRunResponse.d.ts +29 -0
  103. package/dist/openapi/models/EventsDryRunResponse.js +31 -0
  104. package/dist/openapi/models/EventsDryRunResponseObject.d.ts +32 -0
  105. package/dist/openapi/models/EventsDryRunResponseObject.js +43 -0
  106. package/dist/openapi/models/EventsDryRunResponseObjectEvent.d.ts +35 -0
  107. package/dist/openapi/models/EventsDryRunResponseObjectEvent.js +61 -0
  108. package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.d.ts +41 -0
  109. package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.js +61 -0
  110. package/dist/openapi/models/Filter.d.ts +32 -0
  111. package/dist/openapi/models/Filter.js +34 -0
  112. package/dist/openapi/models/FullDayPeriod.d.ts +32 -0
  113. package/dist/openapi/models/FullDayPeriod.js +40 -0
  114. package/dist/openapi/models/GetCommitmentReportResponse.d.ts +44 -0
  115. package/dist/openapi/models/GetCommitmentReportResponse.js +115 -0
  116. package/dist/openapi/models/GetContractResponse.d.ts +29 -0
  117. package/dist/openapi/models/GetContractResponse.js +31 -0
  118. package/dist/openapi/models/GetContractResponseContract.d.ts +46 -0
  119. package/dist/openapi/models/GetContractResponseContract.js +67 -0
  120. package/dist/openapi/models/GetCustomerResponse.d.ts +29 -0
  121. package/dist/openapi/models/GetCustomerResponse.js +31 -0
  122. package/dist/openapi/models/GetEventResponse.d.ts +29 -0
  123. package/dist/openapi/models/GetEventResponse.js +31 -0
  124. package/dist/openapi/models/GetEventResponseEvent.d.ts +55 -0
  125. package/dist/openapi/models/GetEventResponseEvent.js +76 -0
  126. package/dist/openapi/models/GetInvoiceResponse.d.ts +29 -0
  127. package/dist/openapi/models/GetInvoiceResponse.js +31 -0
  128. package/dist/openapi/models/GetInvoiceResponseInvoice.d.ts +50 -0
  129. package/dist/openapi/models/GetInvoiceResponseInvoice.js +79 -0
  130. package/dist/openapi/models/GetMeterResponse.d.ts +29 -0
  131. package/dist/openapi/models/GetMeterResponse.js +31 -0
  132. package/dist/openapi/models/GetMeterResponseMeter.d.ts +42 -0
  133. package/dist/openapi/models/GetMeterResponseMeter.js +67 -0
  134. package/dist/openapi/models/GetPlanResponse.d.ts +29 -0
  135. package/dist/openapi/models/GetPlanResponse.js +31 -0
  136. package/dist/openapi/models/GetPlanResponsePlan.d.ts +38 -0
  137. package/dist/openapi/models/GetPlanResponsePlan.js +61 -0
  138. package/dist/openapi/models/GetProductsUsageReportResponse.d.ts +44 -0
  139. package/dist/openapi/models/GetProductsUsageReportResponse.js +115 -0
  140. package/dist/openapi/models/GrantCreditsRequest.d.ts +35 -0
  141. package/dist/openapi/models/GrantCreditsRequest.js +37 -0
  142. package/dist/openapi/models/InvalidEvent.d.ts +33 -0
  143. package/dist/openapi/models/InvalidEvent.js +37 -0
  144. package/dist/openapi/models/LineItem.d.ts +33 -0
  145. package/dist/openapi/models/LineItem.js +37 -0
  146. package/dist/openapi/models/LineItemRevenueBreakdown.d.ts +36 -0
  147. package/dist/openapi/models/LineItemRevenueBreakdown.js +64 -0
  148. package/dist/openapi/models/ListContractsResponse.d.ts +32 -0
  149. package/dist/openapi/models/ListContractsResponse.js +49 -0
  150. package/dist/openapi/models/ListCreditLedgerEntriesResponse.d.ts +32 -0
  151. package/dist/openapi/models/ListCreditLedgerEntriesResponse.js +31 -0
  152. package/dist/openapi/models/ListCustomersResponse.d.ts +32 -0
  153. package/dist/openapi/models/ListCustomersResponse.js +49 -0
  154. package/dist/openapi/models/ListInvoicesResponse.d.ts +32 -0
  155. package/dist/openapi/models/ListInvoicesResponse.js +49 -0
  156. package/dist/openapi/models/ListMetersResponse.d.ts +32 -0
  157. package/dist/openapi/models/ListMetersResponse.js +49 -0
  158. package/dist/openapi/models/ListPlansResponse.d.ts +32 -0
  159. package/dist/openapi/models/ListPlansResponse.js +49 -0
  160. package/dist/openapi/models/LoginRequest.d.ts +31 -0
  161. package/dist/openapi/models/LoginRequest.js +31 -0
  162. package/dist/openapi/models/LoginResponse.d.ts +31 -0
  163. package/dist/openapi/models/LoginResponse.js +31 -0
  164. package/dist/openapi/models/Meter.d.ts +39 -0
  165. package/dist/openapi/models/Meter.js +49 -0
  166. package/dist/openapi/models/NetSuiteExportSalesOrderRequest.d.ts +30 -0
  167. package/dist/openapi/models/NetSuiteExportSalesOrderRequest.js +43 -0
  168. package/dist/openapi/models/NetSuiteSyncInvoicesRequest.d.ts +34 -0
  169. package/dist/openapi/models/NetSuiteSyncInvoicesRequest.js +47 -0
  170. package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.d.ts +39 -0
  171. package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.js +85 -0
  172. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataEntity.d.ts +28 -0
  173. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataEntity.js +31 -0
  174. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.d.ts +29 -0
  175. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.js +31 -0
  176. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.d.ts +33 -0
  177. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.js +55 -0
  178. package/dist/openapi/models/NetSuiteSyncInvoicesResponse.d.ts +29 -0
  179. package/dist/openapi/models/NetSuiteSyncInvoicesResponse.js +37 -0
  180. package/dist/openapi/models/NotificationEventType.d.ts +17 -0
  181. package/dist/openapi/models/NotificationEventType.js +21 -0
  182. package/dist/openapi/models/ObjectSerializer.d.ts +109 -0
  183. package/dist/openapi/models/ObjectSerializer.js +497 -0
  184. package/dist/openapi/models/PaymentTerm.d.ts +18 -0
  185. package/dist/openapi/models/PaymentTerm.js +22 -0
  186. package/dist/openapi/models/PlanBillingData.d.ts +37 -0
  187. package/dist/openapi/models/PlanBillingData.js +58 -0
  188. package/dist/openapi/models/PlanStatus.d.ts +19 -0
  189. package/dist/openapi/models/PlanStatus.js +23 -0
  190. package/dist/openapi/models/QueryEventsResponse.d.ts +32 -0
  191. package/dist/openapi/models/QueryEventsResponse.js +31 -0
  192. package/dist/openapi/models/QueryEventsResponseEventsInner.d.ts +52 -0
  193. package/dist/openapi/models/QueryEventsResponseEventsInner.js +73 -0
  194. package/dist/openapi/models/SendEventsRequest.d.ts +29 -0
  195. package/dist/openapi/models/SendEventsRequest.js +31 -0
  196. package/dist/openapi/models/SendEventsResponse.d.ts +37 -0
  197. package/dist/openapi/models/SendEventsResponse.js +37 -0
  198. package/dist/openapi/models/UpdateCustomerRequest.d.ts +46 -0
  199. package/dist/openapi/models/UpdateCustomerRequest.js +55 -0
  200. package/dist/openapi/models/UpdateCustomerResponse.d.ts +29 -0
  201. package/dist/openapi/models/UpdateCustomerResponse.js +31 -0
  202. package/dist/openapi/models/UpdateMeterRequest.d.ts +39 -0
  203. package/dist/openapi/models/UpdateMeterRequest.js +49 -0
  204. package/dist/openapi/models/UpdateMeterResponse.d.ts +29 -0
  205. package/dist/openapi/models/UpdateMeterResponse.js +31 -0
  206. package/dist/openapi/models/WebhookSubscribeRequest.d.ts +30 -0
  207. package/dist/openapi/models/WebhookSubscribeRequest.js +37 -0
  208. package/dist/openapi/models/all.d.ts +82 -0
  209. package/dist/openapi/models/all.js +98 -0
  210. package/dist/openapi/rxjsStub.d.ts +10 -0
  211. package/dist/openapi/rxjsStub.js +31 -0
  212. package/dist/openapi/servers.d.ts +39 -0
  213. package/dist/openapi/servers.js +52 -0
  214. package/dist/openapi/types/ObjectParamAPI.d.ts +845 -0
  215. package/dist/openapi/types/ObjectParamAPI.js +606 -0
  216. package/dist/openapi/types/ObservableAPI.d.ts +544 -0
  217. package/dist/openapi/types/ObservableAPI.js +1089 -0
  218. package/dist/openapi/types/PromiseAPI.d.ts +521 -0
  219. package/dist/openapi/types/PromiseAPI.js +702 -0
  220. package/dist/openapi/util.d.ts +15 -0
  221. package/dist/openapi/util.js +42 -0
  222. package/dist/sdk/clients/ContractsClient.d.ts +10 -0
  223. package/dist/sdk/clients/ContractsClient.js +42 -0
  224. package/dist/sdk/clients/CustomersClient.d.ts +12 -0
  225. package/dist/sdk/clients/CustomersClient.js +52 -0
  226. package/dist/sdk/clients/EventsClient.d.ts +11 -0
  227. package/dist/sdk/clients/EventsClient.js +49 -0
  228. package/dist/sdk/clients/InvoicesClient.d.ts +7 -0
  229. package/dist/sdk/clients/InvoicesClient.js +32 -0
  230. package/dist/sdk/clients/MetersClient.d.ts +10 -0
  231. package/dist/sdk/clients/MetersClient.js +42 -0
  232. package/dist/sdk/clients/PlansClient.d.ts +8 -0
  233. package/dist/sdk/clients/PlansClient.js +37 -0
  234. package/dist/sdk/clients/WebhooksClient.d.ts +6 -0
  235. package/dist/sdk/clients/WebhooksClient.js +25 -0
  236. package/dist/sdk/clients/index.d.ts +7 -0
  237. package/dist/sdk/clients/index.js +23 -0
  238. package/dist/sdk/index.d.ts +14 -0
  239. package/dist/sdk/index.js +62 -0
  240. package/dist/sdk/services/configuration.service.d.ts +21 -0
  241. package/dist/sdk/services/configuration.service.js +104 -0
  242. package/dist/sdk/services/index.d.ts +1 -0
  243. package/dist/sdk/services/index.js +17 -0
  244. package/dist/sdk/types/Contracts.d.ts +1 -0
  245. package/dist/sdk/types/Contracts.js +2 -0
  246. package/dist/sdk/types/Customers.d.ts +1 -0
  247. package/dist/sdk/types/Customers.js +2 -0
  248. package/dist/sdk/types/Events.d.ts +1 -0
  249. package/dist/sdk/types/Events.js +2 -0
  250. package/dist/sdk/types/Invoices.d.ts +1 -0
  251. package/dist/sdk/types/Invoices.js +2 -0
  252. package/dist/sdk/types/Meters.d.ts +1 -0
  253. package/dist/sdk/types/Meters.js +2 -0
  254. package/dist/sdk/types/Plans.d.ts +1 -0
  255. package/dist/sdk/types/Plans.js +2 -0
  256. package/dist/sdk/types/index.d.ts +7 -0
  257. package/dist/sdk/types/index.js +23 -0
  258. package/dist/sdk/types/pagination-options.d.ts +4 -0
  259. package/dist/sdk/types/pagination-options.js +2 -0
  260. package/dist/types.d.ts +1 -0
  261. package/dist/types.js +17 -0
  262. package/package.json +1 -1
@@ -0,0 +1,521 @@
1
+ import { HttpInfo } from '../http/http';
2
+ import { Configuration } from '../configuration';
3
+ import { CreateContractRequest } from '../models/CreateContractRequest';
4
+ import { CreateContractResponse } from '../models/CreateContractResponse';
5
+ import { CreateCustomerRequest } from '../models/CreateCustomerRequest';
6
+ import { CreateCustomerResponse } from '../models/CreateCustomerResponse';
7
+ import { DeductCreditsRequest } from '../models/DeductCreditsRequest';
8
+ import { DeleteContractResponse } from '../models/DeleteContractResponse';
9
+ import { DeleteCustomerResponse } from '../models/DeleteCustomerResponse';
10
+ import { DeleteEventResponse } from '../models/DeleteEventResponse';
11
+ import { DeleteMeterResponse } from '../models/DeleteMeterResponse';
12
+ import { DeletePlanResponse } from '../models/DeletePlanResponse';
13
+ import { EventsDryRunRequest } from '../models/EventsDryRunRequest';
14
+ import { EventsDryRunResponse } from '../models/EventsDryRunResponse';
15
+ import { GetCommitmentReportResponse } from '../models/GetCommitmentReportResponse';
16
+ import { GetContractResponse } from '../models/GetContractResponse';
17
+ import { GetCustomerResponse } from '../models/GetCustomerResponse';
18
+ import { GetEventResponse } from '../models/GetEventResponse';
19
+ import { GetInvoiceResponse } from '../models/GetInvoiceResponse';
20
+ import { GetMeterResponse } from '../models/GetMeterResponse';
21
+ import { GetPlanResponse } from '../models/GetPlanResponse';
22
+ import { GetProductsUsageReportResponse } from '../models/GetProductsUsageReportResponse';
23
+ import { GrantCreditsRequest } from '../models/GrantCreditsRequest';
24
+ import { ListContractsResponse } from '../models/ListContractsResponse';
25
+ import { ListCreditLedgerEntriesResponse } from '../models/ListCreditLedgerEntriesResponse';
26
+ import { ListCustomersResponse } from '../models/ListCustomersResponse';
27
+ import { ListInvoicesResponse } from '../models/ListInvoicesResponse';
28
+ import { ListMetersResponse } from '../models/ListMetersResponse';
29
+ import { ListPlansResponse } from '../models/ListPlansResponse';
30
+ import { LoginRequest } from '../models/LoginRequest';
31
+ import { LoginResponse } from '../models/LoginResponse';
32
+ import { NetSuiteExportSalesOrderRequest } from '../models/NetSuiteExportSalesOrderRequest';
33
+ import { NetSuiteSyncInvoicesRequest } from '../models/NetSuiteSyncInvoicesRequest';
34
+ import { NetSuiteSyncInvoicesResponse } from '../models/NetSuiteSyncInvoicesResponse';
35
+ import { QueryEventsResponse } from '../models/QueryEventsResponse';
36
+ import { SendEventsRequest } from '../models/SendEventsRequest';
37
+ import { SendEventsResponse } from '../models/SendEventsResponse';
38
+ import { UpdateCustomerRequest } from '../models/UpdateCustomerRequest';
39
+ import { UpdateCustomerResponse } from '../models/UpdateCustomerResponse';
40
+ import { UpdateMeterRequest } from '../models/UpdateMeterRequest';
41
+ import { UpdateMeterResponse } from '../models/UpdateMeterResponse';
42
+ import { WebhookSubscribeRequest } from '../models/WebhookSubscribeRequest';
43
+ import { AuthApiRequestFactory, AuthApiResponseProcessor } from "../apis/AuthApi";
44
+ export declare class PromiseAuthApi {
45
+ private api;
46
+ constructor(configuration: Configuration, requestFactory?: AuthApiRequestFactory, responseProcessor?: AuthApiResponseProcessor);
47
+ /**
48
+ * This endpoint is designed to acquire a temporary access token. Submit the auth token in the request body to obtain a new access token. Use this new token for subsequent API calls. Token is set to expire every hour.
49
+ * Login by obtaining a new access token
50
+ * @param loginRequest
51
+ */
52
+ loginWithHttpInfo(loginRequest: LoginRequest, _options?: Configuration): Promise<HttpInfo<LoginResponse>>;
53
+ /**
54
+ * This endpoint is designed to acquire a temporary access token. Submit the auth token in the request body to obtain a new access token. Use this new token for subsequent API calls. Token is set to expire every hour.
55
+ * Login by obtaining a new access token
56
+ * @param loginRequest
57
+ */
58
+ login(loginRequest: LoginRequest, _options?: Configuration): Promise<LoginResponse>;
59
+ }
60
+ import { ContractsApiRequestFactory, ContractsApiResponseProcessor } from "../apis/ContractsApi";
61
+ export declare class PromiseContractsApi {
62
+ private api;
63
+ constructor(configuration: Configuration, requestFactory?: ContractsApiRequestFactory, responseProcessor?: ContractsApiResponseProcessor);
64
+ /**
65
+ * Create a new Contract.
66
+ * Create Contract
67
+ * @param createContractRequest
68
+ */
69
+ createContractWithHttpInfo(createContractRequest: CreateContractRequest, _options?: Configuration): Promise<HttpInfo<CreateContractResponse>>;
70
+ /**
71
+ * Create a new Contract.
72
+ * Create Contract
73
+ * @param createContractRequest
74
+ */
75
+ createContract(createContractRequest: CreateContractRequest, _options?: Configuration): Promise<CreateContractResponse>;
76
+ /**
77
+ * Delete a Contract by id.
78
+ * Delete Contract
79
+ * @param contractId
80
+ */
81
+ deleteContractWithHttpInfo(contractId: string, _options?: Configuration): Promise<HttpInfo<DeleteContractResponse>>;
82
+ /**
83
+ * Delete a Contract by id.
84
+ * Delete Contract
85
+ * @param contractId
86
+ */
87
+ deleteContract(contractId: string, _options?: Configuration): Promise<DeleteContractResponse>;
88
+ /**
89
+ * Get a Contract by id.
90
+ * Get Contract
91
+ * @param contractId
92
+ */
93
+ getContractWithHttpInfo(contractId: string, _options?: Configuration): Promise<HttpInfo<GetContractResponse>>;
94
+ /**
95
+ * Get a Contract by id.
96
+ * Get Contract
97
+ * @param contractId
98
+ */
99
+ getContract(contractId: string, _options?: Configuration): Promise<GetContractResponse>;
100
+ /**
101
+ * Get a list of Contracts.
102
+ * List Contracts
103
+ * @param limit
104
+ * @param cursor
105
+ */
106
+ listContractsWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<ListContractsResponse>>;
107
+ /**
108
+ * Get a list of Contracts.
109
+ * List Contracts
110
+ * @param limit
111
+ * @param cursor
112
+ */
113
+ listContracts(limit?: number, cursor?: string, _options?: Configuration): Promise<ListContractsResponse>;
114
+ }
115
+ import { CreditsApiRequestFactory, CreditsApiResponseProcessor } from "../apis/CreditsApi";
116
+ export declare class PromiseCreditsApi {
117
+ private api;
118
+ constructor(configuration: Configuration, requestFactory?: CreditsApiRequestFactory, responseProcessor?: CreditsApiResponseProcessor);
119
+ /**
120
+ * This endpoint is used to deduct credits from the specified customer account. Submit the credit amount and customer ID in the request body to deduct the credits. The deducted credits will be subtracted from the customer\'s account.
121
+ * Deduct credits from customer credit ledger
122
+ * @param deductCreditsRequest
123
+ */
124
+ deductCreditsWithHttpInfo(deductCreditsRequest: DeductCreditsRequest, _options?: Configuration): Promise<HttpInfo<void>>;
125
+ /**
126
+ * This endpoint is used to deduct credits from the specified customer account. Submit the credit amount and customer ID in the request body to deduct the credits. The deducted credits will be subtracted from the customer\'s account.
127
+ * Deduct credits from customer credit ledger
128
+ * @param deductCreditsRequest
129
+ */
130
+ deductCredits(deductCreditsRequest: DeductCreditsRequest, _options?: Configuration): Promise<void>;
131
+ /**
132
+ * This endpoint is used to grant credits to a customer. Submit the credit amount and customer ID in the request body to grant the credits. The granted credits will be added to the customer\'s account.
133
+ * Grant credits to a customer credit ledger
134
+ * @param grantCreditsRequest
135
+ */
136
+ grantCreditsWithHttpInfo(grantCreditsRequest: GrantCreditsRequest, _options?: Configuration): Promise<HttpInfo<void>>;
137
+ /**
138
+ * This endpoint is used to grant credits to a customer. Submit the credit amount and customer ID in the request body to grant the credits. The granted credits will be added to the customer\'s account.
139
+ * Grant credits to a customer credit ledger
140
+ * @param grantCreditsRequest
141
+ */
142
+ grantCredits(grantCreditsRequest: GrantCreditsRequest, _options?: Configuration): Promise<void>;
143
+ /**
144
+ * This endpoint is used to retrieve the credit ledger entries for a specific customer.
145
+ * Retrieve credit ledger entries for customer.
146
+ * @param customerId
147
+ * @param limit
148
+ * @param cursor
149
+ */
150
+ listCreditLedgerEntriesWithHttpInfo(customerId: string, limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<ListCreditLedgerEntriesResponse>>;
151
+ /**
152
+ * This endpoint is used to retrieve the credit ledger entries for a specific customer.
153
+ * Retrieve credit ledger entries for customer.
154
+ * @param customerId
155
+ * @param limit
156
+ * @param cursor
157
+ */
158
+ listCreditLedgerEntries(customerId: string, limit?: number, cursor?: string, _options?: Configuration): Promise<ListCreditLedgerEntriesResponse>;
159
+ }
160
+ import { CustomersApiRequestFactory, CustomersApiResponseProcessor } from "../apis/CustomersApi";
161
+ export declare class PromiseCustomersApi {
162
+ private api;
163
+ constructor(configuration: Configuration, requestFactory?: CustomersApiRequestFactory, responseProcessor?: CustomersApiResponseProcessor);
164
+ /**
165
+ * Create a new Customer.
166
+ * Create Customer
167
+ * @param createCustomerRequest
168
+ */
169
+ createCustomerWithHttpInfo(createCustomerRequest: CreateCustomerRequest, _options?: Configuration): Promise<HttpInfo<CreateCustomerResponse>>;
170
+ /**
171
+ * Create a new Customer.
172
+ * Create Customer
173
+ * @param createCustomerRequest
174
+ */
175
+ createCustomer(createCustomerRequest: CreateCustomerRequest, _options?: Configuration): Promise<CreateCustomerResponse>;
176
+ /**
177
+ * Delete a Customer by id.
178
+ * Delete Customer
179
+ * @param customerId
180
+ */
181
+ deleteCustomerWithHttpInfo(customerId: string, _options?: Configuration): Promise<HttpInfo<DeleteCustomerResponse>>;
182
+ /**
183
+ * Delete a Customer by id.
184
+ * Delete Customer
185
+ * @param customerId
186
+ */
187
+ deleteCustomer(customerId: string, _options?: Configuration): Promise<DeleteCustomerResponse>;
188
+ /**
189
+ * Get a Customer by id.
190
+ * Get Customer
191
+ * @param customerId
192
+ */
193
+ getCustomerWithHttpInfo(customerId: string, _options?: Configuration): Promise<HttpInfo<GetCustomerResponse>>;
194
+ /**
195
+ * Get a Customer by id.
196
+ * Get Customer
197
+ * @param customerId
198
+ */
199
+ getCustomer(customerId: string, _options?: Configuration): Promise<GetCustomerResponse>;
200
+ /**
201
+ * Use this endpoint to get a specific customer using its external Id.
202
+ * Get customer by externalId
203
+ * @param externalId
204
+ */
205
+ getCustomerByExternalIdWithHttpInfo(externalId: string, _options?: Configuration): Promise<HttpInfo<GetCustomerResponse>>;
206
+ /**
207
+ * Use this endpoint to get a specific customer using its external Id.
208
+ * Get customer by externalId
209
+ * @param externalId
210
+ */
211
+ getCustomerByExternalId(externalId: string, _options?: Configuration): Promise<GetCustomerResponse>;
212
+ /**
213
+ * Get a list of Customers.
214
+ * List Customers
215
+ * @param limit
216
+ * @param cursor
217
+ */
218
+ listCustomersWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<ListCustomersResponse>>;
219
+ /**
220
+ * Get a list of Customers.
221
+ * List Customers
222
+ * @param limit
223
+ * @param cursor
224
+ */
225
+ listCustomers(limit?: number, cursor?: string, _options?: Configuration): Promise<ListCustomersResponse>;
226
+ /**
227
+ * Update a Customer by id.
228
+ * Update Customer
229
+ * @param updateCustomerRequest
230
+ * @param customerId
231
+ */
232
+ updateCustomerWithHttpInfo(updateCustomerRequest: UpdateCustomerRequest, customerId: string, _options?: Configuration): Promise<HttpInfo<UpdateCustomerResponse>>;
233
+ /**
234
+ * Update a Customer by id.
235
+ * Update Customer
236
+ * @param updateCustomerRequest
237
+ * @param customerId
238
+ */
239
+ updateCustomer(updateCustomerRequest: UpdateCustomerRequest, customerId: string, _options?: Configuration): Promise<UpdateCustomerResponse>;
240
+ }
241
+ import { EventsApiRequestFactory, EventsApiResponseProcessor } from "../apis/EventsApi";
242
+ export declare class PromiseEventsApi {
243
+ private api;
244
+ constructor(configuration: Configuration, requestFactory?: EventsApiRequestFactory, responseProcessor?: EventsApiResponseProcessor);
245
+ /**
246
+ * Use this endpoint to remove a specific event using its reference ID.
247
+ * Delete an event by refId
248
+ * @param refId
249
+ */
250
+ deleteEventByRefIdWithHttpInfo(refId: string, _options?: Configuration): Promise<HttpInfo<DeleteEventResponse>>;
251
+ /**
252
+ * Use this endpoint to remove a specific event using its reference ID.
253
+ * Delete an event by refId
254
+ * @param refId
255
+ */
256
+ deleteEventByRefId(refId: string, _options?: Configuration): Promise<DeleteEventResponse>;
257
+ /**
258
+ * Use this endpoint to get a specific event using its reference ID.
259
+ * Get event by refId
260
+ * @param refId
261
+ */
262
+ getEventByRefIdWithHttpInfo(refId: string, _options?: Configuration): Promise<HttpInfo<GetEventResponse>>;
263
+ /**
264
+ * Use this endpoint to get a specific event using its reference ID.
265
+ * Get event by refId
266
+ * @param refId
267
+ */
268
+ getEventByRefId(refId: string, _options?: Configuration): Promise<GetEventResponse>;
269
+ /**
270
+ * Fetch events occurring within a specified timestamp range. An optional event name can be provided to further filter the events.
271
+ * Query events by timestamp period and optional event name
272
+ * @param startTime
273
+ * @param endTime
274
+ * @param eventName
275
+ * @param limit
276
+ * @param cursor
277
+ */
278
+ queryEventsWithHttpInfo(startTime: Date, endTime: Date, eventName?: string, limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<QueryEventsResponse>>;
279
+ /**
280
+ * Fetch events occurring within a specified timestamp range. An optional event name can be provided to further filter the events.
281
+ * Query events by timestamp period and optional event name
282
+ * @param startTime
283
+ * @param endTime
284
+ * @param eventName
285
+ * @param limit
286
+ * @param cursor
287
+ */
288
+ queryEvents(startTime: Date, endTime: Date, eventName?: string, limit?: number, cursor?: string, _options?: Configuration): Promise<QueryEventsResponse>;
289
+ /**
290
+ * Use this endpoint to send an array of events for processing and storage. Make sure to comply with the request schema for each event.
291
+ * Submit a batch of events for ingestion
292
+ * @param sendEventsRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \&#39;/events\&#39; Up to 1000 events or a total payload max size of 256KB
293
+ */
294
+ sendEventsWithHttpInfo(sendEventsRequest: SendEventsRequest, _options?: Configuration): Promise<HttpInfo<SendEventsResponse>>;
295
+ /**
296
+ * Use this endpoint to send an array of events for processing and storage. Make sure to comply with the request schema for each event.
297
+ * Submit a batch of events for ingestion
298
+ * @param sendEventsRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \&#39;/events\&#39; Up to 1000 events or a total payload max size of 256KB
299
+ */
300
+ sendEvents(sendEventsRequest: SendEventsRequest, _options?: Configuration): Promise<SendEventsResponse>;
301
+ /**
302
+ * Use this endpoint to send an array of events for processing. Make sure to comply with the request schema for each event. NOTE: this is a dry run and will not result in actual storage of the events.
303
+ * Submit a batch of events for testing
304
+ * @param eventsDryRunRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \&#39;/events\&#39; Up to 1000 events or a total payload max size of 256KB
305
+ */
306
+ sendEventsDryRunWithHttpInfo(eventsDryRunRequest: EventsDryRunRequest, _options?: Configuration): Promise<HttpInfo<EventsDryRunResponse>>;
307
+ /**
308
+ * Use this endpoint to send an array of events for processing. Make sure to comply with the request schema for each event. NOTE: this is a dry run and will not result in actual storage of the events.
309
+ * Submit a batch of events for testing
310
+ * @param eventsDryRunRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \&#39;/events\&#39; Up to 1000 events or a total payload max size of 256KB
311
+ */
312
+ sendEventsDryRun(eventsDryRunRequest: EventsDryRunRequest, _options?: Configuration): Promise<EventsDryRunResponse>;
313
+ }
314
+ import { IntegrationsApiRequestFactory, IntegrationsApiResponseProcessor } from "../apis/IntegrationsApi";
315
+ export declare class PromiseIntegrationsApi {
316
+ private api;
317
+ constructor(configuration: Configuration, requestFactory?: IntegrationsApiRequestFactory, responseProcessor?: IntegrationsApiResponseProcessor);
318
+ /**
319
+ * This endpoint is used to export sales order to NetSuite.
320
+ * Export sales order to NetSuite
321
+ * @param netSuiteExportSalesOrderRequest
322
+ */
323
+ exportNetSuiteSalesOrderWithHttpInfo(netSuiteExportSalesOrderRequest: NetSuiteExportSalesOrderRequest, _options?: Configuration): Promise<HttpInfo<void>>;
324
+ /**
325
+ * This endpoint is used to export sales order to NetSuite.
326
+ * Export sales order to NetSuite
327
+ * @param netSuiteExportSalesOrderRequest
328
+ */
329
+ exportNetSuiteSalesOrder(netSuiteExportSalesOrderRequest: NetSuiteExportSalesOrderRequest, _options?: Configuration): Promise<void>;
330
+ /**
331
+ * This endpoint is used to sync invoices to NetSuite.
332
+ * Sync invoices to NetSuite
333
+ * @param netSuiteSyncInvoicesRequest
334
+ */
335
+ netSuiteSyncInvoicesWithHttpInfo(netSuiteSyncInvoicesRequest: NetSuiteSyncInvoicesRequest, _options?: Configuration): Promise<HttpInfo<NetSuiteSyncInvoicesResponse>>;
336
+ /**
337
+ * This endpoint is used to sync invoices to NetSuite.
338
+ * Sync invoices to NetSuite
339
+ * @param netSuiteSyncInvoicesRequest
340
+ */
341
+ netSuiteSyncInvoices(netSuiteSyncInvoicesRequest: NetSuiteSyncInvoicesRequest, _options?: Configuration): Promise<NetSuiteSyncInvoicesResponse>;
342
+ }
343
+ import { InvoicesApiRequestFactory, InvoicesApiResponseProcessor } from "../apis/InvoicesApi";
344
+ export declare class PromiseInvoicesApi {
345
+ private api;
346
+ constructor(configuration: Configuration, requestFactory?: InvoicesApiRequestFactory, responseProcessor?: InvoicesApiResponseProcessor);
347
+ /**
348
+ * Get a Invoice by id.
349
+ * Get Invoice
350
+ * @param invoiceId
351
+ */
352
+ getInvoiceWithHttpInfo(invoiceId: string, _options?: Configuration): Promise<HttpInfo<GetInvoiceResponse>>;
353
+ /**
354
+ * Get a Invoice by id.
355
+ * Get Invoice
356
+ * @param invoiceId
357
+ */
358
+ getInvoice(invoiceId: string, _options?: Configuration): Promise<GetInvoiceResponse>;
359
+ /**
360
+ * Get a list of Invoices.
361
+ * List Invoices
362
+ * @param limit
363
+ * @param cursor
364
+ */
365
+ listInvoicesWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<ListInvoicesResponse>>;
366
+ /**
367
+ * Get a list of Invoices.
368
+ * List Invoices
369
+ * @param limit
370
+ * @param cursor
371
+ */
372
+ listInvoices(limit?: number, cursor?: string, _options?: Configuration): Promise<ListInvoicesResponse>;
373
+ }
374
+ import { MetersApiRequestFactory, MetersApiResponseProcessor } from "../apis/MetersApi";
375
+ export declare class PromiseMetersApi {
376
+ private api;
377
+ constructor(configuration: Configuration, requestFactory?: MetersApiRequestFactory, responseProcessor?: MetersApiResponseProcessor);
378
+ /**
379
+ * Delete a Meter by id.
380
+ * Delete Meter
381
+ * @param meterId
382
+ */
383
+ deleteMeterWithHttpInfo(meterId: string, _options?: Configuration): Promise<HttpInfo<DeleteMeterResponse>>;
384
+ /**
385
+ * Delete a Meter by id.
386
+ * Delete Meter
387
+ * @param meterId
388
+ */
389
+ deleteMeter(meterId: string, _options?: Configuration): Promise<DeleteMeterResponse>;
390
+ /**
391
+ * Get a Meter by id.
392
+ * Get Meter
393
+ * @param meterId
394
+ */
395
+ getMeterWithHttpInfo(meterId: string, _options?: Configuration): Promise<HttpInfo<GetMeterResponse>>;
396
+ /**
397
+ * Get a Meter by id.
398
+ * Get Meter
399
+ * @param meterId
400
+ */
401
+ getMeter(meterId: string, _options?: Configuration): Promise<GetMeterResponse>;
402
+ /**
403
+ * Get a list of Meters.
404
+ * List Meters
405
+ * @param limit
406
+ * @param cursor
407
+ */
408
+ listMetersWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<ListMetersResponse>>;
409
+ /**
410
+ * Get a list of Meters.
411
+ * List Meters
412
+ * @param limit
413
+ * @param cursor
414
+ */
415
+ listMeters(limit?: number, cursor?: string, _options?: Configuration): Promise<ListMetersResponse>;
416
+ /**
417
+ * Update a Meter by id.
418
+ * Update Meter
419
+ * @param updateMeterRequest
420
+ * @param meterId
421
+ */
422
+ updateMeterWithHttpInfo(updateMeterRequest: UpdateMeterRequest, meterId: string, _options?: Configuration): Promise<HttpInfo<UpdateMeterResponse>>;
423
+ /**
424
+ * Update a Meter by id.
425
+ * Update Meter
426
+ * @param updateMeterRequest
427
+ * @param meterId
428
+ */
429
+ updateMeter(updateMeterRequest: UpdateMeterRequest, meterId: string, _options?: Configuration): Promise<UpdateMeterResponse>;
430
+ }
431
+ import { PlansApiRequestFactory, PlansApiResponseProcessor } from "../apis/PlansApi";
432
+ export declare class PromisePlansApi {
433
+ private api;
434
+ constructor(configuration: Configuration, requestFactory?: PlansApiRequestFactory, responseProcessor?: PlansApiResponseProcessor);
435
+ /**
436
+ * Delete a Plan by id.
437
+ * Delete Plan
438
+ * @param planId
439
+ */
440
+ deletePlanWithHttpInfo(planId: string, _options?: Configuration): Promise<HttpInfo<DeletePlanResponse>>;
441
+ /**
442
+ * Delete a Plan by id.
443
+ * Delete Plan
444
+ * @param planId
445
+ */
446
+ deletePlan(planId: string, _options?: Configuration): Promise<DeletePlanResponse>;
447
+ /**
448
+ * Get a Plan by id.
449
+ * Get Plan
450
+ * @param planId
451
+ */
452
+ getPlanWithHttpInfo(planId: string, _options?: Configuration): Promise<HttpInfo<GetPlanResponse>>;
453
+ /**
454
+ * Get a Plan by id.
455
+ * Get Plan
456
+ * @param planId
457
+ */
458
+ getPlan(planId: string, _options?: Configuration): Promise<GetPlanResponse>;
459
+ /**
460
+ * Get a list of Plans.
461
+ * List Plans
462
+ * @param limit
463
+ * @param cursor
464
+ */
465
+ listPlansWithHttpInfo(limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<ListPlansResponse>>;
466
+ /**
467
+ * Get a list of Plans.
468
+ * List Plans
469
+ * @param limit
470
+ * @param cursor
471
+ */
472
+ listPlans(limit?: number, cursor?: string, _options?: Configuration): Promise<ListPlansResponse>;
473
+ }
474
+ import { ReportsApiRequestFactory, ReportsApiResponseProcessor } from "../apis/ReportsApi";
475
+ export declare class PromiseReportsApi {
476
+ private api;
477
+ constructor(configuration: Configuration, requestFactory?: ReportsApiRequestFactory, responseProcessor?: ReportsApiResponseProcessor);
478
+ /**
479
+ * Get commitment report
480
+ * @param reportId
481
+ */
482
+ getCommitmentReportResponseWithHttpInfo(reportId?: string, _options?: Configuration): Promise<HttpInfo<GetCommitmentReportResponse>>;
483
+ /**
484
+ * Get commitment report
485
+ * @param reportId
486
+ */
487
+ getCommitmentReportResponse(reportId?: string, _options?: Configuration): Promise<GetCommitmentReportResponse>;
488
+ /**
489
+ * Use this endpoint to get the products usage report.
490
+ * Get products usage report
491
+ * @param reportId
492
+ * @param limit
493
+ * @param cursor
494
+ */
495
+ getProductsUsageReportWithHttpInfo(reportId?: string, limit?: number, cursor?: string, _options?: Configuration): Promise<HttpInfo<GetProductsUsageReportResponse>>;
496
+ /**
497
+ * Use this endpoint to get the products usage report.
498
+ * Get products usage report
499
+ * @param reportId
500
+ * @param limit
501
+ * @param cursor
502
+ */
503
+ getProductsUsageReport(reportId?: string, limit?: number, cursor?: string, _options?: Configuration): Promise<GetProductsUsageReportResponse>;
504
+ }
505
+ import { WebhooksApiRequestFactory, WebhooksApiResponseProcessor } from "../apis/WebhooksApi";
506
+ export declare class PromiseWebhooksApi {
507
+ private api;
508
+ constructor(configuration: Configuration, requestFactory?: WebhooksApiRequestFactory, responseProcessor?: WebhooksApiResponseProcessor);
509
+ /**
510
+ * Use this endpoint to subscribe to webhooks and receive event notifications.
511
+ * Subscribe to webhooks
512
+ * @param webhookSubscribeRequest Subscribe to webhooks and receive event notifications.
513
+ */
514
+ webhookSubscribeWithHttpInfo(webhookSubscribeRequest: WebhookSubscribeRequest, _options?: Configuration): Promise<HttpInfo<void>>;
515
+ /**
516
+ * Use this endpoint to subscribe to webhooks and receive event notifications.
517
+ * Subscribe to webhooks
518
+ * @param webhookSubscribeRequest Subscribe to webhooks and receive event notifications.
519
+ */
520
+ webhookSubscribe(webhookSubscribeRequest: WebhookSubscribeRequest, _options?: Configuration): Promise<void>;
521
+ }