vayu-ts 0.1.3 → 0.2.1

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 (401) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +17 -0
  3. package/dist/openapi/apis/AuthApi.d.ts +26 -0
  4. package/dist/openapi/apis/AuthApi.js +93 -0
  5. package/dist/openapi/apis/ContractsApi.d.ts +72 -0
  6. package/dist/openapi/apis/ContractsApi.js +307 -0
  7. package/dist/openapi/apis/CreditsApi.d.ts +57 -0
  8. package/dist/openapi/apis/CreditsApi.js +248 -0
  9. package/dist/openapi/apis/CustomersApi.d.ts +103 -0
  10. package/dist/openapi/apis/CustomersApi.js +457 -0
  11. package/dist/openapi/apis/EventsApi.d.ts +91 -0
  12. package/dist/openapi/apis/EventsApi.js +408 -0
  13. package/dist/openapi/apis/IntegrationsApi.d.ts +41 -0
  14. package/dist/openapi/apis/IntegrationsApi.js +170 -0
  15. package/dist/openapi/apis/InvoicesApi.d.ts +41 -0
  16. package/dist/openapi/apis/InvoicesApi.js +166 -0
  17. package/dist/openapi/apis/MetersApi.d.ts +73 -0
  18. package/dist/openapi/apis/MetersApi.js +316 -0
  19. package/dist/openapi/apis/PlansApi.d.ts +56 -0
  20. package/dist/openapi/apis/PlansApi.js +235 -0
  21. package/dist/openapi/apis/ReportsApi.d.ts +41 -0
  22. package/dist/openapi/apis/ReportsApi.js +166 -0
  23. package/dist/openapi/apis/WebhooksApi.d.ts +25 -0
  24. package/dist/openapi/apis/WebhooksApi.js +101 -0
  25. package/dist/openapi/apis/baseapi.d.ts +33 -0
  26. package/dist/openapi/apis/baseapi.js +41 -0
  27. package/dist/openapi/apis/exception.d.ts +19 -0
  28. package/dist/openapi/apis/exception.js +22 -0
  29. package/dist/openapi/auth/auth.d.ts +54 -0
  30. package/dist/openapi/auth/auth.js +50 -0
  31. package/dist/openapi/configuration.d.ts +63 -0
  32. package/dist/openapi/configuration.js +34 -0
  33. package/dist/openapi/http/http.d.ts +142 -0
  34. package/dist/openapi/http/http.js +229 -0
  35. package/dist/openapi/http/isomorphic-fetch.d.ts +5 -0
  36. package/dist/openapi/http/isomorphic-fetch.js +33 -0
  37. package/dist/openapi/index.d.ts +10 -0
  38. package/dist/openapi/index.js +38 -0
  39. package/dist/openapi/middleware.d.ts +54 -0
  40. package/dist/openapi/middleware.js +16 -0
  41. package/dist/openapi/models/Address.d.ts +35 -0
  42. package/dist/openapi/models/Address.js +58 -0
  43. package/dist/openapi/models/AggregationMethod.d.ts +40 -0
  44. package/dist/openapi/models/AggregationMethod.js +46 -0
  45. package/dist/openapi/models/AggregationOperator.d.ts +24 -0
  46. package/dist/openapi/models/AggregationOperator.js +28 -0
  47. package/dist/openapi/models/BillingCycleStatus.d.ts +15 -0
  48. package/dist/openapi/models/BillingCycleStatus.js +19 -0
  49. package/dist/openapi/models/BillingInterval.d.ts +18 -0
  50. package/dist/openapi/models/BillingInterval.js +22 -0
  51. package/dist/openapi/models/Condition.d.ts +29 -0
  52. package/dist/openapi/models/Condition.js +31 -0
  53. package/dist/openapi/models/Contact.d.ts +30 -0
  54. package/dist/openapi/models/Contact.js +43 -0
  55. package/dist/openapi/models/ContractStatus.d.ts +18 -0
  56. package/dist/openapi/models/ContractStatus.js +22 -0
  57. package/dist/openapi/models/CreateContractRequest.d.ts +43 -0
  58. package/dist/openapi/models/CreateContractRequest.js +49 -0
  59. package/dist/openapi/models/CreateContractResponse.d.ts +29 -0
  60. package/dist/openapi/models/CreateContractResponse.js +31 -0
  61. package/dist/openapi/models/CreateCustomerRequest.d.ts +46 -0
  62. package/dist/openapi/models/CreateCustomerRequest.js +55 -0
  63. package/dist/openapi/models/CreateCustomerResponse.d.ts +29 -0
  64. package/dist/openapi/models/CreateCustomerResponse.js +31 -0
  65. package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +49 -0
  66. package/dist/openapi/models/CreateCustomerResponseCustomer.js +73 -0
  67. package/dist/openapi/models/CreditLedgerEntry.d.ts +32 -0
  68. package/dist/openapi/models/CreditLedgerEntry.js +49 -0
  69. package/dist/openapi/models/Criterion.d.ts +31 -0
  70. package/dist/openapi/models/Criterion.js +43 -0
  71. package/dist/openapi/models/CriterionOperator.d.ts +23 -0
  72. package/dist/openapi/models/CriterionOperator.js +27 -0
  73. package/dist/openapi/models/Currency.d.ts +17 -0
  74. package/dist/openapi/models/Currency.js +21 -0
  75. package/dist/openapi/models/DeductCreditsRequest.d.ts +35 -0
  76. package/dist/openapi/models/DeductCreditsRequest.js +37 -0
  77. package/dist/openapi/models/DeleteContractResponse.d.ts +29 -0
  78. package/dist/openapi/models/DeleteContractResponse.js +31 -0
  79. package/dist/openapi/models/DeleteContractResponseContract.d.ts +47 -0
  80. package/dist/openapi/models/DeleteContractResponseContract.js +73 -0
  81. package/dist/openapi/models/DeleteCustomerResponse.d.ts +29 -0
  82. package/dist/openapi/models/DeleteCustomerResponse.js +31 -0
  83. package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +50 -0
  84. package/dist/openapi/models/DeleteCustomerResponseCustomer.js +79 -0
  85. package/dist/openapi/models/DeleteEventResponse.d.ts +29 -0
  86. package/dist/openapi/models/DeleteEventResponse.js +31 -0
  87. package/dist/openapi/models/DeleteEventResponseEvent.d.ts +56 -0
  88. package/dist/openapi/models/DeleteEventResponseEvent.js +82 -0
  89. package/dist/openapi/models/DeleteMeterResponse.d.ts +29 -0
  90. package/dist/openapi/models/DeleteMeterResponse.js +31 -0
  91. package/dist/openapi/models/DeleteMeterResponseMeter.d.ts +43 -0
  92. package/dist/openapi/models/DeleteMeterResponseMeter.js +73 -0
  93. package/dist/openapi/models/DeletePlanResponse.d.ts +29 -0
  94. package/dist/openapi/models/DeletePlanResponse.js +31 -0
  95. package/dist/openapi/models/DeletePlanResponsePlan.d.ts +39 -0
  96. package/dist/openapi/models/DeletePlanResponsePlan.js +67 -0
  97. package/dist/openapi/models/Event.d.ts +49 -0
  98. package/dist/openapi/models/Event.js +55 -0
  99. package/dist/openapi/models/EventsDryRunRequest.d.ts +29 -0
  100. package/dist/openapi/models/EventsDryRunRequest.js +31 -0
  101. package/dist/openapi/models/EventsDryRunResponse.d.ts +29 -0
  102. package/dist/openapi/models/EventsDryRunResponse.js +31 -0
  103. package/dist/openapi/models/EventsDryRunResponseObject.d.ts +32 -0
  104. package/dist/openapi/models/EventsDryRunResponseObject.js +43 -0
  105. package/dist/openapi/models/EventsDryRunResponseObjectEvent.d.ts +35 -0
  106. package/dist/openapi/models/EventsDryRunResponseObjectEvent.js +61 -0
  107. package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.d.ts +41 -0
  108. package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.js +61 -0
  109. package/dist/openapi/models/Filter.d.ts +32 -0
  110. package/dist/openapi/models/Filter.js +34 -0
  111. package/dist/openapi/models/FullDayPeriod.d.ts +32 -0
  112. package/dist/openapi/models/FullDayPeriod.js +40 -0
  113. package/dist/openapi/models/GetCommitmentReportResponse.d.ts +44 -0
  114. package/dist/openapi/models/GetCommitmentReportResponse.js +115 -0
  115. package/dist/openapi/models/GetContractResponse.d.ts +29 -0
  116. package/dist/openapi/models/GetContractResponse.js +31 -0
  117. package/dist/openapi/models/GetContractResponseContract.d.ts +46 -0
  118. package/dist/openapi/models/GetContractResponseContract.js +67 -0
  119. package/dist/openapi/models/GetCustomerResponse.d.ts +29 -0
  120. package/dist/openapi/models/GetCustomerResponse.js +31 -0
  121. package/dist/openapi/models/GetEventResponse.d.ts +29 -0
  122. package/dist/openapi/models/GetEventResponse.js +31 -0
  123. package/dist/openapi/models/GetEventResponseEvent.d.ts +55 -0
  124. package/dist/openapi/models/GetEventResponseEvent.js +76 -0
  125. package/dist/openapi/models/GetInvoiceResponse.d.ts +29 -0
  126. package/dist/openapi/models/GetInvoiceResponse.js +31 -0
  127. package/dist/openapi/models/GetInvoiceResponseInvoice.d.ts +50 -0
  128. package/dist/openapi/models/GetInvoiceResponseInvoice.js +79 -0
  129. package/dist/openapi/models/GetMeterResponse.d.ts +29 -0
  130. package/dist/openapi/models/GetMeterResponse.js +31 -0
  131. package/dist/openapi/models/GetMeterResponseMeter.d.ts +42 -0
  132. package/dist/openapi/models/GetMeterResponseMeter.js +67 -0
  133. package/dist/openapi/models/GetPlanResponse.d.ts +29 -0
  134. package/dist/openapi/models/GetPlanResponse.js +31 -0
  135. package/dist/openapi/models/GetPlanResponsePlan.d.ts +38 -0
  136. package/dist/openapi/models/GetPlanResponsePlan.js +61 -0
  137. package/dist/openapi/models/GetProductsUsageReportResponse.d.ts +44 -0
  138. package/dist/openapi/models/GetProductsUsageReportResponse.js +115 -0
  139. package/dist/openapi/models/GrantCreditsRequest.d.ts +35 -0
  140. package/dist/openapi/models/GrantCreditsRequest.js +37 -0
  141. package/dist/openapi/models/InvalidEvent.d.ts +33 -0
  142. package/dist/openapi/models/InvalidEvent.js +37 -0
  143. package/dist/openapi/models/LineItem.d.ts +33 -0
  144. package/dist/openapi/models/LineItem.js +37 -0
  145. package/dist/openapi/models/LineItemRevenueBreakdown.d.ts +36 -0
  146. package/dist/openapi/models/LineItemRevenueBreakdown.js +64 -0
  147. package/dist/openapi/models/ListContractsResponse.d.ts +32 -0
  148. package/dist/openapi/models/ListContractsResponse.js +49 -0
  149. package/dist/openapi/models/ListCreditLedgerEntriesResponse.d.ts +32 -0
  150. package/dist/openapi/models/ListCreditLedgerEntriesResponse.js +31 -0
  151. package/dist/openapi/models/ListCustomersResponse.d.ts +32 -0
  152. package/dist/openapi/models/ListCustomersResponse.js +49 -0
  153. package/dist/openapi/models/ListInvoicesResponse.d.ts +32 -0
  154. package/dist/openapi/models/ListInvoicesResponse.js +49 -0
  155. package/dist/openapi/models/ListMetersResponse.d.ts +32 -0
  156. package/dist/openapi/models/ListMetersResponse.js +49 -0
  157. package/dist/openapi/models/ListPlansResponse.d.ts +32 -0
  158. package/dist/openapi/models/ListPlansResponse.js +49 -0
  159. package/dist/openapi/models/LoginRequest.d.ts +31 -0
  160. package/dist/openapi/models/LoginRequest.js +31 -0
  161. package/dist/openapi/models/LoginResponse.d.ts +31 -0
  162. package/dist/openapi/models/LoginResponse.js +31 -0
  163. package/dist/openapi/models/Meter.d.ts +39 -0
  164. package/dist/openapi/models/Meter.js +49 -0
  165. package/dist/openapi/models/NetSuiteExportSalesOrderRequest.d.ts +30 -0
  166. package/dist/openapi/models/NetSuiteExportSalesOrderRequest.js +43 -0
  167. package/dist/openapi/models/NetSuiteSyncInvoicesRequest.d.ts +34 -0
  168. package/dist/openapi/models/NetSuiteSyncInvoicesRequest.js +47 -0
  169. package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.d.ts +39 -0
  170. package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.js +85 -0
  171. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataEntity.d.ts +28 -0
  172. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataEntity.js +31 -0
  173. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.d.ts +29 -0
  174. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.js +31 -0
  175. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.d.ts +33 -0
  176. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.js +55 -0
  177. package/dist/openapi/models/NetSuiteSyncInvoicesResponse.d.ts +29 -0
  178. package/dist/openapi/models/NetSuiteSyncInvoicesResponse.js +37 -0
  179. package/dist/openapi/models/NotificationEventType.d.ts +17 -0
  180. package/dist/openapi/models/NotificationEventType.js +21 -0
  181. package/dist/openapi/models/ObjectSerializer.d.ts +109 -0
  182. package/dist/openapi/models/ObjectSerializer.js +497 -0
  183. package/dist/openapi/models/PaymentTerm.d.ts +18 -0
  184. package/dist/openapi/models/PaymentTerm.js +22 -0
  185. package/dist/openapi/models/PlanBillingData.d.ts +37 -0
  186. package/dist/openapi/models/PlanBillingData.js +58 -0
  187. package/dist/openapi/models/PlanStatus.d.ts +19 -0
  188. package/dist/openapi/models/PlanStatus.js +23 -0
  189. package/dist/openapi/models/QueryEventsResponse.d.ts +32 -0
  190. package/dist/openapi/models/QueryEventsResponse.js +31 -0
  191. package/dist/openapi/models/QueryEventsResponseEventsInner.d.ts +52 -0
  192. package/dist/openapi/models/QueryEventsResponseEventsInner.js +73 -0
  193. package/dist/openapi/models/SendEventsRequest.d.ts +29 -0
  194. package/dist/openapi/models/SendEventsRequest.js +31 -0
  195. package/dist/openapi/models/SendEventsResponse.d.ts +37 -0
  196. package/dist/openapi/models/SendEventsResponse.js +37 -0
  197. package/dist/openapi/models/UpdateCustomerRequest.d.ts +46 -0
  198. package/dist/openapi/models/UpdateCustomerRequest.js +55 -0
  199. package/dist/openapi/models/UpdateCustomerResponse.d.ts +29 -0
  200. package/dist/openapi/models/UpdateCustomerResponse.js +31 -0
  201. package/dist/openapi/models/UpdateMeterRequest.d.ts +39 -0
  202. package/dist/openapi/models/UpdateMeterRequest.js +49 -0
  203. package/dist/openapi/models/UpdateMeterResponse.d.ts +29 -0
  204. package/dist/openapi/models/UpdateMeterResponse.js +31 -0
  205. package/dist/openapi/models/WebhookSubscribeRequest.d.ts +30 -0
  206. package/dist/openapi/models/WebhookSubscribeRequest.js +37 -0
  207. package/dist/openapi/models/all.d.ts +82 -0
  208. package/dist/openapi/models/all.js +98 -0
  209. package/dist/openapi/rxjsStub.d.ts +10 -0
  210. package/dist/openapi/rxjsStub.js +31 -0
  211. package/dist/openapi/servers.d.ts +39 -0
  212. package/dist/openapi/servers.js +52 -0
  213. package/dist/openapi/types/ObservableAPI.d.ts +544 -0
  214. package/dist/openapi/types/ObservableAPI.js +1089 -0
  215. package/dist/openapi/types/PromiseAPI.d.ts +521 -0
  216. package/dist/openapi/types/PromiseAPI.js +702 -0
  217. package/dist/openapi/util.d.ts +15 -0
  218. package/dist/openapi/util.js +42 -0
  219. package/dist/openapi-v2/apis/AuthenticationApi.d.ts +24 -0
  220. package/dist/openapi-v2/apis/AuthenticationApi.js +79 -0
  221. package/dist/openapi-v2/apis/CustomersApi.d.ts +76 -0
  222. package/dist/openapi-v2/apis/CustomersApi.js +295 -0
  223. package/dist/openapi-v2/apis/EventsApi.d.ts +63 -0
  224. package/dist/openapi-v2/apis/EventsApi.js +231 -0
  225. package/dist/openapi-v2/apis/InvoicesApi.d.ts +88 -0
  226. package/dist/openapi-v2/apis/InvoicesApi.js +344 -0
  227. package/dist/openapi-v2/apis/ProductsApi.d.ts +90 -0
  228. package/dist/openapi-v2/apis/ProductsApi.js +359 -0
  229. package/dist/openapi-v2/apis/baseapi.d.ts +33 -0
  230. package/dist/openapi-v2/apis/baseapi.js +41 -0
  231. package/dist/openapi-v2/apis/exception.d.ts +19 -0
  232. package/dist/openapi-v2/apis/exception.js +22 -0
  233. package/dist/openapi-v2/auth/auth.d.ts +38 -0
  234. package/dist/openapi-v2/auth/auth.js +16 -0
  235. package/dist/openapi-v2/configuration.d.ts +63 -0
  236. package/dist/openapi-v2/configuration.js +34 -0
  237. package/dist/openapi-v2/http/http.d.ts +142 -0
  238. package/dist/openapi-v2/http/http.js +229 -0
  239. package/dist/openapi-v2/http/isomorphic-fetch.d.ts +5 -0
  240. package/dist/openapi-v2/http/isomorphic-fetch.js +33 -0
  241. package/dist/openapi-v2/index.d.ts +10 -0
  242. package/dist/openapi-v2/index.js +32 -0
  243. package/dist/openapi-v2/middleware.d.ts +54 -0
  244. package/dist/openapi-v2/middleware.js +16 -0
  245. package/dist/openapi-v2/models/APICreateCustomerPayload.d.ts +45 -0
  246. package/dist/openapi-v2/models/APICreateCustomerPayload.js +49 -0
  247. package/dist/openapi-v2/models/APICreateInvoicePayload.d.ts +41 -0
  248. package/dist/openapi-v2/models/APICreateInvoicePayload.js +49 -0
  249. package/dist/openapi-v2/models/APICreateProductPayload.d.ts +39 -0
  250. package/dist/openapi-v2/models/APICreateProductPayload.js +49 -0
  251. package/dist/openapi-v2/models/APICustomer.d.ts +64 -0
  252. package/dist/openapi-v2/models/APICustomer.js +76 -0
  253. package/dist/openapi-v2/models/APIEvent.d.ts +72 -0
  254. package/dist/openapi-v2/models/APIEvent.js +88 -0
  255. package/dist/openapi-v2/models/APIIngestEventPayload.d.ts +49 -0
  256. package/dist/openapi-v2/models/APIIngestEventPayload.js +55 -0
  257. package/dist/openapi-v2/models/APIInvoice.d.ts +71 -0
  258. package/dist/openapi-v2/models/APIInvoice.js +88 -0
  259. package/dist/openapi-v2/models/APIInvoiceBillingPeriod.d.ts +38 -0
  260. package/dist/openapi-v2/models/APIInvoiceBillingPeriod.js +40 -0
  261. package/dist/openapi-v2/models/APIProduct.d.ts +63 -0
  262. package/dist/openapi-v2/models/APIProduct.js +82 -0
  263. package/dist/openapi-v2/models/APIQueryPayloadAPICustomer.d.ts +43 -0
  264. package/dist/openapi-v2/models/APIQueryPayloadAPICustomer.js +49 -0
  265. package/dist/openapi-v2/models/APIQueryPayloadAPIEvent.d.ts +43 -0
  266. package/dist/openapi-v2/models/APIQueryPayloadAPIEvent.js +49 -0
  267. package/dist/openapi-v2/models/APIQueryPayloadAPIInvoice.d.ts +43 -0
  268. package/dist/openapi-v2/models/APIQueryPayloadAPIInvoice.js +49 -0
  269. package/dist/openapi-v2/models/APIQueryPayloadAPIProduct.d.ts +43 -0
  270. package/dist/openapi-v2/models/APIQueryPayloadAPIProduct.js +49 -0
  271. package/dist/openapi-v2/models/APIUpdateCustomerPayload.d.ts +45 -0
  272. package/dist/openapi-v2/models/APIUpdateCustomerPayload.js +49 -0
  273. package/dist/openapi-v2/models/APIUpdateInvoicePayload.d.ts +41 -0
  274. package/dist/openapi-v2/models/APIUpdateInvoicePayload.js +49 -0
  275. package/dist/openapi-v2/models/APIUpdateProductPayload.d.ts +39 -0
  276. package/dist/openapi-v2/models/APIUpdateProductPayload.js +49 -0
  277. package/dist/openapi-v2/models/Aggregation.d.ts +32 -0
  278. package/dist/openapi-v2/models/Aggregation.js +43 -0
  279. package/dist/openapi-v2/models/AggregationMethods.d.ts +18 -0
  280. package/dist/openapi-v2/models/AggregationMethods.js +22 -0
  281. package/dist/openapi-v2/models/Condition.d.ts +29 -0
  282. package/dist/openapi-v2/models/Condition.js +31 -0
  283. package/dist/openapi-v2/models/Criterion.d.ts +32 -0
  284. package/dist/openapi-v2/models/Criterion.js +43 -0
  285. package/dist/openapi-v2/models/CriterionOperators.d.ts +23 -0
  286. package/dist/openapi-v2/models/CriterionOperators.js +27 -0
  287. package/dist/openapi-v2/models/CriterionValue.d.ts +27 -0
  288. package/dist/openapi-v2/models/CriterionValue.js +24 -0
  289. package/dist/openapi-v2/models/Event.d.ts +54 -0
  290. package/dist/openapi-v2/models/Event.js +85 -0
  291. package/dist/openapi-v2/models/IngestEventToTheSystem201Response.d.ts +31 -0
  292. package/dist/openapi-v2/models/IngestEventToTheSystem201Response.js +43 -0
  293. package/dist/openapi-v2/models/InvoiceProductBreakdown.d.ts +36 -0
  294. package/dist/openapi-v2/models/InvoiceProductBreakdown.js +46 -0
  295. package/dist/openapi-v2/models/Login200Response.d.ts +28 -0
  296. package/dist/openapi-v2/models/Login200Response.js +31 -0
  297. package/dist/openapi-v2/models/LoginRequest.d.ts +28 -0
  298. package/dist/openapi-v2/models/LoginRequest.js +31 -0
  299. package/dist/openapi-v2/models/ObjectSerializer.d.ts +64 -0
  300. package/dist/openapi-v2/models/ObjectSerializer.js +368 -0
  301. package/dist/openapi-v2/models/Pricing.d.ts +30 -0
  302. package/dist/openapi-v2/models/Pricing.js +37 -0
  303. package/dist/openapi-v2/models/PricingTiersInner.d.ts +31 -0
  304. package/dist/openapi-v2/models/PricingTiersInner.js +49 -0
  305. package/dist/openapi-v2/models/ProductBreakdown.d.ts +29 -0
  306. package/dist/openapi-v2/models/ProductBreakdown.js +37 -0
  307. package/dist/openapi-v2/models/ProductRevision.d.ts +36 -0
  308. package/dist/openapi-v2/models/ProductRevision.js +55 -0
  309. package/dist/openapi-v2/models/QueryResultAPICustomer.d.ts +40 -0
  310. package/dist/openapi-v2/models/QueryResultAPICustomer.js +43 -0
  311. package/dist/openapi-v2/models/QueryResultAPIEvent.d.ts +40 -0
  312. package/dist/openapi-v2/models/QueryResultAPIEvent.js +43 -0
  313. package/dist/openapi-v2/models/QueryResultAPIInvoice.d.ts +40 -0
  314. package/dist/openapi-v2/models/QueryResultAPIInvoice.js +43 -0
  315. package/dist/openapi-v2/models/QueryResultAPIProduct.d.ts +40 -0
  316. package/dist/openapi-v2/models/QueryResultAPIProduct.js +43 -0
  317. package/dist/openapi-v2/models/ReviseProductPayload.d.ts +37 -0
  318. package/dist/openapi-v2/models/ReviseProductPayload.js +43 -0
  319. package/dist/openapi-v2/models/UpdateEventPayload.d.ts +33 -0
  320. package/dist/openapi-v2/models/UpdateEventPayload.js +31 -0
  321. package/dist/openapi-v2/models/all.d.ts +37 -0
  322. package/dist/openapi-v2/models/all.js +53 -0
  323. package/dist/openapi-v2/rxjsStub.d.ts +10 -0
  324. package/dist/openapi-v2/rxjsStub.js +31 -0
  325. package/dist/openapi-v2/servers.d.ts +38 -0
  326. package/dist/openapi-v2/servers.js +51 -0
  327. package/dist/openapi-v2/types/ObservableAPI.d.ts +245 -0
  328. package/dist/openapi-v2/types/ObservableAPI.js +608 -0
  329. package/dist/openapi-v2/types/PromiseAPI.d.ts +234 -0
  330. package/dist/openapi-v2/types/PromiseAPI.js +354 -0
  331. package/dist/openapi-v2/util.d.ts +15 -0
  332. package/dist/openapi-v2/util.js +42 -0
  333. package/dist/sdk/clients/ContractsClient.d.ts +10 -0
  334. package/dist/sdk/clients/ContractsClient.js +42 -0
  335. package/dist/sdk/clients/CustomersClient.d.ts +12 -0
  336. package/dist/sdk/clients/CustomersClient.js +52 -0
  337. package/dist/sdk/clients/EventsClient.d.ts +11 -0
  338. package/dist/sdk/clients/EventsClient.js +49 -0
  339. package/dist/sdk/clients/InvoicesClient.d.ts +7 -0
  340. package/dist/sdk/clients/InvoicesClient.js +32 -0
  341. package/dist/sdk/clients/MetersClient.d.ts +10 -0
  342. package/dist/sdk/clients/MetersClient.js +42 -0
  343. package/dist/sdk/clients/PlansClient.d.ts +8 -0
  344. package/dist/sdk/clients/PlansClient.js +37 -0
  345. package/dist/sdk/clients/WebhooksClient.d.ts +6 -0
  346. package/dist/sdk/clients/WebhooksClient.js +25 -0
  347. package/dist/sdk/clients/index.d.ts +7 -0
  348. package/dist/sdk/clients/index.js +23 -0
  349. package/dist/sdk/index.d.ts +14 -0
  350. package/dist/sdk/index.js +62 -0
  351. package/dist/sdk/services/configuration.service.d.ts +21 -0
  352. package/dist/sdk/services/configuration.service.js +104 -0
  353. package/dist/sdk/services/index.d.ts +1 -0
  354. package/dist/sdk/services/index.js +17 -0
  355. package/dist/sdk/types/Contracts.d.ts +1 -0
  356. package/dist/sdk/types/Contracts.js +2 -0
  357. package/dist/sdk/types/Customers.d.ts +1 -0
  358. package/dist/sdk/types/Customers.js +2 -0
  359. package/dist/sdk/types/Events.d.ts +1 -0
  360. package/dist/sdk/types/Events.js +2 -0
  361. package/dist/sdk/types/Invoices.d.ts +1 -0
  362. package/dist/sdk/types/Invoices.js +2 -0
  363. package/dist/sdk/types/Meters.d.ts +1 -0
  364. package/dist/sdk/types/Meters.js +2 -0
  365. package/dist/sdk/types/Plans.d.ts +1 -0
  366. package/dist/sdk/types/Plans.js +2 -0
  367. package/dist/sdk/types/index.d.ts +7 -0
  368. package/dist/sdk/types/index.js +23 -0
  369. package/dist/sdk/types/pagination-options.d.ts +4 -0
  370. package/dist/sdk/types/pagination-options.js +2 -0
  371. package/dist/sdk-v2/clients/CustomersClient.d.ts +10 -0
  372. package/dist/sdk-v2/clients/CustomersClient.js +45 -0
  373. package/dist/sdk-v2/clients/EventsClient.d.ts +9 -0
  374. package/dist/sdk-v2/clients/EventsClient.js +46 -0
  375. package/dist/sdk-v2/clients/InvoicesClient.d.ts +11 -0
  376. package/dist/sdk-v2/clients/InvoicesClient.js +50 -0
  377. package/dist/sdk-v2/clients/ProductsClient.d.ts +11 -0
  378. package/dist/sdk-v2/clients/ProductsClient.js +50 -0
  379. package/dist/sdk-v2/clients/index.d.ts +4 -0
  380. package/dist/sdk-v2/clients/index.js +20 -0
  381. package/dist/sdk-v2/index.d.ts +11 -0
  382. package/dist/sdk-v2/index.js +53 -0
  383. package/dist/sdk-v2/services/configuration.service.d.ts +21 -0
  384. package/dist/sdk-v2/services/configuration.service.js +98 -0
  385. package/dist/sdk-v2/services/index.d.ts +1 -0
  386. package/dist/sdk-v2/services/index.js +17 -0
  387. package/dist/sdk-v2/types/Customers.d.ts +1 -0
  388. package/dist/sdk-v2/types/Customers.js +2 -0
  389. package/dist/sdk-v2/types/Events.d.ts +1 -0
  390. package/dist/sdk-v2/types/Events.js +2 -0
  391. package/dist/sdk-v2/types/Invoices.d.ts +1 -0
  392. package/dist/sdk-v2/types/Invoices.js +2 -0
  393. package/dist/sdk-v2/types/Products.d.ts +1 -0
  394. package/dist/sdk-v2/types/Products.js +2 -0
  395. package/dist/sdk-v2/types/index.d.ts +6 -0
  396. package/dist/sdk-v2/types/index.js +23 -0
  397. package/dist/types.d.ts +1 -0
  398. package/dist/types.js +17 -0
  399. package/dist/v2.d.ts +1 -0
  400. package/dist/v2.js +17 -0
  401. package/package.json +17 -1
@@ -0,0 +1,702 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PromiseWebhooksApi = exports.PromiseReportsApi = exports.PromisePlansApi = exports.PromiseMetersApi = exports.PromiseInvoicesApi = exports.PromiseIntegrationsApi = exports.PromiseEventsApi = exports.PromiseCustomersApi = exports.PromiseCreditsApi = exports.PromiseContractsApi = exports.PromiseAuthApi = void 0;
4
+ const ObservableAPI_1 = require("./ObservableAPI");
5
+ class PromiseAuthApi {
6
+ constructor(configuration, requestFactory, responseProcessor) {
7
+ this.api = new ObservableAPI_1.ObservableAuthApi(configuration, requestFactory, responseProcessor);
8
+ }
9
+ /**
10
+ * 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.
11
+ * Login by obtaining a new access token
12
+ * @param loginRequest
13
+ */
14
+ loginWithHttpInfo(loginRequest, _options) {
15
+ const result = this.api.loginWithHttpInfo(loginRequest, _options);
16
+ return result.toPromise();
17
+ }
18
+ /**
19
+ * 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.
20
+ * Login by obtaining a new access token
21
+ * @param loginRequest
22
+ */
23
+ login(loginRequest, _options) {
24
+ const result = this.api.login(loginRequest, _options);
25
+ return result.toPromise();
26
+ }
27
+ }
28
+ exports.PromiseAuthApi = PromiseAuthApi;
29
+ const ObservableAPI_2 = require("./ObservableAPI");
30
+ class PromiseContractsApi {
31
+ constructor(configuration, requestFactory, responseProcessor) {
32
+ this.api = new ObservableAPI_2.ObservableContractsApi(configuration, requestFactory, responseProcessor);
33
+ }
34
+ /**
35
+ * Create a new Contract.
36
+ * Create Contract
37
+ * @param createContractRequest
38
+ */
39
+ createContractWithHttpInfo(createContractRequest, _options) {
40
+ const result = this.api.createContractWithHttpInfo(createContractRequest, _options);
41
+ return result.toPromise();
42
+ }
43
+ /**
44
+ * Create a new Contract.
45
+ * Create Contract
46
+ * @param createContractRequest
47
+ */
48
+ createContract(createContractRequest, _options) {
49
+ const result = this.api.createContract(createContractRequest, _options);
50
+ return result.toPromise();
51
+ }
52
+ /**
53
+ * Delete a Contract by id.
54
+ * Delete Contract
55
+ * @param contractId
56
+ */
57
+ deleteContractWithHttpInfo(contractId, _options) {
58
+ const result = this.api.deleteContractWithHttpInfo(contractId, _options);
59
+ return result.toPromise();
60
+ }
61
+ /**
62
+ * Delete a Contract by id.
63
+ * Delete Contract
64
+ * @param contractId
65
+ */
66
+ deleteContract(contractId, _options) {
67
+ const result = this.api.deleteContract(contractId, _options);
68
+ return result.toPromise();
69
+ }
70
+ /**
71
+ * Get a Contract by id.
72
+ * Get Contract
73
+ * @param contractId
74
+ */
75
+ getContractWithHttpInfo(contractId, _options) {
76
+ const result = this.api.getContractWithHttpInfo(contractId, _options);
77
+ return result.toPromise();
78
+ }
79
+ /**
80
+ * Get a Contract by id.
81
+ * Get Contract
82
+ * @param contractId
83
+ */
84
+ getContract(contractId, _options) {
85
+ const result = this.api.getContract(contractId, _options);
86
+ return result.toPromise();
87
+ }
88
+ /**
89
+ * Get a list of Contracts.
90
+ * List Contracts
91
+ * @param limit
92
+ * @param cursor
93
+ */
94
+ listContractsWithHttpInfo(limit, cursor, _options) {
95
+ const result = this.api.listContractsWithHttpInfo(limit, cursor, _options);
96
+ return result.toPromise();
97
+ }
98
+ /**
99
+ * Get a list of Contracts.
100
+ * List Contracts
101
+ * @param limit
102
+ * @param cursor
103
+ */
104
+ listContracts(limit, cursor, _options) {
105
+ const result = this.api.listContracts(limit, cursor, _options);
106
+ return result.toPromise();
107
+ }
108
+ }
109
+ exports.PromiseContractsApi = PromiseContractsApi;
110
+ const ObservableAPI_3 = require("./ObservableAPI");
111
+ class PromiseCreditsApi {
112
+ constructor(configuration, requestFactory, responseProcessor) {
113
+ this.api = new ObservableAPI_3.ObservableCreditsApi(configuration, requestFactory, responseProcessor);
114
+ }
115
+ /**
116
+ * 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.
117
+ * Deduct credits from customer credit ledger
118
+ * @param deductCreditsRequest
119
+ */
120
+ deductCreditsWithHttpInfo(deductCreditsRequest, _options) {
121
+ const result = this.api.deductCreditsWithHttpInfo(deductCreditsRequest, _options);
122
+ return result.toPromise();
123
+ }
124
+ /**
125
+ * 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.
126
+ * Deduct credits from customer credit ledger
127
+ * @param deductCreditsRequest
128
+ */
129
+ deductCredits(deductCreditsRequest, _options) {
130
+ const result = this.api.deductCredits(deductCreditsRequest, _options);
131
+ return result.toPromise();
132
+ }
133
+ /**
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.
135
+ * Grant credits to a customer credit ledger
136
+ * @param grantCreditsRequest
137
+ */
138
+ grantCreditsWithHttpInfo(grantCreditsRequest, _options) {
139
+ const result = this.api.grantCreditsWithHttpInfo(grantCreditsRequest, _options);
140
+ return result.toPromise();
141
+ }
142
+ /**
143
+ * 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.
144
+ * Grant credits to a customer credit ledger
145
+ * @param grantCreditsRequest
146
+ */
147
+ grantCredits(grantCreditsRequest, _options) {
148
+ const result = this.api.grantCredits(grantCreditsRequest, _options);
149
+ return result.toPromise();
150
+ }
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
+ listCreditLedgerEntriesWithHttpInfo(customerId, limit, cursor, _options) {
159
+ const result = this.api.listCreditLedgerEntriesWithHttpInfo(customerId, limit, cursor, _options);
160
+ return result.toPromise();
161
+ }
162
+ /**
163
+ * This endpoint is used to retrieve the credit ledger entries for a specific customer.
164
+ * Retrieve credit ledger entries for customer.
165
+ * @param customerId
166
+ * @param limit
167
+ * @param cursor
168
+ */
169
+ listCreditLedgerEntries(customerId, limit, cursor, _options) {
170
+ const result = this.api.listCreditLedgerEntries(customerId, limit, cursor, _options);
171
+ return result.toPromise();
172
+ }
173
+ }
174
+ exports.PromiseCreditsApi = PromiseCreditsApi;
175
+ const ObservableAPI_4 = require("./ObservableAPI");
176
+ class PromiseCustomersApi {
177
+ constructor(configuration, requestFactory, responseProcessor) {
178
+ this.api = new ObservableAPI_4.ObservableCustomersApi(configuration, requestFactory, responseProcessor);
179
+ }
180
+ /**
181
+ * Create a new Customer.
182
+ * Create Customer
183
+ * @param createCustomerRequest
184
+ */
185
+ createCustomerWithHttpInfo(createCustomerRequest, _options) {
186
+ const result = this.api.createCustomerWithHttpInfo(createCustomerRequest, _options);
187
+ return result.toPromise();
188
+ }
189
+ /**
190
+ * Create a new Customer.
191
+ * Create Customer
192
+ * @param createCustomerRequest
193
+ */
194
+ createCustomer(createCustomerRequest, _options) {
195
+ const result = this.api.createCustomer(createCustomerRequest, _options);
196
+ return result.toPromise();
197
+ }
198
+ /**
199
+ * Delete a Customer by id.
200
+ * Delete Customer
201
+ * @param customerId
202
+ */
203
+ deleteCustomerWithHttpInfo(customerId, _options) {
204
+ const result = this.api.deleteCustomerWithHttpInfo(customerId, _options);
205
+ return result.toPromise();
206
+ }
207
+ /**
208
+ * Delete a Customer by id.
209
+ * Delete Customer
210
+ * @param customerId
211
+ */
212
+ deleteCustomer(customerId, _options) {
213
+ const result = this.api.deleteCustomer(customerId, _options);
214
+ return result.toPromise();
215
+ }
216
+ /**
217
+ * Get a Customer by id.
218
+ * Get Customer
219
+ * @param customerId
220
+ */
221
+ getCustomerWithHttpInfo(customerId, _options) {
222
+ const result = this.api.getCustomerWithHttpInfo(customerId, _options);
223
+ return result.toPromise();
224
+ }
225
+ /**
226
+ * Get a Customer by id.
227
+ * Get Customer
228
+ * @param customerId
229
+ */
230
+ getCustomer(customerId, _options) {
231
+ const result = this.api.getCustomer(customerId, _options);
232
+ return result.toPromise();
233
+ }
234
+ /**
235
+ * Use this endpoint to get a specific customer using its external Id.
236
+ * Get customer by externalId
237
+ * @param externalId
238
+ */
239
+ getCustomerByExternalIdWithHttpInfo(externalId, _options) {
240
+ const result = this.api.getCustomerByExternalIdWithHttpInfo(externalId, _options);
241
+ return result.toPromise();
242
+ }
243
+ /**
244
+ * Use this endpoint to get a specific customer using its external Id.
245
+ * Get customer by externalId
246
+ * @param externalId
247
+ */
248
+ getCustomerByExternalId(externalId, _options) {
249
+ const result = this.api.getCustomerByExternalId(externalId, _options);
250
+ return result.toPromise();
251
+ }
252
+ /**
253
+ * Get a list of Customers.
254
+ * List Customers
255
+ * @param limit
256
+ * @param cursor
257
+ */
258
+ listCustomersWithHttpInfo(limit, cursor, _options) {
259
+ const result = this.api.listCustomersWithHttpInfo(limit, cursor, _options);
260
+ return result.toPromise();
261
+ }
262
+ /**
263
+ * Get a list of Customers.
264
+ * List Customers
265
+ * @param limit
266
+ * @param cursor
267
+ */
268
+ listCustomers(limit, cursor, _options) {
269
+ const result = this.api.listCustomers(limit, cursor, _options);
270
+ return result.toPromise();
271
+ }
272
+ /**
273
+ * Update a Customer by id.
274
+ * Update Customer
275
+ * @param updateCustomerRequest
276
+ * @param customerId
277
+ */
278
+ updateCustomerWithHttpInfo(updateCustomerRequest, customerId, _options) {
279
+ const result = this.api.updateCustomerWithHttpInfo(updateCustomerRequest, customerId, _options);
280
+ return result.toPromise();
281
+ }
282
+ /**
283
+ * Update a Customer by id.
284
+ * Update Customer
285
+ * @param updateCustomerRequest
286
+ * @param customerId
287
+ */
288
+ updateCustomer(updateCustomerRequest, customerId, _options) {
289
+ const result = this.api.updateCustomer(updateCustomerRequest, customerId, _options);
290
+ return result.toPromise();
291
+ }
292
+ }
293
+ exports.PromiseCustomersApi = PromiseCustomersApi;
294
+ const ObservableAPI_5 = require("./ObservableAPI");
295
+ class PromiseEventsApi {
296
+ constructor(configuration, requestFactory, responseProcessor) {
297
+ this.api = new ObservableAPI_5.ObservableEventsApi(configuration, requestFactory, responseProcessor);
298
+ }
299
+ /**
300
+ * Use this endpoint to remove a specific event using its reference ID.
301
+ * Delete an event by refId
302
+ * @param refId
303
+ */
304
+ deleteEventByRefIdWithHttpInfo(refId, _options) {
305
+ const result = this.api.deleteEventByRefIdWithHttpInfo(refId, _options);
306
+ return result.toPromise();
307
+ }
308
+ /**
309
+ * Use this endpoint to remove a specific event using its reference ID.
310
+ * Delete an event by refId
311
+ * @param refId
312
+ */
313
+ deleteEventByRefId(refId, _options) {
314
+ const result = this.api.deleteEventByRefId(refId, _options);
315
+ return result.toPromise();
316
+ }
317
+ /**
318
+ * Use this endpoint to get a specific event using its reference ID.
319
+ * Get event by refId
320
+ * @param refId
321
+ */
322
+ getEventByRefIdWithHttpInfo(refId, _options) {
323
+ const result = this.api.getEventByRefIdWithHttpInfo(refId, _options);
324
+ return result.toPromise();
325
+ }
326
+ /**
327
+ * Use this endpoint to get a specific event using its reference ID.
328
+ * Get event by refId
329
+ * @param refId
330
+ */
331
+ getEventByRefId(refId, _options) {
332
+ const result = this.api.getEventByRefId(refId, _options);
333
+ return result.toPromise();
334
+ }
335
+ /**
336
+ * Fetch events occurring within a specified timestamp range. An optional event name can be provided to further filter the events.
337
+ * Query events by timestamp period and optional event name
338
+ * @param startTime
339
+ * @param endTime
340
+ * @param eventName
341
+ * @param limit
342
+ * @param cursor
343
+ */
344
+ queryEventsWithHttpInfo(startTime, endTime, eventName, limit, cursor, _options) {
345
+ const result = this.api.queryEventsWithHttpInfo(startTime, endTime, eventName, limit, cursor, _options);
346
+ return result.toPromise();
347
+ }
348
+ /**
349
+ * Fetch events occurring within a specified timestamp range. An optional event name can be provided to further filter the events.
350
+ * Query events by timestamp period and optional event name
351
+ * @param startTime
352
+ * @param endTime
353
+ * @param eventName
354
+ * @param limit
355
+ * @param cursor
356
+ */
357
+ queryEvents(startTime, endTime, eventName, limit, cursor, _options) {
358
+ const result = this.api.queryEvents(startTime, endTime, eventName, limit, cursor, _options);
359
+ return result.toPromise();
360
+ }
361
+ /**
362
+ * Use this endpoint to send an array of events for processing and storage. Make sure to comply with the request schema for each event.
363
+ * Submit a batch of events for ingestion
364
+ * @param sendEventsRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \'/events\' Up to 1000 events or a total payload max size of 256KB
365
+ */
366
+ sendEventsWithHttpInfo(sendEventsRequest, _options) {
367
+ const result = this.api.sendEventsWithHttpInfo(sendEventsRequest, _options);
368
+ return result.toPromise();
369
+ }
370
+ /**
371
+ * Use this endpoint to send an array of events for processing and storage. Make sure to comply with the request schema for each event.
372
+ * Submit a batch of events for ingestion
373
+ * @param sendEventsRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \'/events\' Up to 1000 events or a total payload max size of 256KB
374
+ */
375
+ sendEvents(sendEventsRequest, _options) {
376
+ const result = this.api.sendEvents(sendEventsRequest, _options);
377
+ return result.toPromise();
378
+ }
379
+ /**
380
+ * 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.
381
+ * Submit a batch of events for testing
382
+ * @param eventsDryRunRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \'/events\' Up to 1000 events or a total payload max size of 256KB
383
+ */
384
+ sendEventsDryRunWithHttpInfo(eventsDryRunRequest, _options) {
385
+ const result = this.api.sendEventsDryRunWithHttpInfo(eventsDryRunRequest, _options);
386
+ return result.toPromise();
387
+ }
388
+ /**
389
+ * 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.
390
+ * Submit a batch of events for testing
391
+ * @param eventsDryRunRequest An array of events following the EventInput schema. This request body should be included in the PUT request to \'/events\' Up to 1000 events or a total payload max size of 256KB
392
+ */
393
+ sendEventsDryRun(eventsDryRunRequest, _options) {
394
+ const result = this.api.sendEventsDryRun(eventsDryRunRequest, _options);
395
+ return result.toPromise();
396
+ }
397
+ }
398
+ exports.PromiseEventsApi = PromiseEventsApi;
399
+ const ObservableAPI_6 = require("./ObservableAPI");
400
+ class PromiseIntegrationsApi {
401
+ constructor(configuration, requestFactory, responseProcessor) {
402
+ this.api = new ObservableAPI_6.ObservableIntegrationsApi(configuration, requestFactory, responseProcessor);
403
+ }
404
+ /**
405
+ * This endpoint is used to export sales order to NetSuite.
406
+ * Export sales order to NetSuite
407
+ * @param netSuiteExportSalesOrderRequest
408
+ */
409
+ exportNetSuiteSalesOrderWithHttpInfo(netSuiteExportSalesOrderRequest, _options) {
410
+ const result = this.api.exportNetSuiteSalesOrderWithHttpInfo(netSuiteExportSalesOrderRequest, _options);
411
+ return result.toPromise();
412
+ }
413
+ /**
414
+ * This endpoint is used to export sales order to NetSuite.
415
+ * Export sales order to NetSuite
416
+ * @param netSuiteExportSalesOrderRequest
417
+ */
418
+ exportNetSuiteSalesOrder(netSuiteExportSalesOrderRequest, _options) {
419
+ const result = this.api.exportNetSuiteSalesOrder(netSuiteExportSalesOrderRequest, _options);
420
+ return result.toPromise();
421
+ }
422
+ /**
423
+ * This endpoint is used to sync invoices to NetSuite.
424
+ * Sync invoices to NetSuite
425
+ * @param netSuiteSyncInvoicesRequest
426
+ */
427
+ netSuiteSyncInvoicesWithHttpInfo(netSuiteSyncInvoicesRequest, _options) {
428
+ const result = this.api.netSuiteSyncInvoicesWithHttpInfo(netSuiteSyncInvoicesRequest, _options);
429
+ return result.toPromise();
430
+ }
431
+ /**
432
+ * This endpoint is used to sync invoices to NetSuite.
433
+ * Sync invoices to NetSuite
434
+ * @param netSuiteSyncInvoicesRequest
435
+ */
436
+ netSuiteSyncInvoices(netSuiteSyncInvoicesRequest, _options) {
437
+ const result = this.api.netSuiteSyncInvoices(netSuiteSyncInvoicesRequest, _options);
438
+ return result.toPromise();
439
+ }
440
+ }
441
+ exports.PromiseIntegrationsApi = PromiseIntegrationsApi;
442
+ const ObservableAPI_7 = require("./ObservableAPI");
443
+ class PromiseInvoicesApi {
444
+ constructor(configuration, requestFactory, responseProcessor) {
445
+ this.api = new ObservableAPI_7.ObservableInvoicesApi(configuration, requestFactory, responseProcessor);
446
+ }
447
+ /**
448
+ * Get a Invoice by id.
449
+ * Get Invoice
450
+ * @param invoiceId
451
+ */
452
+ getInvoiceWithHttpInfo(invoiceId, _options) {
453
+ const result = this.api.getInvoiceWithHttpInfo(invoiceId, _options);
454
+ return result.toPromise();
455
+ }
456
+ /**
457
+ * Get a Invoice by id.
458
+ * Get Invoice
459
+ * @param invoiceId
460
+ */
461
+ getInvoice(invoiceId, _options) {
462
+ const result = this.api.getInvoice(invoiceId, _options);
463
+ return result.toPromise();
464
+ }
465
+ /**
466
+ * Get a list of Invoices.
467
+ * List Invoices
468
+ * @param limit
469
+ * @param cursor
470
+ */
471
+ listInvoicesWithHttpInfo(limit, cursor, _options) {
472
+ const result = this.api.listInvoicesWithHttpInfo(limit, cursor, _options);
473
+ return result.toPromise();
474
+ }
475
+ /**
476
+ * Get a list of Invoices.
477
+ * List Invoices
478
+ * @param limit
479
+ * @param cursor
480
+ */
481
+ listInvoices(limit, cursor, _options) {
482
+ const result = this.api.listInvoices(limit, cursor, _options);
483
+ return result.toPromise();
484
+ }
485
+ }
486
+ exports.PromiseInvoicesApi = PromiseInvoicesApi;
487
+ const ObservableAPI_8 = require("./ObservableAPI");
488
+ class PromiseMetersApi {
489
+ constructor(configuration, requestFactory, responseProcessor) {
490
+ this.api = new ObservableAPI_8.ObservableMetersApi(configuration, requestFactory, responseProcessor);
491
+ }
492
+ /**
493
+ * Delete a Meter by id.
494
+ * Delete Meter
495
+ * @param meterId
496
+ */
497
+ deleteMeterWithHttpInfo(meterId, _options) {
498
+ const result = this.api.deleteMeterWithHttpInfo(meterId, _options);
499
+ return result.toPromise();
500
+ }
501
+ /**
502
+ * Delete a Meter by id.
503
+ * Delete Meter
504
+ * @param meterId
505
+ */
506
+ deleteMeter(meterId, _options) {
507
+ const result = this.api.deleteMeter(meterId, _options);
508
+ return result.toPromise();
509
+ }
510
+ /**
511
+ * Get a Meter by id.
512
+ * Get Meter
513
+ * @param meterId
514
+ */
515
+ getMeterWithHttpInfo(meterId, _options) {
516
+ const result = this.api.getMeterWithHttpInfo(meterId, _options);
517
+ return result.toPromise();
518
+ }
519
+ /**
520
+ * Get a Meter by id.
521
+ * Get Meter
522
+ * @param meterId
523
+ */
524
+ getMeter(meterId, _options) {
525
+ const result = this.api.getMeter(meterId, _options);
526
+ return result.toPromise();
527
+ }
528
+ /**
529
+ * Get a list of Meters.
530
+ * List Meters
531
+ * @param limit
532
+ * @param cursor
533
+ */
534
+ listMetersWithHttpInfo(limit, cursor, _options) {
535
+ const result = this.api.listMetersWithHttpInfo(limit, cursor, _options);
536
+ return result.toPromise();
537
+ }
538
+ /**
539
+ * Get a list of Meters.
540
+ * List Meters
541
+ * @param limit
542
+ * @param cursor
543
+ */
544
+ listMeters(limit, cursor, _options) {
545
+ const result = this.api.listMeters(limit, cursor, _options);
546
+ return result.toPromise();
547
+ }
548
+ /**
549
+ * Update a Meter by id.
550
+ * Update Meter
551
+ * @param updateMeterRequest
552
+ * @param meterId
553
+ */
554
+ updateMeterWithHttpInfo(updateMeterRequest, meterId, _options) {
555
+ const result = this.api.updateMeterWithHttpInfo(updateMeterRequest, meterId, _options);
556
+ return result.toPromise();
557
+ }
558
+ /**
559
+ * Update a Meter by id.
560
+ * Update Meter
561
+ * @param updateMeterRequest
562
+ * @param meterId
563
+ */
564
+ updateMeter(updateMeterRequest, meterId, _options) {
565
+ const result = this.api.updateMeter(updateMeterRequest, meterId, _options);
566
+ return result.toPromise();
567
+ }
568
+ }
569
+ exports.PromiseMetersApi = PromiseMetersApi;
570
+ const ObservableAPI_9 = require("./ObservableAPI");
571
+ class PromisePlansApi {
572
+ constructor(configuration, requestFactory, responseProcessor) {
573
+ this.api = new ObservableAPI_9.ObservablePlansApi(configuration, requestFactory, responseProcessor);
574
+ }
575
+ /**
576
+ * Delete a Plan by id.
577
+ * Delete Plan
578
+ * @param planId
579
+ */
580
+ deletePlanWithHttpInfo(planId, _options) {
581
+ const result = this.api.deletePlanWithHttpInfo(planId, _options);
582
+ return result.toPromise();
583
+ }
584
+ /**
585
+ * Delete a Plan by id.
586
+ * Delete Plan
587
+ * @param planId
588
+ */
589
+ deletePlan(planId, _options) {
590
+ const result = this.api.deletePlan(planId, _options);
591
+ return result.toPromise();
592
+ }
593
+ /**
594
+ * Get a Plan by id.
595
+ * Get Plan
596
+ * @param planId
597
+ */
598
+ getPlanWithHttpInfo(planId, _options) {
599
+ const result = this.api.getPlanWithHttpInfo(planId, _options);
600
+ return result.toPromise();
601
+ }
602
+ /**
603
+ * Get a Plan by id.
604
+ * Get Plan
605
+ * @param planId
606
+ */
607
+ getPlan(planId, _options) {
608
+ const result = this.api.getPlan(planId, _options);
609
+ return result.toPromise();
610
+ }
611
+ /**
612
+ * Get a list of Plans.
613
+ * List Plans
614
+ * @param limit
615
+ * @param cursor
616
+ */
617
+ listPlansWithHttpInfo(limit, cursor, _options) {
618
+ const result = this.api.listPlansWithHttpInfo(limit, cursor, _options);
619
+ return result.toPromise();
620
+ }
621
+ /**
622
+ * Get a list of Plans.
623
+ * List Plans
624
+ * @param limit
625
+ * @param cursor
626
+ */
627
+ listPlans(limit, cursor, _options) {
628
+ const result = this.api.listPlans(limit, cursor, _options);
629
+ return result.toPromise();
630
+ }
631
+ }
632
+ exports.PromisePlansApi = PromisePlansApi;
633
+ const ObservableAPI_10 = require("./ObservableAPI");
634
+ class PromiseReportsApi {
635
+ constructor(configuration, requestFactory, responseProcessor) {
636
+ this.api = new ObservableAPI_10.ObservableReportsApi(configuration, requestFactory, responseProcessor);
637
+ }
638
+ /**
639
+ * Get commitment report
640
+ * @param reportId
641
+ */
642
+ getCommitmentReportResponseWithHttpInfo(reportId, _options) {
643
+ const result = this.api.getCommitmentReportResponseWithHttpInfo(reportId, _options);
644
+ return result.toPromise();
645
+ }
646
+ /**
647
+ * Get commitment report
648
+ * @param reportId
649
+ */
650
+ getCommitmentReportResponse(reportId, _options) {
651
+ const result = this.api.getCommitmentReportResponse(reportId, _options);
652
+ return result.toPromise();
653
+ }
654
+ /**
655
+ * Use this endpoint to get the products usage report.
656
+ * Get products usage report
657
+ * @param reportId
658
+ * @param limit
659
+ * @param cursor
660
+ */
661
+ getProductsUsageReportWithHttpInfo(reportId, limit, cursor, _options) {
662
+ const result = this.api.getProductsUsageReportWithHttpInfo(reportId, limit, cursor, _options);
663
+ return result.toPromise();
664
+ }
665
+ /**
666
+ * Use this endpoint to get the products usage report.
667
+ * Get products usage report
668
+ * @param reportId
669
+ * @param limit
670
+ * @param cursor
671
+ */
672
+ getProductsUsageReport(reportId, limit, cursor, _options) {
673
+ const result = this.api.getProductsUsageReport(reportId, limit, cursor, _options);
674
+ return result.toPromise();
675
+ }
676
+ }
677
+ exports.PromiseReportsApi = PromiseReportsApi;
678
+ const ObservableAPI_11 = require("./ObservableAPI");
679
+ class PromiseWebhooksApi {
680
+ constructor(configuration, requestFactory, responseProcessor) {
681
+ this.api = new ObservableAPI_11.ObservableWebhooksApi(configuration, requestFactory, responseProcessor);
682
+ }
683
+ /**
684
+ * Use this endpoint to subscribe to webhooks and receive event notifications.
685
+ * Subscribe to webhooks
686
+ * @param webhookSubscribeRequest Subscribe to webhooks and receive event notifications.
687
+ */
688
+ webhookSubscribeWithHttpInfo(webhookSubscribeRequest, _options) {
689
+ const result = this.api.webhookSubscribeWithHttpInfo(webhookSubscribeRequest, _options);
690
+ return result.toPromise();
691
+ }
692
+ /**
693
+ * Use this endpoint to subscribe to webhooks and receive event notifications.
694
+ * Subscribe to webhooks
695
+ * @param webhookSubscribeRequest Subscribe to webhooks and receive event notifications.
696
+ */
697
+ webhookSubscribe(webhookSubscribeRequest, _options) {
698
+ const result = this.api.webhookSubscribe(webhookSubscribeRequest, _options);
699
+ return result.toPromise();
700
+ }
701
+ }
702
+ exports.PromiseWebhooksApi = PromiseWebhooksApi;