vayu-ts 0.2.5 → 0.2.7

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